1 2005-03-03 Kevin Buettner <kevinb@redhat.com>
3 * lib/crc32.h, lib/crc32.c: New files.
4 * lib/Makefile.am (librda_la_SOURCES): Add crc32.c to list.
5 * lib/Makefile.in: Regenerate.
6 * lib/gdbserv-state.c (crc32.h): Include.
7 (read_memory, do_qCRC_packet): New functions.
8 (gdbserv_data_packet): Add support for qCRC packet.
10 2005-02-07 Jim Blandy <jimb@redhat.com>
12 Regenerate Makefile.in files generated by top-level configure
13 script using Automake 1.9.3.
14 * lib/Makefile.am: Don't write out rules for both '.a' and '.la'
15 versions of the library. Libtool generates a '.a' library
17 * Makefile.in, lib/Makefile.in, qe/Makefile.in,
18 samples/Makefile.in: Regenerated.
20 2004-12-09 Jim Blandy <jimb@redhat.com>
22 * configure.in: Clean up junk whitespace. Don't call
23 AC_CONFIG_SUBDIRS on variables' values; invoke it on a constant
24 value, at each place we add a directory to targ_subdirs, as
25 recommended by the autoconf manual.
26 * aclocal.m4, configure: Regenerated.
28 2004-10-07 Jim Blandy <jimb@redhat.com>
30 * lib/gdbserv-state.c (do_get_registers_p_packet): Don't produce a
31 ';' trailing the register value unless there are more register
32 values to come. This makes the multi-register packet
33 upward-compatible with the single-register request / reply
36 * samples/async.c: #define _GNU_SOURCE before #including any
37 files, to get prototypes for GNU-specific functions like
40 2004-09-24 Jim Blandy <jimb@redhat.com>
42 * lib/gdbserv-output.c, samples/demo-target.c, samples/main.c,
43 samples/poll.c: #include <string.h>.
45 2004-09-14 Jim Blandy <jimb@theseus.home>
49 2004-07-23 Michael Snyder <msnyder@redhat.com>
51 * MAINTAINERS: Remove Andrew Cagney, at his request.
53 2004-07-09 Michael Snyder <msnyder@redhat.com>
55 * samples/demo-target.c (demo_set_thread_mem): Allocate new
56 simulated memory in hunks, rather than one byte at a time.
57 If target_mem.base moves down, copy contents up.
59 * samples/demo-target.c (demo_target): Call malloc only once,
60 so that gdb can detach and re-attach repeatedly.
62 * lib/gdbserv-target.c (gdbserv_fromtarget_terminate): Rename
63 parameter from exitval to sigval (it's a signal number).
64 * lib/gdbserv-target.c (gdbserv_totarget): Comment spelling fix.
65 * lib/gdbserv-state.c (gdbserv_fromclient_break): Add break
68 2003-05-20 Kevin Buettner <kevinb@redhat.com>
70 * lib/gdbserv-utils.c (gdbserv_le_bytes_from_reg): Fix typo that
71 caused incorrect number of bytes to be copied.
73 2003-01-16 Kevin Buettner <kevinb@redhat.com>
75 * lib/gdbserv-state.c (do_status_packet, gdbserv_data_packet): Fix
76 memset() calls - the arguments were in the wrong order.
77 (gdbserv_data_packet): Check return value from get_reg() call.
79 2002-12-02 Kevin Buettner <kevinb@redhat.com>
81 * include/gdbserv-utils.h, lib/gdbserv-utils.c
82 (gdbserv_be_bytes_to_reg, gdbserv_le_bytes_to_reg)
83 (gdbserv_be_bytes_from_reg, gdbserv_le_bytes_from_reg)
84 (gdbserv_host_bytes_to_reg, gdbserv_host_bytes_from_reg):
87 2002-11-04 Kevin Buettner <kevinb@redhat.com>
89 * Makefile.in, aclocal.m4, configure, lib/Makefile.in, qe/Makefile.in,
90 samples/Makefile.in, unix/configure: Regenerate configury using
91 aclocal 1.6.3, automake 1.6.3, and autoconf 2.53.
93 2002-08-22 Kevin Buettner <kevinb@redhat.com>
95 * lib/Makefile.am (INCLUDES): Remove references to bfd.
96 (THESOURCES): Remove bfd-loader.c from list.
97 * lib/Makefile.in: Regenerate.
98 * samples/Makefile.am (sample_DEPLIBS): Remove references to
100 * samples/Makefile.in: Regenerate.
102 2002-08-21 Kevin Buettner <kevinb@redhat.com>
104 * HOWTO, MAINTAINERS, NEWS, README, REMOTE-HACK-RULES,
105 configure.in, lib/Makefile.am, lib/gdbserv-target.c,
106 samples/Makefile.am, samples/async.c, samples/demo-target.c,
107 samples/main.c, samples/poll.c: Change ``libremote'' references
108 into ``RDA'' references.
109 * configure, lib/Makefile.in, samples/Makefile.in: Regenerate.
111 2002-08-15 Kevin Buettner <kevinb@redhat.com>
113 * include/gdblog.h, include/gdbloop.h, include/gdbsched.h,
114 include/gdbserv-client.h, include/gdbserv-input.h,
115 include/gdbserv-log.h, include/gdbserv-output.h,
116 include/gdbserv-target.h, include/gdbserv-utils.h,
117 include/gdbserv.h, include/gdbsocket.h, include/stdio-log.h,
118 lib/gdblog.c, lib/gdbloop.c, lib/gdbsched.c,
119 lib/gdbserv-input.c, lib/gdbserv-log.c, lib/gdbserv-output.c,
120 lib/gdbserv-state.c, lib/gdbserv-state.h,
121 lib/gdbserv-target.c, lib/gdbserv-utils.c, lib/gdbsocket.c,
122 lib/stdio-log.c, qe/README, qe/inc-backwards.c,
123 qe/inc-forward.c, qe/inc-gdblog.c, qe/inc-gdbloop.c,
124 qe/inc-gdbsched.c, qe/inc-gdbserv-client.c,
125 qe/inc-gdbserv-input.c, qe/inc-gdbserv-log.c,
126 qe/inc-gdbserv-output.c, qe/inc-gdbserv-target.c,
127 qe/inc-gdbserv-utils.c, qe/inc-gdbserv.c, qe/inc-gdbsocket.c,
128 qe/inc-stdio-log.c, samples/async.c, samples/demo-target.c,
129 samples/demo-target.h, samples/main.c, samples/poll.c,
130 samples/thread.c: Update copyright notices.
132 2002-08-14 Kevin Buettner <kevinb@redhat.com>
134 * include/bfd-loader.h: Delete.
135 * lib/bfd-loader.c: Delete.
136 * samples/main.c (main): Eliminate code for loading files.
137 (usage): Adjust usage message to account for the fact that we can
138 no longer load files.
140 2002-01-02 Ben Elliston <bje@redhat.com>
142 * MAINTAINERS: Update mail addresses.
144 2001-10-13 Kevin Buettner <kevinb@redhat.com>
146 * include/gdbserv-utils.h (gdbserv_be_bytes_to_reg)
147 (gdbserv_le_bytes_to_reg, gdbserv_be_bytes_from_reg)
148 (gdbserv_le_bytes_from_reg, gdbserv_native_bytes_to_reg)
149 (gdbserv_native_bytes_from_reg): New functions.
150 * lib/gdbserv-utils.c (config.h): Include.
152 (reverse_copy_bytes, gdbserv_be_bytes_to_reg)
153 (gdbserv_le_bytes_to_reg, gdbserv_be_bytes_from_reg)
154 (gdbserv_le_bytes_from_reg, gdbserv_host_bytes_to_reg)
155 (gdbserv_host_bytes_from_reg): New functions.
157 2001-09-28 Andrew Haley <aph@cambridge.redhat.com>
159 * samples/main.c (main): Work around SIGCHLD problem.
161 2001-09-27 David Woodhouse <dwmw2@redhat.com>
163 * lib/gdbserver-target.c (gdbserv-totarget): Zero sigval to indicate
164 success if target->process_signal succeeds, instead of doing so
167 2001-08-20 Jonathan Larmour <jlarmour@redhat.com>
169 * lib/gdbsocket.c (process_read): Treat a read reporting shutdown
170 or connection reset as EOF.
172 2001-08-02 Michael Keezer <mkeezer@redhat.com>
174 * unix/configure.in: Add am33_2.0 & mn10300.
175 * unix/config.in: Add AM33_LINUX_TARGET & AM33_2_0_LINUX_TARGET.
176 * unix/linux-target.c: am33_2.0 & mn10300 support.
178 2001-07-26 Michael Snyder <msnyder@redhat.com>
180 * lib/gdbserv-utils.c (gdbserv_raw_to_hex): Increment pointer.
182 2001-06-25 Michael Snyder <msnyder@redhat.com>
184 * include/gdbserv-target.h: Fill in the remaining GDB signal numbers.
186 2001-06-12 Corinna Vinschen <vinschen@redhat.com>
188 * configure.in: Add linux as possible host for xscale subdir.
189 * configure: Regenerated.
191 2001-04-26 Andrew Cagney <ac131313@redhat.com>
193 * lib/gdbsocket.c: Include <ctype.h>.
194 (dump_buf): New function. Handle unprintable characters.
198 * lib/bfd-loader.c (struct lng): Add exit_addr and loaded_p.
199 (fromtarget): Check for unexpected stops.
200 (bfd_loader_exit): Report the exit status and stop address.
202 2001-04-23 Andrew Cagney <ac131313@redhat.com>
204 * lib/gdbserv-target.c: Include <assert.h>.
205 (gdbserv_totarget): Abort when the target fails to handle either
206 START_ADDR or SIGVAL.
208 2001-04-23 Andrew Cagney <ac131313@redhat.com>
210 * include/gdblog.h (gdblog_xlong, gdblog_xlong_ftype): Declare.
211 (gdblog_new): Add log_xlong parameter.
212 * lib/gdblog.c (struct gdblog): Add log_xlong.
213 (gdblog_xlong): New function.
214 (gdblog_new): Initialize log_xlong.
215 * lib/stdio-log.c (do_stdio_log_xlong): New function.
216 (stdio_log): Add do_stdio_log_xlong.
218 * lib/bfd-loader.c (load_n_go): Use gdblog_xlong to print
221 2001-04-19 Andrew Cagney <ac131313@redhat.com>
223 * samples/async.c: Include <string.h> for strsignal.
225 2001-04-17 Alexandre Oliva <aoliva@redhat.com>
227 * acinclude.m4: Get macros from ../libtool.m4 and ../gettext.m4.
228 * configure.in: Call CY_WITH_NLS.
229 * samples/Makefile.am (sample_DEPLIBS): New. Copied from
230 sample_LDADD, except for libintl.a.
231 (sample_LDADD): Set as sample_DEPLIBS plus INTLLIBS.
232 (sample_DEPENDENCIES): New. Same as sample_DEPLIBS plus INTLDEPS.
233 * aclocal.m4, configure, samples/Makefile.in: Rebuilt.
235 2001-04-16 Andrew Cagney <ac131313@redhat.com>
237 * lib/gdbsocket.c (process_accept): Only SIGIO when
240 2001-04-15 Andrew Cagney <ac131313@redhat.com>
242 * include/bfd-loader.h (bfd_loader_exit): Replace bfd_shutdown.
243 * lib/bfd-loader.c (lng): Add ``exit_val''.
244 (fromtarget): Save the exit value.
245 (bfd_loader_exit): Call exit with ``exit_val''.
246 * samples/main.c (main): Replace bfd_shutdown with
249 2001-04-15 Andrew Cagney <ac131313@redhat.com>
251 * include/gdbserv-target.h (struct gdbserv_target): Add ``to''.
252 (gdbserv_totarget): Declare.
253 (struct gdbserv_target): Make process_set_pc's ``val'' parameter
255 * lib/gdbserv-target.c: Include "gdbserv-utils.h" and "gdbserv.h".
256 (gdbserv_totarget): New function.
258 * lib/gdbserv-state.c (gdbserv_data_packet): Rewrite ``c'', ``C'',
259 ``s'', ``S'' and ``i'' packet code. Use gdbserv_totarget. Never
260 transition into state GDBSERV_STATE_STEPPING.
261 * lib/gdbserv-state.h (enum gdbserv_state): Delete
262 GDBSERV_STATE_STEPPING.
263 * lib/gdbserv-state.c (state2str, fromtarget): Update.
264 (gdbserv_fromclient_break): Ditto..
266 * lib/bfd-loader.c (load_n_go): Compute the start address. Pass
267 it to gdbserv_totarget.
268 * samples/demo-target.c (demo_process_set_pc): New function.
269 (demo_target): Initialize process_set_pc.
271 2001-04-15 Andrew Cagney <ac131313@redhat.com>
273 * include/gdbserv-target.h: Add ``stop_addr'' parameter. Document.
274 (struct gdbserv_target): Update member ``from''.
275 * lib/gdbserv-target.c (gdbserv_fromtarget_reset)
276 (gdbserv_fromtarget_restarted, gdbserv_fromtarget_terminate)
277 (gdbserv_fromtarget_exit, gdbserv_fromtarget_thread_break)
278 (gdbserv_fromtarget_break, gdbserv_fromtarget): Update.
279 * lib/gdbserv-state.c (fromtarget): Update.
280 * lib/bfd-loader.c (fromtarget_stopped): Delete.
281 (fromtarget): Update.
282 * samples/demo-target.c (do_fromtarget_ready): Update.
284 2001-04-13 Andrew Cagney <ac131313@redhat.com>
286 * samples/demo-target.c: Replace demo_set_memo with
287 demo_set_thread_mem. Replace demo_continue_program with
288 demo_continue_thread.
290 * lib/Makefile.am (THESOURCES): Add bfd-loader.c
291 (INCLUDES): Add top level include and bfd directories.
292 * lib/Makefile.in: Regenerate.
293 * include/bfd-loader.h: New file.
294 * lib/bfd-loader.c: New file.
296 * samples/main.c: Include "bfd-loader.h", "gdbsched.h" and
298 (main): Add ``-v'' verbose option.
299 (main): If the parameter isn't numeric or ``-'' assume that it is
300 a file to load using bfd_load. Schedule a program quit event.
302 (fake_exit): New function.
303 * samples/Makefile.am (sample_LDADD): Add libbfd.la, libintl.a and
305 * samples/Makefile.in: Regenerate.
307 2001-04-13 Andrew Cagney <ac131313@redhat.com>
309 * samples/main.c: Include <unistd.h>, <signal.h>, <ctype.h>,
310 "gdbsched.h", "gdbserv-target.h" and <time.h>.
311 (main): Add -d option. Interpret ``-'' parameter as stdio.
312 Validate port number. Add usage/help message. Use variable
313 shutdown to determine if the startup worked.
314 (usage): New function.
315 (do_close): New function.
316 * samples/stdio.c: Delete.
317 * samples/Makefile.am (noinst_PROGRAMS): Delete stdio.
318 (stdio_SOURCES, stdio_LDADD): Delete.
319 * samples/Makefile.in: Regenerate.
321 2001-04-13 Andrew Cagney <ac131313@redhat.com>
323 * samples/demo-target.c (demo_target): New function.
324 (do_fromtarget_reset): New function.
325 (demo_attach): Use demo_target and do_fromtarget_reset. Take
326 server out of reset state.
327 * samples/thread.c (thread_attach): Call demo_target.
329 2001-04-12 Andrew Cagney <ac131313@redhat.com>
331 * include/gdbserv.h (gdbserv_state): Delete declaration
332 (GDBSERV_STATE_STUMBLING): Delete.
333 (enum gdbserv_state): Move from here.
334 * lib/gdbserv-state.h (enum gdbserv_state): Back to here.
335 * lib/gdbserv-state.c (state2str): Update.
336 * lib/gdbserv-target.c: Don't include "gdbserv.h".
338 2001-04-12 Andrew Cagney <ac131313@redhat.com>
340 * lib/gdbserv-state.c (gdbserv_fromclient_attach): Create a cycle
341 of GDBSERVs. Initialize ``from'' method in target vector.
342 (gdbserv_fromclient_detach): Clear ``from'' method.
343 (do_exit_packet): New function. Output an exit/terminate packet.
344 (fromtarget): New function.
345 (gdbserv_fromtarget_reset): Delete.
346 (gdbserv_fromtarget_break): Delete.
347 (gdbserv_fromtarget_thread_break): Delete.
348 (gdbserv_fromtarget_exit): Delete.
349 (gdbserv_fromtarget_terminate): Delete.
351 * include/gdbserv-target.h (gdbserv_fromtarget): Declare.
352 (enum gdbserv_fromtarget_event): Define.
353 (struct gdbserv_target): Add ``from''.
354 (GDBSERV_SIG): Move definitions to start of file.
356 * lib/gdbserv-state.h (struct gdbserv): Add ``from'' and ``to'' as
357 links up and down the target stack.
358 * lib/gdbserv-target.c: New file.
359 * lib/Makefile.am (THESOURCES): Add gdbserv-target.c
360 * lib/Makefile.in: Regenerate.
362 2001-04-12 Andrew Cagney <ac131313@redhat.com>
364 * lib/gdbsocket.c (gdbsocket_had_sigio_p): Delete.
365 (sigio_socket): Delete.
366 (gdbsocket_sigio_enable, gdbsocket_sigio_disable): Delete.
367 (gdbsocket_async, gdbsocket_async_p): New function and variable.
368 (async_fd): Only enable O_ASYNC when async selected.
369 (gdbsocket_startup): Don't call gdbsocket_sigio_disable.
371 * include/gdbsocket.h (gdbsocket_had_sigio_p): Delete.
372 (gdbsocket_sigio_enable, gdbsocket_sigio_enable): Delete.
373 (gdbsocket_async): New function.
375 * samples/async.c (set_poll_p): Replace handle_sigalrm.
376 (poll_p): Volatile global.
377 (main): Register signal handlers for both SIGIO and SIGALRM. Check
378 poll_p. Call gdbsocket_sigio to enable O_ASYNC on all file
381 * include/gdbloop.h (gdbloop_p): Delete.
382 (gdbloop_sigio_enable, gdbloop_sigio_disable): Delete.
383 * lib/gdbloop.c: Update.
385 2001-04-12 Andrew Cagney <ac131313@redhat.com>
387 * include/gdbsocket.h (gdbsocket_poll): Delete declaration.
388 * lib/gdbsocket.c (struct fds): Delete.
389 (gdbsocket_poll, fds_isset, fds_set): Delete functions.
390 * lib/gdbloop.c (poll_gdbsocket): Rename gdbloop_poll.
391 (gdbloop_poll): New function.
392 (gdbloop): Call poll_gdbsocket.
394 * samples/main.c (main): Call gdbloop_poll. Don't include <time.h>
395 * samples/demo-target.h, samples/demo-target.c: Update comments.
396 * samples/thread.c: Update comments.
398 2001-04-12 Andrew Cagney <ac131313@redhat.com>
400 * lib/gdbloop.c (gdbloop): Reverse file / queue processing order -
401 do the task queue second.
403 2001-04-11 Andrew Cagney <ac131313@redhat.com>
405 * samples/async.c: Include <signal.h>, "gdblog.h", "gdbsched.h"
408 * lib/gdbloop.c (gdbloop): Delete alarm code. Moved to
410 (handle_sigalarm): Delete. Moved to samples/async.c.
411 (gdbloop_sigio_enabled_p): Delete.
412 (gdbloop_sigio_enable, gdbloop_sigio_disable): Update.
414 * samples/async.c (handle_sigalarm): New function.
415 (main): Use alarm to handle timer events.
417 2001-04-11 Andrew Cagney <ac131313@redhat.com>
419 * lib/gdbserv-state.c (reset_state): New function. Fully
420 re-initialize gdbserv.
421 (gdbserv_fromclient_attach): Call reset_state.
422 (gdbserv_data_packet): Ditto for "r" and "R" packets.
424 * lib/gdbserv-state.h (struct gdbserv): Add ``event_thread'' and
427 * lib/gdbserv-state.c (gdbserv_fromtarget_thread_break): Update
428 ``event_thread'' and ``event_sigval''. Clear "continue_thread".
429 (do_status_packet): New function. Move "T" packet code to here.
430 (gdbserv_fromtarget_thread_break): Call do_status_packet.
431 (gdbserv_data_packet): Use do_status_packet to respond to "?".
432 (do_current_thread_query): Always return the general thread.
434 2001-04-11 Andrew Cagney <ac131313@redhat.com>
436 * lib/gdbloop.c (gdbloop_sigio_enabled_p): New global.
437 (handle_sigalarm): New function.
438 (gdbloop_sigio_enable): Register handle_sigalarm for SIGALRM.
439 (gdbloop_sigio_disable): Deregister SIGALRM.
440 (gdbloop): When gdbloop_sigio_enabled_p, schedule an alarm to
441 triger the next round of event processing.
443 2001-04-11 Andrew Cagney <ac131313@redhat.com>
445 * lib/gdbsched.c: Include "gdblog.h" and "gdbsocket.h".
446 (gdbsched_schedule, gdbsched_deschedule)
447 (gdbsched_dispatch): Add tracing.
449 * lib/gdbsched.c (gdbsched_schedule): Pre- rather than post-
450 increment sched_db. Stop the first sched tag being NULL.
452 2001-04-10 Andrew Cagney <ac131313@redhat.com>
454 * samples/demo-target.h (demo_break): Delete declaration.
455 (struct gdbserv_target): Delete declaration.
456 (demo_ticks_before_break_p): Delete declaration.
457 * samples/demo-target.c: Include <time.h>, <sys/time.h> and
459 (demo_ticks_before_break_p): Delete global variable.
460 (dispatch_break, sched_break): New functions.
461 (demo_break_program): Call sched_break.
462 (demo_restart_program): Ditto.
463 (demo_singlestep_program): Ditto.
464 (demo_cyclestep_program): Ditto.
465 (demo_continue_program): Ditto.
466 (demo_break): Delete function.
468 * samples/poll.c: Include <time.h>, <sys/time.h> and
469 "gdbsched.h". Delete redundant include of <sys/types.h>.
470 (main): Replace demo_ticks_before_break_p with call to
472 * samples/fdset.c (main): Ditto.
474 * samples/main.c: Include <time.h>, <sys/time.h> and "gdbloop.h".
475 (main): Replace gdbsocket_poll and demo_ticks_before_break_p with
477 * samples/stdio.c: Ditto.
479 * samples/thread.c: New file.
480 * samples/thread-target.c: Delete.
481 * samples/Makefile.am (thread_SOURCES): Update.
482 * samples/Makefile.in: Regnerate.
484 2001-04-11 Andrew Cagney <ac131313@redhat.com>
486 * samples/fdset.c: Delete. See lib/gdbloop.c.
487 * samples/Makefile.am (noinst_PROGRAMS): Delete fdset.
488 (fdset_SOURCES): Delete.
489 (fdset_LDADD): Ditto.
490 * samples/Makefile.in: Regenerate.
492 2001-04-11 Andrew Cagney <ac131313@redhat.com>
494 * include/gdbloop.h (gdbloop_p): Declare.
495 (gdbloop_sigio_enable, gdbloop_sigio_disable): Declare.
496 (gdbloop): Add TIMEOUT parameter.
497 * lib/gdbloop.c: Don't include <sys/types.h>. Include <assert.h>,
498 <signal.h> and <fcntl.h>.
499 (sigio_fd): New function.
500 (gdbloop_sigio_enable, gdbloop_sigio_disable): New functions.
501 (gdbloop_poll): Cleanup. Check gdbloop_p. Make static.
502 (gdbloop): Update to handle timeout as a parameter.
504 * include/gdbsocket.h (gdbsocket_poll): Deprecate.
505 (gdbsocket_sigio_disable): Deprecate.
506 (gdbsocket_sigio_enable): Deprecate.
507 (gdbsocket_had_sigio_p): Deprecate.
509 * samples/async.c: New file.
510 * samples/Makefile.am (noinst_PROGRAMS): Add async demo.
511 (async_LDADD, sample_SOURCES): Define.
512 * samples/Makefile.in: Regenerate.
513 * samples/demo-target.c (demo_break_program): Print a trace
516 2001-04-10 Andrew Cagney <ac131313@redhat.com>
518 * lib/gdbsocket.c (async_fd): Ensure that the SIGIO is delivered
520 (process_accept): Use kill SIGIO, instead of setting
521 gdbsocket_had_sigio_p, to force the re-read.
523 2001-04-10 Andrew Cagney <ac131313@redhat.com>
525 * qe/inc-gdbloop.c, qe/inc-gdbsched.c: New files.
526 * qe/Makefile.am (qe_SOURCES): Add inc-gdbloop.c and
528 * qe/Makefile.in: Regenerate.
530 2001-04-10 Andrew Cagney <ac131313@redhat.com>
532 * include/gdbsched.h, lib/gdbsched.c: New files. Simple
534 * lib/gdbloop.c, include/gdbloop.h: New files. Simple
536 * lib/Makefile.am (THESOURCES): Add gdbloop.c and gdbsched.c.
537 * lib/Makefile.in: Regenerate.
539 2001-04-10 Andrew Cagney <ac131313@redhat.com>
541 * include/gdbserv-utils.h: Add fake close of extern "C" to pacify
543 * include/gdbserv-target.h: Ditto.
544 * include/gdbserv-output.h: Ditto.
545 * include/gdbserv-input.h: Ditto.
546 * include/gdbserv-client.h: Ditto.
547 * include/gdbserv.h: Ditto.
549 2001-04-09 Michael Snyder <msnyder@redhat.com>
551 * lib/gdbserv-state.c (gdbserv_data_packet): Give preference to
552 threaded cyclestep method. Likewise threaded get_mem / set_mem.
554 2001-04-05 Andrew Cagney <ac131313@redhat.com>
556 * lib/gdbserv-state.c (gdbserv_fromtarget_thread_break): Revert
557 change ``2001-04-05 Andrew Cagney <ac131313@redhat.com>'' that
558 cleared the general_thread.
560 * lib/gdbserv-state.c (gdbserv_data_packet)
561 (do_select_thread_packet): Revert ``2001-04-05 Michael Snyder
562 <msnyder@redhat.com>'' that cleared the general_thread.
564 2001-04-05 Andrew Cagney <ac131313@redhat.com>
566 * lib/gdbserv-state.c (gdbserv_data_packet): Move code clearing
567 the general thread to gdbserv_fromtarget_thread_break.
569 2001-04-05 Michael Snyder <msnyder@redhat.com>
571 * gdbserv-state.c (gdbserv_data_packet): Discard any saved general
572 thread on step or continue. GDB doesn't always cancel it, but the
573 general thread should not persist between stop events.
574 (do_select_thread_packet): Both the continue
575 thread and the general thread may be set to null.
576 NOTE: All methods that may receive the general thread must be
577 prepared to receive NULL (defaulting to the current thread).
579 2001-04-03 David Smith <dsmith@redhat.com>
581 * lib/gdbserv-state.c (do_current_thread_query): Try to figure out
582 the correct thread to use when returning the thread id.
584 2001-04-02 Michael Snyder <msnyder@redhat.com>
586 * lib/gdbserv-state.c (do_get_registers_p_packet): Check for
587 get_thread_reg rather than get_reg, since that is what will
588 be used. While we're at it, check for reg_format and output_reg.
589 (gdbserv_data_packet): Give first preference to thread-aware
590 register methods (if defined) for g/G/P packets. That way, to
591 add thread awareness, a backend need only define the new methods
592 (without nullifying the old ones). This makes it possible to
593 fall back on the old ones if necessary. FIXME should it be an
594 error if there is no target register method? Also give first
595 preference to thread-aware step and continue methods.
597 2001-03-23 David Smith <dsmith@redhat.com>
599 * lib/gdbserv-state.c (gdbserv_fromtarget_thread_break): If a NULL
600 thread is passed in, try to figure out the correct thread to use.
601 In addition, don't change the value of the "continue_thread".
603 * samples/thread-target.c (demo_break): Calls
604 gdbserv_fromtarget_thread_break() with a NULL thread.
606 2001-03-22 Andrew Cagney <ac131313@redhat.com>
608 * lib/gdbsocket.c (struct session): Rename ``struct gdbsocket''.
609 (session_db): Rename gdb_sockets.
610 (gdbsocket_shutdown): Update.
611 (gdbsocket_reopen): Update.
612 (gdbsocket_fd_set): Update.
613 (gdbsocket_fd_isset): Update.
615 * include/gdbsocket.h (gdbsocket_fd_isset, gdbsocket_poll): Delete
616 paramters to_target_attach and target_attach_data.
617 (gdbsocket_startup): Add parameters to_target_attach and
620 * lib/gdbsockets.c (gdbscket_fd): Delete static variable.
621 (struct server): Declare.
622 (server_db): Declare static variable.
623 (gdbsocket_startup): Add to_target_attach and target_attach_data
624 parameters. Enter the server in the server_db.
625 (gdbsocket_shutdown): Handle servers in server_db instead of
627 (gdbsocket_fd_set): Ditto.
628 (gdbsocket_fd_isset): Ditto.
629 (process_accept): Replace to_target_attach and target_attach_data
630 with single ``struct server'' parameter.
631 (gdbsocket_fd_isset): Update call.
633 * samples/fdset.c (main): Update calls to gdbsocket_startup and
635 * samples/poll.c (main): Ditto.
636 * samples/main.c (main): Ditto for gdbsocket_startup and
638 * samples/stdio.c (main): Ditto for gdbsocket_poll.
640 Thu Mar 22 16:53:09 2001 David Taylor <taylor@redhat.com>
642 * lib/gdbserv-state.c (gdbserv_fromtarget_thread_break): When
643 output'ing a register, output the full length, not zero bytes.
645 2001-03-16 Elena Zannoni <ezannoni@redhat.com>
647 * include/gdbserv-target.h (struct gdbserv_target): Add
648 parameter to detach function pointer.
649 * lib/gdbserv-state.c (gdbserv_fromclient_detach): Pass
650 gdbserv->target to detach target call.
651 * samples/demo-target.c (demo_detach): Add parameter.
652 * samples/thread-target.c (demo_detach): Add parameter.
653 * win32/win32-target.c (win32-detach): Add new parameter.
655 2001-03-15 Andrew Cagney <ac131313@redhat.com>
657 * Makefile.am, configure.in: Add qe directory.
658 * Makefile.in, configure: Regenerate.
660 * qe/README: New file.
661 * qe/Makefile.am: New file.
662 * qe/Makefile.in: Regenerate.
663 * qe/inc-backwards.c: New file.
664 * qe/inc-forward.c: New file.
665 * qe/inc-gdblog.c: New file.
666 * qe/inc-gdbserv-client.c: New file.
667 * qe/inc-gdbserv-input.c: New file.
668 * qe/inc-gdbserv-log.c: New file.
669 * qe/inc-gdbserv-output.c: New file.
670 * qe/inc-gdbserv-target.c: New file.
671 * qe/inc-gdbserv-utils.c: New file.
672 * qe/inc-gdbserv.c: New file.
673 * qe/inc-gdbsocket.c: New file.
674 * qe/inc-stdio-log.c: New file.
677 2001-03-15 Andrew Cagney <ac131313@redhat.com>
679 * lib/gdbserv-input.c (gdbserv_input_trace): Delete variable.
680 * lib/gdbsocket.c (gdbsocket_trace): Ditto.
681 * lib/gdbserv-state.c (gdbserv_state_trace): Ditto.
682 * lib/gdbserv-output.c (gdbserv_output_trace): Ditto.
683 * include/gdbsocket.h (gdbsocket_trace): Delete declaration.
684 * include/gdbserv.h (gdbserv_state_trace, gdbserv_input_trace)
685 (gdbserv_output_trace): Ditto.
687 2001-03-14 Andrew Cagney <ac131313@redhat.com>
689 * Move native/ directory to unix/.
690 * configure.in (*linux*): Update.
691 * configure: Regenerate.
692 * aclocal.m4: Regenerate.
694 2001-03-14 Elena Zannoni <ezannoni@redhat.com>
696 * lib/gdbserv-state.h, include/gdbserv-state.h:
697 Revert the previous change. gdbserv-state.h should
700 2001-03-14 Elena Zannoni <ezannoni@redhat.com>
702 * lib/gdbserv-state.h: Move from here.
703 * include/gdbserv-state.h: To here.
705 2001-03-14 Andrew Cagney <ac131313@redhat.com>
707 * lib/gdblog.h: Move from here.
708 * include/gdblog.h: To here.
709 * lib/gdbserv-client.h, include/gdbserv-client.h: Ditto.
710 * lib/gdbserv-input.h, include/gdbserv-input.h: Ditto.
711 * lib/gdbserv-log.h, include/gdbserv-log.h: Ditto.
712 * lib/gdbserv-output.h, include/gdbserv-output.h: Ditto.
713 * lib/gdbserv-target.h, include/gdbserv-target.h: Ditto.
714 * lib/gdbserv-utils.h, include/gdbserv-utils.h: Ditto.
715 * lib/gdbserv.h, include/gdbserv.h: Ditto.
716 * lib/gdbsocket.h, include/gdbsocket.h: Ditto.
717 * lib/stdio-log.h, include/stdio-log.h: Ditto.
719 * lib/Makefile.am (INCLUDES): Update. Headers moved to ../include.
720 * lib/Makefile.in: Regenerate.
721 * samples/Makefile.am (INCLUDES): Ditto.
722 * samples/Makefile.in: Regenerate.
724 2001-03-02 Andrew Cagney <ac131313@redhat.com>
726 * lib/Makefile.am (THESOURCES): Add gdblog.c, stdio-log.c and
728 * lib/Makefile.in: Regenerate.
729 * lib/gdblog.h, lib/gdblog.c: New files.
730 * lib/stdio-log.h, lib/stdio-log.c: New files.
731 * lib/gdbserv-log.h, lib/gdbserv-log.c: New files.
733 * lib/gdbsocket.h (gdbsocket_trace): Document as deprecated.
734 (gdbsocket_log): Declare variable.
735 * lib/gdbsocket.c: Include "gdblog.h". Update to use gdblog
736 interface for tracing.
737 (gdbsocket_log): Define variable.
739 * lib/gdbserv.h (gdbserv_state_trace, gdbserv_input_trace)
740 (gdbserv_output_trace): Document as deprecated.
741 * lib/gdbserv-input.c: Include "gdblog.h" and "gdbserv-log.h".
742 Update to use gdblog interface for tracing.
743 * lib/gdbsocket.c: Ditto.
744 * lib/gdbserv-output.c: Ditto.
745 * lib/gdbserv-state.c: Ditto.
746 (log_state): New function.
748 * samples/fdset.c: Include "gdblog.h", "stdio-log.h" and
750 (main): Update to use gdbsocket_log, gdbserv_warning_log and
752 * samples/main.c: Ditto.
753 * samples/poll.c: Ditto.
754 * samples/stdio.c: Ditto.
755 * samples/demo-target.c (demo_attach): Delete code initializing
757 * samples/thread-target.c (demo_attach): Ditto.
759 2001-03-02 Andrew Cagney <ac131313@redhat.com>
761 * samples/thread-target.c (thread_lookup_by_id): Fix printf fmt
763 (thread_info): Print thread ID, not an internal thread address.
765 2001-03-02 Andrew Cagney <ac131313@redhat.com>
767 * configure.in: Add support for --enable-build-warnings and
768 (--enable-libremote-build-warnings.
769 * configure: Regenerate.
771 * Makefile.am (WARN_CFLAGS, WERROR_CFLAGS): Define. Initialized
774 * Makefile.in: Regenerate.
775 * samples/Makefile.am, samples/Makefile.in: Ditto.
776 * lib/Makefile.am, lib/Makefile.in: Ditto.
778 Thu Dec 21 02:54:39 2000 Andrew Cagney <cagney@b1.cygnus.com>
780 * samples/thread-target.c: Include <string.h>.
781 (thread_info): Use sprintf and strdup instead of asprintf.
783 Thu Dec 21 02:11:49 2000 Andrew Cagney <cagney@b1.cygnus.com>
785 * lib/gdbserv-utils.h: Declare ``struct gdbserv'' and ``struct
787 * lib/gdbserv-output.h: Ditto.
788 * lib/gdbserv-input.h: Declare ``struct gdbserv''.
790 Wed Dec 20 17:19:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
792 * samples/thread-target.c: New file.
793 * samples/Makefile.am (noinst_PROGRAMS): Add the program thread.
794 (thread_SOURCES, thread_LDADD): Define.
796 Wed Dec 20 15:51:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
798 * lib/gdbserv-output.h, lib/gdbserv-input.h, lib/gdbserv-client.h,
799 lib/gdbserv-state.h, lib/gdbserv.h, lib/gdbsocket.h: Remove
800 #ifndef wrappers. Not needed.
802 Wed Dec 20 16:29:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
804 * lib/gdbserv-state.c (gdbserv_data_packet): Separate check for
805 qRcmd from check that the target supports it.
806 (gdbserv_data_packet): Remove #if 1 from around ``P'' packet code.
807 (gdbserv_data_packet): Check for process_get_reg when handling
809 (gdbserv_data_packet): Check for target support before processing
812 Wed Dec 20 16:12:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
814 * lib/gdbserv-target.h (struct gdbserv_target): Add thread aware
815 memory access methods - get_thread_mem, set_thread_mem.
816 * lib/gdbserv-state.c (gdbserv_data_packet): Rewrite memory
817 read/write code to use thread aware methods when available.
819 Wed Dec 20 15:36:24 2000 Andrew Cagney <cagney@b1.cygnus.com>
821 * lib/gdbserv-target.h: Add thread aware resume methods -
822 continue_thread, cyclestep_thread, singlestep_thread.
823 * lib/gdbserv-state.c (gdbserv_data_packet): Rewrite continue code
824 to use thread mechanism when available.
826 Wed Dec 20 12:09:42 2000 Andrew Cagney <cagney@b1.cygnus.com>
828 * lib/gdbserv-target.h (struct gdbserv_target): Add thread aware
829 register methods - next_gg_reg, next_expedited_reg, reg_format,
830 set_thread_reg, get_thread_reg.
832 * lib/gdbserv-state.c (output_thread_reg): New function. Use
833 thread aware methods to output a register.
834 (do_get_registers_g_packet): Ditto.
835 (do_set_registers_g_packet): Ditto.
836 (do_get_registers_p_packet): Ditto.
837 (do_set_registers_p_packet): Ditto.
838 (gdbserv_data_packet): Use new functions to process ``G'', ``g'',
839 ``p'' and ``P'' packets.
840 (gdbserv_fromtarget_thread_break): Update using thread aware
841 methods when available.
843 Wed Dec 20 11:46:32 2000 Andrew Cagney <cagney@b1.cygnus.com>
845 * lib/gdbserv-target.h (gdbserv_fromtarget_thread_break): Declare.
846 * lib/gdbserv-state.c (gdbserv_fromtarget_break): Call
847 gdbserv_fromtarget_thread_break.
848 (gdbserv_fromtarget_thread_break): New function. Replace
849 gdbserv_fromtarget_break. Return thread ID when known. Fix
850 formatting of expedited registers.
852 Wed Dec 20 10:26:36 2000 Andrew Cagney <cagney@b1.cygnus.com>
854 * lib/gdbserv-state.c: Include <assert.h>.
855 (gdbserv_data_packet): Add support for ``H'', ``T'' packets. Add
856 support for ``ThreadInfo'', ``ThreadExtraInfo'' and ``C'' queries.
857 (do_select_thread_packet): New function, handle ``H'' packet.
858 (do_current_thread_query): New function, handle ``C'' query.
859 (do_thread_info_query): New function.
860 (do_thread_extra_info_query): New function.
861 (do_thread_alive_packet): New function, handle ``T'' packet.
863 2000-12-19 <brolley@redhat.com>
865 * configure.in: Rename gidl to cidl. More detailed messages for
866 subdirs not supported on various hosts/targets.
867 * configure: regenerated.
869 Tue Dec 19 17:51:58 2000 Andrew Cagney <cagney@b1.cygnus.com>
871 * lib/gdbserv-output.c: Include <assert.h>.
872 (gdbserv_output_reg_beb, gdbserv_output_reg_leb): Use assert to
874 (gdbserv_output_reg_beb, gdbserv_output_reg_leb): Handle zero reg.
876 * lib/gdbserv-input.c (gdbserv_input_hex_long): New function.
877 * lib/gdbserv.h (int gdbserv_input_hex_long): Declare.
879 * lib/gdbserv-utils.c (gdbserv_reg_to_ulong,
880 gdbserv_reg_to_ulonglong, gdbserv_ulong_to_reg,
881 gdbserv_ulonglong_to_reg): Change return type to void.
882 (gdbserv_reg_to_ulong, gdbserv_reg_to_ulonglong): Make ``reg''
884 (unpack_ulonglong): New function.
885 (gdbserv_ulong_to_reg, gdbserv_long_to_reg,
886 gdbserv_ulonglong_to_reg, gdbserv_longlong_to_reg): Use.
887 * lib/gdbserv-utils.h (gdbserv_reg_to_ulong,
888 gdbserv_reg_to_ulonglong, gdbserv_ulong_to_reg,
889 gdbserv_ulonglong_to_reg): Update function declarations.
891 2000-12-18 David Smith <dsmith@redhat.com>
893 * lib/gdbserv-client.h, lib/gdbserv-input.h, lib/gdbserv-output.h:
894 Added macros to guard against mutiple inclusion and added C++
895 support (by adding 'extern "C"').
896 * lib/gdbserv-state.h, lib/gdbserv-target.h, lib/gdbserv-utils.h:
898 * lib/gdbserv.h, lib/gdbsocket.h: Ditto.
900 2000-11-28 Michael Snyder <msnyder@cleaver.cygnus.com>
902 * lib/gdbserv-state.c (gdbserv_data_packet): Return error if
903 get_mem method does not return the requested number of bytes.
905 2000-11-21 Corinna Vinschen <vinschen@cygnus.com>
907 * configure.in: Add subdir dependency for win32 target.
909 2000-11-14 Michael Snyder <msnyder@cleaver.cygnus.com>
911 * samples/demo-target.c (demo_get_mem, demo_set_mem):
912 Add a memory cache that can be modified by GDB.
913 (demo_process_get_regs, demo_process_set_regs):
914 Add a register cache that can be modified by GDB.
915 (demo_attach): Hook in demo_process_set_regs.
916 (demo_set_mem): Check for malloc failure in pseudo-memory cache.
918 2000-11-08 Rudy Folden <rfolden@redhat.com>
920 * configure.in (case "$target" in sh-*): Removed erroneous CC case.
921 * native/configure.in (case "$target" in sh-*): Removed erroneous CC case.
923 2000-11-07 Rudy Folden <rfolden@redhat.com>
925 * README: Doc update.
927 2000-11-07 Rudy Folden <rfolden@redhat.com>
929 * configure.in (case "$target" in sh-*): Added case for CC.
930 * native/configure.in (case "$target" in sh-*): Added case for CC.
931 * native/Makefile.am (CC=, CFLAGS=): removed erroneous CC ad CFLAGS entiries.
932 * native/Makefile.in (CC=, CFLAGS=): removed erroneous CC ad CFLAGS entiries.
934 2000-09-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
936 With Andrew Cagney <cagney@b1.cygnus.com>
937 * lib/gdbserv-input.c (add_char_to_packet): Improve handling of
938 missing ACK packets, NACKs and other exceptional conditions.
939 This fixies a bug where libremote would lock up and ignore everything
941 (gdbserv_input_wait_for_ack): Do not print switch to ACK warning
942 when retrying. Rephrase the warning message.
944 2000-09-13 Michael Snyder <msnyder@michael.wirespeed.com>
946 * lib/gdbserv-state.c (gdbserv_fromtarget_terminate): New function.
947 (gdbserv_fromtarget_exit): Rename arg from signum to exitcode.
948 * lib/gdbserv-target.h (gdbserv_fromtarget_terminate): Export.
950 Thu Sep 7 16:53:22 2000 David Taylor <taylor@texas.cygnus.com>
952 * lib/gdbserv-utils.c (gdbserv_ulong_to_reg,
953 gdbserv_ulonglong_to_reg): New functions.
954 * lib/gdbserv-utils.h (gdbserv_ulong_to_reg,
955 gdbserv_ulonglong_to_reg): Declare them.
957 2000-09-06 Michael Snyder <msnyder@cleaver.cygnus.com>
959 * configure.in: Add "native" subdirectory to targ_subdirs.
960 * configure: Regenerate.
961 * configure.in: Remove native/Makefile from output.
962 Native subdirectory now has its own configure and automake.
963 * configure: Regenerate.
965 Thu Jun 8 14:32:21 2000 David Taylor <taylor@texas.cygnus.com>
967 * lib/gdbsocket.c (process_read): change "else if" to "if",
968 otherwise, when gdbsocket_trace is set, packets never get
971 Tue May 23 17:33:02 2000 Andrew Cagney <cagney@b1.cygnus.com>
973 * samples/poll.c (main): Pass POLLFDS and not POLL to
976 * samples/demo-target.c (sole_target): Delete global.
977 * samples/demo-target.c (demo_attach): Create and initialize
978 target vector at runtime.
980 Tue May 23 16:44:26 2000 Andrew Cagney <cagney@b1.cygnus.com>
982 * lib/gdbsocket.c, lib/gdbserv-client.h, lib/gdbserv-target.h:
985 Mon May 22 20:29:05 2000 Andrew Cagney <cagney@b1.cygnus.com>
987 * samples/demo-target.c (sole_target): Fix initialization.
989 Thu May 18 10:55:33 2000 Andrew Cagney <cagney@b1.cygnus.com>
991 * lib/gdbsocket.c: Do not include "gdbserv.h". "gdbserv-client.h"
992 provides all required server declarations.
994 2000-05-17 Fernando Nasser <fnasser@cygnus.com>
996 * lib/gdbserv-output.c (gdbserv_output_string_as_bytes): New function.
997 Send a null terminated string as hex encoded bytes (useful for
998 "O" packets and "qRcmd" answers).
999 * lib/gdbserv.h: Add prototype of the above.
1000 * lib/gdbserv-state.c (gdbserv_data_packet): Fix and reactivate code
1001 that handles "p" packets.
1002 * lib/gdbserv-target.h: Add prototype for process_get_reg callback
1003 (activated by a "p" packet).
1005 Wed May 3 18:46:02 2000 Andrew Cagney <cagney@b1.cygnus.com>
1007 * lib/gdbsocket.h (enum gdbsocket_fd_event,
1008 gdbsocket_fd_set_ftype, gdbsocket_fd_isset_ftype): Declare.
1009 (gdbsocket_fd_set, gdbsocket_fd_isset): Pass fd_set/fd_isset and
1010 context instead of readfs.
1011 * lib/gdbsocket.c (gdbsocket_fd_set): Replace ``fd_set'' with with
1012 function parameter for accumulating file descriptors.
1013 (gdbsocket_fd_isset): Ditto with a function parameter that
1014 indicates that a file descriptor is ready.
1015 (struct fds): Define.
1016 (fds_set, fds_isset): New functions.
1017 (gdbsocket_poll): Update. Add support for both read and write
1020 * samples/fdset.c (struct fdset, set, isset): Declare.
1021 (main): Update to use new gdbsocket_fd_set / gdbsocket_fd_isset
1024 * samples/Makefile.am: Add program poll.
1025 * samples/Makefile.in: Re-generate.
1026 * samples/poll.c: New file. Demonstrate gdbsocket's poll interface.
1028 Mon Apr 24 19:33:35 2000 Andrew Cagney <cagney@b1.cygnus.com>
1030 * samples/demo-target.c (demo_attach, demo_continue_program,
1031 demo_detach): Write traces to STDERR instead of STDOUT.
1033 * samples/stdio.c: New file.
1034 * samples/Makefile.am (noinst_PROGRAMS): Add stdio.
1035 * samples/Makefile.in: Re-generate.
1037 * lib/gdbsocket.h (gdbsocket_reopen): Add declaration.
1038 * lib/gdbsocket.c (process_accept): Use gdbsocket_reopen.
1039 (gdbsockt_reopen): New function.
1041 Mon Apr 24 19:09:29 2000 Andrew Cagney <cagney@b1.cygnus.com>
1043 * lib/gdbsocket.c (gdbsocket_fd): Initialize to -1.
1044 (gdbsocket_shutdown, gdbsocket_fd_set, gdbsocket_fd_isset): Do not
1045 assume that there is an open port.
1046 (gdbsocket_startup): Mark gdbsocket_fd as closed.
1048 Mon Apr 24 18:43:29 2000 Andrew Cagney <cagney@b1.cygnus.com>
1050 * lib/gdbsocket.h, lib/gdbsocket.c: Update comments.
1051 (gdbsocket_attach_ftype): Replace typedef gdbsocket_attach.
1052 * lib/gdbsocket.c (process_accept, gdbsocket_fd_isset,
1053 gdbsocket_poll): Update.
1054 (process_read): Document interface flaw.
1056 Mon Apr 24 18:12:14 2000 Andrew Cagney <cagney@b1.cygnus.com>
1058 * lib/gdbsocket.c (struct gdbsocket): Replace ``fd'' with
1059 ``readfd'' and WRITEFD. Add ``close'' method.
1060 (gdbsocket_shutdown): Update. Use ``close'' method.
1061 (process_read): Ditto. Replace ``fd'' with ``readfd''.
1062 (raw_write): Ditto. Replace ``fd'' with ``writefd''.
1063 (session_close): New function. Close ``readfd''.
1064 (process_accept): Update. Initialize ``close'' method with
1066 (gdbsocket_fd_isset, gdbsocket_fd_set): Replace ``fd'' with
1069 Mon Apr 24 17:14:21 2000 Andrew Cagney <cagney@b1.cygnus.com>
1071 * samples/demo-target.c (sole_target): Fix initialization of
1074 2000-04-17 Fernando Nasser <fnasser@cygnus.com>
1076 * HOWTO: New version. More complete, includes architecture.
1077 Callback function prototypes are removed and related comments
1078 moved to lib/gdbserv-target.h.
1080 Mon Apr 17 17:11:30 2000 Fernando Nasser <fnasser@cygnus.com>
1082 * lib/gdbserv-state.c (gdbserv_data_packet): Add processing of a
1085 Mon Apr 17 17:11:30 2000 Fernando Nasser <fnasser@cygnus.com>
1087 * lib/gdbserv-target.h (struct gdbserv-target): Add comments
1088 relating the callback routines to the corresponding remote
1091 2000-04-12 Frank Ch. Eigler <fche@redhat.com>
1093 * HOWTO: Remove mention of gdbserv_fromclient calls. Fix some
1094 typos. Minor rewording.
1096 2000-04-11 Fernando Nasser <fnasser@cygnus.com>
1098 * HOWTO: New file. A brief guide to write code that use libremote.
1100 Wed Apr 12 22:35:34 2000 Andrew Cagney <cagney@b1.cygnus.com>
1102 * lib/gdbserv.h (gdbserv_target_attach, gdbserv_fromclient_attach,
1103 gdbserv_fromclient_detach, gdbserv_fromclient_data,
1104 gdbserv_fromclient_break): Move from here.
1105 * lib/gdbserv-client.h: To here.
1107 * lib/gdbserv.h (gdbserv_fromtarget_break,
1108 gdbserv_fromtarget_reset, gdbserv_fromtarget_exit): Move from
1110 * lib/gdbserv-target.h: To here.
1112 Wed Apr 12 23:39:33 2000 Andrew Cagney <cagney@amy.cygnus.com>
1114 * configure.in: Configure in ASVP when ASVPLAB is defined.
1115 * configure: Re-generate.
1117 Wed Apr 12 22:06:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
1119 * samples/fdset.c: Include <stdlib.h> for atoi.
1120 Include <string.h>, work around FreeBSD header problem.
1121 * samples/demo-target.c: Include <stdlib.h> for rand.
1122 (demo_get_mem): Add paren around ``+'' and ``%'' per GCCs
1124 * samples/main.c: Include <stdlib.h> for atoi.
1125 * lib/gdbserv-state.c: Include <string.h> for memset.
1127 Wed Apr 12 20:22:36 2000 Andrew Cagney <cagney@b1.cygnus.com>
1129 * lib/gdbserv-utils.h, lib/gdbserv-utils.c (gdbserv_reg_to_hex):
1130 Delete. Replaced by gdbserv_output_reg_beb and
1131 gdbserv_output_reg_leb.
1133 Wed Apr 12 19:13:58 2000 Andrew Cagney <cagney@b1.cygnus.com>
1135 * lib/gdbserv-state.c (gdbserv_state): New function.
1136 * lib/gdbserv-state.h (enum gdbserv_state): Move from here.
1137 * lib/gdbserv.h (enum gdbserv_state): To here.
1138 (gdbserv_state): Add declaration.
1140 Tue Apr 11 20:20:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
1142 * samples/demo-target.c, samples/demo-target.h: New files. Copy
1143 demo target in main.c.
1144 * samples/main.c: Delete demo target code. Include
1146 * samples/Makefile.am: Update.
1148 * samples/fdset.c: New file. Demo gdbsocket.h's FD_SET interface.
1149 * samples/Makefile.am: Add program `fdset'.
1150 * samples/Makefile.in, stamp-h.in: Re-generate.
1152 2000-04-11 Fernando Nasser <fnasser@cygnus.com>
1154 * configure.in: Add check for target-dependent subdirectories.
1155 * configure: Regenerate.
1156 * Makefile.am: Use targ_subdirs generated above.
1157 * Makefile.in: Regenerate
1159 2000-04-11 Fernando Nasser <fnasser@cygnus.com>
1161 * configure.in: Test for host byte order.
1162 * config.in: Regenerate.
1163 * configure: Regenerate.
1165 Tue Apr 11 20:06:34 2000 Andrew Cagney <cagney@b1.cygnus.com>
1167 * lib/gdbsocket.h: Break dependency on "gdbserv.h".
1168 (gdbsocket_attach): New type.
1169 (struct gdbserv, struct gdbserv_target): Add declarations.
1170 * lib/gdbsocket.c (process_accept, gdbsocket_fd_isset,
1171 gdbsocket_poll): Update.
1173 Tue Apr 11 18:36:06 2000 Andrew Cagney <cagney@amy.cygnus.com>
1175 * lib/gdbsocket.c (gdbsocket_shutdown): Only trace when
1176 gdbsocket_trace. Avoid core dump.
1177 (gdbsocket_fd_set): New function.
1178 (gdbsocket_fd_isset): New function - better name?
1179 (gdbsocket_poll): Use gdbsocket_fd_set and gdbsocket_fd_isset to
1181 * lib/gdbsocket.h (gdbsocket_fd_set, gdbsocket_fd_isset): Add
1182 declarations conditional on having FD_SET.
1184 * samples/main.c: Do not include "gdbserv-client.h". "gdbsocket.h"
1185 implements the client side code.
1187 Tue Apr 11 17:49:29 2000 Andrew Cagney <cagney@amy.cygnus.com>
1189 * lib/gdbserv-state.h: Document that the file is gdbserv internal.
1190 * samples/main.c: Include system headers before stub headers.
1191 * lib/gdbserv.h: Don't include <stdio.h>.
1193 2000-04-06 Frank Ch. Eigler <fche@redhat.com>
1195 MAINTAINERS: New file.
1196 Makefile.am: New file.
1199 REMOTE-HACK-RULES: New file.
1200 configure.in: New file.
1201 Makefile.in: New generated file.
1202 aclocal.m4: New generated file.
1203 config.in: New generated file.
1204 configure: New generated file.
1205 stamp-h.in: New generated file.
1207 By Andrew Cagney <cagney@cygnus.com>:
1208 lib/ARCH: Imported file.
1209 lib/Makefile.am: New file.
1210 lib/Makefile.in: New generated file.
1211 lib/gdbserv-client.h: Imported file.
1212 lib/gdbserv-input.c: Imported file.
1213 lib/gdbserv-input.h: Imported file.
1214 lib/gdbserv-output.c: Imported file.
1215 lib/gdbserv-output.h: Imported file.
1216 lib/gdbserv-state.c: Imported file.
1217 lib/gdbserv-state.h: Imported file.
1218 lib/gdbserv-target.h: Imported file.
1219 lib/gdbserv-utils.c: Imported file.
1220 lib/gdbserv-utils.h: Imported file.
1221 lib/gdbserv.h: Imported file.
1222 lib/gdbsocket.c: Imported file.
1223 lib/gdbsocket.h: Imported file.
1225 samples/Makefile.am: New file.
1226 samples/Makefile.in: New generated file.
1227 samples/main.c: New file.
1234 version-control: never