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