*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / gdbserver / ChangeLog
CommitLineData
2d717e4f
DJ
12008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
2
3 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
4 (linux_kill, linux_detach): Clean up the process list.
5 * remote-utils.c (remote_open): Improve port number parsing.
6 (putpkt_binary, input_interrupt): Only send interrupts if the target
7 is running.
8 * server.c (extended_protocol): Make static.
9 (attached): Define earlier.
10 (exit_requested, response_needed, program_argv): New variables.
11 (target_running): New.
12 (start_inferior): Clear attached here.
13 (attach_inferior): Set attached here.
14 (require_running): Define.
15 (handle_query): Use require_running and target_running. Implement
16 "monitor exit".
17 (handle_v_attach, handle_v_run): New.
18 (handle_v_requests): Use require_running. Handle vAttach and vRun.
19 (gdbserver_usage): Update.
20 (main): Redo argument parsing. Handle --debug and --multi. Handle
21 --attach along with other options or after the port. Save
22 program_argv. Support no initial program. Resynchronize
23 communication with GDB after an error. Handle "monitor exit".
24 Use require_running and target_running. Always allow the extended
25 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
26 restart in extended mode.
27 * README: Refer to the GDB manual. Update --attach usage.
28
7407e2de
AS
292007-12-20 Andreas Schwab <schwab@suse.de>
30
31 * linux-low.c (STACK_SIZE): Define.
32 (linux_tracefork_child): Use it. Use __clone2 on ia64.
33 (linux_test_for_tracefork): Likewise.
34
b65d95c5
DJ
352007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
36
37 * linux-low.c (linux_wait_for_event): Update messages. Do not
38 reinsert auto-delete breakpoints.
39 * mem-break.c (struct breakpoint): Change return type of handler to
40 int.
41 (set_breakpoint_at): Update handler type.
42 (reinsert_breakpoint_handler): Return 1 instead of calling
43 delete_breakpoint.
44 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
45 setting a new one.
46 (check_breakpoints): Delete auto-delete breakpoints and return 2.
47 * mem-break.h (set_breakpoint_at): Update handler type.
48 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
49 * win32-low.c (auto_delete_breakpoint): New.
50 (get_child_debug_event): Use it.
51
4e799345
DJ
522007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
53
54 * configure.ac: Check for pread and pwrite.
55 * hostio.c (handle_pread): Fall back to lseek and read.
56 (handle_pwrite): Fall back to lseek and write.
57 * config.in, configure: Regenerated.
58
27524b67
DJ
592007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
60
61 * server.c (myresume): Add own_buf argument.
62 (main): Update calls.
63
a20d5e98
DJ
642007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
65
66 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
67 * remote-utils.c (remote_open): Do not call disable_async_io.
68 (block_async_io): Delete.
69 (unblock_async_io): Make static.
70 (initialize_async_io): New.
71 * server.c (handle_v_cont): Handle async I/O here.
72 (myresume): Likewise. Move other common resume tasks here...
73 (main): ... from here. Call initialize_async_io. Disable async
74 I/O before the main loop.
75 * server.h (initialize_async_io): Declare.
76 (block_async_io, unblock_async_io): Delete prototypes.
77 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
78
b79d787e
DJ
792007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
80
81 * remote-utils.c (readchar): Allow binary data in received messages.
82
d97903b2
PA
832007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
84
85 * win32-low.c (attaching): New global.
86 (win32_create_inferior): Clear the `attaching' global.
87 (win32_attach): Set the `attaching' global.
88 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
89 attaching. Only set a breakpoint at the entry point if not
90 attaching.
91
311de423
PA
922007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
93
94 * server.c (main): Don't report dll events on the initial
95 connection on attaches.
96
6c2d16d2
PA
972007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
98
99 * server.c (main): Relax numerical bases supported for the pid of
100 the --attach command line argument.
101
5ca906e6
PA
1022007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
103
104 * win32-low.c (win32_attach): Call OpenProcess before
105 DebugActiveProcess, not after. Add last error output to error
106 call.
107
9c6c8194
PA
1082007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
109
110 * win32-low.c (win32_get_thread_context)
111 (win32_set_thread_context): New functions.
112 (thread_rec): Use win32_get_thread_context.
113 (continue_one_thread, win32_resume): Use win32_set_thread_context.
114 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
115 field.
116
4d5d1aaa
PA
1172007-12-03 Leo Zayas
118 Pedro Alves <pedro_alves@portugalmail.pt>
119
120 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
121 global variables.
122 (child_add_thread): Minor cleanup.
123 (child_continue): Resume artificially suspended threads before
124 calling ContinueDebugEvent.
125 (suspend_one_thread): New.
126 (fake_breakpoint_event): New.
127 (get_child_debug_event): Change return type to int. Check here if
128 gdb sent an interrupt request. If a soft interrupt was requested,
129 fake a breakpoint event. Return 0 if there is no event to handle,
130 and 1 otherwise.
131 (win32_wait): Don't check here if gdb sent an interrupt request.
132 Ensure there is a valid event to handle.
133 (win32_request_interrupt): Add soft interruption method as last
134 resort.
135
c436e841
PA
1362007-12-03 Leo Zayas
137 Pedro Alves <pedro_alves@portugalmail.pt>
138
139 * win32-low.h (win32_thread_info): Add descriptions to the
140 structure members. Replace `suspend_count' counter by a
141 `suspended' flag.
142 * win32-low.c (thread_rec): Update condition of when to get the
143 context from the inferior. Rely on ContextFlags being set if it
144 has already been retrieved. Only suspend the inferior thread if
145 we haven't already. Warn if that fails.
146 (continue_one_thread): s/suspend_count/suspended/. Only call
147 ResumeThread once. Warn if that fails.
148
e7b5fa67
PA
1492007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
150
151 * win32-low.c (win32_wait): Don't read from the inferior when it
152 has already exited.
153
a385171d
PA
1542007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
155
156 * Makefile.in (win32_low_h): New variable.
157 (win32-low.o): Add dependency on $(win32_low_h).
158 (win32-arm-low.o, win32-i386-low.o): New rules.
159
f80c84b3
DJ
1602007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
161
162 * hostio.c: Correct copyright year.
163
a6b151f1
DJ
1642007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
165
166 * Makefile.in (OBS): Add hostio.o.
167 (hostio.o): New rule.
168 * server.h (handle_vFile): Declare.
169 * hostio.c: New file.
170 * server.c (handle_v_requests): Take packet_len and new_packet_len
171 for binary packets. Call handle_vFile.
172 (main): Update call to handle_v_requests.
173
f9387fc3
DJ
1742007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
175
176 * linux-low.c: Include <sched.h>.
177
51c2684e
DJ
1782007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
179
180 * linux-low.c (linux_tracefork_grandchild): New.
181 (linux_tracefork_child): Use clone.
182 (linux_test_for_tracefork): Use clone; allocate and free a stack.
183
75f83163
JB
1842007-10-31 Joel Brobecker <brobecker@adacore.com>
185
186 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
187
da5898ce
DJ
1882007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
189
190 * linux-low.c (handle_extended_wait): Handle unexpected signals.
191
24a09b5f
DJ
1922007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
193
194 * inferiors.c (change_inferior_id): Delete.
195 (add_pid_to_list, pull_pid_from_list): New.
196 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
197 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
198 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
199 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
200 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
201 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
202 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
203 (using_threads): Always set to 1.
204 (handle_extended_wait): New.
205 (add_process): Do not set TID.
206 (linux_create_inferior): Set must_set_ptrace_flags.
207 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
208 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
209 (linux_thread_alive): Rename TID argument to LWPID.
210 (linux_wait_for_process): Handle unknown processes. Do not use TID.
211 (linux_wait_for_event): Do not use TID or check using_threads. Update
212 call to dead_thread_notify. Call handle_extended_wait.
213 (linux_create_inferior): Use PTRACE_SETOPTIONS.
214 (send_sigstop): Delete sigstop_sent.
215 (wait_for_sigstop): Avoid TID.
216 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
217 (linux_test_for_tracefork): New.
218 (linux_lookup_signals): Use thread_db_active and
219 linux_supports_tracefork_flag.
220 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
221 * linux-low.h (get_process_thread): Avoid TID.
222 (struct process_ifo): Move thread_known and tid to the end. Remove
223 sigstop_sent.
224 (linux_attach_lwp, thread_db_init): Update prototypes.
225 * server.h (change_inferior_id): Delete prototype.
226 (add_pid_to_list, pull_pid_from_list): New prototypes.
227 * thread-db.c (thread_db_use_events): New.
228 (find_first_thread): Rename to...
229 (find_one_thread): ...this. Update callers and messages. Do not
230 call fatal. Check thread_db_use_events. Do not call
231 change_inferior_id or new_thread_notify.
232 (maybe_attach_thread): Update. Do not call new_thread_notify.
233 (thread_db_init): Set thread_db_use_events. Check use_events.
234 * utils.c (fatal, warning): Correct message prefix.
235
30ed0a8f
DJ
2362007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
237
238 * Makefile.in (clean): Remove new files.
239 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
240 (powerpc-64.o, powerpc-64.c): New rules.
241 * configure.srv: Use alternate register sets for powerpc64-*-linux*
242 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
243 with SPE.
244 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
245 SPE targets.
246 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
247 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
248 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
249 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
250 (target_regsets): Add AltiVec and SPE register sets.
251 * configure.ac: Check for AltiVec and SPE.
252 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
253 (ppc_fill_vrregset, ppc_store_vrregset): New.
254 (target_regsets): Add AltiVec register set.
255 * configure: Regenerated.
256
fd462a61
DJ
2572007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
258
259 * linux-low.c (O_LARGEFILE): Define.
260 (linux_read_memory): Use /proc/PID/mem.
261 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
262 * configure, config.in: Regenerated.
263
69f223ed
DJ
2642007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
265
266 * linux-low.c (linux_wait_for_event): Do not pass signals while
267 single-stepping.
268
aec18585
PA
2692007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
270
271 * win32-low.c (create_process): New.
272 (win32_create_inferior): Use create_process instead of
273 CreateProcess. If create_process failed retry appending an ".exe"
274 suffix. Store the GetLastError result immediatelly after
275 create_process calls and use it on the call to error.
276
34d86ddd
PA
2772007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
278
279 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
280
5a0e3bd0
JB
2812007-08-23 Joel Brobecker <brobecker@adacore.com>
282
283 * configure.ac: Switch license to GPLv3.
284
f88c79e6
MS
2852007-08-01 Michael Snyder <msnyder@access-company.com>
286
287 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
288
6b3d9b83
PA
2892007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
290
291 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
292 typedef.
293 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
294 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
295 CloseToolhelp32Snapshot.
296 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
297 CloseToolhelp32Snapshot.
298
c588c53c
MS
2992007-07-27 Michael Snyder <michael.snyder@access-company.com>
300
301 * server.c (main): Check for inferior exit before main loop.
302
aa0403d9
PA
3032007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
304
305 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
306 instead of on tmp_desc.
307
255e7678
DJ
3082007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
309 Daniel Jacobowitz <dan@codesourcery.com>
310
311 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
312 (add_thread): Minor cleanups.
313 (clear_inferiors): Move lower in the file. Clear the DLL
314 list.
315 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
316 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
317 (xml_escape_text): New.
318 * server.c (handle_query): Handle qXfer:libraries:read. Report it
319 for qSupported.
320 (handle_v_cont): Report errors.
321 (gdbserver_version): Update.
322 (main): Correct size of own_buf. Do not report initial DLL events.
323 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
324 (unloaded_dll, xml_escape_text): New.
325 * win32-low.c (enum target_waitkind): Update comments.
326 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
327 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
328 (win32_EnumProcessModules, win32_GetModuleInformation)
329 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
330 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
331 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
332 (win32_Module32First, win32_Module32Next, load_toolhelp)
333 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
334 (get_child_debug_event): Handle DLL events.
335 (win32_wait): Likewise.
336
0d37add9
DJ
3372007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
338
339 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
340 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
341
45e2715e
PA
3422007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
343
344 * win32-low.c (handle_output_debug_string): Ignore event if not
345 waiting.
346
c5674cf1
PA
3472007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
348
349 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
350
2bbe3cc1
DJ
3512007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
352
353 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
354
ae13219e
DJ
3552007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
356
357 * inferiors.c (change_inferior_id): Add comment.
358 * linux-low.c (check_removed_breakpoint): Add an early
359 prototype. Improve debug output.
360 (linux_attach): Doc update.
361 (linux_detach_one_process, linux_detach): Clean up before releasing
362 each process.
363 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
364 * linux-low.h (struct process_info): Doc improvement.
365 * mem-break.c (delete_all_breakpoints): New.
366 * mem-break.h (delete_all_breakpoints): New prototype.
367 * thread-db.c (find_first_thread): New.
368 (thread_db_create_event): Call it instead of
369 thread_db_find_new_threads. Clean up unused variables.
370 (maybe_attach_thread): Remove first thread handling.
371 (thread_db_find_new_threads): Use find_first_thread.
372 (thread_db_get_tls_address): Likewise.
373
4105de34
DJ
3742007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
375
376 * thread-db.c (thread_db_find_new_threads): Add prototype.
377 (thread_db_create_event): Check for the main thread before adding
378 a new thread.
379 (maybe_attach_thread): Only enable event reporting if TID == 0.
380 (thread_db_get_tls_address): Check for new threads.
381
2b876972
DJ
3822007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
383
384 * linux-low.c (linux_create_inferior): Try execv before execvp.
385 * spu-low.c (spu_create_inferior): Likewise.
386
7a245884
DJ
3872007-06-13 Mike Frysinger <vapier@gentoo.org>
388
389 * linux-low.c (linux_create_inferior): Change execv to execvp.
390 * spu-low.c (spu_create_inferior): Likewies.
391
117ce543
DJ
3922007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
393
394 * Makefile.in (clean): Clean new files instead of deleted ones.
395 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
396 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
397 rules.
398 * configure.srv: Specify XML files and new regformats for MIPS and
399 MIPS64 GNU/Linux.
400 * linux-mips-low.c (mips_num_regs): Set to only used registers.
401 (mips_regmap): Do not fetch $0. Remove unused registers. Add
402 an entry for the restart register.
403 (mips_cannot_fetch_register, mips_cannot_store_register)
404 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
405 register names to match the XML descriptions.
406 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
407 restart register instead of $0.
408
0e7f50da
UW
4092007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
410 Markus Deuling <deuling@de.ibm.com>
411
412 * remote-utils.c (decode_xfer_write): New function.
413 * server.h (decode_xfer_write): Add prototype.
414 * server.c (handle_query): Add PACKET_LEN argument. Support
415 qXfer:spu:read and qXfer:spu:write packets.
416 (main): Pass packet_len to handle_query.
417 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
418 * target.h (target_ops): Add qxfer_spu.
419
374c1d38
UW
4202007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
421
422 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
423 accessing non-seekable spufs files.
424
bb63802a
UW
4252007-05-16 Markus Deuling <deuling@de.ibm.com>
426
427 * server.c (handle_query): Add reply for qC packet.
428
7390519e
PA
4292007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
430 Leo Zayas <lerele@champenstudios@com>
431
432 * server.h (check_remote_input_interrupt_request): New function.
433 * remote_utils.c (INVALID_DESCRIPTOR): New define.
434 (remote_desc): Initialize with INVALID_DESCRIPTOR.
435 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
436 (check_remote_input_interrupt_request): New function.
437 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 438 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
439 winapi_GenerateConsoleCtrlEvent): New typedefs.
440 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
441 to 250 ms.
442 (win32_wait): Check for remote interrupt request
443 with check_remote_input_interrupt_request.
444 (win32_request_interrupt): New function.
445 (win32_target_op): Set request_interrupt to win32_request_interrupt.
446
34b34921
PA
4472007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
448
449 * win32-low.c (debug_registers_changed,
450 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
451 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
452 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
453 (thread_rec): Get context using the low target.
454 (child_add_thread): Call thread_added on the low target,
455 which does the same thing.
456 (regptr): Delete.
457 (do_initial_child_stuff): Remove debug registers references.
458 Set context using the low target. Resume threads after
459 setting the contexts.
460 (child_continue): Remove dead variable. Remove debug
461 registers references.
462 (child_fetch_inferior_registers): Go through the low target.
463 (do_child_store_inferior_registers): Remove.
464 (child_store_inferior_registers): Go through the low target.
465 (win32_resume): Remove debug registers references.
466 Set context using the low target.
467 (handle_exception): Change return type to void. Don't record
468 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
469 first chance exception.
470 (get_child_debug_event): Change return type to void. Remove
471 goto loop. Always return after waiting for debug event.
472 (win32_wait): Convert to switch statement. Handle spurious
473 events.
474
475 * win32-i386-low.c (debug_registers_changed,
476 debug_registers_used): New.
477 (initial_stuff): Rename to ...
478 (i386_initial_stuff): ... this. Clear debug registers
479 state variables.
480 (store_debug_registers): Delete.
481 (i386_get_thread_context): New.
482 (load_debug_registers): Delete.
483 (i386_set_thread_context): New.
484 (i386_thread_added): New.
485 (single_step): Rename to ...
486 (i386_single_step): ... this.
487 (do_fetch_inferior_registers): Rename to ...
488 (i386_fetch_inferior_register): ... this.
489 (i386_store_inferior_register): New.
490 (the_low_target): Adapt to new interface.
491
492 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
493 (arm_get_thread_context): New.
494 (arm_set_thread_context): New.
495 (regptr): New.
496 (do_fetch_inferior_registers): Rename to ...
497 (arm_fetch_inferior_register): ... this.
498 (arm_store_inferior_register): New.
499 (arm_wince_breakpoint): Reimplement as unsigned long.
500 (arm_wince_breakpoint_len): Define.
501 (the_low_target): Adapt to new interface.
502
503 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
504 load_debug_registers. Add get_thread_context, set_thread_context,
505 thread_added and store_inferior_register. Rename
506 fetch_inferior_registers to fetch_inferior_register.
507 (regptr): Remove declaration.
508
dd6953e1
PA
5092007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
510
511 * linux-low.c (linux_detach): Change return type to int. Return 0.
512 * spu-low.c (spu_detach): Likewise.
513
444d6139
PA
5142007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
515
516 * target.h (target_ops): Change return type of detach to int.
517 Add join.
518 (join_inferior): New.
519 * server.c (main): Don't skip detach support on mingw32.
520 If the inferior doesn't support detaching return error.
521 Call join_inferior instead of using waitpid.
522 * linux-low.c (linux_join): New.
523 (linux_target_op): Add linux_join.
524 * spu-low.c (spu_join): New.
525 (spu_target_ops): Add spu_join.
526 * win32-low.c (win32_detach): Adapt to new interface.
527 Reopen current_process_handle before detaching. Issue a child
528 resume before detaching.
529 (win32_join): New.
530 (win32_target_op): Add win32_join.
531
1d5315fe
PA
5322007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
533
534 * win32-low.c (win32-attach): Fix return value.
535 * target.h (target_ops): Describe ATTACH return values.
536
bf914831
PA
5372007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
538
539 * win32-low.c (GETPROCADDRESS): Define.
540 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
541 (winapi_DebugSetProcessKillOnExit): Likewise.
542 (win32_create_inferior): Force usage of ansi CreateProcessA.
543 (win32_attach): Use GETPROCADDRESS.
544 (win32_detach): Likewise.
545
f72f3e60
PA
5462007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
547
548 * win32-low.c (win32_wait): Don't use WSTOPSIG.
549
ed50f18f
PA
5502007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
551
552 * win32-low.c: Commit leftover changes from 2007-03-29.
553
0c2ead7e
DJ
5542007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
555
556 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
557 fields short instead of int. Add explicit padding.
558 (i387_cache_to_fsave): Remove unnecessary casts.
559 (i387_fsave_to_cache): Doc fix.
560 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
561
73725ff3
DJ
5622007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
563
564 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
565 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
566
d99f33d8
PA
5672007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
568
569 * configure.srv (arm*-*-mingw32ce*): Move near the other
570 arm targets.
571
68070c10
PA
5722007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
573
2482afc6 574 * configure.ac: Add errno checking.
68070c10
PA
575 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
576 sys/file.h and malloc.h.
577 (AC_CHECK_DECLS): Add perror.
578 (srv_mingwce): Handle.
2482afc6 579 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
580 win32-i386-low.o to srv_tgtobj.
581 (i[34567]86-*-mingw*): Likewise.
582 (arm*-*-mingw32ce*): Add case.
583 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
584 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
585 [__MINGW32CE__] (strerror): New function.
586 [__MINGW32CE__] (errno): Define to GetLastError.
587 [__MINGW32CE__] (COUNTOF): New macro.
588 (remote_open): Remove extra close call.
589 * mem-break.c (delete_breakpoint_at): New function.
590 * mem-break.h (delete_breakpoint_at): Declare.
591 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
592 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
593 [USE_WIN32API] (read, write): Add char* casts.
594 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
595 * server.h: Include wincecompat.h on Windows CE.
596 [HAVE_ERRNO_H]: Check.
597 (perror): Declare if not declared.
598 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
599 (perror_with_name): Remove errno declaration.
600 * wincecompat.h: New.
601 * wincecompat.c: New.
602 * win32-low.h: New.
603 * win32-arm-low.c: New.
604 * win32-i386-low.c: New.
605 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
606 (OUTMSG2): Make it safe.
607 (_T): New macro.
608 (COUNTOF): New macro.
609 (NUM_REGS): Get it from the low target.
610 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
611 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
612 (thread_rec): Let low target handle debug registers.
613 (child_add_thread): Likewise.
614 (child_init_thread_list): Likewise.
615 (continue_one_thread): Likewise.
616 (regptr): New.
617 (do_child_fetch_inferior_registers): Move to ...
618 * win32-i386-low.c: ... here, and rename to ...
619 (do_fetch_inferior_registers): ... this.
620 * win32-low.c (child_fetch_inferior_registers):
621 Go through the low target.
622 (do_child_store_inferior_registers): Use regptr.
623 (strwinerror): New function.
624 (win32_create_inferior): Handle Windows CE.
625 Use strwinerror instead of strerror on Windows error
626 codes. Add program to the error output.
627 Don't close the main thread handle on Windows CE.
628 (win32_attach): Use coredll.dll on Windows CE.
629 (win32_kill): Close current process and current
630 thread handles.
631 (win32_detach): Use coredll.dll on Windows CE.
632 (win32_resume): Let low target handle debug registers, and
633 step request.
634 (handle_exception): Add/Remove initial breakpoint. Avoid
635 non-existant WSTOPSIG on Windows CE.
636 (win32_read_inferior_memory): Cast to remove warning.
637 (win32_arch_string): Go through the low target.
638 (initialize_low): Call set_breakpoint_data with the low
639 target's breakpoint.
640 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
641 FOP_REGNUM, mappings): Move to ...
642 * win32-i386-low.c: ... here.
643 * win32-low.c (win32_thread_info): Move to ...
644 * win32-low.h: ... here.
645 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
646 win32-arm-low.c and wincecompat.c.
647 (all:): Add $EXEEXT.
648 (install-only:): Likewise.
649 (gdbserver:): Likewise.
650 (gdbreplay:): Likewise.
651 * config.in: Regenerate.
652 * configure: Regenerate.
653
41093d81
PA
6542007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
655
656 * win32-low.c: Rename typedef thread_info to
657 win32_thread_info throughout.
658
544afa54
PA
6592007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
660
661 * win32-i386-low.c: Rename to ...
662 * win32-low.c: ... this.
663 * configure.srv: Replace win32-i386-low.o with win32-low.o.
664 * Makefile.in: Likewise.
665
bce7165d
PA
6662007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
667
668 * remote-utils.c (monitor_output): Constify msg parameter.
669 * server.h (monitor_output): Likewise.
670 * win32-i386-low.c (handle_output_debug_string): New.
671 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
672 handle_output_debug_string.
673 (get_child_debug_event): Likewise.
674
506c7aa0
DJ
6752007-03-27 Mat Hostetter <mat@lcs.mit.edu>
676
677 * server.c (main): Correct strtoul check.
678
42c81e2a
DJ
6792007-03-27 Jon Ringle <jon@ringle.org>
680
681 * linux-low.c: Check __ARCH_HAS_MMU__ also.
682
9453113a
DJ
6832007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
684
685 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
686
64a69107
DJ
6872007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
688
689 * terminal.h: Check HAVE_SGTTY_H.
690
6912007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
692
693 * remote-utils.c (remote_open): Print out the assigned port number.
694
c74d0ad8
DJ
6952007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
696
697 * remote-utils.c (monitor_output): New function.
698 * server.c (debug_threads): Define here.
699 (monitor_show_help): New function.
700 (handle_query): Handle qRcmd.
701 (main): Do not handle 'd' packet.
702 * server.h (debug_threads, remote_debug, monitor_output): Declare.
703 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
704 of debug_threads.
705
de7c3b4a
PA
7062007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
707
708 * Makefile.in (EXEEXT): New.
709 (clean): Use $(EXEEXT).
710
ef57601b
PA
7112007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
712
713 * target.h (target_ops): Rename send_signal to request_interrupt,
714 and remove enum target_signal parameter.
715 * linux-low.c (linux_request_interrupt): Rename from
716 linux_send_signal, and always send SIGINT.
717 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
718 and always send SIGINT.
719 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
720 of send_signal.
721 (input_interrupt): Likewise.
722
820f2bda
PA
7232007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
724
725 * server.c (get_features_xml): Check if target implemented
726 arch_string.
727 * win32-i386-low.c (win32_arch_string): New.
728 (win32_target_ops): Add win32_arch_string as arch_string member.
729
ab39bf24
UW
7302007-02-22 Markus Deuling <deuling@de.ibm.com>
731
732 * spu-low.c (spu_arch_string): New.
733 (spu_target_ops): Add spu_arch_string.
734
61ff6e04
DJ
7352007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
736
737 * remote-utils.c: Remove HAVE_TERMINAL_H check.
738 * configure.ac: Do not check for terminal.h.
739 * configure, config.in: Regenerated.
740
fb1e4ffc
DJ
7412007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
742
743 * Makefile.in (OBS): Add $(XML_BUILTIN).
744 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
745 (clean): Update.
746 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
747 (arm-with-iwmmxt.c): New.
748 * config.in, configure: Regenerate.
749 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
750 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
751 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
752 (arm*-*-linux*): Add iWMMXt and regset support.
753 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
754 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
755 (arm_store_wmmxregset, target_regsets): New.
756 * server.c (get_features_xml): Take annex argument. Check builtin
757 XML documents.
758 (handle_query): Handle multiple annexes.
759
0f48aa01
DJ
7602007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
761
762 * remote-utils.c [USE_WIN32API] (read, write): Define.
763 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
764 write.
765
23181151
DJ
7662007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
767
768 * linux-i386-low.c (the_low_target): Set arch_string.
769 * linux-x86-64-low.c (the_low_target): Likewise.
770 * linux-low.c (linux_arch_string): New.
771 (linux_target_ops): Add it.
772 * linux-low.h (struct linux_target_ops): Add arch_string.
773 * server.c (write_qxfer_response): Use const void * for DATA.
774 (get_features_xml): New.
775 (handle_query): Handle qXfer:features:read. Report it for qSupported.
776 * target.h (struct target_ops): Add arch_string method.
777
9d606399
DJ
7782007-01-03 Denis Pilat <denis.pilat@st.com>
779 Daniel Jacobowitz <dan@codesourcery.com>
780
781 * linux-low.c (linux_kill): Handle being called with no threads.
782 * win32-i386-low.c (win32_kill): Likewise.
783 (get_child_debug_event): Clear current_process_handle.
784
7852006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
786 Daniel Jacobowitz <dan@codesourcery.com>
787
788 * remote-utils.c (remote_open): Check the type of specified
789 serial port devices before opening them.
790 * server.c (main): Kill the inferior if an error occurs during
791 the first remote_open.
792
a5e13d24
DJ
7932006-12-05 Markus Deuling <deuling@de.ibm.com>
794
795 * README: Update supported targets.
796
186947f7
DJ
7972006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
798
799 * Makefile.in (clean): Remove reg-mips64.c.
800 (reg-mips64.c, reg-mips64.o): New rules.
801 * configure.srv: Handle mips64. Include regset support for mips.
802 * linux-mips-low.c (union mips_register): New.
803 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
804 (mips_breakpoint, mips_breakpoint_at): Use int.
805 (mips_collect_register, mips_supply_register)
806 (mips_collect_register_32bit, mips_supply_register_32bit)
807 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
808 (mips_store_fpregset, target_regsets): New.
809 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
810
a13e2c95
UW
8112006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
812
813 * configure.srv: Add target "spu*-*-*".
814 * Makefile.in (clean): Remove reg-spu.c.
815 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
816 * spu-low.c: New file.
817
cb7283db
DJ
8182006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
819
820 * configure.ac: Correct td_thr_tls_get_addr test.
821 * configure: Regenerated.
822
89be2091
DJ
8232006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
824
825 * linux-low.c (linux_wait_for_event): Reformat. Use the
826 pass_signals array.
827 * remote-utils.c (decode_address_to_semicolon): New.
828 * server.c (pass_signals, handle_general_set): New.
829 (handle_query): Mention QPassSignals for qSupported.
830 (main): Call handle_general_set.
831 * server.h (pass_signals, decode_address_to_semicolon): New.
832
000ef4f0
DJ
8332006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
834
835 * server.c (handle_query): Correct error handling for read_auxv.
836
b7149293
UW
8372005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
838
839 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
840 and srv_linux_thread_db to yes.
841 * linux-s390-low.c (s390_fill_gregset): New function.
842 (target_regsets): Define data structure.
843
dae5f5cf
DJ
8442006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
845
846 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
847 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
848 * config.in, configure: Regenerated.
849 * inferiors.c (gdb_id_to_thread): New function.
850 (gdb_id_to_thread_id): Use it.
851 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
852 * linux-low.h (struct process_info): Add th member.
853 (thread_db_get_tls_address): New prototype.
854 * remote-utils.c (decode_address): Make non-static.
855 * server.c (handle_query): Handle qGetTLSAddr.
856 * server.h (gdb_id_to_thread, decode_address): New prototypes.
857 * target.h (struct target_ops): Add get_tls_address.
858 * thread-db.c (maybe_attach_thread): Save the thread handle.
859 (thread_db_get_tls_address): New.
860
32ca6d61
DJ
8612006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
862
863 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
864 (linux_resume_one_process): Take a siginfo_t *. Update all
865 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
866 (struct pending_signals): Add a siginfo_t.
867 (linux_wait_for_process): Always set last_status.
868 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
869 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
870 * linux-low.h (struct process_info): Add last_status.
871
5ffff7c1
DJ
8722006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
873
874 * remote-utils.c (try_rle): New function.
875 (putpkt_binary): Use it.
876
8695c747
DJ
8772006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
878
879 * Makefile.in (clean): Clean reg-x86-64-linux.c.
880 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
881 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
882 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
883 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
884 point registers.
885
290fadea
RS
8862006-08-08 Richard Sandiford <richard@codesourcery.com>
887
888 * server.c (terminal_fd): New variable.
889 (old_foreground_pgrp): Likewise.
890 (restore_old_foreground_pgrp): New function.
891 (start_inferior): Record the terminal file descriptor in terminal_fd
892 and its original foreground group in old_foreground_pgrp. Register
893 restore_old_foreground_pgrp with atexit().
894
9f2e1e63
DJ
8952006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
896
897 * server.c (handle_query): Correct qPart to qXfer.
898
b80864fb
DJ
8992006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
900
901 * configure.ac: Check for more headers which are missing on
902 Windows. Automatically supply -lwsock32 and USE_WIN32API.
903 * configure.srv: Add Cygwin and mingw32.
904 * remote-utils.c: Don't include headers unconditionally which
905 are missing on mingw32. Include <winsock.h> for mingw32.
906 (remote_open): Adjust for mingw32 support. Flush
907 standard error after writing to it.
908 (remote_close, putpkt_binary, input_interrupt, block_async_io)
909 (unblock_async_io, enable_async_io, disable_async_io)
910 (readchar, getpkt): Update for Winsock support.
911 (prepare_resume_reply): Expect a protocol signal number.
912 * server.c: Disable <sys/wait.h> on mingw32.
913 (start_inferior): Adjust for mingw32 support. Flush
914 standard error after writing to it.
915 (attach_inferior): Likewise. Use protocol signal
916 numbers.
917 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
918 and names.
919 * win32-i386-low.c: New file.
920 * Makefile.in (XM_CLIBS): Set.
921 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
922 (win32-i386-low.o): New dependency rule.
923 * linux-low.c (linux_wait): Use target signal numbers.
924 * target.h (struct target_ops): Doc fix.
925 * server.h (target_signal_to_name): New prototype.
926 * gdbreplay.c: Don't include headers unconditionally which
927 are missing on mingw32. Include <winsock.h> for mingw32.
928 (remote_close, remote_open): Adjust for Winsock support.
929 * configure, config.in: Regenerated.
930
0876f84a
DJ
9312006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
932
933 * server.c (decode_xfer_read, write_qxfer_response): New.
934 (handle_query): Take a packet length argument. Handle
935 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
936 the qSupported response.
937 (main): Update call to handle_query.
938
01f9e8fa
DJ
9392006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
940
941 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
942 (putpkt_binary): Renamed from putpkt and adjusted for binary
943 data.
944 (putpkt): New wrapper for putpkt_binary.
945 (readchar): Don't mask off the high bit.
946 (decode_X_packet): New function.
947 * server.c (main): Call putpkt_binary if a handler sets the packet
948 length. Save the length of the incoming packet. Handle 'X'.
949 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
950
be2a5f71
DJ
9512006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
952
953 * server.c (handle_query): Handle qSupported.
954
ea025f5f
DJ
9552006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
956
957 * remote-utils.c (all_symbols_looked_up): New variable.
958 (look_up_one_symbol): Check it.
959 * server.h (look_up_one_symbol): New declaration.
960 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
961
9308fc88
DJ
9622006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
963
964 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 965 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
966 (PTRACE_GET_THREAD_AREA): Define.
967 (ps_get_thread_area): New function.
968
52fb6437
NS
9692006-05-09 Nathan Sidwell <nathan@codesourcery.com>
970
971 * configure.srv (m68k*-*-uclinux*): New target.
972 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
973 (linux_resume_one_process): Remove extraneous cast.
974 (linux_read_offsets): New.
975 (linux_target_op): Add linux_read_offsets on mmuless systems.
976 * server.c (handle_query): Add qOffsets logic.
977 * target.h (struct target_ops): Add read_offsets.
978
21b0f40c
DJ
9792006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
980
981 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
982 (PTRACE_GET_THREAD_AREA): Define.
983 (ps_get_thread_area): New function.
984 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
985 (linux-x86-64-low.o): Update.
986
0050a760
DJ
9872006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
988
989 * configure.ac: Remove checks for prfpregset_t.
990 * gdb_proc_service.h: New file.
991 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
992 new "gdb_proc_service.h".
993 * proc-service.c: Likewise.
994 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
995 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
996 * Makefile.in (gdb_proc_service_h): Updated.
997 * configure, config.in: Regenerated.
998
b92a518e
DJ
9992006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
1000
1001 * remote-utils.c (prepare_resume_reply): Move declaration
1002 of gdb_id_from_wait to the top of the block.
1003
545587ee
DJ
10042006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
1005
1006 * linux-low.c (regsets_store_inferior_registers): Read the regset
1007 from the target before filling it.
1008
9db87ebd
DJ
10092006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1010
1011 * server.c (attach_inferior): Return SIGTRAP for a successful
1012 attach.
1013
dd24457d
DJ
10142006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1015
1016 * Makefile.in (OBS): Add version.o.
1017 (STAGESTUFF): Delete.
1018 (version.o): Add dependencies.
1019 (version.c): Replace rule.
1020 (clean): Remove version.c.
1021 * server.c (gdbserver_version): New.
1022 (gdbserver_usage): Use printf.
1023 (main): Handle --version and --help.
1024 * server.h (version, host_name): Add declarations.
1025
6f0f660e
EZ
10262005-12-23 Eli Zaretskii <eliz@gnu.org>
1027
1028 * linux-arm-low.c:
1029 * linux-arm-low.c:
1030 * inferiors.c:
1031 * i387-fp.h:
1032 * i387-fp.c:
1033 * gdbreplay.c:
1034 * regcache.c:
1035 * proc-service.c:
1036 * mem-break.h:
1037 * mem-break.c:
1038 * linux-x86-64-low.c:
1039 * linux-sh-low.c:
1040 * linux-s390-low.c:
1041 * linux-ppc64-low.c:
1042 * linux-ppc-low.c:
1043 * linux-mips-low.c:
1044 * linux-m68k-low.c:
1045 * linux-m32r-low.c:
1046 * linux-low.h:
1047 * linux-low.c:
1048 * linux-ia64-low.c:
1049 * linux-i386-low.c:
1050 * linux-crisv32-low.c:
1051 * thread-db.c:
1052 * terminal.h:
1053 * target.h:
1054 * target.c:
1055 * server.h:
1056 * server.c:
1057 * remote-utils.c:
1058 * regcache.h:
1059 * utils.c:
1060 * Makefile.in:
1061 * configure.ac:
1062 * gdbserver.1: Add (C) after Copyright. Update the FSF
1063 address.
1064
9d1fb177
DJ
10652005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1066
1067 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
1068 (arm_breakpoint_at): Recognize both breakpoints.
1069 (the_low_target): Use the correct breakpoint instruction.
1070
011a70c2
DJ
10712005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
1072
1073 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
1074 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
1075 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
1076 (the_low_target): Update.
1077
7fb85e41
AS
10782005-10-25 Andreas Schwab <schwab@suse.de>
1079
1080 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
1081
1082 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
1083 (ia64_num_regs): Reduce to 462.
1084
3db0444b
DJ
10852005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
1086
1087 * acinclude.m4: Correct quoting.
1088 * aclocal.m4: Regenerated.
1089
1090 Suggested by SZOKOVACS Robert <szo@ies.hu>:
1091 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
1092 (thread_db_init): Call thread_db_err_str.
1093 * configure.ac: Check for TD_VERSION.
1094 * config.in, configure: Regenerated.
1095
bee0189a
DJ
10962005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1097
1098 * server.h (error, fatal, warning): Add ATTR_FORMAT.
1099
e9d25b98
DJ
11002005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
1101
1102 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
1103 is not available. Define HAVE_PTRACE_GETREGS if it is.
1104 * config.in, configure: Regenerated.
1105 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
1106 * linux-i386-low.c, linux-m68k-low.c: Update to use
1107 HAVE_PTRACE_GETREGS.
1108 * linux-low.c (regsets_fetch_inferior_registers)
1109 (regsets_store_inferior_registers): Only return 0 if we processed
1110 GENERAL_REGS.
1111 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
1112 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
1113
a06660f7
DJ
11142005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
1115
1116 * inferiors.c (struct thread_info): Add gdb_id.
1117 (add_thread): Add gdb_id argument.
1118 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
1119 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
1120 calls to add_thread.
1121 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
1122 * server.c (handle_query): Use thread_to_gdb_id.
1123 (handle_v_cont, main): Use gdb_id_to_thread_id.
1124 * server.h (add_thread): Update prototype.
1125 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
1126 prototypes.
1127
5a1f5858
DJ
11282005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
1129
1130 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
1131 left-padded registers.
1132 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
1133 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
1134
e122f1f5
SE
11352005-07-01 Steve Ellcey <sje@cup.hp.com>
1136
1137 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
1138 * configure: Regenerate.
1139 * config.in: Regenerate.
1140 * server.h (NEED_DECLARATION_STRERROR):
1141 Replace with !HAVE_DECL_STRERROR.
1142
d592fa2f
DJ
11432005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
1144
1145 * linux-low.c (linux_wait, linux_send_signal): Don't test
1146 an unsigned long variable for > 0 if it could be MAX_ULONG.
1147 * server.c (myresume): Likewise.
1148 * target.c (set_desired_inferior): Likewise.
1149
ccbd4912
MK
11502005-06-13 Mark Kettenis <kettenis@gnu.org>
1151
1152 * configure.ac: Simplify and improve check for socklen_t.
1153 * configure, config.in: Regenerate.
1154
f450004a
DJ
11552005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
1156
1157 * acconfig.h: Remove.
1158 * configure.ac: Add a test for socklen_t. Use three-argument
1159 AC_DEFINE throughout.
1160 * config.in: Regenerated using autoheader 2.59.
1161 * configure: Regenerated.
1162
1163 * gdbreplay.c (socklen_t): Provide a default.
1164 (remote_open): Use socklen_t.
1165 * remote-utils.c (socklen_t): Provide a default.
1166 (remote_open): Use socklen_t.
1167 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
1168 unsigned char.
1169
1170 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
1171 char for buffers.
1172 * linux-low.c (linux_read_memory, linux_write_memory)
1173 (linux_read_auxv): Likewise.
1174 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
1175 (check_mem_write): Likewise.
1176 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
1177 Likewise.
1178 * regcache.c (struct inferior_rgcache_data, registers_to_string)
1179 (registers_from_string, register_data): Likewise.
1180 * server.c (handle_query, main): Likewise.
1181 * server.h (convert_ascii_to_int, convert_int_to_ascii)
1182 (decode_M_packet): Likewise.
1183 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
1184 * target.h (struct target_ops): Update read_memory, write_memory,
1185 and read_auxv.
1186 (read_inferior_memory, write_inferior_memory): Update.
1187 * linux-low.h (struct linux_target_ops): Change type of breakpoint
1188 to unsigned char *.
1189 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
1190 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
1191 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
1192 linux-s390-low.c, linux-sh-low.c: Update for changes in
1193 read_inferior_memory and the_low_target->breakpoint.
1194
eee84df1
DJ
11952005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
1196
1197 * Makefile.in (SFILES): Add linux-ppc64-low.c.
1198 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
1199 * configure.srv: Add powerpc64-*-linux*.
1200 * linux-ppc64-low.c: New file.
1201
45b134e5
OF
12022005-05-23 Orjan Friberg <orjanf@axis.com>
1203
1204 * linux-cris-low.c: New file with support for CRIS.
1205 * linux-crisv32-low.c: Ditto for CRISv32.
1206 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
1207 (clean): Add reg-cris.c and reg-crisv32.c.
1208 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
1209 reg-crisv32.o, and reg-crisv32.c to make rules.
1210 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
1211 recognized targets.
1212
48d93c75
UW
12132005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1214
1215 * linux-low.c (fetch_register): Ensure buffer size is a multiple
1216 of sizeof (PTRACE_XFER_TYPE).
1217 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
1218
e013ee27
OF
12192005-05-12 Orjan Friberg <orjanf@axis.com>
1220
1221 * target.h (struct target_ops): Add insert_watchpoint,
1222 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
1223 pointers for hardware watchpoint support.
1224 * linux-low.h (struct linux_target_ops): Ditto.
1225 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
1226 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
1227 to linux_target_ops.
1228 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
1229 reply packet.
1230 * server.c (main): Recognize 'Z' and 'z' packets.
1231
b0ded00b
UW
12322005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
1233
1234 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
1235 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
1236 (the_low_target): Add new members.
1237
8643e2ad
DJ
12382005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
1239
1240 * proc-service.c (ps_lgetregs): Search all_processes instead of
1241 all_threads.
1242
fc620387
DJ
12432005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
1244
1245 * server.c (start_inferior): Change return type to int.
1246 (attach_inferior): Change sigptr to int *.
1247 (handle_v_cont, handle_v_requests): Change signal to int *.
1248 (main): Change signal to int.
1249
12502005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
1251
1252 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
1253 * configure.srv: Add m32r*-*-linux*.
1254 * linux-m32r-low.c: New file.
1255
e0e76420
DJ
12562005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
1257
1258 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
1259
a1928bad
DJ
12602005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
1261
1262 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
1263 Take unsigned long arguments for PIDs.
1264 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
1265 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
1266 (wait_for_sigstop, linux_resume_one_process)
1267 (regsets_fetch_inferior_registers, linux_send_signal)
1268 (linux_read_auxv): Likewise. Update the types of variables holding
1269 PIDs. Update format string specifiers.
1270 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
1271 * remote-utils.c (prepare_resume_reply): Likewise.
1272 * server.c (cont_thread, general_thread, step_thread)
1273 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
1274 unsigned long.
1275 (handle_query): Update format specifiers.
1276 (handle_v_cont, main): Use strtoul for thread IDs.
1277 * server.h (struct inferior_list_entry): Use unsigned long for ID.
1278 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
1279 (general_thread, step_thread, thread_from_wait)
1280 (old_thread_from_wait): Update.
1281 * target.h (struct thread_resume): Use unsigned long for THREAD.
1282 (struct target_ops): Use unsigned long for arguments to attach and
1283 thread_alive.
1284
dcdb98d2
DJ
12852005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
1286
1287 * acinclude.m4: Include bfd/bfd.m4 directly.
1288 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
1289 <agriffis@toolchain.org>.
1290 * aclocal.m4, configure: Regenerated.
1291
bec39cab
AC
12922005-01-07 Andrew Cagney <cagney@gnu.org>
1293
1294 * configure.ac: Rename configure.in, require autoconf 2.59.
1295 * configure: Re-generate.
1296
434c4c77
DJ
12972004-12-08 Daniel Jacobowitz <dan@debian.org>
1298
1299 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
1300 LIBS when finished.
1301 * aclocal.m4: Regenerated.
1302 * configure: Regenerated.
1303
db1d3e1b
AS
13042004-11-21 Andreas Schwab <schwab@suse.de>
1305
1306 * linux-m68k-low.c (m68k_num_gregs): Define.
1307 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
1308 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
1309 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
1310 (m68k_breakpoint_at): New. Add to the_low_target.
1311
1312 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
1313 srv_linux_thread_db to yes.
1314
43360365
JB
13152004-10-20 Joel Brobecker <brobecker@gnat.com>
1316
1317 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
1318 (ARCH_SET_FS): Likewise.
1319 (ARCH_GET_FS): Likewise.
1320 (ARCH_GET_GS): Likewise.
1321
fd500816
DJ
13222004-10-16 Daniel Jacobowitz <dan@debian.org>
1323
1324 * linux-i386-low.c (ps_get_thread_area): New.
1325 * linux-x86-64-low.c (ps_get_thread_area): New.
1326 * linux-low.c: Include <sys/syscall.h>.
1327 (linux_kill_one_process): Don't kill the first thread here.
1328 (linux_kill): Kill the first thread here.
1329 (kill_lwp): New function.
1330 (send_sigstop, linux_send_signal): Use it.
1331 * proc-service.c: Clean up #ifdefs.
1332 (fpregset_info): Delete.
1333 (ps_lgetregs): Update and enable implementation.
1334 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
1335 implementations.
1336 * remote-utils.c (struct sym_cache, symbol_cache): New.
1337 (input_interrupt): Print a clearer message.
1338 (async_io_enabled): New variable.
1339 (enable_async_io, disable_async_io): Use it. Update comments.
1340 (look_up_one_symbol): Use the symbol cache.
1341 * thread-db.c (thread_db_look_up_symbols): New function.
1342 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
1343
f6de3c42
DJ
13442004-10-16 Daniel Jacobowitz <dan@debian.org>
1345
1346 * configure.in: Test for -rdynamic.
1347 * configure: Regenerated.
1348 * Makefile (INTERNAL_LDFLAGS): New.
1349 (gdbserver, gdbreplay): Use it.
1350
2c0fc042
AC
13512004-09-02 Andrew Cagney <cagney@gnu.org>
1352
1353 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
1354
075b3282
DJ
13552004-03-23 Daniel Jacobowitz <drow@mvista.com>
1356
1357 * linux-low.c (linux_wait): Clear all_processes list also.
1358
fa6a77dc
DJ
13592004-03-12 Daniel Jacobowitz <drow@mvista.com>
1360
1361 * linux-low.c: Include <errno.h>. Remove extern declaration of
1362 errno.
1363
6d782a97
DJ
13642004-03-12 Daniel Jacobowitz <drow@mvista.com>
1365
1366 * gdbreplay.c, server.h, utils.c: Update copyright years.
1367
3a7fb99b
DJ
13682004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
1369
1370 * server.c (main): Print child status or termination signal from
1371 variable 'signal', not 'sig'.
1372
c3e735a6
DJ
13732004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
1374
1375 * linux-low.c (linux_read_memory): Change return type to
1376 int. Check for and return error from ptrace().
1377 * target.c (read_inferior_memory): Change return type to int. Pass
1378 back return status from the_target->read_memory().
1379 * target.h (struct target_ops): Adapt *read_memory() prototype.
1380 Update comment.
1381 (read_inferior_memory): Adapt prototype.
1382 * server.c (main): Return an error packet if
1383 read_inferior_memory() returns an error.
1384
a59d1c82
DJ
13852004-03-04 Daniel Jacobowitz <drow@mvista.com>
1386
1387 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
1388 Unify with other clean targets.
1389
dc3f8883
DJ
13902004-02-29 Daniel Jacobowitz <drow@mvista.com>
1391
1392 * server.c (handle_v_cont): Call set_desired_inferior.
1393
89a208da
DJ
13942004-02-29 Daniel Jacobowitz <drow@mvista.com>
1395
1396 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
1397
62ea82f5
DJ
13982004-02-29 Daniel Jacobowitz <drow@mvista.com>
1399
1400 * linux-low.c (linux_wait): Unblock async I/O.
1401 (linux_resume): Block and enable async I/O.
1402 * remote-utils.c (block_async_io, unblock_async_io): New functions.
1403 * server.h (block_async_io, unblock_async_io): Add prototypes.
1404
6910d122
DJ
14052004-02-29 Daniel Jacobowitz <drow@mvista.com>
1406
1407 * remote-utils.c (remote_open): Print a status notice after
1408 opening a TCP port.
1409 * server.c (attach_inferior): Print a status notice after
1410 attaching.
1411
14122004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
1413
1414 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
1415
c89dc5d4
DJ
14162004-02-26 Daniel Jacobowitz <drow@mvista.com>
1417
1418 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
1419 error packet.
1420 * server.c, target.h: Update copyright years.
1421
4b8dad4a
RM
14222004-02-25 Roland McGrath <roland@redhat.com>
1423
1424 * target.h (struct target_ops): New member `read_auxv'.
1425 * server.c (handle_query): Handle qPart:auxv:read: query using that.
1426 * linux-low.c (linux_read_auxv): New function.
1427 (linux_target_ops): Initialize `read_auxv' member to that.
1428
d7446758
JB
14292004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1430
1431 Committed by Jim Blandy <jimb@redhat.com>.
1432
1433 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 1434 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
1435 instead of GPR_SIZE to distiguish s390 and s390x targets.
1436
5544ad89
DJ
14372004-01-31 Daniel Jacobowitz <drow@mvista.com>
1438
1439 * linux-low.c: Update copyright year.
1440 (check_removed_breakpoint): Clear pending_is_breakpoint.
1441 (linux_set_resume_request, linux_queue_one_thread)
1442 (resume_status_pending_p): New functions.
1443 (linux_continue_one_thread): Use process->resume.
1444 (linux_resume): Only resume threads if there are no pending events.
1445 * linux-low.h (struct process_info): Add resume request
1446 pointer.
1447
2a68b70e
DJ
14482004-01-30 Daniel Jacobowitz <drow@mvista.com>
1449
1450 * regcache.c (new_register_cache): Clear the allocated register
1451 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1452
64386c31
DJ
14532003-10-13 Daniel Jacobowitz <drow@mvista.com>
1454
1455 * linux-low.c (linux_resume): Take a struct thread_resume *
1456 argument.
1457 (linux_wait): Update call.
1458 (resume_ptr): New static variable.
1459 (linux_continue_one_thread): Renamed from
1460 linux_continue_one_process. Use resume_ptr.
1461 (linux_resume): Use linux_continue_one_thread.
1462 * server.c (handle_v_cont, handle_v_requests): New functions.
1463 (myresume): New function.
1464 (main): Handle 'v' case.
1465 * target.h (struct thread_resume): New type.
1466 (struct target_ops): Change argument of "resume" to struct
1467 thread_resume *.
1468 (myresume): Delete macro.
1469
c938e9b0
L
14702003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1471
1472 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
1473 (uninstall): Support DESTDIR.
1474
7f313d07
BC
1475Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
1476
1477 * configure.srv: Add xscale*linux copy of arm*linux entry.
1478
3b2fc2ea
DJ
14792003-07-24 Daniel Jacobowitz <drow@mvista.com>
1480
1481 * linux-arm-low.c (arm_reinsert_addr): New function.
1482 (the_low_target): Add arm_reinsert_addr.
1483
1c0a559e
MK
14842003-07-08 Mark Kettenis <kettenis@gnu.org>
1485
1486 * mem-break.c: Remove whitespace at end of file.
1487
43d5792c
DJ
14882003-06-28 Daniel Jacobowitz <drow@mvista.com>
1489
1490 * configure.in: Check whether we need to prototype strerror.
1491 * server.h: Optionally prototype strerror.
1492 * gdbreplay.c (perror_with_name): Use strerror.
1493 * linux-low.c (linux_attach_lwp): Use strerror.
1494 * utils.c (perror_with_name): Use strerror.
1495 * config.in, configure: Regenerated.
1496
c8a86edf
DJ
14972003-06-28 Daniel Jacobowitz <drow@mvista.com>
1498
1499 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
1500 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
1501
73d37363
DJ
15022003-06-20 Daniel Jacobowitz <drow@mvista.com>
1503
1504 * Makefile.in (SFILES): Update.
1505 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
1506 low-sun3.c: Remove files.
1507
6ad8ae5c
DJ
15082003-06-17 Daniel Jacobowitz <drow@mvista.com>
1509
1510 * linux-low.c: Move comment to linux_thread_alive where it belonged.
1511 (linux_detach_one_process, linux_detach): New functions.
1512 (linux_target_ops): Add linux_detach.
1513 * server.c (main): Handle 'D' packet.
1514 * target.h (struct target_ops): Add "detach" member.
1515 (detach_inferior): Define.
1516
1581182a
MK
15172003-06-13 Mark Kettenis <kettenis@gnu.org>
1518
1519 From Kelley Cook <kelleycook@wideopenwest.com>:
1520 * configure.srv: Accept i[34567]86 variants.
1521
e5379b03
DJ
15222003-06-05 Daniel Jacobowitz <drow@mvista.com>
1523
1524 * linux-low.c (linux_wait_for_event): Correct comment typos.
1525 (linux_resume_one_process): Call check_removed_breakpoint.
1526 (linux_send_signal): New function.
1527 (linux_target_ops): Add linux_send_signal.
1528 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
1529 of kill.
1530 * target.h (struct target_ops): Add send_signal.
1531
2ff29de4
JB
15322003-05-29 Jim Blandy <jimb@redhat.com>
1533
1534 * linux-low.c (usr_store_inferior_registers): Transfer buf in
1535 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
1536 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
1537 away part of the register's value.
1538
254787d4
DJ
15392003-03-26 Daniel Jacobowitz <drow@mvista.com>
1540
1541 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
1542 (linux_wait_for_event, linux_init_signals): Likewise.
1543
94e10508
DJ
15442003-03-17 Daniel Jacobowitz <drow@mvista.com>
1545
1546 * configure.in: Check for stdlib.h.
1547 * configure: Regenerated.
1548 * config.in: Regenerated.
1549
4c0711e0
DJ
15502003-01-04 Andreas Schwab <schwab@suse.de>
1551
1552 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
1553
ef66e766
AC
15542003-01-02 Andrew Cagney <ac131313@redhat.com>
1555
1556 * Makefile.in: Remove obsolete code.
1557
a1358604
DJ
15582002-11-20 Daniel Jacobowitz <drow@mvista.com>
1559
1560 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
1561 defined(PT_FPR0_HI).
1562
23ce3b1c
DJ
15632002-11-17 Stuart Hughes <seh@zee2.com>
1564
1565 * linux-arm-low.c (arm_num_regs): Increase.
1566 (arm_regmap): Include status register.
1567
15682002-11-17 Daniel Jacobowitz <drow@mvista.com>
1569
1570 * linux-low.c (register_addr): Remove incorrect -1 check.
1571
a9fa9f7d
DJ
15722002-08-29 Daniel Jacobowitz <drow@mvista.com>
1573
1574 * linux-low.c (linux_create_inferior): Call setpgid. Return
1575 the new PID.
1576 (unstopped_p, linux_signal_pid): Remove.
1577 (linux_target_ops): Remove linux_signal_pid.
1578 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
1579 global instead of target method.
1580 * target.h (struct target_ops): Remove signal_pid. Update comment
1581 for create_inferior.
1582 * server.c (signal_pid): New variable.
1583 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 1584 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
1585 (attach_inferior): Set signal_pid.
1586
17574093
DJ
15872002-08-23 Daniel Jacobowitz <drow@mvista.com>
1588
1589 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
1590
15912002-08-20 Jim Blandy <jimb@redhat.com>
1592
1593 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1594 default for this.
1595
15962002-08-01 Andrew Cagney <cagney@redhat.com>
1597
1598 * Makefile.in: Make chill references obsolete.
1599
16002002-07-24 Kevin Buettner <kevinb@redhat.com>
1601
1602 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1603 * configure: Regenerate.
1604 * config.in: Regenerate.
1605
16062002-07-09 David O'Brien <obrien@FreeBSD.org>
1607
1608 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1609 (perror_with_name, remote_close, remote_open, expect, play): Static.
1610
16112002-07-04 Michal Ludvig <mludvig@suse.cz>
1612
4b8dad4a 1613 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
1614 byte offsets instead of an array of indexes.
1615 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
1616
16172002-06-13 Daniel Jacobowitz <drow@mvista.com>
1618
1619 * regcache.c: Add comment.
1620
16212002-06-11 Daniel Jacobowitz <drow@mvista.com>
1622
1623 * thread-db.c: New file.
1624 * proc-service.c: New file.
1625 * acinclude.m4: New file.
1626 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
1627 proc-service.o, and thread-db.o.
1628 (linux-low.o): Add USE_THREAD_DB.
1629 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
1630 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
1631 * aclocal.m4: Regenerated.
1632 * config.in: Regenerated.
1633 * configure: Regenerated.
1634 * configure.in: Check for proc_service.h, sys/procfs.h,
1635 thread_db.h, and linux/elf.h headrs.
1636 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
1637 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
1638 Check for -lthread_db and thread support.
1639 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
1640 PowerPC, and SuperH.
1641 * i387-fp.c: Constify arguments.
1642 * i387-fp.h: Likewise.
1643 * inferiors.c: (struct thread_info): Renamed from
1644 `struct inferior_info'. Remove PID member. Use generic inferior
1645 list header. All uses updated.
1646 (inferiors, signal_pid): Removed.
1647 (all_threads): New variable.
1648 (get_thread): Define.
1649 (add_inferior_to_list): New function.
1650 (for_each_inferior): New function.
1651 (change_inferior_id): New function.
1652 (add_inferior): Removed.
1653 (remove_inferior): New function.
1654 (add_thread): New function.
1655 (free_one_thread): New function.
1656 (remove_thread): New function.
1657 (clear_inferiors): Use for_each_inferior and free_one_thread.
1658 (find_inferior): New function.
1659 (find_inferior_id): New function.
1660 (inferior_target_data): Update argument type.
1661 (set_inferior_target_data): Likewise.
1662 (inferior_regcache_data): Likewise.
1663 (set_inferior_regcache_data): Likewise.
1664 * linux-low.c (linux_bp_reinsert): Remove.
1665 (all_processes, stopping_threads, using_thrads)
1666 (struct pending_signals, debug_threads, pid_of): New.
1667 (inferior_pid): Replace with macro.
1668 (struct inferior_linux_data): Remove.
1669 (get_stop_pc, add_process): New functions.
1670 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
1671 Use add_process and add_thread.
1672 (linux_attach_lwp): New function, based on old linux_attach. Use
1673 add_process and add_thread. Set stop_expected for new threads.
1674 (linux_attach): New function.
1675 (linux_kill_one_process): New function.
1676 (linux_kill): Kill all LWPs.
1677 (linux_thread_alive): Use find_inferior_id.
1678 (check_removed_breakpoints, status_pending_p): New functions.
1679 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
1680 Update. Use WNOHANG. Wait for cloned processes also. Update process
1681 struct for the found process.
1682 (linux_wait_for_event): New function.
1683 (linux_wait): Use it. Support LWPs.
1684 (send_sigstop, wait_for_sigstop, stop_all_processes)
1685 (linux_resume_one_process, linux_continue_one_process): New functions.
1686 (linux_resume): Support LWPs.
1687 (REGISTER_RAW_SIZE): Remove.
1688 (fetch_register): Use register_size instead. Call supply_register.
1689 (usr_store_inferior_registers): Likewise. Call collect_register.
1690 Fix recursive case.
1691 (regsets_fetch_inferior_registers): Improve error message.
1692 (regsets_store_inferior_registers): Add debugging.
1693 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
1694 (unstopped_p, linux_signal_pid): New functions.
1695 (linux_target_ops): Add linux_signal_pid.
1696 (linux_init_signals): New function.
1697 (initialize_low): Call it. Initialize using_threads.
1698 * regcache.c (inferior_regcache_data): Add valid
1699 flag.
1700 (get_regcache): Fetch registers lazily. Add fetch argument
1701 and update all callers.
1702 (regcache_invalidate_one, regcache_invalidate): New
1703 functions.
1704 (new_register_cache): Renamed from create_register_cache.
1705 Return the new regcache.
1706 (free_register_cache): Change argument to a void *.
1707 (registers_to_string, registers_from_string): Call get_regcache
1708 with fetch flag set.
1709 (register_data): Make static. Pass fetch flag to get_regcache.
1710 (supply_register): Call get_regcache with fetch flag clear.
1711 (collect_register): Call get_regcache with fetch flag set.
1712 (collect_register_as_string): New function.
1713 * regcache.h: Update.
1714 * remote-utils.c (putpkt): Flush after debug output and use
1715 stderr.
1716 Handle input interrupts while waiting for an ACK.
1717 (input_interrupt): Use signal_pid method.
1718 (getpkt): Flush after debug output and use stderr.
1719 (outreg): Use collect_register_as_string.
1720 (new_thread_notify, dead_thread_notify): New functions.
1721 (prepare_resume_reply): Check using_threads. Set thread_from_wait
1722 and general_thread.
1723 (look_up_one_symbol): Flush after debug output.
1724 * server.c (step_thread, server_waiting): New variables.
1725 (start_inferior): Don't use signal_pid. Update call to mywait.
1726 (attach_inferior): Update call to mywait.
1727 (handle_query): Handle qfThreadInfo and qsThreadInfo.
1728 (main): Don't fetch/store registers explicitly. Use
1729 set_desired_inferior. Support proposed ``Hs'' packet. Update
1730 calls to mywait.
1731 * server.h: Update.
1732 (struct inferior_list, struct_inferior_list_entry): New.
1733 * target.c (set_desired_inferior): New.
1734 (write_inferior_memory): Constify.
1735 (mywait): New function.
1736 * target.h: Update.
1737 (struct target_ops): New signal_pid method.
1738 (mywait): Removed macro, added prototype.
1739
1740 * linux-low.h (regset_func): Removed.
1741 (regset_fill_func, regset_store_func): New.
1742 (enum regset_type): New.
1743 (struct regset_info): Add type field. Use new operation types.
1744 (struct linux_target_ops): stop_pc renamed to get_pc.
1745 Add decr_pc_after_break and breakpoint_at.
1746 (get_process, get_thread_proess, get_process_thread)
1747 (strut process_info, all_processes, linux_attach_lwp)
1748 (thread_db_init): New.
1749
1750 * linux-arm-low.c (arm_get_pc, arm_set_pc,
1751 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
1752 (the_low_target): Add new members.
1753 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
1754 (i386_store_fpxregset): Constify.
1755 (target_regsets): Add new kind identifier.
1756 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
1757 (i386_set_pc): Add debugging.
1758 (i386_breakpoint_at): New function.
1759 (the_low_target): Add new members.
1760 * linux-mips-low.c (mips_get_pc, mips_set_pc)
1761 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
1762 (mips_breakpoint_at): New.
1763 (the_low_target): Add new members.
1764 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
1765 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
1766 (the_low_target): Add new members.
1767 * linux-sh-low.c (sh_get_pc, sh_set_pc)
1768 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
1769 (the_low_target): Add new members.
1770 * linux-x86-64-low.c (target_regsets): Add new kind
1771 identifier.
1772
17732002-05-15 Daniel Jacobowitz <drow@mvista.com>
1774
1775 From Martin Pool <mbp@samba.org>:
1776 * server.c (gdbserver_usage): New function.
1777 (main): Call it.
1778
17792002-05-14 Daniel Jacobowitz <drow@mvista.com>
1780
1781 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
1782 stop_at -> stop_pc.
1783
17842002-05-04 Andrew Cagney <ac131313@redhat.com>
1785
1786 * Makefile.in: Remove obsolete code.
1787
17882002-04-24 Michal Ludvig <mludvig@suse.cz>
1789
1790 * linux-low.c (regsets_fetch_inferior_registers),
1791 (regsets_store_inferior_registers): Removed cast to int from
1792 ptrace() calls.
1793 * regcache.h: Added declaration of struct inferior_info.
1794
17952002-04-20 Daniel Jacobowitz <drow@mvista.com>
1796
1797 * inferiors.c (struct inferior_info): Add regcache_data.
1798 (add_inferior): Call create_register_cache.
1799 (clear_inferiors): Call free_register_cache.
1800 (inferior_regcache_data, set_inferior_regcache_data): New functions.
1801 * regcache.c (struct inferior_regcache_data): New.
1802 (registers): Remove.
1803 (get_regcache): New function.
1804 (create_register_cache, free_register_cache): New functions.
1805 (set_register_cache): Don't initialize the register cache here.
1806 (registers_to_string, registers_from_string, register_data): Call
1807 get_regcache.
1808 * regcache.h: Add prototypes.
1809 * server.h: Likewise.
1810
18112002-04-20 Daniel Jacobowitz <drow@mvista.com>
1812
1813 * mem-break.c: New file.
1814 * mem-break.h: New file.
1815 * Makefile.in: Add mem-break.o rule; update server.h
1816 dependencies.
1817 * inferiors.c (struct inferior_info): Add target_data
1818 member.
1819 (clear_inferiors): Free target_data member if set.
1820 (inferior_target_data, set_inferior_target_data): New functions.
1821 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
1822 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
1823 * linux-low.c (linux_bp_reinsert): New variable.
1824 (struct inferior_linux_data): New.
1825 (linux_create_inferior): Use set_inferior_target_data.
1826 (linux_attach): Likewise. Call add_inferior.
1827 (linux_wait_for_one_inferior): New function.
1828 (linux_wait): Call it.
1829 (linux_write_memory): Add const.
1830 (initialize_low): Call set_breakpoint_data.
1831 * linux-low.h (struct linux_target_ops): Add breakpoint
1832 handling members.
1833 * server.c (attach_inferior): Remove extra add_inferior
1834 call.
1835 * server.h: Include mem-break.h. Update inferior.c
1836 prototypes.
1837 * target.c (read_inferior_memory)
1838 (write_inferior_memory): New functions.
1839 * target.h (read_inferior_memory)
1840 (write_inferior_memory): Change macros to prototypes.
1841 (struct target_ops): Update comments. Add const to write_memory
1842 definition.
1843
18442002-04-11 Daniel Jacobowitz <drow@mvista.com>
1845
1846 * linux-low.c (usr_store_inferior_registers): Support
1847 registers which are allowed to fail to store.
1848 * linux-low.h (linux_target_ops): Likewise.
1849 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
1850 (ppc_cannot_store_register): FPSCR may not be storable.
1851
18522002-04-09 Daniel Jacobowitz <drow@mvista.com>
1853
1854 * server.h: Include <string.h> if HAVE_STRING_H.
1855 * ChangeLog: Correct paths in last ChangeLog entry.
1856
18572002-04-09 Daniel Jacobowitz <drow@mvista.com>
1858
1859 * linux-low.h: Remove obsolete prototypes.
1860 (struct linux_target_ops): New.
1861 (extern the_low_target): New.
1862 * linux-low.c (num_regs, regmap): Remove declarations.
1863 (register_addr): Use the_low_target explicitly.
1864 (fetch_register): Likewise.
1865 (usr_fetch_inferior_registers): Likewise.
1866 (usr_store_inferior_registers): Likewise.
1867 * linux-arm-low.c (num_regs): Remove.
1868 (arm_num_regs): Define.
1869 (arm_regmap): Renamed from regmap, made static.
1870 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1871 made static.
1872 (arm_cannot_store_register): Renamed from cannot_store_register,
1873 made static.
1874 (the_low_target): New.
1875 * linux-i386-low.c (num_regs): Remove.
1876 (i386_num_regs): Define.
1877 (i386_regmap): Renamed from regmap, made static.
1878 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1879 made static.
1880 (i386_cannot_store_register): Renamed from cannot_store_register,
1881 made static.
1882 (the_low_target): New.
1883 * linux-ia64-low.c (num_regs): Remove.
1884 (ia64_num_regs): Define.
1885 (ia64_regmap): Renamed from regmap, made static.
1886 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1887 made static.
1888 (ia64_cannot_store_register): Renamed from cannot_store_register,
1889 made static.
1890 (the_low_target): New.
1891 * linux-m68k-low.c (num_regs): Remove.
1892 (m68k_num_regs): Define.
1893 (m68k_regmap): Renamed from regmap, made static.
1894 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1895 made static.
1896 (m68k_cannot_store_register): Renamed from cannot_store_register,
1897 made static.
1898 (the_low_target): New.
1899 * linux-mips-low.c (num_regs): Remove.
1900 (mips_num_regs): Define.
1901 (mips_regmap): Renamed from regmap, made static.
1902 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1903 made static.
1904 (mips_cannot_store_register): Renamed from cannot_store_register,
1905 made static.
1906 (the_low_target): New.
1907 * linux-ppc-low.c (num_regs): Remove.
1908 (ppc_num_regs): Define.
1909 (ppc_regmap): Renamed from regmap, made static.
1910 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1911 made static.
1912 (ppc_cannot_store_register): Renamed from cannot_store_register,
1913 made static.
1914 (the_low_target): New.
1915 * linux-s390-low.c (num_regs): Remove.
1916 (s390_num_regs): Define.
1917 (s390_regmap): Renamed from regmap, made static.
1918 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1919 made static.
1920 (s390_cannot_store_register): Renamed from cannot_store_register,
1921 made static.
1922 (the_low_target): New.
1923 * linux-sh-low.c (num_regs): Remove.
1924 (sh_num_regs): Define.
1925 (sh_regmap): Renamed from regmap, made static.
1926 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1927 made static.
1928 (sh_cannot_store_register): Renamed from cannot_store_register,
1929 made static.
1930 (the_low_target): New.
1931 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1932 (the_low_target): New.
1933
19342002-04-09 Daniel Jacobowitz <drow@mvista.com>
1935
1936 * Makefile.in: Add stamp-h target.
1937 * configure.in: Create stamp-h.
1938 * configure: Regenerated.
1939
19402002-04-09 Daniel Jacobowitz <drow@mvista.com>
1941
1942 * inferiors.c: New file.
1943 * target.c: New file.
1944 * target.h: New file.
1945 * Makefile.in: Add target.o and inferiors.o. Update
1946 dependencies.
1947 * linux-low.c (inferior_pid): New static variable,
1948 moved from server.c.
1949 (linux_create_inferior): Renamed from create_inferior.
1950 Call add_inferior. Return 0 on success instead of a PID.
1951 (linux_attach): Renamed from myattach.
1952 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1953 (linux_thread_alive): Renamed from mythread_alive.
1954 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1955 child dies.
1956 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1957 (regsets_store_inferior_registers): Correct error message.
1958 Add missing ``return 0''.
1959 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1960 (linux_store_registers): Renamed from store_inferior_registers.
1961 (linux_read_memory): Renamed from read_inferior_memory.
1962 (linux_write_memory): Renamed from write_inferior_memory.
1963 (linux_target_ops): New structure.
1964 (initialize_low): Call set_target_ops ().
1965 * remote-utils.c (unhexify): New function.
1966 (hexify): New function.
1967 (input_interrupt): Send signals to ``signal_pid''.
1968 * server.c (inferior_pid): Remove.
1969 (start_inferior): Update create_inferior call.
1970 (attach_inferior): Call add_inferior.
1971 (handle_query): New function.
1972 (main): Call handle_query for `q' packets.
1973 * server.h: Include "target.h". Remove obsolete prototypes.
1974 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1975
19762002-04-09 Daniel Jacobowitz <drow@mvista.com>
1977
1978 * Makefile.in: Add WARN_CFLAGS. Update configury
1979 dependencies.
1980 * configure.in: Check for <string.h>
1981 * configure: Regenerate.
1982 * config.in: Regenerate.
1983 * gdbreplay.c: Include needed system headers.
1984 (remote_open): Remove strchr prototype.
1985 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1986 * regcache.c (supply_register): Change buf argument to const void *.
1987 (supply_register_by_name): Likewise.
1988 (collect_register): Change buf argument to void *.
1989 (collect_register_by_name): Likewise.
1990 * regcache.h: Add missing prototypes.
1991 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1992 * server.c (handle_query): New function.
1993 (attached): New static variable, moved out of main.
1994 (main): Quiet longjmp clobber warnings.
1995 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1996 * utils.c (error): Remove NORETURN.
1997 (fatal): Likewise.
This page took 0.457234 seconds and 4 git commands to generate.