]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/gdbserver/ChangeLog
2008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
[thirdparty/binutils-gdb.git] / gdb / gdbserver / ChangeLog
CommitLineData
ec56be1b
PA
12008-07-31 Rolf Jansen <rj@surtec.com>
2 Pedro Alves <pedro@codesourcery.com>
3
4 * configure.ac: Check for memmem declaration.
5 * server.c [HAVE_MALLOC_H]: Include malloc.h.
6 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
7 (disable_packet_qfThreadInfo): Unconditionally compile.
8 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
9 * configure, config.in: Regenerate.
10
2fe5e3ff
DE
112008-07-28 Doug Kwan <dougkwan@google.com>
12
13 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
14 (linux_write_memory): Remove declaration of errno.
15
836acd6d
UW
162008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
17
18 * linux-low.c (handle_extended_wait): Do not use "status"
19 variable uninitialized.
20
aeba519e
PA
212008-07-07 Pedro Alves <pedro@codesourcery.com>
22
23 * server.c (handle_v_attach): Inhibit reporting dll changes.
24
db42f210
PA
252008-06-27 Pedro Alves <pedro@codesourcery.com>
26
27 * remote-utils.c (prepare_resume_reply): If requested, don't
28 output "thread:TID" in the T stop reply.
29
30 * server.c (disable_packet_vCont, disable_packet_Tthread)
31 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
32 (handle_query): If requested, disable support for qC, qfThreadInfo
33 and qsThreadInfo.
34 (handle_v_requests): If requested, disable support for vCont.
35 (gdbserver_show_disableable): New.
36 (main): Handle --disable-packet and --disable-packet=LIST.
37
38 * server.h (disable_packet_vCont, disable_packet_Tthread)
39 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
40
8e4c5421
CD
412008-06-20 Carlos O'Donell <carlos@codesourcery.com>
42
43 * server.c (gdbserver_usage): Mention --version.
44
6e23a804
DJ
452008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
46
47 * Makefile.in (gdbreplay.o): New rule.
48
90aa6a40
JM
492008-06-06 Joseph Myers <joseph@codesourcery.com>
50
51 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
52 message, not gdbserver.
53
c16158bc
JM
542008-06-05 Vladimir Prus <vladimir@codesourcery.com>
55 Nathan Sidwell <nathan@codesourcery.com>
56 Joseph Myers <joseph@codesourcery.com>
57
58 * acinclude.m4: Include ../../config/acx.m4.
59 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
60 * configure, config.in: Regenerate.
61 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
62 * server.c (gdbserver_version): Print PKGVERSION.
63 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
64 (main): Adjust gdbserver_usage calls.
65 * gdbreplay.c (version, host_name): Add declarations.
66 (gdbreplay_version, gdbreplay_usage): New.
67 (main): Accept --version and --help options.
68
aeb75bf5
DJ
692008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
70
71 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
72 (arm_breakpoint_at): Handle Thumb.
73 (the_low_target): Add comment.
74
76b233dd
UW
752008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
76
77 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
78
08388c79
DE
792008-05-09 Doug Evans <dje@google.com>
80
a3c83fae
DE
81 * server.h (decode_search_memory_packet): Declare.
82 * remote-utils.c (decode_search_memory_packet): New fn.
83 * server.c (handle_search_memory_1): New fn.
08388c79
DE
84 (handle_search_memory): New fn.
85 (handle_query): Process qSearch:memory packets.
86
bb9c3d36
UW
872008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
88
89 * regcache.c (registers_length): Remove.
90 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
91 full register packet.
92 * regcache.h (registers_length): Remove prototype.
93 * server.h (PBUFSIZ): Define to 16384.
94
7284e1be
UW
952008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
96
97 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
98 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
99 powerpc-64l.o, and powerpc-altivec64l.o.
100 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
101 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
102 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
103 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
104 rs6000/power-linux.xml, and rs6000/power64-linux.xml
105 to srv_xmlfiles.
106
107 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
108 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
109 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
110 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
111 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
112 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
113 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
114 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
115 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
116 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
117 (clean): Update.
118
119 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
120 (init_registers_powerpc_32l): ... this new prototype.
121 (init_registers_powerpc_32): Remove, replace by ...
122 (init_registers_powerpc_altivec32l): ... this new prototype.
123 (init_registers_powerpc_e500): Remove, replace by ...
124 (init_registers_powerpc_e500l): ... this new prototype.
125 (init_registers_ppc64): Remove, replace by ...
126 (init_registers_powerpc_64l): ... this new prototype.
127 (init_registers_powerpc_64): Remove, replace by ...
128 (init_registers_powerpc_altivec64l): ... this new prototype.
129 (ppc_num_regs): Set to 73.
130 (PT_ORIG_R3, PT_TRAP): Define if necessary.
131 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
132 (ppc_cannot_store_register): Handle orig_r3 and trap.
133 (ppc_arch_setup): Update init_registers_... calls.
134 (ppc_fill_gregset): Handle orig_r3 and trap.
135
136 * inferiors.c (clear_inferiors): Reset current_inferior.
137
fdc59709
PB
1382008-04-23 Paolo Bonzini <bonzini@gnu.org>
139
140 * acinclude.m4: Add override.m4.
141 * configure: Regenerate.
142
c9b2f845
UW
1432008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
144
145 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
146 initial call to init_register_ppc64.
147
550512b8
UW
1482008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
149
150 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into single
151 powerpc*-*-linux* case.
152 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
153
b6430ec3
UW
1542008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
155
156 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
157 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
158 from reg_xmlfiles.
159 * linux-ppc-low.c: Include <elf.h>.
160 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
161 (ppc_hwcap): New global variable.
162 (ppc_regmap): Remove __SPE__ #ifdef sections.
163 (ppc_regmap_e500): New global variable.
164 (ppc_cannot_store_register): Update __SPE__ special case.
165 (ppc_get_hwcap): New function.
166 (ppc_arch_setup): Use it to determine whether inferior supports
167 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
168 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
169 Do not access registers if target does not support AltiVec.
170 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
171 Do not access registers if target does not support SPE.
172 (target_regsets): Unconditionally include AltiVec and SPE regsets.
173
52fa2412
UW
1742008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
175
176 * linux-low.c (disabled_regsets, num_regsets): New.
177 (use_regsets_p): Delete.
178 (linux_wait_for_process): Clear disabled_regsets.
179 (regsets_fetch_inferior_registers): Check and set it.
180 (regsets_store_inferior_registers): Likewise.
181 (linux_fetch_registers, linux_store_registers): Do not use
182 use_regsets_p.
183 (initialize_low): Allocate disabled_regsets.
184
e28b3332
DJ
1852008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
186
187 * Makefile.in (LIBOBJS): New.
188 (OBS): Use LIBOBJS.
189 (memmem.o): New rule.
190 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
191 * configure: Regenerated.
192
4536995d
UW
1932008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
194
195 * server.c (handle_query): Never return "unsupported" for
196 qXfer:features:read queries.
197
221c031f
UW
1982008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
199
200 * server.c (get_features_xml): Fix inverted condition.
201 (handle_query): Always support qXfer:feature:read.
202
ccd213ac
DJ
2032008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
204
205 * server.c (wrapper_argv): New.
206 (start_inferior): Handle wrapper_argv. If set, expect an extra
207 trap.
208 (gdbserver_usage): Document --wrapper.
209 (main): Parse --wrapper.
210
6fe305f7
UW
2112008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
212
213 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
214 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
215 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
216 (ppc_set_pc): Likewise.
217 (ppc_arch_setup): New function.
218 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
219 of collect_register.
220 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
221
5b0a002e
UW
2222008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
223
224 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
225 instead of linux-ppc64-low.o.
226 * linux-ppc64-low.c: Remove file.
227 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
228 (linux-ppc64-low.o): Remove rule.
229
230 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
231 (init_registers_powerpc_64): Likewise.
232 (ppc_regmap): Conditionally define depending on __powerpc64__.
233 (ppc_cannot_store_register): Do not special-case "fpscr" when
234 compiled on __powerpc64__.
235 (ppc_collect_ptrace_register): New function.
236 (ppc_supply_ptrace_register): New function.
237 (ppc_breakpoint): Change type to "unsigned int".
238 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
239 (the_low_target): Conditionally provide initializers for the
240 arch_setup member depending on __powerpc64__. Install
241 collect_ptrace_register and supply_ptrace_register members.
242
9b4b61c8
UW
2432008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
244
245 * regcache.h (gdbserver_xmltarget): Add extern declaration.
246 * server.c (gdbserver_xmltarget): Define.
247 (get_features_xml): Use it to replace "target.xml" and arch_string.
248
249 * configure.srv: Remove srv_xmltarget. Add XML files that were
250 mentioned there to srv_xmlfiles instead. Remove conditional tests
251 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
252 srv_xmlfiles and srv_regobj to include all possible choices.
253 * configure.ac (srv_xmltarget): Remove.
254 (srv_xmlfiles): Do not add "target.xml".
255 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
256 checks for supplementary target information.
257 * configure: Regenerate.
258 * Makefile.in (XML_TARGET): Remove.
259 (target.xml): Remove rule.
260 (clean): Do not clean up target.xml.
261 (.PRECIOUS): Do not mention target.xml.
262
263 * target.h (struct target_ops): Remove arch_string member.
264 * linux-low.c (linux_arch_string): Remove.
265 (linux_target_ops): Remove arch_string initializer.
266 * linux-low.h (struct linux_target_ops): Remove arch_string member.
267 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
268 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
269 * spu-low.c (spu_arch_string): Remove.
270 (spu_target_ops): Remove arch_string initializer.
271 * win32-low.c (win32_arch_string): Remove.
272 (win32_target_ops): Remove arch_string initializer.
273 * win32-low.h (struct win32_target_ops): Remove arch_string member.
274 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
275 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
276
ee1a7ae4
UW
2772008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
278
279 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
280 by collect_ptrace_register and supply_ptrace_register hooks.
281 * linux-low.c (fetch_register): Use supply_ptrace_register callback
282 instead of checking for the_low_target.left_pad_xfer.
283 (usr_store_inferior_registers): Use collect_ptrace_register callback
284 instead of checking for the_low_target.left_pad_xfer.
285
286 * linux-s390-low.c (s390_collect_ptrace_register): New function.
287 (s390_supply_ptrace_register): Likewise.
288 (s390_fill_gregset): Call s390_collect_ptrace_register.
289 (the_low_target): Update.
290
291 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
292 (ppc_supply_ptrace_register): Likewise.
293 (the_low_target): Update.
294
295 * linux-i386-low.c (the_low_target): Update.
296 * linux-x86-64-low.c (the_low_target): Update.
297
d61ddec4
UW
2982008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
299
300 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
301 reg-s390.o and reg-s390x.o.
302
303 * linux-low.c (new_inferior): New global variable.
304 (linux_create_inferior, linux_attach): Set it.
305 (linux_wait_for_process): Call the_low_target.arch_setup after the
306 target has stopped for the first time.
307 (initialize_low): Do not call the_low_target.arch_setup.
308
309 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
310 (s390_set_pc): Likewise.
311 (s390_arch_setup): New function.
312 (the_low_target): Use s390_arch_setup as arch_setup routine.
313
314 * regcache.c (realloc_register_cache): New function.
315 (set_register_cache): Call it for each existing regcache.
316
d05b4ac3
UW
3172008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
318
319 * server.h (init_registers): Remove prototype.
320
321 * linux-low.h (struct linux_target_ops): Add arch_setup field.
322 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
323 instead of init_registers ().
324 * linux-arm-low.c (init_registers_arm): Add prototype.
325 (init_registers_arm_with_iwmmxt): Likewise.
326 (the_low_target): Add initializer for arch_setup field.
327 * linux-cris-low.c (init_registers_cris): Add prototype.
328 (the_low_target): Add initializer for arch_setup field.
329 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
330 (the_low_target): Add initializer for arch_setup field.
331 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
332 (the_low_target): Add initializer for arch_setup field.
333 * linux-ia64-low.c (init_registers_ia64): Add prototype.
334 (the_low_target): Add initializer for arch_setup field.
335 * linux-m32r-low.c (init_registers_m32r): Add prototype.
336 (the_low_target): Add initializer for arch_setup field.
337 * linux-m68k-low.c (init_registers_m68k): Add prototype.
338 (the_low_target): Add initializer for arch_setup field.
339 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
340 (init_registers_mips64_linux): Likewise.
341 (the_low_target): Add initializer for arch_setup field.
342 * linux-ppc-low.c (init_registers_ppc): Add prototype.
343 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
344 (the_low_target): Add initializer for arch_setup field.
345 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
346 (init_registers_powerpc_64): Likewise.
347 (the_low_target): Add initializer for arch_setup field.
348 * linux-s390-low.c (init_registers_s390): Add prototype.
349 (init_registers_s390x): Likewise.
350 (the_low_target): Add initializer for arch_setup field.
351 * linux-sh-low.c (init_registers_sh): Add prototype.
352 (the_low_target): Add initializer for arch_setup field.
353 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
354 (the_low_target): Add initializer for arch_setup field.
355 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
356 (the_low_target): Add initializer for arch_setup field.
357
358 * win32-low.h (struct win32_target_ops): Add arch_setup field.
359 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
360 instead of init_registers ().
361 * win32-arm-low.c (init_registers_arm): Add prototype.
362 (the_low_target): Add initializer for arch_setup field.
363 * win32-i386-low.c (init_registers_i386): Add prototype.
364 (the_low_target): Add initializer for arch_setup field.
365
366 * spu-low.c (init_registers_spu): Add prototype.
367 (initialize_low): Call initialie_registers_spu () instead of
368 initialize_registers ().
369
fd96d250
PA
3702008-02-19 Pedro Alves <pedro@codesourcery.com>
371
372 * server.c (handle_v_requests): When handling the vRun and vAttach
373 packets, if already debugging a process, don't kill it. Return an
374 error instead.
375
d41b6bb4
DJ
3762008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
377
378 * server.c (handle_query): Correct length check.
379
5ac588cf
PA
3802008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
381
382 * win32-low.c (do_initial_child_stuff): Add process handle
383 parameter. Set current_process_handle and current_process_id from the
384 parameters. Clear globals.
385 (win32_create_inferior): Don't set current_process_handle and
386 current_process_id here. Instead pass them on the call to
387 do_initial_child_stuff.
388 (win32_attach): Likewise.
389 (win32_clear_inferiors): New.
390 (win32_kill): Don't close the current process handle or the
391 current thread handle here. Instead call win32_clear_inferiors.
392 (win32_detach): Don't open a new handle to the process. Call
393 win32_clear_inferiors.
394 (win32_join): Don't rely on current_process_handle; open a new
395 handle using the process id.
396 (win32_wait): Call win32_clear_inferiors when the inferior process
397 has exited.
398
ecd7ecbc
DJ
3992008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
400
401 * server.c (monitor_show_help): Add "exit".
402
1525d545
MG
4032008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
404
ecd7ecbc 405 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
406 (clean): Add reg-xtensa.c.
407 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
408 * configure.srv (xtensa*-*-linux*) New target.
409 * linux-xtensa-low.c: New.
410 * xtensa-xtregs.c: New.
1525d545 411
59a016f0
PA
4122008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
413
414 * hostio.c: Don't include errno.h.
415 (errno_to_fileio_errno): Move to hostio-errno.
416 * hostio.c: (hostio_error): Remove the error parameter. Defer the
417 error number outputting to the target->hostio_last_error callback.
418 (hostio_packet_error): Use FILEIO_EINVAL directly.
419 (handle_open, handle_pread, hostio_error, handle_unlink): Update
420 calls to hostio_error.
421 * hostio-errno.c: New.
422 * server.h (hostio_last_error_from_errno): Declare.
423 * target.h (target_ops): Add hostio_last_error member.
424 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
425 as hostio_last_error handler.
426 * spu-low.c (spu_target_ops): Likewise.
427 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
428 (wince_hostio_last_error): New functions.
429 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
430 as hostio_last_error handler.
431 (win32_target_ops) [!_WIN32_WCE]: Register
432 hostio_last_error_from_errno as hostio_last_error handler.
433 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
434 (hostio-errno.o): New rule.
435 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
436 * configure.srv (srv_hostio_err_objs): New variable. Default to
437 hostio-errno.o.
438 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
439 * configure: Regenerate.
440
2d717e4f
DJ
4412008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
442
443 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
444 (linux_kill, linux_detach): Clean up the process list.
445 * remote-utils.c (remote_open): Improve port number parsing.
446 (putpkt_binary, input_interrupt): Only send interrupts if the target
447 is running.
448 * server.c (extended_protocol): Make static.
449 (attached): Define earlier.
450 (exit_requested, response_needed, program_argv): New variables.
451 (target_running): New.
452 (start_inferior): Clear attached here.
453 (attach_inferior): Set attached here.
454 (require_running): Define.
455 (handle_query): Use require_running and target_running. Implement
456 "monitor exit".
457 (handle_v_attach, handle_v_run): New.
458 (handle_v_requests): Use require_running. Handle vAttach and vRun.
459 (gdbserver_usage): Update.
460 (main): Redo argument parsing. Handle --debug and --multi. Handle
461 --attach along with other options or after the port. Save
462 program_argv. Support no initial program. Resynchronize
463 communication with GDB after an error. Handle "monitor exit".
464 Use require_running and target_running. Always allow the extended
465 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
466 restart in extended mode.
467 * README: Refer to the GDB manual. Update --attach usage.
468
7407e2de
AS
4692007-12-20 Andreas Schwab <schwab@suse.de>
470
471 * linux-low.c (STACK_SIZE): Define.
472 (linux_tracefork_child): Use it. Use __clone2 on ia64.
473 (linux_test_for_tracefork): Likewise.
474
b65d95c5
DJ
4752007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
476
477 * linux-low.c (linux_wait_for_event): Update messages. Do not
478 reinsert auto-delete breakpoints.
479 * mem-break.c (struct breakpoint): Change return type of handler to
480 int.
481 (set_breakpoint_at): Update handler type.
482 (reinsert_breakpoint_handler): Return 1 instead of calling
483 delete_breakpoint.
484 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
485 setting a new one.
486 (check_breakpoints): Delete auto-delete breakpoints and return 2.
487 * mem-break.h (set_breakpoint_at): Update handler type.
488 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
489 * win32-low.c (auto_delete_breakpoint): New.
490 (get_child_debug_event): Use it.
491
4e799345
DJ
4922007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
493
494 * configure.ac: Check for pread and pwrite.
495 * hostio.c (handle_pread): Fall back to lseek and read.
496 (handle_pwrite): Fall back to lseek and write.
497 * config.in, configure: Regenerated.
498
27524b67
DJ
4992007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
500
501 * server.c (myresume): Add own_buf argument.
502 (main): Update calls.
503
a20d5e98
DJ
5042007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
505
506 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
507 * remote-utils.c (remote_open): Do not call disable_async_io.
508 (block_async_io): Delete.
509 (unblock_async_io): Make static.
510 (initialize_async_io): New.
511 * server.c (handle_v_cont): Handle async I/O here.
512 (myresume): Likewise. Move other common resume tasks here...
513 (main): ... from here. Call initialize_async_io. Disable async
514 I/O before the main loop.
515 * server.h (initialize_async_io): Declare.
516 (block_async_io, unblock_async_io): Delete prototypes.
517 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
518
b79d787e
DJ
5192007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
520
521 * remote-utils.c (readchar): Allow binary data in received messages.
522
d97903b2
PA
5232007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
524
525 * win32-low.c (attaching): New global.
526 (win32_create_inferior): Clear the `attaching' global.
527 (win32_attach): Set the `attaching' global.
528 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
529 attaching. Only set a breakpoint at the entry point if not
530 attaching.
531
311de423
PA
5322007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
533
534 * server.c (main): Don't report dll events on the initial
535 connection on attaches.
536
6c2d16d2
PA
5372007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
538
539 * server.c (main): Relax numerical bases supported for the pid of
540 the --attach command line argument.
541
5ca906e6
PA
5422007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
543
544 * win32-low.c (win32_attach): Call OpenProcess before
545 DebugActiveProcess, not after. Add last error output to error
546 call.
547
9c6c8194
PA
5482007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
549
550 * win32-low.c (win32_get_thread_context)
551 (win32_set_thread_context): New functions.
552 (thread_rec): Use win32_get_thread_context.
553 (continue_one_thread, win32_resume): Use win32_set_thread_context.
554 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
555 field.
556
4d5d1aaa
PA
5572007-12-03 Leo Zayas
558 Pedro Alves <pedro_alves@portugalmail.pt>
559
560 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
561 global variables.
562 (child_add_thread): Minor cleanup.
563 (child_continue): Resume artificially suspended threads before
564 calling ContinueDebugEvent.
565 (suspend_one_thread): New.
566 (fake_breakpoint_event): New.
567 (get_child_debug_event): Change return type to int. Check here if
568 gdb sent an interrupt request. If a soft interrupt was requested,
569 fake a breakpoint event. Return 0 if there is no event to handle,
570 and 1 otherwise.
571 (win32_wait): Don't check here if gdb sent an interrupt request.
572 Ensure there is a valid event to handle.
573 (win32_request_interrupt): Add soft interruption method as last
574 resort.
575
c436e841
PA
5762007-12-03 Leo Zayas
577 Pedro Alves <pedro_alves@portugalmail.pt>
578
579 * win32-low.h (win32_thread_info): Add descriptions to the
580 structure members. Replace `suspend_count' counter by a
581 `suspended' flag.
582 * win32-low.c (thread_rec): Update condition of when to get the
583 context from the inferior. Rely on ContextFlags being set if it
584 has already been retrieved. Only suspend the inferior thread if
585 we haven't already. Warn if that fails.
586 (continue_one_thread): s/suspend_count/suspended/. Only call
587 ResumeThread once. Warn if that fails.
588
e7b5fa67
PA
5892007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
590
591 * win32-low.c (win32_wait): Don't read from the inferior when it
592 has already exited.
593
a385171d
PA
5942007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
595
596 * Makefile.in (win32_low_h): New variable.
597 (win32-low.o): Add dependency on $(win32_low_h).
598 (win32-arm-low.o, win32-i386-low.o): New rules.
599
f80c84b3
DJ
6002007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
601
602 * hostio.c: Correct copyright year.
603
a6b151f1
DJ
6042007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
605
606 * Makefile.in (OBS): Add hostio.o.
607 (hostio.o): New rule.
608 * server.h (handle_vFile): Declare.
609 * hostio.c: New file.
610 * server.c (handle_v_requests): Take packet_len and new_packet_len
611 for binary packets. Call handle_vFile.
612 (main): Update call to handle_v_requests.
613
f9387fc3
DJ
6142007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
615
616 * linux-low.c: Include <sched.h>.
617
51c2684e
DJ
6182007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
619
620 * linux-low.c (linux_tracefork_grandchild): New.
621 (linux_tracefork_child): Use clone.
622 (linux_test_for_tracefork): Use clone; allocate and free a stack.
623
75f83163
JB
6242007-10-31 Joel Brobecker <brobecker@adacore.com>
625
626 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
627
da5898ce
DJ
6282007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
629
630 * linux-low.c (handle_extended_wait): Handle unexpected signals.
631
24a09b5f
DJ
6322007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
633
634 * inferiors.c (change_inferior_id): Delete.
635 (add_pid_to_list, pull_pid_from_list): New.
636 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
637 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
638 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
639 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
640 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
641 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
642 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
643 (using_threads): Always set to 1.
644 (handle_extended_wait): New.
645 (add_process): Do not set TID.
646 (linux_create_inferior): Set must_set_ptrace_flags.
647 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
648 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
649 (linux_thread_alive): Rename TID argument to LWPID.
650 (linux_wait_for_process): Handle unknown processes. Do not use TID.
651 (linux_wait_for_event): Do not use TID or check using_threads. Update
652 call to dead_thread_notify. Call handle_extended_wait.
653 (linux_create_inferior): Use PTRACE_SETOPTIONS.
654 (send_sigstop): Delete sigstop_sent.
655 (wait_for_sigstop): Avoid TID.
656 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
657 (linux_test_for_tracefork): New.
658 (linux_lookup_signals): Use thread_db_active and
659 linux_supports_tracefork_flag.
660 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
661 * linux-low.h (get_process_thread): Avoid TID.
662 (struct process_ifo): Move thread_known and tid to the end. Remove
663 sigstop_sent.
664 (linux_attach_lwp, thread_db_init): Update prototypes.
665 * server.h (change_inferior_id): Delete prototype.
666 (add_pid_to_list, pull_pid_from_list): New prototypes.
667 * thread-db.c (thread_db_use_events): New.
668 (find_first_thread): Rename to...
669 (find_one_thread): ...this. Update callers and messages. Do not
670 call fatal. Check thread_db_use_events. Do not call
671 change_inferior_id or new_thread_notify.
672 (maybe_attach_thread): Update. Do not call new_thread_notify.
673 (thread_db_init): Set thread_db_use_events. Check use_events.
674 * utils.c (fatal, warning): Correct message prefix.
675
30ed0a8f
DJ
6762007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
677
678 * Makefile.in (clean): Remove new files.
679 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
680 (powerpc-64.o, powerpc-64.c): New rules.
681 * configure.srv: Use alternate register sets for powerpc64-*-linux*
682 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
683 with SPE.
684 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
685 SPE targets.
686 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
687 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
688 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
689 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
690 (target_regsets): Add AltiVec and SPE register sets.
691 * configure.ac: Check for AltiVec and SPE.
692 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
693 (ppc_fill_vrregset, ppc_store_vrregset): New.
694 (target_regsets): Add AltiVec register set.
695 * configure: Regenerated.
696
fd462a61
DJ
6972007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
698
699 * linux-low.c (O_LARGEFILE): Define.
700 (linux_read_memory): Use /proc/PID/mem.
701 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
702 * configure, config.in: Regenerated.
703
69f223ed
DJ
7042007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
705
706 * linux-low.c (linux_wait_for_event): Do not pass signals while
707 single-stepping.
708
aec18585
PA
7092007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
710
711 * win32-low.c (create_process): New.
712 (win32_create_inferior): Use create_process instead of
713 CreateProcess. If create_process failed retry appending an ".exe"
714 suffix. Store the GetLastError result immediatelly after
715 create_process calls and use it on the call to error.
716
34d86ddd
PA
7172007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
718
719 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
720
5a0e3bd0
JB
7212007-08-23 Joel Brobecker <brobecker@adacore.com>
722
723 * configure.ac: Switch license to GPLv3.
724
f88c79e6
MS
7252007-08-01 Michael Snyder <msnyder@access-company.com>
726
727 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
728
6b3d9b83
PA
7292007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
730
731 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
732 typedef.
733 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
734 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
735 CloseToolhelp32Snapshot.
736 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
737 CloseToolhelp32Snapshot.
738
c588c53c
MS
7392007-07-27 Michael Snyder <michael.snyder@access-company.com>
740
741 * server.c (main): Check for inferior exit before main loop.
742
aa0403d9
PA
7432007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
744
745 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
746 instead of on tmp_desc.
747
255e7678
DJ
7482007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
749 Daniel Jacobowitz <dan@codesourcery.com>
750
751 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
752 (add_thread): Minor cleanups.
753 (clear_inferiors): Move lower in the file. Clear the DLL
754 list.
755 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
756 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
757 (xml_escape_text): New.
758 * server.c (handle_query): Handle qXfer:libraries:read. Report it
759 for qSupported.
760 (handle_v_cont): Report errors.
761 (gdbserver_version): Update.
762 (main): Correct size of own_buf. Do not report initial DLL events.
763 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
764 (unloaded_dll, xml_escape_text): New.
765 * win32-low.c (enum target_waitkind): Update comments.
766 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
767 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
768 (win32_EnumProcessModules, win32_GetModuleInformation)
769 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
770 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
771 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
772 (win32_Module32First, win32_Module32Next, load_toolhelp)
773 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
774 (get_child_debug_event): Handle DLL events.
775 (win32_wait): Likewise.
776
0d37add9
DJ
7772007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
778
779 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
780 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
781
45e2715e
PA
7822007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
783
784 * win32-low.c (handle_output_debug_string): Ignore event if not
785 waiting.
786
c5674cf1
PA
7872007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
788
789 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
790
2bbe3cc1
DJ
7912007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
792
793 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
794
ae13219e
DJ
7952007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
796
797 * inferiors.c (change_inferior_id): Add comment.
798 * linux-low.c (check_removed_breakpoint): Add an early
799 prototype. Improve debug output.
800 (linux_attach): Doc update.
801 (linux_detach_one_process, linux_detach): Clean up before releasing
802 each process.
803 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
804 * linux-low.h (struct process_info): Doc improvement.
805 * mem-break.c (delete_all_breakpoints): New.
806 * mem-break.h (delete_all_breakpoints): New prototype.
807 * thread-db.c (find_first_thread): New.
808 (thread_db_create_event): Call it instead of
809 thread_db_find_new_threads. Clean up unused variables.
810 (maybe_attach_thread): Remove first thread handling.
811 (thread_db_find_new_threads): Use find_first_thread.
812 (thread_db_get_tls_address): Likewise.
813
4105de34
DJ
8142007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
815
816 * thread-db.c (thread_db_find_new_threads): Add prototype.
817 (thread_db_create_event): Check for the main thread before adding
818 a new thread.
819 (maybe_attach_thread): Only enable event reporting if TID == 0.
820 (thread_db_get_tls_address): Check for new threads.
821
2b876972
DJ
8222007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
823
824 * linux-low.c (linux_create_inferior): Try execv before execvp.
825 * spu-low.c (spu_create_inferior): Likewise.
826
7a245884
DJ
8272007-06-13 Mike Frysinger <vapier@gentoo.org>
828
829 * linux-low.c (linux_create_inferior): Change execv to execvp.
830 * spu-low.c (spu_create_inferior): Likewies.
831
117ce543
DJ
8322007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
833
834 * Makefile.in (clean): Clean new files instead of deleted ones.
835 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
836 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
837 rules.
838 * configure.srv: Specify XML files and new regformats for MIPS and
839 MIPS64 GNU/Linux.
840 * linux-mips-low.c (mips_num_regs): Set to only used registers.
841 (mips_regmap): Do not fetch $0. Remove unused registers. Add
842 an entry for the restart register.
843 (mips_cannot_fetch_register, mips_cannot_store_register)
844 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
845 register names to match the XML descriptions.
846 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
847 restart register instead of $0.
848
0e7f50da
UW
8492007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
850 Markus Deuling <deuling@de.ibm.com>
851
852 * remote-utils.c (decode_xfer_write): New function.
853 * server.h (decode_xfer_write): Add prototype.
854 * server.c (handle_query): Add PACKET_LEN argument. Support
855 qXfer:spu:read and qXfer:spu:write packets.
856 (main): Pass packet_len to handle_query.
857 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
858 * target.h (target_ops): Add qxfer_spu.
859
374c1d38
UW
8602007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
861
862 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
863 accessing non-seekable spufs files.
864
bb63802a
UW
8652007-05-16 Markus Deuling <deuling@de.ibm.com>
866
867 * server.c (handle_query): Add reply for qC packet.
868
7390519e
PA
8692007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
870 Leo Zayas <lerele@champenstudios@com>
871
872 * server.h (check_remote_input_interrupt_request): New function.
873 * remote_utils.c (INVALID_DESCRIPTOR): New define.
874 (remote_desc): Initialize with INVALID_DESCRIPTOR.
875 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
876 (check_remote_input_interrupt_request): New function.
877 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 878 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
879 winapi_GenerateConsoleCtrlEvent): New typedefs.
880 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
881 to 250 ms.
882 (win32_wait): Check for remote interrupt request
883 with check_remote_input_interrupt_request.
884 (win32_request_interrupt): New function.
885 (win32_target_op): Set request_interrupt to win32_request_interrupt.
886
34b34921
PA
8872007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
888
889 * win32-low.c (debug_registers_changed,
890 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
891 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
892 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
893 (thread_rec): Get context using the low target.
894 (child_add_thread): Call thread_added on the low target,
895 which does the same thing.
896 (regptr): Delete.
897 (do_initial_child_stuff): Remove debug registers references.
898 Set context using the low target. Resume threads after
899 setting the contexts.
900 (child_continue): Remove dead variable. Remove debug
901 registers references.
902 (child_fetch_inferior_registers): Go through the low target.
903 (do_child_store_inferior_registers): Remove.
904 (child_store_inferior_registers): Go through the low target.
905 (win32_resume): Remove debug registers references.
906 Set context using the low target.
907 (handle_exception): Change return type to void. Don't record
908 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
909 first chance exception.
910 (get_child_debug_event): Change return type to void. Remove
911 goto loop. Always return after waiting for debug event.
912 (win32_wait): Convert to switch statement. Handle spurious
913 events.
914
915 * win32-i386-low.c (debug_registers_changed,
916 debug_registers_used): New.
917 (initial_stuff): Rename to ...
918 (i386_initial_stuff): ... this. Clear debug registers
919 state variables.
920 (store_debug_registers): Delete.
921 (i386_get_thread_context): New.
922 (load_debug_registers): Delete.
923 (i386_set_thread_context): New.
924 (i386_thread_added): New.
925 (single_step): Rename to ...
926 (i386_single_step): ... this.
927 (do_fetch_inferior_registers): Rename to ...
928 (i386_fetch_inferior_register): ... this.
929 (i386_store_inferior_register): New.
930 (the_low_target): Adapt to new interface.
931
932 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
933 (arm_get_thread_context): New.
934 (arm_set_thread_context): New.
935 (regptr): New.
936 (do_fetch_inferior_registers): Rename to ...
937 (arm_fetch_inferior_register): ... this.
938 (arm_store_inferior_register): New.
939 (arm_wince_breakpoint): Reimplement as unsigned long.
940 (arm_wince_breakpoint_len): Define.
941 (the_low_target): Adapt to new interface.
942
943 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
944 load_debug_registers. Add get_thread_context, set_thread_context,
945 thread_added and store_inferior_register. Rename
946 fetch_inferior_registers to fetch_inferior_register.
947 (regptr): Remove declaration.
948
dd6953e1
PA
9492007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
950
951 * linux-low.c (linux_detach): Change return type to int. Return 0.
952 * spu-low.c (spu_detach): Likewise.
953
444d6139
PA
9542007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
955
956 * target.h (target_ops): Change return type of detach to int.
957 Add join.
958 (join_inferior): New.
959 * server.c (main): Don't skip detach support on mingw32.
960 If the inferior doesn't support detaching return error.
961 Call join_inferior instead of using waitpid.
962 * linux-low.c (linux_join): New.
963 (linux_target_op): Add linux_join.
964 * spu-low.c (spu_join): New.
965 (spu_target_ops): Add spu_join.
966 * win32-low.c (win32_detach): Adapt to new interface.
967 Reopen current_process_handle before detaching. Issue a child
968 resume before detaching.
969 (win32_join): New.
970 (win32_target_op): Add win32_join.
971
1d5315fe
PA
9722007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
973
974 * win32-low.c (win32-attach): Fix return value.
975 * target.h (target_ops): Describe ATTACH return values.
976
bf914831
PA
9772007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
978
979 * win32-low.c (GETPROCADDRESS): Define.
980 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
981 (winapi_DebugSetProcessKillOnExit): Likewise.
982 (win32_create_inferior): Force usage of ansi CreateProcessA.
983 (win32_attach): Use GETPROCADDRESS.
984 (win32_detach): Likewise.
985
f72f3e60
PA
9862007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
987
988 * win32-low.c (win32_wait): Don't use WSTOPSIG.
989
ed50f18f
PA
9902007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
991
992 * win32-low.c: Commit leftover changes from 2007-03-29.
993
0c2ead7e
DJ
9942007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
995
996 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
997 fields short instead of int. Add explicit padding.
998 (i387_cache_to_fsave): Remove unnecessary casts.
999 (i387_fsave_to_cache): Doc fix.
1000 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
1001
73725ff3
DJ
10022007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1003
1004 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
1005 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
1006
d99f33d8
PA
10072007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
1008
1009 * configure.srv (arm*-*-mingw32ce*): Move near the other
1010 arm targets.
1011
68070c10
PA
10122007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
1013
2482afc6 1014 * configure.ac: Add errno checking.
68070c10
PA
1015 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
1016 sys/file.h and malloc.h.
1017 (AC_CHECK_DECLS): Add perror.
1018 (srv_mingwce): Handle.
2482afc6 1019 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
1020 win32-i386-low.o to srv_tgtobj.
1021 (i[34567]86-*-mingw*): Likewise.
1022 (arm*-*-mingw32ce*): Add case.
1023 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
1024 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
1025 [__MINGW32CE__] (strerror): New function.
1026 [__MINGW32CE__] (errno): Define to GetLastError.
1027 [__MINGW32CE__] (COUNTOF): New macro.
1028 (remote_open): Remove extra close call.
1029 * mem-break.c (delete_breakpoint_at): New function.
1030 * mem-break.h (delete_breakpoint_at): Declare.
1031 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
1032 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
1033 [USE_WIN32API] (read, write): Add char* casts.
1034 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
1035 * server.h: Include wincecompat.h on Windows CE.
1036 [HAVE_ERRNO_H]: Check.
1037 (perror): Declare if not declared.
1038 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
1039 (perror_with_name): Remove errno declaration.
1040 * wincecompat.h: New.
1041 * wincecompat.c: New.
1042 * win32-low.h: New.
1043 * win32-arm-low.c: New.
1044 * win32-i386-low.c: New.
1045 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
1046 (OUTMSG2): Make it safe.
1047 (_T): New macro.
1048 (COUNTOF): New macro.
1049 (NUM_REGS): Get it from the low target.
1050 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
1051 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
1052 (thread_rec): Let low target handle debug registers.
1053 (child_add_thread): Likewise.
1054 (child_init_thread_list): Likewise.
1055 (continue_one_thread): Likewise.
1056 (regptr): New.
1057 (do_child_fetch_inferior_registers): Move to ...
1058 * win32-i386-low.c: ... here, and rename to ...
1059 (do_fetch_inferior_registers): ... this.
1060 * win32-low.c (child_fetch_inferior_registers):
1061 Go through the low target.
1062 (do_child_store_inferior_registers): Use regptr.
1063 (strwinerror): New function.
1064 (win32_create_inferior): Handle Windows CE.
1065 Use strwinerror instead of strerror on Windows error
1066 codes. Add program to the error output.
1067 Don't close the main thread handle on Windows CE.
1068 (win32_attach): Use coredll.dll on Windows CE.
1069 (win32_kill): Close current process and current
1070 thread handles.
1071 (win32_detach): Use coredll.dll on Windows CE.
1072 (win32_resume): Let low target handle debug registers, and
1073 step request.
1074 (handle_exception): Add/Remove initial breakpoint. Avoid
1075 non-existant WSTOPSIG on Windows CE.
1076 (win32_read_inferior_memory): Cast to remove warning.
1077 (win32_arch_string): Go through the low target.
1078 (initialize_low): Call set_breakpoint_data with the low
1079 target's breakpoint.
1080 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
1081 FOP_REGNUM, mappings): Move to ...
1082 * win32-i386-low.c: ... here.
1083 * win32-low.c (win32_thread_info): Move to ...
1084 * win32-low.h: ... here.
1085 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
1086 win32-arm-low.c and wincecompat.c.
1087 (all:): Add $EXEEXT.
1088 (install-only:): Likewise.
1089 (gdbserver:): Likewise.
1090 (gdbreplay:): Likewise.
1091 * config.in: Regenerate.
1092 * configure: Regenerate.
1093
41093d81
PA
10942007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
1095
1096 * win32-low.c: Rename typedef thread_info to
1097 win32_thread_info throughout.
1098
544afa54
PA
10992007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
1100
1101 * win32-i386-low.c: Rename to ...
1102 * win32-low.c: ... this.
1103 * configure.srv: Replace win32-i386-low.o with win32-low.o.
1104 * Makefile.in: Likewise.
1105
bce7165d
PA
11062007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
1107
1108 * remote-utils.c (monitor_output): Constify msg parameter.
1109 * server.h (monitor_output): Likewise.
1110 * win32-i386-low.c (handle_output_debug_string): New.
1111 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
1112 handle_output_debug_string.
1113 (get_child_debug_event): Likewise.
1114
506c7aa0
DJ
11152007-03-27 Mat Hostetter <mat@lcs.mit.edu>
1116
1117 * server.c (main): Correct strtoul check.
1118
42c81e2a
DJ
11192007-03-27 Jon Ringle <jon@ringle.org>
1120
1121 * linux-low.c: Check __ARCH_HAS_MMU__ also.
1122
9453113a
DJ
11232007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
1124
1125 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
1126
64a69107
DJ
11272007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
1128
1129 * terminal.h: Check HAVE_SGTTY_H.
1130
11312007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
1132
1133 * remote-utils.c (remote_open): Print out the assigned port number.
1134
c74d0ad8
DJ
11352007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1136
1137 * remote-utils.c (monitor_output): New function.
1138 * server.c (debug_threads): Define here.
1139 (monitor_show_help): New function.
1140 (handle_query): Handle qRcmd.
1141 (main): Do not handle 'd' packet.
1142 * server.h (debug_threads, remote_debug, monitor_output): Declare.
1143 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
1144 of debug_threads.
1145
de7c3b4a
PA
11462007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
1147
1148 * Makefile.in (EXEEXT): New.
1149 (clean): Use $(EXEEXT).
1150
ef57601b
PA
11512007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
1152
1153 * target.h (target_ops): Rename send_signal to request_interrupt,
1154 and remove enum target_signal parameter.
1155 * linux-low.c (linux_request_interrupt): Rename from
1156 linux_send_signal, and always send SIGINT.
1157 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
1158 and always send SIGINT.
1159 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
1160 of send_signal.
1161 (input_interrupt): Likewise.
1162
820f2bda
PA
11632007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
1164
1165 * server.c (get_features_xml): Check if target implemented
1166 arch_string.
1167 * win32-i386-low.c (win32_arch_string): New.
1168 (win32_target_ops): Add win32_arch_string as arch_string member.
1169
ab39bf24
UW
11702007-02-22 Markus Deuling <deuling@de.ibm.com>
1171
1172 * spu-low.c (spu_arch_string): New.
1173 (spu_target_ops): Add spu_arch_string.
1174
61ff6e04
DJ
11752007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1176
1177 * remote-utils.c: Remove HAVE_TERMINAL_H check.
1178 * configure.ac: Do not check for terminal.h.
1179 * configure, config.in: Regenerated.
1180
fb1e4ffc
DJ
11812007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1182
1183 * Makefile.in (OBS): Add $(XML_BUILTIN).
1184 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
1185 (clean): Update.
1186 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
1187 (arm-with-iwmmxt.c): New.
1188 * config.in, configure: Regenerate.
1189 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
1190 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
1191 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
1192 (arm*-*-linux*): Add iWMMXt and regset support.
1193 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
1194 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
1195 (arm_store_wmmxregset, target_regsets): New.
1196 * server.c (get_features_xml): Take annex argument. Check builtin
1197 XML documents.
1198 (handle_query): Handle multiple annexes.
1199
0f48aa01
DJ
12002007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1201
1202 * remote-utils.c [USE_WIN32API] (read, write): Define.
1203 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
1204 write.
1205
23181151
DJ
12062007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1207
1208 * linux-i386-low.c (the_low_target): Set arch_string.
1209 * linux-x86-64-low.c (the_low_target): Likewise.
1210 * linux-low.c (linux_arch_string): New.
1211 (linux_target_ops): Add it.
1212 * linux-low.h (struct linux_target_ops): Add arch_string.
1213 * server.c (write_qxfer_response): Use const void * for DATA.
1214 (get_features_xml): New.
1215 (handle_query): Handle qXfer:features:read. Report it for qSupported.
1216 * target.h (struct target_ops): Add arch_string method.
1217
9d606399
DJ
12182007-01-03 Denis Pilat <denis.pilat@st.com>
1219 Daniel Jacobowitz <dan@codesourcery.com>
1220
1221 * linux-low.c (linux_kill): Handle being called with no threads.
1222 * win32-i386-low.c (win32_kill): Likewise.
1223 (get_child_debug_event): Clear current_process_handle.
1224
12252006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
1226 Daniel Jacobowitz <dan@codesourcery.com>
1227
1228 * remote-utils.c (remote_open): Check the type of specified
1229 serial port devices before opening them.
1230 * server.c (main): Kill the inferior if an error occurs during
1231 the first remote_open.
1232
a5e13d24
DJ
12332006-12-05 Markus Deuling <deuling@de.ibm.com>
1234
1235 * README: Update supported targets.
1236
186947f7
DJ
12372006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
1238
1239 * Makefile.in (clean): Remove reg-mips64.c.
1240 (reg-mips64.c, reg-mips64.o): New rules.
1241 * configure.srv: Handle mips64. Include regset support for mips.
1242 * linux-mips-low.c (union mips_register): New.
1243 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
1244 (mips_breakpoint, mips_breakpoint_at): Use int.
1245 (mips_collect_register, mips_supply_register)
1246 (mips_collect_register_32bit, mips_supply_register_32bit)
1247 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
1248 (mips_store_fpregset, target_regsets): New.
1249 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
1250
a13e2c95
UW
12512006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1252
1253 * configure.srv: Add target "spu*-*-*".
1254 * Makefile.in (clean): Remove reg-spu.c.
1255 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
1256 * spu-low.c: New file.
1257
cb7283db
DJ
12582006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
1259
1260 * configure.ac: Correct td_thr_tls_get_addr test.
1261 * configure: Regenerated.
1262
89be2091
DJ
12632006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
1264
1265 * linux-low.c (linux_wait_for_event): Reformat. Use the
1266 pass_signals array.
1267 * remote-utils.c (decode_address_to_semicolon): New.
1268 * server.c (pass_signals, handle_general_set): New.
1269 (handle_query): Mention QPassSignals for qSupported.
1270 (main): Call handle_general_set.
1271 * server.h (pass_signals, decode_address_to_semicolon): New.
1272
000ef4f0
DJ
12732006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
1274
1275 * server.c (handle_query): Correct error handling for read_auxv.
1276
b7149293
UW
12772005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1278
1279 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
1280 and srv_linux_thread_db to yes.
1281 * linux-s390-low.c (s390_fill_gregset): New function.
1282 (target_regsets): Define data structure.
1283
dae5f5cf
DJ
12842006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
1285
1286 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
1287 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
1288 * config.in, configure: Regenerated.
1289 * inferiors.c (gdb_id_to_thread): New function.
1290 (gdb_id_to_thread_id): Use it.
1291 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
1292 * linux-low.h (struct process_info): Add th member.
1293 (thread_db_get_tls_address): New prototype.
1294 * remote-utils.c (decode_address): Make non-static.
1295 * server.c (handle_query): Handle qGetTLSAddr.
1296 * server.h (gdb_id_to_thread, decode_address): New prototypes.
1297 * target.h (struct target_ops): Add get_tls_address.
1298 * thread-db.c (maybe_attach_thread): Save the thread handle.
1299 (thread_db_get_tls_address): New.
1300
32ca6d61
DJ
13012006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
1302
1303 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
1304 (linux_resume_one_process): Take a siginfo_t *. Update all
1305 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
1306 (struct pending_signals): Add a siginfo_t.
1307 (linux_wait_for_process): Always set last_status.
1308 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
1309 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
1310 * linux-low.h (struct process_info): Add last_status.
1311
5ffff7c1
DJ
13122006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
1313
1314 * remote-utils.c (try_rle): New function.
1315 (putpkt_binary): Use it.
1316
8695c747
DJ
13172006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
1318
1319 * Makefile.in (clean): Clean reg-x86-64-linux.c.
1320 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
1321 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
1322 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
1323 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
1324 point registers.
1325
290fadea
RS
13262006-08-08 Richard Sandiford <richard@codesourcery.com>
1327
1328 * server.c (terminal_fd): New variable.
1329 (old_foreground_pgrp): Likewise.
1330 (restore_old_foreground_pgrp): New function.
1331 (start_inferior): Record the terminal file descriptor in terminal_fd
1332 and its original foreground group in old_foreground_pgrp. Register
1333 restore_old_foreground_pgrp with atexit().
1334
9f2e1e63
DJ
13352006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
1336
1337 * server.c (handle_query): Correct qPart to qXfer.
1338
b80864fb
DJ
13392006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
1340
1341 * configure.ac: Check for more headers which are missing on
1342 Windows. Automatically supply -lwsock32 and USE_WIN32API.
1343 * configure.srv: Add Cygwin and mingw32.
1344 * remote-utils.c: Don't include headers unconditionally which
1345 are missing on mingw32. Include <winsock.h> for mingw32.
1346 (remote_open): Adjust for mingw32 support. Flush
1347 standard error after writing to it.
1348 (remote_close, putpkt_binary, input_interrupt, block_async_io)
1349 (unblock_async_io, enable_async_io, disable_async_io)
1350 (readchar, getpkt): Update for Winsock support.
1351 (prepare_resume_reply): Expect a protocol signal number.
1352 * server.c: Disable <sys/wait.h> on mingw32.
1353 (start_inferior): Adjust for mingw32 support. Flush
1354 standard error after writing to it.
1355 (attach_inferior): Likewise. Use protocol signal
1356 numbers.
1357 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
1358 and names.
1359 * win32-i386-low.c: New file.
1360 * Makefile.in (XM_CLIBS): Set.
1361 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
1362 (win32-i386-low.o): New dependency rule.
1363 * linux-low.c (linux_wait): Use target signal numbers.
1364 * target.h (struct target_ops): Doc fix.
1365 * server.h (target_signal_to_name): New prototype.
1366 * gdbreplay.c: Don't include headers unconditionally which
1367 are missing on mingw32. Include <winsock.h> for mingw32.
1368 (remote_close, remote_open): Adjust for Winsock support.
1369 * configure, config.in: Regenerated.
1370
0876f84a
DJ
13712006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1372
1373 * server.c (decode_xfer_read, write_qxfer_response): New.
1374 (handle_query): Take a packet length argument. Handle
1375 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
1376 the qSupported response.
1377 (main): Update call to handle_query.
1378
01f9e8fa
DJ
13792006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
1380
1381 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
1382 (putpkt_binary): Renamed from putpkt and adjusted for binary
1383 data.
1384 (putpkt): New wrapper for putpkt_binary.
1385 (readchar): Don't mask off the high bit.
1386 (decode_X_packet): New function.
1387 * server.c (main): Call putpkt_binary if a handler sets the packet
1388 length. Save the length of the incoming packet. Handle 'X'.
1389 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
1390
be2a5f71
DJ
13912006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
1392
1393 * server.c (handle_query): Handle qSupported.
1394
ea025f5f
DJ
13952006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
1396
1397 * remote-utils.c (all_symbols_looked_up): New variable.
1398 (look_up_one_symbol): Check it.
1399 * server.h (look_up_one_symbol): New declaration.
1400 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
1401
9308fc88
DJ
14022006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
1403
1404 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 1405 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
1406 (PTRACE_GET_THREAD_AREA): Define.
1407 (ps_get_thread_area): New function.
1408
52fb6437
NS
14092006-05-09 Nathan Sidwell <nathan@codesourcery.com>
1410
1411 * configure.srv (m68k*-*-uclinux*): New target.
1412 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
1413 (linux_resume_one_process): Remove extraneous cast.
1414 (linux_read_offsets): New.
1415 (linux_target_op): Add linux_read_offsets on mmuless systems.
1416 * server.c (handle_query): Add qOffsets logic.
1417 * target.h (struct target_ops): Add read_offsets.
1418
21b0f40c
DJ
14192006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1420
1421 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
1422 (PTRACE_GET_THREAD_AREA): Define.
1423 (ps_get_thread_area): New function.
1424 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
1425 (linux-x86-64-low.o): Update.
1426
0050a760
DJ
14272006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1428
1429 * configure.ac: Remove checks for prfpregset_t.
1430 * gdb_proc_service.h: New file.
1431 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
1432 new "gdb_proc_service.h".
1433 * proc-service.c: Likewise.
1434 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
1435 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
1436 * Makefile.in (gdb_proc_service_h): Updated.
1437 * configure, config.in: Regenerated.
1438
b92a518e
DJ
14392006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
1440
1441 * remote-utils.c (prepare_resume_reply): Move declaration
1442 of gdb_id_from_wait to the top of the block.
1443
545587ee
DJ
14442006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
1445
1446 * linux-low.c (regsets_store_inferior_registers): Read the regset
1447 from the target before filling it.
1448
9db87ebd
DJ
14492006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1450
1451 * server.c (attach_inferior): Return SIGTRAP for a successful
1452 attach.
1453
dd24457d
DJ
14542006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1455
1456 * Makefile.in (OBS): Add version.o.
1457 (STAGESTUFF): Delete.
1458 (version.o): Add dependencies.
1459 (version.c): Replace rule.
1460 (clean): Remove version.c.
1461 * server.c (gdbserver_version): New.
1462 (gdbserver_usage): Use printf.
1463 (main): Handle --version and --help.
1464 * server.h (version, host_name): Add declarations.
1465
6f0f660e
EZ
14662005-12-23 Eli Zaretskii <eliz@gnu.org>
1467
1468 * linux-arm-low.c:
1469 * linux-arm-low.c:
1470 * inferiors.c:
1471 * i387-fp.h:
1472 * i387-fp.c:
1473 * gdbreplay.c:
1474 * regcache.c:
1475 * proc-service.c:
1476 * mem-break.h:
1477 * mem-break.c:
1478 * linux-x86-64-low.c:
1479 * linux-sh-low.c:
1480 * linux-s390-low.c:
1481 * linux-ppc64-low.c:
1482 * linux-ppc-low.c:
1483 * linux-mips-low.c:
1484 * linux-m68k-low.c:
1485 * linux-m32r-low.c:
1486 * linux-low.h:
1487 * linux-low.c:
1488 * linux-ia64-low.c:
1489 * linux-i386-low.c:
1490 * linux-crisv32-low.c:
1491 * thread-db.c:
1492 * terminal.h:
1493 * target.h:
1494 * target.c:
1495 * server.h:
1496 * server.c:
1497 * remote-utils.c:
1498 * regcache.h:
1499 * utils.c:
1500 * Makefile.in:
1501 * configure.ac:
1502 * gdbserver.1: Add (C) after Copyright. Update the FSF
1503 address.
1504
9d1fb177
DJ
15052005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1506
1507 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
1508 (arm_breakpoint_at): Recognize both breakpoints.
1509 (the_low_target): Use the correct breakpoint instruction.
1510
011a70c2
DJ
15112005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
1512
1513 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
1514 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
1515 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
1516 (the_low_target): Update.
1517
7fb85e41
AS
15182005-10-25 Andreas Schwab <schwab@suse.de>
1519
1520 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
1521
1522 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
1523 (ia64_num_regs): Reduce to 462.
1524
3db0444b
DJ
15252005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
1526
1527 * acinclude.m4: Correct quoting.
1528 * aclocal.m4: Regenerated.
1529
1530 Suggested by SZOKOVACS Robert <szo@ies.hu>:
1531 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
1532 (thread_db_init): Call thread_db_err_str.
1533 * configure.ac: Check for TD_VERSION.
1534 * config.in, configure: Regenerated.
1535
bee0189a
DJ
15362005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1537
1538 * server.h (error, fatal, warning): Add ATTR_FORMAT.
1539
e9d25b98
DJ
15402005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
1541
1542 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
1543 is not available. Define HAVE_PTRACE_GETREGS if it is.
1544 * config.in, configure: Regenerated.
1545 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
1546 * linux-i386-low.c, linux-m68k-low.c: Update to use
1547 HAVE_PTRACE_GETREGS.
1548 * linux-low.c (regsets_fetch_inferior_registers)
1549 (regsets_store_inferior_registers): Only return 0 if we processed
1550 GENERAL_REGS.
1551 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
1552 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
1553
a06660f7
DJ
15542005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
1555
1556 * inferiors.c (struct thread_info): Add gdb_id.
1557 (add_thread): Add gdb_id argument.
1558 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
1559 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
1560 calls to add_thread.
1561 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
1562 * server.c (handle_query): Use thread_to_gdb_id.
1563 (handle_v_cont, main): Use gdb_id_to_thread_id.
1564 * server.h (add_thread): Update prototype.
1565 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
1566 prototypes.
1567
5a1f5858
DJ
15682005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
1569
1570 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
1571 left-padded registers.
1572 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
1573 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
1574
e122f1f5
SE
15752005-07-01 Steve Ellcey <sje@cup.hp.com>
1576
1577 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
1578 * configure: Regenerate.
1579 * config.in: Regenerate.
1580 * server.h (NEED_DECLARATION_STRERROR):
1581 Replace with !HAVE_DECL_STRERROR.
1582
d592fa2f
DJ
15832005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
1584
1585 * linux-low.c (linux_wait, linux_send_signal): Don't test
1586 an unsigned long variable for > 0 if it could be MAX_ULONG.
1587 * server.c (myresume): Likewise.
1588 * target.c (set_desired_inferior): Likewise.
1589
ccbd4912
MK
15902005-06-13 Mark Kettenis <kettenis@gnu.org>
1591
1592 * configure.ac: Simplify and improve check for socklen_t.
1593 * configure, config.in: Regenerate.
1594
f450004a
DJ
15952005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
1596
1597 * acconfig.h: Remove.
1598 * configure.ac: Add a test for socklen_t. Use three-argument
1599 AC_DEFINE throughout.
1600 * config.in: Regenerated using autoheader 2.59.
1601 * configure: Regenerated.
1602
1603 * gdbreplay.c (socklen_t): Provide a default.
1604 (remote_open): Use socklen_t.
1605 * remote-utils.c (socklen_t): Provide a default.
1606 (remote_open): Use socklen_t.
1607 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
1608 unsigned char.
1609
1610 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
1611 char for buffers.
1612 * linux-low.c (linux_read_memory, linux_write_memory)
1613 (linux_read_auxv): Likewise.
1614 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
1615 (check_mem_write): Likewise.
1616 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
1617 Likewise.
1618 * regcache.c (struct inferior_rgcache_data, registers_to_string)
1619 (registers_from_string, register_data): Likewise.
1620 * server.c (handle_query, main): Likewise.
1621 * server.h (convert_ascii_to_int, convert_int_to_ascii)
1622 (decode_M_packet): Likewise.
1623 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
1624 * target.h (struct target_ops): Update read_memory, write_memory,
1625 and read_auxv.
1626 (read_inferior_memory, write_inferior_memory): Update.
1627 * linux-low.h (struct linux_target_ops): Change type of breakpoint
1628 to unsigned char *.
1629 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
1630 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
1631 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
1632 linux-s390-low.c, linux-sh-low.c: Update for changes in
1633 read_inferior_memory and the_low_target->breakpoint.
1634
eee84df1
DJ
16352005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
1636
1637 * Makefile.in (SFILES): Add linux-ppc64-low.c.
1638 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
1639 * configure.srv: Add powerpc64-*-linux*.
1640 * linux-ppc64-low.c: New file.
1641
45b134e5
OF
16422005-05-23 Orjan Friberg <orjanf@axis.com>
1643
1644 * linux-cris-low.c: New file with support for CRIS.
1645 * linux-crisv32-low.c: Ditto for CRISv32.
1646 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
1647 (clean): Add reg-cris.c and reg-crisv32.c.
1648 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
1649 reg-crisv32.o, and reg-crisv32.c to make rules.
1650 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
1651 recognized targets.
1652
48d93c75
UW
16532005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1654
1655 * linux-low.c (fetch_register): Ensure buffer size is a multiple
1656 of sizeof (PTRACE_XFER_TYPE).
1657 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
1658
e013ee27
OF
16592005-05-12 Orjan Friberg <orjanf@axis.com>
1660
1661 * target.h (struct target_ops): Add insert_watchpoint,
1662 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
1663 pointers for hardware watchpoint support.
1664 * linux-low.h (struct linux_target_ops): Ditto.
1665 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
1666 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
1667 to linux_target_ops.
1668 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
1669 reply packet.
1670 * server.c (main): Recognize 'Z' and 'z' packets.
1671
b0ded00b
UW
16722005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
1673
1674 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
1675 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
1676 (the_low_target): Add new members.
1677
8643e2ad
DJ
16782005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
1679
1680 * proc-service.c (ps_lgetregs): Search all_processes instead of
1681 all_threads.
1682
fc620387
DJ
16832005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
1684
1685 * server.c (start_inferior): Change return type to int.
1686 (attach_inferior): Change sigptr to int *.
1687 (handle_v_cont, handle_v_requests): Change signal to int *.
1688 (main): Change signal to int.
1689
16902005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
1691
1692 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
1693 * configure.srv: Add m32r*-*-linux*.
1694 * linux-m32r-low.c: New file.
1695
e0e76420
DJ
16962005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
1697
1698 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
1699
a1928bad
DJ
17002005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
1701
1702 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
1703 Take unsigned long arguments for PIDs.
1704 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
1705 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
1706 (wait_for_sigstop, linux_resume_one_process)
1707 (regsets_fetch_inferior_registers, linux_send_signal)
1708 (linux_read_auxv): Likewise. Update the types of variables holding
1709 PIDs. Update format string specifiers.
1710 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
1711 * remote-utils.c (prepare_resume_reply): Likewise.
1712 * server.c (cont_thread, general_thread, step_thread)
1713 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
1714 unsigned long.
1715 (handle_query): Update format specifiers.
1716 (handle_v_cont, main): Use strtoul for thread IDs.
1717 * server.h (struct inferior_list_entry): Use unsigned long for ID.
1718 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
1719 (general_thread, step_thread, thread_from_wait)
1720 (old_thread_from_wait): Update.
1721 * target.h (struct thread_resume): Use unsigned long for THREAD.
1722 (struct target_ops): Use unsigned long for arguments to attach and
1723 thread_alive.
1724
dcdb98d2
DJ
17252005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
1726
1727 * acinclude.m4: Include bfd/bfd.m4 directly.
1728 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
1729 <agriffis@toolchain.org>.
1730 * aclocal.m4, configure: Regenerated.
1731
bec39cab
AC
17322005-01-07 Andrew Cagney <cagney@gnu.org>
1733
1734 * configure.ac: Rename configure.in, require autoconf 2.59.
1735 * configure: Re-generate.
1736
434c4c77
DJ
17372004-12-08 Daniel Jacobowitz <dan@debian.org>
1738
1739 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
1740 LIBS when finished.
1741 * aclocal.m4: Regenerated.
1742 * configure: Regenerated.
1743
db1d3e1b
AS
17442004-11-21 Andreas Schwab <schwab@suse.de>
1745
1746 * linux-m68k-low.c (m68k_num_gregs): Define.
1747 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
1748 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
1749 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
1750 (m68k_breakpoint_at): New. Add to the_low_target.
1751
1752 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
1753 srv_linux_thread_db to yes.
1754
43360365
JB
17552004-10-20 Joel Brobecker <brobecker@gnat.com>
1756
1757 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
1758 (ARCH_SET_FS): Likewise.
1759 (ARCH_GET_FS): Likewise.
1760 (ARCH_GET_GS): Likewise.
1761
fd500816
DJ
17622004-10-16 Daniel Jacobowitz <dan@debian.org>
1763
1764 * linux-i386-low.c (ps_get_thread_area): New.
1765 * linux-x86-64-low.c (ps_get_thread_area): New.
1766 * linux-low.c: Include <sys/syscall.h>.
1767 (linux_kill_one_process): Don't kill the first thread here.
1768 (linux_kill): Kill the first thread here.
1769 (kill_lwp): New function.
1770 (send_sigstop, linux_send_signal): Use it.
1771 * proc-service.c: Clean up #ifdefs.
1772 (fpregset_info): Delete.
1773 (ps_lgetregs): Update and enable implementation.
1774 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
1775 implementations.
1776 * remote-utils.c (struct sym_cache, symbol_cache): New.
1777 (input_interrupt): Print a clearer message.
1778 (async_io_enabled): New variable.
1779 (enable_async_io, disable_async_io): Use it. Update comments.
1780 (look_up_one_symbol): Use the symbol cache.
1781 * thread-db.c (thread_db_look_up_symbols): New function.
1782 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
1783
f6de3c42
DJ
17842004-10-16 Daniel Jacobowitz <dan@debian.org>
1785
1786 * configure.in: Test for -rdynamic.
1787 * configure: Regenerated.
1788 * Makefile (INTERNAL_LDFLAGS): New.
1789 (gdbserver, gdbreplay): Use it.
1790
2c0fc042
AC
17912004-09-02 Andrew Cagney <cagney@gnu.org>
1792
1793 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
1794
075b3282
DJ
17952004-03-23 Daniel Jacobowitz <drow@mvista.com>
1796
1797 * linux-low.c (linux_wait): Clear all_processes list also.
1798
fa6a77dc
DJ
17992004-03-12 Daniel Jacobowitz <drow@mvista.com>
1800
1801 * linux-low.c: Include <errno.h>. Remove extern declaration of
1802 errno.
1803
6d782a97
DJ
18042004-03-12 Daniel Jacobowitz <drow@mvista.com>
1805
1806 * gdbreplay.c, server.h, utils.c: Update copyright years.
1807
3a7fb99b
DJ
18082004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
1809
1810 * server.c (main): Print child status or termination signal from
1811 variable 'signal', not 'sig'.
1812
c3e735a6
DJ
18132004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
1814
1815 * linux-low.c (linux_read_memory): Change return type to
1816 int. Check for and return error from ptrace().
1817 * target.c (read_inferior_memory): Change return type to int. Pass
1818 back return status from the_target->read_memory().
1819 * target.h (struct target_ops): Adapt *read_memory() prototype.
1820 Update comment.
1821 (read_inferior_memory): Adapt prototype.
1822 * server.c (main): Return an error packet if
1823 read_inferior_memory() returns an error.
1824
a59d1c82
DJ
18252004-03-04 Daniel Jacobowitz <drow@mvista.com>
1826
1827 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
1828 Unify with other clean targets.
1829
dc3f8883
DJ
18302004-02-29 Daniel Jacobowitz <drow@mvista.com>
1831
1832 * server.c (handle_v_cont): Call set_desired_inferior.
1833
89a208da
DJ
18342004-02-29 Daniel Jacobowitz <drow@mvista.com>
1835
1836 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
1837
62ea82f5
DJ
18382004-02-29 Daniel Jacobowitz <drow@mvista.com>
1839
1840 * linux-low.c (linux_wait): Unblock async I/O.
1841 (linux_resume): Block and enable async I/O.
1842 * remote-utils.c (block_async_io, unblock_async_io): New functions.
1843 * server.h (block_async_io, unblock_async_io): Add prototypes.
1844
6910d122
DJ
18452004-02-29 Daniel Jacobowitz <drow@mvista.com>
1846
1847 * remote-utils.c (remote_open): Print a status notice after
1848 opening a TCP port.
1849 * server.c (attach_inferior): Print a status notice after
1850 attaching.
1851
18522004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
1853
1854 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
1855
c89dc5d4
DJ
18562004-02-26 Daniel Jacobowitz <drow@mvista.com>
1857
1858 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
1859 error packet.
1860 * server.c, target.h: Update copyright years.
1861
4b8dad4a
RM
18622004-02-25 Roland McGrath <roland@redhat.com>
1863
1864 * target.h (struct target_ops): New member `read_auxv'.
1865 * server.c (handle_query): Handle qPart:auxv:read: query using that.
1866 * linux-low.c (linux_read_auxv): New function.
1867 (linux_target_ops): Initialize `read_auxv' member to that.
1868
d7446758
JB
18692004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1870
1871 Committed by Jim Blandy <jimb@redhat.com>.
1872
1873 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 1874 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
1875 instead of GPR_SIZE to distiguish s390 and s390x targets.
1876
5544ad89
DJ
18772004-01-31 Daniel Jacobowitz <drow@mvista.com>
1878
1879 * linux-low.c: Update copyright year.
1880 (check_removed_breakpoint): Clear pending_is_breakpoint.
1881 (linux_set_resume_request, linux_queue_one_thread)
1882 (resume_status_pending_p): New functions.
1883 (linux_continue_one_thread): Use process->resume.
1884 (linux_resume): Only resume threads if there are no pending events.
1885 * linux-low.h (struct process_info): Add resume request
1886 pointer.
1887
2a68b70e
DJ
18882004-01-30 Daniel Jacobowitz <drow@mvista.com>
1889
1890 * regcache.c (new_register_cache): Clear the allocated register
1891 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1892
64386c31
DJ
18932003-10-13 Daniel Jacobowitz <drow@mvista.com>
1894
1895 * linux-low.c (linux_resume): Take a struct thread_resume *
1896 argument.
1897 (linux_wait): Update call.
1898 (resume_ptr): New static variable.
1899 (linux_continue_one_thread): Renamed from
1900 linux_continue_one_process. Use resume_ptr.
1901 (linux_resume): Use linux_continue_one_thread.
1902 * server.c (handle_v_cont, handle_v_requests): New functions.
1903 (myresume): New function.
1904 (main): Handle 'v' case.
1905 * target.h (struct thread_resume): New type.
1906 (struct target_ops): Change argument of "resume" to struct
1907 thread_resume *.
1908 (myresume): Delete macro.
1909
c938e9b0
L
19102003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1911
1912 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
1913 (uninstall): Support DESTDIR.
1914
7f313d07
BC
1915Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
1916
1917 * configure.srv: Add xscale*linux copy of arm*linux entry.
1918
3b2fc2ea
DJ
19192003-07-24 Daniel Jacobowitz <drow@mvista.com>
1920
1921 * linux-arm-low.c (arm_reinsert_addr): New function.
1922 (the_low_target): Add arm_reinsert_addr.
1923
1c0a559e
MK
19242003-07-08 Mark Kettenis <kettenis@gnu.org>
1925
1926 * mem-break.c: Remove whitespace at end of file.
1927
43d5792c
DJ
19282003-06-28 Daniel Jacobowitz <drow@mvista.com>
1929
1930 * configure.in: Check whether we need to prototype strerror.
1931 * server.h: Optionally prototype strerror.
1932 * gdbreplay.c (perror_with_name): Use strerror.
1933 * linux-low.c (linux_attach_lwp): Use strerror.
1934 * utils.c (perror_with_name): Use strerror.
1935 * config.in, configure: Regenerated.
1936
c8a86edf
DJ
19372003-06-28 Daniel Jacobowitz <drow@mvista.com>
1938
1939 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
1940 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
1941
73d37363
DJ
19422003-06-20 Daniel Jacobowitz <drow@mvista.com>
1943
1944 * Makefile.in (SFILES): Update.
1945 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
1946 low-sun3.c: Remove files.
1947
6ad8ae5c
DJ
19482003-06-17 Daniel Jacobowitz <drow@mvista.com>
1949
1950 * linux-low.c: Move comment to linux_thread_alive where it belonged.
1951 (linux_detach_one_process, linux_detach): New functions.
1952 (linux_target_ops): Add linux_detach.
1953 * server.c (main): Handle 'D' packet.
1954 * target.h (struct target_ops): Add "detach" member.
1955 (detach_inferior): Define.
1956
1581182a
MK
19572003-06-13 Mark Kettenis <kettenis@gnu.org>
1958
1959 From Kelley Cook <kelleycook@wideopenwest.com>:
1960 * configure.srv: Accept i[34567]86 variants.
1961
e5379b03
DJ
19622003-06-05 Daniel Jacobowitz <drow@mvista.com>
1963
1964 * linux-low.c (linux_wait_for_event): Correct comment typos.
1965 (linux_resume_one_process): Call check_removed_breakpoint.
1966 (linux_send_signal): New function.
1967 (linux_target_ops): Add linux_send_signal.
1968 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
1969 of kill.
1970 * target.h (struct target_ops): Add send_signal.
1971
2ff29de4
JB
19722003-05-29 Jim Blandy <jimb@redhat.com>
1973
1974 * linux-low.c (usr_store_inferior_registers): Transfer buf in
1975 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
1976 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
1977 away part of the register's value.
1978
254787d4
DJ
19792003-03-26 Daniel Jacobowitz <drow@mvista.com>
1980
1981 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
1982 (linux_wait_for_event, linux_init_signals): Likewise.
1983
94e10508
DJ
19842003-03-17 Daniel Jacobowitz <drow@mvista.com>
1985
1986 * configure.in: Check for stdlib.h.
1987 * configure: Regenerated.
1988 * config.in: Regenerated.
1989
4c0711e0
DJ
19902003-01-04 Andreas Schwab <schwab@suse.de>
1991
1992 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
1993
ef66e766
AC
19942003-01-02 Andrew Cagney <ac131313@redhat.com>
1995
1996 * Makefile.in: Remove obsolete code.
1997
a1358604
DJ
19982002-11-20 Daniel Jacobowitz <drow@mvista.com>
1999
2000 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
2001 defined(PT_FPR0_HI).
2002
23ce3b1c
DJ
20032002-11-17 Stuart Hughes <seh@zee2.com>
2004
2005 * linux-arm-low.c (arm_num_regs): Increase.
2006 (arm_regmap): Include status register.
2007
20082002-11-17 Daniel Jacobowitz <drow@mvista.com>
2009
2010 * linux-low.c (register_addr): Remove incorrect -1 check.
2011
a9fa9f7d
DJ
20122002-08-29 Daniel Jacobowitz <drow@mvista.com>
2013
2014 * linux-low.c (linux_create_inferior): Call setpgid. Return
2015 the new PID.
2016 (unstopped_p, linux_signal_pid): Remove.
2017 (linux_target_ops): Remove linux_signal_pid.
2018 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
2019 global instead of target method.
2020 * target.h (struct target_ops): Remove signal_pid. Update comment
2021 for create_inferior.
2022 * server.c (signal_pid): New variable.
2023 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 2024 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
2025 (attach_inferior): Set signal_pid.
2026
17574093
DJ
20272002-08-23 Daniel Jacobowitz <drow@mvista.com>
2028
2029 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
2030
20312002-08-20 Jim Blandy <jimb@redhat.com>
2032
2033 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2034 default for this.
2035
20362002-08-01 Andrew Cagney <cagney@redhat.com>
2037
2038 * Makefile.in: Make chill references obsolete.
2039
20402002-07-24 Kevin Buettner <kevinb@redhat.com>
2041
2042 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
2043 * configure: Regenerate.
2044 * config.in: Regenerate.
2045
20462002-07-09 David O'Brien <obrien@FreeBSD.org>
2047
2048 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
2049 (perror_with_name, remote_close, remote_open, expect, play): Static.
2050
20512002-07-04 Michal Ludvig <mludvig@suse.cz>
2052
4b8dad4a 2053 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
2054 byte offsets instead of an array of indexes.
2055 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
2056
20572002-06-13 Daniel Jacobowitz <drow@mvista.com>
2058
2059 * regcache.c: Add comment.
2060
20612002-06-11 Daniel Jacobowitz <drow@mvista.com>
2062
2063 * thread-db.c: New file.
2064 * proc-service.c: New file.
2065 * acinclude.m4: New file.
2066 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
2067 proc-service.o, and thread-db.o.
2068 (linux-low.o): Add USE_THREAD_DB.
2069 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
2070 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
2071 * aclocal.m4: Regenerated.
2072 * config.in: Regenerated.
2073 * configure: Regenerated.
2074 * configure.in: Check for proc_service.h, sys/procfs.h,
2075 thread_db.h, and linux/elf.h headrs.
2076 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
2077 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
2078 Check for -lthread_db and thread support.
2079 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
2080 PowerPC, and SuperH.
2081 * i387-fp.c: Constify arguments.
2082 * i387-fp.h: Likewise.
2083 * inferiors.c: (struct thread_info): Renamed from
2084 `struct inferior_info'. Remove PID member. Use generic inferior
2085 list header. All uses updated.
2086 (inferiors, signal_pid): Removed.
2087 (all_threads): New variable.
2088 (get_thread): Define.
2089 (add_inferior_to_list): New function.
2090 (for_each_inferior): New function.
2091 (change_inferior_id): New function.
2092 (add_inferior): Removed.
2093 (remove_inferior): New function.
2094 (add_thread): New function.
2095 (free_one_thread): New function.
2096 (remove_thread): New function.
2097 (clear_inferiors): Use for_each_inferior and free_one_thread.
2098 (find_inferior): New function.
2099 (find_inferior_id): New function.
2100 (inferior_target_data): Update argument type.
2101 (set_inferior_target_data): Likewise.
2102 (inferior_regcache_data): Likewise.
2103 (set_inferior_regcache_data): Likewise.
2104 * linux-low.c (linux_bp_reinsert): Remove.
2105 (all_processes, stopping_threads, using_thrads)
2106 (struct pending_signals, debug_threads, pid_of): New.
2107 (inferior_pid): Replace with macro.
2108 (struct inferior_linux_data): Remove.
2109 (get_stop_pc, add_process): New functions.
2110 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
2111 Use add_process and add_thread.
2112 (linux_attach_lwp): New function, based on old linux_attach. Use
2113 add_process and add_thread. Set stop_expected for new threads.
2114 (linux_attach): New function.
2115 (linux_kill_one_process): New function.
2116 (linux_kill): Kill all LWPs.
2117 (linux_thread_alive): Use find_inferior_id.
2118 (check_removed_breakpoints, status_pending_p): New functions.
2119 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
2120 Update. Use WNOHANG. Wait for cloned processes also. Update process
2121 struct for the found process.
2122 (linux_wait_for_event): New function.
2123 (linux_wait): Use it. Support LWPs.
2124 (send_sigstop, wait_for_sigstop, stop_all_processes)
2125 (linux_resume_one_process, linux_continue_one_process): New functions.
2126 (linux_resume): Support LWPs.
2127 (REGISTER_RAW_SIZE): Remove.
2128 (fetch_register): Use register_size instead. Call supply_register.
2129 (usr_store_inferior_registers): Likewise. Call collect_register.
2130 Fix recursive case.
2131 (regsets_fetch_inferior_registers): Improve error message.
2132 (regsets_store_inferior_registers): Add debugging.
2133 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
2134 (unstopped_p, linux_signal_pid): New functions.
2135 (linux_target_ops): Add linux_signal_pid.
2136 (linux_init_signals): New function.
2137 (initialize_low): Call it. Initialize using_threads.
2138 * regcache.c (inferior_regcache_data): Add valid
2139 flag.
2140 (get_regcache): Fetch registers lazily. Add fetch argument
2141 and update all callers.
2142 (regcache_invalidate_one, regcache_invalidate): New
2143 functions.
2144 (new_register_cache): Renamed from create_register_cache.
2145 Return the new regcache.
2146 (free_register_cache): Change argument to a void *.
2147 (registers_to_string, registers_from_string): Call get_regcache
2148 with fetch flag set.
2149 (register_data): Make static. Pass fetch flag to get_regcache.
2150 (supply_register): Call get_regcache with fetch flag clear.
2151 (collect_register): Call get_regcache with fetch flag set.
2152 (collect_register_as_string): New function.
2153 * regcache.h: Update.
2154 * remote-utils.c (putpkt): Flush after debug output and use
2155 stderr.
2156 Handle input interrupts while waiting for an ACK.
2157 (input_interrupt): Use signal_pid method.
2158 (getpkt): Flush after debug output and use stderr.
2159 (outreg): Use collect_register_as_string.
2160 (new_thread_notify, dead_thread_notify): New functions.
2161 (prepare_resume_reply): Check using_threads. Set thread_from_wait
2162 and general_thread.
2163 (look_up_one_symbol): Flush after debug output.
2164 * server.c (step_thread, server_waiting): New variables.
2165 (start_inferior): Don't use signal_pid. Update call to mywait.
2166 (attach_inferior): Update call to mywait.
2167 (handle_query): Handle qfThreadInfo and qsThreadInfo.
2168 (main): Don't fetch/store registers explicitly. Use
2169 set_desired_inferior. Support proposed ``Hs'' packet. Update
2170 calls to mywait.
2171 * server.h: Update.
2172 (struct inferior_list, struct_inferior_list_entry): New.
2173 * target.c (set_desired_inferior): New.
2174 (write_inferior_memory): Constify.
2175 (mywait): New function.
2176 * target.h: Update.
2177 (struct target_ops): New signal_pid method.
2178 (mywait): Removed macro, added prototype.
2179
2180 * linux-low.h (regset_func): Removed.
2181 (regset_fill_func, regset_store_func): New.
2182 (enum regset_type): New.
2183 (struct regset_info): Add type field. Use new operation types.
2184 (struct linux_target_ops): stop_pc renamed to get_pc.
2185 Add decr_pc_after_break and breakpoint_at.
2186 (get_process, get_thread_proess, get_process_thread)
2187 (strut process_info, all_processes, linux_attach_lwp)
2188 (thread_db_init): New.
2189
2190 * linux-arm-low.c (arm_get_pc, arm_set_pc,
2191 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
2192 (the_low_target): Add new members.
2193 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
2194 (i386_store_fpxregset): Constify.
2195 (target_regsets): Add new kind identifier.
2196 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
2197 (i386_set_pc): Add debugging.
2198 (i386_breakpoint_at): New function.
2199 (the_low_target): Add new members.
2200 * linux-mips-low.c (mips_get_pc, mips_set_pc)
2201 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
2202 (mips_breakpoint_at): New.
2203 (the_low_target): Add new members.
2204 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
2205 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
2206 (the_low_target): Add new members.
2207 * linux-sh-low.c (sh_get_pc, sh_set_pc)
2208 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
2209 (the_low_target): Add new members.
2210 * linux-x86-64-low.c (target_regsets): Add new kind
2211 identifier.
2212
22132002-05-15 Daniel Jacobowitz <drow@mvista.com>
2214
2215 From Martin Pool <mbp@samba.org>:
2216 * server.c (gdbserver_usage): New function.
2217 (main): Call it.
2218
22192002-05-14 Daniel Jacobowitz <drow@mvista.com>
2220
2221 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
2222 stop_at -> stop_pc.
2223
22242002-05-04 Andrew Cagney <ac131313@redhat.com>
2225
2226 * Makefile.in: Remove obsolete code.
2227
22282002-04-24 Michal Ludvig <mludvig@suse.cz>
2229
2230 * linux-low.c (regsets_fetch_inferior_registers),
2231 (regsets_store_inferior_registers): Removed cast to int from
2232 ptrace() calls.
2233 * regcache.h: Added declaration of struct inferior_info.
2234
22352002-04-20 Daniel Jacobowitz <drow@mvista.com>
2236
2237 * inferiors.c (struct inferior_info): Add regcache_data.
2238 (add_inferior): Call create_register_cache.
2239 (clear_inferiors): Call free_register_cache.
2240 (inferior_regcache_data, set_inferior_regcache_data): New functions.
2241 * regcache.c (struct inferior_regcache_data): New.
2242 (registers): Remove.
2243 (get_regcache): New function.
2244 (create_register_cache, free_register_cache): New functions.
2245 (set_register_cache): Don't initialize the register cache here.
2246 (registers_to_string, registers_from_string, register_data): Call
2247 get_regcache.
2248 * regcache.h: Add prototypes.
2249 * server.h: Likewise.
2250
22512002-04-20 Daniel Jacobowitz <drow@mvista.com>
2252
2253 * mem-break.c: New file.
2254 * mem-break.h: New file.
2255 * Makefile.in: Add mem-break.o rule; update server.h
2256 dependencies.
2257 * inferiors.c (struct inferior_info): Add target_data
2258 member.
2259 (clear_inferiors): Free target_data member if set.
2260 (inferior_target_data, set_inferior_target_data): New functions.
2261 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
2262 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
2263 * linux-low.c (linux_bp_reinsert): New variable.
2264 (struct inferior_linux_data): New.
2265 (linux_create_inferior): Use set_inferior_target_data.
2266 (linux_attach): Likewise. Call add_inferior.
2267 (linux_wait_for_one_inferior): New function.
2268 (linux_wait): Call it.
2269 (linux_write_memory): Add const.
2270 (initialize_low): Call set_breakpoint_data.
2271 * linux-low.h (struct linux_target_ops): Add breakpoint
2272 handling members.
2273 * server.c (attach_inferior): Remove extra add_inferior
2274 call.
2275 * server.h: Include mem-break.h. Update inferior.c
2276 prototypes.
2277 * target.c (read_inferior_memory)
2278 (write_inferior_memory): New functions.
2279 * target.h (read_inferior_memory)
2280 (write_inferior_memory): Change macros to prototypes.
2281 (struct target_ops): Update comments. Add const to write_memory
2282 definition.
2283
22842002-04-11 Daniel Jacobowitz <drow@mvista.com>
2285
2286 * linux-low.c (usr_store_inferior_registers): Support
2287 registers which are allowed to fail to store.
2288 * linux-low.h (linux_target_ops): Likewise.
2289 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
2290 (ppc_cannot_store_register): FPSCR may not be storable.
2291
22922002-04-09 Daniel Jacobowitz <drow@mvista.com>
2293
2294 * server.h: Include <string.h> if HAVE_STRING_H.
2295 * ChangeLog: Correct paths in last ChangeLog entry.
2296
22972002-04-09 Daniel Jacobowitz <drow@mvista.com>
2298
2299 * linux-low.h: Remove obsolete prototypes.
2300 (struct linux_target_ops): New.
2301 (extern the_low_target): New.
2302 * linux-low.c (num_regs, regmap): Remove declarations.
2303 (register_addr): Use the_low_target explicitly.
2304 (fetch_register): Likewise.
2305 (usr_fetch_inferior_registers): Likewise.
2306 (usr_store_inferior_registers): Likewise.
2307 * linux-arm-low.c (num_regs): Remove.
2308 (arm_num_regs): Define.
2309 (arm_regmap): Renamed from regmap, made static.
2310 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
2311 made static.
2312 (arm_cannot_store_register): Renamed from cannot_store_register,
2313 made static.
2314 (the_low_target): New.
2315 * linux-i386-low.c (num_regs): Remove.
2316 (i386_num_regs): Define.
2317 (i386_regmap): Renamed from regmap, made static.
2318 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
2319 made static.
2320 (i386_cannot_store_register): Renamed from cannot_store_register,
2321 made static.
2322 (the_low_target): New.
2323 * linux-ia64-low.c (num_regs): Remove.
2324 (ia64_num_regs): Define.
2325 (ia64_regmap): Renamed from regmap, made static.
2326 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
2327 made static.
2328 (ia64_cannot_store_register): Renamed from cannot_store_register,
2329 made static.
2330 (the_low_target): New.
2331 * linux-m68k-low.c (num_regs): Remove.
2332 (m68k_num_regs): Define.
2333 (m68k_regmap): Renamed from regmap, made static.
2334 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
2335 made static.
2336 (m68k_cannot_store_register): Renamed from cannot_store_register,
2337 made static.
2338 (the_low_target): New.
2339 * linux-mips-low.c (num_regs): Remove.
2340 (mips_num_regs): Define.
2341 (mips_regmap): Renamed from regmap, made static.
2342 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
2343 made static.
2344 (mips_cannot_store_register): Renamed from cannot_store_register,
2345 made static.
2346 (the_low_target): New.
2347 * linux-ppc-low.c (num_regs): Remove.
2348 (ppc_num_regs): Define.
2349 (ppc_regmap): Renamed from regmap, made static.
2350 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
2351 made static.
2352 (ppc_cannot_store_register): Renamed from cannot_store_register,
2353 made static.
2354 (the_low_target): New.
2355 * linux-s390-low.c (num_regs): Remove.
2356 (s390_num_regs): Define.
2357 (s390_regmap): Renamed from regmap, made static.
2358 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
2359 made static.
2360 (s390_cannot_store_register): Renamed from cannot_store_register,
2361 made static.
2362 (the_low_target): New.
2363 * linux-sh-low.c (num_regs): Remove.
2364 (sh_num_regs): Define.
2365 (sh_regmap): Renamed from regmap, made static.
2366 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
2367 made static.
2368 (sh_cannot_store_register): Renamed from cannot_store_register,
2369 made static.
2370 (the_low_target): New.
2371 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2372 (the_low_target): New.
2373
23742002-04-09 Daniel Jacobowitz <drow@mvista.com>
2375
2376 * Makefile.in: Add stamp-h target.
2377 * configure.in: Create stamp-h.
2378 * configure: Regenerated.
2379
23802002-04-09 Daniel Jacobowitz <drow@mvista.com>
2381
2382 * inferiors.c: New file.
2383 * target.c: New file.
2384 * target.h: New file.
2385 * Makefile.in: Add target.o and inferiors.o. Update
2386 dependencies.
2387 * linux-low.c (inferior_pid): New static variable,
2388 moved from server.c.
2389 (linux_create_inferior): Renamed from create_inferior.
2390 Call add_inferior. Return 0 on success instead of a PID.
2391 (linux_attach): Renamed from myattach.
2392 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
2393 (linux_thread_alive): Renamed from mythread_alive.
2394 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
2395 child dies.
2396 (linux_resume): Renamed from myresume. Add missing ``return 0''.
2397 (regsets_store_inferior_registers): Correct error message.
2398 Add missing ``return 0''.
2399 (linux_fetch_registers): Renamed from fetch_inferior_registers.
2400 (linux_store_registers): Renamed from store_inferior_registers.
2401 (linux_read_memory): Renamed from read_inferior_memory.
2402 (linux_write_memory): Renamed from write_inferior_memory.
2403 (linux_target_ops): New structure.
2404 (initialize_low): Call set_target_ops ().
2405 * remote-utils.c (unhexify): New function.
2406 (hexify): New function.
2407 (input_interrupt): Send signals to ``signal_pid''.
2408 * server.c (inferior_pid): Remove.
2409 (start_inferior): Update create_inferior call.
2410 (attach_inferior): Call add_inferior.
2411 (handle_query): New function.
2412 (main): Call handle_query for `q' packets.
2413 * server.h: Include "target.h". Remove obsolete prototypes.
2414 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
2415
24162002-04-09 Daniel Jacobowitz <drow@mvista.com>
2417
2418 * Makefile.in: Add WARN_CFLAGS. Update configury
2419 dependencies.
2420 * configure.in: Check for <string.h>
2421 * configure: Regenerate.
2422 * config.in: Regenerate.
2423 * gdbreplay.c: Include needed system headers.
2424 (remote_open): Remove strchr prototype.
2425 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
2426 * regcache.c (supply_register): Change buf argument to const void *.
2427 (supply_register_by_name): Likewise.
2428 (collect_register): Change buf argument to void *.
2429 (collect_register_by_name): Likewise.
2430 * regcache.h: Add missing prototypes.
2431 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
2432 * server.c (handle_query): New function.
2433 (attached): New static variable, moved out of main.
2434 (main): Quiet longjmp clobber warnings.
2435 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
2436 * utils.c (error): Remove NORETURN.
2437 (fatal): Likewise.