OLD | NEW |
1 /* Interface GDB to the GNU Hurd. | 1 /* Interface GDB to the GNU Hurd. |
2 Copyright (C) 1992, 1995-2001, 2006-2012 Free Software Foundation, | 2 Copyright (C) 1992-2013 Free Software Foundation, Inc. |
3 Inc. | |
4 | 3 |
5 This file is part of GDB. | 4 This file is part of GDB. |
6 | 5 |
7 Written by Miles Bader <miles@gnu.ai.mit.edu> | 6 Written by Miles Bader <miles@gnu.ai.mit.edu> |
8 | 7 |
9 Some code and ideas from m3-nat.c by Jukka Virtanen <jtv@hut.fi> | 8 Some code and ideas from m3-nat.c by Jukka Virtanen <jtv@hut.fi> |
10 | 9 |
11 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 |
12 it under the terms of the GNU General Public License as published by | 11 it under the terms of the GNU General Public License as published by |
13 the Free Software Foundation; either version 3 of the License, or | 12 the Free Software Foundation; either version 3 of the License, or |
14 (at your option) any later version. | 13 (at your option) any later version. |
15 | 14 |
16 This program is distributed in the hope that it will be useful, | 15 This program is distributed in the hope that it will be useful, |
17 but WITHOUT ANY WARRANTY; without even the implied warranty of | 16 but WITHOUT ANY WARRANTY; without even the implied warranty of |
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 GNU General Public License for more details. | 18 GNU General Public License for more details. |
20 | 19 |
21 You should have received a copy of the GNU General Public License | 20 You should have received a copy of the GNU General Public License |
22 along with this program. If not, see <http://www.gnu.org/licenses/>. | 21 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
23 */ | 22 |
| 23 #include "defs.h" |
24 | 24 |
25 #include <ctype.h> | 25 #include <ctype.h> |
26 #include <errno.h> | 26 #include <errno.h> |
27 #include <limits.h> | 27 #include <limits.h> |
28 #include <setjmp.h> | 28 #include <setjmp.h> |
29 #include <signal.h> | 29 #include <signal.h> |
30 #include <stdio.h> | 30 #include <stdio.h> |
31 #include "gdb_string.h" | 31 #include <string.h> |
32 #include <sys/ptrace.h> | 32 #include <sys/ptrace.h> |
33 | 33 |
34 #include <mach.h> | 34 #include <mach.h> |
35 #include <mach_error.h> | 35 #include <mach_error.h> |
36 #include <mach/exception.h> | 36 #include <mach/exception.h> |
37 #include <mach/message.h> | 37 #include <mach/message.h> |
38 #include <mach/notify.h> | 38 #include <mach/notify.h> |
39 #include <mach/vm_attributes.h> | 39 #include <mach/vm_attributes.h> |
40 | 40 |
41 #include <hurd.h> | 41 #include <hurd.h> |
42 #include <hurd/interrupt.h> | 42 #include <hurd/interrupt.h> |
43 #include <hurd/msg.h> | 43 #include <hurd/msg.h> |
44 #include <hurd/msg_request.h> | 44 #include <hurd/msg_request.h> |
45 #include <hurd/process.h> | 45 #include <hurd/process.h> |
46 /* Defined in <hurd/process.h>, but we need forward declarations from | 46 /* Defined in <hurd/process.h>, but we need forward declarations from |
47 <hurd/process_request.h> as well. */ | 47 <hurd/process_request.h> as well. */ |
48 #undef _process_user_ | 48 #undef _process_user_ |
49 #include <hurd/process_request.h> | 49 #include <hurd/process_request.h> |
50 #include <hurd/signal.h> | 50 #include <hurd/signal.h> |
51 #include <hurd/sigpreempt.h> | 51 #include <hurd/sigpreempt.h> |
52 | 52 |
53 #include <portinfo.h> | 53 #include <portinfo.h> |
54 | 54 |
55 #include "defs.h" | |
56 #include "inferior.h" | 55 #include "inferior.h" |
57 #include "symtab.h" | 56 #include "symtab.h" |
58 #include "value.h" | 57 #include "value.h" |
59 #include "language.h" | 58 #include "language.h" |
60 #include "target.h" | 59 #include "target.h" |
61 #include "gdb_wait.h" | 60 #include "gdb_wait.h" |
62 #include "gdbcmd.h" | 61 #include "gdbcmd.h" |
63 #include "gdbcore.h" | 62 #include "gdbcore.h" |
64 #include "gdbthread.h" | 63 #include "gdbthread.h" |
65 #include "gdb_assert.h" | 64 #include "gdb_assert.h" |
(...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1074 thread = _proc_free (thread); /* THREAD is dead. */ | 1073 thread = _proc_free (thread); /* THREAD is dead. */ |
1075 if (last) | 1074 if (last) |
1076 last->next = thread; | 1075 last->next = thread; |
1077 else | 1076 else |
1078 inf->threads = thread; | 1077 inf->threads = thread; |
1079 } | 1078 } |
1080 } | 1079 } |
1081 | 1080 |
1082 for (i = 0; i < num_threads; i++) | 1081 for (i = 0; i < num_threads; i++) |
1083 { | 1082 { |
error: old chunk mismatch |
None
OLD | NEW |