* findvar.c (extract_signed_integer): Cast *p to LONGEST before doing
[deliverable/binutils-gdb.git] / gdb / valops.c
index fa75ea6f4bd3e0f00d2a19f62f01d040f6a6dc1c..02ab2ed5c9c6ec2ede0f73a53844cfaea5f7aff4 100644 (file)
@@ -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
This page took 0.023509 seconds and 4 git commands to generate.