[commit] Error while loading core file on mips-irix
Joel Brobecker
brobecker@adacore.com
Sat Jan 9 04:58:00 GMT 2010
On mips-irix, GDB reports the following error while loading a core file:
(gdb) core core
Reading symbols from /usr/lib32/libm.so...done.
Loaded symbols for /usr/lib32/libm.so
Reading symbols from /usr/lib32/libc.so.1...done.
Loaded symbols for /usr/lib32/libc.so.1
You can't do that without a process to debug.
This is a familiar issue, as we've seen thing before on other targets
(probably Tru64, for instance).
The problem is yet again in the irix_solib_create_inferior_hook,
where we try to resume the inferior execution in order to reach
the point where all shared libraries have been mapped. This is not
necessary when debugging from a core file. The error comes from
the fact that we attempt a "target_resume", which fails because
the "core" layer does cannot run/resume...
Fixed by simply doing nothing when debugging from a core file.
gdb/ChangeLog:
Error while loading core file on mips-irix.
* solib-irix.c (irix_solib_create_inferior_hook): Do nothing
if debugging from a core file.
--
Joel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-Error-while-loading-core-file-on-mips-irix.patch
Type: text/x-diff
Size: 791 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20100109/1a12df3b/attachment.bin>
More information about the Gdb-patches
mailing list