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