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