1 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3 * inferiors.c (change_inferior_id): Add comment.
4 * linux-low.c (check_removed_breakpoint): Add an early
5 prototype. Improve debug output.
6 (linux_attach): Doc update.
7 (linux_detach_one_process, linux_detach): Clean up before releasing
9 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
10 * linux-low.h (struct process_info): Doc improvement.
11 * mem-break.c (delete_all_breakpoints): New.
12 * mem-break.h (delete_all_breakpoints): New prototype.
13 * thread-db.c (find_first_thread): New.
14 (thread_db_create_event): Call it instead of
15 thread_db_find_new_threads. Clean up unused variables.
16 (maybe_attach_thread): Remove first thread handling.
17 (thread_db_find_new_threads): Use find_first_thread.
18 (thread_db_get_tls_address): Likewise.
20 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
22 * thread-db.c (thread_db_find_new_threads): Add prototype.
23 (thread_db_create_event): Check for the main thread before adding
25 (maybe_attach_thread): Only enable event reporting if TID == 0.
26 (thread_db_get_tls_address): Check for new threads.
28 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
30 * linux-low.c (linux_create_inferior): Try execv before execvp.
31 * spu-low.c (spu_create_inferior): Likewise.
33 2007-06-13 Mike Frysinger <vapier@gentoo.org>
35 * linux-low.c (linux_create_inferior): Change execv to execvp.
36 * spu-low.c (spu_create_inferior): Likewies.
38 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
40 * Makefile.in (clean): Clean new files instead of deleted ones.
41 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
42 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
44 * configure.srv: Specify XML files and new regformats for MIPS and
46 * linux-mips-low.c (mips_num_regs): Set to only used registers.
47 (mips_regmap): Do not fetch $0. Remove unused registers. Add
48 an entry for the restart register.
49 (mips_cannot_fetch_register, mips_cannot_store_register)
50 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
51 register names to match the XML descriptions.
52 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
53 restart register instead of $0.
55 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
56 Markus Deuling <deuling@de.ibm.com>
58 * remote-utils.c (decode_xfer_write): New function.
59 * server.h (decode_xfer_write): Add prototype.
60 * server.c (handle_query): Add PACKET_LEN argument. Support
61 qXfer:spu:read and qXfer:spu:write packets.
62 (main): Pass packet_len to handle_query.
63 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
64 * target.h (target_ops): Add qxfer_spu.
66 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
68 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
69 accessing non-seekable spufs files.
71 2007-05-16 Markus Deuling <deuling@de.ibm.com>
73 * server.c (handle_query): Add reply for qC packet.
75 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
76 Leo Zayas <lerele@champenstudios@com>
78 * server.h (check_remote_input_interrupt_request): New function.
79 * remote_utils.c (INVALID_DESCRIPTOR): New define.
80 (remote_desc): Initialize with INVALID_DESCRIPTOR.
81 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
82 (check_remote_input_interrupt_request): New function.
83 * server.h (check_remote_input_interrupt_request): Declare.
84 * win32-low.c (winapi_DebugBreakProcess,
85 winapi_GenerateConsoleCtrlEvent): New typedefs.
86 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
88 (win32_wait): Check for remote interrupt request
89 with check_remote_input_interrupt_request.
90 (win32_request_interrupt): New function.
91 (win32_target_op): Set request_interrupt to win32_request_interrupt.
93 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
95 * win32-low.c (debug_registers_changed,
96 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
97 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
98 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
99 (thread_rec): Get context using the low target.
100 (child_add_thread): Call thread_added on the low target,
101 which does the same thing.
103 (do_initial_child_stuff): Remove debug registers references.
104 Set context using the low target. Resume threads after
105 setting the contexts.
106 (child_continue): Remove dead variable. Remove debug
107 registers references.
108 (child_fetch_inferior_registers): Go through the low target.
109 (do_child_store_inferior_registers): Remove.
110 (child_store_inferior_registers): Go through the low target.
111 (win32_resume): Remove debug registers references.
112 Set context using the low target.
113 (handle_exception): Change return type to void. Don't record
114 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
115 first chance exception.
116 (get_child_debug_event): Change return type to void. Remove
117 goto loop. Always return after waiting for debug event.
118 (win32_wait): Convert to switch statement. Handle spurious
121 * win32-i386-low.c (debug_registers_changed,
122 debug_registers_used): New.
123 (initial_stuff): Rename to ...
124 (i386_initial_stuff): ... this. Clear debug registers
126 (store_debug_registers): Delete.
127 (i386_get_thread_context): New.
128 (load_debug_registers): Delete.
129 (i386_set_thread_context): New.
130 (i386_thread_added): New.
131 (single_step): Rename to ...
132 (i386_single_step): ... this.
133 (do_fetch_inferior_registers): Rename to ...
134 (i386_fetch_inferior_register): ... this.
135 (i386_store_inferior_register): New.
136 (the_low_target): Adapt to new interface.
138 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
139 (arm_get_thread_context): New.
140 (arm_set_thread_context): New.
142 (do_fetch_inferior_registers): Rename to ...
143 (arm_fetch_inferior_register): ... this.
144 (arm_store_inferior_register): New.
145 (arm_wince_breakpoint): Reimplement as unsigned long.
146 (arm_wince_breakpoint_len): Define.
147 (the_low_target): Adapt to new interface.
149 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
150 load_debug_registers. Add get_thread_context, set_thread_context,
151 thread_added and store_inferior_register. Rename
152 fetch_inferior_registers to fetch_inferior_register.
153 (regptr): Remove declaration.
155 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
157 * linux-low.c (linux_detach): Change return type to int. Return 0.
158 * spu-low.c (spu_detach): Likewise.
160 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
162 * target.h (target_ops): Change return type of detach to int.
164 (join_inferior): New.
165 * server.c (main): Don't skip detach support on mingw32.
166 If the inferior doesn't support detaching return error.
167 Call join_inferior instead of using waitpid.
168 * linux-low.c (linux_join): New.
169 (linux_target_op): Add linux_join.
170 * spu-low.c (spu_join): New.
171 (spu_target_ops): Add spu_join.
172 * win32-low.c (win32_detach): Adapt to new interface.
173 Reopen current_process_handle before detaching. Issue a child
174 resume before detaching.
176 (win32_target_op): Add win32_join.
178 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
180 * win32-low.c (win32-attach): Fix return value.
181 * target.h (target_ops): Describe ATTACH return values.
183 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
185 * win32-low.c (GETPROCADDRESS): Define.
186 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
187 (winapi_DebugSetProcessKillOnExit): Likewise.
188 (win32_create_inferior): Force usage of ansi CreateProcessA.
189 (win32_attach): Use GETPROCADDRESS.
190 (win32_detach): Likewise.
192 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
194 * win32-low.c (win32_wait): Don't use WSTOPSIG.
196 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
198 * win32-low.c: Commit leftover changes from 2007-03-29.
200 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
202 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
203 fields short instead of int. Add explicit padding.
204 (i387_cache_to_fsave): Remove unnecessary casts.
205 (i387_fsave_to_cache): Doc fix.
206 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
208 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
210 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
211 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
213 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
215 * configure.srv (arm*-*-mingw32ce*): Move near the other
218 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
220 * configure.ac: Add errno checking.
221 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
222 sys/file.h and malloc.h.
223 (AC_CHECK_DECLS): Add perror.
224 (srv_mingwce): Handle.
225 * configure.srv (i[34567]86-*-cygwin*): Add
226 win32-i386-low.o to srv_tgtobj.
227 (i[34567]86-*-mingw*): Likewise.
228 (arm*-*-mingw32ce*): Add case.
229 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
230 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
231 [__MINGW32CE__] (strerror): New function.
232 [__MINGW32CE__] (errno): Define to GetLastError.
233 [__MINGW32CE__] (COUNTOF): New macro.
234 (remote_open): Remove extra close call.
235 * mem-break.c (delete_breakpoint_at): New function.
236 * mem-break.h (delete_breakpoint_at): Declare.
237 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
238 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
239 [USE_WIN32API] (read, write): Add char* casts.
240 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
241 * server.h: Include wincecompat.h on Windows CE.
242 [HAVE_ERRNO_H]: Check.
243 (perror): Declare if not declared.
244 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
245 (perror_with_name): Remove errno declaration.
246 * wincecompat.h: New.
247 * wincecompat.c: New.
249 * win32-arm-low.c: New.
250 * win32-i386-low.c: New.
251 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
252 (OUTMSG2): Make it safe.
254 (COUNTOF): New macro.
255 (NUM_REGS): Get it from the low target.
256 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
257 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
258 (thread_rec): Let low target handle debug registers.
259 (child_add_thread): Likewise.
260 (child_init_thread_list): Likewise.
261 (continue_one_thread): Likewise.
263 (do_child_fetch_inferior_registers): Move to ...
264 * win32-i386-low.c: ... here, and rename to ...
265 (do_fetch_inferior_registers): ... this.
266 * win32-low.c (child_fetch_inferior_registers):
267 Go through the low target.
268 (do_child_store_inferior_registers): Use regptr.
269 (strwinerror): New function.
270 (win32_create_inferior): Handle Windows CE.
271 Use strwinerror instead of strerror on Windows error
272 codes. Add program to the error output.
273 Don't close the main thread handle on Windows CE.
274 (win32_attach): Use coredll.dll on Windows CE.
275 (win32_kill): Close current process and current
277 (win32_detach): Use coredll.dll on Windows CE.
278 (win32_resume): Let low target handle debug registers, and
280 (handle_exception): Add/Remove initial breakpoint. Avoid
281 non-existant WSTOPSIG on Windows CE.
282 (win32_read_inferior_memory): Cast to remove warning.
283 (win32_arch_string): Go through the low target.
284 (initialize_low): Call set_breakpoint_data with the low
286 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
287 FOP_REGNUM, mappings): Move to ...
288 * win32-i386-low.c: ... here.
289 * win32-low.c (win32_thread_info): Move to ...
290 * win32-low.h: ... here.
291 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
292 win32-arm-low.c and wincecompat.c.
294 (install-only:): Likewise.
295 (gdbserver:): Likewise.
296 (gdbreplay:): Likewise.
297 * config.in: Regenerate.
298 * configure: Regenerate.
300 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
302 * win32-low.c: Rename typedef thread_info to
303 win32_thread_info throughout.
305 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
307 * win32-i386-low.c: Rename to ...
308 * win32-low.c: ... this.
309 * configure.srv: Replace win32-i386-low.o with win32-low.o.
310 * Makefile.in: Likewise.
312 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
314 * remote-utils.c (monitor_output): Constify msg parameter.
315 * server.h (monitor_output): Likewise.
316 * win32-i386-low.c (handle_output_debug_string): New.
317 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
318 handle_output_debug_string.
319 (get_child_debug_event): Likewise.
321 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
323 * server.c (main): Correct strtoul check.
325 2007-03-27 Jon Ringle <jon@ringle.org>
327 * linux-low.c: Check __ARCH_HAS_MMU__ also.
329 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
331 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
333 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
335 * terminal.h: Check HAVE_SGTTY_H.
337 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
339 * remote-utils.c (remote_open): Print out the assigned port number.
341 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
343 * remote-utils.c (monitor_output): New function.
344 * server.c (debug_threads): Define here.
345 (monitor_show_help): New function.
346 (handle_query): Handle qRcmd.
347 (main): Do not handle 'd' packet.
348 * server.h (debug_threads, remote_debug, monitor_output): Declare.
349 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
352 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
354 * Makefile.in (EXEEXT): New.
355 (clean): Use $(EXEEXT).
357 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
359 * target.h (target_ops): Rename send_signal to request_interrupt,
360 and remove enum target_signal parameter.
361 * linux-low.c (linux_request_interrupt): Rename from
362 linux_send_signal, and always send SIGINT.
363 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
364 and always send SIGINT.
365 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
367 (input_interrupt): Likewise.
369 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
371 * server.c (get_features_xml): Check if target implemented
373 * win32-i386-low.c (win32_arch_string): New.
374 (win32_target_ops): Add win32_arch_string as arch_string member.
376 2007-02-22 Markus Deuling <deuling@de.ibm.com>
378 * spu-low.c (spu_arch_string): New.
379 (spu_target_ops): Add spu_arch_string.
381 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
383 * remote-utils.c: Remove HAVE_TERMINAL_H check.
384 * configure.ac: Do not check for terminal.h.
385 * configure, config.in: Regenerated.
387 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
389 * Makefile.in (OBS): Add $(XML_BUILTIN).
390 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
392 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
393 (arm-with-iwmmxt.c): New.
394 * config.in, configure: Regenerate.
395 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
396 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
397 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
398 (arm*-*-linux*): Add iWMMXt and regset support.
399 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
400 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
401 (arm_store_wmmxregset, target_regsets): New.
402 * server.c (get_features_xml): Take annex argument. Check builtin
404 (handle_query): Handle multiple annexes.
406 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
408 * remote-utils.c [USE_WIN32API] (read, write): Define.
409 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
412 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
414 * linux-i386-low.c (the_low_target): Set arch_string.
415 * linux-x86-64-low.c (the_low_target): Likewise.
416 * linux-low.c (linux_arch_string): New.
417 (linux_target_ops): Add it.
418 * linux-low.h (struct linux_target_ops): Add arch_string.
419 * server.c (write_qxfer_response): Use const void * for DATA.
420 (get_features_xml): New.
421 (handle_query): Handle qXfer:features:read. Report it for qSupported.
422 * target.h (struct target_ops): Add arch_string method.
424 2007-01-03 Denis Pilat <denis.pilat@st.com>
425 Daniel Jacobowitz <dan@codesourcery.com>
427 * linux-low.c (linux_kill): Handle being called with no threads.
428 * win32-i386-low.c (win32_kill): Likewise.
429 (get_child_debug_event): Clear current_process_handle.
431 2006-12-30 Denis PILAT <denis.pilat@st.com>
432 Daniel Jacobowitz <dan@codesourcery.com>
434 * remote-utils.c (remote_open): Check the type of specified
435 serial port devices before opening them.
436 * server.c (main): Kill the inferior if an error occurs during
437 the first remote_open.
439 2006-12-05 Markus Deuling <deuling@de.ibm.com>
441 * README: Update supported targets.
443 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
445 * Makefile.in (clean): Remove reg-mips64.c.
446 (reg-mips64.c, reg-mips64.o): New rules.
447 * configure.srv: Handle mips64. Include regset support for mips.
448 * linux-mips-low.c (union mips_register): New.
449 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
450 (mips_breakpoint, mips_breakpoint_at): Use int.
451 (mips_collect_register, mips_supply_register)
452 (mips_collect_register_32bit, mips_supply_register_32bit)
453 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
454 (mips_store_fpregset, target_regsets): New.
455 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
457 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
459 * configure.srv: Add target "spu*-*-*".
460 * Makefile.in (clean): Remove reg-spu.c.
461 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
462 * spu-low.c: New file.
464 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
466 * configure.ac: Correct td_thr_tls_get_addr test.
467 * configure: Regenerated.
469 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
471 * linux-low.c (linux_wait_for_event): Reformat. Use the
473 * remote-utils.c (decode_address_to_semicolon): New.
474 * server.c (pass_signals, handle_general_set): New.
475 (handle_query): Mention QPassSignals for qSupported.
476 (main): Call handle_general_set.
477 * server.h (pass_signals, decode_address_to_semicolon): New.
479 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
481 * server.c (handle_query): Correct error handling for read_auxv.
483 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
485 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
486 and srv_linux_thread_db to yes.
487 * linux-s390-low.c (s390_fill_gregset): New function.
488 (target_regsets): Define data structure.
490 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
492 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
493 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
494 * config.in, configure: Regenerated.
495 * inferiors.c (gdb_id_to_thread): New function.
496 (gdb_id_to_thread_id): Use it.
497 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
498 * linux-low.h (struct process_info): Add th member.
499 (thread_db_get_tls_address): New prototype.
500 * remote-utils.c (decode_address): Make non-static.
501 * server.c (handle_query): Handle qGetTLSAddr.
502 * server.h (gdb_id_to_thread, decode_address): New prototypes.
503 * target.h (struct target_ops): Add get_tls_address.
504 * thread-db.c (maybe_attach_thread): Save the thread handle.
505 (thread_db_get_tls_address): New.
507 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
509 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
510 (linux_resume_one_process): Take a siginfo_t *. Update all
511 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
512 (struct pending_signals): Add a siginfo_t.
513 (linux_wait_for_process): Always set last_status.
514 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
515 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
516 * linux-low.h (struct process_info): Add last_status.
518 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
520 * remote-utils.c (try_rle): New function.
521 (putpkt_binary): Use it.
523 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
525 * Makefile.in (clean): Clean reg-x86-64-linux.c.
526 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
527 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
528 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
529 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
532 2006-08-08 Richard Sandiford <richard@codesourcery.com>
534 * server.c (terminal_fd): New variable.
535 (old_foreground_pgrp): Likewise.
536 (restore_old_foreground_pgrp): New function.
537 (start_inferior): Record the terminal file descriptor in terminal_fd
538 and its original foreground group in old_foreground_pgrp. Register
539 restore_old_foreground_pgrp with atexit().
541 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
543 * server.c (handle_query): Correct qPart to qXfer.
545 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
547 * configure.ac: Check for more headers which are missing on
548 Windows. Automatically supply -lwsock32 and USE_WIN32API.
549 * configure.srv: Add Cygwin and mingw32.
550 * remote-utils.c: Don't include headers unconditionally which
551 are missing on mingw32. Include <winsock.h> for mingw32.
552 (remote_open): Adjust for mingw32 support. Flush
553 standard error after writing to it.
554 (remote_close, putpkt_binary, input_interrupt, block_async_io)
555 (unblock_async_io, enable_async_io, disable_async_io)
556 (readchar, getpkt): Update for Winsock support.
557 (prepare_resume_reply): Expect a protocol signal number.
558 * server.c: Disable <sys/wait.h> on mingw32.
559 (start_inferior): Adjust for mingw32 support. Flush
560 standard error after writing to it.
561 (attach_inferior): Likewise. Use protocol signal
563 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
565 * win32-i386-low.c: New file.
566 * Makefile.in (XM_CLIBS): Set.
567 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
568 (win32-i386-low.o): New dependency rule.
569 * linux-low.c (linux_wait): Use target signal numbers.
570 * target.h (struct target_ops): Doc fix.
571 * server.h (target_signal_to_name): New prototype.
572 * gdbreplay.c: Don't include headers unconditionally which
573 are missing on mingw32. Include <winsock.h> for mingw32.
574 (remote_close, remote_open): Adjust for Winsock support.
575 * configure, config.in: Regenerated.
577 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
579 * server.c (decode_xfer_read, write_qxfer_response): New.
580 (handle_query): Take a packet length argument. Handle
581 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
582 the qSupported response.
583 (main): Update call to handle_query.
585 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
587 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
588 (putpkt_binary): Renamed from putpkt and adjusted for binary
590 (putpkt): New wrapper for putpkt_binary.
591 (readchar): Don't mask off the high bit.
592 (decode_X_packet): New function.
593 * server.c (main): Call putpkt_binary if a handler sets the packet
594 length. Save the length of the incoming packet. Handle 'X'.
595 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
597 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
599 * server.c (handle_query): Handle qSupported.
601 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
603 * remote-utils.c (all_symbols_looked_up): New variable.
604 (look_up_one_symbol): Check it.
605 * server.h (look_up_one_symbol): New declaration.
606 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
608 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
610 * Makefile.in (linux-arm-low.o): Update dependencies.
611 * linux-arm-low.c: Include "gdb_proc_service.h".
612 (PTRACE_GET_THREAD_AREA): Define.
613 (ps_get_thread_area): New function.
615 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
617 * configure.srv (m68k*-*-uclinux*): New target.
618 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
619 (linux_resume_one_process): Remove extraneous cast.
620 (linux_read_offsets): New.
621 (linux_target_op): Add linux_read_offsets on mmuless systems.
622 * server.c (handle_query): Add qOffsets logic.
623 * target.h (struct target_ops): Add read_offsets.
625 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
627 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
628 (PTRACE_GET_THREAD_AREA): Define.
629 (ps_get_thread_area): New function.
630 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
631 (linux-x86-64-low.o): Update.
633 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
635 * configure.ac: Remove checks for prfpregset_t.
636 * gdb_proc_service.h: New file.
637 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
638 new "gdb_proc_service.h".
639 * proc-service.c: Likewise.
640 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
641 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
642 * Makefile.in (gdb_proc_service_h): Updated.
643 * configure, config.in: Regenerated.
645 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
647 * remote-utils.c (prepare_resume_reply): Move declaration
648 of gdb_id_from_wait to the top of the block.
650 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
652 * linux-low.c (regsets_store_inferior_registers): Read the regset
653 from the target before filling it.
655 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
657 * server.c (attach_inferior): Return SIGTRAP for a successful
660 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
662 * Makefile.in (OBS): Add version.o.
663 (STAGESTUFF): Delete.
664 (version.o): Add dependencies.
665 (version.c): Replace rule.
666 (clean): Remove version.c.
667 * server.c (gdbserver_version): New.
668 (gdbserver_usage): Use printf.
669 (main): Handle --version and --help.
670 * server.h (version, host_name): Add declarations.
672 2005-12-23 Eli Zaretskii <eliz@gnu.org>
684 * linux-x86-64-low.c:
696 * linux-crisv32-low.c:
708 * gdbserver.1: Add (C) after Copyright. Update the FSF
711 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
713 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
714 (arm_breakpoint_at): Recognize both breakpoints.
715 (the_low_target): Use the correct breakpoint instruction.
717 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
719 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
720 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
721 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
722 (the_low_target): Update.
724 2005-10-25 Andreas Schwab <schwab@suse.de>
726 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
728 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
729 (ia64_num_regs): Reduce to 462.
731 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
733 * acinclude.m4: Correct quoting.
734 * aclocal.m4: Regenerated.
736 Suggested by SZOKOVACS Robert <szo@ies.hu>:
737 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
738 (thread_db_init): Call thread_db_err_str.
739 * configure.ac: Check for TD_VERSION.
740 * config.in, configure: Regenerated.
742 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
744 * server.h (error, fatal, warning): Add ATTR_FORMAT.
746 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
748 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
749 is not available. Define HAVE_PTRACE_GETREGS if it is.
750 * config.in, configure: Regenerated.
751 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
752 * linux-i386-low.c, linux-m68k-low.c: Update to use
754 * linux-low.c (regsets_fetch_inferior_registers)
755 (regsets_store_inferior_registers): Only return 0 if we processed
757 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
758 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
760 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
762 * inferiors.c (struct thread_info): Add gdb_id.
763 (add_thread): Add gdb_id argument.
764 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
765 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
767 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
768 * server.c (handle_query): Use thread_to_gdb_id.
769 (handle_v_cont, main): Use gdb_id_to_thread_id.
770 * server.h (add_thread): Update prototype.
771 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
774 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
776 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
777 left-padded registers.
778 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
779 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
781 2005-07-01 Steve Ellcey <sje@cup.hp.com>
783 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
784 * configure: Regenerate.
785 * config.in: Regenerate.
786 * server.h (NEED_DECLARATION_STRERROR):
787 Replace with !HAVE_DECL_STRERROR.
789 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
791 * linux-low.c (linux_wait, linux_send_signal): Don't test
792 an unsigned long variable for > 0 if it could be MAX_ULONG.
793 * server.c (myresume): Likewise.
794 * target.c (set_desired_inferior): Likewise.
796 2005-06-13 Mark Kettenis <kettenis@gnu.org>
798 * configure.ac: Simplify and improve check for socklen_t.
799 * configure, config.in: Regenerate.
801 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
803 * acconfig.h: Remove.
804 * configure.ac: Add a test for socklen_t. Use three-argument
805 AC_DEFINE throughout.
806 * config.in: Regenerated using autoheader 2.59.
807 * configure: Regenerated.
809 * gdbreplay.c (socklen_t): Provide a default.
810 (remote_open): Use socklen_t.
811 * remote-utils.c (socklen_t): Provide a default.
812 (remote_open): Use socklen_t.
813 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
816 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
818 * linux-low.c (linux_read_memory, linux_write_memory)
819 (linux_read_auxv): Likewise.
820 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
821 (check_mem_write): Likewise.
822 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
824 * regcache.c (struct inferior_rgcache_data, registers_to_string)
825 (registers_from_string, register_data): Likewise.
826 * server.c (handle_query, main): Likewise.
827 * server.h (convert_ascii_to_int, convert_int_to_ascii)
828 (decode_M_packet): Likewise.
829 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
830 * target.h (struct target_ops): Update read_memory, write_memory,
832 (read_inferior_memory, write_inferior_memory): Update.
833 * linux-low.h (struct linux_target_ops): Change type of breakpoint
835 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
836 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
837 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
838 linux-s390-low.c, linux-sh-low.c: Update for changes in
839 read_inferior_memory and the_low_target->breakpoint.
841 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
843 * Makefile.in (SFILES): Add linux-ppc64-low.c.
844 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
845 * configure.srv: Add powerpc64-*-linux*.
846 * linux-ppc64-low.c: New file.
848 2005-05-23 Orjan Friberg <orjanf@axis.com>
850 * linux-cris-low.c: New file with support for CRIS.
851 * linux-crisv32-low.c: Ditto for CRISv32.
852 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
853 (clean): Add reg-cris.c and reg-crisv32.c.
854 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
855 reg-crisv32.o, and reg-crisv32.c to make rules.
856 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
859 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
861 * linux-low.c (fetch_register): Ensure buffer size is a multiple
862 of sizeof (PTRACE_XFER_TYPE).
863 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
865 2005-05-12 Orjan Friberg <orjanf@axis.com>
867 * target.h (struct target_ops): Add insert_watchpoint,
868 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
869 pointers for hardware watchpoint support.
870 * linux-low.h (struct linux_target_ops): Ditto.
871 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
872 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
874 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
876 * server.c (main): Recognize 'Z' and 'z' packets.
878 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
880 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
881 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
882 (the_low_target): Add new members.
884 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
886 * proc-service.c (ps_lgetregs): Search all_processes instead of
889 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
891 * server.c (start_inferior): Change return type to int.
892 (attach_inferior): Change sigptr to int *.
893 (handle_v_cont, handle_v_requests): Change signal to int *.
894 (main): Change signal to int.
896 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
898 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
899 * configure.srv: Add m32r*-*-linux*.
900 * linux-m32r-low.c: New file.
902 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
904 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
906 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
908 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
909 Take unsigned long arguments for PIDs.
910 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
911 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
912 (wait_for_sigstop, linux_resume_one_process)
913 (regsets_fetch_inferior_registers, linux_send_signal)
914 (linux_read_auxv): Likewise. Update the types of variables holding
915 PIDs. Update format string specifiers.
916 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
917 * remote-utils.c (prepare_resume_reply): Likewise.
918 * server.c (cont_thread, general_thread, step_thread)
919 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
921 (handle_query): Update format specifiers.
922 (handle_v_cont, main): Use strtoul for thread IDs.
923 * server.h (struct inferior_list_entry): Use unsigned long for ID.
924 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
925 (general_thread, step_thread, thread_from_wait)
926 (old_thread_from_wait): Update.
927 * target.h (struct thread_resume): Use unsigned long for THREAD.
928 (struct target_ops): Use unsigned long for arguments to attach and
931 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
933 * acinclude.m4: Include bfd/bfd.m4 directly.
934 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
935 <agriffis@toolchain.org>.
936 * aclocal.m4, configure: Regenerated.
938 2005-01-07 Andrew Cagney <cagney@gnu.org>
940 * configure.ac: Rename configure.in, require autoconf 2.59.
941 * configure: Re-generate.
943 2004-12-08 Daniel Jacobowitz <dan@debian.org>
945 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
947 * aclocal.m4: Regenerated.
948 * configure: Regenerated.
950 2004-11-21 Andreas Schwab <schwab@suse.de>
952 * linux-m68k-low.c (m68k_num_gregs): Define.
953 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
954 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
955 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
956 (m68k_breakpoint_at): New. Add to the_low_target.
958 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
959 srv_linux_thread_db to yes.
961 2004-10-20 Joel Brobecker <brobecker@gnat.com>
963 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
964 (ARCH_SET_FS): Likewise.
965 (ARCH_GET_FS): Likewise.
966 (ARCH_GET_GS): Likewise.
968 2004-10-16 Daniel Jacobowitz <dan@debian.org>
970 * linux-i386-low.c (ps_get_thread_area): New.
971 * linux-x86-64-low.c (ps_get_thread_area): New.
972 * linux-low.c: Include <sys/syscall.h>.
973 (linux_kill_one_process): Don't kill the first thread here.
974 (linux_kill): Kill the first thread here.
975 (kill_lwp): New function.
976 (send_sigstop, linux_send_signal): Use it.
977 * proc-service.c: Clean up #ifdefs.
978 (fpregset_info): Delete.
979 (ps_lgetregs): Update and enable implementation.
980 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
982 * remote-utils.c (struct sym_cache, symbol_cache): New.
983 (input_interrupt): Print a clearer message.
984 (async_io_enabled): New variable.
985 (enable_async_io, disable_async_io): Use it. Update comments.
986 (look_up_one_symbol): Use the symbol cache.
987 * thread-db.c (thread_db_look_up_symbols): New function.
988 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
990 2004-10-16 Daniel Jacobowitz <dan@debian.org>
992 * configure.in: Test for -rdynamic.
993 * configure: Regenerated.
994 * Makefile (INTERNAL_LDFLAGS): New.
995 (gdbserver, gdbreplay): Use it.
997 2004-09-02 Andrew Cagney <cagney@gnu.org>
999 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
1001 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
1003 * linux-low.c (linux_wait): Clear all_processes list also.
1005 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
1007 * linux-low.c: Include <errno.h>. Remove extern declaration of
1010 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
1012 * gdbreplay.c, server.h, utils.c: Update copyright years.
1014 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
1016 * server.c (main): Print child status or termination signal from
1017 variable 'signal', not 'sig'.
1019 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
1021 * linux-low.c (linux_read_memory): Change return type to
1022 int. Check for and return error from ptrace().
1023 * target.c (read_inferior_memory): Change return type to int. Pass
1024 back return status from the_target->read_memory().
1025 * target.h (struct target_ops): Adapt *read_memory() prototype.
1027 (read_inferior_memory): Adapt prototype.
1028 * server.c (main): Return an error packet if
1029 read_inferior_memory() returns an error.
1031 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
1033 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
1034 Unify with other clean targets.
1036 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
1038 * server.c (handle_v_cont): Call set_desired_inferior.
1040 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
1042 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
1044 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
1046 * linux-low.c (linux_wait): Unblock async I/O.
1047 (linux_resume): Block and enable async I/O.
1048 * remote-utils.c (block_async_io, unblock_async_io): New functions.
1049 * server.h (block_async_io, unblock_async_io): Add prototypes.
1051 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
1053 * remote-utils.c (remote_open): Print a status notice after
1055 * server.c (attach_inferior): Print a status notice after
1058 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
1060 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
1062 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
1064 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
1066 * server.c, target.h: Update copyright years.
1068 2004-02-25 Roland McGrath <roland@redhat.com>
1070 * target.h (struct target_ops): New member `read_auxv'.
1071 * server.c (handle_query): Handle qPart:auxv:read: query using that.
1072 * linux-low.c (linux_read_auxv): New function.
1073 (linux_target_ops): Initialize `read_auxv' member to that.
1075 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1077 Committed by Jim Blandy <jimb@redhat.com>.
1079 * linux-s390-low.c (s390_num_regs): Update.
1080 (s390_regmap): Remove control registers. Use __s390x__ predefine
1081 instead of GPR_SIZE to distiguish s390 and s390x targets.
1083 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
1085 * linux-low.c: Update copyright year.
1086 (check_removed_breakpoint): Clear pending_is_breakpoint.
1087 (linux_set_resume_request, linux_queue_one_thread)
1088 (resume_status_pending_p): New functions.
1089 (linux_continue_one_thread): Use process->resume.
1090 (linux_resume): Only resume threads if there are no pending events.
1091 * linux-low.h (struct process_info): Add resume request
1094 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
1096 * regcache.c (new_register_cache): Clear the allocated register
1097 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1099 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
1101 * linux-low.c (linux_resume): Take a struct thread_resume *
1103 (linux_wait): Update call.
1104 (resume_ptr): New static variable.
1105 (linux_continue_one_thread): Renamed from
1106 linux_continue_one_process. Use resume_ptr.
1107 (linux_resume): Use linux_continue_one_thread.
1108 * server.c (handle_v_cont, handle_v_requests): New functions.
1109 (myresume): New function.
1110 (main): Handle 'v' case.
1111 * target.h (struct thread_resume): New type.
1112 (struct target_ops): Change argument of "resume" to struct
1114 (myresume): Delete macro.
1116 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1118 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
1119 (uninstall): Support DESTDIR.
1121 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
1123 * configure.srv: Add xscale*linux copy of arm*linux entry.
1125 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
1127 * linux-arm-low.c (arm_reinsert_addr): New function.
1128 (the_low_target): Add arm_reinsert_addr.
1130 2003-07-08 Mark Kettenis <kettenis@gnu.org>
1132 * mem-break.c: Remove whitespace at end of file.
1134 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1136 * configure.in: Check whether we need to prototype strerror.
1137 * server.h: Optionally prototype strerror.
1138 * gdbreplay.c (perror_with_name): Use strerror.
1139 * linux-low.c (linux_attach_lwp): Use strerror.
1140 * utils.c (perror_with_name): Use strerror.
1141 * config.in, configure: Regenerated.
1143 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1145 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
1146 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
1148 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
1150 * Makefile.in (SFILES): Update.
1151 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
1152 low-sun3.c: Remove files.
1154 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1156 * linux-low.c: Move comment to linux_thread_alive where it belonged.
1157 (linux_detach_one_process, linux_detach): New functions.
1158 (linux_target_ops): Add linux_detach.
1159 * server.c (main): Handle 'D' packet.
1160 * target.h (struct target_ops): Add "detach" member.
1161 (detach_inferior): Define.
1163 2003-06-13 Mark Kettenis <kettenis@gnu.org>
1165 From Kelley Cook <kelleycook@wideopenwest.com>:
1166 * configure.srv: Accept i[34567]86 variants.
1168 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
1170 * linux-low.c (linux_wait_for_event): Correct comment typos.
1171 (linux_resume_one_process): Call check_removed_breakpoint.
1172 (linux_send_signal): New function.
1173 (linux_target_ops): Add linux_send_signal.
1174 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
1176 * target.h (struct target_ops): Add send_signal.
1178 2003-05-29 Jim Blandy <jimb@redhat.com>
1180 * linux-low.c (usr_store_inferior_registers): Transfer buf in
1181 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
1182 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
1183 away part of the register's value.
1185 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
1187 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
1188 (linux_wait_for_event, linux_init_signals): Likewise.
1190 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
1192 * configure.in: Check for stdlib.h.
1193 * configure: Regenerated.
1194 * config.in: Regenerated.
1196 2003-01-04 Andreas Schwab <schwab@suse.de>
1198 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
1200 2003-01-02 Andrew Cagney <ac131313@redhat.com>
1202 * Makefile.in: Remove obsolete code.
1204 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
1206 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
1207 defined(PT_FPR0_HI).
1209 2002-11-17 Stuart Hughes <seh@zee2.com>
1211 * linux-arm-low.c (arm_num_regs): Increase.
1212 (arm_regmap): Include status register.
1214 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
1216 * linux-low.c (register_addr): Remove incorrect -1 check.
1218 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
1220 * linux-low.c (linux_create_inferior): Call setpgid. Return
1222 (unstopped_p, linux_signal_pid): Remove.
1223 (linux_target_ops): Remove linux_signal_pid.
1224 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
1225 global instead of target method.
1226 * target.h (struct target_ops): Remove signal_pid. Update comment
1227 for create_inferior.
1228 * server.c (signal_pid): New variable.
1229 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
1230 gdbserver. Set the child to be the foreground process group.
1231 (attach_inferior): Set signal_pid.
1233 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1235 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
1237 2002-08-20 Jim Blandy <jimb@redhat.com>
1239 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1242 2002-08-01 Andrew Cagney <cagney@redhat.com>
1244 * Makefile.in: Make chill references obsolete.
1246 2002-07-24 Kevin Buettner <kevinb@redhat.com>
1248 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1249 * configure: Regenerate.
1250 * config.in: Regenerate.
1252 2002-07-09 David O'Brien <obrien@FreeBSD.org>
1254 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1255 (perror_with_name, remote_close, remote_open, expect, play): Static.
1257 2002-07-04 Michal Ludvig <mludvig@suse.cz>
1259 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
1260 byte offsets instead of an array of indexes.
1261 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
1263 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1265 * regcache.c: Add comment.
1267 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
1269 * thread-db.c: New file.
1270 * proc-service.c: New file.
1271 * acinclude.m4: New file.
1272 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
1273 proc-service.o, and thread-db.o.
1274 (linux-low.o): Add USE_THREAD_DB.
1275 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
1276 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
1277 * aclocal.m4: Regenerated.
1278 * config.in: Regenerated.
1279 * configure: Regenerated.
1280 * configure.in: Check for proc_service.h, sys/procfs.h,
1281 thread_db.h, and linux/elf.h headrs.
1282 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
1283 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
1284 Check for -lthread_db and thread support.
1285 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
1286 PowerPC, and SuperH.
1287 * i387-fp.c: Constify arguments.
1288 * i387-fp.h: Likewise.
1289 * inferiors.c: (struct thread_info): Renamed from
1290 `struct inferior_info'. Remove PID member. Use generic inferior
1291 list header. All uses updated.
1292 (inferiors, signal_pid): Removed.
1293 (all_threads): New variable.
1294 (get_thread): Define.
1295 (add_inferior_to_list): New function.
1296 (for_each_inferior): New function.
1297 (change_inferior_id): New function.
1298 (add_inferior): Removed.
1299 (remove_inferior): New function.
1300 (add_thread): New function.
1301 (free_one_thread): New function.
1302 (remove_thread): New function.
1303 (clear_inferiors): Use for_each_inferior and free_one_thread.
1304 (find_inferior): New function.
1305 (find_inferior_id): New function.
1306 (inferior_target_data): Update argument type.
1307 (set_inferior_target_data): Likewise.
1308 (inferior_regcache_data): Likewise.
1309 (set_inferior_regcache_data): Likewise.
1310 * linux-low.c (linux_bp_reinsert): Remove.
1311 (all_processes, stopping_threads, using_thrads)
1312 (struct pending_signals, debug_threads, pid_of): New.
1313 (inferior_pid): Replace with macro.
1314 (struct inferior_linux_data): Remove.
1315 (get_stop_pc, add_process): New functions.
1316 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
1317 Use add_process and add_thread.
1318 (linux_attach_lwp): New function, based on old linux_attach. Use
1319 add_process and add_thread. Set stop_expected for new threads.
1320 (linux_attach): New function.
1321 (linux_kill_one_process): New function.
1322 (linux_kill): Kill all LWPs.
1323 (linux_thread_alive): Use find_inferior_id.
1324 (check_removed_breakpoints, status_pending_p): New functions.
1325 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
1326 Update. Use WNOHANG. Wait for cloned processes also. Update process
1327 struct for the found process.
1328 (linux_wait_for_event): New function.
1329 (linux_wait): Use it. Support LWPs.
1330 (send_sigstop, wait_for_sigstop, stop_all_processes)
1331 (linux_resume_one_process, linux_continue_one_process): New functions.
1332 (linux_resume): Support LWPs.
1333 (REGISTER_RAW_SIZE): Remove.
1334 (fetch_register): Use register_size instead. Call supply_register.
1335 (usr_store_inferior_registers): Likewise. Call collect_register.
1337 (regsets_fetch_inferior_registers): Improve error message.
1338 (regsets_store_inferior_registers): Add debugging.
1339 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
1340 (unstopped_p, linux_signal_pid): New functions.
1341 (linux_target_ops): Add linux_signal_pid.
1342 (linux_init_signals): New function.
1343 (initialize_low): Call it. Initialize using_threads.
1344 * regcache.c (inferior_regcache_data): Add valid
1346 (get_regcache): Fetch registers lazily. Add fetch argument
1347 and update all callers.
1348 (regcache_invalidate_one, regcache_invalidate): New
1350 (new_register_cache): Renamed from create_register_cache.
1351 Return the new regcache.
1352 (free_register_cache): Change argument to a void *.
1353 (registers_to_string, registers_from_string): Call get_regcache
1354 with fetch flag set.
1355 (register_data): Make static. Pass fetch flag to get_regcache.
1356 (supply_register): Call get_regcache with fetch flag clear.
1357 (collect_register): Call get_regcache with fetch flag set.
1358 (collect_register_as_string): New function.
1359 * regcache.h: Update.
1360 * remote-utils.c (putpkt): Flush after debug output and use
1362 Handle input interrupts while waiting for an ACK.
1363 (input_interrupt): Use signal_pid method.
1364 (getpkt): Flush after debug output and use stderr.
1365 (outreg): Use collect_register_as_string.
1366 (new_thread_notify, dead_thread_notify): New functions.
1367 (prepare_resume_reply): Check using_threads. Set thread_from_wait
1369 (look_up_one_symbol): Flush after debug output.
1370 * server.c (step_thread, server_waiting): New variables.
1371 (start_inferior): Don't use signal_pid. Update call to mywait.
1372 (attach_inferior): Update call to mywait.
1373 (handle_query): Handle qfThreadInfo and qsThreadInfo.
1374 (main): Don't fetch/store registers explicitly. Use
1375 set_desired_inferior. Support proposed ``Hs'' packet. Update
1378 (struct inferior_list, struct_inferior_list_entry): New.
1379 * target.c (set_desired_inferior): New.
1380 (write_inferior_memory): Constify.
1381 (mywait): New function.
1383 (struct target_ops): New signal_pid method.
1384 (mywait): Removed macro, added prototype.
1386 * linux-low.h (regset_func): Removed.
1387 (regset_fill_func, regset_store_func): New.
1388 (enum regset_type): New.
1389 (struct regset_info): Add type field. Use new operation types.
1390 (struct linux_target_ops): stop_pc renamed to get_pc.
1391 Add decr_pc_after_break and breakpoint_at.
1392 (get_process, get_thread_proess, get_process_thread)
1393 (strut process_info, all_processes, linux_attach_lwp)
1394 (thread_db_init): New.
1396 * linux-arm-low.c (arm_get_pc, arm_set_pc,
1397 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
1398 (the_low_target): Add new members.
1399 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
1400 (i386_store_fpxregset): Constify.
1401 (target_regsets): Add new kind identifier.
1402 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
1403 (i386_set_pc): Add debugging.
1404 (i386_breakpoint_at): New function.
1405 (the_low_target): Add new members.
1406 * linux-mips-low.c (mips_get_pc, mips_set_pc)
1407 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
1408 (mips_breakpoint_at): New.
1409 (the_low_target): Add new members.
1410 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
1411 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
1412 (the_low_target): Add new members.
1413 * linux-sh-low.c (sh_get_pc, sh_set_pc)
1414 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
1415 (the_low_target): Add new members.
1416 * linux-x86-64-low.c (target_regsets): Add new kind
1419 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
1421 From Martin Pool <mbp@samba.org>:
1422 * server.c (gdbserver_usage): New function.
1425 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
1427 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
1430 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1432 * Makefile.in: Remove obsolete code.
1434 2002-04-24 Michal Ludvig <mludvig@suse.cz>
1436 * linux-low.c (regsets_fetch_inferior_registers),
1437 (regsets_store_inferior_registers): Removed cast to int from
1439 * regcache.h: Added declaration of struct inferior_info.
1441 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1443 * inferiors.c (struct inferior_info): Add regcache_data.
1444 (add_inferior): Call create_register_cache.
1445 (clear_inferiors): Call free_register_cache.
1446 (inferior_regcache_data, set_inferior_regcache_data): New functions.
1447 * regcache.c (struct inferior_regcache_data): New.
1448 (registers): Remove.
1449 (get_regcache): New function.
1450 (create_register_cache, free_register_cache): New functions.
1451 (set_register_cache): Don't initialize the register cache here.
1452 (registers_to_string, registers_from_string, register_data): Call
1454 * regcache.h: Add prototypes.
1455 * server.h: Likewise.
1457 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1459 * mem-break.c: New file.
1460 * mem-break.h: New file.
1461 * Makefile.in: Add mem-break.o rule; update server.h
1463 * inferiors.c (struct inferior_info): Add target_data
1465 (clear_inferiors): Free target_data member if set.
1466 (inferior_target_data, set_inferior_target_data): New functions.
1467 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
1468 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
1469 * linux-low.c (linux_bp_reinsert): New variable.
1470 (struct inferior_linux_data): New.
1471 (linux_create_inferior): Use set_inferior_target_data.
1472 (linux_attach): Likewise. Call add_inferior.
1473 (linux_wait_for_one_inferior): New function.
1474 (linux_wait): Call it.
1475 (linux_write_memory): Add const.
1476 (initialize_low): Call set_breakpoint_data.
1477 * linux-low.h (struct linux_target_ops): Add breakpoint
1479 * server.c (attach_inferior): Remove extra add_inferior
1481 * server.h: Include mem-break.h. Update inferior.c
1483 * target.c (read_inferior_memory)
1484 (write_inferior_memory): New functions.
1485 * target.h (read_inferior_memory)
1486 (write_inferior_memory): Change macros to prototypes.
1487 (struct target_ops): Update comments. Add const to write_memory
1490 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
1492 * linux-low.c (usr_store_inferior_registers): Support
1493 registers which are allowed to fail to store.
1494 * linux-low.h (linux_target_ops): Likewise.
1495 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
1496 (ppc_cannot_store_register): FPSCR may not be storable.
1498 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1500 * server.h: Include <string.h> if HAVE_STRING_H.
1501 * ChangeLog: Correct paths in last ChangeLog entry.
1503 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1505 * linux-low.h: Remove obsolete prototypes.
1506 (struct linux_target_ops): New.
1507 (extern the_low_target): New.
1508 * linux-low.c (num_regs, regmap): Remove declarations.
1509 (register_addr): Use the_low_target explicitly.
1510 (fetch_register): Likewise.
1511 (usr_fetch_inferior_registers): Likewise.
1512 (usr_store_inferior_registers): Likewise.
1513 * linux-arm-low.c (num_regs): Remove.
1514 (arm_num_regs): Define.
1515 (arm_regmap): Renamed from regmap, made static.
1516 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1518 (arm_cannot_store_register): Renamed from cannot_store_register,
1520 (the_low_target): New.
1521 * linux-i386-low.c (num_regs): Remove.
1522 (i386_num_regs): Define.
1523 (i386_regmap): Renamed from regmap, made static.
1524 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1526 (i386_cannot_store_register): Renamed from cannot_store_register,
1528 (the_low_target): New.
1529 * linux-ia64-low.c (num_regs): Remove.
1530 (ia64_num_regs): Define.
1531 (ia64_regmap): Renamed from regmap, made static.
1532 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1534 (ia64_cannot_store_register): Renamed from cannot_store_register,
1536 (the_low_target): New.
1537 * linux-m68k-low.c (num_regs): Remove.
1538 (m68k_num_regs): Define.
1539 (m68k_regmap): Renamed from regmap, made static.
1540 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1542 (m68k_cannot_store_register): Renamed from cannot_store_register,
1544 (the_low_target): New.
1545 * linux-mips-low.c (num_regs): Remove.
1546 (mips_num_regs): Define.
1547 (mips_regmap): Renamed from regmap, made static.
1548 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1550 (mips_cannot_store_register): Renamed from cannot_store_register,
1552 (the_low_target): New.
1553 * linux-ppc-low.c (num_regs): Remove.
1554 (ppc_num_regs): Define.
1555 (ppc_regmap): Renamed from regmap, made static.
1556 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1558 (ppc_cannot_store_register): Renamed from cannot_store_register,
1560 (the_low_target): New.
1561 * linux-s390-low.c (num_regs): Remove.
1562 (s390_num_regs): Define.
1563 (s390_regmap): Renamed from regmap, made static.
1564 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1566 (s390_cannot_store_register): Renamed from cannot_store_register,
1568 (the_low_target): New.
1569 * linux-sh-low.c (num_regs): Remove.
1570 (sh_num_regs): Define.
1571 (sh_regmap): Renamed from regmap, made static.
1572 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1574 (sh_cannot_store_register): Renamed from cannot_store_register,
1576 (the_low_target): New.
1577 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1578 (the_low_target): New.
1580 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1582 * Makefile.in: Add stamp-h target.
1583 * configure.in: Create stamp-h.
1584 * configure: Regenerated.
1586 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1588 * inferiors.c: New file.
1589 * target.c: New file.
1590 * target.h: New file.
1591 * Makefile.in: Add target.o and inferiors.o. Update
1593 * linux-low.c (inferior_pid): New static variable,
1594 moved from server.c.
1595 (linux_create_inferior): Renamed from create_inferior.
1596 Call add_inferior. Return 0 on success instead of a PID.
1597 (linux_attach): Renamed from myattach.
1598 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1599 (linux_thread_alive): Renamed from mythread_alive.
1600 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1602 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1603 (regsets_store_inferior_registers): Correct error message.
1604 Add missing ``return 0''.
1605 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1606 (linux_store_registers): Renamed from store_inferior_registers.
1607 (linux_read_memory): Renamed from read_inferior_memory.
1608 (linux_write_memory): Renamed from write_inferior_memory.
1609 (linux_target_ops): New structure.
1610 (initialize_low): Call set_target_ops ().
1611 * remote-utils.c (unhexify): New function.
1612 (hexify): New function.
1613 (input_interrupt): Send signals to ``signal_pid''.
1614 * server.c (inferior_pid): Remove.
1615 (start_inferior): Update create_inferior call.
1616 (attach_inferior): Call add_inferior.
1617 (handle_query): New function.
1618 (main): Call handle_query for `q' packets.
1619 * server.h: Include "target.h". Remove obsolete prototypes.
1620 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1622 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1624 * Makefile.in: Add WARN_CFLAGS. Update configury
1626 * configure.in: Check for <string.h>
1627 * configure: Regenerate.
1628 * config.in: Regenerate.
1629 * gdbreplay.c: Include needed system headers.
1630 (remote_open): Remove strchr prototype.
1631 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1632 * regcache.c (supply_register): Change buf argument to const void *.
1633 (supply_register_by_name): Likewise.
1634 (collect_register): Change buf argument to void *.
1635 (collect_register_by_name): Likewise.
1636 * regcache.h: Add missing prototypes.
1637 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1638 * server.c (handle_query): New function.
1639 (attached): New static variable, moved out of main.
1640 (main): Quiet longjmp clobber warnings.
1641 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1642 * utils.c (error): Remove NORETURN.