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