2005-05-29 03:13:19 +00:00
|
|
|
/* Interface for common GDB/MI data
|
2014-01-01 03:54:24 +00:00
|
|
|
Copyright (C) 2005-2014 Free Software Foundation, Inc.
|
2005-05-29 03:13:19 +00: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 18:08:50 +00:00
|
|
|
the Free Software Foundation; either version 3 of the License, or
|
2005-05-29 03:13:19 +00: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 18:08:50 +00:00
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
2005-05-29 03:13:19 +00:00
|
|
|
|
|
|
|
#include "defs.h"
|
2011-11-22 21:18:38 +00:00
|
|
|
#include "gdb_assert.h"
|
2005-05-29 03:13:19 +00:00
|
|
|
#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 21:25:19 +00:00
|
|
|
"solib-event",
|
|
|
|
"fork",
|
|
|
|
"vfork",
|
|
|
|
"syscall-entry",
|
|
|
|
"syscall-return",
|
|
|
|
"exec",
|
2005-05-29 03:13:19 +00:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2012-01-11 21:51:31 +00:00
|
|
|
gdb_static_assert (ARRAY_SIZE (async_reason_string_lookup)
|
|
|
|
== EXEC_ASYNC_LAST + 1);
|
2011-11-22 21:18:38 +00:00
|
|
|
|
2005-05-29 03:13:19 +00:00
|
|
|
const char *
|
|
|
|
async_reason_lookup (enum async_reply_reason reason)
|
|
|
|
{
|
|
|
|
return async_reason_string_lookup[reason];
|
|
|
|
}
|