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