forked from Imagelibrary/binutils-gdb
GDB hangs when attaching to process on mips-irix.
* solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
attaching to a process.
This commit is contained in:
@@ -442,6 +442,13 @@ irix_solib_create_inferior_hook (int from_tty)
|
||||
struct inferior *inf;
|
||||
struct thread_info *tp;
|
||||
|
||||
inf = current_inferior ();
|
||||
|
||||
/* If we are attaching to the inferior, the shared libraries
|
||||
have already been mapped, so nothing more to do. */
|
||||
if (inf->attach_flag)
|
||||
return;
|
||||
|
||||
if (!enable_break ())
|
||||
{
|
||||
warning (_("shared library handler failed to enable breakpoint"));
|
||||
@@ -453,7 +460,6 @@ irix_solib_create_inferior_hook (int from_tty)
|
||||
can go groveling around in the dynamic linker structures to find
|
||||
out what we need to know about them. */
|
||||
|
||||
inf = current_inferior ();
|
||||
tp = inferior_thread ();
|
||||
|
||||
clear_proceed_status ();
|
||||
|
||||
Reference in New Issue
Block a user