Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: sim/common/sim-signal.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sim/common/sim-signal.h ('k') | sim/common/sim-trace.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Simulator signal support 1 /* Simulator signal support
2 Copyright (C) 1997, 2007-2012 Free Software Foundation, Inc. 2 Copyright (C) 1997, 2007-2012 Free Software Foundation, Inc.
3 Contributed by Cygnus Support 3 Contributed by Cygnus Support
4 4
5 This file is part of the GNU Simulators. 5 This file is part of the GNU Simulators.
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.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 } 87 }
88 88
89 sim_io_eprintf (sd, "sim_signal_to_host: unknown signal: %d\n", sig); 89 sim_io_eprintf (sd, "sim_signal_to_host: unknown signal: %d\n", sig);
90 #ifdef SIGHUP 90 #ifdef SIGHUP
91 return SIGHUP; /* FIXME: Suggestions? */ 91 return SIGHUP; /* FIXME: Suggestions? */
92 #else 92 #else
93 return 1; 93 return 1;
94 #endif 94 #endif
95 } 95 }
96 96
97 enum target_signal 97 enum gdb_signal
98 sim_signal_to_target (SIM_DESC sd, SIM_SIGNAL sig) 98 sim_signal_to_gdb_signal (SIM_DESC sd, SIM_SIGNAL sig)
99 { 99 {
100 switch (sig) 100 switch (sig)
101 { 101 {
102 case SIM_SIGINT : 102 case SIM_SIGINT :
103 return TARGET_SIGNAL_INT; 103 return GDB_SIGNAL_INT;
104 104
105 case SIM_SIGABRT : 105 case SIM_SIGABRT :
106 return TARGET_SIGNAL_ABRT; 106 return GDB_SIGNAL_ABRT;
107 107
108 case SIM_SIGILL : 108 case SIM_SIGILL :
109 return TARGET_SIGNAL_ILL; 109 return GDB_SIGNAL_ILL;
110 110
111 case SIM_SIGTRAP : 111 case SIM_SIGTRAP :
112 return TARGET_SIGNAL_TRAP; 112 return GDB_SIGNAL_TRAP;
113 113
114 case SIM_SIGBUS : 114 case SIM_SIGBUS :
115 return TARGET_SIGNAL_BUS; 115 return GDB_SIGNAL_BUS;
116 116
117 case SIM_SIGSEGV : 117 case SIM_SIGSEGV :
118 return TARGET_SIGNAL_SEGV; 118 return GDB_SIGNAL_SEGV;
119 119
120 case SIM_SIGXCPU : 120 case SIM_SIGXCPU :
121 return TARGET_SIGNAL_XCPU; 121 return GDB_SIGNAL_XCPU;
122 122
123 case SIM_SIGFPE: 123 case SIM_SIGFPE:
124 return TARGET_SIGNAL_FPE; 124 return GDB_SIGNAL_FPE;
125 break; 125 break;
126 126
127 case SIM_SIGNONE: 127 case SIM_SIGNONE:
128 return TARGET_SIGNAL_0; 128 return GDB_SIGNAL_0;
129 break; 129 break;
130 } 130 }
131 131
132 sim_io_eprintf (sd, "sim_signal_to_host: unknown signal: %d\n", sig); 132 sim_io_eprintf (sd, "sim_signal_to_host: unknown signal: %d\n", sig);
133 return TARGET_SIGNAL_HUP; 133 return GDB_SIGNAL_HUP;
134 } 134 }
OLDNEW
« no previous file with comments | « sim/common/sim-signal.h ('k') | sim/common/sim-trace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698