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

Side by Side Diff: sim/d10v/interp.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/d10v/configure ('k') | sim/erc32/ChangeLog » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include "config.h"
1 #include <signal.h> 2 #include <signal.h>
2 #include "sysdep.h"
3 #include "bfd.h" 3 #include "bfd.h"
4 #include "gdb/callback.h" 4 #include "gdb/callback.h"
5 #include "gdb/remote-sim.h" 5 #include "gdb/remote-sim.h"
6 6
7 #include "d10v_sim.h" 7 #include "d10v_sim.h"
8 #include "gdb/sim-d10v.h" 8 #include "gdb/sim-d10v.h"
9 #include "gdb/signals.h" 9 #include "gdb/signals.h"
10 10
11 #ifdef HAVE_STRING_H
12 #include <string.h>
13 #else
14 #ifdef HAVE_STRINGS_H
15 #include <strings.h>
16 #endif /* HAVE_STRING_H */
17 #endif /* HAVE_STRINGS_H */
18
19 #ifdef HAVE_STDLIB_H
20 #include <stdlib.h>
21 #endif
22
11 enum _leftright { LEFT_FIRST, RIGHT_FIRST }; 23 enum _leftright { LEFT_FIRST, RIGHT_FIRST };
12 24
13 static char *myname; 25 static char *myname;
14 static SIM_OPEN_KIND sim_kind; 26 static SIM_OPEN_KIND sim_kind;
15 int d10v_debug; 27 int d10v_debug;
16 28
17 /* Set this to true to get the previous segment layout. */ 29 /* Set this to true to get the previous segment layout. */
18 30
19 int old_segment_mapping; 31 int old_segment_mapping;
20 32
(...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after
1271 *sigrc = 0; 1283 *sigrc = 0;
1272 break; 1284 break;
1273 1285
1274 case SIG_D10V_EXIT: /* exit trap */ 1286 case SIG_D10V_EXIT: /* exit trap */
1275 *reason = sim_exited; 1287 *reason = sim_exited;
1276 *sigrc = GPR (0); 1288 *sigrc = GPR (0);
1277 break; 1289 break;
1278 1290
1279 case SIG_D10V_BUS: 1291 case SIG_D10V_BUS:
1280 *reason = sim_stopped; 1292 *reason = sim_stopped;
1281 *sigrc = TARGET_SIGNAL_BUS; 1293 *sigrc = GDB_SIGNAL_BUS;
1282 break; 1294 break;
1283 1295
1284 default: /* some signal */ 1296 default: /* some signal */
1285 *reason = sim_stopped; 1297 *reason = sim_stopped;
1286 if (stop_simulator && !State.exception) 1298 if (stop_simulator && !State.exception)
1287 » *sigrc = TARGET_SIGNAL_INT; 1299 » *sigrc = GDB_SIGNAL_INT;
1288 else 1300 else
1289 *sigrc = State.exception; 1301 *sigrc = State.exception;
1290 break; 1302 break;
1291 } 1303 }
1292 1304
1293 stop_simulator = 0; 1305 stop_simulator = 0;
1294 } 1306 }
1295 1307
1296 int 1308 int
1297 sim_fetch_register (sd, rn, memory, length) 1309 sim_fetch_register (sd, rn, memory, length)
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
1490 prog_bfd_was_opened_p = 0; 1502 prog_bfd_was_opened_p = 0;
1491 } 1503 }
1492 prog_bfd = sim_load_file (sd, myname, d10v_callback, prog, abfd, 1504 prog_bfd = sim_load_file (sd, myname, d10v_callback, prog, abfd,
1493 sim_kind == SIM_OPEN_DEBUG, 1505 sim_kind == SIM_OPEN_DEBUG,
1494 1/*LMA*/, sim_write); 1506 1/*LMA*/, sim_write);
1495 if (prog_bfd == NULL) 1507 if (prog_bfd == NULL)
1496 return SIM_RC_FAIL; 1508 return SIM_RC_FAIL;
1497 prog_bfd_was_opened_p = abfd == NULL; 1509 prog_bfd_was_opened_p = abfd == NULL;
1498 return SIM_RC_OK; 1510 return SIM_RC_OK;
1499 } 1511 }
OLDNEW
« no previous file with comments | « sim/d10v/configure ('k') | sim/erc32/ChangeLog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698