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