diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c45fcd40748..f579a1561ca 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2021-05-21 Tom de Vries + + PR breakpoint/27889 + * jit.c (jit_breakpoint_re_set_internal): Skip separate debug + objects. Call get_jiter_objfile_data with the_objfile. + 2021-05-20 Simon Marchi * linespec.c (linespec_p): Remove. Replace all uses with diff --git a/gdb/jit.c b/gdb/jit.c index 296b436c796..be10f197fd6 100644 --- a/gdb/jit.c +++ b/gdb/jit.c @@ -807,6 +807,10 @@ jit_breakpoint_re_set_internal (struct gdbarch *gdbarch, program_space *pspace) { for (objfile *the_objfile : pspace->objfiles ()) { + /* Skip separate debug objects. */ + if (the_objfile->separate_debug_objfile_backlink != nullptr) + continue; + if (the_objfile->skip_jit_symbol_lookup) continue; @@ -833,7 +837,7 @@ jit_breakpoint_re_set_internal (struct gdbarch *gdbarch, program_space *pspace) } jiter_objfile_data *objf_data - = get_jiter_objfile_data (reg_symbol.objfile); + = get_jiter_objfile_data (the_objfile); objf_data->register_code = reg_symbol.minsym; objf_data->descriptor = desc_symbol.minsym;