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

Side by Side Diff: gdb/monitor.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 | « gdb/mn10300-tdep.c ('k') | gdb/moxie-tdep.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Remote debugging interface for boot monitors, for GDB. 1 /* Remote debugging interface for boot monitors, for GDB.
2 2
3 Copyright (C) 1990-2002, 2006-2012 Free Software Foundation, Inc. 3 Copyright (C) 1990-2002, 2006-2012 Free Software Foundation, Inc.
4 4
5 Contributed by Cygnus Support. Written by Rob Savoye for Cygnus. 5 Contributed by Cygnus Support. Written by Rob Savoye for Cygnus.
6 Resurrected from the ashes by Stu Grossman. 6 Resurrected from the ashes by Stu Grossman.
7 7
8 This file is part of GDB. 8 This file is part of GDB.
9 9
10 This program is free software; you can redistribute it and/or modify 10 This program is free software; you can redistribute it and/or modify
(...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after
927 927
928 regcache_raw_supply (regcache, regno, regbuf); 928 regcache_raw_supply (regcache, regno, regbuf);
929 929
930 return p; 930 return p;
931 } 931 }
932 932
933 /* Tell the remote machine to resume. */ 933 /* Tell the remote machine to resume. */
934 934
935 static void 935 static void
936 monitor_resume (struct target_ops *ops, 936 monitor_resume (struct target_ops *ops,
937 » » ptid_t ptid, int step, enum target_signal sig) 937 » » ptid_t ptid, int step, enum gdb_signal sig)
938 { 938 {
939 /* Some monitors require a different command when starting a program. */ 939 /* Some monitors require a different command when starting a program. */
940 monitor_debug ("MON resume\n"); 940 monitor_debug ("MON resume\n");
941 if (current_monitor->flags & MO_RUN_FIRST_TIME && first_time == 1) 941 if (current_monitor->flags & MO_RUN_FIRST_TIME && first_time == 1)
942 { 942 {
943 first_time = 0; 943 first_time = 0;
944 monitor_printf ("run\r"); 944 monitor_printf ("run\r");
945 if (current_monitor->flags & MO_NEED_REGDUMP_AFTER_CONT) 945 if (current_monitor->flags & MO_NEED_REGDUMP_AFTER_CONT)
946 dump_reg_flag = 1; 946 dump_reg_flag = 1;
947 return; 947 return;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1155 } 1155 }
1156 1156
1157 if (current_monitor->register_pattern) 1157 if (current_monitor->register_pattern)
1158 parse_register_dump (get_current_regcache (), buf, resp_len); 1158 parse_register_dump (get_current_regcache (), buf, resp_len);
1159 #else 1159 #else
1160 monitor_debug ("Wait fetching registers after stop\n"); 1160 monitor_debug ("Wait fetching registers after stop\n");
1161 monitor_dump_regs (get_current_regcache ()); 1161 monitor_dump_regs (get_current_regcache ());
1162 #endif 1162 #endif
1163 1163
1164 status->kind = TARGET_WAITKIND_STOPPED; 1164 status->kind = TARGET_WAITKIND_STOPPED;
1165 status->value.sig = TARGET_SIGNAL_TRAP; 1165 status->value.sig = GDB_SIGNAL_TRAP;
1166 1166
1167 discard_cleanups (old_chain); 1167 discard_cleanups (old_chain);
1168 1168
1169 in_monitor_wait = 0; 1169 in_monitor_wait = 0;
1170 1170
1171 return inferior_ptid; 1171 return inferior_ptid;
1172 } 1172 }
1173 1173
1174 /* Fetch register REGNO, or all registers if REGNO is -1. Returns 1174 /* Fetch register REGNO, or all registers if REGNO is -1. Returns
1175 errno value. */ 1175 errno value. */
(...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after
2382 When enabled, communication between GDB and the remote monitor\n\ 2382 When enabled, communication between GDB and the remote monitor\n\
2383 is displayed."), 2383 is displayed."),
2384 NULL, 2384 NULL,
2385 NULL, /* FIXME: i18n: */ 2385 NULL, /* FIXME: i18n: */
2386 &setdebuglist, &showdebuglist); 2386 &setdebuglist, &showdebuglist);
2387 2387
2388 /* Yes, 42000 is arbitrary. The only sense out of it, is that it 2388 /* Yes, 42000 is arbitrary. The only sense out of it, is that it
2389 isn't 0. */ 2389 isn't 0. */
2390 monitor_ptid = ptid_build (42000, 0, 42000); 2390 monitor_ptid = ptid_build (42000, 0, 42000);
2391 } 2391 }
OLDNEW
« no previous file with comments | « gdb/mn10300-tdep.c ('k') | gdb/moxie-tdep.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698