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