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