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