1 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
3 * linux-low.c (linux_create_inferior): Try execv before execvp.
4 * spu-low.c (spu_create_inferior): Likewise.
6 2007-06-13 Mike Frysinger <vapier@gentoo.org>
8 * linux-low.c (linux_create_inferior): Change execv to execvp.
9 * spu-low.c (spu_create_inferior): Likewies.
11 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
13 * Makefile.in (clean): Clean new files instead of deleted ones.
14 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
15 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
17 * configure.srv: Specify XML files and new regformats for MIPS and
19 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20 (mips_regmap): Do not fetch $0. Remove unused registers. Add
21 an entry for the restart register.
22 (mips_cannot_fetch_register, mips_cannot_store_register)
23 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
24 register names to match the XML descriptions.
25 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
26 restart register instead of $0.
28 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
29 Markus Deuling <deuling@de.ibm.com>
31 * remote-utils.c (decode_xfer_write): New function.
32 * server.h (decode_xfer_write): Add prototype.
33 * server.c (handle_query): Add PACKET_LEN argument. Support
34 qXfer:spu:read and qXfer:spu:write packets.
35 (main): Pass packet_len to handle_query.
36 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
37 * target.h (target_ops): Add qxfer_spu.
39 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
41 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
42 accessing non-seekable spufs files.
44 2007-05-16 Markus Deuling <deuling@de.ibm.com>
46 * server.c (handle_query): Add reply for qC packet.
48 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
49 Leo Zayas <lerele@champenstudios@com>
51 * server.h (check_remote_input_interrupt_request): New function.
52 * remote_utils.c (INVALID_DESCRIPTOR): New define.
53 (remote_desc): Initialize with INVALID_DESCRIPTOR.
54 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
55 (check_remote_input_interrupt_request): New function.
56 * server.h (check_remote_input_interrupt_request): Declare.
57 * win32-low.c (winapi_DebugBreakProcess,
58 winapi_GenerateConsoleCtrlEvent): New typedefs.
59 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
61 (win32_wait): Check for remote interrupt request
62 with check_remote_input_interrupt_request.
63 (win32_request_interrupt): New function.
64 (win32_target_op): Set request_interrupt to win32_request_interrupt.
66 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
68 * win32-low.c (debug_registers_changed,
69 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
70 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
71 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
72 (thread_rec): Get context using the low target.
73 (child_add_thread): Call thread_added on the low target,
74 which does the same thing.
76 (do_initial_child_stuff): Remove debug registers references.
77 Set context using the low target. Resume threads after
79 (child_continue): Remove dead variable. Remove debug
81 (child_fetch_inferior_registers): Go through the low target.
82 (do_child_store_inferior_registers): Remove.
83 (child_store_inferior_registers): Go through the low target.
84 (win32_resume): Remove debug registers references.
85 Set context using the low target.
86 (handle_exception): Change return type to void. Don't record
87 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
88 first chance exception.
89 (get_child_debug_event): Change return type to void. Remove
90 goto loop. Always return after waiting for debug event.
91 (win32_wait): Convert to switch statement. Handle spurious
94 * win32-i386-low.c (debug_registers_changed,
95 debug_registers_used): New.
96 (initial_stuff): Rename to ...
97 (i386_initial_stuff): ... this. Clear debug registers
99 (store_debug_registers): Delete.
100 (i386_get_thread_context): New.
101 (load_debug_registers): Delete.
102 (i386_set_thread_context): New.
103 (i386_thread_added): New.
104 (single_step): Rename to ...
105 (i386_single_step): ... this.
106 (do_fetch_inferior_registers): Rename to ...
107 (i386_fetch_inferior_register): ... this.
108 (i386_store_inferior_register): New.
109 (the_low_target): Adapt to new interface.
111 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
112 (arm_get_thread_context): New.
113 (arm_set_thread_context): New.
115 (do_fetch_inferior_registers): Rename to ...
116 (arm_fetch_inferior_register): ... this.
117 (arm_store_inferior_register): New.
118 (arm_wince_breakpoint): Reimplement as unsigned long.
119 (arm_wince_breakpoint_len): Define.
120 (the_low_target): Adapt to new interface.
122 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
123 load_debug_registers. Add get_thread_context, set_thread_context,
124 thread_added and store_inferior_register. Rename
125 fetch_inferior_registers to fetch_inferior_register.
126 (regptr): Remove declaration.
128 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
130 * linux-low.c (linux_detach): Change return type to int. Return 0.
131 * spu-low.c (spu_detach): Likewise.
133 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
135 * target.h (target_ops): Change return type of detach to int.
137 (join_inferior): New.
138 * server.c (main): Don't skip detach support on mingw32.
139 If the inferior doesn't support detaching return error.
140 Call join_inferior instead of using waitpid.
141 * linux-low.c (linux_join): New.
142 (linux_target_op): Add linux_join.
143 * spu-low.c (spu_join): New.
144 (spu_target_ops): Add spu_join.
145 * win32-low.c (win32_detach): Adapt to new interface.
146 Reopen current_process_handle before detaching. Issue a child
147 resume before detaching.
149 (win32_target_op): Add win32_join.
151 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
153 * win32-low.c (win32-attach): Fix return value.
154 * target.h (target_ops): Describe ATTACH return values.
156 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
158 * win32-low.c (GETPROCADDRESS): Define.
159 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
160 (winapi_DebugSetProcessKillOnExit): Likewise.
161 (win32_create_inferior): Force usage of ansi CreateProcessA.
162 (win32_attach): Use GETPROCADDRESS.
163 (win32_detach): Likewise.
165 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
167 * win32-low.c (win32_wait): Don't use WSTOPSIG.
169 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
171 * win32-low.c: Commit leftover changes from 2007-03-29.
173 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
175 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
176 fields short instead of int. Add explicit padding.
177 (i387_cache_to_fsave): Remove unnecessary casts.
178 (i387_fsave_to_cache): Doc fix.
179 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
181 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
183 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
184 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
186 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
188 * configure.srv (arm*-*-mingw32ce*): Move near the other
191 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
193 * configure.ac: Add errno checking.
194 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
195 sys/file.h and malloc.h.
196 (AC_CHECK_DECLS): Add perror.
197 (srv_mingwce): Handle.
198 * configure.srv (i[34567]86-*-cygwin*): Add
199 win32-i386-low.o to srv_tgtobj.
200 (i[34567]86-*-mingw*): Likewise.
201 (arm*-*-mingw32ce*): Add case.
202 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
203 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
204 [__MINGW32CE__] (strerror): New function.
205 [__MINGW32CE__] (errno): Define to GetLastError.
206 [__MINGW32CE__] (COUNTOF): New macro.
207 (remote_open): Remove extra close call.
208 * mem-break.c (delete_breakpoint_at): New function.
209 * mem-break.h (delete_breakpoint_at): Declare.
210 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
211 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
212 [USE_WIN32API] (read, write): Add char* casts.
213 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
214 * server.h: Include wincecompat.h on Windows CE.
215 [HAVE_ERRNO_H]: Check.
216 (perror): Declare if not declared.
217 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
218 (perror_with_name): Remove errno declaration.
219 * wincecompat.h: New.
220 * wincecompat.c: New.
222 * win32-arm-low.c: New.
223 * win32-i386-low.c: New.
224 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
225 (OUTMSG2): Make it safe.
227 (COUNTOF): New macro.
228 (NUM_REGS): Get it from the low target.
229 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
230 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
231 (thread_rec): Let low target handle debug registers.
232 (child_add_thread): Likewise.
233 (child_init_thread_list): Likewise.
234 (continue_one_thread): Likewise.
236 (do_child_fetch_inferior_registers): Move to ...
237 * win32-i386-low.c: ... here, and rename to ...
238 (do_fetch_inferior_registers): ... this.
239 * win32-low.c (child_fetch_inferior_registers):
240 Go through the low target.
241 (do_child_store_inferior_registers): Use regptr.
242 (strwinerror): New function.
243 (win32_create_inferior): Handle Windows CE.
244 Use strwinerror instead of strerror on Windows error
245 codes. Add program to the error output.
246 Don't close the main thread handle on Windows CE.
247 (win32_attach): Use coredll.dll on Windows CE.
248 (win32_kill): Close current process and current
250 (win32_detach): Use coredll.dll on Windows CE.
251 (win32_resume): Let low target handle debug registers, and
253 (handle_exception): Add/Remove initial breakpoint. Avoid
254 non-existant WSTOPSIG on Windows CE.
255 (win32_read_inferior_memory): Cast to remove warning.
256 (win32_arch_string): Go through the low target.
257 (initialize_low): Call set_breakpoint_data with the low
259 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
260 FOP_REGNUM, mappings): Move to ...
261 * win32-i386-low.c: ... here.
262 * win32-low.c (win32_thread_info): Move to ...
263 * win32-low.h: ... here.
264 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
265 win32-arm-low.c and wincecompat.c.
267 (install-only:): Likewise.
268 (gdbserver:): Likewise.
269 (gdbreplay:): Likewise.
270 * config.in: Regenerate.
271 * configure: Regenerate.
273 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
275 * win32-low.c: Rename typedef thread_info to
276 win32_thread_info throughout.
278 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
280 * win32-i386-low.c: Rename to ...
281 * win32-low.c: ... this.
282 * configure.srv: Replace win32-i386-low.o with win32-low.o.
283 * Makefile.in: Likewise.
285 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
287 * remote-utils.c (monitor_output): Constify msg parameter.
288 * server.h (monitor_output): Likewise.
289 * win32-i386-low.c (handle_output_debug_string): New.
290 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
291 handle_output_debug_string.
292 (get_child_debug_event): Likewise.
294 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
296 * server.c (main): Correct strtoul check.
298 2007-03-27 Jon Ringle <jon@ringle.org>
300 * linux-low.c: Check __ARCH_HAS_MMU__ also.
302 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
304 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
306 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
308 * terminal.h: Check HAVE_SGTTY_H.
310 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
312 * remote-utils.c (remote_open): Print out the assigned port number.
314 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
316 * remote-utils.c (monitor_output): New function.
317 * server.c (debug_threads): Define here.
318 (monitor_show_help): New function.
319 (handle_query): Handle qRcmd.
320 (main): Do not handle 'd' packet.
321 * server.h (debug_threads, remote_debug, monitor_output): Declare.
322 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
325 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
327 * Makefile.in (EXEEXT): New.
328 (clean): Use $(EXEEXT).
330 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
332 * target.h (target_ops): Rename send_signal to request_interrupt,
333 and remove enum target_signal parameter.
334 * linux-low.c (linux_request_interrupt): Rename from
335 linux_send_signal, and always send SIGINT.
336 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
337 and always send SIGINT.
338 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
340 (input_interrupt): Likewise.
342 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
344 * server.c (get_features_xml): Check if target implemented
346 * win32-i386-low.c (win32_arch_string): New.
347 (win32_target_ops): Add win32_arch_string as arch_string member.
349 2007-02-22 Markus Deuling <deuling@de.ibm.com>
351 * spu-low.c (spu_arch_string): New.
352 (spu_target_ops): Add spu_arch_string.
354 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
356 * remote-utils.c: Remove HAVE_TERMINAL_H check.
357 * configure.ac: Do not check for terminal.h.
358 * configure, config.in: Regenerated.
360 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
362 * Makefile.in (OBS): Add $(XML_BUILTIN).
363 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
365 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
366 (arm-with-iwmmxt.c): New.
367 * config.in, configure: Regenerate.
368 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
369 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
370 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
371 (arm*-*-linux*): Add iWMMXt and regset support.
372 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
373 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
374 (arm_store_wmmxregset, target_regsets): New.
375 * server.c (get_features_xml): Take annex argument. Check builtin
377 (handle_query): Handle multiple annexes.
379 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
381 * remote-utils.c [USE_WIN32API] (read, write): Define.
382 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
385 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
387 * linux-i386-low.c (the_low_target): Set arch_string.
388 * linux-x86-64-low.c (the_low_target): Likewise.
389 * linux-low.c (linux_arch_string): New.
390 (linux_target_ops): Add it.
391 * linux-low.h (struct linux_target_ops): Add arch_string.
392 * server.c (write_qxfer_response): Use const void * for DATA.
393 (get_features_xml): New.
394 (handle_query): Handle qXfer:features:read. Report it for qSupported.
395 * target.h (struct target_ops): Add arch_string method.
397 2007-01-03 Denis Pilat <denis.pilat@st.com>
398 Daniel Jacobowitz <dan@codesourcery.com>
400 * linux-low.c (linux_kill): Handle being called with no threads.
401 * win32-i386-low.c (win32_kill): Likewise.
402 (get_child_debug_event): Clear current_process_handle.
404 2006-12-30 Denis PILAT <denis.pilat@st.com>
405 Daniel Jacobowitz <dan@codesourcery.com>
407 * remote-utils.c (remote_open): Check the type of specified
408 serial port devices before opening them.
409 * server.c (main): Kill the inferior if an error occurs during
410 the first remote_open.
412 2006-12-05 Markus Deuling <deuling@de.ibm.com>
414 * README: Update supported targets.
416 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
418 * Makefile.in (clean): Remove reg-mips64.c.
419 (reg-mips64.c, reg-mips64.o): New rules.
420 * configure.srv: Handle mips64. Include regset support for mips.
421 * linux-mips-low.c (union mips_register): New.
422 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
423 (mips_breakpoint, mips_breakpoint_at): Use int.
424 (mips_collect_register, mips_supply_register)
425 (mips_collect_register_32bit, mips_supply_register_32bit)
426 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
427 (mips_store_fpregset, target_regsets): New.
428 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
430 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
432 * configure.srv: Add target "spu*-*-*".
433 * Makefile.in (clean): Remove reg-spu.c.
434 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
435 * spu-low.c: New file.
437 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
439 * configure.ac: Correct td_thr_tls_get_addr test.
440 * configure: Regenerated.
442 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
444 * linux-low.c (linux_wait_for_event): Reformat. Use the
446 * remote-utils.c (decode_address_to_semicolon): New.
447 * server.c (pass_signals, handle_general_set): New.
448 (handle_query): Mention QPassSignals for qSupported.
449 (main): Call handle_general_set.
450 * server.h (pass_signals, decode_address_to_semicolon): New.
452 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
454 * server.c (handle_query): Correct error handling for read_auxv.
456 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
458 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
459 and srv_linux_thread_db to yes.
460 * linux-s390-low.c (s390_fill_gregset): New function.
461 (target_regsets): Define data structure.
463 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
465 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
466 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
467 * config.in, configure: Regenerated.
468 * inferiors.c (gdb_id_to_thread): New function.
469 (gdb_id_to_thread_id): Use it.
470 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
471 * linux-low.h (struct process_info): Add th member.
472 (thread_db_get_tls_address): New prototype.
473 * remote-utils.c (decode_address): Make non-static.
474 * server.c (handle_query): Handle qGetTLSAddr.
475 * server.h (gdb_id_to_thread, decode_address): New prototypes.
476 * target.h (struct target_ops): Add get_tls_address.
477 * thread-db.c (maybe_attach_thread): Save the thread handle.
478 (thread_db_get_tls_address): New.
480 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
482 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
483 (linux_resume_one_process): Take a siginfo_t *. Update all
484 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
485 (struct pending_signals): Add a siginfo_t.
486 (linux_wait_for_process): Always set last_status.
487 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
488 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
489 * linux-low.h (struct process_info): Add last_status.
491 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
493 * remote-utils.c (try_rle): New function.
494 (putpkt_binary): Use it.
496 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
498 * Makefile.in (clean): Clean reg-x86-64-linux.c.
499 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
500 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
501 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
502 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
505 2006-08-08 Richard Sandiford <richard@codesourcery.com>
507 * server.c (terminal_fd): New variable.
508 (old_foreground_pgrp): Likewise.
509 (restore_old_foreground_pgrp): New function.
510 (start_inferior): Record the terminal file descriptor in terminal_fd
511 and its original foreground group in old_foreground_pgrp. Register
512 restore_old_foreground_pgrp with atexit().
514 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
516 * server.c (handle_query): Correct qPart to qXfer.
518 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
520 * configure.ac: Check for more headers which are missing on
521 Windows. Automatically supply -lwsock32 and USE_WIN32API.
522 * configure.srv: Add Cygwin and mingw32.
523 * remote-utils.c: Don't include headers unconditionally which
524 are missing on mingw32. Include <winsock.h> for mingw32.
525 (remote_open): Adjust for mingw32 support. Flush
526 standard error after writing to it.
527 (remote_close, putpkt_binary, input_interrupt, block_async_io)
528 (unblock_async_io, enable_async_io, disable_async_io)
529 (readchar, getpkt): Update for Winsock support.
530 (prepare_resume_reply): Expect a protocol signal number.
531 * server.c: Disable <sys/wait.h> on mingw32.
532 (start_inferior): Adjust for mingw32 support. Flush
533 standard error after writing to it.
534 (attach_inferior): Likewise. Use protocol signal
536 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
538 * win32-i386-low.c: New file.
539 * Makefile.in (XM_CLIBS): Set.
540 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
541 (win32-i386-low.o): New dependency rule.
542 * linux-low.c (linux_wait): Use target signal numbers.
543 * target.h (struct target_ops): Doc fix.
544 * server.h (target_signal_to_name): New prototype.
545 * gdbreplay.c: Don't include headers unconditionally which
546 are missing on mingw32. Include <winsock.h> for mingw32.
547 (remote_close, remote_open): Adjust for Winsock support.
548 * configure, config.in: Regenerated.
550 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
552 * server.c (decode_xfer_read, write_qxfer_response): New.
553 (handle_query): Take a packet length argument. Handle
554 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
555 the qSupported response.
556 (main): Update call to handle_query.
558 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
560 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
561 (putpkt_binary): Renamed from putpkt and adjusted for binary
563 (putpkt): New wrapper for putpkt_binary.
564 (readchar): Don't mask off the high bit.
565 (decode_X_packet): New function.
566 * server.c (main): Call putpkt_binary if a handler sets the packet
567 length. Save the length of the incoming packet. Handle 'X'.
568 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
570 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
572 * server.c (handle_query): Handle qSupported.
574 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
576 * remote-utils.c (all_symbols_looked_up): New variable.
577 (look_up_one_symbol): Check it.
578 * server.h (look_up_one_symbol): New declaration.
579 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
581 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
583 * Makefile.in (linux-arm-low.o): Update dependencies.
584 * linux-arm-low.c: Include "gdb_proc_service.h".
585 (PTRACE_GET_THREAD_AREA): Define.
586 (ps_get_thread_area): New function.
588 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
590 * configure.srv (m68k*-*-uclinux*): New target.
591 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
592 (linux_resume_one_process): Remove extraneous cast.
593 (linux_read_offsets): New.
594 (linux_target_op): Add linux_read_offsets on mmuless systems.
595 * server.c (handle_query): Add qOffsets logic.
596 * target.h (struct target_ops): Add read_offsets.
598 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
600 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
601 (PTRACE_GET_THREAD_AREA): Define.
602 (ps_get_thread_area): New function.
603 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
604 (linux-x86-64-low.o): Update.
606 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
608 * configure.ac: Remove checks for prfpregset_t.
609 * gdb_proc_service.h: New file.
610 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
611 new "gdb_proc_service.h".
612 * proc-service.c: Likewise.
613 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
614 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
615 * Makefile.in (gdb_proc_service_h): Updated.
616 * configure, config.in: Regenerated.
618 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
620 * remote-utils.c (prepare_resume_reply): Move declaration
621 of gdb_id_from_wait to the top of the block.
623 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
625 * linux-low.c (regsets_store_inferior_registers): Read the regset
626 from the target before filling it.
628 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
630 * server.c (attach_inferior): Return SIGTRAP for a successful
633 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
635 * Makefile.in (OBS): Add version.o.
636 (STAGESTUFF): Delete.
637 (version.o): Add dependencies.
638 (version.c): Replace rule.
639 (clean): Remove version.c.
640 * server.c (gdbserver_version): New.
641 (gdbserver_usage): Use printf.
642 (main): Handle --version and --help.
643 * server.h (version, host_name): Add declarations.
645 2005-12-23 Eli Zaretskii <eliz@gnu.org>
657 * linux-x86-64-low.c:
669 * linux-crisv32-low.c:
681 * gdbserver.1: Add (C) after Copyright. Update the FSF
684 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
686 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
687 (arm_breakpoint_at): Recognize both breakpoints.
688 (the_low_target): Use the correct breakpoint instruction.
690 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
692 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
693 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
694 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
695 (the_low_target): Update.
697 2005-10-25 Andreas Schwab <schwab@suse.de>
699 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
701 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
702 (ia64_num_regs): Reduce to 462.
704 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
706 * acinclude.m4: Correct quoting.
707 * aclocal.m4: Regenerated.
709 Suggested by SZOKOVACS Robert <szo@ies.hu>:
710 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
711 (thread_db_init): Call thread_db_err_str.
712 * configure.ac: Check for TD_VERSION.
713 * config.in, configure: Regenerated.
715 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
717 * server.h (error, fatal, warning): Add ATTR_FORMAT.
719 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
721 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
722 is not available. Define HAVE_PTRACE_GETREGS if it is.
723 * config.in, configure: Regenerated.
724 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
725 * linux-i386-low.c, linux-m68k-low.c: Update to use
727 * linux-low.c (regsets_fetch_inferior_registers)
728 (regsets_store_inferior_registers): Only return 0 if we processed
730 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
731 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
733 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
735 * inferiors.c (struct thread_info): Add gdb_id.
736 (add_thread): Add gdb_id argument.
737 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
738 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
740 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
741 * server.c (handle_query): Use thread_to_gdb_id.
742 (handle_v_cont, main): Use gdb_id_to_thread_id.
743 * server.h (add_thread): Update prototype.
744 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
747 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
749 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
750 left-padded registers.
751 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
752 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
754 2005-07-01 Steve Ellcey <sje@cup.hp.com>
756 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
757 * configure: Regenerate.
758 * config.in: Regenerate.
759 * server.h (NEED_DECLARATION_STRERROR):
760 Replace with !HAVE_DECL_STRERROR.
762 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
764 * linux-low.c (linux_wait, linux_send_signal): Don't test
765 an unsigned long variable for > 0 if it could be MAX_ULONG.
766 * server.c (myresume): Likewise.
767 * target.c (set_desired_inferior): Likewise.
769 2005-06-13 Mark Kettenis <kettenis@gnu.org>
771 * configure.ac: Simplify and improve check for socklen_t.
772 * configure, config.in: Regenerate.
774 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
776 * acconfig.h: Remove.
777 * configure.ac: Add a test for socklen_t. Use three-argument
778 AC_DEFINE throughout.
779 * config.in: Regenerated using autoheader 2.59.
780 * configure: Regenerated.
782 * gdbreplay.c (socklen_t): Provide a default.
783 (remote_open): Use socklen_t.
784 * remote-utils.c (socklen_t): Provide a default.
785 (remote_open): Use socklen_t.
786 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
789 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
791 * linux-low.c (linux_read_memory, linux_write_memory)
792 (linux_read_auxv): Likewise.
793 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
794 (check_mem_write): Likewise.
795 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
797 * regcache.c (struct inferior_rgcache_data, registers_to_string)
798 (registers_from_string, register_data): Likewise.
799 * server.c (handle_query, main): Likewise.
800 * server.h (convert_ascii_to_int, convert_int_to_ascii)
801 (decode_M_packet): Likewise.
802 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
803 * target.h (struct target_ops): Update read_memory, write_memory,
805 (read_inferior_memory, write_inferior_memory): Update.
806 * linux-low.h (struct linux_target_ops): Change type of breakpoint
808 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
809 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
810 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
811 linux-s390-low.c, linux-sh-low.c: Update for changes in
812 read_inferior_memory and the_low_target->breakpoint.
814 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
816 * Makefile.in (SFILES): Add linux-ppc64-low.c.
817 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
818 * configure.srv: Add powerpc64-*-linux*.
819 * linux-ppc64-low.c: New file.
821 2005-05-23 Orjan Friberg <orjanf@axis.com>
823 * linux-cris-low.c: New file with support for CRIS.
824 * linux-crisv32-low.c: Ditto for CRISv32.
825 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
826 (clean): Add reg-cris.c and reg-crisv32.c.
827 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
828 reg-crisv32.o, and reg-crisv32.c to make rules.
829 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
832 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
834 * linux-low.c (fetch_register): Ensure buffer size is a multiple
835 of sizeof (PTRACE_XFER_TYPE).
836 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
838 2005-05-12 Orjan Friberg <orjanf@axis.com>
840 * target.h (struct target_ops): Add insert_watchpoint,
841 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
842 pointers for hardware watchpoint support.
843 * linux-low.h (struct linux_target_ops): Ditto.
844 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
845 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
847 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
849 * server.c (main): Recognize 'Z' and 'z' packets.
851 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
853 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
854 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
855 (the_low_target): Add new members.
857 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
859 * proc-service.c (ps_lgetregs): Search all_processes instead of
862 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
864 * server.c (start_inferior): Change return type to int.
865 (attach_inferior): Change sigptr to int *.
866 (handle_v_cont, handle_v_requests): Change signal to int *.
867 (main): Change signal to int.
869 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
871 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
872 * configure.srv: Add m32r*-*-linux*.
873 * linux-m32r-low.c: New file.
875 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
877 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
879 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
881 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
882 Take unsigned long arguments for PIDs.
883 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
884 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
885 (wait_for_sigstop, linux_resume_one_process)
886 (regsets_fetch_inferior_registers, linux_send_signal)
887 (linux_read_auxv): Likewise. Update the types of variables holding
888 PIDs. Update format string specifiers.
889 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
890 * remote-utils.c (prepare_resume_reply): Likewise.
891 * server.c (cont_thread, general_thread, step_thread)
892 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
894 (handle_query): Update format specifiers.
895 (handle_v_cont, main): Use strtoul for thread IDs.
896 * server.h (struct inferior_list_entry): Use unsigned long for ID.
897 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
898 (general_thread, step_thread, thread_from_wait)
899 (old_thread_from_wait): Update.
900 * target.h (struct thread_resume): Use unsigned long for THREAD.
901 (struct target_ops): Use unsigned long for arguments to attach and
904 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
906 * acinclude.m4: Include bfd/bfd.m4 directly.
907 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
908 <agriffis@toolchain.org>.
909 * aclocal.m4, configure: Regenerated.
911 2005-01-07 Andrew Cagney <cagney@gnu.org>
913 * configure.ac: Rename configure.in, require autoconf 2.59.
914 * configure: Re-generate.
916 2004-12-08 Daniel Jacobowitz <dan@debian.org>
918 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
920 * aclocal.m4: Regenerated.
921 * configure: Regenerated.
923 2004-11-21 Andreas Schwab <schwab@suse.de>
925 * linux-m68k-low.c (m68k_num_gregs): Define.
926 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
927 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
928 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
929 (m68k_breakpoint_at): New. Add to the_low_target.
931 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
932 srv_linux_thread_db to yes.
934 2004-10-20 Joel Brobecker <brobecker@gnat.com>
936 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
937 (ARCH_SET_FS): Likewise.
938 (ARCH_GET_FS): Likewise.
939 (ARCH_GET_GS): Likewise.
941 2004-10-16 Daniel Jacobowitz <dan@debian.org>
943 * linux-i386-low.c (ps_get_thread_area): New.
944 * linux-x86-64-low.c (ps_get_thread_area): New.
945 * linux-low.c: Include <sys/syscall.h>.
946 (linux_kill_one_process): Don't kill the first thread here.
947 (linux_kill): Kill the first thread here.
948 (kill_lwp): New function.
949 (send_sigstop, linux_send_signal): Use it.
950 * proc-service.c: Clean up #ifdefs.
951 (fpregset_info): Delete.
952 (ps_lgetregs): Update and enable implementation.
953 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
955 * remote-utils.c (struct sym_cache, symbol_cache): New.
956 (input_interrupt): Print a clearer message.
957 (async_io_enabled): New variable.
958 (enable_async_io, disable_async_io): Use it. Update comments.
959 (look_up_one_symbol): Use the symbol cache.
960 * thread-db.c (thread_db_look_up_symbols): New function.
961 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
963 2004-10-16 Daniel Jacobowitz <dan@debian.org>
965 * configure.in: Test for -rdynamic.
966 * configure: Regenerated.
967 * Makefile (INTERNAL_LDFLAGS): New.
968 (gdbserver, gdbreplay): Use it.
970 2004-09-02 Andrew Cagney <cagney@gnu.org>
972 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
974 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
976 * linux-low.c (linux_wait): Clear all_processes list also.
978 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
980 * linux-low.c: Include <errno.h>. Remove extern declaration of
983 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
985 * gdbreplay.c, server.h, utils.c: Update copyright years.
987 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
989 * server.c (main): Print child status or termination signal from
990 variable 'signal', not 'sig'.
992 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
994 * linux-low.c (linux_read_memory): Change return type to
995 int. Check for and return error from ptrace().
996 * target.c (read_inferior_memory): Change return type to int. Pass
997 back return status from the_target->read_memory().
998 * target.h (struct target_ops): Adapt *read_memory() prototype.
1000 (read_inferior_memory): Adapt prototype.
1001 * server.c (main): Return an error packet if
1002 read_inferior_memory() returns an error.
1004 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
1006 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
1007 Unify with other clean targets.
1009 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
1011 * server.c (handle_v_cont): Call set_desired_inferior.
1013 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
1015 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
1017 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
1019 * linux-low.c (linux_wait): Unblock async I/O.
1020 (linux_resume): Block and enable async I/O.
1021 * remote-utils.c (block_async_io, unblock_async_io): New functions.
1022 * server.h (block_async_io, unblock_async_io): Add prototypes.
1024 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
1026 * remote-utils.c (remote_open): Print a status notice after
1028 * server.c (attach_inferior): Print a status notice after
1031 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
1033 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
1035 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
1037 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
1039 * server.c, target.h: Update copyright years.
1041 2004-02-25 Roland McGrath <roland@redhat.com>
1043 * target.h (struct target_ops): New member `read_auxv'.
1044 * server.c (handle_query): Handle qPart:auxv:read: query using that.
1045 * linux-low.c (linux_read_auxv): New function.
1046 (linux_target_ops): Initialize `read_auxv' member to that.
1048 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1050 Committed by Jim Blandy <jimb@redhat.com>.
1052 * linux-s390-low.c (s390_num_regs): Update.
1053 (s390_regmap): Remove control registers. Use __s390x__ predefine
1054 instead of GPR_SIZE to distiguish s390 and s390x targets.
1056 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
1058 * linux-low.c: Update copyright year.
1059 (check_removed_breakpoint): Clear pending_is_breakpoint.
1060 (linux_set_resume_request, linux_queue_one_thread)
1061 (resume_status_pending_p): New functions.
1062 (linux_continue_one_thread): Use process->resume.
1063 (linux_resume): Only resume threads if there are no pending events.
1064 * linux-low.h (struct process_info): Add resume request
1067 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
1069 * regcache.c (new_register_cache): Clear the allocated register
1070 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1072 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
1074 * linux-low.c (linux_resume): Take a struct thread_resume *
1076 (linux_wait): Update call.
1077 (resume_ptr): New static variable.
1078 (linux_continue_one_thread): Renamed from
1079 linux_continue_one_process. Use resume_ptr.
1080 (linux_resume): Use linux_continue_one_thread.
1081 * server.c (handle_v_cont, handle_v_requests): New functions.
1082 (myresume): New function.
1083 (main): Handle 'v' case.
1084 * target.h (struct thread_resume): New type.
1085 (struct target_ops): Change argument of "resume" to struct
1087 (myresume): Delete macro.
1089 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1091 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
1092 (uninstall): Support DESTDIR.
1094 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
1096 * configure.srv: Add xscale*linux copy of arm*linux entry.
1098 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
1100 * linux-arm-low.c (arm_reinsert_addr): New function.
1101 (the_low_target): Add arm_reinsert_addr.
1103 2003-07-08 Mark Kettenis <kettenis@gnu.org>
1105 * mem-break.c: Remove whitespace at end of file.
1107 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1109 * configure.in: Check whether we need to prototype strerror.
1110 * server.h: Optionally prototype strerror.
1111 * gdbreplay.c (perror_with_name): Use strerror.
1112 * linux-low.c (linux_attach_lwp): Use strerror.
1113 * utils.c (perror_with_name): Use strerror.
1114 * config.in, configure: Regenerated.
1116 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1118 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
1119 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
1121 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
1123 * Makefile.in (SFILES): Update.
1124 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
1125 low-sun3.c: Remove files.
1127 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1129 * linux-low.c: Move comment to linux_thread_alive where it belonged.
1130 (linux_detach_one_process, linux_detach): New functions.
1131 (linux_target_ops): Add linux_detach.
1132 * server.c (main): Handle 'D' packet.
1133 * target.h (struct target_ops): Add "detach" member.
1134 (detach_inferior): Define.
1136 2003-06-13 Mark Kettenis <kettenis@gnu.org>
1138 From Kelley Cook <kelleycook@wideopenwest.com>:
1139 * configure.srv: Accept i[34567]86 variants.
1141 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
1143 * linux-low.c (linux_wait_for_event): Correct comment typos.
1144 (linux_resume_one_process): Call check_removed_breakpoint.
1145 (linux_send_signal): New function.
1146 (linux_target_ops): Add linux_send_signal.
1147 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
1149 * target.h (struct target_ops): Add send_signal.
1151 2003-05-29 Jim Blandy <jimb@redhat.com>
1153 * linux-low.c (usr_store_inferior_registers): Transfer buf in
1154 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
1155 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
1156 away part of the register's value.
1158 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
1160 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
1161 (linux_wait_for_event, linux_init_signals): Likewise.
1163 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
1165 * configure.in: Check for stdlib.h.
1166 * configure: Regenerated.
1167 * config.in: Regenerated.
1169 2003-01-04 Andreas Schwab <schwab@suse.de>
1171 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
1173 2003-01-02 Andrew Cagney <ac131313@redhat.com>
1175 * Makefile.in: Remove obsolete code.
1177 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
1179 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
1180 defined(PT_FPR0_HI).
1182 2002-11-17 Stuart Hughes <seh@zee2.com>
1184 * linux-arm-low.c (arm_num_regs): Increase.
1185 (arm_regmap): Include status register.
1187 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
1189 * linux-low.c (register_addr): Remove incorrect -1 check.
1191 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
1193 * linux-low.c (linux_create_inferior): Call setpgid. Return
1195 (unstopped_p, linux_signal_pid): Remove.
1196 (linux_target_ops): Remove linux_signal_pid.
1197 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
1198 global instead of target method.
1199 * target.h (struct target_ops): Remove signal_pid. Update comment
1200 for create_inferior.
1201 * server.c (signal_pid): New variable.
1202 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
1203 gdbserver. Set the child to be the foreground process group.
1204 (attach_inferior): Set signal_pid.
1206 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1208 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
1210 2002-08-20 Jim Blandy <jimb@redhat.com>
1212 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1215 2002-08-01 Andrew Cagney <cagney@redhat.com>
1217 * Makefile.in: Make chill references obsolete.
1219 2002-07-24 Kevin Buettner <kevinb@redhat.com>
1221 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1222 * configure: Regenerate.
1223 * config.in: Regenerate.
1225 2002-07-09 David O'Brien <obrien@FreeBSD.org>
1227 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1228 (perror_with_name, remote_close, remote_open, expect, play): Static.
1230 2002-07-04 Michal Ludvig <mludvig@suse.cz>
1232 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
1233 byte offsets instead of an array of indexes.
1234 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
1236 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1238 * regcache.c: Add comment.
1240 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
1242 * thread-db.c: New file.
1243 * proc-service.c: New file.
1244 * acinclude.m4: New file.
1245 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
1246 proc-service.o, and thread-db.o.
1247 (linux-low.o): Add USE_THREAD_DB.
1248 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
1249 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
1250 * aclocal.m4: Regenerated.
1251 * config.in: Regenerated.
1252 * configure: Regenerated.
1253 * configure.in: Check for proc_service.h, sys/procfs.h,
1254 thread_db.h, and linux/elf.h headrs.
1255 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
1256 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
1257 Check for -lthread_db and thread support.
1258 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
1259 PowerPC, and SuperH.
1260 * i387-fp.c: Constify arguments.
1261 * i387-fp.h: Likewise.
1262 * inferiors.c: (struct thread_info): Renamed from
1263 `struct inferior_info'. Remove PID member. Use generic inferior
1264 list header. All uses updated.
1265 (inferiors, signal_pid): Removed.
1266 (all_threads): New variable.
1267 (get_thread): Define.
1268 (add_inferior_to_list): New function.
1269 (for_each_inferior): New function.
1270 (change_inferior_id): New function.
1271 (add_inferior): Removed.
1272 (remove_inferior): New function.
1273 (add_thread): New function.
1274 (free_one_thread): New function.
1275 (remove_thread): New function.
1276 (clear_inferiors): Use for_each_inferior and free_one_thread.
1277 (find_inferior): New function.
1278 (find_inferior_id): New function.
1279 (inferior_target_data): Update argument type.
1280 (set_inferior_target_data): Likewise.
1281 (inferior_regcache_data): Likewise.
1282 (set_inferior_regcache_data): Likewise.
1283 * linux-low.c (linux_bp_reinsert): Remove.
1284 (all_processes, stopping_threads, using_thrads)
1285 (struct pending_signals, debug_threads, pid_of): New.
1286 (inferior_pid): Replace with macro.
1287 (struct inferior_linux_data): Remove.
1288 (get_stop_pc, add_process): New functions.
1289 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
1290 Use add_process and add_thread.
1291 (linux_attach_lwp): New function, based on old linux_attach. Use
1292 add_process and add_thread. Set stop_expected for new threads.
1293 (linux_attach): New function.
1294 (linux_kill_one_process): New function.
1295 (linux_kill): Kill all LWPs.
1296 (linux_thread_alive): Use find_inferior_id.
1297 (check_removed_breakpoints, status_pending_p): New functions.
1298 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
1299 Update. Use WNOHANG. Wait for cloned processes also. Update process
1300 struct for the found process.
1301 (linux_wait_for_event): New function.
1302 (linux_wait): Use it. Support LWPs.
1303 (send_sigstop, wait_for_sigstop, stop_all_processes)
1304 (linux_resume_one_process, linux_continue_one_process): New functions.
1305 (linux_resume): Support LWPs.
1306 (REGISTER_RAW_SIZE): Remove.
1307 (fetch_register): Use register_size instead. Call supply_register.
1308 (usr_store_inferior_registers): Likewise. Call collect_register.
1310 (regsets_fetch_inferior_registers): Improve error message.
1311 (regsets_store_inferior_registers): Add debugging.
1312 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
1313 (unstopped_p, linux_signal_pid): New functions.
1314 (linux_target_ops): Add linux_signal_pid.
1315 (linux_init_signals): New function.
1316 (initialize_low): Call it. Initialize using_threads.
1317 * regcache.c (inferior_regcache_data): Add valid
1319 (get_regcache): Fetch registers lazily. Add fetch argument
1320 and update all callers.
1321 (regcache_invalidate_one, regcache_invalidate): New
1323 (new_register_cache): Renamed from create_register_cache.
1324 Return the new regcache.
1325 (free_register_cache): Change argument to a void *.
1326 (registers_to_string, registers_from_string): Call get_regcache
1327 with fetch flag set.
1328 (register_data): Make static. Pass fetch flag to get_regcache.
1329 (supply_register): Call get_regcache with fetch flag clear.
1330 (collect_register): Call get_regcache with fetch flag set.
1331 (collect_register_as_string): New function.
1332 * regcache.h: Update.
1333 * remote-utils.c (putpkt): Flush after debug output and use
1335 Handle input interrupts while waiting for an ACK.
1336 (input_interrupt): Use signal_pid method.
1337 (getpkt): Flush after debug output and use stderr.
1338 (outreg): Use collect_register_as_string.
1339 (new_thread_notify, dead_thread_notify): New functions.
1340 (prepare_resume_reply): Check using_threads. Set thread_from_wait
1342 (look_up_one_symbol): Flush after debug output.
1343 * server.c (step_thread, server_waiting): New variables.
1344 (start_inferior): Don't use signal_pid. Update call to mywait.
1345 (attach_inferior): Update call to mywait.
1346 (handle_query): Handle qfThreadInfo and qsThreadInfo.
1347 (main): Don't fetch/store registers explicitly. Use
1348 set_desired_inferior. Support proposed ``Hs'' packet. Update
1351 (struct inferior_list, struct_inferior_list_entry): New.
1352 * target.c (set_desired_inferior): New.
1353 (write_inferior_memory): Constify.
1354 (mywait): New function.
1356 (struct target_ops): New signal_pid method.
1357 (mywait): Removed macro, added prototype.
1359 * linux-low.h (regset_func): Removed.
1360 (regset_fill_func, regset_store_func): New.
1361 (enum regset_type): New.
1362 (struct regset_info): Add type field. Use new operation types.
1363 (struct linux_target_ops): stop_pc renamed to get_pc.
1364 Add decr_pc_after_break and breakpoint_at.
1365 (get_process, get_thread_proess, get_process_thread)
1366 (strut process_info, all_processes, linux_attach_lwp)
1367 (thread_db_init): New.
1369 * linux-arm-low.c (arm_get_pc, arm_set_pc,
1370 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
1371 (the_low_target): Add new members.
1372 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
1373 (i386_store_fpxregset): Constify.
1374 (target_regsets): Add new kind identifier.
1375 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
1376 (i386_set_pc): Add debugging.
1377 (i386_breakpoint_at): New function.
1378 (the_low_target): Add new members.
1379 * linux-mips-low.c (mips_get_pc, mips_set_pc)
1380 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
1381 (mips_breakpoint_at): New.
1382 (the_low_target): Add new members.
1383 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
1384 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
1385 (the_low_target): Add new members.
1386 * linux-sh-low.c (sh_get_pc, sh_set_pc)
1387 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
1388 (the_low_target): Add new members.
1389 * linux-x86-64-low.c (target_regsets): Add new kind
1392 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
1394 From Martin Pool <mbp@samba.org>:
1395 * server.c (gdbserver_usage): New function.
1398 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
1400 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
1403 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1405 * Makefile.in: Remove obsolete code.
1407 2002-04-24 Michal Ludvig <mludvig@suse.cz>
1409 * linux-low.c (regsets_fetch_inferior_registers),
1410 (regsets_store_inferior_registers): Removed cast to int from
1412 * regcache.h: Added declaration of struct inferior_info.
1414 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1416 * inferiors.c (struct inferior_info): Add regcache_data.
1417 (add_inferior): Call create_register_cache.
1418 (clear_inferiors): Call free_register_cache.
1419 (inferior_regcache_data, set_inferior_regcache_data): New functions.
1420 * regcache.c (struct inferior_regcache_data): New.
1421 (registers): Remove.
1422 (get_regcache): New function.
1423 (create_register_cache, free_register_cache): New functions.
1424 (set_register_cache): Don't initialize the register cache here.
1425 (registers_to_string, registers_from_string, register_data): Call
1427 * regcache.h: Add prototypes.
1428 * server.h: Likewise.
1430 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1432 * mem-break.c: New file.
1433 * mem-break.h: New file.
1434 * Makefile.in: Add mem-break.o rule; update server.h
1436 * inferiors.c (struct inferior_info): Add target_data
1438 (clear_inferiors): Free target_data member if set.
1439 (inferior_target_data, set_inferior_target_data): New functions.
1440 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
1441 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
1442 * linux-low.c (linux_bp_reinsert): New variable.
1443 (struct inferior_linux_data): New.
1444 (linux_create_inferior): Use set_inferior_target_data.
1445 (linux_attach): Likewise. Call add_inferior.
1446 (linux_wait_for_one_inferior): New function.
1447 (linux_wait): Call it.
1448 (linux_write_memory): Add const.
1449 (initialize_low): Call set_breakpoint_data.
1450 * linux-low.h (struct linux_target_ops): Add breakpoint
1452 * server.c (attach_inferior): Remove extra add_inferior
1454 * server.h: Include mem-break.h. Update inferior.c
1456 * target.c (read_inferior_memory)
1457 (write_inferior_memory): New functions.
1458 * target.h (read_inferior_memory)
1459 (write_inferior_memory): Change macros to prototypes.
1460 (struct target_ops): Update comments. Add const to write_memory
1463 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
1465 * linux-low.c (usr_store_inferior_registers): Support
1466 registers which are allowed to fail to store.
1467 * linux-low.h (linux_target_ops): Likewise.
1468 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
1469 (ppc_cannot_store_register): FPSCR may not be storable.
1471 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1473 * server.h: Include <string.h> if HAVE_STRING_H.
1474 * ChangeLog: Correct paths in last ChangeLog entry.
1476 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1478 * linux-low.h: Remove obsolete prototypes.
1479 (struct linux_target_ops): New.
1480 (extern the_low_target): New.
1481 * linux-low.c (num_regs, regmap): Remove declarations.
1482 (register_addr): Use the_low_target explicitly.
1483 (fetch_register): Likewise.
1484 (usr_fetch_inferior_registers): Likewise.
1485 (usr_store_inferior_registers): Likewise.
1486 * linux-arm-low.c (num_regs): Remove.
1487 (arm_num_regs): Define.
1488 (arm_regmap): Renamed from regmap, made static.
1489 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1491 (arm_cannot_store_register): Renamed from cannot_store_register,
1493 (the_low_target): New.
1494 * linux-i386-low.c (num_regs): Remove.
1495 (i386_num_regs): Define.
1496 (i386_regmap): Renamed from regmap, made static.
1497 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1499 (i386_cannot_store_register): Renamed from cannot_store_register,
1501 (the_low_target): New.
1502 * linux-ia64-low.c (num_regs): Remove.
1503 (ia64_num_regs): Define.
1504 (ia64_regmap): Renamed from regmap, made static.
1505 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1507 (ia64_cannot_store_register): Renamed from cannot_store_register,
1509 (the_low_target): New.
1510 * linux-m68k-low.c (num_regs): Remove.
1511 (m68k_num_regs): Define.
1512 (m68k_regmap): Renamed from regmap, made static.
1513 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1515 (m68k_cannot_store_register): Renamed from cannot_store_register,
1517 (the_low_target): New.
1518 * linux-mips-low.c (num_regs): Remove.
1519 (mips_num_regs): Define.
1520 (mips_regmap): Renamed from regmap, made static.
1521 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1523 (mips_cannot_store_register): Renamed from cannot_store_register,
1525 (the_low_target): New.
1526 * linux-ppc-low.c (num_regs): Remove.
1527 (ppc_num_regs): Define.
1528 (ppc_regmap): Renamed from regmap, made static.
1529 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1531 (ppc_cannot_store_register): Renamed from cannot_store_register,
1533 (the_low_target): New.
1534 * linux-s390-low.c (num_regs): Remove.
1535 (s390_num_regs): Define.
1536 (s390_regmap): Renamed from regmap, made static.
1537 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1539 (s390_cannot_store_register): Renamed from cannot_store_register,
1541 (the_low_target): New.
1542 * linux-sh-low.c (num_regs): Remove.
1543 (sh_num_regs): Define.
1544 (sh_regmap): Renamed from regmap, made static.
1545 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1547 (sh_cannot_store_register): Renamed from cannot_store_register,
1549 (the_low_target): New.
1550 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1551 (the_low_target): New.
1553 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1555 * Makefile.in: Add stamp-h target.
1556 * configure.in: Create stamp-h.
1557 * configure: Regenerated.
1559 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1561 * inferiors.c: New file.
1562 * target.c: New file.
1563 * target.h: New file.
1564 * Makefile.in: Add target.o and inferiors.o. Update
1566 * linux-low.c (inferior_pid): New static variable,
1567 moved from server.c.
1568 (linux_create_inferior): Renamed from create_inferior.
1569 Call add_inferior. Return 0 on success instead of a PID.
1570 (linux_attach): Renamed from myattach.
1571 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1572 (linux_thread_alive): Renamed from mythread_alive.
1573 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1575 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1576 (regsets_store_inferior_registers): Correct error message.
1577 Add missing ``return 0''.
1578 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1579 (linux_store_registers): Renamed from store_inferior_registers.
1580 (linux_read_memory): Renamed from read_inferior_memory.
1581 (linux_write_memory): Renamed from write_inferior_memory.
1582 (linux_target_ops): New structure.
1583 (initialize_low): Call set_target_ops ().
1584 * remote-utils.c (unhexify): New function.
1585 (hexify): New function.
1586 (input_interrupt): Send signals to ``signal_pid''.
1587 * server.c (inferior_pid): Remove.
1588 (start_inferior): Update create_inferior call.
1589 (attach_inferior): Call add_inferior.
1590 (handle_query): New function.
1591 (main): Call handle_query for `q' packets.
1592 * server.h: Include "target.h". Remove obsolete prototypes.
1593 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1595 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1597 * Makefile.in: Add WARN_CFLAGS. Update configury
1599 * configure.in: Check for <string.h>
1600 * configure: Regenerate.
1601 * config.in: Regenerate.
1602 * gdbreplay.c: Include needed system headers.
1603 (remote_open): Remove strchr prototype.
1604 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1605 * regcache.c (supply_register): Change buf argument to const void *.
1606 (supply_register_by_name): Likewise.
1607 (collect_register): Change buf argument to void *.
1608 (collect_register_by_name): Likewise.
1609 * regcache.h: Add missing prototypes.
1610 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1611 * server.c (handle_query): New function.
1612 (attached): New static variable, moved out of main.
1613 (main): Quiet longjmp clobber warnings.
1614 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1615 * utils.c (error): Remove NORETURN.