aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1991-10-25 06:29:23 +0000
committerFred Fish <fnf@specifix.com>1991-10-25 06:29:23 +0000
commit84d82b1ccde63f3847e3e413e014024895c288d1 (patch)
tree084c6b9c4f4fbaafe685ba3e9c7524c77899280f /gdb/valops.c
parented317bb309d40570cbb047d431a4e93659257934 (diff)
downloadgdb-84d82b1ccde63f3847e3e413e014024895c288d1.zip
gdb-84d82b1ccde63f3847e3e413e014024895c288d1.tar.gz
gdb-84d82b1ccde63f3847e3e413e014024895c288d1.tar.bz2
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.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index b4101b5..614317f 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -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)