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