NevemTeve |
01-27-2014 03:34 AM |
AIX - gdb - command "info sh" stopped working between 7.4.1 and 7.5
I have compiled a few versions of gdb to find out when command "info sh" stopped working.
Test #1 with gdb-7.4.1
Code:
$ gdb-7.4.1 hello32
GNU gdb (GDB) 7.4.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "powerpc-ibm-aix5.2.0.0".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/projects/proba/hello32...done.
(gdb) break main
Breakpoint 1 at 0x100003e4: file hello.c, line 7.
(gdb) run
Starting program: /home/projects/proba/hello32
Breakpoint 1, main () at hello.c:7
7 printf ("Hello, world\n");
(gdb) info sh
Text Range Data Range Syms Shared Object Library
0xd007b21c-0xd007b93e 0xf02d8508-0xf02d8630 Yes /usr/lib/libcrypt.a(shr.o)
0xd01e6f60-0xd03e7681 0xf0241b20-0xf02d7d30 Yes /usr/lib/libc.a(shr.o)
Test #2 with gdb-7.5
Code:
$ gdb-7.5 hello32
GNU gdb (GDB) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "powerpc-ibm-aix5.2.0.0".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/projects/proba/hello32...done.
(gdb) break main
Breakpoint 1 at 0x100003e4: file hello.c, line 7.
(gdb) run
Starting program: /home/projects/proba/hello32
Breakpoint 1, main () at hello.c:7
7 printf ("Hello, world\n");
(gdb) info sh
No shared libraries loaded at this time.
So it works with 7.4.1, doesn't work with 7.5
Notes:
- it was the very same hello32 executable (compiled with gcc, linked with AIX ld)
- the same result with 64-bit version (-maix64)
- it does use shared lib: /usr/lib/libc.a(shr.o)
- both gdb version was compiled locally
- tested AIX versions: 5.2, 6.1
|