| OLD | NEW |
| 1 /* Interface for common GDB/MI data | 1 /* Interface for common GDB/MI data |
| 2 Copyright (C) 2005, 2007-2012 Free Software Foundation, Inc. | 2 Copyright (C) 2005, 2007-2012 Free Software Foundation, Inc. |
| 3 | 3 |
| 4 This file is part of GDB. | 4 This file is part of GDB. |
| 5 | 5 |
| 6 This program is free software; you can redistribute it and/or modify | 6 This program is free software; you can redistribute it and/or modify |
| 7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
| 8 the Free Software Foundation; either version 3 of the License, or | 8 the Free Software Foundation; either version 3 of the License, or |
| 9 (at your option) any later version. | 9 (at your option) any later version. |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 "signal-received", | 36 "signal-received", |
| 37 "solib-event", | 37 "solib-event", |
| 38 "fork", | 38 "fork", |
| 39 "vfork", | 39 "vfork", |
| 40 "syscall-entry", | 40 "syscall-entry", |
| 41 "syscall-return", | 41 "syscall-return", |
| 42 "exec", | 42 "exec", |
| 43 NULL | 43 NULL |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 static_assert (ARRAY_SIZE (async_reason_string_lookup) == EXEC_ASYNC_LAST + 1); | 46 gdb_static_assert (ARRAY_SIZE (async_reason_string_lookup) |
| 47 » » == EXEC_ASYNC_LAST + 1); |
| 47 | 48 |
| 48 const char * | 49 const char * |
| 49 async_reason_lookup (enum async_reply_reason reason) | 50 async_reason_lookup (enum async_reply_reason reason) |
| 50 { | 51 { |
| 51 return async_reason_string_lookup[reason]; | 52 return async_reason_string_lookup[reason]; |
| 52 } | 53 } |
| OLD | NEW |