Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* message: "Cannot find bounds of current function"
@ 2005-03-25 17:01 james osburn
  2005-03-25 17:31 ` Peter Barada
  0 siblings, 1 reply; 2+ messages in thread
From: james osburn @ 2005-03-25 17:01 UTC (permalink / raw)
  To: gdb

what does that message mean?
i have start a executeable remotely via the command:
gdbserver 192.168.0.10:1234 ./stubs

then started gdb and did the following.

(gdb) file /tmp/stubs/src/stubs
Reading symbols from /tmp/stubs/src/stubs...done.
(gdb) target extended-remote 192.168.0.10:1234
Remote debugging using 192.168.0.10:1234
0x400009c0 in ?? ()
(gdb) break main
Breakpoint 1 at 0x8048338: file main.c, line 8.
(gdb) n
Cannot find I bounds of current function
(gdb)

any ideas?
thanks



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

* Re: message: "Cannot find bounds of current function"
  2005-03-25 17:01 message: "Cannot find bounds of current function" james osburn
@ 2005-03-25 17:31 ` Peter Barada
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Barada @ 2005-03-25 17:31 UTC (permalink / raw)
  To: gdb


>what does that message mean?
>i have start a executeable remotely via the command:
>gdbserver 192.168.0.10:1234 ./stubs
>
>
>(gdb) file /tmp/stubs/src/stubs
>Reading symbols from /tmp/stubs/src/stubs...done.
>(gdb) target extended-remote 192.168.0.10:1234
>Remote debugging using 192.168.0.10:1234
>0x400009c0 in ?? ()
>(gdb) break main
>Breakpoint 1 at 0x8048338: file main.c, line 8.
>(gdb) n
>Cannot find I bounds of current function
>(gdb)

You *really* should read the documentation a bit deeper.

This is because when you attached to gdbserver, the process under
debug has not completed the C start-up code.
 If you had 'objdump -h' the program you are trying to debug, you
would have found that 0x400009c0 is is *way* outside the bounds of the
program.

If instead you tried:

(gdb) target extended-remote 192.168.0.10:1234
Remote debugging using 192.168.0.10:1234
0x400009c0 in ?? ()
(gdb) break main
Breakpoint 1 at 0x8048338: file main.c, line 8.
(gdb) c
Breakpoint 1, main ( ... )
  at /.../main.c:8
(gdb)

At this point the program counters is *inside* your program and gdb
can match up the program counter to source code.

-- 
Peter Barada
peter@the-baradas.com


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

end of thread, other threads:[~2005-03-25 17:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-25 17:01 message: "Cannot find bounds of current function" james osburn
2005-03-25 17:31 ` Peter Barada

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