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