aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1993-09-17 11:46:50 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1993-09-17 11:46:50 +0000
commit30d20d15456466459d4ec80a14667bff20fb5338 (patch)
tree1108dc7c60ba4837c48333d2cea12139fc7fdc36 /gdb/valops.c
parent9d6323bace25ea5a6a3f7e403271511071952716 (diff)
downloadgdb-30d20d15456466459d4ec80a14667bff20fb5338.zip
gdb-30d20d15456466459d4ec80a14667bff20fb5338.tar.gz
gdb-30d20d15456466459d4ec80a14667bff20fb5338.tar.bz2
* findvar.c (extract_signed_integer): Cast *p to LONGEST before doing
the xor and subtract. Otherwise it will not sign extend if the type of LONGEST is larger than int. * cp-valprint.c (cp_print_class_method): Inhibit core dump if domain is an undefined cross reference. * valops.c (call_function_by_hand): Set real_pc to correct
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index fa75ea6..02ab2ed 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -910,16 +910,16 @@ call_function_by_hand (function, nargs, args)
error ("text segment full -- no place to put call");
checked = 1;
sp = old_sp;
- start_sp = text_end - sizeof dummy;
- write_memory (start_sp, (char *)dummy1, sizeof dummy);
+ real_pc = text_end - sizeof dummy;
+ write_memory (real_pc, (char *)dummy1, sizeof dummy);
}
#else /* After text_end. */
{
extern CORE_ADDR text_end;
int errcode;
sp = old_sp;
- start_sp = text_end;
- errcode = target_write_memory (start_sp, (char *)dummy1, sizeof dummy);
+ real_pc = text_end;
+ errcode = target_write_memory (real_pc, (char *)dummy1, sizeof dummy);
if (errcode != 0)
error ("Cannot write text segment -- call_function failed");
}
@@ -1072,7 +1072,7 @@ call_function_by_hand (function, nargs, args)
wrong things (like set stop_bpstat to the wrong thing). */
discard_cleanups (old_chain);
/* Prevent memory leak. */
- bpstat_clear (inf_status.stop_bpstat);
+ bpstat_clear (&inf_status.stop_bpstat);
/* The following error message used to say "The expression
which contained the function call has been discarded." It