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