2 Pedro Alves <pedro_alves@portugalmail.pt>
4 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
6 (child_add_thread): Minor cleanup.
7 (child_continue): Resume artificially suspended threads before
8 calling ContinueDebugEvent.
9 (suspend_one_thread): New.
10 (fake_breakpoint_event): New.
11 (get_child_debug_event): Change return type to int. Check here if
12 gdb sent an interrupt request. If a soft interrupt was requested,
13 fake a breakpoint event. Return 0 if there is no event to handle,
15 (win32_wait): Don't check here if gdb sent an interrupt request.
16 Ensure there is a valid event to handle.
17 (win32_request_interrupt): Add soft interruption method as last
21 Pedro Alves <pedro_alves@portugalmail.pt>
23 * win32-low.h (win32_thread_info): Add descriptions to the
24 structure members. Replace `suspend_count' counter by a
26 * win32-low.c (thread_rec): Update condition of when to get the
27 context from the inferior. Rely on ContextFlags being set if it
28 has already been retrieved. Only suspend the inferior thread if
29 we haven't already. Warn if that fails.
30 (continue_one_thread): s/suspend_count/suspended/. Only call
31 ResumeThread once. Warn if that fails.
33 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
35 * win32-low.c (win32_wait): Don't read from the inferior when it
38 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
40 * Makefile.in (win32_low_h): New variable.
41 (win32-low.o): Add dependency on $(win32_low_h).
42 (win32-arm-low.o, win32-i386-low.o): New rules.
44 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
46 * hostio.c: Correct copyright year.
48 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
50 * Makefile.in (OBS): Add hostio.o.
52 * server.h (handle_vFile): Declare.
54 * server.c (handle_v_requests): Take packet_len and new_packet_len
55 for binary packets. Call handle_vFile.
56 (main): Update call to handle_v_requests.
58 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
60 * linux-low.c: Include <sched.h>.
62 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
64 * linux-low.c (linux_tracefork_grandchild): New.
65 (linux_tracefork_child): Use clone.
66 (linux_test_for_tracefork): Use clone; allocate and free a stack.
68 2007-10-31 Joel Brobecker <brobecker@adacore.com>
70 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
72 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
74 * linux-low.c (handle_extended_wait): Handle unexpected signals.
76 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
78 * inferiors.c (change_inferior_id): Delete.
79 (add_pid_to_list, pull_pid_from_list): New.
80 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
81 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
82 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
83 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
84 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
85 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
86 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
87 (using_threads): Always set to 1.
88 (handle_extended_wait): New.
89 (add_process): Do not set TID.
90 (linux_create_inferior): Set must_set_ptrace_flags.
91 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
92 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
93 (linux_thread_alive): Rename TID argument to LWPID.
94 (linux_wait_for_process): Handle unknown processes. Do not use TID.
95 (linux_wait_for_event): Do not use TID or check using_threads. Update
96 call to dead_thread_notify. Call handle_extended_wait.
97 (linux_create_inferior): Use PTRACE_SETOPTIONS.
98 (send_sigstop): Delete sigstop_sent.
99 (wait_for_sigstop): Avoid TID.
100 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
101 (linux_test_for_tracefork): New.
102 (linux_lookup_signals): Use thread_db_active and
103 linux_supports_tracefork_flag.
104 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
105 * linux-low.h (get_process_thread): Avoid TID.
106 (struct process_ifo): Move thread_known and tid to the end. Remove
108 (linux_attach_lwp, thread_db_init): Update prototypes.
109 * server.h (change_inferior_id): Delete prototype.
110 (add_pid_to_list, pull_pid_from_list): New prototypes.
111 * thread-db.c (thread_db_use_events): New.
112 (find_first_thread): Rename to...
113 (find_one_thread): ...this. Update callers and messages. Do not
114 call fatal. Check thread_db_use_events. Do not call
115 change_inferior_id or new_thread_notify.
116 (maybe_attach_thread): Update. Do not call new_thread_notify.
117 (thread_db_init): Set thread_db_use_events. Check use_events.
118 * utils.c (fatal, warning): Correct message prefix.
120 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
122 * Makefile.in (clean): Remove new files.
123 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
124 (powerpc-64.o, powerpc-64.c): New rules.
125 * configure.srv: Use alternate register sets for powerpc64-*-linux*
126 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
128 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
130 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
131 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
132 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
133 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
134 (target_regsets): Add AltiVec and SPE register sets.
135 * configure.ac: Check for AltiVec and SPE.
136 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
137 (ppc_fill_vrregset, ppc_store_vrregset): New.
138 (target_regsets): Add AltiVec register set.
139 * configure: Regenerated.
141 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
143 * linux-low.c (O_LARGEFILE): Define.
144 (linux_read_memory): Use /proc/PID/mem.
145 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
146 * configure, config.in: Regenerated.
148 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
150 * linux-low.c (linux_wait_for_event): Do not pass signals while
153 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
155 * win32-low.c (create_process): New.
156 (win32_create_inferior): Use create_process instead of
157 CreateProcess. If create_process failed retry appending an ".exe"
158 suffix. Store the GetLastError result immediatelly after
159 create_process calls and use it on the call to error.
161 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
163 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
165 2007-08-23 Joel Brobecker <brobecker@adacore.com>
167 * configure.ac: Switch license to GPLv3.
169 2007-08-01 Michael Snyder <msnyder@access-company.com>
171 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
173 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
175 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
177 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
178 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
179 CloseToolhelp32Snapshot.
180 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
181 CloseToolhelp32Snapshot.
183 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
185 * server.c (main): Check for inferior exit before main loop.
187 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
189 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
190 instead of on tmp_desc.
192 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
193 Daniel Jacobowitz <dan@codesourcery.com>
195 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
196 (add_thread): Minor cleanups.
197 (clear_inferiors): Move lower in the file. Clear the DLL
199 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
200 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
201 (xml_escape_text): New.
202 * server.c (handle_query): Handle qXfer:libraries:read. Report it
204 (handle_v_cont): Report errors.
205 (gdbserver_version): Update.
206 (main): Correct size of own_buf. Do not report initial DLL events.
207 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
208 (unloaded_dll, xml_escape_text): New.
209 * win32-low.c (enum target_waitkind): Update comments.
210 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
211 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
212 (win32_EnumProcessModules, win32_GetModuleInformation)
213 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
214 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
215 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
216 (win32_Module32First, win32_Module32Next, load_toolhelp)
217 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
218 (get_child_debug_event): Handle DLL events.
219 (win32_wait): Likewise.
221 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
223 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
224 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
226 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
228 * win32-low.c (handle_output_debug_string): Ignore event if not
231 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
233 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
235 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
237 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
239 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
241 * inferiors.c (change_inferior_id): Add comment.
242 * linux-low.c (check_removed_breakpoint): Add an early
243 prototype. Improve debug output.
244 (linux_attach): Doc update.
245 (linux_detach_one_process, linux_detach): Clean up before releasing
247 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
248 * linux-low.h (struct process_info): Doc improvement.
249 * mem-break.c (delete_all_breakpoints): New.
250 * mem-break.h (delete_all_breakpoints): New prototype.
251 * thread-db.c (find_first_thread): New.
252 (thread_db_create_event): Call it instead of
253 thread_db_find_new_threads. Clean up unused variables.
254 (maybe_attach_thread): Remove first thread handling.
255 (thread_db_find_new_threads): Use find_first_thread.
256 (thread_db_get_tls_address): Likewise.
258 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
260 * thread-db.c (thread_db_find_new_threads): Add prototype.
261 (thread_db_create_event): Check for the main thread before adding
263 (maybe_attach_thread): Only enable event reporting if TID == 0.
264 (thread_db_get_tls_address): Check for new threads.
266 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
268 * linux-low.c (linux_create_inferior): Try execv before execvp.
269 * spu-low.c (spu_create_inferior): Likewise.
271 2007-06-13 Mike Frysinger <vapier@gentoo.org>
273 * linux-low.c (linux_create_inferior): Change execv to execvp.
274 * spu-low.c (spu_create_inferior): Likewies.
276 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
278 * Makefile.in (clean): Clean new files instead of deleted ones.
279 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
280 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
282 * configure.srv: Specify XML files and new regformats for MIPS and
284 * linux-mips-low.c (mips_num_regs): Set to only used registers.
285 (mips_regmap): Do not fetch $0. Remove unused registers. Add
286 an entry for the restart register.
287 (mips_cannot_fetch_register, mips_cannot_store_register)
288 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
289 register names to match the XML descriptions.
290 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
291 restart register instead of $0.
293 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
294 Markus Deuling <deuling@de.ibm.com>
296 * remote-utils.c (decode_xfer_write): New function.
297 * server.h (decode_xfer_write): Add prototype.
298 * server.c (handle_query): Add PACKET_LEN argument. Support
299 qXfer:spu:read and qXfer:spu:write packets.
300 (main): Pass packet_len to handle_query.
301 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
302 * target.h (target_ops): Add qxfer_spu.
304 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
306 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
307 accessing non-seekable spufs files.
309 2007-05-16 Markus Deuling <deuling@de.ibm.com>
311 * server.c (handle_query): Add reply for qC packet.
313 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
314 Leo Zayas <lerele@champenstudios@com>
316 * server.h (check_remote_input_interrupt_request): New function.
317 * remote_utils.c (INVALID_DESCRIPTOR): New define.
318 (remote_desc): Initialize with INVALID_DESCRIPTOR.
319 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
320 (check_remote_input_interrupt_request): New function.
321 * server.h (check_remote_input_interrupt_request): Declare.
322 * win32-low.c (winapi_DebugBreakProcess,
323 winapi_GenerateConsoleCtrlEvent): New typedefs.
324 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
326 (win32_wait): Check for remote interrupt request
327 with check_remote_input_interrupt_request.
328 (win32_request_interrupt): New function.
329 (win32_target_op): Set request_interrupt to win32_request_interrupt.
331 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
333 * win32-low.c (debug_registers_changed,
334 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
335 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
336 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
337 (thread_rec): Get context using the low target.
338 (child_add_thread): Call thread_added on the low target,
339 which does the same thing.
341 (do_initial_child_stuff): Remove debug registers references.
342 Set context using the low target. Resume threads after
343 setting the contexts.
344 (child_continue): Remove dead variable. Remove debug
345 registers references.
346 (child_fetch_inferior_registers): Go through the low target.
347 (do_child_store_inferior_registers): Remove.
348 (child_store_inferior_registers): Go through the low target.
349 (win32_resume): Remove debug registers references.
350 Set context using the low target.
351 (handle_exception): Change return type to void. Don't record
352 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
353 first chance exception.
354 (get_child_debug_event): Change return type to void. Remove
355 goto loop. Always return after waiting for debug event.
356 (win32_wait): Convert to switch statement. Handle spurious
359 * win32-i386-low.c (debug_registers_changed,
360 debug_registers_used): New.
361 (initial_stuff): Rename to ...
362 (i386_initial_stuff): ... this. Clear debug registers
364 (store_debug_registers): Delete.
365 (i386_get_thread_context): New.
366 (load_debug_registers): Delete.
367 (i386_set_thread_context): New.
368 (i386_thread_added): New.
369 (single_step): Rename to ...
370 (i386_single_step): ... this.
371 (do_fetch_inferior_registers): Rename to ...
372 (i386_fetch_inferior_register): ... this.
373 (i386_store_inferior_register): New.
374 (the_low_target): Adapt to new interface.
376 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
377 (arm_get_thread_context): New.
378 (arm_set_thread_context): New.
380 (do_fetch_inferior_registers): Rename to ...
381 (arm_fetch_inferior_register): ... this.
382 (arm_store_inferior_register): New.
383 (arm_wince_breakpoint): Reimplement as unsigned long.
384 (arm_wince_breakpoint_len): Define.
385 (the_low_target): Adapt to new interface.
387 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
388 load_debug_registers. Add get_thread_context, set_thread_context,
389 thread_added and store_inferior_register. Rename
390 fetch_inferior_registers to fetch_inferior_register.
391 (regptr): Remove declaration.
393 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
395 * linux-low.c (linux_detach): Change return type to int. Return 0.
396 * spu-low.c (spu_detach): Likewise.
398 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
400 * target.h (target_ops): Change return type of detach to int.
402 (join_inferior): New.
403 * server.c (main): Don't skip detach support on mingw32.
404 If the inferior doesn't support detaching return error.
405 Call join_inferior instead of using waitpid.
406 * linux-low.c (linux_join): New.
407 (linux_target_op): Add linux_join.
408 * spu-low.c (spu_join): New.
409 (spu_target_ops): Add spu_join.
410 * win32-low.c (win32_detach): Adapt to new interface.
411 Reopen current_process_handle before detaching. Issue a child
412 resume before detaching.
414 (win32_target_op): Add win32_join.
416 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
418 * win32-low.c (win32-attach): Fix return value.
419 * target.h (target_ops): Describe ATTACH return values.
421 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
423 * win32-low.c (GETPROCADDRESS): Define.
424 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
425 (winapi_DebugSetProcessKillOnExit): Likewise.
426 (win32_create_inferior): Force usage of ansi CreateProcessA.
427 (win32_attach): Use GETPROCADDRESS.
428 (win32_detach): Likewise.
430 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
432 * win32-low.c (win32_wait): Don't use WSTOPSIG.
434 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
436 * win32-low.c: Commit leftover changes from 2007-03-29.
438 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
440 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
441 fields short instead of int. Add explicit padding.
442 (i387_cache_to_fsave): Remove unnecessary casts.
443 (i387_fsave_to_cache): Doc fix.
444 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
446 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
448 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
449 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
451 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
453 * configure.srv (arm*-*-mingw32ce*): Move near the other
456 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
458 * configure.ac: Add errno checking.
459 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
460 sys/file.h and malloc.h.
461 (AC_CHECK_DECLS): Add perror.
462 (srv_mingwce): Handle.
463 * configure.srv (i[34567]86-*-cygwin*): Add
464 win32-i386-low.o to srv_tgtobj.
465 (i[34567]86-*-mingw*): Likewise.
466 (arm*-*-mingw32ce*): Add case.
467 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
468 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
469 [__MINGW32CE__] (strerror): New function.
470 [__MINGW32CE__] (errno): Define to GetLastError.
471 [__MINGW32CE__] (COUNTOF): New macro.
472 (remote_open): Remove extra close call.
473 * mem-break.c (delete_breakpoint_at): New function.
474 * mem-break.h (delete_breakpoint_at): Declare.
475 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
476 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
477 [USE_WIN32API] (read, write): Add char* casts.
478 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
479 * server.h: Include wincecompat.h on Windows CE.
480 [HAVE_ERRNO_H]: Check.
481 (perror): Declare if not declared.
482 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
483 (perror_with_name): Remove errno declaration.
484 * wincecompat.h: New.
485 * wincecompat.c: New.
487 * win32-arm-low.c: New.
488 * win32-i386-low.c: New.
489 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
490 (OUTMSG2): Make it safe.
492 (COUNTOF): New macro.
493 (NUM_REGS): Get it from the low target.
494 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
495 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
496 (thread_rec): Let low target handle debug registers.
497 (child_add_thread): Likewise.
498 (child_init_thread_list): Likewise.
499 (continue_one_thread): Likewise.
501 (do_child_fetch_inferior_registers): Move to ...
502 * win32-i386-low.c: ... here, and rename to ...
503 (do_fetch_inferior_registers): ... this.
504 * win32-low.c (child_fetch_inferior_registers):
505 Go through the low target.
506 (do_child_store_inferior_registers): Use regptr.
507 (strwinerror): New function.
508 (win32_create_inferior): Handle Windows CE.
509 Use strwinerror instead of strerror on Windows error
510 codes. Add program to the error output.
511 Don't close the main thread handle on Windows CE.
512 (win32_attach): Use coredll.dll on Windows CE.
513 (win32_kill): Close current process and current
515 (win32_detach): Use coredll.dll on Windows CE.
516 (win32_resume): Let low target handle debug registers, and
518 (handle_exception): Add/Remove initial breakpoint. Avoid
519 non-existant WSTOPSIG on Windows CE.
520 (win32_read_inferior_memory): Cast to remove warning.
521 (win32_arch_string): Go through the low target.
522 (initialize_low): Call set_breakpoint_data with the low
524 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
525 FOP_REGNUM, mappings): Move to ...
526 * win32-i386-low.c: ... here.
527 * win32-low.c (win32_thread_info): Move to ...
528 * win32-low.h: ... here.
529 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
530 win32-arm-low.c and wincecompat.c.
532 (install-only:): Likewise.
533 (gdbserver:): Likewise.
534 (gdbreplay:): Likewise.
535 * config.in: Regenerate.
536 * configure: Regenerate.
538 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
540 * win32-low.c: Rename typedef thread_info to
541 win32_thread_info throughout.
543 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
545 * win32-i386-low.c: Rename to ...
546 * win32-low.c: ... this.
547 * configure.srv: Replace win32-i386-low.o with win32-low.o.
548 * Makefile.in: Likewise.
550 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
552 * remote-utils.c (monitor_output): Constify msg parameter.
553 * server.h (monitor_output): Likewise.
554 * win32-i386-low.c (handle_output_debug_string): New.
555 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
556 handle_output_debug_string.
557 (get_child_debug_event): Likewise.
559 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
561 * server.c (main): Correct strtoul check.
563 2007-03-27 Jon Ringle <jon@ringle.org>
565 * linux-low.c: Check __ARCH_HAS_MMU__ also.
567 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
569 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
571 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
573 * terminal.h: Check HAVE_SGTTY_H.
575 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
577 * remote-utils.c (remote_open): Print out the assigned port number.
579 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
581 * remote-utils.c (monitor_output): New function.
582 * server.c (debug_threads): Define here.
583 (monitor_show_help): New function.
584 (handle_query): Handle qRcmd.
585 (main): Do not handle 'd' packet.
586 * server.h (debug_threads, remote_debug, monitor_output): Declare.
587 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
590 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
592 * Makefile.in (EXEEXT): New.
593 (clean): Use $(EXEEXT).
595 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
597 * target.h (target_ops): Rename send_signal to request_interrupt,
598 and remove enum target_signal parameter.
599 * linux-low.c (linux_request_interrupt): Rename from
600 linux_send_signal, and always send SIGINT.
601 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
602 and always send SIGINT.
603 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
605 (input_interrupt): Likewise.
607 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
609 * server.c (get_features_xml): Check if target implemented
611 * win32-i386-low.c (win32_arch_string): New.
612 (win32_target_ops): Add win32_arch_string as arch_string member.
614 2007-02-22 Markus Deuling <deuling@de.ibm.com>
616 * spu-low.c (spu_arch_string): New.
617 (spu_target_ops): Add spu_arch_string.
619 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
621 * remote-utils.c: Remove HAVE_TERMINAL_H check.
622 * configure.ac: Do not check for terminal.h.
623 * configure, config.in: Regenerated.
625 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
627 * Makefile.in (OBS): Add $(XML_BUILTIN).
628 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
630 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
631 (arm-with-iwmmxt.c): New.
632 * config.in, configure: Regenerate.
633 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
634 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
635 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
636 (arm*-*-linux*): Add iWMMXt and regset support.
637 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
638 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
639 (arm_store_wmmxregset, target_regsets): New.
640 * server.c (get_features_xml): Take annex argument. Check builtin
642 (handle_query): Handle multiple annexes.
644 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
646 * remote-utils.c [USE_WIN32API] (read, write): Define.
647 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
650 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
652 * linux-i386-low.c (the_low_target): Set arch_string.
653 * linux-x86-64-low.c (the_low_target): Likewise.
654 * linux-low.c (linux_arch_string): New.
655 (linux_target_ops): Add it.
656 * linux-low.h (struct linux_target_ops): Add arch_string.
657 * server.c (write_qxfer_response): Use const void * for DATA.
658 (get_features_xml): New.
659 (handle_query): Handle qXfer:features:read. Report it for qSupported.
660 * target.h (struct target_ops): Add arch_string method.
662 2007-01-03 Denis Pilat <denis.pilat@st.com>
663 Daniel Jacobowitz <dan@codesourcery.com>
665 * linux-low.c (linux_kill): Handle being called with no threads.
666 * win32-i386-low.c (win32_kill): Likewise.
667 (get_child_debug_event): Clear current_process_handle.
669 2006-12-30 Denis PILAT <denis.pilat@st.com>
670 Daniel Jacobowitz <dan@codesourcery.com>
672 * remote-utils.c (remote_open): Check the type of specified
673 serial port devices before opening them.
674 * server.c (main): Kill the inferior if an error occurs during
675 the first remote_open.
677 2006-12-05 Markus Deuling <deuling@de.ibm.com>
679 * README: Update supported targets.
681 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
683 * Makefile.in (clean): Remove reg-mips64.c.
684 (reg-mips64.c, reg-mips64.o): New rules.
685 * configure.srv: Handle mips64. Include regset support for mips.
686 * linux-mips-low.c (union mips_register): New.
687 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
688 (mips_breakpoint, mips_breakpoint_at): Use int.
689 (mips_collect_register, mips_supply_register)
690 (mips_collect_register_32bit, mips_supply_register_32bit)
691 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
692 (mips_store_fpregset, target_regsets): New.
693 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
695 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
697 * configure.srv: Add target "spu*-*-*".
698 * Makefile.in (clean): Remove reg-spu.c.
699 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
700 * spu-low.c: New file.
702 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
704 * configure.ac: Correct td_thr_tls_get_addr test.
705 * configure: Regenerated.
707 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
709 * linux-low.c (linux_wait_for_event): Reformat. Use the
711 * remote-utils.c (decode_address_to_semicolon): New.
712 * server.c (pass_signals, handle_general_set): New.
713 (handle_query): Mention QPassSignals for qSupported.
714 (main): Call handle_general_set.
715 * server.h (pass_signals, decode_address_to_semicolon): New.
717 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
719 * server.c (handle_query): Correct error handling for read_auxv.
721 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
723 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
724 and srv_linux_thread_db to yes.
725 * linux-s390-low.c (s390_fill_gregset): New function.
726 (target_regsets): Define data structure.
728 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
730 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
731 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
732 * config.in, configure: Regenerated.
733 * inferiors.c (gdb_id_to_thread): New function.
734 (gdb_id_to_thread_id): Use it.
735 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
736 * linux-low.h (struct process_info): Add th member.
737 (thread_db_get_tls_address): New prototype.
738 * remote-utils.c (decode_address): Make non-static.
739 * server.c (handle_query): Handle qGetTLSAddr.
740 * server.h (gdb_id_to_thread, decode_address): New prototypes.
741 * target.h (struct target_ops): Add get_tls_address.
742 * thread-db.c (maybe_attach_thread): Save the thread handle.
743 (thread_db_get_tls_address): New.
745 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
747 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
748 (linux_resume_one_process): Take a siginfo_t *. Update all
749 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
750 (struct pending_signals): Add a siginfo_t.
751 (linux_wait_for_process): Always set last_status.
752 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
753 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
754 * linux-low.h (struct process_info): Add last_status.
756 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
758 * remote-utils.c (try_rle): New function.
759 (putpkt_binary): Use it.
761 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
763 * Makefile.in (clean): Clean reg-x86-64-linux.c.
764 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
765 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
766 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
767 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
770 2006-08-08 Richard Sandiford <richard@codesourcery.com>
772 * server.c (terminal_fd): New variable.
773 (old_foreground_pgrp): Likewise.
774 (restore_old_foreground_pgrp): New function.
775 (start_inferior): Record the terminal file descriptor in terminal_fd
776 and its original foreground group in old_foreground_pgrp. Register
777 restore_old_foreground_pgrp with atexit().
779 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
781 * server.c (handle_query): Correct qPart to qXfer.
783 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
785 * configure.ac: Check for more headers which are missing on
786 Windows. Automatically supply -lwsock32 and USE_WIN32API.
787 * configure.srv: Add Cygwin and mingw32.
788 * remote-utils.c: Don't include headers unconditionally which
789 are missing on mingw32. Include <winsock.h> for mingw32.
790 (remote_open): Adjust for mingw32 support. Flush
791 standard error after writing to it.
792 (remote_close, putpkt_binary, input_interrupt, block_async_io)
793 (unblock_async_io, enable_async_io, disable_async_io)
794 (readchar, getpkt): Update for Winsock support.
795 (prepare_resume_reply): Expect a protocol signal number.
796 * server.c: Disable <sys/wait.h> on mingw32.
797 (start_inferior): Adjust for mingw32 support. Flush
798 standard error after writing to it.
799 (attach_inferior): Likewise. Use protocol signal
801 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
803 * win32-i386-low.c: New file.
804 * Makefile.in (XM_CLIBS): Set.
805 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
806 (win32-i386-low.o): New dependency rule.
807 * linux-low.c (linux_wait): Use target signal numbers.
808 * target.h (struct target_ops): Doc fix.
809 * server.h (target_signal_to_name): New prototype.
810 * gdbreplay.c: Don't include headers unconditionally which
811 are missing on mingw32. Include <winsock.h> for mingw32.
812 (remote_close, remote_open): Adjust for Winsock support.
813 * configure, config.in: Regenerated.
815 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
817 * server.c (decode_xfer_read, write_qxfer_response): New.
818 (handle_query): Take a packet length argument. Handle
819 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
820 the qSupported response.
821 (main): Update call to handle_query.
823 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
825 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
826 (putpkt_binary): Renamed from putpkt and adjusted for binary
828 (putpkt): New wrapper for putpkt_binary.
829 (readchar): Don't mask off the high bit.
830 (decode_X_packet): New function.
831 * server.c (main): Call putpkt_binary if a handler sets the packet
832 length. Save the length of the incoming packet. Handle 'X'.
833 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
835 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
837 * server.c (handle_query): Handle qSupported.
839 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
841 * remote-utils.c (all_symbols_looked_up): New variable.
842 (look_up_one_symbol): Check it.
843 * server.h (look_up_one_symbol): New declaration.
844 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
846 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
848 * Makefile.in (linux-arm-low.o): Update dependencies.
849 * linux-arm-low.c: Include "gdb_proc_service.h".
850 (PTRACE_GET_THREAD_AREA): Define.
851 (ps_get_thread_area): New function.
853 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
855 * configure.srv (m68k*-*-uclinux*): New target.
856 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
857 (linux_resume_one_process): Remove extraneous cast.
858 (linux_read_offsets): New.
859 (linux_target_op): Add linux_read_offsets on mmuless systems.
860 * server.c (handle_query): Add qOffsets logic.
861 * target.h (struct target_ops): Add read_offsets.
863 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
865 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
866 (PTRACE_GET_THREAD_AREA): Define.
867 (ps_get_thread_area): New function.
868 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
869 (linux-x86-64-low.o): Update.
871 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
873 * configure.ac: Remove checks for prfpregset_t.
874 * gdb_proc_service.h: New file.
875 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
876 new "gdb_proc_service.h".
877 * proc-service.c: Likewise.
878 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
879 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
880 * Makefile.in (gdb_proc_service_h): Updated.
881 * configure, config.in: Regenerated.
883 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
885 * remote-utils.c (prepare_resume_reply): Move declaration
886 of gdb_id_from_wait to the top of the block.
888 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
890 * linux-low.c (regsets_store_inferior_registers): Read the regset
891 from the target before filling it.
893 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
895 * server.c (attach_inferior): Return SIGTRAP for a successful
898 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
900 * Makefile.in (OBS): Add version.o.
901 (STAGESTUFF): Delete.
902 (version.o): Add dependencies.
903 (version.c): Replace rule.
904 (clean): Remove version.c.
905 * server.c (gdbserver_version): New.
906 (gdbserver_usage): Use printf.
907 (main): Handle --version and --help.
908 * server.h (version, host_name): Add declarations.
910 2005-12-23 Eli Zaretskii <eliz@gnu.org>
922 * linux-x86-64-low.c:
934 * linux-crisv32-low.c:
946 * gdbserver.1: Add (C) after Copyright. Update the FSF
949 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
951 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
952 (arm_breakpoint_at): Recognize both breakpoints.
953 (the_low_target): Use the correct breakpoint instruction.
955 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
957 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
958 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
959 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
960 (the_low_target): Update.
962 2005-10-25 Andreas Schwab <schwab@suse.de>
964 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
966 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
967 (ia64_num_regs): Reduce to 462.
969 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
971 * acinclude.m4: Correct quoting.
972 * aclocal.m4: Regenerated.
974 Suggested by SZOKOVACS Robert <szo@ies.hu>:
975 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
976 (thread_db_init): Call thread_db_err_str.
977 * configure.ac: Check for TD_VERSION.
978 * config.in, configure: Regenerated.
980 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
982 * server.h (error, fatal, warning): Add ATTR_FORMAT.
984 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
986 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
987 is not available. Define HAVE_PTRACE_GETREGS if it is.
988 * config.in, configure: Regenerated.
989 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
990 * linux-i386-low.c, linux-m68k-low.c: Update to use
992 * linux-low.c (regsets_fetch_inferior_registers)
993 (regsets_store_inferior_registers): Only return 0 if we processed
995 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
996 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
998 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
1000 * inferiors.c (struct thread_info): Add gdb_id.
1001 (add_thread): Add gdb_id argument.
1002 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
1003 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
1004 calls to add_thread.
1005 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
1006 * server.c (handle_query): Use thread_to_gdb_id.
1007 (handle_v_cont, main): Use gdb_id_to_thread_id.
1008 * server.h (add_thread): Update prototype.
1009 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
1012 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
1014 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
1015 left-padded registers.
1016 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
1017 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
1019 2005-07-01 Steve Ellcey <sje@cup.hp.com>
1021 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
1022 * configure: Regenerate.
1023 * config.in: Regenerate.
1024 * server.h (NEED_DECLARATION_STRERROR):
1025 Replace with !HAVE_DECL_STRERROR.
1027 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
1029 * linux-low.c (linux_wait, linux_send_signal): Don't test
1030 an unsigned long variable for > 0 if it could be MAX_ULONG.
1031 * server.c (myresume): Likewise.
1032 * target.c (set_desired_inferior): Likewise.
1034 2005-06-13 Mark Kettenis <kettenis@gnu.org>
1036 * configure.ac: Simplify and improve check for socklen_t.
1037 * configure, config.in: Regenerate.
1039 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
1041 * acconfig.h: Remove.
1042 * configure.ac: Add a test for socklen_t. Use three-argument
1043 AC_DEFINE throughout.
1044 * config.in: Regenerated using autoheader 2.59.
1045 * configure: Regenerated.
1047 * gdbreplay.c (socklen_t): Provide a default.
1048 (remote_open): Use socklen_t.
1049 * remote-utils.c (socklen_t): Provide a default.
1050 (remote_open): Use socklen_t.
1051 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
1054 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
1056 * linux-low.c (linux_read_memory, linux_write_memory)
1057 (linux_read_auxv): Likewise.
1058 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
1059 (check_mem_write): Likewise.
1060 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
1062 * regcache.c (struct inferior_rgcache_data, registers_to_string)
1063 (registers_from_string, register_data): Likewise.
1064 * server.c (handle_query, main): Likewise.
1065 * server.h (convert_ascii_to_int, convert_int_to_ascii)
1066 (decode_M_packet): Likewise.
1067 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
1068 * target.h (struct target_ops): Update read_memory, write_memory,
1070 (read_inferior_memory, write_inferior_memory): Update.
1071 * linux-low.h (struct linux_target_ops): Change type of breakpoint
1073 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
1074 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
1075 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
1076 linux-s390-low.c, linux-sh-low.c: Update for changes in
1077 read_inferior_memory and the_low_target->breakpoint.
1079 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
1081 * Makefile.in (SFILES): Add linux-ppc64-low.c.
1082 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
1083 * configure.srv: Add powerpc64-*-linux*.
1084 * linux-ppc64-low.c: New file.
1086 2005-05-23 Orjan Friberg <orjanf@axis.com>
1088 * linux-cris-low.c: New file with support for CRIS.
1089 * linux-crisv32-low.c: Ditto for CRISv32.
1090 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
1091 (clean): Add reg-cris.c and reg-crisv32.c.
1092 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
1093 reg-crisv32.o, and reg-crisv32.c to make rules.
1094 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
1097 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1099 * linux-low.c (fetch_register): Ensure buffer size is a multiple
1100 of sizeof (PTRACE_XFER_TYPE).
1101 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
1103 2005-05-12 Orjan Friberg <orjanf@axis.com>
1105 * target.h (struct target_ops): Add insert_watchpoint,
1106 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
1107 pointers for hardware watchpoint support.
1108 * linux-low.h (struct linux_target_ops): Ditto.
1109 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
1110 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
1111 to linux_target_ops.
1112 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
1114 * server.c (main): Recognize 'Z' and 'z' packets.
1116 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
1118 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
1119 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
1120 (the_low_target): Add new members.
1122 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
1124 * proc-service.c (ps_lgetregs): Search all_processes instead of
1127 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
1129 * server.c (start_inferior): Change return type to int.
1130 (attach_inferior): Change sigptr to int *.
1131 (handle_v_cont, handle_v_requests): Change signal to int *.
1132 (main): Change signal to int.
1134 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
1136 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
1137 * configure.srv: Add m32r*-*-linux*.
1138 * linux-m32r-low.c: New file.
1140 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
1142 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
1144 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
1146 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
1147 Take unsigned long arguments for PIDs.
1148 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
1149 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
1150 (wait_for_sigstop, linux_resume_one_process)
1151 (regsets_fetch_inferior_registers, linux_send_signal)
1152 (linux_read_auxv): Likewise. Update the types of variables holding
1153 PIDs. Update format string specifiers.
1154 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
1155 * remote-utils.c (prepare_resume_reply): Likewise.
1156 * server.c (cont_thread, general_thread, step_thread)
1157 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
1159 (handle_query): Update format specifiers.
1160 (handle_v_cont, main): Use strtoul for thread IDs.
1161 * server.h (struct inferior_list_entry): Use unsigned long for ID.
1162 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
1163 (general_thread, step_thread, thread_from_wait)
1164 (old_thread_from_wait): Update.
1165 * target.h (struct thread_resume): Use unsigned long for THREAD.
1166 (struct target_ops): Use unsigned long for arguments to attach and
1169 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
1171 * acinclude.m4: Include bfd/bfd.m4 directly.
1172 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
1173 <agriffis@toolchain.org>.
1174 * aclocal.m4, configure: Regenerated.
1176 2005-01-07 Andrew Cagney <cagney@gnu.org>
1178 * configure.ac: Rename configure.in, require autoconf 2.59.
1179 * configure: Re-generate.
1181 2004-12-08 Daniel Jacobowitz <dan@debian.org>
1183 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
1185 * aclocal.m4: Regenerated.
1186 * configure: Regenerated.
1188 2004-11-21 Andreas Schwab <schwab@suse.de>
1190 * linux-m68k-low.c (m68k_num_gregs): Define.
1191 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
1192 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
1193 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
1194 (m68k_breakpoint_at): New. Add to the_low_target.
1196 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
1197 srv_linux_thread_db to yes.
1199 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1201 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
1202 (ARCH_SET_FS): Likewise.
1203 (ARCH_GET_FS): Likewise.
1204 (ARCH_GET_GS): Likewise.
1206 2004-10-16 Daniel Jacobowitz <dan@debian.org>
1208 * linux-i386-low.c (ps_get_thread_area): New.
1209 * linux-x86-64-low.c (ps_get_thread_area): New.
1210 * linux-low.c: Include <sys/syscall.h>.
1211 (linux_kill_one_process): Don't kill the first thread here.
1212 (linux_kill): Kill the first thread here.
1213 (kill_lwp): New function.
1214 (send_sigstop, linux_send_signal): Use it.
1215 * proc-service.c: Clean up #ifdefs.
1216 (fpregset_info): Delete.
1217 (ps_lgetregs): Update and enable implementation.
1218 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
1220 * remote-utils.c (struct sym_cache, symbol_cache): New.
1221 (input_interrupt): Print a clearer message.
1222 (async_io_enabled): New variable.
1223 (enable_async_io, disable_async_io): Use it. Update comments.
1224 (look_up_one_symbol): Use the symbol cache.
1225 * thread-db.c (thread_db_look_up_symbols): New function.
1226 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
1228 2004-10-16 Daniel Jacobowitz <dan@debian.org>
1230 * configure.in: Test for -rdynamic.
1231 * configure: Regenerated.
1232 * Makefile (INTERNAL_LDFLAGS): New.
1233 (gdbserver, gdbreplay): Use it.
1235 2004-09-02 Andrew Cagney <cagney@gnu.org>
1237 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
1239 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
1241 * linux-low.c (linux_wait): Clear all_processes list also.
1243 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
1245 * linux-low.c: Include <errno.h>. Remove extern declaration of
1248 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
1250 * gdbreplay.c, server.h, utils.c: Update copyright years.
1252 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
1254 * server.c (main): Print child status or termination signal from
1255 variable 'signal', not 'sig'.
1257 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
1259 * linux-low.c (linux_read_memory): Change return type to
1260 int. Check for and return error from ptrace().
1261 * target.c (read_inferior_memory): Change return type to int. Pass
1262 back return status from the_target->read_memory().
1263 * target.h (struct target_ops): Adapt *read_memory() prototype.
1265 (read_inferior_memory): Adapt prototype.
1266 * server.c (main): Return an error packet if
1267 read_inferior_memory() returns an error.
1269 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
1271 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
1272 Unify with other clean targets.
1274 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
1276 * server.c (handle_v_cont): Call set_desired_inferior.
1278 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
1280 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
1282 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
1284 * linux-low.c (linux_wait): Unblock async I/O.
1285 (linux_resume): Block and enable async I/O.
1286 * remote-utils.c (block_async_io, unblock_async_io): New functions.
1287 * server.h (block_async_io, unblock_async_io): Add prototypes.
1289 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
1291 * remote-utils.c (remote_open): Print a status notice after
1293 * server.c (attach_inferior): Print a status notice after
1296 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
1298 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
1300 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
1302 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
1304 * server.c, target.h: Update copyright years.
1306 2004-02-25 Roland McGrath <roland@redhat.com>
1308 * target.h (struct target_ops): New member `read_auxv'.
1309 * server.c (handle_query): Handle qPart:auxv:read: query using that.
1310 * linux-low.c (linux_read_auxv): New function.
1311 (linux_target_ops): Initialize `read_auxv' member to that.
1313 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1315 Committed by Jim Blandy <jimb@redhat.com>.
1317 * linux-s390-low.c (s390_num_regs): Update.
1318 (s390_regmap): Remove control registers. Use __s390x__ predefine
1319 instead of GPR_SIZE to distiguish s390 and s390x targets.
1321 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
1323 * linux-low.c: Update copyright year.
1324 (check_removed_breakpoint): Clear pending_is_breakpoint.
1325 (linux_set_resume_request, linux_queue_one_thread)
1326 (resume_status_pending_p): New functions.
1327 (linux_continue_one_thread): Use process->resume.
1328 (linux_resume): Only resume threads if there are no pending events.
1329 * linux-low.h (struct process_info): Add resume request
1332 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
1334 * regcache.c (new_register_cache): Clear the allocated register
1335 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1337 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
1339 * linux-low.c (linux_resume): Take a struct thread_resume *
1341 (linux_wait): Update call.
1342 (resume_ptr): New static variable.
1343 (linux_continue_one_thread): Renamed from
1344 linux_continue_one_process. Use resume_ptr.
1345 (linux_resume): Use linux_continue_one_thread.
1346 * server.c (handle_v_cont, handle_v_requests): New functions.
1347 (myresume): New function.
1348 (main): Handle 'v' case.
1349 * target.h (struct thread_resume): New type.
1350 (struct target_ops): Change argument of "resume" to struct
1352 (myresume): Delete macro.
1354 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1356 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
1357 (uninstall): Support DESTDIR.
1359 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
1361 * configure.srv: Add xscale*linux copy of arm*linux entry.
1363 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
1365 * linux-arm-low.c (arm_reinsert_addr): New function.
1366 (the_low_target): Add arm_reinsert_addr.
1368 2003-07-08 Mark Kettenis <kettenis@gnu.org>
1370 * mem-break.c: Remove whitespace at end of file.
1372 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1374 * configure.in: Check whether we need to prototype strerror.
1375 * server.h: Optionally prototype strerror.
1376 * gdbreplay.c (perror_with_name): Use strerror.
1377 * linux-low.c (linux_attach_lwp): Use strerror.
1378 * utils.c (perror_with_name): Use strerror.
1379 * config.in, configure: Regenerated.
1381 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1383 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
1384 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
1386 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
1388 * Makefile.in (SFILES): Update.
1389 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
1390 low-sun3.c: Remove files.
1392 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1394 * linux-low.c: Move comment to linux_thread_alive where it belonged.
1395 (linux_detach_one_process, linux_detach): New functions.
1396 (linux_target_ops): Add linux_detach.
1397 * server.c (main): Handle 'D' packet.
1398 * target.h (struct target_ops): Add "detach" member.
1399 (detach_inferior): Define.
1401 2003-06-13 Mark Kettenis <kettenis@gnu.org>
1403 From Kelley Cook <kelleycook@wideopenwest.com>:
1404 * configure.srv: Accept i[34567]86 variants.
1406 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
1408 * linux-low.c (linux_wait_for_event): Correct comment typos.
1409 (linux_resume_one_process): Call check_removed_breakpoint.
1410 (linux_send_signal): New function.
1411 (linux_target_ops): Add linux_send_signal.
1412 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
1414 * target.h (struct target_ops): Add send_signal.
1416 2003-05-29 Jim Blandy <jimb@redhat.com>
1418 * linux-low.c (usr_store_inferior_registers): Transfer buf in
1419 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
1420 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
1421 away part of the register's value.
1423 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
1425 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
1426 (linux_wait_for_event, linux_init_signals): Likewise.
1428 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
1430 * configure.in: Check for stdlib.h.
1431 * configure: Regenerated.
1432 * config.in: Regenerated.
1434 2003-01-04 Andreas Schwab <schwab@suse.de>
1436 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
1438 2003-01-02 Andrew Cagney <ac131313@redhat.com>
1440 * Makefile.in: Remove obsolete code.
1442 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
1444 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
1445 defined(PT_FPR0_HI).
1447 2002-11-17 Stuart Hughes <seh@zee2.com>
1449 * linux-arm-low.c (arm_num_regs): Increase.
1450 (arm_regmap): Include status register.
1452 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
1454 * linux-low.c (register_addr): Remove incorrect -1 check.
1456 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
1458 * linux-low.c (linux_create_inferior): Call setpgid. Return
1460 (unstopped_p, linux_signal_pid): Remove.
1461 (linux_target_ops): Remove linux_signal_pid.
1462 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
1463 global instead of target method.
1464 * target.h (struct target_ops): Remove signal_pid. Update comment
1465 for create_inferior.
1466 * server.c (signal_pid): New variable.
1467 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
1468 gdbserver. Set the child to be the foreground process group.
1469 (attach_inferior): Set signal_pid.
1471 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1473 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
1475 2002-08-20 Jim Blandy <jimb@redhat.com>
1477 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1480 2002-08-01 Andrew Cagney <cagney@redhat.com>
1482 * Makefile.in: Make chill references obsolete.
1484 2002-07-24 Kevin Buettner <kevinb@redhat.com>
1486 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1487 * configure: Regenerate.
1488 * config.in: Regenerate.
1490 2002-07-09 David O'Brien <obrien@FreeBSD.org>
1492 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1493 (perror_with_name, remote_close, remote_open, expect, play): Static.
1495 2002-07-04 Michal Ludvig <mludvig@suse.cz>
1497 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
1498 byte offsets instead of an array of indexes.
1499 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
1501 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1503 * regcache.c: Add comment.
1505 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
1507 * thread-db.c: New file.
1508 * proc-service.c: New file.
1509 * acinclude.m4: New file.
1510 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
1511 proc-service.o, and thread-db.o.
1512 (linux-low.o): Add USE_THREAD_DB.
1513 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
1514 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
1515 * aclocal.m4: Regenerated.
1516 * config.in: Regenerated.
1517 * configure: Regenerated.
1518 * configure.in: Check for proc_service.h, sys/procfs.h,
1519 thread_db.h, and linux/elf.h headrs.
1520 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
1521 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
1522 Check for -lthread_db and thread support.
1523 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
1524 PowerPC, and SuperH.
1525 * i387-fp.c: Constify arguments.
1526 * i387-fp.h: Likewise.
1527 * inferiors.c: (struct thread_info): Renamed from
1528 `struct inferior_info'. Remove PID member. Use generic inferior
1529 list header. All uses updated.
1530 (inferiors, signal_pid): Removed.
1531 (all_threads): New variable.
1532 (get_thread): Define.
1533 (add_inferior_to_list): New function.
1534 (for_each_inferior): New function.
1535 (change_inferior_id): New function.
1536 (add_inferior): Removed.
1537 (remove_inferior): New function.
1538 (add_thread): New function.
1539 (free_one_thread): New function.
1540 (remove_thread): New function.
1541 (clear_inferiors): Use for_each_inferior and free_one_thread.
1542 (find_inferior): New function.
1543 (find_inferior_id): New function.
1544 (inferior_target_data): Update argument type.
1545 (set_inferior_target_data): Likewise.
1546 (inferior_regcache_data): Likewise.
1547 (set_inferior_regcache_data): Likewise.
1548 * linux-low.c (linux_bp_reinsert): Remove.
1549 (all_processes, stopping_threads, using_thrads)
1550 (struct pending_signals, debug_threads, pid_of): New.
1551 (inferior_pid): Replace with macro.
1552 (struct inferior_linux_data): Remove.
1553 (get_stop_pc, add_process): New functions.
1554 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
1555 Use add_process and add_thread.
1556 (linux_attach_lwp): New function, based on old linux_attach. Use
1557 add_process and add_thread. Set stop_expected for new threads.
1558 (linux_attach): New function.
1559 (linux_kill_one_process): New function.
1560 (linux_kill): Kill all LWPs.
1561 (linux_thread_alive): Use find_inferior_id.
1562 (check_removed_breakpoints, status_pending_p): New functions.
1563 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
1564 Update. Use WNOHANG. Wait for cloned processes also. Update process
1565 struct for the found process.
1566 (linux_wait_for_event): New function.
1567 (linux_wait): Use it. Support LWPs.
1568 (send_sigstop, wait_for_sigstop, stop_all_processes)
1569 (linux_resume_one_process, linux_continue_one_process): New functions.
1570 (linux_resume): Support LWPs.
1571 (REGISTER_RAW_SIZE): Remove.
1572 (fetch_register): Use register_size instead. Call supply_register.
1573 (usr_store_inferior_registers): Likewise. Call collect_register.
1575 (regsets_fetch_inferior_registers): Improve error message.
1576 (regsets_store_inferior_registers): Add debugging.
1577 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
1578 (unstopped_p, linux_signal_pid): New functions.
1579 (linux_target_ops): Add linux_signal_pid.
1580 (linux_init_signals): New function.
1581 (initialize_low): Call it. Initialize using_threads.
1582 * regcache.c (inferior_regcache_data): Add valid
1584 (get_regcache): Fetch registers lazily. Add fetch argument
1585 and update all callers.
1586 (regcache_invalidate_one, regcache_invalidate): New
1588 (new_register_cache): Renamed from create_register_cache.
1589 Return the new regcache.
1590 (free_register_cache): Change argument to a void *.
1591 (registers_to_string, registers_from_string): Call get_regcache
1592 with fetch flag set.
1593 (register_data): Make static. Pass fetch flag to get_regcache.
1594 (supply_register): Call get_regcache with fetch flag clear.
1595 (collect_register): Call get_regcache with fetch flag set.
1596 (collect_register_as_string): New function.
1597 * regcache.h: Update.
1598 * remote-utils.c (putpkt): Flush after debug output and use
1600 Handle input interrupts while waiting for an ACK.
1601 (input_interrupt): Use signal_pid method.
1602 (getpkt): Flush after debug output and use stderr.
1603 (outreg): Use collect_register_as_string.
1604 (new_thread_notify, dead_thread_notify): New functions.
1605 (prepare_resume_reply): Check using_threads. Set thread_from_wait
1607 (look_up_one_symbol): Flush after debug output.
1608 * server.c (step_thread, server_waiting): New variables.
1609 (start_inferior): Don't use signal_pid. Update call to mywait.
1610 (attach_inferior): Update call to mywait.
1611 (handle_query): Handle qfThreadInfo and qsThreadInfo.
1612 (main): Don't fetch/store registers explicitly. Use
1613 set_desired_inferior. Support proposed ``Hs'' packet. Update
1616 (struct inferior_list, struct_inferior_list_entry): New.
1617 * target.c (set_desired_inferior): New.
1618 (write_inferior_memory): Constify.
1619 (mywait): New function.
1621 (struct target_ops): New signal_pid method.
1622 (mywait): Removed macro, added prototype.
1624 * linux-low.h (regset_func): Removed.
1625 (regset_fill_func, regset_store_func): New.
1626 (enum regset_type): New.
1627 (struct regset_info): Add type field. Use new operation types.
1628 (struct linux_target_ops): stop_pc renamed to get_pc.
1629 Add decr_pc_after_break and breakpoint_at.
1630 (get_process, get_thread_proess, get_process_thread)
1631 (strut process_info, all_processes, linux_attach_lwp)
1632 (thread_db_init): New.
1634 * linux-arm-low.c (arm_get_pc, arm_set_pc,
1635 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
1636 (the_low_target): Add new members.
1637 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
1638 (i386_store_fpxregset): Constify.
1639 (target_regsets): Add new kind identifier.
1640 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
1641 (i386_set_pc): Add debugging.
1642 (i386_breakpoint_at): New function.
1643 (the_low_target): Add new members.
1644 * linux-mips-low.c (mips_get_pc, mips_set_pc)
1645 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
1646 (mips_breakpoint_at): New.
1647 (the_low_target): Add new members.
1648 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
1649 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
1650 (the_low_target): Add new members.
1651 * linux-sh-low.c (sh_get_pc, sh_set_pc)
1652 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
1653 (the_low_target): Add new members.
1654 * linux-x86-64-low.c (target_regsets): Add new kind
1657 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
1659 From Martin Pool <mbp@samba.org>:
1660 * server.c (gdbserver_usage): New function.
1663 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
1665 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
1668 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1670 * Makefile.in: Remove obsolete code.
1672 2002-04-24 Michal Ludvig <mludvig@suse.cz>
1674 * linux-low.c (regsets_fetch_inferior_registers),
1675 (regsets_store_inferior_registers): Removed cast to int from
1677 * regcache.h: Added declaration of struct inferior_info.
1679 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1681 * inferiors.c (struct inferior_info): Add regcache_data.
1682 (add_inferior): Call create_register_cache.
1683 (clear_inferiors): Call free_register_cache.
1684 (inferior_regcache_data, set_inferior_regcache_data): New functions.
1685 * regcache.c (struct inferior_regcache_data): New.
1686 (registers): Remove.
1687 (get_regcache): New function.
1688 (create_register_cache, free_register_cache): New functions.
1689 (set_register_cache): Don't initialize the register cache here.
1690 (registers_to_string, registers_from_string, register_data): Call
1692 * regcache.h: Add prototypes.
1693 * server.h: Likewise.
1695 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1697 * mem-break.c: New file.
1698 * mem-break.h: New file.
1699 * Makefile.in: Add mem-break.o rule; update server.h
1701 * inferiors.c (struct inferior_info): Add target_data
1703 (clear_inferiors): Free target_data member if set.
1704 (inferior_target_data, set_inferior_target_data): New functions.
1705 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
1706 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
1707 * linux-low.c (linux_bp_reinsert): New variable.
1708 (struct inferior_linux_data): New.
1709 (linux_create_inferior): Use set_inferior_target_data.
1710 (linux_attach): Likewise. Call add_inferior.
1711 (linux_wait_for_one_inferior): New function.
1712 (linux_wait): Call it.
1713 (linux_write_memory): Add const.
1714 (initialize_low): Call set_breakpoint_data.
1715 * linux-low.h (struct linux_target_ops): Add breakpoint
1717 * server.c (attach_inferior): Remove extra add_inferior
1719 * server.h: Include mem-break.h. Update inferior.c
1721 * target.c (read_inferior_memory)
1722 (write_inferior_memory): New functions.
1723 * target.h (read_inferior_memory)
1724 (write_inferior_memory): Change macros to prototypes.
1725 (struct target_ops): Update comments. Add const to write_memory
1728 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
1730 * linux-low.c (usr_store_inferior_registers): Support
1731 registers which are allowed to fail to store.
1732 * linux-low.h (linux_target_ops): Likewise.
1733 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
1734 (ppc_cannot_store_register): FPSCR may not be storable.
1736 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1738 * server.h: Include <string.h> if HAVE_STRING_H.
1739 * ChangeLog: Correct paths in last ChangeLog entry.
1741 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1743 * linux-low.h: Remove obsolete prototypes.
1744 (struct linux_target_ops): New.
1745 (extern the_low_target): New.
1746 * linux-low.c (num_regs, regmap): Remove declarations.
1747 (register_addr): Use the_low_target explicitly.
1748 (fetch_register): Likewise.
1749 (usr_fetch_inferior_registers): Likewise.
1750 (usr_store_inferior_registers): Likewise.
1751 * linux-arm-low.c (num_regs): Remove.
1752 (arm_num_regs): Define.
1753 (arm_regmap): Renamed from regmap, made static.
1754 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1756 (arm_cannot_store_register): Renamed from cannot_store_register,
1758 (the_low_target): New.
1759 * linux-i386-low.c (num_regs): Remove.
1760 (i386_num_regs): Define.
1761 (i386_regmap): Renamed from regmap, made static.
1762 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1764 (i386_cannot_store_register): Renamed from cannot_store_register,
1766 (the_low_target): New.
1767 * linux-ia64-low.c (num_regs): Remove.
1768 (ia64_num_regs): Define.
1769 (ia64_regmap): Renamed from regmap, made static.
1770 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1772 (ia64_cannot_store_register): Renamed from cannot_store_register,
1774 (the_low_target): New.
1775 * linux-m68k-low.c (num_regs): Remove.
1776 (m68k_num_regs): Define.
1777 (m68k_regmap): Renamed from regmap, made static.
1778 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1780 (m68k_cannot_store_register): Renamed from cannot_store_register,
1782 (the_low_target): New.
1783 * linux-mips-low.c (num_regs): Remove.
1784 (mips_num_regs): Define.
1785 (mips_regmap): Renamed from regmap, made static.
1786 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1788 (mips_cannot_store_register): Renamed from cannot_store_register,
1790 (the_low_target): New.
1791 * linux-ppc-low.c (num_regs): Remove.
1792 (ppc_num_regs): Define.
1793 (ppc_regmap): Renamed from regmap, made static.
1794 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1796 (ppc_cannot_store_register): Renamed from cannot_store_register,
1798 (the_low_target): New.
1799 * linux-s390-low.c (num_regs): Remove.
1800 (s390_num_regs): Define.
1801 (s390_regmap): Renamed from regmap, made static.
1802 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1804 (s390_cannot_store_register): Renamed from cannot_store_register,
1806 (the_low_target): New.
1807 * linux-sh-low.c (num_regs): Remove.
1808 (sh_num_regs): Define.
1809 (sh_regmap): Renamed from regmap, made static.
1810 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1812 (sh_cannot_store_register): Renamed from cannot_store_register,
1814 (the_low_target): New.
1815 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1816 (the_low_target): New.
1818 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1820 * Makefile.in: Add stamp-h target.
1821 * configure.in: Create stamp-h.
1822 * configure: Regenerated.
1824 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1826 * inferiors.c: New file.
1827 * target.c: New file.
1828 * target.h: New file.
1829 * Makefile.in: Add target.o and inferiors.o. Update
1831 * linux-low.c (inferior_pid): New static variable,
1832 moved from server.c.
1833 (linux_create_inferior): Renamed from create_inferior.
1834 Call add_inferior. Return 0 on success instead of a PID.
1835 (linux_attach): Renamed from myattach.
1836 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1837 (linux_thread_alive): Renamed from mythread_alive.
1838 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1840 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1841 (regsets_store_inferior_registers): Correct error message.
1842 Add missing ``return 0''.
1843 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1844 (linux_store_registers): Renamed from store_inferior_registers.
1845 (linux_read_memory): Renamed from read_inferior_memory.
1846 (linux_write_memory): Renamed from write_inferior_memory.
1847 (linux_target_ops): New structure.
1848 (initialize_low): Call set_target_ops ().
1849 * remote-utils.c (unhexify): New function.
1850 (hexify): New function.
1851 (input_interrupt): Send signals to ``signal_pid''.
1852 * server.c (inferior_pid): Remove.
1853 (start_inferior): Update create_inferior call.
1854 (attach_inferior): Call add_inferior.
1855 (handle_query): New function.
1856 (main): Call handle_query for `q' packets.
1857 * server.h: Include "target.h". Remove obsolete prototypes.
1858 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1860 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1862 * Makefile.in: Add WARN_CFLAGS. Update configury
1864 * configure.in: Check for <string.h>
1865 * configure: Regenerate.
1866 * config.in: Regenerate.
1867 * gdbreplay.c: Include needed system headers.
1868 (remote_open): Remove strchr prototype.
1869 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1870 * regcache.c (supply_register): Change buf argument to const void *.
1871 (supply_register_by_name): Likewise.
1872 (collect_register): Change buf argument to void *.
1873 (collect_register_by_name): Likewise.
1874 * regcache.h: Add missing prototypes.
1875 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1876 * server.c (handle_query): New function.
1877 (attached): New static variable, moved out of main.
1878 (main): Quiet longjmp clobber warnings.
1879 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1880 * utils.c (error): Remove NORETURN.