* 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

@ -1,3 +1,10 @@
Mon May 15 23:50:51 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* 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'.
Mon May 15 18:37:56 1995 Stu Grossman (grossman@cygnus.com)
* breakpoint.c: Move defaults of watchpoint related macros into

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;

View File

@ -3502,7 +3502,7 @@ ie. the number of previous commands to keep a record of.", &sethistlist);
add_info ("set", show_command, "Show all GDB settings.");
add_cmd ("commands", no_class, show_commands,
"Show the the history of commands you typed.\n\
"Show the history of commands you typed.\n\
You can supply a command number to start with, or a `+' to start after\n\
the previous command number shown.",
&showlist);
@ -3512,15 +3512,15 @@ the previous command number shown.",
add_com ("while", class_support, while_command,
"Execute nested commands WHILE the conditional expression is non zero.\n\
The conditional expression must follow the word `while' and must in turn be\
followed by a new line. The nested commands must be entered one per line,\
The conditional expression must follow the word `while' and must in turn be\n\
followed by a new line. The nested commands must be entered one per line,\n\
and should be terminated by the word `end'.");
add_com ("if", class_support, if_command,
"Execute nested commands once IF the conditional expression is non zero.\n\
The conditional expression must follow the word `if' and must in turn be\
followed by a new line. The nested commands must be entered one per line,\
and should be terminated by the word 'else' or `end'. If an else clause\
The conditional expression must follow the word `if' and must in turn be\n\
followed by a new line. The nested commands must be entered one per line,\n\
and should be terminated by the word 'else' or `end'. If an else clause\n\
is used, the same rules apply to its nested commands as to the first ones.");
/* If target is open when baud changes, it doesn't take effect until the