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