diff options
author | Joel Brobecker <brobecker@gnat.com> | 2010-01-09 04:40:59 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2010-01-09 04:40:59 +0000 |
commit | 11377e68354530c5af902e2161f73a2d0d5af86e (patch) | |
tree | f95e723dc0c477e43152c9be4a96097e51f6914b /gdb | |
parent | b2391021b65311d8253c924fc21183dd7c7d0a3c (diff) | |
download | gdb-11377e68354530c5af902e2161f73a2d0d5af86e.zip gdb-11377e68354530c5af902e2161f73a2d0d5af86e.tar.gz gdb-11377e68354530c5af902e2161f73a2d0d5af86e.tar.bz2 |
Error while loading core file on mips-irix.
* solib-irix.c (irix_solib_create_inferior_hook): Do nothing
if debugging from a core file.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/solib-irix.c | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4767db8..1b78da2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2010-01-09 Joel Brobecker <brobecker@adacore.com> + Error while loading core file on mips-irix. + * solib-irix.c (irix_solib_create_inferior_hook): Do nothing + if debugging from a core file. + +2010-01-09 Joel Brobecker <brobecker@adacore.com> + GDB hangs when attaching to process on mips-irix. * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if attaching to a process. diff --git a/gdb/solib-irix.c b/gdb/solib-irix.c index ecd5c70..b75a0a8 100644 --- a/gdb/solib-irix.c +++ b/gdb/solib-irix.c @@ -449,6 +449,11 @@ irix_solib_create_inferior_hook (int from_tty) if (inf->attach_flag) return; + /* Likewise when debugging from a core file, the shared libraries + have already been mapped, so nothing more to do. */ + if (!target_can_run (¤t_target)) + return; + if (!enable_break ()) { warning (_("shared library handler failed to enable breakpoint")); |