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