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