aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-irix.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/solib-irix.c')
-rw-r--r--gdb/solib-irix.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/solib-irix.c b/gdb/solib-irix.c
index a0c1cd2..13a3e3d 100644
--- a/gdb/solib-irix.c
+++ b/gdb/solib-irix.c
@@ -365,10 +365,14 @@ disable_break (void)
static int
enable_break (void)
{
- if (symfile_objfile != NULL)
+ if (symfile_objfile != NULL && has_stack_frames ())
{
+ struct frame_info *frame = get_current_frame ();
+ struct address_space *aspace = get_frame_address_space (frame);
+
base_breakpoint
= deprecated_insert_raw_breakpoint (target_gdbarch,
+ aspace,
entry_point_address ());
if (base_breakpoint != NULL)