Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Debugging (Cygwin, MIPS toolchain)
Debugging (Cygwin, MIPS toolchain) [message #58078] Wed, 15 January 2003 10:24 Go to next message
Eclipse UserFriend
Originally posted by: goran.pantar.xylon.hr

I'm using Eclipse IDE with CDT pluggin on Windows/Cygwin with mips-elf
toolchail (mips-elf-gcc, mips-elf-gdb..). I can build "Standard Make C
projects" and debug with Insight gdb as external tool.

Is it possible to debug with mipsel-elf-gdb within Eclipse/CDT debugging
interface?

I use:
CDT: org.eclipse.cdt-200301080308-win32_1.0.1.bin.dist.zip
Eclipse: eclipse-SDK-M4-win32.zip

Thank you

goran
Re: Debugging (Cygwin, MIPS toolchain) [message #58148 is a reply to message #58078] Wed, 15 January 2003 13:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kishore.tlon.de

Dear Mr.Goran,
I am also facing a similar problem. Except that i use arm-elf tool chain.
I could debug externally. But when i try to debug in the CDT domain, the
project debugger option says: no debugger available.
I am using Insight arm-elf-gdb.exe(v5.2.1). Optionally i also tried with
PURE version gdb ,but dint help.

Also If i need to change the settings of tartget in gdb within cdt domain,
should i only use command version gdb?

I would very much appreciate, if someone could help.Im very much impressed
with eclipse environment and i am curious to use, if eclipse could support
it at this stage.

thanks in advance,
Kishore Kumar Sathyanandam
TLON GmbH
kishore@tlon.de
+49 (0)791 - 9305017
"goran pantar" <goran.pantar@xylon.hr> schrieb im Newsbeitrag
news:b03ct8$sbk$1@rogue.oti.com...
> I'm using Eclipse IDE with CDT pluggin on Windows/Cygwin with mips-elf
> toolchail (mips-elf-gcc, mips-elf-gdb..). I can build "Standard Make C
> projects" and debug with Insight gdb as external tool.
>
> Is it possible to debug with mipsel-elf-gdb within Eclipse/CDT debugging
> interface?
>
> I use:
> CDT: org.eclipse.cdt-200301080308-win32_1.0.1.bin.dist.zip
> Eclipse: eclipse-SDK-M4-win32.zip
>
> Thank you
>
> goran
>
Re: Debugging (Cygwin, MIPS toolchain) [message #58172 is a reply to message #58148] Wed, 15 January 2003 19:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

Unfortunately you can not debug remote targets with this version of CDT. It
needs an extension to support the remote debugging.

Mikhail Khodjaiants

"Kishore Kumar Sathyanandam" <kishore@tlon.de> wrote in message
news:b03nee$56a$1@rogue.oti.com...
> Dear Mr.Goran,
> I am also facing a similar problem. Except that i use arm-elf tool chain.
> I could debug externally. But when i try to debug in the CDT domain, the
> project debugger option says: no debugger available.
> I am using Insight arm-elf-gdb.exe(v5.2.1). Optionally i also tried with
> PURE version gdb ,but dint help.
>
> Also If i need to change the settings of tartget in gdb within cdt domain,
> should i only use command version gdb?
>
> I would very much appreciate, if someone could help.Im very much
impressed
> with eclipse environment and i am curious to use, if eclipse could support
> it at this stage.
>
> thanks in advance,
> Kishore Kumar Sathyanandam
> TLON GmbH
> kishore@tlon.de
> +49 (0)791 - 9305017
> "goran pantar" <goran.pantar@xylon.hr> schrieb im Newsbeitrag
> news:b03ct8$sbk$1@rogue.oti.com...
> > I'm using Eclipse IDE with CDT pluggin on Windows/Cygwin with mips-elf
> > toolchail (mips-elf-gcc, mips-elf-gdb..). I can build "Standard Make C
> > projects" and debug with Insight gdb as external tool.
> >
> > Is it possible to debug with mipsel-elf-gdb within Eclipse/CDT debugging
> > interface?
> >
> > I use:
> > CDT: org.eclipse.cdt-200301080308-win32_1.0.1.bin.dist.zip
> > Eclipse: eclipse-SDK-M4-win32.zip
> >
> > Thank you
> >
> > goran
> >
>
>
Re: Debugging (Cygwin, MIPS toolchain) [message #58246 is a reply to message #58172] Thu, 16 January 2003 07:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: johan.nosp.m.appeal.se

Have you thought about just calling gdb through ssh? Wouldn't that be a
way of solving the problem without much work? So instead of starting
gdb with "/usr/bin/gdb" or whatever you do currently, start it with "ssh
remotehost /usr/bin/gdb".

Cheers //Johan

Mikhail Khodjaiants wrote:
> Unfortunately you can not debug remote targets with this version of CDT. It
> needs an extension to support the remote debugging.
>
> Mikhail Khodjaiants
>
> "Kishore Kumar Sathyanandam" <kishore@tlon.de> wrote in message
> news:b03nee$56a$1@rogue.oti.com...
>
>>Dear Mr.Goran,
>>I am also facing a similar problem. Except that i use arm-elf tool chain.
>>I could debug externally. But when i try to debug in the CDT domain, the
>>project debugger option says: no debugger available.
>>I am using Insight arm-elf-gdb.exe(v5.2.1). Optionally i also tried with
>>PURE version gdb ,but dint help.
>>
>>Also If i need to change the settings of tartget in gdb within cdt domain,
>>should i only use command version gdb?
>>
>>I would very much appreciate, if someone could help.Im very much
>
> impressed
>
>>with eclipse environment and i am curious to use, if eclipse could support
>>it at this stage.
>>
>>thanks in advance,
>>Kishore Kumar Sathyanandam
>>TLON GmbH
>>kishore@tlon.de
>>+49 (0)791 - 9305017
>>"goran pantar" <goran.pantar@xylon.hr> schrieb im Newsbeitrag
>>news:b03ct8$sbk$1@rogue.oti.com...
>>
>>>I'm using Eclipse IDE with CDT pluggin on Windows/Cygwin with mips-elf
>>>toolchail (mips-elf-gcc, mips-elf-gdb..). I can build "Standard Make C
>>>projects" and debug with Insight gdb as external tool.
>>>
>>>Is it possible to debug with mipsel-elf-gdb within Eclipse/CDT debugging
>>>interface?
>>>
>>>I use:
>>>CDT: org.eclipse.cdt-200301080308-win32_1.0.1.bin.dist.zip
>>>Eclipse: eclipse-SDK-M4-win32.zip
>>>
>>>Thank you
>>>
>>>goran
>>>
>>
>>
>
>
Re: Debugging (Cygwin, MIPS toolchain) [message #58271 is a reply to message #58172] Thu, 16 January 2003 09:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: goran.pantar.xylon.hr

Mikhail Khodjaiants wrote:

> Unfortunately you can not debug remote targets with this version of CDT. It
> needs an extension to support the remote debugging.

Is remote debugging planed to be done in near future. If not, do you
thing it would be a problem to implement it. We are very interested in
using Eclipse and this is the only thing missing to have complete IDE.

Goran Pantar

> Mikhail Khodjaiants

> \"Kishore Kumar Sathyanandam\" <kishore@tlon.de> wrote in message
> news:b03nee$56a$1@rogue.oti.com...
> > Dear Mr.Goran,
> > I am also facing a similar problem. Except that i use arm-elf tool chain.
> > I could debug externally. But when i try to debug in the CDT domain, the
> > project debugger option says: no debugger available.
> > I am using Insight arm-elf-gdb.exe(v5.2.1). Optionally i also tried with
> > PURE version gdb ,but dint help.
> >
> > Also If i need to change the settings of tartget in gdb within cdt domain,
> > should i only use command version gdb?
> >
> > I would very much appreciate, if someone could help.Im very much
> impressed
> > with eclipse environment and i am curious to use, if eclipse could support
> > it at this stage.
> >
> > thanks in advance,
> > Kishore Kumar Sathyanandam
> > TLON GmbH
> > kishore@tlon.de
> > +49 (0)791 - 9305017
> > \"goran pantar\" <goran.pantar@xylon.hr> schrieb im Newsbeitrag
> > news:b03ct8$sbk$1@rogue.oti.com...
> > > I\'m using Eclipse IDE with CDT pluggin on Windows/Cygwin with mips-elf
> > > toolchail (mips-elf-gcc, mips-elf-gdb..). I can build \"Standard Make C
> > > projects\" and debug with Insight gdb as external tool.
> > >
> > > Is it possible to debug with mipsel-elf-gdb within Eclipse/CDT debugging
> > > interface?
> > >
> > > I use:
> > > CDT: org.eclipse.cdt-200301080308-win32_1.0.1.bin.dist.zip
> > > Eclipse: eclipse-SDK-M4-win32.zip
> > >
> > > Thank you
> > >
> > > goran
> > >
> >
> >
Re: Debugging (Cygwin, MIPS toolchain) [message #58390 is a reply to message #58271] Thu, 16 January 2003 15:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

Yes, we are planning to implement remote debugging in the near future but
the release date has not set yet. I don't think it would be a problem, we
just have to write a special launcher.

Mikhail Khodjaiants

"goran pantar" <goran.pantar@xylon.hr> wrote in message
news:b05uhp$ndu$1@rogue.oti.com...
> Mikhail Khodjaiants wrote:
>
> > Unfortunately you can not debug remote targets with this version of CDT.
It
> > needs an extension to support the remote debugging.
>
> Is remote debugging planed to be done in near future. If not, do you
> thing it would be a problem to implement it. We are very interested in
> using Eclipse and this is the only thing missing to have complete IDE.
>
> Goran Pantar
>
> > Mikhail Khodjaiants
>
> > \"Kishore Kumar Sathyanandam\" <kishore@tlon.de> wrote in message
> > news:b03nee$56a$1@rogue.oti.com...
> > > Dear Mr.Goran,
> > > I am also facing a similar problem. Except that i use arm-elf tool
chain.
> > > I could debug externally. But when i try to debug in the CDT domain,
the
> > > project debugger option says: no debugger available.
> > > I am using Insight arm-elf-gdb.exe(v5.2.1). Optionally i also tried
with
> > > PURE version gdb ,but dint help.
> > >
> > > Also If i need to change the settings of tartget in gdb within cdt
domain,
> > > should i only use command version gdb?
> > >
> > > I would very much appreciate, if someone could help.Im very much
> > impressed
> > > with eclipse environment and i am curious to use, if eclipse could
support
> > > it at this stage.
> > >
> > > thanks in advance,
> > > Kishore Kumar Sathyanandam
> > > TLON GmbH
> > > kishore@tlon.de
> > > +49 (0)791 - 9305017
> > > \"goran pantar\" <goran.pantar@xylon.hr> schrieb im Newsbeitrag
> > > news:b03ct8$sbk$1@rogue.oti.com...
> > > > I\'m using Eclipse IDE with CDT pluggin on Windows/Cygwin with
mips-elf
> > > > toolchail (mips-elf-gcc, mips-elf-gdb..). I can build \"Standard
Make C
> > > > projects\" and debug with Insight gdb as external tool.
> > > >
> > > > Is it possible to debug with mipsel-elf-gdb within Eclipse/CDT
debugging
> > > > interface?
> > > >
> > > > I use:
> > > > CDT: org.eclipse.cdt-200301080308-win32_1.0.1.bin.dist.zip
> > > > Eclipse: eclipse-SDK-M4-win32.zip
> > > >
> > > > Thank you
> > > >
> > > > goran
> > > >
> > >
> > >
>
>
>
>
>
Re: Debugging (Cygwin, MIPS toolchain) [message #58521 is a reply to message #58390] Thu, 16 January 2003 17:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: goran.pantar.xylon.hr

Mikhail Khodjaiants wrote:

> Yes, we are planning to implement remote debugging in the near future but
> the release date has not set yet. I don't think it would be a problem, we
> just have to write a special launcher.

> Mikhail Khodjaiants

Do you mean that the only thing that needs to be done to call gdb with
parameters for remote debugging?
Something like this :
set remote baud 115200
target remote com1
load

Or maybe use gdb.ini?

goran





> "goran pantar" <goran.pantar@xylon.hr> wrote in message
> news:b05uhp$ndu$1@rogue.oti.com...
> > Mikhail Khodjaiants wrote:
> >
> > > Unfortunately you can not debug remote targets with this version of CDT.
> It
> > > needs an extension to support the remote debugging.
> >
> > Is remote debugging planed to be done in near future. If not, do you
> > thing it would be a problem to implement it. We are very interested in
> > using Eclipse and this is the only thing missing to have complete IDE.
> >
> > Goran Pantar
> >
> > > Mikhail Khodjaiants
> >
> > > \"Kishore Kumar Sathyanandam\" <kishore@tlon.de> wrote in message
> > > news:b03nee$56a$1@rogue.oti.com...
> > > > Dear Mr.Goran,
> > > > I am also facing a similar problem. Except that i use arm-elf tool
> chain.
> > > > I could debug externally. But when i try to debug in the CDT domain,
> the
> > > > project debugger option says: no debugger available.
> > > > I am using Insight arm-elf-gdb.exe(v5.2.1). Optionally i also tried
> with
> > > > PURE version gdb ,but dint help.
> > > >
> > > > Also If i need to change the settings of tartget in gdb within cdt
> domain,
> > > > should i only use command version gdb?
> > > >
> > > > I would very much appreciate, if someone could help.Im very much
> > > impressed
> > > > with eclipse environment and i am curious to use, if eclipse could
> support
> > > > it at this stage.
> > > >
> > > > thanks in advance,
> > > > Kishore Kumar Sathyanandam
> > > > TLON GmbH
> > > > kishore@tlon.de
> > > > +49 (0)791 - 9305017
> > > > \"goran pantar\" <goran.pantar@xylon.hr> schrieb im Newsbeitrag
> > > > news:b03ct8$sbk$1@rogue.oti.com...
> > > > > I\'m using Eclipse IDE with CDT pluggin on Windows/Cygwin with
> mips-elf
> > > > > toolchail (mips-elf-gcc, mips-elf-gdb..). I can build \"Standard
> Make C
> > > > > projects\" and debug with Insight gdb as external tool.
> > > > >
> > > > > Is it possible to debug with mipsel-elf-gdb within Eclipse/CDT
> debugging
> > > > > interface?
> > > > >
> > > > > I use:
> > > > > CDT: org.eclipse.cdt-200301080308-win32_1.0.1.bin.dist.zip
> > > > > Eclipse: eclipse-SDK-M4-win32.zip
> > > > >
> > > > > Thank you
> > > > >
> > > > > goran
> > > > >
> > > >
> > > >
> >
> >
> >
> >
> >
Re: Debugging (Cygwin, MIPS toolchain) [message #58559 is a reply to message #58521] Thu, 16 January 2003 19:08 Go to previous messageGo to next message
David Inglis is currently offline David InglisFriend
Messages: 45
Registered: July 2009
Member
Current the CDI framework does not support remote debugging (in a generic way)
so either you need to create your own launch delegate within the eclipse framework
(involving work that maybe not necessary in the future...) or you could try creating
a gdbinit file with the initial set of commands needed to start the remote debug session
and add the command line argument --command=<gdbinit> to gdb in the debugger tab (I have not
tried this myself so let us know if this works...)

Dave.


Goran Pantar wrote:
> Mikhail Khodjaiants wrote:
>
>
>>Yes, we are planning to implement remote debugging in the near future but
>>the release date has not set yet. I don't think it would be a problem, we
>>just have to write a special launcher.
>
>
>>Mikhail Khodjaiants
>
>
> Do you mean that the only thing that needs to be done to call gdb with
> parameters for remote debugging?
> Something like this :
> set remote baud 115200
> target remote com1
> load
>
> Or maybe use gdb.ini?
>
> goran
>
>
>
>
>
>
>>"goran pantar" <goran.pantar@xylon.hr> wrote in message
>>news:b05uhp$ndu$1@rogue.oti.com...
>>
>>>Mikhail Khodjaiants wrote:
>>>
>>>
>>>>Unfortunately you can not debug remote targets with this version of CDT.
>>>
>>It
>>
>>>>needs an extension to support the remote debugging.
>>>
>>>Is remote debugging planed to be done in near future. If not, do you
>>>thing it would be a problem to implement it. We are very interested in
>>>using Eclipse and this is the only thing missing to have complete IDE.
>>>
>>>Goran Pantar
>>>
>>>
>>>>Mikhail Khodjaiants
>>>
>>>>\"Kishore Kumar Sathyanandam\" <kishore@tlon.de> wrote in message
>>>>news:b03nee$56a$1@rogue.oti.com...
>>>>
>>>>>Dear Mr.Goran,
>>>>>I am also facing a similar problem. Except that i use arm-elf tool
>>>>
>>chain.
>>
>>>>>I could debug externally. But when i try to debug in the CDT domain,
>>>>
>>the
>>
>>>>>project debugger option says: no debugger available.
>>>>>I am using Insight arm-elf-gdb.exe(v5.2.1). Optionally i also tried
>>>>
>>with
>>
>>>>>PURE version gdb ,but dint help.
>>>>>
>>>>>Also If i need to change the settings of tartget in gdb within cdt
>>>>
>>domain,
>>
>>>>>should i only use command version gdb?
>>>>>
>>>>>I would very much appreciate, if someone could help.Im very much
>>>>
>>>>impressed
>>>>
>>>>>with eclipse environment and i am curious to use, if eclipse could
>>>>
>>support
>>
>>>>>it at this stage.
>>>>>
>>>>>thanks in advance,
>>>>>Kishore Kumar Sathyanandam
>>>>>TLON GmbH
>>>>>kishore@tlon.de
>>>>>+49 (0)791 - 9305017
>>>>>\"goran pantar\" <goran.pantar@xylon.hr> schrieb im Newsbeitrag
>>>>>news:b03ct8$sbk$1@rogue.oti.com...
>>>>>
>>>>>>I\'m using Eclipse IDE with CDT pluggin on Windows/Cygwin with
>>>>>
>>mips-elf
>>
>>>>>>toolchail (mips-elf-gcc, mips-elf-gdb..). I can build \"Standard
>>>>>
>>Make C
>>
>>>>>>projects\" and debug with Insight gdb as external tool.
>>>>>>
>>>>>>Is it possible to debug with mipsel-elf-gdb within Eclipse/CDT
>>>>>
>>debugging
>>
>>>>>>interface?
>>>>>>
>>>>>>I use:
>>>>>>CDT: org.eclipse.cdt-200301080308-win32_1.0.1.bin.dist.zip
>>>>>>Eclipse: eclipse-SDK-M4-win32.zip
>>>>>>
>>>>>>Thank you
>>>>>>
>>>>>>goran
>>>>>>
>>>>>
>>>>>
>>>
>>>
>>>
>>>
>
>
>
>
>
Re: Debugging (Cygwin, MIPS toolchain) [message #58702 is a reply to message #58559] Fri, 17 January 2003 10:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: goran.pantar.xylon.hr

I have created simple gdb.ini file (located in Eclipse project directory)
which sets breakpoint to function "function1" (break function1).
When I start gdb from command prompt with: gdb -nw -x gdb.ini
my_program.exe ; it reads gdb.ini and sets breakpoint. (also works with:
gdb -nw -command gdb.ini my_program.exe )
But when I start debuginig from Eclipce and add to debuger tab "MI
Debugger: gcc -x gdb.ini". It doesn't work, no break point is set, it
probably didn't read -x option and gdb.ini.

Does that mean that I can't set extra options in tab "MI Debugger:" ? That
only name of debugger is read, and -x is ignored?

Or maybe I'm doing something wrong?

goran



David Inglis wrote:


> Current the CDI framework does not support remote debugging (in a generic
way)
> so either you need to create your own launch delegate within the eclipse
framework
> (involving work that maybe not necessary in the future...) or you could try
creating
> a gdbinit file with the initial set of commands needed to start the remote
debug session
> and add the command line argument --command=<gdbinit> to gdb in the debugger
tab (I have not
> tried this myself so let us know if this works...)

> Dave.


> Goran Pantar wrote:
> > Mikhail Khodjaiants wrote:
> >
> >
> >>Yes, we are planning to implement remote debugging in the near future but
> >>the release date has not set yet. I don't think it would be a problem, we
> >>just have to write a special launcher.
> >
> >
> >>Mikhail Khodjaiants
> >
> >
> > Do you mean that the only thing that needs to be done to call gdb with
> > parameters for remote debugging?
> > Something like this :
> > set remote baud 115200
> > target remote com1
> > load
> >
> > Or maybe use gdb.ini?
> >
> > goran
> >
> >
> >
> >
> >
> >
> >>"goran pantar" <goran.pantar@xylon.hr> wrote in message
> >>news:b05uhp$ndu$1@rogue.oti.com...
> >>
> >>>Mikhail Khodjaiants wrote:
> >>>
> >>>
> >>>>Unfortunately you can not debug remote targets with this version of CDT.
> >>>
> >>It
> >>
> >>>>needs an extension to support the remote debugging.
> >>>
> >>>Is remote debugging planed to be done in near future. If not, do you
> >>>thing it would be a problem to implement it. We are very interested in
> >>>using Eclipse and this is the only thing missing to have complete IDE.
> >>>
> >>>Goran Pantar
> >>>
> >>>
> >>>>Mikhail Khodjaiants
> >>>
> >>>>\"Kishore Kumar Sathyanandam\" <kishore@tlon.de> wrote in message
> >>>>news:b03nee$56a$1@rogue.oti.com...
> >>>>
> >>>>>Dear Mr.Goran,
> >>>>>I am also facing a similar problem. Except that i use arm-elf tool
> >>>>
> >>chain.
> >>
> >>>>>I could debug externally. But when i try to debug in the CDT domain,
> >>>>
> >>the
> >>
> >>>>>project debugger option says: no debugger available.
> >>>>>I am using Insight arm-elf-gdb.exe(v5.2.1). Optionally i also tried
> >>>>
> >>with
> >>
> >>>>>PURE version gdb ,but dint help.
> >>>>>
> >>>>>Also If i need to change the settings of tartget in gdb within cdt
> >>>>
> >>domain,
> >>
> >>>>>should i only use command version gdb?
> >>>>>
> >>>>>I would very much appreciate, if someone could help.Im very much
> >>>>
> >>>>impressed
> >>>>
> >>>>>with eclipse environment and i am curious to use, if eclipse could
> >>>>
> >>support
> >>
> >>>>>it at this stage.
> >>>>>
> >>>>>thanks in advance,
> >>>>>Kishore Kumar Sathyanandam
> >>>>>TLON GmbH
> >>>>>kishore@tlon.de
> >>>>>+49 (0)791 - 9305017
> >>>>>\"goran pantar\" <goran.pantar@xylon.hr> schrieb im Newsbeitrag
> >>>>>news:b03ct8$sbk$1@rogue.oti.com...
> >>>>>
> >>>>>>I\'m using Eclipse IDE with CDT pluggin on Windows/Cygwin with
> >>>>>
> >>mips-elf
> >>
> >>>>>>toolchail (mips-elf-gcc, mips-elf-gdb..). I can build \"Standard
> >>>>>
> >>Make C
> >>
> >>>>>>projects\" and debug with Insight gdb as external tool.
> >>>>>>
> >>>>>>Is it possible to debug with mipsel-elf-gdb within Eclipse/CDT
> >>>>>
> >>debugging
> >>
> >>>>>>interface?
> >>>>>>
> >>>>>>I use:
> >>>>>>CDT: org.eclipse.cdt-200301080308-win32_1.0.1.bin.dist.zip
> >>>>>>Eclipse: eclipse-SDK-M4-win32.zip
> >>>>>>
> >>>>>>Thank you
> >>>>>>
> >>>>>>goran
> >>>>>>
> >>>>>
> >>>>>
> >>>
> >>>
> >>>
> >>>
> >
> >
> >
> >
> >
Remote Debugging in Eclipse/CDT [message #58851 is a reply to message #58702] Mon, 20 January 2003 16:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: goran.pantar.xylon.hr

I can compile in Eclipse/CDT with mips-elf-gcc cross compiler (for MIPS
processor, Cygwin, Eclipse:C Make project).
But I can't debug.( I have mips-elf-gdb, ver. 5.2.1).
I know that remote debugging is not supported in Eclipse jet, but I'm
interested in possibility to use gdb.ini file to initialize remote
debugging.

But the problem is that I can't even select debugger in Eclipse. When I
select exe file (compiled in debug mode with mips-elf-gcc) I can no longer
see "Cygwin GDB Debugger" or "GDB debugger" options in "Debugger:" combo
box. Also there is nothing in "Debugger Options" selection and I get
error "No debugger available".

My exe file in C/C++ Projects window has "-[mipsle]" mark and is
represented with the "Running man icon". Also exe file can be opened in
Eclipse editor.

Does anybody know how to setup remote debugging in Eclipse?

Thank You

goran
Re: Remote Debugging in Eclipse/CDT [message #58949 is a reply to message #58851] Mon, 20 January 2003 18:34 Go to previous messageGo to next message
David Inglis is currently offline David InglisFriend
Messages: 45
Registered: July 2009
Member
We made some changes/additions to the mi plugin to help with this, the changes
are in cvs so you will need to check it out and build it yourself to try them out.
Essentially there is a new field to specify the gdb command file to startup
with.

Your second problem can be fixed by adding the string "mips" to the cpu
attribute for the debugger extension in the mi.core plugin.xml file, currently
only "native" is there.

Hope this helps.

Dave

Goran Pantar wrote:
> I can compile in Eclipse/CDT with mips-elf-gcc cross compiler (for MIPS
> processor, Cygwin, Eclipse:C Make project).
> But I can't debug.( I have mips-elf-gdb, ver. 5.2.1).
> I know that remote debugging is not supported in Eclipse jet, but I'm
> interested in possibility to use gdb.ini file to initialize remote
> debugging.
>
> But the problem is that I can't even select debugger in Eclipse. When I
> select exe file (compiled in debug mode with mips-elf-gcc) I can no longer
> see "Cygwin GDB Debugger" or "GDB debugger" options in "Debugger:" combo
> box. Also there is nothing in "Debugger Options" selection and I get
> error "No debugger available".
>
> My exe file in C/C++ Projects window has "-[mipsle]" mark and is
> represented with the "Running man icon". Also exe file can be opened in
> Eclipse editor.
>
> Does anybody know how to setup remote debugging in Eclipse?
>
> Thank You
>
> goran
>
>
>
>
>
>
Re: Remote Debugging in Eclipse/CDT [message #59049 is a reply to message #58949] Tue, 21 January 2003 10:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: goran.pantar.xylon.hr

Dear David
Thank you very much. I have added "mips" in plugin.xml and now it finally
works. I can select Cygwin GDB debugger and start debugging.
It still did'n accept command to read gdb.ini (gdb -x gdb.ini in "MI
Debugger:" box). But I can start remote debugging by entering commands in
Cygwin GDB Debugger console window : set remotebaud 115200; target remote
com1; load.

Now I will try with new mi plugin from CVS. I hope that new field will
accept option "-x gdb.ini" to read gdb.ini file.

Thank you.

Goran


> We made some changes/additions to the mi plugin to help with this, the
changes
> are in cvs so you will need to check it out and build it yourself to try
them out.
> Essentially there is a new field to specify the gdb command file to startup
> with.

> Your second problem can be fixed by adding the string "mips" to the cpu
> attribute for the debugger extension in the mi.core plugin.xml file,
currently
> only "native" is there.

> Hope this helps.

> Dave

> Goran Pantar wrote:
> > I can compile in Eclipse/CDT with mips-elf-gcc cross compiler (for MIPS
> > processor, Cygwin, Eclipse:C Make project).
> > But I can't debug.( I have mips-elf-gdb, ver. 5.2.1).
> > I know that remote debugging is not supported in Eclipse jet, but I'm
> > interested in possibility to use gdb.ini file to initialize remote
> > debugging.
> >
> > But the problem is that I can't even select debugger in Eclipse. When I
> > select exe file (compiled in debug mode with mips-elf-gcc) I can no longer
> > see "Cygwin GDB Debugger" or "GDB debugger" options in "Debugger:" combo
> > box. Also there is nothing in "Debugger Options" selection and I get
> > error "No debugger available".
> >
> > My exe file in C/C++ Projects window has "-[mipsle]" mark and is
> > represented with the "Running man icon". Also exe file can be opened in
> > Eclipse editor.
> >
> > Does anybody know how to setup remote debugging in Eclipse?
> >
> > Thank You
> >
> > goran
> >
> >
> >
> >
> >
> >
Remote Debugging in Eclipse/CDT works! [message #59401 is a reply to message #59049] Wed, 22 January 2003 13:16 Go to previous message
Eclipse UserFriend
Originally posted by: goran.pantar.xylon.hr

Thanks to David Inglis and other CDT developers who added new options to
CDT and made remote debuging possible.

Instructions to setup remote debugging (Mips platform):

You can download new nightly build (2003/01/20) of CDT at
http://download.eclipse.org/tools/cdt/downloads/cdt/eclipse- CDT-200301200336-win32_1.0.1.bin.dist.zip.

Unzip it in Eclipse folder.
Add string "mips" to cpu attribute in file
../eclipse/plugins/org.eclipse.cdt.debug.mi.core_1.0.1/plugi n.xml,
(like this
<debugger
platform="win32"
name="%CygwinGDBDebugger.name"
modes="run,core,attach"
cpu="native,mips" <- here was only native
class="org.eclipse.cdt.debug.mi.core.CygwinGDBDebugger"
id="org.eclipse.cdt.debug.mi.core.CygwinCDebugger">
</debugger>).

In Eclipse Window->preferences->C/C++->Debug->GDB MI/ you must set MI
debugget timeout to longer time period (100000ms) so it doesnt timeout
during download of code to remote target.

You must create gdb.ini file with these commands (sets up serial remote
debugging):
set remotebaud 115200
target remote com1 //or com2
load

Go to Eclipse menu Run->Debug..
In Main: setup file to debug
In Debugger: setup CygwinGDBDebugger, Browse to location of gdb(ver.
5.2.1), Browse to location of gdb.ini.
Press Debug


Goran Pantar
Previous Topic:Use bugzilla for bugs report(PR)
Next Topic:Using environment variables
Goto Forum:
  


Current Time: Fri Apr 19 22:53:42 GMT 2024

Powered by FUDForum. Page generated in 0.04118 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top