]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/gdbserver/ChangeLog
* win32-i386-low.c: Rename to ...
[thirdparty/binutils-gdb.git] / gdb / gdbserver / ChangeLog
CommitLineData
544afa54
PA
12007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
2
3 * win32-i386-low.c: Rename to ...
4 * win32-low.c: ... this.
5 * configure.srv: Replace win32-i386-low.o with win32-low.o.
6 * Makefile.in: Likewise.
7
bce7165d
PA
82007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
9
10 * remote-utils.c (monitor_output): Constify msg parameter.
11 * server.h (monitor_output): Likewise.
12 * win32-i386-low.c (handle_output_debug_string): New.
13 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
14 handle_output_debug_string.
15 (get_child_debug_event): Likewise.
16
506c7aa0
DJ
172007-03-27 Mat Hostetter <mat@lcs.mit.edu>
18
19 * server.c (main): Correct strtoul check.
20
42c81e2a
DJ
212007-03-27 Jon Ringle <jon@ringle.org>
22
23 * linux-low.c: Check __ARCH_HAS_MMU__ also.
24
9453113a
DJ
252007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
26
27 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
28
64a69107
DJ
292007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
30
31 * terminal.h: Check HAVE_SGTTY_H.
32
332007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
34
35 * remote-utils.c (remote_open): Print out the assigned port number.
36
c74d0ad8
DJ
372007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
38
39 * remote-utils.c (monitor_output): New function.
40 * server.c (debug_threads): Define here.
41 (monitor_show_help): New function.
42 (handle_query): Handle qRcmd.
43 (main): Do not handle 'd' packet.
44 * server.h (debug_threads, remote_debug, monitor_output): Declare.
45 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
46 of debug_threads.
47
de7c3b4a
PA
482007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
49
50 * Makefile.in (EXEEXT): New.
51 (clean): Use $(EXEEXT).
52
ef57601b
PA
532007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
54
55 * target.h (target_ops): Rename send_signal to request_interrupt,
56 and remove enum target_signal parameter.
57 * linux-low.c (linux_request_interrupt): Rename from
58 linux_send_signal, and always send SIGINT.
59 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
60 and always send SIGINT.
61 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
62 of send_signal.
63 (input_interrupt): Likewise.
64
820f2bda
PA
652007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
66
67 * server.c (get_features_xml): Check if target implemented
68 arch_string.
69 * win32-i386-low.c (win32_arch_string): New.
70 (win32_target_ops): Add win32_arch_string as arch_string member.
71
ab39bf24
UW
722007-02-22 Markus Deuling <deuling@de.ibm.com>
73
74 * spu-low.c (spu_arch_string): New.
75 (spu_target_ops): Add spu_arch_string.
76
61ff6e04
DJ
772007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
78
79 * remote-utils.c: Remove HAVE_TERMINAL_H check.
80 * configure.ac: Do not check for terminal.h.
81 * configure, config.in: Regenerated.
82
fb1e4ffc
DJ
832007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
84
85 * Makefile.in (OBS): Add $(XML_BUILTIN).
86 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
87 (clean): Update.
88 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
89 (arm-with-iwmmxt.c): New.
90 * config.in, configure: Regenerate.
91 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
92 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
93 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
94 (arm*-*-linux*): Add iWMMXt and regset support.
95 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
96 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
97 (arm_store_wmmxregset, target_regsets): New.
98 * server.c (get_features_xml): Take annex argument. Check builtin
99 XML documents.
100 (handle_query): Handle multiple annexes.
101
0f48aa01
DJ
1022007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
103
104 * remote-utils.c [USE_WIN32API] (read, write): Define.
105 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
106 write.
107
23181151
DJ
1082007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
109
110 * linux-i386-low.c (the_low_target): Set arch_string.
111 * linux-x86-64-low.c (the_low_target): Likewise.
112 * linux-low.c (linux_arch_string): New.
113 (linux_target_ops): Add it.
114 * linux-low.h (struct linux_target_ops): Add arch_string.
115 * server.c (write_qxfer_response): Use const void * for DATA.
116 (get_features_xml): New.
117 (handle_query): Handle qXfer:features:read. Report it for qSupported.
118 * target.h (struct target_ops): Add arch_string method.
119
9d606399
DJ
1202007-01-03 Denis Pilat <denis.pilat@st.com>
121 Daniel Jacobowitz <dan@codesourcery.com>
122
123 * linux-low.c (linux_kill): Handle being called with no threads.
124 * win32-i386-low.c (win32_kill): Likewise.
125 (get_child_debug_event): Clear current_process_handle.
126
1272006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
128 Daniel Jacobowitz <dan@codesourcery.com>
129
130 * remote-utils.c (remote_open): Check the type of specified
131 serial port devices before opening them.
132 * server.c (main): Kill the inferior if an error occurs during
133 the first remote_open.
134
a5e13d24
DJ
1352006-12-05 Markus Deuling <deuling@de.ibm.com>
136
137 * README: Update supported targets.
138
186947f7
DJ
1392006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
140
141 * Makefile.in (clean): Remove reg-mips64.c.
142 (reg-mips64.c, reg-mips64.o): New rules.
143 * configure.srv: Handle mips64. Include regset support for mips.
144 * linux-mips-low.c (union mips_register): New.
145 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
146 (mips_breakpoint, mips_breakpoint_at): Use int.
147 (mips_collect_register, mips_supply_register)
148 (mips_collect_register_32bit, mips_supply_register_32bit)
149 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
150 (mips_store_fpregset, target_regsets): New.
151 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
152
a13e2c95
UW
1532006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
154
155 * configure.srv: Add target "spu*-*-*".
156 * Makefile.in (clean): Remove reg-spu.c.
157 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
158 * spu-low.c: New file.
159
cb7283db
DJ
1602006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
161
162 * configure.ac: Correct td_thr_tls_get_addr test.
163 * configure: Regenerated.
164
89be2091
DJ
1652006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
166
167 * linux-low.c (linux_wait_for_event): Reformat. Use the
168 pass_signals array.
169 * remote-utils.c (decode_address_to_semicolon): New.
170 * server.c (pass_signals, handle_general_set): New.
171 (handle_query): Mention QPassSignals for qSupported.
172 (main): Call handle_general_set.
173 * server.h (pass_signals, decode_address_to_semicolon): New.
174
000ef4f0
DJ
1752006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
176
177 * server.c (handle_query): Correct error handling for read_auxv.
178
b7149293
UW
1792005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
180
181 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
182 and srv_linux_thread_db to yes.
183 * linux-s390-low.c (s390_fill_gregset): New function.
184 (target_regsets): Define data structure.
185
dae5f5cf
DJ
1862006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
187
188 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
189 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
190 * config.in, configure: Regenerated.
191 * inferiors.c (gdb_id_to_thread): New function.
192 (gdb_id_to_thread_id): Use it.
193 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
194 * linux-low.h (struct process_info): Add th member.
195 (thread_db_get_tls_address): New prototype.
196 * remote-utils.c (decode_address): Make non-static.
197 * server.c (handle_query): Handle qGetTLSAddr.
198 * server.h (gdb_id_to_thread, decode_address): New prototypes.
199 * target.h (struct target_ops): Add get_tls_address.
200 * thread-db.c (maybe_attach_thread): Save the thread handle.
201 (thread_db_get_tls_address): New.
202
32ca6d61
DJ
2032006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
204
205 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
206 (linux_resume_one_process): Take a siginfo_t *. Update all
207 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
208 (struct pending_signals): Add a siginfo_t.
209 (linux_wait_for_process): Always set last_status.
210 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
211 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
212 * linux-low.h (struct process_info): Add last_status.
213
5ffff7c1
DJ
2142006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
215
216 * remote-utils.c (try_rle): New function.
217 (putpkt_binary): Use it.
218
8695c747
DJ
2192006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
220
221 * Makefile.in (clean): Clean reg-x86-64-linux.c.
222 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
223 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
224 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
225 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
226 point registers.
227
290fadea
RS
2282006-08-08 Richard Sandiford <richard@codesourcery.com>
229
230 * server.c (terminal_fd): New variable.
231 (old_foreground_pgrp): Likewise.
232 (restore_old_foreground_pgrp): New function.
233 (start_inferior): Record the terminal file descriptor in terminal_fd
234 and its original foreground group in old_foreground_pgrp. Register
235 restore_old_foreground_pgrp with atexit().
236
9f2e1e63
DJ
2372006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
238
239 * server.c (handle_query): Correct qPart to qXfer.
240
b80864fb
DJ
2412006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
242
243 * configure.ac: Check for more headers which are missing on
244 Windows. Automatically supply -lwsock32 and USE_WIN32API.
245 * configure.srv: Add Cygwin and mingw32.
246 * remote-utils.c: Don't include headers unconditionally which
247 are missing on mingw32. Include <winsock.h> for mingw32.
248 (remote_open): Adjust for mingw32 support. Flush
249 standard error after writing to it.
250 (remote_close, putpkt_binary, input_interrupt, block_async_io)
251 (unblock_async_io, enable_async_io, disable_async_io)
252 (readchar, getpkt): Update for Winsock support.
253 (prepare_resume_reply): Expect a protocol signal number.
254 * server.c: Disable <sys/wait.h> on mingw32.
255 (start_inferior): Adjust for mingw32 support. Flush
256 standard error after writing to it.
257 (attach_inferior): Likewise. Use protocol signal
258 numbers.
259 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
260 and names.
261 * win32-i386-low.c: New file.
262 * Makefile.in (XM_CLIBS): Set.
263 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
264 (win32-i386-low.o): New dependency rule.
265 * linux-low.c (linux_wait): Use target signal numbers.
266 * target.h (struct target_ops): Doc fix.
267 * server.h (target_signal_to_name): New prototype.
268 * gdbreplay.c: Don't include headers unconditionally which
269 are missing on mingw32. Include <winsock.h> for mingw32.
270 (remote_close, remote_open): Adjust for Winsock support.
271 * configure, config.in: Regenerated.
272
0876f84a
DJ
2732006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
274
275 * server.c (decode_xfer_read, write_qxfer_response): New.
276 (handle_query): Take a packet length argument. Handle
277 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
278 the qSupported response.
279 (main): Update call to handle_query.
280
01f9e8fa
DJ
2812006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
282
283 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
284 (putpkt_binary): Renamed from putpkt and adjusted for binary
285 data.
286 (putpkt): New wrapper for putpkt_binary.
287 (readchar): Don't mask off the high bit.
288 (decode_X_packet): New function.
289 * server.c (main): Call putpkt_binary if a handler sets the packet
290 length. Save the length of the incoming packet. Handle 'X'.
291 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
292
be2a5f71
DJ
2932006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
294
295 * server.c (handle_query): Handle qSupported.
296
ea025f5f
DJ
2972006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
298
299 * remote-utils.c (all_symbols_looked_up): New variable.
300 (look_up_one_symbol): Check it.
301 * server.h (look_up_one_symbol): New declaration.
302 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
303
9308fc88
DJ
3042006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
305
306 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 307 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
308 (PTRACE_GET_THREAD_AREA): Define.
309 (ps_get_thread_area): New function.
310
52fb6437
NS
3112006-05-09 Nathan Sidwell <nathan@codesourcery.com>
312
313 * configure.srv (m68k*-*-uclinux*): New target.
314 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
315 (linux_resume_one_process): Remove extraneous cast.
316 (linux_read_offsets): New.
317 (linux_target_op): Add linux_read_offsets on mmuless systems.
318 * server.c (handle_query): Add qOffsets logic.
319 * target.h (struct target_ops): Add read_offsets.
320
21b0f40c
DJ
3212006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
322
323 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
324 (PTRACE_GET_THREAD_AREA): Define.
325 (ps_get_thread_area): New function.
326 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
327 (linux-x86-64-low.o): Update.
328
0050a760
DJ
3292006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
330
331 * configure.ac: Remove checks for prfpregset_t.
332 * gdb_proc_service.h: New file.
333 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
334 new "gdb_proc_service.h".
335 * proc-service.c: Likewise.
336 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
337 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
338 * Makefile.in (gdb_proc_service_h): Updated.
339 * configure, config.in: Regenerated.
340
b92a518e
DJ
3412006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
342
343 * remote-utils.c (prepare_resume_reply): Move declaration
344 of gdb_id_from_wait to the top of the block.
345
545587ee
DJ
3462006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
347
348 * linux-low.c (regsets_store_inferior_registers): Read the regset
349 from the target before filling it.
350
9db87ebd
DJ
3512006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
352
353 * server.c (attach_inferior): Return SIGTRAP for a successful
354 attach.
355
dd24457d
DJ
3562006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
357
358 * Makefile.in (OBS): Add version.o.
359 (STAGESTUFF): Delete.
360 (version.o): Add dependencies.
361 (version.c): Replace rule.
362 (clean): Remove version.c.
363 * server.c (gdbserver_version): New.
364 (gdbserver_usage): Use printf.
365 (main): Handle --version and --help.
366 * server.h (version, host_name): Add declarations.
367
6f0f660e
EZ
3682005-12-23 Eli Zaretskii <eliz@gnu.org>
369
370 * linux-arm-low.c:
371 * linux-arm-low.c:
372 * inferiors.c:
373 * i387-fp.h:
374 * i387-fp.c:
375 * gdbreplay.c:
376 * regcache.c:
377 * proc-service.c:
378 * mem-break.h:
379 * mem-break.c:
380 * linux-x86-64-low.c:
381 * linux-sh-low.c:
382 * linux-s390-low.c:
383 * linux-ppc64-low.c:
384 * linux-ppc-low.c:
385 * linux-mips-low.c:
386 * linux-m68k-low.c:
387 * linux-m32r-low.c:
388 * linux-low.h:
389 * linux-low.c:
390 * linux-ia64-low.c:
391 * linux-i386-low.c:
392 * linux-crisv32-low.c:
393 * thread-db.c:
394 * terminal.h:
395 * target.h:
396 * target.c:
397 * server.h:
398 * server.c:
399 * remote-utils.c:
400 * regcache.h:
401 * utils.c:
402 * Makefile.in:
403 * configure.ac:
404 * gdbserver.1: Add (C) after Copyright. Update the FSF
405 address.
406
9d1fb177
DJ
4072005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
408
409 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
410 (arm_breakpoint_at): Recognize both breakpoints.
411 (the_low_target): Use the correct breakpoint instruction.
412
011a70c2
DJ
4132005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
414
415 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
416 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
417 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
418 (the_low_target): Update.
419
7fb85e41
AS
4202005-10-25 Andreas Schwab <schwab@suse.de>
421
422 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
423
424 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
425 (ia64_num_regs): Reduce to 462.
426
3db0444b
DJ
4272005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
428
429 * acinclude.m4: Correct quoting.
430 * aclocal.m4: Regenerated.
431
432 Suggested by SZOKOVACS Robert <szo@ies.hu>:
433 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
434 (thread_db_init): Call thread_db_err_str.
435 * configure.ac: Check for TD_VERSION.
436 * config.in, configure: Regenerated.
437
bee0189a
DJ
4382005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
439
440 * server.h (error, fatal, warning): Add ATTR_FORMAT.
441
e9d25b98
DJ
4422005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
443
444 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
445 is not available. Define HAVE_PTRACE_GETREGS if it is.
446 * config.in, configure: Regenerated.
447 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
448 * linux-i386-low.c, linux-m68k-low.c: Update to use
449 HAVE_PTRACE_GETREGS.
450 * linux-low.c (regsets_fetch_inferior_registers)
451 (regsets_store_inferior_registers): Only return 0 if we processed
452 GENERAL_REGS.
453 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
454 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
455
a06660f7
DJ
4562005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
457
458 * inferiors.c (struct thread_info): Add gdb_id.
459 (add_thread): Add gdb_id argument.
460 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
461 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
462 calls to add_thread.
463 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
464 * server.c (handle_query): Use thread_to_gdb_id.
465 (handle_v_cont, main): Use gdb_id_to_thread_id.
466 * server.h (add_thread): Update prototype.
467 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
468 prototypes.
469
5a1f5858
DJ
4702005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
471
472 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
473 left-padded registers.
474 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
475 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
476
e122f1f5
SE
4772005-07-01 Steve Ellcey <sje@cup.hp.com>
478
479 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
480 * configure: Regenerate.
481 * config.in: Regenerate.
482 * server.h (NEED_DECLARATION_STRERROR):
483 Replace with !HAVE_DECL_STRERROR.
484
d592fa2f
DJ
4852005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
486
487 * linux-low.c (linux_wait, linux_send_signal): Don't test
488 an unsigned long variable for > 0 if it could be MAX_ULONG.
489 * server.c (myresume): Likewise.
490 * target.c (set_desired_inferior): Likewise.
491
ccbd4912
MK
4922005-06-13 Mark Kettenis <kettenis@gnu.org>
493
494 * configure.ac: Simplify and improve check for socklen_t.
495 * configure, config.in: Regenerate.
496
f450004a
DJ
4972005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
498
499 * acconfig.h: Remove.
500 * configure.ac: Add a test for socklen_t. Use three-argument
501 AC_DEFINE throughout.
502 * config.in: Regenerated using autoheader 2.59.
503 * configure: Regenerated.
504
505 * gdbreplay.c (socklen_t): Provide a default.
506 (remote_open): Use socklen_t.
507 * remote-utils.c (socklen_t): Provide a default.
508 (remote_open): Use socklen_t.
509 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
510 unsigned char.
511
512 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
513 char for buffers.
514 * linux-low.c (linux_read_memory, linux_write_memory)
515 (linux_read_auxv): Likewise.
516 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
517 (check_mem_write): Likewise.
518 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
519 Likewise.
520 * regcache.c (struct inferior_rgcache_data, registers_to_string)
521 (registers_from_string, register_data): Likewise.
522 * server.c (handle_query, main): Likewise.
523 * server.h (convert_ascii_to_int, convert_int_to_ascii)
524 (decode_M_packet): Likewise.
525 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
526 * target.h (struct target_ops): Update read_memory, write_memory,
527 and read_auxv.
528 (read_inferior_memory, write_inferior_memory): Update.
529 * linux-low.h (struct linux_target_ops): Change type of breakpoint
530 to unsigned char *.
531 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
532 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
533 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
534 linux-s390-low.c, linux-sh-low.c: Update for changes in
535 read_inferior_memory and the_low_target->breakpoint.
536
eee84df1
DJ
5372005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
538
539 * Makefile.in (SFILES): Add linux-ppc64-low.c.
540 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
541 * configure.srv: Add powerpc64-*-linux*.
542 * linux-ppc64-low.c: New file.
543
45b134e5
OF
5442005-05-23 Orjan Friberg <orjanf@axis.com>
545
546 * linux-cris-low.c: New file with support for CRIS.
547 * linux-crisv32-low.c: Ditto for CRISv32.
548 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
549 (clean): Add reg-cris.c and reg-crisv32.c.
550 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
551 reg-crisv32.o, and reg-crisv32.c to make rules.
552 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
553 recognized targets.
554
48d93c75
UW
5552005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
556
557 * linux-low.c (fetch_register): Ensure buffer size is a multiple
558 of sizeof (PTRACE_XFER_TYPE).
559 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
560
e013ee27
OF
5612005-05-12 Orjan Friberg <orjanf@axis.com>
562
563 * target.h (struct target_ops): Add insert_watchpoint,
564 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
565 pointers for hardware watchpoint support.
566 * linux-low.h (struct linux_target_ops): Ditto.
567 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
568 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
569 to linux_target_ops.
570 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
571 reply packet.
572 * server.c (main): Recognize 'Z' and 'z' packets.
573
b0ded00b
UW
5742005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
575
576 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
577 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
578 (the_low_target): Add new members.
579
8643e2ad
DJ
5802005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
581
582 * proc-service.c (ps_lgetregs): Search all_processes instead of
583 all_threads.
584
fc620387
DJ
5852005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
586
587 * server.c (start_inferior): Change return type to int.
588 (attach_inferior): Change sigptr to int *.
589 (handle_v_cont, handle_v_requests): Change signal to int *.
590 (main): Change signal to int.
591
5922005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
593
594 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
595 * configure.srv: Add m32r*-*-linux*.
596 * linux-m32r-low.c: New file.
597
e0e76420
DJ
5982005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
599
600 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
601
a1928bad
DJ
6022005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
603
604 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
605 Take unsigned long arguments for PIDs.
606 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
607 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
608 (wait_for_sigstop, linux_resume_one_process)
609 (regsets_fetch_inferior_registers, linux_send_signal)
610 (linux_read_auxv): Likewise. Update the types of variables holding
611 PIDs. Update format string specifiers.
612 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
613 * remote-utils.c (prepare_resume_reply): Likewise.
614 * server.c (cont_thread, general_thread, step_thread)
615 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
616 unsigned long.
617 (handle_query): Update format specifiers.
618 (handle_v_cont, main): Use strtoul for thread IDs.
619 * server.h (struct inferior_list_entry): Use unsigned long for ID.
620 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
621 (general_thread, step_thread, thread_from_wait)
622 (old_thread_from_wait): Update.
623 * target.h (struct thread_resume): Use unsigned long for THREAD.
624 (struct target_ops): Use unsigned long for arguments to attach and
625 thread_alive.
626
dcdb98d2
DJ
6272005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
628
629 * acinclude.m4: Include bfd/bfd.m4 directly.
630 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
631 <agriffis@toolchain.org>.
632 * aclocal.m4, configure: Regenerated.
633
bec39cab
AC
6342005-01-07 Andrew Cagney <cagney@gnu.org>
635
636 * configure.ac: Rename configure.in, require autoconf 2.59.
637 * configure: Re-generate.
638
434c4c77
DJ
6392004-12-08 Daniel Jacobowitz <dan@debian.org>
640
641 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
642 LIBS when finished.
643 * aclocal.m4: Regenerated.
644 * configure: Regenerated.
645
db1d3e1b
AS
6462004-11-21 Andreas Schwab <schwab@suse.de>
647
648 * linux-m68k-low.c (m68k_num_gregs): Define.
649 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
650 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
651 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
652 (m68k_breakpoint_at): New. Add to the_low_target.
653
654 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
655 srv_linux_thread_db to yes.
656
43360365
JB
6572004-10-20 Joel Brobecker <brobecker@gnat.com>
658
659 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
660 (ARCH_SET_FS): Likewise.
661 (ARCH_GET_FS): Likewise.
662 (ARCH_GET_GS): Likewise.
663
fd500816
DJ
6642004-10-16 Daniel Jacobowitz <dan@debian.org>
665
666 * linux-i386-low.c (ps_get_thread_area): New.
667 * linux-x86-64-low.c (ps_get_thread_area): New.
668 * linux-low.c: Include <sys/syscall.h>.
669 (linux_kill_one_process): Don't kill the first thread here.
670 (linux_kill): Kill the first thread here.
671 (kill_lwp): New function.
672 (send_sigstop, linux_send_signal): Use it.
673 * proc-service.c: Clean up #ifdefs.
674 (fpregset_info): Delete.
675 (ps_lgetregs): Update and enable implementation.
676 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
677 implementations.
678 * remote-utils.c (struct sym_cache, symbol_cache): New.
679 (input_interrupt): Print a clearer message.
680 (async_io_enabled): New variable.
681 (enable_async_io, disable_async_io): Use it. Update comments.
682 (look_up_one_symbol): Use the symbol cache.
683 * thread-db.c (thread_db_look_up_symbols): New function.
684 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
685
f6de3c42
DJ
6862004-10-16 Daniel Jacobowitz <dan@debian.org>
687
688 * configure.in: Test for -rdynamic.
689 * configure: Regenerated.
690 * Makefile (INTERNAL_LDFLAGS): New.
691 (gdbserver, gdbreplay): Use it.
692
2c0fc042
AC
6932004-09-02 Andrew Cagney <cagney@gnu.org>
694
695 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
696
075b3282
DJ
6972004-03-23 Daniel Jacobowitz <drow@mvista.com>
698
699 * linux-low.c (linux_wait): Clear all_processes list also.
700
fa6a77dc
DJ
7012004-03-12 Daniel Jacobowitz <drow@mvista.com>
702
703 * linux-low.c: Include <errno.h>. Remove extern declaration of
704 errno.
705
6d782a97
DJ
7062004-03-12 Daniel Jacobowitz <drow@mvista.com>
707
708 * gdbreplay.c, server.h, utils.c: Update copyright years.
709
3a7fb99b
DJ
7102004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
711
712 * server.c (main): Print child status or termination signal from
713 variable 'signal', not 'sig'.
714
c3e735a6
DJ
7152004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
716
717 * linux-low.c (linux_read_memory): Change return type to
718 int. Check for and return error from ptrace().
719 * target.c (read_inferior_memory): Change return type to int. Pass
720 back return status from the_target->read_memory().
721 * target.h (struct target_ops): Adapt *read_memory() prototype.
722 Update comment.
723 (read_inferior_memory): Adapt prototype.
724 * server.c (main): Return an error packet if
725 read_inferior_memory() returns an error.
726
a59d1c82
DJ
7272004-03-04 Daniel Jacobowitz <drow@mvista.com>
728
729 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
730 Unify with other clean targets.
731
dc3f8883
DJ
7322004-02-29 Daniel Jacobowitz <drow@mvista.com>
733
734 * server.c (handle_v_cont): Call set_desired_inferior.
735
89a208da
DJ
7362004-02-29 Daniel Jacobowitz <drow@mvista.com>
737
738 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
739
62ea82f5
DJ
7402004-02-29 Daniel Jacobowitz <drow@mvista.com>
741
742 * linux-low.c (linux_wait): Unblock async I/O.
743 (linux_resume): Block and enable async I/O.
744 * remote-utils.c (block_async_io, unblock_async_io): New functions.
745 * server.h (block_async_io, unblock_async_io): Add prototypes.
746
6910d122
DJ
7472004-02-29 Daniel Jacobowitz <drow@mvista.com>
748
749 * remote-utils.c (remote_open): Print a status notice after
750 opening a TCP port.
751 * server.c (attach_inferior): Print a status notice after
752 attaching.
753
7542004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
755
756 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
757
c89dc5d4
DJ
7582004-02-26 Daniel Jacobowitz <drow@mvista.com>
759
760 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
761 error packet.
762 * server.c, target.h: Update copyright years.
763
4b8dad4a
RM
7642004-02-25 Roland McGrath <roland@redhat.com>
765
766 * target.h (struct target_ops): New member `read_auxv'.
767 * server.c (handle_query): Handle qPart:auxv:read: query using that.
768 * linux-low.c (linux_read_auxv): New function.
769 (linux_target_ops): Initialize `read_auxv' member to that.
770
d7446758
JB
7712004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
772
773 Committed by Jim Blandy <jimb@redhat.com>.
774
775 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 776 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
777 instead of GPR_SIZE to distiguish s390 and s390x targets.
778
5544ad89
DJ
7792004-01-31 Daniel Jacobowitz <drow@mvista.com>
780
781 * linux-low.c: Update copyright year.
782 (check_removed_breakpoint): Clear pending_is_breakpoint.
783 (linux_set_resume_request, linux_queue_one_thread)
784 (resume_status_pending_p): New functions.
785 (linux_continue_one_thread): Use process->resume.
786 (linux_resume): Only resume threads if there are no pending events.
787 * linux-low.h (struct process_info): Add resume request
788 pointer.
789
2a68b70e
DJ
7902004-01-30 Daniel Jacobowitz <drow@mvista.com>
791
792 * regcache.c (new_register_cache): Clear the allocated register
793 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
794
64386c31
DJ
7952003-10-13 Daniel Jacobowitz <drow@mvista.com>
796
797 * linux-low.c (linux_resume): Take a struct thread_resume *
798 argument.
799 (linux_wait): Update call.
800 (resume_ptr): New static variable.
801 (linux_continue_one_thread): Renamed from
802 linux_continue_one_process. Use resume_ptr.
803 (linux_resume): Use linux_continue_one_thread.
804 * server.c (handle_v_cont, handle_v_requests): New functions.
805 (myresume): New function.
806 (main): Handle 'v' case.
807 * target.h (struct thread_resume): New type.
808 (struct target_ops): Change argument of "resume" to struct
809 thread_resume *.
810 (myresume): Delete macro.
811
c938e9b0
L
8122003-08-08 H.J. Lu <hongjiu.lu@intel.com>
813
814 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
815 (uninstall): Support DESTDIR.
816
7f313d07
BC
817Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
818
819 * configure.srv: Add xscale*linux copy of arm*linux entry.
820
3b2fc2ea
DJ
8212003-07-24 Daniel Jacobowitz <drow@mvista.com>
822
823 * linux-arm-low.c (arm_reinsert_addr): New function.
824 (the_low_target): Add arm_reinsert_addr.
825
1c0a559e
MK
8262003-07-08 Mark Kettenis <kettenis@gnu.org>
827
828 * mem-break.c: Remove whitespace at end of file.
829
43d5792c
DJ
8302003-06-28 Daniel Jacobowitz <drow@mvista.com>
831
832 * configure.in: Check whether we need to prototype strerror.
833 * server.h: Optionally prototype strerror.
834 * gdbreplay.c (perror_with_name): Use strerror.
835 * linux-low.c (linux_attach_lwp): Use strerror.
836 * utils.c (perror_with_name): Use strerror.
837 * config.in, configure: Regenerated.
838
c8a86edf
DJ
8392003-06-28 Daniel Jacobowitz <drow@mvista.com>
840
841 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
842 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
843
73d37363
DJ
8442003-06-20 Daniel Jacobowitz <drow@mvista.com>
845
846 * Makefile.in (SFILES): Update.
847 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
848 low-sun3.c: Remove files.
849
6ad8ae5c
DJ
8502003-06-17 Daniel Jacobowitz <drow@mvista.com>
851
852 * linux-low.c: Move comment to linux_thread_alive where it belonged.
853 (linux_detach_one_process, linux_detach): New functions.
854 (linux_target_ops): Add linux_detach.
855 * server.c (main): Handle 'D' packet.
856 * target.h (struct target_ops): Add "detach" member.
857 (detach_inferior): Define.
858
1581182a
MK
8592003-06-13 Mark Kettenis <kettenis@gnu.org>
860
861 From Kelley Cook <kelleycook@wideopenwest.com>:
862 * configure.srv: Accept i[34567]86 variants.
863
e5379b03
DJ
8642003-06-05 Daniel Jacobowitz <drow@mvista.com>
865
866 * linux-low.c (linux_wait_for_event): Correct comment typos.
867 (linux_resume_one_process): Call check_removed_breakpoint.
868 (linux_send_signal): New function.
869 (linux_target_ops): Add linux_send_signal.
870 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
871 of kill.
872 * target.h (struct target_ops): Add send_signal.
873
2ff29de4
JB
8742003-05-29 Jim Blandy <jimb@redhat.com>
875
876 * linux-low.c (usr_store_inferior_registers): Transfer buf in
877 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
878 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
879 away part of the register's value.
880
254787d4
DJ
8812003-03-26 Daniel Jacobowitz <drow@mvista.com>
882
883 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
884 (linux_wait_for_event, linux_init_signals): Likewise.
885
94e10508
DJ
8862003-03-17 Daniel Jacobowitz <drow@mvista.com>
887
888 * configure.in: Check for stdlib.h.
889 * configure: Regenerated.
890 * config.in: Regenerated.
891
4c0711e0
DJ
8922003-01-04 Andreas Schwab <schwab@suse.de>
893
894 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
895
ef66e766
AC
8962003-01-02 Andrew Cagney <ac131313@redhat.com>
897
898 * Makefile.in: Remove obsolete code.
899
a1358604
DJ
9002002-11-20 Daniel Jacobowitz <drow@mvista.com>
901
902 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
903 defined(PT_FPR0_HI).
904
23ce3b1c
DJ
9052002-11-17 Stuart Hughes <seh@zee2.com>
906
907 * linux-arm-low.c (arm_num_regs): Increase.
908 (arm_regmap): Include status register.
909
9102002-11-17 Daniel Jacobowitz <drow@mvista.com>
911
912 * linux-low.c (register_addr): Remove incorrect -1 check.
913
a9fa9f7d
DJ
9142002-08-29 Daniel Jacobowitz <drow@mvista.com>
915
916 * linux-low.c (linux_create_inferior): Call setpgid. Return
917 the new PID.
918 (unstopped_p, linux_signal_pid): Remove.
919 (linux_target_ops): Remove linux_signal_pid.
920 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
921 global instead of target method.
922 * target.h (struct target_ops): Remove signal_pid. Update comment
923 for create_inferior.
924 * server.c (signal_pid): New variable.
925 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 926 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
927 (attach_inferior): Set signal_pid.
928
17574093
DJ
9292002-08-23 Daniel Jacobowitz <drow@mvista.com>
930
931 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
932
9332002-08-20 Jim Blandy <jimb@redhat.com>
934
935 * Makefile.in (LDFLAGS): Allow the configure script to establish a
936 default for this.
937
9382002-08-01 Andrew Cagney <cagney@redhat.com>
939
940 * Makefile.in: Make chill references obsolete.
941
9422002-07-24 Kevin Buettner <kevinb@redhat.com>
943
944 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
945 * configure: Regenerate.
946 * config.in: Regenerate.
947
9482002-07-09 David O'Brien <obrien@FreeBSD.org>
949
950 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
951 (perror_with_name, remote_close, remote_open, expect, play): Static.
952
9532002-07-04 Michal Ludvig <mludvig@suse.cz>
954
4b8dad4a 955 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
956 byte offsets instead of an array of indexes.
957 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
958
9592002-06-13 Daniel Jacobowitz <drow@mvista.com>
960
961 * regcache.c: Add comment.
962
9632002-06-11 Daniel Jacobowitz <drow@mvista.com>
964
965 * thread-db.c: New file.
966 * proc-service.c: New file.
967 * acinclude.m4: New file.
968 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
969 proc-service.o, and thread-db.o.
970 (linux-low.o): Add USE_THREAD_DB.
971 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
972 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
973 * aclocal.m4: Regenerated.
974 * config.in: Regenerated.
975 * configure: Regenerated.
976 * configure.in: Check for proc_service.h, sys/procfs.h,
977 thread_db.h, and linux/elf.h headrs.
978 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
979 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
980 Check for -lthread_db and thread support.
981 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
982 PowerPC, and SuperH.
983 * i387-fp.c: Constify arguments.
984 * i387-fp.h: Likewise.
985 * inferiors.c: (struct thread_info): Renamed from
986 `struct inferior_info'. Remove PID member. Use generic inferior
987 list header. All uses updated.
988 (inferiors, signal_pid): Removed.
989 (all_threads): New variable.
990 (get_thread): Define.
991 (add_inferior_to_list): New function.
992 (for_each_inferior): New function.
993 (change_inferior_id): New function.
994 (add_inferior): Removed.
995 (remove_inferior): New function.
996 (add_thread): New function.
997 (free_one_thread): New function.
998 (remove_thread): New function.
999 (clear_inferiors): Use for_each_inferior and free_one_thread.
1000 (find_inferior): New function.
1001 (find_inferior_id): New function.
1002 (inferior_target_data): Update argument type.
1003 (set_inferior_target_data): Likewise.
1004 (inferior_regcache_data): Likewise.
1005 (set_inferior_regcache_data): Likewise.
1006 * linux-low.c (linux_bp_reinsert): Remove.
1007 (all_processes, stopping_threads, using_thrads)
1008 (struct pending_signals, debug_threads, pid_of): New.
1009 (inferior_pid): Replace with macro.
1010 (struct inferior_linux_data): Remove.
1011 (get_stop_pc, add_process): New functions.
1012 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
1013 Use add_process and add_thread.
1014 (linux_attach_lwp): New function, based on old linux_attach. Use
1015 add_process and add_thread. Set stop_expected for new threads.
1016 (linux_attach): New function.
1017 (linux_kill_one_process): New function.
1018 (linux_kill): Kill all LWPs.
1019 (linux_thread_alive): Use find_inferior_id.
1020 (check_removed_breakpoints, status_pending_p): New functions.
1021 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
1022 Update. Use WNOHANG. Wait for cloned processes also. Update process
1023 struct for the found process.
1024 (linux_wait_for_event): New function.
1025 (linux_wait): Use it. Support LWPs.
1026 (send_sigstop, wait_for_sigstop, stop_all_processes)
1027 (linux_resume_one_process, linux_continue_one_process): New functions.
1028 (linux_resume): Support LWPs.
1029 (REGISTER_RAW_SIZE): Remove.
1030 (fetch_register): Use register_size instead. Call supply_register.
1031 (usr_store_inferior_registers): Likewise. Call collect_register.
1032 Fix recursive case.
1033 (regsets_fetch_inferior_registers): Improve error message.
1034 (regsets_store_inferior_registers): Add debugging.
1035 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
1036 (unstopped_p, linux_signal_pid): New functions.
1037 (linux_target_ops): Add linux_signal_pid.
1038 (linux_init_signals): New function.
1039 (initialize_low): Call it. Initialize using_threads.
1040 * regcache.c (inferior_regcache_data): Add valid
1041 flag.
1042 (get_regcache): Fetch registers lazily. Add fetch argument
1043 and update all callers.
1044 (regcache_invalidate_one, regcache_invalidate): New
1045 functions.
1046 (new_register_cache): Renamed from create_register_cache.
1047 Return the new regcache.
1048 (free_register_cache): Change argument to a void *.
1049 (registers_to_string, registers_from_string): Call get_regcache
1050 with fetch flag set.
1051 (register_data): Make static. Pass fetch flag to get_regcache.
1052 (supply_register): Call get_regcache with fetch flag clear.
1053 (collect_register): Call get_regcache with fetch flag set.
1054 (collect_register_as_string): New function.
1055 * regcache.h: Update.
1056 * remote-utils.c (putpkt): Flush after debug output and use
1057 stderr.
1058 Handle input interrupts while waiting for an ACK.
1059 (input_interrupt): Use signal_pid method.
1060 (getpkt): Flush after debug output and use stderr.
1061 (outreg): Use collect_register_as_string.
1062 (new_thread_notify, dead_thread_notify): New functions.
1063 (prepare_resume_reply): Check using_threads. Set thread_from_wait
1064 and general_thread.
1065 (look_up_one_symbol): Flush after debug output.
1066 * server.c (step_thread, server_waiting): New variables.
1067 (start_inferior): Don't use signal_pid. Update call to mywait.
1068 (attach_inferior): Update call to mywait.
1069 (handle_query): Handle qfThreadInfo and qsThreadInfo.
1070 (main): Don't fetch/store registers explicitly. Use
1071 set_desired_inferior. Support proposed ``Hs'' packet. Update
1072 calls to mywait.
1073 * server.h: Update.
1074 (struct inferior_list, struct_inferior_list_entry): New.
1075 * target.c (set_desired_inferior): New.
1076 (write_inferior_memory): Constify.
1077 (mywait): New function.
1078 * target.h: Update.
1079 (struct target_ops): New signal_pid method.
1080 (mywait): Removed macro, added prototype.
1081
1082 * linux-low.h (regset_func): Removed.
1083 (regset_fill_func, regset_store_func): New.
1084 (enum regset_type): New.
1085 (struct regset_info): Add type field. Use new operation types.
1086 (struct linux_target_ops): stop_pc renamed to get_pc.
1087 Add decr_pc_after_break and breakpoint_at.
1088 (get_process, get_thread_proess, get_process_thread)
1089 (strut process_info, all_processes, linux_attach_lwp)
1090 (thread_db_init): New.
1091
1092 * linux-arm-low.c (arm_get_pc, arm_set_pc,
1093 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
1094 (the_low_target): Add new members.
1095 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
1096 (i386_store_fpxregset): Constify.
1097 (target_regsets): Add new kind identifier.
1098 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
1099 (i386_set_pc): Add debugging.
1100 (i386_breakpoint_at): New function.
1101 (the_low_target): Add new members.
1102 * linux-mips-low.c (mips_get_pc, mips_set_pc)
1103 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
1104 (mips_breakpoint_at): New.
1105 (the_low_target): Add new members.
1106 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
1107 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
1108 (the_low_target): Add new members.
1109 * linux-sh-low.c (sh_get_pc, sh_set_pc)
1110 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
1111 (the_low_target): Add new members.
1112 * linux-x86-64-low.c (target_regsets): Add new kind
1113 identifier.
1114
11152002-05-15 Daniel Jacobowitz <drow@mvista.com>
1116
1117 From Martin Pool <mbp@samba.org>:
1118 * server.c (gdbserver_usage): New function.
1119 (main): Call it.
1120
11212002-05-14 Daniel Jacobowitz <drow@mvista.com>
1122
1123 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
1124 stop_at -> stop_pc.
1125
11262002-05-04 Andrew Cagney <ac131313@redhat.com>
1127
1128 * Makefile.in: Remove obsolete code.
1129
11302002-04-24 Michal Ludvig <mludvig@suse.cz>
1131
1132 * linux-low.c (regsets_fetch_inferior_registers),
1133 (regsets_store_inferior_registers): Removed cast to int from
1134 ptrace() calls.
1135 * regcache.h: Added declaration of struct inferior_info.
1136
11372002-04-20 Daniel Jacobowitz <drow@mvista.com>
1138
1139 * inferiors.c (struct inferior_info): Add regcache_data.
1140 (add_inferior): Call create_register_cache.
1141 (clear_inferiors): Call free_register_cache.
1142 (inferior_regcache_data, set_inferior_regcache_data): New functions.
1143 * regcache.c (struct inferior_regcache_data): New.
1144 (registers): Remove.
1145 (get_regcache): New function.
1146 (create_register_cache, free_register_cache): New functions.
1147 (set_register_cache): Don't initialize the register cache here.
1148 (registers_to_string, registers_from_string, register_data): Call
1149 get_regcache.
1150 * regcache.h: Add prototypes.
1151 * server.h: Likewise.
1152
11532002-04-20 Daniel Jacobowitz <drow@mvista.com>
1154
1155 * mem-break.c: New file.
1156 * mem-break.h: New file.
1157 * Makefile.in: Add mem-break.o rule; update server.h
1158 dependencies.
1159 * inferiors.c (struct inferior_info): Add target_data
1160 member.
1161 (clear_inferiors): Free target_data member if set.
1162 (inferior_target_data, set_inferior_target_data): New functions.
1163 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
1164 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
1165 * linux-low.c (linux_bp_reinsert): New variable.
1166 (struct inferior_linux_data): New.
1167 (linux_create_inferior): Use set_inferior_target_data.
1168 (linux_attach): Likewise. Call add_inferior.
1169 (linux_wait_for_one_inferior): New function.
1170 (linux_wait): Call it.
1171 (linux_write_memory): Add const.
1172 (initialize_low): Call set_breakpoint_data.
1173 * linux-low.h (struct linux_target_ops): Add breakpoint
1174 handling members.
1175 * server.c (attach_inferior): Remove extra add_inferior
1176 call.
1177 * server.h: Include mem-break.h. Update inferior.c
1178 prototypes.
1179 * target.c (read_inferior_memory)
1180 (write_inferior_memory): New functions.
1181 * target.h (read_inferior_memory)
1182 (write_inferior_memory): Change macros to prototypes.
1183 (struct target_ops): Update comments. Add const to write_memory
1184 definition.
1185
11862002-04-11 Daniel Jacobowitz <drow@mvista.com>
1187
1188 * linux-low.c (usr_store_inferior_registers): Support
1189 registers which are allowed to fail to store.
1190 * linux-low.h (linux_target_ops): Likewise.
1191 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
1192 (ppc_cannot_store_register): FPSCR may not be storable.
1193
11942002-04-09 Daniel Jacobowitz <drow@mvista.com>
1195
1196 * server.h: Include <string.h> if HAVE_STRING_H.
1197 * ChangeLog: Correct paths in last ChangeLog entry.
1198
11992002-04-09 Daniel Jacobowitz <drow@mvista.com>
1200
1201 * linux-low.h: Remove obsolete prototypes.
1202 (struct linux_target_ops): New.
1203 (extern the_low_target): New.
1204 * linux-low.c (num_regs, regmap): Remove declarations.
1205 (register_addr): Use the_low_target explicitly.
1206 (fetch_register): Likewise.
1207 (usr_fetch_inferior_registers): Likewise.
1208 (usr_store_inferior_registers): Likewise.
1209 * linux-arm-low.c (num_regs): Remove.
1210 (arm_num_regs): Define.
1211 (arm_regmap): Renamed from regmap, made static.
1212 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1213 made static.
1214 (arm_cannot_store_register): Renamed from cannot_store_register,
1215 made static.
1216 (the_low_target): New.
1217 * linux-i386-low.c (num_regs): Remove.
1218 (i386_num_regs): Define.
1219 (i386_regmap): Renamed from regmap, made static.
1220 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1221 made static.
1222 (i386_cannot_store_register): Renamed from cannot_store_register,
1223 made static.
1224 (the_low_target): New.
1225 * linux-ia64-low.c (num_regs): Remove.
1226 (ia64_num_regs): Define.
1227 (ia64_regmap): Renamed from regmap, made static.
1228 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1229 made static.
1230 (ia64_cannot_store_register): Renamed from cannot_store_register,
1231 made static.
1232 (the_low_target): New.
1233 * linux-m68k-low.c (num_regs): Remove.
1234 (m68k_num_regs): Define.
1235 (m68k_regmap): Renamed from regmap, made static.
1236 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1237 made static.
1238 (m68k_cannot_store_register): Renamed from cannot_store_register,
1239 made static.
1240 (the_low_target): New.
1241 * linux-mips-low.c (num_regs): Remove.
1242 (mips_num_regs): Define.
1243 (mips_regmap): Renamed from regmap, made static.
1244 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1245 made static.
1246 (mips_cannot_store_register): Renamed from cannot_store_register,
1247 made static.
1248 (the_low_target): New.
1249 * linux-ppc-low.c (num_regs): Remove.
1250 (ppc_num_regs): Define.
1251 (ppc_regmap): Renamed from regmap, made static.
1252 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1253 made static.
1254 (ppc_cannot_store_register): Renamed from cannot_store_register,
1255 made static.
1256 (the_low_target): New.
1257 * linux-s390-low.c (num_regs): Remove.
1258 (s390_num_regs): Define.
1259 (s390_regmap): Renamed from regmap, made static.
1260 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1261 made static.
1262 (s390_cannot_store_register): Renamed from cannot_store_register,
1263 made static.
1264 (the_low_target): New.
1265 * linux-sh-low.c (num_regs): Remove.
1266 (sh_num_regs): Define.
1267 (sh_regmap): Renamed from regmap, made static.
1268 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1269 made static.
1270 (sh_cannot_store_register): Renamed from cannot_store_register,
1271 made static.
1272 (the_low_target): New.
1273 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1274 (the_low_target): New.
1275
12762002-04-09 Daniel Jacobowitz <drow@mvista.com>
1277
1278 * Makefile.in: Add stamp-h target.
1279 * configure.in: Create stamp-h.
1280 * configure: Regenerated.
1281
12822002-04-09 Daniel Jacobowitz <drow@mvista.com>
1283
1284 * inferiors.c: New file.
1285 * target.c: New file.
1286 * target.h: New file.
1287 * Makefile.in: Add target.o and inferiors.o. Update
1288 dependencies.
1289 * linux-low.c (inferior_pid): New static variable,
1290 moved from server.c.
1291 (linux_create_inferior): Renamed from create_inferior.
1292 Call add_inferior. Return 0 on success instead of a PID.
1293 (linux_attach): Renamed from myattach.
1294 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1295 (linux_thread_alive): Renamed from mythread_alive.
1296 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1297 child dies.
1298 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1299 (regsets_store_inferior_registers): Correct error message.
1300 Add missing ``return 0''.
1301 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1302 (linux_store_registers): Renamed from store_inferior_registers.
1303 (linux_read_memory): Renamed from read_inferior_memory.
1304 (linux_write_memory): Renamed from write_inferior_memory.
1305 (linux_target_ops): New structure.
1306 (initialize_low): Call set_target_ops ().
1307 * remote-utils.c (unhexify): New function.
1308 (hexify): New function.
1309 (input_interrupt): Send signals to ``signal_pid''.
1310 * server.c (inferior_pid): Remove.
1311 (start_inferior): Update create_inferior call.
1312 (attach_inferior): Call add_inferior.
1313 (handle_query): New function.
1314 (main): Call handle_query for `q' packets.
1315 * server.h: Include "target.h". Remove obsolete prototypes.
1316 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1317
13182002-04-09 Daniel Jacobowitz <drow@mvista.com>
1319
1320 * Makefile.in: Add WARN_CFLAGS. Update configury
1321 dependencies.
1322 * configure.in: Check for <string.h>
1323 * configure: Regenerate.
1324 * config.in: Regenerate.
1325 * gdbreplay.c: Include needed system headers.
1326 (remote_open): Remove strchr prototype.
1327 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1328 * regcache.c (supply_register): Change buf argument to const void *.
1329 (supply_register_by_name): Likewise.
1330 (collect_register): Change buf argument to void *.
1331 (collect_register_by_name): Likewise.
1332 * regcache.h: Add missing prototypes.
1333 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1334 * server.c (handle_query): New function.
1335 (attached): New static variable, moved out of main.
1336 (main): Quiet longjmp clobber warnings.
1337 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1338 * utils.c (error): Remove NORETURN.
1339 (fatal): Likewise.