Remove locally duplicated code for calling functions in the inferior. The
only differences were in the specific trap vectors used and whether or not an fpu was present. These are now handled by appropriate definitions of BPT_VECTOR and HAVE_68881 respectively. Other minor obvious cleanups. Minor spelling correction in valops.c.
This commit is contained in:
parent
ed317bb309
commit
84d82b1ccd
13 changed files with 116 additions and 662 deletions
|
@ -659,7 +659,7 @@ call_function_by_hand (function, nargs, args)
|
|||
register int i;
|
||||
CORE_ADDR start_sp;
|
||||
/* CALL_DUMMY is an array of words (REGISTER_TYPE), but each word
|
||||
in in host byte order. It is switched to target byte order before calling
|
||||
is in host byte order. It is switched to target byte order before calling
|
||||
FIX_CALL_DUMMY. */
|
||||
static REGISTER_TYPE dummy[] = CALL_DUMMY;
|
||||
REGISTER_TYPE dummy1[sizeof dummy / sizeof (REGISTER_TYPE)];
|
||||
|
@ -720,6 +720,7 @@ call_function_by_hand (function, nargs, args)
|
|||
/* Convex Unix prohibits executing in the stack segment. */
|
||||
/* Hope there is empty room at the top of the text segment. */
|
||||
{
|
||||
extern CORE_ADDR text_end;
|
||||
static checked = 0;
|
||||
if (!checked)
|
||||
for (start_sp = text_end - sizeof dummy; start_sp < text_end; ++start_sp)
|
||||
|
@ -732,6 +733,7 @@ call_function_by_hand (function, nargs, args)
|
|||
}
|
||||
#else /* After text_end. */
|
||||
{
|
||||
extern CORE_ADDR text_end;
|
||||
int errcode;
|
||||
sp = old_sp;
|
||||
start_sp = text_end;
|
||||
|
@ -891,7 +893,7 @@ value_string (ptr, len)
|
|||
register int c;
|
||||
|
||||
/* Copy the string into COPY, processing escapes.
|
||||
We could not conveniently process them in expread
|
||||
We could not conveniently process them in the parser
|
||||
because the string there wants to be a substring of the input. */
|
||||
|
||||
while (i - ibeg < len)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue