This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug breakpoints/17595] New: next/step following breakpoints always fails with 32-bit i386 executables


https://sourceware.org/bugzilla/show_bug.cgi?id=17595

            Bug ID: 17595
           Summary: next/step following breakpoints always fails with
                    32-bit i386 executables
           Product: gdb
           Version: 8.0
            Status: NEW
          Severity: critical
          Priority: P2
         Component: breakpoints
          Assignee: unassigned at sourceware dot org
          Reporter: bssb787 at gmail dot com
             Build: 7.8.1

Elementary execution control (next/step) always fails with 32-bit OS X i386
executables; x86_64 executables (cc -m64) work fine.

Similar report of this on Linux: 
http://stackoverflow.com/questions/19632435/gdb-shows-cannot-find-bounds-of-current-function-stepping

$ cat hello.c
#include <stdio.h>
int main()
{
    printf("hello, ");
    printf("world\n");
}
$ cc -m32 -g -o hello hello.c
$ gdb hello
GNU gdb (GDB) 7.8.1
...
This GDB was configured as "x86_64-apple-darwin14.0.0".
...
(gdb) b main
Breakpoint 1 at 0x1f52: file hello.c, line 4.
(gdb) r
Starting program: hello 

Breakpoint 1, main () at hello.c:4
4        printf("hello, ");
(gdb) n
0x00001f80 in ?? ()
(gdb) where
#0  0x00001f80 in ?? ()
#1  0x979c76d9 in start () from /usr/lib/system/libdyld.dylib
#2  0x00000001 in ?? ()
#3  0xbffffaa8 in ?? ()
#4  0x00000001 in ?? ()
(gdb) n
Cannot find bounds of current function
(gdb) step
Cannot find bounds of current function
(gdb) show configuration
This GDB was configured as follows:
   configure --host=x86_64-apple-darwin14.0.0
--target=x86_64-apple-darwin14.0.0
             --with-auto-load-dir=:${prefix}/share/auto-load
             --with-auto-load-safe-path=:${prefix}/share/auto-load
             --with-expat
             --with-gdb-datadir=/usr/local/share/gdb (relocatable)
             --with-jit-reader-dir=/usr/local/lib/gdb (relocatable)
             --without-libunwind-ia64
             --without-lzma
            
--with-python=/System/Library/Frameworks/Python.framework/Versions/2.7
             --without-guile
             --with-separate-debug-dir=/usr/local/lib/debug (relocatable)
             --with-zlib
             --without-babeltrace
(gdb) q
$ uname -a
Darwin local 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014;
root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]