Cross platform debugger... how to make CDT recognize cross target platform+debugger? [message #95865] |
Sun, 29 February 2004 17:32 |
Eclipse User |
|
|
|
Originally posted by: jorgen.birkler.se
Running the gnu toolchain for an embedded target (AVR). Managed to create a
plugin that lets you select AVR as a platform from the managed make project.
Now I want to include support for the cross platform GDB debugger.
(avr-gdb).
Can somebody point me in the right direction?
Cannot get the avr-gdb to run under eclipse, the Debug button is disabled
when I select an AVR ELF file. I'm guessing that somewhare a match between
platform and the target platform in the ELF file is matched to the available
debuggers.
Is there a doc somewhere or can somebody just quickly explain the
mechanisms?
Thanks.
Regard Jorgen
|
|
|
Re: Cross platform debugger... how to make CDT recognize cross target platform+debugger? [message #95896 is a reply to message #95865] |
Mon, 01 March 2004 13:27 |
Eclipse User |
|
|
|
Originally posted by: user.domain.invalid
Jorgen Birkler wrote:
> Running the gnu toolchain for an embedded target (AVR). Managed to create a
> plugin that lets you select AVR as a platform from the managed make project.
>
> Now I want to include support for the cross platform GDB debugger.
> (avr-gdb).
>
> Can somebody point me in the right direction?
>
> Cannot get the avr-gdb to run under eclipse, the Debug button is disabled
> when I select an AVR ELF file. I'm guessing that somewhare a match between
> platform and the target platform in the ELF file is matched to the available
> debuggers.
>
> Is there a doc somewhere or can somebody just quickly explain the
> mechanisms?
> Thanks.
>
> Regard Jorgen
>
>
Hello Jorgen,
I have the same problem: I want to use the GNU Toolchain for the µC
MSP430 (msp430-gcc + msp430-gdb).
When I select a binary .hex file in the DEBUG-Main tab Button [Search]
it says: Qualifier - nonele /filename.hex
It seems that the Debugger Module can't recognize the binary file. It
says: no debugger available in the DEBUG-Debugger tab.
Take a look at:
http://www.rtems.com/ml/rtems-users/2003/september/msg00303. html
where it is discribed to change some things for the Debugger.
I use WINXP and Eclipse3.0 M7 with CDT 2.0 M7. With the msp430-gdb I use
it doesn't work, but maybe with the avr-gdb.
Good luck, Jorgen
Yours respectfully
Rüdiger
PS: If someone has an idea how to get the debugger to work, please let
me know.
|
|
|
Re: Cross platform debugger... how to make CDT recognize cross target platform+debugger? [message #95910 is a reply to message #95896] |
Mon, 01 March 2004 14:35 |
Eclipse User |
|
|
|
Originally posted by: jorgen.birkler.se
Found a solution...
I was browsing the ELF parser and found that only a fixed set of
architectures where recognized. AVR is recognized as "none".
Create a plugin with the following extension:
<plugin>
<extension
point="org.eclipse.cdt.debug.core.CDebugger">
<debugger
platform="native"
name="AVR GDB Debugger"
modes="run,attach"
cpu="none,avr"
class="org.eclipse.cdt.debug.mi.core.GDBServerDebugger"
id="org.eclipse.cdt.debug.mi.core.GDBServerCDebugger">
</debugger>
</extension>
</plugin>
The "cpu="none,avr"" part is of course the magical stuff...
Managed to run avr-gdb as server within Eclipse :)
Regards
Jörgen
user@domain.invalid wrote:
> Jorgen Birkler wrote:
> > Running the gnu toolchain for an embedded target (AVR). Managed to create a
> > plugin that lets you select AVR as a platform from the managed make
project.
> >
> > Now I want to include support for the cross platform GDB debugger.
> > (avr-gdb).
> >
> > Can somebody point me in the right direction?
> >
> > Cannot get the avr-gdb to run under eclipse, the Debug button is disabled
> > when I select an AVR ELF file. I'm guessing that somewhare a match between
> > platform and the target platform in the ELF file is matched to the
available
> > debuggers.
> >
> > Is there a doc somewhere or can somebody just quickly explain the
> > mechanisms?
> > Thanks.
> >
> > Regard Jorgen
> >
> >
> Hello Jorgen,
> I have the same problem: I want to use the GNU Toolchain for the µC
> MSP430 (msp430-gcc + msp430-gdb).
> When I select a binary .hex file in the DEBUG-Main tab Button [Search]
> it says: Qualifier - nonele /filename.hex
> It seems that the Debugger Module can't recognize the binary file. It
> says: no debugger available in the DEBUG-Debugger tab.
> Take a look at:
> http://www.rtems.com/ml/rtems-users/2003/september/msg00303. html
> where it is discribed to change some things for the Debugger.
> I use WINXP and Eclipse3.0 M7 with CDT 2.0 M7. With the msp430-gdb I use
> it doesn't work, but maybe with the avr-gdb.
> Good luck, Jorgen
> Yours respectfully
> Rüdiger
> PS: If someone has an idea how to get the debugger to work, please let
> me know.
|
|
|
Re: Cross platform debugger... how to make CDT recognize cross target platform+debugger? [message #95924 is a reply to message #95910] |
Mon, 01 March 2004 20:37 |
Rüdiger Ibers Messages: 3 Registered: July 2009 |
Junior Member |
|
|
Hello Jörgen,
Tanks for the answer, but I have no idea, how to create a plugin. Do I
have to write a new plugin??
I tried to modify the plugin.xml in the
plugins\org.eclipse.cdt.debug.mi.core_2.0.0 directory, but that doesn't
fit. The debug window will only show the old three debuggers. If I
change the the cpu="native" to cpu="none,msp430" or something like that
from the GDB Server Debugger property, it will not be listed any more.
But anyway I can change the debuggers name :-) without disapearing from
the dropdown list.
Any ideas??
Thanks a lot,
Rüdiger
Jörgen Birkler wrote:
> Found a solution...
> I was browsing the ELF parser and found that only a fixed set of
> architectures where recognized. AVR is recognized as "none".
>
> Create a plugin with the following extension:
>
> <plugin>
> <extension
> point="org.eclipse.cdt.debug.core.CDebugger">
> <debugger
> platform="native"
> name="AVR GDB Debugger"
> modes="run,attach"
> cpu="none,avr"
> class="org.eclipse.cdt.debug.mi.core.GDBServerDebugger"
> id="org.eclipse.cdt.debug.mi.core.GDBServerCDebugger">
> </debugger>
> </extension>
>
> </plugin>
>
>
> The "cpu="none,avr"" part is of course the magical stuff...
>
> Managed to run avr-gdb as server within Eclipse :)
>
> Regards
>
> Jörgen
>
> user@domain.invalid wrote:
>
>
>>Jorgen Birkler wrote:
>>
>>>Running the gnu toolchain for an embedded target (AVR). Managed to create a
>>>plugin that lets you select AVR as a platform from the managed make
>
> project.
>
>>>Now I want to include support for the cross platform GDB debugger.
>>>(avr-gdb).
>>>
>>>Can somebody point me in the right direction?
>>>
>>>Cannot get the avr-gdb to run under eclipse, the Debug button is disabled
>>>when I select an AVR ELF file. I'm guessing that somewhare a match between
>>>platform and the target platform in the ELF file is matched to the
>
> available
>
>>>debuggers.
>>>
>>>Is there a doc somewhere or can somebody just quickly explain the
>>>mechanisms?
>>>Thanks.
>>>
>>>Regard Jorgen
>>>
>>>
>
>
>>Hello Jorgen,
>>I have the same problem: I want to use the GNU Toolchain for the µC
>>MSP430 (msp430-gcc + msp430-gdb).
>
>
>>When I select a binary .hex file in the DEBUG-Main tab Button [Search]
>>it says: Qualifier - nonele /filename.hex
>
>
>>It seems that the Debugger Module can't recognize the binary file. It
>>says: no debugger available in the DEBUG-Debugger tab.
>
>
>>Take a look at:
>> http://www.rtems.com/ml/rtems-users/2003/september/msg00303. html
>>where it is discribed to change some things for the Debugger.
>
>
>>I use WINXP and Eclipse3.0 M7 with CDT 2.0 M7. With the msp430-gdb I use
>>it doesn't work, but maybe with the avr-gdb.
>
>
>>Good luck, Jorgen
>
>
>>Yours respectfully
>>Rüdiger
>
>
>>PS: If someone has an idea how to get the debugger to work, please let
>>me know.
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02644 seconds