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