OSDN Git Service

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