diff options
author | Stan Shebs <shebs@codesourcery.com> | 2010-03-18 01:09:26 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 2010-03-18 01:09:26 +0000 |
commit | 573cda036ad9f4f8bfe70199cca46106a9583153 (patch) | |
tree | a1a9d302ac04aff351f226da7b90a3213eddb35a /gdb/infcall.c | |
parent | d5041980353873354218b8b18babc5a2847ba342 (diff) | |
download | gdb-573cda036ad9f4f8bfe70199cca46106a9583153.zip gdb-573cda036ad9f4f8bfe70199cca46106a9583153.tar.gz gdb-573cda036ad9f4f8bfe70199cca46106a9583153.tar.bz2 |
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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c index 2d8bd2c..d6a8de3 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); |