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