aboutsummaryrefslogtreecommitdiff
path: root/gdb/varobj.h
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-03-24 17:33:30 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-03-24 17:33:30 +0000
commitc5b48eacfa0f8cade0bf4a11729509e833bcff63 (patch)
tree33c26955a6e57f8e34cca75d9ab45248fa138f04 /gdb/varobj.h
parent9df503519c0e9925a677792a152d958de18d6bb5 (diff)
downloadgdb-c5b48eacfa0f8cade0bf4a11729509e833bcff63.zip
gdb-c5b48eacfa0f8cade0bf4a11729509e833bcff63.tar.gz
gdb-c5b48eacfa0f8cade0bf4a11729509e833bcff63.tar.bz2
* varobj.c (struct varobj_root): New component thread_id.
(varobj_get_thread_id, check_scope): New functions. (c_value_of_root): Use check_scope. Switch to the proper thread if necessary. * varobj.h (varobj_get_thread_id): New extern. * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
Diffstat (limited to 'gdb/varobj.h')
-rw-r--r--gdb/varobj.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/varobj.h b/gdb/varobj.h
index e0a5c17..4033b4b 100644
--- a/gdb/varobj.h
+++ b/gdb/varobj.h
@@ -89,6 +89,8 @@ extern enum varobj_display_formats varobj_set_display_format (
extern enum varobj_display_formats varobj_get_display_format (
struct varobj *var);
+extern int varobj_get_thread_id (struct varobj *var);
+
extern void varobj_set_frozen (struct varobj *var, int frozen);
extern int varobj_get_frozen (struct varobj *var);