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