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