* 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'.
This commit is contained in:
Peter Schauer
1995-05-16 07:12:22 +00:00
parent 75cbae716f
commit 943b7032ab
3 changed files with 19 additions and 11 deletions

View File

@@ -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;