PR 1150
[deliverable/binutils-gdb.git] / gdb / gdbserver / ChangeLog
CommitLineData
9d1fb177
DJ
12005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
2
3 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
4 (arm_breakpoint_at): Recognize both breakpoints.
5 (the_low_target): Use the correct breakpoint instruction.
6
011a70c2
DJ
72005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
8
9 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
10 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
11 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
12 (the_low_target): Update.
13
7fb85e41
AS
142005-10-25 Andreas Schwab <schwab@suse.de>
15
16 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
17
18 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
19 (ia64_num_regs): Reduce to 462.
20
3db0444b
DJ
212005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
22
23 * acinclude.m4: Correct quoting.
24 * aclocal.m4: Regenerated.
25
26 Suggested by SZOKOVACS Robert <szo@ies.hu>:
27 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
28 (thread_db_init): Call thread_db_err_str.
29 * configure.ac: Check for TD_VERSION.
30 * config.in, configure: Regenerated.
31
bee0189a
DJ
322005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
33
34 * server.h (error, fatal, warning): Add ATTR_FORMAT.
35
e9d25b98
DJ
362005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
37
38 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
39 is not available. Define HAVE_PTRACE_GETREGS if it is.
40 * config.in, configure: Regenerated.
41 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
42 * linux-i386-low.c, linux-m68k-low.c: Update to use
43 HAVE_PTRACE_GETREGS.
44 * linux-low.c (regsets_fetch_inferior_registers)
45 (regsets_store_inferior_registers): Only return 0 if we processed
46 GENERAL_REGS.
47 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
48 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
49
a06660f7
DJ
502005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
51
52 * inferiors.c (struct thread_info): Add gdb_id.
53 (add_thread): Add gdb_id argument.
54 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
55 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
56 calls to add_thread.
57 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
58 * server.c (handle_query): Use thread_to_gdb_id.
59 (handle_v_cont, main): Use gdb_id_to_thread_id.
60 * server.h (add_thread): Update prototype.
61 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
62 prototypes.
63
5a1f5858
DJ
642005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
65
66 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
67 left-padded registers.
68 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
69 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
70
e122f1f5
SE
712005-07-01 Steve Ellcey <sje@cup.hp.com>
72
73 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
74 * configure: Regenerate.
75 * config.in: Regenerate.
76 * server.h (NEED_DECLARATION_STRERROR):
77 Replace with !HAVE_DECL_STRERROR.
78
d592fa2f
DJ
792005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
80
81 * linux-low.c (linux_wait, linux_send_signal): Don't test
82 an unsigned long variable for > 0 if it could be MAX_ULONG.
83 * server.c (myresume): Likewise.
84 * target.c (set_desired_inferior): Likewise.
85
ccbd4912
MK
862005-06-13 Mark Kettenis <kettenis@gnu.org>
87
88 * configure.ac: Simplify and improve check for socklen_t.
89 * configure, config.in: Regenerate.
90
f450004a
DJ
912005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
92
93 * acconfig.h: Remove.
94 * configure.ac: Add a test for socklen_t. Use three-argument
95 AC_DEFINE throughout.
96 * config.in: Regenerated using autoheader 2.59.
97 * configure: Regenerated.
98
99 * gdbreplay.c (socklen_t): Provide a default.
100 (remote_open): Use socklen_t.
101 * remote-utils.c (socklen_t): Provide a default.
102 (remote_open): Use socklen_t.
103 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
104 unsigned char.
105
106 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
107 char for buffers.
108 * linux-low.c (linux_read_memory, linux_write_memory)
109 (linux_read_auxv): Likewise.
110 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
111 (check_mem_write): Likewise.
112 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
113 Likewise.
114 * regcache.c (struct inferior_rgcache_data, registers_to_string)
115 (registers_from_string, register_data): Likewise.
116 * server.c (handle_query, main): Likewise.
117 * server.h (convert_ascii_to_int, convert_int_to_ascii)
118 (decode_M_packet): Likewise.
119 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
120 * target.h (struct target_ops): Update read_memory, write_memory,
121 and read_auxv.
122 (read_inferior_memory, write_inferior_memory): Update.
123 * linux-low.h (struct linux_target_ops): Change type of breakpoint
124 to unsigned char *.
125 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
126 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
127 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
128 linux-s390-low.c, linux-sh-low.c: Update for changes in
129 read_inferior_memory and the_low_target->breakpoint.
130
eee84df1
DJ
1312005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
132
133 * Makefile.in (SFILES): Add linux-ppc64-low.c.
134 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
135 * configure.srv: Add powerpc64-*-linux*.
136 * linux-ppc64-low.c: New file.
137
45b134e5
OF
1382005-05-23 Orjan Friberg <orjanf@axis.com>
139
140 * linux-cris-low.c: New file with support for CRIS.
141 * linux-crisv32-low.c: Ditto for CRISv32.
142 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
143 (clean): Add reg-cris.c and reg-crisv32.c.
144 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
145 reg-crisv32.o, and reg-crisv32.c to make rules.
146 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
147 recognized targets.
148
48d93c75
UW
1492005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
150
151 * linux-low.c (fetch_register): Ensure buffer size is a multiple
152 of sizeof (PTRACE_XFER_TYPE).
153 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
154
e013ee27
OF
1552005-05-12 Orjan Friberg <orjanf@axis.com>
156
157 * target.h (struct target_ops): Add insert_watchpoint,
158 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
159 pointers for hardware watchpoint support.
160 * linux-low.h (struct linux_target_ops): Ditto.
161 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
162 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
163 to linux_target_ops.
164 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
165 reply packet.
166 * server.c (main): Recognize 'Z' and 'z' packets.
167
b0ded00b
UW
1682005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
169
170 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
171 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
172 (the_low_target): Add new members.
173
8643e2ad
DJ
1742005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
175
176 * proc-service.c (ps_lgetregs): Search all_processes instead of
177 all_threads.
178
fc620387
DJ
1792005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
180
181 * server.c (start_inferior): Change return type to int.
182 (attach_inferior): Change sigptr to int *.
183 (handle_v_cont, handle_v_requests): Change signal to int *.
184 (main): Change signal to int.
185
1862005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
187
188 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
189 * configure.srv: Add m32r*-*-linux*.
190 * linux-m32r-low.c: New file.
191
e0e76420
DJ
1922005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
193
194 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
195
a1928bad
DJ
1962005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
197
198 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
199 Take unsigned long arguments for PIDs.
200 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
201 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
202 (wait_for_sigstop, linux_resume_one_process)
203 (regsets_fetch_inferior_registers, linux_send_signal)
204 (linux_read_auxv): Likewise. Update the types of variables holding
205 PIDs. Update format string specifiers.
206 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
207 * remote-utils.c (prepare_resume_reply): Likewise.
208 * server.c (cont_thread, general_thread, step_thread)
209 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
210 unsigned long.
211 (handle_query): Update format specifiers.
212 (handle_v_cont, main): Use strtoul for thread IDs.
213 * server.h (struct inferior_list_entry): Use unsigned long for ID.
214 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
215 (general_thread, step_thread, thread_from_wait)
216 (old_thread_from_wait): Update.
217 * target.h (struct thread_resume): Use unsigned long for THREAD.
218 (struct target_ops): Use unsigned long for arguments to attach and
219 thread_alive.
220
dcdb98d2
DJ
2212005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
222
223 * acinclude.m4: Include bfd/bfd.m4 directly.
224 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
225 <agriffis@toolchain.org>.
226 * aclocal.m4, configure: Regenerated.
227
bec39cab
AC
2282005-01-07 Andrew Cagney <cagney@gnu.org>
229
230 * configure.ac: Rename configure.in, require autoconf 2.59.
231 * configure: Re-generate.
232
434c4c77
DJ
2332004-12-08 Daniel Jacobowitz <dan@debian.org>
234
235 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
236 LIBS when finished.
237 * aclocal.m4: Regenerated.
238 * configure: Regenerated.
239
db1d3e1b
AS
2402004-11-21 Andreas Schwab <schwab@suse.de>
241
242 * linux-m68k-low.c (m68k_num_gregs): Define.
243 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
244 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
245 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
246 (m68k_breakpoint_at): New. Add to the_low_target.
247
248 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
249 srv_linux_thread_db to yes.
250
43360365
JB
2512004-10-20 Joel Brobecker <brobecker@gnat.com>
252
253 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
254 (ARCH_SET_FS): Likewise.
255 (ARCH_GET_FS): Likewise.
256 (ARCH_GET_GS): Likewise.
257
fd500816
DJ
2582004-10-16 Daniel Jacobowitz <dan@debian.org>
259
260 * linux-i386-low.c (ps_get_thread_area): New.
261 * linux-x86-64-low.c (ps_get_thread_area): New.
262 * linux-low.c: Include <sys/syscall.h>.
263 (linux_kill_one_process): Don't kill the first thread here.
264 (linux_kill): Kill the first thread here.
265 (kill_lwp): New function.
266 (send_sigstop, linux_send_signal): Use it.
267 * proc-service.c: Clean up #ifdefs.
268 (fpregset_info): Delete.
269 (ps_lgetregs): Update and enable implementation.
270 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
271 implementations.
272 * remote-utils.c (struct sym_cache, symbol_cache): New.
273 (input_interrupt): Print a clearer message.
274 (async_io_enabled): New variable.
275 (enable_async_io, disable_async_io): Use it. Update comments.
276 (look_up_one_symbol): Use the symbol cache.
277 * thread-db.c (thread_db_look_up_symbols): New function.
278 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
279
f6de3c42
DJ
2802004-10-16 Daniel Jacobowitz <dan@debian.org>
281
282 * configure.in: Test for -rdynamic.
283 * configure: Regenerated.
284 * Makefile (INTERNAL_LDFLAGS): New.
285 (gdbserver, gdbreplay): Use it.
286
2c0fc042
AC
2872004-09-02 Andrew Cagney <cagney@gnu.org>
288
289 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
290
075b3282
DJ
2912004-03-23 Daniel Jacobowitz <drow@mvista.com>
292
293 * linux-low.c (linux_wait): Clear all_processes list also.
294
fa6a77dc
DJ
2952004-03-12 Daniel Jacobowitz <drow@mvista.com>
296
297 * linux-low.c: Include <errno.h>. Remove extern declaration of
298 errno.
299
6d782a97
DJ
3002004-03-12 Daniel Jacobowitz <drow@mvista.com>
301
302 * gdbreplay.c, server.h, utils.c: Update copyright years.
303
3a7fb99b
DJ
3042004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
305
306 * server.c (main): Print child status or termination signal from
307 variable 'signal', not 'sig'.
308
c3e735a6
DJ
3092004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
310
311 * linux-low.c (linux_read_memory): Change return type to
312 int. Check for and return error from ptrace().
313 * target.c (read_inferior_memory): Change return type to int. Pass
314 back return status from the_target->read_memory().
315 * target.h (struct target_ops): Adapt *read_memory() prototype.
316 Update comment.
317 (read_inferior_memory): Adapt prototype.
318 * server.c (main): Return an error packet if
319 read_inferior_memory() returns an error.
320
a59d1c82
DJ
3212004-03-04 Daniel Jacobowitz <drow@mvista.com>
322
323 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
324 Unify with other clean targets.
325
dc3f8883
DJ
3262004-02-29 Daniel Jacobowitz <drow@mvista.com>
327
328 * server.c (handle_v_cont): Call set_desired_inferior.
329
89a208da
DJ
3302004-02-29 Daniel Jacobowitz <drow@mvista.com>
331
332 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
333
62ea82f5
DJ
3342004-02-29 Daniel Jacobowitz <drow@mvista.com>
335
336 * linux-low.c (linux_wait): Unblock async I/O.
337 (linux_resume): Block and enable async I/O.
338 * remote-utils.c (block_async_io, unblock_async_io): New functions.
339 * server.h (block_async_io, unblock_async_io): Add prototypes.
340
6910d122
DJ
3412004-02-29 Daniel Jacobowitz <drow@mvista.com>
342
343 * remote-utils.c (remote_open): Print a status notice after
344 opening a TCP port.
345 * server.c (attach_inferior): Print a status notice after
346 attaching.
347
3482004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
349
350 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
351
c89dc5d4
DJ
3522004-02-26 Daniel Jacobowitz <drow@mvista.com>
353
354 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
355 error packet.
356 * server.c, target.h: Update copyright years.
357
4b8dad4a
RM
3582004-02-25 Roland McGrath <roland@redhat.com>
359
360 * target.h (struct target_ops): New member `read_auxv'.
361 * server.c (handle_query): Handle qPart:auxv:read: query using that.
362 * linux-low.c (linux_read_auxv): New function.
363 (linux_target_ops): Initialize `read_auxv' member to that.
364
d7446758
JB
3652004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
366
367 Committed by Jim Blandy <jimb@redhat.com>.
368
369 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 370 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
371 instead of GPR_SIZE to distiguish s390 and s390x targets.
372
5544ad89
DJ
3732004-01-31 Daniel Jacobowitz <drow@mvista.com>
374
375 * linux-low.c: Update copyright year.
376 (check_removed_breakpoint): Clear pending_is_breakpoint.
377 (linux_set_resume_request, linux_queue_one_thread)
378 (resume_status_pending_p): New functions.
379 (linux_continue_one_thread): Use process->resume.
380 (linux_resume): Only resume threads if there are no pending events.
381 * linux-low.h (struct process_info): Add resume request
382 pointer.
383
2a68b70e
DJ
3842004-01-30 Daniel Jacobowitz <drow@mvista.com>
385
386 * regcache.c (new_register_cache): Clear the allocated register
387 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
388
64386c31
DJ
3892003-10-13 Daniel Jacobowitz <drow@mvista.com>
390
391 * linux-low.c (linux_resume): Take a struct thread_resume *
392 argument.
393 (linux_wait): Update call.
394 (resume_ptr): New static variable.
395 (linux_continue_one_thread): Renamed from
396 linux_continue_one_process. Use resume_ptr.
397 (linux_resume): Use linux_continue_one_thread.
398 * server.c (handle_v_cont, handle_v_requests): New functions.
399 (myresume): New function.
400 (main): Handle 'v' case.
401 * target.h (struct thread_resume): New type.
402 (struct target_ops): Change argument of "resume" to struct
403 thread_resume *.
404 (myresume): Delete macro.
405
c938e9b0
L
4062003-08-08 H.J. Lu <hongjiu.lu@intel.com>
407
408 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
409 (uninstall): Support DESTDIR.
410
7f313d07
BC
411Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
412
413 * configure.srv: Add xscale*linux copy of arm*linux entry.
414
3b2fc2ea
DJ
4152003-07-24 Daniel Jacobowitz <drow@mvista.com>
416
417 * linux-arm-low.c (arm_reinsert_addr): New function.
418 (the_low_target): Add arm_reinsert_addr.
419
1c0a559e
MK
4202003-07-08 Mark Kettenis <kettenis@gnu.org>
421
422 * mem-break.c: Remove whitespace at end of file.
423
43d5792c
DJ
4242003-06-28 Daniel Jacobowitz <drow@mvista.com>
425
426 * configure.in: Check whether we need to prototype strerror.
427 * server.h: Optionally prototype strerror.
428 * gdbreplay.c (perror_with_name): Use strerror.
429 * linux-low.c (linux_attach_lwp): Use strerror.
430 * utils.c (perror_with_name): Use strerror.
431 * config.in, configure: Regenerated.
432
c8a86edf
DJ
4332003-06-28 Daniel Jacobowitz <drow@mvista.com>
434
435 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
436 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
437
73d37363
DJ
4382003-06-20 Daniel Jacobowitz <drow@mvista.com>
439
440 * Makefile.in (SFILES): Update.
441 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
442 low-sun3.c: Remove files.
443
6ad8ae5c
DJ
4442003-06-17 Daniel Jacobowitz <drow@mvista.com>
445
446 * linux-low.c: Move comment to linux_thread_alive where it belonged.
447 (linux_detach_one_process, linux_detach): New functions.
448 (linux_target_ops): Add linux_detach.
449 * server.c (main): Handle 'D' packet.
450 * target.h (struct target_ops): Add "detach" member.
451 (detach_inferior): Define.
452
1581182a
MK
4532003-06-13 Mark Kettenis <kettenis@gnu.org>
454
455 From Kelley Cook <kelleycook@wideopenwest.com>:
456 * configure.srv: Accept i[34567]86 variants.
457
e5379b03
DJ
4582003-06-05 Daniel Jacobowitz <drow@mvista.com>
459
460 * linux-low.c (linux_wait_for_event): Correct comment typos.
461 (linux_resume_one_process): Call check_removed_breakpoint.
462 (linux_send_signal): New function.
463 (linux_target_ops): Add linux_send_signal.
464 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
465 of kill.
466 * target.h (struct target_ops): Add send_signal.
467
2ff29de4
JB
4682003-05-29 Jim Blandy <jimb@redhat.com>
469
470 * linux-low.c (usr_store_inferior_registers): Transfer buf in
471 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
472 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
473 away part of the register's value.
474
254787d4
DJ
4752003-03-26 Daniel Jacobowitz <drow@mvista.com>
476
477 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
478 (linux_wait_for_event, linux_init_signals): Likewise.
479
94e10508
DJ
4802003-03-17 Daniel Jacobowitz <drow@mvista.com>
481
482 * configure.in: Check for stdlib.h.
483 * configure: Regenerated.
484 * config.in: Regenerated.
485
4c0711e0
DJ
4862003-01-04 Andreas Schwab <schwab@suse.de>
487
488 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
489
ef66e766
AC
4902003-01-02 Andrew Cagney <ac131313@redhat.com>
491
492 * Makefile.in: Remove obsolete code.
493
a1358604
DJ
4942002-11-20 Daniel Jacobowitz <drow@mvista.com>
495
496 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
497 defined(PT_FPR0_HI).
498
23ce3b1c
DJ
4992002-11-17 Stuart Hughes <seh@zee2.com>
500
501 * linux-arm-low.c (arm_num_regs): Increase.
502 (arm_regmap): Include status register.
503
5042002-11-17 Daniel Jacobowitz <drow@mvista.com>
505
506 * linux-low.c (register_addr): Remove incorrect -1 check.
507
a9fa9f7d
DJ
5082002-08-29 Daniel Jacobowitz <drow@mvista.com>
509
510 * linux-low.c (linux_create_inferior): Call setpgid. Return
511 the new PID.
512 (unstopped_p, linux_signal_pid): Remove.
513 (linux_target_ops): Remove linux_signal_pid.
514 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
515 global instead of target method.
516 * target.h (struct target_ops): Remove signal_pid. Update comment
517 for create_inferior.
518 * server.c (signal_pid): New variable.
519 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 520 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
521 (attach_inferior): Set signal_pid.
522
17574093
DJ
5232002-08-23 Daniel Jacobowitz <drow@mvista.com>
524
525 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
526
5272002-08-20 Jim Blandy <jimb@redhat.com>
528
529 * Makefile.in (LDFLAGS): Allow the configure script to establish a
530 default for this.
531
5322002-08-01 Andrew Cagney <cagney@redhat.com>
533
534 * Makefile.in: Make chill references obsolete.
535
5362002-07-24 Kevin Buettner <kevinb@redhat.com>
537
538 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
539 * configure: Regenerate.
540 * config.in: Regenerate.
541
5422002-07-09 David O'Brien <obrien@FreeBSD.org>
543
544 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
545 (perror_with_name, remote_close, remote_open, expect, play): Static.
546
5472002-07-04 Michal Ludvig <mludvig@suse.cz>
548
4b8dad4a 549 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
550 byte offsets instead of an array of indexes.
551 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
552
5532002-06-13 Daniel Jacobowitz <drow@mvista.com>
554
555 * regcache.c: Add comment.
556
5572002-06-11 Daniel Jacobowitz <drow@mvista.com>
558
559 * thread-db.c: New file.
560 * proc-service.c: New file.
561 * acinclude.m4: New file.
562 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
563 proc-service.o, and thread-db.o.
564 (linux-low.o): Add USE_THREAD_DB.
565 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
566 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
567 * aclocal.m4: Regenerated.
568 * config.in: Regenerated.
569 * configure: Regenerated.
570 * configure.in: Check for proc_service.h, sys/procfs.h,
571 thread_db.h, and linux/elf.h headrs.
572 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
573 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
574 Check for -lthread_db and thread support.
575 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
576 PowerPC, and SuperH.
577 * i387-fp.c: Constify arguments.
578 * i387-fp.h: Likewise.
579 * inferiors.c: (struct thread_info): Renamed from
580 `struct inferior_info'. Remove PID member. Use generic inferior
581 list header. All uses updated.
582 (inferiors, signal_pid): Removed.
583 (all_threads): New variable.
584 (get_thread): Define.
585 (add_inferior_to_list): New function.
586 (for_each_inferior): New function.
587 (change_inferior_id): New function.
588 (add_inferior): Removed.
589 (remove_inferior): New function.
590 (add_thread): New function.
591 (free_one_thread): New function.
592 (remove_thread): New function.
593 (clear_inferiors): Use for_each_inferior and free_one_thread.
594 (find_inferior): New function.
595 (find_inferior_id): New function.
596 (inferior_target_data): Update argument type.
597 (set_inferior_target_data): Likewise.
598 (inferior_regcache_data): Likewise.
599 (set_inferior_regcache_data): Likewise.
600 * linux-low.c (linux_bp_reinsert): Remove.
601 (all_processes, stopping_threads, using_thrads)
602 (struct pending_signals, debug_threads, pid_of): New.
603 (inferior_pid): Replace with macro.
604 (struct inferior_linux_data): Remove.
605 (get_stop_pc, add_process): New functions.
606 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
607 Use add_process and add_thread.
608 (linux_attach_lwp): New function, based on old linux_attach. Use
609 add_process and add_thread. Set stop_expected for new threads.
610 (linux_attach): New function.
611 (linux_kill_one_process): New function.
612 (linux_kill): Kill all LWPs.
613 (linux_thread_alive): Use find_inferior_id.
614 (check_removed_breakpoints, status_pending_p): New functions.
615 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
616 Update. Use WNOHANG. Wait for cloned processes also. Update process
617 struct for the found process.
618 (linux_wait_for_event): New function.
619 (linux_wait): Use it. Support LWPs.
620 (send_sigstop, wait_for_sigstop, stop_all_processes)
621 (linux_resume_one_process, linux_continue_one_process): New functions.
622 (linux_resume): Support LWPs.
623 (REGISTER_RAW_SIZE): Remove.
624 (fetch_register): Use register_size instead. Call supply_register.
625 (usr_store_inferior_registers): Likewise. Call collect_register.
626 Fix recursive case.
627 (regsets_fetch_inferior_registers): Improve error message.
628 (regsets_store_inferior_registers): Add debugging.
629 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
630 (unstopped_p, linux_signal_pid): New functions.
631 (linux_target_ops): Add linux_signal_pid.
632 (linux_init_signals): New function.
633 (initialize_low): Call it. Initialize using_threads.
634 * regcache.c (inferior_regcache_data): Add valid
635 flag.
636 (get_regcache): Fetch registers lazily. Add fetch argument
637 and update all callers.
638 (regcache_invalidate_one, regcache_invalidate): New
639 functions.
640 (new_register_cache): Renamed from create_register_cache.
641 Return the new regcache.
642 (free_register_cache): Change argument to a void *.
643 (registers_to_string, registers_from_string): Call get_regcache
644 with fetch flag set.
645 (register_data): Make static. Pass fetch flag to get_regcache.
646 (supply_register): Call get_regcache with fetch flag clear.
647 (collect_register): Call get_regcache with fetch flag set.
648 (collect_register_as_string): New function.
649 * regcache.h: Update.
650 * remote-utils.c (putpkt): Flush after debug output and use
651 stderr.
652 Handle input interrupts while waiting for an ACK.
653 (input_interrupt): Use signal_pid method.
654 (getpkt): Flush after debug output and use stderr.
655 (outreg): Use collect_register_as_string.
656 (new_thread_notify, dead_thread_notify): New functions.
657 (prepare_resume_reply): Check using_threads. Set thread_from_wait
658 and general_thread.
659 (look_up_one_symbol): Flush after debug output.
660 * server.c (step_thread, server_waiting): New variables.
661 (start_inferior): Don't use signal_pid. Update call to mywait.
662 (attach_inferior): Update call to mywait.
663 (handle_query): Handle qfThreadInfo and qsThreadInfo.
664 (main): Don't fetch/store registers explicitly. Use
665 set_desired_inferior. Support proposed ``Hs'' packet. Update
666 calls to mywait.
667 * server.h: Update.
668 (struct inferior_list, struct_inferior_list_entry): New.
669 * target.c (set_desired_inferior): New.
670 (write_inferior_memory): Constify.
671 (mywait): New function.
672 * target.h: Update.
673 (struct target_ops): New signal_pid method.
674 (mywait): Removed macro, added prototype.
675
676 * linux-low.h (regset_func): Removed.
677 (regset_fill_func, regset_store_func): New.
678 (enum regset_type): New.
679 (struct regset_info): Add type field. Use new operation types.
680 (struct linux_target_ops): stop_pc renamed to get_pc.
681 Add decr_pc_after_break and breakpoint_at.
682 (get_process, get_thread_proess, get_process_thread)
683 (strut process_info, all_processes, linux_attach_lwp)
684 (thread_db_init): New.
685
686 * linux-arm-low.c (arm_get_pc, arm_set_pc,
687 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
688 (the_low_target): Add new members.
689 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
690 (i386_store_fpxregset): Constify.
691 (target_regsets): Add new kind identifier.
692 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
693 (i386_set_pc): Add debugging.
694 (i386_breakpoint_at): New function.
695 (the_low_target): Add new members.
696 * linux-mips-low.c (mips_get_pc, mips_set_pc)
697 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
698 (mips_breakpoint_at): New.
699 (the_low_target): Add new members.
700 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
701 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
702 (the_low_target): Add new members.
703 * linux-sh-low.c (sh_get_pc, sh_set_pc)
704 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
705 (the_low_target): Add new members.
706 * linux-x86-64-low.c (target_regsets): Add new kind
707 identifier.
708
7092002-05-15 Daniel Jacobowitz <drow@mvista.com>
710
711 From Martin Pool <mbp@samba.org>:
712 * server.c (gdbserver_usage): New function.
713 (main): Call it.
714
7152002-05-14 Daniel Jacobowitz <drow@mvista.com>
716
717 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
718 stop_at -> stop_pc.
719
7202002-05-04 Andrew Cagney <ac131313@redhat.com>
721
722 * Makefile.in: Remove obsolete code.
723
7242002-04-24 Michal Ludvig <mludvig@suse.cz>
725
726 * linux-low.c (regsets_fetch_inferior_registers),
727 (regsets_store_inferior_registers): Removed cast to int from
728 ptrace() calls.
729 * regcache.h: Added declaration of struct inferior_info.
730
7312002-04-20 Daniel Jacobowitz <drow@mvista.com>
732
733 * inferiors.c (struct inferior_info): Add regcache_data.
734 (add_inferior): Call create_register_cache.
735 (clear_inferiors): Call free_register_cache.
736 (inferior_regcache_data, set_inferior_regcache_data): New functions.
737 * regcache.c (struct inferior_regcache_data): New.
738 (registers): Remove.
739 (get_regcache): New function.
740 (create_register_cache, free_register_cache): New functions.
741 (set_register_cache): Don't initialize the register cache here.
742 (registers_to_string, registers_from_string, register_data): Call
743 get_regcache.
744 * regcache.h: Add prototypes.
745 * server.h: Likewise.
746
7472002-04-20 Daniel Jacobowitz <drow@mvista.com>
748
749 * mem-break.c: New file.
750 * mem-break.h: New file.
751 * Makefile.in: Add mem-break.o rule; update server.h
752 dependencies.
753 * inferiors.c (struct inferior_info): Add target_data
754 member.
755 (clear_inferiors): Free target_data member if set.
756 (inferior_target_data, set_inferior_target_data): New functions.
757 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
758 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
759 * linux-low.c (linux_bp_reinsert): New variable.
760 (struct inferior_linux_data): New.
761 (linux_create_inferior): Use set_inferior_target_data.
762 (linux_attach): Likewise. Call add_inferior.
763 (linux_wait_for_one_inferior): New function.
764 (linux_wait): Call it.
765 (linux_write_memory): Add const.
766 (initialize_low): Call set_breakpoint_data.
767 * linux-low.h (struct linux_target_ops): Add breakpoint
768 handling members.
769 * server.c (attach_inferior): Remove extra add_inferior
770 call.
771 * server.h: Include mem-break.h. Update inferior.c
772 prototypes.
773 * target.c (read_inferior_memory)
774 (write_inferior_memory): New functions.
775 * target.h (read_inferior_memory)
776 (write_inferior_memory): Change macros to prototypes.
777 (struct target_ops): Update comments. Add const to write_memory
778 definition.
779
7802002-04-11 Daniel Jacobowitz <drow@mvista.com>
781
782 * linux-low.c (usr_store_inferior_registers): Support
783 registers which are allowed to fail to store.
784 * linux-low.h (linux_target_ops): Likewise.
785 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
786 (ppc_cannot_store_register): FPSCR may not be storable.
787
7882002-04-09 Daniel Jacobowitz <drow@mvista.com>
789
790 * server.h: Include <string.h> if HAVE_STRING_H.
791 * ChangeLog: Correct paths in last ChangeLog entry.
792
7932002-04-09 Daniel Jacobowitz <drow@mvista.com>
794
795 * linux-low.h: Remove obsolete prototypes.
796 (struct linux_target_ops): New.
797 (extern the_low_target): New.
798 * linux-low.c (num_regs, regmap): Remove declarations.
799 (register_addr): Use the_low_target explicitly.
800 (fetch_register): Likewise.
801 (usr_fetch_inferior_registers): Likewise.
802 (usr_store_inferior_registers): Likewise.
803 * linux-arm-low.c (num_regs): Remove.
804 (arm_num_regs): Define.
805 (arm_regmap): Renamed from regmap, made static.
806 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
807 made static.
808 (arm_cannot_store_register): Renamed from cannot_store_register,
809 made static.
810 (the_low_target): New.
811 * linux-i386-low.c (num_regs): Remove.
812 (i386_num_regs): Define.
813 (i386_regmap): Renamed from regmap, made static.
814 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
815 made static.
816 (i386_cannot_store_register): Renamed from cannot_store_register,
817 made static.
818 (the_low_target): New.
819 * linux-ia64-low.c (num_regs): Remove.
820 (ia64_num_regs): Define.
821 (ia64_regmap): Renamed from regmap, made static.
822 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
823 made static.
824 (ia64_cannot_store_register): Renamed from cannot_store_register,
825 made static.
826 (the_low_target): New.
827 * linux-m68k-low.c (num_regs): Remove.
828 (m68k_num_regs): Define.
829 (m68k_regmap): Renamed from regmap, made static.
830 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
831 made static.
832 (m68k_cannot_store_register): Renamed from cannot_store_register,
833 made static.
834 (the_low_target): New.
835 * linux-mips-low.c (num_regs): Remove.
836 (mips_num_regs): Define.
837 (mips_regmap): Renamed from regmap, made static.
838 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
839 made static.
840 (mips_cannot_store_register): Renamed from cannot_store_register,
841 made static.
842 (the_low_target): New.
843 * linux-ppc-low.c (num_regs): Remove.
844 (ppc_num_regs): Define.
845 (ppc_regmap): Renamed from regmap, made static.
846 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
847 made static.
848 (ppc_cannot_store_register): Renamed from cannot_store_register,
849 made static.
850 (the_low_target): New.
851 * linux-s390-low.c (num_regs): Remove.
852 (s390_num_regs): Define.
853 (s390_regmap): Renamed from regmap, made static.
854 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
855 made static.
856 (s390_cannot_store_register): Renamed from cannot_store_register,
857 made static.
858 (the_low_target): New.
859 * linux-sh-low.c (num_regs): Remove.
860 (sh_num_regs): Define.
861 (sh_regmap): Renamed from regmap, made static.
862 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
863 made static.
864 (sh_cannot_store_register): Renamed from cannot_store_register,
865 made static.
866 (the_low_target): New.
867 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
868 (the_low_target): New.
869
8702002-04-09 Daniel Jacobowitz <drow@mvista.com>
871
872 * Makefile.in: Add stamp-h target.
873 * configure.in: Create stamp-h.
874 * configure: Regenerated.
875
8762002-04-09 Daniel Jacobowitz <drow@mvista.com>
877
878 * inferiors.c: New file.
879 * target.c: New file.
880 * target.h: New file.
881 * Makefile.in: Add target.o and inferiors.o. Update
882 dependencies.
883 * linux-low.c (inferior_pid): New static variable,
884 moved from server.c.
885 (linux_create_inferior): Renamed from create_inferior.
886 Call add_inferior. Return 0 on success instead of a PID.
887 (linux_attach): Renamed from myattach.
888 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
889 (linux_thread_alive): Renamed from mythread_alive.
890 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
891 child dies.
892 (linux_resume): Renamed from myresume. Add missing ``return 0''.
893 (regsets_store_inferior_registers): Correct error message.
894 Add missing ``return 0''.
895 (linux_fetch_registers): Renamed from fetch_inferior_registers.
896 (linux_store_registers): Renamed from store_inferior_registers.
897 (linux_read_memory): Renamed from read_inferior_memory.
898 (linux_write_memory): Renamed from write_inferior_memory.
899 (linux_target_ops): New structure.
900 (initialize_low): Call set_target_ops ().
901 * remote-utils.c (unhexify): New function.
902 (hexify): New function.
903 (input_interrupt): Send signals to ``signal_pid''.
904 * server.c (inferior_pid): Remove.
905 (start_inferior): Update create_inferior call.
906 (attach_inferior): Call add_inferior.
907 (handle_query): New function.
908 (main): Call handle_query for `q' packets.
909 * server.h: Include "target.h". Remove obsolete prototypes.
910 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
911
9122002-04-09 Daniel Jacobowitz <drow@mvista.com>
913
914 * Makefile.in: Add WARN_CFLAGS. Update configury
915 dependencies.
916 * configure.in: Check for <string.h>
917 * configure: Regenerate.
918 * config.in: Regenerate.
919 * gdbreplay.c: Include needed system headers.
920 (remote_open): Remove strchr prototype.
921 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
922 * regcache.c (supply_register): Change buf argument to const void *.
923 (supply_register_by_name): Likewise.
924 (collect_register): Change buf argument to void *.
925 (collect_register_by_name): Likewise.
926 * regcache.h: Add missing prototypes.
927 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
928 * server.c (handle_query): New function.
929 (attached): New static variable, moved out of main.
930 (main): Quiet longjmp clobber warnings.
931 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
932 * utils.c (error): Remove NORETURN.
933 (fatal): Likewise.
This page took 0.49784 seconds and 4 git commands to generate.