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