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