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