summaryrefslogtreecommitdiff
path: root/gdb/infcall.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@apple.com>2010-03-18 01:09:25 +0000
committerStan Shebs <shebs@apple.com>2010-03-18 01:09:25 +0000
commit8850d00dc9ce1059186667f577841ad5edd093b1 (patch)
treee36bc6d0e4f14cedf371b6b6d6b37b83982f4ee5 /gdb/infcall.c
parent9ed708883a6e59c12ba179a641e6a5969eb61bf0 (diff)
downloadgdb-8850d00dc9ce1059186667f577841ad5edd093b1.tar.gz
2010-03-17 Stan Shebs <stan@codesourcery.com>
* infcall.c: Include tracepoint.h. (call_function_by_hand): Disallow calls in tfind mode. * infcmd.c: Include tracepoint.h. (ensure_not_tfind_mode): New function. (continue_1): Call it. (step_1) Ditto. (jump_command): Ditto. (signal_command): Ditto. (advance_command): Ditto. (until_command): Ditto. (finish_command): Ditto. * tracepoint.h (disconnect_or_stop_tracing): Declare.
Diffstat (limited to 'gdb/infcall.c')
-rw-r--r--gdb/infcall.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c
index 2d8bd2cecad..d6a8de36b79 100644
--- a/gdb/infcall.c
+++ b/gdb/infcall.c
@@ -21,6 +21,7 @@
#include "defs.h"
#include "breakpoint.h"
+#include "tracepoint.h"
#include "target.h"
#include "regcache.h"
#include "inferior.h"
@@ -453,6 +454,9 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
if (!target_has_execution)
noprocess ();
+ if (get_traceframe_number () >= 0)
+ error (_("May not call functions while looking at trace frames."));
+
frame = get_current_frame ();
gdbarch = get_frame_arch (frame);