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