Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-debug-dev] Another graphics interface to GDB - DDD

1 minute eh =;-)

Well given the constraints of the Eclipse IDE and its workspaces it is 
nearly as easy assuming that you have myimage.elf in your workspace:

- Select Debug...
- Select C/C++ Local
- Main tab: Select your project, myimage.elf as the binary
- Debugger tab: Select gdb server, TCP, your IP, your Port
{Tricky Part}
- Create a file with:
   monitor reset
   set $pc=0x1030000
  in it and set it as the command file
- Debug

Of course the astute reader will note that this won't work and needs
just a few little tweaks:
1- (Not a bug, just inconvenient) We should be able to put the init 
   command information in the dialog if it is simple enough so you 
   don't need a file.
2- When you debug the current mapping is to say "run" rather than 
   continue.  Continue is only used during attaching to processes.
   Since you don't have a process (presumably) then this is a bit
   of a problem.

I'm sure that if you made contributions to work around this no one is
going to complain =;-)

Thomas

> -----Original Message-----
> From: Øyvind Harboe [mailto:oyvind.harboe@xxxxxxxxx]
> Sent: Thursday, May 06, 2004 7:04 AM
> To: cdt-debug-dev@xxxxxxxxxxx
> Subject: [cdt-debug-dev] Another graphics interface to GDB - DDD
> 
> 
> I just stumbled across this GDB frontend.
> 
> http://www.gnu.org/software/ddd/
> 
> The graphing capability should come in handy occasionally. 
> 
> (I'm having trouble with my wireless keyboard and 
> accidentally typed ddd
> + return on the CygWin command line :-) 
> 
> Perhaps it could be handy as a "second opinion" on how to torture GDB?
> 
> Riding my hobby horse again... Yes, I know the CDT debugger 
> is currently
> being reworked...
> 
> I got DDD running with my arm-elf JTAG debugger in 1 minute. This is
> something that CDT should definitely pick up on.
> 
> $ ddd --debugger arm-elf-gdb myimage.elf
> 
> Then in the GDB console:
> 
> target remote 192.168.222.200:2001
> monitor reset
> set $pc=0x1030000
> c
> 
> Voila!
> 
> -- 
> 
> Øyvind Harboe
> http://www.zylin.com
> 
> 
> 
> _______________________________________________
> cdt-debug-dev mailing list
> cdt-debug-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/cdt-debug-dev
> 


Back to the top