This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
info symbol can crash GDB
- From: Nick Roberts <nickrob at snap dot net dot nz>
- To: gdb at sourceware dot org
- Date: Wed, 1 Mar 2006 12:47:40 +1300
- Subject: info symbol can crash GDB
In some cases if the argument to info symbol isn't a number, it causes a
segmentation fault:
(gdb) inf sym 0x8049bb8.
Segmentation fault (core dumped)
Previously e.g GNU gdb Red Hat Linux (6.1post-1.20040607.43rh), this was
just reported as an invalid number:
(gdb) inf sym 0x8049bb8.
Invalid number "0x8049bb8.".
which seems a bit kinder.
--
Nick http://www.inet.net.nz/~nickrob