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