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