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