mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-06 07:28:44 +08:00
* breakpoint.c (expand_line_sal_maybe): Adjust adjust the SAL
past the function prologue in the case where we were given only one SAL.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2009-11-24 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
|
* breakpoint.c (expand_line_sal_maybe): Adjust adjust the SAL
|
||||||
|
past the function prologue in the case where we were given only
|
||||||
|
one SAL.
|
||||||
|
|
||||||
2009-11-24 Pedro Alves <pedro@codesourcery.com>
|
2009-11-24 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* record.c (init_record_ops, init_record_core_ops): Actually
|
* record.c (init_record_ops, init_record_core_ops): Actually
|
||||||
|
@ -6340,13 +6340,14 @@ expand_line_sal_maybe (struct symtab_and_line sal)
|
|||||||
|
|
||||||
if (expanded.nelts == 1)
|
if (expanded.nelts == 1)
|
||||||
{
|
{
|
||||||
/* We had one sal, we got one sal. Without futher
|
/* We had one sal, we got one sal. Return that sal, adjusting it
|
||||||
processing, just return the original sal. */
|
past the function prologue if necessary. */
|
||||||
xfree (expanded.sals);
|
xfree (expanded.sals);
|
||||||
expanded.nelts = 1;
|
expanded.nelts = 1;
|
||||||
expanded.sals = xmalloc (sizeof (struct symtab_and_line));
|
expanded.sals = xmalloc (sizeof (struct symtab_and_line));
|
||||||
sal.pc = original_pc;
|
sal.pc = original_pc;
|
||||||
expanded.sals[0] = sal;
|
expanded.sals[0] = sal;
|
||||||
|
skip_prologue_sal (&expanded.sals[0]);
|
||||||
do_cleanups (old_chain);
|
do_cleanups (old_chain);
|
||||||
return expanded;
|
return expanded;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user