File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change
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
+
1
7
2010-01-09 Joel Brobecker <
[email protected] >
2
8
3
9
Use the correct breakpoint instruction on mips-irix.
Original file line number Diff line number Diff line change @@ -442,6 +442,13 @@ irix_solib_create_inferior_hook (int from_tty)
442
442
struct inferior * inf ;
443
443
struct thread_info * tp ;
444
444
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
+
445
452
if (!enable_break ())
446
453
{
447
454
warning (_ ("shared library handler failed to enable breakpoint" ));
@@ -453,7 +460,6 @@ irix_solib_create_inferior_hook (int from_tty)
453
460
can go groveling around in the dynamic linker structures to find
454
461
out what we need to know about them. */
455
462
456
- inf = current_inferior ();
457
463
tp = inferior_thread ();
458
464
459
465
clear_proceed_status ();
You can’t perform that action at this time.
0 commit comments