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