2005-05-29 05:13:19 +02:00
|
|
|
/* Interface for common GDB/MI data
|
2014-01-01 04:54:24 +01:00
|
|
|
Copyright (C) 2005-2014 Free Software Foundation, Inc.
|
2005-05-29 05:13:19 +02:00
|
|
|
|
|
|
|
This file is part of GDB.
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
2007-08-23 20:08:50 +02:00
|
|
|
the Free Software Foundation; either version 3 of the License, or
|
2005-05-29 05:13:19 +02:00
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
2007-08-23 20:08:50 +02:00
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
2005-05-29 05:13:19 +02:00
|
|
|
|
|
|
|
#include "defs.h"
|
|
|
|
#include "mi-common.h"
|
|
|
|
|
|
|
|
static const char * const async_reason_string_lookup[] =
|
|
|
|
{
|
|
|
|
"breakpoint-hit",
|
|
|
|
"watchpoint-trigger",
|
|
|
|
"read-watchpoint-trigger",
|
|
|
|
"access-watchpoint-trigger",
|
|
|
|
"function-finished",
|
|
|
|
"location-reached",
|
|
|
|
"watchpoint-scope",
|
|
|
|
"end-stepping-range",
|
|
|
|
"exited-signalled",
|
|
|
|
"exited",
|
|
|
|
"exited-normally",
|
|
|
|
"signal-received",
|
2011-11-22 22:25:19 +01:00
|
|
|
"solib-event",
|
|
|
|
"fork",
|
|
|
|
"vfork",
|
|
|
|
"syscall-entry",
|
|
|
|
"syscall-return",
|
|
|
|
"exec",
|
2005-05-29 05:13:19 +02:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2012-01-11 22:51:31 +01:00
|
|
|
gdb_static_assert (ARRAY_SIZE (async_reason_string_lookup)
|
|
|
|
== EXEC_ASYNC_LAST + 1);
|
2011-11-22 22:18:38 +01:00
|
|
|
|
2005-05-29 05:13:19 +02:00
|
|
|
const char *
|
|
|
|
async_reason_lookup (enum async_reply_reason reason)
|
|
|
|
{
|
|
|
|
return async_reason_string_lookup[reason];
|
|
|
|
}
|