OSDN Git Service

* ptrace-target.h, ptrace-target.c (ptrace_write_user)
[pf3gnuchains/pf3gnuchains3x.git] / rda / unix / ChangeLog
1 2002-12-18  Kevin Buettner  <kevinb@redhat.com>
2
3         * ptrace-target.h, ptrace-target.c (ptrace_write_user)
4         (ptrace_read_user): Add struct gdbserv argument.
5         * linux-target.c: Fix all callers.
6         * ptrace-target.c (ptrace_write_user, ptrace_read_user): Add
7         debugging printf()s.
8         (ptrace_xfer_mem): Fix debugging printf()s so that they'll print
9         useful results when sizeof (long long) is the same as
10         sizeof (ptrace_xfer_type).
11         (ptrace_xfer_mem): Decode address using gdbserv_host_bytes_from_reg()
12         instead of gdbserv_reg_to_ulong().
13
14 2002-12-02  Kevin Buettner  <kevinb@redhat.com>
15
16         * linux-target.c (linux_get_reg, linux_set_reg, reg_from_regset)
17         (reg_to_regset, get_regset, put_regset reg_from_gregset)
18         (reg_to_gregset, reg_from_fpregset, reg_to_fpregset)
19         (reg_from_xregset, reg_to_xregset): Adjust all calls to
20         gdbserv_host_bytes_to_reg() and gdbserv_host_bytes_from_reg()
21         to account for change in interface.  Remove code which is
22         no longer needed due to improvements in the aforementioned
23         functions.
24         (sign_extend): New constant.
25         (FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO, FPC_CSR, FPC_EIR):
26         Make sure these are defined.
27         (PROTO_SIZE): Define.
28         (reginfo) [MIPS_LINUX_TARGET]: Use PROTO_SIZE to initialize
29         table with size (width) of registers to use when communicating
30         with the client.
31         (NUM_REGS, PC_REGNUM, reginfo) [MIPS64_LINUX_TARGET]: Define.
32
33 2002-11-19  Michael Snyder  <msnyder@redhat.com>
34
35         * ptrace-target.c: Fix typo in copyright.
36
37 2002-08-23  Kevin Buettner  <kevinb@redhat.com>
38
39         * linux-target.c (linux_get_reg, linux_set_reg): Print an
40         error message for out of bound registers.
41
42 2002-08-23  Kevin Buettner  <kevinb@redhat.com>
43
44         * linux-target.c (NUM_REGS) [X86_LINUX_TARGET]: Bump to 42.
45         (getregs_setregs_reginfo) [X86_LINUX_TARGET]: Add entry for
46         register ``orig_eax''.
47         (linux_get_reg, linux_set_reg): Make sure ``regno'' value is valid.
48         (linux_detach, linux_attach, decr_pc_after_break): Call fprintf()
49         instead of printf().
50         (linux_detach, linux_attach): Don't always print informational
51         messages.
52         * ptrace-target.c (handle_waitstatus, ptrace_detach, ptrace_attach):
53         Don't always print informational messages.  Use fprintf() instead
54         of printf().
55         (noop_get_trap_number, noop_compute_signal, noop_exit_program)
56         (noop_signlestep_program, noop_break_program): Delete.
57         (ptrace_flush_i_cache): Renamed from noop_flush_i_cache.  Update
58         reference in ptrace_attach().
59         (continue_lwp, singlestep_lwp, attach_lwp, stop_lwp, ps_pstop)
60         (ps_continue, ps_lstop): Use fprintf() instead of printf().
61         * server.c (errno.h): Include.
62         (usage): New function.
63         (main): Add option processing code.
64         * server.h (struct child_process): Add new field,
65         ``debug_informational''.
66         * thread-db.c (ps_plog, select_pending_event, send_pending_signals)
67         (wait_all_threads, thread_db_check_child_state): Use fprintf()
68         instead of printf().
69         (thread_db_detach): Conditionally print informational messages.
70         Use fprintf() instead of printf().
71
72 2002-08-21  Kevin Buettner  <kevinb@redhat.com>
73
74         * Makefile.am, configure.in, dummy-target.c, linux-target.c,
75         ptrace-target.c, ptrace-target.h, server.h, solaris-target.c,
76         thread-db.c: Change ``libremote'' references into ``RDA''
77         references.
78         * Makefile.in, configure: Regenerate.
79
80 2002-08-15  Kevin Buettner  <kevinb@redhat.com>
81
82         * dummy-target.c, gdb_proc_service.h, gdbserv-thread-db.h,
83         linux-target.c, no-threads.c, ptrace-target.c,
84         ptrace-target.h, server.c, server.h, solaris-target.c,
85         thread-db.c: Update copyright notices.
86
87 2002-05-16  Kevin Buettner  <kevinb@redhat.com>
88
89         * config.in (GREGSET_T): Renamed from GDB_GREGSET_T.
90         (FPREGSET_T): Renamed from GDB_FPREGSET_T.
91         * configure.in: Likewise.
92         * gdbserv-thread-db.h: Likewise.
93         * linux-target.c: Likewise.
94         * thread-db.c: Likewise.
95         * gdb_proc_service.h: Remove everything that's not absolutely
96         needed.
97
98 2002-02-01  Kevin Buettner  <kevinb@redhat.com>
99
100         * configure.in (arm32): Change to ``yes''.
101         * configure: Regenerate.
102
103 2002-01-30  Kevin Buettner  <kevinb@redhat.com>
104
105         * linux-target.c (linux_get_reg) [GETREGS_SETREGS_REGINFO]: Add
106         NOREGS support.
107         (linux_set_reg) [GETREGS_SETREGS_REGINFO]: Likewise.
108
109 2002-01-28  Kevin Buettner  <kevinb@redhat.com>
110
111         * linux-target.c (write_reg_bytes): Print return status in
112         ptrace failure message.
113         * ptrace-target.c (ptrace_write_user): Enable existing 
114         Linux/MIPS related kernel bug workaround when MIPS_LINUX_TARGET
115         is defined (which is in addition to _MIPSEL).
116
117 2002-01-28  Kevin Buettner  <kevinb@redhat.com>
118
119         * thread-db.c (struct regset_cache): New struct declaration.
120         (thread_db_map_id2thr_cache_valid, fpregset_cache, gregset_cache):
121         New static globals.
122         (thread_db_map_id2thr, thread_db_invalidate_map_id2thr_cache)
123         (initialize_regset_cache, initialize_regset_caches)
124         (thread_db_flush_regset_cache, thread_db_flush_regset_caches)
125         (thread_db_get_regset, thread_db_set_regset)
126         (thread_db_invalidate_regset_cache, thread_db_invalidate_regset_caches)
127         (thread_db_invalidate_caches, thread_db_getfpregs)
128         (thread_db_set_fpregs, thread_db_getgregs, thread_db_setgregs)
129         (td_thr_getfpregs_wrapper, td_thr_getgregs_wrapper)
130         (td_thr_setfpregs_wrapper, td_thr_setgregs_wrapper):
131         New functions.
132         (update_thread_list, thread_db_get_thread_reg)
133         (thread_db_set_thread_reg): Call thread_db_map_id2thr() instead of
134         td_ta_map_id2thr_p().
135         (thread_db_get_thread_reg): Call thread_db_getfpregs() instead
136         of td_thr_getfpregs_p().  Call thread_db_getgregs() instead of
137         td_thr_getgregs_p().
138         (thread_db_set_thread_reg): Likewise.  Also, call
139         thread_db_setfpregs() instead of td_thr_setfpregs_p() and
140         call thread_db_setgregs() instead of td_thr_setgregs_p().
141         (continue_thread, thread_db_continue_program)
142         (thread_db_singlestep_program, thread_db_continue_thread)
143         (singlestep_thread): Call thread_db_flush_regset_caches() at
144         beginning of function and thread_db_invalidate_caches() at
145         end of function.
146         (thread_db_attach): Initialize regset caches.
147
148 2002-01-15  Kevin Buettner  <kevinb@redhat.com>
149
150         * config.in (Generated automatically comment): Revise to note
151         that this file was generated automatically at one time, but is
152         no longer.
153         (LINUX_TARGET, SOLARIS_TARGET): Fix comments.
154         (MIPS_LINUX_TARGET): Add.
155         * configure.in (i?86*linux*, powerpc*linux*, arm*linux*, mips*linux*):
156         Eliminate unnecessary duplication.
157         (mips*linux*): Target is MIPS_LINUX_TARGET, not SH_LINUX_TARGET.
158         * gdbserv-thread-db.h (is_gp_reg): New function.
159         (is_fp_reg, is_extended_reg): Revise comments.
160         * linux-target.c (enum regset): Add new constant NOREGS.
161         (is_gp_reg): New function.
162         (PEEKUSER_POKEUSER_REGINFO) [MIPS_LINUX_TARGET]: Define.
163         (SIZEOF_REGMAP, SIZEOF_MAPPEDREG) [MIPS_LINUX_TARGET]: Delete.
164         (NUM_REGS) [MIPS_LINUX_TARGET]: Change from 38 to 70 to account
165         for addition of floating point support.
166         (regmap) [MIPS_LINUX_TARGET]: Delete this array.
167         (is_fp_reg, is_extended_reg) [MIPS_LINUX_TARGET]: Delete.
168         (reginfo) [MIPS_LINUX_TARGET]: Define.
169         (DEBUG): Delete this macro definition.
170         (disp_gdb_mesg, ptrace_get_mem, ptrace_set_mem): Delete function
171         declarations.
172         (linux_get_reg, linux_set_reg) [PEEKUSER_POKEUSER_REGINFO]: Add
173         NOREGS support.
174         (put_regset) [PEEKUSER_POKEUSER_REGINFO]: Add missing return
175         statement.
176         (mips_get_reg): Use read_reg_bytes() to fetch the register.
177         (mips_singlestep_program): Eliminate unused variables ``u_regs_base'',
178         ``temp_reg''.  Fix fprintf related format warning.
179         * ptrace-target.h (ptrace_check_child_state): Declare.
180         * thread-db.c (thread_db_get_thread_reg, thread_db_set_thread_reg):
181         Handle case of target not supporting one or more registers.
182
183 2001-10-15  Kevin Buettner  <kevinb@redhat.com>
184
185         * gdbserv-thread-db.h (is_extended_reg, reg_to_xregset)
186         (reg_from_xregset): New functions.
187         (debug_get_pc, decr_pc_after_break): Add declaration.
188         * linux-target.c (sys/procfs.h): Include.
189         (MAX_REG_SIZE): New anonymous enum constant.
190         (enum regset): New enum.
191         (getregs_setregs_reginfo, peekuser_pokeuser_reginfo): New structs.
192         (offsetof, fieldsize): New macros.
193         (ARM_LINUX_TARGET, X86_LINUX_TARGET, PPC_LINUX_TARGET): Deleted
194         old data structures defining register maps for these registers.
195         Replaced with new tables using either getregs_setregs_reginfo
196         or peekuser_pokeuser_reginfo structs.  Other architectures
197         remain the same, though reoranized somewhat.
198         (linux_next_gg_reg, linux_gg_reg_nr): Revise comments.  Use
199         NUM_REGS instead of NUM_G_PACKET_REGS.
200         (get_xregsetsize): New function.
201         (linux_reg_format, linux_sizeof_reg, is_fp_reg, is_extended_reg)
202         [PEEKUSER_POKEUSER_REGINFO, GETREGS_SETREGS_REGINFO]: New functions.
203         (read_reg_bytes, write_reg_bytes, debug_get_reg, debug_get_pc)
204         (linux_get_reg, linux_set_reg, reg_from_regset, reg_to_regset)
205         (reg_from_gregset, reg_to_gregset, reg_from_fpregset, reg_to_fpregset)
206         (reg_from_xregset, reg_to_xregset, get_regset, put_regset, get_gregset)
207         (put_gregset, get_fpregset, put_fpregset, get_xregset, put_xregset)
208         [PEEKUSER_POKEUSER_REGINFO]: New functions.
209         (read_reg_as_ulong, write_reg_as_ulong, debug_get_reg, debug_get_pc)
210         (linux_get_reg, linux_set_reg, regs_from_gregset, regs_to_gregset)
211         (reg_from_fpregset, reg_to_fpregset, reg_from_xregset, reg_to_xregset)
212         (get_gregset, put_gregset, get_fpregset, put_fpregset, get_xregset)
213         (put_xregset) [GETREGS_SETREGS_REGINFO]: New functions.
214         (linux_process_get_regs, linux_process_get_reg, linux_process_set_reg)
215         (linux_process_set_regs, ppc_linux_process_set_reg)
216         (ppc_linux_process_get_reg, ppc_linux_process_set_regs)
217         (ppc_linux_process_get_regs): Deleted.
218         (linux_attach): Reorganize initializations.
219         (generic_linux_set_reg): Renamed to linux_set_reg.
220         (generic_linux_get_reg): Renamed to linux_get_reg.
221         (generic_linux_sizeof_reg): Renamed to linux_sizeof_reg.
222         (generic_linux_gg_reg_nr): Renamed to linux_gg_reg_nr.
223         (generic_linux_next_gg_reg): Renamed to linux_next_gg_reg.
224         (generic_linux_reg_format): Renamed to linux_reg_format.
225         (decr_pc_after_break): Consolidated versions of this function
226         down to two; one for x86 and one for everything else.  Also,
227         add ``serv'' parameter and fix all callers.
228         (debug_get_pc, debug_get_reg): Now only three versions of
229         this function, one for PEEKUSER_POKEUSER_REGINFO code,
230         one for GETREGS_SETREGS_REGINFO code, and one for legacy
231         code.  Also, debug_get_pc() now takes a ``serv'' parameter.
232         Fixed all callers.
233         (ps_lgetregs): Use new get_gregset() interface.
234         (ps_lsetregs): Use new put_gregset() interface.
235         (ps_lgetfpregs, ps_lsetfpregs, ps_lgetxregsize, ps_lgetxregs)
236         (ps_lsetxregs): Implement.
237         * ptrace-target.c (ptrace_read_user, ptrace_write_user): Make
238         ``buff'' argument of type ``void *'' instead of ``char *''.
239         (ptrace_get_gregs): Add new parameter ``alt_pid''.
240         (ptrace_set_gregs): Likewise.
241         (ptrace_get_fpregs): Add new parameter alt_pid.  Also fix call
242         to ptrace() so parameters are in correct order.
243         (ptrace_set_fpregs): Likewise.
244         (ptrace_get_fpxregs, ptrace_set_fpxregs): New functions.
245         * ptrace-target.h (ptrace_write_user, ptrace_read_user)
246         (ptrace_get_gregs, ptrace_set_gregs, ptrace_get_fpregs)
247         (ptrace_set_fpregs, ptrace_get_fpxregs, ptrace_set_fpxregs):
248         Declare.
249         * thread-db.c (td_thr_getxregsize_p, td_thr_getxregs_p)
250         (td_thr_setxregs_p): New function pointers.
251         (thread_db_dlopen): Initialize new function pointers.
252         (send_pending_signals): Add ``process'' parameter so that
253         decr_pc_after_break() can get the ``serv'' argument.  Fix all
254         callers.
255         (thread_db_get_thread_reg, thread_db_set_thread_reg): Add xregset
256         support.
257
258 2001-10-14  Kevin Buettner  <kevinb@redhat.com>
259
260         * ptrace-target.c (unistd.h): Include.
261         (close_open_files): New function.
262         (ptrace_create_child):  In newly forked child process, call
263         close_open_files() before invoking execv().
264
265 2001-10-13  Kevin Buettner  <kevinb@redhat.com>
266
267         * server.c (signal.h): Include.
268         (chld_handler): New function.
269         (main): Establish chld_handler as the SIGCHLD signal handler.
270         Also, wait 1 second instead of 0 seconds to avoid busy waiting.
271
272 2001-09-26  Louis Hamilton  <hamilton@redhat.com>
273
274         * configure.in: Use thread-db.c for ARM.
275         * configure: Regenerated.
276         * linux-target.c (ARM_R11, ARM_R12): Added to regmap[].
277         (ARM_FP, ARM_CPSR): Revised mappings of these ARM registers.
278         (debug_get_reg, debug_get_pc, decr_pc_after_break) [ARM_LINUX_TARGET]:
279         New functions.
280         
281 2001-09-20  Kevin Buettner  <kevinb@redhat.com>
282
283         * configure.in: Use thread-db.c for Linux/PPC too.
284         * configure: Regenerated.
285         * linux-target.c (linux_read_reg): Add forward declaration.
286         (debug_get_reg, debug_get_pc, decr_pc_after_break) [PPC_LINUX_TARGET]:
287         New functions.
288
289 2001-09-20  Kevin Buettner  <kevinb@redhat.com>
290
291         * linux-target.c (SIZEOF_MAPPEDREG) [PPC_LINUX_TARGET]: Add comment.
292         (PC_REGNUM) [PPC_LINUX_TARGET]: Remove FIXME comment.
293         (is_fp_reg) [PPC_LINUX_TARGET]: Revise upper bound on floating
294         point register numbers.
295         (ppc_linux_getset_reg): Rewritten to use regmap[] to fetch
296         ptrace() offsets.  This'll handle the (previously unsupported)
297         floating point registers, cr, lr, ctr, and xer.
298         (ppc_linux_process_set_regs, ppc_linux_process_get_regs): Don't
299         hardcode loop upper bound.
300         (ppc_linux_process_get_regs): Revise declarator to match
301         process_get_regs member in struct gdbserv_target.
302
303 2001-09-18  Andrew Haley  <aph@cambridge.redhat.com>
304
305         * server.c (main): Work around SIGCHLD problem.
306
307 2001-08-05  Michael Chastain  <chastain@redhat.com>
308
309         * ptrace-target.c (ptrace_write_user): Ignore ESRCH on MIPS,
310         because mips linux kernel 2.4 has a bug where PTRACE_POKEUSER
311         returns -ESRCH even when it succeeds.
312
313 2001-08-03  Michael Keezer  <mkeezer@redhat.com>
314
315         * configure.in: Add am33_2.0 & mn10300.
316         * config.in: Add AM33_LINUX_TARGET & AM33_2_0_LINUX_TARGET.
317         * linux-target.c: am33_2.0 & mn10300 support.
318
319 2001-07-23  David Howells  <dhowells@redhat.com>
320
321         * ptrace-target.c: Added big-endian MIPS support.
322         * linux-target.c: ditto.
323         * server.h: ditto.
324
325 2001-06-25  Michael Snyder  <msnyder@redhat.com>
326
327         * ptrace-target.c (ptrace_compute_signal): Implement conversion 
328         from native signals to GDB's signal numbering.
329         (ptrace_process_signal): Implement conversion from GDB's signal
330         numbering to native signals.
331         (stop_lwp): Comment out debugging output of SIGSTOP signals.
332         * linix-target.c (linux_fromtarget_break): Call compute_signal.
333         (linux_fromtarget_terminate): Ditto.
334         * thread-db.c (thread_db_check_child_state): Don't do any conversion
335         when passing a signal directly back to the inferior; just copy from
336         stop_signal to signal_to_send.
337         (thread_db_fromtarget_thread_break): Convert signal from native
338         numbering to GDB's numbering.
339
340 2001-06-18  Michael Snyder  <msnyder@redhat.com>
341
342         * linux-target.c (generic_linux_set_reg): Fix typo.
343         (decr_pc_after_break): Mute the debugging output.
344
345 2001-06-15  Michael Snyder  <msnyder@redhat.com>
346
347         * thread_db.c: Disable noisy debugging output.
348         (select_pending_event): Add new selection criterion, giving
349         preference to a thread that is being single-stepped.  This 
350         avoids the problem of deciding whether to decrement the pc if
351         we don't know whether a SIGTRAP was caused by stepping or by
352         hitting a breakpoint.
353
354 2001-06-14  Michael Snyder  <msnyder@redhat.com>
355
356         * thread-db.c (thread_db_set_gen, thread_db_get_gen): Rewrite
357         syntax for qSymbol messages.
358         * gdb_proc_service.h: New file.
359         * Makefile.am (INCLUDES): Remove $(srcdir)/../../include.
360         * Makefile.in: Regenerate.
361
362 2001-05-31  Michael Snyder  <msnyder@redhat.com>
363
364         * thread-db.c (add_thread_to_list): Return explicit value!
365
366 2001-05-23  Jackie Smith Cashion <jsmith@redhat.com>
367
368         * linux-target.c: Change MIPS SIZEOF_MAPPEDREG from 1 to 4.
369         (linux_register_offset): For MIPS return regmap[regnum] instead of
370         SIZEOF_MAPPEDREG * regmap[regnum].
371         (mips_get_reg): Pass pid as argument to ptrace_read_user instead of
372         gdbserv pointer.
373         
374 2001-05-22  Michael Snyder  <msnyder@redhat.com>
375
376         * no-threads.c: New file.
377         * configure.in: Use thread-db.c only for specified architectures, 
378         (including x86); otherwise default to using no-threads.c.
379         * configure: Regenerate.
380         
381 2001-05-10  Martin M. Hunt  <hunt@redhat.com>   
382
383         * linux-target.c (is_fp_reg): New function for mips. 
384         FP not implemented.
385         
386         Merged changes from symbol branch with appropriate modifications.
387
388 Mon Mar 26 08:54:41 PST 2001  Brendan Conoboy <blc@redhat.com>
389  
390         * configure.in: Added mipsvr4181el* target
391         * configure: regenerate
392  
393 2001-01-26  Rudy Folden <rfolden@redhat.com>
394         
395         * server.c: Changed name from gdbgeneral_xxx to gdbconnect_xx.
396  
397 2001-01-24  Rudy Folden <rfolden@redhat.com>
398  
399         * configure: Added mipsel* target.
400         * linux-target.c: Add support for MIPS processor, including single-
401         stepping which doesn't exist in mips ptrace.
402         * ptrace-target.c (ptrace_handle_waitstatus): Added single-stepping
403         instruction restore for mips.
404         (ptrace_attach): Added single stepping initialization code.
405         * server (main): Added generic interfaces, gdbgeneral_startup/shutdown
406         for serial or tcp/ip selection. Also added server_quit_p to X and W 
407         for serial support (no socket shutdown).
408         * server.h (child_process): Added mips instruction save area for
409         single-step support.
410
411         2001-01-10  Rudy Folden <rfolden@redhat.com>
412         * ptrace-target.c (enum): Added U_REGS_OFFSET to processor
413         dependent enums.
414
415 2001-04-26  Michael Snyder  <msnyder@redhat.com>
416
417         * linux-target.c (is_fp_reg): New function.
418         (reg_from_fpregset, reg_to_fpregset): New functions.
419         Support for thread_db_get_thread_reg floating point regs.
420         * thread-db.c (thread_db_get_thread_reg, thread_db_set_thread_reg):
421         Infrastructure for support of floating point regs.
422         (Attach_thread): New function, abstracted from below.
423         (find_new_threads_callback): Call attach_thread.
424         (stop_thread): New function, abstracted from stop_all_threads.
425         (stop_all_threads): Call stop_thread.
426         (continue_thread): Test for lwp == 0 before calling continue_lwp.
427         * ptrace-target.c (stop_lwp): New function.
428         * gdbserv-thread-db.h (reg_to_regnum, reg_from_regnu): Declare.
429
430 2001-04-25  Michael Snyder  <msnyder@redhat.com>
431
432         Move all ptrace references out of thread-db.c.
433         * gdbserv-thread-db.h: New file.
434         * thread-db.c (struct ps_prochandle): Move to gdbserv-thread-db.h.
435         (gdb_ps_prochandle_t): Ditto.
436         (gdb_ps_read_buf_t, gdb_ps_write_buf_t, gdb_ps_size_t): Ditto.
437         (ps_pstop, ps_pcontinue): Move to ptrace-target.c.
438         (ps_lstop, ps_lcontinue): Ditto.
439         (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Ditto.
440         (ps_lgetxregsize): Move to linux-target.c.
441         (ps_lgetxregs, ps_lsetxregs, ps_getpid): Ditto.
442         (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Ditto.
443         (find_new_threads_callback): Abstract attach bits into new function
444         attach_lwp, and move that to ptrace-target.c.
445         (wait_all_threads): Call continue_lwp instead of ptrace.
446         (continue_pid): Rename as continue_lwp, move into ptrace-target.c.
447         (singlestep_pid): Rename as continue_lwp, move into ptrace-target.c.
448         (struct symbol_cache): Change value to a paddr_t.
449         (add_symbol_to_list, lookup_cached_symbol): Ditto.
450         * linux-target.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, 
451         ps_lsetfpregs, ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs,
452         ps_getpid): Moved to here from thread-db.c.
453         * ptrace-target.c (continue_lwp, singlestep_lwp, attach_lwp,
454         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_pdread,
455         ps_pdwrite, ps_ptread, ps_ptwrite): Moved here from thread-db.c.
456         (ptrace_handle_waitstatus): Renamed as handle_waitstatus.
457         (ps_lcontinue): Implement (untested).
458         * server.c (main): Check server_quit_p after calling gdbloop_poll.
459
460
461 2001-04-24  Michael Snyder  <msnyder@redhat.com>
462
463         * thread-db.c (continue_pid, continue_thread): New functions.
464         (singlestep_pid, singlestep_thread): New functions.
465         (continue_all_threads): Use new function continue_thread.
466         (thread_db_continue_program): Ditto.
467         (thread_db_singlestep_program): Ditto.
468         (thread_db_continue_thread): Ditto.
469         (thread_db_singlestep_thread): Ditto.
470         
471         * thread-db.c: Remove some debugging printfs.
472         Add activation and handling of the thread debug signal.
473         (get_thread_signals): Get the debug signal as well as the others.
474         Set target flag to activate the debug signal.
475         (set_target_int_by_name): New function.
476         (struct gdbserv_thread): Rename "sigstopped" flag to just "stopped".
477         (stop_all_threads): Mark the event thread "stopped".
478         (wait_all_threads): Mark the event thread "waited".
479         Don't stash the debug signal (throw it away).
480         (continue_all_threads): Always send the restart signal to any
481         thread that has just been attached.
482         (thread_db_check_child_state): Make two calls to waitpid (one with
483         WCLONE, one without) instead of alternating every other time.
484         Add debug_signal to the list of events to ignore.
485         (thread_db_attach): Add "__pthread_threads_debug" to list of symbols.
486
487 2001-04-20  Michael Snyder  <msnyder@redhat.com>
488
489         * thread-db.c (thread_db_check_child_state): Add SIGCHLD to the
490         list of signals to ignore.  When a thread exits, make sure that
491         the other threads get restarted.
492
493 2001-04-19  Michael Snyder  <msnyder@redhat.com>
494
495         * thread-db.c (wait_all_threads): Save exit and term events.
496         Save SIGINT like any other signal event.  
497         (send_pending_signals): Don't send SIGINT.
498         (select_pending_event): Give preference to SIGINT.
499         (thread_db_check_child_state): Move special handling of 
500         cancel and restart signals to after the stop_all_threads
501         and wait_all_threads calls, so we can catch these signals
502         even if they aren't the first signal we get notification of.
503
504 2001-04-19  Michael Snyder  <msnyder@redhat.com>
505
506         Major change to select an event so as to avoid starvation.
507         * thread-db.c (select_pending_event): New function.  Choose an
508         event from the list of pending events, and make its thread the
509         event thread.
510         (stop_all_threads): Don't mark the event thread.  That will now
511         be done by select_pending_event.
512         (struct signal_list): Rename to event_list.  Save the thread and
513         the entire wait status, so that all events (not just signals)
514         can be saved.
515         (add_pending_signal): Rename to add_pending_event.
516         (send_pending_signals): Ignore non-signal events.
517         Ignore the selected event (which will be returned to the debugger).
518         Push back breakpoint events (moved here from wait_all_threads).
519         (wait_all_threads): Remove special handling for SIGTRAP (moved
520         into send_pending_signals).  Call select_pending_event.
521         (thread_db_check_child_status): Add initial event to event list.
522
523 2001-04-16  Michael Snyder  <msnyder@redhat.com>
524         * thread-db.c (thread_db_continue_thread): Handle the signal param.
525         (thread_db_singlestep_thread): Ditto.
526         (thread_db_check_child_state): Handle exit and termination separately.
527
528 2001-04-13  Michael Snyder  <msnyder@redhat.com>
529
530         * thread-db.c (find_new_threads_callback): Account for dead threads.
531         (update_thread_list): Keep zombie threads in thread list, but
532         delete them if they've been joined or detached.
533         (stop_all_threads): Don't stop dead threads.
534         (continue_all_threads): Don't continue if not waited.
535         (thread_db_check_child_state): Move handling of terminate and
536         exit earlier.  Handle termination or exit of children specially.
537         (thread_db_get_thread_reg): Test for defunct threads.
538         (thread_db_set_thread_reg): Ditto.
539         * ptrace-target.c (ptrace_xfer_mem): Don't be noisy about ptrace
540         errors caused by illegal memory accesses.
541
542 2001-04-12  Andrew Cagney  <ac131313@redhat.com>
543
544         * server.c: Include "gdbloop.h".  Replace gdbsocket_poll with
545         gdbloop_poll.
546         * ptrace-target.c, linux-target.c, solaris-target.c: 
547         * dummy-target.c: Update comments.
548
549 2001-04-11  Michael Snyder  <msnyder@redhat.com>
550
551         * thread-db.c (struct gdbserv_thread): Add new flag 'stepping'.
552         (stop_all_threads): Add parameter 'process'.
553         Set the process->event_thread here, instead of in check_child_state.
554         (wait_all_threads): Accept process as a parameter instead of eventpid.
555         Handle SIGTRAP differently if the thread was singlestepping.
556         (thread_db_singlestep_program): Clear flags for event thread.
557         (thread_db_singlestep_thread): Ditto.
558         (thread_db_continue_program): Ditto.
559         (thread_db_continue_thread): Ditto.
560         (thread_db_check_child_state): Cancel the stepping flag.
561         Don't set the event thread, this is now done in stop_all_threads.
562         * linux-target.c (debug_get_reg, debug_get_pc): New functions.
563         Purely for debugging output.  Architecture dependent.
564
565 2001-04-09  Michael Snyder  <msnyder@redhat.com>
566
567         * thread_db.c (thread_db_continue_thread): Continue the actual
568         thread given, not necessarily the event thread.
569         (thread_db_singlestep_thread): Step the actual thread given, 
570         not necessarily the event thread.
571
572 2001-04-09  Michael Snyder  <msnyder@redhat.com>
573
574         * thread-db.c (stop_all_threads): Do not send SIGSTOP to a thread
575         if it has already been sigstopped.
576         (thread_db_continue_thread): New function.  Continue a single thread.
577         (thread_db_singlestep_thread): New function.  Step a single thread.
578         (thread_db_attach): Set up continue_thread, singlestep_thread methods.
579         
580 2001-04-09  Michael Snyder  <msnyder@redhat.com>
581
582         * linux-target.c (PC_REGNUM): New enum, define.
583         (decr_pc_after_break): New function.  Architecture dependent.
584         This version will probably serve for all targets for which
585         DECR_PC_AFTER_BREAK is one.  Those for which it is zero will
586         want to define a no-op version of this function.
587         * thread-db.c (first_thread_in_list): New function.
588         (update_thread_list, stop_all_threads, wait_all_threads, 
589         continue_all_threads): Use first_thread_in_list in for loops.
590         (wait_all_threads): Handle SIGINT and SIGTRAP specially.
591         Throw away SIGINT for all threads but the event thread.
592         For SIGTRAP in other than the event thread, call decr_pc_after_break
593         (giving the thread a chance to hit the trap again later).
594         (thread_db_continue_program, thread_db_singlestep_program):
595         Continue the event thread before all the others.
596
597 2001-04-05  Michael Snyder  <msnyder@redhat.com>
598
599         * thread-db.c (add_pending_signal, send_pending_signals):
600         New functions.  Allow wait_all_threads to collect any signals
601         other than SIGSTOP from the threads and defer them.
602         (wait_all_threads): Loop on each thread and call waitpid until
603         we get SIGSTOP.  Any other signals are pended by throwing them
604         into a list, and then sending them back to the threads using kill.
605         (thread_db_get_thread_reg): Remove temporary hack for libthread_db
606         bug.  (thread_db_set_thread_reg): Ditto.
607
608 2001-04-04  Michael Snyder  <msnyder@redhat.com>
609
610         * server.h (struct child_process): Add a 'running' flag.
611         * thread_db.c (continue_all_threads): Take gdbserv as argument.
612         Use it to find the current thread, and don't continue that one
613         (leave it up to the parent method to continue the event thread.)
614         (thread_db_continue_program): Child is running -- set a flag.
615         (thread_db_singlestep_program): Ditto.
616         (thread_db_check_child_state): Return immediately unles the child
617         is running.  Because this is a polling routine, we don't want to
618         return any new events unles the child is officially running.
619         Call waitpid with -1 instead of the process->pid, so that we
620         can get events from the threads.  Alternately use __WCLONE.
621         (thread_db_get_thread_reg): If thread is not specified, use
622         the event thread (if possible).  Temporarily hack around a
623         bug in the thread_db library.
624         (thread_db_set_thread_reg): Ditto.
625         
626 2001-04-04  Michael Snyder  <msnyder@redhat.com>
627
628         * thread-db.c (continue_all_threads): Zero the attached, stopped,
629         and waited flags only if thread is successfully continued.
630         * linux-target.c: Fix broken endif directive.
631         * configure.in: Test for sys/procfs.h.
632         * config.in: Define HAVE_SYS_PROCFS_H.
633         * configure: Regenerate.
634         * thread-db.c (thread_list_lookup_by_pid): New function.
635         (thread_db_check_child_state): Cache the event thread.
636         (thread_db_fromtarget_thread_break): New function.  Call
637         gdbserv_fromtarget_thread_break with the event thread.
638         (thread_db_attach): Take over the fromtarget_break vector.
639         * server.h (struct child_process): Add event_thread field.
640
641 2001-04-02  Michael Snyder  <msnyder@redhat.com>
642
643         * thread-db.c: include errno.h for error reporting.
644         (struct gdbserv_thread): Add flag 'waited'.
645         (thread_db_type_str): New function for thread_extra_info.
646         (find_new_threads_callback): Use errno for error reporting.
647         (thread_db_thread_info): New function, for thread_extra_info.
648         (wait_all_threads): New function.  Call waitpid on all threads
649         that have been attached or sigstopped.  Incomplete -- needs to
650         push back any signals other than SIGSTOP.
651         (continue_all_threads): Send PTRACE_CONT only to threads that
652         have been attached or sigstopped.
653         (check_child_state): Call wait_all_threads.
654         (thread_db_attach): Activate thread_info vector.
655
656 2001-03-30  Michael Snyder  <msnyder@redhat.com>
657
658         * linux-target.c (linux_read_reg, linux_write_reg): New functions.
659         Abstract out the code to actually read a register value, so that 
660         it can be shared by several methods.
661         (get_gregset): Use sizeof (GREGSET_T).
662         (generic_linux_gg_reg_nr): New function.  Support new reg methods.
663         (generic_linux_next_gg_reg): Ditto.
664         (generic_linux_sizeof_reg): Ditto.
665         (generic_linux_reg_format): Ditto.
666         (generic_linux_get_reg): New function.  Newer register method,
667         non-thread-aware version.
668         (linux_attach): Use new register method in target vector.
669         * thread-db.c: Remove some developmental ifdef code.
670         (thread_db_get_thread_reg): Fall back on parentvec.get_reg
671         if no thread or no thread_agent available.
672         (thread_db_attach): Replace get_reg vector with get_thread_reg.
673
674         * ptrace-target.c (ptrace_write_user): For X86 target, skip
675         write-protected location in user/context address space.
676         * linux-target.c (linux_process_get_reg): Use linux_read_reg.
677         (linux_process_set_reg): Use linux_write_reg.
678         (put_gregset): New function.  Write child's gregset.
679         (generic_linux_get_reg): Use SIZEOF_MAPPEDREG.
680         (generic_linux_set_reg): New function.  Newer register method.
681         (linux_attach): Add set_reg to target vector, not process_set_reg.
682         * thread-db.c (ps_lsetregs): Implement by calling put_gregset.
683         (thread_db_set_thread_reg): New function.  Implement set_thread_reg.
684         (thread_db_attach): Add set_thread_reg to target vector.
685
686 2001-03-29  Michael Snyder  <msnyder@redhat.com>
687
688         * ptrace-target.c (ptrace_read_user, ptrace_write_user):
689         Accept an explicit pid instead of a struct gdbserv.
690         * linux-target.c: Include gdb_proc_service.h for gregset_t
691         (FIXME: better place to get it from?)
692         (linux_register_offset): Return signed long to facilitate 
693         test for -1 error return value.
694         (ppc_linux_xfer_reg, linux_process_get_reg, linux_process_set_reg):
695         Calls to ptrace_read_user and ptrace_write_user now need a pid
696         argument instead of a struct gdbserv.
697         (reg_from_gregset): New function.
698         (reg_to_gregset): New function.
699         (get_gregset): New function.  Read child's gregset.
700         * thread-db.c (ps_lgetregs): Implement by calling get_gregset.
701         (thread_db_dlopen, thread_db_open, thread_db_attach): Change 
702         sense of return: -1 now means failure, 0 means success.
703         (thread_db_get_thread_reg): Call reg_from_gregset.
704
705 2001-03-29  Michael Snyder  <msnyder@redhat.com>
706
707         * thread-db.c: Include signal.h, sys/ptrace.h (FIXME ptrace).
708         (struct symbol_cache): Make value (address) unsigned.
709         (add_symbol_to_list, lookup_cached_symbol): Ditto.
710         (struct gdbserv_thread): Add attached, stopped flags to thread.
711         (add_thread_to_list): Return pointer to new thread in list.
712         (delete_thread_from_list): New function.
713         (ps_pglobal_lookup, ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite):
714         Muffle debugging output.
715         (find_new_threads_callback): Muffle debugging output.
716         Add thread to list only if it isn't already there.
717         Use ptrace to attach to new threads.  (FIXME explicit ptrace).
718         (update_thread_list): New function.  Only place where td_ta_thr_iter
719         is called.  Builds up the thread list, prunes it of any dead threads.
720         (thread_db_thread_next): Call update_thread_list.
721         (get_thread_signals): Read the values of the cancel and restart
722         signals from the target using hardcoded symbol names.
723         (stop_all_threads): New function.  First cut.  Deliver SIGSTOP
724         to all threads except the event thread and any new threads that
725         have just been attached.
726         (continue_all_threads): New function.  First cut.  Deliver
727         PTRACE_CONT to all threads except the main thread.  Needs work.
728         (thread_db_continue_program): New function.  
729         (thread_db_singlestep_program): New function.
730         (thread_db_get_thread_reg): New function, incomplete.
731         (thread_db_attach): Take over continue_program, singlestep_program.
732         Muffle some debugging output.
733
734 2001-03-26  Michael Snyder  <msnyder@redhat.com>
735
736         * thread-db.c: New file.  Linux thread debugging layer.
737         * linux-target.c (linux_attach): Call thread_db_attach.
738         * ptrace-target.c: Export ptrace_handle_waitstatus for
739         thread-db.c (FIXME).
740         * configure.in: Add thread-db.c to linux target modules.
741         (GREGSET_T, FPREGSET_T, HAVE_LWPID_T, HAVE_PSADDR_T,
742         HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T, LINUX_TARGET): Define.
743         * config.in (GREGSET_T, FPREGSET_T, HAVE_LWPID_T, 
744         HAVE_PSADDR_T, HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T, LINUX_TARGET): 
745         Default undefine.
746         * configure: Regenerate.
747         * Makefile.am (INCLUDES): Add $(srcdir)/../../include
748         (devo/include), so that header files can be shared with gdb.
749         (server_LDFLAGS): Add -ldl -rdynamic (FIXME configure).
750         * Makefile.in: Regenerate.
751
752 2001-03-22  Andrew Cagney  <ac131313@redhat.com>
753
754         * server.c (main): Pass gdbserver.attach and process to
755         gdbserver_startup instead of gdbserver_poll.
756
757 2001-03-16  Michael Snyder  <msnyder@redhat.com>
758
759         * linux-target.c (linux_detach): Pass new parameter to ptrace_detach.
760         Fix file header comment typo.  Update copyright.
761
762 2001-03-16  Elena Zannoni  <ezannoni@cygnus.com>
763
764         * dummy-target.c (dummy_detach): Add new parameter.
765         * linux-target.c (linux_detach): Ditto.
766         * ptrace-target.c (ptrace_detach): Ditto.
767         * solaris-target.c (solaris_detach): Ditto.
768
769 2001-03-14  Andrew Cagney  <ac131313@redhat.com>
770
771         * ChangeLog: Move to here from ../native.
772         * Makefile.am: Ditto.
773         * aclocal.m4: Ditto.
774         * configure.in: Ditto.
775         * dummy-target.c: Ditto.
776         * linux-target.c: Ditto.
777         * ptrace-target.c: Ditto.
778         * ptrace-target.h: Ditto.
779         * server.c: Ditto.
780         * server.h: Ditto.
781         * solaris-target.c: Ditto.
782         * Makefile.in: Regenerate.
783         * config.in: Ditto.
784         * configure: Ditto.
785
786 2001-03-14  Andrew Cagney  <ac131313@redhat.com>
787
788         * Makefile.am (INCLUDES): Update. Headers moved to ../include.
789         * Makefile.in: Regenerate.
790
791 2000-11-27  Michael Snyder  <msnyder@happy.cygnus.com>
792
793         * ptrace-target.c (ptrace_xfer_mem): Return -1 on error.
794
795 2000-11-21  Michael Snyder  <msnyder@cleaver.cygnus.com>
796
797         * ptrace-target.c (noop_flush_i_cache): Comment out superfluous
798         debugging output.
799         * linux-target.c (linux_process_get_reg): Return value of 
800         linux_register_offset is unsigned (can't be less than zero).
801         (linux_process_rcmd): Just use '1' and '0' to control debug output.
802
803 2000-11-06  Michael Snyder  <msnyder@cleaver.cygnus.com>
804
805         * dummy-target.c (dummy_attach): Fix order of memset args.
806         * linux-target.c (linux_attach): Ditto.
807         * ptrace-target.c (ptrace_attach): Ditto.
808         * solaris-target.c (solaris_attach): Ditto.
809
810 2000-10-19  Belinda Brazelle <brazelle@redhat.com>
811
812         * linux-target.c: Add support for Arm processor.
813
814 2000-10-12  Michael Snyder  <msnyder@cleaver.cygnus.com>
815
816         * ptrace-target.c (ptrace_handle_waitstatus): Save exitstatus
817         in process->stop_signal.
818
819 2000-09-14  Michael Snyder  <msnyder@michael.wirespeed.com>
820
821         * linux-target.c: Define regmap etc. for SH target.
822         * configure.in: Add defines for SH target.
823         * configure: Rebuild.
824
825 2000-09-13  Michael Snyder  <msnyder@michael.wirespeed.com>
826
827         * server.h (fromtarget_terminate): New field.  Also fix up 
828         some overlooked function prototypes in the existing fields.
829         (struct client_process): Rename to struct child_process.
830         * linux-target.c (linux_fromtarget_terminate): New function.
831         Called from main when child terminates abnormally.
832         (linux_process_rcmd): New function.  Catches "qRcmd" requests, 
833         which are currently used just to turn on debug output.
834         * ptrace-target.c (ptrace_handle_waitstatus): Set stop_signal
835         for the WIFSTOPPED case.  (ptrace_process_signal): Return zero
836         instead of the signal number, to let libremote know that we have
837         handled the signal.  (ptrace_xfer_memory): Fix off-by-one error.
838         * solaris-target.c (solaris_fromtarget_terminate): New function.
839         * server.c (main): Call fromtarget_terminate for the 'T' case.
840         Do not request a one-second delay from gdbsocket_poll.
841
842 2000-09-08  Michael Snyder  <msnyder@cleaver.cygnus.com>
843
844         * solaris-target.c: New file.  Just a prototype, doesn't actually
845         work.  Used to confirm configurability to multiple targets.
846         * dummy-target.c: New file.  Dummy back-end for implementing new
847         targets such as solaris-target.c (above), before actually having
848         a working back-end.  The dummy target works just like the sample
849         target in the samples directory.
850         * configure.in: Add AC_SUBST(TARGET_MODULES) to add the 
851         appropriate target modules to the Makefile.  Add solaris target.
852         * configure: Regenerate.
853         * Makefile.am: Move *-target.c into EXTRA_server_SOURCES.
854         Add TARGET_MODULES to server_LDADD.  Define server_DEPENDENCIES.
855         * Makefile.in: Regenerate.
856         * ptrace-target.h: New file.  Defines needed only by ptrace.
857         * server.h: Remove ptrace-specific defines to ptrace-target.h.
858         (struct server_vector): New, for target entry points.
859         (struct nativeserver): Rename to struct client_process.
860         * server.c: Use client_process for entry points, and server_vector.
861         * linux-target.c: Include ptrace-target.h.  
862         (ppc_linux_get_reg): Rename to ppc_linux_process_get_reg.
863         (ppc_linux_set_reg): Rename to ppc_linux_process_set_reg.
864         (ppc_linux_get_regs): Rename to ppc_linux_process_get_regs.
865         (ppc_linux_set_regs): Rename to ppc_linux_process_set_regs.
866         (linux_get_reg): Rename to linux_process_get_reg.
867         (linux_set_reg): Rename to linux_process_set_reg.
868         (linux_get_regs): Rename to linux_process_get_regs.
869         (linux_set_regs): Rename to linux_process_set_regs.
870         (gdbserver_check_child_state): Rename to linux_check_child_state.
871         (gdbserver_fromtarget_break): Rename to linux_fromtarget_break.
872         (gdbserver_fromtarget_exit): Rename to linux_fromtarget_exit.
873         (struct server_vector gdbserver): New, defines entry points.
874         * ptrace-target.c: Include ptrace-target.h.
875         * aclocal.m4: New file.
876
877 2000-09-08  Michael Snyder  <msnyder@cleaver.cygnus.com>
878
879         * linux-target.c (linux_get_reg, linux_set_reg): Remove direct
880         calls to ptrace; instead use service call into ptrace-target.c.
881         (linux_get_regs, linux_set_regs): Remove ifdef PPC; instead use
882         an ifdef in linux_attach to set up the target vector pointers.
883         (linux_attach): If PPC_LINUX_TARGET, use PPC versions of register
884         functions instead of generic ones.  Define process_set_reg, so
885         that the "P" command is now handled.
886
887 2000-09-07  Michael Snyder  <msnyder@cleaver.cygnus.com>
888
889         * ptrace-target.c (ptrace_read_user, ptrace_write_user): New 
890         functions.  Exported so that linux-target does not have to 
891         call ptrace directly.  (ptrace_get_gregs, ptrace_set_gregs, 
892         ptrace_get_fpregs, ptrace_set_fpregs): New functions.
893         Exported for use by targets that use these methods.
894         (ptrace_xfer_mem): Use ptrace_arg3_type instead of long.
895         Add address to error messages.  
896         * linux-target.c: Start using config macros, port to alpha and ppc.
897         (ppc_linux_xfer_reg, ppc_linux_getset_reg, ppc_linux_get_reg,
898         ppc_linux_set_reg, ppc_linux_get_regs, ppc_linux_set_regs):
899         New functions.  Explicit knowledge of ppc linux register layout.
900         (linux_get_reg): Catch undefined regmap offsets.
901         (linux_set_reg): Ditto.
902         (linux_get_regs): Conditionally call ppc_linux_get_regs.
903         (linux_set_regs): Ditto.
904         * configure.in: Add PPC target, and export target defines.
905         * configure: Regenerate.
906         * config.in: Add new target defines.
907
908 2000-09-06  Michael Snyder  <msnyder@cleaver.cygnus.com>
909
910         * Makefile.am: Define CC and CFLAGS.
911         * Makefile.in: Regenerate.
912         * configure.in: New file.  Detect all manner of things.
913         * config.in: New file.  Input file for config.h.
914         * configure: Generate.
915         * ptrace-target.c (ptrace_xfer_type): Move def'n into server.h.
916         (PTRACE_XFER_SIZE): Ditto.
917         * linux-target.c (ptrace_xfer_type): Move def'n into server.h.
918         (ptrace_arg3_type): Ditto.
919         * server.h: Use config macros to determine definitions of 
920         ptrace_xfer_type, ptrace_arg1_type, ptrace_arg2_type, 
921         ptrace_arg3_type, ptrace_arg4_type.
922
923 2000-09-05  Michael Snyder  <msnyder@cleaver.cygnus.com>
924
925         * server.c (main): Detect exit status, and call fromtarget_exit
926         instead of fromtarget_break.
927         * linux-target.c (gdbserver_fromtarget_exit): New function.
928         * ptrace-target.c (ptrace_kill_program, ptrace_sigkill_program):
929         New functions.  Send signals to the child.
930         (ptrace_exit_program): New function.
931
932 2000-09-05  Michael Snyder  <msnyder@cleaver.cygnus.com>
933
934         * linux-target.c (linux_attach): Activate process_signal vector.
935         (gdbserver_check_child_state): Send real received signal, instead
936         of faking SIGTRAP.
937         * ptrace-target.c (ptrace_break_program): New function.  Implement
938         control-c interrupt from host.
939         (ptrace_process_signal): Implement continuation signal.
940         (ptrace_singlestep_program): Ditto.
941         (ptrace_continue_program): Ditto.
942         (ptrace_get_trap_number): New function.  Return signal to libremote.
943         (ptrace_compute_signal): Ditto.
944         (ptrace_attach): Activate break_program, process_signal, compute_signal
945         and get_trap_number vectors.
946         server.h (struct nativeserver): add signal_to_send field.
947         Rename stop_sig to stop_signal.
948
949 2000-09-05  Michael Snyder  <msnyder@cleaver.cygnus.com>
950
951         * ptrace-target.c (ptrace_singlestep_program): Make ptrace args long.
952         FIXME: needs to be configurable.
953         * linux-target.c (linux_get_reg, linux_set_reg): Make regaddr and
954         regval configurable types.  FIXME needs real configury.
955
956 2000-09-01  Michael Snyder  <msnyder@cleaver.cygnus.com>
957         New directory "native" for native gdbserver in libremote.
958         * server.c: New file.  Entry point and main event loop.
959         * server.h: New file.  Shared declarations.
960         * linux-target.c: New file.  Linux version of libremote native stub.
961         * ptrace-target.c: New file.  Ptrace operations for libremote stub.
962         * Makefile.am: New file.  Automake source.
963         * Makefile.in: New file.  Automake-generated makefile source.
964         Note: this work is incomplete and only partially working.
965         
966