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

Side by Side Diff: gdb/i386fbsd-nat.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/i386bsd-nat.c ('k') | gdb/i386obsd-tdep.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
None
OLDNEW
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
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
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

OLDNEW
« no previous file with comments | « gdb/i386bsd-nat.c ('k') | gdb/i386obsd-tdep.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698