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