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