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