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