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 3fb91b38240de18d05986e0d980f2f78a61a235d..2bb9d8185c42ace79f86f8767bb8d9d383f86ef0 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 bd0141acef80a9a35f01a9cc1c35b77f9e1a5f24..307e48392fe17ef3ca0d6dcf45df1b500ed99dbf 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++)
        {