2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
authorPedro Alves <palves@redhat.com>
Tue, 5 Jun 2012 15:44:03 +0000 (15:44 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 5 Jun 2012 15:44:03 +0000 (15:44 +0000)
* solib-svr4.c (enable_break): Don't fallback to setting the solib
event breakpoint at _start, __start or main if a program
interpreter is not found.

gdb/ChangeLog
gdb/solib-svr4.c

index 3fb91b3..2bb9d81 100644 (file)
@@ -1,3 +1,9 @@
+2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
+
+       * solib-svr4.c (enable_break): Don't fallback to setting the solib
+       event breakpoint at _start, __start or main if a program
+       interpreter is not found.
+
 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
 
        * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
index bd0141a..307e483 100644 (file)
@@ -1707,7 +1707,7 @@ enable_break (struct svr4_info *info, int from_tty)
        }
     }
 
-  if (!current_inferior ()->attach_flag)
+  if (interp_name != NULL && !current_inferior ()->attach_flag)
     {
       for (bkpt_namep = bkpt_names; *bkpt_namep != NULL; bkpt_namep++)
        {