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