OLD | NEW |
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 Loading... |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |