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