GDB (API)
|
00001 /* Interface for common GDB/MI data 00002 Copyright (C) 2005-2013 Free Software Foundation, Inc. 00003 00004 This file is part of GDB. 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 3 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 00018 00019 #include "defs.h" 00020 #include "gdb_assert.h" 00021 #include "mi-common.h" 00022 00023 static const char * const async_reason_string_lookup[] = 00024 { 00025 "breakpoint-hit", 00026 "watchpoint-trigger", 00027 "read-watchpoint-trigger", 00028 "access-watchpoint-trigger", 00029 "function-finished", 00030 "location-reached", 00031 "watchpoint-scope", 00032 "end-stepping-range", 00033 "exited-signalled", 00034 "exited", 00035 "exited-normally", 00036 "signal-received", 00037 "solib-event", 00038 "fork", 00039 "vfork", 00040 "syscall-entry", 00041 "syscall-return", 00042 "exec", 00043 NULL 00044 }; 00045 00046 gdb_static_assert (ARRAY_SIZE (async_reason_string_lookup) 00047 == EXEC_ASYNC_LAST + 1); 00048 00049 const char * 00050 async_reason_lookup (enum async_reply_reason reason) 00051 { 00052 return async_reason_string_lookup[reason]; 00053 }