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