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