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