This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] String conversion of TARGET_WAITKIND_VFORK_DONE is missing.
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 26 Oct 2012 18:03:31 +0100
- Subject: [PATCH] String conversion of TARGET_WAITKIND_VFORK_DONE is missing.
We end up printing "unknown???" instead. This fixes it.
Tested on AMD64 Fedora 17, and applied.
2012-10-25 Pedro Alves <palves@redhat.com>
* target.c (target_waitstatus_to_string): Handle
TARGET_WAITKIND_VFORK_DONE.
---
gdb/target.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gdb/target.c b/gdb/target.c
index 861e6a6..62de336 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -3874,6 +3874,8 @@ target_waitstatus_to_string (const struct target_waitstatus *ws)
return xstrprintf ("%svforked", kind_str);
case TARGET_WAITKIND_EXECD:
return xstrprintf ("%sexecd", kind_str);
+ case TARGET_WAITKIND_VFORK_DONE:
+ return xstrprintf ("%svfork-done", kind_str);
case TARGET_WAITKIND_SYSCALL_ENTRY:
return xstrprintf ("%sentered syscall", kind_str);
case TARGET_WAITKIND_SYSCALL_RETURN: