1 2004-10-07 Jim Blandy <jimb@redhat.com>
3 * samples/async.c: #define _GNU_SOURCE before #including any
4 files, to get prototypes for GNU-specific functions like
7 2004-09-24 Jim Blandy <jimb@redhat.com>
9 * lib/gdbserv-output.c, samples/demo-target.c, samples/main.c,
10 samples/poll.c: #include <string.h>.
12 2004-09-14 Jim Blandy <jimb@theseus.home>
16 2004-07-23 Michael Snyder <msnyder@redhat.com>
18 * MAINTAINERS: Remove Andrew Cagney, at his request.
20 2004-07-09 Michael Snyder <msnyder@redhat.com>
22 * samples/demo-target.c (demo_set_thread_mem): Allocate new
23 simulated memory in hunks, rather than one byte at a time.
24 If target_mem.base moves down, copy contents up.
26 * samples/demo-target.c (demo_target): Call malloc only once,
27 so that gdb can detach and re-attach repeatedly.
29 * lib/gdbserv-target.c (gdbserv_fromtarget_terminate): Rename
30 parameter from exitval to sigval (it's a signal number).
31 * lib/gdbserv-target.c (gdbserv_totarget): Comment spelling fix.
32 * lib/gdbserv-state.c (gdbserv_fromclient_break): Add break
35 2003-05-20 Kevin Buettner <kevinb@redhat.com>
37 * lib/gdbserv-utils.c (gdbserv_le_bytes_from_reg): Fix typo that
38 caused incorrect number of bytes to be copied.
40 2003-01-16 Kevin Buettner <kevinb@redhat.com>
42 * lib/gdbserv-state.c (do_status_packet, gdbserv_data_packet): Fix
43 memset() calls - the arguments were in the wrong order.
44 (gdbserv_data_packet): Check return value from get_reg() call.
46 2002-12-02 Kevin Buettner <kevinb@redhat.com>
48 * include/gdbserv-utils.h, lib/gdbserv-utils.c
49 (gdbserv_be_bytes_to_reg, gdbserv_le_bytes_to_reg)
50 (gdbserv_be_bytes_from_reg, gdbserv_le_bytes_from_reg)
51 (gdbserv_host_bytes_to_reg, gdbserv_host_bytes_from_reg):
54 2002-11-04 Kevin Buettner <kevinb@redhat.com>
56 * Makefile.in, aclocal.m4, configure, lib/Makefile.in, qe/Makefile.in,
57 samples/Makefile.in, unix/configure: Regenerate configury using
58 aclocal 1.6.3, automake 1.6.3, and autoconf 2.53.
60 2002-08-22 Kevin Buettner <kevinb@redhat.com>
62 * lib/Makefile.am (INCLUDES): Remove references to bfd.
63 (THESOURCES): Remove bfd-loader.c from list.
64 * lib/Makefile.in: Regenerate.
65 * samples/Makefile.am (sample_DEPLIBS): Remove references to
67 * samples/Makefile.in: Regenerate.
69 2002-08-21 Kevin Buettner <kevinb@redhat.com>
71 * HOWTO, MAINTAINERS, NEWS, README, REMOTE-HACK-RULES,
72 configure.in, lib/Makefile.am, lib/gdbserv-target.c,
73 samples/Makefile.am, samples/async.c, samples/demo-target.c,
74 samples/main.c, samples/poll.c: Change ``libremote'' references
75 into ``RDA'' references.
76 * configure, lib/Makefile.in, samples/Makefile.in: Regenerate.
78 2002-08-15 Kevin Buettner <kevinb@redhat.com>
80 * include/gdblog.h, include/gdbloop.h, include/gdbsched.h,
81 include/gdbserv-client.h, include/gdbserv-input.h,
82 include/gdbserv-log.h, include/gdbserv-output.h,
83 include/gdbserv-target.h, include/gdbserv-utils.h,
84 include/gdbserv.h, include/gdbsocket.h, include/stdio-log.h,
85 lib/gdblog.c, lib/gdbloop.c, lib/gdbsched.c,
86 lib/gdbserv-input.c, lib/gdbserv-log.c, lib/gdbserv-output.c,
87 lib/gdbserv-state.c, lib/gdbserv-state.h,
88 lib/gdbserv-target.c, lib/gdbserv-utils.c, lib/gdbsocket.c,
89 lib/stdio-log.c, qe/README, qe/inc-backwards.c,
90 qe/inc-forward.c, qe/inc-gdblog.c, qe/inc-gdbloop.c,
91 qe/inc-gdbsched.c, qe/inc-gdbserv-client.c,
92 qe/inc-gdbserv-input.c, qe/inc-gdbserv-log.c,
93 qe/inc-gdbserv-output.c, qe/inc-gdbserv-target.c,
94 qe/inc-gdbserv-utils.c, qe/inc-gdbserv.c, qe/inc-gdbsocket.c,
95 qe/inc-stdio-log.c, samples/async.c, samples/demo-target.c,
96 samples/demo-target.h, samples/main.c, samples/poll.c,
97 samples/thread.c: Update copyright notices.
99 2002-08-14 Kevin Buettner <kevinb@redhat.com>
101 * include/bfd-loader.h: Delete.
102 * lib/bfd-loader.c: Delete.
103 * samples/main.c (main): Eliminate code for loading files.
104 (usage): Adjust usage message to account for the fact that we can
105 no longer load files.
107 2002-01-02 Ben Elliston <bje@redhat.com>
109 * MAINTAINERS: Update mail addresses.
111 2001-10-13 Kevin Buettner <kevinb@redhat.com>
113 * include/gdbserv-utils.h (gdbserv_be_bytes_to_reg)
114 (gdbserv_le_bytes_to_reg, gdbserv_be_bytes_from_reg)
115 (gdbserv_le_bytes_from_reg, gdbserv_native_bytes_to_reg)
116 (gdbserv_native_bytes_from_reg): New functions.
117 * lib/gdbserv-utils.c (config.h): Include.
119 (reverse_copy_bytes, gdbserv_be_bytes_to_reg)
120 (gdbserv_le_bytes_to_reg, gdbserv_be_bytes_from_reg)
121 (gdbserv_le_bytes_from_reg, gdbserv_host_bytes_to_reg)
122 (gdbserv_host_bytes_from_reg): New functions.
124 2001-09-28 Andrew Haley <aph@cambridge.redhat.com>
126 * samples/main.c (main): Work around SIGCHLD problem.
128 2001-09-27 David Woodhouse <dwmw2@redhat.com>
130 * lib/gdbserver-target.c (gdbserv-totarget): Zero sigval to indicate
131 success if target->process_signal succeeds, instead of doing so
134 2001-08-20 Jonathan Larmour <jlarmour@redhat.com>
136 * lib/gdbsocket.c (process_read): Treat a read reporting shutdown
137 or connection reset as EOF.
139 2001-08-02 Michael Keezer <mkeezer@redhat.com>
141 * unix/configure.in: Add am33_2.0 & mn10300.
142 * unix/config.in: Add AM33_LINUX_TARGET & AM33_2_0_LINUX_TARGET.
143 * unix/linux-target.c: am33_2.0 & mn10300 support.
145 2001-07-26 Michael Snyder <msnyder@redhat.com>
147 * lib/gdbserv-utils.c (gdbserv_raw_to_hex): Increment pointer.
149 2001-06-25 Michael Snyder <msnyder@redhat.com>
151 * include/gdbserv-target.h: Fill in the remaining GDB signal numbers.
153 2001-06-12 Corinna Vinschen <vinschen@redhat.com>
155 * configure.in: Add linux as possible host for xscale subdir.
156 * configure: Regenerated.
158 2001-04-26 Andrew Cagney <ac131313@redhat.com>
160 * lib/gdbsocket.c: Include <ctype.h>.
161 (dump_buf): New function. Handle unprintable characters.
165 * lib/bfd-loader.c (struct lng): Add exit_addr and loaded_p.
166 (fromtarget): Check for unexpected stops.
167 (bfd_loader_exit): Report the exit status and stop address.
169 2001-04-23 Andrew Cagney <ac131313@redhat.com>
171 * lib/gdbserv-target.c: Include <assert.h>.
172 (gdbserv_totarget): Abort when the target fails to handle either
173 START_ADDR or SIGVAL.
175 2001-04-23 Andrew Cagney <ac131313@redhat.com>
177 * include/gdblog.h (gdblog_xlong, gdblog_xlong_ftype): Declare.
178 (gdblog_new): Add log_xlong parameter.
179 * lib/gdblog.c (struct gdblog): Add log_xlong.
180 (gdblog_xlong): New function.
181 (gdblog_new): Initialize log_xlong.
182 * lib/stdio-log.c (do_stdio_log_xlong): New function.
183 (stdio_log): Add do_stdio_log_xlong.
185 * lib/bfd-loader.c (load_n_go): Use gdblog_xlong to print
188 2001-04-19 Andrew Cagney <ac131313@redhat.com>
190 * samples/async.c: Include <string.h> for strsignal.
192 2001-04-17 Alexandre Oliva <aoliva@redhat.com>
194 * acinclude.m4: Get macros from ../libtool.m4 and ../gettext.m4.
195 * configure.in: Call CY_WITH_NLS.
196 * samples/Makefile.am (sample_DEPLIBS): New. Copied from
197 sample_LDADD, except for libintl.a.
198 (sample_LDADD): Set as sample_DEPLIBS plus INTLLIBS.
199 (sample_DEPENDENCIES): New. Same as sample_DEPLIBS plus INTLDEPS.
200 * aclocal.m4, configure, samples/Makefile.in: Rebuilt.
202 2001-04-16 Andrew Cagney <ac131313@redhat.com>
204 * lib/gdbsocket.c (process_accept): Only SIGIO when
207 2001-04-15 Andrew Cagney <ac131313@redhat.com>
209 * include/bfd-loader.h (bfd_loader_exit): Replace bfd_shutdown.
210 * lib/bfd-loader.c (lng): Add ``exit_val''.
211 (fromtarget): Save the exit value.
212 (bfd_loader_exit): Call exit with ``exit_val''.
213 * samples/main.c (main): Replace bfd_shutdown with
216 2001-04-15 Andrew Cagney <ac131313@redhat.com>
218 * include/gdbserv-target.h (struct gdbserv_target): Add ``to''.
219 (gdbserv_totarget): Declare.
220 (struct gdbserv_target): Make process_set_pc's ``val'' parameter
222 * lib/gdbserv-target.c: Include "gdbserv-utils.h" and "gdbserv.h".
223 (gdbserv_totarget): New function.
225 * lib/gdbserv-state.c (gdbserv_data_packet): Rewrite ``c'', ``C'',
226 ``s'', ``S'' and ``i'' packet code. Use gdbserv_totarget. Never
227 transition into state GDBSERV_STATE_STEPPING.
228 * lib/gdbserv-state.h (enum gdbserv_state): Delete
229 GDBSERV_STATE_STEPPING.
230 * lib/gdbserv-state.c (state2str, fromtarget): Update.
231 (gdbserv_fromclient_break): Ditto..
233 * lib/bfd-loader.c (load_n_go): Compute the start address. Pass
234 it to gdbserv_totarget.
235 * samples/demo-target.c (demo_process_set_pc): New function.
236 (demo_target): Initialize process_set_pc.
238 2001-04-15 Andrew Cagney <ac131313@redhat.com>
240 * include/gdbserv-target.h: Add ``stop_addr'' parameter. Document.
241 (struct gdbserv_target): Update member ``from''.
242 * lib/gdbserv-target.c (gdbserv_fromtarget_reset)
243 (gdbserv_fromtarget_restarted, gdbserv_fromtarget_terminate)
244 (gdbserv_fromtarget_exit, gdbserv_fromtarget_thread_break)
245 (gdbserv_fromtarget_break, gdbserv_fromtarget): Update.
246 * lib/gdbserv-state.c (fromtarget): Update.
247 * lib/bfd-loader.c (fromtarget_stopped): Delete.
248 (fromtarget): Update.
249 * samples/demo-target.c (do_fromtarget_ready): Update.
251 2001-04-13 Andrew Cagney <ac131313@redhat.com>
253 * samples/demo-target.c: Replace demo_set_memo with
254 demo_set_thread_mem. Replace demo_continue_program with
255 demo_continue_thread.
257 * lib/Makefile.am (THESOURCES): Add bfd-loader.c
258 (INCLUDES): Add top level include and bfd directories.
259 * lib/Makefile.in: Regenerate.
260 * include/bfd-loader.h: New file.
261 * lib/bfd-loader.c: New file.
263 * samples/main.c: Include "bfd-loader.h", "gdbsched.h" and
265 (main): Add ``-v'' verbose option.
266 (main): If the parameter isn't numeric or ``-'' assume that it is
267 a file to load using bfd_load. Schedule a program quit event.
269 (fake_exit): New function.
270 * samples/Makefile.am (sample_LDADD): Add libbfd.la, libintl.a and
272 * samples/Makefile.in: Regenerate.
274 2001-04-13 Andrew Cagney <ac131313@redhat.com>
276 * samples/main.c: Include <unistd.h>, <signal.h>, <ctype.h>,
277 "gdbsched.h", "gdbserv-target.h" and <time.h>.
278 (main): Add -d option. Interpret ``-'' parameter as stdio.
279 Validate port number. Add usage/help message. Use variable
280 shutdown to determine if the startup worked.
281 (usage): New function.
282 (do_close): New function.
283 * samples/stdio.c: Delete.
284 * samples/Makefile.am (noinst_PROGRAMS): Delete stdio.
285 (stdio_SOURCES, stdio_LDADD): Delete.
286 * samples/Makefile.in: Regenerate.
288 2001-04-13 Andrew Cagney <ac131313@redhat.com>
290 * samples/demo-target.c (demo_target): New function.
291 (do_fromtarget_reset): New function.
292 (demo_attach): Use demo_target and do_fromtarget_reset. Take
293 server out of reset state.
294 * samples/thread.c (thread_attach): Call demo_target.
296 2001-04-12 Andrew Cagney <ac131313@redhat.com>
298 * include/gdbserv.h (gdbserv_state): Delete declaration
299 (GDBSERV_STATE_STUMBLING): Delete.
300 (enum gdbserv_state): Move from here.
301 * lib/gdbserv-state.h (enum gdbserv_state): Back to here.
302 * lib/gdbserv-state.c (state2str): Update.
303 * lib/gdbserv-target.c: Don't include "gdbserv.h".
305 2001-04-12 Andrew Cagney <ac131313@redhat.com>
307 * lib/gdbserv-state.c (gdbserv_fromclient_attach): Create a cycle
308 of GDBSERVs. Initialize ``from'' method in target vector.
309 (gdbserv_fromclient_detach): Clear ``from'' method.
310 (do_exit_packet): New function. Output an exit/terminate packet.
311 (fromtarget): New function.
312 (gdbserv_fromtarget_reset): Delete.
313 (gdbserv_fromtarget_break): Delete.
314 (gdbserv_fromtarget_thread_break): Delete.
315 (gdbserv_fromtarget_exit): Delete.
316 (gdbserv_fromtarget_terminate): Delete.
318 * include/gdbserv-target.h (gdbserv_fromtarget): Declare.
319 (enum gdbserv_fromtarget_event): Define.
320 (struct gdbserv_target): Add ``from''.
321 (GDBSERV_SIG): Move definitions to start of file.
323 * lib/gdbserv-state.h (struct gdbserv): Add ``from'' and ``to'' as
324 links up and down the target stack.
325 * lib/gdbserv-target.c: New file.
326 * lib/Makefile.am (THESOURCES): Add gdbserv-target.c
327 * lib/Makefile.in: Regenerate.
329 2001-04-12 Andrew Cagney <ac131313@redhat.com>
331 * lib/gdbsocket.c (gdbsocket_had_sigio_p): Delete.
332 (sigio_socket): Delete.
333 (gdbsocket_sigio_enable, gdbsocket_sigio_disable): Delete.
334 (gdbsocket_async, gdbsocket_async_p): New function and variable.
335 (async_fd): Only enable O_ASYNC when async selected.
336 (gdbsocket_startup): Don't call gdbsocket_sigio_disable.
338 * include/gdbsocket.h (gdbsocket_had_sigio_p): Delete.
339 (gdbsocket_sigio_enable, gdbsocket_sigio_enable): Delete.
340 (gdbsocket_async): New function.
342 * samples/async.c (set_poll_p): Replace handle_sigalrm.
343 (poll_p): Volatile global.
344 (main): Register signal handlers for both SIGIO and SIGALRM. Check
345 poll_p. Call gdbsocket_sigio to enable O_ASYNC on all file
348 * include/gdbloop.h (gdbloop_p): Delete.
349 (gdbloop_sigio_enable, gdbloop_sigio_disable): Delete.
350 * lib/gdbloop.c: Update.
352 2001-04-12 Andrew Cagney <ac131313@redhat.com>
354 * include/gdbsocket.h (gdbsocket_poll): Delete declaration.
355 * lib/gdbsocket.c (struct fds): Delete.
356 (gdbsocket_poll, fds_isset, fds_set): Delete functions.
357 * lib/gdbloop.c (poll_gdbsocket): Rename gdbloop_poll.
358 (gdbloop_poll): New function.
359 (gdbloop): Call poll_gdbsocket.
361 * samples/main.c (main): Call gdbloop_poll. Don't include <time.h>
362 * samples/demo-target.h, samples/demo-target.c: Update comments.
363 * samples/thread.c: Update comments.
365 2001-04-12 Andrew Cagney <ac131313@redhat.com>
367 * lib/gdbloop.c (gdbloop): Reverse file / queue processing order -
368 do the task queue second.
370 2001-04-11 Andrew Cagney <ac131313@redhat.com>
372 * samples/async.c: Include <signal.h>, "gdblog.h", "gdbsched.h"
375 * lib/gdbloop.c (gdbloop): Delete alarm code. Moved to
377 (handle_sigalarm): Delete. Moved to samples/async.c.
378 (gdbloop_sigio_enabled_p): Delete.
379 (gdbloop_sigio_enable, gdbloop_sigio_disable): Update.
381 * samples/async.c (handle_sigalarm): New function.
382 (main): Use alarm to handle timer events.
384 2001-04-11 Andrew Cagney <ac131313@redhat.com>
386 * lib/gdbserv-state.c (reset_state): New function. Fully
387 re-initialize gdbserv.
388 (gdbserv_fromclient_attach): Call reset_state.
389 (gdbserv_data_packet): Ditto for "r" and "R" packets.
391 * lib/gdbserv-state.h (struct gdbserv): Add ``event_thread'' and
394 * lib/gdbserv-state.c (gdbserv_fromtarget_thread_break): Update
395 ``event_thread'' and ``event_sigval''. Clear "continue_thread".
396 (do_status_packet): New function. Move "T" packet code to here.
397 (gdbserv_fromtarget_thread_break): Call do_status_packet.
398 (gdbserv_data_packet): Use do_status_packet to respond to "?".
399 (do_current_thread_query): Always return the general thread.
401 2001-04-11 Andrew Cagney <ac131313@redhat.com>
403 * lib/gdbloop.c (gdbloop_sigio_enabled_p): New global.
404 (handle_sigalarm): New function.
405 (gdbloop_sigio_enable): Register handle_sigalarm for SIGALRM.
406 (gdbloop_sigio_disable): Deregister SIGALRM.
407 (gdbloop): When gdbloop_sigio_enabled_p, schedule an alarm to
408 triger the next round of event processing.
410 2001-04-11 Andrew Cagney <ac131313@redhat.com>
412 * lib/gdbsched.c: Include "gdblog.h" and "gdbsocket.h".
413 (gdbsched_schedule, gdbsched_deschedule)
414 (gdbsched_dispatch): Add tracing.
416 * lib/gdbsched.c (gdbsched_schedule): Pre- rather than post-
417 increment sched_db. Stop the first sched tag being NULL.
419 2001-04-10 Andrew Cagney <ac131313@redhat.com>
421 * samples/demo-target.h (demo_break): Delete declaration.
422 (struct gdbserv_target): Delete declaration.
423 (demo_ticks_before_break_p): Delete declaration.
424 * samples/demo-target.c: Include <time.h>, <sys/time.h> and
426 (demo_ticks_before_break_p): Delete global variable.
427 (dispatch_break, sched_break): New functions.
428 (demo_break_program): Call sched_break.
429 (demo_restart_program): Ditto.
430 (demo_singlestep_program): Ditto.
431 (demo_cyclestep_program): Ditto.
432 (demo_continue_program): Ditto.
433 (demo_break): Delete function.
435 * samples/poll.c: Include <time.h>, <sys/time.h> and
436 "gdbsched.h". Delete redundant include of <sys/types.h>.
437 (main): Replace demo_ticks_before_break_p with call to
439 * samples/fdset.c (main): Ditto.
441 * samples/main.c: Include <time.h>, <sys/time.h> and "gdbloop.h".
442 (main): Replace gdbsocket_poll and demo_ticks_before_break_p with
444 * samples/stdio.c: Ditto.
446 * samples/thread.c: New file.
447 * samples/thread-target.c: Delete.
448 * samples/Makefile.am (thread_SOURCES): Update.
449 * samples/Makefile.in: Regnerate.
451 2001-04-11 Andrew Cagney <ac131313@redhat.com>
453 * samples/fdset.c: Delete. See lib/gdbloop.c.
454 * samples/Makefile.am (noinst_PROGRAMS): Delete fdset.
455 (fdset_SOURCES): Delete.
456 (fdset_LDADD): Ditto.
457 * samples/Makefile.in: Regenerate.
459 2001-04-11 Andrew Cagney <ac131313@redhat.com>
461 * include/gdbloop.h (gdbloop_p): Declare.
462 (gdbloop_sigio_enable, gdbloop_sigio_disable): Declare.
463 (gdbloop): Add TIMEOUT parameter.
464 * lib/gdbloop.c: Don't include <sys/types.h>. Include <assert.h>,
465 <signal.h> and <fcntl.h>.
466 (sigio_fd): New function.
467 (gdbloop_sigio_enable, gdbloop_sigio_disable): New functions.
468 (gdbloop_poll): Cleanup. Check gdbloop_p. Make static.
469 (gdbloop): Update to handle timeout as a parameter.
471 * include/gdbsocket.h (gdbsocket_poll): Deprecate.
472 (gdbsocket_sigio_disable): Deprecate.
473 (gdbsocket_sigio_enable): Deprecate.
474 (gdbsocket_had_sigio_p): Deprecate.
476 * samples/async.c: New file.
477 * samples/Makefile.am (noinst_PROGRAMS): Add async demo.
478 (async_LDADD, sample_SOURCES): Define.
479 * samples/Makefile.in: Regenerate.
480 * samples/demo-target.c (demo_break_program): Print a trace
483 2001-04-10 Andrew Cagney <ac131313@redhat.com>
485 * lib/gdbsocket.c (async_fd): Ensure that the SIGIO is delivered
487 (process_accept): Use kill SIGIO, instead of setting
488 gdbsocket_had_sigio_p, to force the re-read.
490 2001-04-10 Andrew Cagney <ac131313@redhat.com>
492 * qe/inc-gdbloop.c, qe/inc-gdbsched.c: New files.
493 * qe/Makefile.am (qe_SOURCES): Add inc-gdbloop.c and
495 * qe/Makefile.in: Regenerate.
497 2001-04-10 Andrew Cagney <ac131313@redhat.com>
499 * include/gdbsched.h, lib/gdbsched.c: New files. Simple
501 * lib/gdbloop.c, include/gdbloop.h: New files. Simple
503 * lib/Makefile.am (THESOURCES): Add gdbloop.c and gdbsched.c.
504 * lib/Makefile.in: Regenerate.
506 2001-04-10 Andrew Cagney <ac131313@redhat.com>
508 * include/gdbserv-utils.h: Add fake close of extern "C" to pacify
510 * include/gdbserv-target.h: Ditto.
511 * include/gdbserv-output.h: Ditto.
512 * include/gdbserv-input.h: Ditto.
513 * include/gdbserv-client.h: Ditto.
514 * include/gdbserv.h: Ditto.
516 2001-04-09 Michael Snyder <msnyder@redhat.com>
518 * lib/gdbserv-state.c (gdbserv_data_packet): Give preference to
519 threaded cyclestep method. Likewise threaded get_mem / set_mem.
521 2001-04-05 Andrew Cagney <ac131313@redhat.com>
523 * lib/gdbserv-state.c (gdbserv_fromtarget_thread_break): Revert
524 change ``2001-04-05 Andrew Cagney <ac131313@redhat.com>'' that
525 cleared the general_thread.
527 * lib/gdbserv-state.c (gdbserv_data_packet)
528 (do_select_thread_packet): Revert ``2001-04-05 Michael Snyder
529 <msnyder@redhat.com>'' that cleared the general_thread.
531 2001-04-05 Andrew Cagney <ac131313@redhat.com>
533 * lib/gdbserv-state.c (gdbserv_data_packet): Move code clearing
534 the general thread to gdbserv_fromtarget_thread_break.
536 2001-04-05 Michael Snyder <msnyder@redhat.com>
538 * gdbserv-state.c (gdbserv_data_packet): Discard any saved general
539 thread on step or continue. GDB doesn't always cancel it, but the
540 general thread should not persist between stop events.
541 (do_select_thread_packet): Both the continue
542 thread and the general thread may be set to null.
543 NOTE: All methods that may receive the general thread must be
544 prepared to receive NULL (defaulting to the current thread).
546 2001-04-03 David Smith <dsmith@redhat.com>
548 * lib/gdbserv-state.c (do_current_thread_query): Try to figure out
549 the correct thread to use when returning the thread id.
551 2001-04-02 Michael Snyder <msnyder@redhat.com>
553 * lib/gdbserv-state.c (do_get_registers_p_packet): Check for
554 get_thread_reg rather than get_reg, since that is what will
555 be used. While we're at it, check for reg_format and output_reg.
556 (gdbserv_data_packet): Give first preference to thread-aware
557 register methods (if defined) for g/G/P packets. That way, to
558 add thread awareness, a backend need only define the new methods
559 (without nullifying the old ones). This makes it possible to
560 fall back on the old ones if necessary. FIXME should it be an
561 error if there is no target register method? Also give first
562 preference to thread-aware step and continue methods.
564 2001-03-23 David Smith <dsmith@redhat.com>
566 * lib/gdbserv-state.c (gdbserv_fromtarget_thread_break): If a NULL
567 thread is passed in, try to figure out the correct thread to use.
568 In addition, don't change the value of the "continue_thread".
570 * samples/thread-target.c (demo_break): Calls
571 gdbserv_fromtarget_thread_break() with a NULL thread.
573 2001-03-22 Andrew Cagney <ac131313@redhat.com>
575 * lib/gdbsocket.c (struct session): Rename ``struct gdbsocket''.
576 (session_db): Rename gdb_sockets.
577 (gdbsocket_shutdown): Update.
578 (gdbsocket_reopen): Update.
579 (gdbsocket_fd_set): Update.
580 (gdbsocket_fd_isset): Update.
582 * include/gdbsocket.h (gdbsocket_fd_isset, gdbsocket_poll): Delete
583 paramters to_target_attach and target_attach_data.
584 (gdbsocket_startup): Add parameters to_target_attach and
587 * lib/gdbsockets.c (gdbscket_fd): Delete static variable.
588 (struct server): Declare.
589 (server_db): Declare static variable.
590 (gdbsocket_startup): Add to_target_attach and target_attach_data
591 parameters. Enter the server in the server_db.
592 (gdbsocket_shutdown): Handle servers in server_db instead of
594 (gdbsocket_fd_set): Ditto.
595 (gdbsocket_fd_isset): Ditto.
596 (process_accept): Replace to_target_attach and target_attach_data
597 with single ``struct server'' parameter.
598 (gdbsocket_fd_isset): Update call.
600 * samples/fdset.c (main): Update calls to gdbsocket_startup and
602 * samples/poll.c (main): Ditto.
603 * samples/main.c (main): Ditto for gdbsocket_startup and
605 * samples/stdio.c (main): Ditto for gdbsocket_poll.
607 Thu Mar 22 16:53:09 2001 David Taylor <taylor@redhat.com>
609 * lib/gdbserv-state.c (gdbserv_fromtarget_thread_break): When
610 output'ing a register, output the full length, not zero bytes.
612 2001-03-16 Elena Zannoni <ezannoni@redhat.com>
614 * include/gdbserv-target.h (struct gdbserv_target): Add
615 parameter to detach function pointer.
616 * lib/gdbserv-state.c (gdbserv_fromclient_detach): Pass
617 gdbserv->target to detach target call.
618 * samples/demo-target.c (demo_detach): Add parameter.
619 * samples/thread-target.c (demo_detach): Add parameter.
620 * win32/win32-target.c (win32-detach): Add new parameter.
622 2001-03-15 Andrew Cagney <ac131313@redhat.com>
624 * Makefile.am, configure.in: Add qe directory.
625 * Makefile.in, configure: Regenerate.
627 * qe/README: New file.
628 * qe/Makefile.am: New file.
629 * qe/Makefile.in: Regenerate.
630 * qe/inc-backwards.c: New file.
631 * qe/inc-forward.c: New file.
632 * qe/inc-gdblog.c: New file.
633 * qe/inc-gdbserv-client.c: New file.
634 * qe/inc-gdbserv-input.c: New file.
635 * qe/inc-gdbserv-log.c: New file.
636 * qe/inc-gdbserv-output.c: New file.
637 * qe/inc-gdbserv-target.c: New file.
638 * qe/inc-gdbserv-utils.c: New file.
639 * qe/inc-gdbserv.c: New file.
640 * qe/inc-gdbsocket.c: New file.
641 * qe/inc-stdio-log.c: New file.
644 2001-03-15 Andrew Cagney <ac131313@redhat.com>
646 * lib/gdbserv-input.c (gdbserv_input_trace): Delete variable.
647 * lib/gdbsocket.c (gdbsocket_trace): Ditto.
648 * lib/gdbserv-state.c (gdbserv_state_trace): Ditto.
649 * lib/gdbserv-output.c (gdbserv_output_trace): Ditto.
650 * include/gdbsocket.h (gdbsocket_trace): Delete declaration.
651 * include/gdbserv.h (gdbserv_state_trace, gdbserv_input_trace)
652 (gdbserv_output_trace): Ditto.
654 2001-03-14 Andrew Cagney <ac131313@redhat.com>
656 * Move native/ directory to unix/.
657 * configure.in (*linux*): Update.
658 * configure: Regenerate.
659 * aclocal.m4: Regenerate.
661 2001-03-14 Elena Zannoni <ezannoni@redhat.com>
663 * lib/gdbserv-state.h, include/gdbserv-state.h:
664 Revert the previous change. gdbserv-state.h should
667 2001-03-14 Elena Zannoni <ezannoni@redhat.com>
669 * lib/gdbserv-state.h: Move from here.
670 * include/gdbserv-state.h: To here.
672 2001-03-14 Andrew Cagney <ac131313@redhat.com>
674 * lib/gdblog.h: Move from here.
675 * include/gdblog.h: To here.
676 * lib/gdbserv-client.h, include/gdbserv-client.h: Ditto.
677 * lib/gdbserv-input.h, include/gdbserv-input.h: Ditto.
678 * lib/gdbserv-log.h, include/gdbserv-log.h: Ditto.
679 * lib/gdbserv-output.h, include/gdbserv-output.h: Ditto.
680 * lib/gdbserv-target.h, include/gdbserv-target.h: Ditto.
681 * lib/gdbserv-utils.h, include/gdbserv-utils.h: Ditto.
682 * lib/gdbserv.h, include/gdbserv.h: Ditto.
683 * lib/gdbsocket.h, include/gdbsocket.h: Ditto.
684 * lib/stdio-log.h, include/stdio-log.h: Ditto.
686 * lib/Makefile.am (INCLUDES): Update. Headers moved to ../include.
687 * lib/Makefile.in: Regenerate.
688 * samples/Makefile.am (INCLUDES): Ditto.
689 * samples/Makefile.in: Regenerate.
691 2001-03-02 Andrew Cagney <ac131313@redhat.com>
693 * lib/Makefile.am (THESOURCES): Add gdblog.c, stdio-log.c and
695 * lib/Makefile.in: Regenerate.
696 * lib/gdblog.h, lib/gdblog.c: New files.
697 * lib/stdio-log.h, lib/stdio-log.c: New files.
698 * lib/gdbserv-log.h, lib/gdbserv-log.c: New files.
700 * lib/gdbsocket.h (gdbsocket_trace): Document as deprecated.
701 (gdbsocket_log): Declare variable.
702 * lib/gdbsocket.c: Include "gdblog.h". Update to use gdblog
703 interface for tracing.
704 (gdbsocket_log): Define variable.
706 * lib/gdbserv.h (gdbserv_state_trace, gdbserv_input_trace)
707 (gdbserv_output_trace): Document as deprecated.
708 * lib/gdbserv-input.c: Include "gdblog.h" and "gdbserv-log.h".
709 Update to use gdblog interface for tracing.
710 * lib/gdbsocket.c: Ditto.
711 * lib/gdbserv-output.c: Ditto.
712 * lib/gdbserv-state.c: Ditto.
713 (log_state): New function.
715 * samples/fdset.c: Include "gdblog.h", "stdio-log.h" and
717 (main): Update to use gdbsocket_log, gdbserv_warning_log and
719 * samples/main.c: Ditto.
720 * samples/poll.c: Ditto.
721 * samples/stdio.c: Ditto.
722 * samples/demo-target.c (demo_attach): Delete code initializing
724 * samples/thread-target.c (demo_attach): Ditto.
726 2001-03-02 Andrew Cagney <ac131313@redhat.com>
728 * samples/thread-target.c (thread_lookup_by_id): Fix printf fmt
730 (thread_info): Print thread ID, not an internal thread address.
732 2001-03-02 Andrew Cagney <ac131313@redhat.com>
734 * configure.in: Add support for --enable-build-warnings and
735 (--enable-libremote-build-warnings.
736 * configure: Regenerate.
738 * Makefile.am (WARN_CFLAGS, WERROR_CFLAGS): Define. Initialized
741 * Makefile.in: Regenerate.
742 * samples/Makefile.am, samples/Makefile.in: Ditto.
743 * lib/Makefile.am, lib/Makefile.in: Ditto.
745 Thu Dec 21 02:54:39 2000 Andrew Cagney <cagney@b1.cygnus.com>
747 * samples/thread-target.c: Include <string.h>.
748 (thread_info): Use sprintf and strdup instead of asprintf.
750 Thu Dec 21 02:11:49 2000 Andrew Cagney <cagney@b1.cygnus.com>
752 * lib/gdbserv-utils.h: Declare ``struct gdbserv'' and ``struct
754 * lib/gdbserv-output.h: Ditto.
755 * lib/gdbserv-input.h: Declare ``struct gdbserv''.
757 Wed Dec 20 17:19:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
759 * samples/thread-target.c: New file.
760 * samples/Makefile.am (noinst_PROGRAMS): Add the program thread.
761 (thread_SOURCES, thread_LDADD): Define.
763 Wed Dec 20 15:51:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
765 * lib/gdbserv-output.h, lib/gdbserv-input.h, lib/gdbserv-client.h,
766 lib/gdbserv-state.h, lib/gdbserv.h, lib/gdbsocket.h: Remove
767 #ifndef wrappers. Not needed.
769 Wed Dec 20 16:29:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
771 * lib/gdbserv-state.c (gdbserv_data_packet): Separate check for
772 qRcmd from check that the target supports it.
773 (gdbserv_data_packet): Remove #if 1 from around ``P'' packet code.
774 (gdbserv_data_packet): Check for process_get_reg when handling
776 (gdbserv_data_packet): Check for target support before processing
779 Wed Dec 20 16:12:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
781 * lib/gdbserv-target.h (struct gdbserv_target): Add thread aware
782 memory access methods - get_thread_mem, set_thread_mem.
783 * lib/gdbserv-state.c (gdbserv_data_packet): Rewrite memory
784 read/write code to use thread aware methods when available.
786 Wed Dec 20 15:36:24 2000 Andrew Cagney <cagney@b1.cygnus.com>
788 * lib/gdbserv-target.h: Add thread aware resume methods -
789 continue_thread, cyclestep_thread, singlestep_thread.
790 * lib/gdbserv-state.c (gdbserv_data_packet): Rewrite continue code
791 to use thread mechanism when available.
793 Wed Dec 20 12:09:42 2000 Andrew Cagney <cagney@b1.cygnus.com>
795 * lib/gdbserv-target.h (struct gdbserv_target): Add thread aware
796 register methods - next_gg_reg, next_expedited_reg, reg_format,
797 set_thread_reg, get_thread_reg.
799 * lib/gdbserv-state.c (output_thread_reg): New function. Use
800 thread aware methods to output a register.
801 (do_get_registers_g_packet): Ditto.
802 (do_set_registers_g_packet): Ditto.
803 (do_get_registers_p_packet): Ditto.
804 (do_set_registers_p_packet): Ditto.
805 (gdbserv_data_packet): Use new functions to process ``G'', ``g'',
806 ``p'' and ``P'' packets.
807 (gdbserv_fromtarget_thread_break): Update using thread aware
808 methods when available.
810 Wed Dec 20 11:46:32 2000 Andrew Cagney <cagney@b1.cygnus.com>
812 * lib/gdbserv-target.h (gdbserv_fromtarget_thread_break): Declare.
813 * lib/gdbserv-state.c (gdbserv_fromtarget_break): Call
814 gdbserv_fromtarget_thread_break.
815 (gdbserv_fromtarget_thread_break): New function. Replace
816 gdbserv_fromtarget_break. Return thread ID when known. Fix
817 formatting of expedited registers.
819 Wed Dec 20 10:26:36 2000 Andrew Cagney <cagney@b1.cygnus.com>
821 * lib/gdbserv-state.c: Include <assert.h>.
822 (gdbserv_data_packet): Add support for ``H'', ``T'' packets. Add
823 support for ``ThreadInfo'', ``ThreadExtraInfo'' and ``C'' queries.
824 (do_select_thread_packet): New function, handle ``H'' packet.
825 (do_current_thread_query): New function, handle ``C'' query.
826 (do_thread_info_query): New function.
827 (do_thread_extra_info_query): New function.
828 (do_thread_alive_packet): New function, handle ``T'' packet.
830 2000-12-19 <brolley@redhat.com>
832 * configure.in: Rename gidl to cidl. More detailed messages for
833 subdirs not supported on various hosts/targets.
834 * configure: regenerated.
836 Tue Dec 19 17:51:58 2000 Andrew Cagney <cagney@b1.cygnus.com>
838 * lib/gdbserv-output.c: Include <assert.h>.
839 (gdbserv_output_reg_beb, gdbserv_output_reg_leb): Use assert to
841 (gdbserv_output_reg_beb, gdbserv_output_reg_leb): Handle zero reg.
843 * lib/gdbserv-input.c (gdbserv_input_hex_long): New function.
844 * lib/gdbserv.h (int gdbserv_input_hex_long): Declare.
846 * lib/gdbserv-utils.c (gdbserv_reg_to_ulong,
847 gdbserv_reg_to_ulonglong, gdbserv_ulong_to_reg,
848 gdbserv_ulonglong_to_reg): Change return type to void.
849 (gdbserv_reg_to_ulong, gdbserv_reg_to_ulonglong): Make ``reg''
851 (unpack_ulonglong): New function.
852 (gdbserv_ulong_to_reg, gdbserv_long_to_reg,
853 gdbserv_ulonglong_to_reg, gdbserv_longlong_to_reg): Use.
854 * lib/gdbserv-utils.h (gdbserv_reg_to_ulong,
855 gdbserv_reg_to_ulonglong, gdbserv_ulong_to_reg,
856 gdbserv_ulonglong_to_reg): Update function declarations.
858 2000-12-18 David Smith <dsmith@redhat.com>
860 * lib/gdbserv-client.h, lib/gdbserv-input.h, lib/gdbserv-output.h:
861 Added macros to guard against mutiple inclusion and added C++
862 support (by adding 'extern "C"').
863 * lib/gdbserv-state.h, lib/gdbserv-target.h, lib/gdbserv-utils.h:
865 * lib/gdbserv.h, lib/gdbsocket.h: Ditto.
867 2000-11-28 Michael Snyder <msnyder@cleaver.cygnus.com>
869 * lib/gdbserv-state.c (gdbserv_data_packet): Return error if
870 get_mem method does not return the requested number of bytes.
872 2000-11-21 Corinna Vinschen <vinschen@cygnus.com>
874 * configure.in: Add subdir dependency for win32 target.
876 2000-11-14 Michael Snyder <msnyder@cleaver.cygnus.com>
878 * samples/demo-target.c (demo_get_mem, demo_set_mem):
879 Add a memory cache that can be modified by GDB.
880 (demo_process_get_regs, demo_process_set_regs):
881 Add a register cache that can be modified by GDB.
882 (demo_attach): Hook in demo_process_set_regs.
883 (demo_set_mem): Check for malloc failure in pseudo-memory cache.
885 2000-11-08 Rudy Folden <rfolden@redhat.com>
887 * configure.in (case "$target" in sh-*): Removed erroneous CC case.
888 * native/configure.in (case "$target" in sh-*): Removed erroneous CC case.
890 2000-11-07 Rudy Folden <rfolden@redhat.com>
892 * README: Doc update.
894 2000-11-07 Rudy Folden <rfolden@redhat.com>
896 * configure.in (case "$target" in sh-*): Added case for CC.
897 * native/configure.in (case "$target" in sh-*): Added case for CC.
898 * native/Makefile.am (CC=, CFLAGS=): removed erroneous CC ad CFLAGS entiries.
899 * native/Makefile.in (CC=, CFLAGS=): removed erroneous CC ad CFLAGS entiries.
901 2000-09-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
903 With Andrew Cagney <cagney@b1.cygnus.com>
904 * lib/gdbserv-input.c (add_char_to_packet): Improve handling of
905 missing ACK packets, NACKs and other exceptional conditions.
906 This fixies a bug where libremote would lock up and ignore everything
908 (gdbserv_input_wait_for_ack): Do not print switch to ACK warning
909 when retrying. Rephrase the warning message.
911 2000-09-13 Michael Snyder <msnyder@michael.wirespeed.com>
913 * lib/gdbserv-state.c (gdbserv_fromtarget_terminate): New function.
914 (gdbserv_fromtarget_exit): Rename arg from signum to exitcode.
915 * lib/gdbserv-target.h (gdbserv_fromtarget_terminate): Export.
917 Thu Sep 7 16:53:22 2000 David Taylor <taylor@texas.cygnus.com>
919 * lib/gdbserv-utils.c (gdbserv_ulong_to_reg,
920 gdbserv_ulonglong_to_reg): New functions.
921 * lib/gdbserv-utils.h (gdbserv_ulong_to_reg,
922 gdbserv_ulonglong_to_reg): Declare them.
924 2000-09-06 Michael Snyder <msnyder@cleaver.cygnus.com>
926 * configure.in: Add "native" subdirectory to targ_subdirs.
927 * configure: Regenerate.
928 * configure.in: Remove native/Makefile from output.
929 Native subdirectory now has its own configure and automake.
930 * configure: Regenerate.
932 Thu Jun 8 14:32:21 2000 David Taylor <taylor@texas.cygnus.com>
934 * lib/gdbsocket.c (process_read): change "else if" to "if",
935 otherwise, when gdbsocket_trace is set, packets never get
938 Tue May 23 17:33:02 2000 Andrew Cagney <cagney@b1.cygnus.com>
940 * samples/poll.c (main): Pass POLLFDS and not POLL to
943 * samples/demo-target.c (sole_target): Delete global.
944 * samples/demo-target.c (demo_attach): Create and initialize
945 target vector at runtime.
947 Tue May 23 16:44:26 2000 Andrew Cagney <cagney@b1.cygnus.com>
949 * lib/gdbsocket.c, lib/gdbserv-client.h, lib/gdbserv-target.h:
952 Mon May 22 20:29:05 2000 Andrew Cagney <cagney@b1.cygnus.com>
954 * samples/demo-target.c (sole_target): Fix initialization.
956 Thu May 18 10:55:33 2000 Andrew Cagney <cagney@b1.cygnus.com>
958 * lib/gdbsocket.c: Do not include "gdbserv.h". "gdbserv-client.h"
959 provides all required server declarations.
961 2000-05-17 Fernando Nasser <fnasser@cygnus.com>
963 * lib/gdbserv-output.c (gdbserv_output_string_as_bytes): New function.
964 Send a null terminated string as hex encoded bytes (useful for
965 "O" packets and "qRcmd" answers).
966 * lib/gdbserv.h: Add prototype of the above.
967 * lib/gdbserv-state.c (gdbserv_data_packet): Fix and reactivate code
968 that handles "p" packets.
969 * lib/gdbserv-target.h: Add prototype for process_get_reg callback
970 (activated by a "p" packet).
972 Wed May 3 18:46:02 2000 Andrew Cagney <cagney@b1.cygnus.com>
974 * lib/gdbsocket.h (enum gdbsocket_fd_event,
975 gdbsocket_fd_set_ftype, gdbsocket_fd_isset_ftype): Declare.
976 (gdbsocket_fd_set, gdbsocket_fd_isset): Pass fd_set/fd_isset and
977 context instead of readfs.
978 * lib/gdbsocket.c (gdbsocket_fd_set): Replace ``fd_set'' with with
979 function parameter for accumulating file descriptors.
980 (gdbsocket_fd_isset): Ditto with a function parameter that
981 indicates that a file descriptor is ready.
982 (struct fds): Define.
983 (fds_set, fds_isset): New functions.
984 (gdbsocket_poll): Update. Add support for both read and write
987 * samples/fdset.c (struct fdset, set, isset): Declare.
988 (main): Update to use new gdbsocket_fd_set / gdbsocket_fd_isset
991 * samples/Makefile.am: Add program poll.
992 * samples/Makefile.in: Re-generate.
993 * samples/poll.c: New file. Demonstrate gdbsocket's poll interface.
995 Mon Apr 24 19:33:35 2000 Andrew Cagney <cagney@b1.cygnus.com>
997 * samples/demo-target.c (demo_attach, demo_continue_program,
998 demo_detach): Write traces to STDERR instead of STDOUT.
1000 * samples/stdio.c: New file.
1001 * samples/Makefile.am (noinst_PROGRAMS): Add stdio.
1002 * samples/Makefile.in: Re-generate.
1004 * lib/gdbsocket.h (gdbsocket_reopen): Add declaration.
1005 * lib/gdbsocket.c (process_accept): Use gdbsocket_reopen.
1006 (gdbsockt_reopen): New function.
1008 Mon Apr 24 19:09:29 2000 Andrew Cagney <cagney@b1.cygnus.com>
1010 * lib/gdbsocket.c (gdbsocket_fd): Initialize to -1.
1011 (gdbsocket_shutdown, gdbsocket_fd_set, gdbsocket_fd_isset): Do not
1012 assume that there is an open port.
1013 (gdbsocket_startup): Mark gdbsocket_fd as closed.
1015 Mon Apr 24 18:43:29 2000 Andrew Cagney <cagney@b1.cygnus.com>
1017 * lib/gdbsocket.h, lib/gdbsocket.c: Update comments.
1018 (gdbsocket_attach_ftype): Replace typedef gdbsocket_attach.
1019 * lib/gdbsocket.c (process_accept, gdbsocket_fd_isset,
1020 gdbsocket_poll): Update.
1021 (process_read): Document interface flaw.
1023 Mon Apr 24 18:12:14 2000 Andrew Cagney <cagney@b1.cygnus.com>
1025 * lib/gdbsocket.c (struct gdbsocket): Replace ``fd'' with
1026 ``readfd'' and WRITEFD. Add ``close'' method.
1027 (gdbsocket_shutdown): Update. Use ``close'' method.
1028 (process_read): Ditto. Replace ``fd'' with ``readfd''.
1029 (raw_write): Ditto. Replace ``fd'' with ``writefd''.
1030 (session_close): New function. Close ``readfd''.
1031 (process_accept): Update. Initialize ``close'' method with
1033 (gdbsocket_fd_isset, gdbsocket_fd_set): Replace ``fd'' with
1036 Mon Apr 24 17:14:21 2000 Andrew Cagney <cagney@b1.cygnus.com>
1038 * samples/demo-target.c (sole_target): Fix initialization of
1041 2000-04-17 Fernando Nasser <fnasser@cygnus.com>
1043 * HOWTO: New version. More complete, includes architecture.
1044 Callback function prototypes are removed and related comments
1045 moved to lib/gdbserv-target.h.
1047 Mon Apr 17 17:11:30 2000 Fernando Nasser <fnasser@cygnus.com>
1049 * lib/gdbserv-state.c (gdbserv_data_packet): Add processing of a
1052 Mon Apr 17 17:11:30 2000 Fernando Nasser <fnasser@cygnus.com>
1054 * lib/gdbserv-target.h (struct gdbserv-target): Add comments
1055 relating the callback routines to the corresponding remote
1058 2000-04-12 Frank Ch. Eigler <fche@redhat.com>
1060 * HOWTO: Remove mention of gdbserv_fromclient calls. Fix some
1061 typos. Minor rewording.
1063 2000-04-11 Fernando Nasser <fnasser@cygnus.com>
1065 * HOWTO: New file. A brief guide to write code that use libremote.
1067 Wed Apr 12 22:35:34 2000 Andrew Cagney <cagney@b1.cygnus.com>
1069 * lib/gdbserv.h (gdbserv_target_attach, gdbserv_fromclient_attach,
1070 gdbserv_fromclient_detach, gdbserv_fromclient_data,
1071 gdbserv_fromclient_break): Move from here.
1072 * lib/gdbserv-client.h: To here.
1074 * lib/gdbserv.h (gdbserv_fromtarget_break,
1075 gdbserv_fromtarget_reset, gdbserv_fromtarget_exit): Move from
1077 * lib/gdbserv-target.h: To here.
1079 Wed Apr 12 23:39:33 2000 Andrew Cagney <cagney@amy.cygnus.com>
1081 * configure.in: Configure in ASVP when ASVPLAB is defined.
1082 * configure: Re-generate.
1084 Wed Apr 12 22:06:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
1086 * samples/fdset.c: Include <stdlib.h> for atoi.
1087 Include <string.h>, work around FreeBSD header problem.
1088 * samples/demo-target.c: Include <stdlib.h> for rand.
1089 (demo_get_mem): Add paren around ``+'' and ``%'' per GCCs
1091 * samples/main.c: Include <stdlib.h> for atoi.
1092 * lib/gdbserv-state.c: Include <string.h> for memset.
1094 Wed Apr 12 20:22:36 2000 Andrew Cagney <cagney@b1.cygnus.com>
1096 * lib/gdbserv-utils.h, lib/gdbserv-utils.c (gdbserv_reg_to_hex):
1097 Delete. Replaced by gdbserv_output_reg_beb and
1098 gdbserv_output_reg_leb.
1100 Wed Apr 12 19:13:58 2000 Andrew Cagney <cagney@b1.cygnus.com>
1102 * lib/gdbserv-state.c (gdbserv_state): New function.
1103 * lib/gdbserv-state.h (enum gdbserv_state): Move from here.
1104 * lib/gdbserv.h (enum gdbserv_state): To here.
1105 (gdbserv_state): Add declaration.
1107 Tue Apr 11 20:20:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
1109 * samples/demo-target.c, samples/demo-target.h: New files. Copy
1110 demo target in main.c.
1111 * samples/main.c: Delete demo target code. Include
1113 * samples/Makefile.am: Update.
1115 * samples/fdset.c: New file. Demo gdbsocket.h's FD_SET interface.
1116 * samples/Makefile.am: Add program `fdset'.
1117 * samples/Makefile.in, stamp-h.in: Re-generate.
1119 2000-04-11 Fernando Nasser <fnasser@cygnus.com>
1121 * configure.in: Add check for target-dependent subdirectories.
1122 * configure: Regenerate.
1123 * Makefile.am: Use targ_subdirs generated above.
1124 * Makefile.in: Regenerate
1126 2000-04-11 Fernando Nasser <fnasser@cygnus.com>
1128 * configure.in: Test for host byte order.
1129 * config.in: Regenerate.
1130 * configure: Regenerate.
1132 Tue Apr 11 20:06:34 2000 Andrew Cagney <cagney@b1.cygnus.com>
1134 * lib/gdbsocket.h: Break dependency on "gdbserv.h".
1135 (gdbsocket_attach): New type.
1136 (struct gdbserv, struct gdbserv_target): Add declarations.
1137 * lib/gdbsocket.c (process_accept, gdbsocket_fd_isset,
1138 gdbsocket_poll): Update.
1140 Tue Apr 11 18:36:06 2000 Andrew Cagney <cagney@amy.cygnus.com>
1142 * lib/gdbsocket.c (gdbsocket_shutdown): Only trace when
1143 gdbsocket_trace. Avoid core dump.
1144 (gdbsocket_fd_set): New function.
1145 (gdbsocket_fd_isset): New function - better name?
1146 (gdbsocket_poll): Use gdbsocket_fd_set and gdbsocket_fd_isset to
1148 * lib/gdbsocket.h (gdbsocket_fd_set, gdbsocket_fd_isset): Add
1149 declarations conditional on having FD_SET.
1151 * samples/main.c: Do not include "gdbserv-client.h". "gdbsocket.h"
1152 implements the client side code.
1154 Tue Apr 11 17:49:29 2000 Andrew Cagney <cagney@amy.cygnus.com>
1156 * lib/gdbserv-state.h: Document that the file is gdbserv internal.
1157 * samples/main.c: Include system headers before stub headers.
1158 * lib/gdbserv.h: Don't include <stdio.h>.
1160 2000-04-06 Frank Ch. Eigler <fche@redhat.com>
1162 MAINTAINERS: New file.
1163 Makefile.am: New file.
1166 REMOTE-HACK-RULES: New file.
1167 configure.in: New file.
1168 Makefile.in: New generated file.
1169 aclocal.m4: New generated file.
1170 config.in: New generated file.
1171 configure: New generated file.
1172 stamp-h.in: New generated file.
1174 By Andrew Cagney <cagney@cygnus.com>:
1175 lib/ARCH: Imported file.
1176 lib/Makefile.am: New file.
1177 lib/Makefile.in: New generated file.
1178 lib/gdbserv-client.h: Imported file.
1179 lib/gdbserv-input.c: Imported file.
1180 lib/gdbserv-input.h: Imported file.
1181 lib/gdbserv-output.c: Imported file.
1182 lib/gdbserv-output.h: Imported file.
1183 lib/gdbserv-state.c: Imported file.
1184 lib/gdbserv-state.h: Imported file.
1185 lib/gdbserv-target.h: Imported file.
1186 lib/gdbserv-utils.c: Imported file.
1187 lib/gdbserv-utils.h: Imported file.
1188 lib/gdbserv.h: Imported file.
1189 lib/gdbsocket.c: Imported file.
1190 lib/gdbsocket.h: Imported file.
1192 samples/Makefile.am: New file.
1193 samples/Makefile.in: New generated file.
1194 samples/main.c: New file.
1201 version-control: never