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