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