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