Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-debug-dev] What does CDT expect from gdb ?

Since the debugger is gdb, can I simply access the gdb console? 

Yes, partially. The console can be flipped into gdb mode (see the "Show
Debugger Console" button in the debugger view which does this) and you
can type in commands at that point. Doing this can possibly
de-synchronize the IDE with gdb, so you should be careful to what extent
you drive the debugger using this interface. 


________________________________________________________________________
  * Can I see/log all of the commands which are being driven to gdb? 

Yes, you can turn on tracing for the debug plugin and it will show you
all of the information about what commands are being sent to gdb. To run
with tracing: 


I assume you mean this, in the general CDT FAQ, under debugging:

4) Since the debugger is gdb, can I simply access the gdb console? 
 Yes, partially. The console can be flipped into gdb mode (see the "Show
Debugger Console" button in the debugger view which does this) and you
can type in commands at that point. Doing this can possibly
de-synchronize the IDE with gdb, so you should be careful to what extent
you drive the debugger using this interface. 

5) Can I see/log all of the commands which are being driven to gdb? 
 Yes, you can turn on tracing for the debug plugin and it will show you
all of the information about what commands are being sent to gdb. To run
with tracing: 
Create a file (for example, .options)
Add the following line to it:
         org.eclipse.cdt.debug.mi.core/debug=true
Start Eclipse with:
         -debug "file:<full path>/.options"


On Fri, 2005-12-09 at 09:24 -0700, Kim Lux wrote:
> On Fri, 2005-12-09 at 11:05 -0500, Mikhail Khodjaiants wrote:
> > See the CDT debugger FAQ #5.
> 
> Where ?
-- 
Kim Lux,  Diesel Research Inc.




Back to the top