* win32-low.c (soft_interrupt_requested, faked_breakpoint): New
[deliverable/binutils-gdb.git] / gdb / gdbserver / ChangeLog
CommitLineData
4d5d1aaa
PA
12007-12-03 Leo Zayas
2 Pedro Alves <pedro_alves@portugalmail.pt>
3
4 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
5 global variables.
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,
14 and 1 otherwise.
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
18 resort.
19
c436e841
PA
202007-12-03 Leo Zayas
21 Pedro Alves <pedro_alves@portugalmail.pt>
22
23 * win32-low.h (win32_thread_info): Add descriptions to the
24 structure members. Replace `suspend_count' counter by a
25 `suspended' flag.
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.
32
e7b5fa67
PA
332007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
34
35 * win32-low.c (win32_wait): Don't read from the inferior when it
36 has already exited.
37
a385171d
PA
382007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
39
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.
43
f80c84b3
DJ
442007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
45
46 * hostio.c: Correct copyright year.
47
a6b151f1
DJ
482007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
49
50 * Makefile.in (OBS): Add hostio.o.
51 (hostio.o): New rule.
52 * server.h (handle_vFile): Declare.
53 * hostio.c: New file.
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.
57
f9387fc3
DJ
582007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
59
60 * linux-low.c: Include <sched.h>.
61
51c2684e
DJ
622007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
63
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.
67
75f83163
JB
682007-10-31 Joel Brobecker <brobecker@adacore.com>
69
70 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
71
da5898ce
DJ
722007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
73
74 * linux-low.c (handle_extended_wait): Handle unexpected signals.
75
24a09b5f
DJ
762007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
77
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
107 sigstop_sent.
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.
119
30ed0a8f
DJ
1202007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
121
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*
127 with SPE.
128 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
129 SPE targets.
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.
140
fd462a61
DJ
1412007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
142
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.
147
69f223ed
DJ
1482007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
149
150 * linux-low.c (linux_wait_for_event): Do not pass signals while
151 single-stepping.
152
aec18585
PA
1532007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
154
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.
160
34d86ddd
PA
1612007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
162
163 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
164
5a0e3bd0
JB
1652007-08-23 Joel Brobecker <brobecker@adacore.com>
166
167 * configure.ac: Switch license to GPLv3.
168
f88c79e6
MS
1692007-08-01 Michael Snyder <msnyder@access-company.com>
170
171 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
172
6b3d9b83
PA
1732007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
174
175 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
176 typedef.
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.
182
c588c53c
MS
1832007-07-27 Michael Snyder <michael.snyder@access-company.com>
184
185 * server.c (main): Check for inferior exit before main loop.
186
aa0403d9
PA
1872007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
188
189 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
190 instead of on tmp_desc.
191
255e7678
DJ
1922007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
193 Daniel Jacobowitz <dan@codesourcery.com>
194
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
198 list.
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
203 for qSupported.
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.
220
0d37add9
DJ
2212007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
222
223 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
224 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
225
45e2715e
PA
2262007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
227
228 * win32-low.c (handle_output_debug_string): Ignore event if not
229 waiting.
230
c5674cf1
PA
2312007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
232
233 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
234
2bbe3cc1
DJ
2352007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
236
237 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
238
ae13219e
DJ
2392007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
240
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
246 each process.
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.
257
4105de34
DJ
2582007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
259
260 * thread-db.c (thread_db_find_new_threads): Add prototype.
261 (thread_db_create_event): Check for the main thread before adding
262 a new thread.
263 (maybe_attach_thread): Only enable event reporting if TID == 0.
264 (thread_db_get_tls_address): Check for new threads.
265
2b876972
DJ
2662007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
267
268 * linux-low.c (linux_create_inferior): Try execv before execvp.
269 * spu-low.c (spu_create_inferior): Likewise.
270
7a245884
DJ
2712007-06-13 Mike Frysinger <vapier@gentoo.org>
272
273 * linux-low.c (linux_create_inferior): Change execv to execvp.
274 * spu-low.c (spu_create_inferior): Likewies.
275
117ce543
DJ
2762007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
277
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
281 rules.
282 * configure.srv: Specify XML files and new regformats for MIPS and
283 MIPS64 GNU/Linux.
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.
292
0e7f50da
UW
2932007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
294 Markus Deuling <deuling@de.ibm.com>
295
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.
303
374c1d38
UW
3042007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
305
306 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
307 accessing non-seekable spufs files.
308
bb63802a
UW
3092007-05-16 Markus Deuling <deuling@de.ibm.com>
310
311 * server.c (handle_query): Add reply for qC packet.
312
7390519e
PA
3132007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
314 Leo Zayas <lerele@champenstudios@com>
315
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.
3ecf0694 322 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
323 winapi_GenerateConsoleCtrlEvent): New typedefs.
324 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
325 to 250 ms.
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.
330
34b34921
PA
3312007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
332
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.
340 (regptr): Delete.
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
357 events.
358
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
363 state variables.
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.
375
376 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
377 (arm_get_thread_context): New.
378 (arm_set_thread_context): New.
379 (regptr): 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.
386
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.
392
dd6953e1
PA
3932007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
394
395 * linux-low.c (linux_detach): Change return type to int. Return 0.
396 * spu-low.c (spu_detach): Likewise.
397
444d6139
PA
3982007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
399
400 * target.h (target_ops): Change return type of detach to int.
401 Add join.
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.
413 (win32_join): New.
414 (win32_target_op): Add win32_join.
415
1d5315fe
PA
4162007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
417
418 * win32-low.c (win32-attach): Fix return value.
419 * target.h (target_ops): Describe ATTACH return values.
420
bf914831
PA
4212007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
422
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.
429
f72f3e60
PA
4302007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
431
432 * win32-low.c (win32_wait): Don't use WSTOPSIG.
433
ed50f18f
PA
4342007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
435
436 * win32-low.c: Commit leftover changes from 2007-03-29.
437
0c2ead7e
DJ
4382007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
439
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.
445
73725ff3
DJ
4462007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
447
448 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
449 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
450
d99f33d8
PA
4512007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
452
453 * configure.srv (arm*-*-mingw32ce*): Move near the other
454 arm targets.
455
68070c10
PA
4562007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
457
2482afc6 458 * configure.ac: Add errno checking.
68070c10
PA
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.
2482afc6 463 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
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.
486 * win32-low.h: 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.
491 (_T): New macro.
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.
500 (regptr): New.
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
514 thread handles.
515 (win32_detach): Use coredll.dll on Windows CE.
516 (win32_resume): Let low target handle debug registers, and
517 step request.
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
523 target's breakpoint.
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.
531 (all:): Add $EXEEXT.
532 (install-only:): Likewise.
533 (gdbserver:): Likewise.
534 (gdbreplay:): Likewise.
535 * config.in: Regenerate.
536 * configure: Regenerate.
537
41093d81
PA
5382007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
539
540 * win32-low.c: Rename typedef thread_info to
541 win32_thread_info throughout.
542
544afa54
PA
5432007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
544
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.
549
bce7165d
PA
5502007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
551
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.
558
506c7aa0
DJ
5592007-03-27 Mat Hostetter <mat@lcs.mit.edu>
560
561 * server.c (main): Correct strtoul check.
562
42c81e2a
DJ
5632007-03-27 Jon Ringle <jon@ringle.org>
564
565 * linux-low.c: Check __ARCH_HAS_MMU__ also.
566
9453113a
DJ
5672007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
568
569 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
570
64a69107
DJ
5712007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
572
573 * terminal.h: Check HAVE_SGTTY_H.
574
5752007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
576
577 * remote-utils.c (remote_open): Print out the assigned port number.
578
c74d0ad8
DJ
5792007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
580
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
588 of debug_threads.
589
de7c3b4a
PA
5902007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
591
592 * Makefile.in (EXEEXT): New.
593 (clean): Use $(EXEEXT).
594
ef57601b
PA
5952007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
596
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
604 of send_signal.
605 (input_interrupt): Likewise.
606
820f2bda
PA
6072007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
608
609 * server.c (get_features_xml): Check if target implemented
610 arch_string.
611 * win32-i386-low.c (win32_arch_string): New.
612 (win32_target_ops): Add win32_arch_string as arch_string member.
613
ab39bf24
UW
6142007-02-22 Markus Deuling <deuling@de.ibm.com>
615
616 * spu-low.c (spu_arch_string): New.
617 (spu_target_ops): Add spu_arch_string.
618
61ff6e04
DJ
6192007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
620
621 * remote-utils.c: Remove HAVE_TERMINAL_H check.
622 * configure.ac: Do not check for terminal.h.
623 * configure, config.in: Regenerated.
624
fb1e4ffc
DJ
6252007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
626
627 * Makefile.in (OBS): Add $(XML_BUILTIN).
628 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
629 (clean): Update.
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
641 XML documents.
642 (handle_query): Handle multiple annexes.
643
0f48aa01
DJ
6442007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
645
646 * remote-utils.c [USE_WIN32API] (read, write): Define.
647 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
648 write.
649
23181151
DJ
6502007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
651
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.
661
9d606399
DJ
6622007-01-03 Denis Pilat <denis.pilat@st.com>
663 Daniel Jacobowitz <dan@codesourcery.com>
664
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.
668
6692006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
670 Daniel Jacobowitz <dan@codesourcery.com>
671
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.
676
a5e13d24
DJ
6772006-12-05 Markus Deuling <deuling@de.ibm.com>
678
679 * README: Update supported targets.
680
186947f7
DJ
6812006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
682
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.
694
a13e2c95
UW
6952006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
696
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.
701
cb7283db
DJ
7022006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
703
704 * configure.ac: Correct td_thr_tls_get_addr test.
705 * configure: Regenerated.
706
89be2091
DJ
7072006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
708
709 * linux-low.c (linux_wait_for_event): Reformat. Use the
710 pass_signals array.
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.
716
000ef4f0
DJ
7172006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
718
719 * server.c (handle_query): Correct error handling for read_auxv.
720
b7149293
UW
7212005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
722
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.
727
dae5f5cf
DJ
7282006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
729
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.
744
32ca6d61
DJ
7452006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
746
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.
755
5ffff7c1
DJ
7562006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
757
758 * remote-utils.c (try_rle): New function.
759 (putpkt_binary): Use it.
760
8695c747
DJ
7612006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
762
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
768 point registers.
769
290fadea
RS
7702006-08-08 Richard Sandiford <richard@codesourcery.com>
771
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().
778
9f2e1e63
DJ
7792006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
780
781 * server.c (handle_query): Correct qPart to qXfer.
782
b80864fb
DJ
7832006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
784
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
800 numbers.
801 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
802 and names.
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.
814
0876f84a
DJ
8152006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
816
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.
822
01f9e8fa
DJ
8232006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
824
825 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
826 (putpkt_binary): Renamed from putpkt and adjusted for binary
827 data.
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.
834
be2a5f71
DJ
8352006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
836
837 * server.c (handle_query): Handle qSupported.
838
ea025f5f
DJ
8392006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
840
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.
845
9308fc88
DJ
8462006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
847
848 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 849 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
850 (PTRACE_GET_THREAD_AREA): Define.
851 (ps_get_thread_area): New function.
852
52fb6437
NS
8532006-05-09 Nathan Sidwell <nathan@codesourcery.com>
854
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.
862
21b0f40c
DJ
8632006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
864
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.
870
0050a760
DJ
8712006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
872
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.
882
b92a518e
DJ
8832006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
884
885 * remote-utils.c (prepare_resume_reply): Move declaration
886 of gdb_id_from_wait to the top of the block.
887
545587ee
DJ
8882006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
889
890 * linux-low.c (regsets_store_inferior_registers): Read the regset
891 from the target before filling it.
892
9db87ebd
DJ
8932006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
894
895 * server.c (attach_inferior): Return SIGTRAP for a successful
896 attach.
897
dd24457d
DJ
8982006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
899
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.
909
6f0f660e
EZ
9102005-12-23 Eli Zaretskii <eliz@gnu.org>
911
912 * linux-arm-low.c:
913 * linux-arm-low.c:
914 * inferiors.c:
915 * i387-fp.h:
916 * i387-fp.c:
917 * gdbreplay.c:
918 * regcache.c:
919 * proc-service.c:
920 * mem-break.h:
921 * mem-break.c:
922 * linux-x86-64-low.c:
923 * linux-sh-low.c:
924 * linux-s390-low.c:
925 * linux-ppc64-low.c:
926 * linux-ppc-low.c:
927 * linux-mips-low.c:
928 * linux-m68k-low.c:
929 * linux-m32r-low.c:
930 * linux-low.h:
931 * linux-low.c:
932 * linux-ia64-low.c:
933 * linux-i386-low.c:
934 * linux-crisv32-low.c:
935 * thread-db.c:
936 * terminal.h:
937 * target.h:
938 * target.c:
939 * server.h:
940 * server.c:
941 * remote-utils.c:
942 * regcache.h:
943 * utils.c:
944 * Makefile.in:
945 * configure.ac:
946 * gdbserver.1: Add (C) after Copyright. Update the FSF
947 address.
948
9d1fb177
DJ
9492005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
950
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.
954
011a70c2
DJ
9552005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
956
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.
961
7fb85e41
AS
9622005-10-25 Andreas Schwab <schwab@suse.de>
963
964 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
965
966 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
967 (ia64_num_regs): Reduce to 462.
968
3db0444b
DJ
9692005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
970
971 * acinclude.m4: Correct quoting.
972 * aclocal.m4: Regenerated.
973
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.
979
bee0189a
DJ
9802005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
981
982 * server.h (error, fatal, warning): Add ATTR_FORMAT.
983
e9d25b98
DJ
9842005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
985
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
991 HAVE_PTRACE_GETREGS.
992 * linux-low.c (regsets_fetch_inferior_registers)
993 (regsets_store_inferior_registers): Only return 0 if we processed
994 GENERAL_REGS.
995 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
996 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
997
a06660f7
DJ
9982005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
999
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
1010 prototypes.
1011
5a1f5858
DJ
10122005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
1013
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.
1018
e122f1f5
SE
10192005-07-01 Steve Ellcey <sje@cup.hp.com>
1020
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.
1026
d592fa2f
DJ
10272005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
1028
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.
1033
ccbd4912
MK
10342005-06-13 Mark Kettenis <kettenis@gnu.org>
1035
1036 * configure.ac: Simplify and improve check for socklen_t.
1037 * configure, config.in: Regenerate.
1038
f450004a
DJ
10392005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
1040
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.
1046
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
1052 unsigned char.
1053
1054 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
1055 char for buffers.
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):
1061 Likewise.
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,
1069 and read_auxv.
1070 (read_inferior_memory, write_inferior_memory): Update.
1071 * linux-low.h (struct linux_target_ops): Change type of breakpoint
1072 to unsigned char *.
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.
1078
eee84df1
DJ
10792005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
1080
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.
1085
45b134e5
OF
10862005-05-23 Orjan Friberg <orjanf@axis.com>
1087
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
1095 recognized targets.
1096
48d93c75
UW
10972005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1098
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.
1102
e013ee27
OF
11032005-05-12 Orjan Friberg <orjanf@axis.com>
1104
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
1113 reply packet.
1114 * server.c (main): Recognize 'Z' and 'z' packets.
1115
b0ded00b
UW
11162005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
1117
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.
1121
8643e2ad
DJ
11222005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
1123
1124 * proc-service.c (ps_lgetregs): Search all_processes instead of
1125 all_threads.
1126
fc620387
DJ
11272005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
1128
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.
1133
11342005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
1135
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.
1139
e0e76420
DJ
11402005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
1141
1142 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
1143
a1928bad
DJ
11442005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
1145
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
1158 unsigned long.
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
1167 thread_alive.
1168
dcdb98d2
DJ
11692005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
1170
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.
1175
bec39cab
AC
11762005-01-07 Andrew Cagney <cagney@gnu.org>
1177
1178 * configure.ac: Rename configure.in, require autoconf 2.59.
1179 * configure: Re-generate.
1180
434c4c77
DJ
11812004-12-08 Daniel Jacobowitz <dan@debian.org>
1182
1183 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
1184 LIBS when finished.
1185 * aclocal.m4: Regenerated.
1186 * configure: Regenerated.
1187
db1d3e1b
AS
11882004-11-21 Andreas Schwab <schwab@suse.de>
1189
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.
1195
1196 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
1197 srv_linux_thread_db to yes.
1198
43360365
JB
11992004-10-20 Joel Brobecker <brobecker@gnat.com>
1200
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.
1205
fd500816
DJ
12062004-10-16 Daniel Jacobowitz <dan@debian.org>
1207
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
1219 implementations.
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.
1227
f6de3c42
DJ
12282004-10-16 Daniel Jacobowitz <dan@debian.org>
1229
1230 * configure.in: Test for -rdynamic.
1231 * configure: Regenerated.
1232 * Makefile (INTERNAL_LDFLAGS): New.
1233 (gdbserver, gdbreplay): Use it.
1234
2c0fc042
AC
12352004-09-02 Andrew Cagney <cagney@gnu.org>
1236
1237 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
1238
075b3282
DJ
12392004-03-23 Daniel Jacobowitz <drow@mvista.com>
1240
1241 * linux-low.c (linux_wait): Clear all_processes list also.
1242
fa6a77dc
DJ
12432004-03-12 Daniel Jacobowitz <drow@mvista.com>
1244
1245 * linux-low.c: Include <errno.h>. Remove extern declaration of
1246 errno.
1247
6d782a97
DJ
12482004-03-12 Daniel Jacobowitz <drow@mvista.com>
1249
1250 * gdbreplay.c, server.h, utils.c: Update copyright years.
1251
3a7fb99b
DJ
12522004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
1253
1254 * server.c (main): Print child status or termination signal from
1255 variable 'signal', not 'sig'.
1256
c3e735a6
DJ
12572004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
1258
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.
1264 Update comment.
1265 (read_inferior_memory): Adapt prototype.
1266 * server.c (main): Return an error packet if
1267 read_inferior_memory() returns an error.
1268
a59d1c82
DJ
12692004-03-04 Daniel Jacobowitz <drow@mvista.com>
1270
1271 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
1272 Unify with other clean targets.
1273
dc3f8883
DJ
12742004-02-29 Daniel Jacobowitz <drow@mvista.com>
1275
1276 * server.c (handle_v_cont): Call set_desired_inferior.
1277
89a208da
DJ
12782004-02-29 Daniel Jacobowitz <drow@mvista.com>
1279
1280 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
1281
62ea82f5
DJ
12822004-02-29 Daniel Jacobowitz <drow@mvista.com>
1283
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.
1288
6910d122
DJ
12892004-02-29 Daniel Jacobowitz <drow@mvista.com>
1290
1291 * remote-utils.c (remote_open): Print a status notice after
1292 opening a TCP port.
1293 * server.c (attach_inferior): Print a status notice after
1294 attaching.
1295
12962004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
1297
1298 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
1299
c89dc5d4
DJ
13002004-02-26 Daniel Jacobowitz <drow@mvista.com>
1301
1302 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
1303 error packet.
1304 * server.c, target.h: Update copyright years.
1305
4b8dad4a
RM
13062004-02-25 Roland McGrath <roland@redhat.com>
1307
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.
1312
d7446758
JB
13132004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1314
1315 Committed by Jim Blandy <jimb@redhat.com>.
1316
1317 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 1318 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
1319 instead of GPR_SIZE to distiguish s390 and s390x targets.
1320
5544ad89
DJ
13212004-01-31 Daniel Jacobowitz <drow@mvista.com>
1322
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
1330 pointer.
1331
2a68b70e
DJ
13322004-01-30 Daniel Jacobowitz <drow@mvista.com>
1333
1334 * regcache.c (new_register_cache): Clear the allocated register
1335 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1336
64386c31
DJ
13372003-10-13 Daniel Jacobowitz <drow@mvista.com>
1338
1339 * linux-low.c (linux_resume): Take a struct thread_resume *
1340 argument.
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
1351 thread_resume *.
1352 (myresume): Delete macro.
1353
c938e9b0
L
13542003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1355
1356 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
1357 (uninstall): Support DESTDIR.
1358
7f313d07
BC
1359Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
1360
1361 * configure.srv: Add xscale*linux copy of arm*linux entry.
1362
3b2fc2ea
DJ
13632003-07-24 Daniel Jacobowitz <drow@mvista.com>
1364
1365 * linux-arm-low.c (arm_reinsert_addr): New function.
1366 (the_low_target): Add arm_reinsert_addr.
1367
1c0a559e
MK
13682003-07-08 Mark Kettenis <kettenis@gnu.org>
1369
1370 * mem-break.c: Remove whitespace at end of file.
1371
43d5792c
DJ
13722003-06-28 Daniel Jacobowitz <drow@mvista.com>
1373
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.
1380
c8a86edf
DJ
13812003-06-28 Daniel Jacobowitz <drow@mvista.com>
1382
1383 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
1384 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
1385
73d37363
DJ
13862003-06-20 Daniel Jacobowitz <drow@mvista.com>
1387
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.
1391
6ad8ae5c
DJ
13922003-06-17 Daniel Jacobowitz <drow@mvista.com>
1393
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.
1400
1581182a
MK
14012003-06-13 Mark Kettenis <kettenis@gnu.org>
1402
1403 From Kelley Cook <kelleycook@wideopenwest.com>:
1404 * configure.srv: Accept i[34567]86 variants.
1405
e5379b03
DJ
14062003-06-05 Daniel Jacobowitz <drow@mvista.com>
1407
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
1413 of kill.
1414 * target.h (struct target_ops): Add send_signal.
1415
2ff29de4
JB
14162003-05-29 Jim Blandy <jimb@redhat.com>
1417
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.
1422
254787d4
DJ
14232003-03-26 Daniel Jacobowitz <drow@mvista.com>
1424
1425 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
1426 (linux_wait_for_event, linux_init_signals): Likewise.
1427
94e10508
DJ
14282003-03-17 Daniel Jacobowitz <drow@mvista.com>
1429
1430 * configure.in: Check for stdlib.h.
1431 * configure: Regenerated.
1432 * config.in: Regenerated.
1433
4c0711e0
DJ
14342003-01-04 Andreas Schwab <schwab@suse.de>
1435
1436 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
1437
ef66e766
AC
14382003-01-02 Andrew Cagney <ac131313@redhat.com>
1439
1440 * Makefile.in: Remove obsolete code.
1441
a1358604
DJ
14422002-11-20 Daniel Jacobowitz <drow@mvista.com>
1443
1444 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
1445 defined(PT_FPR0_HI).
1446
23ce3b1c
DJ
14472002-11-17 Stuart Hughes <seh@zee2.com>
1448
1449 * linux-arm-low.c (arm_num_regs): Increase.
1450 (arm_regmap): Include status register.
1451
14522002-11-17 Daniel Jacobowitz <drow@mvista.com>
1453
1454 * linux-low.c (register_addr): Remove incorrect -1 check.
1455
a9fa9f7d
DJ
14562002-08-29 Daniel Jacobowitz <drow@mvista.com>
1457
1458 * linux-low.c (linux_create_inferior): Call setpgid. Return
1459 the new PID.
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
4b8dad4a 1468 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
1469 (attach_inferior): Set signal_pid.
1470
17574093
DJ
14712002-08-23 Daniel Jacobowitz <drow@mvista.com>
1472
1473 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
1474
14752002-08-20 Jim Blandy <jimb@redhat.com>
1476
1477 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1478 default for this.
1479
14802002-08-01 Andrew Cagney <cagney@redhat.com>
1481
1482 * Makefile.in: Make chill references obsolete.
1483
14842002-07-24 Kevin Buettner <kevinb@redhat.com>
1485
1486 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1487 * configure: Regenerate.
1488 * config.in: Regenerate.
1489
14902002-07-09 David O'Brien <obrien@FreeBSD.org>
1491
1492 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1493 (perror_with_name, remote_close, remote_open, expect, play): Static.
1494
14952002-07-04 Michal Ludvig <mludvig@suse.cz>
1496
4b8dad4a 1497 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
1498 byte offsets instead of an array of indexes.
1499 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
1500
15012002-06-13 Daniel Jacobowitz <drow@mvista.com>
1502
1503 * regcache.c: Add comment.
1504
15052002-06-11 Daniel Jacobowitz <drow@mvista.com>
1506
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.
1574 Fix recursive case.
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
1583 flag.
1584 (get_regcache): Fetch registers lazily. Add fetch argument
1585 and update all callers.
1586 (regcache_invalidate_one, regcache_invalidate): New
1587 functions.
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
1599 stderr.
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
1606 and general_thread.
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
1614 calls to mywait.
1615 * server.h: 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.
1620 * target.h: Update.
1621 (struct target_ops): New signal_pid method.
1622 (mywait): Removed macro, added prototype.
1623
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.
1633
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
1655 identifier.
1656
16572002-05-15 Daniel Jacobowitz <drow@mvista.com>
1658
1659 From Martin Pool <mbp@samba.org>:
1660 * server.c (gdbserver_usage): New function.
1661 (main): Call it.
1662
16632002-05-14 Daniel Jacobowitz <drow@mvista.com>
1664
1665 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
1666 stop_at -> stop_pc.
1667
16682002-05-04 Andrew Cagney <ac131313@redhat.com>
1669
1670 * Makefile.in: Remove obsolete code.
1671
16722002-04-24 Michal Ludvig <mludvig@suse.cz>
1673
1674 * linux-low.c (regsets_fetch_inferior_registers),
1675 (regsets_store_inferior_registers): Removed cast to int from
1676 ptrace() calls.
1677 * regcache.h: Added declaration of struct inferior_info.
1678
16792002-04-20 Daniel Jacobowitz <drow@mvista.com>
1680
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
1691 get_regcache.
1692 * regcache.h: Add prototypes.
1693 * server.h: Likewise.
1694
16952002-04-20 Daniel Jacobowitz <drow@mvista.com>
1696
1697 * mem-break.c: New file.
1698 * mem-break.h: New file.
1699 * Makefile.in: Add mem-break.o rule; update server.h
1700 dependencies.
1701 * inferiors.c (struct inferior_info): Add target_data
1702 member.
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
1716 handling members.
1717 * server.c (attach_inferior): Remove extra add_inferior
1718 call.
1719 * server.h: Include mem-break.h. Update inferior.c
1720 prototypes.
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
1726 definition.
1727
17282002-04-11 Daniel Jacobowitz <drow@mvista.com>
1729
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.
1735
17362002-04-09 Daniel Jacobowitz <drow@mvista.com>
1737
1738 * server.h: Include <string.h> if HAVE_STRING_H.
1739 * ChangeLog: Correct paths in last ChangeLog entry.
1740
17412002-04-09 Daniel Jacobowitz <drow@mvista.com>
1742
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,
1755 made static.
1756 (arm_cannot_store_register): Renamed from cannot_store_register,
1757 made static.
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,
1763 made static.
1764 (i386_cannot_store_register): Renamed from cannot_store_register,
1765 made static.
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,
1771 made static.
1772 (ia64_cannot_store_register): Renamed from cannot_store_register,
1773 made static.
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,
1779 made static.
1780 (m68k_cannot_store_register): Renamed from cannot_store_register,
1781 made static.
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,
1787 made static.
1788 (mips_cannot_store_register): Renamed from cannot_store_register,
1789 made static.
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,
1795 made static.
1796 (ppc_cannot_store_register): Renamed from cannot_store_register,
1797 made static.
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,
1803 made static.
1804 (s390_cannot_store_register): Renamed from cannot_store_register,
1805 made static.
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,
1811 made static.
1812 (sh_cannot_store_register): Renamed from cannot_store_register,
1813 made static.
1814 (the_low_target): New.
1815 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1816 (the_low_target): New.
1817
18182002-04-09 Daniel Jacobowitz <drow@mvista.com>
1819
1820 * Makefile.in: Add stamp-h target.
1821 * configure.in: Create stamp-h.
1822 * configure: Regenerated.
1823
18242002-04-09 Daniel Jacobowitz <drow@mvista.com>
1825
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
1830 dependencies.
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
1839 child dies.
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.
1859
18602002-04-09 Daniel Jacobowitz <drow@mvista.com>
1861
1862 * Makefile.in: Add WARN_CFLAGS. Update configury
1863 dependencies.
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.
1881 (fatal): Likewise.
This page took 0.549398 seconds and 4 git commands to generate.