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