1 2004-10-07 Jim Blandy <jimb@redhat.com>
3 * lib/gdbserv-state.c (do_get_registers_p_packet): Don't produce a
4 ';' trailing the register value unless there are more register
5 values to come. This makes the multi-register packet
6 upward-compatible with the single-register request / reply
9 * samples/async.c: #define _GNU_SOURCE before #including any
10 files, to get prototypes for GNU-specific functions like
13 2004-09-24 Jim Blandy <jimb@redhat.com>
15 * lib/gdbserv-output.c, samples/demo-target.c, samples/main.c,
16 samples/poll.c: #include <string.h>.
18 2004-09-14 Jim Blandy <jimb@theseus.home>
22 2004-07-23 Michael Snyder <msnyder@redhat.com>
24 * MAINTAINERS: Remove Andrew Cagney, at his request.
26 2004-07-09 Michael Snyder <msnyder@redhat.com>
28 * samples/demo-target.c (demo_set_thread_mem): Allocate new
29 simulated memory in hunks, rather than one byte at a time.
30 If target_mem.base moves down, copy contents up.
32 * samples/demo-target.c (demo_target): Call malloc only once,
33 so that gdb can detach and re-attach repeatedly.
35 * lib/gdbserv-target.c (gdbserv_fromtarget_terminate): Rename
36 parameter from exitval to sigval (it's a signal number).
37 * lib/gdbserv-target.c (gdbserv_totarget): Comment spelling fix.
38 * lib/gdbserv-state.c (gdbserv_fromclient_break): Add break
41 2003-05-20 Kevin Buettner <kevinb@redhat.com>
43 * lib/gdbserv-utils.c (gdbserv_le_bytes_from_reg): Fix typo that
44 caused incorrect number of bytes to be copied.
46 2003-01-16 Kevin Buettner <kevinb@redhat.com>
48 * lib/gdbserv-state.c (do_status_packet, gdbserv_data_packet): Fix
49 memset() calls - the arguments were in the wrong order.
50 (gdbserv_data_packet): Check return value from get_reg() call.
52 2002-12-02 Kevin Buettner <kevinb@redhat.com>
54 * include/gdbserv-utils.h, lib/gdbserv-utils.c
55 (gdbserv_be_bytes_to_reg, gdbserv_le_bytes_to_reg)
56 (gdbserv_be_bytes_from_reg, gdbserv_le_bytes_from_reg)
57 (gdbserv_host_bytes_to_reg, gdbserv_host_bytes_from_reg):
60 2002-11-04 Kevin Buettner <kevinb@redhat.com>
62 * Makefile.in, aclocal.m4, configure, lib/Makefile.in, qe/Makefile.in,
63 samples/Makefile.in, unix/configure: Regenerate configury using
64 aclocal 1.6.3, automake 1.6.3, and autoconf 2.53.
66 2002-08-22 Kevin Buettner <kevinb@redhat.com>
68 * lib/Makefile.am (INCLUDES): Remove references to bfd.
69 (THESOURCES): Remove bfd-loader.c from list.
70 * lib/Makefile.in: Regenerate.
71 * samples/Makefile.am (sample_DEPLIBS): Remove references to
73 * samples/Makefile.in: Regenerate.
75 2002-08-21 Kevin Buettner <kevinb@redhat.com>
77 * HOWTO, MAINTAINERS, NEWS, README, REMOTE-HACK-RULES,
78 configure.in, lib/Makefile.am, lib/gdbserv-target.c,
79 samples/Makefile.am, samples/async.c, samples/demo-target.c,
80 samples/main.c, samples/poll.c: Change ``libremote'' references
81 into ``RDA'' references.
82 * configure, lib/Makefile.in, samples/Makefile.in: Regenerate.
84 2002-08-15 Kevin Buettner <kevinb@redhat.com>
86 * include/gdblog.h, include/gdbloop.h, include/gdbsched.h,
87 include/gdbserv-client.h, include/gdbserv-input.h,
88 include/gdbserv-log.h, include/gdbserv-output.h,
89 include/gdbserv-target.h, include/gdbserv-utils.h,
90 include/gdbserv.h, include/gdbsocket.h, include/stdio-log.h,
91 lib/gdblog.c, lib/gdbloop.c, lib/gdbsched.c,
92 lib/gdbserv-input.c, lib/gdbserv-log.c, lib/gdbserv-output.c,
93 lib/gdbserv-state.c, lib/gdbserv-state.h,
94 lib/gdbserv-target.c, lib/gdbserv-utils.c, lib/gdbsocket.c,
95 lib/stdio-log.c, qe/README, qe/inc-backwards.c,
96 qe/inc-forward.c, qe/inc-gdblog.c, qe/inc-gdbloop.c,
97 qe/inc-gdbsched.c, qe/inc-gdbserv-client.c,
98 qe/inc-gdbserv-input.c, qe/inc-gdbserv-log.c,
99 qe/inc-gdbserv-output.c, qe/inc-gdbserv-target.c,
100 qe/inc-gdbserv-utils.c, qe/inc-gdbserv.c, qe/inc-gdbsocket.c,
101 qe/inc-stdio-log.c, samples/async.c, samples/demo-target.c,
102 samples/demo-target.h, samples/main.c, samples/poll.c,
103 samples/thread.c: Update copyright notices.
105 2002-08-14 Kevin Buettner <kevinb@redhat.com>
107 * include/bfd-loader.h: Delete.
108 * lib/bfd-loader.c: Delete.
109 * samples/main.c (main): Eliminate code for loading files.
110 (usage): Adjust usage message to account for the fact that we can
111 no longer load files.
113 2002-01-02 Ben Elliston <bje@redhat.com>
115 * MAINTAINERS: Update mail addresses.
117 2001-10-13 Kevin Buettner <kevinb@redhat.com>
119 * include/gdbserv-utils.h (gdbserv_be_bytes_to_reg)
120 (gdbserv_le_bytes_to_reg, gdbserv_be_bytes_from_reg)
121 (gdbserv_le_bytes_from_reg, gdbserv_native_bytes_to_reg)
122 (gdbserv_native_bytes_from_reg): New functions.
123 * lib/gdbserv-utils.c (config.h): Include.
125 (reverse_copy_bytes, gdbserv_be_bytes_to_reg)
126 (gdbserv_le_bytes_to_reg, gdbserv_be_bytes_from_reg)
127 (gdbserv_le_bytes_from_reg, gdbserv_host_bytes_to_reg)
128 (gdbserv_host_bytes_from_reg): New functions.
130 2001-09-28 Andrew Haley <aph@cambridge.redhat.com>
132 * samples/main.c (main): Work around SIGCHLD problem.
134 2001-09-27 David Woodhouse <dwmw2@redhat.com>
136 * lib/gdbserver-target.c (gdbserv-totarget): Zero sigval to indicate
137 success if target->process_signal succeeds, instead of doing so
140 2001-08-20 Jonathan Larmour <jlarmour@redhat.com>
142 * lib/gdbsocket.c (process_read): Treat a read reporting shutdown
143 or connection reset as EOF.
145 2001-08-02 Michael Keezer <mkeezer@redhat.com>
147 * unix/configure.in: Add am33_2.0 & mn10300.
148 * unix/config.in: Add AM33_LINUX_TARGET & AM33_2_0_LINUX_TARGET.
149 * unix/linux-target.c: am33_2.0 & mn10300 support.
151 2001-07-26 Michael Snyder <msnyder@redhat.com>
153 * lib/gdbserv-utils.c (gdbserv_raw_to_hex): Increment pointer.
155 2001-06-25 Michael Snyder <msnyder@redhat.com>
157 * include/gdbserv-target.h: Fill in the remaining GDB signal numbers.
159 2001-06-12 Corinna Vinschen <vinschen@redhat.com>
161 * configure.in: Add linux as possible host for xscale subdir.
162 * configure: Regenerated.
164 2001-04-26 Andrew Cagney <ac131313@redhat.com>
166 * lib/gdbsocket.c: Include <ctype.h>.
167 (dump_buf): New function. Handle unprintable characters.
171 * lib/bfd-loader.c (struct lng): Add exit_addr and loaded_p.
172 (fromtarget): Check for unexpected stops.
173 (bfd_loader_exit): Report the exit status and stop address.
175 2001-04-23 Andrew Cagney <ac131313@redhat.com>
177 * lib/gdbserv-target.c: Include <assert.h>.
178 (gdbserv_totarget): Abort when the target fails to handle either
179 START_ADDR or SIGVAL.
181 2001-04-23 Andrew Cagney <ac131313@redhat.com>
183 * include/gdblog.h (gdblog_xlong, gdblog_xlong_ftype): Declare.
184 (gdblog_new): Add log_xlong parameter.
185 * lib/gdblog.c (struct gdblog): Add log_xlong.
186 (gdblog_xlong): New function.
187 (gdblog_new): Initialize log_xlong.
188 * lib/stdio-log.c (do_stdio_log_xlong): New function.
189 (stdio_log): Add do_stdio_log_xlong.
191 * lib/bfd-loader.c (load_n_go): Use gdblog_xlong to print
194 2001-04-19 Andrew Cagney <ac131313@redhat.com>
196 * samples/async.c: Include <string.h> for strsignal.
198 2001-04-17 Alexandre Oliva <aoliva@redhat.com>
200 * acinclude.m4: Get macros from ../libtool.m4 and ../gettext.m4.
201 * configure.in: Call CY_WITH_NLS.
202 * samples/Makefile.am (sample_DEPLIBS): New. Copied from
203 sample_LDADD, except for libintl.a.
204 (sample_LDADD): Set as sample_DEPLIBS plus INTLLIBS.
205 (sample_DEPENDENCIES): New. Same as sample_DEPLIBS plus INTLDEPS.
206 * aclocal.m4, configure, samples/Makefile.in: Rebuilt.
208 2001-04-16 Andrew Cagney <ac131313@redhat.com>
210 * lib/gdbsocket.c (process_accept): Only SIGIO when
213 2001-04-15 Andrew Cagney <ac131313@redhat.com>
215 * include/bfd-loader.h (bfd_loader_exit): Replace bfd_shutdown.
216 * lib/bfd-loader.c (lng): Add ``exit_val''.
217 (fromtarget): Save the exit value.
218 (bfd_loader_exit): Call exit with ``exit_val''.
219 * samples/main.c (main): Replace bfd_shutdown with
222 2001-04-15 Andrew Cagney <ac131313@redhat.com>
224 * include/gdbserv-target.h (struct gdbserv_target): Add ``to''.
225 (gdbserv_totarget): Declare.
226 (struct gdbserv_target): Make process_set_pc's ``val'' parameter
228 * lib/gdbserv-target.c: Include "gdbserv-utils.h" and "gdbserv.h".
229 (gdbserv_totarget): New function.
231 * lib/gdbserv-state.c (gdbserv_data_packet): Rewrite ``c'', ``C'',
232 ``s'', ``S'' and ``i'' packet code. Use gdbserv_totarget. Never
233 transition into state GDBSERV_STATE_STEPPING.
234 * lib/gdbserv-state.h (enum gdbserv_state): Delete
235 GDBSERV_STATE_STEPPING.
236 * lib/gdbserv-state.c (state2str, fromtarget): Update.
237 (gdbserv_fromclient_break): Ditto..
239 * lib/bfd-loader.c (load_n_go): Compute the start address. Pass
240 it to gdbserv_totarget.
241 * samples/demo-target.c (demo_process_set_pc): New function.
242 (demo_target): Initialize process_set_pc.
244 2001-04-15 Andrew Cagney <ac131313@redhat.com>
246 * include/gdbserv-target.h: Add ``stop_addr'' parameter. Document.
247 (struct gdbserv_target): Update member ``from''.
248 * lib/gdbserv-target.c (gdbserv_fromtarget_reset)
249 (gdbserv_fromtarget_restarted, gdbserv_fromtarget_terminate)
250 (gdbserv_fromtarget_exit, gdbserv_fromtarget_thread_break)
251 (gdbserv_fromtarget_break, gdbserv_fromtarget): Update.
252 * lib/gdbserv-state.c (fromtarget): Update.
253 * lib/bfd-loader.c (fromtarget_stopped): Delete.
254 (fromtarget): Update.
255 * samples/demo-target.c (do_fromtarget_ready): Update.
257 2001-04-13 Andrew Cagney <ac131313@redhat.com>
259 * samples/demo-target.c: Replace demo_set_memo with
260 demo_set_thread_mem. Replace demo_continue_program with
261 demo_continue_thread.
263 * lib/Makefile.am (THESOURCES): Add bfd-loader.c
264 (INCLUDES): Add top level include and bfd directories.
265 * lib/Makefile.in: Regenerate.
266 * include/bfd-loader.h: New file.
267 * lib/bfd-loader.c: New file.
269 * samples/main.c: Include "bfd-loader.h", "gdbsched.h" and
271 (main): Add ``-v'' verbose option.
272 (main): If the parameter isn't numeric or ``-'' assume that it is
273 a file to load using bfd_load. Schedule a program quit event.
275 (fake_exit): New function.
276 * samples/Makefile.am (sample_LDADD): Add libbfd.la, libintl.a and
278 * samples/Makefile.in: Regenerate.
280 2001-04-13 Andrew Cagney <ac131313@redhat.com>
282 * samples/main.c: Include <unistd.h>, <signal.h>, <ctype.h>,
283 "gdbsched.h", "gdbserv-target.h" and <time.h>.
284 (main): Add -d option. Interpret ``-'' parameter as stdio.
285 Validate port number. Add usage/help message. Use variable
286 shutdown to determine if the startup worked.
287 (usage): New function.
288 (do_close): New function.
289 * samples/stdio.c: Delete.
290 * samples/Makefile.am (noinst_PROGRAMS): Delete stdio.
291 (stdio_SOURCES, stdio_LDADD): Delete.
292 * samples/Makefile.in: Regenerate.
294 2001-04-13 Andrew Cagney <ac131313@redhat.com>
296 * samples/demo-target.c (demo_target): New function.
297 (do_fromtarget_reset): New function.
298 (demo_attach): Use demo_target and do_fromtarget_reset. Take
299 server out of reset state.
300 * samples/thread.c (thread_attach): Call demo_target.
302 2001-04-12 Andrew Cagney <ac131313@redhat.com>
304 * include/gdbserv.h (gdbserv_state): Delete declaration
305 (GDBSERV_STATE_STUMBLING): Delete.
306 (enum gdbserv_state): Move from here.
307 * lib/gdbserv-state.h (enum gdbserv_state): Back to here.
308 * lib/gdbserv-state.c (state2str): Update.
309 * lib/gdbserv-target.c: Don't include "gdbserv.h".
311 2001-04-12 Andrew Cagney <ac131313@redhat.com>
313 * lib/gdbserv-state.c (gdbserv_fromclient_attach): Create a cycle
314 of GDBSERVs. Initialize ``from'' method in target vector.
315 (gdbserv_fromclient_detach): Clear ``from'' method.
316 (do_exit_packet): New function. Output an exit/terminate packet.
317 (fromtarget): New function.
318 (gdbserv_fromtarget_reset): Delete.
319 (gdbserv_fromtarget_break): Delete.
320 (gdbserv_fromtarget_thread_break): Delete.
321 (gdbserv_fromtarget_exit): Delete.
322 (gdbserv_fromtarget_terminate): Delete.
324 * include/gdbserv-target.h (gdbserv_fromtarget): Declare.
325 (enum gdbserv_fromtarget_event): Define.
326 (struct gdbserv_target): Add ``from''.
327 (GDBSERV_SIG): Move definitions to start of file.
329 * lib/gdbserv-state.h (struct gdbserv): Add ``from'' and ``to'' as
330 links up and down the target stack.
331 * lib/gdbserv-target.c: New file.
332 * lib/Makefile.am (THESOURCES): Add gdbserv-target.c
333 * lib/Makefile.in: Regenerate.
335 2001-04-12 Andrew Cagney <ac131313@redhat.com>
337 * lib/gdbsocket.c (gdbsocket_had_sigio_p): Delete.
338 (sigio_socket): Delete.
339 (gdbsocket_sigio_enable, gdbsocket_sigio_disable): Delete.
340 (gdbsocket_async, gdbsocket_async_p): New function and variable.
341 (async_fd): Only enable O_ASYNC when async selected.
342 (gdbsocket_startup): Don't call gdbsocket_sigio_disable.
344 * include/gdbsocket.h (gdbsocket_had_sigio_p): Delete.
345 (gdbsocket_sigio_enable, gdbsocket_sigio_enable): Delete.
346 (gdbsocket_async): New function.
348 * samples/async.c (set_poll_p): Replace handle_sigalrm.
349 (poll_p): Volatile global.
350 (main): Register signal handlers for both SIGIO and SIGALRM. Check
351 poll_p. Call gdbsocket_sigio to enable O_ASYNC on all file
354 * include/gdbloop.h (gdbloop_p): Delete.
355 (gdbloop_sigio_enable, gdbloop_sigio_disable): Delete.
356 * lib/gdbloop.c: Update.
358 2001-04-12 Andrew Cagney <ac131313@redhat.com>
360 * include/gdbsocket.h (gdbsocket_poll): Delete declaration.
361 * lib/gdbsocket.c (struct fds): Delete.
362 (gdbsocket_poll, fds_isset, fds_set): Delete functions.
363 * lib/gdbloop.c (poll_gdbsocket): Rename gdbloop_poll.
364 (gdbloop_poll): New function.
365 (gdbloop): Call poll_gdbsocket.
367 * samples/main.c (main): Call gdbloop_poll. Don't include <time.h>
368 * samples/demo-target.h, samples/demo-target.c: Update comments.
369 * samples/thread.c: Update comments.
371 2001-04-12 Andrew Cagney <ac131313@redhat.com>
373 * lib/gdbloop.c (gdbloop): Reverse file / queue processing order -
374 do the task queue second.
376 2001-04-11 Andrew Cagney <ac131313@redhat.com>
378 * samples/async.c: Include <signal.h>, "gdblog.h", "gdbsched.h"
381 * lib/gdbloop.c (gdbloop): Delete alarm code. Moved to
383 (handle_sigalarm): Delete. Moved to samples/async.c.
384 (gdbloop_sigio_enabled_p): Delete.
385 (gdbloop_sigio_enable, gdbloop_sigio_disable): Update.
387 * samples/async.c (handle_sigalarm): New function.
388 (main): Use alarm to handle timer events.
390 2001-04-11 Andrew Cagney <ac131313@redhat.com>
392 * lib/gdbserv-state.c (reset_state): New function. Fully
393 re-initialize gdbserv.
394 (gdbserv_fromclient_attach): Call reset_state.
395 (gdbserv_data_packet): Ditto for "r" and "R" packets.
397 * lib/gdbserv-state.h (struct gdbserv): Add ``event_thread'' and
400 * lib/gdbserv-state.c (gdbserv_fromtarget_thread_break): Update
401 ``event_thread'' and ``event_sigval''. Clear "continue_thread".
402 (do_status_packet): New function. Move "T" packet code to here.
403 (gdbserv_fromtarget_thread_break): Call do_status_packet.
404 (gdbserv_data_packet): Use do_status_packet to respond to "?".
405 (do_current_thread_query): Always return the general thread.
407 2001-04-11 Andrew Cagney <ac131313@redhat.com>
409 * lib/gdbloop.c (gdbloop_sigio_enabled_p): New global.
410 (handle_sigalarm): New function.
411 (gdbloop_sigio_enable): Register handle_sigalarm for SIGALRM.
412 (gdbloop_sigio_disable): Deregister SIGALRM.
413 (gdbloop): When gdbloop_sigio_enabled_p, schedule an alarm to
414 triger the next round of event processing.
416 2001-04-11 Andrew Cagney <ac131313@redhat.com>
418 * lib/gdbsched.c: Include "gdblog.h" and "gdbsocket.h".
419 (gdbsched_schedule, gdbsched_deschedule)
420 (gdbsched_dispatch): Add tracing.
422 * lib/gdbsched.c (gdbsched_schedule): Pre- rather than post-
423 increment sched_db. Stop the first sched tag being NULL.
425 2001-04-10 Andrew Cagney <ac131313@redhat.com>
427 * samples/demo-target.h (demo_break): Delete declaration.
428 (struct gdbserv_target): Delete declaration.
429 (demo_ticks_before_break_p): Delete declaration.
430 * samples/demo-target.c: Include <time.h>, <sys/time.h> and
432 (demo_ticks_before_break_p): Delete global variable.
433 (dispatch_break, sched_break): New functions.
434 (demo_break_program): Call sched_break.
435 (demo_restart_program): Ditto.
436 (demo_singlestep_program): Ditto.
437 (demo_cyclestep_program): Ditto.
438 (demo_continue_program): Ditto.
439 (demo_break): Delete function.
441 * samples/poll.c: Include <time.h>, <sys/time.h> and
442 "gdbsched.h". Delete redundant include of <sys/types.h>.
443 (main): Replace demo_ticks_before_break_p with call to
445 * samples/fdset.c (main): Ditto.
447 * samples/main.c: Include <time.h>, <sys/time.h> and "gdbloop.h".
448 (main): Replace gdbsocket_poll and demo_ticks_before_break_p with
450 * samples/stdio.c: Ditto.
452 * samples/thread.c: New file.
453 * samples/thread-target.c: Delete.
454 * samples/Makefile.am (thread_SOURCES): Update.
455 * samples/Makefile.in: Regnerate.
457 2001-04-11 Andrew Cagney <ac131313@redhat.com>
459 * samples/fdset.c: Delete. See lib/gdbloop.c.
460 * samples/Makefile.am (noinst_PROGRAMS): Delete fdset.
461 (fdset_SOURCES): Delete.
462 (fdset_LDADD): Ditto.
463 * samples/Makefile.in: Regenerate.
465 2001-04-11 Andrew Cagney <ac131313@redhat.com>
467 * include/gdbloop.h (gdbloop_p): Declare.
468 (gdbloop_sigio_enable, gdbloop_sigio_disable): Declare.
469 (gdbloop): Add TIMEOUT parameter.
470 * lib/gdbloop.c: Don't include <sys/types.h>. Include <assert.h>,
471 <signal.h> and <fcntl.h>.
472 (sigio_fd): New function.
473 (gdbloop_sigio_enable, gdbloop_sigio_disable): New functions.
474 (gdbloop_poll): Cleanup. Check gdbloop_p. Make static.
475 (gdbloop): Update to handle timeout as a parameter.
477 * include/gdbsocket.h (gdbsocket_poll): Deprecate.
478 (gdbsocket_sigio_disable): Deprecate.
479 (gdbsocket_sigio_enable): Deprecate.
480 (gdbsocket_had_sigio_p): Deprecate.
482 * samples/async.c: New file.
483 * samples/Makefile.am (noinst_PROGRAMS): Add async demo.
484 (async_LDADD, sample_SOURCES): Define.
485 * samples/Makefile.in: Regenerate.
486 * samples/demo-target.c (demo_break_program): Print a trace
489 2001-04-10 Andrew Cagney <ac131313@redhat.com>
491 * lib/gdbsocket.c (async_fd): Ensure that the SIGIO is delivered
493 (process_accept): Use kill SIGIO, instead of setting
494 gdbsocket_had_sigio_p, to force the re-read.
496 2001-04-10 Andrew Cagney <ac131313@redhat.com>
498 * qe/inc-gdbloop.c, qe/inc-gdbsched.c: New files.
499 * qe/Makefile.am (qe_SOURCES): Add inc-gdbloop.c and
501 * qe/Makefile.in: Regenerate.
503 2001-04-10 Andrew Cagney <ac131313@redhat.com>
505 * include/gdbsched.h, lib/gdbsched.c: New files. Simple
507 * lib/gdbloop.c, include/gdbloop.h: New files. Simple
509 * lib/Makefile.am (THESOURCES): Add gdbloop.c and gdbsched.c.
510 * lib/Makefile.in: Regenerate.
512 2001-04-10 Andrew Cagney <ac131313@redhat.com>
514 * include/gdbserv-utils.h: Add fake close of extern "C" to pacify
516 * include/gdbserv-target.h: Ditto.
517 * include/gdbserv-output.h: Ditto.
518 * include/gdbserv-input.h: Ditto.
519 * include/gdbserv-client.h: Ditto.
520 * include/gdbserv.h: Ditto.
522 2001-04-09 Michael Snyder <msnyder@redhat.com>
524 * lib/gdbserv-state.c (gdbserv_data_packet): Give preference to
525 threaded cyclestep method. Likewise threaded get_mem / set_mem.
527 2001-04-05 Andrew Cagney <ac131313@redhat.com>
529 * lib/gdbserv-state.c (gdbserv_fromtarget_thread_break): Revert
530 change ``2001-04-05 Andrew Cagney <ac131313@redhat.com>'' that
531 cleared the general_thread.
533 * lib/gdbserv-state.c (gdbserv_data_packet)
534 (do_select_thread_packet): Revert ``2001-04-05 Michael Snyder
535 <msnyder@redhat.com>'' that cleared the general_thread.
537 2001-04-05 Andrew Cagney <ac131313@redhat.com>
539 * lib/gdbserv-state.c (gdbserv_data_packet): Move code clearing
540 the general thread to gdbserv_fromtarget_thread_break.
542 2001-04-05 Michael Snyder <msnyder@redhat.com>
544 * gdbserv-state.c (gdbserv_data_packet): Discard any saved general
545 thread on step or continue. GDB doesn't always cancel it, but the
546 general thread should not persist between stop events.
547 (do_select_thread_packet): Both the continue
548 thread and the general thread may be set to null.
549 NOTE: All methods that may receive the general thread must be
550 prepared to receive NULL (defaulting to the current thread).
552 2001-04-03 David Smith <dsmith@redhat.com>
554 * lib/gdbserv-state.c (do_current_thread_query): Try to figure out
555 the correct thread to use when returning the thread id.
557 2001-04-02 Michael Snyder <msnyder@redhat.com>
559 * lib/gdbserv-state.c (do_get_registers_p_packet): Check for
560 get_thread_reg rather than get_reg, since that is what will
561 be used. While we're at it, check for reg_format and output_reg.
562 (gdbserv_data_packet): Give first preference to thread-aware
563 register methods (if defined) for g/G/P packets. That way, to
564 add thread awareness, a backend need only define the new methods
565 (without nullifying the old ones). This makes it possible to
566 fall back on the old ones if necessary. FIXME should it be an
567 error if there is no target register method? Also give first
568 preference to thread-aware step and continue methods.
570 2001-03-23 David Smith <dsmith@redhat.com>
572 * lib/gdbserv-state.c (gdbserv_fromtarget_thread_break): If a NULL
573 thread is passed in, try to figure out the correct thread to use.
574 In addition, don't change the value of the "continue_thread".
576 * samples/thread-target.c (demo_break): Calls
577 gdbserv_fromtarget_thread_break() with a NULL thread.
579 2001-03-22 Andrew Cagney <ac131313@redhat.com>
581 * lib/gdbsocket.c (struct session): Rename ``struct gdbsocket''.
582 (session_db): Rename gdb_sockets.
583 (gdbsocket_shutdown): Update.
584 (gdbsocket_reopen): Update.
585 (gdbsocket_fd_set): Update.
586 (gdbsocket_fd_isset): Update.
588 * include/gdbsocket.h (gdbsocket_fd_isset, gdbsocket_poll): Delete
589 paramters to_target_attach and target_attach_data.
590 (gdbsocket_startup): Add parameters to_target_attach and
593 * lib/gdbsockets.c (gdbscket_fd): Delete static variable.
594 (struct server): Declare.
595 (server_db): Declare static variable.
596 (gdbsocket_startup): Add to_target_attach and target_attach_data
597 parameters. Enter the server in the server_db.
598 (gdbsocket_shutdown): Handle servers in server_db instead of
600 (gdbsocket_fd_set): Ditto.
601 (gdbsocket_fd_isset): Ditto.
602 (process_accept): Replace to_target_attach and target_attach_data
603 with single ``struct server'' parameter.
604 (gdbsocket_fd_isset): Update call.
606 * samples/fdset.c (main): Update calls to gdbsocket_startup and
608 * samples/poll.c (main): Ditto.
609 * samples/main.c (main): Ditto for gdbsocket_startup and
611 * samples/stdio.c (main): Ditto for gdbsocket_poll.
613 Thu Mar 22 16:53:09 2001 David Taylor <taylor@redhat.com>
615 * lib/gdbserv-state.c (gdbserv_fromtarget_thread_break): When
616 output'ing a register, output the full length, not zero bytes.
618 2001-03-16 Elena Zannoni <ezannoni@redhat.com>
620 * include/gdbserv-target.h (struct gdbserv_target): Add
621 parameter to detach function pointer.
622 * lib/gdbserv-state.c (gdbserv_fromclient_detach): Pass
623 gdbserv->target to detach target call.
624 * samples/demo-target.c (demo_detach): Add parameter.
625 * samples/thread-target.c (demo_detach): Add parameter.
626 * win32/win32-target.c (win32-detach): Add new parameter.
628 2001-03-15 Andrew Cagney <ac131313@redhat.com>
630 * Makefile.am, configure.in: Add qe directory.
631 * Makefile.in, configure: Regenerate.
633 * qe/README: New file.
634 * qe/Makefile.am: New file.
635 * qe/Makefile.in: Regenerate.
636 * qe/inc-backwards.c: New file.
637 * qe/inc-forward.c: New file.
638 * qe/inc-gdblog.c: New file.
639 * qe/inc-gdbserv-client.c: New file.
640 * qe/inc-gdbserv-input.c: New file.
641 * qe/inc-gdbserv-log.c: New file.
642 * qe/inc-gdbserv-output.c: New file.
643 * qe/inc-gdbserv-target.c: New file.
644 * qe/inc-gdbserv-utils.c: New file.
645 * qe/inc-gdbserv.c: New file.
646 * qe/inc-gdbsocket.c: New file.
647 * qe/inc-stdio-log.c: New file.
650 2001-03-15 Andrew Cagney <ac131313@redhat.com>
652 * lib/gdbserv-input.c (gdbserv_input_trace): Delete variable.
653 * lib/gdbsocket.c (gdbsocket_trace): Ditto.
654 * lib/gdbserv-state.c (gdbserv_state_trace): Ditto.
655 * lib/gdbserv-output.c (gdbserv_output_trace): Ditto.
656 * include/gdbsocket.h (gdbsocket_trace): Delete declaration.
657 * include/gdbserv.h (gdbserv_state_trace, gdbserv_input_trace)
658 (gdbserv_output_trace): Ditto.
660 2001-03-14 Andrew Cagney <ac131313@redhat.com>
662 * Move native/ directory to unix/.
663 * configure.in (*linux*): Update.
664 * configure: Regenerate.
665 * aclocal.m4: Regenerate.
667 2001-03-14 Elena Zannoni <ezannoni@redhat.com>
669 * lib/gdbserv-state.h, include/gdbserv-state.h:
670 Revert the previous change. gdbserv-state.h should
673 2001-03-14 Elena Zannoni <ezannoni@redhat.com>
675 * lib/gdbserv-state.h: Move from here.
676 * include/gdbserv-state.h: To here.
678 2001-03-14 Andrew Cagney <ac131313@redhat.com>
680 * lib/gdblog.h: Move from here.
681 * include/gdblog.h: To here.
682 * lib/gdbserv-client.h, include/gdbserv-client.h: Ditto.
683 * lib/gdbserv-input.h, include/gdbserv-input.h: Ditto.
684 * lib/gdbserv-log.h, include/gdbserv-log.h: Ditto.
685 * lib/gdbserv-output.h, include/gdbserv-output.h: Ditto.
686 * lib/gdbserv-target.h, include/gdbserv-target.h: Ditto.
687 * lib/gdbserv-utils.h, include/gdbserv-utils.h: Ditto.
688 * lib/gdbserv.h, include/gdbserv.h: Ditto.
689 * lib/gdbsocket.h, include/gdbsocket.h: Ditto.
690 * lib/stdio-log.h, include/stdio-log.h: Ditto.
692 * lib/Makefile.am (INCLUDES): Update. Headers moved to ../include.
693 * lib/Makefile.in: Regenerate.
694 * samples/Makefile.am (INCLUDES): Ditto.
695 * samples/Makefile.in: Regenerate.
697 2001-03-02 Andrew Cagney <ac131313@redhat.com>
699 * lib/Makefile.am (THESOURCES): Add gdblog.c, stdio-log.c and
701 * lib/Makefile.in: Regenerate.
702 * lib/gdblog.h, lib/gdblog.c: New files.
703 * lib/stdio-log.h, lib/stdio-log.c: New files.
704 * lib/gdbserv-log.h, lib/gdbserv-log.c: New files.
706 * lib/gdbsocket.h (gdbsocket_trace): Document as deprecated.
707 (gdbsocket_log): Declare variable.
708 * lib/gdbsocket.c: Include "gdblog.h". Update to use gdblog
709 interface for tracing.
710 (gdbsocket_log): Define variable.
712 * lib/gdbserv.h (gdbserv_state_trace, gdbserv_input_trace)
713 (gdbserv_output_trace): Document as deprecated.
714 * lib/gdbserv-input.c: Include "gdblog.h" and "gdbserv-log.h".
715 Update to use gdblog interface for tracing.
716 * lib/gdbsocket.c: Ditto.
717 * lib/gdbserv-output.c: Ditto.
718 * lib/gdbserv-state.c: Ditto.
719 (log_state): New function.
721 * samples/fdset.c: Include "gdblog.h", "stdio-log.h" and
723 (main): Update to use gdbsocket_log, gdbserv_warning_log and
725 * samples/main.c: Ditto.
726 * samples/poll.c: Ditto.
727 * samples/stdio.c: Ditto.
728 * samples/demo-target.c (demo_attach): Delete code initializing
730 * samples/thread-target.c (demo_attach): Ditto.
732 2001-03-02 Andrew Cagney <ac131313@redhat.com>
734 * samples/thread-target.c (thread_lookup_by_id): Fix printf fmt
736 (thread_info): Print thread ID, not an internal thread address.
738 2001-03-02 Andrew Cagney <ac131313@redhat.com>
740 * configure.in: Add support for --enable-build-warnings and
741 (--enable-libremote-build-warnings.
742 * configure: Regenerate.
744 * Makefile.am (WARN_CFLAGS, WERROR_CFLAGS): Define. Initialized
747 * Makefile.in: Regenerate.
748 * samples/Makefile.am, samples/Makefile.in: Ditto.
749 * lib/Makefile.am, lib/Makefile.in: Ditto.
751 Thu Dec 21 02:54:39 2000 Andrew Cagney <cagney@b1.cygnus.com>
753 * samples/thread-target.c: Include <string.h>.
754 (thread_info): Use sprintf and strdup instead of asprintf.
756 Thu Dec 21 02:11:49 2000 Andrew Cagney <cagney@b1.cygnus.com>
758 * lib/gdbserv-utils.h: Declare ``struct gdbserv'' and ``struct
760 * lib/gdbserv-output.h: Ditto.
761 * lib/gdbserv-input.h: Declare ``struct gdbserv''.
763 Wed Dec 20 17:19:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
765 * samples/thread-target.c: New file.
766 * samples/Makefile.am (noinst_PROGRAMS): Add the program thread.
767 (thread_SOURCES, thread_LDADD): Define.
769 Wed Dec 20 15:51:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
771 * lib/gdbserv-output.h, lib/gdbserv-input.h, lib/gdbserv-client.h,
772 lib/gdbserv-state.h, lib/gdbserv.h, lib/gdbsocket.h: Remove
773 #ifndef wrappers. Not needed.
775 Wed Dec 20 16:29:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
777 * lib/gdbserv-state.c (gdbserv_data_packet): Separate check for
778 qRcmd from check that the target supports it.
779 (gdbserv_data_packet): Remove #if 1 from around ``P'' packet code.
780 (gdbserv_data_packet): Check for process_get_reg when handling
782 (gdbserv_data_packet): Check for target support before processing
785 Wed Dec 20 16:12:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
787 * lib/gdbserv-target.h (struct gdbserv_target): Add thread aware
788 memory access methods - get_thread_mem, set_thread_mem.
789 * lib/gdbserv-state.c (gdbserv_data_packet): Rewrite memory
790 read/write code to use thread aware methods when available.
792 Wed Dec 20 15:36:24 2000 Andrew Cagney <cagney@b1.cygnus.com>
794 * lib/gdbserv-target.h: Add thread aware resume methods -
795 continue_thread, cyclestep_thread, singlestep_thread.
796 * lib/gdbserv-state.c (gdbserv_data_packet): Rewrite continue code
797 to use thread mechanism when available.
799 Wed Dec 20 12:09:42 2000 Andrew Cagney <cagney@b1.cygnus.com>
801 * lib/gdbserv-target.h (struct gdbserv_target): Add thread aware
802 register methods - next_gg_reg, next_expedited_reg, reg_format,
803 set_thread_reg, get_thread_reg.
805 * lib/gdbserv-state.c (output_thread_reg): New function. Use
806 thread aware methods to output a register.
807 (do_get_registers_g_packet): Ditto.
808 (do_set_registers_g_packet): Ditto.
809 (do_get_registers_p_packet): Ditto.
810 (do_set_registers_p_packet): Ditto.
811 (gdbserv_data_packet): Use new functions to process ``G'', ``g'',
812 ``p'' and ``P'' packets.
813 (gdbserv_fromtarget_thread_break): Update using thread aware
814 methods when available.
816 Wed Dec 20 11:46:32 2000 Andrew Cagney <cagney@b1.cygnus.com>
818 * lib/gdbserv-target.h (gdbserv_fromtarget_thread_break): Declare.
819 * lib/gdbserv-state.c (gdbserv_fromtarget_break): Call
820 gdbserv_fromtarget_thread_break.
821 (gdbserv_fromtarget_thread_break): New function. Replace
822 gdbserv_fromtarget_break. Return thread ID when known. Fix
823 formatting of expedited registers.
825 Wed Dec 20 10:26:36 2000 Andrew Cagney <cagney@b1.cygnus.com>
827 * lib/gdbserv-state.c: Include <assert.h>.
828 (gdbserv_data_packet): Add support for ``H'', ``T'' packets. Add
829 support for ``ThreadInfo'', ``ThreadExtraInfo'' and ``C'' queries.
830 (do_select_thread_packet): New function, handle ``H'' packet.
831 (do_current_thread_query): New function, handle ``C'' query.
832 (do_thread_info_query): New function.
833 (do_thread_extra_info_query): New function.
834 (do_thread_alive_packet): New function, handle ``T'' packet.
836 2000-12-19 <brolley@redhat.com>
838 * configure.in: Rename gidl to cidl. More detailed messages for
839 subdirs not supported on various hosts/targets.
840 * configure: regenerated.
842 Tue Dec 19 17:51:58 2000 Andrew Cagney <cagney@b1.cygnus.com>
844 * lib/gdbserv-output.c: Include <assert.h>.
845 (gdbserv_output_reg_beb, gdbserv_output_reg_leb): Use assert to
847 (gdbserv_output_reg_beb, gdbserv_output_reg_leb): Handle zero reg.
849 * lib/gdbserv-input.c (gdbserv_input_hex_long): New function.
850 * lib/gdbserv.h (int gdbserv_input_hex_long): Declare.
852 * lib/gdbserv-utils.c (gdbserv_reg_to_ulong,
853 gdbserv_reg_to_ulonglong, gdbserv_ulong_to_reg,
854 gdbserv_ulonglong_to_reg): Change return type to void.
855 (gdbserv_reg_to_ulong, gdbserv_reg_to_ulonglong): Make ``reg''
857 (unpack_ulonglong): New function.
858 (gdbserv_ulong_to_reg, gdbserv_long_to_reg,
859 gdbserv_ulonglong_to_reg, gdbserv_longlong_to_reg): Use.
860 * lib/gdbserv-utils.h (gdbserv_reg_to_ulong,
861 gdbserv_reg_to_ulonglong, gdbserv_ulong_to_reg,
862 gdbserv_ulonglong_to_reg): Update function declarations.
864 2000-12-18 David Smith <dsmith@redhat.com>
866 * lib/gdbserv-client.h, lib/gdbserv-input.h, lib/gdbserv-output.h:
867 Added macros to guard against mutiple inclusion and added C++
868 support (by adding 'extern "C"').
869 * lib/gdbserv-state.h, lib/gdbserv-target.h, lib/gdbserv-utils.h:
871 * lib/gdbserv.h, lib/gdbsocket.h: Ditto.
873 2000-11-28 Michael Snyder <msnyder@cleaver.cygnus.com>
875 * lib/gdbserv-state.c (gdbserv_data_packet): Return error if
876 get_mem method does not return the requested number of bytes.
878 2000-11-21 Corinna Vinschen <vinschen@cygnus.com>
880 * configure.in: Add subdir dependency for win32 target.
882 2000-11-14 Michael Snyder <msnyder@cleaver.cygnus.com>
884 * samples/demo-target.c (demo_get_mem, demo_set_mem):
885 Add a memory cache that can be modified by GDB.
886 (demo_process_get_regs, demo_process_set_regs):
887 Add a register cache that can be modified by GDB.
888 (demo_attach): Hook in demo_process_set_regs.
889 (demo_set_mem): Check for malloc failure in pseudo-memory cache.
891 2000-11-08 Rudy Folden <rfolden@redhat.com>
893 * configure.in (case "$target" in sh-*): Removed erroneous CC case.
894 * native/configure.in (case "$target" in sh-*): Removed erroneous CC case.
896 2000-11-07 Rudy Folden <rfolden@redhat.com>
898 * README: Doc update.
900 2000-11-07 Rudy Folden <rfolden@redhat.com>
902 * configure.in (case "$target" in sh-*): Added case for CC.
903 * native/configure.in (case "$target" in sh-*): Added case for CC.
904 * native/Makefile.am (CC=, CFLAGS=): removed erroneous CC ad CFLAGS entiries.
905 * native/Makefile.in (CC=, CFLAGS=): removed erroneous CC ad CFLAGS entiries.
907 2000-09-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
909 With Andrew Cagney <cagney@b1.cygnus.com>
910 * lib/gdbserv-input.c (add_char_to_packet): Improve handling of
911 missing ACK packets, NACKs and other exceptional conditions.
912 This fixies a bug where libremote would lock up and ignore everything
914 (gdbserv_input_wait_for_ack): Do not print switch to ACK warning
915 when retrying. Rephrase the warning message.
917 2000-09-13 Michael Snyder <msnyder@michael.wirespeed.com>
919 * lib/gdbserv-state.c (gdbserv_fromtarget_terminate): New function.
920 (gdbserv_fromtarget_exit): Rename arg from signum to exitcode.
921 * lib/gdbserv-target.h (gdbserv_fromtarget_terminate): Export.
923 Thu Sep 7 16:53:22 2000 David Taylor <taylor@texas.cygnus.com>
925 * lib/gdbserv-utils.c (gdbserv_ulong_to_reg,
926 gdbserv_ulonglong_to_reg): New functions.
927 * lib/gdbserv-utils.h (gdbserv_ulong_to_reg,
928 gdbserv_ulonglong_to_reg): Declare them.
930 2000-09-06 Michael Snyder <msnyder@cleaver.cygnus.com>
932 * configure.in: Add "native" subdirectory to targ_subdirs.
933 * configure: Regenerate.
934 * configure.in: Remove native/Makefile from output.
935 Native subdirectory now has its own configure and automake.
936 * configure: Regenerate.
938 Thu Jun 8 14:32:21 2000 David Taylor <taylor@texas.cygnus.com>
940 * lib/gdbsocket.c (process_read): change "else if" to "if",
941 otherwise, when gdbsocket_trace is set, packets never get
944 Tue May 23 17:33:02 2000 Andrew Cagney <cagney@b1.cygnus.com>
946 * samples/poll.c (main): Pass POLLFDS and not POLL to
949 * samples/demo-target.c (sole_target): Delete global.
950 * samples/demo-target.c (demo_attach): Create and initialize
951 target vector at runtime.
953 Tue May 23 16:44:26 2000 Andrew Cagney <cagney@b1.cygnus.com>
955 * lib/gdbsocket.c, lib/gdbserv-client.h, lib/gdbserv-target.h:
958 Mon May 22 20:29:05 2000 Andrew Cagney <cagney@b1.cygnus.com>
960 * samples/demo-target.c (sole_target): Fix initialization.
962 Thu May 18 10:55:33 2000 Andrew Cagney <cagney@b1.cygnus.com>
964 * lib/gdbsocket.c: Do not include "gdbserv.h". "gdbserv-client.h"
965 provides all required server declarations.
967 2000-05-17 Fernando Nasser <fnasser@cygnus.com>
969 * lib/gdbserv-output.c (gdbserv_output_string_as_bytes): New function.
970 Send a null terminated string as hex encoded bytes (useful for
971 "O" packets and "qRcmd" answers).
972 * lib/gdbserv.h: Add prototype of the above.
973 * lib/gdbserv-state.c (gdbserv_data_packet): Fix and reactivate code
974 that handles "p" packets.
975 * lib/gdbserv-target.h: Add prototype for process_get_reg callback
976 (activated by a "p" packet).
978 Wed May 3 18:46:02 2000 Andrew Cagney <cagney@b1.cygnus.com>
980 * lib/gdbsocket.h (enum gdbsocket_fd_event,
981 gdbsocket_fd_set_ftype, gdbsocket_fd_isset_ftype): Declare.
982 (gdbsocket_fd_set, gdbsocket_fd_isset): Pass fd_set/fd_isset and
983 context instead of readfs.
984 * lib/gdbsocket.c (gdbsocket_fd_set): Replace ``fd_set'' with with
985 function parameter for accumulating file descriptors.
986 (gdbsocket_fd_isset): Ditto with a function parameter that
987 indicates that a file descriptor is ready.
988 (struct fds): Define.
989 (fds_set, fds_isset): New functions.
990 (gdbsocket_poll): Update. Add support for both read and write
993 * samples/fdset.c (struct fdset, set, isset): Declare.
994 (main): Update to use new gdbsocket_fd_set / gdbsocket_fd_isset
997 * samples/Makefile.am: Add program poll.
998 * samples/Makefile.in: Re-generate.
999 * samples/poll.c: New file. Demonstrate gdbsocket's poll interface.
1001 Mon Apr 24 19:33:35 2000 Andrew Cagney <cagney@b1.cygnus.com>
1003 * samples/demo-target.c (demo_attach, demo_continue_program,
1004 demo_detach): Write traces to STDERR instead of STDOUT.
1006 * samples/stdio.c: New file.
1007 * samples/Makefile.am (noinst_PROGRAMS): Add stdio.
1008 * samples/Makefile.in: Re-generate.
1010 * lib/gdbsocket.h (gdbsocket_reopen): Add declaration.
1011 * lib/gdbsocket.c (process_accept): Use gdbsocket_reopen.
1012 (gdbsockt_reopen): New function.
1014 Mon Apr 24 19:09:29 2000 Andrew Cagney <cagney@b1.cygnus.com>
1016 * lib/gdbsocket.c (gdbsocket_fd): Initialize to -1.
1017 (gdbsocket_shutdown, gdbsocket_fd_set, gdbsocket_fd_isset): Do not
1018 assume that there is an open port.
1019 (gdbsocket_startup): Mark gdbsocket_fd as closed.
1021 Mon Apr 24 18:43:29 2000 Andrew Cagney <cagney@b1.cygnus.com>
1023 * lib/gdbsocket.h, lib/gdbsocket.c: Update comments.
1024 (gdbsocket_attach_ftype): Replace typedef gdbsocket_attach.
1025 * lib/gdbsocket.c (process_accept, gdbsocket_fd_isset,
1026 gdbsocket_poll): Update.
1027 (process_read): Document interface flaw.
1029 Mon Apr 24 18:12:14 2000 Andrew Cagney <cagney@b1.cygnus.com>
1031 * lib/gdbsocket.c (struct gdbsocket): Replace ``fd'' with
1032 ``readfd'' and WRITEFD. Add ``close'' method.
1033 (gdbsocket_shutdown): Update. Use ``close'' method.
1034 (process_read): Ditto. Replace ``fd'' with ``readfd''.
1035 (raw_write): Ditto. Replace ``fd'' with ``writefd''.
1036 (session_close): New function. Close ``readfd''.
1037 (process_accept): Update. Initialize ``close'' method with
1039 (gdbsocket_fd_isset, gdbsocket_fd_set): Replace ``fd'' with
1042 Mon Apr 24 17:14:21 2000 Andrew Cagney <cagney@b1.cygnus.com>
1044 * samples/demo-target.c (sole_target): Fix initialization of
1047 2000-04-17 Fernando Nasser <fnasser@cygnus.com>
1049 * HOWTO: New version. More complete, includes architecture.
1050 Callback function prototypes are removed and related comments
1051 moved to lib/gdbserv-target.h.
1053 Mon Apr 17 17:11:30 2000 Fernando Nasser <fnasser@cygnus.com>
1055 * lib/gdbserv-state.c (gdbserv_data_packet): Add processing of a
1058 Mon Apr 17 17:11:30 2000 Fernando Nasser <fnasser@cygnus.com>
1060 * lib/gdbserv-target.h (struct gdbserv-target): Add comments
1061 relating the callback routines to the corresponding remote
1064 2000-04-12 Frank Ch. Eigler <fche@redhat.com>
1066 * HOWTO: Remove mention of gdbserv_fromclient calls. Fix some
1067 typos. Minor rewording.
1069 2000-04-11 Fernando Nasser <fnasser@cygnus.com>
1071 * HOWTO: New file. A brief guide to write code that use libremote.
1073 Wed Apr 12 22:35:34 2000 Andrew Cagney <cagney@b1.cygnus.com>
1075 * lib/gdbserv.h (gdbserv_target_attach, gdbserv_fromclient_attach,
1076 gdbserv_fromclient_detach, gdbserv_fromclient_data,
1077 gdbserv_fromclient_break): Move from here.
1078 * lib/gdbserv-client.h: To here.
1080 * lib/gdbserv.h (gdbserv_fromtarget_break,
1081 gdbserv_fromtarget_reset, gdbserv_fromtarget_exit): Move from
1083 * lib/gdbserv-target.h: To here.
1085 Wed Apr 12 23:39:33 2000 Andrew Cagney <cagney@amy.cygnus.com>
1087 * configure.in: Configure in ASVP when ASVPLAB is defined.
1088 * configure: Re-generate.
1090 Wed Apr 12 22:06:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
1092 * samples/fdset.c: Include <stdlib.h> for atoi.
1093 Include <string.h>, work around FreeBSD header problem.
1094 * samples/demo-target.c: Include <stdlib.h> for rand.
1095 (demo_get_mem): Add paren around ``+'' and ``%'' per GCCs
1097 * samples/main.c: Include <stdlib.h> for atoi.
1098 * lib/gdbserv-state.c: Include <string.h> for memset.
1100 Wed Apr 12 20:22:36 2000 Andrew Cagney <cagney@b1.cygnus.com>
1102 * lib/gdbserv-utils.h, lib/gdbserv-utils.c (gdbserv_reg_to_hex):
1103 Delete. Replaced by gdbserv_output_reg_beb and
1104 gdbserv_output_reg_leb.
1106 Wed Apr 12 19:13:58 2000 Andrew Cagney <cagney@b1.cygnus.com>
1108 * lib/gdbserv-state.c (gdbserv_state): New function.
1109 * lib/gdbserv-state.h (enum gdbserv_state): Move from here.
1110 * lib/gdbserv.h (enum gdbserv_state): To here.
1111 (gdbserv_state): Add declaration.
1113 Tue Apr 11 20:20:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
1115 * samples/demo-target.c, samples/demo-target.h: New files. Copy
1116 demo target in main.c.
1117 * samples/main.c: Delete demo target code. Include
1119 * samples/Makefile.am: Update.
1121 * samples/fdset.c: New file. Demo gdbsocket.h's FD_SET interface.
1122 * samples/Makefile.am: Add program `fdset'.
1123 * samples/Makefile.in, stamp-h.in: Re-generate.
1125 2000-04-11 Fernando Nasser <fnasser@cygnus.com>
1127 * configure.in: Add check for target-dependent subdirectories.
1128 * configure: Regenerate.
1129 * Makefile.am: Use targ_subdirs generated above.
1130 * Makefile.in: Regenerate
1132 2000-04-11 Fernando Nasser <fnasser@cygnus.com>
1134 * configure.in: Test for host byte order.
1135 * config.in: Regenerate.
1136 * configure: Regenerate.
1138 Tue Apr 11 20:06:34 2000 Andrew Cagney <cagney@b1.cygnus.com>
1140 * lib/gdbsocket.h: Break dependency on "gdbserv.h".
1141 (gdbsocket_attach): New type.
1142 (struct gdbserv, struct gdbserv_target): Add declarations.
1143 * lib/gdbsocket.c (process_accept, gdbsocket_fd_isset,
1144 gdbsocket_poll): Update.
1146 Tue Apr 11 18:36:06 2000 Andrew Cagney <cagney@amy.cygnus.com>
1148 * lib/gdbsocket.c (gdbsocket_shutdown): Only trace when
1149 gdbsocket_trace. Avoid core dump.
1150 (gdbsocket_fd_set): New function.
1151 (gdbsocket_fd_isset): New function - better name?
1152 (gdbsocket_poll): Use gdbsocket_fd_set and gdbsocket_fd_isset to
1154 * lib/gdbsocket.h (gdbsocket_fd_set, gdbsocket_fd_isset): Add
1155 declarations conditional on having FD_SET.
1157 * samples/main.c: Do not include "gdbserv-client.h". "gdbsocket.h"
1158 implements the client side code.
1160 Tue Apr 11 17:49:29 2000 Andrew Cagney <cagney@amy.cygnus.com>
1162 * lib/gdbserv-state.h: Document that the file is gdbserv internal.
1163 * samples/main.c: Include system headers before stub headers.
1164 * lib/gdbserv.h: Don't include <stdio.h>.
1166 2000-04-06 Frank Ch. Eigler <fche@redhat.com>
1168 MAINTAINERS: New file.
1169 Makefile.am: New file.
1172 REMOTE-HACK-RULES: New file.
1173 configure.in: New file.
1174 Makefile.in: New generated file.
1175 aclocal.m4: New generated file.
1176 config.in: New generated file.
1177 configure: New generated file.
1178 stamp-h.in: New generated file.
1180 By Andrew Cagney <cagney@cygnus.com>:
1181 lib/ARCH: Imported file.
1182 lib/Makefile.am: New file.
1183 lib/Makefile.in: New generated file.
1184 lib/gdbserv-client.h: Imported file.
1185 lib/gdbserv-input.c: Imported file.
1186 lib/gdbserv-input.h: Imported file.
1187 lib/gdbserv-output.c: Imported file.
1188 lib/gdbserv-output.h: Imported file.
1189 lib/gdbserv-state.c: Imported file.
1190 lib/gdbserv-state.h: Imported file.
1191 lib/gdbserv-target.h: Imported file.
1192 lib/gdbserv-utils.c: Imported file.
1193 lib/gdbserv-utils.h: Imported file.
1194 lib/gdbserv.h: Imported file.
1195 lib/gdbsocket.c: Imported file.
1196 lib/gdbsocket.h: Imported file.
1198 samples/Makefile.am: New file.
1199 samples/Makefile.in: New generated file.
1200 samples/main.c: New file.
1207 version-control: never