diff options
author | Tiago Daitx <tdaitx@sourceware.org> | 2013-01-24 20:36:03 +0000 |
---|---|---|
committer | Tiago Daitx <tdaitx@sourceware.org> | 2013-01-24 20:36:03 +0000 |
commit | 2077afddd4575079d8b4a9592a45d600242f3257 (patch) | |
tree | c4b1578abb5ca617829c6543855cd93ab315faff /gdb/symtab.c | |
parent | 63da4037661bdbabb8389b5090dc1cf4446935a9 (diff) | |
download | gdb-2077afddd4575079d8b4a9592a45d600242f3257.zip gdb-2077afddd4575079d8b4a9592a45d600242f3257.tar.gz gdb-2077afddd4575079d8b4a9592a45d600242f3257.tar.bz2 |
gdb/
* symtab.c (skip_prologue_using_sal): Consider a file
change the same as an increased line number
gdb/testsuite/
* gdb.base/prologue-include.c: New file.
* gdb.base/prologue-include.exp: New file.
* gdb.base/prologue-include.h: New file.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index d40436a..b200b36 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -4905,6 +4905,10 @@ skip_prologue_using_sal (struct gdbarch *gdbarch, CORE_ADDR func_addr) line mark the prologue -> body transition. */ if (sal.line >= prologue_sal.line) break; + /* Likewise if we are in a different symtab altogether + (e.g. within a file included via #include). */ + if (sal.symtab != prologue_sal.symtab) + break; /* The line number is smaller. Check that it's from the same function, not something inlined. If it's inlined, |