aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorGareth McMullin2015-03-29 18:06:13 -0700
committerGareth McMullin2015-03-29 18:06:13 -0700
commit21d464293c29fe2867fe974770154f06049ccf1a (patch)
treea784df3dba99a1366abc0cff192bae52826f16bd /src/include
parentc2cde32716c5f4283877188d0e452dcf5e85e563 (diff)
gdb: don't access target fields directly.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/target.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/target.h b/src/include/target.h
index d844057..940a360 100644
--- a/src/include/target.h
+++ b/src/include/target.h
@@ -108,6 +108,16 @@ target *target_attach(target *t, target_destroy_callback destroy_cb);
#define target_hostio_reply(target, recode, errcode) \
(target)->hostio_reply((target), (retcode), (errcode))
+/* Accessor functions */
+#define target_regs_size(target) \
+ ((target)->regs_size)
+
+#define target_mem_map(target) \
+ ((target)->xml_mem_map ? (target)->xml_mem_map : "")
+
+#define target_tdesc(target) \
+ ((target)->tdesc ? (target)->tdesc : "")
+
struct target_s {
/* Notify controlling debugger if target is lost */
target_destroy_callback destroy_callback;