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