For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > July 2007 > start gdb in 'running' mode









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author start gdb in 'running' mode
Johan

2007-07-12, 4:18 am

I'm developing an embedded C application for an ARM7 processor with a
GNU toolchain. I'm using gdb to debug on the target. However, when I
start debugging (from Eclipse) it always starts in 'suspended' mode,
so I have to resume it always before the code actually runs. Is it
possible to start debugging with gdb in running mode?

Note: Eclipse uses a gdb script to do the hard work. Here are the last
two lines of it:

# Load the executable and symbols (all in image.elf)
load image.elf

What do I need to add to the script so it starts running automatically?

Johan

2007-07-12, 4:18 am

On Jul 12, 9:29 am, Johan <joh...@gmail.com> wrote:
> I'm developing an embedded C application for an ARM7 processor with a
> GNU toolchain. I'm using gdb to debug on the target. However, when I
> start debugging (from Eclipse) it always starts in 'suspended' mode,
> so I have to resume it always before the code actually runs. Is it
> possible to start debugging with gdb in running mode?
>
> Note: Eclipse uses a gdb script to do the hard work. Here are the last
> two lines of it:
>
> # Load the executable and symbols (all in image.elf)
> load image.elf
>
> What do I need to add to the script so it starts running automatically?


P.S. I did already try to add "run" to the bottom of the script. This
didn't work (same behavior).

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com