aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-parse.h
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-07-12 16:37:57 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-07-12 16:37:57 +0000
commit1e92afda99a58f4427293937e49ef1ebe6bb3968 (patch)
tree557c242bc33c909ac7246c95349ac9bc82a01274 /gdb/mi/mi-parse.h
parentd56b7306e3b1a0d6eccae32f0f25d4a291c77ef2 (diff)
downloadgdb-1e92afda99a58f4427293937e49ef1ebe6bb3968.zip
gdb-1e92afda99a58f4427293937e49ef1ebe6bb3968.tar.gz
gdb-1e92afda99a58f4427293937e49ef1ebe6bb3968.tar.bz2
Implement --thread and --frame.
* gdbthread.h (find_thread_id): Declare. * thread.c (find_thread_id): Make non-static. * mi/mi-main.c (mi_cmd_execute): Switch to the right thread and frame, if necessary. * mi/mi-parse.c (mi_parse): Handle --thread and --frame. * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
Diffstat (limited to 'gdb/mi/mi-parse.h')
-rw-r--r--gdb/mi/mi-parse.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/mi/mi-parse.h b/gdb/mi/mi-parse.h
index 945c42d..aa262f5 100644
--- a/gdb/mi/mi-parse.h
+++ b/gdb/mi/mi-parse.h
@@ -46,6 +46,8 @@ struct mi_parse
char *args;
char **argv;
int argc;
+ int thread;
+ int frame;
};
/* Attempts to parse CMD returning a ``struct mi_command''. If CMD is