[SOLVED] AIX - gdb - command "info sh" stopped working between 7.4.1 and 7.5
AIXThis forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
First result of examination:
both /gdb-7.5/gdb/solib.c:info_sharedlibrary_command and /gdb-7.5/gdb/xcoffsolib.c:solib_info implements command info sh, and (most likely) the former hides the latter.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.