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