OLD | NEW |
1 /* Native-dependent code for FreeBSD/i386. | 1 /* Native-dependent code for FreeBSD/i386. |
2 | 2 |
3 Copyright (C) 2001-2004, 2007-2012 Free Software Foundation, Inc. | 3 Copyright (C) 2001-2004, 2007-2012 Free Software Foundation, Inc. |
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. |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "fbsd-nat.h" | 29 #include "fbsd-nat.h" |
30 #include "i386-tdep.h" | 30 #include "i386-tdep.h" |
31 #include "i386-nat.h" | 31 #include "i386-nat.h" |
32 #include "i386bsd-nat.h" | 32 #include "i386bsd-nat.h" |
33 | 33 |
34 /* Resume execution of the inferior process. If STEP is nonzero, | 34 /* Resume execution of the inferior process. If STEP is nonzero, |
35 single-step it. If SIGNAL is nonzero, give it that signal. */ | 35 single-step it. If SIGNAL is nonzero, give it that signal. */ |
36 | 36 |
37 static void | 37 static void |
38 i386fbsd_resume (struct target_ops *ops, | 38 i386fbsd_resume (struct target_ops *ops, |
39 » » ptid_t ptid, int step, enum target_signal signal) | 39 » » ptid_t ptid, int step, enum gdb_signal signal) |
40 { | 40 { |
41 pid_t pid = ptid_get_pid (ptid); | 41 pid_t pid = ptid_get_pid (ptid); |
42 int request = PT_STEP; | 42 int request = PT_STEP; |
43 | 43 |
44 if (pid == -1) | 44 if (pid == -1) |
45 /* Resume all threads. This only gets used in the non-threaded | 45 /* Resume all threads. This only gets used in the non-threaded |
46 case, where "resume all threads" and "resume inferior_ptid" are | 46 case, where "resume all threads" and "resume inferior_ptid" are |
47 the same. */ | 47 the same. */ |
48 pid = ptid_get_pid (inferior_ptid); | 48 pid = ptid_get_pid (inferior_ptid); |
49 | 49 |
(...skipping 15 matching lines...) Expand all Loading... |
65 regcache_cooked_read_unsigned (regcache, I386_EFLAGS_REGNUM, | 65 regcache_cooked_read_unsigned (regcache, I386_EFLAGS_REGNUM, |
66 &eflags); | 66 &eflags); |
67 if (eflags & 0x0100) | 67 if (eflags & 0x0100) |
68 regcache_cooked_write_unsigned (regcache, I386_EFLAGS_REGNUM, | 68 regcache_cooked_write_unsigned (regcache, I386_EFLAGS_REGNUM, |
69 eflags & ~0x0100); | 69 eflags & ~0x0100); |
70 | 70 |
71 request = PT_CONTINUE; | 71 request = PT_CONTINUE; |
72 } | 72 } |
73 | 73 |
74 /* An addres of (caddr_t) 1 tells ptrace to continue from where it | 74 /* An addres of (caddr_t) 1 tells ptrace to continue from where it |
error: old chunk mismatch |
None
OLD | NEW |