mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
gdb
* breakpoint.c (resolve_sal_pc): Preserve original line number when skipping prologue. gdb/testsuite Update for change to prologue skipping: * gdb.mi/mi2-simplerun.exp: Update. * gdb.mi/mi2-break.exp: Update. * gdb.mi/mi-simplerun.exp: Update. * gdb.mi/mi-break.exp: Update. * gdb.base/ending-run.exp: Update.
This commit is contained in:
@@ -5765,7 +5765,12 @@ resolve_sal_pc (struct symtab_and_line *sal)
|
||||
/* If this SAL corresponds to a breakpoint inserted using
|
||||
a line number, then skip the function prologue if necessary. */
|
||||
if (sal->explicit_line)
|
||||
skip_prologue_sal (sal);
|
||||
{
|
||||
/* Preserve the original line number. */
|
||||
int saved_line = sal->line;
|
||||
skip_prologue_sal (sal);
|
||||
sal->line = saved_line;
|
||||
}
|
||||
}
|
||||
|
||||
if (sal->section == 0 && sal->symtab != NULL)
|
||||
|
||||
Reference in New Issue
Block a user