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