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