aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2009-02-01 23:31:03 +0000
committerDoug Evans <dje@google.com>2009-02-01 23:31:03 +0000
commitf00150c95d261f2fac4fbab21d60eceb2ccb7d3e (patch)
tree8125185686eb132d5fda0af5da87b9b38bebb5bb /gdb/target.h
parent273f4430f86503a7e746f8710c6165f794a360bd (diff)
downloadgdb-f00150c95d261f2fac4fbab21d60eceb2ccb7d3e.zip
gdb-f00150c95d261f2fac4fbab21d60eceb2ccb7d3e.tar.gz
gdb-f00150c95d261f2fac4fbab21d60eceb2ccb7d3e.tar.bz2
* target.h (target_waitstatus_to_string): Declare.
* target.c (target_waitstatus_to_string): New function. Copied from debug_to_wait. Add missing entries for TARGET_WAITKIND_SYSCALL_ENTRY, TARGET_WAITKIND_SYSCALL_RETURN, TARGET_WAITKIND_IGNORE, TARGET_WAITKIND_NO_HISTORY. (debug_to_wait): Call it. * infrun.c (wait_for_inferior): If debug_infrun, print result of target_wait. (fetch_inferior_event): Ditto.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/target.h b/gdb/target.h
index 188c9a4..7cdd81e 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -151,6 +151,10 @@ struct target_waitstatus
value;
};
+/* Return a pretty printed form of target_waitstatus.
+ Space for the result is malloc'd, caller must free. */
+extern char *target_waitstatus_to_string (const struct target_waitstatus *);
+
/* Possible types of events that the inferior handler will have to
deal with. */
enum inferior_event_type