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