OSDN Git Service

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