public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug backtrace/15668] New: Cannot find bounds of current function
@ 2013-06-24  6:31 vijunag at gmail dot com
  2013-06-24  6:31 ` [Bug backtrace/15668] " vijunag at gmail dot com
  0 siblings, 1 reply; 2+ messages in thread
From: vijunag at gmail dot com @ 2013-06-24  6:31 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15668

            Bug ID: 15668
           Summary: Cannot find bounds of current function
           Product: gdb
           Version: 7.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: backtrace
          Assignee: unassigned at sourceware dot org
          Reporter: vijunag at gmail dot com

I recently upgraded my compiler to gcc-4.7.2/glibc-2.17. Im unable to debug the
executable after calls to few functions which have hand written assembly in
glibc.

Below are the gdb debugging excerpts when one line at a time are executed.
(gdb) r
Failed to read a valid object file image from memory.
Breakpoint 1, main (argc=5, argv=0xbffff784, env=0xbffff79c) at main.c:205
205    int main(int argc, char **argv, char **env) {
(gdb) n
220        FILE *rva = fopen("/proc/sys/kernel/randomize_va_space", "r+");
(gdb) n
221        if (rva) {
(gdb) 
222          int val=0;
(gdb) 
224          if (1==fscanf(rva, "%d", &val)) {
(gdb) 
225        if (val) {
(gdb) 
237          fclose(rva);
(gdb) 
242          } else if (val) {
(gdb) 
273      main_config.argv0short = strrchr(argv[0], '/');
(gdb) 
0x08048430 in ?? ()
(gdb) 
Cannot find bounds of current function
(gdb) 
Cannot find bounds of current function
(gdb) 

However if I step-into strrchr function I can proceed debugging further.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug backtrace/15668] Cannot find bounds of current function
  2013-06-24  6:31 [Bug backtrace/15668] New: Cannot find bounds of current function vijunag at gmail dot com
@ 2013-06-24  6:31 ` vijunag at gmail dot com
  0 siblings, 0 replies; 2+ messages in thread
From: vijunag at gmail dot com @ 2013-06-24  6:31 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15668

Vijay Nag <vijunag at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |i686-pc-linux-gnu
                 CC|                            |vijunag at gmail dot com
               Host|                            |i686-pc-linux-gnu
              Build|                            |i686-pc-linux-gnu

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

end of thread, other threads:[~2013-06-24  6:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-24  6:31 [Bug backtrace/15668] New: Cannot find bounds of current function vijunag at gmail dot com
2013-06-24  6:31 ` [Bug backtrace/15668] " vijunag at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).