]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/gdbserver/ChangeLog
* config/mips/linux.mh (TDEP_XML): New.
[thirdparty/binutils-gdb.git] / gdb / gdbserver / ChangeLog
CommitLineData
0e7f50da
UW
12007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
2 Markus Deuling <deuling@de.ibm.com>
3
4 * remote-utils.c (decode_xfer_write): New function.
5 * server.h (decode_xfer_write): Add prototype.
6 * server.c (handle_query): Add PACKET_LEN argument. Support
7 qXfer:spu:read and qXfer:spu:write packets.
8 (main): Pass packet_len to handle_query.
9 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
10 * target.h (target_ops): Add qxfer_spu.
11
374c1d38
UW
122007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
13
14 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
15 accessing non-seekable spufs files.
16
bb63802a
UW
172007-05-16 Markus Deuling <deuling@de.ibm.com>
18
19 * server.c (handle_query): Add reply for qC packet.
20
7390519e
PA
212007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
22 Leo Zayas <lerele@champenstudios@com>
23
24 * server.h (check_remote_input_interrupt_request): New function.
25 * remote_utils.c (INVALID_DESCRIPTOR): New define.
26 (remote_desc): Initialize with INVALID_DESCRIPTOR.
27 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
28 (check_remote_input_interrupt_request): New function.
29 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 30 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
31 winapi_GenerateConsoleCtrlEvent): New typedefs.
32 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
33 to 250 ms.
34 (win32_wait): Check for remote interrupt request
35 with check_remote_input_interrupt_request.
36 (win32_request_interrupt): New function.
37 (win32_target_op): Set request_interrupt to win32_request_interrupt.
38
34b34921
PA
392007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
40
41 * win32-low.c (debug_registers_changed,
42 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
43 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
44 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
45 (thread_rec): Get context using the low target.
46 (child_add_thread): Call thread_added on the low target,
47 which does the same thing.
48 (regptr): Delete.
49 (do_initial_child_stuff): Remove debug registers references.
50 Set context using the low target. Resume threads after
51 setting the contexts.
52 (child_continue): Remove dead variable. Remove debug
53 registers references.
54 (child_fetch_inferior_registers): Go through the low target.
55 (do_child_store_inferior_registers): Remove.
56 (child_store_inferior_registers): Go through the low target.
57 (win32_resume): Remove debug registers references.
58 Set context using the low target.
59 (handle_exception): Change return type to void. Don't record
60 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
61 first chance exception.
62 (get_child_debug_event): Change return type to void. Remove
63 goto loop. Always return after waiting for debug event.
64 (win32_wait): Convert to switch statement. Handle spurious
65 events.
66
67 * win32-i386-low.c (debug_registers_changed,
68 debug_registers_used): New.
69 (initial_stuff): Rename to ...
70 (i386_initial_stuff): ... this. Clear debug registers
71 state variables.
72 (store_debug_registers): Delete.
73 (i386_get_thread_context): New.
74 (load_debug_registers): Delete.
75 (i386_set_thread_context): New.
76 (i386_thread_added): New.
77 (single_step): Rename to ...
78 (i386_single_step): ... this.
79 (do_fetch_inferior_registers): Rename to ...
80 (i386_fetch_inferior_register): ... this.
81 (i386_store_inferior_register): New.
82 (the_low_target): Adapt to new interface.
83
84 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
85 (arm_get_thread_context): New.
86 (arm_set_thread_context): New.
87 (regptr): New.
88 (do_fetch_inferior_registers): Rename to ...
89 (arm_fetch_inferior_register): ... this.
90 (arm_store_inferior_register): New.
91 (arm_wince_breakpoint): Reimplement as unsigned long.
92 (arm_wince_breakpoint_len): Define.
93 (the_low_target): Adapt to new interface.
94
95 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
96 load_debug_registers. Add get_thread_context, set_thread_context,
97 thread_added and store_inferior_register. Rename
98 fetch_inferior_registers to fetch_inferior_register.
99 (regptr): Remove declaration.
100
dd6953e1
PA
1012007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
102
103 * linux-low.c (linux_detach): Change return type to int. Return 0.
104 * spu-low.c (spu_detach): Likewise.
105
444d6139
PA
1062007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
107
108 * target.h (target_ops): Change return type of detach to int.
109 Add join.
110 (join_inferior): New.
111 * server.c (main): Don't skip detach support on mingw32.
112 If the inferior doesn't support detaching return error.
113 Call join_inferior instead of using waitpid.
114 * linux-low.c (linux_join): New.
115 (linux_target_op): Add linux_join.
116 * spu-low.c (spu_join): New.
117 (spu_target_ops): Add spu_join.
118 * win32-low.c (win32_detach): Adapt to new interface.
119 Reopen current_process_handle before detaching. Issue a child
120 resume before detaching.
121 (win32_join): New.
122 (win32_target_op): Add win32_join.
123
1d5315fe
PA
1242007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
125
126 * win32-low.c (win32-attach): Fix return value.
127 * target.h (target_ops): Describe ATTACH return values.
128
bf914831
PA
1292007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
130
131 * win32-low.c (GETPROCADDRESS): Define.
132 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
133 (winapi_DebugSetProcessKillOnExit): Likewise.
134 (win32_create_inferior): Force usage of ansi CreateProcessA.
135 (win32_attach): Use GETPROCADDRESS.
136 (win32_detach): Likewise.
137
f72f3e60
PA
1382007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
139
140 * win32-low.c (win32_wait): Don't use WSTOPSIG.
141
ed50f18f
PA
1422007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
143
144 * win32-low.c: Commit leftover changes from 2007-03-29.
145
0c2ead7e
DJ
1462007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
147
148 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
149 fields short instead of int. Add explicit padding.
150 (i387_cache_to_fsave): Remove unnecessary casts.
151 (i387_fsave_to_cache): Doc fix.
152 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
153
73725ff3
DJ
1542007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
155
156 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
157 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
158
d99f33d8
PA
1592007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
160
161 * configure.srv (arm*-*-mingw32ce*): Move near the other
162 arm targets.
163
68070c10
PA
1642007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
165
2482afc6 166 * configure.ac: Add errno checking.
68070c10
PA
167 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
168 sys/file.h and malloc.h.
169 (AC_CHECK_DECLS): Add perror.
170 (srv_mingwce): Handle.
2482afc6 171 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
172 win32-i386-low.o to srv_tgtobj.
173 (i[34567]86-*-mingw*): Likewise.
174 (arm*-*-mingw32ce*): Add case.
175 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
176 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
177 [__MINGW32CE__] (strerror): New function.
178 [__MINGW32CE__] (errno): Define to GetLastError.
179 [__MINGW32CE__] (COUNTOF): New macro.
180 (remote_open): Remove extra close call.
181 * mem-break.c (delete_breakpoint_at): New function.
182 * mem-break.h (delete_breakpoint_at): Declare.
183 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
184 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
185 [USE_WIN32API] (read, write): Add char* casts.
186 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
187 * server.h: Include wincecompat.h on Windows CE.
188 [HAVE_ERRNO_H]: Check.
189 (perror): Declare if not declared.
190 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
191 (perror_with_name): Remove errno declaration.
192 * wincecompat.h: New.
193 * wincecompat.c: New.
194 * win32-low.h: New.
195 * win32-arm-low.c: New.
196 * win32-i386-low.c: New.
197 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
198 (OUTMSG2): Make it safe.
199 (_T): New macro.
200 (COUNTOF): New macro.
201 (NUM_REGS): Get it from the low target.
202 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
203 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
204 (thread_rec): Let low target handle debug registers.
205 (child_add_thread): Likewise.
206 (child_init_thread_list): Likewise.
207 (continue_one_thread): Likewise.
208 (regptr): New.
209 (do_child_fetch_inferior_registers): Move to ...
210 * win32-i386-low.c: ... here, and rename to ...
211 (do_fetch_inferior_registers): ... this.
212 * win32-low.c (child_fetch_inferior_registers):
213 Go through the low target.
214 (do_child_store_inferior_registers): Use regptr.
215 (strwinerror): New function.
216 (win32_create_inferior): Handle Windows CE.
217 Use strwinerror instead of strerror on Windows error
218 codes. Add program to the error output.
219 Don't close the main thread handle on Windows CE.
220 (win32_attach): Use coredll.dll on Windows CE.
221 (win32_kill): Close current process and current
222 thread handles.
223 (win32_detach): Use coredll.dll on Windows CE.
224 (win32_resume): Let low target handle debug registers, and
225 step request.
226 (handle_exception): Add/Remove initial breakpoint. Avoid
227 non-existant WSTOPSIG on Windows CE.
228 (win32_read_inferior_memory): Cast to remove warning.
229 (win32_arch_string): Go through the low target.
230 (initialize_low): Call set_breakpoint_data with the low
231 target's breakpoint.
232 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
233 FOP_REGNUM, mappings): Move to ...
234 * win32-i386-low.c: ... here.
235 * win32-low.c (win32_thread_info): Move to ...
236 * win32-low.h: ... here.
237 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
238 win32-arm-low.c and wincecompat.c.
239 (all:): Add $EXEEXT.
240 (install-only:): Likewise.
241 (gdbserver:): Likewise.
242 (gdbreplay:): Likewise.
243 * config.in: Regenerate.
244 * configure: Regenerate.
245
41093d81
PA
2462007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
247
248 * win32-low.c: Rename typedef thread_info to
249 win32_thread_info throughout.
250
544afa54
PA
2512007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
252
253 * win32-i386-low.c: Rename to ...
254 * win32-low.c: ... this.
255 * configure.srv: Replace win32-i386-low.o with win32-low.o.
256 * Makefile.in: Likewise.
257
bce7165d
PA
2582007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
259
260 * remote-utils.c (monitor_output): Constify msg parameter.
261 * server.h (monitor_output): Likewise.
262 * win32-i386-low.c (handle_output_debug_string): New.
263 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
264 handle_output_debug_string.
265 (get_child_debug_event): Likewise.
266
506c7aa0
DJ
2672007-03-27 Mat Hostetter <mat@lcs.mit.edu>
268
269 * server.c (main): Correct strtoul check.
270
42c81e2a
DJ
2712007-03-27 Jon Ringle <jon@ringle.org>
272
273 * linux-low.c: Check __ARCH_HAS_MMU__ also.
274
9453113a
DJ
2752007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
276
277 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
278
64a69107
DJ
2792007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
280
281 * terminal.h: Check HAVE_SGTTY_H.
282
2832007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
284
285 * remote-utils.c (remote_open): Print out the assigned port number.
286
c74d0ad8
DJ
2872007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
288
289 * remote-utils.c (monitor_output): New function.
290 * server.c (debug_threads): Define here.
291 (monitor_show_help): New function.
292 (handle_query): Handle qRcmd.
293 (main): Do not handle 'd' packet.
294 * server.h (debug_threads, remote_debug, monitor_output): Declare.
295 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
296 of debug_threads.
297
de7c3b4a
PA
2982007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
299
300 * Makefile.in (EXEEXT): New.
301 (clean): Use $(EXEEXT).
302
ef57601b
PA
3032007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
304
305 * target.h (target_ops): Rename send_signal to request_interrupt,
306 and remove enum target_signal parameter.
307 * linux-low.c (linux_request_interrupt): Rename from
308 linux_send_signal, and always send SIGINT.
309 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
310 and always send SIGINT.
311 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
312 of send_signal.
313 (input_interrupt): Likewise.
314
820f2bda
PA
3152007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
316
317 * server.c (get_features_xml): Check if target implemented
318 arch_string.
319 * win32-i386-low.c (win32_arch_string): New.
320 (win32_target_ops): Add win32_arch_string as arch_string member.
321
ab39bf24
UW
3222007-02-22 Markus Deuling <deuling@de.ibm.com>
323
324 * spu-low.c (spu_arch_string): New.
325 (spu_target_ops): Add spu_arch_string.
326
61ff6e04
DJ
3272007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
328
329 * remote-utils.c: Remove HAVE_TERMINAL_H check.
330 * configure.ac: Do not check for terminal.h.
331 * configure, config.in: Regenerated.
332
fb1e4ffc
DJ
3332007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
334
335 * Makefile.in (OBS): Add $(XML_BUILTIN).
336 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
337 (clean): Update.
338 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
339 (arm-with-iwmmxt.c): New.
340 * config.in, configure: Regenerate.
341 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
342 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
343 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
344 (arm*-*-linux*): Add iWMMXt and regset support.
345 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
346 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
347 (arm_store_wmmxregset, target_regsets): New.
348 * server.c (get_features_xml): Take annex argument. Check builtin
349 XML documents.
350 (handle_query): Handle multiple annexes.
351
0f48aa01
DJ
3522007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
353
354 * remote-utils.c [USE_WIN32API] (read, write): Define.
355 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
356 write.
357
23181151
DJ
3582007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
359
360 * linux-i386-low.c (the_low_target): Set arch_string.
361 * linux-x86-64-low.c (the_low_target): Likewise.
362 * linux-low.c (linux_arch_string): New.
363 (linux_target_ops): Add it.
364 * linux-low.h (struct linux_target_ops): Add arch_string.
365 * server.c (write_qxfer_response): Use const void * for DATA.
366 (get_features_xml): New.
367 (handle_query): Handle qXfer:features:read. Report it for qSupported.
368 * target.h (struct target_ops): Add arch_string method.
369
9d606399
DJ
3702007-01-03 Denis Pilat <denis.pilat@st.com>
371 Daniel Jacobowitz <dan@codesourcery.com>
372
373 * linux-low.c (linux_kill): Handle being called with no threads.
374 * win32-i386-low.c (win32_kill): Likewise.
375 (get_child_debug_event): Clear current_process_handle.
376
3772006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
378 Daniel Jacobowitz <dan@codesourcery.com>
379
380 * remote-utils.c (remote_open): Check the type of specified
381 serial port devices before opening them.
382 * server.c (main): Kill the inferior if an error occurs during
383 the first remote_open.
384
a5e13d24
DJ
3852006-12-05 Markus Deuling <deuling@de.ibm.com>
386
387 * README: Update supported targets.
388
186947f7
DJ
3892006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
390
391 * Makefile.in (clean): Remove reg-mips64.c.
392 (reg-mips64.c, reg-mips64.o): New rules.
393 * configure.srv: Handle mips64. Include regset support for mips.
394 * linux-mips-low.c (union mips_register): New.
395 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
396 (mips_breakpoint, mips_breakpoint_at): Use int.
397 (mips_collect_register, mips_supply_register)
398 (mips_collect_register_32bit, mips_supply_register_32bit)
399 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
400 (mips_store_fpregset, target_regsets): New.
401 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
402
a13e2c95
UW
4032006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
404
405 * configure.srv: Add target "spu*-*-*".
406 * Makefile.in (clean): Remove reg-spu.c.
407 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
408 * spu-low.c: New file.
409
cb7283db
DJ
4102006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
411
412 * configure.ac: Correct td_thr_tls_get_addr test.
413 * configure: Regenerated.
414
89be2091
DJ
4152006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
416
417 * linux-low.c (linux_wait_for_event): Reformat. Use the
418 pass_signals array.
419 * remote-utils.c (decode_address_to_semicolon): New.
420 * server.c (pass_signals, handle_general_set): New.
421 (handle_query): Mention QPassSignals for qSupported.
422 (main): Call handle_general_set.
423 * server.h (pass_signals, decode_address_to_semicolon): New.
424
000ef4f0
DJ
4252006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
426
427 * server.c (handle_query): Correct error handling for read_auxv.
428
b7149293
UW
4292005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
430
431 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
432 and srv_linux_thread_db to yes.
433 * linux-s390-low.c (s390_fill_gregset): New function.
434 (target_regsets): Define data structure.
435
dae5f5cf
DJ
4362006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
437
438 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
439 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
440 * config.in, configure: Regenerated.
441 * inferiors.c (gdb_id_to_thread): New function.
442 (gdb_id_to_thread_id): Use it.
443 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
444 * linux-low.h (struct process_info): Add th member.
445 (thread_db_get_tls_address): New prototype.
446 * remote-utils.c (decode_address): Make non-static.
447 * server.c (handle_query): Handle qGetTLSAddr.
448 * server.h (gdb_id_to_thread, decode_address): New prototypes.
449 * target.h (struct target_ops): Add get_tls_address.
450 * thread-db.c (maybe_attach_thread): Save the thread handle.
451 (thread_db_get_tls_address): New.
452
32ca6d61
DJ
4532006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
454
455 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
456 (linux_resume_one_process): Take a siginfo_t *. Update all
457 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
458 (struct pending_signals): Add a siginfo_t.
459 (linux_wait_for_process): Always set last_status.
460 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
461 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
462 * linux-low.h (struct process_info): Add last_status.
463
5ffff7c1
DJ
4642006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
465
466 * remote-utils.c (try_rle): New function.
467 (putpkt_binary): Use it.
468
8695c747
DJ
4692006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
470
471 * Makefile.in (clean): Clean reg-x86-64-linux.c.
472 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
473 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
474 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
475 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
476 point registers.
477
290fadea
RS
4782006-08-08 Richard Sandiford <richard@codesourcery.com>
479
480 * server.c (terminal_fd): New variable.
481 (old_foreground_pgrp): Likewise.
482 (restore_old_foreground_pgrp): New function.
483 (start_inferior): Record the terminal file descriptor in terminal_fd
484 and its original foreground group in old_foreground_pgrp. Register
485 restore_old_foreground_pgrp with atexit().
486
9f2e1e63
DJ
4872006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
488
489 * server.c (handle_query): Correct qPart to qXfer.
490
b80864fb
DJ
4912006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
492
493 * configure.ac: Check for more headers which are missing on
494 Windows. Automatically supply -lwsock32 and USE_WIN32API.
495 * configure.srv: Add Cygwin and mingw32.
496 * remote-utils.c: Don't include headers unconditionally which
497 are missing on mingw32. Include <winsock.h> for mingw32.
498 (remote_open): Adjust for mingw32 support. Flush
499 standard error after writing to it.
500 (remote_close, putpkt_binary, input_interrupt, block_async_io)
501 (unblock_async_io, enable_async_io, disable_async_io)
502 (readchar, getpkt): Update for Winsock support.
503 (prepare_resume_reply): Expect a protocol signal number.
504 * server.c: Disable <sys/wait.h> on mingw32.
505 (start_inferior): Adjust for mingw32 support. Flush
506 standard error after writing to it.
507 (attach_inferior): Likewise. Use protocol signal
508 numbers.
509 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
510 and names.
511 * win32-i386-low.c: New file.
512 * Makefile.in (XM_CLIBS): Set.
513 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
514 (win32-i386-low.o): New dependency rule.
515 * linux-low.c (linux_wait): Use target signal numbers.
516 * target.h (struct target_ops): Doc fix.
517 * server.h (target_signal_to_name): New prototype.
518 * gdbreplay.c: Don't include headers unconditionally which
519 are missing on mingw32. Include <winsock.h> for mingw32.
520 (remote_close, remote_open): Adjust for Winsock support.
521 * configure, config.in: Regenerated.
522
0876f84a
DJ
5232006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
524
525 * server.c (decode_xfer_read, write_qxfer_response): New.
526 (handle_query): Take a packet length argument. Handle
527 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
528 the qSupported response.
529 (main): Update call to handle_query.
530
01f9e8fa
DJ
5312006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
532
533 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
534 (putpkt_binary): Renamed from putpkt and adjusted for binary
535 data.
536 (putpkt): New wrapper for putpkt_binary.
537 (readchar): Don't mask off the high bit.
538 (decode_X_packet): New function.
539 * server.c (main): Call putpkt_binary if a handler sets the packet
540 length. Save the length of the incoming packet. Handle 'X'.
541 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
542
be2a5f71
DJ
5432006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
544
545 * server.c (handle_query): Handle qSupported.
546
ea025f5f
DJ
5472006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
548
549 * remote-utils.c (all_symbols_looked_up): New variable.
550 (look_up_one_symbol): Check it.
551 * server.h (look_up_one_symbol): New declaration.
552 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
553
9308fc88
DJ
5542006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
555
556 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 557 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
558 (PTRACE_GET_THREAD_AREA): Define.
559 (ps_get_thread_area): New function.
560
52fb6437
NS
5612006-05-09 Nathan Sidwell <nathan@codesourcery.com>
562
563 * configure.srv (m68k*-*-uclinux*): New target.
564 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
565 (linux_resume_one_process): Remove extraneous cast.
566 (linux_read_offsets): New.
567 (linux_target_op): Add linux_read_offsets on mmuless systems.
568 * server.c (handle_query): Add qOffsets logic.
569 * target.h (struct target_ops): Add read_offsets.
570
21b0f40c
DJ
5712006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
572
573 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
574 (PTRACE_GET_THREAD_AREA): Define.
575 (ps_get_thread_area): New function.
576 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
577 (linux-x86-64-low.o): Update.
578
0050a760
DJ
5792006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
580
581 * configure.ac: Remove checks for prfpregset_t.
582 * gdb_proc_service.h: New file.
583 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
584 new "gdb_proc_service.h".
585 * proc-service.c: Likewise.
586 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
587 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
588 * Makefile.in (gdb_proc_service_h): Updated.
589 * configure, config.in: Regenerated.
590
b92a518e
DJ
5912006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
592
593 * remote-utils.c (prepare_resume_reply): Move declaration
594 of gdb_id_from_wait to the top of the block.
595
545587ee
DJ
5962006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
597
598 * linux-low.c (regsets_store_inferior_registers): Read the regset
599 from the target before filling it.
600
9db87ebd
DJ
6012006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
602
603 * server.c (attach_inferior): Return SIGTRAP for a successful
604 attach.
605
dd24457d
DJ
6062006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
607
608 * Makefile.in (OBS): Add version.o.
609 (STAGESTUFF): Delete.
610 (version.o): Add dependencies.
611 (version.c): Replace rule.
612 (clean): Remove version.c.
613 * server.c (gdbserver_version): New.
614 (gdbserver_usage): Use printf.
615 (main): Handle --version and --help.
616 * server.h (version, host_name): Add declarations.
617
6f0f660e
EZ
6182005-12-23 Eli Zaretskii <eliz@gnu.org>
619
620 * linux-arm-low.c:
621 * linux-arm-low.c:
622 * inferiors.c:
623 * i387-fp.h:
624 * i387-fp.c:
625 * gdbreplay.c:
626 * regcache.c:
627 * proc-service.c:
628 * mem-break.h:
629 * mem-break.c:
630 * linux-x86-64-low.c:
631 * linux-sh-low.c:
632 * linux-s390-low.c:
633 * linux-ppc64-low.c:
634 * linux-ppc-low.c:
635 * linux-mips-low.c:
636 * linux-m68k-low.c:
637 * linux-m32r-low.c:
638 * linux-low.h:
639 * linux-low.c:
640 * linux-ia64-low.c:
641 * linux-i386-low.c:
642 * linux-crisv32-low.c:
643 * thread-db.c:
644 * terminal.h:
645 * target.h:
646 * target.c:
647 * server.h:
648 * server.c:
649 * remote-utils.c:
650 * regcache.h:
651 * utils.c:
652 * Makefile.in:
653 * configure.ac:
654 * gdbserver.1: Add (C) after Copyright. Update the FSF
655 address.
656
9d1fb177
DJ
6572005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
658
659 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
660 (arm_breakpoint_at): Recognize both breakpoints.
661 (the_low_target): Use the correct breakpoint instruction.
662
011a70c2
DJ
6632005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
664
665 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
666 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
667 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
668 (the_low_target): Update.
669
7fb85e41
AS
6702005-10-25 Andreas Schwab <schwab@suse.de>
671
672 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
673
674 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
675 (ia64_num_regs): Reduce to 462.
676
3db0444b
DJ
6772005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
678
679 * acinclude.m4: Correct quoting.
680 * aclocal.m4: Regenerated.
681
682 Suggested by SZOKOVACS Robert <szo@ies.hu>:
683 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
684 (thread_db_init): Call thread_db_err_str.
685 * configure.ac: Check for TD_VERSION.
686 * config.in, configure: Regenerated.
687
bee0189a
DJ
6882005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
689
690 * server.h (error, fatal, warning): Add ATTR_FORMAT.
691
e9d25b98
DJ
6922005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
693
694 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
695 is not available. Define HAVE_PTRACE_GETREGS if it is.
696 * config.in, configure: Regenerated.
697 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
698 * linux-i386-low.c, linux-m68k-low.c: Update to use
699 HAVE_PTRACE_GETREGS.
700 * linux-low.c (regsets_fetch_inferior_registers)
701 (regsets_store_inferior_registers): Only return 0 if we processed
702 GENERAL_REGS.
703 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
704 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
705
a06660f7
DJ
7062005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
707
708 * inferiors.c (struct thread_info): Add gdb_id.
709 (add_thread): Add gdb_id argument.
710 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
711 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
712 calls to add_thread.
713 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
714 * server.c (handle_query): Use thread_to_gdb_id.
715 (handle_v_cont, main): Use gdb_id_to_thread_id.
716 * server.h (add_thread): Update prototype.
717 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
718 prototypes.
719
5a1f5858
DJ
7202005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
721
722 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
723 left-padded registers.
724 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
725 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
726
e122f1f5
SE
7272005-07-01 Steve Ellcey <sje@cup.hp.com>
728
729 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
730 * configure: Regenerate.
731 * config.in: Regenerate.
732 * server.h (NEED_DECLARATION_STRERROR):
733 Replace with !HAVE_DECL_STRERROR.
734
d592fa2f
DJ
7352005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
736
737 * linux-low.c (linux_wait, linux_send_signal): Don't test
738 an unsigned long variable for > 0 if it could be MAX_ULONG.
739 * server.c (myresume): Likewise.
740 * target.c (set_desired_inferior): Likewise.
741
ccbd4912
MK
7422005-06-13 Mark Kettenis <kettenis@gnu.org>
743
744 * configure.ac: Simplify and improve check for socklen_t.
745 * configure, config.in: Regenerate.
746
f450004a
DJ
7472005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
748
749 * acconfig.h: Remove.
750 * configure.ac: Add a test for socklen_t. Use three-argument
751 AC_DEFINE throughout.
752 * config.in: Regenerated using autoheader 2.59.
753 * configure: Regenerated.
754
755 * gdbreplay.c (socklen_t): Provide a default.
756 (remote_open): Use socklen_t.
757 * remote-utils.c (socklen_t): Provide a default.
758 (remote_open): Use socklen_t.
759 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
760 unsigned char.
761
762 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
763 char for buffers.
764 * linux-low.c (linux_read_memory, linux_write_memory)
765 (linux_read_auxv): Likewise.
766 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
767 (check_mem_write): Likewise.
768 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
769 Likewise.
770 * regcache.c (struct inferior_rgcache_data, registers_to_string)
771 (registers_from_string, register_data): Likewise.
772 * server.c (handle_query, main): Likewise.
773 * server.h (convert_ascii_to_int, convert_int_to_ascii)
774 (decode_M_packet): Likewise.
775 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
776 * target.h (struct target_ops): Update read_memory, write_memory,
777 and read_auxv.
778 (read_inferior_memory, write_inferior_memory): Update.
779 * linux-low.h (struct linux_target_ops): Change type of breakpoint
780 to unsigned char *.
781 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
782 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
783 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
784 linux-s390-low.c, linux-sh-low.c: Update for changes in
785 read_inferior_memory and the_low_target->breakpoint.
786
eee84df1
DJ
7872005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
788
789 * Makefile.in (SFILES): Add linux-ppc64-low.c.
790 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
791 * configure.srv: Add powerpc64-*-linux*.
792 * linux-ppc64-low.c: New file.
793
45b134e5
OF
7942005-05-23 Orjan Friberg <orjanf@axis.com>
795
796 * linux-cris-low.c: New file with support for CRIS.
797 * linux-crisv32-low.c: Ditto for CRISv32.
798 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
799 (clean): Add reg-cris.c and reg-crisv32.c.
800 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
801 reg-crisv32.o, and reg-crisv32.c to make rules.
802 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
803 recognized targets.
804
48d93c75
UW
8052005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
806
807 * linux-low.c (fetch_register): Ensure buffer size is a multiple
808 of sizeof (PTRACE_XFER_TYPE).
809 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
810
e013ee27
OF
8112005-05-12 Orjan Friberg <orjanf@axis.com>
812
813 * target.h (struct target_ops): Add insert_watchpoint,
814 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
815 pointers for hardware watchpoint support.
816 * linux-low.h (struct linux_target_ops): Ditto.
817 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
818 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
819 to linux_target_ops.
820 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
821 reply packet.
822 * server.c (main): Recognize 'Z' and 'z' packets.
823
b0ded00b
UW
8242005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
825
826 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
827 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
828 (the_low_target): Add new members.
829
8643e2ad
DJ
8302005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
831
832 * proc-service.c (ps_lgetregs): Search all_processes instead of
833 all_threads.
834
fc620387
DJ
8352005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
836
837 * server.c (start_inferior): Change return type to int.
838 (attach_inferior): Change sigptr to int *.
839 (handle_v_cont, handle_v_requests): Change signal to int *.
840 (main): Change signal to int.
841
8422005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
843
844 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
845 * configure.srv: Add m32r*-*-linux*.
846 * linux-m32r-low.c: New file.
847
e0e76420
DJ
8482005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
849
850 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
851
a1928bad
DJ
8522005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
853
854 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
855 Take unsigned long arguments for PIDs.
856 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
857 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
858 (wait_for_sigstop, linux_resume_one_process)
859 (regsets_fetch_inferior_registers, linux_send_signal)
860 (linux_read_auxv): Likewise. Update the types of variables holding
861 PIDs. Update format string specifiers.
862 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
863 * remote-utils.c (prepare_resume_reply): Likewise.
864 * server.c (cont_thread, general_thread, step_thread)
865 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
866 unsigned long.
867 (handle_query): Update format specifiers.
868 (handle_v_cont, main): Use strtoul for thread IDs.
869 * server.h (struct inferior_list_entry): Use unsigned long for ID.
870 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
871 (general_thread, step_thread, thread_from_wait)
872 (old_thread_from_wait): Update.
873 * target.h (struct thread_resume): Use unsigned long for THREAD.
874 (struct target_ops): Use unsigned long for arguments to attach and
875 thread_alive.
876
dcdb98d2
DJ
8772005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
878
879 * acinclude.m4: Include bfd/bfd.m4 directly.
880 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
881 <agriffis@toolchain.org>.
882 * aclocal.m4, configure: Regenerated.
883
bec39cab
AC
8842005-01-07 Andrew Cagney <cagney@gnu.org>
885
886 * configure.ac: Rename configure.in, require autoconf 2.59.
887 * configure: Re-generate.
888
434c4c77
DJ
8892004-12-08 Daniel Jacobowitz <dan@debian.org>
890
891 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
892 LIBS when finished.
893 * aclocal.m4: Regenerated.
894 * configure: Regenerated.
895
db1d3e1b
AS
8962004-11-21 Andreas Schwab <schwab@suse.de>
897
898 * linux-m68k-low.c (m68k_num_gregs): Define.
899 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
900 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
901 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
902 (m68k_breakpoint_at): New. Add to the_low_target.
903
904 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
905 srv_linux_thread_db to yes.
906
43360365
JB
9072004-10-20 Joel Brobecker <brobecker@gnat.com>
908
909 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
910 (ARCH_SET_FS): Likewise.
911 (ARCH_GET_FS): Likewise.
912 (ARCH_GET_GS): Likewise.
913
fd500816
DJ
9142004-10-16 Daniel Jacobowitz <dan@debian.org>
915
916 * linux-i386-low.c (ps_get_thread_area): New.
917 * linux-x86-64-low.c (ps_get_thread_area): New.
918 * linux-low.c: Include <sys/syscall.h>.
919 (linux_kill_one_process): Don't kill the first thread here.
920 (linux_kill): Kill the first thread here.
921 (kill_lwp): New function.
922 (send_sigstop, linux_send_signal): Use it.
923 * proc-service.c: Clean up #ifdefs.
924 (fpregset_info): Delete.
925 (ps_lgetregs): Update and enable implementation.
926 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
927 implementations.
928 * remote-utils.c (struct sym_cache, symbol_cache): New.
929 (input_interrupt): Print a clearer message.
930 (async_io_enabled): New variable.
931 (enable_async_io, disable_async_io): Use it. Update comments.
932 (look_up_one_symbol): Use the symbol cache.
933 * thread-db.c (thread_db_look_up_symbols): New function.
934 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
935
f6de3c42
DJ
9362004-10-16 Daniel Jacobowitz <dan@debian.org>
937
938 * configure.in: Test for -rdynamic.
939 * configure: Regenerated.
940 * Makefile (INTERNAL_LDFLAGS): New.
941 (gdbserver, gdbreplay): Use it.
942
2c0fc042
AC
9432004-09-02 Andrew Cagney <cagney@gnu.org>
944
945 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
946
075b3282
DJ
9472004-03-23 Daniel Jacobowitz <drow@mvista.com>
948
949 * linux-low.c (linux_wait): Clear all_processes list also.
950
fa6a77dc
DJ
9512004-03-12 Daniel Jacobowitz <drow@mvista.com>
952
953 * linux-low.c: Include <errno.h>. Remove extern declaration of
954 errno.
955
6d782a97
DJ
9562004-03-12 Daniel Jacobowitz <drow@mvista.com>
957
958 * gdbreplay.c, server.h, utils.c: Update copyright years.
959
3a7fb99b
DJ
9602004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
961
962 * server.c (main): Print child status or termination signal from
963 variable 'signal', not 'sig'.
964
c3e735a6
DJ
9652004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
966
967 * linux-low.c (linux_read_memory): Change return type to
968 int. Check for and return error from ptrace().
969 * target.c (read_inferior_memory): Change return type to int. Pass
970 back return status from the_target->read_memory().
971 * target.h (struct target_ops): Adapt *read_memory() prototype.
972 Update comment.
973 (read_inferior_memory): Adapt prototype.
974 * server.c (main): Return an error packet if
975 read_inferior_memory() returns an error.
976
a59d1c82
DJ
9772004-03-04 Daniel Jacobowitz <drow@mvista.com>
978
979 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
980 Unify with other clean targets.
981
dc3f8883
DJ
9822004-02-29 Daniel Jacobowitz <drow@mvista.com>
983
984 * server.c (handle_v_cont): Call set_desired_inferior.
985
89a208da
DJ
9862004-02-29 Daniel Jacobowitz <drow@mvista.com>
987
988 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
989
62ea82f5
DJ
9902004-02-29 Daniel Jacobowitz <drow@mvista.com>
991
992 * linux-low.c (linux_wait): Unblock async I/O.
993 (linux_resume): Block and enable async I/O.
994 * remote-utils.c (block_async_io, unblock_async_io): New functions.
995 * server.h (block_async_io, unblock_async_io): Add prototypes.
996
6910d122
DJ
9972004-02-29 Daniel Jacobowitz <drow@mvista.com>
998
999 * remote-utils.c (remote_open): Print a status notice after
1000 opening a TCP port.
1001 * server.c (attach_inferior): Print a status notice after
1002 attaching.
1003
10042004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
1005
1006 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
1007
c89dc5d4
DJ
10082004-02-26 Daniel Jacobowitz <drow@mvista.com>
1009
1010 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
1011 error packet.
1012 * server.c, target.h: Update copyright years.
1013
4b8dad4a
RM
10142004-02-25 Roland McGrath <roland@redhat.com>
1015
1016 * target.h (struct target_ops): New member `read_auxv'.
1017 * server.c (handle_query): Handle qPart:auxv:read: query using that.
1018 * linux-low.c (linux_read_auxv): New function.
1019 (linux_target_ops): Initialize `read_auxv' member to that.
1020
d7446758
JB
10212004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1022
1023 Committed by Jim Blandy <jimb@redhat.com>.
1024
1025 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 1026 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
1027 instead of GPR_SIZE to distiguish s390 and s390x targets.
1028
5544ad89
DJ
10292004-01-31 Daniel Jacobowitz <drow@mvista.com>
1030
1031 * linux-low.c: Update copyright year.
1032 (check_removed_breakpoint): Clear pending_is_breakpoint.
1033 (linux_set_resume_request, linux_queue_one_thread)
1034 (resume_status_pending_p): New functions.
1035 (linux_continue_one_thread): Use process->resume.
1036 (linux_resume): Only resume threads if there are no pending events.
1037 * linux-low.h (struct process_info): Add resume request
1038 pointer.
1039
2a68b70e
DJ
10402004-01-30 Daniel Jacobowitz <drow@mvista.com>
1041
1042 * regcache.c (new_register_cache): Clear the allocated register
1043 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1044
64386c31
DJ
10452003-10-13 Daniel Jacobowitz <drow@mvista.com>
1046
1047 * linux-low.c (linux_resume): Take a struct thread_resume *
1048 argument.
1049 (linux_wait): Update call.
1050 (resume_ptr): New static variable.
1051 (linux_continue_one_thread): Renamed from
1052 linux_continue_one_process. Use resume_ptr.
1053 (linux_resume): Use linux_continue_one_thread.
1054 * server.c (handle_v_cont, handle_v_requests): New functions.
1055 (myresume): New function.
1056 (main): Handle 'v' case.
1057 * target.h (struct thread_resume): New type.
1058 (struct target_ops): Change argument of "resume" to struct
1059 thread_resume *.
1060 (myresume): Delete macro.
1061
c938e9b0
L
10622003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1063
1064 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
1065 (uninstall): Support DESTDIR.
1066
7f313d07
BC
1067Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
1068
1069 * configure.srv: Add xscale*linux copy of arm*linux entry.
1070
3b2fc2ea
DJ
10712003-07-24 Daniel Jacobowitz <drow@mvista.com>
1072
1073 * linux-arm-low.c (arm_reinsert_addr): New function.
1074 (the_low_target): Add arm_reinsert_addr.
1075
1c0a559e
MK
10762003-07-08 Mark Kettenis <kettenis@gnu.org>
1077
1078 * mem-break.c: Remove whitespace at end of file.
1079
43d5792c
DJ
10802003-06-28 Daniel Jacobowitz <drow@mvista.com>
1081
1082 * configure.in: Check whether we need to prototype strerror.
1083 * server.h: Optionally prototype strerror.
1084 * gdbreplay.c (perror_with_name): Use strerror.
1085 * linux-low.c (linux_attach_lwp): Use strerror.
1086 * utils.c (perror_with_name): Use strerror.
1087 * config.in, configure: Regenerated.
1088
c8a86edf
DJ
10892003-06-28 Daniel Jacobowitz <drow@mvista.com>
1090
1091 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
1092 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
1093
73d37363
DJ
10942003-06-20 Daniel Jacobowitz <drow@mvista.com>
1095
1096 * Makefile.in (SFILES): Update.
1097 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
1098 low-sun3.c: Remove files.
1099
6ad8ae5c
DJ
11002003-06-17 Daniel Jacobowitz <drow@mvista.com>
1101
1102 * linux-low.c: Move comment to linux_thread_alive where it belonged.
1103 (linux_detach_one_process, linux_detach): New functions.
1104 (linux_target_ops): Add linux_detach.
1105 * server.c (main): Handle 'D' packet.
1106 * target.h (struct target_ops): Add "detach" member.
1107 (detach_inferior): Define.
1108
1581182a
MK
11092003-06-13 Mark Kettenis <kettenis@gnu.org>
1110
1111 From Kelley Cook <kelleycook@wideopenwest.com>:
1112 * configure.srv: Accept i[34567]86 variants.
1113
e5379b03
DJ
11142003-06-05 Daniel Jacobowitz <drow@mvista.com>
1115
1116 * linux-low.c (linux_wait_for_event): Correct comment typos.
1117 (linux_resume_one_process): Call check_removed_breakpoint.
1118 (linux_send_signal): New function.
1119 (linux_target_ops): Add linux_send_signal.
1120 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
1121 of kill.
1122 * target.h (struct target_ops): Add send_signal.
1123
2ff29de4
JB
11242003-05-29 Jim Blandy <jimb@redhat.com>
1125
1126 * linux-low.c (usr_store_inferior_registers): Transfer buf in
1127 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
1128 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
1129 away part of the register's value.
1130
254787d4
DJ
11312003-03-26 Daniel Jacobowitz <drow@mvista.com>
1132
1133 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
1134 (linux_wait_for_event, linux_init_signals): Likewise.
1135
94e10508
DJ
11362003-03-17 Daniel Jacobowitz <drow@mvista.com>
1137
1138 * configure.in: Check for stdlib.h.
1139 * configure: Regenerated.
1140 * config.in: Regenerated.
1141
4c0711e0
DJ
11422003-01-04 Andreas Schwab <schwab@suse.de>
1143
1144 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
1145
ef66e766
AC
11462003-01-02 Andrew Cagney <ac131313@redhat.com>
1147
1148 * Makefile.in: Remove obsolete code.
1149
a1358604
DJ
11502002-11-20 Daniel Jacobowitz <drow@mvista.com>
1151
1152 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
1153 defined(PT_FPR0_HI).
1154
23ce3b1c
DJ
11552002-11-17 Stuart Hughes <seh@zee2.com>
1156
1157 * linux-arm-low.c (arm_num_regs): Increase.
1158 (arm_regmap): Include status register.
1159
11602002-11-17 Daniel Jacobowitz <drow@mvista.com>
1161
1162 * linux-low.c (register_addr): Remove incorrect -1 check.
1163
a9fa9f7d
DJ
11642002-08-29 Daniel Jacobowitz <drow@mvista.com>
1165
1166 * linux-low.c (linux_create_inferior): Call setpgid. Return
1167 the new PID.
1168 (unstopped_p, linux_signal_pid): Remove.
1169 (linux_target_ops): Remove linux_signal_pid.
1170 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
1171 global instead of target method.
1172 * target.h (struct target_ops): Remove signal_pid. Update comment
1173 for create_inferior.
1174 * server.c (signal_pid): New variable.
1175 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 1176 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
1177 (attach_inferior): Set signal_pid.
1178
17574093
DJ
11792002-08-23 Daniel Jacobowitz <drow@mvista.com>
1180
1181 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
1182
11832002-08-20 Jim Blandy <jimb@redhat.com>
1184
1185 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1186 default for this.
1187
11882002-08-01 Andrew Cagney <cagney@redhat.com>
1189
1190 * Makefile.in: Make chill references obsolete.
1191
11922002-07-24 Kevin Buettner <kevinb@redhat.com>
1193
1194 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1195 * configure: Regenerate.
1196 * config.in: Regenerate.
1197
11982002-07-09 David O'Brien <obrien@FreeBSD.org>
1199
1200 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1201 (perror_with_name, remote_close, remote_open, expect, play): Static.
1202
12032002-07-04 Michal Ludvig <mludvig@suse.cz>
1204
4b8dad4a 1205 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
1206 byte offsets instead of an array of indexes.
1207 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
1208
12092002-06-13 Daniel Jacobowitz <drow@mvista.com>
1210
1211 * regcache.c: Add comment.
1212
12132002-06-11 Daniel Jacobowitz <drow@mvista.com>
1214
1215 * thread-db.c: New file.
1216 * proc-service.c: New file.
1217 * acinclude.m4: New file.
1218 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
1219 proc-service.o, and thread-db.o.
1220 (linux-low.o): Add USE_THREAD_DB.
1221 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
1222 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
1223 * aclocal.m4: Regenerated.
1224 * config.in: Regenerated.
1225 * configure: Regenerated.
1226 * configure.in: Check for proc_service.h, sys/procfs.h,
1227 thread_db.h, and linux/elf.h headrs.
1228 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
1229 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
1230 Check for -lthread_db and thread support.
1231 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
1232 PowerPC, and SuperH.
1233 * i387-fp.c: Constify arguments.
1234 * i387-fp.h: Likewise.
1235 * inferiors.c: (struct thread_info): Renamed from
1236 `struct inferior_info'. Remove PID member. Use generic inferior
1237 list header. All uses updated.
1238 (inferiors, signal_pid): Removed.
1239 (all_threads): New variable.
1240 (get_thread): Define.
1241 (add_inferior_to_list): New function.
1242 (for_each_inferior): New function.
1243 (change_inferior_id): New function.
1244 (add_inferior): Removed.
1245 (remove_inferior): New function.
1246 (add_thread): New function.
1247 (free_one_thread): New function.
1248 (remove_thread): New function.
1249 (clear_inferiors): Use for_each_inferior and free_one_thread.
1250 (find_inferior): New function.
1251 (find_inferior_id): New function.
1252 (inferior_target_data): Update argument type.
1253 (set_inferior_target_data): Likewise.
1254 (inferior_regcache_data): Likewise.
1255 (set_inferior_regcache_data): Likewise.
1256 * linux-low.c (linux_bp_reinsert): Remove.
1257 (all_processes, stopping_threads, using_thrads)
1258 (struct pending_signals, debug_threads, pid_of): New.
1259 (inferior_pid): Replace with macro.
1260 (struct inferior_linux_data): Remove.
1261 (get_stop_pc, add_process): New functions.
1262 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
1263 Use add_process and add_thread.
1264 (linux_attach_lwp): New function, based on old linux_attach. Use
1265 add_process and add_thread. Set stop_expected for new threads.
1266 (linux_attach): New function.
1267 (linux_kill_one_process): New function.
1268 (linux_kill): Kill all LWPs.
1269 (linux_thread_alive): Use find_inferior_id.
1270 (check_removed_breakpoints, status_pending_p): New functions.
1271 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
1272 Update. Use WNOHANG. Wait for cloned processes also. Update process
1273 struct for the found process.
1274 (linux_wait_for_event): New function.
1275 (linux_wait): Use it. Support LWPs.
1276 (send_sigstop, wait_for_sigstop, stop_all_processes)
1277 (linux_resume_one_process, linux_continue_one_process): New functions.
1278 (linux_resume): Support LWPs.
1279 (REGISTER_RAW_SIZE): Remove.
1280 (fetch_register): Use register_size instead. Call supply_register.
1281 (usr_store_inferior_registers): Likewise. Call collect_register.
1282 Fix recursive case.
1283 (regsets_fetch_inferior_registers): Improve error message.
1284 (regsets_store_inferior_registers): Add debugging.
1285 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
1286 (unstopped_p, linux_signal_pid): New functions.
1287 (linux_target_ops): Add linux_signal_pid.
1288 (linux_init_signals): New function.
1289 (initialize_low): Call it. Initialize using_threads.
1290 * regcache.c (inferior_regcache_data): Add valid
1291 flag.
1292 (get_regcache): Fetch registers lazily. Add fetch argument
1293 and update all callers.
1294 (regcache_invalidate_one, regcache_invalidate): New
1295 functions.
1296 (new_register_cache): Renamed from create_register_cache.
1297 Return the new regcache.
1298 (free_register_cache): Change argument to a void *.
1299 (registers_to_string, registers_from_string): Call get_regcache
1300 with fetch flag set.
1301 (register_data): Make static. Pass fetch flag to get_regcache.
1302 (supply_register): Call get_regcache with fetch flag clear.
1303 (collect_register): Call get_regcache with fetch flag set.
1304 (collect_register_as_string): New function.
1305 * regcache.h: Update.
1306 * remote-utils.c (putpkt): Flush after debug output and use
1307 stderr.
1308 Handle input interrupts while waiting for an ACK.
1309 (input_interrupt): Use signal_pid method.
1310 (getpkt): Flush after debug output and use stderr.
1311 (outreg): Use collect_register_as_string.
1312 (new_thread_notify, dead_thread_notify): New functions.
1313 (prepare_resume_reply): Check using_threads. Set thread_from_wait
1314 and general_thread.
1315 (look_up_one_symbol): Flush after debug output.
1316 * server.c (step_thread, server_waiting): New variables.
1317 (start_inferior): Don't use signal_pid. Update call to mywait.
1318 (attach_inferior): Update call to mywait.
1319 (handle_query): Handle qfThreadInfo and qsThreadInfo.
1320 (main): Don't fetch/store registers explicitly. Use
1321 set_desired_inferior. Support proposed ``Hs'' packet. Update
1322 calls to mywait.
1323 * server.h: Update.
1324 (struct inferior_list, struct_inferior_list_entry): New.
1325 * target.c (set_desired_inferior): New.
1326 (write_inferior_memory): Constify.
1327 (mywait): New function.
1328 * target.h: Update.
1329 (struct target_ops): New signal_pid method.
1330 (mywait): Removed macro, added prototype.
1331
1332 * linux-low.h (regset_func): Removed.
1333 (regset_fill_func, regset_store_func): New.
1334 (enum regset_type): New.
1335 (struct regset_info): Add type field. Use new operation types.
1336 (struct linux_target_ops): stop_pc renamed to get_pc.
1337 Add decr_pc_after_break and breakpoint_at.
1338 (get_process, get_thread_proess, get_process_thread)
1339 (strut process_info, all_processes, linux_attach_lwp)
1340 (thread_db_init): New.
1341
1342 * linux-arm-low.c (arm_get_pc, arm_set_pc,
1343 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
1344 (the_low_target): Add new members.
1345 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
1346 (i386_store_fpxregset): Constify.
1347 (target_regsets): Add new kind identifier.
1348 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
1349 (i386_set_pc): Add debugging.
1350 (i386_breakpoint_at): New function.
1351 (the_low_target): Add new members.
1352 * linux-mips-low.c (mips_get_pc, mips_set_pc)
1353 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
1354 (mips_breakpoint_at): New.
1355 (the_low_target): Add new members.
1356 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
1357 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
1358 (the_low_target): Add new members.
1359 * linux-sh-low.c (sh_get_pc, sh_set_pc)
1360 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
1361 (the_low_target): Add new members.
1362 * linux-x86-64-low.c (target_regsets): Add new kind
1363 identifier.
1364
13652002-05-15 Daniel Jacobowitz <drow@mvista.com>
1366
1367 From Martin Pool <mbp@samba.org>:
1368 * server.c (gdbserver_usage): New function.
1369 (main): Call it.
1370
13712002-05-14 Daniel Jacobowitz <drow@mvista.com>
1372
1373 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
1374 stop_at -> stop_pc.
1375
13762002-05-04 Andrew Cagney <ac131313@redhat.com>
1377
1378 * Makefile.in: Remove obsolete code.
1379
13802002-04-24 Michal Ludvig <mludvig@suse.cz>
1381
1382 * linux-low.c (regsets_fetch_inferior_registers),
1383 (regsets_store_inferior_registers): Removed cast to int from
1384 ptrace() calls.
1385 * regcache.h: Added declaration of struct inferior_info.
1386
13872002-04-20 Daniel Jacobowitz <drow@mvista.com>
1388
1389 * inferiors.c (struct inferior_info): Add regcache_data.
1390 (add_inferior): Call create_register_cache.
1391 (clear_inferiors): Call free_register_cache.
1392 (inferior_regcache_data, set_inferior_regcache_data): New functions.
1393 * regcache.c (struct inferior_regcache_data): New.
1394 (registers): Remove.
1395 (get_regcache): New function.
1396 (create_register_cache, free_register_cache): New functions.
1397 (set_register_cache): Don't initialize the register cache here.
1398 (registers_to_string, registers_from_string, register_data): Call
1399 get_regcache.
1400 * regcache.h: Add prototypes.
1401 * server.h: Likewise.
1402
14032002-04-20 Daniel Jacobowitz <drow@mvista.com>
1404
1405 * mem-break.c: New file.
1406 * mem-break.h: New file.
1407 * Makefile.in: Add mem-break.o rule; update server.h
1408 dependencies.
1409 * inferiors.c (struct inferior_info): Add target_data
1410 member.
1411 (clear_inferiors): Free target_data member if set.
1412 (inferior_target_data, set_inferior_target_data): New functions.
1413 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
1414 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
1415 * linux-low.c (linux_bp_reinsert): New variable.
1416 (struct inferior_linux_data): New.
1417 (linux_create_inferior): Use set_inferior_target_data.
1418 (linux_attach): Likewise. Call add_inferior.
1419 (linux_wait_for_one_inferior): New function.
1420 (linux_wait): Call it.
1421 (linux_write_memory): Add const.
1422 (initialize_low): Call set_breakpoint_data.
1423 * linux-low.h (struct linux_target_ops): Add breakpoint
1424 handling members.
1425 * server.c (attach_inferior): Remove extra add_inferior
1426 call.
1427 * server.h: Include mem-break.h. Update inferior.c
1428 prototypes.
1429 * target.c (read_inferior_memory)
1430 (write_inferior_memory): New functions.
1431 * target.h (read_inferior_memory)
1432 (write_inferior_memory): Change macros to prototypes.
1433 (struct target_ops): Update comments. Add const to write_memory
1434 definition.
1435
14362002-04-11 Daniel Jacobowitz <drow@mvista.com>
1437
1438 * linux-low.c (usr_store_inferior_registers): Support
1439 registers which are allowed to fail to store.
1440 * linux-low.h (linux_target_ops): Likewise.
1441 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
1442 (ppc_cannot_store_register): FPSCR may not be storable.
1443
14442002-04-09 Daniel Jacobowitz <drow@mvista.com>
1445
1446 * server.h: Include <string.h> if HAVE_STRING_H.
1447 * ChangeLog: Correct paths in last ChangeLog entry.
1448
14492002-04-09 Daniel Jacobowitz <drow@mvista.com>
1450
1451 * linux-low.h: Remove obsolete prototypes.
1452 (struct linux_target_ops): New.
1453 (extern the_low_target): New.
1454 * linux-low.c (num_regs, regmap): Remove declarations.
1455 (register_addr): Use the_low_target explicitly.
1456 (fetch_register): Likewise.
1457 (usr_fetch_inferior_registers): Likewise.
1458 (usr_store_inferior_registers): Likewise.
1459 * linux-arm-low.c (num_regs): Remove.
1460 (arm_num_regs): Define.
1461 (arm_regmap): Renamed from regmap, made static.
1462 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1463 made static.
1464 (arm_cannot_store_register): Renamed from cannot_store_register,
1465 made static.
1466 (the_low_target): New.
1467 * linux-i386-low.c (num_regs): Remove.
1468 (i386_num_regs): Define.
1469 (i386_regmap): Renamed from regmap, made static.
1470 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1471 made static.
1472 (i386_cannot_store_register): Renamed from cannot_store_register,
1473 made static.
1474 (the_low_target): New.
1475 * linux-ia64-low.c (num_regs): Remove.
1476 (ia64_num_regs): Define.
1477 (ia64_regmap): Renamed from regmap, made static.
1478 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1479 made static.
1480 (ia64_cannot_store_register): Renamed from cannot_store_register,
1481 made static.
1482 (the_low_target): New.
1483 * linux-m68k-low.c (num_regs): Remove.
1484 (m68k_num_regs): Define.
1485 (m68k_regmap): Renamed from regmap, made static.
1486 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1487 made static.
1488 (m68k_cannot_store_register): Renamed from cannot_store_register,
1489 made static.
1490 (the_low_target): New.
1491 * linux-mips-low.c (num_regs): Remove.
1492 (mips_num_regs): Define.
1493 (mips_regmap): Renamed from regmap, made static.
1494 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1495 made static.
1496 (mips_cannot_store_register): Renamed from cannot_store_register,
1497 made static.
1498 (the_low_target): New.
1499 * linux-ppc-low.c (num_regs): Remove.
1500 (ppc_num_regs): Define.
1501 (ppc_regmap): Renamed from regmap, made static.
1502 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1503 made static.
1504 (ppc_cannot_store_register): Renamed from cannot_store_register,
1505 made static.
1506 (the_low_target): New.
1507 * linux-s390-low.c (num_regs): Remove.
1508 (s390_num_regs): Define.
1509 (s390_regmap): Renamed from regmap, made static.
1510 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1511 made static.
1512 (s390_cannot_store_register): Renamed from cannot_store_register,
1513 made static.
1514 (the_low_target): New.
1515 * linux-sh-low.c (num_regs): Remove.
1516 (sh_num_regs): Define.
1517 (sh_regmap): Renamed from regmap, made static.
1518 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1519 made static.
1520 (sh_cannot_store_register): Renamed from cannot_store_register,
1521 made static.
1522 (the_low_target): New.
1523 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1524 (the_low_target): New.
1525
15262002-04-09 Daniel Jacobowitz <drow@mvista.com>
1527
1528 * Makefile.in: Add stamp-h target.
1529 * configure.in: Create stamp-h.
1530 * configure: Regenerated.
1531
15322002-04-09 Daniel Jacobowitz <drow@mvista.com>
1533
1534 * inferiors.c: New file.
1535 * target.c: New file.
1536 * target.h: New file.
1537 * Makefile.in: Add target.o and inferiors.o. Update
1538 dependencies.
1539 * linux-low.c (inferior_pid): New static variable,
1540 moved from server.c.
1541 (linux_create_inferior): Renamed from create_inferior.
1542 Call add_inferior. Return 0 on success instead of a PID.
1543 (linux_attach): Renamed from myattach.
1544 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1545 (linux_thread_alive): Renamed from mythread_alive.
1546 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1547 child dies.
1548 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1549 (regsets_store_inferior_registers): Correct error message.
1550 Add missing ``return 0''.
1551 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1552 (linux_store_registers): Renamed from store_inferior_registers.
1553 (linux_read_memory): Renamed from read_inferior_memory.
1554 (linux_write_memory): Renamed from write_inferior_memory.
1555 (linux_target_ops): New structure.
1556 (initialize_low): Call set_target_ops ().
1557 * remote-utils.c (unhexify): New function.
1558 (hexify): New function.
1559 (input_interrupt): Send signals to ``signal_pid''.
1560 * server.c (inferior_pid): Remove.
1561 (start_inferior): Update create_inferior call.
1562 (attach_inferior): Call add_inferior.
1563 (handle_query): New function.
1564 (main): Call handle_query for `q' packets.
1565 * server.h: Include "target.h". Remove obsolete prototypes.
1566 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1567
15682002-04-09 Daniel Jacobowitz <drow@mvista.com>
1569
1570 * Makefile.in: Add WARN_CFLAGS. Update configury
1571 dependencies.
1572 * configure.in: Check for <string.h>
1573 * configure: Regenerate.
1574 * config.in: Regenerate.
1575 * gdbreplay.c: Include needed system headers.
1576 (remote_open): Remove strchr prototype.
1577 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1578 * regcache.c (supply_register): Change buf argument to const void *.
1579 (supply_register_by_name): Likewise.
1580 (collect_register): Change buf argument to void *.
1581 (collect_register_by_name): Likewise.
1582 * regcache.h: Add missing prototypes.
1583 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1584 * server.c (handle_query): New function.
1585 (attached): New static variable, moved out of main.
1586 (main): Quiet longjmp clobber warnings.
1587 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1588 * utils.c (error): Remove NORETURN.
1589 (fatal): Likewise.