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