1 2007-04-14 Steve Ellcey <sje@cup.hp.com>
3 * Makefile.am: Add ACLOCAL_AMFLAGS.
4 * Makefile.in: Regenerate.
6 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
8 * samples/Makefile.am: Replace INTLLIBS and INTLDEPS with LIBINTL
9 and LIBINTL_DEP everywhere.
10 * acinclude.m4: Include new gettext macros.
11 * configure.in: Use ZW_GNU_GETTEXT_SISTER_DIR.
12 * Makefile.in, aclocal.m4, configure, lib/Makefile.in,
13 qe/Makefile.in, samples/Makefile.in: Regenerated.
15 2006-03-16 Kevin Buettner <kevinb@redhat.com>
17 * include/gdbloop.h (gdbloop, gdbloop_poll): Revise comments
18 to indicate that timeout granulatiry is now in milliseconds
20 * lib/gdbloop.c (poll_gdbsocket): Change ``timeout'' granulatiry
21 from seconds to milliseconds.
23 2005-03-03 Kevin Buettner <kevinb@redhat.com>
25 * lib/crc32.h, lib/crc32.c: New files.
26 * lib/Makefile.am (librda_la_SOURCES): Add crc32.c to list.
27 * lib/Makefile.in: Regenerate.
28 * lib/gdbserv-state.c (crc32.h): Include.
29 (read_memory, do_qCRC_packet): New functions.
30 (gdbserv_data_packet): Add support for qCRC packet.
32 2005-02-07 Jim Blandy <jimb@redhat.com>
34 Regenerate Makefile.in files generated by top-level configure
35 script using Automake 1.9.3.
36 * lib/Makefile.am: Don't write out rules for both '.a' and '.la'
37 versions of the library. Libtool generates a '.a' library
39 * Makefile.in, lib/Makefile.in, qe/Makefile.in,
40 samples/Makefile.in: Regenerated.
42 2004-12-09 Jim Blandy <jimb@redhat.com>
44 * configure.in: Clean up junk whitespace. Don't call
45 AC_CONFIG_SUBDIRS on variables' values; invoke it on a constant
46 value, at each place we add a directory to targ_subdirs, as
47 recommended by the autoconf manual.
48 * aclocal.m4, configure: Regenerated.
50 2004-10-07 Jim Blandy <jimb@redhat.com>
52 * lib/gdbserv-state.c (do_get_registers_p_packet): Don't produce a
53 ';' trailing the register value unless there are more register
54 values to come. This makes the multi-register packet
55 upward-compatible with the single-register request / reply
58 * samples/async.c: #define _GNU_SOURCE before #including any
59 files, to get prototypes for GNU-specific functions like
62 2004-09-24 Jim Blandy <jimb@redhat.com>
64 * lib/gdbserv-output.c, samples/demo-target.c, samples/main.c,
65 samples/poll.c: #include <string.h>.
67 2004-09-14 Jim Blandy <jimb@theseus.home>
71 2004-07-23 Michael Snyder <msnyder@redhat.com>
73 * MAINTAINERS: Remove Andrew Cagney, at his request.
75 2004-07-09 Michael Snyder <msnyder@redhat.com>
77 * samples/demo-target.c (demo_set_thread_mem): Allocate new
78 simulated memory in hunks, rather than one byte at a time.
79 If target_mem.base moves down, copy contents up.
81 * samples/demo-target.c (demo_target): Call malloc only once,
82 so that gdb can detach and re-attach repeatedly.
84 * lib/gdbserv-target.c (gdbserv_fromtarget_terminate): Rename
85 parameter from exitval to sigval (it's a signal number).
86 * lib/gdbserv-target.c (gdbserv_totarget): Comment spelling fix.
87 * lib/gdbserv-state.c (gdbserv_fromclient_break): Add break
90 2003-05-20 Kevin Buettner <kevinb@redhat.com>
92 * lib/gdbserv-utils.c (gdbserv_le_bytes_from_reg): Fix typo that
93 caused incorrect number of bytes to be copied.
95 2003-01-16 Kevin Buettner <kevinb@redhat.com>
97 * lib/gdbserv-state.c (do_status_packet, gdbserv_data_packet): Fix
98 memset() calls - the arguments were in the wrong order.
99 (gdbserv_data_packet): Check return value from get_reg() call.
101 2002-12-02 Kevin Buettner <kevinb@redhat.com>
103 * include/gdbserv-utils.h, lib/gdbserv-utils.c
104 (gdbserv_be_bytes_to_reg, gdbserv_le_bytes_to_reg)
105 (gdbserv_be_bytes_from_reg, gdbserv_le_bytes_from_reg)
106 (gdbserv_host_bytes_to_reg, gdbserv_host_bytes_from_reg):
109 2002-11-04 Kevin Buettner <kevinb@redhat.com>
111 * Makefile.in, aclocal.m4, configure, lib/Makefile.in, qe/Makefile.in,
112 samples/Makefile.in, unix/configure: Regenerate configury using
113 aclocal 1.6.3, automake 1.6.3, and autoconf 2.53.
115 2002-08-22 Kevin Buettner <kevinb@redhat.com>
117 * lib/Makefile.am (INCLUDES): Remove references to bfd.
118 (THESOURCES): Remove bfd-loader.c from list.
119 * lib/Makefile.in: Regenerate.
120 * samples/Makefile.am (sample_DEPLIBS): Remove references to
122 * samples/Makefile.in: Regenerate.
124 2002-08-21 Kevin Buettner <kevinb@redhat.com>
126 * HOWTO, MAINTAINERS, NEWS, README, REMOTE-HACK-RULES,
127 configure.in, lib/Makefile.am, lib/gdbserv-target.c,
128 samples/Makefile.am, samples/async.c, samples/demo-target.c,
129 samples/main.c, samples/poll.c: Change ``libremote'' references
130 into ``RDA'' references.
131 * configure, lib/Makefile.in, samples/Makefile.in: Regenerate.
133 2002-08-15 Kevin Buettner <kevinb@redhat.com>
135 * include/gdblog.h, include/gdbloop.h, include/gdbsched.h,
136 include/gdbserv-client.h, include/gdbserv-input.h,
137 include/gdbserv-log.h, include/gdbserv-output.h,
138 include/gdbserv-target.h, include/gdbserv-utils.h,
139 include/gdbserv.h, include/gdbsocket.h, include/stdio-log.h,
140 lib/gdblog.c, lib/gdbloop.c, lib/gdbsched.c,
141 lib/gdbserv-input.c, lib/gdbserv-log.c, lib/gdbserv-output.c,
142 lib/gdbserv-state.c, lib/gdbserv-state.h,
143 lib/gdbserv-target.c, lib/gdbserv-utils.c, lib/gdbsocket.c,
144 lib/stdio-log.c, qe/README, qe/inc-backwards.c,
145 qe/inc-forward.c, qe/inc-gdblog.c, qe/inc-gdbloop.c,
146 qe/inc-gdbsched.c, qe/inc-gdbserv-client.c,
147 qe/inc-gdbserv-input.c, qe/inc-gdbserv-log.c,
148 qe/inc-gdbserv-output.c, qe/inc-gdbserv-target.c,
149 qe/inc-gdbserv-utils.c, qe/inc-gdbserv.c, qe/inc-gdbsocket.c,
150 qe/inc-stdio-log.c, samples/async.c, samples/demo-target.c,
151 samples/demo-target.h, samples/main.c, samples/poll.c,
152 samples/thread.c: Update copyright notices.
154 2002-08-14 Kevin Buettner <kevinb@redhat.com>
156 * include/bfd-loader.h: Delete.
157 * lib/bfd-loader.c: Delete.
158 * samples/main.c (main): Eliminate code for loading files.
159 (usage): Adjust usage message to account for the fact that we can
160 no longer load files.
162 2002-01-02 Ben Elliston <bje@redhat.com>
164 * MAINTAINERS: Update mail addresses.
166 2001-10-13 Kevin Buettner <kevinb@redhat.com>
168 * include/gdbserv-utils.h (gdbserv_be_bytes_to_reg)
169 (gdbserv_le_bytes_to_reg, gdbserv_be_bytes_from_reg)
170 (gdbserv_le_bytes_from_reg, gdbserv_native_bytes_to_reg)
171 (gdbserv_native_bytes_from_reg): New functions.
172 * lib/gdbserv-utils.c (config.h): Include.
174 (reverse_copy_bytes, gdbserv_be_bytes_to_reg)
175 (gdbserv_le_bytes_to_reg, gdbserv_be_bytes_from_reg)
176 (gdbserv_le_bytes_from_reg, gdbserv_host_bytes_to_reg)
177 (gdbserv_host_bytes_from_reg): New functions.
179 2001-09-28 Andrew Haley <aph@cambridge.redhat.com>
181 * samples/main.c (main): Work around SIGCHLD problem.
183 2001-09-27 David Woodhouse <dwmw2@redhat.com>
185 * lib/gdbserver-target.c (gdbserv-totarget): Zero sigval to indicate
186 success if target->process_signal succeeds, instead of doing so
189 2001-08-20 Jonathan Larmour <jlarmour@redhat.com>
191 * lib/gdbsocket.c (process_read): Treat a read reporting shutdown
192 or connection reset as EOF.
194 2001-08-02 Michael Keezer <mkeezer@redhat.com>
196 * unix/configure.in: Add am33_2.0 & mn10300.
197 * unix/config.in: Add AM33_LINUX_TARGET & AM33_2_0_LINUX_TARGET.
198 * unix/linux-target.c: am33_2.0 & mn10300 support.
200 2001-07-26 Michael Snyder <msnyder@redhat.com>
202 * lib/gdbserv-utils.c (gdbserv_raw_to_hex): Increment pointer.
204 2001-06-25 Michael Snyder <msnyder@redhat.com>
206 * include/gdbserv-target.h: Fill in the remaining GDB signal numbers.
208 2001-06-12 Corinna Vinschen <vinschen@redhat.com>
210 * configure.in: Add linux as possible host for xscale subdir.
211 * configure: Regenerated.
213 2001-04-26 Andrew Cagney <ac131313@redhat.com>
215 * lib/gdbsocket.c: Include <ctype.h>.
216 (dump_buf): New function. Handle unprintable characters.
220 * lib/bfd-loader.c (struct lng): Add exit_addr and loaded_p.
221 (fromtarget): Check for unexpected stops.
222 (bfd_loader_exit): Report the exit status and stop address.
224 2001-04-23 Andrew Cagney <ac131313@redhat.com>
226 * lib/gdbserv-target.c: Include <assert.h>.
227 (gdbserv_totarget): Abort when the target fails to handle either
228 START_ADDR or SIGVAL.
230 2001-04-23 Andrew Cagney <ac131313@redhat.com>
232 * include/gdblog.h (gdblog_xlong, gdblog_xlong_ftype): Declare.
233 (gdblog_new): Add log_xlong parameter.
234 * lib/gdblog.c (struct gdblog): Add log_xlong.
235 (gdblog_xlong): New function.
236 (gdblog_new): Initialize log_xlong.
237 * lib/stdio-log.c (do_stdio_log_xlong): New function.
238 (stdio_log): Add do_stdio_log_xlong.
240 * lib/bfd-loader.c (load_n_go): Use gdblog_xlong to print
243 2001-04-19 Andrew Cagney <ac131313@redhat.com>
245 * samples/async.c: Include <string.h> for strsignal.
247 2001-04-17 Alexandre Oliva <aoliva@redhat.com>
249 * acinclude.m4: Get macros from ../libtool.m4 and ../gettext.m4.
250 * configure.in: Call CY_WITH_NLS.
251 * samples/Makefile.am (sample_DEPLIBS): New. Copied from
252 sample_LDADD, except for libintl.a.
253 (sample_LDADD): Set as sample_DEPLIBS plus INTLLIBS.
254 (sample_DEPENDENCIES): New. Same as sample_DEPLIBS plus INTLDEPS.
255 * aclocal.m4, configure, samples/Makefile.in: Rebuilt.
257 2001-04-16 Andrew Cagney <ac131313@redhat.com>
259 * lib/gdbsocket.c (process_accept): Only SIGIO when
262 2001-04-15 Andrew Cagney <ac131313@redhat.com>
264 * include/bfd-loader.h (bfd_loader_exit): Replace bfd_shutdown.
265 * lib/bfd-loader.c (lng): Add ``exit_val''.
266 (fromtarget): Save the exit value.
267 (bfd_loader_exit): Call exit with ``exit_val''.
268 * samples/main.c (main): Replace bfd_shutdown with
271 2001-04-15 Andrew Cagney <ac131313@redhat.com>
273 * include/gdbserv-target.h (struct gdbserv_target): Add ``to''.
274 (gdbserv_totarget): Declare.
275 (struct gdbserv_target): Make process_set_pc's ``val'' parameter
277 * lib/gdbserv-target.c: Include "gdbserv-utils.h" and "gdbserv.h".
278 (gdbserv_totarget): New function.
280 * lib/gdbserv-state.c (gdbserv_data_packet): Rewrite ``c'', ``C'',
281 ``s'', ``S'' and ``i'' packet code. Use gdbserv_totarget. Never
282 transition into state GDBSERV_STATE_STEPPING.
283 * lib/gdbserv-state.h (enum gdbserv_state): Delete
284 GDBSERV_STATE_STEPPING.
285 * lib/gdbserv-state.c (state2str, fromtarget): Update.
286 (gdbserv_fromclient_break): Ditto..
288 * lib/bfd-loader.c (load_n_go): Compute the start address. Pass
289 it to gdbserv_totarget.
290 * samples/demo-target.c (demo_process_set_pc): New function.
291 (demo_target): Initialize process_set_pc.
293 2001-04-15 Andrew Cagney <ac131313@redhat.com>
295 * include/gdbserv-target.h: Add ``stop_addr'' parameter. Document.
296 (struct gdbserv_target): Update member ``from''.
297 * lib/gdbserv-target.c (gdbserv_fromtarget_reset)
298 (gdbserv_fromtarget_restarted, gdbserv_fromtarget_terminate)
299 (gdbserv_fromtarget_exit, gdbserv_fromtarget_thread_break)
300 (gdbserv_fromtarget_break, gdbserv_fromtarget): Update.
301 * lib/gdbserv-state.c (fromtarget): Update.
302 * lib/bfd-loader.c (fromtarget_stopped): Delete.
303 (fromtarget): Update.
304 * samples/demo-target.c (do_fromtarget_ready): Update.
306 2001-04-13 Andrew Cagney <ac131313@redhat.com>
308 * samples/demo-target.c: Replace demo_set_memo with
309 demo_set_thread_mem. Replace demo_continue_program with
310 demo_continue_thread.
312 * lib/Makefile.am (THESOURCES): Add bfd-loader.c
313 (INCLUDES): Add top level include and bfd directories.
314 * lib/Makefile.in: Regenerate.
315 * include/bfd-loader.h: New file.
316 * lib/bfd-loader.c: New file.
318 * samples/main.c: Include "bfd-loader.h", "gdbsched.h" and
320 (main): Add ``-v'' verbose option.
321 (main): If the parameter isn't numeric or ``-'' assume that it is
322 a file to load using bfd_load. Schedule a program quit event.
324 (fake_exit): New function.
325 * samples/Makefile.am (sample_LDADD): Add libbfd.la, libintl.a and
327 * samples/Makefile.in: Regenerate.
329 2001-04-13 Andrew Cagney <ac131313@redhat.com>
331 * samples/main.c: Include <unistd.h>, <signal.h>, <ctype.h>,
332 "gdbsched.h", "gdbserv-target.h" and <time.h>.
333 (main): Add -d option. Interpret ``-'' parameter as stdio.
334 Validate port number. Add usage/help message. Use variable
335 shutdown to determine if the startup worked.
336 (usage): New function.
337 (do_close): New function.
338 * samples/stdio.c: Delete.
339 * samples/Makefile.am (noinst_PROGRAMS): Delete stdio.
340 (stdio_SOURCES, stdio_LDADD): Delete.
341 * samples/Makefile.in: Regenerate.
343 2001-04-13 Andrew Cagney <ac131313@redhat.com>
345 * samples/demo-target.c (demo_target): New function.
346 (do_fromtarget_reset): New function.
347 (demo_attach): Use demo_target and do_fromtarget_reset. Take
348 server out of reset state.
349 * samples/thread.c (thread_attach): Call demo_target.
351 2001-04-12 Andrew Cagney <ac131313@redhat.com>
353 * include/gdbserv.h (gdbserv_state): Delete declaration
354 (GDBSERV_STATE_STUMBLING): Delete.
355 (enum gdbserv_state): Move from here.
356 * lib/gdbserv-state.h (enum gdbserv_state): Back to here.
357 * lib/gdbserv-state.c (state2str): Update.
358 * lib/gdbserv-target.c: Don't include "gdbserv.h".
360 2001-04-12 Andrew Cagney <ac131313@redhat.com>
362 * lib/gdbserv-state.c (gdbserv_fromclient_attach): Create a cycle
363 of GDBSERVs. Initialize ``from'' method in target vector.
364 (gdbserv_fromclient_detach): Clear ``from'' method.
365 (do_exit_packet): New function. Output an exit/terminate packet.
366 (fromtarget): New function.
367 (gdbserv_fromtarget_reset): Delete.
368 (gdbserv_fromtarget_break): Delete.
369 (gdbserv_fromtarget_thread_break): Delete.
370 (gdbserv_fromtarget_exit): Delete.
371 (gdbserv_fromtarget_terminate): Delete.
373 * include/gdbserv-target.h (gdbserv_fromtarget): Declare.
374 (enum gdbserv_fromtarget_event): Define.
375 (struct gdbserv_target): Add ``from''.
376 (GDBSERV_SIG): Move definitions to start of file.
378 * lib/gdbserv-state.h (struct gdbserv): Add ``from'' and ``to'' as
379 links up and down the target stack.
380 * lib/gdbserv-target.c: New file.
381 * lib/Makefile.am (THESOURCES): Add gdbserv-target.c
382 * lib/Makefile.in: Regenerate.
384 2001-04-12 Andrew Cagney <ac131313@redhat.com>
386 * lib/gdbsocket.c (gdbsocket_had_sigio_p): Delete.
387 (sigio_socket): Delete.
388 (gdbsocket_sigio_enable, gdbsocket_sigio_disable): Delete.
389 (gdbsocket_async, gdbsocket_async_p): New function and variable.
390 (async_fd): Only enable O_ASYNC when async selected.
391 (gdbsocket_startup): Don't call gdbsocket_sigio_disable.
393 * include/gdbsocket.h (gdbsocket_had_sigio_p): Delete.
394 (gdbsocket_sigio_enable, gdbsocket_sigio_enable): Delete.
395 (gdbsocket_async): New function.
397 * samples/async.c (set_poll_p): Replace handle_sigalrm.
398 (poll_p): Volatile global.
399 (main): Register signal handlers for both SIGIO and SIGALRM. Check
400 poll_p. Call gdbsocket_sigio to enable O_ASYNC on all file
403 * include/gdbloop.h (gdbloop_p): Delete.
404 (gdbloop_sigio_enable, gdbloop_sigio_disable): Delete.
405 * lib/gdbloop.c: Update.
407 2001-04-12 Andrew Cagney <ac131313@redhat.com>
409 * include/gdbsocket.h (gdbsocket_poll): Delete declaration.
410 * lib/gdbsocket.c (struct fds): Delete.
411 (gdbsocket_poll, fds_isset, fds_set): Delete functions.
412 * lib/gdbloop.c (poll_gdbsocket): Rename gdbloop_poll.
413 (gdbloop_poll): New function.
414 (gdbloop): Call poll_gdbsocket.
416 * samples/main.c (main): Call gdbloop_poll. Don't include <time.h>
417 * samples/demo-target.h, samples/demo-target.c: Update comments.
418 * samples/thread.c: Update comments.
420 2001-04-12 Andrew Cagney <ac131313@redhat.com>
422 * lib/gdbloop.c (gdbloop): Reverse file / queue processing order -
423 do the task queue second.
425 2001-04-11 Andrew Cagney <ac131313@redhat.com>
427 * samples/async.c: Include <signal.h>, "gdblog.h", "gdbsched.h"
430 * lib/gdbloop.c (gdbloop): Delete alarm code. Moved to
432 (handle_sigalarm): Delete. Moved to samples/async.c.
433 (gdbloop_sigio_enabled_p): Delete.
434 (gdbloop_sigio_enable, gdbloop_sigio_disable): Update.
436 * samples/async.c (handle_sigalarm): New function.
437 (main): Use alarm to handle timer events.
439 2001-04-11 Andrew Cagney <ac131313@redhat.com>
441 * lib/gdbserv-state.c (reset_state): New function. Fully
442 re-initialize gdbserv.
443 (gdbserv_fromclient_attach): Call reset_state.
444 (gdbserv_data_packet): Ditto for "r" and "R" packets.
446 * lib/gdbserv-state.h (struct gdbserv): Add ``event_thread'' and
449 * lib/gdbserv-state.c (gdbserv_fromtarget_thread_break): Update
450 ``event_thread'' and ``event_sigval''. Clear "continue_thread".
451 (do_status_packet): New function. Move "T" packet code to here.
452 (gdbserv_fromtarget_thread_break): Call do_status_packet.
453 (gdbserv_data_packet): Use do_status_packet to respond to "?".
454 (do_current_thread_query): Always return the general thread.
456 2001-04-11 Andrew Cagney <ac131313@redhat.com>
458 * lib/gdbloop.c (gdbloop_sigio_enabled_p): New global.
459 (handle_sigalarm): New function.
460 (gdbloop_sigio_enable): Register handle_sigalarm for SIGALRM.
461 (gdbloop_sigio_disable): Deregister SIGALRM.
462 (gdbloop): When gdbloop_sigio_enabled_p, schedule an alarm to
463 triger the next round of event processing.
465 2001-04-11 Andrew Cagney <ac131313@redhat.com>
467 * lib/gdbsched.c: Include "gdblog.h" and "gdbsocket.h".
468 (gdbsched_schedule, gdbsched_deschedule)
469 (gdbsched_dispatch): Add tracing.
471 * lib/gdbsched.c (gdbsched_schedule): Pre- rather than post-
472 increment sched_db. Stop the first sched tag being NULL.
474 2001-04-10 Andrew Cagney <ac131313@redhat.com>
476 * samples/demo-target.h (demo_break): Delete declaration.
477 (struct gdbserv_target): Delete declaration.
478 (demo_ticks_before_break_p): Delete declaration.
479 * samples/demo-target.c: Include <time.h>, <sys/time.h> and
481 (demo_ticks_before_break_p): Delete global variable.
482 (dispatch_break, sched_break): New functions.
483 (demo_break_program): Call sched_break.
484 (demo_restart_program): Ditto.
485 (demo_singlestep_program): Ditto.
486 (demo_cyclestep_program): Ditto.
487 (demo_continue_program): Ditto.
488 (demo_break): Delete function.
490 * samples/poll.c: Include <time.h>, <sys/time.h> and
491 "gdbsched.h". Delete redundant include of <sys/types.h>.
492 (main): Replace demo_ticks_before_break_p with call to
494 * samples/fdset.c (main): Ditto.
496 * samples/main.c: Include <time.h>, <sys/time.h> and "gdbloop.h".
497 (main): Replace gdbsocket_poll and demo_ticks_before_break_p with
499 * samples/stdio.c: Ditto.
501 * samples/thread.c: New file.
502 * samples/thread-target.c: Delete.
503 * samples/Makefile.am (thread_SOURCES): Update.
504 * samples/Makefile.in: Regnerate.
506 2001-04-11 Andrew Cagney <ac131313@redhat.com>
508 * samples/fdset.c: Delete. See lib/gdbloop.c.
509 * samples/Makefile.am (noinst_PROGRAMS): Delete fdset.
510 (fdset_SOURCES): Delete.
511 (fdset_LDADD): Ditto.
512 * samples/Makefile.in: Regenerate.
514 2001-04-11 Andrew Cagney <ac131313@redhat.com>
516 * include/gdbloop.h (gdbloop_p): Declare.
517 (gdbloop_sigio_enable, gdbloop_sigio_disable): Declare.
518 (gdbloop): Add TIMEOUT parameter.
519 * lib/gdbloop.c: Don't include <sys/types.h>. Include <assert.h>,
520 <signal.h> and <fcntl.h>.
521 (sigio_fd): New function.
522 (gdbloop_sigio_enable, gdbloop_sigio_disable): New functions.
523 (gdbloop_poll): Cleanup. Check gdbloop_p. Make static.
524 (gdbloop): Update to handle timeout as a parameter.
526 * include/gdbsocket.h (gdbsocket_poll): Deprecate.
527 (gdbsocket_sigio_disable): Deprecate.
528 (gdbsocket_sigio_enable): Deprecate.
529 (gdbsocket_had_sigio_p): Deprecate.
531 * samples/async.c: New file.
532 * samples/Makefile.am (noinst_PROGRAMS): Add async demo.
533 (async_LDADD, sample_SOURCES): Define.
534 * samples/Makefile.in: Regenerate.
535 * samples/demo-target.c (demo_break_program): Print a trace
538 2001-04-10 Andrew Cagney <ac131313@redhat.com>
540 * lib/gdbsocket.c (async_fd): Ensure that the SIGIO is delivered
542 (process_accept): Use kill SIGIO, instead of setting
543 gdbsocket_had_sigio_p, to force the re-read.
545 2001-04-10 Andrew Cagney <ac131313@redhat.com>
547 * qe/inc-gdbloop.c, qe/inc-gdbsched.c: New files.
548 * qe/Makefile.am (qe_SOURCES): Add inc-gdbloop.c and
550 * qe/Makefile.in: Regenerate.
552 2001-04-10 Andrew Cagney <ac131313@redhat.com>
554 * include/gdbsched.h, lib/gdbsched.c: New files. Simple
556 * lib/gdbloop.c, include/gdbloop.h: New files. Simple
558 * lib/Makefile.am (THESOURCES): Add gdbloop.c and gdbsched.c.
559 * lib/Makefile.in: Regenerate.
561 2001-04-10 Andrew Cagney <ac131313@redhat.com>
563 * include/gdbserv-utils.h: Add fake close of extern "C" to pacify
565 * include/gdbserv-target.h: Ditto.
566 * include/gdbserv-output.h: Ditto.
567 * include/gdbserv-input.h: Ditto.
568 * include/gdbserv-client.h: Ditto.
569 * include/gdbserv.h: Ditto.
571 2001-04-09 Michael Snyder <msnyder@redhat.com>
573 * lib/gdbserv-state.c (gdbserv_data_packet): Give preference to
574 threaded cyclestep method. Likewise threaded get_mem / set_mem.
576 2001-04-05 Andrew Cagney <ac131313@redhat.com>
578 * lib/gdbserv-state.c (gdbserv_fromtarget_thread_break): Revert
579 change ``2001-04-05 Andrew Cagney <ac131313@redhat.com>'' that
580 cleared the general_thread.
582 * lib/gdbserv-state.c (gdbserv_data_packet)
583 (do_select_thread_packet): Revert ``2001-04-05 Michael Snyder
584 <msnyder@redhat.com>'' that cleared the general_thread.
586 2001-04-05 Andrew Cagney <ac131313@redhat.com>
588 * lib/gdbserv-state.c (gdbserv_data_packet): Move code clearing
589 the general thread to gdbserv_fromtarget_thread_break.
591 2001-04-05 Michael Snyder <msnyder@redhat.com>
593 * gdbserv-state.c (gdbserv_data_packet): Discard any saved general
594 thread on step or continue. GDB doesn't always cancel it, but the
595 general thread should not persist between stop events.
596 (do_select_thread_packet): Both the continue
597 thread and the general thread may be set to null.
598 NOTE: All methods that may receive the general thread must be
599 prepared to receive NULL (defaulting to the current thread).
601 2001-04-03 David Smith <dsmith@redhat.com>
603 * lib/gdbserv-state.c (do_current_thread_query): Try to figure out
604 the correct thread to use when returning the thread id.
606 2001-04-02 Michael Snyder <msnyder@redhat.com>
608 * lib/gdbserv-state.c (do_get_registers_p_packet): Check for
609 get_thread_reg rather than get_reg, since that is what will
610 be used. While we're at it, check for reg_format and output_reg.
611 (gdbserv_data_packet): Give first preference to thread-aware
612 register methods (if defined) for g/G/P packets. That way, to
613 add thread awareness, a backend need only define the new methods
614 (without nullifying the old ones). This makes it possible to
615 fall back on the old ones if necessary. FIXME should it be an
616 error if there is no target register method? Also give first
617 preference to thread-aware step and continue methods.
619 2001-03-23 David Smith <dsmith@redhat.com>
621 * lib/gdbserv-state.c (gdbserv_fromtarget_thread_break): If a NULL
622 thread is passed in, try to figure out the correct thread to use.
623 In addition, don't change the value of the "continue_thread".
625 * samples/thread-target.c (demo_break): Calls
626 gdbserv_fromtarget_thread_break() with a NULL thread.
628 2001-03-22 Andrew Cagney <ac131313@redhat.com>
630 * lib/gdbsocket.c (struct session): Rename ``struct gdbsocket''.
631 (session_db): Rename gdb_sockets.
632 (gdbsocket_shutdown): Update.
633 (gdbsocket_reopen): Update.
634 (gdbsocket_fd_set): Update.
635 (gdbsocket_fd_isset): Update.
637 * include/gdbsocket.h (gdbsocket_fd_isset, gdbsocket_poll): Delete
638 paramters to_target_attach and target_attach_data.
639 (gdbsocket_startup): Add parameters to_target_attach and
642 * lib/gdbsockets.c (gdbscket_fd): Delete static variable.
643 (struct server): Declare.
644 (server_db): Declare static variable.
645 (gdbsocket_startup): Add to_target_attach and target_attach_data
646 parameters. Enter the server in the server_db.
647 (gdbsocket_shutdown): Handle servers in server_db instead of
649 (gdbsocket_fd_set): Ditto.
650 (gdbsocket_fd_isset): Ditto.
651 (process_accept): Replace to_target_attach and target_attach_data
652 with single ``struct server'' parameter.
653 (gdbsocket_fd_isset): Update call.
655 * samples/fdset.c (main): Update calls to gdbsocket_startup and
657 * samples/poll.c (main): Ditto.
658 * samples/main.c (main): Ditto for gdbsocket_startup and
660 * samples/stdio.c (main): Ditto for gdbsocket_poll.
662 Thu Mar 22 16:53:09 2001 David Taylor <taylor@redhat.com>
664 * lib/gdbserv-state.c (gdbserv_fromtarget_thread_break): When
665 output'ing a register, output the full length, not zero bytes.
667 2001-03-16 Elena Zannoni <ezannoni@redhat.com>
669 * include/gdbserv-target.h (struct gdbserv_target): Add
670 parameter to detach function pointer.
671 * lib/gdbserv-state.c (gdbserv_fromclient_detach): Pass
672 gdbserv->target to detach target call.
673 * samples/demo-target.c (demo_detach): Add parameter.
674 * samples/thread-target.c (demo_detach): Add parameter.
675 * win32/win32-target.c (win32-detach): Add new parameter.
677 2001-03-15 Andrew Cagney <ac131313@redhat.com>
679 * Makefile.am, configure.in: Add qe directory.
680 * Makefile.in, configure: Regenerate.
682 * qe/README: New file.
683 * qe/Makefile.am: New file.
684 * qe/Makefile.in: Regenerate.
685 * qe/inc-backwards.c: New file.
686 * qe/inc-forward.c: New file.
687 * qe/inc-gdblog.c: New file.
688 * qe/inc-gdbserv-client.c: New file.
689 * qe/inc-gdbserv-input.c: New file.
690 * qe/inc-gdbserv-log.c: New file.
691 * qe/inc-gdbserv-output.c: New file.
692 * qe/inc-gdbserv-target.c: New file.
693 * qe/inc-gdbserv-utils.c: New file.
694 * qe/inc-gdbserv.c: New file.
695 * qe/inc-gdbsocket.c: New file.
696 * qe/inc-stdio-log.c: New file.
699 2001-03-15 Andrew Cagney <ac131313@redhat.com>
701 * lib/gdbserv-input.c (gdbserv_input_trace): Delete variable.
702 * lib/gdbsocket.c (gdbsocket_trace): Ditto.
703 * lib/gdbserv-state.c (gdbserv_state_trace): Ditto.
704 * lib/gdbserv-output.c (gdbserv_output_trace): Ditto.
705 * include/gdbsocket.h (gdbsocket_trace): Delete declaration.
706 * include/gdbserv.h (gdbserv_state_trace, gdbserv_input_trace)
707 (gdbserv_output_trace): Ditto.
709 2001-03-14 Andrew Cagney <ac131313@redhat.com>
711 * Move native/ directory to unix/.
712 * configure.in (*linux*): Update.
713 * configure: Regenerate.
714 * aclocal.m4: Regenerate.
716 2001-03-14 Elena Zannoni <ezannoni@redhat.com>
718 * lib/gdbserv-state.h, include/gdbserv-state.h:
719 Revert the previous change. gdbserv-state.h should
722 2001-03-14 Elena Zannoni <ezannoni@redhat.com>
724 * lib/gdbserv-state.h: Move from here.
725 * include/gdbserv-state.h: To here.
727 2001-03-14 Andrew Cagney <ac131313@redhat.com>
729 * lib/gdblog.h: Move from here.
730 * include/gdblog.h: To here.
731 * lib/gdbserv-client.h, include/gdbserv-client.h: Ditto.
732 * lib/gdbserv-input.h, include/gdbserv-input.h: Ditto.
733 * lib/gdbserv-log.h, include/gdbserv-log.h: Ditto.
734 * lib/gdbserv-output.h, include/gdbserv-output.h: Ditto.
735 * lib/gdbserv-target.h, include/gdbserv-target.h: Ditto.
736 * lib/gdbserv-utils.h, include/gdbserv-utils.h: Ditto.
737 * lib/gdbserv.h, include/gdbserv.h: Ditto.
738 * lib/gdbsocket.h, include/gdbsocket.h: Ditto.
739 * lib/stdio-log.h, include/stdio-log.h: Ditto.
741 * lib/Makefile.am (INCLUDES): Update. Headers moved to ../include.
742 * lib/Makefile.in: Regenerate.
743 * samples/Makefile.am (INCLUDES): Ditto.
744 * samples/Makefile.in: Regenerate.
746 2001-03-02 Andrew Cagney <ac131313@redhat.com>
748 * lib/Makefile.am (THESOURCES): Add gdblog.c, stdio-log.c and
750 * lib/Makefile.in: Regenerate.
751 * lib/gdblog.h, lib/gdblog.c: New files.
752 * lib/stdio-log.h, lib/stdio-log.c: New files.
753 * lib/gdbserv-log.h, lib/gdbserv-log.c: New files.
755 * lib/gdbsocket.h (gdbsocket_trace): Document as deprecated.
756 (gdbsocket_log): Declare variable.
757 * lib/gdbsocket.c: Include "gdblog.h". Update to use gdblog
758 interface for tracing.
759 (gdbsocket_log): Define variable.
761 * lib/gdbserv.h (gdbserv_state_trace, gdbserv_input_trace)
762 (gdbserv_output_trace): Document as deprecated.
763 * lib/gdbserv-input.c: Include "gdblog.h" and "gdbserv-log.h".
764 Update to use gdblog interface for tracing.
765 * lib/gdbsocket.c: Ditto.
766 * lib/gdbserv-output.c: Ditto.
767 * lib/gdbserv-state.c: Ditto.
768 (log_state): New function.
770 * samples/fdset.c: Include "gdblog.h", "stdio-log.h" and
772 (main): Update to use gdbsocket_log, gdbserv_warning_log and
774 * samples/main.c: Ditto.
775 * samples/poll.c: Ditto.
776 * samples/stdio.c: Ditto.
777 * samples/demo-target.c (demo_attach): Delete code initializing
779 * samples/thread-target.c (demo_attach): Ditto.
781 2001-03-02 Andrew Cagney <ac131313@redhat.com>
783 * samples/thread-target.c (thread_lookup_by_id): Fix printf fmt
785 (thread_info): Print thread ID, not an internal thread address.
787 2001-03-02 Andrew Cagney <ac131313@redhat.com>
789 * configure.in: Add support for --enable-build-warnings and
790 (--enable-libremote-build-warnings.
791 * configure: Regenerate.
793 * Makefile.am (WARN_CFLAGS, WERROR_CFLAGS): Define. Initialized
796 * Makefile.in: Regenerate.
797 * samples/Makefile.am, samples/Makefile.in: Ditto.
798 * lib/Makefile.am, lib/Makefile.in: Ditto.
800 Thu Dec 21 02:54:39 2000 Andrew Cagney <cagney@b1.cygnus.com>
802 * samples/thread-target.c: Include <string.h>.
803 (thread_info): Use sprintf and strdup instead of asprintf.
805 Thu Dec 21 02:11:49 2000 Andrew Cagney <cagney@b1.cygnus.com>
807 * lib/gdbserv-utils.h: Declare ``struct gdbserv'' and ``struct
809 * lib/gdbserv-output.h: Ditto.
810 * lib/gdbserv-input.h: Declare ``struct gdbserv''.
812 Wed Dec 20 17:19:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
814 * samples/thread-target.c: New file.
815 * samples/Makefile.am (noinst_PROGRAMS): Add the program thread.
816 (thread_SOURCES, thread_LDADD): Define.
818 Wed Dec 20 15:51:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
820 * lib/gdbserv-output.h, lib/gdbserv-input.h, lib/gdbserv-client.h,
821 lib/gdbserv-state.h, lib/gdbserv.h, lib/gdbsocket.h: Remove
822 #ifndef wrappers. Not needed.
824 Wed Dec 20 16:29:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
826 * lib/gdbserv-state.c (gdbserv_data_packet): Separate check for
827 qRcmd from check that the target supports it.
828 (gdbserv_data_packet): Remove #if 1 from around ``P'' packet code.
829 (gdbserv_data_packet): Check for process_get_reg when handling
831 (gdbserv_data_packet): Check for target support before processing
834 Wed Dec 20 16:12:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
836 * lib/gdbserv-target.h (struct gdbserv_target): Add thread aware
837 memory access methods - get_thread_mem, set_thread_mem.
838 * lib/gdbserv-state.c (gdbserv_data_packet): Rewrite memory
839 read/write code to use thread aware methods when available.
841 Wed Dec 20 15:36:24 2000 Andrew Cagney <cagney@b1.cygnus.com>
843 * lib/gdbserv-target.h: Add thread aware resume methods -
844 continue_thread, cyclestep_thread, singlestep_thread.
845 * lib/gdbserv-state.c (gdbserv_data_packet): Rewrite continue code
846 to use thread mechanism when available.
848 Wed Dec 20 12:09:42 2000 Andrew Cagney <cagney@b1.cygnus.com>
850 * lib/gdbserv-target.h (struct gdbserv_target): Add thread aware
851 register methods - next_gg_reg, next_expedited_reg, reg_format,
852 set_thread_reg, get_thread_reg.
854 * lib/gdbserv-state.c (output_thread_reg): New function. Use
855 thread aware methods to output a register.
856 (do_get_registers_g_packet): Ditto.
857 (do_set_registers_g_packet): Ditto.
858 (do_get_registers_p_packet): Ditto.
859 (do_set_registers_p_packet): Ditto.
860 (gdbserv_data_packet): Use new functions to process ``G'', ``g'',
861 ``p'' and ``P'' packets.
862 (gdbserv_fromtarget_thread_break): Update using thread aware
863 methods when available.
865 Wed Dec 20 11:46:32 2000 Andrew Cagney <cagney@b1.cygnus.com>
867 * lib/gdbserv-target.h (gdbserv_fromtarget_thread_break): Declare.
868 * lib/gdbserv-state.c (gdbserv_fromtarget_break): Call
869 gdbserv_fromtarget_thread_break.
870 (gdbserv_fromtarget_thread_break): New function. Replace
871 gdbserv_fromtarget_break. Return thread ID when known. Fix
872 formatting of expedited registers.
874 Wed Dec 20 10:26:36 2000 Andrew Cagney <cagney@b1.cygnus.com>
876 * lib/gdbserv-state.c: Include <assert.h>.
877 (gdbserv_data_packet): Add support for ``H'', ``T'' packets. Add
878 support for ``ThreadInfo'', ``ThreadExtraInfo'' and ``C'' queries.
879 (do_select_thread_packet): New function, handle ``H'' packet.
880 (do_current_thread_query): New function, handle ``C'' query.
881 (do_thread_info_query): New function.
882 (do_thread_extra_info_query): New function.
883 (do_thread_alive_packet): New function, handle ``T'' packet.
885 2000-12-19 <brolley@redhat.com>
887 * configure.in: Rename gidl to cidl. More detailed messages for
888 subdirs not supported on various hosts/targets.
889 * configure: regenerated.
891 Tue Dec 19 17:51:58 2000 Andrew Cagney <cagney@b1.cygnus.com>
893 * lib/gdbserv-output.c: Include <assert.h>.
894 (gdbserv_output_reg_beb, gdbserv_output_reg_leb): Use assert to
896 (gdbserv_output_reg_beb, gdbserv_output_reg_leb): Handle zero reg.
898 * lib/gdbserv-input.c (gdbserv_input_hex_long): New function.
899 * lib/gdbserv.h (int gdbserv_input_hex_long): Declare.
901 * lib/gdbserv-utils.c (gdbserv_reg_to_ulong,
902 gdbserv_reg_to_ulonglong, gdbserv_ulong_to_reg,
903 gdbserv_ulonglong_to_reg): Change return type to void.
904 (gdbserv_reg_to_ulong, gdbserv_reg_to_ulonglong): Make ``reg''
906 (unpack_ulonglong): New function.
907 (gdbserv_ulong_to_reg, gdbserv_long_to_reg,
908 gdbserv_ulonglong_to_reg, gdbserv_longlong_to_reg): Use.
909 * lib/gdbserv-utils.h (gdbserv_reg_to_ulong,
910 gdbserv_reg_to_ulonglong, gdbserv_ulong_to_reg,
911 gdbserv_ulonglong_to_reg): Update function declarations.
913 2000-12-18 David Smith <dsmith@redhat.com>
915 * lib/gdbserv-client.h, lib/gdbserv-input.h, lib/gdbserv-output.h:
916 Added macros to guard against mutiple inclusion and added C++
917 support (by adding 'extern "C"').
918 * lib/gdbserv-state.h, lib/gdbserv-target.h, lib/gdbserv-utils.h:
920 * lib/gdbserv.h, lib/gdbsocket.h: Ditto.
922 2000-11-28 Michael Snyder <msnyder@cleaver.cygnus.com>
924 * lib/gdbserv-state.c (gdbserv_data_packet): Return error if
925 get_mem method does not return the requested number of bytes.
927 2000-11-21 Corinna Vinschen <vinschen@cygnus.com>
929 * configure.in: Add subdir dependency for win32 target.
931 2000-11-14 Michael Snyder <msnyder@cleaver.cygnus.com>
933 * samples/demo-target.c (demo_get_mem, demo_set_mem):
934 Add a memory cache that can be modified by GDB.
935 (demo_process_get_regs, demo_process_set_regs):
936 Add a register cache that can be modified by GDB.
937 (demo_attach): Hook in demo_process_set_regs.
938 (demo_set_mem): Check for malloc failure in pseudo-memory cache.
940 2000-11-08 Rudy Folden <rfolden@redhat.com>
942 * configure.in (case "$target" in sh-*): Removed erroneous CC case.
943 * native/configure.in (case "$target" in sh-*): Removed erroneous CC case.
945 2000-11-07 Rudy Folden <rfolden@redhat.com>
947 * README: Doc update.
949 2000-11-07 Rudy Folden <rfolden@redhat.com>
951 * configure.in (case "$target" in sh-*): Added case for CC.
952 * native/configure.in (case "$target" in sh-*): Added case for CC.
953 * native/Makefile.am (CC=, CFLAGS=): removed erroneous CC ad CFLAGS entiries.
954 * native/Makefile.in (CC=, CFLAGS=): removed erroneous CC ad CFLAGS entiries.
956 2000-09-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
958 With Andrew Cagney <cagney@b1.cygnus.com>
959 * lib/gdbserv-input.c (add_char_to_packet): Improve handling of
960 missing ACK packets, NACKs and other exceptional conditions.
961 This fixies a bug where libremote would lock up and ignore everything
963 (gdbserv_input_wait_for_ack): Do not print switch to ACK warning
964 when retrying. Rephrase the warning message.
966 2000-09-13 Michael Snyder <msnyder@michael.wirespeed.com>
968 * lib/gdbserv-state.c (gdbserv_fromtarget_terminate): New function.
969 (gdbserv_fromtarget_exit): Rename arg from signum to exitcode.
970 * lib/gdbserv-target.h (gdbserv_fromtarget_terminate): Export.
972 Thu Sep 7 16:53:22 2000 David Taylor <taylor@texas.cygnus.com>
974 * lib/gdbserv-utils.c (gdbserv_ulong_to_reg,
975 gdbserv_ulonglong_to_reg): New functions.
976 * lib/gdbserv-utils.h (gdbserv_ulong_to_reg,
977 gdbserv_ulonglong_to_reg): Declare them.
979 2000-09-06 Michael Snyder <msnyder@cleaver.cygnus.com>
981 * configure.in: Add "native" subdirectory to targ_subdirs.
982 * configure: Regenerate.
983 * configure.in: Remove native/Makefile from output.
984 Native subdirectory now has its own configure and automake.
985 * configure: Regenerate.
987 Thu Jun 8 14:32:21 2000 David Taylor <taylor@texas.cygnus.com>
989 * lib/gdbsocket.c (process_read): change "else if" to "if",
990 otherwise, when gdbsocket_trace is set, packets never get
993 Tue May 23 17:33:02 2000 Andrew Cagney <cagney@b1.cygnus.com>
995 * samples/poll.c (main): Pass POLLFDS and not POLL to
998 * samples/demo-target.c (sole_target): Delete global.
999 * samples/demo-target.c (demo_attach): Create and initialize
1000 target vector at runtime.
1002 Tue May 23 16:44:26 2000 Andrew Cagney <cagney@b1.cygnus.com>
1004 * lib/gdbsocket.c, lib/gdbserv-client.h, lib/gdbserv-target.h:
1007 Mon May 22 20:29:05 2000 Andrew Cagney <cagney@b1.cygnus.com>
1009 * samples/demo-target.c (sole_target): Fix initialization.
1011 Thu May 18 10:55:33 2000 Andrew Cagney <cagney@b1.cygnus.com>
1013 * lib/gdbsocket.c: Do not include "gdbserv.h". "gdbserv-client.h"
1014 provides all required server declarations.
1016 2000-05-17 Fernando Nasser <fnasser@cygnus.com>
1018 * lib/gdbserv-output.c (gdbserv_output_string_as_bytes): New function.
1019 Send a null terminated string as hex encoded bytes (useful for
1020 "O" packets and "qRcmd" answers).
1021 * lib/gdbserv.h: Add prototype of the above.
1022 * lib/gdbserv-state.c (gdbserv_data_packet): Fix and reactivate code
1023 that handles "p" packets.
1024 * lib/gdbserv-target.h: Add prototype for process_get_reg callback
1025 (activated by a "p" packet).
1027 Wed May 3 18:46:02 2000 Andrew Cagney <cagney@b1.cygnus.com>
1029 * lib/gdbsocket.h (enum gdbsocket_fd_event,
1030 gdbsocket_fd_set_ftype, gdbsocket_fd_isset_ftype): Declare.
1031 (gdbsocket_fd_set, gdbsocket_fd_isset): Pass fd_set/fd_isset and
1032 context instead of readfs.
1033 * lib/gdbsocket.c (gdbsocket_fd_set): Replace ``fd_set'' with with
1034 function parameter for accumulating file descriptors.
1035 (gdbsocket_fd_isset): Ditto with a function parameter that
1036 indicates that a file descriptor is ready.
1037 (struct fds): Define.
1038 (fds_set, fds_isset): New functions.
1039 (gdbsocket_poll): Update. Add support for both read and write
1042 * samples/fdset.c (struct fdset, set, isset): Declare.
1043 (main): Update to use new gdbsocket_fd_set / gdbsocket_fd_isset
1046 * samples/Makefile.am: Add program poll.
1047 * samples/Makefile.in: Re-generate.
1048 * samples/poll.c: New file. Demonstrate gdbsocket's poll interface.
1050 Mon Apr 24 19:33:35 2000 Andrew Cagney <cagney@b1.cygnus.com>
1052 * samples/demo-target.c (demo_attach, demo_continue_program,
1053 demo_detach): Write traces to STDERR instead of STDOUT.
1055 * samples/stdio.c: New file.
1056 * samples/Makefile.am (noinst_PROGRAMS): Add stdio.
1057 * samples/Makefile.in: Re-generate.
1059 * lib/gdbsocket.h (gdbsocket_reopen): Add declaration.
1060 * lib/gdbsocket.c (process_accept): Use gdbsocket_reopen.
1061 (gdbsockt_reopen): New function.
1063 Mon Apr 24 19:09:29 2000 Andrew Cagney <cagney@b1.cygnus.com>
1065 * lib/gdbsocket.c (gdbsocket_fd): Initialize to -1.
1066 (gdbsocket_shutdown, gdbsocket_fd_set, gdbsocket_fd_isset): Do not
1067 assume that there is an open port.
1068 (gdbsocket_startup): Mark gdbsocket_fd as closed.
1070 Mon Apr 24 18:43:29 2000 Andrew Cagney <cagney@b1.cygnus.com>
1072 * lib/gdbsocket.h, lib/gdbsocket.c: Update comments.
1073 (gdbsocket_attach_ftype): Replace typedef gdbsocket_attach.
1074 * lib/gdbsocket.c (process_accept, gdbsocket_fd_isset,
1075 gdbsocket_poll): Update.
1076 (process_read): Document interface flaw.
1078 Mon Apr 24 18:12:14 2000 Andrew Cagney <cagney@b1.cygnus.com>
1080 * lib/gdbsocket.c (struct gdbsocket): Replace ``fd'' with
1081 ``readfd'' and WRITEFD. Add ``close'' method.
1082 (gdbsocket_shutdown): Update. Use ``close'' method.
1083 (process_read): Ditto. Replace ``fd'' with ``readfd''.
1084 (raw_write): Ditto. Replace ``fd'' with ``writefd''.
1085 (session_close): New function. Close ``readfd''.
1086 (process_accept): Update. Initialize ``close'' method with
1088 (gdbsocket_fd_isset, gdbsocket_fd_set): Replace ``fd'' with
1091 Mon Apr 24 17:14:21 2000 Andrew Cagney <cagney@b1.cygnus.com>
1093 * samples/demo-target.c (sole_target): Fix initialization of
1096 2000-04-17 Fernando Nasser <fnasser@cygnus.com>
1098 * HOWTO: New version. More complete, includes architecture.
1099 Callback function prototypes are removed and related comments
1100 moved to lib/gdbserv-target.h.
1102 Mon Apr 17 17:11:30 2000 Fernando Nasser <fnasser@cygnus.com>
1104 * lib/gdbserv-state.c (gdbserv_data_packet): Add processing of a
1107 Mon Apr 17 17:11:30 2000 Fernando Nasser <fnasser@cygnus.com>
1109 * lib/gdbserv-target.h (struct gdbserv-target): Add comments
1110 relating the callback routines to the corresponding remote
1113 2000-04-12 Frank Ch. Eigler <fche@redhat.com>
1115 * HOWTO: Remove mention of gdbserv_fromclient calls. Fix some
1116 typos. Minor rewording.
1118 2000-04-11 Fernando Nasser <fnasser@cygnus.com>
1120 * HOWTO: New file. A brief guide to write code that use libremote.
1122 Wed Apr 12 22:35:34 2000 Andrew Cagney <cagney@b1.cygnus.com>
1124 * lib/gdbserv.h (gdbserv_target_attach, gdbserv_fromclient_attach,
1125 gdbserv_fromclient_detach, gdbserv_fromclient_data,
1126 gdbserv_fromclient_break): Move from here.
1127 * lib/gdbserv-client.h: To here.
1129 * lib/gdbserv.h (gdbserv_fromtarget_break,
1130 gdbserv_fromtarget_reset, gdbserv_fromtarget_exit): Move from
1132 * lib/gdbserv-target.h: To here.
1134 Wed Apr 12 23:39:33 2000 Andrew Cagney <cagney@amy.cygnus.com>
1136 * configure.in: Configure in ASVP when ASVPLAB is defined.
1137 * configure: Re-generate.
1139 Wed Apr 12 22:06:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
1141 * samples/fdset.c: Include <stdlib.h> for atoi.
1142 Include <string.h>, work around FreeBSD header problem.
1143 * samples/demo-target.c: Include <stdlib.h> for rand.
1144 (demo_get_mem): Add paren around ``+'' and ``%'' per GCCs
1146 * samples/main.c: Include <stdlib.h> for atoi.
1147 * lib/gdbserv-state.c: Include <string.h> for memset.
1149 Wed Apr 12 20:22:36 2000 Andrew Cagney <cagney@b1.cygnus.com>
1151 * lib/gdbserv-utils.h, lib/gdbserv-utils.c (gdbserv_reg_to_hex):
1152 Delete. Replaced by gdbserv_output_reg_beb and
1153 gdbserv_output_reg_leb.
1155 Wed Apr 12 19:13:58 2000 Andrew Cagney <cagney@b1.cygnus.com>
1157 * lib/gdbserv-state.c (gdbserv_state): New function.
1158 * lib/gdbserv-state.h (enum gdbserv_state): Move from here.
1159 * lib/gdbserv.h (enum gdbserv_state): To here.
1160 (gdbserv_state): Add declaration.
1162 Tue Apr 11 20:20:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
1164 * samples/demo-target.c, samples/demo-target.h: New files. Copy
1165 demo target in main.c.
1166 * samples/main.c: Delete demo target code. Include
1168 * samples/Makefile.am: Update.
1170 * samples/fdset.c: New file. Demo gdbsocket.h's FD_SET interface.
1171 * samples/Makefile.am: Add program `fdset'.
1172 * samples/Makefile.in, stamp-h.in: Re-generate.
1174 2000-04-11 Fernando Nasser <fnasser@cygnus.com>
1176 * configure.in: Add check for target-dependent subdirectories.
1177 * configure: Regenerate.
1178 * Makefile.am: Use targ_subdirs generated above.
1179 * Makefile.in: Regenerate
1181 2000-04-11 Fernando Nasser <fnasser@cygnus.com>
1183 * configure.in: Test for host byte order.
1184 * config.in: Regenerate.
1185 * configure: Regenerate.
1187 Tue Apr 11 20:06:34 2000 Andrew Cagney <cagney@b1.cygnus.com>
1189 * lib/gdbsocket.h: Break dependency on "gdbserv.h".
1190 (gdbsocket_attach): New type.
1191 (struct gdbserv, struct gdbserv_target): Add declarations.
1192 * lib/gdbsocket.c (process_accept, gdbsocket_fd_isset,
1193 gdbsocket_poll): Update.
1195 Tue Apr 11 18:36:06 2000 Andrew Cagney <cagney@amy.cygnus.com>
1197 * lib/gdbsocket.c (gdbsocket_shutdown): Only trace when
1198 gdbsocket_trace. Avoid core dump.
1199 (gdbsocket_fd_set): New function.
1200 (gdbsocket_fd_isset): New function - better name?
1201 (gdbsocket_poll): Use gdbsocket_fd_set and gdbsocket_fd_isset to
1203 * lib/gdbsocket.h (gdbsocket_fd_set, gdbsocket_fd_isset): Add
1204 declarations conditional on having FD_SET.
1206 * samples/main.c: Do not include "gdbserv-client.h". "gdbsocket.h"
1207 implements the client side code.
1209 Tue Apr 11 17:49:29 2000 Andrew Cagney <cagney@amy.cygnus.com>
1211 * lib/gdbserv-state.h: Document that the file is gdbserv internal.
1212 * samples/main.c: Include system headers before stub headers.
1213 * lib/gdbserv.h: Don't include <stdio.h>.
1215 2000-04-06 Frank Ch. Eigler <fche@redhat.com>
1217 MAINTAINERS: New file.
1218 Makefile.am: New file.
1221 REMOTE-HACK-RULES: New file.
1222 configure.in: New file.
1223 Makefile.in: New generated file.
1224 aclocal.m4: New generated file.
1225 config.in: New generated file.
1226 configure: New generated file.
1227 stamp-h.in: New generated file.
1229 By Andrew Cagney <cagney@cygnus.com>:
1230 lib/ARCH: Imported file.
1231 lib/Makefile.am: New file.
1232 lib/Makefile.in: New generated file.
1233 lib/gdbserv-client.h: Imported file.
1234 lib/gdbserv-input.c: Imported file.
1235 lib/gdbserv-input.h: Imported file.
1236 lib/gdbserv-output.c: Imported file.
1237 lib/gdbserv-output.h: Imported file.
1238 lib/gdbserv-state.c: Imported file.
1239 lib/gdbserv-state.h: Imported file.
1240 lib/gdbserv-target.h: Imported file.
1241 lib/gdbserv-utils.c: Imported file.
1242 lib/gdbserv-utils.h: Imported file.
1243 lib/gdbserv.h: Imported file.
1244 lib/gdbsocket.c: Imported file.
1245 lib/gdbsocket.h: Imported file.
1247 samples/Makefile.am: New file.
1248 samples/Makefile.in: New generated file.
1249 samples/main.c: New file.
1256 version-control: never