Skip to content

Commit 11377e6

Browse files
author
Joel Brobecker
committed
Error while loading core file on mips-irix.
* solib-irix.c (irix_solib_create_inferior_hook): Do nothing if debugging from a core file.
1 parent b239102 commit 11377e6

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

gdb/ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2010-01-09 Joel Brobecker <[email protected]>
2+
3+
Error while loading core file on mips-irix.
4+
* solib-irix.c (irix_solib_create_inferior_hook): Do nothing
5+
if debugging from a core file.
6+
17
2010-01-09 Joel Brobecker <[email protected]>
28

39
GDB hangs when attaching to process on mips-irix.

gdb/solib-irix.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,11 @@ irix_solib_create_inferior_hook (int from_tty)
449449
if (inf->attach_flag)
450450
return;
451451

452+
/* Likewise when debugging from a core file, the shared libraries
453+
have already been mapped, so nothing more to do. */
454+
if (!target_can_run (&current_target))
455+
return;
456+
452457
if (!enable_break ())
453458
{
454459
warning (_("shared library handler failed to enable breakpoint"));

0 commit comments

Comments
 (0)