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