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