]>
Commit | Line | Data |
---|---|---|
9db87ebd DJ |
1 | 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
2 | ||
3 | * server.c (attach_inferior): Return SIGTRAP for a successful | |
4 | attach. | |
5 | ||
dd24457d DJ |
6 | 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
7 | ||
8 | * Makefile.in (OBS): Add version.o. | |
9 | (STAGESTUFF): Delete. | |
10 | (version.o): Add dependencies. | |
11 | (version.c): Replace rule. | |
12 | (clean): Remove version.c. | |
13 | * server.c (gdbserver_version): New. | |
14 | (gdbserver_usage): Use printf. | |
15 | (main): Handle --version and --help. | |
16 | * server.h (version, host_name): Add declarations. | |
17 | ||
6f0f660e EZ |
18 | 2005-12-23 Eli Zaretskii <eliz@gnu.org> |
19 | ||
20 | * linux-arm-low.c: | |
21 | * linux-arm-low.c: | |
22 | * inferiors.c: | |
23 | * i387-fp.h: | |
24 | * i387-fp.c: | |
25 | * gdbreplay.c: | |
26 | * regcache.c: | |
27 | * proc-service.c: | |
28 | * mem-break.h: | |
29 | * mem-break.c: | |
30 | * linux-x86-64-low.c: | |
31 | * linux-sh-low.c: | |
32 | * linux-s390-low.c: | |
33 | * linux-ppc64-low.c: | |
34 | * linux-ppc-low.c: | |
35 | * linux-mips-low.c: | |
36 | * linux-m68k-low.c: | |
37 | * linux-m32r-low.c: | |
38 | * linux-low.h: | |
39 | * linux-low.c: | |
40 | * linux-ia64-low.c: | |
41 | * linux-i386-low.c: | |
42 | * linux-crisv32-low.c: | |
43 | * thread-db.c: | |
44 | * terminal.h: | |
45 | * target.h: | |
46 | * target.c: | |
47 | * server.h: | |
48 | * server.c: | |
49 | * remote-utils.c: | |
50 | * regcache.h: | |
51 | * utils.c: | |
52 | * Makefile.in: | |
53 | * configure.ac: | |
54 | * gdbserver.1: Add (C) after Copyright. Update the FSF | |
55 | address. | |
56 | ||
9d1fb177 DJ |
57 | 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com> |
58 | ||
59 | * linux-arm-low.c (arm_eabi_breakpoint): New variable. | |
60 | (arm_breakpoint_at): Recognize both breakpoints. | |
61 | (the_low_target): Use the correct breakpoint instruction. | |
62 | ||
011a70c2 DJ |
63 | 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com> |
64 | ||
65 | * configure.srv (x86_64-*-linux*): Turn on thread_db support. | |
66 | * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len) | |
67 | (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New. | |
68 | (the_low_target): Update. | |
69 | ||
7fb85e41 AS |
70 | 2005-10-25 Andreas Schwab <schwab@suse.de> |
71 | ||
72 | * server.c (main): Allocate mem_buf with PBUFSIZ bytes. | |
73 | ||
74 | * linux-ia64-low.c (ia64_regmap): Remove NAT registers. | |
75 | (ia64_num_regs): Reduce to 462. | |
76 | ||
3db0444b DJ |
77 | 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com> |
78 | ||
79 | * acinclude.m4: Correct quoting. | |
80 | * aclocal.m4: Regenerated. | |
81 | ||
82 | Suggested by SZOKOVACS Robert <szo@ies.hu>: | |
83 | * thread-db.c (thread_db_err_str): Handle TD_VERSION. | |
84 | (thread_db_init): Call thread_db_err_str. | |
85 | * configure.ac: Check for TD_VERSION. | |
86 | * config.in, configure: Regenerated. | |
87 | ||
bee0189a DJ |
88 | 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
89 | ||
90 | * server.h (error, fatal, warning): Add ATTR_FORMAT. | |
91 | ||
e9d25b98 DJ |
92 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
93 | ||
94 | * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS | |
95 | is not available. Define HAVE_PTRACE_GETREGS if it is. | |
96 | * config.in, configure: Regenerated. | |
97 | * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64. | |
98 | * linux-i386-low.c, linux-m68k-low.c: Update to use | |
99 | HAVE_PTRACE_GETREGS. | |
100 | * linux-low.c (regsets_fetch_inferior_registers) | |
101 | (regsets_store_inferior_registers): Only return 0 if we processed | |
102 | GENERAL_REGS. | |
103 | * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New. | |
104 | * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New. | |
105 | ||
a06660f7 DJ |
106 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
107 | ||
108 | * inferiors.c (struct thread_info): Add gdb_id. | |
109 | (add_thread): Add gdb_id argument. | |
110 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New. | |
111 | * linux-low.c (linux_create_inferior, linux_attach_lwp): Update | |
112 | calls to add_thread. | |
113 | * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id. | |
114 | * server.c (handle_query): Use thread_to_gdb_id. | |
115 | (handle_v_cont, main): Use gdb_id_to_thread_id. | |
116 | * server.h (add_thread): Update prototype. | |
117 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New | |
118 | prototypes. | |
119 | ||
5a1f5858 DJ |
120 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
121 | ||
122 | * linux-low.c (fetch_register, usr_store_inferior_registers): Handle | |
123 | left-padded registers. | |
124 | * linux-low.h (struct linux_target_ops): Add left_pad_xfer. | |
125 | * linux-ppc64-low.c (the_low_target): Set left_pad_xfer. | |
126 | ||
e122f1f5 SE |
127 | 2005-07-01 Steve Ellcey <sje@cup.hp.com> |
128 | ||
129 | * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS. | |
130 | * configure: Regenerate. | |
131 | * config.in: Regenerate. | |
132 | * server.h (NEED_DECLARATION_STRERROR): | |
133 | Replace with !HAVE_DECL_STRERROR. | |
134 | ||
d592fa2f DJ |
135 | 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com> |
136 | ||
137 | * linux-low.c (linux_wait, linux_send_signal): Don't test | |
138 | an unsigned long variable for > 0 if it could be MAX_ULONG. | |
139 | * server.c (myresume): Likewise. | |
140 | * target.c (set_desired_inferior): Likewise. | |
141 | ||
ccbd4912 MK |
142 | 2005-06-13 Mark Kettenis <kettenis@gnu.org> |
143 | ||
144 | * configure.ac: Simplify and improve check for socklen_t. | |
145 | * configure, config.in: Regenerate. | |
146 | ||
f450004a DJ |
147 | 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com> |
148 | ||
149 | * acconfig.h: Remove. | |
150 | * configure.ac: Add a test for socklen_t. Use three-argument | |
151 | AC_DEFINE throughout. | |
152 | * config.in: Regenerated using autoheader 2.59. | |
153 | * configure: Regenerated. | |
154 | ||
155 | * gdbreplay.c (socklen_t): Provide a default. | |
156 | (remote_open): Use socklen_t. | |
157 | * remote-utils.c (socklen_t): Provide a default. | |
158 | (remote_open): Use socklen_t. | |
159 | (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use | |
160 | unsigned char. | |
161 | ||
162 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned | |
163 | char for buffers. | |
164 | * linux-low.c (linux_read_memory, linux_write_memory) | |
165 | (linux_read_auxv): Likewise. | |
166 | * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read) | |
167 | (check_mem_write): Likewise. | |
168 | * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write): | |
169 | Likewise. | |
170 | * regcache.c (struct inferior_rgcache_data, registers_to_string) | |
171 | (registers_from_string, register_data): Likewise. | |
172 | * server.c (handle_query, main): Likewise. | |
173 | * server.h (convert_ascii_to_int, convert_int_to_ascii) | |
174 | (decode_M_packet): Likewise. | |
175 | * target.c (read_inferior_memory, write_inferior_memory): Likewise. | |
176 | * target.h (struct target_ops): Update read_memory, write_memory, | |
177 | and read_auxv. | |
178 | (read_inferior_memory, write_inferior_memory): Update. | |
179 | * linux-low.h (struct linux_target_ops): Change type of breakpoint | |
180 | to unsigned char *. | |
181 | * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c, | |
182 | linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c, | |
183 | linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c, | |
184 | linux-s390-low.c, linux-sh-low.c: Update for changes in | |
185 | read_inferior_memory and the_low_target->breakpoint. | |
186 | ||
eee84df1 DJ |
187 | 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com> |
188 | ||
189 | * Makefile.in (SFILES): Add linux-ppc64-low.c. | |
190 | (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets. | |
191 | * configure.srv: Add powerpc64-*-linux*. | |
192 | * linux-ppc64-low.c: New file. | |
193 | ||
45b134e5 OF |
194 | 2005-05-23 Orjan Friberg <orjanf@axis.com> |
195 | ||
196 | * linux-cris-low.c: New file with support for CRIS. | |
197 | * linux-crisv32-low.c: Ditto for CRISv32. | |
198 | * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c. | |
199 | (clean): Add reg-cris.c and reg-crisv32.c. | |
200 | Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c, | |
201 | reg-crisv32.o, and reg-crisv32.c to make rules. | |
202 | * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of | |
203 | recognized targets. | |
204 | ||
48d93c75 UW |
205 | 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com> |
206 | ||
207 | * linux-low.c (fetch_register): Ensure buffer size is a multiple | |
208 | of sizeof (PTRACE_XFER_TYPE). | |
209 | (usr_store_inferior_registers): Likewise. Zero out excess bytes. | |
210 | ||
e013ee27 OF |
211 | 2005-05-12 Orjan Friberg <orjanf@axis.com> |
212 | ||
213 | * target.h (struct target_ops): Add insert_watchpoint, | |
214 | remove_watchpoint, stopped_by_watchpoint, stopped_data_address function | |
215 | pointers for hardware watchpoint support. | |
216 | * linux-low.h (struct linux_target_ops): Ditto. | |
217 | * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint) | |
218 | (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add | |
219 | to linux_target_ops. | |
220 | * remote-utils.c (prepare_resume_reply): Add watchpoint information to | |
221 | reply packet. | |
222 | * server.c (main): Recognize 'Z' and 'z' packets. | |
223 | ||
b0ded00b UW |
224 | 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com> |
225 | ||
226 | * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define. | |
227 | (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions. | |
228 | (the_low_target): Add new members. | |
229 | ||
8643e2ad DJ |
230 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
231 | ||
232 | * proc-service.c (ps_lgetregs): Search all_processes instead of | |
233 | all_threads. | |
234 | ||
fc620387 DJ |
235 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
236 | ||
237 | * server.c (start_inferior): Change return type to int. | |
238 | (attach_inferior): Change sigptr to int *. | |
239 | (handle_v_cont, handle_v_requests): Change signal to int *. | |
240 | (main): Change signal to int. | |
241 | ||
242 | 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com> | |
7cfbc4a0 KI |
243 | |
244 | * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o. | |
245 | * configure.srv: Add m32r*-*-linux*. | |
246 | * linux-m32r-low.c: New file. | |
247 | ||
e0e76420 DJ |
248 | 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com> |
249 | ||
250 | * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly. | |
251 | ||
a1928bad DJ |
252 | 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
253 | ||
254 | * inferiors.c (change_inferior_id, add_thread, find_inferior_id): | |
255 | Take unsigned long arguments for PIDs. | |
256 | * linux-low.c (add_process, linux_attach_lwp, linux_attach) | |
257 | (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop) | |
258 | (wait_for_sigstop, linux_resume_one_process) | |
259 | (regsets_fetch_inferior_registers, linux_send_signal) | |
260 | (linux_read_auxv): Likewise. Update the types of variables holding | |
261 | PIDs. Update format string specifiers. | |
262 | * linux-low.h (struct process_info, linux_attach_lwp): Likewise. | |
263 | * remote-utils.c (prepare_resume_reply): Likewise. | |
264 | * server.c (cont_thread, general_thread, step_thread) | |
265 | (thread_from_wait, old_thread_from_wait, signal_pid): Change type to | |
266 | unsigned long. | |
267 | (handle_query): Update format specifiers. | |
268 | (handle_v_cont, main): Use strtoul for thread IDs. | |
269 | * server.h (struct inferior_list_entry): Use unsigned long for ID. | |
270 | (add_thread, find_inferior_id, change_inferior_id, cont_thread) | |
271 | (general_thread, step_thread, thread_from_wait) | |
272 | (old_thread_from_wait): Update. | |
273 | * target.h (struct thread_resume): Use unsigned long for THREAD. | |
274 | (struct target_ops): Use unsigned long for arguments to attach and | |
275 | thread_alive. | |
276 | ||
dcdb98d2 DJ |
277 | 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com> |
278 | ||
279 | * acinclude.m4: Include bfd/bfd.m4 directly. | |
280 | * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis | |
281 | <agriffis@toolchain.org>. | |
282 | * aclocal.m4, configure: Regenerated. | |
283 | ||
bec39cab AC |
284 | 2005-01-07 Andrew Cagney <cagney@gnu.org> |
285 | ||
286 | * configure.ac: Rename configure.in, require autoconf 2.59. | |
287 | * configure: Re-generate. | |
288 | ||
434c4c77 DJ |
289 | 2004-12-08 Daniel Jacobowitz <dan@debian.org> |
290 | ||
291 | * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset | |
292 | LIBS when finished. | |
293 | * aclocal.m4: Regenerated. | |
294 | * configure: Regenerated. | |
295 | ||
db1d3e1b AS |
296 | 2004-11-21 Andreas Schwab <schwab@suse.de> |
297 | ||
298 | * linux-m68k-low.c (m68k_num_gregs): Define. | |
299 | (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset) | |
300 | (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New. | |
301 | (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc) | |
302 | (m68k_breakpoint_at): New. Add to the_low_target. | |
303 | ||
304 | * configure.srv (m68*-*-linux*): Set srv_linux_regsets and | |
305 | srv_linux_thread_db to yes. | |
306 | ||
43360365 JB |
307 | 2004-10-20 Joel Brobecker <brobecker@gnat.com> |
308 | ||
309 | * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing. | |
310 | (ARCH_SET_FS): Likewise. | |
311 | (ARCH_GET_FS): Likewise. | |
312 | (ARCH_GET_GS): Likewise. | |
313 | ||
fd500816 DJ |
314 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
315 | ||
316 | * linux-i386-low.c (ps_get_thread_area): New. | |
317 | * linux-x86-64-low.c (ps_get_thread_area): New. | |
318 | * linux-low.c: Include <sys/syscall.h>. | |
319 | (linux_kill_one_process): Don't kill the first thread here. | |
320 | (linux_kill): Kill the first thread here. | |
321 | (kill_lwp): New function. | |
322 | (send_sigstop, linux_send_signal): Use it. | |
323 | * proc-service.c: Clean up #ifdefs. | |
324 | (fpregset_info): Delete. | |
325 | (ps_lgetregs): Update and enable implementation. | |
326 | (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled | |
327 | implementations. | |
328 | * remote-utils.c (struct sym_cache, symbol_cache): New. | |
329 | (input_interrupt): Print a clearer message. | |
330 | (async_io_enabled): New variable. | |
331 | (enable_async_io, disable_async_io): Use it. Update comments. | |
332 | (look_up_one_symbol): Use the symbol cache. | |
333 | * thread-db.c (thread_db_look_up_symbols): New function. | |
334 | (thread_db_init): Update comments. Call thread_db_look_up_symbols. | |
335 | ||
f6de3c42 DJ |
336 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
337 | ||
338 | * configure.in: Test for -rdynamic. | |
339 | * configure: Regenerated. | |
340 | * Makefile (INTERNAL_LDFLAGS): New. | |
341 | (gdbserver, gdbreplay): Use it. | |
342 | ||
2c0fc042 AC |
343 | 2004-09-02 Andrew Cagney <cagney@gnu.org> |
344 | ||
345 | * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE. | |
346 | ||
075b3282 DJ |
347 | 2004-03-23 Daniel Jacobowitz <drow@mvista.com> |
348 | ||
349 | * linux-low.c (linux_wait): Clear all_processes list also. | |
350 | ||
fa6a77dc DJ |
351 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
352 | ||
353 | * linux-low.c: Include <errno.h>. Remove extern declaration of | |
354 | errno. | |
355 | ||
6d782a97 DJ |
356 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
357 | ||
358 | * gdbreplay.c, server.h, utils.c: Update copyright years. | |
359 | ||
3a7fb99b DJ |
360 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
361 | ||
362 | * server.c (main): Print child status or termination signal from | |
363 | variable 'signal', not 'sig'. | |
364 | ||
c3e735a6 DJ |
365 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
366 | ||
367 | * linux-low.c (linux_read_memory): Change return type to | |
368 | int. Check for and return error from ptrace(). | |
369 | * target.c (read_inferior_memory): Change return type to int. Pass | |
370 | back return status from the_target->read_memory(). | |
371 | * target.h (struct target_ops): Adapt *read_memory() prototype. | |
372 | Update comment. | |
373 | (read_inferior_memory): Adapt prototype. | |
374 | * server.c (main): Return an error packet if | |
375 | read_inferior_memory() returns an error. | |
376 | ||
a59d1c82 DJ |
377 | 2004-03-04 Daniel Jacobowitz <drow@mvista.com> |
378 | ||
379 | * Makefile.in (distclean): Remove config.h, stamp-h, and config.log. | |
380 | Unify with other clean targets. | |
381 | ||
dc3f8883 DJ |
382 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
383 | ||
384 | * server.c (handle_v_cont): Call set_desired_inferior. | |
385 | ||
89a208da DJ |
386 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
387 | ||
388 | * remote-utils.c (prepare_resume_reply): Always supply "thread:". | |
389 | ||
62ea82f5 DJ |
390 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
391 | ||
392 | * linux-low.c (linux_wait): Unblock async I/O. | |
393 | (linux_resume): Block and enable async I/O. | |
394 | * remote-utils.c (block_async_io, unblock_async_io): New functions. | |
395 | * server.h (block_async_io, unblock_async_io): Add prototypes. | |
396 | ||
6910d122 DJ |
397 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
398 | ||
399 | * remote-utils.c (remote_open): Print a status notice after | |
400 | opening a TCP port. | |
401 | * server.c (attach_inferior): Print a status notice after | |
402 | attaching. | |
403 | ||
404 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> | |
d677d77d DJ |
405 | |
406 | * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode. | |
407 | ||
c89dc5d4 DJ |
408 | 2004-02-26 Daniel Jacobowitz <drow@mvista.com> |
409 | ||
410 | * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the | |
411 | error packet. | |
412 | * server.c, target.h: Update copyright years. | |
413 | ||
4b8dad4a RM |
414 | 2004-02-25 Roland McGrath <roland@redhat.com> |
415 | ||
416 | * target.h (struct target_ops): New member `read_auxv'. | |
417 | * server.c (handle_query): Handle qPart:auxv:read: query using that. | |
418 | * linux-low.c (linux_read_auxv): New function. | |
419 | (linux_target_ops): Initialize `read_auxv' member to that. | |
420 | ||
d7446758 JB |
421 | 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
422 | ||
423 | Committed by Jim Blandy <jimb@redhat.com>. | |
424 | ||
425 | * linux-s390-low.c (s390_num_regs): Update. | |
4b8dad4a | 426 | (s390_regmap): Remove control registers. Use __s390x__ predefine |
d7446758 JB |
427 | instead of GPR_SIZE to distiguish s390 and s390x targets. |
428 | ||
5544ad89 DJ |
429 | 2004-01-31 Daniel Jacobowitz <drow@mvista.com> |
430 | ||
431 | * linux-low.c: Update copyright year. | |
432 | (check_removed_breakpoint): Clear pending_is_breakpoint. | |
433 | (linux_set_resume_request, linux_queue_one_thread) | |
434 | (resume_status_pending_p): New functions. | |
435 | (linux_continue_one_thread): Use process->resume. | |
436 | (linux_resume): Only resume threads if there are no pending events. | |
437 | * linux-low.h (struct process_info): Add resume request | |
438 | pointer. | |
439 | ||
2a68b70e DJ |
440 | 2004-01-30 Daniel Jacobowitz <drow@mvista.com> |
441 | ||
442 | * regcache.c (new_register_cache): Clear the allocated register | |
443 | buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>. | |
444 | ||
64386c31 DJ |
445 | 2003-10-13 Daniel Jacobowitz <drow@mvista.com> |
446 | ||
447 | * linux-low.c (linux_resume): Take a struct thread_resume * | |
448 | argument. | |
449 | (linux_wait): Update call. | |
450 | (resume_ptr): New static variable. | |
451 | (linux_continue_one_thread): Renamed from | |
452 | linux_continue_one_process. Use resume_ptr. | |
453 | (linux_resume): Use linux_continue_one_thread. | |
454 | * server.c (handle_v_cont, handle_v_requests): New functions. | |
455 | (myresume): New function. | |
456 | (main): Handle 'v' case. | |
457 | * target.h (struct thread_resume): New type. | |
458 | (struct target_ops): Change argument of "resume" to struct | |
459 | thread_resume *. | |
460 | (myresume): Delete macro. | |
461 | ||
c938e9b0 L |
462 | 2003-08-08 H.J. Lu <hongjiu.lu@intel.com> |
463 | ||
464 | * Makefile.in (install-only): Create dest dir. Support DESTDIR. | |
465 | (uninstall): Support DESTDIR. | |
466 | ||
7f313d07 BC |
467 | Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com> |
468 | ||
469 | * configure.srv: Add xscale*linux copy of arm*linux entry. | |
470 | ||
3b2fc2ea DJ |
471 | 2003-07-24 Daniel Jacobowitz <drow@mvista.com> |
472 | ||
473 | * linux-arm-low.c (arm_reinsert_addr): New function. | |
474 | (the_low_target): Add arm_reinsert_addr. | |
475 | ||
1c0a559e MK |
476 | 2003-07-08 Mark Kettenis <kettenis@gnu.org> |
477 | ||
478 | * mem-break.c: Remove whitespace at end of file. | |
479 | ||
43d5792c DJ |
480 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
481 | ||
482 | * configure.in: Check whether we need to prototype strerror. | |
483 | * server.h: Optionally prototype strerror. | |
484 | * gdbreplay.c (perror_with_name): Use strerror. | |
485 | * linux-low.c (linux_attach_lwp): Use strerror. | |
486 | * utils.c (perror_with_name): Use strerror. | |
487 | * config.in, configure: Regenerated. | |
488 | ||
c8a86edf DJ |
489 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
490 | ||
491 | * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by | |
492 | SUGIOKA Toshinobu <sugioka@itonet.co.jp>. | |
493 | ||
73d37363 DJ |
494 | 2003-06-20 Daniel Jacobowitz <drow@mvista.com> |
495 | ||
496 | * Makefile.in (SFILES): Update. | |
497 | * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c, | |
498 | low-sun3.c: Remove files. | |
499 | ||
6ad8ae5c DJ |
500 | 2003-06-17 Daniel Jacobowitz <drow@mvista.com> |
501 | ||
502 | * linux-low.c: Move comment to linux_thread_alive where it belonged. | |
503 | (linux_detach_one_process, linux_detach): New functions. | |
504 | (linux_target_ops): Add linux_detach. | |
505 | * server.c (main): Handle 'D' packet. | |
506 | * target.h (struct target_ops): Add "detach" member. | |
507 | (detach_inferior): Define. | |
508 | ||
1581182a MK |
509 | 2003-06-13 Mark Kettenis <kettenis@gnu.org> |
510 | ||
511 | From Kelley Cook <kelleycook@wideopenwest.com>: | |
512 | * configure.srv: Accept i[34567]86 variants. | |
513 | ||
e5379b03 DJ |
514 | 2003-06-05 Daniel Jacobowitz <drow@mvista.com> |
515 | ||
516 | * linux-low.c (linux_wait_for_event): Correct comment typos. | |
517 | (linux_resume_one_process): Call check_removed_breakpoint. | |
518 | (linux_send_signal): New function. | |
519 | (linux_target_ops): Add linux_send_signal. | |
520 | * remote-utils.c (putpkt, input_interrupt): Use send_signal instead | |
521 | of kill. | |
522 | * target.h (struct target_ops): Add send_signal. | |
523 | ||
2ff29de4 JB |
524 | 2003-05-29 Jim Blandy <jimb@redhat.com> |
525 | ||
526 | * linux-low.c (usr_store_inferior_registers): Transfer buf in | |
527 | PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise, | |
528 | if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing | |
529 | away part of the register's value. | |
530 | ||
254787d4 DJ |
531 | 2003-03-26 Daniel Jacobowitz <drow@mvista.com> |
532 | ||
533 | * linux-low.c (linux_create_inferior): Use __SIGRTMIN. | |
534 | (linux_wait_for_event, linux_init_signals): Likewise. | |
535 | ||
94e10508 DJ |
536 | 2003-03-17 Daniel Jacobowitz <drow@mvista.com> |
537 | ||
538 | * configure.in: Check for stdlib.h. | |
539 | * configure: Regenerated. | |
540 | * config.in: Regenerated. | |
541 | ||
4c0711e0 DJ |
542 | 2003-01-04 Andreas Schwab <schwab@suse.de> |
543 | ||
544 | * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31. | |
545 | ||
ef66e766 AC |
546 | 2003-01-02 Andrew Cagney <ac131313@redhat.com> |
547 | ||
548 | * Makefile.in: Remove obsolete code. | |
549 | ||
a1358604 DJ |
550 | 2002-11-20 Daniel Jacobowitz <drow@mvista.com> |
551 | ||
552 | * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of | |
553 | defined(PT_FPR0_HI). | |
554 | ||
23ce3b1c DJ |
555 | 2002-11-17 Stuart Hughes <seh@zee2.com> |
556 | ||
557 | * linux-arm-low.c (arm_num_regs): Increase. | |
558 | (arm_regmap): Include status register. | |
559 | ||
560 | 2002-11-17 Daniel Jacobowitz <drow@mvista.com> | |
561 | ||
562 | * linux-low.c (register_addr): Remove incorrect -1 check. | |
563 | ||
a9fa9f7d DJ |
564 | 2002-08-29 Daniel Jacobowitz <drow@mvista.com> |
565 | ||
566 | * linux-low.c (linux_create_inferior): Call setpgid. Return | |
567 | the new PID. | |
568 | (unstopped_p, linux_signal_pid): Remove. | |
569 | (linux_target_ops): Remove linux_signal_pid. | |
570 | * remote-utils.c (putpkt, input_interrupt): Use signal_pid | |
571 | global instead of target method. | |
572 | * target.h (struct target_ops): Remove signal_pid. Update comment | |
573 | for create_inferior. | |
574 | * server.c (signal_pid): New variable. | |
575 | (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in | |
4b8dad4a | 576 | gdbserver. Set the child to be the foreground process group. |
a9fa9f7d DJ |
577 | (attach_inferior): Set signal_pid. |
578 | ||
17574093 DJ |
579 | 2002-08-23 Daniel Jacobowitz <drow@mvista.com> |
580 | ||
581 | * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2. | |
582 | ||
583 | 2002-08-20 Jim Blandy <jimb@redhat.com> | |
584 | ||
585 | * Makefile.in (LDFLAGS): Allow the configure script to establish a | |
586 | default for this. | |
587 | ||
588 | 2002-08-01 Andrew Cagney <cagney@redhat.com> | |
589 | ||
590 | * Makefile.in: Make chill references obsolete. | |
591 | ||
592 | 2002-07-24 Kevin Buettner <kevinb@redhat.com> | |
593 | ||
594 | * configure.in (unistd.h): Add to AC_CHECK_HEADERS list. | |
595 | * configure: Regenerate. | |
596 | * config.in: Regenerate. | |
597 | ||
598 | 2002-07-09 David O'Brien <obrien@FreeBSD.org> | |
599 | ||
600 | * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include. | |
601 | (perror_with_name, remote_close, remote_open, expect, play): Static. | |
602 | ||
603 | 2002-07-04 Michal Ludvig <mludvig@suse.cz> | |
604 | ||
4b8dad4a | 605 | * linux-x86-64-low.c (x86_64_regmap): Make it an array of |
17574093 DJ |
606 | byte offsets instead of an array of indexes. |
607 | (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const. | |
608 | ||
609 | 2002-06-13 Daniel Jacobowitz <drow@mvista.com> | |
610 | ||
611 | * regcache.c: Add comment. | |
612 | ||
613 | 2002-06-11 Daniel Jacobowitz <drow@mvista.com> | |
614 | ||
615 | * thread-db.c: New file. | |
616 | * proc-service.c: New file. | |
617 | * acinclude.m4: New file. | |
618 | * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h, | |
619 | proc-service.o, and thread-db.o. | |
620 | (linux-low.o): Add USE_THREAD_DB. | |
621 | * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T, | |
622 | HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN. | |
623 | * aclocal.m4: Regenerated. | |
624 | * config.in: Regenerated. | |
625 | * configure: Regenerated. | |
626 | * configure.in: Check for proc_service.h, sys/procfs.h, | |
627 | thread_db.h, and linux/elf.h headrs. | |
628 | Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and | |
629 | PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB. | |
630 | Check for -lthread_db and thread support. | |
631 | * configure.srv: Enable thread_db support for ARM, i386, MIPS, | |
632 | PowerPC, and SuperH. | |
633 | * i387-fp.c: Constify arguments. | |
634 | * i387-fp.h: Likewise. | |
635 | * inferiors.c: (struct thread_info): Renamed from | |
636 | `struct inferior_info'. Remove PID member. Use generic inferior | |
637 | list header. All uses updated. | |
638 | (inferiors, signal_pid): Removed. | |
639 | (all_threads): New variable. | |
640 | (get_thread): Define. | |
641 | (add_inferior_to_list): New function. | |
642 | (for_each_inferior): New function. | |
643 | (change_inferior_id): New function. | |
644 | (add_inferior): Removed. | |
645 | (remove_inferior): New function. | |
646 | (add_thread): New function. | |
647 | (free_one_thread): New function. | |
648 | (remove_thread): New function. | |
649 | (clear_inferiors): Use for_each_inferior and free_one_thread. | |
650 | (find_inferior): New function. | |
651 | (find_inferior_id): New function. | |
652 | (inferior_target_data): Update argument type. | |
653 | (set_inferior_target_data): Likewise. | |
654 | (inferior_regcache_data): Likewise. | |
655 | (set_inferior_regcache_data): Likewise. | |
656 | * linux-low.c (linux_bp_reinsert): Remove. | |
657 | (all_processes, stopping_threads, using_thrads) | |
658 | (struct pending_signals, debug_threads, pid_of): New. | |
659 | (inferior_pid): Replace with macro. | |
660 | (struct inferior_linux_data): Remove. | |
661 | (get_stop_pc, add_process): New functions. | |
662 | (linux_create_inferior): Restore SIGRTMIN+1 before calling exec. | |
663 | Use add_process and add_thread. | |
664 | (linux_attach_lwp): New function, based on old linux_attach. Use | |
665 | add_process and add_thread. Set stop_expected for new threads. | |
666 | (linux_attach): New function. | |
667 | (linux_kill_one_process): New function. | |
668 | (linux_kill): Kill all LWPs. | |
669 | (linux_thread_alive): Use find_inferior_id. | |
670 | (check_removed_breakpoints, status_pending_p): New functions. | |
671 | (linux_wait_for_process): Renamed from linux_wait_for_one_inferior. | |
672 | Update. Use WNOHANG. Wait for cloned processes also. Update process | |
673 | struct for the found process. | |
674 | (linux_wait_for_event): New function. | |
675 | (linux_wait): Use it. Support LWPs. | |
676 | (send_sigstop, wait_for_sigstop, stop_all_processes) | |
677 | (linux_resume_one_process, linux_continue_one_process): New functions. | |
678 | (linux_resume): Support LWPs. | |
679 | (REGISTER_RAW_SIZE): Remove. | |
680 | (fetch_register): Use register_size instead. Call supply_register. | |
681 | (usr_store_inferior_registers): Likewise. Call collect_register. | |
682 | Fix recursive case. | |
683 | (regsets_fetch_inferior_registers): Improve error message. | |
684 | (regsets_store_inferior_registers): Add debugging. | |
685 | (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB. | |
686 | (unstopped_p, linux_signal_pid): New functions. | |
687 | (linux_target_ops): Add linux_signal_pid. | |
688 | (linux_init_signals): New function. | |
689 | (initialize_low): Call it. Initialize using_threads. | |
690 | * regcache.c (inferior_regcache_data): Add valid | |
691 | flag. | |
692 | (get_regcache): Fetch registers lazily. Add fetch argument | |
693 | and update all callers. | |
694 | (regcache_invalidate_one, regcache_invalidate): New | |
695 | functions. | |
696 | (new_register_cache): Renamed from create_register_cache. | |
697 | Return the new regcache. | |
698 | (free_register_cache): Change argument to a void *. | |
699 | (registers_to_string, registers_from_string): Call get_regcache | |
700 | with fetch flag set. | |
701 | (register_data): Make static. Pass fetch flag to get_regcache. | |
702 | (supply_register): Call get_regcache with fetch flag clear. | |
703 | (collect_register): Call get_regcache with fetch flag set. | |
704 | (collect_register_as_string): New function. | |
705 | * regcache.h: Update. | |
706 | * remote-utils.c (putpkt): Flush after debug output and use | |
707 | stderr. | |
708 | Handle input interrupts while waiting for an ACK. | |
709 | (input_interrupt): Use signal_pid method. | |
710 | (getpkt): Flush after debug output and use stderr. | |
711 | (outreg): Use collect_register_as_string. | |
712 | (new_thread_notify, dead_thread_notify): New functions. | |
713 | (prepare_resume_reply): Check using_threads. Set thread_from_wait | |
714 | and general_thread. | |
715 | (look_up_one_symbol): Flush after debug output. | |
716 | * server.c (step_thread, server_waiting): New variables. | |
717 | (start_inferior): Don't use signal_pid. Update call to mywait. | |
718 | (attach_inferior): Update call to mywait. | |
719 | (handle_query): Handle qfThreadInfo and qsThreadInfo. | |
720 | (main): Don't fetch/store registers explicitly. Use | |
721 | set_desired_inferior. Support proposed ``Hs'' packet. Update | |
722 | calls to mywait. | |
723 | * server.h: Update. | |
724 | (struct inferior_list, struct_inferior_list_entry): New. | |
725 | * target.c (set_desired_inferior): New. | |
726 | (write_inferior_memory): Constify. | |
727 | (mywait): New function. | |
728 | * target.h: Update. | |
729 | (struct target_ops): New signal_pid method. | |
730 | (mywait): Removed macro, added prototype. | |
731 | ||
732 | * linux-low.h (regset_func): Removed. | |
733 | (regset_fill_func, regset_store_func): New. | |
734 | (enum regset_type): New. | |
735 | (struct regset_info): Add type field. Use new operation types. | |
736 | (struct linux_target_ops): stop_pc renamed to get_pc. | |
737 | Add decr_pc_after_break and breakpoint_at. | |
738 | (get_process, get_thread_proess, get_process_thread) | |
739 | (strut process_info, all_processes, linux_attach_lwp) | |
740 | (thread_db_init): New. | |
741 | ||
742 | * linux-arm-low.c (arm_get_pc, arm_set_pc, | |
743 | arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New. | |
744 | (the_low_target): Add new members. | |
745 | * linux-i386-low.c (i386_store_gregset, i386_store_fpregset) | |
746 | (i386_store_fpxregset): Constify. | |
747 | (target_regsets): Add new kind identifier. | |
748 | (i386_get_pc): Renamed from i386_stop_pc. Simplify. | |
749 | (i386_set_pc): Add debugging. | |
750 | (i386_breakpoint_at): New function. | |
751 | (the_low_target): Add new members. | |
752 | * linux-mips-low.c (mips_get_pc, mips_set_pc) | |
753 | (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr) | |
754 | (mips_breakpoint_at): New. | |
755 | (the_low_target): Add new members. | |
756 | * linux-ppc-low.c (ppc_get_pc, ppc_set_pc) | |
757 | (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New. | |
758 | (the_low_target): Add new members. | |
759 | * linux-sh-low.c (sh_get_pc, sh_set_pc) | |
760 | (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New. | |
761 | (the_low_target): Add new members. | |
762 | * linux-x86-64-low.c (target_regsets): Add new kind | |
763 | identifier. | |
764 | ||
765 | 2002-05-15 Daniel Jacobowitz <drow@mvista.com> | |
766 | ||
767 | From Martin Pool <mbp@samba.org>: | |
768 | * server.c (gdbserver_usage): New function. | |
769 | (main): Call it. | |
770 | ||
771 | 2002-05-14 Daniel Jacobowitz <drow@mvista.com> | |
772 | ||
773 | * mem-break.c (reinsert_breakpoint_by_bp): Correct typo | |
774 | stop_at -> stop_pc. | |
775 | ||
776 | 2002-05-04 Andrew Cagney <ac131313@redhat.com> | |
777 | ||
778 | * Makefile.in: Remove obsolete code. | |
779 | ||
780 | 2002-04-24 Michal Ludvig <mludvig@suse.cz> | |
781 | ||
782 | * linux-low.c (regsets_fetch_inferior_registers), | |
783 | (regsets_store_inferior_registers): Removed cast to int from | |
784 | ptrace() calls. | |
785 | * regcache.h: Added declaration of struct inferior_info. | |
786 | ||
787 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> | |
788 | ||
789 | * inferiors.c (struct inferior_info): Add regcache_data. | |
790 | (add_inferior): Call create_register_cache. | |
791 | (clear_inferiors): Call free_register_cache. | |
792 | (inferior_regcache_data, set_inferior_regcache_data): New functions. | |
793 | * regcache.c (struct inferior_regcache_data): New. | |
794 | (registers): Remove. | |
795 | (get_regcache): New function. | |
796 | (create_register_cache, free_register_cache): New functions. | |
797 | (set_register_cache): Don't initialize the register cache here. | |
798 | (registers_to_string, registers_from_string, register_data): Call | |
799 | get_regcache. | |
800 | * regcache.h: Add prototypes. | |
801 | * server.h: Likewise. | |
802 | ||
803 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> | |
804 | ||
805 | * mem-break.c: New file. | |
806 | * mem-break.h: New file. | |
807 | * Makefile.in: Add mem-break.o rule; update server.h | |
808 | dependencies. | |
809 | * inferiors.c (struct inferior_info): Add target_data | |
810 | member. | |
811 | (clear_inferiors): Free target_data member if set. | |
812 | (inferior_target_data, set_inferior_target_data): New functions. | |
813 | * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len) | |
814 | (i386_stop_pc, i386_set_pc): New. Add to the_low_target. | |
815 | * linux-low.c (linux_bp_reinsert): New variable. | |
816 | (struct inferior_linux_data): New. | |
817 | (linux_create_inferior): Use set_inferior_target_data. | |
818 | (linux_attach): Likewise. Call add_inferior. | |
819 | (linux_wait_for_one_inferior): New function. | |
820 | (linux_wait): Call it. | |
821 | (linux_write_memory): Add const. | |
822 | (initialize_low): Call set_breakpoint_data. | |
823 | * linux-low.h (struct linux_target_ops): Add breakpoint | |
824 | handling members. | |
825 | * server.c (attach_inferior): Remove extra add_inferior | |
826 | call. | |
827 | * server.h: Include mem-break.h. Update inferior.c | |
828 | prototypes. | |
829 | * target.c (read_inferior_memory) | |
830 | (write_inferior_memory): New functions. | |
831 | * target.h (read_inferior_memory) | |
832 | (write_inferior_memory): Change macros to prototypes. | |
833 | (struct target_ops): Update comments. Add const to write_memory | |
834 | definition. | |
835 | ||
836 | 2002-04-11 Daniel Jacobowitz <drow@mvista.com> | |
837 | ||
838 | * linux-low.c (usr_store_inferior_registers): Support | |
839 | registers which are allowed to fail to store. | |
840 | * linux-low.h (linux_target_ops): Likewise. | |
841 | * linux-ppc-low.c (ppc_regmap): Support FPSCR. | |
842 | (ppc_cannot_store_register): FPSCR may not be storable. | |
843 | ||
844 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
845 | ||
846 | * server.h: Include <string.h> if HAVE_STRING_H. | |
847 | * ChangeLog: Correct paths in last ChangeLog entry. | |
848 | ||
849 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
850 | ||
851 | * linux-low.h: Remove obsolete prototypes. | |
852 | (struct linux_target_ops): New. | |
853 | (extern the_low_target): New. | |
854 | * linux-low.c (num_regs, regmap): Remove declarations. | |
855 | (register_addr): Use the_low_target explicitly. | |
856 | (fetch_register): Likewise. | |
857 | (usr_fetch_inferior_registers): Likewise. | |
858 | (usr_store_inferior_registers): Likewise. | |
859 | * linux-arm-low.c (num_regs): Remove. | |
860 | (arm_num_regs): Define. | |
861 | (arm_regmap): Renamed from regmap, made static. | |
862 | (arm_cannot_fetch_register): Renamed from cannot_fetch_register, | |
863 | made static. | |
864 | (arm_cannot_store_register): Renamed from cannot_store_register, | |
865 | made static. | |
866 | (the_low_target): New. | |
867 | * linux-i386-low.c (num_regs): Remove. | |
868 | (i386_num_regs): Define. | |
869 | (i386_regmap): Renamed from regmap, made static. | |
870 | (i386_cannot_fetch_register): Renamed from cannot_fetch_register, | |
871 | made static. | |
872 | (i386_cannot_store_register): Renamed from cannot_store_register, | |
873 | made static. | |
874 | (the_low_target): New. | |
875 | * linux-ia64-low.c (num_regs): Remove. | |
876 | (ia64_num_regs): Define. | |
877 | (ia64_regmap): Renamed from regmap, made static. | |
878 | (ia64_cannot_fetch_register): Renamed from cannot_fetch_register, | |
879 | made static. | |
880 | (ia64_cannot_store_register): Renamed from cannot_store_register, | |
881 | made static. | |
882 | (the_low_target): New. | |
883 | * linux-m68k-low.c (num_regs): Remove. | |
884 | (m68k_num_regs): Define. | |
885 | (m68k_regmap): Renamed from regmap, made static. | |
886 | (m68k_cannot_fetch_register): Renamed from cannot_fetch_register, | |
887 | made static. | |
888 | (m68k_cannot_store_register): Renamed from cannot_store_register, | |
889 | made static. | |
890 | (the_low_target): New. | |
891 | * linux-mips-low.c (num_regs): Remove. | |
892 | (mips_num_regs): Define. | |
893 | (mips_regmap): Renamed from regmap, made static. | |
894 | (mips_cannot_fetch_register): Renamed from cannot_fetch_register, | |
895 | made static. | |
896 | (mips_cannot_store_register): Renamed from cannot_store_register, | |
897 | made static. | |
898 | (the_low_target): New. | |
899 | * linux-ppc-low.c (num_regs): Remove. | |
900 | (ppc_num_regs): Define. | |
901 | (ppc_regmap): Renamed from regmap, made static. | |
902 | (ppc_cannot_fetch_register): Renamed from cannot_fetch_register, | |
903 | made static. | |
904 | (ppc_cannot_store_register): Renamed from cannot_store_register, | |
905 | made static. | |
906 | (the_low_target): New. | |
907 | * linux-s390-low.c (num_regs): Remove. | |
908 | (s390_num_regs): Define. | |
909 | (s390_regmap): Renamed from regmap, made static. | |
910 | (s390_cannot_fetch_register): Renamed from cannot_fetch_register, | |
911 | made static. | |
912 | (s390_cannot_store_register): Renamed from cannot_store_register, | |
913 | made static. | |
914 | (the_low_target): New. | |
915 | * linux-sh-low.c (num_regs): Remove. | |
916 | (sh_num_regs): Define. | |
917 | (sh_regmap): Renamed from regmap, made static. | |
918 | (sh_cannot_fetch_register): Renamed from cannot_fetch_register, | |
919 | made static. | |
920 | (sh_cannot_store_register): Renamed from cannot_store_register, | |
921 | made static. | |
922 | (the_low_target): New. | |
923 | * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap. | |
924 | (the_low_target): New. | |
925 | ||
926 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
927 | ||
928 | * Makefile.in: Add stamp-h target. | |
929 | * configure.in: Create stamp-h. | |
930 | * configure: Regenerated. | |
931 | ||
932 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
933 | ||
934 | * inferiors.c: New file. | |
935 | * target.c: New file. | |
936 | * target.h: New file. | |
937 | * Makefile.in: Add target.o and inferiors.o. Update | |
938 | dependencies. | |
939 | * linux-low.c (inferior_pid): New static variable, | |
940 | moved from server.c. | |
941 | (linux_create_inferior): Renamed from create_inferior. | |
942 | Call add_inferior. Return 0 on success instead of a PID. | |
943 | (linux_attach): Renamed from myattach. | |
944 | (linux_kill): Renamed from kill_inferior. Call clear_inferiors (). | |
945 | (linux_thread_alive): Renamed from mythread_alive. | |
946 | (linux_wait): Renamed from mywait. Call clear_inferiors () if the | |
947 | child dies. | |
948 | (linux_resume): Renamed from myresume. Add missing ``return 0''. | |
949 | (regsets_store_inferior_registers): Correct error message. | |
950 | Add missing ``return 0''. | |
951 | (linux_fetch_registers): Renamed from fetch_inferior_registers. | |
952 | (linux_store_registers): Renamed from store_inferior_registers. | |
953 | (linux_read_memory): Renamed from read_inferior_memory. | |
954 | (linux_write_memory): Renamed from write_inferior_memory. | |
955 | (linux_target_ops): New structure. | |
956 | (initialize_low): Call set_target_ops (). | |
957 | * remote-utils.c (unhexify): New function. | |
958 | (hexify): New function. | |
959 | (input_interrupt): Send signals to ``signal_pid''. | |
960 | * server.c (inferior_pid): Remove. | |
961 | (start_inferior): Update create_inferior call. | |
962 | (attach_inferior): Call add_inferior. | |
963 | (handle_query): New function. | |
964 | (main): Call handle_query for `q' packets. | |
965 | * server.h: Include "target.h". Remove obsolete prototypes. | |
966 | Add prototypes for "inferiors.c", "target.c", hexify, and unhexify. | |
967 | ||
968 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
969 | ||
970 | * Makefile.in: Add WARN_CFLAGS. Update configury | |
971 | dependencies. | |
972 | * configure.in: Check for <string.h> | |
973 | * configure: Regenerate. | |
974 | * config.in: Regenerate. | |
975 | * gdbreplay.c: Include needed system headers. | |
976 | (remote_open): Remove strchr prototype. | |
977 | * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS. | |
978 | * regcache.c (supply_register): Change buf argument to const void *. | |
979 | (supply_register_by_name): Likewise. | |
980 | (collect_register): Change buf argument to void *. | |
981 | (collect_register_by_name): Likewise. | |
982 | * regcache.h: Add missing prototypes. | |
983 | * remote-utils.c: Include <arpa/inet.h> for inet_ntoa. | |
984 | * server.c (handle_query): New function. | |
985 | (attached): New static variable, moved out of main. | |
986 | (main): Quiet longjmp clobber warnings. | |
987 | * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes. | |
988 | * utils.c (error): Remove NORETURN. | |
989 | (fatal): Likewise. |