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