Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* set debug entry point
@ 2013-04-07 14:24 ishare
  2013-04-07 14:31 ` Joel Sherrill
  0 siblings, 1 reply; 2+ messages in thread
From: ishare @ 2013-04-07 14:24 UTC (permalink / raw)
  To: gdb

  
   If one elf has no main , where does gdb start  to trace it ?

   is there mothod to tell gdb start at specified address?

   tks!


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: set debug entry point
  2013-04-07 14:24 set debug entry point ishare
@ 2013-04-07 14:31 ` Joel Sherrill
  0 siblings, 0 replies; 2+ messages in thread
From: Joel Sherrill @ 2013-04-07 14:31 UTC (permalink / raw)
  To: ishare; +Cc: gdb

On 04/07/2013 09:21 AM, ishare wrote:
>    
>     If one elf has no main , where does gdb start  to trace it ?
Every program has a starting point. main() is just the first
user provided code that runs in a C program.  Set up
and initialization code has run before that.

When the program was linked, it could have used a linker
directive or the ld --entry argument to specify the entry
symbol.
>     is there mothod to tell gdb start at specified address?
gdb should start the program at the entry address. You
can always set the program counter directly using
something like set $pc XXX but that is architecture
specific.
>     tks!


-- 
Joel Sherrill, Ph.D.             Director of Research& Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35806
Support Available               (256) 722-9985


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-07 14:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-07 14:24 set debug entry point ishare
2013-04-07 14:31 ` Joel Sherrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox