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