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