[PATCH] String conversion of TARGET_WAITKIND_VFORK_DONE is missing.

Pedro Alves palves@redhat.com
Fri Oct 26 17:03:00 GMT 2012


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:



More information about the Gdb-patches mailing list