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