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