1 2009-03-23 Pedro Alves <pedro@codesourcery.com>
3 * server.c (handle_query) Whitespace and formatting.
5 2009-03-22 Pedro Alves <pedro@codesourcery.com>
7 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
8 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
9 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
10 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
11 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
12 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
13 Makefile.in, configure.ac: Fix whitespace throughout.
14 * configure: Regenerate.
16 2009-03-22 Pedro Alves <pedro@codesourcery.com>
18 * inferiors.c (find_inferior): Make it safe for the callback
19 function to delete the currently iterated inferior.
21 2009-03-22 Pedro Alves <pedro@codesourcery.com>
23 * Makefile.in (linuw_low_h): Move higher.
24 (thread-db.o): Depend on $(linux_low_h).
26 2009-03-17 Pedro Alves <pedro@codesourcery.com>
28 Rename "process" to "lwp" throughout.
30 * linux-low.c (all_processes): Rename to...
32 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
33 (add_process): Rename to ...
34 (add_lwp): ... this. Adjust.
35 (linux_create_inferior): Adjust.
36 (linux_attach_lwp): Adjust.
37 (linux_attach): Adjust.
38 (linux_kill_one_process): Rename to ...
39 (linux_kill_one_lwp): ... this. Adjust.
41 (linux_detach_one_process): Rename to ...
42 (linux_detach_one_lwp): ... this. Adjust.
43 (linux_detach): Adjust.
44 (check_removed_breakpoint): Adjust.
45 (status_pending_p): Adjust.
46 (linux_wait_for_process): Rename to ...
47 (linux_wait_for_lwp): ... this. Adjust.
48 (linux_wait_for_event): Adjust.
49 (send_sigstop): Adjust.
50 (wait_for_sigstop): Adjust.
51 (stop_all_processes): Rename to ...
52 (stop_all_lwps): ... this.
53 (linux_resume_one_process): Rename to ...
54 (linux_resume_one_lwp): ... this. Adjust.
55 (linux_set_resume_request, linux_continue_one_thread)
56 (linux_queue_one_thread, resume_status_pending_p)
57 (usr_store_inferior_registers, regsets_store_inferior_registers)
58 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
60 * linux-low.h (get_process): Rename to ...
61 (get_lwp): ... this. Adjust.
62 (get_thread_process): Rename to ...
63 (get_thread_lwp): ... this. Adjust.
64 (get_process_thread): Rename to ...
65 (get_lwp_thread): ... this. Adjust.
66 (struct process_info): Rename to ...
67 (struct lwp_info): ... this.
68 (all_processes): Rename to ...
70 * proc-service.c (ps_lgetregs): Adjust.
71 * thread-db.c (thread_db_create_event, find_one_thread)
72 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
74 2009-03-14 Pedro Alves <pedro@codesourcery.com>
76 * server.c (handle_query): Handle "qAttached".
78 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
80 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
81 GPLv3, update license URL.
83 2009-03-01 Doug Evans <dje@google.com>
85 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
86 (server_h): Add gdb_signals.h.
88 * server.h (target_signal_from_host,target_signal_to_host_p)
89 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
91 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
93 * remote-utils.c (getpkt): Also generate remote-debug
94 information if noack_mode is set.
96 2009-02-06 Pedro Alves <pedro@codesourcery.com>
98 * server.c (handle_query): Report qXfer:siginfo:read and
99 qXfer:siginfo:write as supported and handle them.
100 * target.h (struct target_ops) <qxfer_siginfo>: New field.
101 * linux-low.c (linux_xfer_siginfo): New.
102 (linux_target_ops): Set it.
104 2009-01-26 Pedro Alves <pedro@codesourcery.com>
106 * server.c (gdbserver_usage): Mention --remote-debug.
107 (main): Accept '--remote-debug' switch.
109 2009-01-18 Doug Evans <dje@google.com>
111 * regcache.c (new_register_cache): No need to check result of xcalloc.
112 * server.c (handle_search_memory): Back out calls to xmalloc,
113 result is checked and error is returned to user upon failure.
114 (handle_query): Ditto. Add more checks for result of malloc.
115 (handle_v_cont): Check result of malloc, report error back to
117 (handle_v_run): Ditto. Call freeargv.
118 * server.h (freeargv): Declare.
119 * utils.c (freeargv): New fn.
121 2009-01-15 Doug Evans <dje@google.com>
123 * gdbreplay.c (perror_with_name): Make arg const char *.
124 * server.h (target_signal_to_name): Make return type const char *.
125 * thread-db.c (thread_db_err_str): Make return type const char *.
126 * utils.c (perror_with_name): Make arg const char *.
128 2009-01-14 Pedro Alves <pedro@codesourcery.com>
130 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
131 when handling a EXIT_PROCESS_DEBUG_EVENT.
133 2009-01-06 Joel Brobecker <brobecker@adacore.com>
135 * gdbreplay.c (gdbreplay_version): Update copyright year.
136 * server.c (gdbserver_version): Likewise.
138 2009-01-05 Doug Evans <dje@google.com>
140 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
141 (handle_extended_wait): Improve comment.
143 2008-12-13 Doug Evans <dje@google.com>
145 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
146 * server.h (ATTR_MALLOC): New macro.
147 (xmalloc,xcalloc,xstrdup): Declare.
148 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
149 * inferiors.c: Ditto.
150 * linux-low.c: Ditto.
151 * mem-break.c: Ditto.
153 * remote-utils.c: Ditto.
156 * win32-low.c: Ditto.
158 2008-12-12 Doug Evans <dje@google.com>
160 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
163 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
165 2008-12-09 Doug Evans <dje@google.com>
167 * linux-low.h (struct process_info): Delete member tid, unused.
168 * thread-db.c (find_one_thread): Update.
169 (maybe_attach_thread): Update.
171 2008-12-02 Pedro Alves <pedro@codesourcery.com>
173 * target.h (struct target_ops): Add qxfer_osdata member.
174 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
176 (linux_qxfer_osdata): New functions.
177 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
179 * server.c (handle_query): Handle "qXfer:osdata:read:".
180 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
181 (buffer_xml_printf): New functions.
182 * server.h (struct buffer): New.
183 (buffer_grow_str, buffer_grow_str0): New macros.
184 (buffer_grow, buffer_free, buffer_init, buffer_finish)
185 (buffer_xml_printf): Declare.
187 2008-11-24 Doug Evans <dje@google.com>
189 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
191 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
193 * server.c (handle_v_run): Always use the supplied argument list.
195 2008-11-19 Bob Wilson <bob.wilson@acm.org>
197 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
198 (xtensa_regmap_table): Add entry for scompare1.
200 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
202 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
203 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
204 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
205 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
206 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
207 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
208 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
209 XML target descriptions.
210 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
211 when inferior is running on an ISA 2.05 or later processor. Add
212 special case to return offset for full 64-bit slot of FPSCR when
215 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
217 * Makefile.in (SFILES, clean): Added sparc64 files.
218 (reg-sparc64.o, reg-sparc64.c): New.
219 * configure.srv (sparc*-*-linux*): New configuration.
220 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
221 syscall arguments for SPARC.
222 (regsets_store_inferior_registers): Likewise.
223 * linux-sparc-low.c: New file.
225 2008-10-21 Doug Evans <dje@google.com>
227 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
228 (READLINE_DIR,READLINE_DEP): Delete.
229 (INTERNAL_CFLAGS): Update.
232 2008-10-10 Pedro Alves <pedro@codesourcery.com>
234 * server.c (handle_v_run): If GDB didn't specify an argv, use the
235 whole argv from the last run, not just argv[0].
237 2008-09-08 Pedro Alves <pedro@codesourcery.com>
239 * regcache.c (new_register_cache): Return NULL if the register
240 cache size isn't known yet.
241 (free_register_cache): Avoid dereferencing a NULL regcache.
243 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
245 * configure.srv: Merge MIPS and MIPS64.
247 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
249 * Makefile.in (uninstall): Apply $(EXEEXT) too.
251 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
253 * Makefile.in: Add required vsx dependencies.
255 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
256 Declare init_registers_powerpc_vsx32l.
257 Declare init_registers_powerpc_vsx64l.
258 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
259 (ppc_arch_setup): Check for VSX in hwcap.
260 (ppc_fill_vsxregset): New function.
261 (ppc_store_vsxregset): New function.
262 Add new VSX entry in regset_info target_regsets.
264 * configure.srv: Add new VSX dependencies.
266 2008-08-12 Pedro Alves <pedro@codesourcery.com>
268 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
269 (remote_open): Set or clear transport_is_reliable.
270 (putpkt_binary): Don't expect acks in noack mode.
271 (getpkt): Don't send ack/nac in noack mode.
272 * server.c (handle_general_set): Handle QStartNoAckMode.
273 (handle_query): If connected by tcp pass QStartNoAckMode+ in
275 (main): Reset noack_mode on every connection.
276 * server.h (noack_mode): Declare.
278 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
280 * Makefile.in (GDBREPLAY_OBS): New variable.
281 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
283 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
284 Daniel Jacobowitz <dan@codesourcery.com>
286 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
287 (usr_store_inferior_registers): Likewise.
288 (regsets_store_inferior_registers): Likewise.
290 2008-07-31 Rolf Jansen <rj@surtec.com>
291 Pedro Alves <pedro@codesourcery.com>
293 * configure.ac: Check for memmem declaration.
294 * server.c [HAVE_MALLOC_H]: Include malloc.h.
295 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
296 (disable_packet_qfThreadInfo): Unconditionally compile.
297 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
298 * configure, config.in: Regenerate.
300 2008-07-28 Doug Kwan <dougkwan@google.com>
302 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
303 (linux_write_memory): Remove declaration of errno.
305 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
307 * linux-low.c (handle_extended_wait): Do not use "status"
308 variable uninitialized.
310 2008-07-07 Pedro Alves <pedro@codesourcery.com>
312 * server.c (handle_v_attach): Inhibit reporting dll changes.
314 2008-06-27 Pedro Alves <pedro@codesourcery.com>
316 * remote-utils.c (prepare_resume_reply): If requested, don't
317 output "thread:TID" in the T stop reply.
319 * server.c (disable_packet_vCont, disable_packet_Tthread)
320 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
321 (handle_query): If requested, disable support for qC, qfThreadInfo
323 (handle_v_requests): If requested, disable support for vCont.
324 (gdbserver_show_disableable): New.
325 (main): Handle --disable-packet and --disable-packet=LIST.
327 * server.h (disable_packet_vCont, disable_packet_Tthread)
328 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
330 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
332 * server.c (gdbserver_usage): Mention --version.
334 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
336 * Makefile.in (gdbreplay.o): New rule.
338 2008-06-06 Joseph Myers <joseph@codesourcery.com>
340 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
341 message, not gdbserver.
343 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
344 Nathan Sidwell <nathan@codesourcery.com>
345 Joseph Myers <joseph@codesourcery.com>
347 * acinclude.m4: Include ../../config/acx.m4.
348 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
349 * configure, config.in: Regenerate.
350 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
351 * server.c (gdbserver_version): Print PKGVERSION.
352 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
353 (main): Adjust gdbserver_usage calls.
354 * gdbreplay.c (version, host_name): Add declarations.
355 (gdbreplay_version, gdbreplay_usage): New.
356 (main): Accept --version and --help options.
358 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
360 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
361 (arm_breakpoint_at): Handle Thumb.
362 (the_low_target): Add comment.
364 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
366 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
368 2008-05-09 Doug Evans <dje@google.com>
370 * server.h (decode_search_memory_packet): Declare.
371 * remote-utils.c (decode_search_memory_packet): New fn.
372 * server.c (handle_search_memory_1): New fn.
373 (handle_search_memory): New fn.
374 (handle_query): Process qSearch:memory packets.
376 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
378 * regcache.c (registers_length): Remove.
379 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
380 full register packet.
381 * regcache.h (registers_length): Remove prototype.
382 * server.h (PBUFSIZ): Define to 16384.
384 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
386 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
387 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
388 powerpc-64l.o, and powerpc-altivec64l.o.
389 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
390 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
391 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
392 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
393 rs6000/power-linux.xml, and rs6000/power64-linux.xml
396 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
397 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
398 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
399 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
400 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
401 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
402 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
403 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
404 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
405 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
408 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
409 (init_registers_powerpc_32l): ... this new prototype.
410 (init_registers_powerpc_32): Remove, replace by ...
411 (init_registers_powerpc_altivec32l): ... this new prototype.
412 (init_registers_powerpc_e500): Remove, replace by ...
413 (init_registers_powerpc_e500l): ... this new prototype.
414 (init_registers_ppc64): Remove, replace by ...
415 (init_registers_powerpc_64l): ... this new prototype.
416 (init_registers_powerpc_64): Remove, replace by ...
417 (init_registers_powerpc_altivec64l): ... this new prototype.
418 (ppc_num_regs): Set to 73.
419 (PT_ORIG_R3, PT_TRAP): Define if necessary.
420 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
421 (ppc_cannot_store_register): Handle orig_r3 and trap.
422 (ppc_arch_setup): Update init_registers_... calls.
423 (ppc_fill_gregset): Handle orig_r3 and trap.
425 * inferiors.c (clear_inferiors): Reset current_inferior.
427 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
429 * acinclude.m4: Add override.m4.
430 * configure: Regenerate.
432 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
434 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
435 initial call to init_register_ppc64.
437 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
439 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into single
440 powerpc*-*-linux* case.
441 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
443 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
445 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
446 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
448 * linux-ppc-low.c: Include <elf.h>.
449 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
450 (ppc_hwcap): New global variable.
451 (ppc_regmap): Remove __SPE__ #ifdef sections.
452 (ppc_regmap_e500): New global variable.
453 (ppc_cannot_store_register): Update __SPE__ special case.
454 (ppc_get_hwcap): New function.
455 (ppc_arch_setup): Use it to determine whether inferior supports
456 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
457 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
458 Do not access registers if target does not support AltiVec.
459 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
460 Do not access registers if target does not support SPE.
461 (target_regsets): Unconditionally include AltiVec and SPE regsets.
463 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
465 * linux-low.c (disabled_regsets, num_regsets): New.
466 (use_regsets_p): Delete.
467 (linux_wait_for_process): Clear disabled_regsets.
468 (regsets_fetch_inferior_registers): Check and set it.
469 (regsets_store_inferior_registers): Likewise.
470 (linux_fetch_registers, linux_store_registers): Do not use
472 (initialize_low): Allocate disabled_regsets.
474 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
476 * Makefile.in (LIBOBJS): New.
478 (memmem.o): New rule.
479 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
480 * configure: Regenerated.
482 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
484 * server.c (handle_query): Never return "unsupported" for
485 qXfer:features:read queries.
487 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
489 * server.c (get_features_xml): Fix inverted condition.
490 (handle_query): Always support qXfer:feature:read.
492 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
494 * server.c (wrapper_argv): New.
495 (start_inferior): Handle wrapper_argv. If set, expect an extra
497 (gdbserver_usage): Document --wrapper.
498 (main): Parse --wrapper.
500 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
502 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
503 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
504 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
505 (ppc_set_pc): Likewise.
506 (ppc_arch_setup): New function.
507 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
509 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
511 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
513 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
514 instead of linux-ppc64-low.o.
515 * linux-ppc64-low.c: Remove file.
516 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
517 (linux-ppc64-low.o): Remove rule.
519 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
520 (init_registers_powerpc_64): Likewise.
521 (ppc_regmap): Conditionally define depending on __powerpc64__.
522 (ppc_cannot_store_register): Do not special-case "fpscr" when
523 compiled on __powerpc64__.
524 (ppc_collect_ptrace_register): New function.
525 (ppc_supply_ptrace_register): New function.
526 (ppc_breakpoint): Change type to "unsigned int".
527 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
528 (the_low_target): Conditionally provide initializers for the
529 arch_setup member depending on __powerpc64__. Install
530 collect_ptrace_register and supply_ptrace_register members.
532 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
534 * regcache.h (gdbserver_xmltarget): Add extern declaration.
535 * server.c (gdbserver_xmltarget): Define.
536 (get_features_xml): Use it to replace "target.xml" and arch_string.
538 * configure.srv: Remove srv_xmltarget. Add XML files that were
539 mentioned there to srv_xmlfiles instead. Remove conditional tests
540 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
541 srv_xmlfiles and srv_regobj to include all possible choices.
542 * configure.ac (srv_xmltarget): Remove.
543 (srv_xmlfiles): Do not add "target.xml".
544 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
545 checks for supplementary target information.
546 * configure: Regenerate.
547 * Makefile.in (XML_TARGET): Remove.
548 (target.xml): Remove rule.
549 (clean): Do not clean up target.xml.
550 (.PRECIOUS): Do not mention target.xml.
552 * target.h (struct target_ops): Remove arch_string member.
553 * linux-low.c (linux_arch_string): Remove.
554 (linux_target_ops): Remove arch_string initializer.
555 * linux-low.h (struct linux_target_ops): Remove arch_string member.
556 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
557 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
558 * spu-low.c (spu_arch_string): Remove.
559 (spu_target_ops): Remove arch_string initializer.
560 * win32-low.c (win32_arch_string): Remove.
561 (win32_target_ops): Remove arch_string initializer.
562 * win32-low.h (struct win32_target_ops): Remove arch_string member.
563 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
564 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
566 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
568 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
569 by collect_ptrace_register and supply_ptrace_register hooks.
570 * linux-low.c (fetch_register): Use supply_ptrace_register callback
571 instead of checking for the_low_target.left_pad_xfer.
572 (usr_store_inferior_registers): Use collect_ptrace_register callback
573 instead of checking for the_low_target.left_pad_xfer.
575 * linux-s390-low.c (s390_collect_ptrace_register): New function.
576 (s390_supply_ptrace_register): Likewise.
577 (s390_fill_gregset): Call s390_collect_ptrace_register.
578 (the_low_target): Update.
580 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
581 (ppc_supply_ptrace_register): Likewise.
582 (the_low_target): Update.
584 * linux-i386-low.c (the_low_target): Update.
585 * linux-x86-64-low.c (the_low_target): Update.
587 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
589 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
590 reg-s390.o and reg-s390x.o.
592 * linux-low.c (new_inferior): New global variable.
593 (linux_create_inferior, linux_attach): Set it.
594 (linux_wait_for_process): Call the_low_target.arch_setup after the
595 target has stopped for the first time.
596 (initialize_low): Do not call the_low_target.arch_setup.
598 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
599 (s390_set_pc): Likewise.
600 (s390_arch_setup): New function.
601 (the_low_target): Use s390_arch_setup as arch_setup routine.
603 * regcache.c (realloc_register_cache): New function.
604 (set_register_cache): Call it for each existing regcache.
606 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
608 * server.h (init_registers): Remove prototype.
610 * linux-low.h (struct linux_target_ops): Add arch_setup field.
611 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
612 instead of init_registers ().
613 * linux-arm-low.c (init_registers_arm): Add prototype.
614 (init_registers_arm_with_iwmmxt): Likewise.
615 (the_low_target): Add initializer for arch_setup field.
616 * linux-cris-low.c (init_registers_cris): Add prototype.
617 (the_low_target): Add initializer for arch_setup field.
618 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
619 (the_low_target): Add initializer for arch_setup field.
620 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
621 (the_low_target): Add initializer for arch_setup field.
622 * linux-ia64-low.c (init_registers_ia64): Add prototype.
623 (the_low_target): Add initializer for arch_setup field.
624 * linux-m32r-low.c (init_registers_m32r): Add prototype.
625 (the_low_target): Add initializer for arch_setup field.
626 * linux-m68k-low.c (init_registers_m68k): Add prototype.
627 (the_low_target): Add initializer for arch_setup field.
628 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
629 (init_registers_mips64_linux): Likewise.
630 (the_low_target): Add initializer for arch_setup field.
631 * linux-ppc-low.c (init_registers_ppc): Add prototype.
632 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
633 (the_low_target): Add initializer for arch_setup field.
634 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
635 (init_registers_powerpc_64): Likewise.
636 (the_low_target): Add initializer for arch_setup field.
637 * linux-s390-low.c (init_registers_s390): Add prototype.
638 (init_registers_s390x): Likewise.
639 (the_low_target): Add initializer for arch_setup field.
640 * linux-sh-low.c (init_registers_sh): Add prototype.
641 (the_low_target): Add initializer for arch_setup field.
642 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
643 (the_low_target): Add initializer for arch_setup field.
644 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
645 (the_low_target): Add initializer for arch_setup field.
647 * win32-low.h (struct win32_target_ops): Add arch_setup field.
648 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
649 instead of init_registers ().
650 * win32-arm-low.c (init_registers_arm): Add prototype.
651 (the_low_target): Add initializer for arch_setup field.
652 * win32-i386-low.c (init_registers_i386): Add prototype.
653 (the_low_target): Add initializer for arch_setup field.
655 * spu-low.c (init_registers_spu): Add prototype.
656 (initialize_low): Call initialie_registers_spu () instead of
657 initialize_registers ().
659 2008-02-19 Pedro Alves <pedro@codesourcery.com>
661 * server.c (handle_v_requests): When handling the vRun and vAttach
662 packets, if already debugging a process, don't kill it. Return an
665 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
667 * server.c (handle_query): Correct length check.
669 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
671 * win32-low.c (do_initial_child_stuff): Add process handle
672 parameter. Set current_process_handle and current_process_id from the
673 parameters. Clear globals.
674 (win32_create_inferior): Don't set current_process_handle and
675 current_process_id here. Instead pass them on the call to
676 do_initial_child_stuff.
677 (win32_attach): Likewise.
678 (win32_clear_inferiors): New.
679 (win32_kill): Don't close the current process handle or the
680 current thread handle here. Instead call win32_clear_inferiors.
681 (win32_detach): Don't open a new handle to the process. Call
682 win32_clear_inferiors.
683 (win32_join): Don't rely on current_process_handle; open a new
684 handle using the process id.
685 (win32_wait): Call win32_clear_inferiors when the inferior process
688 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
690 * server.c (monitor_show_help): Add "exit".
692 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
694 * Makefile.in (SFILES): Add linux-xtensa-low.c.
695 (clean): Add reg-xtensa.c.
696 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
697 * configure.srv (xtensa*-*-linux*) New target.
698 * linux-xtensa-low.c: New.
699 * xtensa-xtregs.c: New.
701 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
703 * hostio.c: Don't include errno.h.
704 (errno_to_fileio_errno): Move to hostio-errno.
705 * hostio.c: (hostio_error): Remove the error parameter. Defer the
706 error number outputting to the target->hostio_last_error callback.
707 (hostio_packet_error): Use FILEIO_EINVAL directly.
708 (handle_open, handle_pread, hostio_error, handle_unlink): Update
709 calls to hostio_error.
710 * hostio-errno.c: New.
711 * server.h (hostio_last_error_from_errno): Declare.
712 * target.h (target_ops): Add hostio_last_error member.
713 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
714 as hostio_last_error handler.
715 * spu-low.c (spu_target_ops): Likewise.
716 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
717 (wince_hostio_last_error): New functions.
718 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
719 as hostio_last_error handler.
720 (win32_target_ops) [!_WIN32_WCE]: Register
721 hostio_last_error_from_errno as hostio_last_error handler.
722 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
723 (hostio-errno.o): New rule.
724 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
725 * configure.srv (srv_hostio_err_objs): New variable. Default to
727 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
728 * configure: Regenerate.
730 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
732 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
733 (linux_kill, linux_detach): Clean up the process list.
734 * remote-utils.c (remote_open): Improve port number parsing.
735 (putpkt_binary, input_interrupt): Only send interrupts if the target
737 * server.c (extended_protocol): Make static.
738 (attached): Define earlier.
739 (exit_requested, response_needed, program_argv): New variables.
740 (target_running): New.
741 (start_inferior): Clear attached here.
742 (attach_inferior): Set attached here.
743 (require_running): Define.
744 (handle_query): Use require_running and target_running. Implement
746 (handle_v_attach, handle_v_run): New.
747 (handle_v_requests): Use require_running. Handle vAttach and vRun.
748 (gdbserver_usage): Update.
749 (main): Redo argument parsing. Handle --debug and --multi. Handle
750 --attach along with other options or after the port. Save
751 program_argv. Support no initial program. Resynchronize
752 communication with GDB after an error. Handle "monitor exit".
753 Use require_running and target_running. Always allow the extended
754 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
755 restart in extended mode.
756 * README: Refer to the GDB manual. Update --attach usage.
758 2007-12-20 Andreas Schwab <schwab@suse.de>
760 * linux-low.c (STACK_SIZE): Define.
761 (linux_tracefork_child): Use it. Use __clone2 on ia64.
762 (linux_test_for_tracefork): Likewise.
764 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
766 * linux-low.c (linux_wait_for_event): Update messages. Do not
767 reinsert auto-delete breakpoints.
768 * mem-break.c (struct breakpoint): Change return type of handler to
770 (set_breakpoint_at): Update handler type.
771 (reinsert_breakpoint_handler): Return 1 instead of calling
773 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
775 (check_breakpoints): Delete auto-delete breakpoints and return 2.
776 * mem-break.h (set_breakpoint_at): Update handler type.
777 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
778 * win32-low.c (auto_delete_breakpoint): New.
779 (get_child_debug_event): Use it.
781 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
783 * configure.ac: Check for pread and pwrite.
784 * hostio.c (handle_pread): Fall back to lseek and read.
785 (handle_pwrite): Fall back to lseek and write.
786 * config.in, configure: Regenerated.
788 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
790 * server.c (myresume): Add own_buf argument.
791 (main): Update calls.
793 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
795 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
796 * remote-utils.c (remote_open): Do not call disable_async_io.
797 (block_async_io): Delete.
798 (unblock_async_io): Make static.
799 (initialize_async_io): New.
800 * server.c (handle_v_cont): Handle async I/O here.
801 (myresume): Likewise. Move other common resume tasks here...
802 (main): ... from here. Call initialize_async_io. Disable async
803 I/O before the main loop.
804 * server.h (initialize_async_io): Declare.
805 (block_async_io, unblock_async_io): Delete prototypes.
806 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
808 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
810 * remote-utils.c (readchar): Allow binary data in received messages.
812 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
814 * win32-low.c (attaching): New global.
815 (win32_create_inferior): Clear the `attaching' global.
816 (win32_attach): Set the `attaching' global.
817 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
818 attaching. Only set a breakpoint at the entry point if not
821 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
823 * server.c (main): Don't report dll events on the initial
824 connection on attaches.
826 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
828 * server.c (main): Relax numerical bases supported for the pid of
829 the --attach command line argument.
831 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
833 * win32-low.c (win32_attach): Call OpenProcess before
834 DebugActiveProcess, not after. Add last error output to error
837 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
839 * win32-low.c (win32_get_thread_context)
840 (win32_set_thread_context): New functions.
841 (thread_rec): Use win32_get_thread_context.
842 (continue_one_thread, win32_resume): Use win32_set_thread_context.
843 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
847 Pedro Alves <pedro_alves@portugalmail.pt>
849 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
851 (child_add_thread): Minor cleanup.
852 (child_continue): Resume artificially suspended threads before
853 calling ContinueDebugEvent.
854 (suspend_one_thread): New.
855 (fake_breakpoint_event): New.
856 (get_child_debug_event): Change return type to int. Check here if
857 gdb sent an interrupt request. If a soft interrupt was requested,
858 fake a breakpoint event. Return 0 if there is no event to handle,
860 (win32_wait): Don't check here if gdb sent an interrupt request.
861 Ensure there is a valid event to handle.
862 (win32_request_interrupt): Add soft interruption method as last
866 Pedro Alves <pedro_alves@portugalmail.pt>
868 * win32-low.h (win32_thread_info): Add descriptions to the
869 structure members. Replace `suspend_count' counter by a
871 * win32-low.c (thread_rec): Update condition of when to get the
872 context from the inferior. Rely on ContextFlags being set if it
873 has already been retrieved. Only suspend the inferior thread if
874 we haven't already. Warn if that fails.
875 (continue_one_thread): s/suspend_count/suspended/. Only call
876 ResumeThread once. Warn if that fails.
878 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
880 * win32-low.c (win32_wait): Don't read from the inferior when it
883 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
885 * Makefile.in (win32_low_h): New variable.
886 (win32-low.o): Add dependency on $(win32_low_h).
887 (win32-arm-low.o, win32-i386-low.o): New rules.
889 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
891 * hostio.c: Correct copyright year.
893 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
895 * Makefile.in (OBS): Add hostio.o.
896 (hostio.o): New rule.
897 * server.h (handle_vFile): Declare.
898 * hostio.c: New file.
899 * server.c (handle_v_requests): Take packet_len and new_packet_len
900 for binary packets. Call handle_vFile.
901 (main): Update call to handle_v_requests.
903 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
905 * linux-low.c: Include <sched.h>.
907 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
909 * linux-low.c (linux_tracefork_grandchild): New.
910 (linux_tracefork_child): Use clone.
911 (linux_test_for_tracefork): Use clone; allocate and free a stack.
913 2007-10-31 Joel Brobecker <brobecker@adacore.com>
915 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
917 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
919 * linux-low.c (handle_extended_wait): Handle unexpected signals.
921 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
923 * inferiors.c (change_inferior_id): Delete.
924 (add_pid_to_list, pull_pid_from_list): New.
925 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
926 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
927 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
928 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
929 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
930 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
931 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
932 (using_threads): Always set to 1.
933 (handle_extended_wait): New.
934 (add_process): Do not set TID.
935 (linux_create_inferior): Set must_set_ptrace_flags.
936 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
937 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
938 (linux_thread_alive): Rename TID argument to LWPID.
939 (linux_wait_for_process): Handle unknown processes. Do not use TID.
940 (linux_wait_for_event): Do not use TID or check using_threads. Update
941 call to dead_thread_notify. Call handle_extended_wait.
942 (linux_create_inferior): Use PTRACE_SETOPTIONS.
943 (send_sigstop): Delete sigstop_sent.
944 (wait_for_sigstop): Avoid TID.
945 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
946 (linux_test_for_tracefork): New.
947 (linux_lookup_signals): Use thread_db_active and
948 linux_supports_tracefork_flag.
949 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
950 * linux-low.h (get_process_thread): Avoid TID.
951 (struct process_ifo): Move thread_known and tid to the end. Remove
953 (linux_attach_lwp, thread_db_init): Update prototypes.
954 * server.h (change_inferior_id): Delete prototype.
955 (add_pid_to_list, pull_pid_from_list): New prototypes.
956 * thread-db.c (thread_db_use_events): New.
957 (find_first_thread): Rename to...
958 (find_one_thread): ...this. Update callers and messages. Do not
959 call fatal. Check thread_db_use_events. Do not call
960 change_inferior_id or new_thread_notify.
961 (maybe_attach_thread): Update. Do not call new_thread_notify.
962 (thread_db_init): Set thread_db_use_events. Check use_events.
963 * utils.c (fatal, warning): Correct message prefix.
965 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
967 * Makefile.in (clean): Remove new files.
968 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
969 (powerpc-64.o, powerpc-64.c): New rules.
970 * configure.srv: Use alternate register sets for powerpc64-*-linux*
971 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
973 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
975 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
976 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
977 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
978 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
979 (target_regsets): Add AltiVec and SPE register sets.
980 * configure.ac: Check for AltiVec and SPE.
981 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
982 (ppc_fill_vrregset, ppc_store_vrregset): New.
983 (target_regsets): Add AltiVec register set.
984 * configure: Regenerated.
986 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
988 * linux-low.c (O_LARGEFILE): Define.
989 (linux_read_memory): Use /proc/PID/mem.
990 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
991 * configure, config.in: Regenerated.
993 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
995 * linux-low.c (linux_wait_for_event): Do not pass signals while
998 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
1000 * win32-low.c (create_process): New.
1001 (win32_create_inferior): Use create_process instead of
1002 CreateProcess. If create_process failed retry appending an ".exe"
1003 suffix. Store the GetLastError result immediatelly after
1004 create_process calls and use it on the call to error.
1006 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
1008 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
1010 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1012 * configure.ac: Switch license to GPLv3.
1014 2007-08-01 Michael Snyder <msnyder@access-company.com>
1016 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
1018 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
1020 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
1022 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
1023 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
1024 CloseToolhelp32Snapshot.
1025 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
1026 CloseToolhelp32Snapshot.
1028 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
1030 * server.c (main): Check for inferior exit before main loop.
1032 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
1034 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
1035 instead of on tmp_desc.
1037 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
1038 Daniel Jacobowitz <dan@codesourcery.com>
1040 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
1041 (add_thread): Minor cleanups.
1042 (clear_inferiors): Move lower in the file. Clear the DLL
1044 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
1045 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
1046 (xml_escape_text): New.
1047 * server.c (handle_query): Handle qXfer:libraries:read. Report it
1049 (handle_v_cont): Report errors.
1050 (gdbserver_version): Update.
1051 (main): Correct size of own_buf. Do not report initial DLL events.
1052 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
1053 (unloaded_dll, xml_escape_text): New.
1054 * win32-low.c (enum target_waitkind): Update comments.
1055 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
1056 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
1057 (win32_EnumProcessModules, win32_GetModuleInformation)
1058 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
1059 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
1060 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
1061 (win32_Module32First, win32_Module32Next, load_toolhelp)
1062 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
1063 (get_child_debug_event): Handle DLL events.
1064 (win32_wait): Likewise.
1066 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1068 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
1069 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
1071 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
1073 * win32-low.c (handle_output_debug_string): Ignore event if not
1076 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
1078 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
1080 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
1082 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
1084 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1086 * inferiors.c (change_inferior_id): Add comment.
1087 * linux-low.c (check_removed_breakpoint): Add an early
1088 prototype. Improve debug output.
1089 (linux_attach): Doc update.
1090 (linux_detach_one_process, linux_detach): Clean up before releasing
1092 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
1093 * linux-low.h (struct process_info): Doc improvement.
1094 * mem-break.c (delete_all_breakpoints): New.
1095 * mem-break.h (delete_all_breakpoints): New prototype.
1096 * thread-db.c (find_first_thread): New.
1097 (thread_db_create_event): Call it instead of
1098 thread_db_find_new_threads. Clean up unused variables.
1099 (maybe_attach_thread): Remove first thread handling.
1100 (thread_db_find_new_threads): Use find_first_thread.
1101 (thread_db_get_tls_address): Likewise.
1103 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
1105 * thread-db.c (thread_db_find_new_threads): Add prototype.
1106 (thread_db_create_event): Check for the main thread before adding
1108 (maybe_attach_thread): Only enable event reporting if TID == 0.
1109 (thread_db_get_tls_address): Check for new threads.
1111 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
1113 * linux-low.c (linux_create_inferior): Try execv before execvp.
1114 * spu-low.c (spu_create_inferior): Likewise.
1116 2007-06-13 Mike Frysinger <vapier@gentoo.org>
1118 * linux-low.c (linux_create_inferior): Change execv to execvp.
1119 * spu-low.c (spu_create_inferior): Likewies.
1121 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1123 * Makefile.in (clean): Clean new files instead of deleted ones.
1124 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
1125 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
1127 * configure.srv: Specify XML files and new regformats for MIPS and
1129 * linux-mips-low.c (mips_num_regs): Set to only used registers.
1130 (mips_regmap): Do not fetch $0. Remove unused registers. Add
1131 an entry for the restart register.
1132 (mips_cannot_fetch_register, mips_cannot_store_register)
1133 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
1134 register names to match the XML descriptions.
1135 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
1136 restart register instead of $0.
1138 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
1139 Markus Deuling <deuling@de.ibm.com>
1141 * remote-utils.c (decode_xfer_write): New function.
1142 * server.h (decode_xfer_write): Add prototype.
1143 * server.c (handle_query): Add PACKET_LEN argument. Support
1144 qXfer:spu:read and qXfer:spu:write packets.
1145 (main): Pass packet_len to handle_query.
1146 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
1147 * target.h (target_ops): Add qxfer_spu.
1149 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
1151 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
1152 accessing non-seekable spufs files.
1154 2007-05-16 Markus Deuling <deuling@de.ibm.com>
1156 * server.c (handle_query): Add reply for qC packet.
1158 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
1159 Leo Zayas <lerele@champenstudios@com>
1161 * server.h (check_remote_input_interrupt_request): New function.
1162 * remote_utils.c (INVALID_DESCRIPTOR): New define.
1163 (remote_desc): Initialize with INVALID_DESCRIPTOR.
1164 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
1165 (check_remote_input_interrupt_request): New function.
1166 * server.h (check_remote_input_interrupt_request): Declare.
1167 * win32-low.c (winapi_DebugBreakProcess,
1168 winapi_GenerateConsoleCtrlEvent): New typedefs.
1169 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
1171 (win32_wait): Check for remote interrupt request
1172 with check_remote_input_interrupt_request.
1173 (win32_request_interrupt): New function.
1174 (win32_target_op): Set request_interrupt to win32_request_interrupt.
1176 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
1178 * win32-low.c (debug_registers_changed,
1179 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
1180 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
1181 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
1182 (thread_rec): Get context using the low target.
1183 (child_add_thread): Call thread_added on the low target,
1184 which does the same thing.
1186 (do_initial_child_stuff): Remove debug registers references.
1187 Set context using the low target. Resume threads after
1188 setting the contexts.
1189 (child_continue): Remove dead variable. Remove debug
1190 registers references.
1191 (child_fetch_inferior_registers): Go through the low target.
1192 (do_child_store_inferior_registers): Remove.
1193 (child_store_inferior_registers): Go through the low target.
1194 (win32_resume): Remove debug registers references.
1195 Set context using the low target.
1196 (handle_exception): Change return type to void. Don't record
1197 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
1198 first chance exception.
1199 (get_child_debug_event): Change return type to void. Remove
1200 goto loop. Always return after waiting for debug event.
1201 (win32_wait): Convert to switch statement. Handle spurious
1204 * win32-i386-low.c (debug_registers_changed,
1205 debug_registers_used): New.
1206 (initial_stuff): Rename to ...
1207 (i386_initial_stuff): ... this. Clear debug registers
1209 (store_debug_registers): Delete.
1210 (i386_get_thread_context): New.
1211 (load_debug_registers): Delete.
1212 (i386_set_thread_context): New.
1213 (i386_thread_added): New.
1214 (single_step): Rename to ...
1215 (i386_single_step): ... this.
1216 (do_fetch_inferior_registers): Rename to ...
1217 (i386_fetch_inferior_register): ... this.
1218 (i386_store_inferior_register): New.
1219 (the_low_target): Adapt to new interface.
1221 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
1222 (arm_get_thread_context): New.
1223 (arm_set_thread_context): New.
1225 (do_fetch_inferior_registers): Rename to ...
1226 (arm_fetch_inferior_register): ... this.
1227 (arm_store_inferior_register): New.
1228 (arm_wince_breakpoint): Reimplement as unsigned long.
1229 (arm_wince_breakpoint_len): Define.
1230 (the_low_target): Adapt to new interface.
1232 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
1233 load_debug_registers. Add get_thread_context, set_thread_context,
1234 thread_added and store_inferior_register. Rename
1235 fetch_inferior_registers to fetch_inferior_register.
1236 (regptr): Remove declaration.
1238 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
1240 * linux-low.c (linux_detach): Change return type to int. Return 0.
1241 * spu-low.c (spu_detach): Likewise.
1243 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
1245 * target.h (target_ops): Change return type of detach to int.
1247 (join_inferior): New.
1248 * server.c (main): Don't skip detach support on mingw32.
1249 If the inferior doesn't support detaching return error.
1250 Call join_inferior instead of using waitpid.
1251 * linux-low.c (linux_join): New.
1252 (linux_target_op): Add linux_join.
1253 * spu-low.c (spu_join): New.
1254 (spu_target_ops): Add spu_join.
1255 * win32-low.c (win32_detach): Adapt to new interface.
1256 Reopen current_process_handle before detaching. Issue a child
1257 resume before detaching.
1259 (win32_target_op): Add win32_join.
1261 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
1263 * win32-low.c (win32-attach): Fix return value.
1264 * target.h (target_ops): Describe ATTACH return values.
1266 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
1268 * win32-low.c (GETPROCADDRESS): Define.
1269 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
1270 (winapi_DebugSetProcessKillOnExit): Likewise.
1271 (win32_create_inferior): Force usage of ansi CreateProcessA.
1272 (win32_attach): Use GETPROCADDRESS.
1273 (win32_detach): Likewise.
1275 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
1277 * win32-low.c (win32_wait): Don't use WSTOPSIG.
1279 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
1281 * win32-low.c: Commit leftover changes from 2007-03-29.
1283 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1285 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
1286 fields short instead of int. Add explicit padding.
1287 (i387_cache_to_fsave): Remove unnecessary casts.
1288 (i387_fsave_to_cache): Doc fix.
1289 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
1291 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1293 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
1294 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
1296 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
1298 * configure.srv (arm*-*-mingw32ce*): Move near the other
1301 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
1303 * configure.ac: Add errno checking.
1304 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
1305 sys/file.h and malloc.h.
1306 (AC_CHECK_DECLS): Add perror.
1307 (srv_mingwce): Handle.
1308 * configure.srv (i[34567]86-*-cygwin*): Add
1309 win32-i386-low.o to srv_tgtobj.
1310 (i[34567]86-*-mingw*): Likewise.
1311 (arm*-*-mingw32ce*): Add case.
1312 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
1313 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
1314 [__MINGW32CE__] (strerror): New function.
1315 [__MINGW32CE__] (errno): Define to GetLastError.
1316 [__MINGW32CE__] (COUNTOF): New macro.
1317 (remote_open): Remove extra close call.
1318 * mem-break.c (delete_breakpoint_at): New function.
1319 * mem-break.h (delete_breakpoint_at): Declare.
1320 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
1321 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
1322 [USE_WIN32API] (read, write): Add char* casts.
1323 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
1324 * server.h: Include wincecompat.h on Windows CE.
1325 [HAVE_ERRNO_H]: Check.
1326 (perror): Declare if not declared.
1327 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
1328 (perror_with_name): Remove errno declaration.
1329 * wincecompat.h: New.
1330 * wincecompat.c: New.
1332 * win32-arm-low.c: New.
1333 * win32-i386-low.c: New.
1334 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
1335 (OUTMSG2): Make it safe.
1337 (COUNTOF): New macro.
1338 (NUM_REGS): Get it from the low target.
1339 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
1340 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
1341 (thread_rec): Let low target handle debug registers.
1342 (child_add_thread): Likewise.
1343 (child_init_thread_list): Likewise.
1344 (continue_one_thread): Likewise.
1346 (do_child_fetch_inferior_registers): Move to ...
1347 * win32-i386-low.c: ... here, and rename to ...
1348 (do_fetch_inferior_registers): ... this.
1349 * win32-low.c (child_fetch_inferior_registers):
1350 Go through the low target.
1351 (do_child_store_inferior_registers): Use regptr.
1352 (strwinerror): New function.
1353 (win32_create_inferior): Handle Windows CE.
1354 Use strwinerror instead of strerror on Windows error
1355 codes. Add program to the error output.
1356 Don't close the main thread handle on Windows CE.
1357 (win32_attach): Use coredll.dll on Windows CE.
1358 (win32_kill): Close current process and current
1360 (win32_detach): Use coredll.dll on Windows CE.
1361 (win32_resume): Let low target handle debug registers, and
1363 (handle_exception): Add/Remove initial breakpoint. Avoid
1364 non-existant WSTOPSIG on Windows CE.
1365 (win32_read_inferior_memory): Cast to remove warning.
1366 (win32_arch_string): Go through the low target.
1367 (initialize_low): Call set_breakpoint_data with the low
1368 target's breakpoint.
1369 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
1370 FOP_REGNUM, mappings): Move to ...
1371 * win32-i386-low.c: ... here.
1372 * win32-low.c (win32_thread_info): Move to ...
1373 * win32-low.h: ... here.
1374 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
1375 win32-arm-low.c and wincecompat.c.
1376 (all:): Add $EXEEXT.
1377 (install-only:): Likewise.
1378 (gdbserver:): Likewise.
1379 (gdbreplay:): Likewise.
1380 * config.in: Regenerate.
1381 * configure: Regenerate.
1383 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
1385 * win32-low.c: Rename typedef thread_info to
1386 win32_thread_info throughout.
1388 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
1390 * win32-i386-low.c: Rename to ...
1391 * win32-low.c: ... this.
1392 * configure.srv: Replace win32-i386-low.o with win32-low.o.
1393 * Makefile.in: Likewise.
1395 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
1397 * remote-utils.c (monitor_output): Constify msg parameter.
1398 * server.h (monitor_output): Likewise.
1399 * win32-i386-low.c (handle_output_debug_string): New.
1400 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
1401 handle_output_debug_string.
1402 (get_child_debug_event): Likewise.
1404 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
1406 * server.c (main): Correct strtoul check.
1408 2007-03-27 Jon Ringle <jon@ringle.org>
1410 * linux-low.c: Check __ARCH_HAS_MMU__ also.
1412 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
1414 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
1416 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
1418 * terminal.h: Check HAVE_SGTTY_H.
1420 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
1422 * remote-utils.c (remote_open): Print out the assigned port number.
1424 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1426 * remote-utils.c (monitor_output): New function.
1427 * server.c (debug_threads): Define here.
1428 (monitor_show_help): New function.
1429 (handle_query): Handle qRcmd.
1430 (main): Do not handle 'd' packet.
1431 * server.h (debug_threads, remote_debug, monitor_output): Declare.
1432 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
1435 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
1437 * Makefile.in (EXEEXT): New.
1438 (clean): Use $(EXEEXT).
1440 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
1442 * target.h (target_ops): Rename send_signal to request_interrupt,
1443 and remove enum target_signal parameter.
1444 * linux-low.c (linux_request_interrupt): Rename from
1445 linux_send_signal, and always send SIGINT.
1446 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
1447 and always send SIGINT.
1448 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
1450 (input_interrupt): Likewise.
1452 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
1454 * server.c (get_features_xml): Check if target implemented
1456 * win32-i386-low.c (win32_arch_string): New.
1457 (win32_target_ops): Add win32_arch_string as arch_string member.
1459 2007-02-22 Markus Deuling <deuling@de.ibm.com>
1461 * spu-low.c (spu_arch_string): New.
1462 (spu_target_ops): Add spu_arch_string.
1464 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1466 * remote-utils.c: Remove HAVE_TERMINAL_H check.
1467 * configure.ac: Do not check for terminal.h.
1468 * configure, config.in: Regenerated.
1470 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1472 * Makefile.in (OBS): Add $(XML_BUILTIN).
1473 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
1475 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
1476 (arm-with-iwmmxt.c): New.
1477 * config.in, configure: Regenerate.
1478 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
1479 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
1480 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
1481 (arm*-*-linux*): Add iWMMXt and regset support.
1482 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
1483 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
1484 (arm_store_wmmxregset, target_regsets): New.
1485 * server.c (get_features_xml): Take annex argument. Check builtin
1487 (handle_query): Handle multiple annexes.
1489 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1491 * remote-utils.c [USE_WIN32API] (read, write): Define.
1492 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
1495 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1497 * linux-i386-low.c (the_low_target): Set arch_string.
1498 * linux-x86-64-low.c (the_low_target): Likewise.
1499 * linux-low.c (linux_arch_string): New.
1500 (linux_target_ops): Add it.
1501 * linux-low.h (struct linux_target_ops): Add arch_string.
1502 * server.c (write_qxfer_response): Use const void * for DATA.
1503 (get_features_xml): New.
1504 (handle_query): Handle qXfer:features:read. Report it for qSupported.
1505 * target.h (struct target_ops): Add arch_string method.
1507 2007-01-03 Denis Pilat <denis.pilat@st.com>
1508 Daniel Jacobowitz <dan@codesourcery.com>
1510 * linux-low.c (linux_kill): Handle being called with no threads.
1511 * win32-i386-low.c (win32_kill): Likewise.
1512 (get_child_debug_event): Clear current_process_handle.
1514 2006-12-30 Denis PILAT <denis.pilat@st.com>
1515 Daniel Jacobowitz <dan@codesourcery.com>
1517 * remote-utils.c (remote_open): Check the type of specified
1518 serial port devices before opening them.
1519 * server.c (main): Kill the inferior if an error occurs during
1520 the first remote_open.
1522 2006-12-05 Markus Deuling <deuling@de.ibm.com>
1524 * README: Update supported targets.
1526 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
1528 * Makefile.in (clean): Remove reg-mips64.c.
1529 (reg-mips64.c, reg-mips64.o): New rules.
1530 * configure.srv: Handle mips64. Include regset support for mips.
1531 * linux-mips-low.c (union mips_register): New.
1532 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
1533 (mips_breakpoint, mips_breakpoint_at): Use int.
1534 (mips_collect_register, mips_supply_register)
1535 (mips_collect_register_32bit, mips_supply_register_32bit)
1536 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
1537 (mips_store_fpregset, target_regsets): New.
1538 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
1540 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1542 * configure.srv: Add target "spu*-*-*".
1543 * Makefile.in (clean): Remove reg-spu.c.
1544 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
1545 * spu-low.c: New file.
1547 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
1549 * configure.ac: Correct td_thr_tls_get_addr test.
1550 * configure: Regenerated.
1552 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
1554 * linux-low.c (linux_wait_for_event): Reformat. Use the
1556 * remote-utils.c (decode_address_to_semicolon): New.
1557 * server.c (pass_signals, handle_general_set): New.
1558 (handle_query): Mention QPassSignals for qSupported.
1559 (main): Call handle_general_set.
1560 * server.h (pass_signals, decode_address_to_semicolon): New.
1562 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
1564 * server.c (handle_query): Correct error handling for read_auxv.
1566 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1568 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
1569 and srv_linux_thread_db to yes.
1570 * linux-s390-low.c (s390_fill_gregset): New function.
1571 (target_regsets): Define data structure.
1573 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
1575 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
1576 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
1577 * config.in, configure: Regenerated.
1578 * inferiors.c (gdb_id_to_thread): New function.
1579 (gdb_id_to_thread_id): Use it.
1580 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
1581 * linux-low.h (struct process_info): Add th member.
1582 (thread_db_get_tls_address): New prototype.
1583 * remote-utils.c (decode_address): Make non-static.
1584 * server.c (handle_query): Handle qGetTLSAddr.
1585 * server.h (gdb_id_to_thread, decode_address): New prototypes.
1586 * target.h (struct target_ops): Add get_tls_address.
1587 * thread-db.c (maybe_attach_thread): Save the thread handle.
1588 (thread_db_get_tls_address): New.
1590 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
1592 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
1593 (linux_resume_one_process): Take a siginfo_t *. Update all
1594 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
1595 (struct pending_signals): Add a siginfo_t.
1596 (linux_wait_for_process): Always set last_status.
1597 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
1598 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
1599 * linux-low.h (struct process_info): Add last_status.
1601 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
1603 * remote-utils.c (try_rle): New function.
1604 (putpkt_binary): Use it.
1606 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
1608 * Makefile.in (clean): Clean reg-x86-64-linux.c.
1609 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
1610 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
1611 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
1612 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
1615 2006-08-08 Richard Sandiford <richard@codesourcery.com>
1617 * server.c (terminal_fd): New variable.
1618 (old_foreground_pgrp): Likewise.
1619 (restore_old_foreground_pgrp): New function.
1620 (start_inferior): Record the terminal file descriptor in terminal_fd
1621 and its original foreground group in old_foreground_pgrp. Register
1622 restore_old_foreground_pgrp with atexit().
1624 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
1626 * server.c (handle_query): Correct qPart to qXfer.
1628 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
1630 * configure.ac: Check for more headers which are missing on
1631 Windows. Automatically supply -lwsock32 and USE_WIN32API.
1632 * configure.srv: Add Cygwin and mingw32.
1633 * remote-utils.c: Don't include headers unconditionally which
1634 are missing on mingw32. Include <winsock.h> for mingw32.
1635 (remote_open): Adjust for mingw32 support. Flush
1636 standard error after writing to it.
1637 (remote_close, putpkt_binary, input_interrupt, block_async_io)
1638 (unblock_async_io, enable_async_io, disable_async_io)
1639 (readchar, getpkt): Update for Winsock support.
1640 (prepare_resume_reply): Expect a protocol signal number.
1641 * server.c: Disable <sys/wait.h> on mingw32.
1642 (start_inferior): Adjust for mingw32 support. Flush
1643 standard error after writing to it.
1644 (attach_inferior): Likewise. Use protocol signal
1646 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
1648 * win32-i386-low.c: New file.
1649 * Makefile.in (XM_CLIBS): Set.
1650 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
1651 (win32-i386-low.o): New dependency rule.
1652 * linux-low.c (linux_wait): Use target signal numbers.
1653 * target.h (struct target_ops): Doc fix.
1654 * server.h (target_signal_to_name): New prototype.
1655 * gdbreplay.c: Don't include headers unconditionally which
1656 are missing on mingw32. Include <winsock.h> for mingw32.
1657 (remote_close, remote_open): Adjust for Winsock support.
1658 * configure, config.in: Regenerated.
1660 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1662 * server.c (decode_xfer_read, write_qxfer_response): New.
1663 (handle_query): Take a packet length argument. Handle
1664 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
1665 the qSupported response.
1666 (main): Update call to handle_query.
1668 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
1670 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
1671 (putpkt_binary): Renamed from putpkt and adjusted for binary
1673 (putpkt): New wrapper for putpkt_binary.
1674 (readchar): Don't mask off the high bit.
1675 (decode_X_packet): New function.
1676 * server.c (main): Call putpkt_binary if a handler sets the packet
1677 length. Save the length of the incoming packet. Handle 'X'.
1678 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
1680 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
1682 * server.c (handle_query): Handle qSupported.
1684 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
1686 * remote-utils.c (all_symbols_looked_up): New variable.
1687 (look_up_one_symbol): Check it.
1688 * server.h (look_up_one_symbol): New declaration.
1689 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
1691 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
1693 * Makefile.in (linux-arm-low.o): Update dependencies.
1694 * linux-arm-low.c: Include "gdb_proc_service.h".
1695 (PTRACE_GET_THREAD_AREA): Define.
1696 (ps_get_thread_area): New function.
1698 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
1700 * configure.srv (m68k*-*-uclinux*): New target.
1701 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
1702 (linux_resume_one_process): Remove extraneous cast.
1703 (linux_read_offsets): New.
1704 (linux_target_op): Add linux_read_offsets on mmuless systems.
1705 * server.c (handle_query): Add qOffsets logic.
1706 * target.h (struct target_ops): Add read_offsets.
1708 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1710 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
1711 (PTRACE_GET_THREAD_AREA): Define.
1712 (ps_get_thread_area): New function.
1713 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
1714 (linux-x86-64-low.o): Update.
1716 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1718 * configure.ac: Remove checks for prfpregset_t.
1719 * gdb_proc_service.h: New file.
1720 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
1721 new "gdb_proc_service.h".
1722 * proc-service.c: Likewise.
1723 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
1724 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
1725 * Makefile.in (gdb_proc_service_h): Updated.
1726 * configure, config.in: Regenerated.
1728 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
1730 * remote-utils.c (prepare_resume_reply): Move declaration
1731 of gdb_id_from_wait to the top of the block.
1733 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
1735 * linux-low.c (regsets_store_inferior_registers): Read the regset
1736 from the target before filling it.
1738 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1740 * server.c (attach_inferior): Return SIGTRAP for a successful
1743 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1745 * Makefile.in (OBS): Add version.o.
1746 (STAGESTUFF): Delete.
1747 (version.o): Add dependencies.
1748 (version.c): Replace rule.
1749 (clean): Remove version.c.
1750 * server.c (gdbserver_version): New.
1751 (gdbserver_usage): Use printf.
1752 (main): Handle --version and --help.
1753 * server.h (version, host_name): Add declarations.
1755 2005-12-23 Eli Zaretskii <eliz@gnu.org>
1767 * linux-x86-64-low.c:
1770 * linux-ppc64-low.c:
1779 * linux-crisv32-low.c:
1791 * gdbserver.1: Add (C) after Copyright. Update the FSF
1794 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1796 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
1797 (arm_breakpoint_at): Recognize both breakpoints.
1798 (the_low_target): Use the correct breakpoint instruction.
1800 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
1802 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
1803 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
1804 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
1805 (the_low_target): Update.
1807 2005-10-25 Andreas Schwab <schwab@suse.de>
1809 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
1811 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
1812 (ia64_num_regs): Reduce to 462.
1814 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
1816 * acinclude.m4: Correct quoting.
1817 * aclocal.m4: Regenerated.
1819 Suggested by SZOKOVACS Robert <szo@ies.hu>:
1820 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
1821 (thread_db_init): Call thread_db_err_str.
1822 * configure.ac: Check for TD_VERSION.
1823 * config.in, configure: Regenerated.
1825 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1827 * server.h (error, fatal, warning): Add ATTR_FORMAT.
1829 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
1831 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
1832 is not available. Define HAVE_PTRACE_GETREGS if it is.
1833 * config.in, configure: Regenerated.
1834 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
1835 * linux-i386-low.c, linux-m68k-low.c: Update to use
1836 HAVE_PTRACE_GETREGS.
1837 * linux-low.c (regsets_fetch_inferior_registers)
1838 (regsets_store_inferior_registers): Only return 0 if we processed
1840 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
1841 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
1843 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
1845 * inferiors.c (struct thread_info): Add gdb_id.
1846 (add_thread): Add gdb_id argument.
1847 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
1848 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
1849 calls to add_thread.
1850 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
1851 * server.c (handle_query): Use thread_to_gdb_id.
1852 (handle_v_cont, main): Use gdb_id_to_thread_id.
1853 * server.h (add_thread): Update prototype.
1854 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
1857 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
1859 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
1860 left-padded registers.
1861 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
1862 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
1864 2005-07-01 Steve Ellcey <sje@cup.hp.com>
1866 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
1867 * configure: Regenerate.
1868 * config.in: Regenerate.
1869 * server.h (NEED_DECLARATION_STRERROR):
1870 Replace with !HAVE_DECL_STRERROR.
1872 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
1874 * linux-low.c (linux_wait, linux_send_signal): Don't test
1875 an unsigned long variable for > 0 if it could be MAX_ULONG.
1876 * server.c (myresume): Likewise.
1877 * target.c (set_desired_inferior): Likewise.
1879 2005-06-13 Mark Kettenis <kettenis@gnu.org>
1881 * configure.ac: Simplify and improve check for socklen_t.
1882 * configure, config.in: Regenerate.
1884 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
1886 * acconfig.h: Remove.
1887 * configure.ac: Add a test for socklen_t. Use three-argument
1888 AC_DEFINE throughout.
1889 * config.in: Regenerated using autoheader 2.59.
1890 * configure: Regenerated.
1892 * gdbreplay.c (socklen_t): Provide a default.
1893 (remote_open): Use socklen_t.
1894 * remote-utils.c (socklen_t): Provide a default.
1895 (remote_open): Use socklen_t.
1896 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
1899 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
1901 * linux-low.c (linux_read_memory, linux_write_memory)
1902 (linux_read_auxv): Likewise.
1903 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
1904 (check_mem_write): Likewise.
1905 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
1907 * regcache.c (struct inferior_rgcache_data, registers_to_string)
1908 (registers_from_string, register_data): Likewise.
1909 * server.c (handle_query, main): Likewise.
1910 * server.h (convert_ascii_to_int, convert_int_to_ascii)
1911 (decode_M_packet): Likewise.
1912 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
1913 * target.h (struct target_ops): Update read_memory, write_memory,
1915 (read_inferior_memory, write_inferior_memory): Update.
1916 * linux-low.h (struct linux_target_ops): Change type of breakpoint
1918 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
1919 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
1920 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
1921 linux-s390-low.c, linux-sh-low.c: Update for changes in
1922 read_inferior_memory and the_low_target->breakpoint.
1924 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
1926 * Makefile.in (SFILES): Add linux-ppc64-low.c.
1927 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
1928 * configure.srv: Add powerpc64-*-linux*.
1929 * linux-ppc64-low.c: New file.
1931 2005-05-23 Orjan Friberg <orjanf@axis.com>
1933 * linux-cris-low.c: New file with support for CRIS.
1934 * linux-crisv32-low.c: Ditto for CRISv32.
1935 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
1936 (clean): Add reg-cris.c and reg-crisv32.c.
1937 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
1938 reg-crisv32.o, and reg-crisv32.c to make rules.
1939 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
1942 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1944 * linux-low.c (fetch_register): Ensure buffer size is a multiple
1945 of sizeof (PTRACE_XFER_TYPE).
1946 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
1948 2005-05-12 Orjan Friberg <orjanf@axis.com>
1950 * target.h (struct target_ops): Add insert_watchpoint,
1951 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
1952 pointers for hardware watchpoint support.
1953 * linux-low.h (struct linux_target_ops): Ditto.
1954 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
1955 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
1956 to linux_target_ops.
1957 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
1959 * server.c (main): Recognize 'Z' and 'z' packets.
1961 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
1963 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
1964 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
1965 (the_low_target): Add new members.
1967 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
1969 * proc-service.c (ps_lgetregs): Search all_processes instead of
1972 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
1974 * server.c (start_inferior): Change return type to int.
1975 (attach_inferior): Change sigptr to int *.
1976 (handle_v_cont, handle_v_requests): Change signal to int *.
1977 (main): Change signal to int.
1979 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
1981 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
1982 * configure.srv: Add m32r*-*-linux*.
1983 * linux-m32r-low.c: New file.
1985 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
1987 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
1989 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
1991 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
1992 Take unsigned long arguments for PIDs.
1993 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
1994 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
1995 (wait_for_sigstop, linux_resume_one_process)
1996 (regsets_fetch_inferior_registers, linux_send_signal)
1997 (linux_read_auxv): Likewise. Update the types of variables holding
1998 PIDs. Update format string specifiers.
1999 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
2000 * remote-utils.c (prepare_resume_reply): Likewise.
2001 * server.c (cont_thread, general_thread, step_thread)
2002 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
2004 (handle_query): Update format specifiers.
2005 (handle_v_cont, main): Use strtoul for thread IDs.
2006 * server.h (struct inferior_list_entry): Use unsigned long for ID.
2007 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
2008 (general_thread, step_thread, thread_from_wait)
2009 (old_thread_from_wait): Update.
2010 * target.h (struct thread_resume): Use unsigned long for THREAD.
2011 (struct target_ops): Use unsigned long for arguments to attach and
2014 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
2016 * acinclude.m4: Include bfd/bfd.m4 directly.
2017 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
2018 <agriffis@toolchain.org>.
2019 * aclocal.m4, configure: Regenerated.
2021 2005-01-07 Andrew Cagney <cagney@gnu.org>
2023 * configure.ac: Rename configure.in, require autoconf 2.59.
2024 * configure: Re-generate.
2026 2004-12-08 Daniel Jacobowitz <dan@debian.org>
2028 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
2030 * aclocal.m4: Regenerated.
2031 * configure: Regenerated.
2033 2004-11-21 Andreas Schwab <schwab@suse.de>
2035 * linux-m68k-low.c (m68k_num_gregs): Define.
2036 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
2037 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
2038 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
2039 (m68k_breakpoint_at): New. Add to the_low_target.
2041 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
2042 srv_linux_thread_db to yes.
2044 2004-10-20 Joel Brobecker <brobecker@gnat.com>
2046 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
2047 (ARCH_SET_FS): Likewise.
2048 (ARCH_GET_FS): Likewise.
2049 (ARCH_GET_GS): Likewise.
2051 2004-10-16 Daniel Jacobowitz <dan@debian.org>
2053 * linux-i386-low.c (ps_get_thread_area): New.
2054 * linux-x86-64-low.c (ps_get_thread_area): New.
2055 * linux-low.c: Include <sys/syscall.h>.
2056 (linux_kill_one_process): Don't kill the first thread here.
2057 (linux_kill): Kill the first thread here.
2058 (kill_lwp): New function.
2059 (send_sigstop, linux_send_signal): Use it.
2060 * proc-service.c: Clean up #ifdefs.
2061 (fpregset_info): Delete.
2062 (ps_lgetregs): Update and enable implementation.
2063 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
2065 * remote-utils.c (struct sym_cache, symbol_cache): New.
2066 (input_interrupt): Print a clearer message.
2067 (async_io_enabled): New variable.
2068 (enable_async_io, disable_async_io): Use it. Update comments.
2069 (look_up_one_symbol): Use the symbol cache.
2070 * thread-db.c (thread_db_look_up_symbols): New function.
2071 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
2073 2004-10-16 Daniel Jacobowitz <dan@debian.org>
2075 * configure.in: Test for -rdynamic.
2076 * configure: Regenerated.
2077 * Makefile (INTERNAL_LDFLAGS): New.
2078 (gdbserver, gdbreplay): Use it.
2080 2004-09-02 Andrew Cagney <cagney@gnu.org>
2082 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
2084 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
2086 * linux-low.c (linux_wait): Clear all_processes list also.
2088 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
2090 * linux-low.c: Include <errno.h>. Remove extern declaration of
2093 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
2095 * gdbreplay.c, server.h, utils.c: Update copyright years.
2097 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
2099 * server.c (main): Print child status or termination signal from
2100 variable 'signal', not 'sig'.
2102 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
2104 * linux-low.c (linux_read_memory): Change return type to
2105 int. Check for and return error from ptrace().
2106 * target.c (read_inferior_memory): Change return type to int. Pass
2107 back return status from the_target->read_memory().
2108 * target.h (struct target_ops): Adapt *read_memory() prototype.
2110 (read_inferior_memory): Adapt prototype.
2111 * server.c (main): Return an error packet if
2112 read_inferior_memory() returns an error.
2114 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
2116 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
2117 Unify with other clean targets.
2119 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
2121 * server.c (handle_v_cont): Call set_desired_inferior.
2123 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
2125 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
2127 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
2129 * linux-low.c (linux_wait): Unblock async I/O.
2130 (linux_resume): Block and enable async I/O.
2131 * remote-utils.c (block_async_io, unblock_async_io): New functions.
2132 * server.h (block_async_io, unblock_async_io): Add prototypes.
2134 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
2136 * remote-utils.c (remote_open): Print a status notice after
2138 * server.c (attach_inferior): Print a status notice after
2141 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
2143 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
2145 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
2147 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
2149 * server.c, target.h: Update copyright years.
2151 2004-02-25 Roland McGrath <roland@redhat.com>
2153 * target.h (struct target_ops): New member `read_auxv'.
2154 * server.c (handle_query): Handle qPart:auxv:read: query using that.
2155 * linux-low.c (linux_read_auxv): New function.
2156 (linux_target_ops): Initialize `read_auxv' member to that.
2158 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2160 Committed by Jim Blandy <jimb@redhat.com>.
2162 * linux-s390-low.c (s390_num_regs): Update.
2163 (s390_regmap): Remove control registers. Use __s390x__ predefine
2164 instead of GPR_SIZE to distiguish s390 and s390x targets.
2166 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
2168 * linux-low.c: Update copyright year.
2169 (check_removed_breakpoint): Clear pending_is_breakpoint.
2170 (linux_set_resume_request, linux_queue_one_thread)
2171 (resume_status_pending_p): New functions.
2172 (linux_continue_one_thread): Use process->resume.
2173 (linux_resume): Only resume threads if there are no pending events.
2174 * linux-low.h (struct process_info): Add resume request
2177 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
2179 * regcache.c (new_register_cache): Clear the allocated register
2180 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2182 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
2184 * linux-low.c (linux_resume): Take a struct thread_resume *
2186 (linux_wait): Update call.
2187 (resume_ptr): New static variable.
2188 (linux_continue_one_thread): Renamed from
2189 linux_continue_one_process. Use resume_ptr.
2190 (linux_resume): Use linux_continue_one_thread.
2191 * server.c (handle_v_cont, handle_v_requests): New functions.
2192 (myresume): New function.
2193 (main): Handle 'v' case.
2194 * target.h (struct thread_resume): New type.
2195 (struct target_ops): Change argument of "resume" to struct
2197 (myresume): Delete macro.
2199 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2201 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
2202 (uninstall): Support DESTDIR.
2204 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
2206 * configure.srv: Add xscale*linux copy of arm*linux entry.
2208 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
2210 * linux-arm-low.c (arm_reinsert_addr): New function.
2211 (the_low_target): Add arm_reinsert_addr.
2213 2003-07-08 Mark Kettenis <kettenis@gnu.org>
2215 * mem-break.c: Remove whitespace at end of file.
2217 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2219 * configure.in: Check whether we need to prototype strerror.
2220 * server.h: Optionally prototype strerror.
2221 * gdbreplay.c (perror_with_name): Use strerror.
2222 * linux-low.c (linux_attach_lwp): Use strerror.
2223 * utils.c (perror_with_name): Use strerror.
2224 * config.in, configure: Regenerated.
2226 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2228 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
2229 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
2231 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2233 * Makefile.in (SFILES): Update.
2234 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
2235 low-sun3.c: Remove files.
2237 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2239 * linux-low.c: Move comment to linux_thread_alive where it belonged.
2240 (linux_detach_one_process, linux_detach): New functions.
2241 (linux_target_ops): Add linux_detach.
2242 * server.c (main): Handle 'D' packet.
2243 * target.h (struct target_ops): Add "detach" member.
2244 (detach_inferior): Define.
2246 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2248 From Kelley Cook <kelleycook@wideopenwest.com>:
2249 * configure.srv: Accept i[34567]86 variants.
2251 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
2253 * linux-low.c (linux_wait_for_event): Correct comment typos.
2254 (linux_resume_one_process): Call check_removed_breakpoint.
2255 (linux_send_signal): New function.
2256 (linux_target_ops): Add linux_send_signal.
2257 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
2259 * target.h (struct target_ops): Add send_signal.
2261 2003-05-29 Jim Blandy <jimb@redhat.com>
2263 * linux-low.c (usr_store_inferior_registers): Transfer buf in
2264 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
2265 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
2266 away part of the register's value.
2268 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
2270 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
2271 (linux_wait_for_event, linux_init_signals): Likewise.
2273 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
2275 * configure.in: Check for stdlib.h.
2276 * configure: Regenerated.
2277 * config.in: Regenerated.
2279 2003-01-04 Andreas Schwab <schwab@suse.de>
2281 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
2283 2003-01-02 Andrew Cagney <ac131313@redhat.com>
2285 * Makefile.in: Remove obsolete code.
2287 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
2289 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
2290 defined(PT_FPR0_HI).
2292 2002-11-17 Stuart Hughes <seh@zee2.com>
2294 * linux-arm-low.c (arm_num_regs): Increase.
2295 (arm_regmap): Include status register.
2297 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
2299 * linux-low.c (register_addr): Remove incorrect -1 check.
2301 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
2303 * linux-low.c (linux_create_inferior): Call setpgid. Return
2305 (unstopped_p, linux_signal_pid): Remove.
2306 (linux_target_ops): Remove linux_signal_pid.
2307 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
2308 global instead of target method.
2309 * target.h (struct target_ops): Remove signal_pid. Update comment
2310 for create_inferior.
2311 * server.c (signal_pid): New variable.
2312 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
2313 gdbserver. Set the child to be the foreground process group.
2314 (attach_inferior): Set signal_pid.
2316 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2318 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
2320 2002-08-20 Jim Blandy <jimb@redhat.com>
2322 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2325 2002-08-01 Andrew Cagney <cagney@redhat.com>
2327 * Makefile.in: Make chill references obsolete.
2329 2002-07-24 Kevin Buettner <kevinb@redhat.com>
2331 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
2332 * configure: Regenerate.
2333 * config.in: Regenerate.
2335 2002-07-09 David O'Brien <obrien@FreeBSD.org>
2337 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
2338 (perror_with_name, remote_close, remote_open, expect, play): Static.
2340 2002-07-04 Michal Ludvig <mludvig@suse.cz>
2342 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
2343 byte offsets instead of an array of indexes.
2344 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
2346 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2348 * regcache.c: Add comment.
2350 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
2352 * thread-db.c: New file.
2353 * proc-service.c: New file.
2354 * acinclude.m4: New file.
2355 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
2356 proc-service.o, and thread-db.o.
2357 (linux-low.o): Add USE_THREAD_DB.
2358 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
2359 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
2360 * aclocal.m4: Regenerated.
2361 * config.in: Regenerated.
2362 * configure: Regenerated.
2363 * configure.in: Check for proc_service.h, sys/procfs.h,
2364 thread_db.h, and linux/elf.h headrs.
2365 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
2366 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
2367 Check for -lthread_db and thread support.
2368 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
2369 PowerPC, and SuperH.
2370 * i387-fp.c: Constify arguments.
2371 * i387-fp.h: Likewise.
2372 * inferiors.c: (struct thread_info): Renamed from
2373 `struct inferior_info'. Remove PID member. Use generic inferior
2374 list header. All uses updated.
2375 (inferiors, signal_pid): Removed.
2376 (all_threads): New variable.
2377 (get_thread): Define.
2378 (add_inferior_to_list): New function.
2379 (for_each_inferior): New function.
2380 (change_inferior_id): New function.
2381 (add_inferior): Removed.
2382 (remove_inferior): New function.
2383 (add_thread): New function.
2384 (free_one_thread): New function.
2385 (remove_thread): New function.
2386 (clear_inferiors): Use for_each_inferior and free_one_thread.
2387 (find_inferior): New function.
2388 (find_inferior_id): New function.
2389 (inferior_target_data): Update argument type.
2390 (set_inferior_target_data): Likewise.
2391 (inferior_regcache_data): Likewise.
2392 (set_inferior_regcache_data): Likewise.
2393 * linux-low.c (linux_bp_reinsert): Remove.
2394 (all_processes, stopping_threads, using_thrads)
2395 (struct pending_signals, debug_threads, pid_of): New.
2396 (inferior_pid): Replace with macro.
2397 (struct inferior_linux_data): Remove.
2398 (get_stop_pc, add_process): New functions.
2399 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
2400 Use add_process and add_thread.
2401 (linux_attach_lwp): New function, based on old linux_attach. Use
2402 add_process and add_thread. Set stop_expected for new threads.
2403 (linux_attach): New function.
2404 (linux_kill_one_process): New function.
2405 (linux_kill): Kill all LWPs.
2406 (linux_thread_alive): Use find_inferior_id.
2407 (check_removed_breakpoints, status_pending_p): New functions.
2408 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
2409 Update. Use WNOHANG. Wait for cloned processes also. Update process
2410 struct for the found process.
2411 (linux_wait_for_event): New function.
2412 (linux_wait): Use it. Support LWPs.
2413 (send_sigstop, wait_for_sigstop, stop_all_processes)
2414 (linux_resume_one_process, linux_continue_one_process): New functions.
2415 (linux_resume): Support LWPs.
2416 (REGISTER_RAW_SIZE): Remove.
2417 (fetch_register): Use register_size instead. Call supply_register.
2418 (usr_store_inferior_registers): Likewise. Call collect_register.
2420 (regsets_fetch_inferior_registers): Improve error message.
2421 (regsets_store_inferior_registers): Add debugging.
2422 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
2423 (unstopped_p, linux_signal_pid): New functions.
2424 (linux_target_ops): Add linux_signal_pid.
2425 (linux_init_signals): New function.
2426 (initialize_low): Call it. Initialize using_threads.
2427 * regcache.c (inferior_regcache_data): Add valid
2429 (get_regcache): Fetch registers lazily. Add fetch argument
2430 and update all callers.
2431 (regcache_invalidate_one, regcache_invalidate): New
2433 (new_register_cache): Renamed from create_register_cache.
2434 Return the new regcache.
2435 (free_register_cache): Change argument to a void *.
2436 (registers_to_string, registers_from_string): Call get_regcache
2437 with fetch flag set.
2438 (register_data): Make static. Pass fetch flag to get_regcache.
2439 (supply_register): Call get_regcache with fetch flag clear.
2440 (collect_register): Call get_regcache with fetch flag set.
2441 (collect_register_as_string): New function.
2442 * regcache.h: Update.
2443 * remote-utils.c (putpkt): Flush after debug output and use
2445 Handle input interrupts while waiting for an ACK.
2446 (input_interrupt): Use signal_pid method.
2447 (getpkt): Flush after debug output and use stderr.
2448 (outreg): Use collect_register_as_string.
2449 (new_thread_notify, dead_thread_notify): New functions.
2450 (prepare_resume_reply): Check using_threads. Set thread_from_wait
2452 (look_up_one_symbol): Flush after debug output.
2453 * server.c (step_thread, server_waiting): New variables.
2454 (start_inferior): Don't use signal_pid. Update call to mywait.
2455 (attach_inferior): Update call to mywait.
2456 (handle_query): Handle qfThreadInfo and qsThreadInfo.
2457 (main): Don't fetch/store registers explicitly. Use
2458 set_desired_inferior. Support proposed ``Hs'' packet. Update
2461 (struct inferior_list, struct_inferior_list_entry): New.
2462 * target.c (set_desired_inferior): New.
2463 (write_inferior_memory): Constify.
2464 (mywait): New function.
2466 (struct target_ops): New signal_pid method.
2467 (mywait): Removed macro, added prototype.
2469 * linux-low.h (regset_func): Removed.
2470 (regset_fill_func, regset_store_func): New.
2471 (enum regset_type): New.
2472 (struct regset_info): Add type field. Use new operation types.
2473 (struct linux_target_ops): stop_pc renamed to get_pc.
2474 Add decr_pc_after_break and breakpoint_at.
2475 (get_process, get_thread_proess, get_process_thread)
2476 (strut process_info, all_processes, linux_attach_lwp)
2477 (thread_db_init): New.
2479 * linux-arm-low.c (arm_get_pc, arm_set_pc,
2480 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
2481 (the_low_target): Add new members.
2482 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
2483 (i386_store_fpxregset): Constify.
2484 (target_regsets): Add new kind identifier.
2485 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
2486 (i386_set_pc): Add debugging.
2487 (i386_breakpoint_at): New function.
2488 (the_low_target): Add new members.
2489 * linux-mips-low.c (mips_get_pc, mips_set_pc)
2490 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
2491 (mips_breakpoint_at): New.
2492 (the_low_target): Add new members.
2493 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
2494 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
2495 (the_low_target): Add new members.
2496 * linux-sh-low.c (sh_get_pc, sh_set_pc)
2497 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
2498 (the_low_target): Add new members.
2499 * linux-x86-64-low.c (target_regsets): Add new kind
2502 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
2504 From Martin Pool <mbp@samba.org>:
2505 * server.c (gdbserver_usage): New function.
2508 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
2510 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
2513 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2515 * Makefile.in: Remove obsolete code.
2517 2002-04-24 Michal Ludvig <mludvig@suse.cz>
2519 * linux-low.c (regsets_fetch_inferior_registers),
2520 (regsets_store_inferior_registers): Removed cast to int from
2522 * regcache.h: Added declaration of struct inferior_info.
2524 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
2526 * inferiors.c (struct inferior_info): Add regcache_data.
2527 (add_inferior): Call create_register_cache.
2528 (clear_inferiors): Call free_register_cache.
2529 (inferior_regcache_data, set_inferior_regcache_data): New functions.
2530 * regcache.c (struct inferior_regcache_data): New.
2531 (registers): Remove.
2532 (get_regcache): New function.
2533 (create_register_cache, free_register_cache): New functions.
2534 (set_register_cache): Don't initialize the register cache here.
2535 (registers_to_string, registers_from_string, register_data): Call
2537 * regcache.h: Add prototypes.
2538 * server.h: Likewise.
2540 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
2542 * mem-break.c: New file.
2543 * mem-break.h: New file.
2544 * Makefile.in: Add mem-break.o rule; update server.h
2546 * inferiors.c (struct inferior_info): Add target_data
2548 (clear_inferiors): Free target_data member if set.
2549 (inferior_target_data, set_inferior_target_data): New functions.
2550 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
2551 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
2552 * linux-low.c (linux_bp_reinsert): New variable.
2553 (struct inferior_linux_data): New.
2554 (linux_create_inferior): Use set_inferior_target_data.
2555 (linux_attach): Likewise. Call add_inferior.
2556 (linux_wait_for_one_inferior): New function.
2557 (linux_wait): Call it.
2558 (linux_write_memory): Add const.
2559 (initialize_low): Call set_breakpoint_data.
2560 * linux-low.h (struct linux_target_ops): Add breakpoint
2562 * server.c (attach_inferior): Remove extra add_inferior
2564 * server.h: Include mem-break.h. Update inferior.c
2566 * target.c (read_inferior_memory)
2567 (write_inferior_memory): New functions.
2568 * target.h (read_inferior_memory)
2569 (write_inferior_memory): Change macros to prototypes.
2570 (struct target_ops): Update comments. Add const to write_memory
2573 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
2575 * linux-low.c (usr_store_inferior_registers): Support
2576 registers which are allowed to fail to store.
2577 * linux-low.h (linux_target_ops): Likewise.
2578 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
2579 (ppc_cannot_store_register): FPSCR may not be storable.
2581 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2583 * server.h: Include <string.h> if HAVE_STRING_H.
2584 * ChangeLog: Correct paths in last ChangeLog entry.
2586 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2588 * linux-low.h: Remove obsolete prototypes.
2589 (struct linux_target_ops): New.
2590 (extern the_low_target): New.
2591 * linux-low.c (num_regs, regmap): Remove declarations.
2592 (register_addr): Use the_low_target explicitly.
2593 (fetch_register): Likewise.
2594 (usr_fetch_inferior_registers): Likewise.
2595 (usr_store_inferior_registers): Likewise.
2596 * linux-arm-low.c (num_regs): Remove.
2597 (arm_num_regs): Define.
2598 (arm_regmap): Renamed from regmap, made static.
2599 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
2601 (arm_cannot_store_register): Renamed from cannot_store_register,
2603 (the_low_target): New.
2604 * linux-i386-low.c (num_regs): Remove.
2605 (i386_num_regs): Define.
2606 (i386_regmap): Renamed from regmap, made static.
2607 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
2609 (i386_cannot_store_register): Renamed from cannot_store_register,
2611 (the_low_target): New.
2612 * linux-ia64-low.c (num_regs): Remove.
2613 (ia64_num_regs): Define.
2614 (ia64_regmap): Renamed from regmap, made static.
2615 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
2617 (ia64_cannot_store_register): Renamed from cannot_store_register,
2619 (the_low_target): New.
2620 * linux-m68k-low.c (num_regs): Remove.
2621 (m68k_num_regs): Define.
2622 (m68k_regmap): Renamed from regmap, made static.
2623 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
2625 (m68k_cannot_store_register): Renamed from cannot_store_register,
2627 (the_low_target): New.
2628 * linux-mips-low.c (num_regs): Remove.
2629 (mips_num_regs): Define.
2630 (mips_regmap): Renamed from regmap, made static.
2631 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
2633 (mips_cannot_store_register): Renamed from cannot_store_register,
2635 (the_low_target): New.
2636 * linux-ppc-low.c (num_regs): Remove.
2637 (ppc_num_regs): Define.
2638 (ppc_regmap): Renamed from regmap, made static.
2639 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
2641 (ppc_cannot_store_register): Renamed from cannot_store_register,
2643 (the_low_target): New.
2644 * linux-s390-low.c (num_regs): Remove.
2645 (s390_num_regs): Define.
2646 (s390_regmap): Renamed from regmap, made static.
2647 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
2649 (s390_cannot_store_register): Renamed from cannot_store_register,
2651 (the_low_target): New.
2652 * linux-sh-low.c (num_regs): Remove.
2653 (sh_num_regs): Define.
2654 (sh_regmap): Renamed from regmap, made static.
2655 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
2657 (sh_cannot_store_register): Renamed from cannot_store_register,
2659 (the_low_target): New.
2660 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2661 (the_low_target): New.
2663 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2665 * Makefile.in: Add stamp-h target.
2666 * configure.in: Create stamp-h.
2667 * configure: Regenerated.
2669 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2671 * inferiors.c: New file.
2672 * target.c: New file.
2673 * target.h: New file.
2674 * Makefile.in: Add target.o and inferiors.o. Update
2676 * linux-low.c (inferior_pid): New static variable,
2677 moved from server.c.
2678 (linux_create_inferior): Renamed from create_inferior.
2679 Call add_inferior. Return 0 on success instead of a PID.
2680 (linux_attach): Renamed from myattach.
2681 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
2682 (linux_thread_alive): Renamed from mythread_alive.
2683 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
2685 (linux_resume): Renamed from myresume. Add missing ``return 0''.
2686 (regsets_store_inferior_registers): Correct error message.
2687 Add missing ``return 0''.
2688 (linux_fetch_registers): Renamed from fetch_inferior_registers.
2689 (linux_store_registers): Renamed from store_inferior_registers.
2690 (linux_read_memory): Renamed from read_inferior_memory.
2691 (linux_write_memory): Renamed from write_inferior_memory.
2692 (linux_target_ops): New structure.
2693 (initialize_low): Call set_target_ops ().
2694 * remote-utils.c (unhexify): New function.
2695 (hexify): New function.
2696 (input_interrupt): Send signals to ``signal_pid''.
2697 * server.c (inferior_pid): Remove.
2698 (start_inferior): Update create_inferior call.
2699 (attach_inferior): Call add_inferior.
2700 (handle_query): New function.
2701 (main): Call handle_query for `q' packets.
2702 * server.h: Include "target.h". Remove obsolete prototypes.
2703 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
2705 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2707 * Makefile.in: Add WARN_CFLAGS. Update configury
2709 * configure.in: Check for <string.h>
2710 * configure: Regenerate.
2711 * config.in: Regenerate.
2712 * gdbreplay.c: Include needed system headers.
2713 (remote_open): Remove strchr prototype.
2714 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
2715 * regcache.c (supply_register): Change buf argument to const void *.
2716 (supply_register_by_name): Likewise.
2717 (collect_register): Change buf argument to void *.
2718 (collect_register_by_name): Likewise.
2719 * regcache.h: Add missing prototypes.
2720 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
2721 * server.c (handle_query): New function.
2722 (attached): New static variable, moved out of main.
2723 (main): Quiet longjmp clobber warnings.
2724 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
2725 * utils.c (error): Remove NORETURN.