aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>2010-03-18 01:09:26 +0000
committerStan Shebs <shebs@codesourcery.com>2010-03-18 01:09:26 +0000
commit573cda036ad9f4f8bfe70199cca46106a9583153 (patch)
treea1a9d302ac04aff351f226da7b90a3213eddb35a /gdb/infcall.c
parent*** empty log message *** (diff)
downloadbinutils-gdb-573cda036ad9f4f8bfe70199cca46106a9583153.tar.gz
binutils-gdb-573cda036ad9f4f8bfe70199cca46106a9583153.tar.bz2
binutils-gdb-573cda036ad9f4f8bfe70199cca46106a9583153.zip
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);