diff options
Diffstat (limited to 'gdb/solib-svr4.c')
-rw-r--r-- | gdb/solib-svr4.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index 4633757..666e173 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -751,7 +751,7 @@ elf_locate_base (void) /* This may be a static executable. Look for the symbol conventionally named _r_debug, as a last resort. */ bound_minimal_symbol msymbol - = lookup_minimal_symbol ("_r_debug", NULL, + = lookup_minimal_symbol ("_r_debug", current_program_space->symfile_object_file); if (msymbol.minsym != NULL) return msymbol.value_address (); @@ -2481,8 +2481,7 @@ enable_break (struct svr4_info *info, int from_tty) objfile *objf = current_program_space->symfile_object_file; for (bkpt_namep = solib_break_names; *bkpt_namep != NULL; bkpt_namep++) { - bound_minimal_symbol msymbol - = lookup_minimal_symbol (*bkpt_namep, NULL, objf); + bound_minimal_symbol msymbol = lookup_minimal_symbol (*bkpt_namep, objf); if ((msymbol.minsym != NULL) && (msymbol.value_address () != 0)) { @@ -2502,7 +2501,7 @@ enable_break (struct svr4_info *info, int from_tty) for (bkpt_namep = bkpt_names; *bkpt_namep != NULL; bkpt_namep++) { bound_minimal_symbol msymbol - = lookup_minimal_symbol (*bkpt_namep, NULL, objf); + = lookup_minimal_symbol (*bkpt_namep, objf); if ((msymbol.minsym != NULL) && (msymbol.value_address () != 0)) { |