aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2010-03-23 22:01:47 +0000
committerVladimir Prus <vladimir@codesourcery.com>2010-03-23 22:01:47 +0000
commitf197e0f1b1c70895aae1395b96d780379ec695ab (patch)
treed311581ba37d0b40fa82e8abce8cd2a28a1b8359 /gdb/target.h
parent40e1c229a2dd402eb050b1025c4b1b7667a7e83e (diff)
downloadgdb-f197e0f1b1c70895aae1395b96d780379ec695ab.zip
gdb-f197e0f1b1c70895aae1395b96d780379ec695ab.tar.gz
gdb-f197e0f1b1c70895aae1395b96d780379ec695ab.tar.bz2
Implement -trace-find.
* mi/mi-cmds.c (mi_cmds): Register -trace-find. * mi/mi-cmds.h (mi_cmd_trace_find): Declare. * mi/mi-main.c (mi_cmd_trace_find): New. * target.h (struct target_ops): Document to_trace_find. * tracepoint.h (tfind_1): Declare. * tracepoint.c (finish_tfind_command): Rename to... (tfind_1): ...this. * remote.c (remote_trace_find): Return -1 if target say there's no frame. Improve error diagnostics.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/target.h b/gdb/target.h
index 2b21f0f..46f5e7e 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -643,7 +643,8 @@ struct target_ops
/* Ask the target to find a trace frame of the given type TYPE,
using NUM, ADDR1, and ADDR2 as search parameters. Returns the
number of the trace frame, and also the tracepoint number at
- TPP. */
+ TPP. If no trace frame matches, return -1. May throw if the
+ operation fails. */
int (*to_trace_find) (enum trace_find_type type, int num,
ULONGEST addr1, ULONGEST addr2, int *tpp);