X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Ftarget%2Fwaitstatus.h;h=2e393442f51f0dcd0db0e487751bfb38e1f80e6b;hb=65706a29bac50c2c971227a1945e46502845766b;hp=c05d651124860479462a2510320579be7765972f;hpb=4cb9c816469ef3373d9cdde76e8ab5007cf3739e;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/target/waitstatus.h b/gdb/target/waitstatus.h index c05d651124..2e393442f5 100644 --- a/gdb/target/waitstatus.h +++ b/gdb/target/waitstatus.h @@ -1,6 +1,6 @@ /* Target waitstatus definitions and prototypes. - Copyright (C) 1990-2014 Free Software Foundation, Inc. + Copyright (C) 1990-2015 Free Software Foundation, Inc. This file is part of GDB. @@ -20,7 +20,6 @@ #ifndef WAITSTATUS_H #define WAITSTATUS_H -#include "common-utils.h" #include "gdb_signals.h" /* Stuff for target_wait. */ @@ -93,7 +92,13 @@ enum target_waitkind TARGET_WAITKIND_NO_HISTORY, /* There are no resumed children left in the program. */ - TARGET_WAITKIND_NO_RESUMED + TARGET_WAITKIND_NO_RESUMED, + + /* The thread was created. */ + TARGET_WAITKIND_THREAD_CREATED, + + /* The thread has exited. The exit status is in value.integer. */ + TARGET_WAITKIND_THREAD_EXITED, }; struct target_waitstatus @@ -116,6 +121,28 @@ struct target_waitstatus } value; }; +/* Extended reasons that can explain why a target/thread stopped for a + trap signal. */ + +enum target_stop_reason +{ + /* Either not stopped, or stopped for a reason that doesn't require + special tracking. */ + TARGET_STOPPED_BY_NO_REASON, + + /* Stopped by a software breakpoint. */ + TARGET_STOPPED_BY_SW_BREAKPOINT, + + /* Stopped by a hardware breakpoint. */ + TARGET_STOPPED_BY_HW_BREAKPOINT, + + /* Stopped by a watchpoint. */ + TARGET_STOPPED_BY_WATCHPOINT, + + /* Stopped by a single step finishing. */ + TARGET_STOPPED_BY_SINGLE_STEP +}; + /* Prototypes */ /* Return a pretty printed form of target_waitstatus.