1 |
24 |
jeremybenn |
2008-02-19 Pedro Alves
|
2 |
|
|
|
3 |
|
|
* server.c (handle_v_requests): When handling the vRun and vAttach
|
4 |
|
|
packets, if already debugging a process, don't kill it. Return an
|
5 |
|
|
error instead.
|
6 |
|
|
|
7 |
|
|
2008-02-17 Daniel Jacobowitz
|
8 |
|
|
|
9 |
|
|
* server.c (handle_query): Correct length check.
|
10 |
|
|
|
11 |
|
|
2008-02-14 Pedro Alves
|
12 |
|
|
|
13 |
|
|
* win32-low.c (do_initial_child_stuff): Add process handle
|
14 |
|
|
parameter. Set current_process_handle and current_process_id from the
|
15 |
|
|
parameters. Clear globals.
|
16 |
|
|
(win32_create_inferior): Don't set current_process_handle and
|
17 |
|
|
current_process_id here. Instead pass them on the call to
|
18 |
|
|
do_initial_child_stuff.
|
19 |
|
|
(win32_attach): Likewise.
|
20 |
|
|
(win32_clear_inferiors): New.
|
21 |
|
|
(win32_kill): Don't close the current process handle or the
|
22 |
|
|
current thread handle here. Instead call win32_clear_inferiors.
|
23 |
|
|
(win32_detach): Don't open a new handle to the process. Call
|
24 |
|
|
win32_clear_inferiors.
|
25 |
|
|
(win32_join): Don't rely on current_process_handle; open a new
|
26 |
|
|
handle using the process id.
|
27 |
|
|
(win32_wait): Call win32_clear_inferiors when the inferior process
|
28 |
|
|
has exited.
|
29 |
|
|
|
30 |
|
|
2008-02-14 Daniel Jacobowitz
|
31 |
|
|
|
32 |
|
|
* server.c (monitor_show_help): Add "exit".
|
33 |
|
|
|
34 |
|
|
2008-02-11 Maxim Grigoriev
|
35 |
|
|
|
36 |
|
|
* Makefile.in (SFILES): Add linux-xtensa-low.c.
|
37 |
|
|
(clean): Add reg-xtensa.c.
|
38 |
|
|
(linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
|
39 |
|
|
* configure.srv (xtensa*-*-linux*) New target.
|
40 |
|
|
* linux-xtensa-low.c: New.
|
41 |
|
|
* xtensa-xtregs.c: New.
|
42 |
|
|
|
43 |
|
|
2008-02-01 Pedro Alves
|
44 |
|
|
|
45 |
|
|
* hostio.c: Don't include errno.h.
|
46 |
|
|
(errno_to_fileio_errno): Move to hostio-errno.
|
47 |
|
|
* hostio.c: (hostio_error): Remove the error parameter. Defer the
|
48 |
|
|
error number outputting to the target->hostio_last_error callback.
|
49 |
|
|
(hostio_packet_error): Use FILEIO_EINVAL directly.
|
50 |
|
|
(handle_open, handle_pread, hostio_error, handle_unlink): Update
|
51 |
|
|
calls to hostio_error.
|
52 |
|
|
* hostio-errno.c: New.
|
53 |
|
|
* server.h (hostio_last_error_from_errno): Declare.
|
54 |
|
|
* target.h (target_ops): Add hostio_last_error member.
|
55 |
|
|
* linux-low.c (linux_target_op): Register hostio_last_error_from_errno
|
56 |
|
|
as hostio_last_error handler.
|
57 |
|
|
* spu-low.c (spu_target_ops): Likewise.
|
58 |
|
|
* win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
|
59 |
|
|
(wince_hostio_last_error): New functions.
|
60 |
|
|
(win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
|
61 |
|
|
as hostio_last_error handler.
|
62 |
|
|
(win32_target_ops) [!_WIN32_WCE]: Register
|
63 |
|
|
hostio_last_error_from_errno as hostio_last_error handler.
|
64 |
|
|
* Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
|
65 |
|
|
(hostio-errno.o): New rule.
|
66 |
|
|
* configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
|
67 |
|
|
* configure.srv (srv_hostio_err_objs): New variable. Default to
|
68 |
|
|
hostio-errno.o.
|
69 |
|
|
(arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
|
70 |
|
|
* configure: Regenerate.
|
71 |
|
|
|
72 |
|
|
2008-01-29 Daniel Jacobowitz
|
73 |
|
|
|
74 |
|
|
* linux-low.c (linux_attach_lwp): Do not _exit after errors.
|
75 |
|
|
(linux_kill, linux_detach): Clean up the process list.
|
76 |
|
|
* remote-utils.c (remote_open): Improve port number parsing.
|
77 |
|
|
(putpkt_binary, input_interrupt): Only send interrupts if the target
|
78 |
|
|
is running.
|
79 |
|
|
* server.c (extended_protocol): Make static.
|
80 |
|
|
(attached): Define earlier.
|
81 |
|
|
(exit_requested, response_needed, program_argv): New variables.
|
82 |
|
|
(target_running): New.
|
83 |
|
|
(start_inferior): Clear attached here.
|
84 |
|
|
(attach_inferior): Set attached here.
|
85 |
|
|
(require_running): Define.
|
86 |
|
|
(handle_query): Use require_running and target_running. Implement
|
87 |
|
|
"monitor exit".
|
88 |
|
|
(handle_v_attach, handle_v_run): New.
|
89 |
|
|
(handle_v_requests): Use require_running. Handle vAttach and vRun.
|
90 |
|
|
(gdbserver_usage): Update.
|
91 |
|
|
(main): Redo argument parsing. Handle --debug and --multi. Handle
|
92 |
|
|
--attach along with other options or after the port. Save
|
93 |
|
|
program_argv. Support no initial program. Resynchronize
|
94 |
|
|
communication with GDB after an error. Handle "monitor exit".
|
95 |
|
|
Use require_running and target_running. Always allow the extended
|
96 |
|
|
protocol. Do not error out for Hc0 or Hc-1. Do not automatically
|
97 |
|
|
restart in extended mode.
|
98 |
|
|
* README: Refer to the GDB manual. Update --attach usage.
|
99 |
|
|
|
100 |
|
|
2007-12-20 Andreas Schwab
|
101 |
|
|
|
102 |
|
|
* linux-low.c (STACK_SIZE): Define.
|
103 |
|
|
(linux_tracefork_child): Use it. Use __clone2 on ia64.
|
104 |
|
|
(linux_test_for_tracefork): Likewise.
|
105 |
|
|
|
106 |
|
|
2007-12-18 Daniel Jacobowitz
|
107 |
|
|
|
108 |
|
|
* linux-low.c (linux_wait_for_event): Update messages. Do not
|
109 |
|
|
reinsert auto-delete breakpoints.
|
110 |
|
|
* mem-break.c (struct breakpoint): Change return type of handler to
|
111 |
|
|
int.
|
112 |
|
|
(set_breakpoint_at): Update handler type.
|
113 |
|
|
(reinsert_breakpoint_handler): Return 1 instead of calling
|
114 |
|
|
delete_breakpoint.
|
115 |
|
|
(reinsert_breakpoint_by_bp): Check for the original breakpoint before
|
116 |
|
|
setting a new one.
|
117 |
|
|
(check_breakpoints): Delete auto-delete breakpoints and return 2.
|
118 |
|
|
* mem-break.h (set_breakpoint_at): Update handler type.
|
119 |
|
|
* thread-db.c (thread_db_create_event, thread_db_create_event): Update.
|
120 |
|
|
* win32-low.c (auto_delete_breakpoint): New.
|
121 |
|
|
(get_child_debug_event): Use it.
|
122 |
|
|
|
123 |
|
|
2007-12-16 Daniel Jacobowitz
|
124 |
|
|
|
125 |
|
|
* configure.ac: Check for pread and pwrite.
|
126 |
|
|
* hostio.c (handle_pread): Fall back to lseek and read.
|
127 |
|
|
(handle_pwrite): Fall back to lseek and write.
|
128 |
|
|
* config.in, configure: Regenerated.
|
129 |
|
|
|
130 |
|
|
2007-12-07 Daniel Jacobowitz
|
131 |
|
|
|
132 |
|
|
* server.c (myresume): Add own_buf argument.
|
133 |
|
|
(main): Update calls.
|
134 |
|
|
|
135 |
|
|
2007-12-06 Daniel Jacobowitz
|
136 |
|
|
|
137 |
|
|
* linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
|
138 |
|
|
* remote-utils.c (remote_open): Do not call disable_async_io.
|
139 |
|
|
(block_async_io): Delete.
|
140 |
|
|
(unblock_async_io): Make static.
|
141 |
|
|
(initialize_async_io): New.
|
142 |
|
|
* server.c (handle_v_cont): Handle async I/O here.
|
143 |
|
|
(myresume): Likewise. Move other common resume tasks here...
|
144 |
|
|
(main): ... from here. Call initialize_async_io. Disable async
|
145 |
|
|
I/O before the main loop.
|
146 |
|
|
* server.h (initialize_async_io): Declare.
|
147 |
|
|
(block_async_io, unblock_async_io): Delete prototypes.
|
148 |
|
|
* spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
|
149 |
|
|
|
150 |
|
|
2007-12-06 Mick Davis
|
151 |
|
|
|
152 |
|
|
* remote-utils.c (readchar): Allow binary data in received messages.
|
153 |
|
|
|
154 |
|
|
2007-12-03 Pedro Alves
|
155 |
|
|
|
156 |
|
|
* win32-low.c (attaching): New global.
|
157 |
|
|
(win32_create_inferior): Clear the `attaching' global.
|
158 |
|
|
(win32_attach): Set the `attaching' global.
|
159 |
|
|
(get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
|
160 |
|
|
attaching. Only set a breakpoint at the entry point if not
|
161 |
|
|
attaching.
|
162 |
|
|
|
163 |
|
|
2007-12-03 Pedro Alves
|
164 |
|
|
|
165 |
|
|
* server.c (main): Don't report dll events on the initial
|
166 |
|
|
connection on attaches.
|
167 |
|
|
|
168 |
|
|
2007-12-03 Pedro Alves
|
169 |
|
|
|
170 |
|
|
* server.c (main): Relax numerical bases supported for the pid of
|
171 |
|
|
the --attach command line argument.
|
172 |
|
|
|
173 |
|
|
2007-12-03 Pedro Alves
|
174 |
|
|
|
175 |
|
|
* win32-low.c (win32_attach): Call OpenProcess before
|
176 |
|
|
DebugActiveProcess, not after. Add last error output to error
|
177 |
|
|
call.
|
178 |
|
|
|
179 |
|
|
2007-12-03 Pedro Alves
|
180 |
|
|
|
181 |
|
|
* win32-low.c (win32_get_thread_context)
|
182 |
|
|
(win32_set_thread_context): New functions.
|
183 |
|
|
(thread_rec): Use win32_get_thread_context.
|
184 |
|
|
(continue_one_thread, win32_resume): Use win32_set_thread_context.
|
185 |
|
|
* win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
|
186 |
|
|
field.
|
187 |
|
|
|
188 |
|
|
2007-12-03 Leo Zayas
|
189 |
|
|
Pedro Alves
|
190 |
|
|
|
191 |
|
|
* win32-low.c (soft_interrupt_requested, faked_breakpoint): New
|
192 |
|
|
global variables.
|
193 |
|
|
(child_add_thread): Minor cleanup.
|
194 |
|
|
(child_continue): Resume artificially suspended threads before
|
195 |
|
|
calling ContinueDebugEvent.
|
196 |
|
|
(suspend_one_thread): New.
|
197 |
|
|
(fake_breakpoint_event): New.
|
198 |
|
|
(get_child_debug_event): Change return type to int. Check here if
|
199 |
|
|
gdb sent an interrupt request. If a soft interrupt was requested,
|
200 |
|
|
fake a breakpoint event. Return 0 if there is no event to handle,
|
201 |
|
|
and 1 otherwise.
|
202 |
|
|
(win32_wait): Don't check here if gdb sent an interrupt request.
|
203 |
|
|
Ensure there is a valid event to handle.
|
204 |
|
|
(win32_request_interrupt): Add soft interruption method as last
|
205 |
|
|
resort.
|
206 |
|
|
|
207 |
|
|
2007-12-03 Leo Zayas
|
208 |
|
|
Pedro Alves
|
209 |
|
|
|
210 |
|
|
* win32-low.h (win32_thread_info): Add descriptions to the
|
211 |
|
|
structure members. Replace `suspend_count' counter by a
|
212 |
|
|
`suspended' flag.
|
213 |
|
|
* win32-low.c (thread_rec): Update condition of when to get the
|
214 |
|
|
context from the inferior. Rely on ContextFlags being set if it
|
215 |
|
|
has already been retrieved. Only suspend the inferior thread if
|
216 |
|
|
we haven't already. Warn if that fails.
|
217 |
|
|
(continue_one_thread): s/suspend_count/suspended/. Only call
|
218 |
|
|
ResumeThread once. Warn if that fails.
|
219 |
|
|
|
220 |
|
|
2007-12-02 Pedro Alves
|
221 |
|
|
|
222 |
|
|
* win32-low.c (win32_wait): Don't read from the inferior when it
|
223 |
|
|
has already exited.
|
224 |
|
|
|
225 |
|
|
2007-12-02 Pedro Alves
|
226 |
|
|
|
227 |
|
|
* Makefile.in (win32_low_h): New variable.
|
228 |
|
|
(win32-low.o): Add dependency on $(win32_low_h).
|
229 |
|
|
(win32-arm-low.o, win32-i386-low.o): New rules.
|
230 |
|
|
|
231 |
|
|
2007-11-30 Daniel Jacobowitz
|
232 |
|
|
|
233 |
|
|
* hostio.c: Correct copyright year.
|
234 |
|
|
|
235 |
|
|
2007-11-30 Daniel Jacobowitz
|
236 |
|
|
|
237 |
|
|
* Makefile.in (OBS): Add hostio.o.
|
238 |
|
|
(hostio.o): New rule.
|
239 |
|
|
* server.h (handle_vFile): Declare.
|
240 |
|
|
* hostio.c: New file.
|
241 |
|
|
* server.c (handle_v_requests): Take packet_len and new_packet_len
|
242 |
|
|
for binary packets. Call handle_vFile.
|
243 |
|
|
(main): Update call to handle_v_requests.
|
244 |
|
|
|
245 |
|
|
2007-11-05 Daniel Jacobowitz
|
246 |
|
|
|
247 |
|
|
* linux-low.c: Include .
|
248 |
|
|
|
249 |
|
|
2007-11-01 Daniel Jacobowitz
|
250 |
|
|
|
251 |
|
|
* linux-low.c (linux_tracefork_grandchild): New.
|
252 |
|
|
(linux_tracefork_child): Use clone.
|
253 |
|
|
(linux_test_for_tracefork): Use clone; allocate and free a stack.
|
254 |
|
|
|
255 |
|
|
2007-10-31 Joel Brobecker
|
256 |
|
|
|
257 |
|
|
* Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
|
258 |
|
|
|
259 |
|
|
2007-10-24 Daniel Jacobowitz
|
260 |
|
|
|
261 |
|
|
* linux-low.c (handle_extended_wait): Handle unexpected signals.
|
262 |
|
|
|
263 |
|
|
2007-10-23 Daniel Jacobowitz
|
264 |
|
|
|
265 |
|
|
* inferiors.c (change_inferior_id): Delete.
|
266 |
|
|
(add_pid_to_list, pull_pid_from_list): New.
|
267 |
|
|
* linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
|
268 |
|
|
(PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
|
269 |
|
|
(PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
|
270 |
|
|
(PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
|
271 |
|
|
(PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
|
272 |
|
|
(PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
|
273 |
|
|
(stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
|
274 |
|
|
(using_threads): Always set to 1.
|
275 |
|
|
(handle_extended_wait): New.
|
276 |
|
|
(add_process): Do not set TID.
|
277 |
|
|
(linux_create_inferior): Set must_set_ptrace_flags.
|
278 |
|
|
(linux_attach_lwp): Remove TID argument. Do not check using_threads.
|
279 |
|
|
Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
|
280 |
|
|
(linux_thread_alive): Rename TID argument to LWPID.
|
281 |
|
|
(linux_wait_for_process): Handle unknown processes. Do not use TID.
|
282 |
|
|
(linux_wait_for_event): Do not use TID or check using_threads. Update
|
283 |
|
|
call to dead_thread_notify. Call handle_extended_wait.
|
284 |
|
|
(linux_create_inferior): Use PTRACE_SETOPTIONS.
|
285 |
|
|
(send_sigstop): Delete sigstop_sent.
|
286 |
|
|
(wait_for_sigstop): Avoid TID.
|
287 |
|
|
(linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
|
288 |
|
|
(linux_test_for_tracefork): New.
|
289 |
|
|
(linux_lookup_signals): Use thread_db_active and
|
290 |
|
|
linux_supports_tracefork_flag.
|
291 |
|
|
(initialize_low): Use thread_db_active and linux_test_for_tracefork.
|
292 |
|
|
* linux-low.h (get_process_thread): Avoid TID.
|
293 |
|
|
(struct process_ifo): Move thread_known and tid to the end. Remove
|
294 |
|
|
sigstop_sent.
|
295 |
|
|
(linux_attach_lwp, thread_db_init): Update prototypes.
|
296 |
|
|
* server.h (change_inferior_id): Delete prototype.
|
297 |
|
|
(add_pid_to_list, pull_pid_from_list): New prototypes.
|
298 |
|
|
* thread-db.c (thread_db_use_events): New.
|
299 |
|
|
(find_first_thread): Rename to...
|
300 |
|
|
(find_one_thread): ...this. Update callers and messages. Do not
|
301 |
|
|
call fatal. Check thread_db_use_events. Do not call
|
302 |
|
|
change_inferior_id or new_thread_notify.
|
303 |
|
|
(maybe_attach_thread): Update. Do not call new_thread_notify.
|
304 |
|
|
(thread_db_init): Set thread_db_use_events. Check use_events.
|
305 |
|
|
* utils.c (fatal, warning): Correct message prefix.
|
306 |
|
|
|
307 |
|
|
2007-10-15 Daniel Jacobowitz
|
308 |
|
|
|
309 |
|
|
* Makefile.in (clean): Remove new files.
|
310 |
|
|
(powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
|
311 |
|
|
(powerpc-64.o, powerpc-64.c): New rules.
|
312 |
|
|
* configure.srv: Use alternate register sets for powerpc64-*-linux*
|
313 |
|
|
with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
|
314 |
|
|
with SPE.
|
315 |
|
|
* linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
|
316 |
|
|
SPE targets.
|
317 |
|
|
(ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
|
318 |
|
|
(PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
|
319 |
|
|
(ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
|
320 |
|
|
(struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
|
321 |
|
|
(target_regsets): Add AltiVec and SPE register sets.
|
322 |
|
|
* configure.ac: Check for AltiVec and SPE.
|
323 |
|
|
* linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
|
324 |
|
|
(ppc_fill_vrregset, ppc_store_vrregset): New.
|
325 |
|
|
(target_regsets): Add AltiVec register set.
|
326 |
|
|
* configure: Regenerated.
|
327 |
|
|
|
328 |
|
|
2007-09-19 Daniel Jacobowitz
|
329 |
|
|
|
330 |
|
|
* linux-low.c (O_LARGEFILE): Define.
|
331 |
|
|
(linux_read_memory): Use /proc/PID/mem.
|
332 |
|
|
* configure.ac: Use AC_GNU_SOURCE. Check for pread64.
|
333 |
|
|
* configure, config.in: Regenerated.
|
334 |
|
|
|
335 |
|
|
2007-09-04 Daniel Jacobowitz
|
336 |
|
|
|
337 |
|
|
* linux-low.c (linux_wait_for_event): Do not pass signals while
|
338 |
|
|
single-stepping.
|
339 |
|
|
|
340 |
|
|
2007-09-03 Pedro Alves
|
341 |
|
|
|
342 |
|
|
* win32-low.c (create_process): New.
|
343 |
|
|
(win32_create_inferior): Use create_process instead of
|
344 |
|
|
CreateProcess. If create_process failed retry appending an ".exe"
|
345 |
|
|
suffix. Store the GetLastError result immediatelly after
|
346 |
|
|
create_process calls and use it on the call to error.
|
347 |
|
|
|
348 |
|
|
2007-09-03 Pedro Alves
|
349 |
|
|
|
350 |
|
|
* win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
|
351 |
|
|
|
352 |
|
|
2007-08-23 Joel Brobecker
|
353 |
|
|
|
354 |
|
|
* configure.ac: Switch license to GPLv3.
|
355 |
|
|
|
356 |
|
|
2007-08-01 Michael Snyder
|
357 |
|
|
|
358 |
|
|
* remote-utils.c (putpkt_binary): Memory leak, free buf2.
|
359 |
|
|
|
360 |
|
|
2007-07-31 Pedro Alves
|
361 |
|
|
|
362 |
|
|
* win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
|
363 |
|
|
typedef.
|
364 |
|
|
(win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
|
365 |
|
|
(load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
|
366 |
|
|
CloseToolhelp32Snapshot.
|
367 |
|
|
(toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
|
368 |
|
|
CloseToolhelp32Snapshot.
|
369 |
|
|
|
370 |
|
|
2007-07-27 Michael Snyder
|
371 |
|
|
|
372 |
|
|
* server.c (main): Check for inferior exit before main loop.
|
373 |
|
|
|
374 |
|
|
2007-07-18 Pedro Alves
|
375 |
|
|
|
376 |
|
|
* remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
|
377 |
|
|
instead of on tmp_desc.
|
378 |
|
|
|
379 |
|
|
2007-07-17 Pedro Alves
|
380 |
|
|
Daniel Jacobowitz
|
381 |
|
|
|
382 |
|
|
* inferiors.c (all_dlls, dlls_changed, get_dll): New.
|
383 |
|
|
(add_thread): Minor cleanups.
|
384 |
|
|
(clear_inferiors): Move lower in the file. Clear the DLL
|
385 |
|
|
list.
|
386 |
|
|
(free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
|
387 |
|
|
* remote-utils.c (prepare_resume_reply): Check dlls_changed.
|
388 |
|
|
(xml_escape_text): New.
|
389 |
|
|
* server.c (handle_query): Handle qXfer:libraries:read. Report it
|
390 |
|
|
for qSupported.
|
391 |
|
|
(handle_v_cont): Report errors.
|
392 |
|
|
(gdbserver_version): Update.
|
393 |
|
|
(main): Correct size of own_buf. Do not report initial DLL events.
|
394 |
|
|
* server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
|
395 |
|
|
(unloaded_dll, xml_escape_text): New.
|
396 |
|
|
* win32-low.c (enum target_waitkind): Update comments.
|
397 |
|
|
(win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
|
398 |
|
|
(winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
|
399 |
|
|
(win32_EnumProcessModules, win32_GetModuleInformation)
|
400 |
|
|
(win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
|
401 |
|
|
(winapi_CreateToolhelp32Snapshot, winapi_Module32First)
|
402 |
|
|
(winapi_Module32Next, win32_CreateToolhelp32Snapshot)
|
403 |
|
|
(win32_Module32First, win32_Module32Next, load_toolhelp)
|
404 |
|
|
(toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
|
405 |
|
|
(get_child_debug_event): Handle DLL events.
|
406 |
|
|
(win32_wait): Likewise.
|
407 |
|
|
|
408 |
|
|
2007-07-12 Daniel Jacobowitz
|
409 |
|
|
|
410 |
|
|
* configure.srv: Set srv_linux_regsets for sh*-*-linux*.
|
411 |
|
|
* linux-sh-low.c (sh_fill_gregset, target_regsets): New.
|
412 |
|
|
|
413 |
|
|
2007-07-08 Pedro Alves
|
414 |
|
|
|
415 |
|
|
* win32-low.c (handle_output_debug_string): Ignore event if not
|
416 |
|
|
waiting.
|
417 |
|
|
|
418 |
|
|
2007-07-08 Pedro Alves
|
419 |
|
|
|
420 |
|
|
* win32-arm-low.c (arm_wince_breakpoint): Fix typo.
|
421 |
|
|
|
422 |
|
|
2007-07-03 Daniel Jacobowitz
|
423 |
|
|
|
424 |
|
|
* remote-utils.c (look_up_one_symbol): Handle 'm' packets.
|
425 |
|
|
|
426 |
|
|
2007-07-02 Daniel Jacobowitz
|
427 |
|
|
|
428 |
|
|
* inferiors.c (change_inferior_id): Add comment.
|
429 |
|
|
* linux-low.c (check_removed_breakpoint): Add an early
|
430 |
|
|
prototype. Improve debug output.
|
431 |
|
|
(linux_attach): Doc update.
|
432 |
|
|
(linux_detach_one_process, linux_detach): Clean up before releasing
|
433 |
|
|
each process.
|
434 |
|
|
(send_sigstop, wait_for_sigstop): Improve comments and debug output.
|
435 |
|
|
* linux-low.h (struct process_info): Doc improvement.
|
436 |
|
|
* mem-break.c (delete_all_breakpoints): New.
|
437 |
|
|
* mem-break.h (delete_all_breakpoints): New prototype.
|
438 |
|
|
* thread-db.c (find_first_thread): New.
|
439 |
|
|
(thread_db_create_event): Call it instead of
|
440 |
|
|
thread_db_find_new_threads. Clean up unused variables.
|
441 |
|
|
(maybe_attach_thread): Remove first thread handling.
|
442 |
|
|
(thread_db_find_new_threads): Use find_first_thread.
|
443 |
|
|
(thread_db_get_tls_address): Likewise.
|
444 |
|
|
|
445 |
|
|
2007-06-27 Daniel Jacobowitz
|
446 |
|
|
|
447 |
|
|
* thread-db.c (thread_db_find_new_threads): Add prototype.
|
448 |
|
|
(thread_db_create_event): Check for the main thread before adding
|
449 |
|
|
a new thread.
|
450 |
|
|
(maybe_attach_thread): Only enable event reporting if TID == 0.
|
451 |
|
|
(thread_db_get_tls_address): Check for new threads.
|
452 |
|
|
|
453 |
|
|
2007-06-20 Daniel Jacobowitz
|
454 |
|
|
|
455 |
|
|
* linux-low.c (linux_create_inferior): Try execv before execvp.
|
456 |
|
|
* spu-low.c (spu_create_inferior): Likewise.
|
457 |
|
|
|
458 |
|
|
2007-06-13 Mike Frysinger
|
459 |
|
|
|
460 |
|
|
* linux-low.c (linux_create_inferior): Change execv to execvp.
|
461 |
|
|
* spu-low.c (spu_create_inferior): Likewies.
|
462 |
|
|
|
463 |
|
|
2007-06-13 Daniel Jacobowitz
|
464 |
|
|
|
465 |
|
|
* Makefile.in (clean): Clean new files instead of deleted ones.
|
466 |
|
|
(reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
|
467 |
|
|
(mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
|
468 |
|
|
rules.
|
469 |
|
|
* configure.srv: Specify XML files and new regformats for MIPS and
|
470 |
|
|
MIPS64 GNU/Linux.
|
471 |
|
|
* linux-mips-low.c (mips_num_regs): Set to only used registers.
|
472 |
|
|
(mips_regmap): Do not fetch $0. Remove unused registers. Add
|
473 |
|
|
an entry for the restart register.
|
474 |
|
|
(mips_cannot_fetch_register, mips_cannot_store_register)
|
475 |
|
|
(mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
|
476 |
|
|
register names to match the XML descriptions.
|
477 |
|
|
(mips_fill_gregset, mips_store_gregset): Likewise. Handle the
|
478 |
|
|
restart register instead of $0.
|
479 |
|
|
|
480 |
|
|
2007-06-12 Ulrich Weigand
|
481 |
|
|
Markus Deuling
|
482 |
|
|
|
483 |
|
|
* remote-utils.c (decode_xfer_write): New function.
|
484 |
|
|
* server.h (decode_xfer_write): Add prototype.
|
485 |
|
|
* server.c (handle_query): Add PACKET_LEN argument. Support
|
486 |
|
|
qXfer:spu:read and qXfer:spu:write packets.
|
487 |
|
|
(main): Pass packet_len to handle_query.
|
488 |
|
|
* spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
|
489 |
|
|
* target.h (target_ops): Add qxfer_spu.
|
490 |
|
|
|
491 |
|
|
2007-06-12 Ulrich Weigand
|
492 |
|
|
|
493 |
|
|
* spu-low.c (spu_proc_xfer_spu): Do not return failure when
|
494 |
|
|
accessing non-seekable spufs files.
|
495 |
|
|
|
496 |
|
|
2007-05-16 Markus Deuling
|
497 |
|
|
|
498 |
|
|
* server.c (handle_query): Add reply for qC packet.
|
499 |
|
|
|
500 |
|
|
2007-05-10 Pedro Alves
|
501 |
|
|
Leo Zayas
|
502 |
|
|
|
503 |
|
|
* server.h (check_remote_input_interrupt_request): New function.
|
504 |
|
|
* remote_utils.c (INVALID_DESCRIPTOR): New define.
|
505 |
|
|
(remote_desc): Initialize with INVALID_DESCRIPTOR.
|
506 |
|
|
(input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
|
507 |
|
|
(check_remote_input_interrupt_request): New function.
|
508 |
|
|
* server.h (check_remote_input_interrupt_request): Declare.
|
509 |
|
|
* win32-low.c (winapi_DebugBreakProcess,
|
510 |
|
|
winapi_GenerateConsoleCtrlEvent): New typedefs.
|
511 |
|
|
(get_child_debug_event): Lower Win32 debug event polling from 1 sec
|
512 |
|
|
to 250 ms.
|
513 |
|
|
(win32_wait): Check for remote interrupt request
|
514 |
|
|
with check_remote_input_interrupt_request.
|
515 |
|
|
(win32_request_interrupt): New function.
|
516 |
|
|
(win32_target_op): Set request_interrupt to win32_request_interrupt.
|
517 |
|
|
|
518 |
|
|
2007-05-10 Pedro Alves
|
519 |
|
|
|
520 |
|
|
* win32-low.c (debug_registers_changed,
|
521 |
|
|
debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
|
522 |
|
|
CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
|
523 |
|
|
CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
|
524 |
|
|
(thread_rec): Get context using the low target.
|
525 |
|
|
(child_add_thread): Call thread_added on the low target,
|
526 |
|
|
which does the same thing.
|
527 |
|
|
(regptr): Delete.
|
528 |
|
|
(do_initial_child_stuff): Remove debug registers references.
|
529 |
|
|
Set context using the low target. Resume threads after
|
530 |
|
|
setting the contexts.
|
531 |
|
|
(child_continue): Remove dead variable. Remove debug
|
532 |
|
|
registers references.
|
533 |
|
|
(child_fetch_inferior_registers): Go through the low target.
|
534 |
|
|
(do_child_store_inferior_registers): Remove.
|
535 |
|
|
(child_store_inferior_registers): Go through the low target.
|
536 |
|
|
(win32_resume): Remove debug registers references.
|
537 |
|
|
Set context using the low target.
|
538 |
|
|
(handle_exception): Change return type to void. Don't record
|
539 |
|
|
context here. Set status to TARGET_WAITKIND_SPURIOUS on a
|
540 |
|
|
first chance exception.
|
541 |
|
|
(get_child_debug_event): Change return type to void. Remove
|
542 |
|
|
goto loop. Always return after waiting for debug event.
|
543 |
|
|
(win32_wait): Convert to switch statement. Handle spurious
|
544 |
|
|
events.
|
545 |
|
|
|
546 |
|
|
* win32-i386-low.c (debug_registers_changed,
|
547 |
|
|
debug_registers_used): New.
|
548 |
|
|
(initial_stuff): Rename to ...
|
549 |
|
|
(i386_initial_stuff): ... this. Clear debug registers
|
550 |
|
|
state variables.
|
551 |
|
|
(store_debug_registers): Delete.
|
552 |
|
|
(i386_get_thread_context): New.
|
553 |
|
|
(load_debug_registers): Delete.
|
554 |
|
|
(i386_set_thread_context): New.
|
555 |
|
|
(i386_thread_added): New.
|
556 |
|
|
(single_step): Rename to ...
|
557 |
|
|
(i386_single_step): ... this.
|
558 |
|
|
(do_fetch_inferior_registers): Rename to ...
|
559 |
|
|
(i386_fetch_inferior_register): ... this.
|
560 |
|
|
(i386_store_inferior_register): New.
|
561 |
|
|
(the_low_target): Adapt to new interface.
|
562 |
|
|
|
563 |
|
|
* win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
|
564 |
|
|
(arm_get_thread_context): New.
|
565 |
|
|
(arm_set_thread_context): New.
|
566 |
|
|
(regptr): New.
|
567 |
|
|
(do_fetch_inferior_registers): Rename to ...
|
568 |
|
|
(arm_fetch_inferior_register): ... this.
|
569 |
|
|
(arm_store_inferior_register): New.
|
570 |
|
|
(arm_wince_breakpoint): Reimplement as unsigned long.
|
571 |
|
|
(arm_wince_breakpoint_len): Define.
|
572 |
|
|
(the_low_target): Adapt to new interface.
|
573 |
|
|
|
574 |
|
|
* win32-low.h (target_ops): Remove regmap, store_debug_registers and
|
575 |
|
|
load_debug_registers. Add get_thread_context, set_thread_context,
|
576 |
|
|
thread_added and store_inferior_register. Rename
|
577 |
|
|
fetch_inferior_registers to fetch_inferior_register.
|
578 |
|
|
(regptr): Remove declaration.
|
579 |
|
|
|
580 |
|
|
2007-05-10 Pedro Alves
|
581 |
|
|
|
582 |
|
|
* linux-low.c (linux_detach): Change return type to int. Return 0.
|
583 |
|
|
* spu-low.c (spu_detach): Likewise.
|
584 |
|
|
|
585 |
|
|
2007-05-10 Pedro Alves
|
586 |
|
|
|
587 |
|
|
* target.h (target_ops): Change return type of detach to int.
|
588 |
|
|
Add join.
|
589 |
|
|
(join_inferior): New.
|
590 |
|
|
* server.c (main): Don't skip detach support on mingw32.
|
591 |
|
|
If the inferior doesn't support detaching return error.
|
592 |
|
|
Call join_inferior instead of using waitpid.
|
593 |
|
|
* linux-low.c (linux_join): New.
|
594 |
|
|
(linux_target_op): Add linux_join.
|
595 |
|
|
* spu-low.c (spu_join): New.
|
596 |
|
|
(spu_target_ops): Add spu_join.
|
597 |
|
|
* win32-low.c (win32_detach): Adapt to new interface.
|
598 |
|
|
Reopen current_process_handle before detaching. Issue a child
|
599 |
|
|
resume before detaching.
|
600 |
|
|
(win32_join): New.
|
601 |
|
|
(win32_target_op): Add win32_join.
|
602 |
|
|
|
603 |
|
|
2007-05-10 Pedro Alves
|
604 |
|
|
|
605 |
|
|
* win32-low.c (win32-attach): Fix return value.
|
606 |
|
|
* target.h (target_ops): Describe ATTACH return values.
|
607 |
|
|
|
608 |
|
|
2007-05-10 Pedro Alves
|
609 |
|
|
|
610 |
|
|
* win32-low.c (GETPROCADDRESS): Define.
|
611 |
|
|
(winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
|
612 |
|
|
(winapi_DebugSetProcessKillOnExit): Likewise.
|
613 |
|
|
(win32_create_inferior): Force usage of ansi CreateProcessA.
|
614 |
|
|
(win32_attach): Use GETPROCADDRESS.
|
615 |
|
|
(win32_detach): Likewise.
|
616 |
|
|
|
617 |
|
|
2007-05-10 Pedro Alves
|
618 |
|
|
|
619 |
|
|
* win32-low.c (win32_wait): Don't use WSTOPSIG.
|
620 |
|
|
|
621 |
|
|
2007-03-30 Pedro Alves
|
622 |
|
|
|
623 |
|
|
* win32-low.c: Commit leftover changes from 2007-03-29.
|
624 |
|
|
|
625 |
|
|
2007-03-30 Daniel Jacobowitz
|
626 |
|
|
|
627 |
|
|
* i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
|
628 |
|
|
fields short instead of int. Add explicit padding.
|
629 |
|
|
(i387_cache_to_fsave): Remove unnecessary casts.
|
630 |
|
|
(i387_fsave_to_cache): Doc fix.
|
631 |
|
|
(i387_cache_to_fxsave): Remove unnecessary casts and masking.
|
632 |
|
|
|
633 |
|
|
2007-03-30 Daniel Jacobowitz
|
634 |
|
|
|
635 |
|
|
* i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
|
636 |
|
|
(i387_fxsave_to_cache): Check fp->ftag while building ftag value.
|
637 |
|
|
|
638 |
|
|
2007-03-29 Pedro Alves
|
639 |
|
|
|
640 |
|
|
* configure.srv (arm*-*-mingw32ce*): Move near the other
|
641 |
|
|
arm targets.
|
642 |
|
|
|
643 |
|
|
2007-03-29 Pedro Alves
|
644 |
|
|
|
645 |
|
|
* configure.ac: Add errno checking.
|
646 |
|
|
(AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
|
647 |
|
|
sys/file.h and malloc.h.
|
648 |
|
|
(AC_CHECK_DECLS): Add perror.
|
649 |
|
|
(srv_mingwce): Handle.
|
650 |
|
|
* configure.srv (i[34567]86-*-cygwin*): Add
|
651 |
|
|
win32-i386-low.o to srv_tgtobj.
|
652 |
|
|
(i[34567]86-*-mingw*): Likewise.
|
653 |
|
|
(arm*-*-mingw32ce*): Add case.
|
654 |
|
|
* gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
|
655 |
|
|
HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
|
656 |
|
|
[__MINGW32CE__] (strerror): New function.
|
657 |
|
|
[__MINGW32CE__] (errno): Define to GetLastError.
|
658 |
|
|
[__MINGW32CE__] (COUNTOF): New macro.
|
659 |
|
|
(remote_open): Remove extra close call.
|
660 |
|
|
* mem-break.c (delete_breakpoint_at): New function.
|
661 |
|
|
* mem-break.h (delete_breakpoint_at): Declare.
|
662 |
|
|
* remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
|
663 |
|
|
HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
|
664 |
|
|
[USE_WIN32API] (read, write): Add char* casts.
|
665 |
|
|
* server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
|
666 |
|
|
* server.h: Include wincecompat.h on Windows CE.
|
667 |
|
|
[HAVE_ERRNO_H]: Check.
|
668 |
|
|
(perror): Declare if not declared.
|
669 |
|
|
* utils.c: Add stdlib.h, errno.h and malloc.h includes.
|
670 |
|
|
(perror_with_name): Remove errno declaration.
|
671 |
|
|
* wincecompat.h: New.
|
672 |
|
|
* wincecompat.c: New.
|
673 |
|
|
* win32-low.h: New.
|
674 |
|
|
* win32-arm-low.c: New.
|
675 |
|
|
* win32-i386-low.c: New.
|
676 |
|
|
(win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
|
677 |
|
|
(OUTMSG2): Make it safe.
|
678 |
|
|
(_T): New macro.
|
679 |
|
|
(COUNTOF): New macro.
|
680 |
|
|
(NUM_REGS): Get it from the low target.
|
681 |
|
|
(CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
|
682 |
|
|
CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
|
683 |
|
|
(thread_rec): Let low target handle debug registers.
|
684 |
|
|
(child_add_thread): Likewise.
|
685 |
|
|
(child_init_thread_list): Likewise.
|
686 |
|
|
(continue_one_thread): Likewise.
|
687 |
|
|
(regptr): New.
|
688 |
|
|
(do_child_fetch_inferior_registers): Move to ...
|
689 |
|
|
* win32-i386-low.c: ... here, and rename to ...
|
690 |
|
|
(do_fetch_inferior_registers): ... this.
|
691 |
|
|
* win32-low.c (child_fetch_inferior_registers):
|
692 |
|
|
Go through the low target.
|
693 |
|
|
(do_child_store_inferior_registers): Use regptr.
|
694 |
|
|
(strwinerror): New function.
|
695 |
|
|
(win32_create_inferior): Handle Windows CE.
|
696 |
|
|
Use strwinerror instead of strerror on Windows error
|
697 |
|
|
codes. Add program to the error output.
|
698 |
|
|
Don't close the main thread handle on Windows CE.
|
699 |
|
|
(win32_attach): Use coredll.dll on Windows CE.
|
700 |
|
|
(win32_kill): Close current process and current
|
701 |
|
|
thread handles.
|
702 |
|
|
(win32_detach): Use coredll.dll on Windows CE.
|
703 |
|
|
(win32_resume): Let low target handle debug registers, and
|
704 |
|
|
step request.
|
705 |
|
|
(handle_exception): Add/Remove initial breakpoint. Avoid
|
706 |
|
|
non-existant WSTOPSIG on Windows CE.
|
707 |
|
|
(win32_read_inferior_memory): Cast to remove warning.
|
708 |
|
|
(win32_arch_string): Go through the low target.
|
709 |
|
|
(initialize_low): Call set_breakpoint_data with the low
|
710 |
|
|
target's breakpoint.
|
711 |
|
|
* win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
|
712 |
|
|
FOP_REGNUM, mappings): Move to ...
|
713 |
|
|
* win32-i386-low.c: ... here.
|
714 |
|
|
* win32-low.c (win32_thread_info): Move to ...
|
715 |
|
|
* win32-low.h: ... here.
|
716 |
|
|
* Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
|
717 |
|
|
win32-arm-low.c and wincecompat.c.
|
718 |
|
|
(all:): Add $EXEEXT.
|
719 |
|
|
(install-only:): Likewise.
|
720 |
|
|
(gdbserver:): Likewise.
|
721 |
|
|
(gdbreplay:): Likewise.
|
722 |
|
|
* config.in: Regenerate.
|
723 |
|
|
* configure: Regenerate.
|
724 |
|
|
|
725 |
|
|
2007-03-28 Pedro Alves
|
726 |
|
|
|
727 |
|
|
* win32-low.c: Rename typedef thread_info to
|
728 |
|
|
win32_thread_info throughout.
|
729 |
|
|
|
730 |
|
|
2007-03-28 Pedro Alves
|
731 |
|
|
|
732 |
|
|
* win32-i386-low.c: Rename to ...
|
733 |
|
|
* win32-low.c: ... this.
|
734 |
|
|
* configure.srv: Replace win32-i386-low.o with win32-low.o.
|
735 |
|
|
* Makefile.in: Likewise.
|
736 |
|
|
|
737 |
|
|
2007-03-27 Pedro Alves
|
738 |
|
|
|
739 |
|
|
* remote-utils.c (monitor_output): Constify msg parameter.
|
740 |
|
|
* server.h (monitor_output): Likewise.
|
741 |
|
|
* win32-i386-low.c (handle_output_debug_string): New.
|
742 |
|
|
(win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
|
743 |
|
|
handle_output_debug_string.
|
744 |
|
|
(get_child_debug_event): Likewise.
|
745 |
|
|
|
746 |
|
|
2007-03-27 Mat Hostetter
|
747 |
|
|
|
748 |
|
|
* server.c (main): Correct strtoul check.
|
749 |
|
|
|
750 |
|
|
2007-03-27 Jon Ringle
|
751 |
|
|
|
752 |
|
|
* linux-low.c: Check __ARCH_HAS_MMU__ also.
|
753 |
|
|
|
754 |
|
|
2007-03-27 Brooks Moses
|
755 |
|
|
|
756 |
|
|
* Makefile.in: Add dummy "pdf" and "install-pdf" targets.
|
757 |
|
|
|
758 |
|
|
2007-02-27 Daniel Jacobowitz
|
759 |
|
|
|
760 |
|
|
* terminal.h: Check HAVE_SGTTY_H.
|
761 |
|
|
|
762 |
|
|
2007-02-27 Mat Hostetter
|
763 |
|
|
|
764 |
|
|
* remote-utils.c (remote_open): Print out the assigned port number.
|
765 |
|
|
|
766 |
|
|
2007-02-26 Daniel Jacobowitz
|
767 |
|
|
|
768 |
|
|
* remote-utils.c (monitor_output): New function.
|
769 |
|
|
* server.c (debug_threads): Define here.
|
770 |
|
|
(monitor_show_help): New function.
|
771 |
|
|
(handle_query): Handle qRcmd.
|
772 |
|
|
(main): Do not handle 'd' packet.
|
773 |
|
|
* server.h (debug_threads, remote_debug, monitor_output): Declare.
|
774 |
|
|
* linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
|
775 |
|
|
of debug_threads.
|
776 |
|
|
|
777 |
|
|
2007-02-25 Pedro Alves
|
778 |
|
|
|
779 |
|
|
* Makefile.in (EXEEXT): New.
|
780 |
|
|
(clean): Use $(EXEEXT).
|
781 |
|
|
|
782 |
|
|
2007-02-25 Pedro Alves
|
783 |
|
|
|
784 |
|
|
* target.h (target_ops): Rename send_signal to request_interrupt,
|
785 |
|
|
and remove enum target_signal parameter.
|
786 |
|
|
* linux-low.c (linux_request_interrupt): Rename from
|
787 |
|
|
linux_send_signal, and always send SIGINT.
|
788 |
|
|
* spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
|
789 |
|
|
and always send SIGINT.
|
790 |
|
|
* remote-utils.c (putpkt_binary): Call request_interrupt, instead
|
791 |
|
|
of send_signal.
|
792 |
|
|
(input_interrupt): Likewise.
|
793 |
|
|
|
794 |
|
|
2007-02-25 Pedro Alves
|
795 |
|
|
|
796 |
|
|
* server.c (get_features_xml): Check if target implemented
|
797 |
|
|
arch_string.
|
798 |
|
|
* win32-i386-low.c (win32_arch_string): New.
|
799 |
|
|
(win32_target_ops): Add win32_arch_string as arch_string member.
|
800 |
|
|
|
801 |
|
|
2007-02-22 Markus Deuling
|
802 |
|
|
|
803 |
|
|
* spu-low.c (spu_arch_string): New.
|
804 |
|
|
(spu_target_ops): Add spu_arch_string.
|
805 |
|
|
|
806 |
|
|
2007-02-16 Daniel Jacobowitz
|
807 |
|
|
|
808 |
|
|
* remote-utils.c: Remove HAVE_TERMINAL_H check.
|
809 |
|
|
* configure.ac: Do not check for terminal.h.
|
810 |
|
|
* configure, config.in: Regenerated.
|
811 |
|
|
|
812 |
|
|
2007-02-08 Daniel Jacobowitz
|
813 |
|
|
|
814 |
|
|
* Makefile.in (OBS): Add $(XML_BUILTIN).
|
815 |
|
|
(XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
|
816 |
|
|
(clean): Update.
|
817 |
|
|
(target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
|
818 |
|
|
(arm-with-iwmmxt.c): New.
|
819 |
|
|
* config.in, configure: Regenerate.
|
820 |
|
|
* configure.ac: Check for iWMMXt. Handle srv_xmltarget,
|
821 |
|
|
srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
|
822 |
|
|
* configure.srv: Mention srv_xmltarget and srv_xmlfiles.
|
823 |
|
|
(arm*-*-linux*): Add iWMMXt and regset support.
|
824 |
|
|
* linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
|
825 |
|
|
(arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
|
826 |
|
|
(arm_store_wmmxregset, target_regsets): New.
|
827 |
|
|
* server.c (get_features_xml): Take annex argument. Check builtin
|
828 |
|
|
XML documents.
|
829 |
|
|
(handle_query): Handle multiple annexes.
|
830 |
|
|
|
831 |
|
|
2007-01-29 Daniel Jacobowitz
|
832 |
|
|
|
833 |
|
|
* remote-utils.c [USE_WIN32API] (read, write): Define.
|
834 |
|
|
(putpkt_binary, input_interrupt, readchar, getpkt): Use read and
|
835 |
|
|
write.
|
836 |
|
|
|
837 |
|
|
2007-01-09 Daniel Jacobowitz
|
838 |
|
|
|
839 |
|
|
* linux-i386-low.c (the_low_target): Set arch_string.
|
840 |
|
|
* linux-x86-64-low.c (the_low_target): Likewise.
|
841 |
|
|
* linux-low.c (linux_arch_string): New.
|
842 |
|
|
(linux_target_ops): Add it.
|
843 |
|
|
* linux-low.h (struct linux_target_ops): Add arch_string.
|
844 |
|
|
* server.c (write_qxfer_response): Use const void * for DATA.
|
845 |
|
|
(get_features_xml): New.
|
846 |
|
|
(handle_query): Handle qXfer:features:read. Report it for qSupported.
|
847 |
|
|
* target.h (struct target_ops): Add arch_string method.
|
848 |
|
|
|
849 |
|
|
2007-01-03 Denis Pilat
|
850 |
|
|
Daniel Jacobowitz
|
851 |
|
|
|
852 |
|
|
* linux-low.c (linux_kill): Handle being called with no threads.
|
853 |
|
|
* win32-i386-low.c (win32_kill): Likewise.
|
854 |
|
|
(get_child_debug_event): Clear current_process_handle.
|
855 |
|
|
|
856 |
|
|
2006-12-30 Denis PILAT
|
857 |
|
|
Daniel Jacobowitz
|
858 |
|
|
|
859 |
|
|
* remote-utils.c (remote_open): Check the type of specified
|
860 |
|
|
serial port devices before opening them.
|
861 |
|
|
* server.c (main): Kill the inferior if an error occurs during
|
862 |
|
|
the first remote_open.
|
863 |
|
|
|
864 |
|
|
2006-12-05 Markus Deuling
|
865 |
|
|
|
866 |
|
|
* README: Update supported targets.
|
867 |
|
|
|
868 |
|
|
2006-11-28 Daniel Jacobowitz
|
869 |
|
|
|
870 |
|
|
* Makefile.in (clean): Remove reg-mips64.c.
|
871 |
|
|
(reg-mips64.c, reg-mips64.o): New rules.
|
872 |
|
|
* configure.srv: Handle mips64. Include regset support for mips.
|
873 |
|
|
* linux-mips-low.c (union mips_register): New.
|
874 |
|
|
(mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
|
875 |
|
|
(mips_breakpoint, mips_breakpoint_at): Use int.
|
876 |
|
|
(mips_collect_register, mips_supply_register)
|
877 |
|
|
(mips_collect_register_32bit, mips_supply_register_32bit)
|
878 |
|
|
(mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
|
879 |
|
|
(mips_store_fpregset, target_regsets): New.
|
880 |
|
|
* thread-db.c (thread_db_get_tls_address): Use uintptr_t.
|
881 |
|
|
|
882 |
|
|
2006-11-22 Ulrich Weigand
|
883 |
|
|
|
884 |
|
|
* configure.srv: Add target "spu*-*-*".
|
885 |
|
|
* Makefile.in (clean): Remove reg-spu.c.
|
886 |
|
|
(reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
|
887 |
|
|
* spu-low.c: New file.
|
888 |
|
|
|
889 |
|
|
2006-11-16 Daniel Jacobowitz
|
890 |
|
|
|
891 |
|
|
* configure.ac: Correct td_thr_tls_get_addr test.
|
892 |
|
|
* configure: Regenerated.
|
893 |
|
|
|
894 |
|
|
2006-11-16 Daniel Jacobowitz
|
895 |
|
|
|
896 |
|
|
* linux-low.c (linux_wait_for_event): Reformat. Use the
|
897 |
|
|
pass_signals array.
|
898 |
|
|
* remote-utils.c (decode_address_to_semicolon): New.
|
899 |
|
|
* server.c (pass_signals, handle_general_set): New.
|
900 |
|
|
(handle_query): Mention QPassSignals for qSupported.
|
901 |
|
|
(main): Call handle_general_set.
|
902 |
|
|
* server.h (pass_signals, decode_address_to_semicolon): New.
|
903 |
|
|
|
904 |
|
|
2006-11-06 Daniel Jacobowitz
|
905 |
|
|
|
906 |
|
|
* server.c (handle_query): Correct error handling for read_auxv.
|
907 |
|
|
|
908 |
|
|
2005-10-19 Ulrich Weigand
|
909 |
|
|
|
910 |
|
|
* configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
|
911 |
|
|
and srv_linux_thread_db to yes.
|
912 |
|
|
* linux-s390-low.c (s390_fill_gregset): New function.
|
913 |
|
|
(target_regsets): Define data structure.
|
914 |
|
|
|
915 |
|
|
2006-10-17 Daniel Jacobowitz
|
916 |
|
|
|
917 |
|
|
* acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
|
918 |
|
|
* configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
|
919 |
|
|
* config.in, configure: Regenerated.
|
920 |
|
|
* inferiors.c (gdb_id_to_thread): New function.
|
921 |
|
|
(gdb_id_to_thread_id): Use it.
|
922 |
|
|
* linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
|
923 |
|
|
* linux-low.h (struct process_info): Add th member.
|
924 |
|
|
(thread_db_get_tls_address): New prototype.
|
925 |
|
|
* remote-utils.c (decode_address): Make non-static.
|
926 |
|
|
* server.c (handle_query): Handle qGetTLSAddr.
|
927 |
|
|
* server.h (gdb_id_to_thread, decode_address): New prototypes.
|
928 |
|
|
* target.h (struct target_ops): Add get_tls_address.
|
929 |
|
|
* thread-db.c (maybe_attach_thread): Save the thread handle.
|
930 |
|
|
(thread_db_get_tls_address): New.
|
931 |
|
|
|
932 |
|
|
2006-09-28 Daniel Jacobowitz
|
933 |
|
|
|
934 |
|
|
* linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
|
935 |
|
|
(linux_resume_one_process): Take a siginfo_t *. Update all
|
936 |
|
|
callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
|
937 |
|
|
(struct pending_signals): Add a siginfo_t.
|
938 |
|
|
(linux_wait_for_process): Always set last_status.
|
939 |
|
|
(linux_wait_for_event): Use PTRACE_GETSIGINFO.
|
940 |
|
|
(linux_queue_one_thread): Use PTRACE_GETSIGINFO.
|
941 |
|
|
* linux-low.h (struct process_info): Add last_status.
|
942 |
|
|
|
943 |
|
|
2006-09-21 Daniel Jacobowitz
|
944 |
|
|
|
945 |
|
|
* remote-utils.c (try_rle): New function.
|
946 |
|
|
(putpkt_binary): Use it.
|
947 |
|
|
|
948 |
|
|
2006-08-19 Daniel Jacobowitz
|
949 |
|
|
|
950 |
|
|
* Makefile.in (clean): Clean reg-x86-64-linux.c.
|
951 |
|
|
(reg-x86-64-linux.o, reg-x86-64-linux.c): New.
|
952 |
|
|
* configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
|
953 |
|
|
* linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
|
954 |
|
|
(x86_64_fill_gregset, x86_64_store_gregset): Skip floating
|
955 |
|
|
point registers.
|
956 |
|
|
|
957 |
|
|
2006-08-08 Richard Sandiford
|
958 |
|
|
|
959 |
|
|
* server.c (terminal_fd): New variable.
|
960 |
|
|
(old_foreground_pgrp): Likewise.
|
961 |
|
|
(restore_old_foreground_pgrp): New function.
|
962 |
|
|
(start_inferior): Record the terminal file descriptor in terminal_fd
|
963 |
|
|
and its original foreground group in old_foreground_pgrp. Register
|
964 |
|
|
restore_old_foreground_pgrp with atexit().
|
965 |
|
|
|
966 |
|
|
2006-07-26 Daniel Jacobowitz
|
967 |
|
|
|
968 |
|
|
* server.c (handle_query): Correct qPart to qXfer.
|
969 |
|
|
|
970 |
|
|
2006-07-22 Daniel Jacobowitz
|
971 |
|
|
|
972 |
|
|
* configure.ac: Check for more headers which are missing on
|
973 |
|
|
Windows. Automatically supply -lwsock32 and USE_WIN32API.
|
974 |
|
|
* configure.srv: Add Cygwin and mingw32.
|
975 |
|
|
* remote-utils.c: Don't include headers unconditionally which
|
976 |
|
|
are missing on mingw32. Include for mingw32.
|
977 |
|
|
(remote_open): Adjust for mingw32 support. Flush
|
978 |
|
|
standard error after writing to it.
|
979 |
|
|
(remote_close, putpkt_binary, input_interrupt, block_async_io)
|
980 |
|
|
(unblock_async_io, enable_async_io, disable_async_io)
|
981 |
|
|
(readchar, getpkt): Update for Winsock support.
|
982 |
|
|
(prepare_resume_reply): Expect a protocol signal number.
|
983 |
|
|
* server.c: Disable on mingw32.
|
984 |
|
|
(start_inferior): Adjust for mingw32 support. Flush
|
985 |
|
|
standard error after writing to it.
|
986 |
|
|
(attach_inferior): Likewise. Use protocol signal
|
987 |
|
|
numbers.
|
988 |
|
|
(main): Skip 'D' packet on mingw32. Use protocol signal numbers
|
989 |
|
|
and names.
|
990 |
|
|
* win32-i386-low.c: New file.
|
991 |
|
|
* Makefile.in (XM_CLIBS): Set.
|
992 |
|
|
(gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
|
993 |
|
|
(win32-i386-low.o): New dependency rule.
|
994 |
|
|
* linux-low.c (linux_wait): Use target signal numbers.
|
995 |
|
|
* target.h (struct target_ops): Doc fix.
|
996 |
|
|
* server.h (target_signal_to_name): New prototype.
|
997 |
|
|
* gdbreplay.c: Don't include headers unconditionally which
|
998 |
|
|
are missing on mingw32. Include for mingw32.
|
999 |
|
|
(remote_close, remote_open): Adjust for Winsock support.
|
1000 |
|
|
* configure, config.in: Regenerated.
|
1001 |
|
|
|
1002 |
|
|
2006-07-12 Daniel Jacobowitz
|
1003 |
|
|
|
1004 |
|
|
* server.c (decode_xfer_read, write_qxfer_response): New.
|
1005 |
|
|
(handle_query): Take a packet length argument. Handle
|
1006 |
|
|
qXfer:auxv:read instead of qPart:auxv:read. Mention it in
|
1007 |
|
|
the qSupported response.
|
1008 |
|
|
(main): Update call to handle_query.
|
1009 |
|
|
|
1010 |
|
|
2006-06-22 Daniel Jacobowitz
|
1011 |
|
|
|
1012 |
|
|
* remote-utils.c (remote_escape_output, remote_unescape_input): New.
|
1013 |
|
|
(putpkt_binary): Renamed from putpkt and adjusted for binary
|
1014 |
|
|
data.
|
1015 |
|
|
(putpkt): New wrapper for putpkt_binary.
|
1016 |
|
|
(readchar): Don't mask off the high bit.
|
1017 |
|
|
(decode_X_packet): New function.
|
1018 |
|
|
* server.c (main): Call putpkt_binary if a handler sets the packet
|
1019 |
|
|
length. Save the length of the incoming packet. Handle 'X'.
|
1020 |
|
|
* server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
|
1021 |
|
|
|
1022 |
|
|
2006-06-21 Daniel Jacobowitz
|
1023 |
|
|
|
1024 |
|
|
* server.c (handle_query): Handle qSupported.
|
1025 |
|
|
|
1026 |
|
|
2006-05-30 Daniel Jacobowitz
|
1027 |
|
|
|
1028 |
|
|
* remote-utils.c (all_symbols_looked_up): New variable.
|
1029 |
|
|
(look_up_one_symbol): Check it.
|
1030 |
|
|
* server.h (look_up_one_symbol): New declaration.
|
1031 |
|
|
* thread-db.c (thread_db_init): Set all_symbols_looked_up.
|
1032 |
|
|
|
1033 |
|
|
2006-05-30 Daniel Jacobowitz
|
1034 |
|
|
|
1035 |
|
|
* Makefile.in (linux-arm-low.o): Update dependencies.
|
1036 |
|
|
* linux-arm-low.c: Include "gdb_proc_service.h".
|
1037 |
|
|
(PTRACE_GET_THREAD_AREA): Define.
|
1038 |
|
|
(ps_get_thread_area): New function.
|
1039 |
|
|
|
1040 |
|
|
2006-05-09 Nathan Sidwell
|
1041 |
|
|
|
1042 |
|
|
* configure.srv (m68k*-*-uclinux*): New target.
|
1043 |
|
|
* linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
|
1044 |
|
|
(linux_resume_one_process): Remove extraneous cast.
|
1045 |
|
|
(linux_read_offsets): New.
|
1046 |
|
|
(linux_target_op): Add linux_read_offsets on mmuless systems.
|
1047 |
|
|
* server.c (handle_query): Add qOffsets logic.
|
1048 |
|
|
* target.h (struct target_ops): Add read_offsets.
|
1049 |
|
|
|
1050 |
|
|
2006-03-15 Daniel Jacobowitz
|
1051 |
|
|
|
1052 |
|
|
* linux-mips-low.c: Include and "gdb_proc_service.h".
|
1053 |
|
|
(PTRACE_GET_THREAD_AREA): Define.
|
1054 |
|
|
(ps_get_thread_area): New function.
|
1055 |
|
|
* Makefile.in (linux-i386-low.o, linux-mips-low.o)
|
1056 |
|
|
(linux-x86-64-low.o): Update.
|
1057 |
|
|
|
1058 |
|
|
2006-03-15 Daniel Jacobowitz
|
1059 |
|
|
|
1060 |
|
|
* configure.ac: Remove checks for prfpregset_t.
|
1061 |
|
|
* gdb_proc_service.h: New file.
|
1062 |
|
|
* linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
|
1063 |
|
|
new "gdb_proc_service.h".
|
1064 |
|
|
* proc-service.c: Likewise.
|
1065 |
|
|
(ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
|
1066 |
|
|
(ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
|
1067 |
|
|
* Makefile.in (gdb_proc_service_h): Updated.
|
1068 |
|
|
* configure, config.in: Regenerated.
|
1069 |
|
|
|
1070 |
|
|
2006-03-03 Daniel Jacobowitz
|
1071 |
|
|
|
1072 |
|
|
* remote-utils.c (prepare_resume_reply): Move declaration
|
1073 |
|
|
of gdb_id_from_wait to the top of the block.
|
1074 |
|
|
|
1075 |
|
|
2006-02-15 Daniel Jacobowitz
|
1076 |
|
|
|
1077 |
|
|
* linux-low.c (regsets_store_inferior_registers): Read the regset
|
1078 |
|
|
from the target before filling it.
|
1079 |
|
|
|
1080 |
|
|
2006-02-08 Daniel Jacobowitz
|
1081 |
|
|
|
1082 |
|
|
* server.c (attach_inferior): Return SIGTRAP for a successful
|
1083 |
|
|
attach.
|
1084 |
|
|
|
1085 |
|
|
2006-02-01 Daniel Jacobowitz
|
1086 |
|
|
|
1087 |
|
|
* Makefile.in (OBS): Add version.o.
|
1088 |
|
|
(STAGESTUFF): Delete.
|
1089 |
|
|
(version.o): Add dependencies.
|
1090 |
|
|
(version.c): Replace rule.
|
1091 |
|
|
(clean): Remove version.c.
|
1092 |
|
|
* server.c (gdbserver_version): New.
|
1093 |
|
|
(gdbserver_usage): Use printf.
|
1094 |
|
|
(main): Handle --version and --help.
|
1095 |
|
|
* server.h (version, host_name): Add declarations.
|
1096 |
|
|
|
1097 |
|
|
2005-12-23 Eli Zaretskii
|
1098 |
|
|
|
1099 |
|
|
* linux-arm-low.c:
|
1100 |
|
|
* linux-arm-low.c:
|
1101 |
|
|
* inferiors.c:
|
1102 |
|
|
* i387-fp.h:
|
1103 |
|
|
* i387-fp.c:
|
1104 |
|
|
* gdbreplay.c:
|
1105 |
|
|
* regcache.c:
|
1106 |
|
|
* proc-service.c:
|
1107 |
|
|
* mem-break.h:
|
1108 |
|
|
* mem-break.c:
|
1109 |
|
|
* linux-x86-64-low.c:
|
1110 |
|
|
* linux-sh-low.c:
|
1111 |
|
|
* linux-s390-low.c:
|
1112 |
|
|
* linux-ppc64-low.c:
|
1113 |
|
|
* linux-ppc-low.c:
|
1114 |
|
|
* linux-mips-low.c:
|
1115 |
|
|
* linux-m68k-low.c:
|
1116 |
|
|
* linux-m32r-low.c:
|
1117 |
|
|
* linux-low.h:
|
1118 |
|
|
* linux-low.c:
|
1119 |
|
|
* linux-ia64-low.c:
|
1120 |
|
|
* linux-i386-low.c:
|
1121 |
|
|
* linux-crisv32-low.c:
|
1122 |
|
|
* thread-db.c:
|
1123 |
|
|
* terminal.h:
|
1124 |
|
|
* target.h:
|
1125 |
|
|
* target.c:
|
1126 |
|
|
* server.h:
|
1127 |
|
|
* server.c:
|
1128 |
|
|
* remote-utils.c:
|
1129 |
|
|
* regcache.h:
|
1130 |
|
|
* utils.c:
|
1131 |
|
|
* Makefile.in:
|
1132 |
|
|
* configure.ac:
|
1133 |
|
|
* gdbserver.1: Add (C) after Copyright. Update the FSF
|
1134 |
|
|
address.
|
1135 |
|
|
|
1136 |
|
|
2005-11-13 Daniel Jacobowitz
|
1137 |
|
|
|
1138 |
|
|
* linux-arm-low.c (arm_eabi_breakpoint): New variable.
|
1139 |
|
|
(arm_breakpoint_at): Recognize both breakpoints.
|
1140 |
|
|
(the_low_target): Use the correct breakpoint instruction.
|
1141 |
|
|
|
1142 |
|
|
2005-11-02 Daniel Jacobowitz
|
1143 |
|
|
|
1144 |
|
|
* configure.srv (x86_64-*-linux*): Turn on thread_db support.
|
1145 |
|
|
* linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
|
1146 |
|
|
(x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
|
1147 |
|
|
(the_low_target): Update.
|
1148 |
|
|
|
1149 |
|
|
2005-10-25 Andreas Schwab
|
1150 |
|
|
|
1151 |
|
|
* server.c (main): Allocate mem_buf with PBUFSIZ bytes.
|
1152 |
|
|
|
1153 |
|
|
* linux-ia64-low.c (ia64_regmap): Remove NAT registers.
|
1154 |
|
|
(ia64_num_regs): Reduce to 462.
|
1155 |
|
|
|
1156 |
|
|
2005-09-17 Daniel Jacobowitz
|
1157 |
|
|
|
1158 |
|
|
* acinclude.m4: Correct quoting.
|
1159 |
|
|
* aclocal.m4: Regenerated.
|
1160 |
|
|
|
1161 |
|
|
Suggested by SZOKOVACS Robert :
|
1162 |
|
|
* thread-db.c (thread_db_err_str): Handle TD_VERSION.
|
1163 |
|
|
(thread_db_init): Call thread_db_err_str.
|
1164 |
|
|
* configure.ac: Check for TD_VERSION.
|
1165 |
|
|
* config.in, configure: Regenerated.
|
1166 |
|
|
|
1167 |
|
|
2005-07-31 Kaveh R. Ghazi
|
1168 |
|
|
|
1169 |
|
|
* server.h (error, fatal, warning): Add ATTR_FORMAT.
|
1170 |
|
|
|
1171 |
|
|
2005-07-13 Daniel Jacobowitz
|
1172 |
|
|
|
1173 |
|
|
* configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
|
1174 |
|
|
is not available. Define HAVE_PTRACE_GETREGS if it is.
|
1175 |
|
|
* config.in, configure: Regenerated.
|
1176 |
|
|
* configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
|
1177 |
|
|
* linux-i386-low.c, linux-m68k-low.c: Update to use
|
1178 |
|
|
HAVE_PTRACE_GETREGS.
|
1179 |
|
|
* linux-low.c (regsets_fetch_inferior_registers)
|
1180 |
|
|
(regsets_store_inferior_registers): Only return 0 if we processed
|
1181 |
|
|
GENERAL_REGS.
|
1182 |
|
|
* linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
|
1183 |
|
|
* linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
|
1184 |
|
|
|
1185 |
|
|
2005-07-13 Daniel Jacobowitz
|
1186 |
|
|
|
1187 |
|
|
* inferiors.c (struct thread_info): Add gdb_id.
|
1188 |
|
|
(add_thread): Add gdb_id argument.
|
1189 |
|
|
(thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
|
1190 |
|
|
* linux-low.c (linux_create_inferior, linux_attach_lwp): Update
|
1191 |
|
|
calls to add_thread.
|
1192 |
|
|
* remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
|
1193 |
|
|
* server.c (handle_query): Use thread_to_gdb_id.
|
1194 |
|
|
(handle_v_cont, main): Use gdb_id_to_thread_id.
|
1195 |
|
|
* server.h (add_thread): Update prototype.
|
1196 |
|
|
(thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
|
1197 |
|
|
prototypes.
|
1198 |
|
|
|
1199 |
|
|
2005-07-13 Daniel Jacobowitz
|
1200 |
|
|
|
1201 |
|
|
* linux-low.c (fetch_register, usr_store_inferior_registers): Handle
|
1202 |
|
|
left-padded registers.
|
1203 |
|
|
* linux-low.h (struct linux_target_ops): Add left_pad_xfer.
|
1204 |
|
|
* linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
|
1205 |
|
|
|
1206 |
|
|
2005-07-01 Steve Ellcey
|
1207 |
|
|
|
1208 |
|
|
* configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
|
1209 |
|
|
* configure: Regenerate.
|
1210 |
|
|
* config.in: Regenerate.
|
1211 |
|
|
* server.h (NEED_DECLARATION_STRERROR):
|
1212 |
|
|
Replace with !HAVE_DECL_STRERROR.
|
1213 |
|
|
|
1214 |
|
|
2005-06-16 Daniel Jacobowitz
|
1215 |
|
|
|
1216 |
|
|
* linux-low.c (linux_wait, linux_send_signal): Don't test
|
1217 |
|
|
an unsigned long variable for > 0 if it could be MAX_ULONG.
|
1218 |
|
|
* server.c (myresume): Likewise.
|
1219 |
|
|
* target.c (set_desired_inferior): Likewise.
|
1220 |
|
|
|
1221 |
|
|
2005-06-13 Mark Kettenis
|
1222 |
|
|
|
1223 |
|
|
* configure.ac: Simplify and improve check for socklen_t.
|
1224 |
|
|
* configure, config.in: Regenerate.
|
1225 |
|
|
|
1226 |
|
|
2005-06-12 Daniel Jacobowitz
|
1227 |
|
|
|
1228 |
|
|
* acconfig.h: Remove.
|
1229 |
|
|
* configure.ac: Add a test for socklen_t. Use three-argument
|
1230 |
|
|
AC_DEFINE throughout.
|
1231 |
|
|
* config.in: Regenerated using autoheader 2.59.
|
1232 |
|
|
* configure: Regenerated.
|
1233 |
|
|
|
1234 |
|
|
* gdbreplay.c (socklen_t): Provide a default.
|
1235 |
|
|
(remote_open): Use socklen_t.
|
1236 |
|
|
* remote-utils.c (socklen_t): Provide a default.
|
1237 |
|
|
(remote_open): Use socklen_t.
|
1238 |
|
|
(convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
|
1239 |
|
|
unsigned char.
|
1240 |
|
|
|
1241 |
|
|
* i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
|
1242 |
|
|
char for buffers.
|
1243 |
|
|
* linux-low.c (linux_read_memory, linux_write_memory)
|
1244 |
|
|
(linux_read_auxv): Likewise.
|
1245 |
|
|
* mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
|
1246 |
|
|
(check_mem_write): Likewise.
|
1247 |
|
|
* mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
|
1248 |
|
|
Likewise.
|
1249 |
|
|
* regcache.c (struct inferior_rgcache_data, registers_to_string)
|
1250 |
|
|
(registers_from_string, register_data): Likewise.
|
1251 |
|
|
* server.c (handle_query, main): Likewise.
|
1252 |
|
|
* server.h (convert_ascii_to_int, convert_int_to_ascii)
|
1253 |
|
|
(decode_M_packet): Likewise.
|
1254 |
|
|
* target.c (read_inferior_memory, write_inferior_memory): Likewise.
|
1255 |
|
|
* target.h (struct target_ops): Update read_memory, write_memory,
|
1256 |
|
|
and read_auxv.
|
1257 |
|
|
(read_inferior_memory, write_inferior_memory): Update.
|
1258 |
|
|
* linux-low.h (struct linux_target_ops): Change type of breakpoint
|
1259 |
|
|
to unsigned char *.
|
1260 |
|
|
* linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
|
1261 |
|
|
linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
|
1262 |
|
|
linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
|
1263 |
|
|
linux-s390-low.c, linux-sh-low.c: Update for changes in
|
1264 |
|
|
read_inferior_memory and the_low_target->breakpoint.
|
1265 |
|
|
|
1266 |
|
|
2005-05-28 Daniel Jacobowitz
|
1267 |
|
|
|
1268 |
|
|
* Makefile.in (SFILES): Add linux-ppc64-low.c.
|
1269 |
|
|
(linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
|
1270 |
|
|
* configure.srv: Add powerpc64-*-linux*.
|
1271 |
|
|
* linux-ppc64-low.c: New file.
|
1272 |
|
|
|
1273 |
|
|
2005-05-23 Orjan Friberg
|
1274 |
|
|
|
1275 |
|
|
* linux-cris-low.c: New file with support for CRIS.
|
1276 |
|
|
* linux-crisv32-low.c: Ditto for CRISv32.
|
1277 |
|
|
* Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
|
1278 |
|
|
(clean): Add reg-cris.c and reg-crisv32.c.
|
1279 |
|
|
Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
|
1280 |
|
|
reg-crisv32.o, and reg-crisv32.c to make rules.
|
1281 |
|
|
* configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
|
1282 |
|
|
recognized targets.
|
1283 |
|
|
|
1284 |
|
|
2005-05-16 Ulrich Weigand
|
1285 |
|
|
|
1286 |
|
|
* linux-low.c (fetch_register): Ensure buffer size is a multiple
|
1287 |
|
|
of sizeof (PTRACE_XFER_TYPE).
|
1288 |
|
|
(usr_store_inferior_registers): Likewise. Zero out excess bytes.
|
1289 |
|
|
|
1290 |
|
|
2005-05-12 Orjan Friberg
|
1291 |
|
|
|
1292 |
|
|
* target.h (struct target_ops): Add insert_watchpoint,
|
1293 |
|
|
remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
|
1294 |
|
|
pointers for hardware watchpoint support.
|
1295 |
|
|
* linux-low.h (struct linux_target_ops): Ditto.
|
1296 |
|
|
* linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
|
1297 |
|
|
(linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
|
1298 |
|
|
to linux_target_ops.
|
1299 |
|
|
* remote-utils.c (prepare_resume_reply): Add watchpoint information to
|
1300 |
|
|
reply packet.
|
1301 |
|
|
* server.c (main): Recognize 'Z' and 'z' packets.
|
1302 |
|
|
|
1303 |
|
|
2005-05-10 Ulrich Weigand
|
1304 |
|
|
|
1305 |
|
|
* linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
|
1306 |
|
|
(s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
|
1307 |
|
|
(the_low_target): Add new members.
|
1308 |
|
|
|
1309 |
|
|
2005-05-04 Daniel Jacobowitz
|
1310 |
|
|
|
1311 |
|
|
* proc-service.c (ps_lgetregs): Search all_processes instead of
|
1312 |
|
|
all_threads.
|
1313 |
|
|
|
1314 |
|
|
2005-05-04 Daniel Jacobowitz
|
1315 |
|
|
|
1316 |
|
|
* server.c (start_inferior): Change return type to int.
|
1317 |
|
|
(attach_inferior): Change sigptr to int *.
|
1318 |
|
|
(handle_v_cont, handle_v_requests): Change signal to int *.
|
1319 |
|
|
(main): Change signal to int.
|
1320 |
|
|
|
1321 |
|
|
2005-04-15 Kei Sakamoto
|
1322 |
|
|
|
1323 |
|
|
* Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
|
1324 |
|
|
* configure.srv: Add m32r*-*-linux*.
|
1325 |
|
|
* linux-m32r-low.c: New file.
|
1326 |
|
|
|
1327 |
|
|
2005-03-04 Daniel Jacobowitz
|
1328 |
|
|
|
1329 |
|
|
* Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
|
1330 |
|
|
|
1331 |
|
|
2005-03-03 Daniel Jacobowitz
|
1332 |
|
|
|
1333 |
|
|
* inferiors.c (change_inferior_id, add_thread, find_inferior_id):
|
1334 |
|
|
Take unsigned long arguments for PIDs.
|
1335 |
|
|
* linux-low.c (add_process, linux_attach_lwp, linux_attach)
|
1336 |
|
|
(linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
|
1337 |
|
|
(wait_for_sigstop, linux_resume_one_process)
|
1338 |
|
|
(regsets_fetch_inferior_registers, linux_send_signal)
|
1339 |
|
|
(linux_read_auxv): Likewise. Update the types of variables holding
|
1340 |
|
|
PIDs. Update format string specifiers.
|
1341 |
|
|
* linux-low.h (struct process_info, linux_attach_lwp): Likewise.
|
1342 |
|
|
* remote-utils.c (prepare_resume_reply): Likewise.
|
1343 |
|
|
* server.c (cont_thread, general_thread, step_thread)
|
1344 |
|
|
(thread_from_wait, old_thread_from_wait, signal_pid): Change type to
|
1345 |
|
|
unsigned long.
|
1346 |
|
|
(handle_query): Update format specifiers.
|
1347 |
|
|
(handle_v_cont, main): Use strtoul for thread IDs.
|
1348 |
|
|
* server.h (struct inferior_list_entry): Use unsigned long for ID.
|
1349 |
|
|
(add_thread, find_inferior_id, change_inferior_id, cont_thread)
|
1350 |
|
|
(general_thread, step_thread, thread_from_wait)
|
1351 |
|
|
(old_thread_from_wait): Update.
|
1352 |
|
|
* target.h (struct thread_resume): Use unsigned long for THREAD.
|
1353 |
|
|
(struct target_ops): Use unsigned long for arguments to attach and
|
1354 |
|
|
thread_alive.
|
1355 |
|
|
|
1356 |
|
|
2005-02-24 Daniel Jacobowitz
|
1357 |
|
|
|
1358 |
|
|
* acinclude.m4: Include bfd/bfd.m4 directly.
|
1359 |
|
|
* configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
|
1360 |
|
|
.
|
1361 |
|
|
* aclocal.m4, configure: Regenerated.
|
1362 |
|
|
|
1363 |
|
|
2005-01-07 Andrew Cagney
|
1364 |
|
|
|
1365 |
|
|
* configure.ac: Rename configure.in, require autoconf 2.59.
|
1366 |
|
|
* configure: Re-generate.
|
1367 |
|
|
|
1368 |
|
|
2004-12-08 Daniel Jacobowitz
|
1369 |
|
|
|
1370 |
|
|
* acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
|
1371 |
|
|
LIBS when finished.
|
1372 |
|
|
* aclocal.m4: Regenerated.
|
1373 |
|
|
* configure: Regenerated.
|
1374 |
|
|
|
1375 |
|
|
2004-11-21 Andreas Schwab
|
1376 |
|
|
|
1377 |
|
|
* linux-m68k-low.c (m68k_num_gregs): Define.
|
1378 |
|
|
(m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
|
1379 |
|
|
(m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
|
1380 |
|
|
(m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
|
1381 |
|
|
(m68k_breakpoint_at): New. Add to the_low_target.
|
1382 |
|
|
|
1383 |
|
|
* configure.srv (m68*-*-linux*): Set srv_linux_regsets and
|
1384 |
|
|
srv_linux_thread_db to yes.
|
1385 |
|
|
|
1386 |
|
|
2004-10-20 Joel Brobecker
|
1387 |
|
|
|
1388 |
|
|
* linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
|
1389 |
|
|
(ARCH_SET_FS): Likewise.
|
1390 |
|
|
(ARCH_GET_FS): Likewise.
|
1391 |
|
|
(ARCH_GET_GS): Likewise.
|
1392 |
|
|
|
1393 |
|
|
2004-10-16 Daniel Jacobowitz
|
1394 |
|
|
|
1395 |
|
|
* linux-i386-low.c (ps_get_thread_area): New.
|
1396 |
|
|
* linux-x86-64-low.c (ps_get_thread_area): New.
|
1397 |
|
|
* linux-low.c: Include .
|
1398 |
|
|
(linux_kill_one_process): Don't kill the first thread here.
|
1399 |
|
|
(linux_kill): Kill the first thread here.
|
1400 |
|
|
(kill_lwp): New function.
|
1401 |
|
|
(send_sigstop, linux_send_signal): Use it.
|
1402 |
|
|
* proc-service.c: Clean up #ifdefs.
|
1403 |
|
|
(fpregset_info): Delete.
|
1404 |
|
|
(ps_lgetregs): Update and enable implementation.
|
1405 |
|
|
(ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
|
1406 |
|
|
implementations.
|
1407 |
|
|
* remote-utils.c (struct sym_cache, symbol_cache): New.
|
1408 |
|
|
(input_interrupt): Print a clearer message.
|
1409 |
|
|
(async_io_enabled): New variable.
|
1410 |
|
|
(enable_async_io, disable_async_io): Use it. Update comments.
|
1411 |
|
|
(look_up_one_symbol): Use the symbol cache.
|
1412 |
|
|
* thread-db.c (thread_db_look_up_symbols): New function.
|
1413 |
|
|
(thread_db_init): Update comments. Call thread_db_look_up_symbols.
|
1414 |
|
|
|
1415 |
|
|
2004-10-16 Daniel Jacobowitz
|
1416 |
|
|
|
1417 |
|
|
* configure.in: Test for -rdynamic.
|
1418 |
|
|
* configure: Regenerated.
|
1419 |
|
|
* Makefile (INTERNAL_LDFLAGS): New.
|
1420 |
|
|
(gdbserver, gdbreplay): Use it.
|
1421 |
|
|
|
1422 |
|
|
2004-09-02 Andrew Cagney
|
1423 |
|
|
|
1424 |
|
|
* Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
|
1425 |
|
|
|
1426 |
|
|
2004-03-23 Daniel Jacobowitz
|
1427 |
|
|
|
1428 |
|
|
* linux-low.c (linux_wait): Clear all_processes list also.
|
1429 |
|
|
|
1430 |
|
|
2004-03-12 Daniel Jacobowitz
|
1431 |
|
|
|
1432 |
|
|
* linux-low.c: Include . Remove extern declaration of
|
1433 |
|
|
errno.
|
1434 |
|
|
|
1435 |
|
|
2004-03-12 Daniel Jacobowitz
|
1436 |
|
|
|
1437 |
|
|
* gdbreplay.c, server.h, utils.c: Update copyright years.
|
1438 |
|
|
|
1439 |
|
|
2004-03-04 Nathan J. Williams
|
1440 |
|
|
|
1441 |
|
|
* server.c (main): Print child status or termination signal from
|
1442 |
|
|
variable 'signal', not 'sig'.
|
1443 |
|
|
|
1444 |
|
|
2004-03-04 Nathan J. Williams
|
1445 |
|
|
|
1446 |
|
|
* linux-low.c (linux_read_memory): Change return type to
|
1447 |
|
|
int. Check for and return error from ptrace().
|
1448 |
|
|
* target.c (read_inferior_memory): Change return type to int. Pass
|
1449 |
|
|
back return status from the_target->read_memory().
|
1450 |
|
|
* target.h (struct target_ops): Adapt *read_memory() prototype.
|
1451 |
|
|
Update comment.
|
1452 |
|
|
(read_inferior_memory): Adapt prototype.
|
1453 |
|
|
* server.c (main): Return an error packet if
|
1454 |
|
|
read_inferior_memory() returns an error.
|
1455 |
|
|
|
1456 |
|
|
2004-03-04 Daniel Jacobowitz
|
1457 |
|
|
|
1458 |
|
|
* Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
|
1459 |
|
|
Unify with other clean targets.
|
1460 |
|
|
|
1461 |
|
|
2004-02-29 Daniel Jacobowitz
|
1462 |
|
|
|
1463 |
|
|
* server.c (handle_v_cont): Call set_desired_inferior.
|
1464 |
|
|
|
1465 |
|
|
2004-02-29 Daniel Jacobowitz
|
1466 |
|
|
|
1467 |
|
|
* remote-utils.c (prepare_resume_reply): Always supply "thread:".
|
1468 |
|
|
|
1469 |
|
|
2004-02-29 Daniel Jacobowitz
|
1470 |
|
|
|
1471 |
|
|
* linux-low.c (linux_wait): Unblock async I/O.
|
1472 |
|
|
(linux_resume): Block and enable async I/O.
|
1473 |
|
|
* remote-utils.c (block_async_io, unblock_async_io): New functions.
|
1474 |
|
|
* server.h (block_async_io, unblock_async_io): Add prototypes.
|
1475 |
|
|
|
1476 |
|
|
2004-02-29 Daniel Jacobowitz
|
1477 |
|
|
|
1478 |
|
|
* remote-utils.c (remote_open): Print a status notice after
|
1479 |
|
|
opening a TCP port.
|
1480 |
|
|
* server.c (attach_inferior): Print a status notice after
|
1481 |
|
|
attaching.
|
1482 |
|
|
|
1483 |
|
|
2004-02-29 Daniel Jacobowitz
|
1484 |
|
|
|
1485 |
|
|
* linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
|
1486 |
|
|
|
1487 |
|
|
2004-02-26 Daniel Jacobowitz
|
1488 |
|
|
|
1489 |
|
|
* remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
|
1490 |
|
|
error packet.
|
1491 |
|
|
* server.c, target.h: Update copyright years.
|
1492 |
|
|
|
1493 |
|
|
2004-02-25 Roland McGrath
|
1494 |
|
|
|
1495 |
|
|
* target.h (struct target_ops): New member `read_auxv'.
|
1496 |
|
|
* server.c (handle_query): Handle qPart:auxv:read: query using that.
|
1497 |
|
|
* linux-low.c (linux_read_auxv): New function.
|
1498 |
|
|
(linux_target_ops): Initialize `read_auxv' member to that.
|
1499 |
|
|
|
1500 |
|
|
2004-02-17 Ulrich Weigand
|
1501 |
|
|
|
1502 |
|
|
Committed by Jim Blandy .
|
1503 |
|
|
|
1504 |
|
|
* linux-s390-low.c (s390_num_regs): Update.
|
1505 |
|
|
(s390_regmap): Remove control registers. Use __s390x__ predefine
|
1506 |
|
|
instead of GPR_SIZE to distiguish s390 and s390x targets.
|
1507 |
|
|
|
1508 |
|
|
2004-01-31 Daniel Jacobowitz
|
1509 |
|
|
|
1510 |
|
|
* linux-low.c: Update copyright year.
|
1511 |
|
|
(check_removed_breakpoint): Clear pending_is_breakpoint.
|
1512 |
|
|
(linux_set_resume_request, linux_queue_one_thread)
|
1513 |
|
|
(resume_status_pending_p): New functions.
|
1514 |
|
|
(linux_continue_one_thread): Use process->resume.
|
1515 |
|
|
(linux_resume): Only resume threads if there are no pending events.
|
1516 |
|
|
* linux-low.h (struct process_info): Add resume request
|
1517 |
|
|
pointer.
|
1518 |
|
|
|
1519 |
|
|
2004-01-30 Daniel Jacobowitz
|
1520 |
|
|
|
1521 |
|
|
* regcache.c (new_register_cache): Clear the allocated register
|
1522 |
|
|
buffer. Suggested by Atsushi Nemoto .
|
1523 |
|
|
|
1524 |
|
|
2003-10-13 Daniel Jacobowitz
|
1525 |
|
|
|
1526 |
|
|
* linux-low.c (linux_resume): Take a struct thread_resume *
|
1527 |
|
|
argument.
|
1528 |
|
|
(linux_wait): Update call.
|
1529 |
|
|
(resume_ptr): New static variable.
|
1530 |
|
|
(linux_continue_one_thread): Renamed from
|
1531 |
|
|
linux_continue_one_process. Use resume_ptr.
|
1532 |
|
|
(linux_resume): Use linux_continue_one_thread.
|
1533 |
|
|
* server.c (handle_v_cont, handle_v_requests): New functions.
|
1534 |
|
|
(myresume): New function.
|
1535 |
|
|
(main): Handle 'v' case.
|
1536 |
|
|
* target.h (struct thread_resume): New type.
|
1537 |
|
|
(struct target_ops): Change argument of "resume" to struct
|
1538 |
|
|
thread_resume *.
|
1539 |
|
|
(myresume): Delete macro.
|
1540 |
|
|
|
1541 |
|
|
2003-08-08 H.J. Lu
|
1542 |
|
|
|
1543 |
|
|
* Makefile.in (install-only): Create dest dir. Support DESTDIR.
|
1544 |
|
|
(uninstall): Support DESTDIR.
|
1545 |
|
|
|
1546 |
|
|
Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy
|
1547 |
|
|
|
1548 |
|
|
* configure.srv: Add xscale*linux copy of arm*linux entry.
|
1549 |
|
|
|
1550 |
|
|
2003-07-24 Daniel Jacobowitz
|
1551 |
|
|
|
1552 |
|
|
* linux-arm-low.c (arm_reinsert_addr): New function.
|
1553 |
|
|
(the_low_target): Add arm_reinsert_addr.
|
1554 |
|
|
|
1555 |
|
|
2003-07-08 Mark Kettenis
|
1556 |
|
|
|
1557 |
|
|
* mem-break.c: Remove whitespace at end of file.
|
1558 |
|
|
|
1559 |
|
|
2003-06-28 Daniel Jacobowitz
|
1560 |
|
|
|
1561 |
|
|
* configure.in: Check whether we need to prototype strerror.
|
1562 |
|
|
* server.h: Optionally prototype strerror.
|
1563 |
|
|
* gdbreplay.c (perror_with_name): Use strerror.
|
1564 |
|
|
* linux-low.c (linux_attach_lwp): Use strerror.
|
1565 |
|
|
* utils.c (perror_with_name): Use strerror.
|
1566 |
|
|
* config.in, configure: Regenerated.
|
1567 |
|
|
|
1568 |
|
|
2003-06-28 Daniel Jacobowitz
|
1569 |
|
|
|
1570 |
|
|
* linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
|
1571 |
|
|
SUGIOKA Toshinobu .
|
1572 |
|
|
|
1573 |
|
|
2003-06-20 Daniel Jacobowitz
|
1574 |
|
|
|
1575 |
|
|
* Makefile.in (SFILES): Update.
|
1576 |
|
|
* low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
|
1577 |
|
|
low-sun3.c: Remove files.
|
1578 |
|
|
|
1579 |
|
|
2003-06-17 Daniel Jacobowitz
|
1580 |
|
|
|
1581 |
|
|
* linux-low.c: Move comment to linux_thread_alive where it belonged.
|
1582 |
|
|
(linux_detach_one_process, linux_detach): New functions.
|
1583 |
|
|
(linux_target_ops): Add linux_detach.
|
1584 |
|
|
* server.c (main): Handle 'D' packet.
|
1585 |
|
|
* target.h (struct target_ops): Add "detach" member.
|
1586 |
|
|
(detach_inferior): Define.
|
1587 |
|
|
|
1588 |
|
|
2003-06-13 Mark Kettenis
|
1589 |
|
|
|
1590 |
|
|
From Kelley Cook :
|
1591 |
|
|
* configure.srv: Accept i[34567]86 variants.
|
1592 |
|
|
|
1593 |
|
|
2003-06-05 Daniel Jacobowitz
|
1594 |
|
|
|
1595 |
|
|
* linux-low.c (linux_wait_for_event): Correct comment typos.
|
1596 |
|
|
(linux_resume_one_process): Call check_removed_breakpoint.
|
1597 |
|
|
(linux_send_signal): New function.
|
1598 |
|
|
(linux_target_ops): Add linux_send_signal.
|
1599 |
|
|
* remote-utils.c (putpkt, input_interrupt): Use send_signal instead
|
1600 |
|
|
of kill.
|
1601 |
|
|
* target.h (struct target_ops): Add send_signal.
|
1602 |
|
|
|
1603 |
|
|
2003-05-29 Jim Blandy
|
1604 |
|
|
|
1605 |
|
|
* linux-low.c (usr_store_inferior_registers): Transfer buf in
|
1606 |
|
|
PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
|
1607 |
|
|
if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
|
1608 |
|
|
away part of the register's value.
|
1609 |
|
|
|
1610 |
|
|
2003-03-26 Daniel Jacobowitz
|
1611 |
|
|
|
1612 |
|
|
* linux-low.c (linux_create_inferior): Use __SIGRTMIN.
|
1613 |
|
|
(linux_wait_for_event, linux_init_signals): Likewise.
|
1614 |
|
|
|
1615 |
|
|
2003-03-17 Daniel Jacobowitz
|
1616 |
|
|
|
1617 |
|
|
* configure.in: Check for stdlib.h.
|
1618 |
|
|
* configure: Regenerated.
|
1619 |
|
|
* config.in: Regenerated.
|
1620 |
|
|
|
1621 |
|
|
2003-01-04 Andreas Schwab
|
1622 |
|
|
|
1623 |
|
|
* linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
|
1624 |
|
|
|
1625 |
|
|
2003-01-02 Andrew Cagney
|
1626 |
|
|
|
1627 |
|
|
* Makefile.in: Remove obsolete code.
|
1628 |
|
|
|
1629 |
|
|
2002-11-20 Daniel Jacobowitz
|
1630 |
|
|
|
1631 |
|
|
* linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
|
1632 |
|
|
defined(PT_FPR0_HI).
|
1633 |
|
|
|
1634 |
|
|
2002-11-17 Stuart Hughes
|
1635 |
|
|
|
1636 |
|
|
* linux-arm-low.c (arm_num_regs): Increase.
|
1637 |
|
|
(arm_regmap): Include status register.
|
1638 |
|
|
|
1639 |
|
|
2002-11-17 Daniel Jacobowitz
|
1640 |
|
|
|
1641 |
|
|
* linux-low.c (register_addr): Remove incorrect -1 check.
|
1642 |
|
|
|
1643 |
|
|
2002-08-29 Daniel Jacobowitz
|
1644 |
|
|
|
1645 |
|
|
* linux-low.c (linux_create_inferior): Call setpgid. Return
|
1646 |
|
|
the new PID.
|
1647 |
|
|
(unstopped_p, linux_signal_pid): Remove.
|
1648 |
|
|
(linux_target_ops): Remove linux_signal_pid.
|
1649 |
|
|
* remote-utils.c (putpkt, input_interrupt): Use signal_pid
|
1650 |
|
|
global instead of target method.
|
1651 |
|
|
* target.h (struct target_ops): Remove signal_pid. Update comment
|
1652 |
|
|
for create_inferior.
|
1653 |
|
|
* server.c (signal_pid): New variable.
|
1654 |
|
|
(create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
|
1655 |
|
|
gdbserver. Set the child to be the foreground process group.
|
1656 |
|
|
(attach_inferior): Set signal_pid.
|
1657 |
|
|
|
1658 |
|
|
2002-08-23 Daniel Jacobowitz
|
1659 |
|
|
|
1660 |
|
|
* ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
|
1661 |
|
|
|
1662 |
|
|
2002-08-20 Jim Blandy
|
1663 |
|
|
|
1664 |
|
|
* Makefile.in (LDFLAGS): Allow the configure script to establish a
|
1665 |
|
|
default for this.
|
1666 |
|
|
|
1667 |
|
|
2002-08-01 Andrew Cagney
|
1668 |
|
|
|
1669 |
|
|
* Makefile.in: Make chill references obsolete.
|
1670 |
|
|
|
1671 |
|
|
2002-07-24 Kevin Buettner
|
1672 |
|
|
|
1673 |
|
|
* configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
|
1674 |
|
|
* configure: Regenerate.
|
1675 |
|
|
* config.in: Regenerate.
|
1676 |
|
|
|
1677 |
|
|
2002-07-09 David O'Brien
|
1678 |
|
|
|
1679 |
|
|
* gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
|
1680 |
|
|
(perror_with_name, remote_close, remote_open, expect, play): Static.
|
1681 |
|
|
|
1682 |
|
|
2002-07-04 Michal Ludvig
|
1683 |
|
|
|
1684 |
|
|
* linux-x86-64-low.c (x86_64_regmap): Make it an array of
|
1685 |
|
|
byte offsets instead of an array of indexes.
|
1686 |
|
|
(x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
|
1687 |
|
|
|
1688 |
|
|
2002-06-13 Daniel Jacobowitz
|
1689 |
|
|
|
1690 |
|
|
* regcache.c: Add comment.
|
1691 |
|
|
|
1692 |
|
|
2002-06-11 Daniel Jacobowitz
|
1693 |
|
|
|
1694 |
|
|
* thread-db.c: New file.
|
1695 |
|
|
* proc-service.c: New file.
|
1696 |
|
|
* acinclude.m4: New file.
|
1697 |
|
|
* Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
|
1698 |
|
|
proc-service.o, and thread-db.o.
|
1699 |
|
|
(linux-low.o): Add USE_THREAD_DB.
|
1700 |
|
|
* acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
|
1701 |
|
|
HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
|
1702 |
|
|
* aclocal.m4: Regenerated.
|
1703 |
|
|
* config.in: Regenerated.
|
1704 |
|
|
* configure: Regenerated.
|
1705 |
|
|
* configure.in: Check for proc_service.h, sys/procfs.h,
|
1706 |
|
|
thread_db.h, and linux/elf.h headrs.
|
1707 |
|
|
Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
|
1708 |
|
|
PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
|
1709 |
|
|
Check for -lthread_db and thread support.
|
1710 |
|
|
* configure.srv: Enable thread_db support for ARM, i386, MIPS,
|
1711 |
|
|
PowerPC, and SuperH.
|
1712 |
|
|
* i387-fp.c: Constify arguments.
|
1713 |
|
|
* i387-fp.h: Likewise.
|
1714 |
|
|
* inferiors.c: (struct thread_info): Renamed from
|
1715 |
|
|
`struct inferior_info'. Remove PID member. Use generic inferior
|
1716 |
|
|
list header. All uses updated.
|
1717 |
|
|
(inferiors, signal_pid): Removed.
|
1718 |
|
|
(all_threads): New variable.
|
1719 |
|
|
(get_thread): Define.
|
1720 |
|
|
(add_inferior_to_list): New function.
|
1721 |
|
|
(for_each_inferior): New function.
|
1722 |
|
|
(change_inferior_id): New function.
|
1723 |
|
|
(add_inferior): Removed.
|
1724 |
|
|
(remove_inferior): New function.
|
1725 |
|
|
(add_thread): New function.
|
1726 |
|
|
(free_one_thread): New function.
|
1727 |
|
|
(remove_thread): New function.
|
1728 |
|
|
(clear_inferiors): Use for_each_inferior and free_one_thread.
|
1729 |
|
|
(find_inferior): New function.
|
1730 |
|
|
(find_inferior_id): New function.
|
1731 |
|
|
(inferior_target_data): Update argument type.
|
1732 |
|
|
(set_inferior_target_data): Likewise.
|
1733 |
|
|
(inferior_regcache_data): Likewise.
|
1734 |
|
|
(set_inferior_regcache_data): Likewise.
|
1735 |
|
|
* linux-low.c (linux_bp_reinsert): Remove.
|
1736 |
|
|
(all_processes, stopping_threads, using_thrads)
|
1737 |
|
|
(struct pending_signals, debug_threads, pid_of): New.
|
1738 |
|
|
(inferior_pid): Replace with macro.
|
1739 |
|
|
(struct inferior_linux_data): Remove.
|
1740 |
|
|
(get_stop_pc, add_process): New functions.
|
1741 |
|
|
(linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
|
1742 |
|
|
Use add_process and add_thread.
|
1743 |
|
|
(linux_attach_lwp): New function, based on old linux_attach. Use
|
1744 |
|
|
add_process and add_thread. Set stop_expected for new threads.
|
1745 |
|
|
(linux_attach): New function.
|
1746 |
|
|
(linux_kill_one_process): New function.
|
1747 |
|
|
(linux_kill): Kill all LWPs.
|
1748 |
|
|
(linux_thread_alive): Use find_inferior_id.
|
1749 |
|
|
(check_removed_breakpoints, status_pending_p): New functions.
|
1750 |
|
|
(linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
|
1751 |
|
|
Update. Use WNOHANG. Wait for cloned processes also. Update process
|
1752 |
|
|
struct for the found process.
|
1753 |
|
|
(linux_wait_for_event): New function.
|
1754 |
|
|
(linux_wait): Use it. Support LWPs.
|
1755 |
|
|
(send_sigstop, wait_for_sigstop, stop_all_processes)
|
1756 |
|
|
(linux_resume_one_process, linux_continue_one_process): New functions.
|
1757 |
|
|
(linux_resume): Support LWPs.
|
1758 |
|
|
(REGISTER_RAW_SIZE): Remove.
|
1759 |
|
|
(fetch_register): Use register_size instead. Call supply_register.
|
1760 |
|
|
(usr_store_inferior_registers): Likewise. Call collect_register.
|
1761 |
|
|
Fix recursive case.
|
1762 |
|
|
(regsets_fetch_inferior_registers): Improve error message.
|
1763 |
|
|
(regsets_store_inferior_registers): Add debugging.
|
1764 |
|
|
(linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
|
1765 |
|
|
(unstopped_p, linux_signal_pid): New functions.
|
1766 |
|
|
(linux_target_ops): Add linux_signal_pid.
|
1767 |
|
|
(linux_init_signals): New function.
|
1768 |
|
|
(initialize_low): Call it. Initialize using_threads.
|
1769 |
|
|
* regcache.c (inferior_regcache_data): Add valid
|
1770 |
|
|
flag.
|
1771 |
|
|
(get_regcache): Fetch registers lazily. Add fetch argument
|
1772 |
|
|
and update all callers.
|
1773 |
|
|
(regcache_invalidate_one, regcache_invalidate): New
|
1774 |
|
|
functions.
|
1775 |
|
|
(new_register_cache): Renamed from create_register_cache.
|
1776 |
|
|
Return the new regcache.
|
1777 |
|
|
(free_register_cache): Change argument to a void *.
|
1778 |
|
|
(registers_to_string, registers_from_string): Call get_regcache
|
1779 |
|
|
with fetch flag set.
|
1780 |
|
|
(register_data): Make static. Pass fetch flag to get_regcache.
|
1781 |
|
|
(supply_register): Call get_regcache with fetch flag clear.
|
1782 |
|
|
(collect_register): Call get_regcache with fetch flag set.
|
1783 |
|
|
(collect_register_as_string): New function.
|
1784 |
|
|
* regcache.h: Update.
|
1785 |
|
|
* remote-utils.c (putpkt): Flush after debug output and use
|
1786 |
|
|
stderr.
|
1787 |
|
|
Handle input interrupts while waiting for an ACK.
|
1788 |
|
|
(input_interrupt): Use signal_pid method.
|
1789 |
|
|
(getpkt): Flush after debug output and use stderr.
|
1790 |
|
|
(outreg): Use collect_register_as_string.
|
1791 |
|
|
(new_thread_notify, dead_thread_notify): New functions.
|
1792 |
|
|
(prepare_resume_reply): Check using_threads. Set thread_from_wait
|
1793 |
|
|
and general_thread.
|
1794 |
|
|
(look_up_one_symbol): Flush after debug output.
|
1795 |
|
|
* server.c (step_thread, server_waiting): New variables.
|
1796 |
|
|
(start_inferior): Don't use signal_pid. Update call to mywait.
|
1797 |
|
|
(attach_inferior): Update call to mywait.
|
1798 |
|
|
(handle_query): Handle qfThreadInfo and qsThreadInfo.
|
1799 |
|
|
(main): Don't fetch/store registers explicitly. Use
|
1800 |
|
|
set_desired_inferior. Support proposed ``Hs'' packet. Update
|
1801 |
|
|
calls to mywait.
|
1802 |
|
|
* server.h: Update.
|
1803 |
|
|
(struct inferior_list, struct_inferior_list_entry): New.
|
1804 |
|
|
* target.c (set_desired_inferior): New.
|
1805 |
|
|
(write_inferior_memory): Constify.
|
1806 |
|
|
(mywait): New function.
|
1807 |
|
|
* target.h: Update.
|
1808 |
|
|
(struct target_ops): New signal_pid method.
|
1809 |
|
|
(mywait): Removed macro, added prototype.
|
1810 |
|
|
|
1811 |
|
|
* linux-low.h (regset_func): Removed.
|
1812 |
|
|
(regset_fill_func, regset_store_func): New.
|
1813 |
|
|
(enum regset_type): New.
|
1814 |
|
|
(struct regset_info): Add type field. Use new operation types.
|
1815 |
|
|
(struct linux_target_ops): stop_pc renamed to get_pc.
|
1816 |
|
|
Add decr_pc_after_break and breakpoint_at.
|
1817 |
|
|
(get_process, get_thread_proess, get_process_thread)
|
1818 |
|
|
(strut process_info, all_processes, linux_attach_lwp)
|
1819 |
|
|
(thread_db_init): New.
|
1820 |
|
|
|
1821 |
|
|
* linux-arm-low.c (arm_get_pc, arm_set_pc,
|
1822 |
|
|
arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
|
1823 |
|
|
(the_low_target): Add new members.
|
1824 |
|
|
* linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
|
1825 |
|
|
(i386_store_fpxregset): Constify.
|
1826 |
|
|
(target_regsets): Add new kind identifier.
|
1827 |
|
|
(i386_get_pc): Renamed from i386_stop_pc. Simplify.
|
1828 |
|
|
(i386_set_pc): Add debugging.
|
1829 |
|
|
(i386_breakpoint_at): New function.
|
1830 |
|
|
(the_low_target): Add new members.
|
1831 |
|
|
* linux-mips-low.c (mips_get_pc, mips_set_pc)
|
1832 |
|
|
(mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
|
1833 |
|
|
(mips_breakpoint_at): New.
|
1834 |
|
|
(the_low_target): Add new members.
|
1835 |
|
|
* linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
|
1836 |
|
|
(ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
|
1837 |
|
|
(the_low_target): Add new members.
|
1838 |
|
|
* linux-sh-low.c (sh_get_pc, sh_set_pc)
|
1839 |
|
|
(sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
|
1840 |
|
|
(the_low_target): Add new members.
|
1841 |
|
|
* linux-x86-64-low.c (target_regsets): Add new kind
|
1842 |
|
|
identifier.
|
1843 |
|
|
|
1844 |
|
|
2002-05-15 Daniel Jacobowitz
|
1845 |
|
|
|
1846 |
|
|
From Martin Pool :
|
1847 |
|
|
* server.c (gdbserver_usage): New function.
|
1848 |
|
|
(main): Call it.
|
1849 |
|
|
|
1850 |
|
|
2002-05-14 Daniel Jacobowitz
|
1851 |
|
|
|
1852 |
|
|
* mem-break.c (reinsert_breakpoint_by_bp): Correct typo
|
1853 |
|
|
stop_at -> stop_pc.
|
1854 |
|
|
|
1855 |
|
|
2002-05-04 Andrew Cagney
|
1856 |
|
|
|
1857 |
|
|
* Makefile.in: Remove obsolete code.
|
1858 |
|
|
|
1859 |
|
|
2002-04-24 Michal Ludvig
|
1860 |
|
|
|
1861 |
|
|
* linux-low.c (regsets_fetch_inferior_registers),
|
1862 |
|
|
(regsets_store_inferior_registers): Removed cast to int from
|
1863 |
|
|
ptrace() calls.
|
1864 |
|
|
* regcache.h: Added declaration of struct inferior_info.
|
1865 |
|
|
|
1866 |
|
|
2002-04-20 Daniel Jacobowitz
|
1867 |
|
|
|
1868 |
|
|
* inferiors.c (struct inferior_info): Add regcache_data.
|
1869 |
|
|
(add_inferior): Call create_register_cache.
|
1870 |
|
|
(clear_inferiors): Call free_register_cache.
|
1871 |
|
|
(inferior_regcache_data, set_inferior_regcache_data): New functions.
|
1872 |
|
|
* regcache.c (struct inferior_regcache_data): New.
|
1873 |
|
|
(registers): Remove.
|
1874 |
|
|
(get_regcache): New function.
|
1875 |
|
|
(create_register_cache, free_register_cache): New functions.
|
1876 |
|
|
(set_register_cache): Don't initialize the register cache here.
|
1877 |
|
|
(registers_to_string, registers_from_string, register_data): Call
|
1878 |
|
|
get_regcache.
|
1879 |
|
|
* regcache.h: Add prototypes.
|
1880 |
|
|
* server.h: Likewise.
|
1881 |
|
|
|
1882 |
|
|
2002-04-20 Daniel Jacobowitz
|
1883 |
|
|
|
1884 |
|
|
* mem-break.c: New file.
|
1885 |
|
|
* mem-break.h: New file.
|
1886 |
|
|
* Makefile.in: Add mem-break.o rule; update server.h
|
1887 |
|
|
dependencies.
|
1888 |
|
|
* inferiors.c (struct inferior_info): Add target_data
|
1889 |
|
|
member.
|
1890 |
|
|
(clear_inferiors): Free target_data member if set.
|
1891 |
|
|
(inferior_target_data, set_inferior_target_data): New functions.
|
1892 |
|
|
* linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
|
1893 |
|
|
(i386_stop_pc, i386_set_pc): New. Add to the_low_target.
|
1894 |
|
|
* linux-low.c (linux_bp_reinsert): New variable.
|
1895 |
|
|
(struct inferior_linux_data): New.
|
1896 |
|
|
(linux_create_inferior): Use set_inferior_target_data.
|
1897 |
|
|
(linux_attach): Likewise. Call add_inferior.
|
1898 |
|
|
(linux_wait_for_one_inferior): New function.
|
1899 |
|
|
(linux_wait): Call it.
|
1900 |
|
|
(linux_write_memory): Add const.
|
1901 |
|
|
(initialize_low): Call set_breakpoint_data.
|
1902 |
|
|
* linux-low.h (struct linux_target_ops): Add breakpoint
|
1903 |
|
|
handling members.
|
1904 |
|
|
* server.c (attach_inferior): Remove extra add_inferior
|
1905 |
|
|
call.
|
1906 |
|
|
* server.h: Include mem-break.h. Update inferior.c
|
1907 |
|
|
prototypes.
|
1908 |
|
|
* target.c (read_inferior_memory)
|
1909 |
|
|
(write_inferior_memory): New functions.
|
1910 |
|
|
* target.h (read_inferior_memory)
|
1911 |
|
|
(write_inferior_memory): Change macros to prototypes.
|
1912 |
|
|
(struct target_ops): Update comments. Add const to write_memory
|
1913 |
|
|
definition.
|
1914 |
|
|
|
1915 |
|
|
2002-04-11 Daniel Jacobowitz
|
1916 |
|
|
|
1917 |
|
|
* linux-low.c (usr_store_inferior_registers): Support
|
1918 |
|
|
registers which are allowed to fail to store.
|
1919 |
|
|
* linux-low.h (linux_target_ops): Likewise.
|
1920 |
|
|
* linux-ppc-low.c (ppc_regmap): Support FPSCR.
|
1921 |
|
|
(ppc_cannot_store_register): FPSCR may not be storable.
|
1922 |
|
|
|
1923 |
|
|
2002-04-09 Daniel Jacobowitz
|
1924 |
|
|
|
1925 |
|
|
* server.h: Include if HAVE_STRING_H.
|
1926 |
|
|
* ChangeLog: Correct paths in last ChangeLog entry.
|
1927 |
|
|
|
1928 |
|
|
2002-04-09 Daniel Jacobowitz
|
1929 |
|
|
|
1930 |
|
|
* linux-low.h: Remove obsolete prototypes.
|
1931 |
|
|
(struct linux_target_ops): New.
|
1932 |
|
|
(extern the_low_target): New.
|
1933 |
|
|
* linux-low.c (num_regs, regmap): Remove declarations.
|
1934 |
|
|
(register_addr): Use the_low_target explicitly.
|
1935 |
|
|
(fetch_register): Likewise.
|
1936 |
|
|
(usr_fetch_inferior_registers): Likewise.
|
1937 |
|
|
(usr_store_inferior_registers): Likewise.
|
1938 |
|
|
* linux-arm-low.c (num_regs): Remove.
|
1939 |
|
|
(arm_num_regs): Define.
|
1940 |
|
|
(arm_regmap): Renamed from regmap, made static.
|
1941 |
|
|
(arm_cannot_fetch_register): Renamed from cannot_fetch_register,
|
1942 |
|
|
made static.
|
1943 |
|
|
(arm_cannot_store_register): Renamed from cannot_store_register,
|
1944 |
|
|
made static.
|
1945 |
|
|
(the_low_target): New.
|
1946 |
|
|
* linux-i386-low.c (num_regs): Remove.
|
1947 |
|
|
(i386_num_regs): Define.
|
1948 |
|
|
(i386_regmap): Renamed from regmap, made static.
|
1949 |
|
|
(i386_cannot_fetch_register): Renamed from cannot_fetch_register,
|
1950 |
|
|
made static.
|
1951 |
|
|
(i386_cannot_store_register): Renamed from cannot_store_register,
|
1952 |
|
|
made static.
|
1953 |
|
|
(the_low_target): New.
|
1954 |
|
|
* linux-ia64-low.c (num_regs): Remove.
|
1955 |
|
|
(ia64_num_regs): Define.
|
1956 |
|
|
(ia64_regmap): Renamed from regmap, made static.
|
1957 |
|
|
(ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
|
1958 |
|
|
made static.
|
1959 |
|
|
(ia64_cannot_store_register): Renamed from cannot_store_register,
|
1960 |
|
|
made static.
|
1961 |
|
|
(the_low_target): New.
|
1962 |
|
|
* linux-m68k-low.c (num_regs): Remove.
|
1963 |
|
|
(m68k_num_regs): Define.
|
1964 |
|
|
(m68k_regmap): Renamed from regmap, made static.
|
1965 |
|
|
(m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
|
1966 |
|
|
made static.
|
1967 |
|
|
(m68k_cannot_store_register): Renamed from cannot_store_register,
|
1968 |
|
|
made static.
|
1969 |
|
|
(the_low_target): New.
|
1970 |
|
|
* linux-mips-low.c (num_regs): Remove.
|
1971 |
|
|
(mips_num_regs): Define.
|
1972 |
|
|
(mips_regmap): Renamed from regmap, made static.
|
1973 |
|
|
(mips_cannot_fetch_register): Renamed from cannot_fetch_register,
|
1974 |
|
|
made static.
|
1975 |
|
|
(mips_cannot_store_register): Renamed from cannot_store_register,
|
1976 |
|
|
made static.
|
1977 |
|
|
(the_low_target): New.
|
1978 |
|
|
* linux-ppc-low.c (num_regs): Remove.
|
1979 |
|
|
(ppc_num_regs): Define.
|
1980 |
|
|
(ppc_regmap): Renamed from regmap, made static.
|
1981 |
|
|
(ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
|
1982 |
|
|
made static.
|
1983 |
|
|
(ppc_cannot_store_register): Renamed from cannot_store_register,
|
1984 |
|
|
made static.
|
1985 |
|
|
(the_low_target): New.
|
1986 |
|
|
* linux-s390-low.c (num_regs): Remove.
|
1987 |
|
|
(s390_num_regs): Define.
|
1988 |
|
|
(s390_regmap): Renamed from regmap, made static.
|
1989 |
|
|
(s390_cannot_fetch_register): Renamed from cannot_fetch_register,
|
1990 |
|
|
made static.
|
1991 |
|
|
(s390_cannot_store_register): Renamed from cannot_store_register,
|
1992 |
|
|
made static.
|
1993 |
|
|
(the_low_target): New.
|
1994 |
|
|
* linux-sh-low.c (num_regs): Remove.
|
1995 |
|
|
(sh_num_regs): Define.
|
1996 |
|
|
(sh_regmap): Renamed from regmap, made static.
|
1997 |
|
|
(sh_cannot_fetch_register): Renamed from cannot_fetch_register,
|
1998 |
|
|
made static.
|
1999 |
|
|
(sh_cannot_store_register): Renamed from cannot_store_register,
|
2000 |
|
|
made static.
|
2001 |
|
|
(the_low_target): New.
|
2002 |
|
|
* linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
|
2003 |
|
|
(the_low_target): New.
|
2004 |
|
|
|
2005 |
|
|
2002-04-09 Daniel Jacobowitz
|
2006 |
|
|
|
2007 |
|
|
* Makefile.in: Add stamp-h target.
|
2008 |
|
|
* configure.in: Create stamp-h.
|
2009 |
|
|
* configure: Regenerated.
|
2010 |
|
|
|
2011 |
|
|
2002-04-09 Daniel Jacobowitz
|
2012 |
|
|
|
2013 |
|
|
* inferiors.c: New file.
|
2014 |
|
|
* target.c: New file.
|
2015 |
|
|
* target.h: New file.
|
2016 |
|
|
* Makefile.in: Add target.o and inferiors.o. Update
|
2017 |
|
|
dependencies.
|
2018 |
|
|
* linux-low.c (inferior_pid): New static variable,
|
2019 |
|
|
moved from server.c.
|
2020 |
|
|
(linux_create_inferior): Renamed from create_inferior.
|
2021 |
|
|
Call add_inferior. Return 0 on success instead of a PID.
|
2022 |
|
|
(linux_attach): Renamed from myattach.
|
2023 |
|
|
(linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
|
2024 |
|
|
(linux_thread_alive): Renamed from mythread_alive.
|
2025 |
|
|
(linux_wait): Renamed from mywait. Call clear_inferiors () if the
|
2026 |
|
|
child dies.
|
2027 |
|
|
(linux_resume): Renamed from myresume. Add missing ``return 0''.
|
2028 |
|
|
(regsets_store_inferior_registers): Correct error message.
|
2029 |
|
|
Add missing ``return 0''.
|
2030 |
|
|
(linux_fetch_registers): Renamed from fetch_inferior_registers.
|
2031 |
|
|
(linux_store_registers): Renamed from store_inferior_registers.
|
2032 |
|
|
(linux_read_memory): Renamed from read_inferior_memory.
|
2033 |
|
|
(linux_write_memory): Renamed from write_inferior_memory.
|
2034 |
|
|
(linux_target_ops): New structure.
|
2035 |
|
|
(initialize_low): Call set_target_ops ().
|
2036 |
|
|
* remote-utils.c (unhexify): New function.
|
2037 |
|
|
(hexify): New function.
|
2038 |
|
|
(input_interrupt): Send signals to ``signal_pid''.
|
2039 |
|
|
* server.c (inferior_pid): Remove.
|
2040 |
|
|
(start_inferior): Update create_inferior call.
|
2041 |
|
|
(attach_inferior): Call add_inferior.
|
2042 |
|
|
(handle_query): New function.
|
2043 |
|
|
(main): Call handle_query for `q' packets.
|
2044 |
|
|
* server.h: Include "target.h". Remove obsolete prototypes.
|
2045 |
|
|
Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
|
2046 |
|
|
|
2047 |
|
|
2002-04-09 Daniel Jacobowitz
|
2048 |
|
|
|
2049 |
|
|
* Makefile.in: Add WARN_CFLAGS. Update configury
|
2050 |
|
|
dependencies.
|
2051 |
|
|
* configure.in: Check for
|
2052 |
|
|
* configure: Regenerate.
|
2053 |
|
|
* config.in: Regenerate.
|
2054 |
|
|
* gdbreplay.c: Include needed system headers.
|
2055 |
|
|
(remote_open): Remove strchr prototype.
|
2056 |
|
|
* linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
|
2057 |
|
|
* regcache.c (supply_register): Change buf argument to const void *.
|
2058 |
|
|
(supply_register_by_name): Likewise.
|
2059 |
|
|
(collect_register): Change buf argument to void *.
|
2060 |
|
|
(collect_register_by_name): Likewise.
|
2061 |
|
|
* regcache.h: Add missing prototypes.
|
2062 |
|
|
* remote-utils.c: Include for inet_ntoa.
|
2063 |
|
|
* server.c (handle_query): New function.
|
2064 |
|
|
(attached): New static variable, moved out of main.
|
2065 |
|
|
(main): Quiet longjmp clobber warnings.
|
2066 |
|
|
* server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
|
2067 |
|
|
* utils.c (error): Remove NORETURN.
|
2068 |
|
|
(fatal): Likewise.
|