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