OSDN Git Service

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