diff options
author | Joel Brobecker <brobecker@gnat.com> | 2009-11-24 21:37:52 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2009-11-24 21:37:52 +0000 |
commit | 3dba1c9899d02d3dde715498124073c23638fd6f (patch) | |
tree | 5d17a81e6917591f499c40c54c1e866062277c61 /gdb/breakpoint.c | |
parent | 7c3afe08c728dec4d843a777e6b2f294c27338be (diff) | |
download | gdb-3dba1c9899d02d3dde715498124073c23638fd6f.zip gdb-3dba1c9899d02d3dde715498124073c23638fd6f.tar.gz gdb-3dba1c9899d02d3dde715498124073c23638fd6f.tar.bz2 |
* breakpoint.c (expand_line_sal_maybe): Adjust adjust the SAL
past the function prologue in the case where we were given only
one SAL.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 90d9247..8a6813c 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -6340,13 +6340,14 @@ expand_line_sal_maybe (struct symtab_and_line sal) if (expanded.nelts == 1) { - /* We had one sal, we got one sal. Without futher - processing, just return the original sal. */ + /* We had one sal, we got one sal. Return that sal, adjusting it + past the function prologue if necessary. */ xfree (expanded.sals); expanded.nelts = 1; expanded.sals = xmalloc (sizeof (struct symtab_and_line)); sal.pc = original_pc; expanded.sals[0] = sal; + skip_prologue_sal (&expanded.sals[0]); do_cleanups (old_chain); return expanded; } |