aboutsummaryrefslogtreecommitdiff
path: root/gdb/mdebugread.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1995-07-25 20:16:48 +0000
committerStan Shebs <shebs@codesourcery.com>1995-07-25 20:16:48 +0000
commit1789d5d57997dc7bd2cbd8c8d44e87af3815f8b5 (patch)
treebc9281db0903deb9f859a9fcdaa84675af2bde0e /gdb/mdebugread.c
parentd9d9e563666b2a11bbfbf9d2f86033a08e6e487d (diff)
downloadgdb-1789d5d57997dc7bd2cbd8c8d44e87af3815f8b5.zip
gdb-1789d5d57997dc7bd2cbd8c8d44e87af3815f8b5.tar.gz
gdb-1789d5d57997dc7bd2cbd8c8d44e87af3815f8b5.tar.bz2
* mdebugread.c (psymtab_to_symtab_1): Relocate encoded stab
line numbers using the psymtab's section offsets. PR 7514
Diffstat (limited to 'gdb/mdebugread.c')
-rw-r--r--gdb/mdebugread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index 4676ba4..e5b3df0 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -3191,6 +3191,7 @@ psymtab_to_symtab_1 (pst, filename)
}
else
/* Handle encoded stab line number. */
+ valu += ANOFFSET (pst->section_offsets, SECT_OFF_TEXT);
record_line (current_subfile, sh.index, valu);
}
else if (sh.st == stProc || sh.st == stStaticProc