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