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