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