1 2007-05-24 Steve Ellcey <sje@cup.hp.com>
3 * Makefile.in: Regnerate.
4 * configure: Regenerate.
5 * aclocal.m4: Regenerate.
6 * rda/lib/Makefile.in: Regenerate.
7 * rda/qe/Makefile.in: Regenerate.
8 * rda/samples/Makefile.in: Regenerate.
10 2007-04-14 Steve Ellcey <sje@cup.hp.com>
12 * Makefile.am: Add ACLOCAL_AMFLAGS.
13 * Makefile.in: Regenerate.
15 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
17 * samples/Makefile.am: Replace INTLLIBS and INTLDEPS with LIBINTL
18 and LIBINTL_DEP everywhere.
19 * acinclude.m4: Include new gettext macros.
20 * configure.in: Use ZW_GNU_GETTEXT_SISTER_DIR.
21 * Makefile.in, aclocal.m4, configure, lib/Makefile.in,
22 qe/Makefile.in, samples/Makefile.in: Regenerated.
24 2006-03-16 Kevin Buettner <kevinb@redhat.com>
26 * include/gdbloop.h (gdbloop, gdbloop_poll): Revise comments
27 to indicate that timeout granulatiry is now in milliseconds
29 * lib/gdbloop.c (poll_gdbsocket): Change ``timeout'' granulatiry
30 from seconds to milliseconds.
32 2005-03-03 Kevin Buettner <kevinb@redhat.com>
34 * lib/crc32.h, lib/crc32.c: New files.
35 * lib/Makefile.am (librda_la_SOURCES): Add crc32.c to list.
36 * lib/Makefile.in: Regenerate.
37 * lib/gdbserv-state.c (crc32.h): Include.
38 (read_memory, do_qCRC_packet): New functions.
39 (gdbserv_data_packet): Add support for qCRC packet.
41 2005-02-07 Jim Blandy <jimb@redhat.com>
43 Regenerate Makefile.in files generated by top-level configure
44 script using Automake 1.9.3.
45 * lib/Makefile.am: Don't write out rules for both '.a' and '.la'
46 versions of the library. Libtool generates a '.a' library
48 * Makefile.in, lib/Makefile.in, qe/Makefile.in,
49 samples/Makefile.in: Regenerated.
51 2004-12-09 Jim Blandy <jimb@redhat.com>
53 * configure.in: Clean up junk whitespace. Don't call
54 AC_CONFIG_SUBDIRS on variables' values; invoke it on a constant
55 value, at each place we add a directory to targ_subdirs, as
56 recommended by the autoconf manual.
57 * aclocal.m4, configure: Regenerated.
59 2004-10-07 Jim Blandy <jimb@redhat.com>
61 * lib/gdbserv-state.c (do_get_registers_p_packet): Don't produce a
62 ';' trailing the register value unless there are more register
63 values to come. This makes the multi-register packet
64 upward-compatible with the single-register request / reply
67 * samples/async.c: #define _GNU_SOURCE before #including any
68 files, to get prototypes for GNU-specific functions like
71 2004-09-24 Jim Blandy <jimb@redhat.com>
73 * lib/gdbserv-output.c, samples/demo-target.c, samples/main.c,
74 samples/poll.c: #include <string.h>.
76 2004-09-14 Jim Blandy <jimb@theseus.home>
80 2004-07-23 Michael Snyder <msnyder@redhat.com>
82 * MAINTAINERS: Remove Andrew Cagney, at his request.
84 2004-07-09 Michael Snyder <msnyder@redhat.com>
86 * samples/demo-target.c (demo_set_thread_mem): Allocate new
87 simulated memory in hunks, rather than one byte at a time.
88 If target_mem.base moves down, copy contents up.
90 * samples/demo-target.c (demo_target): Call malloc only once,
91 so that gdb can detach and re-attach repeatedly.
93 * lib/gdbserv-target.c (gdbserv_fromtarget_terminate): Rename
94 parameter from exitval to sigval (it's a signal number).
95 * lib/gdbserv-target.c (gdbserv_totarget): Comment spelling fix.
96 * lib/gdbserv-state.c (gdbserv_fromclient_break): Add break
99 2003-05-20 Kevin Buettner <kevinb@redhat.com>
101 * lib/gdbserv-utils.c (gdbserv_le_bytes_from_reg): Fix typo that
102 caused incorrect number of bytes to be copied.
104 2003-01-16 Kevin Buettner <kevinb@redhat.com>
106 * lib/gdbserv-state.c (do_status_packet, gdbserv_data_packet): Fix
107 memset() calls - the arguments were in the wrong order.
108 (gdbserv_data_packet): Check return value from get_reg() call.
110 2002-12-02 Kevin Buettner <kevinb@redhat.com>
112 * include/gdbserv-utils.h, lib/gdbserv-utils.c
113 (gdbserv_be_bytes_to_reg, gdbserv_le_bytes_to_reg)
114 (gdbserv_be_bytes_from_reg, gdbserv_le_bytes_from_reg)
115 (gdbserv_host_bytes_to_reg, gdbserv_host_bytes_from_reg):
118 2002-11-04 Kevin Buettner <kevinb@redhat.com>
120 * Makefile.in, aclocal.m4, configure, lib/Makefile.in, qe/Makefile.in,
121 samples/Makefile.in, unix/configure: Regenerate configury using
122 aclocal 1.6.3, automake 1.6.3, and autoconf 2.53.
124 2002-08-22 Kevin Buettner <kevinb@redhat.com>
126 * lib/Makefile.am (INCLUDES): Remove references to bfd.
127 (THESOURCES): Remove bfd-loader.c from list.
128 * lib/Makefile.in: Regenerate.
129 * samples/Makefile.am (sample_DEPLIBS): Remove references to
131 * samples/Makefile.in: Regenerate.
133 2002-08-21 Kevin Buettner <kevinb@redhat.com>
135 * HOWTO, MAINTAINERS, NEWS, README, REMOTE-HACK-RULES,
136 configure.in, lib/Makefile.am, lib/gdbserv-target.c,
137 samples/Makefile.am, samples/async.c, samples/demo-target.c,
138 samples/main.c, samples/poll.c: Change ``libremote'' references
139 into ``RDA'' references.
140 * configure, lib/Makefile.in, samples/Makefile.in: Regenerate.
142 2002-08-15 Kevin Buettner <kevinb@redhat.com>
144 * include/gdblog.h, include/gdbloop.h, include/gdbsched.h,
145 include/gdbserv-client.h, include/gdbserv-input.h,
146 include/gdbserv-log.h, include/gdbserv-output.h,
147 include/gdbserv-target.h, include/gdbserv-utils.h,
148 include/gdbserv.h, include/gdbsocket.h, include/stdio-log.h,
149 lib/gdblog.c, lib/gdbloop.c, lib/gdbsched.c,
150 lib/gdbserv-input.c, lib/gdbserv-log.c, lib/gdbserv-output.c,
151 lib/gdbserv-state.c, lib/gdbserv-state.h,
152 lib/gdbserv-target.c, lib/gdbserv-utils.c, lib/gdbsocket.c,
153 lib/stdio-log.c, qe/README, qe/inc-backwards.c,
154 qe/inc-forward.c, qe/inc-gdblog.c, qe/inc-gdbloop.c,
155 qe/inc-gdbsched.c, qe/inc-gdbserv-client.c,
156 qe/inc-gdbserv-input.c, qe/inc-gdbserv-log.c,
157 qe/inc-gdbserv-output.c, qe/inc-gdbserv-target.c,
158 qe/inc-gdbserv-utils.c, qe/inc-gdbserv.c, qe/inc-gdbsocket.c,
159 qe/inc-stdio-log.c, samples/async.c, samples/demo-target.c,
160 samples/demo-target.h, samples/main.c, samples/poll.c,
161 samples/thread.c: Update copyright notices.
163 2002-08-14 Kevin Buettner <kevinb@redhat.com>
165 * include/bfd-loader.h: Delete.
166 * lib/bfd-loader.c: Delete.
167 * samples/main.c (main): Eliminate code for loading files.
168 (usage): Adjust usage message to account for the fact that we can
169 no longer load files.
171 2002-01-02 Ben Elliston <bje@redhat.com>
173 * MAINTAINERS: Update mail addresses.
175 2001-10-13 Kevin Buettner <kevinb@redhat.com>
177 * include/gdbserv-utils.h (gdbserv_be_bytes_to_reg)
178 (gdbserv_le_bytes_to_reg, gdbserv_be_bytes_from_reg)
179 (gdbserv_le_bytes_from_reg, gdbserv_native_bytes_to_reg)
180 (gdbserv_native_bytes_from_reg): New functions.
181 * lib/gdbserv-utils.c (config.h): Include.
183 (reverse_copy_bytes, gdbserv_be_bytes_to_reg)
184 (gdbserv_le_bytes_to_reg, gdbserv_be_bytes_from_reg)
185 (gdbserv_le_bytes_from_reg, gdbserv_host_bytes_to_reg)
186 (gdbserv_host_bytes_from_reg): New functions.
188 2001-09-28 Andrew Haley <aph@cambridge.redhat.com>
190 * samples/main.c (main): Work around SIGCHLD problem.
192 2001-09-27 David Woodhouse <dwmw2@redhat.com>
194 * lib/gdbserver-target.c (gdbserv-totarget): Zero sigval to indicate
195 success if target->process_signal succeeds, instead of doing so
198 2001-08-20 Jonathan Larmour <jlarmour@redhat.com>
200 * lib/gdbsocket.c (process_read): Treat a read reporting shutdown
201 or connection reset as EOF.
203 2001-08-02 Michael Keezer <mkeezer@redhat.com>
205 * unix/configure.in: Add am33_2.0 & mn10300.
206 * unix/config.in: Add AM33_LINUX_TARGET & AM33_2_0_LINUX_TARGET.
207 * unix/linux-target.c: am33_2.0 & mn10300 support.
209 2001-07-26 Michael Snyder <msnyder@redhat.com>
211 * lib/gdbserv-utils.c (gdbserv_raw_to_hex): Increment pointer.
213 2001-06-25 Michael Snyder <msnyder@redhat.com>
215 * include/gdbserv-target.h: Fill in the remaining GDB signal numbers.
217 2001-06-12 Corinna Vinschen <vinschen@redhat.com>
219 * configure.in: Add linux as possible host for xscale subdir.
220 * configure: Regenerated.
222 2001-04-26 Andrew Cagney <ac131313@redhat.com>
224 * lib/gdbsocket.c: Include <ctype.h>.
225 (dump_buf): New function. Handle unprintable characters.
229 * lib/bfd-loader.c (struct lng): Add exit_addr and loaded_p.
230 (fromtarget): Check for unexpected stops.
231 (bfd_loader_exit): Report the exit status and stop address.
233 2001-04-23 Andrew Cagney <ac131313@redhat.com>
235 * lib/gdbserv-target.c: Include <assert.h>.
236 (gdbserv_totarget): Abort when the target fails to handle either
237 START_ADDR or SIGVAL.
239 2001-04-23 Andrew Cagney <ac131313@redhat.com>
241 * include/gdblog.h (gdblog_xlong, gdblog_xlong_ftype): Declare.
242 (gdblog_new): Add log_xlong parameter.
243 * lib/gdblog.c (struct gdblog): Add log_xlong.
244 (gdblog_xlong): New function.
245 (gdblog_new): Initialize log_xlong.
246 * lib/stdio-log.c (do_stdio_log_xlong): New function.
247 (stdio_log): Add do_stdio_log_xlong.
249 * lib/bfd-loader.c (load_n_go): Use gdblog_xlong to print
252 2001-04-19 Andrew Cagney <ac131313@redhat.com>
254 * samples/async.c: Include <string.h> for strsignal.
256 2001-04-17 Alexandre Oliva <aoliva@redhat.com>
258 * acinclude.m4: Get macros from ../libtool.m4 and ../gettext.m4.
259 * configure.in: Call CY_WITH_NLS.
260 * samples/Makefile.am (sample_DEPLIBS): New. Copied from
261 sample_LDADD, except for libintl.a.
262 (sample_LDADD): Set as sample_DEPLIBS plus INTLLIBS.
263 (sample_DEPENDENCIES): New. Same as sample_DEPLIBS plus INTLDEPS.
264 * aclocal.m4, configure, samples/Makefile.in: Rebuilt.
266 2001-04-16 Andrew Cagney <ac131313@redhat.com>
268 * lib/gdbsocket.c (process_accept): Only SIGIO when
271 2001-04-15 Andrew Cagney <ac131313@redhat.com>
273 * include/bfd-loader.h (bfd_loader_exit): Replace bfd_shutdown.
274 * lib/bfd-loader.c (lng): Add ``exit_val''.
275 (fromtarget): Save the exit value.
276 (bfd_loader_exit): Call exit with ``exit_val''.
277 * samples/main.c (main): Replace bfd_shutdown with
280 2001-04-15 Andrew Cagney <ac131313@redhat.com>
282 * include/gdbserv-target.h (struct gdbserv_target): Add ``to''.
283 (gdbserv_totarget): Declare.
284 (struct gdbserv_target): Make process_set_pc's ``val'' parameter
286 * lib/gdbserv-target.c: Include "gdbserv-utils.h" and "gdbserv.h".
287 (gdbserv_totarget): New function.
289 * lib/gdbserv-state.c (gdbserv_data_packet): Rewrite ``c'', ``C'',
290 ``s'', ``S'' and ``i'' packet code. Use gdbserv_totarget. Never
291 transition into state GDBSERV_STATE_STEPPING.
292 * lib/gdbserv-state.h (enum gdbserv_state): Delete
293 GDBSERV_STATE_STEPPING.
294 * lib/gdbserv-state.c (state2str, fromtarget): Update.
295 (gdbserv_fromclient_break): Ditto..
297 * lib/bfd-loader.c (load_n_go): Compute the start address. Pass
298 it to gdbserv_totarget.
299 * samples/demo-target.c (demo_process_set_pc): New function.
300 (demo_target): Initialize process_set_pc.
302 2001-04-15 Andrew Cagney <ac131313@redhat.com>
304 * include/gdbserv-target.h: Add ``stop_addr'' parameter. Document.
305 (struct gdbserv_target): Update member ``from''.
306 * lib/gdbserv-target.c (gdbserv_fromtarget_reset)
307 (gdbserv_fromtarget_restarted, gdbserv_fromtarget_terminate)
308 (gdbserv_fromtarget_exit, gdbserv_fromtarget_thread_break)
309 (gdbserv_fromtarget_break, gdbserv_fromtarget): Update.
310 * lib/gdbserv-state.c (fromtarget): Update.
311 * lib/bfd-loader.c (fromtarget_stopped): Delete.
312 (fromtarget): Update.
313 * samples/demo-target.c (do_fromtarget_ready): Update.
315 2001-04-13 Andrew Cagney <ac131313@redhat.com>
317 * samples/demo-target.c: Replace demo_set_memo with
318 demo_set_thread_mem. Replace demo_continue_program with
319 demo_continue_thread.
321 * lib/Makefile.am (THESOURCES): Add bfd-loader.c
322 (INCLUDES): Add top level include and bfd directories.
323 * lib/Makefile.in: Regenerate.
324 * include/bfd-loader.h: New file.
325 * lib/bfd-loader.c: New file.
327 * samples/main.c: Include "bfd-loader.h", "gdbsched.h" and
329 (main): Add ``-v'' verbose option.
330 (main): If the parameter isn't numeric or ``-'' assume that it is
331 a file to load using bfd_load. Schedule a program quit event.
333 (fake_exit): New function.
334 * samples/Makefile.am (sample_LDADD): Add libbfd.la, libintl.a and
336 * samples/Makefile.in: Regenerate.
338 2001-04-13 Andrew Cagney <ac131313@redhat.com>
340 * samples/main.c: Include <unistd.h>, <signal.h>, <ctype.h>,
341 "gdbsched.h", "gdbserv-target.h" and <time.h>.
342 (main): Add -d option. Interpret ``-'' parameter as stdio.
343 Validate port number. Add usage/help message. Use variable
344 shutdown to determine if the startup worked.
345 (usage): New function.
346 (do_close): New function.
347 * samples/stdio.c: Delete.
348 * samples/Makefile.am (noinst_PROGRAMS): Delete stdio.
349 (stdio_SOURCES, stdio_LDADD): Delete.
350 * samples/Makefile.in: Regenerate.
352 2001-04-13 Andrew Cagney <ac131313@redhat.com>
354 * samples/demo-target.c (demo_target): New function.
355 (do_fromtarget_reset): New function.
356 (demo_attach): Use demo_target and do_fromtarget_reset. Take
357 server out of reset state.
358 * samples/thread.c (thread_attach): Call demo_target.
360 2001-04-12 Andrew Cagney <ac131313@redhat.com>
362 * include/gdbserv.h (gdbserv_state): Delete declaration
363 (GDBSERV_STATE_STUMBLING): Delete.
364 (enum gdbserv_state): Move from here.
365 * lib/gdbserv-state.h (enum gdbserv_state): Back to here.
366 * lib/gdbserv-state.c (state2str): Update.
367 * lib/gdbserv-target.c: Don't include "gdbserv.h".
369 2001-04-12 Andrew Cagney <ac131313@redhat.com>
371 * lib/gdbserv-state.c (gdbserv_fromclient_attach): Create a cycle
372 of GDBSERVs. Initialize ``from'' method in target vector.
373 (gdbserv_fromclient_detach): Clear ``from'' method.
374 (do_exit_packet): New function. Output an exit/terminate packet.
375 (fromtarget): New function.
376 (gdbserv_fromtarget_reset): Delete.
377 (gdbserv_fromtarget_break): Delete.
378 (gdbserv_fromtarget_thread_break): Delete.
379 (gdbserv_fromtarget_exit): Delete.
380 (gdbserv_fromtarget_terminate): Delete.
382 * include/gdbserv-target.h (gdbserv_fromtarget): Declare.
383 (enum gdbserv_fromtarget_event): Define.
384 (struct gdbserv_target): Add ``from''.
385 (GDBSERV_SIG): Move definitions to start of file.
387 * lib/gdbserv-state.h (struct gdbserv): Add ``from'' and ``to'' as
388 links up and down the target stack.
389 * lib/gdbserv-target.c: New file.
390 * lib/Makefile.am (THESOURCES): Add gdbserv-target.c
391 * lib/Makefile.in: Regenerate.
393 2001-04-12 Andrew Cagney <ac131313@redhat.com>
395 * lib/gdbsocket.c (gdbsocket_had_sigio_p): Delete.
396 (sigio_socket): Delete.
397 (gdbsocket_sigio_enable, gdbsocket_sigio_disable): Delete.
398 (gdbsocket_async, gdbsocket_async_p): New function and variable.
399 (async_fd): Only enable O_ASYNC when async selected.
400 (gdbsocket_startup): Don't call gdbsocket_sigio_disable.
402 * include/gdbsocket.h (gdbsocket_had_sigio_p): Delete.
403 (gdbsocket_sigio_enable, gdbsocket_sigio_enable): Delete.
404 (gdbsocket_async): New function.
406 * samples/async.c (set_poll_p): Replace handle_sigalrm.
407 (poll_p): Volatile global.
408 (main): Register signal handlers for both SIGIO and SIGALRM. Check
409 poll_p. Call gdbsocket_sigio to enable O_ASYNC on all file
412 * include/gdbloop.h (gdbloop_p): Delete.
413 (gdbloop_sigio_enable, gdbloop_sigio_disable): Delete.
414 * lib/gdbloop.c: Update.
416 2001-04-12 Andrew Cagney <ac131313@redhat.com>
418 * include/gdbsocket.h (gdbsocket_poll): Delete declaration.
419 * lib/gdbsocket.c (struct fds): Delete.
420 (gdbsocket_poll, fds_isset, fds_set): Delete functions.
421 * lib/gdbloop.c (poll_gdbsocket): Rename gdbloop_poll.
422 (gdbloop_poll): New function.
423 (gdbloop): Call poll_gdbsocket.
425 * samples/main.c (main): Call gdbloop_poll. Don't include <time.h>
426 * samples/demo-target.h, samples/demo-target.c: Update comments.
427 * samples/thread.c: Update comments.
429 2001-04-12 Andrew Cagney <ac131313@redhat.com>
431 * lib/gdbloop.c (gdbloop): Reverse file / queue processing order -
432 do the task queue second.
434 2001-04-11 Andrew Cagney <ac131313@redhat.com>
436 * samples/async.c: Include <signal.h>, "gdblog.h", "gdbsched.h"
439 * lib/gdbloop.c (gdbloop): Delete alarm code. Moved to
441 (handle_sigalarm): Delete. Moved to samples/async.c.
442 (gdbloop_sigio_enabled_p): Delete.
443 (gdbloop_sigio_enable, gdbloop_sigio_disable): Update.
445 * samples/async.c (handle_sigalarm): New function.
446 (main): Use alarm to handle timer events.
448 2001-04-11 Andrew Cagney <ac131313@redhat.com>
450 * lib/gdbserv-state.c (reset_state): New function. Fully
451 re-initialize gdbserv.
452 (gdbserv_fromclient_attach): Call reset_state.
453 (gdbserv_data_packet): Ditto for "r" and "R" packets.
455 * lib/gdbserv-state.h (struct gdbserv): Add ``event_thread'' and
458 * lib/gdbserv-state.c (gdbserv_fromtarget_thread_break): Update
459 ``event_thread'' and ``event_sigval''. Clear "continue_thread".
460 (do_status_packet): New function. Move "T" packet code to here.
461 (gdbserv_fromtarget_thread_break): Call do_status_packet.
462 (gdbserv_data_packet): Use do_status_packet to respond to "?".
463 (do_current_thread_query): Always return the general thread.
465 2001-04-11 Andrew Cagney <ac131313@redhat.com>
467 * lib/gdbloop.c (gdbloop_sigio_enabled_p): New global.
468 (handle_sigalarm): New function.
469 (gdbloop_sigio_enable): Register handle_sigalarm for SIGALRM.
470 (gdbloop_sigio_disable): Deregister SIGALRM.
471 (gdbloop): When gdbloop_sigio_enabled_p, schedule an alarm to
472 triger the next round of event processing.
474 2001-04-11 Andrew Cagney <ac131313@redhat.com>
476 * lib/gdbsched.c: Include "gdblog.h" and "gdbsocket.h".
477 (gdbsched_schedule, gdbsched_deschedule)
478 (gdbsched_dispatch): Add tracing.
480 * lib/gdbsched.c (gdbsched_schedule): Pre- rather than post-
481 increment sched_db. Stop the first sched tag being NULL.
483 2001-04-10 Andrew Cagney <ac131313@redhat.com>
485 * samples/demo-target.h (demo_break): Delete declaration.
486 (struct gdbserv_target): Delete declaration.
487 (demo_ticks_before_break_p): Delete declaration.
488 * samples/demo-target.c: Include <time.h>, <sys/time.h> and
490 (demo_ticks_before_break_p): Delete global variable.
491 (dispatch_break, sched_break): New functions.
492 (demo_break_program): Call sched_break.
493 (demo_restart_program): Ditto.
494 (demo_singlestep_program): Ditto.
495 (demo_cyclestep_program): Ditto.
496 (demo_continue_program): Ditto.
497 (demo_break): Delete function.
499 * samples/poll.c: Include <time.h>, <sys/time.h> and
500 "gdbsched.h". Delete redundant include of <sys/types.h>.
501 (main): Replace demo_ticks_before_break_p with call to
503 * samples/fdset.c (main): Ditto.
505 * samples/main.c: Include <time.h>, <sys/time.h> and "gdbloop.h".
506 (main): Replace gdbsocket_poll and demo_ticks_before_break_p with
508 * samples/stdio.c: Ditto.
510 * samples/thread.c: New file.
511 * samples/thread-target.c: Delete.
512 * samples/Makefile.am (thread_SOURCES): Update.
513 * samples/Makefile.in: Regnerate.
515 2001-04-11 Andrew Cagney <ac131313@redhat.com>
517 * samples/fdset.c: Delete. See lib/gdbloop.c.
518 * samples/Makefile.am (noinst_PROGRAMS): Delete fdset.
519 (fdset_SOURCES): Delete.
520 (fdset_LDADD): Ditto.
521 * samples/Makefile.in: Regenerate.
523 2001-04-11 Andrew Cagney <ac131313@redhat.com>
525 * include/gdbloop.h (gdbloop_p): Declare.
526 (gdbloop_sigio_enable, gdbloop_sigio_disable): Declare.
527 (gdbloop): Add TIMEOUT parameter.
528 * lib/gdbloop.c: Don't include <sys/types.h>. Include <assert.h>,
529 <signal.h> and <fcntl.h>.
530 (sigio_fd): New function.
531 (gdbloop_sigio_enable, gdbloop_sigio_disable): New functions.
532 (gdbloop_poll): Cleanup. Check gdbloop_p. Make static.
533 (gdbloop): Update to handle timeout as a parameter.
535 * include/gdbsocket.h (gdbsocket_poll): Deprecate.
536 (gdbsocket_sigio_disable): Deprecate.
537 (gdbsocket_sigio_enable): Deprecate.
538 (gdbsocket_had_sigio_p): Deprecate.
540 * samples/async.c: New file.
541 * samples/Makefile.am (noinst_PROGRAMS): Add async demo.
542 (async_LDADD, sample_SOURCES): Define.
543 * samples/Makefile.in: Regenerate.
544 * samples/demo-target.c (demo_break_program): Print a trace
547 2001-04-10 Andrew Cagney <ac131313@redhat.com>
549 * lib/gdbsocket.c (async_fd): Ensure that the SIGIO is delivered
551 (process_accept): Use kill SIGIO, instead of setting
552 gdbsocket_had_sigio_p, to force the re-read.
554 2001-04-10 Andrew Cagney <ac131313@redhat.com>
556 * qe/inc-gdbloop.c, qe/inc-gdbsched.c: New files.
557 * qe/Makefile.am (qe_SOURCES): Add inc-gdbloop.c and
559 * qe/Makefile.in: Regenerate.
561 2001-04-10 Andrew Cagney <ac131313@redhat.com>
563 * include/gdbsched.h, lib/gdbsched.c: New files. Simple
565 * lib/gdbloop.c, include/gdbloop.h: New files. Simple
567 * lib/Makefile.am (THESOURCES): Add gdbloop.c and gdbsched.c.
568 * lib/Makefile.in: Regenerate.
570 2001-04-10 Andrew Cagney <ac131313@redhat.com>
572 * include/gdbserv-utils.h: Add fake close of extern "C" to pacify
574 * include/gdbserv-target.h: Ditto.
575 * include/gdbserv-output.h: Ditto.
576 * include/gdbserv-input.h: Ditto.
577 * include/gdbserv-client.h: Ditto.
578 * include/gdbserv.h: Ditto.
580 2001-04-09 Michael Snyder <msnyder@redhat.com>
582 * lib/gdbserv-state.c (gdbserv_data_packet): Give preference to
583 threaded cyclestep method. Likewise threaded get_mem / set_mem.
585 2001-04-05 Andrew Cagney <ac131313@redhat.com>
587 * lib/gdbserv-state.c (gdbserv_fromtarget_thread_break): Revert
588 change ``2001-04-05 Andrew Cagney <ac131313@redhat.com>'' that
589 cleared the general_thread.
591 * lib/gdbserv-state.c (gdbserv_data_packet)
592 (do_select_thread_packet): Revert ``2001-04-05 Michael Snyder
593 <msnyder@redhat.com>'' that cleared the general_thread.
595 2001-04-05 Andrew Cagney <ac131313@redhat.com>
597 * lib/gdbserv-state.c (gdbserv_data_packet): Move code clearing
598 the general thread to gdbserv_fromtarget_thread_break.
600 2001-04-05 Michael Snyder <msnyder@redhat.com>
602 * gdbserv-state.c (gdbserv_data_packet): Discard any saved general
603 thread on step or continue. GDB doesn't always cancel it, but the
604 general thread should not persist between stop events.
605 (do_select_thread_packet): Both the continue
606 thread and the general thread may be set to null.
607 NOTE: All methods that may receive the general thread must be
608 prepared to receive NULL (defaulting to the current thread).
610 2001-04-03 David Smith <dsmith@redhat.com>
612 * lib/gdbserv-state.c (do_current_thread_query): Try to figure out
613 the correct thread to use when returning the thread id.
615 2001-04-02 Michael Snyder <msnyder@redhat.com>
617 * lib/gdbserv-state.c (do_get_registers_p_packet): Check for
618 get_thread_reg rather than get_reg, since that is what will
619 be used. While we're at it, check for reg_format and output_reg.
620 (gdbserv_data_packet): Give first preference to thread-aware
621 register methods (if defined) for g/G/P packets. That way, to
622 add thread awareness, a backend need only define the new methods
623 (without nullifying the old ones). This makes it possible to
624 fall back on the old ones if necessary. FIXME should it be an
625 error if there is no target register method? Also give first
626 preference to thread-aware step and continue methods.
628 2001-03-23 David Smith <dsmith@redhat.com>
630 * lib/gdbserv-state.c (gdbserv_fromtarget_thread_break): If a NULL
631 thread is passed in, try to figure out the correct thread to use.
632 In addition, don't change the value of the "continue_thread".
634 * samples/thread-target.c (demo_break): Calls
635 gdbserv_fromtarget_thread_break() with a NULL thread.
637 2001-03-22 Andrew Cagney <ac131313@redhat.com>
639 * lib/gdbsocket.c (struct session): Rename ``struct gdbsocket''.
640 (session_db): Rename gdb_sockets.
641 (gdbsocket_shutdown): Update.
642 (gdbsocket_reopen): Update.
643 (gdbsocket_fd_set): Update.
644 (gdbsocket_fd_isset): Update.
646 * include/gdbsocket.h (gdbsocket_fd_isset, gdbsocket_poll): Delete
647 paramters to_target_attach and target_attach_data.
648 (gdbsocket_startup): Add parameters to_target_attach and
651 * lib/gdbsockets.c (gdbscket_fd): Delete static variable.
652 (struct server): Declare.
653 (server_db): Declare static variable.
654 (gdbsocket_startup): Add to_target_attach and target_attach_data
655 parameters. Enter the server in the server_db.
656 (gdbsocket_shutdown): Handle servers in server_db instead of
658 (gdbsocket_fd_set): Ditto.
659 (gdbsocket_fd_isset): Ditto.
660 (process_accept): Replace to_target_attach and target_attach_data
661 with single ``struct server'' parameter.
662 (gdbsocket_fd_isset): Update call.
664 * samples/fdset.c (main): Update calls to gdbsocket_startup and
666 * samples/poll.c (main): Ditto.
667 * samples/main.c (main): Ditto for gdbsocket_startup and
669 * samples/stdio.c (main): Ditto for gdbsocket_poll.
671 Thu Mar 22 16:53:09 2001 David Taylor <taylor@redhat.com>
673 * lib/gdbserv-state.c (gdbserv_fromtarget_thread_break): When
674 output'ing a register, output the full length, not zero bytes.
676 2001-03-16 Elena Zannoni <ezannoni@redhat.com>
678 * include/gdbserv-target.h (struct gdbserv_target): Add
679 parameter to detach function pointer.
680 * lib/gdbserv-state.c (gdbserv_fromclient_detach): Pass
681 gdbserv->target to detach target call.
682 * samples/demo-target.c (demo_detach): Add parameter.
683 * samples/thread-target.c (demo_detach): Add parameter.
684 * win32/win32-target.c (win32-detach): Add new parameter.
686 2001-03-15 Andrew Cagney <ac131313@redhat.com>
688 * Makefile.am, configure.in: Add qe directory.
689 * Makefile.in, configure: Regenerate.
691 * qe/README: New file.
692 * qe/Makefile.am: New file.
693 * qe/Makefile.in: Regenerate.
694 * qe/inc-backwards.c: New file.
695 * qe/inc-forward.c: New file.
696 * qe/inc-gdblog.c: New file.
697 * qe/inc-gdbserv-client.c: New file.
698 * qe/inc-gdbserv-input.c: New file.
699 * qe/inc-gdbserv-log.c: New file.
700 * qe/inc-gdbserv-output.c: New file.
701 * qe/inc-gdbserv-target.c: New file.
702 * qe/inc-gdbserv-utils.c: New file.
703 * qe/inc-gdbserv.c: New file.
704 * qe/inc-gdbsocket.c: New file.
705 * qe/inc-stdio-log.c: New file.
708 2001-03-15 Andrew Cagney <ac131313@redhat.com>
710 * lib/gdbserv-input.c (gdbserv_input_trace): Delete variable.
711 * lib/gdbsocket.c (gdbsocket_trace): Ditto.
712 * lib/gdbserv-state.c (gdbserv_state_trace): Ditto.
713 * lib/gdbserv-output.c (gdbserv_output_trace): Ditto.
714 * include/gdbsocket.h (gdbsocket_trace): Delete declaration.
715 * include/gdbserv.h (gdbserv_state_trace, gdbserv_input_trace)
716 (gdbserv_output_trace): Ditto.
718 2001-03-14 Andrew Cagney <ac131313@redhat.com>
720 * Move native/ directory to unix/.
721 * configure.in (*linux*): Update.
722 * configure: Regenerate.
723 * aclocal.m4: Regenerate.
725 2001-03-14 Elena Zannoni <ezannoni@redhat.com>
727 * lib/gdbserv-state.h, include/gdbserv-state.h:
728 Revert the previous change. gdbserv-state.h should
731 2001-03-14 Elena Zannoni <ezannoni@redhat.com>
733 * lib/gdbserv-state.h: Move from here.
734 * include/gdbserv-state.h: To here.
736 2001-03-14 Andrew Cagney <ac131313@redhat.com>
738 * lib/gdblog.h: Move from here.
739 * include/gdblog.h: To here.
740 * lib/gdbserv-client.h, include/gdbserv-client.h: Ditto.
741 * lib/gdbserv-input.h, include/gdbserv-input.h: Ditto.
742 * lib/gdbserv-log.h, include/gdbserv-log.h: Ditto.
743 * lib/gdbserv-output.h, include/gdbserv-output.h: Ditto.
744 * lib/gdbserv-target.h, include/gdbserv-target.h: Ditto.
745 * lib/gdbserv-utils.h, include/gdbserv-utils.h: Ditto.
746 * lib/gdbserv.h, include/gdbserv.h: Ditto.
747 * lib/gdbsocket.h, include/gdbsocket.h: Ditto.
748 * lib/stdio-log.h, include/stdio-log.h: Ditto.
750 * lib/Makefile.am (INCLUDES): Update. Headers moved to ../include.
751 * lib/Makefile.in: Regenerate.
752 * samples/Makefile.am (INCLUDES): Ditto.
753 * samples/Makefile.in: Regenerate.
755 2001-03-02 Andrew Cagney <ac131313@redhat.com>
757 * lib/Makefile.am (THESOURCES): Add gdblog.c, stdio-log.c and
759 * lib/Makefile.in: Regenerate.
760 * lib/gdblog.h, lib/gdblog.c: New files.
761 * lib/stdio-log.h, lib/stdio-log.c: New files.
762 * lib/gdbserv-log.h, lib/gdbserv-log.c: New files.
764 * lib/gdbsocket.h (gdbsocket_trace): Document as deprecated.
765 (gdbsocket_log): Declare variable.
766 * lib/gdbsocket.c: Include "gdblog.h". Update to use gdblog
767 interface for tracing.
768 (gdbsocket_log): Define variable.
770 * lib/gdbserv.h (gdbserv_state_trace, gdbserv_input_trace)
771 (gdbserv_output_trace): Document as deprecated.
772 * lib/gdbserv-input.c: Include "gdblog.h" and "gdbserv-log.h".
773 Update to use gdblog interface for tracing.
774 * lib/gdbsocket.c: Ditto.
775 * lib/gdbserv-output.c: Ditto.
776 * lib/gdbserv-state.c: Ditto.
777 (log_state): New function.
779 * samples/fdset.c: Include "gdblog.h", "stdio-log.h" and
781 (main): Update to use gdbsocket_log, gdbserv_warning_log and
783 * samples/main.c: Ditto.
784 * samples/poll.c: Ditto.
785 * samples/stdio.c: Ditto.
786 * samples/demo-target.c (demo_attach): Delete code initializing
788 * samples/thread-target.c (demo_attach): Ditto.
790 2001-03-02 Andrew Cagney <ac131313@redhat.com>
792 * samples/thread-target.c (thread_lookup_by_id): Fix printf fmt
794 (thread_info): Print thread ID, not an internal thread address.
796 2001-03-02 Andrew Cagney <ac131313@redhat.com>
798 * configure.in: Add support for --enable-build-warnings and
799 (--enable-libremote-build-warnings.
800 * configure: Regenerate.
802 * Makefile.am (WARN_CFLAGS, WERROR_CFLAGS): Define. Initialized
805 * Makefile.in: Regenerate.
806 * samples/Makefile.am, samples/Makefile.in: Ditto.
807 * lib/Makefile.am, lib/Makefile.in: Ditto.
809 Thu Dec 21 02:54:39 2000 Andrew Cagney <cagney@b1.cygnus.com>
811 * samples/thread-target.c: Include <string.h>.
812 (thread_info): Use sprintf and strdup instead of asprintf.
814 Thu Dec 21 02:11:49 2000 Andrew Cagney <cagney@b1.cygnus.com>
816 * lib/gdbserv-utils.h: Declare ``struct gdbserv'' and ``struct
818 * lib/gdbserv-output.h: Ditto.
819 * lib/gdbserv-input.h: Declare ``struct gdbserv''.
821 Wed Dec 20 17:19:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
823 * samples/thread-target.c: New file.
824 * samples/Makefile.am (noinst_PROGRAMS): Add the program thread.
825 (thread_SOURCES, thread_LDADD): Define.
827 Wed Dec 20 15:51:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
829 * lib/gdbserv-output.h, lib/gdbserv-input.h, lib/gdbserv-client.h,
830 lib/gdbserv-state.h, lib/gdbserv.h, lib/gdbsocket.h: Remove
831 #ifndef wrappers. Not needed.
833 Wed Dec 20 16:29:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
835 * lib/gdbserv-state.c (gdbserv_data_packet): Separate check for
836 qRcmd from check that the target supports it.
837 (gdbserv_data_packet): Remove #if 1 from around ``P'' packet code.
838 (gdbserv_data_packet): Check for process_get_reg when handling
840 (gdbserv_data_packet): Check for target support before processing
843 Wed Dec 20 16:12:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
845 * lib/gdbserv-target.h (struct gdbserv_target): Add thread aware
846 memory access methods - get_thread_mem, set_thread_mem.
847 * lib/gdbserv-state.c (gdbserv_data_packet): Rewrite memory
848 read/write code to use thread aware methods when available.
850 Wed Dec 20 15:36:24 2000 Andrew Cagney <cagney@b1.cygnus.com>
852 * lib/gdbserv-target.h: Add thread aware resume methods -
853 continue_thread, cyclestep_thread, singlestep_thread.
854 * lib/gdbserv-state.c (gdbserv_data_packet): Rewrite continue code
855 to use thread mechanism when available.
857 Wed Dec 20 12:09:42 2000 Andrew Cagney <cagney@b1.cygnus.com>
859 * lib/gdbserv-target.h (struct gdbserv_target): Add thread aware
860 register methods - next_gg_reg, next_expedited_reg, reg_format,
861 set_thread_reg, get_thread_reg.
863 * lib/gdbserv-state.c (output_thread_reg): New function. Use
864 thread aware methods to output a register.
865 (do_get_registers_g_packet): Ditto.
866 (do_set_registers_g_packet): Ditto.
867 (do_get_registers_p_packet): Ditto.
868 (do_set_registers_p_packet): Ditto.
869 (gdbserv_data_packet): Use new functions to process ``G'', ``g'',
870 ``p'' and ``P'' packets.
871 (gdbserv_fromtarget_thread_break): Update using thread aware
872 methods when available.
874 Wed Dec 20 11:46:32 2000 Andrew Cagney <cagney@b1.cygnus.com>
876 * lib/gdbserv-target.h (gdbserv_fromtarget_thread_break): Declare.
877 * lib/gdbserv-state.c (gdbserv_fromtarget_break): Call
878 gdbserv_fromtarget_thread_break.
879 (gdbserv_fromtarget_thread_break): New function. Replace
880 gdbserv_fromtarget_break. Return thread ID when known. Fix
881 formatting of expedited registers.
883 Wed Dec 20 10:26:36 2000 Andrew Cagney <cagney@b1.cygnus.com>
885 * lib/gdbserv-state.c: Include <assert.h>.
886 (gdbserv_data_packet): Add support for ``H'', ``T'' packets. Add
887 support for ``ThreadInfo'', ``ThreadExtraInfo'' and ``C'' queries.
888 (do_select_thread_packet): New function, handle ``H'' packet.
889 (do_current_thread_query): New function, handle ``C'' query.
890 (do_thread_info_query): New function.
891 (do_thread_extra_info_query): New function.
892 (do_thread_alive_packet): New function, handle ``T'' packet.
894 2000-12-19 <brolley@redhat.com>
896 * configure.in: Rename gidl to cidl. More detailed messages for
897 subdirs not supported on various hosts/targets.
898 * configure: regenerated.
900 Tue Dec 19 17:51:58 2000 Andrew Cagney <cagney@b1.cygnus.com>
902 * lib/gdbserv-output.c: Include <assert.h>.
903 (gdbserv_output_reg_beb, gdbserv_output_reg_leb): Use assert to
905 (gdbserv_output_reg_beb, gdbserv_output_reg_leb): Handle zero reg.
907 * lib/gdbserv-input.c (gdbserv_input_hex_long): New function.
908 * lib/gdbserv.h (int gdbserv_input_hex_long): Declare.
910 * lib/gdbserv-utils.c (gdbserv_reg_to_ulong,
911 gdbserv_reg_to_ulonglong, gdbserv_ulong_to_reg,
912 gdbserv_ulonglong_to_reg): Change return type to void.
913 (gdbserv_reg_to_ulong, gdbserv_reg_to_ulonglong): Make ``reg''
915 (unpack_ulonglong): New function.
916 (gdbserv_ulong_to_reg, gdbserv_long_to_reg,
917 gdbserv_ulonglong_to_reg, gdbserv_longlong_to_reg): Use.
918 * lib/gdbserv-utils.h (gdbserv_reg_to_ulong,
919 gdbserv_reg_to_ulonglong, gdbserv_ulong_to_reg,
920 gdbserv_ulonglong_to_reg): Update function declarations.
922 2000-12-18 David Smith <dsmith@redhat.com>
924 * lib/gdbserv-client.h, lib/gdbserv-input.h, lib/gdbserv-output.h:
925 Added macros to guard against mutiple inclusion and added C++
926 support (by adding 'extern "C"').
927 * lib/gdbserv-state.h, lib/gdbserv-target.h, lib/gdbserv-utils.h:
929 * lib/gdbserv.h, lib/gdbsocket.h: Ditto.
931 2000-11-28 Michael Snyder <msnyder@cleaver.cygnus.com>
933 * lib/gdbserv-state.c (gdbserv_data_packet): Return error if
934 get_mem method does not return the requested number of bytes.
936 2000-11-21 Corinna Vinschen <vinschen@cygnus.com>
938 * configure.in: Add subdir dependency for win32 target.
940 2000-11-14 Michael Snyder <msnyder@cleaver.cygnus.com>
942 * samples/demo-target.c (demo_get_mem, demo_set_mem):
943 Add a memory cache that can be modified by GDB.
944 (demo_process_get_regs, demo_process_set_regs):
945 Add a register cache that can be modified by GDB.
946 (demo_attach): Hook in demo_process_set_regs.
947 (demo_set_mem): Check for malloc failure in pseudo-memory cache.
949 2000-11-08 Rudy Folden <rfolden@redhat.com>
951 * configure.in (case "$target" in sh-*): Removed erroneous CC case.
952 * native/configure.in (case "$target" in sh-*): Removed erroneous CC case.
954 2000-11-07 Rudy Folden <rfolden@redhat.com>
956 * README: Doc update.
958 2000-11-07 Rudy Folden <rfolden@redhat.com>
960 * configure.in (case "$target" in sh-*): Added case for CC.
961 * native/configure.in (case "$target" in sh-*): Added case for CC.
962 * native/Makefile.am (CC=, CFLAGS=): removed erroneous CC ad CFLAGS entiries.
963 * native/Makefile.in (CC=, CFLAGS=): removed erroneous CC ad CFLAGS entiries.
965 2000-09-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
967 With Andrew Cagney <cagney@b1.cygnus.com>
968 * lib/gdbserv-input.c (add_char_to_packet): Improve handling of
969 missing ACK packets, NACKs and other exceptional conditions.
970 This fixies a bug where libremote would lock up and ignore everything
972 (gdbserv_input_wait_for_ack): Do not print switch to ACK warning
973 when retrying. Rephrase the warning message.
975 2000-09-13 Michael Snyder <msnyder@michael.wirespeed.com>
977 * lib/gdbserv-state.c (gdbserv_fromtarget_terminate): New function.
978 (gdbserv_fromtarget_exit): Rename arg from signum to exitcode.
979 * lib/gdbserv-target.h (gdbserv_fromtarget_terminate): Export.
981 Thu Sep 7 16:53:22 2000 David Taylor <taylor@texas.cygnus.com>
983 * lib/gdbserv-utils.c (gdbserv_ulong_to_reg,
984 gdbserv_ulonglong_to_reg): New functions.
985 * lib/gdbserv-utils.h (gdbserv_ulong_to_reg,
986 gdbserv_ulonglong_to_reg): Declare them.
988 2000-09-06 Michael Snyder <msnyder@cleaver.cygnus.com>
990 * configure.in: Add "native" subdirectory to targ_subdirs.
991 * configure: Regenerate.
992 * configure.in: Remove native/Makefile from output.
993 Native subdirectory now has its own configure and automake.
994 * configure: Regenerate.
996 Thu Jun 8 14:32:21 2000 David Taylor <taylor@texas.cygnus.com>
998 * lib/gdbsocket.c (process_read): change "else if" to "if",
999 otherwise, when gdbsocket_trace is set, packets never get
1002 Tue May 23 17:33:02 2000 Andrew Cagney <cagney@b1.cygnus.com>
1004 * samples/poll.c (main): Pass POLLFDS and not POLL to
1007 * samples/demo-target.c (sole_target): Delete global.
1008 * samples/demo-target.c (demo_attach): Create and initialize
1009 target vector at runtime.
1011 Tue May 23 16:44:26 2000 Andrew Cagney <cagney@b1.cygnus.com>
1013 * lib/gdbsocket.c, lib/gdbserv-client.h, lib/gdbserv-target.h:
1016 Mon May 22 20:29:05 2000 Andrew Cagney <cagney@b1.cygnus.com>
1018 * samples/demo-target.c (sole_target): Fix initialization.
1020 Thu May 18 10:55:33 2000 Andrew Cagney <cagney@b1.cygnus.com>
1022 * lib/gdbsocket.c: Do not include "gdbserv.h". "gdbserv-client.h"
1023 provides all required server declarations.
1025 2000-05-17 Fernando Nasser <fnasser@cygnus.com>
1027 * lib/gdbserv-output.c (gdbserv_output_string_as_bytes): New function.
1028 Send a null terminated string as hex encoded bytes (useful for
1029 "O" packets and "qRcmd" answers).
1030 * lib/gdbserv.h: Add prototype of the above.
1031 * lib/gdbserv-state.c (gdbserv_data_packet): Fix and reactivate code
1032 that handles "p" packets.
1033 * lib/gdbserv-target.h: Add prototype for process_get_reg callback
1034 (activated by a "p" packet).
1036 Wed May 3 18:46:02 2000 Andrew Cagney <cagney@b1.cygnus.com>
1038 * lib/gdbsocket.h (enum gdbsocket_fd_event,
1039 gdbsocket_fd_set_ftype, gdbsocket_fd_isset_ftype): Declare.
1040 (gdbsocket_fd_set, gdbsocket_fd_isset): Pass fd_set/fd_isset and
1041 context instead of readfs.
1042 * lib/gdbsocket.c (gdbsocket_fd_set): Replace ``fd_set'' with with
1043 function parameter for accumulating file descriptors.
1044 (gdbsocket_fd_isset): Ditto with a function parameter that
1045 indicates that a file descriptor is ready.
1046 (struct fds): Define.
1047 (fds_set, fds_isset): New functions.
1048 (gdbsocket_poll): Update. Add support for both read and write
1051 * samples/fdset.c (struct fdset, set, isset): Declare.
1052 (main): Update to use new gdbsocket_fd_set / gdbsocket_fd_isset
1055 * samples/Makefile.am: Add program poll.
1056 * samples/Makefile.in: Re-generate.
1057 * samples/poll.c: New file. Demonstrate gdbsocket's poll interface.
1059 Mon Apr 24 19:33:35 2000 Andrew Cagney <cagney@b1.cygnus.com>
1061 * samples/demo-target.c (demo_attach, demo_continue_program,
1062 demo_detach): Write traces to STDERR instead of STDOUT.
1064 * samples/stdio.c: New file.
1065 * samples/Makefile.am (noinst_PROGRAMS): Add stdio.
1066 * samples/Makefile.in: Re-generate.
1068 * lib/gdbsocket.h (gdbsocket_reopen): Add declaration.
1069 * lib/gdbsocket.c (process_accept): Use gdbsocket_reopen.
1070 (gdbsockt_reopen): New function.
1072 Mon Apr 24 19:09:29 2000 Andrew Cagney <cagney@b1.cygnus.com>
1074 * lib/gdbsocket.c (gdbsocket_fd): Initialize to -1.
1075 (gdbsocket_shutdown, gdbsocket_fd_set, gdbsocket_fd_isset): Do not
1076 assume that there is an open port.
1077 (gdbsocket_startup): Mark gdbsocket_fd as closed.
1079 Mon Apr 24 18:43:29 2000 Andrew Cagney <cagney@b1.cygnus.com>
1081 * lib/gdbsocket.h, lib/gdbsocket.c: Update comments.
1082 (gdbsocket_attach_ftype): Replace typedef gdbsocket_attach.
1083 * lib/gdbsocket.c (process_accept, gdbsocket_fd_isset,
1084 gdbsocket_poll): Update.
1085 (process_read): Document interface flaw.
1087 Mon Apr 24 18:12:14 2000 Andrew Cagney <cagney@b1.cygnus.com>
1089 * lib/gdbsocket.c (struct gdbsocket): Replace ``fd'' with
1090 ``readfd'' and WRITEFD. Add ``close'' method.
1091 (gdbsocket_shutdown): Update. Use ``close'' method.
1092 (process_read): Ditto. Replace ``fd'' with ``readfd''.
1093 (raw_write): Ditto. Replace ``fd'' with ``writefd''.
1094 (session_close): New function. Close ``readfd''.
1095 (process_accept): Update. Initialize ``close'' method with
1097 (gdbsocket_fd_isset, gdbsocket_fd_set): Replace ``fd'' with
1100 Mon Apr 24 17:14:21 2000 Andrew Cagney <cagney@b1.cygnus.com>
1102 * samples/demo-target.c (sole_target): Fix initialization of
1105 2000-04-17 Fernando Nasser <fnasser@cygnus.com>
1107 * HOWTO: New version. More complete, includes architecture.
1108 Callback function prototypes are removed and related comments
1109 moved to lib/gdbserv-target.h.
1111 Mon Apr 17 17:11:30 2000 Fernando Nasser <fnasser@cygnus.com>
1113 * lib/gdbserv-state.c (gdbserv_data_packet): Add processing of a
1116 Mon Apr 17 17:11:30 2000 Fernando Nasser <fnasser@cygnus.com>
1118 * lib/gdbserv-target.h (struct gdbserv-target): Add comments
1119 relating the callback routines to the corresponding remote
1122 2000-04-12 Frank Ch. Eigler <fche@redhat.com>
1124 * HOWTO: Remove mention of gdbserv_fromclient calls. Fix some
1125 typos. Minor rewording.
1127 2000-04-11 Fernando Nasser <fnasser@cygnus.com>
1129 * HOWTO: New file. A brief guide to write code that use libremote.
1131 Wed Apr 12 22:35:34 2000 Andrew Cagney <cagney@b1.cygnus.com>
1133 * lib/gdbserv.h (gdbserv_target_attach, gdbserv_fromclient_attach,
1134 gdbserv_fromclient_detach, gdbserv_fromclient_data,
1135 gdbserv_fromclient_break): Move from here.
1136 * lib/gdbserv-client.h: To here.
1138 * lib/gdbserv.h (gdbserv_fromtarget_break,
1139 gdbserv_fromtarget_reset, gdbserv_fromtarget_exit): Move from
1141 * lib/gdbserv-target.h: To here.
1143 Wed Apr 12 23:39:33 2000 Andrew Cagney <cagney@amy.cygnus.com>
1145 * configure.in: Configure in ASVP when ASVPLAB is defined.
1146 * configure: Re-generate.
1148 Wed Apr 12 22:06:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
1150 * samples/fdset.c: Include <stdlib.h> for atoi.
1151 Include <string.h>, work around FreeBSD header problem.
1152 * samples/demo-target.c: Include <stdlib.h> for rand.
1153 (demo_get_mem): Add paren around ``+'' and ``%'' per GCCs
1155 * samples/main.c: Include <stdlib.h> for atoi.
1156 * lib/gdbserv-state.c: Include <string.h> for memset.
1158 Wed Apr 12 20:22:36 2000 Andrew Cagney <cagney@b1.cygnus.com>
1160 * lib/gdbserv-utils.h, lib/gdbserv-utils.c (gdbserv_reg_to_hex):
1161 Delete. Replaced by gdbserv_output_reg_beb and
1162 gdbserv_output_reg_leb.
1164 Wed Apr 12 19:13:58 2000 Andrew Cagney <cagney@b1.cygnus.com>
1166 * lib/gdbserv-state.c (gdbserv_state): New function.
1167 * lib/gdbserv-state.h (enum gdbserv_state): Move from here.
1168 * lib/gdbserv.h (enum gdbserv_state): To here.
1169 (gdbserv_state): Add declaration.
1171 Tue Apr 11 20:20:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
1173 * samples/demo-target.c, samples/demo-target.h: New files. Copy
1174 demo target in main.c.
1175 * samples/main.c: Delete demo target code. Include
1177 * samples/Makefile.am: Update.
1179 * samples/fdset.c: New file. Demo gdbsocket.h's FD_SET interface.
1180 * samples/Makefile.am: Add program `fdset'.
1181 * samples/Makefile.in, stamp-h.in: Re-generate.
1183 2000-04-11 Fernando Nasser <fnasser@cygnus.com>
1185 * configure.in: Add check for target-dependent subdirectories.
1186 * configure: Regenerate.
1187 * Makefile.am: Use targ_subdirs generated above.
1188 * Makefile.in: Regenerate
1190 2000-04-11 Fernando Nasser <fnasser@cygnus.com>
1192 * configure.in: Test for host byte order.
1193 * config.in: Regenerate.
1194 * configure: Regenerate.
1196 Tue Apr 11 20:06:34 2000 Andrew Cagney <cagney@b1.cygnus.com>
1198 * lib/gdbsocket.h: Break dependency on "gdbserv.h".
1199 (gdbsocket_attach): New type.
1200 (struct gdbserv, struct gdbserv_target): Add declarations.
1201 * lib/gdbsocket.c (process_accept, gdbsocket_fd_isset,
1202 gdbsocket_poll): Update.
1204 Tue Apr 11 18:36:06 2000 Andrew Cagney <cagney@amy.cygnus.com>
1206 * lib/gdbsocket.c (gdbsocket_shutdown): Only trace when
1207 gdbsocket_trace. Avoid core dump.
1208 (gdbsocket_fd_set): New function.
1209 (gdbsocket_fd_isset): New function - better name?
1210 (gdbsocket_poll): Use gdbsocket_fd_set and gdbsocket_fd_isset to
1212 * lib/gdbsocket.h (gdbsocket_fd_set, gdbsocket_fd_isset): Add
1213 declarations conditional on having FD_SET.
1215 * samples/main.c: Do not include "gdbserv-client.h". "gdbsocket.h"
1216 implements the client side code.
1218 Tue Apr 11 17:49:29 2000 Andrew Cagney <cagney@amy.cygnus.com>
1220 * lib/gdbserv-state.h: Document that the file is gdbserv internal.
1221 * samples/main.c: Include system headers before stub headers.
1222 * lib/gdbserv.h: Don't include <stdio.h>.
1224 2000-04-06 Frank Ch. Eigler <fche@redhat.com>
1226 MAINTAINERS: New file.
1227 Makefile.am: New file.
1230 REMOTE-HACK-RULES: New file.
1231 configure.in: New file.
1232 Makefile.in: New generated file.
1233 aclocal.m4: New generated file.
1234 config.in: New generated file.
1235 configure: New generated file.
1236 stamp-h.in: New generated file.
1238 By Andrew Cagney <cagney@cygnus.com>:
1239 lib/ARCH: Imported file.
1240 lib/Makefile.am: New file.
1241 lib/Makefile.in: New generated file.
1242 lib/gdbserv-client.h: Imported file.
1243 lib/gdbserv-input.c: Imported file.
1244 lib/gdbserv-input.h: Imported file.
1245 lib/gdbserv-output.c: Imported file.
1246 lib/gdbserv-output.h: Imported file.
1247 lib/gdbserv-state.c: Imported file.
1248 lib/gdbserv-state.h: Imported file.
1249 lib/gdbserv-target.h: Imported file.
1250 lib/gdbserv-utils.c: Imported file.
1251 lib/gdbserv-utils.h: Imported file.
1252 lib/gdbserv.h: Imported file.
1253 lib/gdbsocket.c: Imported file.
1254 lib/gdbsocket.h: Imported file.
1256 samples/Makefile.am: New file.
1257 samples/Makefile.in: New generated file.
1258 samples/main.c: New file.
1265 version-control: never