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