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