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