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