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