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