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