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