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