diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 1995-05-16 07:12:22 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 1995-05-16 07:12:22 +0000 |
commit | 943b7032ab331314ea3e2998e0d5781d8a8e4ef1 (patch) | |
tree | 549f9d763cd80f332db9acd48a1dd962d64079cc /gdb/mdebugread.c | |
parent | 75cbae716fea68969910fb0e9e0b6638095831d0 (diff) | |
download | gdb-943b7032ab331314ea3e2998e0d5781d8a8e4ef1.zip gdb-943b7032ab331314ea3e2998e0d5781d8a8e4ef1.tar.gz gdb-943b7032ab331314ea3e2998e0d5781d8a8e4ef1.tar.bz2 |
* mdebugread.c (parse_symbol): Do not relocate stBlock/scText
symbols, their value is the displacement from the procedure address.
* top.c (init_main): Add missing newlines to help strings for
`if' and `while' commands, fix help string for `show commands'.
Diffstat (limited to 'gdb/mdebugread.c')
-rw-r--r-- | gdb/mdebugread.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index f2e0045..c4f1889 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -687,9 +687,12 @@ parse_symbol (sh, ax, ext_sh, bigend, section_offsets) switch (sh->sc) { case scText: - /* The value of a stEnd symbol is the displacement from the - corresponding start symbol value, do not relocate it. */ - if (sh->st != stEnd) + /* Do not relocate relative values. + The value of a stEnd symbol is the displacement from the + corresponding start symbol value. + The value of a stBlock symbol is the displacement from the + procedure address. */ + if (sh->st != stEnd && sh->st != stBlock) sh->value += ANOFFSET (section_offsets, SECT_OFF_TEXT); break; case scData: @@ -3217,8 +3220,6 @@ psymtab_to_symtab_1 (pst, filename) { /* This symbol table contains ordinary ecoff entries. */ - /* FIXME: doesn't use pst->section_offsets. */ - int f_max; int maxlines; EXTR *ext_ptr; |