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