Skip to content

Commit b239102

Browse files
author
Joel Brobecker
committed
GDB hangs when attaching to process on mips-irix.
* solib-irix.c (irix_solib_create_inferior_hook): Do nothing if attaching to a process.
1 parent f2ec0ec commit b239102

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
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+
GDB hangs when attaching to process on mips-irix.
4+
* solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
5+
attaching to a process.
6+
17
2010-01-09 Joel Brobecker <[email protected]>
28

39
Use the correct breakpoint instruction on mips-irix.

gdb/solib-irix.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,13 @@ irix_solib_create_inferior_hook (int from_tty)
442442
struct inferior *inf;
443443
struct thread_info *tp;
444444

445+
inf = current_inferior ();
446+
447+
/* If we are attaching to the inferior, the shared libraries
448+
have already been mapped, so nothing more to do. */
449+
if (inf->attach_flag)
450+
return;
451+
445452
if (!enable_break ())
446453
{
447454
warning (_("shared library handler failed to enable breakpoint"));
@@ -453,7 +460,6 @@ irix_solib_create_inferior_hook (int from_tty)
453460
can go groveling around in the dynamic linker structures to find
454461
out what we need to know about them. */
455462

456-
inf = current_inferior ();
457463
tp = inferior_thread ();
458464

459465
clear_proceed_status ();

0 commit comments

Comments
 (0)