]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/gdbserver/ChangeLog
* config/tc-i386.c (md_parse_option): Use CONST_STRNEQ.
[thirdparty/binutils-gdb.git] / gdb / gdbserver / ChangeLog
CommitLineData
dae5f5cf
DJ
12006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
2
3 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
4 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
5 * config.in, configure: Regenerated.
6 * inferiors.c (gdb_id_to_thread): New function.
7 (gdb_id_to_thread_id): Use it.
8 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
9 * linux-low.h (struct process_info): Add th member.
10 (thread_db_get_tls_address): New prototype.
11 * remote-utils.c (decode_address): Make non-static.
12 * server.c (handle_query): Handle qGetTLSAddr.
13 * server.h (gdb_id_to_thread, decode_address): New prototypes.
14 * target.h (struct target_ops): Add get_tls_address.
15 * thread-db.c (maybe_attach_thread): Save the thread handle.
16 (thread_db_get_tls_address): New.
17
32ca6d61
DJ
182006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
19
20 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21 (linux_resume_one_process): Take a siginfo_t *. Update all
22 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
23 (struct pending_signals): Add a siginfo_t.
24 (linux_wait_for_process): Always set last_status.
25 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
26 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
27 * linux-low.h (struct process_info): Add last_status.
28
5ffff7c1
DJ
292006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
30
31 * remote-utils.c (try_rle): New function.
32 (putpkt_binary): Use it.
33
8695c747
DJ
342006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
35
36 * Makefile.in (clean): Clean reg-x86-64-linux.c.
37 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
38 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
39 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
40 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
41 point registers.
42
290fadea
RS
432006-08-08 Richard Sandiford <richard@codesourcery.com>
44
45 * server.c (terminal_fd): New variable.
46 (old_foreground_pgrp): Likewise.
47 (restore_old_foreground_pgrp): New function.
48 (start_inferior): Record the terminal file descriptor in terminal_fd
49 and its original foreground group in old_foreground_pgrp. Register
50 restore_old_foreground_pgrp with atexit().
51
9f2e1e63
DJ
522006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
53
54 * server.c (handle_query): Correct qPart to qXfer.
55
b80864fb
DJ
562006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
57
58 * configure.ac: Check for more headers which are missing on
59 Windows. Automatically supply -lwsock32 and USE_WIN32API.
60 * configure.srv: Add Cygwin and mingw32.
61 * remote-utils.c: Don't include headers unconditionally which
62 are missing on mingw32. Include <winsock.h> for mingw32.
63 (remote_open): Adjust for mingw32 support. Flush
64 standard error after writing to it.
65 (remote_close, putpkt_binary, input_interrupt, block_async_io)
66 (unblock_async_io, enable_async_io, disable_async_io)
67 (readchar, getpkt): Update for Winsock support.
68 (prepare_resume_reply): Expect a protocol signal number.
69 * server.c: Disable <sys/wait.h> on mingw32.
70 (start_inferior): Adjust for mingw32 support. Flush
71 standard error after writing to it.
72 (attach_inferior): Likewise. Use protocol signal
73 numbers.
74 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
75 and names.
76 * win32-i386-low.c: New file.
77 * Makefile.in (XM_CLIBS): Set.
78 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
79 (win32-i386-low.o): New dependency rule.
80 * linux-low.c (linux_wait): Use target signal numbers.
81 * target.h (struct target_ops): Doc fix.
82 * server.h (target_signal_to_name): New prototype.
83 * gdbreplay.c: Don't include headers unconditionally which
84 are missing on mingw32. Include <winsock.h> for mingw32.
85 (remote_close, remote_open): Adjust for Winsock support.
86 * configure, config.in: Regenerated.
87
0876f84a
DJ
882006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
89
90 * server.c (decode_xfer_read, write_qxfer_response): New.
91 (handle_query): Take a packet length argument. Handle
92 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
93 the qSupported response.
94 (main): Update call to handle_query.
95
01f9e8fa
DJ
962006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
97
98 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
99 (putpkt_binary): Renamed from putpkt and adjusted for binary
100 data.
101 (putpkt): New wrapper for putpkt_binary.
102 (readchar): Don't mask off the high bit.
103 (decode_X_packet): New function.
104 * server.c (main): Call putpkt_binary if a handler sets the packet
105 length. Save the length of the incoming packet. Handle 'X'.
106 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
107
be2a5f71
DJ
1082006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
109
110 * server.c (handle_query): Handle qSupported.
111
ea025f5f
DJ
1122006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
113
114 * remote-utils.c (all_symbols_looked_up): New variable.
115 (look_up_one_symbol): Check it.
116 * server.h (look_up_one_symbol): New declaration.
117 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
118
9308fc88
DJ
1192006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
120
121 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 122 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
123 (PTRACE_GET_THREAD_AREA): Define.
124 (ps_get_thread_area): New function.
125
52fb6437
NS
1262006-05-09 Nathan Sidwell <nathan@codesourcery.com>
127
128 * configure.srv (m68k*-*-uclinux*): New target.
129 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
130 (linux_resume_one_process): Remove extraneous cast.
131 (linux_read_offsets): New.
132 (linux_target_op): Add linux_read_offsets on mmuless systems.
133 * server.c (handle_query): Add qOffsets logic.
134 * target.h (struct target_ops): Add read_offsets.
135
21b0f40c
DJ
1362006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
137
138 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
139 (PTRACE_GET_THREAD_AREA): Define.
140 (ps_get_thread_area): New function.
141 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
142 (linux-x86-64-low.o): Update.
143
0050a760
DJ
1442006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
145
146 * configure.ac: Remove checks for prfpregset_t.
147 * gdb_proc_service.h: New file.
148 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
149 new "gdb_proc_service.h".
150 * proc-service.c: Likewise.
151 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
152 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
153 * Makefile.in (gdb_proc_service_h): Updated.
154 * configure, config.in: Regenerated.
155
b92a518e
DJ
1562006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
157
158 * remote-utils.c (prepare_resume_reply): Move declaration
159 of gdb_id_from_wait to the top of the block.
160
545587ee
DJ
1612006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
162
163 * linux-low.c (regsets_store_inferior_registers): Read the regset
164 from the target before filling it.
165
9db87ebd
DJ
1662006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
167
168 * server.c (attach_inferior): Return SIGTRAP for a successful
169 attach.
170
dd24457d
DJ
1712006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
172
173 * Makefile.in (OBS): Add version.o.
174 (STAGESTUFF): Delete.
175 (version.o): Add dependencies.
176 (version.c): Replace rule.
177 (clean): Remove version.c.
178 * server.c (gdbserver_version): New.
179 (gdbserver_usage): Use printf.
180 (main): Handle --version and --help.
181 * server.h (version, host_name): Add declarations.
182
6f0f660e
EZ
1832005-12-23 Eli Zaretskii <eliz@gnu.org>
184
185 * linux-arm-low.c:
186 * linux-arm-low.c:
187 * inferiors.c:
188 * i387-fp.h:
189 * i387-fp.c:
190 * gdbreplay.c:
191 * regcache.c:
192 * proc-service.c:
193 * mem-break.h:
194 * mem-break.c:
195 * linux-x86-64-low.c:
196 * linux-sh-low.c:
197 * linux-s390-low.c:
198 * linux-ppc64-low.c:
199 * linux-ppc-low.c:
200 * linux-mips-low.c:
201 * linux-m68k-low.c:
202 * linux-m32r-low.c:
203 * linux-low.h:
204 * linux-low.c:
205 * linux-ia64-low.c:
206 * linux-i386-low.c:
207 * linux-crisv32-low.c:
208 * thread-db.c:
209 * terminal.h:
210 * target.h:
211 * target.c:
212 * server.h:
213 * server.c:
214 * remote-utils.c:
215 * regcache.h:
216 * utils.c:
217 * Makefile.in:
218 * configure.ac:
219 * gdbserver.1: Add (C) after Copyright. Update the FSF
220 address.
221
9d1fb177
DJ
2222005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
223
224 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
225 (arm_breakpoint_at): Recognize both breakpoints.
226 (the_low_target): Use the correct breakpoint instruction.
227
011a70c2
DJ
2282005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
229
230 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
231 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
232 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
233 (the_low_target): Update.
234
7fb85e41
AS
2352005-10-25 Andreas Schwab <schwab@suse.de>
236
237 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
238
239 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
240 (ia64_num_regs): Reduce to 462.
241
3db0444b
DJ
2422005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
243
244 * acinclude.m4: Correct quoting.
245 * aclocal.m4: Regenerated.
246
247 Suggested by SZOKOVACS Robert <szo@ies.hu>:
248 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
249 (thread_db_init): Call thread_db_err_str.
250 * configure.ac: Check for TD_VERSION.
251 * config.in, configure: Regenerated.
252
bee0189a
DJ
2532005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
254
255 * server.h (error, fatal, warning): Add ATTR_FORMAT.
256
e9d25b98
DJ
2572005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
258
259 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
260 is not available. Define HAVE_PTRACE_GETREGS if it is.
261 * config.in, configure: Regenerated.
262 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
263 * linux-i386-low.c, linux-m68k-low.c: Update to use
264 HAVE_PTRACE_GETREGS.
265 * linux-low.c (regsets_fetch_inferior_registers)
266 (regsets_store_inferior_registers): Only return 0 if we processed
267 GENERAL_REGS.
268 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
269 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
270
a06660f7
DJ
2712005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
272
273 * inferiors.c (struct thread_info): Add gdb_id.
274 (add_thread): Add gdb_id argument.
275 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
276 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
277 calls to add_thread.
278 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
279 * server.c (handle_query): Use thread_to_gdb_id.
280 (handle_v_cont, main): Use gdb_id_to_thread_id.
281 * server.h (add_thread): Update prototype.
282 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
283 prototypes.
284
5a1f5858
DJ
2852005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
286
287 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
288 left-padded registers.
289 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
290 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
291
e122f1f5
SE
2922005-07-01 Steve Ellcey <sje@cup.hp.com>
293
294 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
295 * configure: Regenerate.
296 * config.in: Regenerate.
297 * server.h (NEED_DECLARATION_STRERROR):
298 Replace with !HAVE_DECL_STRERROR.
299
d592fa2f
DJ
3002005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
301
302 * linux-low.c (linux_wait, linux_send_signal): Don't test
303 an unsigned long variable for > 0 if it could be MAX_ULONG.
304 * server.c (myresume): Likewise.
305 * target.c (set_desired_inferior): Likewise.
306
ccbd4912
MK
3072005-06-13 Mark Kettenis <kettenis@gnu.org>
308
309 * configure.ac: Simplify and improve check for socklen_t.
310 * configure, config.in: Regenerate.
311
f450004a
DJ
3122005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
313
314 * acconfig.h: Remove.
315 * configure.ac: Add a test for socklen_t. Use three-argument
316 AC_DEFINE throughout.
317 * config.in: Regenerated using autoheader 2.59.
318 * configure: Regenerated.
319
320 * gdbreplay.c (socklen_t): Provide a default.
321 (remote_open): Use socklen_t.
322 * remote-utils.c (socklen_t): Provide a default.
323 (remote_open): Use socklen_t.
324 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
325 unsigned char.
326
327 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
328 char for buffers.
329 * linux-low.c (linux_read_memory, linux_write_memory)
330 (linux_read_auxv): Likewise.
331 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
332 (check_mem_write): Likewise.
333 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
334 Likewise.
335 * regcache.c (struct inferior_rgcache_data, registers_to_string)
336 (registers_from_string, register_data): Likewise.
337 * server.c (handle_query, main): Likewise.
338 * server.h (convert_ascii_to_int, convert_int_to_ascii)
339 (decode_M_packet): Likewise.
340 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
341 * target.h (struct target_ops): Update read_memory, write_memory,
342 and read_auxv.
343 (read_inferior_memory, write_inferior_memory): Update.
344 * linux-low.h (struct linux_target_ops): Change type of breakpoint
345 to unsigned char *.
346 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
347 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
348 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
349 linux-s390-low.c, linux-sh-low.c: Update for changes in
350 read_inferior_memory and the_low_target->breakpoint.
351
eee84df1
DJ
3522005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
353
354 * Makefile.in (SFILES): Add linux-ppc64-low.c.
355 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
356 * configure.srv: Add powerpc64-*-linux*.
357 * linux-ppc64-low.c: New file.
358
45b134e5
OF
3592005-05-23 Orjan Friberg <orjanf@axis.com>
360
361 * linux-cris-low.c: New file with support for CRIS.
362 * linux-crisv32-low.c: Ditto for CRISv32.
363 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
364 (clean): Add reg-cris.c and reg-crisv32.c.
365 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
366 reg-crisv32.o, and reg-crisv32.c to make rules.
367 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
368 recognized targets.
369
48d93c75
UW
3702005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
371
372 * linux-low.c (fetch_register): Ensure buffer size is a multiple
373 of sizeof (PTRACE_XFER_TYPE).
374 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
375
e013ee27
OF
3762005-05-12 Orjan Friberg <orjanf@axis.com>
377
378 * target.h (struct target_ops): Add insert_watchpoint,
379 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
380 pointers for hardware watchpoint support.
381 * linux-low.h (struct linux_target_ops): Ditto.
382 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
383 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
384 to linux_target_ops.
385 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
386 reply packet.
387 * server.c (main): Recognize 'Z' and 'z' packets.
388
b0ded00b
UW
3892005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
390
391 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
392 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
393 (the_low_target): Add new members.
394
8643e2ad
DJ
3952005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
396
397 * proc-service.c (ps_lgetregs): Search all_processes instead of
398 all_threads.
399
fc620387
DJ
4002005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
401
402 * server.c (start_inferior): Change return type to int.
403 (attach_inferior): Change sigptr to int *.
404 (handle_v_cont, handle_v_requests): Change signal to int *.
405 (main): Change signal to int.
406
4072005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
408
409 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
410 * configure.srv: Add m32r*-*-linux*.
411 * linux-m32r-low.c: New file.
412
e0e76420
DJ
4132005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
414
415 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
416
a1928bad
DJ
4172005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
418
419 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
420 Take unsigned long arguments for PIDs.
421 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
422 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
423 (wait_for_sigstop, linux_resume_one_process)
424 (regsets_fetch_inferior_registers, linux_send_signal)
425 (linux_read_auxv): Likewise. Update the types of variables holding
426 PIDs. Update format string specifiers.
427 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
428 * remote-utils.c (prepare_resume_reply): Likewise.
429 * server.c (cont_thread, general_thread, step_thread)
430 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
431 unsigned long.
432 (handle_query): Update format specifiers.
433 (handle_v_cont, main): Use strtoul for thread IDs.
434 * server.h (struct inferior_list_entry): Use unsigned long for ID.
435 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
436 (general_thread, step_thread, thread_from_wait)
437 (old_thread_from_wait): Update.
438 * target.h (struct thread_resume): Use unsigned long for THREAD.
439 (struct target_ops): Use unsigned long for arguments to attach and
440 thread_alive.
441
dcdb98d2
DJ
4422005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
443
444 * acinclude.m4: Include bfd/bfd.m4 directly.
445 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
446 <agriffis@toolchain.org>.
447 * aclocal.m4, configure: Regenerated.
448
bec39cab
AC
4492005-01-07 Andrew Cagney <cagney@gnu.org>
450
451 * configure.ac: Rename configure.in, require autoconf 2.59.
452 * configure: Re-generate.
453
434c4c77
DJ
4542004-12-08 Daniel Jacobowitz <dan@debian.org>
455
456 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
457 LIBS when finished.
458 * aclocal.m4: Regenerated.
459 * configure: Regenerated.
460
db1d3e1b
AS
4612004-11-21 Andreas Schwab <schwab@suse.de>
462
463 * linux-m68k-low.c (m68k_num_gregs): Define.
464 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
465 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
466 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
467 (m68k_breakpoint_at): New. Add to the_low_target.
468
469 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
470 srv_linux_thread_db to yes.
471
43360365
JB
4722004-10-20 Joel Brobecker <brobecker@gnat.com>
473
474 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
475 (ARCH_SET_FS): Likewise.
476 (ARCH_GET_FS): Likewise.
477 (ARCH_GET_GS): Likewise.
478
fd500816
DJ
4792004-10-16 Daniel Jacobowitz <dan@debian.org>
480
481 * linux-i386-low.c (ps_get_thread_area): New.
482 * linux-x86-64-low.c (ps_get_thread_area): New.
483 * linux-low.c: Include <sys/syscall.h>.
484 (linux_kill_one_process): Don't kill the first thread here.
485 (linux_kill): Kill the first thread here.
486 (kill_lwp): New function.
487 (send_sigstop, linux_send_signal): Use it.
488 * proc-service.c: Clean up #ifdefs.
489 (fpregset_info): Delete.
490 (ps_lgetregs): Update and enable implementation.
491 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
492 implementations.
493 * remote-utils.c (struct sym_cache, symbol_cache): New.
494 (input_interrupt): Print a clearer message.
495 (async_io_enabled): New variable.
496 (enable_async_io, disable_async_io): Use it. Update comments.
497 (look_up_one_symbol): Use the symbol cache.
498 * thread-db.c (thread_db_look_up_symbols): New function.
499 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
500
f6de3c42
DJ
5012004-10-16 Daniel Jacobowitz <dan@debian.org>
502
503 * configure.in: Test for -rdynamic.
504 * configure: Regenerated.
505 * Makefile (INTERNAL_LDFLAGS): New.
506 (gdbserver, gdbreplay): Use it.
507
2c0fc042
AC
5082004-09-02 Andrew Cagney <cagney@gnu.org>
509
510 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
511
075b3282
DJ
5122004-03-23 Daniel Jacobowitz <drow@mvista.com>
513
514 * linux-low.c (linux_wait): Clear all_processes list also.
515
fa6a77dc
DJ
5162004-03-12 Daniel Jacobowitz <drow@mvista.com>
517
518 * linux-low.c: Include <errno.h>. Remove extern declaration of
519 errno.
520
6d782a97
DJ
5212004-03-12 Daniel Jacobowitz <drow@mvista.com>
522
523 * gdbreplay.c, server.h, utils.c: Update copyright years.
524
3a7fb99b
DJ
5252004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
526
527 * server.c (main): Print child status or termination signal from
528 variable 'signal', not 'sig'.
529
c3e735a6
DJ
5302004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
531
532 * linux-low.c (linux_read_memory): Change return type to
533 int. Check for and return error from ptrace().
534 * target.c (read_inferior_memory): Change return type to int. Pass
535 back return status from the_target->read_memory().
536 * target.h (struct target_ops): Adapt *read_memory() prototype.
537 Update comment.
538 (read_inferior_memory): Adapt prototype.
539 * server.c (main): Return an error packet if
540 read_inferior_memory() returns an error.
541
a59d1c82
DJ
5422004-03-04 Daniel Jacobowitz <drow@mvista.com>
543
544 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
545 Unify with other clean targets.
546
dc3f8883
DJ
5472004-02-29 Daniel Jacobowitz <drow@mvista.com>
548
549 * server.c (handle_v_cont): Call set_desired_inferior.
550
89a208da
DJ
5512004-02-29 Daniel Jacobowitz <drow@mvista.com>
552
553 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
554
62ea82f5
DJ
5552004-02-29 Daniel Jacobowitz <drow@mvista.com>
556
557 * linux-low.c (linux_wait): Unblock async I/O.
558 (linux_resume): Block and enable async I/O.
559 * remote-utils.c (block_async_io, unblock_async_io): New functions.
560 * server.h (block_async_io, unblock_async_io): Add prototypes.
561
6910d122
DJ
5622004-02-29 Daniel Jacobowitz <drow@mvista.com>
563
564 * remote-utils.c (remote_open): Print a status notice after
565 opening a TCP port.
566 * server.c (attach_inferior): Print a status notice after
567 attaching.
568
5692004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
570
571 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
572
c89dc5d4
DJ
5732004-02-26 Daniel Jacobowitz <drow@mvista.com>
574
575 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
576 error packet.
577 * server.c, target.h: Update copyright years.
578
4b8dad4a
RM
5792004-02-25 Roland McGrath <roland@redhat.com>
580
581 * target.h (struct target_ops): New member `read_auxv'.
582 * server.c (handle_query): Handle qPart:auxv:read: query using that.
583 * linux-low.c (linux_read_auxv): New function.
584 (linux_target_ops): Initialize `read_auxv' member to that.
585
d7446758
JB
5862004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
587
588 Committed by Jim Blandy <jimb@redhat.com>.
589
590 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 591 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
592 instead of GPR_SIZE to distiguish s390 and s390x targets.
593
5544ad89
DJ
5942004-01-31 Daniel Jacobowitz <drow@mvista.com>
595
596 * linux-low.c: Update copyright year.
597 (check_removed_breakpoint): Clear pending_is_breakpoint.
598 (linux_set_resume_request, linux_queue_one_thread)
599 (resume_status_pending_p): New functions.
600 (linux_continue_one_thread): Use process->resume.
601 (linux_resume): Only resume threads if there are no pending events.
602 * linux-low.h (struct process_info): Add resume request
603 pointer.
604
2a68b70e
DJ
6052004-01-30 Daniel Jacobowitz <drow@mvista.com>
606
607 * regcache.c (new_register_cache): Clear the allocated register
608 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
609
64386c31
DJ
6102003-10-13 Daniel Jacobowitz <drow@mvista.com>
611
612 * linux-low.c (linux_resume): Take a struct thread_resume *
613 argument.
614 (linux_wait): Update call.
615 (resume_ptr): New static variable.
616 (linux_continue_one_thread): Renamed from
617 linux_continue_one_process. Use resume_ptr.
618 (linux_resume): Use linux_continue_one_thread.
619 * server.c (handle_v_cont, handle_v_requests): New functions.
620 (myresume): New function.
621 (main): Handle 'v' case.
622 * target.h (struct thread_resume): New type.
623 (struct target_ops): Change argument of "resume" to struct
624 thread_resume *.
625 (myresume): Delete macro.
626
c938e9b0
L
6272003-08-08 H.J. Lu <hongjiu.lu@intel.com>
628
629 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
630 (uninstall): Support DESTDIR.
631
7f313d07
BC
632Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
633
634 * configure.srv: Add xscale*linux copy of arm*linux entry.
635
3b2fc2ea
DJ
6362003-07-24 Daniel Jacobowitz <drow@mvista.com>
637
638 * linux-arm-low.c (arm_reinsert_addr): New function.
639 (the_low_target): Add arm_reinsert_addr.
640
1c0a559e
MK
6412003-07-08 Mark Kettenis <kettenis@gnu.org>
642
643 * mem-break.c: Remove whitespace at end of file.
644
43d5792c
DJ
6452003-06-28 Daniel Jacobowitz <drow@mvista.com>
646
647 * configure.in: Check whether we need to prototype strerror.
648 * server.h: Optionally prototype strerror.
649 * gdbreplay.c (perror_with_name): Use strerror.
650 * linux-low.c (linux_attach_lwp): Use strerror.
651 * utils.c (perror_with_name): Use strerror.
652 * config.in, configure: Regenerated.
653
c8a86edf
DJ
6542003-06-28 Daniel Jacobowitz <drow@mvista.com>
655
656 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
657 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
658
73d37363
DJ
6592003-06-20 Daniel Jacobowitz <drow@mvista.com>
660
661 * Makefile.in (SFILES): Update.
662 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
663 low-sun3.c: Remove files.
664
6ad8ae5c
DJ
6652003-06-17 Daniel Jacobowitz <drow@mvista.com>
666
667 * linux-low.c: Move comment to linux_thread_alive where it belonged.
668 (linux_detach_one_process, linux_detach): New functions.
669 (linux_target_ops): Add linux_detach.
670 * server.c (main): Handle 'D' packet.
671 * target.h (struct target_ops): Add "detach" member.
672 (detach_inferior): Define.
673
1581182a
MK
6742003-06-13 Mark Kettenis <kettenis@gnu.org>
675
676 From Kelley Cook <kelleycook@wideopenwest.com>:
677 * configure.srv: Accept i[34567]86 variants.
678
e5379b03
DJ
6792003-06-05 Daniel Jacobowitz <drow@mvista.com>
680
681 * linux-low.c (linux_wait_for_event): Correct comment typos.
682 (linux_resume_one_process): Call check_removed_breakpoint.
683 (linux_send_signal): New function.
684 (linux_target_ops): Add linux_send_signal.
685 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
686 of kill.
687 * target.h (struct target_ops): Add send_signal.
688
2ff29de4
JB
6892003-05-29 Jim Blandy <jimb@redhat.com>
690
691 * linux-low.c (usr_store_inferior_registers): Transfer buf in
692 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
693 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
694 away part of the register's value.
695
254787d4
DJ
6962003-03-26 Daniel Jacobowitz <drow@mvista.com>
697
698 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
699 (linux_wait_for_event, linux_init_signals): Likewise.
700
94e10508
DJ
7012003-03-17 Daniel Jacobowitz <drow@mvista.com>
702
703 * configure.in: Check for stdlib.h.
704 * configure: Regenerated.
705 * config.in: Regenerated.
706
4c0711e0
DJ
7072003-01-04 Andreas Schwab <schwab@suse.de>
708
709 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
710
ef66e766
AC
7112003-01-02 Andrew Cagney <ac131313@redhat.com>
712
713 * Makefile.in: Remove obsolete code.
714
a1358604
DJ
7152002-11-20 Daniel Jacobowitz <drow@mvista.com>
716
717 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
718 defined(PT_FPR0_HI).
719
23ce3b1c
DJ
7202002-11-17 Stuart Hughes <seh@zee2.com>
721
722 * linux-arm-low.c (arm_num_regs): Increase.
723 (arm_regmap): Include status register.
724
7252002-11-17 Daniel Jacobowitz <drow@mvista.com>
726
727 * linux-low.c (register_addr): Remove incorrect -1 check.
728
a9fa9f7d
DJ
7292002-08-29 Daniel Jacobowitz <drow@mvista.com>
730
731 * linux-low.c (linux_create_inferior): Call setpgid. Return
732 the new PID.
733 (unstopped_p, linux_signal_pid): Remove.
734 (linux_target_ops): Remove linux_signal_pid.
735 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
736 global instead of target method.
737 * target.h (struct target_ops): Remove signal_pid. Update comment
738 for create_inferior.
739 * server.c (signal_pid): New variable.
740 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 741 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
742 (attach_inferior): Set signal_pid.
743
17574093
DJ
7442002-08-23 Daniel Jacobowitz <drow@mvista.com>
745
746 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
747
7482002-08-20 Jim Blandy <jimb@redhat.com>
749
750 * Makefile.in (LDFLAGS): Allow the configure script to establish a
751 default for this.
752
7532002-08-01 Andrew Cagney <cagney@redhat.com>
754
755 * Makefile.in: Make chill references obsolete.
756
7572002-07-24 Kevin Buettner <kevinb@redhat.com>
758
759 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
760 * configure: Regenerate.
761 * config.in: Regenerate.
762
7632002-07-09 David O'Brien <obrien@FreeBSD.org>
764
765 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
766 (perror_with_name, remote_close, remote_open, expect, play): Static.
767
7682002-07-04 Michal Ludvig <mludvig@suse.cz>
769
4b8dad4a 770 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
771 byte offsets instead of an array of indexes.
772 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
773
7742002-06-13 Daniel Jacobowitz <drow@mvista.com>
775
776 * regcache.c: Add comment.
777
7782002-06-11 Daniel Jacobowitz <drow@mvista.com>
779
780 * thread-db.c: New file.
781 * proc-service.c: New file.
782 * acinclude.m4: New file.
783 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
784 proc-service.o, and thread-db.o.
785 (linux-low.o): Add USE_THREAD_DB.
786 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
787 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
788 * aclocal.m4: Regenerated.
789 * config.in: Regenerated.
790 * configure: Regenerated.
791 * configure.in: Check for proc_service.h, sys/procfs.h,
792 thread_db.h, and linux/elf.h headrs.
793 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
794 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
795 Check for -lthread_db and thread support.
796 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
797 PowerPC, and SuperH.
798 * i387-fp.c: Constify arguments.
799 * i387-fp.h: Likewise.
800 * inferiors.c: (struct thread_info): Renamed from
801 `struct inferior_info'. Remove PID member. Use generic inferior
802 list header. All uses updated.
803 (inferiors, signal_pid): Removed.
804 (all_threads): New variable.
805 (get_thread): Define.
806 (add_inferior_to_list): New function.
807 (for_each_inferior): New function.
808 (change_inferior_id): New function.
809 (add_inferior): Removed.
810 (remove_inferior): New function.
811 (add_thread): New function.
812 (free_one_thread): New function.
813 (remove_thread): New function.
814 (clear_inferiors): Use for_each_inferior and free_one_thread.
815 (find_inferior): New function.
816 (find_inferior_id): New function.
817 (inferior_target_data): Update argument type.
818 (set_inferior_target_data): Likewise.
819 (inferior_regcache_data): Likewise.
820 (set_inferior_regcache_data): Likewise.
821 * linux-low.c (linux_bp_reinsert): Remove.
822 (all_processes, stopping_threads, using_thrads)
823 (struct pending_signals, debug_threads, pid_of): New.
824 (inferior_pid): Replace with macro.
825 (struct inferior_linux_data): Remove.
826 (get_stop_pc, add_process): New functions.
827 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
828 Use add_process and add_thread.
829 (linux_attach_lwp): New function, based on old linux_attach. Use
830 add_process and add_thread. Set stop_expected for new threads.
831 (linux_attach): New function.
832 (linux_kill_one_process): New function.
833 (linux_kill): Kill all LWPs.
834 (linux_thread_alive): Use find_inferior_id.
835 (check_removed_breakpoints, status_pending_p): New functions.
836 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
837 Update. Use WNOHANG. Wait for cloned processes also. Update process
838 struct for the found process.
839 (linux_wait_for_event): New function.
840 (linux_wait): Use it. Support LWPs.
841 (send_sigstop, wait_for_sigstop, stop_all_processes)
842 (linux_resume_one_process, linux_continue_one_process): New functions.
843 (linux_resume): Support LWPs.
844 (REGISTER_RAW_SIZE): Remove.
845 (fetch_register): Use register_size instead. Call supply_register.
846 (usr_store_inferior_registers): Likewise. Call collect_register.
847 Fix recursive case.
848 (regsets_fetch_inferior_registers): Improve error message.
849 (regsets_store_inferior_registers): Add debugging.
850 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
851 (unstopped_p, linux_signal_pid): New functions.
852 (linux_target_ops): Add linux_signal_pid.
853 (linux_init_signals): New function.
854 (initialize_low): Call it. Initialize using_threads.
855 * regcache.c (inferior_regcache_data): Add valid
856 flag.
857 (get_regcache): Fetch registers lazily. Add fetch argument
858 and update all callers.
859 (regcache_invalidate_one, regcache_invalidate): New
860 functions.
861 (new_register_cache): Renamed from create_register_cache.
862 Return the new regcache.
863 (free_register_cache): Change argument to a void *.
864 (registers_to_string, registers_from_string): Call get_regcache
865 with fetch flag set.
866 (register_data): Make static. Pass fetch flag to get_regcache.
867 (supply_register): Call get_regcache with fetch flag clear.
868 (collect_register): Call get_regcache with fetch flag set.
869 (collect_register_as_string): New function.
870 * regcache.h: Update.
871 * remote-utils.c (putpkt): Flush after debug output and use
872 stderr.
873 Handle input interrupts while waiting for an ACK.
874 (input_interrupt): Use signal_pid method.
875 (getpkt): Flush after debug output and use stderr.
876 (outreg): Use collect_register_as_string.
877 (new_thread_notify, dead_thread_notify): New functions.
878 (prepare_resume_reply): Check using_threads. Set thread_from_wait
879 and general_thread.
880 (look_up_one_symbol): Flush after debug output.
881 * server.c (step_thread, server_waiting): New variables.
882 (start_inferior): Don't use signal_pid. Update call to mywait.
883 (attach_inferior): Update call to mywait.
884 (handle_query): Handle qfThreadInfo and qsThreadInfo.
885 (main): Don't fetch/store registers explicitly. Use
886 set_desired_inferior. Support proposed ``Hs'' packet. Update
887 calls to mywait.
888 * server.h: Update.
889 (struct inferior_list, struct_inferior_list_entry): New.
890 * target.c (set_desired_inferior): New.
891 (write_inferior_memory): Constify.
892 (mywait): New function.
893 * target.h: Update.
894 (struct target_ops): New signal_pid method.
895 (mywait): Removed macro, added prototype.
896
897 * linux-low.h (regset_func): Removed.
898 (regset_fill_func, regset_store_func): New.
899 (enum regset_type): New.
900 (struct regset_info): Add type field. Use new operation types.
901 (struct linux_target_ops): stop_pc renamed to get_pc.
902 Add decr_pc_after_break and breakpoint_at.
903 (get_process, get_thread_proess, get_process_thread)
904 (strut process_info, all_processes, linux_attach_lwp)
905 (thread_db_init): New.
906
907 * linux-arm-low.c (arm_get_pc, arm_set_pc,
908 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
909 (the_low_target): Add new members.
910 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
911 (i386_store_fpxregset): Constify.
912 (target_regsets): Add new kind identifier.
913 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
914 (i386_set_pc): Add debugging.
915 (i386_breakpoint_at): New function.
916 (the_low_target): Add new members.
917 * linux-mips-low.c (mips_get_pc, mips_set_pc)
918 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
919 (mips_breakpoint_at): New.
920 (the_low_target): Add new members.
921 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
922 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
923 (the_low_target): Add new members.
924 * linux-sh-low.c (sh_get_pc, sh_set_pc)
925 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
926 (the_low_target): Add new members.
927 * linux-x86-64-low.c (target_regsets): Add new kind
928 identifier.
929
9302002-05-15 Daniel Jacobowitz <drow@mvista.com>
931
932 From Martin Pool <mbp@samba.org>:
933 * server.c (gdbserver_usage): New function.
934 (main): Call it.
935
9362002-05-14 Daniel Jacobowitz <drow@mvista.com>
937
938 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
939 stop_at -> stop_pc.
940
9412002-05-04 Andrew Cagney <ac131313@redhat.com>
942
943 * Makefile.in: Remove obsolete code.
944
9452002-04-24 Michal Ludvig <mludvig@suse.cz>
946
947 * linux-low.c (regsets_fetch_inferior_registers),
948 (regsets_store_inferior_registers): Removed cast to int from
949 ptrace() calls.
950 * regcache.h: Added declaration of struct inferior_info.
951
9522002-04-20 Daniel Jacobowitz <drow@mvista.com>
953
954 * inferiors.c (struct inferior_info): Add regcache_data.
955 (add_inferior): Call create_register_cache.
956 (clear_inferiors): Call free_register_cache.
957 (inferior_regcache_data, set_inferior_regcache_data): New functions.
958 * regcache.c (struct inferior_regcache_data): New.
959 (registers): Remove.
960 (get_regcache): New function.
961 (create_register_cache, free_register_cache): New functions.
962 (set_register_cache): Don't initialize the register cache here.
963 (registers_to_string, registers_from_string, register_data): Call
964 get_regcache.
965 * regcache.h: Add prototypes.
966 * server.h: Likewise.
967
9682002-04-20 Daniel Jacobowitz <drow@mvista.com>
969
970 * mem-break.c: New file.
971 * mem-break.h: New file.
972 * Makefile.in: Add mem-break.o rule; update server.h
973 dependencies.
974 * inferiors.c (struct inferior_info): Add target_data
975 member.
976 (clear_inferiors): Free target_data member if set.
977 (inferior_target_data, set_inferior_target_data): New functions.
978 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
979 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
980 * linux-low.c (linux_bp_reinsert): New variable.
981 (struct inferior_linux_data): New.
982 (linux_create_inferior): Use set_inferior_target_data.
983 (linux_attach): Likewise. Call add_inferior.
984 (linux_wait_for_one_inferior): New function.
985 (linux_wait): Call it.
986 (linux_write_memory): Add const.
987 (initialize_low): Call set_breakpoint_data.
988 * linux-low.h (struct linux_target_ops): Add breakpoint
989 handling members.
990 * server.c (attach_inferior): Remove extra add_inferior
991 call.
992 * server.h: Include mem-break.h. Update inferior.c
993 prototypes.
994 * target.c (read_inferior_memory)
995 (write_inferior_memory): New functions.
996 * target.h (read_inferior_memory)
997 (write_inferior_memory): Change macros to prototypes.
998 (struct target_ops): Update comments. Add const to write_memory
999 definition.
1000
10012002-04-11 Daniel Jacobowitz <drow@mvista.com>
1002
1003 * linux-low.c (usr_store_inferior_registers): Support
1004 registers which are allowed to fail to store.
1005 * linux-low.h (linux_target_ops): Likewise.
1006 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
1007 (ppc_cannot_store_register): FPSCR may not be storable.
1008
10092002-04-09 Daniel Jacobowitz <drow@mvista.com>
1010
1011 * server.h: Include <string.h> if HAVE_STRING_H.
1012 * ChangeLog: Correct paths in last ChangeLog entry.
1013
10142002-04-09 Daniel Jacobowitz <drow@mvista.com>
1015
1016 * linux-low.h: Remove obsolete prototypes.
1017 (struct linux_target_ops): New.
1018 (extern the_low_target): New.
1019 * linux-low.c (num_regs, regmap): Remove declarations.
1020 (register_addr): Use the_low_target explicitly.
1021 (fetch_register): Likewise.
1022 (usr_fetch_inferior_registers): Likewise.
1023 (usr_store_inferior_registers): Likewise.
1024 * linux-arm-low.c (num_regs): Remove.
1025 (arm_num_regs): Define.
1026 (arm_regmap): Renamed from regmap, made static.
1027 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1028 made static.
1029 (arm_cannot_store_register): Renamed from cannot_store_register,
1030 made static.
1031 (the_low_target): New.
1032 * linux-i386-low.c (num_regs): Remove.
1033 (i386_num_regs): Define.
1034 (i386_regmap): Renamed from regmap, made static.
1035 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1036 made static.
1037 (i386_cannot_store_register): Renamed from cannot_store_register,
1038 made static.
1039 (the_low_target): New.
1040 * linux-ia64-low.c (num_regs): Remove.
1041 (ia64_num_regs): Define.
1042 (ia64_regmap): Renamed from regmap, made static.
1043 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1044 made static.
1045 (ia64_cannot_store_register): Renamed from cannot_store_register,
1046 made static.
1047 (the_low_target): New.
1048 * linux-m68k-low.c (num_regs): Remove.
1049 (m68k_num_regs): Define.
1050 (m68k_regmap): Renamed from regmap, made static.
1051 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1052 made static.
1053 (m68k_cannot_store_register): Renamed from cannot_store_register,
1054 made static.
1055 (the_low_target): New.
1056 * linux-mips-low.c (num_regs): Remove.
1057 (mips_num_regs): Define.
1058 (mips_regmap): Renamed from regmap, made static.
1059 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1060 made static.
1061 (mips_cannot_store_register): Renamed from cannot_store_register,
1062 made static.
1063 (the_low_target): New.
1064 * linux-ppc-low.c (num_regs): Remove.
1065 (ppc_num_regs): Define.
1066 (ppc_regmap): Renamed from regmap, made static.
1067 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1068 made static.
1069 (ppc_cannot_store_register): Renamed from cannot_store_register,
1070 made static.
1071 (the_low_target): New.
1072 * linux-s390-low.c (num_regs): Remove.
1073 (s390_num_regs): Define.
1074 (s390_regmap): Renamed from regmap, made static.
1075 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1076 made static.
1077 (s390_cannot_store_register): Renamed from cannot_store_register,
1078 made static.
1079 (the_low_target): New.
1080 * linux-sh-low.c (num_regs): Remove.
1081 (sh_num_regs): Define.
1082 (sh_regmap): Renamed from regmap, made static.
1083 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1084 made static.
1085 (sh_cannot_store_register): Renamed from cannot_store_register,
1086 made static.
1087 (the_low_target): New.
1088 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1089 (the_low_target): New.
1090
10912002-04-09 Daniel Jacobowitz <drow@mvista.com>
1092
1093 * Makefile.in: Add stamp-h target.
1094 * configure.in: Create stamp-h.
1095 * configure: Regenerated.
1096
10972002-04-09 Daniel Jacobowitz <drow@mvista.com>
1098
1099 * inferiors.c: New file.
1100 * target.c: New file.
1101 * target.h: New file.
1102 * Makefile.in: Add target.o and inferiors.o. Update
1103 dependencies.
1104 * linux-low.c (inferior_pid): New static variable,
1105 moved from server.c.
1106 (linux_create_inferior): Renamed from create_inferior.
1107 Call add_inferior. Return 0 on success instead of a PID.
1108 (linux_attach): Renamed from myattach.
1109 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1110 (linux_thread_alive): Renamed from mythread_alive.
1111 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1112 child dies.
1113 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1114 (regsets_store_inferior_registers): Correct error message.
1115 Add missing ``return 0''.
1116 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1117 (linux_store_registers): Renamed from store_inferior_registers.
1118 (linux_read_memory): Renamed from read_inferior_memory.
1119 (linux_write_memory): Renamed from write_inferior_memory.
1120 (linux_target_ops): New structure.
1121 (initialize_low): Call set_target_ops ().
1122 * remote-utils.c (unhexify): New function.
1123 (hexify): New function.
1124 (input_interrupt): Send signals to ``signal_pid''.
1125 * server.c (inferior_pid): Remove.
1126 (start_inferior): Update create_inferior call.
1127 (attach_inferior): Call add_inferior.
1128 (handle_query): New function.
1129 (main): Call handle_query for `q' packets.
1130 * server.h: Include "target.h". Remove obsolete prototypes.
1131 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1132
11332002-04-09 Daniel Jacobowitz <drow@mvista.com>
1134
1135 * Makefile.in: Add WARN_CFLAGS. Update configury
1136 dependencies.
1137 * configure.in: Check for <string.h>
1138 * configure: Regenerate.
1139 * config.in: Regenerate.
1140 * gdbreplay.c: Include needed system headers.
1141 (remote_open): Remove strchr prototype.
1142 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1143 * regcache.c (supply_register): Change buf argument to const void *.
1144 (supply_register_by_name): Likewise.
1145 (collect_register): Change buf argument to void *.
1146 (collect_register_by_name): Likewise.
1147 * regcache.h: Add missing prototypes.
1148 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1149 * server.c (handle_query): New function.
1150 (attached): New static variable, moved out of main.
1151 (main): Quiet longjmp clobber warnings.
1152 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1153 * utils.c (error): Remove NORETURN.
1154 (fatal): Likewise.