| OLD | NEW |
| 1 /* Target signal translation functions for GDB. | 1 /* Target signal translation functions for GDB. |
| 2 Copyright (C) 1990-2003, 2006-2012 Free Software Foundation, Inc. | 2 Copyright (C) 1990-2013 Free Software Foundation, Inc. |
| 3 Contributed by Cygnus Support. | 3 Contributed by Cygnus Support. |
| 4 | 4 |
| 5 This file is part of GDB. | 5 This file is part of GDB. |
| 6 | 6 |
| 7 This program is free software; you can redistribute it and/or modify | 7 This program is free software; you can redistribute it and/or modify |
| 8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
| 9 the Free Software Foundation; either version 3 of the License, or | 9 the Free Software Foundation; either version 3 of the License, or |
| 10 (at your option) any later version. | 10 (at your option) any later version. |
| 11 | 11 |
| 12 This program is distributed in the hope that it will be useful, | 12 This program is distributed in the hope that it will be useful, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 35 gdb_signal_to_host() returns 0 and prints a warning() on GDB's | 35 gdb_signal_to_host() returns 0 and prints a warning() on GDB's |
| 36 console if SIGNO has no equivalent host representation. */ | 36 console if SIGNO has no equivalent host representation. */ |
| 37 /* FIXME: cagney/1999-11-22: Here ``host'' is used incorrectly, it is | 37 /* FIXME: cagney/1999-11-22: Here ``host'' is used incorrectly, it is |
| 38 refering to the target operating system's signal numbering. | 38 refering to the target operating system's signal numbering. |
| 39 Similarly, ``enum gdb_signal'' is named incorrectly, ``enum | 39 Similarly, ``enum gdb_signal'' is named incorrectly, ``enum |
| 40 gdb_signal'' would probably be better as it is refering to GDB's | 40 gdb_signal'' would probably be better as it is refering to GDB's |
| 41 internal representation of a target operating system's signal. */ | 41 internal representation of a target operating system's signal. */ |
| 42 extern enum gdb_signal gdb_signal_from_host (int); | 42 extern enum gdb_signal gdb_signal_from_host (int); |
| 43 extern int gdb_signal_to_host (enum gdb_signal); | 43 extern int gdb_signal_to_host (enum gdb_signal); |
| 44 | 44 |
| 45 /* Return the enum symbol name of SIG as a string, to use in debug |
| 46 output. */ |
| 47 extern const char *gdb_signal_to_symbol_string (enum gdb_signal sig); |
| 48 |
| 45 /* Return the string for a signal. */ | 49 /* Return the string for a signal. */ |
| 46 extern const char *gdb_signal_to_string (enum gdb_signal); | 50 extern const char *gdb_signal_to_string (enum gdb_signal); |
| 47 | 51 |
| 48 /* Return the name (SIGHUP, etc.) for a signal. */ | 52 /* Return the name (SIGHUP, etc.) for a signal. */ |
| 49 extern const char *gdb_signal_to_name (enum gdb_signal); | 53 extern const char *gdb_signal_to_name (enum gdb_signal); |
| 50 | 54 |
| 51 /* Given a name (SIGHUP, etc.), return its signal. */ | 55 /* Given a name (SIGHUP, etc.), return its signal. */ |
| 52 enum gdb_signal gdb_signal_from_name (const char *); | 56 enum gdb_signal gdb_signal_from_name (const char *); |
| 53 | 57 |
| 54 #endif /* COMMON_GDB_SIGNALS_H */ | 58 #endif /* COMMON_GDB_SIGNALS_H */ |
| OLD | NEW |