Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse GDB settings and usage questions
Eclipse GDB settings and usage questions [message #165968] Thu, 16 March 2006 19:18 Go to next message
Eclipse UserFriend
Originally posted by: mitchell.fang.gmail.com

Hi,

I have a few questions when using GDB within Eclipse. First let me
give you some background information. I'm trying to debug a remote
target. I use it to debug a C/C++ local application and set the
debugger as GDB Server. I'm able to connect to a gdb stub and that
works fine. There are some additional things that I would like to know
if Eclipse can do.

1. What does the "GDB command file" option do? Is it for the .gdbinit?
I was thinking it was more like the gdb command "source" but looking
at the gdb logfile I can't really tell what happens when the "GDB
command file" option is set? Is the command file suppose to be called
right after gdb finishes connection to the target and before Eclipse
does it's inquiry on the target? The reason is I have need to run a
command file before I load a program in order to initialize memory on
the target.

2. I just wanted to reconfirm that when it connects, eclipse doesn't
load the application that is being debugged correct? Has anybody came
up with a solution so that it will automatically load the application
when it connects?

In reading some of previous posts, it seems like most people just
changed the .gdbinit file. I would like to avoid that since that means
the user would have to change the .gdbinit file for application that he
needs to be debugged.

Thanks
Mitchell
Re: Eclipse GDB settings and usage questions [message #165991 is a reply to message #165968] Fri, 17 March 2006 01:53 Go to previous message
Eclipse UserFriend
Mitchell,

> 1. What does the "GDB command file" option do? Is it for the .gdbinit?
Basically yes. If you specify a gdb command file, say "command.txt", then
gdb will be started with the option -x command.txt. See the gdb
documentation on details of the -x option.

> 2. I just wanted to reconfirm that when it connects, eclipse doesn't
Yes, the eclipse gdbserver Debugger does not do this. We have found two
workarounds for this:
- Using command files (which is not very elegant)
- Using the Zylin-modified CDT instead of the original one. See
http://www.zylin.com/embeddedcdt.html for more details. This method was our
favorite since it allows you to enter the gdb startup commands from the
eclipse UI into a textbox which is stored as part of the launch
configuration.

Cheers,


Norbert Ploett
Previous Topic:filtype highlighting
Next Topic:Cygwin Path
Goto Forum:
  


Current Time: Thu Jul 17 20:54:36 EDT 2025

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

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

Back to the top