import gdb-1999-12-21 snapshot
[external/binutils.git] / gdb / ChangeLog
1 1999-12-21  Stan Shebs  <shebs@andros.cygnus.com>
2
3         * blockframe.c (generic_pop_current_frame): Cosmetic changes to
4         clarify.
5
6         
7 1999-12-21  Jim Blandy  <jimb@cygnus.com>
8
9         * Makefile.in (elf_bfd_h): Look for elf-bfd.h in BFD_SRC, not
10         BFD_DIR.  Unlike bfd.h, it is not a generated file.
11         
12 Fri Dec 17 18:24:58 1999  David Taylor  <taylor@texas.cygnus.com>
13
14         * language.c (_initialize_language): move settings of language,
15         range, and type and corresponding function calls
16         set_language_command, set_type_command, and set_range_command
17         closer together to match the model of having the user set the
18         variable via the 'set {language | range | type}' commands.
19         This eliminates startup noise introduced by Jimmy Guo's change
20         of Dec 13th.
21
22 1999-12-17  Michael Snyder  <msnyder@cleaver.cygnus.com>
23
24         * configure.in: test for <stdint.h>, which is not available
25         on earlier versions of Linux.
26         * config.in: define HAVE_STDINT_H if it's present.
27         * configure: autoconfiscate.
28         * lin-thread.c: if not HAVE_STDINT_H, stub out the entire module.
29         
30 Fri Dec 17 20:45:21 1999  Andrew Cagney  <cagney@b1.cygnus.com>
31
32         * target.c (find_target_beneath): Change ``='' in if to ``==''.
33
34 1999-12-16  Michael Snyder  <msnyder@cleaver.cygnus.com>
35
36         * defs.h (TIDGET): add default definition.
37         * lin-thread.c (check_for_thread_event): for now, just provide
38         an empty definition (to be filled in later).
39
40 1999-12-16  Fernando Nasser  <fnasser@totem.to.cygnus.com>
41
42         * varobj.c (varobj_list): Improve the test and the text of the
43         assertion that guards against wrong tally of root varobjs.
44         (uninstall_variable): Fix for a bug in which the number of root
45         varobjs was not decremented if the first one in the list was deleted.
46
47 1999-12-16  Michael Snyder  <msnyder@cleaver.cygnus.com>
48         
49         * linux-thread.c: Remove printf-debugging code.
50         * lin-thread.c: ditto.
51         * config/alpha/nm-linux.h: protect with NM_LINUX_H.
52         * testsuite/gdb.threads/linux-dp.exp: Make test for "New Thread"
53         message more forgiving.  Ditto test for "info threads".
54         
55 1999-12-16  Michael Snyder  <msnyder@cleaver.cygnus.com>
56
57         * lin-thread.c: new file.  Implements multi-thread debugging on
58         Linux using the thread_db API first implemented on Solaris.  This
59         frees GDB from any dependency on the internal implementation of
60         the thread library.  Future versions of the thread library will
61         implement a libthread_db API for debuggers, which GDB will use.
62         * config/i386/linux.mh: add lin-thread.o to the link, and add
63         -ldl and -rdynamic since libthread_db is a dynamic library.
64         * config/alpha/alpha-linux.mh: ditto.
65         * configure.in: test for thread_db.h, proc_service.h
66         * configure: autoconf.
67         * config.in: conditionally define HAVE_THREAD_DB_H
68         and HAVE_PROC_SERVICE_H
69         * gdb_thread_db.h: new file, used when the system doesn't have it.
70         * gdb_proc_service.h: ditto.
71         
72 1999-12-16  Michael Snyder  <msnyder@cleaver.cygnus.com>
73
74         * linux-thread.c: changes to accomodate the new lin-thread.c
75         module based on the thread_db API.  These changes make parts of
76         linux-thread.c shareable with lin-thread.c.
77         (linuxthreads_wait_mask): replace with linuxthreads_block_mask.
78         (using_thread_db): new variable.  Allows linux-thread module to 
79         detect when lin-thread (thread_db API) module is in use.
80         (save_inferior_pid, restore_inferior_pid): make 32/64 bit safe.
81         (check_all_signal_numbers) make extern, shared with lin-thead.c.
82         (linuxthreads_new_objfile): use target_new_objfile_chain to share
83         this hook with the lin-thread module.  Call the other module FIRST.
84         If using_thread_db is turned on by the other thread module, do not
85         set linuxthreads_debug and do not call update_stop_threads.  Do call
86         check_all_signal_numbers, to be sure it gets set before target_wait.
87         (linux_child_wait): new function.  Abstracts out the "child_wait"
88         functionality, so that it can be shared with the lin-thread module.
89         (linuxthreads_wait): call linux_child_wait, instead of doing the
90         waiting inline.  If using_thread_db, do not call update_stop_threads
91         and do not turn on linuxthreads_debug.
92         (linuxthreads_mourn_inferior): abstract out the clearing of global
93         state, so that it can be shared with the lin-thread.c module.
94         (_initialize_linuxthreads): use linuxthreads_wait_mask to block
95         SIGCHLD exactly ONCE, and leave it blocked!  Then linux_child_wait
96         will call sigsuspend when it wants to wait for this signal.
97         (thread_attach): abstract out ptrace attach to share with lin-thread.c
98         
99 1999-12-16  Michael Snyder  <msnyder@cleaver.cygnus.com>
100
101         Make target_pid_to_str a target_ops vector.
102         * target.h (target_pid_to_str): redefine to use a target_ops vector.
103         (target_tid_to_str): default to using target_pid_to_str.
104         (target_pid_or_tid_to_str): ditto.
105         * target.c (update_current_target): inherit to_pid_to_str method.
106         (find_target_beneath): new function.  Find target stratum below 
107         the given one.
108         * config/nm-gnu.h: don't define target_pid_to_str.
109         * config/i386/tm-i386sol2.h: ditto.
110         * config/sparc/tm-sun4sol2.h: ditto.
111         * gnu-nat.c (init_gnu_ops): initialize to_pid_to_str vector.
112         * linux-thread.c (init_linuxthreads_ops): ditto.
113         * sol-thread.c (init_sol_thread_ops: ditto.
114         * procfs.c (init_procfs_ops): ditto.
115         * win32-nat.c (init_child_ops): ditto.
116         * config/i386/tm-cygwin.h: don't define target_pid_to_str.
117         * inftarg.c (child_pid_to_str): new function, used to initialize
118         to_pid_to_str vector.  May be suppressed by defining CHILD_PID_TO_STR.
119         (init_child_ops): initialize to_pid_to_str using child_pid_to_str.
120         Derivative modules may substitute their own child_pid_to_str func
121         by defining CHILD_PID_TO_STR.
122         * lynx-nat.c (lynx_pid_to_str): rename to child_pid_to_str.
123         * config/nm-lynx.h: define CHILD_PID_TO_STR.  
124         Don't define target_pid_to_str.
125         * hppah-nat.c (hppa_pid_to_str): rename to child_pid_to_str.
126         * infttrace.c (hppa_pid_or_tid_to_str): call child_pid_to str 
127         instead of hppa_pid_to_str.
128         * config/pa/nm-hppah.h: define CHILD_PID_TO_STR.
129         Don't define target_pid_to_str.
130         
131 1999-12-16  Michael Snyder  <msnyder@cleaver.cygnus.com>
132
133         * i386-linux-nat.c: introduce PIDGET/TIDGET macros as on Solaris, 
134         preparatory to using the thread_db debugging API for Linux.
135         (fill_gregset): guard against invalid input.
136         (fetch_regs): add a pid/thread_id argument, so we can fetch regs
137         from multiple processes/clones/threads.  (store_regs): ditto.
138         (fetch_fpregs): ditto.  (store_fpregs): ditto.
139         (fetch_xfpregs): ditto.  (store_xfpregs): ditto.
140         (fetch_inferior_registers): use TIDGET to extract an appropriate
141         thread/clone/process id from inferior_pid, if there's one there, 
142         and pass it to fetch_regs etc.  (store_inferior_registers): ditto.
143
144         * infptrace.c: include every available version of wait.h.
145         introduce PIDGET/TIDGET macros for use with thread_db API on Linux.
146         (call_ptrace): rearrange lines that were split by an ifdef.
147         (fetch_register): use TIDGET to extract an appropriate process ID
148         from inferior_pid, in case we are debugging more than one process.
149         (store_register): ditto.  This is for Linux.
150         (child_xfer_memory): use PIDGET to extract the main process id from
151         inferior_pid, in case we are debugging multiple processes that share
152         the same address space (as on Linux).
153
154 1999-12-16  Christopher Faylor  <cgf@cygnus.com>
155
156         * win32-nat.c: Add a missing register to mappings array.
157         (child_fetch_inferior_registers): Use precalculated index into mappings
158         array as supply_registers argument.
159         (handle_output_debug_string): Avoid considering every debug string as a
160         cygwin signal.
161         (handle_exception): Trap first chance exceptions.
162         (child_create_inferior): Initialize Microsoft thread walking API.
163         (sgmb): New function.  Used by Microsoft API for stack walking.
164         (child_frame_chain): New function.  Uses Microsoft API for stack
165         walking.
166         (child_frame_chain_saved_pc): Ditto.
167         * config/i386/tm-cygwin.h: Define frame handling stuff.
168
169 1999-12-15  Stan Shebs  <shebs@andros.cygnus.com>
170
171         ARM GNU/Linux support and general ARM target fixes/cleanup from
172         Scott Bambrough <scottb@netwinder.org>, plus obsoletion of the old
173         RISCix support.
174         * NEWS: Mention addition and obsoletion.
175         * configure.host: Recognize arm* instead of just arm.
176         (arm*-*-linux*): Recognize.
177         * configure.tgt: Ditto, plus assume arm*-*-* is embedded.
178         * config/arm/arm.mh, config/arm/arm.mt, config/arm/nm-arm.h,
179         config/arm/xm-arm.h: Mark as OBSOLETE.
180         * config/arm/embed.mt, config/arm/tm-embed.h: New files.
181         * config/arm/linux.mh, config/arm/linux.mt, config/arm/nm-linux.h,
182         config/arm/tm-linux.h, config/arm/xm-linux.h: Ditto.
183         * config/arm/tm-arm.h: Add more comments, eliminate PARAMS.
184         (STACK_END_ADDR): Remove.
185         (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT, THUMB_LE_BREAKPOINT,
186         THUMB_BE_BREAKPOINT): Move to here from arm-tdep.c.
187         (NUM_REGS): Define as sum.
188         (NUM_FREGS, NUM_SREGS, NUM_GREGS): New definitions.
189         (FP_REGISTER_RAW_SIZE, FP_REGISTER_VIRTUAL_SIZE,
190         STATUS_REGISTER_SIZE): Define.
191         (REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE,
192         REGISTER_VIRTUAL_SIZE): Rewrite to use symbolic values.
193         (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
194         REGISTER_CONVERT_TO_RAW, USE_STRUCT_CONVENTION,
195         EXTRACT_RETURN_VALUE): Rewrite to use new functions.
196         (IN_SIGTRAMP): Remove definition.
197         * arm-convert.s: Mark as OBSOLETE.
198         * arm-linux-nat.c: New file.
199         * Makefile.in: Add build rule for it.
200         * arm-tdep.c (struct frame_extra_info): New struct.
201         (arm_use_struct_convention): Rewrite.
202         (arm_push_arguments): Rewrite to handle more cases.
203         (arm_register_convertible, arm_register_convert_to_virtual,
204         arm_register_convert_to_raw, arm_extract_return_value): New
205         functions.
206         (LITTLE_BREAKPOINT, BIG_BREAKPOINT): Remove.
207         * arm-xdep.c: Mark as OBSOLETE.
208
209 1999-12-15  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
210
211         * infcmd.c (run_stack_dummy): Temporarily lie about the target
212         ability to support asynchronous execution.
213
214         * remote.c (remote_can_async_p, remote_is_async_p): Return true
215         iff to_async_mask_value is true too.
216         (remote_async): Error out if called when to_async_mask_value is 0.
217         (init_remote_async_ops): Initialize to_async_mask_value to 1.
218         (remote_async_detach, remote_async_resume, remote_async_wait,
219         remote_async_kill): Change SERIAL_IS_ASYNC_P call to
220         target_is_async_p call.
221         (remote_async_resume): Change SERIAL_CAN_ASYNC_P call to
222         target_can_async_p call.
223         
224         * target.c (update_current_target): Inherit to_async_mask_value.
225         (target_async_mask): New function. To temporarily turn the target
226         into a synchronous one for inferior function calls, and back to
227         asynchronous.
228
229         * target.h (to_async_mask_value): New entry in the target
230         vector.
231         (target_async_mask): Export.
232         (target_async_mask_value): Define.
233         
234 Wed Dec 15 11:24:32 1999  Jeffrey A Law  (law@cygnus.com)
235
236         * hp-psymtab-read.c (trans_lang): Use HP_LANGUAGE_FORTRAN instead
237         of HP_LANGUAGE_F77.
238
239 Wed Dec 15 13:37:55 1999  Andrew Cagney  <cagney@b1.cygnus.com>
240
241         * gdb-events.h, gdb-events.c (set_gdb_event_hooks): Return the old
242         event hooks vector.
243
244 1999-08-13  Jim Kingdon  <http://developer.redhat.com/>
245
246         * breakpoint.c (bpstat_stop_status): Revert 1998-09-08 change
247         to ->frame matching.  The change did not match the ChangeLog
248         entry, looked fishy, and caused infinite stepping when running
249         "next" from main on sparc w/ RH Linux.  Thanks to Jakub for the
250         report.
251
252 1999-12-14  Stan Shebs  <shebs@andros.cygnus.com>
253
254         * arm-tdep.c (arm_get_next_pc): Add argument to shifted_reg_val
255         call.
256
257 1999-12-14  Mark Salter  <msalter@cygnus.com>
258
259         * mips-tdep.c (mips_print_register): Fix printing of individual
260         registers when REGISTER_VIRTUAL_SIZE != REGISTER_RAW_SIZE.
261
262 Tue Dec 14 23:29:19 1999  Andrew Cagney  <cagney@b1.cygnus.com>
263
264         * defs.h (mcalloc): Delcare.
265         * utils.c (xcalloc, mcalloc): New functions.
266
267 1999-12-13  Stan Shebs  <shebs@andros.cygnus.com>
268
269         * config/arm/tm-arm.h: Reformat comments, in preparation for
270         real changes.
271         * arm-tdep.c: Similarly, plus change function definitions to
272         modern form.
273
274 1999-12-13  Michael Snyder  <msnyder@cleaver.cygnus.com>
275
276         * breakpoint.h (enum bptype): add new BP type bp_thread_event.
277         This will be used when a target needs to set an invisible 
278         breakpoint to detect events such as thread creation.
279         * breakpoint.c (interlan_breakpoint_number): remove ifdefs.
280         (create_thread_event_breakpoint): new function.
281         (remove_thread_event_breakpoints): new function.
282         (bpstat_what): don't stop at invisible thread_event breakpoints.
283         (update_breakpoints_after_exec): if bp_thread_event breakpoins
284         still exist after an exec, delete them.  They'll need to be 
285         found and installed anew anyway.
286         (print_it_typical): don't announce bp_thread_event breakpoints.
287         (print_one_breakpoint): account for new breakpoint type.
288         (mention): don't mention invisible bp_thread_event breakpoints.
289         (delete_command): don't delete invisible bp_thread_event bp's.
290         (breakpoint_re_set_one): don't touch bp_thread_event bp's.
291         
292 Mon Dec 13 11:10:59 1999  Jimmy Guo     <guo@cup.hp.com>
293
294         * language.h (longest_raw_hex_string, longest_local_hex_string,
295         longest_local_hex_string_custom): Declare.
296         * language.c: New functions, and misc. fixes.
297         (longest_raw_hex_string, longest_local_hex_string,
298         longest_local_hex_string_custom): New functions.
299
300         * c-typeprint.c
301         (c_type_print_varspec_prefix,c_type_print_varpsec_suffix): Add
302         TYPE_CODE_TEMPLATE case and default case.
303         (c_type_print_base): Revise how demangled_no_class is found;
304         print '}' before printing local file:line info.
305         * c-valprint.c (c_value_print): print reference type to class.
306
307         * valarith.c (value_binop): Add support for exponentiation,
308         equal, not equal.
309         (my_strcmp): New function.
310         (value_equal,value_less): Add string equality comparison support.
311
312         * m2-exp.y (lex): add default case statement to capture
313         unhandled token and call error().
314
315 1999-12-13  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
316
317         * main.c (main): Remove unused variable.
318
319         From Hubert VERSTRAETE (hubertV@bigfoot.com):
320         * main.c (captured_main): Disambiguate command line option '-d' by
321         preferring --directory over --dbx.
322
323         * top.c (return_to_top_level): Do not do exec cleanups if the
324         target is executing. Those cleanups are supposed to be done when
325         the target has stopped.
326
327 Mon Dec 13 20:52:37 1999  Andrew Cagney  <cagney@b1.cygnus.com>
328
329         * breakpoint.c (do_captured_breakpoint_query,
330         gdb_breakpoint_query): New functions.  Implement a breakpoint
331         query.
332
333         * defs.h (enum gdb_rc): Declare.
334         (gdb_breakpoint_query): Declare.
335
336 Mon Dec 13 14:18:06 1999  Andrew Cagney  <cagney@b1.cygnus.com>
337
338         * gdb-events.h: Fix typo in description of breakpoint events.
339         * gdb-events.sh: Update.
340
341 Mon Dec 13 13:57:26 1999  Andrew Cagney  <cagney@b1.cygnus.com>
342
343         * breakpoint.c (ep_type_description_t): Delete.
344         (print_one_breakpoint): Add local declaration of struct
345         ep_type_description.
346
347 Mon Dec 13 12:38:31 1999  Andrew Cagney  <cagney@b1.cygnus.com>
348
349         * top.h: Delete #include <setjmp.h>.  Moved to top.c.
350         (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, SIGJMP_BUF, SIGSETJMP,
351         SIGLONGJMP): Delete.  Moved to top.c
352         (error_return, quit_return): Delete extern declarations.
353
354         * top.c: #include <setjmp.h>.
355         (error_return, quit_return): Make static.
356         (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, SIGJMP_BUF, SIGSETJMP,
357         SIGLONGJMP): Define.
358
359 Mon Dec 13 11:54:12 1999  Andrew Cagney  <cagney@b1.cygnus.com>
360
361         * tracepoint.c (trace_start_command, tracepoints_info): Print
362         step_count using %ld.
363         * Makefile.in (tracepoint.o): Compile tracepoint.o with -Werror.
364
365 1999-12-12  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
366
367         * target.h (enum target_waitkind): Add new enumeration value
368         TARGET_WAITKIND_IGNORE. For inferior events that we should do
369         nothing about.
370
371         * remote.c (remote_async_wait): After each character of console
372         output from the inferior, return to the event loop with an event
373         kind of TARGET_WAITKIND_IGNORE instead of looping here.
374
375         * infrun.c (handle_inferior_event): In case of
376         TARGET_WAITKIND_IGNORE, return immediately, and set things up so
377         that we are still waiting for the inferior.
378
379 1999-12-12  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
380
381         * event-loop.c (handle_timer_event): When calling the timer
382         procedure, use the saved_timer data, not the timer_ptr data,
383         because the latter has been already freed.
384
385 Fri Dec 10 12:01:43 1999  Andrew Cagney  <cagney@b1.cygnus.com>
386
387         * eval.c (evaluate_subexp): Only inline when GNUC and not STDC.
388
389 Sat Dec 11 17:52:03 1999  Andrew Cagney  <cagney@b1.cygnus.com>
390
391         * breakpoint.c (print_one_breakpoint): New function.  Move
392         breakpoint print code to here.
393         (breakpoint_1): From here.
394
395 Mon Dec  6 20:31:28 1999  Andrew Cagney  <cagney@b1.cygnus.com>
396
397         * gdbarch.sh: Replace field init_p with invalid_p.
398         (TARGET_BFD_VMA_BIT): New architecture vector method.  Defaults to
399         architecture bits_per_address.
400         * gdbarch.h, gdbarch.c: Update.
401         * defs.h (TARGET_BFD_VMA_BIT): Provide default of TARGET_PTR_BIT
402         for non- multi-arch case.
403
404         * gdbtypes.h (builtin_type_bfd_vma, builtin_type_ptr,
405         builtin_type_CORE_ADDR): New GDB specific address types.
406         * gdbtypes.c (_initialize_gdbtypes, build_gdbtypes): Initialize
407         new builtin types.
408
409 Wed Dec  8 17:48:56 1999  Andrew Cagney  <cagney@b1.cygnus.com>
410
411         * config/sparc/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Delete
412         definition.  Already defined in config/nm-nbsd.h.  Include the
413         more explicit config/nm-nbsd.h.
414
415         * config/sparc/nbsd.mt (TDEPFILES): Move solib.o from here.
416         * config/sparc/nbsd.mh (NATDEPFILES): To here.
417         * config/xm-nbsd.h: #include <sys/param.h> to get definition of
418         NGROUPS needed by <limits.h> and missing on some systems.
419         * config/nm-nbsd.h: Only macro's that match NetBSD definitions
420         with what is expected by solib.c when not SVR4_SHARED_LIBS.
421
422         * configure.host: Add patterns for sparc-*-netbsdaout* and
423         sparc-*-netbsdelf*.
424         * config/sparc/nm-nbsdelf.h: New file.
425         * config/sparc/nbsdelf.mh: New file.
426
427 Wed Dec  8 19:56:48 1999  Andrew Cagney  <cagney@b1.cygnus.com>
428
429         * frame.h, blockframe.c: Rename default_frame_chain_valid to
430         file_frame_chain_valid.  Rename alternate_frame_chain_valid to
431         func_frame_chain_valid.
432
433         * config/sparc/tm-sparclite.h, config/mips/tm-mipsv4.h,
434         config/m88k/tm-delta88v4.h, config/m68k/tm-m68kv4.h,
435         config/m68k/tm-monitor.h, config/i386/tm-i386nw.h,
436         config/i386/tm-i386v4.h, config/h8300/tm-h8300.h: Update.
437         * mips-tdep.c (mips_gdbarch_init): Update.
438         
439 Wed Dec  8 19:12:17 1999  Andrew Cagney  <cagney@b1.cygnus.com>
440
441         * blockframe.c (generic_file_frame_chain_valid): Rename
442         generic_file_frame_chain_valid.
443         * frame.h: Update.
444         * config/fr30/tm-fr30.h, config/m32r/tm-m32r.h,
445         config/mn10200/tm-mn10200.h, config/mn10300/tm-mn10300.h,
446         config/sh/tm-sh.h, config/v850/tm-v850.h, config/mcore/tm-mcore.h:
447         Update.
448
449         * blockframe.c (generic_func_frame_chain_valid): New function.
450         Implement dummy-frame equivalent of function based frame chain
451         valid.
452         * frame.h (generic_func_frame_chain_valid): Declare.
453
454 Wed Dec  8 16:26:27 1999  Andrew Cagney  <cagney@b1.cygnus.com>
455
456         * blockframe.c (alternate_frame_chain_valid,
457         default_frame_chain_valid): Swap implementations.  The change Mon
458         Nov 30 11:18:48 1998 Andrew Cagney <cagney@chook> which converted
459         several macros to functions was backwards.
460
461         * mips-tdep.c (mips_gdbarch_init): Update.  Call
462         alternate_frame_chain_valid and not default_frame_chain_valid.
463
464 Wed Dec  8 15:29:48 1999  Andrew Cagney  <cagney@b1.cygnus.com>
465
466         * infptrace.c: Simplify handling of <sys/wait.h>. Always include
467         "wait.h" from the ../include/wait.h directory.  #include
468         <sys/wait.h> was added as part of Mon Nov 29 12:14:10 1999 Andrew
469         Cagney <cagney@b1.cygnus.com> but the ChangeLog was omitted.
470
471 1999-12-07  Jim Blandy  <jimb@cygnus.com>
472
473         Add support for SSE registers in core files.
474         * corelow.c (get_core_register_section): New function.
475         (get_core_registers): Fetch the new ".reg-xfp" sections,
476         in addition to the traditional ".reg" and ".reg2" sections.
477         Check for per-thread variants of all three.  Use
478         get_core_register_section, instead of writing it out over and over
479         again.
480         * i386-linux-nat.c (i386_linux_fetch_core_registers): New function.
481         (i386_linux_nat_core_fns): New core_fns structure.  We do our own
482         core handling now, instead of using the generic code in core-regset.c.
483         (_initialize_i386_linux_nat): New function, needed to register
484         i386_linux_nat_core_fns.
485         * config/i386/linux.mh (NATDEPFILES): Remove core-regset.o;
486         i386-linux-nat.c has its own sniffer now.
487         * gdbcore.h: (struct core_fns): Doc fix.
488
489         * i386v-nat.c (i386_float_info): Definition is #if 0'd; delete it
490         altogether.  This should use the function i387-tdep.c.
491
492         Patch from Mark Kettenis  <kettenis@gnu.org>:
493
494         * config/i386/tm-i386.h (FLOAT_INFO): New define.
495         * i387-tdep.c (print_i387_value, print_i387_ext,
496         print_i387_status_word, print_i387_control_word, i387_float_info):
497         New functions, used to implement generic `info float' command.
498
499 1999-12-06  Christopher Faylor  <cgf@cygnus.com>
500
501         * dcache.c (set_dcache_state): New function.
502         * dcache.h: Declare set_dcache_state().
503
504 Sat Dec  4 15:17:44 1999  Andrew Cagney  <cagney@b1.cygnus.com>
505
506         * remote.c (build_remote_packet_sizes): Reduce the default packet
507         size of 400 bytes by one to 399.  Stops GDB trashing stubs that
508         append a trailing NUL to an already full buffer.
509
510 Sat Dec  4 01:16:47 1999  Andrew Cagney  <cagney@b1.cygnus.com>
511
512         * tracepoint.c (remote_get_noisy_reply): Add parameter sizeof_buf.
513         (finish_tfind_command): Add parameter sizeof_msg.
514         
515         * remote.c (remote_threads_info): Move assignment operator to
516         outside of function call.
517         (remote_send): Add parameter sizeof_buf.
518         (getpkt): Add parameter sizeof_buf. Call read_frame passing in
519         sizeof_buf.
520
521         * remote.h (getpkt): Update.
522         
523         * tracepoint.c (remote_set_transparent_ranges,
524         remote_get_noisy_reply, trace_start_command, trace_stop_command,
525         trace_status_command, finish_tfind_command, trace_find_pc_command,
526         trace_find_tracepoint_command, trace_find_line_command,
527         trace_find_range_command, trace_find_outside_command): Update.
528
529         * remote.c (set_thread, remote_thread_alive,
530         remote_get_threadinfo, remote_get_threadlist,
531         remote_current_thread, remote_threads_info,
532         extended_remote_restart, get_offsets, remote_open_1,
533         remote_async_open_1, remote_wait, remote_async_wait,
534         remote_fetch_registers, check_binary_download, remote_write_bytes,
535         remote_read_bytes, remote_send, remote_detach,
536         remote_async_detach, remote_fetch_registers,
537         store_register_using_P, store_register_using_P,
538         remote_fetch_registers, remote_store_registers, putpkt_binary,
539         remote_insert_breakpoint, remote_remove_breakpoint,
540         compare_sections_command, remote_rcmd, packet_command,
541         remote_info_process, remote_query, remote_insert_watchpoint,
542         remote_search, remote_remove_watchpoint,
543         remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Update.
544
545 Fri Dec  3 17:38:06 1999  Andrew Cagney  <cagney@b1.cygnus.com>
546
547         * (read_frame): Add sizeof_buf parameter. Don't allow repeat when
548         first character.  Always leave space at the end of the buffer.
549         Return size of packet or -1.
550         (getpkt): Update.  Pass in PBUFSIZ.
551
552 Thu Dec  2 17:14:53 1999  Andrew Cagney  <cagney@b1.cygnus.com>
553
554         * ser-pipe.c: Include <string.h> for memset().
555
556 1999-12-01  Jim Blandy  <jimb@cygnus.com>
557
558         * gdbtypes.c (builtin_type_v4si, builtin_type_v8qi,
559         builtin_type_v4hi, builtin_type_v2si): New SIMD types.
560         (build_gdbtypes): Initialize them.
561         (_initialize_gdbtypes): Gdbarch_swap them.
562         * gdbtypes.h (builtin_type_v4si, builtin_type_v8qi,
563         builtin_type_v4hi, builtin_type_v2si): Declare them. 
564
565         * findvar.c (read_register_bytes, write_register_bytes): Correctly
566         determine how the region the caller is writing overlaps with each
567         register's bytes.
568
569         * value.h (struct value): Doc fixes.
570
571         * valops.c (value_assign): Clarify error message.
572
573 1999-12-01  Christopher Faylor  <cgf@cygnus.com>
574
575         * config/i386/tm-cygwin.h: Change tm-i386.h include back to tm-i386v.h.
576
577 1999-12-01  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
578
579         * inf-loop.c (inferior_event_handler): In case of
580         INF_EXEC_CONTINUE, don't do all the regular continuations, but
581         just the intermediate ones.
582
583         * infcmd.c (step_once): Add the continuation to the
584         intermediate_continuation list instead of the regular continuation
585         list.
586
587         * utils.c (add_intermediate_continuation): New function, to add
588         continuations to the intermedite_continuation list.
589         (do_all_intermediate_continuations): New function, do all the
590         continuations in the intermediate list.
591         (discard_all_intermediate_continuations): New function, discard
592         all the continuations in the intermediate list.
593         (intermediate_continuation): New global list for use by step_1().
594
595         * defs.h: Export intermediate_continuation,
596         add_intermediate_continuation, do_all_intermediate_continuations,
597         discard_all_intermediate_continuations.
598
599 1999-11-30  Christopher Faylor  <cgf@cygnus.com>
600
601         * win32-nat.c (mappings): Reorganize slightly for new uniform i386
602         register configuration.
603         (do_child_fetch_inferior_registers): Handle special case floating point
604         registers.
605         (handle_output_debug_string): Handle cygwin-specific signals broadcast
606         from the cygwin DLL.
607         (handle_exceptions): Add code to properly allow continuation after a
608         CTRL-C.
609         (child_continue): Accept propagated "continue_status" which controls
610         how the inferior should be continued.
611         (get_child_debug_event): New function.
612         (child_wait): Use above function to handle debug events.
613         (child_create_inferior): Add more intelligent method for running the
614         inferior to the appropriate point before handing it off to the rest of
615         gdb.
616         (child_stop): Specifically send a CTRL-C to the debugged process.
617         (child_kill_inferior): Set global continue status here to cause
618         inferior to run to completion.
619         (child_resume): Eliminate code which attempts to decide how to continue
620         the inferior.  This is now handled by child_continue.
621         * config/i386/tm-cygwin.h: Gut and reorganize for consistency with new
622         tm-i386.h.
623
624         Patch from Egor Duda (deo@logos-m.ru)
625         * win32-nat.c (psapi_get_dll_name): New function.
626         (handle_load_dll): Correctly load DLL symbol tables after attaching to
627         a running pid.
628
629 1999-11-30  Michael Snyder  <msnyder@cleaver.cygnus.com>
630
631         * infrun.c (handle_inferior_pid): revert 11-29 change: resuming
632         a thread other than the current thread with a signal.  Apparently
633         target_resume with a specific pid, a specific signal, and no step
634         means to continue ALL threads but to only send the signal to one
635         (and not, as I had assumed, to continue only the specified thread).
636         * i386-linux-nat.c (fill_gregset): guard against invalid input.
637         
638 1999-11-30  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
639
640         * infcmd.c (step_once): New function. Used to do just one step
641         operation.
642         (step_1_continuation): New function. Figure out if we need to step
643         again before returning control to the user.
644         (step_1): If we are in asynchronous mode, don't do the for loop,
645         but rather delegate to continuations the task of repeating the
646         step operation.
647
648         * utils.c (do_all_continuations): Copy the continuation list aside
649         before working on it.
650
651         * target.h (enum inferior_event_type): Add new enum
652         INF_EXEC_CONTINUE.
653
654         * inf-loop.c (inferior_event_handler): Handle new case
655         INF_EXEC_CONTINUE.
656
657         * infrun.c (fetch_inferior_event): If we are in the middle of a
658         'step n' type command, don't say that the execution is complete,
659         but that it will have to continue.
660
661 1999-11-30  Kevin Buettner  <kevinb@cygnus.com>
662
663         * utils.c (verror): Don't traverse va_list argument twice.  Also,
664         removed extraneous va_end() call.
665
666 1999-11-29  Michael Snyder  <msnyder@cleaver.cygnus.com>
667
668         * infrun.c (handle_inferior_pid): If a child thread stops on a 
669         signal that we are ignoring, and GDB silently resumes the child, 
670         resume ALL threads (not just the one that got the signal).  All
671         threads are stopped, so all must be resumed.
672         (handle_inferior_event): on detecting a thread context switch, 
673         swap infrun_state ONLY if both the old thread and the new one
674         are in the thread list.  Otherwise state information will be lost!
675         Problem may arise with flaky back-ends.
676         
677 1999-11-29  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
678
679         * breakpoint.c (bpstat_stop_status): Don't decrease hit_count
680         in case of a wp that has not changed.
681
682 Mon Nov 29 12:14:10 1999  Andrew Cagney  <cagney@b1.cygnus.com>
683
684         * gdbtypes.c (init_simd_type): Make static.
685
686         * configure.in (AC_CHECK_HEADERS): Check for <sys/ioctl.h>.
687         * configure, config.h: Re-generate.
688         * inflow.c: Include <sys/ioctl.h>
689
690         * i386b-nat.c: Include "gdbcore.h".
691         * fork-child.c: Include "command.h".
692
693         * remote.c (remote_cisco_section_offsets,
694         remote_start_remote_dummy, store_register_using_P,
695         remote_info_process, remote_cisco_open, remote_cisco_close,
696         readsocket, readtty, minitelnet, remote_cisco_wait,
697         init_remote_async_ops, init_extended_async_remote_ops,
698         set_remote_cmd), infrun.c (default_skip_permanent_breakpoint): Use
699         ISO-C syntax for function definition.
700
701 Mon Nov 29 11:28:21 1999  Andrew Cagney  <cagney@b1.cygnus.com>
702
703         * stabsread.c: Revert 1999-11-09 Jim Blandy
704         <jimb@zwingli.cygnus.com> and 1999-11-08 Jim Blandy
705         <jimb@cygnus.com>.  Broken on non-Linux targets.
706
707 1999-11-26  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
708
709         * symfile.c (show_load_progress): Add total sent so far to the
710         information passsed to the hook users.
711         (generic_load): Collect total sent so far and pass that to the
712         progress hook.
713
714         * defs.h (show_load_progress): Update.
715
716 1999-11-25  Nick Clifton  <nickc@cygnus.com>
717
718         * coffread.c (coff_symfile_read): Treat "epoc-pe" targets as "pe"
719         targets.
720         * dbxread.c (dbx_read_symfile): Treat "epoc-pe" targets as "pe"
721         targets. 
722
723 Wed Nov 24 17:07:28 1999  Andrew Cagney  <cagney@b1.cygnus.com>
724
725         * Makefile.in (init.c): Add SUBDIR_INIT_FILES so that sub
726         directories can hook in extra init files.
727
728 1999-11-23  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
729
730         * defs.h (show_load_progress): Export.
731
732         * symfile.c (show_load_progress): New hook for download.
733         (generic_load): Collect total size of executable to load. 
734         Call progress hook when downloading.
735
736 Thu Nov 18 11:54:24 1999  Andrew Cagney  <cagney@b1.cygnus.com>
737
738         * arc-tdep.c (codestream_fill): Rewrite byte swap code using
739         function extract_unsigned_integer.
740
741 Wed Nov 17 17:01:06 1999  Andrew Cagney  <cagney@b1.cygnus.com>
742
743         * arm-xdep.c: #include "arm-opcode.h" -> "opcode/arm.h".
744
745 1999-11-22  Jim Blandy  <jimb@cygnus.com>
746
747         * Makefile.in (i386-tdep.o): Update list of dependencies.
748
749 1999-11-22  Jim Blandy  <jimb@cygnus.com>
750
751         * config/i386/tm-i386v.h (NUM_REGS, REGISTER_NAMES,
752         REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE,
753         REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE,
754         MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE): Deleted.  All
755         of these should inherit identical or compatible values from
756         tm-i386.h, as long as you don't define HAVE_SSE_REGS or
757         HAVE_I387_REGS, which are new anyway.
758
759 Mon Nov 22 21:39:27 1999  Andrew Cagney  <cagney@b1.cygnus.com>
760
761         * target.c (do_target_signal_to_host): New function.  Indicate of
762         the conversion was successful to the caller via an additional
763         parameter.
764         (target_signal_to_host_p): New function. Return non-zero if the
765         GDB signal exists on the host system.
766         (target_signal_to_host): Rewrite.  Use do_target_signal_to_host.
767         * target.h (target_signal_to_host_p): Add declaration. Document
768         target_singal vs host signal vs target OS signal confusion.
769         
770         From 1999-11-08 Jimmy Guo <guo@cup.hp.com>:
771         * hppah-nat.c (require_notification_of_events): Start by ignoring
772         all signals and then adding back in ones we're interested in.
773         
774 Thu Nov 18 18:12:48 1999  Andrew Cagney  <cagney@b1.cygnus.com>
775
776         * jv-typeprint.c (java_type_print_base), kod-cisco.c
777         (cisco_kod_open), kod.c (kod_set_os), xcoffread.c
778         (process_linenos), symfile.c (add_symbol_file_command),
779         remote-rdi.c (arm_rdi_open, rdilogfile_command), main.c
780         (captured_main), go32-nat.c (go32_create_inferior), exec.c
781         (exec_file_attach), corefile.c (core_file_command,
782         reopen_exec_file): Replace strdup with xstrdup.
783
784 Mon Nov 22 12:02:47 1999  Andrew Cagney  <cagney@b1.cygnus.com>
785
786         * bcache.c (print_bcache_statistics): Fix printf_filtered
787         arguments.
788         (print_percentage): Make function void.
789
790 1999-11-21  Jim Blandy  <jimb@cygnus.com>
791
792         Make the bcache hash table grow.
793         * bcache.h (BCACHE_NUM_BUCKETS): Delete definition.
794         (struct bcache): Add new element: num_buckets.  Make bucket be a
795         pointer to an array, not an array.
796         (free_bcache): New extern declaration.
797         * bcache.c (CHAIN_LENGTH_THRESHOLD): New constant.
798         (expand_hash_table): New function.
799         (bcache): Grow the hash table if the average chain length reaches
800         CHAIN_LENGTH_THRESHOLD.
801         (free_bcache): New function.
802         (print_bcache_statistics): Don't assume that the number of buckets
803         is constant any more.
804         (BSTRING_SIZE): Moved down to just above 'bcache' function, where
805         it's used.
806         * objfiles.c (free_objfile): Call free_bcache, instead of just 
807         freeing the bcache's obstack directly.
808         * symfile.c (reread_symbols): Same.
809
810 1999-11-20  Jim Blandy  <jimb@cygnus.com>
811
812         * bcache.c, bcache.h: Rewritten.  New version imposes less memory
813         overhead, and has a more effective hash function, so it's probably
814         faster, too.
815
816         * config/nm-linux.h: No need to check whether __STDC__ is
817         #defined --- GDB requires ANSI C now.
818
819         * config/i386/nm-linux.h (linuxthreads_pid_to_str,
820         linuxthreads_prepare_to_proceed): Delete declarations --- they're
821         provided by config/nm-linux.h now.
822
823 1999-11-19  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
824
825         * top.c (print_command_lines): Remove unused var.
826
827 1999-11-19  Jim Kingdon  <kingdon@redhat.com>
828
829         Patch applied by Jim Blandy <jimb@cygnus.com>:
830
831         Enable threads for all linux architectures:
832         * config/nm-linux.h: New file.
833         config/alpha/nm-linux.h, config/i386/nm-linux.h,
834         config/m68k/nm-linux.h, config/sparc/nm-linux.h: Use it.
835         * config/tm-linux.h: New file.
836         * config/i386/tm-linux.h, config/m68k/tm-linux.h,
837         config/sparc/tm-linux.h, config/alpha/tm-alphalinux.h: Use it.
838         * config/m68k/linux.mh, config/sparc/linux.mh,
839         config/alpha/alpha-linux.mh: Add linux-thread.o.
840
841 1999-11-18  Tom Tromey  <tromey@cygnus.com>
842
843         * tracepoint.h (get_tracepoint_by_number): Updated declaration.
844         * tracepoint.c (trace_pass_command): Better error message.  Fixed
845         logic when `all' not specified.
846         (get_tracepoint_by_number): Added `optional_p' argument.  Fixed
847         all callers.
848
849 Wed Nov 17 17:40:30 1999  Andrew Cagney  <cagney@b1.cygnus.com>
850
851         * findvar.c (SWAP_FLOATING): Delete macro. Unused.
852
853 1999-11-16  Mark Salter  <msalter@cygnus.com>
854
855         * monitor.c (monitor_supply_register): Initialize value to zero.
856
857 1999-11-15  Eli Zaretskii  <eliz@is.elta.co.il>
858
859         (Patches applied by Jim Blandy <jimb@zwingli.cygnus.com>)
860         
861         Change DJGPP target use the common register layout in
862         config/i386/tm-i386.h.
863         * config/i386/tm-go32.h: #include "i386/tm-i386.h", not 
864         "i386/tm-i386v.h".
865         (HAVE_I387_REGS): Define.
866         (HAVE_SSE_REGS): Undefine.
867         (NUM_FREGS, NUM_REGS, REGISTER_NAMES, FP_REGNUM, SP_REGNUM,
868         PS_REGNUM, PC_REGNUM, FP0_REGNUM, FPC_REGNUM, FPCWD_REGNUM,
869         FPSWD_REGNUM, FPTWD_REGNUM, FPIPO_REGNUM, FPIPS_REGNUM,
870         FPOOS_REGNUM, FPOPS_REGNUM, REGISTER_BYTES, REGISTER_BYTE,
871         REGBYTE_0, REGBYTE_10 REGBYTE_16, REGBYTE_24, REGBYTE_29,
872         REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE,
873         MAX_REGISTER_VIRTUAL_SIZE, REGISTER_CONVERTIBLE): Definitions
874         deleted.
875         (i387_to_double, double_to_i387): Declarations deleted.
876         (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
877         REGISTER_VIRTUAL_TYPE): Use definitions from
878         config/i386/tm-i386.h, unless LD_I387 is #defined.
879         
880         * go32-nat.c (go32_fetch_registers, store_register)
881         (go32_create_inferior, init_go32_ops): Replace fatal with
882         internal_error.
883         (sig_map): Map exception 7 to TARGET_SIGNAL_EMT.
884
885         * utils.c (notice_quit): Doc fixes.
886
887 1999-11-15  Kevin Buettner  <kevinb@cygnus.com>
888
889         * gdbserver/server.h (initialize_low): Declare this target
890         specific function.
891         * gdbserver/server.c (main): Call initialize_low.
892         * gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
893         gdbserver/low-sim.c, gdbserver/low-sparc.c, gdbserver/low-sun3.c
894         (initialize_low): Renamed from initialize.  Also removed
895         initialization of inferior_pid.
896         (have_inferior_p): Removed.
897         * gdbserver/low-lynx.c (initialize_low): New function.
898
899 1999-11-12  Fernando Nasser  <fnasser@totem.to.cygnus.com>
900
901         * remote-rdi.c: Fix indentation accordingly to GNU standards.
902
903 Thu Oct 28 00:28:51 1999  Andrew Cagney  <cagney@b1.cygnus.com>
904
905         * d10v-tdep.c (d10v_gdbarch_init): Make the d10v:ts3 the default.
906
907 Tue Oct 26 09:57:29 1999  Andrew Cagney  <cagney@b1.cygnus.com>
908
909         * gdbarch.sh: Re-sync with Cagney's earlier const change.
910
911 Sun Oct 24 20:07:31 1999  Andrew Cagney  <cagney@b1.cygnus.com>
912
913         * d10v-tdep.c (struct gdbarch_tdep): Replace nr_a_regs,
914         imap0_regnum, nr_imap_regs, dmap0_regnum, with dmap_register and
915         imap_register.
916         (R0_REGNUM, LR_REGNUM, PSW_REGNUM, NR_IMAP_REGS, NR_A_REGS):
917         Convert to enums.
918         (TS2_NR_A_REGS, TS2_NR_IMAP_REGS, TS3_NR_IMAP_REGS,
919         TS3_NR_A_REGS): Delete.
920         (d10v_ts2_dmap_register, d10v_ts3_dmap_register,
921         d10v_ts2_imap_register, d10v_ts3_imap_register): New functions.
922         (d10v_dmap_register, d10v_imap_register,
923         d10v_ts2_register_sim_regno, d10v_ts3_register_sim_regno,
924         show_regs): Update.
925         (remote_d10v_translate_xfer_address): Rewrite.  Use
926         sim_d10v_translate_addr to translate addresses.
927         (d10v_gdbarch_init): Initialize tdep members dmap_register and
928         imap_register.
929
930 Sun Oct 24 00:12:44 1999  Andrew Cagney  <cagney@b1.cygnus.com>
931
932         * d10v-tdep.c (struct gdbarch_tdep): Declare.
933         (NR_IMAP_REGS, NR_DMAP_REGS, A0_REGNUM, NR_A_REGS): Redefine using
934         value in gdbarch_tdep.
935         (d10v_dmap_register, d10v_imap_register): Ditto.
936         (d10v_ts2_register_name, d10v_ts2_register_sim_regno): Rename
937         d10v_register_name and d10v_register_sim_regno
938         (enum ts3_regnums, d10v_ts3_register_name,
939         d10v_ts3_register_sim_regno, d10v_register_sim_regno): New.
940         (d10v_gdbarch_init): Configure registers and G packet according to
941         d10v/ts2 and d10v/ts3.
942
943 Sat Oct 23 21:28:02 1999  Andrew Cagney  <cagney@b1.cygnus.com>
944
945         * config/d10v/tm-d10v.h (IMAP0_REGNUM, IMAP1_REGNUM, DMAP_REGNUM):
946         Delete macro.
947         (R0_REGNUM, LR_REGNUM, PSW_REGNUM, A0_REGNUM): Move from here.
948         * d10v-tdep.c: To here.
949
950         * d10v-tdep.c: (NR_DMAP_REGS, NR_IMAP_REGS, NR_A_REGS): Define.
951         (d10v_dmap_register, d10v_imap_register): New functions.
952         (remote_d10v_translate_xfer_address): Make static.
953         (d10v_register_virtual_size): Use TYPE_LENGTH of
954         REGISTER_VIRTUAL_TYPE.
955         (d10v_register_byte, do_d10v_pop_frame,
956         remote_d10v_translate_xfer_address, show_regs,
957         d10v_register_raw_size): Ditto.
958         (d10v_register_virtual_type): Ditto. Use explicitly sized builtin
959         types.
960
961 Sat Oct 23 19:08:39 1999  Andrew Cagney  <cagney@b1.cygnus.com>
962
963         * d10v-tdep.c: Include "sim-d10v.h".
964         (enum ts2_regnums): Declare.
965         (d10v_register_sim_regno): New function.
966
967         * config/d10v/tm-d10v.h: Delete pre multi-arch code.
968         (REGISTER_SIM_REGNO): Define.
969         (d10v_register_sim_regno): Declare.
970         
971 Sat Oct 23 16:39:34 1999  Andrew Cagney  <cagney@b1.cygnus.com>
972
973         * gdbarch.c (initialize_current_architecture): Make ``choice''
974         const.
975
976 Wed Nov 10 16:10:22 1999  Jeffrey A Law  (law@cygnus.com)
977
978         * hppa-tdep.c (hppa_fix_call_dummy): Fix typo in error message.
979
980 Wed Nov 10 16:47:06 1999  Andrew Cagney  <cagney@b1.cygnus.com>
981
982         * utils.c (error_last_message): Use gdb_file_xstrdup.
983
984         * defs.h (verror, internal_verror): Declare.
985
986         * utils.c (verror, internal_error): New functions.
987         (error, internal_error): Use verror / internal_verror.
988         (error_stream): Use gdb_file_xstrdup.  Correctly handle %s in
989         error message body.
990         (error_init): Use mem_fileopen.
991
992         * corefile.c (memory_error): Use mem_fileopen instead of
993         tui_sfileopen.  Don't call error_begin.
994         * remote-sim.c (gdb_os_error): Rewrite using verror. Don't call
995         error_begin.
996
997 Wed Nov 10 14:21:43 1999  Andrew Cagney  <cagney@b1.cygnus.com>
998
999         * defs.h (gdb_file_xstrdup): New function.
1000         * utils.c (gdb_file_xstrdup, do_gdb_file_xstrdup): Implement.
1001
1002 1999-11-09  Stan Shebs  <shebs@andros.cygnus.com>
1003
1004         * exec.c (exec_file_attach), irix5-nat.c, osfsolib.c, solib.c
1005         (info_sharedlibrary_command), pa64solib.c
1006         (pa64_sharedlibrary_info_command), somsolib.c
1007         (som_sharedlibrary_info_command): Replace "exec file" with
1008         "executable file" in messages.
1009
1010 1999-11-09  Jim Blandy  <jimb@zwingli.cygnus.com>
1011
1012         Finish the job attempted by the previous change.
1013         * stabsread.c (read_range_type): Make n2 and n3 LONGEST.  Adjust
1014         the various tests that check for maximum values, bit counts, etc.
1015         In the long run, it might have been simpler just to give GDB bignums.
1016         
1017 Tue Nov  9 18:34:13 1999  Andrew Cagney  <cagney@amy.cygnus.com>
1018
1019         * defs.h (gdb_file_put): Add parameter write.
1020         (gdb_file_put_method_ftype): New typedef.
1021         * utils.c (gdb_file_put, mem_file_put, tui_file_put,
1022         null_file_put): Update.
1023         
1024         * utils.c (struct gdb_file): Add field magic.
1025         (gdb_file_new): Initialize.
1026         (gdb_file_data): Verify.
1027
1028         * utils.c (mem_file_fputs): Delete.  Replaced by.
1029         (mem_file_write): New function. Rewrite mem_file.
1030         (mem_file_new): Update.
1031         
1032 Tue Nov  9 17:51:12 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1033
1034         * remote-sim.c (gdb_os_write_stdout): Use gdb_file_write.
1035         (gdb_os_flush_stdout): Flush gdb_stdtarg instead of gdb_stdout.
1036
1037 Tue Nov  9 15:33:43 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1038
1039         * Makefile.in (procfs.o): Don't compile with -Werror for moment.
1040         * sol-thread.c (info_cb): Move assignments to outside of if
1041         statement.
1042         (info_cb): Use paddr when printing addresses.
1043
1044 1999-11-08  Jim Blandy  <jimb@cygnus.com>
1045
1046         * defs.h (ULONGEST_MAX, LONGEST_MAX): New definitions.
1047         * stabsread.c (read_huge_number): Parse and return LONGEST values.
1048
1049 1999-11-08  Mark Salter  <msalter@cygnus.com>
1050
1051         * utils.c (floatformat_to_doublest): Fix conversion of denormals.
1052
1053 Mon Nov  8 20:14:13 1999  Andrew Cagney  <cagney@amy.cygnus.com>
1054
1055         * remote.c (get_memory_read_packet_size): For moment limit read
1056         size to PBUFSIZ.
1057         (putpkt_binary): Remove check on packet size.  Allocate ``cnt +
1058         6'' characters for output buffer.
1059         (get_memory_packet_size): When packet size is ``fixed'' and the
1060         size is zero, return MAX_REMOTE_PACKET_SIZE.  Check that packets
1061         are at least MIN_REMOTE_PACKET_SIZE.
1062         (set_memory_packet_size): Print usage when ``args'' is NULL.
1063
1064 Mon Nov  8 18:18:07 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1065
1066         * defs.h, utils.c (gdb_file_deallocate): Delete.
1067         * corefile.c (memory_error): Use make_cleanup_gdb_file_delete.
1068
1069         * defs.h, utils.c (gdb_file_init_astring): Delete.
1070
1071         * defs.h, utils.c (tui_file_get_strbuf): Rename
1072         gdb_file_get_strbuf.
1073         (tui_file_adjust_strbuf): Rename gdb_file_adjust_strbuf.
1074         * utils.c (error_stream, error_last_message): Update.
1075         
1076 Mon Nov  8 16:28:00 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1077
1078         * defs.h, utils.c (gdb_fclose): Delete.
1079         * defs.h (make_cleanup_gdb_file): Declare.
1080         * utils.c (make_cleanup_gdb_file_delete, do_gdb_file_delete): New
1081         functions.
1082
1083         * symmisc.c (maintenance_print_symbols,
1084         maintenance_print_psymbols, maintenance_print_msymbols): Use
1085         make_cleanup_gdb_file_delete.
1086         * serial.c (do_serial_close): Use gdb_file_delete.
1087
1088 Mon Nov  8 14:16:32 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1089
1090         * defs.h (gdb_file_write_ftype, set_gdb_file_write,
1091         gdb_file_write): Declare.
1092
1093         * utils.c (struct gdb_file): Add to_write member.
1094         (gdb_file_write, set_gdb_file_write): New functions.
1095         (gdb_file_new): Initialize the write method.
1096         (null_file_write): New function.
1097         (null_file_fputs, null_file_write): ``write'' calls ``fputs'' and
1098         ``fputs'' calls ``write'' when the other is implemented.
1099         (stdio_file_new): Initialize write method.
1100         (stdio_file_write): New function.
1101
1102         * utils.c (putchar_unfiltered, fputc_unfiltered): Use
1103         gdb_file_write.
1104
1105 Thu Nov  4 11:59:24 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1106
1107         * remote.c (get_memory_packet_size, set_memory_packet_size,
1108         build_memory_packet_size): New functions. Set / compute / update
1109         the size of a memory read / write packet.
1110         (set_memory_read_packet_size, set_memory_write_packet_size): New
1111         functions.  Verify changes to the memory read / write packet size.
1112         (prefered_memory_write_packet_size,
1113         current_memory_write_packet_size, prefered_memory_read_packet_size,
1114         current_memory_read_packet_size): New variables.
1115         (get_memory_read_packet_size, get_memory_write_packet_size): New
1116         functions. Determine the current memory read/write packet size.  A
1117         function is needed as ``current_register_packet_size'', a variable
1118         is used in the calculation.
1119         (register_remote_packet_sizes, build_remote_packet_sizes):
1120         Initialize packet sizes according the current architecture.
1121         (remote_fetch_registers, remote_write_bytes, remote_read_bytes,
1122         build_remote_gdbarch_data): Update.
1123         (_initialize_remote): Add the commands ``set remote
1124         memory-read-packet-size'' and ``set remote
1125         memory-write-packet-size''.  Deprecate ``set remotepacketsize''.
1126
1127 Sun Nov  7 18:09:54 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1128
1129         * target.h, target.c (target_load): Replace macro with a function.
1130
1131         * config/i960/tm-nindy960.h (ADDITIONAL_OPTION_HANDLER): Rewrite
1132         replacing SET_TOP_LEVEL with catch_command_errors.
1133         (nindy_open): Add extern declaration.
1134
1135         * top.h (top_level_val, SET_TOP_LEVEL): Delete.
1136         * defs.h (catch_command_errors_ftype, catch_command_errors): Add
1137         declarations.
1138         * top.c (struct captured_command_args): Declare.
1139         (do_captured_command, catch_command_errors): New functions. Call
1140         the command function via catch_errors.
1141         (catch_errors): Add more comments.
1142         
1143         * main.c (struct captured_main_args): Define.
1144         (captured_main): New.  Rewrite main.  Replace SET_TOP_LEVEL with
1145         calls to catch_command_errors. Delete calls to do_cleanups which
1146         are now handled by catch_errors. Call the command loop via
1147         captured_command_loop and catch_errors.
1148         (main): Move code body to captured_main.  Call captured_main via
1149         catch_errors.
1150         (captured_command_loop): New function. Wrap call to command_loop.
1151
1152 1999-11-05  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1153
1154         * procfs.c (unconditionally_kill_inferior) (init_procinfo)
1155         (create_procinfo) (procfs_exit_handler) (proc_set_exec_trap)
1156         (do_attach) (do_detach) (procfs_wait) (set_proc_siginfo)
1157         (procfs_resume) (info_proc_mappings)
1158         (modify_run_on_last_close_flag) (procfs_lwp_creation_handler)
1159         (procfs_thread_alive): Remove unused variables, conditionalize
1160         vars declarations to eliminate compiler warnings.
1161
1162 Fri Nov  5 16:32:04 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1163
1164         * inferior.h (CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
1165         CALL_DUMMY_BREAKPOINT_OFFSET, CALL_DUMMY_LENGTH,
1166         CALL_DUMMY_STACK_ADJUST, CALL_DUMMY_WORDS,
1167         SIZEOF_CALL_DUMMY_WORDS, PUSH_DUMMY_FRAME, FIX_CALL_DUMMY,
1168         STORE_STRUCT_RETURN), d10v-tdep.c (print_insn), d30v-tdep.c
1169         (print_insn), target.h (SOFTWARE_SINGLE_STEP): Call internal_error
1170         instead of abort.
1171
1172         * utils.c (stdio_file_delete, stdio_file_flush, stdio_file_fputs,
1173         stdio_file_isatty, tui_file_delete, tui_file_isatty,
1174         tui_file_rewind, tui_file_put, gdb_file_init_astring,
1175         gdb_file_get_strbuf, gdb_file_adjust_strbuf): Call internal_error
1176         instead of error.
1177
1178 1999-11-04  Kevin Buettner  <kevinb@cygnus.com>
1179
1180         * remote.c (build_remote_gdbarch_data): Set remote_address_size...
1181         (_initialize_remote) ...but don't set it here.  Also, tie
1182         remote_address_size to the target architecture via call to
1183         register_gdbarch_swap().
1184
1185 1999-11-04  Jeff Holcomb  <jeffh@cygnus.com>
1186
1187         * remote-rdp.c (send_rdp): Fix typo.
1188
1189 1999-11-04  Michael Snyder  <msnyder@cleaver.cygnus.com>
1190
1191         * breakpoint.c (commands_command): remove unprotected ref to 
1192         args pointer (which may be null).
1193
1194 1999-11-04  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1195
1196         * infcmd.c (print_return_value): New function. Print return value
1197         from finish command.
1198         (finish_command_continuation): Call print_return_value().
1199         (finish_command): Ditto.
1200
1201 1999-11-04  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1202
1203         * infrun.c (handle_inferior_event): Add calls to print_stop_reason()
1204         for end of stepping range cases.
1205         
1206 Thu Nov  4 17:46:36 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1207
1208         * event-loop.c (gdb_do_one_event): Delete SET_TOP_LEVEL call.
1209         Move error code to start_event_loop.
1210         (start_event_loop): Call gdb_do_one_event via catch_errors.
1211         Handle caught errors.
1212
1213 Thu Nov  4 17:36:27 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1214
1215         * breakpoint.c (get_number): Delete static declaration.
1216
1217 1999-11-03  Michael Snyder  <msnyder@cleaver.cygnus.com>
1218
1219         * breakpoint.c (map_breakpoint_numbers): use a match count
1220         instead of a goto.
1221
1222 1999-11-03  Nick Clifton  <nickc@cygnus.com>
1223
1224         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT): Change to
1225         little endian.
1226
1227 1999-11-02  Michael Snyder  <msnyder@cleaver.cygnus.com>
1228
1229         * target.h (target_new_objfile) replace macro with function pointer
1230         hook.  Any module needing notification of new objfiles may claim
1231         this hook.  Multiple notification clients must cooperate by saving
1232         the previous pointer (if any) and calling it.
1233         * sol-thread.c (_initialize_sol_thread): point new_objfile hook at
1234         sol_thread_new_objfile.  Save old pointer if any.
1235         (sol_thread_new_objfile): call old owner of event hook if any.
1236         * hpux-thread.c (_initialize_hpux_thread, hpux_thread_new_objfile):
1237         ditto.
1238         * linux-thread.c (_initialize_linux_thread, linux_thread_new_objfile):
1239         ditto.
1240         symfile.c (symbol_file_add, clear_symtab_users) call the new
1241         function pointer hook, instead of the macro.
1242         * config/sparc/nm-sun4sol2.h: remove define of target_new_objfile.
1243         * config/pa/nm-hppah.h: ditto.
1244         * config/i386/nm-i386sol2.h: ditto.
1245         * config/i386/nm-linux.h: ditto.
1246         
1247 1999-11-02  Tom Tromey  <tromey@cygnus.com>
1248
1249         * NEWS: Mention breakpoint ranges.
1250
1251 1999-11-02  Fernando Nasser  <fnasser@totem.to.cygnus.com>
1252
1253         * rdi-share/devsw.c (openLogFile): Change a call to setlinebuf()
1254         to an equivalent call to setvbuf() to prevent an unresolved
1255         reference when building on cygwin.
1256
1257 1999-11-02  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1258
1259         * infrun.c (inferior_stop_reason): New enum, explicitly name the
1260         resons for which the inferior stops.
1261         (handle_inferior_event): Case TARGET_WAITKIND_EXITED: replace
1262         printf's with call to print_stop_reason(). Case
1263         TARGET_WAITKIND_SIGNALLED: Same.  When stopped by random signal:
1264         Same.
1265         (print_stop_reason): New static function. Print relevant messages
1266         when stopping.
1267
1268 1999-11-02  Fernando Nasser  <fnasser@totem.to.cygnus.com>
1269
1270         * rdi-share/Makefile.in: Rename dependency from bytesex.o to
1271         angel_bytesex.o.
1272
1273 1999-11-02  Fernando Nasser  <fnasser@totem.to.cygnus.com>
1274
1275         * kod.c: Remove prototype for show_kod() which is no longer used.
1276
1277 1999-11-01  Michael Snyder <msnyder@cygnus.com>
1278             Tom Tromey  <tromey@cygnus.com>
1279
1280         * tracepoint.h (get_tracepoint_by_number): Updated declaration.
1281         * tracepoint.c (get_tracepoint_by_number): Added `multi_p'
1282         argument.  Now uses get_number_or_range and get_number.
1283         (trace_pass_command): Allow a tracepoint range.
1284         * breakpoint.h (get_number, get_number_or_range): Declare.
1285         * breakpoint.c (get_number_trailer): New function.
1286         (get_number): Rewrote to use get_number_trailer.
1287         (get_number_or_range): New function.
1288         (condition_command): Check `get_number' return value.
1289         (commands_command): Likewise.
1290         (ignore_command): Likewise.
1291         (map_breakpoint_numbers): Use get_number_or_range.
1292
1293 1999-11-01  Fernando Nasser  <fnasser@totem.to.cygnus.com>
1294
1295         * remote-rdi.c (_initialize_remote_rdi): Make log commands
1296         subcommands of maintenance. Remove improper identation from
1297         command documentation.
1298
1299 1999-11-01  Fernando Nasser  <fnasser@totem.to.cygnus.com>
1300
1301         From Grant Edwards <grante@visi.com>:
1302         * rdi-share/etherdrv.c (fetch_ports): Print out additional TCP/IP
1303         port information in ethernet driver if the DEBUG flag is set.
1304         * rdi-share/hostchan.c (Adp_addToQueue): Changed #if statement in
1305         hostchan.c to avoid compiler complaint when DEBUG macro was
1306         undefined.
1307         * rdi-share/unixcomm.c (Unix_ReadSerial): Print system error code
1308         if read() system call fails.
1309
1310 1999-11-01  Fernando Nasser  <fnasser@totem.to.cygnus.com>
1311
1312         * rdi-share/bytesex.h: Deleted. Conflicts with a system header file
1313         on some systems like Linux Red Hat 5.2.
1314         * rdi-share/angel_bytesex.h: New file. Replaces the above.
1315         * rdi-share/bytesex.c: Deleted. Name changed to match the header
1316         mentioned above (this is the implementation file).
1317         * rdi-share/angel_bytesex.c: New file. Replaces the above.
1318         * rdi-share/Makefile.am: Reflect above changes.
1319         * rdi-share/Makefile.in: Reflect above changes.
1320
1321 1999-11-01  Jimmy Guo  <guo@cup.hp.com>
1322
1323         * annotate.c (breakpoints_changed, annotate_ignore_count_change,
1324         annotate_stopped): Provide annotation for breakpoint ignore_count
1325         changes but only provide once at annotate_stopped time for
1326         sucessive ignore_count triggered breakpoint changes, to make GUIs
1327         happy yet lazy.
1328         * annotate.h (annotate_ignore_count_change): Declare.
1329         * breakpoint.c (bpstat_stop_status): Call
1330         annotate_ignore_count_change when ignore_count changes.
1331
1332 1999-11-01  Fernando Nasser  <fnasser@totem.to.cygnus.com>
1333
1334         From Grant Edwards <grante@visi.com>:
1335         * rdi-share/ardi.c (HandleStoppedMessage): Changed code that
1336         handles the "stop" message so that unrecognized errors are
1337         returned as "Error" rather than "NoError".  The old code resulted
1338         in some error conditions not being reported to the user.
1339
1340 1999-11-01  Fernando Nasser  <fnasser@totem.to.cygnus.com>
1341
1342         From Grant Edwards <grante@visi.com>:
1343         * remote-rdi.c (arm_rdi_open): Added a call to Adp_CloseDevice()
1344         before attempting to open a connection.  This allows the user to
1345         issue the "target rdi" command multiple times (in case the user
1346         needs to change options or re-initialize the link).
1347
1348 1999-11-01  Fernando Nasser  <fnasser@totem.to.cygnus.com>
1349
1350         From Grant Edwards <grante@visi.com>:
1351         * rdi-share/endian.h: Deleted.  Name clash with
1352         /usr/include/endian.h. This was causing the wrong  byte order to
1353         be used by htons() in the RDI Ethernet driver.
1354         * rdi-share/angel_endian.h: New file.  Replaces the above.
1355         * rdi-share/ardi.c: Replace include to reflect the above change.
1356         * rdi-share/etherdrv.c: Ditto.
1357         * rdi-share/hsys.c: Ditto.
1358         * rdi-share/msgbuild.c: Ditto.
1359         * rdi-share/params.c: Ditto.
1360         * rdi-share/rx.c: Ditto.
1361         * rdi-share/tx.c: Ditto.
1362         * rdi-share/Makefile.am: Reflect above changes.
1363         * rdi-share/Makefile.in: Reflect above changes.
1364
1365 1999-11-01  Fernando Nasser  <fnasser@totem.to.cygnus.com>
1366
1367         From Grant Edwards <grante@visi.com>:
1368         * remote-rdi.c (_initialize_remote_rdi): Added command
1369         rdilogenable. Allows the user to log ADP packets that are
1370         exchanged between gdb and the target.  Both the raw packets are
1371         shown and some minimal decoding is attempted. Default state is
1372         disabled.
1373         (_initialize_remote_rdi): Added command rdilogfile. Allows the
1374         user to specify the filename to which the ADP packet log is to be
1375         written. Default state is "rdi.log".
1376         (rdilogenable_command): New function. Related to rdilogenable.
1377         (rdilogfile_command): New function. Related to rdilogfile.
1378         * rdi-share/devsw.c (openLogFile, closeLogFile,
1379         DevSW_SetLogEnable, DevSW_SetLogfile, dumpPacket): New
1380         functions. Implement logging.
1381         (DevSW_Read): Log if requested.
1382         (DevSW_Write): Log if requested.
1383         * rdi-share/devsw.h: Add prototypes for DevSW_SetLogfile and
1384         DevSW_SetLogEnable.
1385         * rdi-share/hostchan.c (Adp_SetLogEnable, Adp_SetLogfile): New
1386         functions.  Related to rdilogenable and rdilogfile.
1387         * rdi-share/hostchan.h: Add prototypes for the above functions.
1388
1389 1999-11-01  Fernando Nasser  <fnasser@totem.to.cygnus.com>
1390
1391         From Grant Edwards <grante@visi.com>:
1392         * remote-rdi.c (arm_rdi_open): Added code to split the arguments
1393         to the 'target rdi' command at the first space.  The first word is
1394         passed to Adp_OpenDevice as the device name, the tail is passed as
1395         the "arguments" parameter.  This allows user specified baud rates
1396         -- among other things that still need to be documented [e.g. (gdb)
1397         target rdi /dev/ttyS1 19200]. NB: With very limited testing, the
1398         ARM Embedded-ICE seems to run at 19.2K (though it is reported to
1399         be unreliable above 9600), and the EPI Jeeni seems to run at
1400         38.4K.
1401
1402 1999-11-01  Fernando Nasser  <fnasser@totem.to.cygnus.com>
1403
1404         From Grant Edwards <grante@visi.com>:
1405         * remote-rdi.c (_initialize_remote_rdi): Added the boolean
1406         set/show variable rdiromatzero. Should be set to true if the
1407         target has ROM at address 0.  If true, then gdb will not tell the
1408         target to trap fetches to interrupt vectors (which are located at
1409         address 0).  Using the Angel monitor, attempting to set
1410         breakpoints in ROM is an error.  Using JTAG debugging of the
1411         ARM7TDMI, attempting to set more than two breakpoints in ROM is an
1412         error. Default state is false (vectors will be trapped) -- used to
1413         be hardwired false.
1414
1415 1999-11-01  Fernando Nasser  <fnasser@totem.to.cygnus.com>
1416
1417         From Grant Edwards <grante@visi.com>:
1418         * remote-rdi.c (_initialize_remote_rdi): Added the boolean
1419         set/show variable rdiheartbeat. This enables or disables ADP
1420         link-check "heartbeat" packets sent by the host to the target.
1421         Heartbeat packets can cause both the ARM Embedded-ICE and the EPI
1422         Jeeni to malfunction: If a heartbeat packet is received by the
1423         target while it is sending a packet, that packet will be aborted,
1424         and the ADP protocol engine then gets very confused. Default state
1425         is off -- used to hardwired on.
1426
1427 1999-10-29  Kevin Buettner  <kevinb@cygnus.com>
1428
1429         * i386-linux-nat.c (dummy_sse_values): Also define for systems
1430         without PTRACE_GETXFPREGS.
1431
1432 1999-10-29  Jim Blandy  <jimb@zwingli.cygnus.com>
1433
1434         Hardware watchpoint fix from Eli Zaretskii <eliz@gnu.org>:
1435         
1436         * breakpoint.c (insert_breakpoints): Fetch the value of the
1437         expression we need to watch.  If it's a lazy memory lvalue, then
1438         we need to fetch it now, before we start the inferior again.
1439         (insert_breakpoints, remove_breakpoint, bpstat_stop_status,
1440         can_use_hardware_watchpoint): Only those values representing
1441         memory we actually fetched need to be watched.
1442
1443 1999-10-29  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1444
1445         * breakpoint.h (bpstat_print): Return 'enum print_stop_action',
1446         not 'int'.
1447
1448 1999-10-29  Jim Blandy  <jimb@zwingli.cygnus.com>
1449
1450         * acconfig.h: Fix entries for HAVE_STRUCT_SAVE_STATE_T,
1451         HAVE_STRUCT_MEMBER_SS_WIDE, and HAVE_PTRACE_GETXFPREGS.
1452         * config.h.in: Regenerated.
1453         
1454 1999-10-28  Jim Blandy  <jimb@zwingli.cygnus.com>
1455
1456         Fixes for warnings from Andreas Jaeger <aj@suse.de>.
1457         * linux-thread.c (linuxthreads_sig_restart,
1458         linuxthreads_sig_cancel, linuxthreads_sig_debug): Add missing
1459         initializers to avoid gcc warnings.
1460         (resume_thread): Add braces as recommended by gcc -Wparentheses.
1461         (stop_thread): Likewise.
1462         (linuxthreads_wait): Likewise.
1463         (linuxthreads_find_trap): Likewise.
1464
1465 1999-10-28  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1466
1467         * infcmd.c: Fix typo.
1468
1469 1999-10-28  Jim Blandy  <jimb@cygnus.com>
1470
1471         * gdbtypes.c (init_simd_type): The upper bound to
1472         create_range_type is inclusive, not exclusive.
1473
1474         Add preliminary support for the Pentium-III's Streaming SIMD
1475         Extensions --- specifically, the ability to read the XMM
1476         registers.
1477         * Configure.in: Check for PTRACE_GETXFPREGS, and #define
1478         HAVE_PTRACE_GETXFPREGS if we have it.
1479         * acconfig.h: Add entry for HAVE_PTRACE_GETXFPREGS.
1480         * configure, config.in: Regenerated.
1481         * config/i386/tm-linux.h (HAVE_SSE_REGS): #define, iff the
1482         configure script #defined HAVE_PTRACE_GETXFPREGS.
1483         (REGISTER_VIRTUAL_TYPE): Provide the proper types for the pointer
1484         registers and the SSE registers. 
1485         * i386-linux-nat.c (GETREGS_SUPPLIES, GETFPREGS_SUPPLIES,
1486         GETXFPREGS_SUPPLIES): New macros.
1487         (have_ptrace_getxfpregs): New variable.
1488         (FPREGSET_T_FPREG_ADDR): Renamed from FPREGSET_T_FPREG_OFFSET.
1489         (supply_fpregset, convert_to_fpregset): Callers changed.
1490         (supply_xfpregset, convert_to_xfpregset, fetch_xfpregs,
1491         store_xfpregs, dummy_sse_values): New functions.
1492         (fetch_inferior_registers, store_inferior_registers): Use the
1493         *_SUPPLIES macros to decide how to fetch a given register.  Use
1494         {fetch,store}_xfpregs and dummy_sse_values to provide access to
1495         the SSE registers, on systems where they are present.
1496
1497 1999-10-28  Kevin Buettner  <kevinb@cygnus.com>
1498
1499         * gdbserver/gdbreplay.c (config.h, errno.h): Include.
1500         (perror_with_name): Don't declare sys_nerr, sys_errlist, or errno
1501         when STDC_HEADERS is defined.
1502         * gdbserver/utils.c (STDC_HEADERS): Likewise.
1503
1504         * gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
1505         gdbserver/low-lynx.c, gdbserver/low-sim.c, gdbserver/low-sparc.c,
1506         gdbserver/low-sun3.c (my_registers): Declare.
1507         (registers): Changed from array type to pointer type in order
1508         to match declaration in inferior.h in main gdb sources.
1509         * gdbserver/server.h (registers): Likewise.
1510         * gdbserver/remote-utils.c (outreg): Removed declaration of
1511         registers[].
1512
1513         * gdbserver/low-linux.c (fetch_register): Changed PTRACE_PEEKUSR to
1514         PTRACE_PEEKUSER.  [Note the missing 'E'.]
1515         (store_inferior_registers): Likewise for PTRACE_POKEUSER.
1516
1517         * gdbserver/low-linux.c (sys/ptrace.h): Move include to
1518         avoid conflict with #defines coming from <sys/user.h>.
1519         (sys/reg.h): Only include when HAVE_SYS_REG_H is defined.
1520         (PTRACE_XFER_TYPE): Provide a default type in case
1521         the target doesn't define it.
1522         (fetch_register, read_inferior_memory, write_inferior_memory):
1523         Use PTRACE_XFER_TYPE instead of int for ptrace() transfers.
1524         (I386_GNULINUX_TARGET): Use #ifdef with this symbol instead
1525         of assuming it's an x86 target when it's not a m68k target.
1526         (i386_register_raw_size, i386_register_byte): Define these arrays
1527         to match other changes that've been occuring to the x86 target
1528         in the main gdb sources.
1529         (initialize_arch): New (static) function for doing target arch
1530         specific initializations.
1531
1532         * gdbserver/server.h (MAXBUFBYTES, PBUFSIZ): New defines
1533         [actually stolen from remote.c].
1534         * gdbserver/remote-utils.c (putpkt): Use PBUFSIZ to make
1535         sure that buffer is big enough.
1536         * gdbserver/server.c (main): Ditto.
1537
1538         * gdbserver/remote-utils.c (outreg): Allow register numbers
1539         bigger than 255.
1540         (prepare_resume_reply):  Provide alternate mechanism,
1541         GDBSERVER_RESUME_REGS, for defining list of registers to send
1542         to gdb.
1543         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Swapped order of
1544         INCLUDE_CFLAGS and BFD_CFLAGS to ensure that gdb's config.h
1545         gets found before bfd's config.h.  Also added -DGDBSERVER
1546         switch.
1547         (INCLUDE_CFLAGS): Added -I.. .
1548
1549 1999-10-27  Nick Clifton  <nickc@cygnus.com>
1550
1551         * arm-tdep.c (THUMB_BE_BREAKPOINT): Change to 0xbebe.
1552         (THUMB_LE_BREAKPOINT): Change to 0xbebe.
1553
1554 Mon Oct 25 18:22:06 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1555
1556         * remote.c: Document future of compare_sections_command.
1557         (remote_insert_breakpoint, remote_remove_breakpoint,
1558         remote_insert_watchpoint, remote_insert_watchpoint,
1559         remote_remove_watchpoint, remote_insert_hw_breakpoint,
1560         remote_remove_hw_breakpoint): Use alloca instead of GCC's dynamic
1561         array feature.
1562
1563 Mon Oct 25 18:08:31 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1564
1565         * gdbarch.h (REGISTER_GDBARCH_SWAP): Define.
1566         * gdbarch.sh: Update.
1567
1568 Sat Oct 23 16:39:34 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1569
1570         * gdbarch.c (initialize_current_architecture): Make ``choice''
1571         const.
1572
1573 1999-10-22  Tom Tromey  <tromey@cygnus.com>
1574
1575         * gdbarch.sh: Updated for gdbarch.[ch] changes.
1576         * top.c (gdb_init): Call initialize_current_architecture.
1577         * gdbarch.h (initialize_current_architecture): Declare.
1578         * gdbarch.c (initialize_current_architecture): New function.
1579
1580 1999-10-21  Michael Snyder  <msnyder@cleaver.cygnus.com>
1581
1582         * utils.c (chars_per_line): fix typo in comment.
1583
1584 1999-10-21  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1585
1586         * breakpoint.h (bp_print_how): New enum, used for deciding how to
1587         print bpstat information when we stop, instead of having 3
1588         different functions.
1589         (struct bpstat): Change print_it field to be an enum instead of a
1590         function pointer.
1591
1592         * breakpoint.c (print_it_typical): New name for print_it_normal().
1593         (print_bp_stop_message): New function. High level routine for
1594         printing of why we stopped.
1595         (bpstat_print): Call print_bp_stop_message instead of using the
1596         print_it function pointer.
1597         (print_it_done, print_it_noop): Delete these functions.
1598         
1599 1999-10-21  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1600
1601         * breakpoint.c (print_it_normal): Reorganize into a switch
1602         statement.
1603
1604 1999-10-21  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1605
1606         * Makefile.in (event-top.o): Add dependency on target.h.
1607         * event-top.c: Make dependency on target.h explicit.
1608
1609         * breakpoint.c (bpstat_print): Clean up logic. Remove recursion.
1610         (catch_exec_command_1): Surround with appropriate ifdef's,
1611         to avoid compiler warnings.
1612         (catch_fork_command_1): Ditto.
1613
1614 1999-10-20  Jim Blandy  <jimb@cygnus.com>
1615
1616         * Makefile.in (dwarf2read.o): Note that this depends on bfd/elf-bfd.h.
1617         (elf_bfd_h): New variable.
1618
1619 1999-10-19  Jim Blandy  <jimb@cygnus.com>
1620
1621         * config/i386/tm-i386.h (REGISTER_NAMES): Change names of FPU
1622         instruction and operand pointer registers to improve consistency,
1623         following J. T. Conklin's suggestions.
1624
1625 1999-10-18  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1626
1627         * breakpoint.h: Change return type of field print_it of struct
1628         bpstats to enumeration print_stop_action.
1629         Define new enumeration print_stop_action.
1630
1631         * breakpoint.c (print_it_normal): Change return type to
1632         enumeration type print_stop_action. Handle bp_shlib_event here
1633         instead of in normal_stop().
1634         (bpstat_print): Change return type to enumeration type
1635         print_stop_action.
1636         (print_it_done): Ditto.
1637         (print_it_noop): Ditto.
1638         
1639         * infrun.c (is_internal_shlib_eventpoint): Delete this function.
1640         (stopped_for_internal_shlib_event): Delete.
1641         (normal_stop): Move logic to handle bp_shlib_event from here to
1642         print_it_normal(). Use switch to handle return value from
1643         bpstat_print().
1644
1645 Mon Oct 18 17:32:51 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1646
1647         * symfile.c (generic_load): Rewrite.  Make the size of each
1648         chunk/block write a run-time option. Check for quit_flag.
1649         Use target_write_memory_partial for downloads.
1650
1651 1999-10-18  Jim Blandy  <jimb@cygnus.com>
1652
1653         Change Linux x86 register support to use the new tm-i386.h layout.
1654         * config/i386/tm-linux.h (HAVE_I387_REGS): #define this, so we get
1655         the full set of FP register definitions from tm-i386.h.
1656         (REGISTER_RAW_SIZE, REGISTER_NAMES, REGISTER_BYTES, REGISTER_BYTE,
1657         MAX_REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE, NUM_REGS,
1658         NUM_FREGS): Remove #undefs and subsequent redefinitions: we're
1659         using the values from tm-i386.h now.
1660         (FPSTART_REGNUM, FPCONTROL_REGNUM, FPSTATUS_REGNUM, FPTAG_REGNUM,
1661         FPDATA_REGNUM, FPEND_REGNUM, FPENV_BYTES, FPREG_RAW_SIZE,
1662         FPREG_BYTES): Deleted.
1663         (TARGET_LONG_DOUBLE_BIT): Deleted.
1664         (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
1665         REGISTER_CONVERT_TO_RAW): Redefine these only if LD_I387 is #defined.
1666         * i386-linux-nat.c (convert_to_gregset, convert_to_fpregset,
1667         FPREGSET_T_FPREG_OFFSET): New functions and macros.
1668         (supply_gregset, fill_gregset, supply_fpregset,
1669         fill_fpregset, fetch_fpregs, store_fpregs, fetch_regs,
1670         store_regs, fetch_inferior_registers, store_inferior_registers):
1671         Adjusted to use new macros from tm-i386.h.
1672         
1673         * config/i386/tm-i386.h: Provide a decent x86 FPU description here,
1674         so that the various i386 targets can share more FPU handling code.
1675         (NUM_GREGS): New macro.
1676         (NUM_SSE_REGS): New macro, dependent on HAVE_SSE_REGS
1677         (NUM_FREGS): Depend on HAVE_I387_REGS.
1678         (NUM_REGS, REGISTER_BYTES): Define in terms of NUM_GREGS,
1679         NUM_FREGS, and NUM_SSE_REGS.
1680         (MAX_NUM_REGS): New macro.
1681         (REGISTER_NAMES): Expand name list with FPU control registers and
1682         SSE registers.
1683         (FP7_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM, FCS_REGNUM,
1684         FCOFF_REGNUM, FDS_REGNUM, FDOFF_REGNUM, FOP_REGNUM,
1685         FIRST_FPU_CTRL_REGNUM, LAST_FPU_CTRL_REGNUM): New macros, more
1686         fully describing the FPU register set.
1687         (XMM0_REGNUM, XMM7_REGNUM, MXCSR_REGNUM): New macros, describing
1688         the SSE register set.
1689         (IS_FP_REGNUM, IS_SSE_REGNUM, FPU_REG_RAW_SIZE, SIZEOF_GREGS,
1690         SIZEOF_FPU_REGS, SIZEOF_FPU_CTRL_REGS, SIZEOF_SSE_REGS): New
1691         convenience macros.
1692         (REGISTER_BYTE, REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Turn
1693         these into tables, since the register sizes are pretty irregular.
1694         (i386_register_byte, i386_register_raw_size,
1695         i386_register_virtual_size): New extern declarations.
1696         (TARGET_LONG_DOUBLE_BIT): Define.
1697         (MAX_REGISTER_RAW_SIZE): Bump to 16, for the SSE registers.
1698         (REGISTER_VIRTUAL_TYPE, REGISTER_CONVERTIBLE,
1699         REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): New macros
1700         for handling floating-point registers.
1701         (i387_to_double, double_to_i387): New extern declarations.
1702         * i386-tdep.c (i386_register_byte, i386_register_raw_size,
1703         i386_register_virtual_size): New arrays.
1704         (_initialize_i386_tdep): Initialize i386_register_byte and
1705         i386_register_virtual_size.
1706
1707         * i386-tdep.c (_initialize_i386_tdep): Move new_cmd to a block
1708         created specially for its use.
1709
1710 Mon Oct 18 23:36:58 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1711
1712         * symfile.c (generic_load): Cleanup the validate code - remove
1713         #ifdef, use paddr to print address.
1714         (validate_download): Static, replace VALIDATE_DOWNLOAD
1715         
1716         * symfile.c (generic_load): Use strtoul to scan the optional load
1717         offset.  Allocate a filename of the correct size.
1718
1719 Mon Oct 18 17:32:51 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1720
1721         * symfile.c (generic_load): Don't filter output. Use
1722         print_transfer_performance for summary. Use paddr for addresses.
1723         (print_transfer_performance): New function.  Includes write count.
1724         (report_transfer_performance): Call
1725         print_transfer_performance. Deprecate.
1726
1727         * defs.h (print_transfer_performance): Add declaration.
1728         (generic_load): Move declaration to here.
1729         * symfile.h (generic_load): From here.
1730
1731 Mon Oct 18 16:29:52 1999  Andrew Cagney  <cagney@amy.cygnus.com>
1732
1733         * remote.c (remote_write_bytes): Re-write.  Transfer a single
1734         packet and then return the that packets byte size.
1735
1736 Sun Oct 17 15:09:00 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1737
1738         * remote.c (remote_console_output): Flush gdb_stdtarg after
1739         processing an ``O'' packet.
1740         * remote.h (remote_console_output): Strip PARAMS.
1741         
1742 Sun Oct 17 15:12:33 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1743
1744         * target.c (target_xfer_memory_partial): New function. Simple
1745         implementation of partial memory reads.
1746         (target_read_memory_partial): New function.  Replaces old
1747         target_read_memory_partial.
1748         (target_write_memory_partial): New function.
1749         * target.h: Update.
1750
1751         * valprint.c (partial_memory_read): New function, based on old
1752         memory_read_partial.  Implement partial memory reads the way that
1753         val_print_string likes.
1754         (val_print_string): Use partial_memory_read.
1755
1756 Sun Oct 17 13:58:56 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1757
1758         * defs.h (ui_load_progress_hook): Add declaration.
1759         * dsrec.c (ui_load_progress_hook): Delete extern declaration.
1760         
1761         * symfile.c (ui_load_progress_hook): Make first argument const.
1762         (generic_load): Don't cast the result of bfd_get_section_name.
1763         Replace ``sect'' with ``sect_name'', use consistently.
1764
1765 1999-10-15  Jim Blandy  <jimb@cygnus.com>
1766
1767         Add beginnings of support for SIMD register types.
1768         * gdbtypes.c (init_simd_type): New function for building
1769         types for registers consisting of arrays of objects.
1770         (builtin_type_v4sf): New built-in type.
1771         (build_gdbtypes): Initialize it.
1772         (_initialize_gdbtypes): Arrange for gdbarch swapping.
1773         * gdbtypes.h (builtin_type_v4sf): Add external decl.
1774
1775 Fri Oct 15 18:20:33 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1776
1777         * remote-hms.c: Commented out H8 code.
1778
1779 Fri Oct 15 17:46:39 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1780
1781         * dcache.c (dcache_p): Rename variable remote_dcache.  Make
1782         static.
1783         (_initialize_dcache): Fix description of ``set remotecache''.
1784         Cache is OFF by default.
1785
1786 1999-10-13  Jim Blandy  <jimb@cygnus.com>
1787
1788         * valops.c (value_push): Don't forget to initialize container_len.
1789
1790 Wed Oct 13 17:58:20 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1791
1792         * utils.c (tui_file_flush): Don't call flush_hook.  Don't try to
1793         flush ``astring''.
1794         * gdb-events.sh: Update
1795         * top.c (flush_hook): Delete.
1796
1797 1999-10-13  Kevin Buettner  <kevinb@cygnus.com>
1798
1799         * mem-break.c (memory_insert_breakpoint,
1800         memory_remove_breakpoint): Added missing return statements.
1801
1802 Wed Oct 13 20:53:42 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1803
1804         * utils.c (mem_fileopen, mem_file_delete, mem_file_new,
1805         mem_file_rewind, mem_file_put, mem_file_fputs): New functions.
1806         * defs.h (mem_fileopen): Declare.
1807         
1808 1999-10-13  Kevin Buettner  <kevinb@cygnus.com>
1809
1810         * mem-break.c (default_memory_insert_breakpoint): Renamed from
1811         memory_insert_breakpoint.
1812         (default_memory_remove_breakpoint): Renamed from
1813         memory_remove_breakpoint.
1814         (memory_insert_breakpoint, memory_remove_breakpoint,
1815         MEMORY_INSERT_BREAKPOINT, MEMORY_REMOVE_BREAKPOINT):  New
1816         wrappers.
1817         * target.h (default_memory_remove_breakpoint,
1818         default_memory_insert_breakpoint): Added declarations.
1819         * gdbarch.sh (MEMORY_INSERT_BREAKPOINT, MEMORY_REMOVE_BREAKPOINT):
1820         New methods.
1821         * gdbarch.h, gdbarch.c (MEMORY_INSERT_BREAKPOINT,
1822         MEMORY_REMOVE_BREAKPOINT, gdbarch_memory_insert_breakpoint,
1823         gdbarch_memory_remove_breakpoint, set_gdbarch_memory_insert_breakpoint,
1824         set_gdbarch_memory_remove_breakpoint) : Generated from gdbarch.sh.
1825
1826 Wed Oct 13 19:15:51 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1827
1828         * defs.h: Remove PARAMS from all declarations.  Re-indent.  Clean
1829         up the gdb_file declarations.
1830
1831 Tue Oct 12 12:19:07 1999  David Taylor  <taylor@texas.cygnus.com>
1832
1833         * i386-linux-nat.c (supply_fpregset, fill_fpregset): copy
1834         from/to start of fpregsetp not start of st_space as the first
1835         stuff we copy is the FP control registers not the actual FP values.
1836
1837 1999-10-12  Fernando Nasser  <fnasser@totem.to.cygnus.com>
1838
1839         * eval.c (evaluate_subexp_standard): Fix gdb invocation of
1840         inferior C functions when debugging C++ code.
1841         * valops.c (find_overload_match): Ditto.
1842         * symtab.c (make_symbol_overload_list): Ditto.
1843
1844 1999-10-11  Jim Blandy  <jimb@zwingli.cygnus.com>
1845
1846         * config/pa/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): It's not
1847         enough to #define this; you have to give it a non-zero value.
1848
1849 1999-10-11  Jim Blandy  <jimb@cygnus.com>
1850
1851         Fix from Jim Kingdon <kingdon@redhat.com>, with tweaks to make it
1852         gdbarch- and bigendian-friendly:
1853         * valops.c (PARM_BOUNDARY): If not #defined, default to zero.
1854         (value_push): If PARM_BOUNDARY is not zero, align arguments to
1855         that boundary.
1856         * config/i386/tm-i386.h: Define PARM_BOUNDARY.
1857
1858 Mon Oct 11 14:23:55 1999  Fred Fish  <fnf@cygnus.com>
1859
1860         * config/mips/tm-irix3.h (PS_REGNUM): Don't undef if we aren't
1861         going to redefine it to something else.
1862
1863 1999-10-11  Jason Merrill  <jason@yorick.cygnus.com>
1864
1865         * dwarfread.c (read_func_scope): Don't try to set main_func_*;
1866         we handle that in blockframe.c:inside_main_func.
1867         * dwarf2read.c (read_func_scope): Likewise.
1868         (dwarf2_add_field, dwarf2_add_member_fn): Get member function name
1869         directly, not from mangled name.
1870         (skip_member_fn_name): Lose.
1871
1872 Mon Oct 11 12:24:52 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1873
1874         * serial.h (enum serial_rc): Clarify SERIAL_TIMEOUT and
1875         restrictions on TIMEOUT in ASYNC mode.
1876
1877         * serial.c (serial_readchar): Check for invalid timeout when in
1878         async mode.  Disable test.
1879
1880 Thu Oct  7 17:20:01 1999  Andrew Cagney  <cagney@amy.cygnus.com>
1881
1882         * monitor.c (monitor_printable_string): Add length argument. Don't
1883         return final string length.
1884         (monitor_printf_noecho, monitor_printf, monitor_expect): Update.
1885         (monitor_error): Pass real_len to monitor_printable_string.
1886         (monitor_error): Rewrite. Replace printf fmt string parameter with
1887         function name and message parameters.
1888         (monitor_read_memory_single, monitor_read_memory): Update.
1889
1890 1999-10-07  Stan Shebs  <shebs@andros.cygnus.com>
1891
1892         * main.c (print_gdb_help): Fix bug reporting address.
1893         * gnu-regex.h, gnu-regex.c: Ditto.
1894
1895 1999-10-07  Jim Blandy  <jimb@zwingli.cygnus.com>
1896
1897         * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): New macro,
1898         whose value can be overridden by target files.
1899         (write_dollar_variable): Don't check the symbol table for
1900         identifiers beginning with `$' unless
1901         SYMBOLS_CAN_START_WITH_DOLLAR is non-zero.
1902         * config/pa/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Define.
1903         * doc/gdbint.texinfo (SYMBOLS_CAN_START_WITH_DOLLAR): Document.
1904
1905         Remove all traces of the BINOP_SCOPE operator.  It's never
1906         generated, and not implemented.
1907         * expression.h (enum exp_opcode): Delete BINOP_SCOPE.
1908         * c-lang.c (c_op_print_tab): Delete entry for BINOP_SCOPE.
1909         * eval.c (evaluate_subexp_standard): Doc fix.
1910         * expprint.c (op_name): Remove case for BINOP_SCOPE.
1911         (dump_subexp): Same.
1912
1913         * dwarf2read.c (dwarf2_const_value): Treat DW_FORM_data1,
1914         DW_FORM_data2, DW_FORM_data4, and DW_FORM_data8 as signed values,
1915         since that's what read_var_value will do anyway.
1916
1917 1999-10-07  Fred Fish  <fnf@cygnus.com>
1918
1919         * objfiles.h (struct objfile): Delete is_solib member, now handled
1920         by OBJF_SHARED bit in struct objfile's flags.
1921         * objfiles.c (objfile_purge_solibs): Check OBJF_SHARED bit in flags
1922         instead of old is_solib int member in objfile struct.
1923
1924         * objfiles.c (allocate_objfile): Remove is_solib arg.  Now passed
1925         as a bit in combined flags arg.
1926         * symfile.c (symbol_file_add): Ditto.
1927         * objfiles.h (allocate_objfile): Adjust prototype after removal
1928         of is_solib arg.
1929         * symtab.h (symbol_file_add): Ditto.
1930
1931         * cxux-nat.c (add_shared_symbol_files): Remove zero passed to
1932         symbol_file_add in old is_solib arg, defaults to zero now in
1933         flags.
1934         * irix5-nat.c (symbol_add_stub): Ditto.
1935         * remote-mm.c (mm_load): Ditto.
1936         * remote-udi.c (udi_load): Ditto.
1937         * remote-vx.c (vx_add_symbols): Ditto.
1938         * symfile.c (symbol_file_command): Ditto.
1939         (add_symbol_file_command): Ditto.
1940
1941         * coff-solib.c (coff_solib_add): Call symbol_file_add with
1942         OBJF_SHARED in flags bit, rather than 1 in old is_solib
1943         arg.
1944         * osfsolib.c (symbol_add_stub): Ditto.
1945         * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
1946         * solib.c (symbol_add_stub): Ditto.
1947         * somsolib.c (som_solib_add_solib_objfile): Ditto.
1948         * win32-nat.c (handle_load_dll): Ditto.
1949
1950         * objfiles.c (allocate_objfile): Remove old args "mapped" and
1951         "user_loaded".  Replaced with new arg "flags" containing specific
1952         If global var mapped_symbol_files is nonzero
1953         then set OBJF_MAPPED in flags arg.  Check for OBJF_MAPPED bit in
1954         flags where we used to check mapped arg.
1955         Pass flags to open_mapped_file instead of mapped arg.
1956         Ensure that OBJF_MAPPED bit is reset in flags when the objfile
1957         is not mapped.  Add passed flags bits to objfile's flags bits.
1958         (open_mapped_file): Replace "mapped" arg with new "flags" arg.
1959         Adjust prototype.  Pass flags to open_existing_mapped_file.
1960         (open_existing_mapped_file): Replace "mapped" arg with new "flags".
1961         Check flags for OBJF_MAPPED.
1962         * objfiles.h (allocate_objfile): Adjust prototype.
1963         * rs6000-nat.c (add_vmap): Pass zero for combined flags, rather
1964         than separate zero ints for old "mapped" and "user_loaded" flags.
1965         * symfile.c (symbol_file_add): Pass allocate_objfile combined flags
1966         rather than individual mapped and user loaded bits.
1967
1968         * symfile.c (symbol_file_add): Delete user_loaded arg.
1969         * symtab.h (symbol_file_add): Adjust prototype for deleted
1970         user_loaded arg.
1971         * objfiles.h (struct objfile): Delete user_loaded member.
1972         (OBJF_USERLOADED): New flag bit to replace user_loaded.
1973
1974         * symfile.c (symbol_file_command): Add OBJF_USER_LOADED to flags
1975         passed to symbol_file_add.  Delete previous passing of explicit 1
1976         for user_loaded.
1977         (add_symbol_file_command): Ditto.
1978
1979         * coff-solib.c (coff_solib_add): No longer pass zero for user loaded,
1980         now defaults to zero in flags.
1981         * cxux-nat.c (add_shared_symbol_files): Ditto.
1982         * irix5-nat.c (symbol_add_stub): Ditto.
1983         * osfsolib.c (symbol_add_stub): Ditto.
1984         * remote-mm.c (mm_load): Ditto.
1985         * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
1986         * remote-udi.c (udi_load): Ditto.
1987         * remote-vx.c (vx_add_symbols): Ditto.
1988         * solib.c (symbol_add_stub): Ditto.
1989         * somsolib.c (som_solib_add_solib_objfile): Ditto.
1990         * win32-nat.c (handle_load_dll): Ditto.
1991
1992 Thu Oct  7 19:24:05 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1993
1994         * Makefile.in (monitor.o): Allow monitor.o to be compiled with
1995         -Werror.
1996
1997         * monitor.c (monitor_debug_p): New variable. Replaces macro.
1998         (EXTRA_RDEBUG): Delete.  Update all uses.
1999         (monitor_debug): New function.  Replaces macro.
2000         (RDEBUG): Delete macro.  Update all uses.
2001         debug output to gdb_stdlog and not the console.
2002
2003         * monitor.c: Fix printf formating.  Replace printf calls with
2004         fprintf_unfiltered.
2005
2006 1999-10-06  Stan Shebs  <shebs@andros.cygnus.com>
2007
2008         * MAINTAINERS: Switch ARM target maintenance from Elena
2009         Zannoni to Jim Ingham.
2010
2011 1999-10-06  Frank Ch. Eigler  <fche@cygnus.com>
2012
2013         * remote.c (hexnumnstr): New function.  Allow setting of width.
2014         (hexnumstr): Call the above.
2015         (remote_write_bytes): Fill in X-protocol address field more
2016         reliably.
2017
2018 1999-10-06  Fred Fish  <fnf@cygnus.com>
2019
2020         * xcoffread.c (xcoff_symfile_offsets): Fix typo, addr->addrs.
2021
2022 1999-10-06  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
2023
2024         * remote.c (handle_remote_sigint_twice): Make this signal be
2025         handled by inferior_event_handler, via the wrapper function.
2026         (async_remote_interrupt_twice): Make not static. Add debug print.
2027         * remote.h (async_remote_interrupt_twice): Export for use in
2028         inf-loop.c.
2029
2030         * inf-loop.c (inferior_event_handler_wrapper): New function.
2031         (inferior_event_handler): Handle a request to quit and kill the
2032         target.
2033         Include remote.h.
2034         * inf-loop.h (inferior_event_handler_wrapper): Export.
2035
2036 1999-10-04  James Ingham  <jingham@leda.cygnus.com>
2037
2038         * remote-rdi.c (arm_rdi_open): If the angel_RDI_Open fails, close
2039         the serial port and raise an error.  If you try to go on, you will 
2040         stall forever down in the rdi-share code.
2041
2042 1999-10-04  Fernando Nasser  <fnasser@totem.to.cygnus.com>
2043
2044         * printcmd.c (output_command): Makes sure result from the output
2045         command is printed before the next prompt.
2046
2047 1999-10-04  Fernando Nasser  <fnasser@totem.to.cygnus.com>
2048
2049         * printcmd.c (print_formatted): Add missing stream parameter.
2050         (do_examine, print_command_1, output_command, do_one_display):
2051         Adjust call to print_formatted().
2052
2053 1999-10-04  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
2054
2055         * infcmd.c: Remove include of event-loop.h.
2056         * utils.c: Ditto.
2057         * top.c: Ditto.
2058
2059         * infrun.c (fetch_inferior_event): Call inferior_event_handler
2060         when inferior stops, instead of doing work ourselves.  
2061         (fetch_inferior_event): Use void* instead of gdb_client_data.
2062         Remove includes of event-top.h and event-loop.h. Add include of
2063         inf-loop.h.
2064         (complete_execution): Move from here.
2065
2066         * inf-loop.c (complete_execution): To here.
2067         (inferior_event_handler): Handle inferior's execution completion
2068         case as well.
2069         * inf-loop.h: Add def of INF_LOOP_H.
2070         
2071         * event-top.h: Don't use gdb_client_data, use void*, to avoid
2072         dependency on event-loop.h.
2073         
2074         * remote.c (remote_async_resume): Set target_executing only after we
2075         actually register the inferior with the event loop.
2076
2077 1999-10-04  Fernando Nasser  <fnasser@totem.to.cygnus.com>
2078
2079         * corefile.c (memory_error): Use error_stream() and eliminate call
2080         to return_to_top_level().
2081
2082 1999-10-04  Fernando Nasser  <fnasser@totem.to.cygnus.com>
2083
2084         * utils.c (error): Save error message text (w/o new line).
2085         (error_last_message): New function. Returns the last message
2086         issued by gdb.
2087         (error_init): New function. Initializes error handling machinery.
2088         (error_stream): New function. Allows the error message to be
2089         passed on a stream buffer.
2090         * defs.h: Add prototypes for error_stream() and
2091         error_last_message().
2092         * main.c (main): Add call to error_init().
2093
2094 1999-10-04  Fernando Nasser  <fnasser@totem.to.cygnus.com>
2095
2096         * utils.c (tui_sfileopen): New function.  Replaces
2097         gdb_file_init_astring().
2098         * defs.h: Add prototype for the above.
2099
2100 Mon Oct  4 19:25:55 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2101
2102         * symfile.c (add_symbol_file_command): Fix -Wformat on query call.
2103
2104 1999-10-01  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
2105
2106         * target.c (cleanup_target): Type of to_async param is now
2107         function with enum inferior_event_type param.
2108         
2109         * target.h (target_ops): Adjust to_async accordingly. Move enum
2110         inferior_event_type to this file.  Don't have a typedef for
2111         inferior_event_type. Add more enumeration constants INF_QUIT_REQ,
2112         INF_EXEC_COMPLETE. Remove INF_SIGINT_FIRST, INF_SIGINT_SECOND.
2113
2114         * inf-loop.c (inferior_event_handler): Change first param to tell
2115         the type of event we are dealing with. Deal with INF_ERROR and
2116         INF_REG_EVENT, for the moment. 
2117         Include target.h.
2118
2119         * inf-loop.h (inferior_event_handler): Adjust prototype. Remove
2120         enum inferior_event_type from here.
2121         
2122         * remote.c (remote_async_serial_handler): Pass INF_REG_EVENT to
2123         the client callback.
2124         (remote_async): Change callback's param type to inferior_event_type.
2125         (async_client_callback): Change type as above.
2126         
2127 1999-10-01  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
2128
2129         * event-top.c (stdin_event_handler): Delete fd parameter, use
2130         input_fd instead.
2131         * event-top.h (stdin_event_handler): Delete fd parameter.
2132
2133         * inf-loop.c (inferior_event_handler): Delete fd parameter.  Use
2134         target_async() to unregister the inferior fd in case of errors.
2135         * inf-loop.h(inferior_event_handler): Delete fd parameter. 
2136
2137         * ser-unix.c (fd_event): Delete fd parameter. Use scb->fd,
2138         instead.
2139
2140         * remote.c (async_client_callback):  Delete fd parameter.
2141         (remote_async_serial_handler): Ditto.
2142         (remote_async): Adjust to new type of callback function.
2143
2144         * target.c (cleanup_target): Adjust parameters for to_async
2145         default case.
2146         * target.h (*to_async): Delete fd parameter from cb function.
2147
2148         * event-loop.h (handler_func): Delete fd parameter.
2149         * event-loop.c (handle_file_event): Delete fd param from call to
2150         proc. Do not include inferior.h.
2151         
2152 1999-10-01  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
2153
2154         * event-loop.c (inferior_event_handler,
2155         inferior_event_handler_wrapper): Move from here.
2156         * inf-loop.c: To here. New file.
2157         
2158         * event-loop.h (inferior_event_handler): Move from here.
2159         * inf-loop.h: To here. New file.
2160
2161         * remote.c: Include inf-loop.h.
2162         (set_extende_protocol): Remove unused prototpye.
2163
2164         * Makefile.in (SFILES): Add inf-loop.c. 
2165         (inf_loop_h): Define.
2166         (COMMON_OBS): Add inf-loop.o.
2167         (inf-loop.o): Add rule.
2168         (remote.o): Add dependency on inf-loop.h.
2169
2170 Fri Oct  1 19:59:31 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2171
2172         * ser-unix.c: Add some notes on how the async code works.
2173
2174 Fri Oct  1 01:45:32 1999  Jeffrey A Law  (law@cygnus.com)
2175
2176         * somread.c (som_symfile_offsets): Fix typo in last change.
2177
2178 1999-09-30  Fred Fish  <fnf@cygnus.com>
2179
2180         * coff-solib.c (coff_solib_add): Adjust call to symbol_file_add.
2181         * cxux-nat.c (add_shared_symbol_files): Ditto.
2182         * irix5-nat.c (symbol_add_stub): Ditto.
2183         * osfsolib.c (symbol_add_stub): Ditto.
2184         * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
2185         * remote-mm.c (mm_load): Ditto.
2186         * remote-udi.c (udi_load): Ditto.
2187         * remote-vx.c (vx_add_symbols): Ditto.
2188         * solib.c (symbol_add_stub): Ditto.
2189         * somsolib.c (som_solib_add_solib_objfile): Ditto.
2190         * win32-nat.c (handle_load_dll): Ditto.
2191
2192         * irix5-nat.c (symbol_add_stub): Add section_addrs, zero it.
2193         * cxux-nat.c (add_shared_symbol_files): Ditto.
2194         * osfsolib.c (symbol_add_stub): Ditto.
2195         * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
2196         * solib.c (symbol_add_stub): Ditto.
2197         * somsolib.c (som_solib_add_solib_objfile): Ditto.
2198         * symfile.c (symbol_file_command): Ditto.
2199         * win32-nat.c (handle_load_dll): Ditto.
2200
2201         * irix5-nat.c (symbol_add_stub): Use section_addrs to pass text addr.
2202         * cxux-nat.c (add_shared_symbol_files): Ditto.
2203         * osfsolib.c (symbol_add_stub): Ditto.
2204         * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
2205         * solib.c (symbol_add_stub): Ditto.
2206         * somsolib.c (som_solib_add_solib_objfile): Ditto.
2207         * symfile.c (symbol_file_command): Ditto.
2208         * win32-nat.c (handle_load_dll): Ditto.
2209
2210         * coff-solib.c (coff_solib_add): Call symbol_file_add with NULL ptr.
2211         * cxux-nat.c (add_shared_symbol_files): Ditto.
2212         * remote-udi.c (udi_load): Ditto.
2213         * remote-vx.c (vx_add_symbols): Ditto.
2214         * symfile.c (symbol_file_command): Ditto.
2215
2216         * dstread.c (dst_symfile_offsets): Take "section_addr_info *"
2217         instead of CORE_ADDR.
2218         * somread.c (som_symfile_offsets): Ditto.
2219         * symfile.c (default_symfile_offsets): Ditto.
2220         * xcoffread.c (xcoff_symfile_offsets): Ditto.
2221
2222         * symfile.h (default_symfile_offsets): Adjust prototype.
2223         (syms_from_objfile): Ditto.
2224         * symtab.h (symbol_file_add): Ditto.
2225
2226         * rs6000-nat.c (objfile_symbol_add): Call syms_from_objfile with NULL.
2227         * xcoffsolib.c (solib_add): Ditto.
2228         * gdb-stabs.h (SECT_OFF_MAX): Increase from 4 to 16.
2229         * symtab.h (MAX_SECTIONS): Define.
2230         (struct section_addr_info): New struct for better control over
2231         changing load addresses of sections.
2232         * objfiles.h (OBJF_READNOW): Add new flag bit.
2233         * symfile.h (sym_offsets): Change second param from CORE_ADDR to
2234         "section_addr_info *".
2235
2236         * symfile.c (symbol_file_add): Replace scalar arg "CORE_ADDR addr"
2237         with "struct section_addr_info *addrs".
2238         (syms_from_objfile): Ditto.
2239         (add_symbol_file_command): Remove local variables "readnow" and
2240         "mapped".  Replaced with general "flags" variable.
2241         (symbol_file_command): Ditto.
2242         (add_symbol_file_command): Add local variables i, sec_num, argcnt,
2243         expecting_option, option_index, and opt. Rework option parsing code
2244         to handle additional options.
2245         (_initialize_symfile): Adjust add-symbol-file usage to match new
2246         option handling.
2247         (symbol_file_add): Remove parameters "mapped" and "readnow",
2248         replace with general "flags".
2249         (symbol_file_add): In call to allocate_objfile, replace "mapped"
2250         with extracted OBJF_MAPPED bit from flags.
2251         (symbol_file_add): Use OBJF_READNOW bit from flags, instead of
2252         "readnow" variable.
2253         (symbol_file_command): Set OBJF_MAPPED and OBJF_READNOW bits
2254         from parsed options.  Pass flags to symbol_file_add.
2255         (add_symbol_file_command): Ditto.
2256         (syms_from_objfile): Add local variables i, sect, lower_sect,
2257         lower_offset, and local_addr.  Substitute local_addr for addrs
2258         when addrs is NULL.  Find lowest loadable section to be used as
2259         starting point for contiguous sections.  Adjust offsets if segments
2260         are not contiguous.  Call sym_offsets with section_addr_info
2261         instead of single addr.
2262         (default_symfile_offsets): Initialize objfile's section_offsets
2263         with user specified offsets.
2264         (symbol_file_add): Call syms_from_objfile with offsets.
2265         (unknown_option_complaint): Add.
2266         (add_symbol_file_command): Add "section_addrs", zero it with memset.
2267
2268 1999-09-30  Jason Molenda  (jsm@bugshack.cygnus.com)
2269
2270         * configure.in: Call config.sub explicitly instead of misusing the
2271         autoconf internal variable $ac_config_sub.
2272         * configure: Regenerated.
2273
2274 Thu Sep 30 15:53:59 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2275
2276         * remote.c (readchar): When EOF mourn the inferior.
2277         (getpkt): Try QUIT.  Might not be a watchdog timer timeout.
2278         (remote_async_serial_handler): Pass ``-1'' as the dummy FD.  Safer
2279         than ZERO == STDIN.
2280
2281         * serial.h (enum serial_rc): Replace #define SERIAL_ERROR,
2282         SERIAL_TIMEOUT and SERIAL_EOF.
2283         (struct _serial_t): Add more notes on termios specific fields.
2284
2285         * ser-unix.c (generic_readchar): Make SERIAL_ERROR sticky.
2286         (do_hardwire_readchar, do_unix_readchar): Don't use bufcnt as a
2287         tempoary for the return-value from read.
2288
2289         * serial.c (serial_logchar): Add a stream parameter.
2290         (serial_readchar, serial_write, serial_send_break): Update.
2291         (serial_readchar): Add serial debug trace.
2292
2293 Thu Sep 30 12:07:03 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2294
2295         * serial.h (struct _serial_t): Add field async_state.  Better
2296         document field bufcnt.
2297         (SERIAL_ERROR): Delete comment about errno.
2298         * serial.c (serial_open, serial_fdopen): Initialize async_state.
2299
2300         * ser-unix.c (push_event, fd_event, reschedule): New functions.
2301         Handle ASYNC serial input.
2302         (ser_unix_async): Update.
2303         (generic_readchar): New function. Handle event scheduling. Make
2304         EOF condition sticky.
2305         (do_unix_readchar): Rename ser_unix_readchar.
2306         (ser_unix_readchar): New function, call do_unix_readchar via
2307         generic_readchar.
2308         (do_hardwire_readchar, hardwire_readchar): Ditto.
2309
2310         * ser-unix.c (ser_unix_readchar): Delete code working around ASYNC
2311         fifo bugs.
2312         (hardwire_readchar): Delete code working around ASYNC fifo bugs.
2313
2314 Wed Sep 29 21:27:16 1999  Jeffrey A Law  (law@cygnus.com)
2315
2316         * breakpoint.c (insert_breakpoints): Addresses are CORE_ADDRs,
2317         not "int"s.
2318         (remove_breakpoint): Likewise.
2319
2320 1999-09-29  Fred Fish  <fnf@cygnus.com>
2321
2322         * breakpoint.c (breakpoint_1):  Replace cast "(CORE_ADDR) - 1"
2323         with the more obviously intended expression "(CORE_ADDR) -1".
2324         * dwarf2read.c (scan_partial_symbols, read_file_scope): Ditto.
2325         * gnu-nat.c (gnu_create_inferior): Ditto.
2326         * go32-nat.c (go32_create_inferior): Ditto.
2327         * hppa-tdep.c (hppa_pop_frame): Ditto.
2328         * infcmd.c (continue_command, step_1, signal_command): Ditto.
2329         (until_next_command, finish_command): Ditto.
2330         * infrun.c (proceed): Ditto.
2331         * inftarg.c (child_create_inferior): Ditto.
2332         * m3-nat.c (m3_create_inferior): Ditto.
2333         * mac-nat.c (child_create_inferior): Ditto.
2334         * procfs.c (procfs_create_inferior): Ditto.
2335         * remote-sim.c (gdbsim_create_inferior): Ditto.
2336         * target.c (target_link): Ditto.
2337         * win32-nat.c (child_create_inferior): Ditto.
2338
2339 Thu Sep 30 10:36:19 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2340
2341         * ser-unix.c (ser_unix_flush_input): New function.  Discard input
2342         buffer.
2343         (hardwire_flush_input): Use ser_unix_flush_input.
2344         (ser_unix_nop_flush_input): Delete.
2345         * ser-unix.h (ser_unix_flush_input): Update.
2346         ser-tcp.c (_initialize_ser_tcp), ser-pipe.c
2347         (_initialize_ser_pipe): Update.
2348         
2349         * ser-unix.c (hardwire_write): Delete.
2350         (_initialize_ser_hardwire): Update, use ser_unix_write.
2351
2352 Thu Sep 30 10:16:50 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2353
2354         * ser-pipe.c (pipe_open): Don't make the FD non-blocking.  Already
2355         being handled in ser_unix_wait_for by a select.
2356         
2357 Thu Sep 30 10:00:32 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2358
2359         * serial.h (struct _serial_t): Add field debug_p.
2360         (SERIAL_DEBUG, SERIAL_DEBUG_P): Define.
2361
2362         * serial.c (serial_open, serial_fdopen): Initialize debug_p.
2363         (serial_debug, serial_debug_p): New functions.
2364         (global_serial_debug_p): New variable.
2365         (_initialize_serial): Add ``set serialdebug'' command.
2366
2367 Thu Sep 30 09:09:38 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2368
2369         * serial.h (serial_event_ftype): Replace FD and ERROR args with
2370         SERRIAL_T arg.
2371         * ser-unix.c (ser_unix_event): Update.
2372
2373         * remote.c (remote_async_serial_handler): New function.  Handle
2374         serial events.
2375         (remote_async): Pass remote_async_serial_handler to SERIAL.
2376         (async_client_callback, async_client_context): New variables.
2377
2378         * remote.c (extended_remote_async_create_inferior): Use
2379         target_async to register the inferior event handler.
2380
2381 Thu Sep 30 00:02:03 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2382
2383         * configure.in (AC_CHECK_FUNCS): Test for sigprocmask.
2384         * configure, config.in: Re-generate.
2385         * event-top.c (async_stop_sig): Use sigprocmask when available.  
2386
2387 1999-09-29  Doug Evans  <devans@casey.cygnus.com>
2388
2389         * sh-stub.c (handle_exception): Fix typo in patch of 1999-08-26.
2390         * m68k-stub.c (handle_exception): Ditto.
2391
2392 1999-09-28  Fred Fish  <fnf@cygnus.com>
2393
2394         * alpha-nat.c (alpha_osf_core_fns, alpha_elf_core_fns):
2395         Add default entries for check_format and core_sniffer.
2396         * core-aout.c (aout_core_fns): Ditto.
2397         * core-regset.c (regset_core_fns): Ditto.
2398         * core-sol2.c (solaris_core_fns): Ditto.
2399         * i386aix-nat.c (i386aix_core_fns): Ditto.
2400         * i386mach-nat.c (i386mach_core_fns): Ditto.
2401         * irix4-nat.c (irix4_core_fns): Ditto.
2402         * irix5-nat.c (irix5_core_fns): Ditto.
2403         * lynx-nat.c (lynx_core_fns): Ditto.
2404         * mips-nat.c (mips_core_fns): Ditto.
2405         * ns32knbsd-nat.c (nat_core_fns): Ditto.
2406         * rs6000-nat.c (rs6000_core_fns): Ditto.
2407         * sparc-nat.c (sparc_core_fns): Ditto.
2408         * sun-nat.c (sun3_core_fns): Ditto.
2409         * ultra3-nat.c (ultra3_core_fns): Ditto.
2410
2411         * corelow.c (core_vec): New, for selected core file handler.
2412         (sniff_core_bfd): New function.
2413         (gdb_check_format): New function.
2414         (default_check_format): New function.
2415         (default_core_sniffer): New function.
2416         (sniff_core_bfd): New function.
2417         (core_close): Reset core_vec to NULL.
2418         (core_open): Fall back to gdb_check_format if bfd_check_format
2419         does not identify the file format.  Call sniff_core_bfd to pick
2420         a core file handler.
2421         (get_core_registers): Remove code that is now in sniff_core_bfd.
2422         Use current core_vec.
2423
2424         * gdbcore.h (check_format): New core_fns function, points to function
2425         to try and identify a core file format.
2426         (core_sniffer): New core_fns function, points to function to select
2427         a specific handler for the selected core file format.
2428         (default_core_sniffer): Add prototype.
2429         (default_check_format): Add prototype.
2430
2431         * i960-tdep.c (inferior.h): Include.
2432         * mips-tdep.c (read_next_frame_reg): Use ADDR_BITS_REMOVE
2433         on addresses pulled from stack.
2434
2435 1999-09-29  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
2436
2437         * event-loop.c (poll_timers): Check whether the timer list has any
2438         element on it by looking at the first element pointer, instead of
2439         num_timers.
2440
2441 Wed Sep 29 18:02:31 1999  Andrew Cagney  <cagney@amy.cygnus.com>
2442
2443         * command.c: Attempt to include POSIX <sys/wait.h> before
2444         <wait.h>.
2445
2446         * ser-unix.c (hardwire_print_tty_state): Ditto.
2447         * inflow.c (child_terminal_info): Fix printf args.
2448
2449 1999-09-28  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
2450
2451         * remote.c (remote_async_resume): Register the inferior with the
2452         event loop.
2453         (remote_async_open_1): Don't put the target in async mode here,
2454         just do it when executing.
2455
2456         * infrun.c (complete_execution): Unregister the inferior from the
2457         event loop.
2458
2459         * event-top.c (async_disable_stdin): Don't add
2460         async_enable_stdin() to the exec_cleanups chain.
2461
2462 Tue Sep 28 11:08:34 1999  Jeffrey A Law  (law@cygnus.com)
2463
2464         * hppa-tdep.c (hppa_fix_call_dummy): Ignore IMPORT_SHLIB stubs
2465         except for hpux11 native.  Break out of the loop to find a
2466         stub as soon as we find an IMPORT stub.
2467         (skip_prologue_hard_way): Also recognize copy %ret1,target and
2468         all PA64 argument stores as prologue instructions.
2469
2470 1999-09-28  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
2471
2472         * breakpoint.c, defs.h, event-top.c, infcmd.c, infrun.c, main.c,
2473         remote.c, top.c, tracepoint.c, utils.c (async_p): Change var name
2474         to event_loop_p.
2475         
2476 1999-09-28  Jim Blandy  <jimb@cygnus.com>
2477
2478         * hppa-tdep.c (skip_prologue_hard_way): Recognize ldo insns
2479         which generate pointers into the argument list.
2480
2481 Tue Sep 28 13:56:49 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2482
2483         * remote.h (cleanup_sigint_signal_handler,
2484         initialize_sigint_signal_handler): Delete extern declarations.
2485         * event-top.c, infrun.c: No longer need to include "remote.h".
2486         * remote.c (cleanup_sigint_signal_handler,
2487         initialize_sigint_signal_handler): Make static.
2488         * Makefile.in (event-top.o): Delete dependency on "remote.h".
2489
2490         * remote.c (remote_async_terminal_ours_p): New static global. Keep
2491         track of who currently owns the terminal.
2492         (remote_async_open_1): Initialize.
2493         (remote_async_terminal_inferior): Test
2494         remote_async_terminal_ours_p.  Claim CNTRL-C handler as part of
2495         transfering the terminal to the target.
2496         (remote_async_terminal_ours): Similar.
2497
2498 Mon Sep 27 12:33:45 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2499
2500         * remote.c (async_interrupt_query): Delete function.  Merged into
2501         interrupt_query.  Async cases handled by target_terminal_ours,
2502         target_terminal_inferior and SERIAL_CLOSE.
2503         (async_remote_interrupt_twice): Update.
2504         (remote_async_terminal_ours, remote_async_terminal_inferior): New
2505         functions. Steal STDIN from GDB's CLI.
2506         (init_remote_async_ops): Initialize to_terminal_ours and
2507         to_terminal_inferior.
2508
2509         * event-top.c (async_disable_stdin, async_disable_stdin): Use
2510         target_terminal_ours / target_terminal_inferior to transfer
2511         ownership of the terminal between GDB and the target.
2512
2513 1999-09-27  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
2514
2515         * infcmd.c (run_command): Call async_disable_stdin() only if
2516         dealing with an asynchronous target.
2517
2518 Mon Sep 27 11:48:38 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2519
2520         * target.h (struct target_ops): Add to_can_async_p, to_is_async_p,
2521         to_async.  Delete to_has_async.  These correspond well with
2522         SERIAL* async methods.
2523         (target_can_async_p, target_is_async_p, target_async): Define.
2524         * target.c (update_current_target, cleanup_target): Update.
2525
2526         * remote.c (remote_async_open_1): Change target to async using
2527         target_async.
2528         (remote_can_async_p, remote_is_async_p, remote_async): New
2529         functions.
2530         (remote_async_wait, remote_async_open_1): Add FIXME about how
2531         wait_forever_enabled_p can almost be deleted once the client can
2532         enable/disable target_async.
2533
2534         * breakpoint.c (until_break_command), infrun.c (proceed), infcmd.c
2535         (run_command, continue_command, step_1, jump_command,
2536         until_command, finish_command, interrupt_target_command), top.c
2537         (return_to_top_level, execute_command), event-top.c
2538         (command_handler): Replace target_has_async with
2539         target_can_async_p.
2540
2541 Sun Sep 26 02:10:47 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2542
2543         * remote.c (remote_async_open_1): If we go into async mode, never
2544         wait for ever.
2545
2546         * infcmd.c: Include "event-top.h".
2547         (run_command, continue_command, jump_command, until_command,
2548         finish_command): Use async_disable_stdin to disable the console
2549         for synchronous commands.
2550
2551         * remote.c (async_interrupt_query): Only disconnect the console
2552         from the terminal when sync_execution.
2553
2554         * remote.c (initialize_sigint_signal_handler): Move declaration
2555         from here.
2556         * remote.h: To here.  Make non-static.
2557
2558         * remote.c (remote_async_resume, async_interrupt_query): Move
2559         prompt code from here.
2560         * event-top.c (async_disable_stdin, async_enable_stdin): To
2561         here. New function.
2562
2563         * infrun.c (start_remote): Delete commented out code.
2564
2565 Fri Sep 24 12:38:31 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2566
2567         * remote.c (remote_async_open_1): Perform the initial async_open
2568         using only synchronous calls.  Only after the target is fully
2569         connected, switch to async mode.  Include FIXME about now it
2570         currently works VS how it should be working.
2571         (remote_async_open_1, set_extended_protocol): Delete function
2572         set_extended_protocol.  All open communication is now done
2573         synchronously.
2574         (forever_enabled_p): New variable.  Determine if remote_async_wait
2575         should block FOREVER when fetching target information.
2576         (remote_cisco_open, remote_open_1): Set forever_enabled_p.
2577
2578         * infrun.c (start_remote): During the initial connect, always use
2579         a synchronous wait.
2580
2581 Sat Sep 25 18:13:38 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2582
2583         * Makefile.in (event-top.o): Add dependency.
2584         * event-top.c: Include "remote.h".
2585         * remote.c (async_interrupt_query), event-top.c:
2586         (async_enable_stdin): Pass dummy parameter to
2587         cleanup_sigint_signal_handler.
2588         * remote.c (cleanup_sigint_signal_handler), remote.h
2589         (cleanup_sigint_signal_handler), event-top.c (async_enable_stdin),
2590         event-top.h (async_enable_stdin): Change signature to match
2591         make_exec_error_cleanup handler pararameter.
2592
2593 Thu Sep 23 20:48:22 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2594
2595         * defs.h (enum command_class): Move from here.
2596         * command.h (command_class): To here.
2597
2598 1999-09-24  Kevin Buettner  <kevinb@cygnus.com>
2599         * breakpoint.c (bpstat_stop_status): Use not_a_breakpoint to
2600         help properly set bp_addr.
2601         * infrun.c (handle_inferior_event): Simplify calls to
2602         bp_stop_status.
2603
2604 1999-09-24  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
2605
2606         * top.c (return_to_top_level): Do exec_error cleanups if are
2607         interrupting a simulated synchronous execution command.
2608
2609         * infrun.c (start_remote): Create a cleanup to enable stdin in
2610         case of error from this command.
2611         (complete_execution): Do the enabling of stdin via the exec_error
2612         cleanups, when needed.
2613
2614         * remote.c (remote_async_resume): Make sure we re-enable stdin in
2615         case of error from the target.
2616         (handle_remote_sigint_twice): The handler to be set is
2617         async_remote_interrupt_twice, not async_remote_interrupt.
2618         (async_remote_interrupt_twice): Don't do anything if the target
2619         has been killed already. Call async_interrupt_query, instead of
2620         interrupt_query.
2621         (async_interrupt_query): New function. Async case of
2622         interrupt_query().
2623         
2624         * event-top.c (async_enable_stdin): New function. Reinstate stdin
2625         with the event loop.
2626         * event-top.h (async_enable_stdin): Export.
2627
2628         * utils.c (exec_error_cleanup_chain): New cleanup chain.
2629         (make_exec_error_cleanup, do_exec_error_cleanups,
2630         discard_exec_error_cleanups): New functions.
2631         * defs.h (make_exec_error_cleanup, do_exec_error_cleanups,
2632         discard_exec_error_cleanups): Export.
2633
2634 1999-09-24  Jim Blandy  <jimb@zwingli.cygnus.com>
2635
2636         * ax-gdb.c (expr_to_agent): Don't forget to pass argument to
2637         new_agent_expr.
2638
2639 1999-09-24  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
2640
2641         * event-loop.c (fetch_inferior_event_wrapper): New
2642         function. Wrapper to pass to catch_errors.
2643         (inferior_event_handler): Pop the target if things go bad with it.
2644         Call fetch_inferior_event() from within catch_errors(). 
2645
2646 1999-09-24  Jim Blandy  <jimb@zwingli.cygnus.com>
2647
2648         * ax-gdb.c: Use internal_error instead of error, where
2649         appropriate.
2650
2651 1999-09-23  James Ingham  <jingham@leda.cygnus.com>
2652
2653         * target.c (target_resize_to_sections): New function.  Gather the
2654         resizing code for the to_sections field into one place, and make
2655         sure you update the other targets that are sharing the to_sections 
2656         structure.
2657         * target.h: Declare the target_resize_to_sections function.
2658         * solib.c (solib_add): use target_resize_to_sections.
2659         * somsolib.c (som_solib_load_symbols): ditto
2660         * rs6000-nat.c (xcoff_relocate_core): ditto
2661         * pa64solib.c (pa64_solib_load_symbols): ditto
2662         * irix5-nat.c (solib_add):ditto
2663
2664         * top.c: Define the attach & detach hooks
2665         * defs.h: Declare the attach & detach hooks.
2666         * infcmd.c (attach_command): call the attach hook if it exists.
2667         (detach_command): call the detach hook if it exists.
2668
2669         * complaints.c (complain): Send the complaints to stderr rather
2670         than stdout, so they don't get mixed into the result stream from
2671         commands. 
2672
2673 1999-09-23  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
2674
2675         * event-loop.c (poll_timers): Use correct timeval field names,
2676         when setting the notifier timeouts, in case of select() used.
2677         (gdb_wait_for_event): Pass a pointer to the timeout structure to
2678         select(), not the structure.
2679
2680 Wed Sep 22 10:35:32 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2681
2682         * Makefile.in (init.c): Change generated file to include "defs.h"
2683         and "call-cmds.h". Use initialize_file_ftype when declaring
2684         each initialize functions.
2685         (call_cmds_h): Add definition.
2686         (init.o): Add target and dependencies.
2687         (init.c): Don't grep for _initialize* in init.c.
2688
2689         * defs.h (initialize_file_ftype): Add function typedef.
2690
2691 1999-09-22  Michael Snyder  <msnyder@cleaver.cygnus.com>
2692
2693         * procfs.c (init_procinfo): move fltset initialization to caller.
2694         (do_attach, create_procinfo): initialize fltset.
2695
2696 1999-09-22  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
2697
2698         * event-loop.c, event-top.c, event-loop.h: Rerun indent.
2699
2700 1999-09-21  Doug Evans  <devans@casey.cygnus.com>
2701
2702         * m32r-stub.c (handle_exception): Fix typo in patch of 1999-08-26.
2703
2704 Tue Sep 21 14:55:29 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2705
2706         From 1999-08-20 J.T. Conklin  <jtc@redback.com>:
2707         * remote.c (read_frame): expand cisco run-length encoding variant
2708         inline as is done for the standard encoding.
2709         (remote_cisco_expand): Removed.
2710
2711 1999-09-20  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
2712
2713         * event-loop.c: Include <sys/time.h>.
2714
2715 1999-09-20  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
2716
2717         * ser-ocd.c: (ser_ocd_open, ser_ocd_raw, ser_ocd_readchar,
2718         ser_ocd_setbaudrate, ser_ocd_write, ser_ocd_close,
2719         ser_ocd_get_tty_state, ser_ocd_set_tty_state): Remove unused
2720         prototypes.
2721         (ocd_readremote): Remove.
2722         (ocd_write): Remove unused var 'c'.
2723
2724 1999-09-20  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
2725
2726         * event-top.c (change_line_handler): Cleanup dead code. Add comments.
2727         * event-loop.c: Cleanup #if 0 code.
2728
2729         * event-loop.h (timer_handler_func): New function type.
2730         (create_timer): Export function.
2731         (delete_timer): Export function.
2732
2733         * event-loop.c: Add timeout and timeout_valid fields to
2734         gdb_notifier.  New structures gdb_timer and timer_list.
2735         (gdb_do_one_event): Check whether there are any timers tht are
2736         ready, before going to wait.
2737         (gdb_wait_for_event): If the timeout structure is meaningful, pass
2738         that to select()/poll().
2739         (create_timer): New function. Creates a timer.
2740         (delete_timer): New function. Deletes a timer.
2741         (handle_timer_event): New function. Deals with timers that are ready.
2742         (poll_timers): New Function. Chack whether timers have expired.
2743
2744 Mon Sep 20 17:00:06 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2745
2746         * remote.c (getpkt, putpkt, remote_console_output): Move
2747         declaration from here.
2748         * remote.h: To here. New file.
2749         * tracepoint.c(putpkt, getpkt, remote_console_output): Delete
2750         declarations. Moved to "remote.h".
2751         * Makefile.in (remote_h): Define.
2752         * remote.c, tracepoint.c: Include "remote.h".
2753         * Makefile.in (tracepoint.o, remote.o): Add dependency on
2754         "remote.h".
2755
2756         * remote.h (remote_cisco_objfile_relocate,
2757         cleanup_sigint_signal_handler): Add declaration.  Include FIXME.
2758         * infrun.c: Include "remote.h".
2759         (complete_execution): Delete local extern declaration
2760         of ``cleanup_sigint_signal_handler''.
2761         * Makefile.in (infrun.o): Add dependency on remote.h.
2762
2763 Mon Sep 20 13:41:04 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2764
2765         * kod.c (ecos_kod_open, ecos_kod_request, ecos_kod_close,
2766         cisco_kod_open, cisco_kod_request, cisco_kod_close): Move
2767         declarations from here.
2768         * kod.h: To here. New file.
2769         * kod-cisco.c, kod.c: Include "kod.h".
2770         * Makefile.in (kod-cisco.o, kod.o): Add dependency on "kod.h".
2771
2772         * kod.h (kod_display_callback_ftype, kod_query_callback_ftype):
2773         New function types.
2774         * kod.h (kod_cisco_open): Use in declaration.
2775         * kod.c (gdb_kod_open): Update definition.
2776         * kod-cisco.c (cisco_kod_open): Update definition.
2777
2778 Mon Sep 20 12:13:27 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2779
2780         * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
2781
2782         * breakpoint.c (until_break_command_continuation): Add
2783         declaration.  Make static.
2784         * event-top.c (rl_callback_read_char_wrapper): Ditto.
2785
2786 Fri Sep 17 19:28:17 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2787
2788         * source.c: Include "source.h".
2789         (open_source_file, find_source_lines): Move declaration from here.
2790         * source.h: New file. To here.
2791         * Makefile.in (source.o): Add dependency on source.h.
2792
2793         * breakpoints.c (delete_command): Move declaration from here.
2794         * breakpoints.h (delete_command): To here.
2795         
2796 1999-09-18  Jim Blandy  <jimb@cygnus.com>
2797
2798         * hppa-tdep.c (in_solib_call_trampoline): If we can't recognize
2799         the instruction we're at, we're not in a stub.
2800
2801 Sat Sep 18 07:13:03 1999  Jeffrey A Law  (law@cygnus.com)
2802
2803         * dwarf2read.c (dwarf_decode_lines): Correctly handle
2804         DW_LNS_const_add_pc.
2805
2806 1999-09-18  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
2807
2808         * remote.c (remote_async_open_1): Use inferior_event_handler to
2809         handle inferior events.
2810         (extended_remote_async_create_inferior): Ditto.
2811
2812         * serial.h (serial_event_ftype): Add two pars. 
2813
2814         * ser-unix.c (ser_unix_event): Add two parameters, error and fd.
2815         Pass those into the call to the actual inferior event handler.
2816
2817         * infrun.c (complete_execution): Stdin handler is stdin_event_handler.
2818
2819         * event-top.h (stdin_event_handler): Export new function.
2820
2821         * event-top.c (stdin_event_handler): New function. Smarter handler
2822         for events on stdin.
2823         (change_line_handler): Don't need to update the handler for stdin
2824         here anymore.
2825         (_initialize_event_loop): Stdin handler is now stdin_event_handler.
2826
2827         * event-loop.h: (handler_func): Change signature, adding two new
2828         args.
2829         (sig_handler_func): New function type. It is the old handler_func.
2830         (create_async_signal_handler): Update to use sig_handler_func.
2831         (delete_async_signal_handler): Prototype for new function.
2832
2833         * event-loop.c: Include "inferior.h".
2834         (struct file_handler): Add field error, to indicate error
2835         condition on fd.
2836         (struct async_signal_handler): Rename type of proc field.
2837         (add_file_handler): Add exception condition as something select()
2838         should report.
2839         (handle_file_event): In case of error on the fd, record this in
2840         the file_handler structure. Update call to (*proc)() to match new
2841         signature.
2842         (gdb_wait_for_event): If select() or poll() return error, report
2843         this to user.
2844         (create_async_signal_handler): Change first param type to
2845         sig_handler_func*.
2846         (inferior_event_handler): New function. Smarter inferior event
2847         handling.
2848
2849 1999-09-18  Jim Blandy  <jimb@cygnus.com>
2850
2851         * pa64solib.c (pa64_solib_create_inferior_hook): Remove code which
2852         tries to set __d_pid; it's not relevant to PA64 shared libraries.
2853
2854         A psymtab's texthigh element, and a block's endaddr element, are
2855         the address past the end of the address range, never the address
2856         of the last byte.  These data structures mean the same thing on
2857         forty different architectures; there's no reason they should be
2858         different on HP/UX.
2859         * symtab.c (find_pc_sect_psymtab): Remove special case for HP/UX.
2860         (find_pc_sect_symtab): Same.
2861         * objfiles.c (find_pc_sect_section): Same.
2862
2863 Sat Sep 18 07:13:03 1999  Jeffrey A Law  (law@cygnus.com)
2864
2865         * hppa-tdep.c (internalize_unwinds): Handle PA64 shared libraries
2866         correctly
2867
2868         * hppa-tdep.c (in_solib_call_trampoline): Handle PA64 shared library
2869         trampolines.
2870
2871 1999-09-17  Jim Blandy  <jimb@zwingli.cygnus.com>
2872
2873         * breakpoint.c (permanent_breakpoint_here_p): Delete.
2874         Accidentally left over from previous changes.
2875
2876 1999-09-17  Jim Blandy  <jimb@cygnus.com>
2877
2878         * config/pa/tm-hppa64.h (ARGS_GROW_DOWNWARD): Deleted.  There are
2879         many more differences between the 32- and 64-bit ABI's than the
2880         direction the arguments grow, so this name is misleading.
2881         (PA20W_CALLING_CONVENTIONS): Define this instead.
2882         * config/pa/tm-hppa.h (ARGS_GROW_DOWNWARD): Delete.
2883         * hppa-tdep.c (hppa_push_arguments): Split into two separate
2884         functions, depending on whether PA20W_CALLING_CONVENTIONS is
2885         #defined.  These implement completely separate specifications,
2886         they don't really share that much code anyway, and this is much
2887         more readable.  Specifically: leave a 16-byte, not 32-byte, frame
2888         marker; correctly align objects larger than eight bytes; promote
2889         all integral scalar arguments smaller than eight bytes to a full
2890         register width; pad aggregates smaller than eight bytes on the
2891         right.
2892
2893 Thu Sep 16 17:33:35 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2894
2895         * remote.c (remote_async_open_1): Use SERIAL_ASYNC to
2896         enable/disable async event callback on serial port.  Use
2897         SERIAL_CAN_ASYNC_P / SERIAL_IS_ASYNC_P to determine if / when
2898         async mode.
2899         (remote_async_resume, remote_async_detach, remote_async_kill,
2900         extended_remote_async_create_inferior, remote_async_wait): Ditto.
2901
2902         * ser-unix.c (hardwire_readchar): When ASYNC, only read a single
2903         character.
2904         (ser_unix_readchar): Ditto.  Problems occure with back-to-back
2905         data from a target.  The ASYNC code can loose the second data
2906         chunk.
2907
2908         * serial.c (serial_fdopen): Initialize async_handler and
2909         async_context.
2910
2911 1999-09-16  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
2912
2913         * utils.c (discard_all_continuations): New function.
2914         * defs.h: (discard_all_continuations): Add prototype.
2915
2916 1999-09-16  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
2917
2918         * valops.c: Remove prototype for search_struct_field_aux(). THe
2919         function was nowhere in the file.
2920         (value_ind): Remove unused var real_val.
2921         (value_find_oload_method_list): Remove unused var v. 
2922         (find_overload_match): Remove extra declaration of var jj.
2923
2924         * Makefile.in (event_top_h): Define. Add dependency on this for
2925         every file that includes event-top.h.
2926
2927 Thu Sep 16 17:33:35 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2928
2929         * serial.c (serial_open): Delete ``&'' device.
2930         * ser-unix.c (_initialize_ser_hardwire): Make the "hardwire"
2931         device async.  Delete temporary "async-hardwire" device.
2932
2933 Thu Sep 16 16:27:13 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2934
2935         * serial.h (SERIAL_IS_ASYNC_P): Define.  Non-zero when serial
2936         device is in async mode.
2937         (SERIAL_CAN_ASYNC_P): Rename SERIAL_ASYNC_P.
2938         * serial.c (serial_is_async_p): Implement.
2939         (serial_can_async_p): Rename serial_async_p.
2940         (serial_open): Initialize ASYNC_HANDLER and ASYNC_CONTEXT. Save
2941         the original name in SCB instead of the stripped name.
2942
2943 Thu Sep 16 12:20:11 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2944
2945         * serial.h (struct serial_ops): Add field ASYNC.
2946         (SERIAL_ASYNC, SERIAL_ASYNC_P): New macros.
2947         (struct _serial_t): Add fields async_context and async_handler.
2948         * serial.c (serial_async, serial_async_p): Implement.
2949
2950         * ser-unix.c: Include "event-loop.h".
2951         (ser_unix_async), ser-unix.c: New function.  Implement async mode.
2952         (async_event): Handle async events.
2953         * ser-unix.c (_initialize_ser_hardwire), ser-tcp.c
2954         (_initialize_ser_tcp), ser-pipe.c (_initialize_ser_pipe): Enable
2955         ASYNC.
2956
2957         * serial.c (serial_open): Discard leading ``|'' before opening a
2958         pipe device.
2959         * ser-pipe.c (pipe_open): Adjust.
2960         * serial.c (serial_open): Add ``&'' prefix so that
2961         "async-hardwire" device can be explicitly selected.  Work in
2962         progress.
2963         * ser-unix.c: Register "async-hardwire" device.
2964   
2965 Thu Sep 16 09:04:53 1999  Andrew Cagney  <cagney@b1.cygnus.com>
2966
2967         * ser-unix.h: New file.  Declare generic ser_unix functions.
2968         * ser-unix.c (ser_unix_nop_get_tty_state,
2969         ser_unix_nop_set_tty_state, ser_unix_nop_raw, ser_unix_wait_for,
2970         ser_unix_readchar, ser_unix_nop_noflush_set_tty_state,
2971         ser_unix_nop_print_tty_state, ser_unix_nop_setbaudrate,
2972         ser_unix_nop_setstopbits, ser_unix_write,
2973         ser_unix_nop_flush_output, ser_unix_nop_flush_input,
2974         ser_unix_nop_send_break, ser_unix_nop_drain_output): New
2975         functions.
2976         * ser-unix.c: Include <sys/wait.h>, <sys/socket.h>,
2977         "gdb_string.h".
2978         
2979         * ser-tcp.c (_initialize_ser_tcp), ser-unix.c
2980         (_initialize_ser_hardwire), ser-pipe.c (_initialize_ser_tcp):
2981         Initialize ops vector using assignment.
2982
2983         * ser-pipe.c, ser-tcp.c, ser-unix.c: Include ser-unix.h.
2984         
2985         * ser-pipe.c (pipe_get_tty_state, pipe_set_tty_state,
2986         pipe_return_0, pipe_raw, wait_for, pipe_readchar,
2987         pipe_noflush_set_tty_state, pipe_print_tty_state,
2988         pipe_setbaudrate, pipe_setstopbits, pipe_write), ser-tcp.c
2989         (tcp_get_tty_state, tcp_set_tty_state, tcp_return_0, tcp_raw,
2990         wait_for, tcp_readchar, tcp_noflush_set_tty_state,
2991         tcp_print_tty_state, tcp_setbaudrate, tcp_setstopbits, tcp_write):
2992         Delete functions.
2993
2994 1999-09-15  Stan Shebs  <shebs@andros.cygnus.com>
2995
2996         * d10v-tdep.c (remote_d10v_translate_xfer_address): Move to here
2997         from remote-d10v.c, also change the memory translation to its
2998         previous version.
2999         * remote-d10v.c: Remove.
3000         * config/d10v/d10v.mt (TDEPFILES): Remove remote-d10v.o.
3001
3002 1999-09-15  Jim Blandy  <jimb@cygnus.com>
3003
3004         * breakpoint.c (remove_breakpoint): Return zero, not nothing.
3005
3006 1999-09-14  Jim Blandy  <jimb@cygnus.com>
3007
3008         * hppa-tdep.c (frame_chain): If the unwind info says we've saved
3009         r3, don't trust it.  Call get_frame_saved_regs and see if we can
3010         actually find an address for r3 there.
3011
3012         * pa64solib.c (pa64_sharedlibrary_info_command): Text fix.
3013
3014 Tue Sep 14 14:34:28 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3015
3016         * serial.h (DEPRECATED_SERIAL_FD): Define.
3017         * serial.c (deprecated_serial_fd): New function.
3018
3019         * remote.c (remote_async_open_1, remote_async_open_1,
3020         remote_async_detach, remote_async_kill,
3021         extended_remote_async_create_inferior, minitelnet): Update.
3022         * remote-es.c (es1800_open, es1800_close, es1800_transparent): Update.
3023
3024         * remote-st.c (connect_command), remote-os9k.c (connect_command):
3025         Fix.  Call FD_SET et.al. with FD instead of serial_t.
3026
3027 1999-09-14  Jim Blandy  <jimb@cygnus.com>
3028
3029         * hppa-tdep.c (hppa_frame_find_saved_regs): The two possible
3030         instructions for saving the return pointer (32- and 64-bit) save
3031         it at different offsets.
3032
3033         * config/pa/tm-hppa64.h: Doc fix.
3034
3035         * defs.h (continuation): Make this a typedef.
3036
3037         * Makefile.in (gdbtk.o, gdbtk-cmds.o): Depend on $(top_h).
3038
3039         * Makefile.in (i386-linux-nat.o): Depend on symfile.h, not
3040         $(symfile_h); the latter has no definition.
3041
3042         * breakpoint.c (breakpoint_here_p): Remove meaningless code,
3043         testing b->enable against shlib_disabled and call_disabled after
3044         we know it is enabled.
3045
3046         Implement "permanent breakpoints" --- breakpoints that are
3047         hardwired into the inferior's code.  GDB knows they're there, but
3048         doesn't try to insert or remove them, etc.
3049         * breakpoint.h (enum enable): Add `permanent' enablement state.
3050         * breakpoint.c (make_breakpoint_permanent): New function.
3051         * breakpoint.h (make_breakpoint_permanent): Add declaration.
3052         * breakpoint.c (insert_breakpoints): Don't bother to insert
3053         permanent breakpoints...
3054         (remove_breakpoint): ... or remove them.
3055         (breakpoint_here_p): Handle `permanent' like `enabled'.  Change
3056         return value to indicate whether it's a permanent breakpoint here,
3057         or an ordinary breakpoint.
3058         * breakpoint.h (enum breakpoint_here): New enum.
3059         (breakpoint_here_p): Change declaration.
3060         * breakpoint.h (breakpoint_1): Extend bpenables to cover all the
3061         enablement states.
3062         (describe_other_breakpoints): Describe permanent breakpoints.
3063         (check_duplicates): If one of the breakpoints at ADDRESS is a
3064         permanent breakpoint, treat all the others as the duplicates, so
3065         we don't try to insert or remove any of them.  Verify that only
3066         the permanent breakpoint is actually inserted.
3067         (delete_breakpoint): Complain if we discover that another
3068         breakpoint was inserted at the same place as a permanent
3069         breakpoint.
3070         (disable_breakpoint): Fail silently if asked to disable a
3071         permanent breakpoint.
3072         (do_enable_breakpoint): Don't change a permanent breakpoint's
3073         enablement to ordinary `enabled'.  Leave it alone.
3074         (create_solib_event_breakpoint): Return the
3075         breakpoint object created.
3076         * breakpoint.h (create_solib_event_breakpoint): Fix declaration.
3077         * pa64solib.c (pa64_solib_create_inferior_hook): Do turn on the
3078         DT_HP_DEBUG_CALLBACK flag in the dynamic linker, so it will call
3079         __dld_break, which contains the permanent breakpoint, when interesting
3080         things happen.  Tell GDB that the breakpoint in __dld_break is
3081         permanent.
3082         * gdbtk-cmds.c (gdb_get_breakpoint_info): Report a permanent
3083         breakpoint as enabled.
3084         * infrun.c (SKIP_PERMANENT_BREAKPOINT): Provide default definition.
3085         (default_skip_permanent_breakpoint): New function.
3086         (resume): If we're trying to resume at a permanent breakpoint, use
3087         SKIP_PERMANENT_BREAKPOINT to step over it.
3088         * hppa-tdep.c (hppa_skip_permanent_breakpoint): New function.
3089         * config/pa/tm-hppa.h (hppa_skip_permanent_breakpoint): Declare.
3090         (SKIP_PERMANENT_BREAKPOINT): Define.
3091         
3092 1999-09-14  Kevin Buettner  <kevinb@cygnus.com>
3093
3094         * symtab.h, minsyms.c (find_stab_function_addr): Changed
3095         type of second parameter from partial_symtab * to char *.
3096         Fixed all callers.
3097         * minsyms.c (find_stab_function_addr): Look for minimal
3098         symbol without filename if filename based search fails.
3099         * dbxread.c (process_one_symbol): Call find_stab_function_addr()
3100         in place of inline code with identical functionality.
3101         * partial-stab.h (case N_FUN, descriptors 'F' and 'f'): Look
3102         up symbol's address from minimal symbol table when N_FUN
3103         address is missing.  Also, make sure this value is used for
3104         calculating the value of the texthigh field.
3105
3106 1999-09-14  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
3107
3108         * event-loop.c (create_file_handler): Increment the total number
3109         of file descriptors for the poll case, only if this is a new file
3110         desc.
3111
3112 1999-09-14  Eli Zaretskii  <eliz@is.elta.co.il>
3113
3114         * go32-nat.c: misc minor cleanups and fixes missed in last patch.
3115
3116 Tue Sep 14 12:37:33 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3117
3118         * serial.h (SERIAL_PRINT_TTY_STATE): Add STREAM parameter.
3119         (union serial_ops): Update.
3120
3121         * ser-unix.c (hardwire_print_tty_state, ser-tcp.c
3122         (tcp_print_tty_state), ser-pipe.c (pipe_print_tty_state,
3123         ser-go32.c (dos_print_tty_state, ser-mac.c (mac_print_tty_state,
3124         ser-ocd.c (ocd_print_tty_state, ser-e7kpc.c
3125         (e7000pc_print_tty_state): Update.
3126         * inflow.c (child_terminal_info): Update.
3127         * serial.c (serial_print_tty_state): Update.
3128
3129 Tue Sep 14 11:41:37 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3130
3131         * serial.c, serial.h, ser-tcp.c, ser-unix.c, ser-pipe.c: Convert
3132         all functions to ISO-C.
3133         * serial.h, serial.c: Move all indirect macro function calls from
3134         serial.h into serial.c.
3135         (serial_drain_output, serial_flush_output, serial_flush_input,
3136         serial_raw, serial_get_tty_state, serial_set_tty_state,
3137         serial_print_tty_state, serial_noflush_set_tty_state,
3138         serial_setbaudrate, serial_setstopbits): New functions.
3139         (do_serial_close): Rename serial_close.
3140         (serial_close, serial_un_fdopen): New functions. Call
3141         do_serial_close.
3142
3143 1999-09-13  James Ingham  <jingham@leda.cygnus.com>
3144
3145         * symtab.c (decode_line_1): Find the rightmost parenthesis in the
3146         expression, not the leftmost.  This allows us to parse function
3147         declarations with embedded function prototypes.
3148
3149 Mon Sep 13 18:39:31 1999  Jeffrey A Law  (law@cygnus.com)
3150
3151         * pa64solib.c (pa64_sharedlibrary_info_command): Fix typos.
3152
3153 1999-09-13  Kevin Buettner  <kevinb@cygnus.com>
3154
3155         * i386-tdep.c (i386_extract_return_value): ifdef'd so that
3156         non-linux targets will work again.
3157         (i386_do_registers_info, i386_print_register): Revert changes
3158         of 1999-09-03; these functions have been removed because they
3159         are Linux specific and break non-Linux builds.  This functionality
3160         will be restored after FP support unification has been achieved.
3161         * i387-tdep.c (i387_print_register, void i387_float_info):
3162         Likewise.
3163         * config/i386/tm-linux.h (i387_float_info, FLOAT_INFO,
3164         DO_REGISTERS_INFO, i386_do_registers_info,
3165         i387_print_register):  Likewise.
3166
3167 1999-09-13  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
3168
3169         * event-top.c (call_readline): Change to accept gdb_client_data as
3170         param.
3171         (rl_callback_read_char_wrapper): New function to match what the
3172         event loop expects and what readline expects.
3173         (change_line_handler): Make call_readline point to
3174         rl_callback_read_char_wrapper, instead of rl_callback_read_char.
3175         (_initialize_event_loop): Ditto.
3176         (gdb_readline2): Change parameter to gdb_client_data.
3177         * event-top.h (call_readline, gdb_readline2): Change accordingly.
3178
3179         * event-loop.c (add_file_handler): Change 2nd par to
3180         handler_func*.  No more need for casting.
3181         * event-loop.h (create_async_signal_handler): Change accordingly.
3182
3183         * inferior.h (fetch_inferior_event): Change parameter to void*.
3184         * infrun.c (fetch_inferior_event): Ditto.
3185
3186 1999-09-13  Stan Shebs  <shebs@andros.cygnus.com>
3187
3188         * infrun.c (step_into_function): New function, broken out from the
3189         step_into_function label in handle_inferior_event.
3190         (handle_inferior_event): Change a goto into a function call.
3191
3192 1999-09-13  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
3193
3194         * event-top.h: New file. All the exported vars and functions from
3195         event-top.c.
3196
3197         * event-loop.h (struct gdb_event, event_handler_func,
3198         file_handler, async_signal_handler, SELECT_MASK, fd_mask, NBBY,
3199         FD_SETSIZE, howmany, NFDBITS, MASK_SIZE): Move to event-loop.c.
3200         (struct prompts, PROMPT, PREFIX, SUFFIX, display_gdb_prompt,
3201         async_init_signals, set_async_editing_command,
3202         set_async_annotation_level, set_async_prompt, handle_stop_sig,
3203         handle_sigint, pop_prompt, push_prompt, gdb_readline2,
3204         mark_async_signal_handler_wrapper, async_request_quit,
3205         async_command_editing_p, exec_done_display_p,
3206         async_annotation_suffix, new_async_prompt, the_prompts,
3207         call_readline, input_handler, input_fd): Move to event-top.h.
3208         (All function prototypes): Don't use PARAMS anymore.
3209
3210         * event-loop.c: (struct gdb_event, event_handler_func,
3211         file_handler, async_signal_handler, SELECT_MASK, fd_mask, NBBY,
3212         FD_SETSIZE, howmany, NFDBITS, MASK_SIZE): Move to here from
3213         event-loop.h.
3214         Include event-top.h. Remove use of PARAMS. ANSIfy functions headers.
3215                 
3216         * event-top.c: Include event-top.h. Include "signals.h", not
3217         <signals.h>.
3218         Remove use of PARAMS. ANSIfy functions headers.
3219         (handle_stop_sig): move prototype to event-top.h.
3220
3221         * remote.c: Include event-top.h. Make it understand
3222         async_signal_handler type.
3223         * infrun.c: Include event-top.h.
3224         * mi-main.c: Ditto.
3225         * top.c Ditto.
3226         * utils.c: Ditto.
3227         
3228 Mon Sep 13 18:54:05 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3229
3230         * gdbarch.sh: Describe each of the fields.
3231         
3232 Mon Sep 13 17:51:28 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3233
3234         From 1999-09-12 Jim Blandy <jimb@cygnus.com>:
3235         * gdbarch.sh (generating setters): Use sed to generate the proper
3236         indentation, not tr; tr's behavior is notoriously unportable.
3237
3238 1999-09-10  Jim Blandy  <jimb@zwingli.cygnus.com>
3239
3240         * i387-tdep.c (print_387_control_bits): Don't print newline; the
3241         callers take care of that.  (Thanks to H.J. Lu.)
3242
3243 1999-09-09  Stan Shebs  <shebs@andros.cygnus.com>
3244
3245         * d10v-tdep.c (DMEM_START): Set to 0x2000000.
3246         (itrace, iuntrace, info itrace, itdisassemble, itracedisplay,
3247         itracesource): Add 'i' prefix to commands, so as not to conflict
3248         with generic trace commands.
3249
3250 1999-09-09  Fernando Nasser  <fnasser@totem.to.cygnus.com>
3251
3252         * remote.c (_initialize_remote): Fix the specification of the
3253         "remote" prefix to set and show commands.
3254
3255 1999-09-09  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
3256
3257         * event-loop.c (create_file_event): New function. Creates a gdb
3258         event for a given fd.
3259         (gdb_wait_for_event): Use create_file_event().  
3260         * event-loop.h: export create_file_event().
3261
3262         * event-loop.c (delete_file_handler): Move the clearing of the
3263         mask to later on in the function, because we need it in order to
3264         deactivate the correct fd when using select().
3265
3266         * m32r-tdep.c (decode_prologue): Fix typo. Instructions starting
3267         with 0xf are branch instructions.
3268         (m32r_scan_prologue): Initialize framesize to 0.
3269
3270 1999-09-07  J.T. Conklin  <jtc@redback.com>
3271
3272         * i386-stub.c (exceptionHook, oldExceptionHook): Removed.
3273         (handle_exception): Removed #if'd out exception hook code.
3274
3275         * i386-stub.c, m68k-stub.c (error): Removed unused variable.
3276
3277         * i386-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
3278         sparcl-stub.c, sparclet-stub.c (remcomInBuffer, remcomOutBuffer):
3279         Make static.
3280
3281 Tue Sep  7 14:06:22 1999  Kevin Buettner  <kevinb@cygnus.com>
3282
3283         * config/i386/tm-linux.h (SOFUN_ADDRESS_MAYBE_MISSING): 
3284         Define.
3285
3286 Tue Sep  7 08:18:01 1999  Kevin Buettner  <kevinb@cygnus.com>
3287
3288         From Jim Blandy <jimb@cygnus.com>:
3289         
3290         Step into calls to functions in shared libraries properly.  See
3291         the comments for SKIP_SOLIB_RESOLVER atop infrun.c for details.
3292         * infrun.c (SKIP_SOLIB_RESOLVER): New macro.
3293
3294 1999-09-05  Fred Fish  <fnf@cygnus.com>
3295
3296         * elfread.c (elf_symtab_read): Remove separately passed bfd
3297         pointer and offset.  Pick up bfd pointer from objfile, and
3298         get offset from objfile's section_offsets.
3299
3300 Fri Sep  3 22:29:39 1999  Kevin Buettner  <kevinb@cygnus.com>
3301
3302         * config/i386/tm-linux.h (REGISTER_NAMES): Changed register
3303         named "foo" to "fopo" which more accurately describes the FPU
3304         Operand Pointer Offset.  The real reason for this change, of
3305         course, is that many programmers use $foo as a convenience
3306         variable and are likely to be unpleasantly surprised to find
3307         that they're unwittingly changing the state of their ia32 FPU.
3308
3309 1999-09-03  Jason Molenda  (jsm@bugshack.cygnus.com)
3310
3311         * monitor.c (monitor_supply_register): Stop scanning val string
3312         if a newline is encountered.
3313
3314 1999-09-03  Jason Molenda  (jsm@bugshack.cygnus.com)
3315
3316         monitor.c (TARGET_BUF_SIZE): New macro, defined to 2048.
3317         (monitor_expect_regexp, monitor_wait, monitor_dump_reg_block,
3318         monitor_dump_reg_block): Dump hard-coded constants in favor
3319         of TARGET_BUF_SIZE.
3320
3321         (readchar): Re-enable output of characters read from monitor when
3322         remotedebug is set.
3323
3324         (monitor_supply_register): Use ULONGEST to hold value.
3325         Replace strtoul() call with hand-coded loop to handle values
3326         larger than 'long'.
3327
3328         (monitor_store_register): Use ULONGEST to hold value.
3329
3330 Fri Sep  3 00:47:44 1999  Kevin Buettner  <kevinb@cygnus.com>
3331
3332         [Merged linux/x86 floating point code from Bill Metzenthen,
3333         Jim Blandy, Anthony Green, H. J. Lu, and possibly others.  The
3334         following remarks are Jim Blandy's.]
3335
3336         * findvar.c (extract_floating): Call TARGET_EXTRACT_FLOATING, if
3337         #defined.
3338         (store_floating): Call TARGET_STORE_FLOATING, if #defined.
3339
3340         * i386-tdep.c (i386_print_register, i386_do_registers_info): New
3341         functions.
3342         (i386_extract_return_value): GNU/Linux returns floating point
3343         values in a floating point register too.
3344         (set_disassembly_flavor): Add prototype.
3345         (i386_extract_return_value): Use FPDATA_REGNUM, not FP0_REGNUM (
3346         which wasn't the first FP data register).
3347         (i386_do_registers_info): Use FPSTART_REGNUM and FPEND_REGNUM as
3348         the limits of the FPU-related registers.
3349         (i386_extract_return_value): Tell GDB how to find return values
3350         larger than four bytes.  (Thanks to Paul N. Hilfinger for the bug
3351         report.)
3352
3353         * i387-tdep.c (print_387_control_word): Break out bit-splitting into...
3354         (print_387_control_bits): New function.
3355         (print_387_status_word): Break out bit-splitting into...
3356         (print_387_status_bits): New function.
3357         (i387_print_register, i387_float_info, i387_hex_float_input): New
3358         functions.
3359         (i387_extract_floating, i387_store_floating): New functions.
3360
3361         * valprint.c (print_floating): Use macro TARGET_ANALYZE_FLOATING,
3362         if it's #defined.  Tolerate values of `nonnegative' other than
3363         zero and one.
3364
3365         * i386-linux-nat.c: New file.
3366         * Makefile.in (ALLDEPFILES): Mention i386-linux-nat.c.
3367         (i386-linux-nat.o): New rule, listing dependencies.
3368         * config/i386/linux.mh (NATDEPFILES): Use i386-linux-nat.o, not
3369         the plain i386v4-nat.o.
3370         * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3371         * config/i386/xm-linux.h: Define HOST_I386.
3372
3373         * config/i386/tm-linux.h (FP0_REGNUM): Replaced by...
3374         (FPSTART_REGNUM, FPCONTROL_REGNUM, FPSTATUS_REGNUM, FPTAG_REGNUM,
3375         FPDATA_REGNUM, FPEND_REGNUM): New definitions.
3376         (REGISTER_BYTES): Changed accordingly.
3377         (SKIP_SOLIB_RESOLVER): #define this.
3378         (i386_linux_skip_solib_resolver): New declaration.
3379         (i387_float_info): Added extern decl for this function.
3380         (TARGET_EXTRACT_FLOATING, TARGET_STORE_FLOATING,
3381         TARGET_ANALYZE_FLOATING): Define.
3382         (i387_extract_floating, i387_store_floating): New extern decls.
3383         (I386_GNULINUX_TARGET): Define.
3384         (NUM_REGS, NUM_FREGS, REGISTER_NAMES, FP0_REGNUM, FPDATA_REGNUM,
3385         FPENV_BYTES, FPREG_RAW_SIZE, FPREG_BYTES, REGISTER_BYTES,
3386         REGISTER_BYTE, REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE,
3387         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3388         TARGET_LONG_DOUBLE_BIT, FLOAT_INFO, DO_REGISTERS_INFO): New
3389         definitions, perhaps overriding those inherited from
3390         config/i386/tm-i386.h.
3391         (i386_do_registers_info, i387_print_register, double_to_i387,
3392         i387_to_double): New declarations.
3393         (LD_I387): Define iff both the host and target are using i387
3394         FPU's.
3395         (HEX_FLOAT_INPUT, REGISTER_CONVERTIBLE,
3396         REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
3397         REGISTER_VIRTUAL_TYPE): Define these if LD_I387 is defined.
3398
3399         * source.c (list_command): List the right number of source lines,
3400         even if we're at the top of the file.
3401
3402 1999-09-02  Stan Shebs  <shebs@andros.cygnus.com>
3403
3404         * infrun.c (step_over_function): New function, broken out from the
3405         step_over_function label in handle_inferior_event.
3406         (handle_inferior_event): Change a goto into a function call.
3407
3408 Thu Sep  2 18:26:04 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3409
3410         * Makefile.in (GDB_WERROR_CFLAGS, GBB_WARN_CFLAGS): Define.
3411         (INTERNAL_CFLAGS): Update
3412         * configure.in (WERROR_CFLAGS, WARN_CFLAGS): Sync with
3413         ../sim/common/aclocal.m4.
3414         * configure: Re-generate.
3415         
3416 Thu Sep  2 00:27:36 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3417
3418         * Makefile.in (z8k-tdep.o): For moment, don't try to compile with
3419         -Werror.  See Makefile.in.
3420         * z8k-tdep.c (z8k_set_pointer_size): Document problem.
3421
3422         * config/z8k/tm-z8k.h (z8k_print_register_hook, z8k_frame_chain,
3423         z8k_saved_pc_after_call, z8k_frame_saved_pc,
3424         z8k_set_pointer_size): Declare.
3425         (z8k_skip_prologue): Fix typo. Was mz8k_skip_prologue.
3426         (FRAME_CHAIN, PRINT_REGISTER_HOOK, FRAME_SAVED_PC,
3427         SAVED_PC_AFTER_CALL): Update.
3428         * z8k-tdep.c (z8k_print_register_hook): Rename
3429         z8k_print_register_hook.
3430         (z8k_frame_chain): Rename frame_chain.
3431         (z8k_saved_pc_after_call): Rename saved_pc_after_call.
3432         (z8k_frame_saved_pc): Rename frame_saved_pc.
3433         (z8k_print_register_hook): Fix printf.
3434         (read_memory_pointer): Add declaration.
3435         ("value.h"): Include.
3436         * Makefile.in (z8k-tdep.o): Add dependency on value.h.
3437
3438         * config/sparc/tm-sparc.h (PRINT_EXTRA_FRAME_INFO): Fix
3439         printf. calls
3440         * Makefile.in (remote-e7000.o): For moment, don't try to compile
3441         with -Werror.  See Makefile.in.
3442         * sh-tdep.c (sh_show_regs): Fix printf calls.
3443         * xcoffsolib.c (solib_info): Fix Printf calls.
3444         * dink32-rom.c: #include "symfile.h" for generic_load and
3445         "inferior.h" for write_pc.
3446         * Makefile.in (dink32-rom.o): Update.
3447
3448         * config/mn10300/tm-mn10300.h (mn10300_store_struct_return),
3449         config/mn10200/tm-mn10200.h (mn10200_store_struct_return): Add
3450         declarations.
3451
3452 Tue Aug 31 00:48:27 1999  Andrew Cagney  <cagney@amy.cygnus.com>
3453
3454         * config/mips/tm-tx49el.h (REGISTER_SIM_REGNO): Define.
3455
3456         * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
3457         Pass REGISTER_SIM_REGNO converted register number to the
3458         simulator.
3459
3460 1999-09-01  Tom Tromey  <tromey@cygnus.com>
3461
3462         * config/i386/nm-linux.h (PREPARE_TO_PROCEED): Added argument.
3463
3464 1999-09-01  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
3465
3466         * values.c (value_virtual_fn_field): Remove unused var(s).
3467         * thread.c (prune_threads): Ditto.
3468         * symtab.c (lookup_transparent_type): Ditto.
3469         (decode_line_1): Ditto.
3470         (make_symbol_overload_list): Ditto. 
3471         * rs6000-tdep.c (frame_get_saved_regs): Ditto.
3472         (set_processor): Ditto.
3473         * remote.c (remote_remove_breakpoint): Ditto.
3474         (remote_query): Ditto.
3475         (readtty): Ditto.
3476         * remote-sds.c (sds_fetch_registers): Ditto.
3477         (putmessage): Ditto.
3478         * ppcbug-rom.c (ppcbug_supply_register): Ditto.
3479         (ppcbug_open): Remove unused prototype.
3480         * parse.c (parse_nested_classes_for_hpacc): Remove unused var(s).
3481         * ocd.c (ocd_open): Ditto.
3482         (ocd_get_packet): Ditto.
3483         * monitor.c (monitor_error): Ditto.
3484         (monitor_wait_srec_ack): Ditto.
3485         * main.c (main): Ditto.
3486         * gdbtypes.c (count_virtual_fns): Ditto.
3487         * exec.c (exec_file_command): Ditto.
3488
3489         * event-top.c: Include handle_sigwinch() function prototype within
3490         appropriate #ifdef.
3491
3492         * eval.c (evaluate_subexp_standard): Remove unused variable.
3493         (evaluate_subexp_standard): Remove unused variables.
3494         * dink32-rom.c (dink32_supply_register): Remove unused variable.
3495         * dbxread.c (elfstab_build_psymtabs): Ditto.
3496         * command.c (do_setshow_command): Ditto.
3497         * breakpoint.c (solib_load_unload_1): Remove unused variables 'i'
3498         and 'sal'.
3499         (until_break_command): Remove unused variables 'arg1' and 'arg2'.
3500         (create_exception_catchpoint): Remove unused variable 'i'.
3501         * ax-gdb.c (gen_sub): Remove unused variable.
3502         (_initialize_ax_gdb): Ditto.
3503
3504         * ser-pipe.c (pipe_readchar): If timeout is expired return
3505         SERIAL_TIMEOUT.
3506         * ser-tcp.c (tcp_readchar): If timeout is expired return
3507         SERIAL_TIMEOUT.
3508
3509 Wed Sep  1 15:07:25 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3510
3511         * version.h: New file.
3512         * Makefile.in (version_h): Define.
3513         (version.o): Add target.
3514
3515         * remote-array.c: #include "version.h".
3516         (version): Delete extern declarations.
3517         * Makefile.in (remote-array.o): Add dependency on version.h.
3518
3519         * top.c: #include "version.h".
3520         (version, host_name, target_name): Delete extern declarations.
3521         * Makefile.in (top.o): Add dependency on version.h.
3522
3523         * remote.c (remote_remove_watchpoint, remote_insert_watchpoint),
3524         remote-array.c (array_open), remote-mips.c (send_srec),
3525         dve3900-rom.c (store_bitmapped_register): Fix Printfs.
3526
3527         * mips-tdep.c (mips_print_extra_frame_info, print_unpack),
3528         m32r-rom.c (m32r_load_section), m32r-tdep.c (m32r_frame_chain),
3529         dsrec.c (load_srec): Fix printf problems.
3530         
3531 Wed Sep  1 13:16:49 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3532
3533         * Makefile.in (monitor.o): For moment, don't try to compile with
3534         -Werror.  monitor.c has -Wformat problems.  See Makefile.in for
3535         more info.
3536
3537 Tue Aug 31 21:23:38 1999  Jeffrey A Law  (law@cygnus.com)
3538
3539         * hppa-tdep.c (prologue_inst_adjust_sp): Correct offset computation
3540         for doubleword store instructions.
3541         (hppa_frame_find_saved_regs): Similarly.
3542
3543 Wed Sep  1 09:22:50 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3544
3545         * d30v-tdep.c (d30v_print_register): 
3546         (tdisassemble_command): 
3547
3548         * d10v-tdep.c (show_regs, trace_info, tdisassemble_command): Fix
3549         printf problems.
3550
3551         * remote-sim.c (dump_mem), remote-rdi.c (arm_rdi_create_inferior):
3552         Fix printf arguments.
3553
3554         * remote-mips.c, mips-tdep.c: Move declaration of
3555         ``mips_set_processor_type_command'' from here.
3556         * config/mips/tm-mips.h: To here.
3557         * remote-array.c: #include "inferior.h".
3558         * config/mips/tm-embed.h (remote_mips_stopped_by_watchpoint): Add
3559         declaration.
3560         * remote-mips.c (remote_mips_stopped_by_watchpoint): Define using
3561         ISO-C prototype.
3562         (monitor_supports_breakpoints): Integer variable.
3563
3564         * m32r-rom.c: #include "inferior.h" and <ctype.h>
3565         * config/m32r/tm-m32r.h (m32r_write_sp): Add declaration.
3566
3567         * config/i960/tm-i960.h (leafproc_return, i960_pop_frame): Add
3568         declaration.
3569         (POP_FRAME): Call i960_pop_frame.
3570         * i960-tdep.c (i960_pop_frame): Rename pop_frame.
3571         * mon960-rom.c: #include "inferior.h" for declaration of write_pc.
3572
3573 1999-08-15  Fred Fish  <fnf@cygnus.com>
3574
3575         * objfiles.c (objfile_relocate): Use SIZEOF_SECTION_OFFSETS when
3576         allocating section_offsets array.
3577         * remote-os9k.c (rombug_wait): Ditto.
3578         * remote-vx.c (vx_add_symbols): Ditto.
3579         * remote.c (get_offsets): Ditto.
3580         (remote_cisco_objfile_relocate): Ditto.
3581         * rs6000-nat.c (vmap_symtab): Ditto.
3582
3583         * dstread.c (dst_symfile_offsets): Set section_offsets directly instead
3584         of returning a pointer to section offsets.
3585         * somread.c (som_symfile_offsets): Ditto.
3586         * xcoffread.c (xcoff_symfile_offsets): Ditto.
3587         * symfile.c (default_symfile_offsets): Ditto.
3588         (syms_from_objfile): The sym_offsets function has already set section
3589         offsets and no longer returns a value.
3590
3591         * xcoffread.c (scan_xcoff_symtab): Eliminate section_offsets passed
3592         separate from objfile.
3593         (xcoff_start_psymtab): Ditto.
3594         (START_PSYMTAB): Ditto.
3595         * os9kread.c (read_minimal_symbols): Ditto.
3596         (read_os9k_psymtab): Ditto.
3597         (os9k_start_psymtab): Ditto.
3598         (record_minimal_symbol): Ditto.
3599         * dbxread.c (START_PSYMTAB): Ditto.
3600         (start_psymtab): Ditto.
3601         * mdebugread.c (START_PSYMTAB): Ditto.
3602         (elfmdebug_build_psymtabs): Ditto.
3603         (mdebug_build_psymtabs): Ditto.
3604         (parse_partial_symbols): Ditto.
3605         (new_psymtab): Ditto.
3606         * dwarfread.c (dwarf_build_psymtabs): Ditto.
3607         * partial-stab.h (START_PSYMTAB): Ditto.
3608         * stabsread.h (start_psymtab): Ditto.
3609         * dwarf2read.c (dwarf2_build_psymtabs): Ditto.
3610         (dwarf2_build_psymtabs_easy): Ditto.
3611         (dwarf2_build_psymtabs_hard): Ditto.
3612         * hp-psymtab-read.c (hpread_build_psymtabs): Ditto.
3613         (hpread_quick_traverse): Ditto.
3614         (hpread_start_psymtab): Ditto.
3615         (scan_procs): Ditto.
3616         * hpread.c (hpread_build_psymtabs): Ditto.
3617         * symfile.h (dwarf2_build_psymtabs): Ditto.
3618
3619         * dbxread.c (read_dbx_symtab): Use ANOFFSET to access section
3620         offsets.
3621         * coffread.c (enter_linenos): Pass objfile instead of section
3622         offsets.
3623
3624         * dbxread.c (dbx_symfile_read): No need to explicitly pass
3625         text addr and size.  Let read_dbx_symtab find them.
3626         (read_dbx_symtab): Get text addr and size from objfile.
3627         (dbx_symfile_read): Remove dead code (call to strlen);
3628         
3629 1999-08-31  Michael Snyder  <msnyder@cleaver.cygnus.com>
3630
3631         * Makefile.in: add rule for sol-thread.o.
3632         Add rule for linux-thread.o.
3633
3634 1999-08-13  Jim Kingdon  <kingdon@redhat.com>
3635
3636         Threads code from gdb 4.18-codefusion-990706
3637         [Thanks to Eric Paire, H. J. Lu, Jim Blandy and others]
3638         * infrun.c (signal_stop_update, signal_print_update,
3639         signal_pass_update): new functions.
3640         * inferior.h: new prototypes for above functions.
3641         * target.h (enum strata): add thread stratum.
3642         * linux-thread.c: new file.  Support for debugging linux threads.
3643         * config/i386/nm-linux.h: several new prototypes for above.
3644         * config/i386/linux.mh: add linux-thread.o to NATDEPFILES.
3645
3646         More threads code from the same place:
3647         * config/i386/tm-linux.h (REALTIME_LO, REALTIME_HI): Add
3648         definitions.
3649         * target.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_32.
3650         * target.c (signals, target_signal_from_host,
3651         target_signal_to_host): Add clauses for
3652         TARGET_SIGNAL_REALTIME_32.
3653         
3654 1999-08-31  Neil Schellenberger <neil.schellenberger@crosskeys.com>
3655
3656         * sol-thread.c (sol_thread_detach): strip thread-id out of 
3657         inferior_pid, so that procfs_detach can't choke on it.
3658
3659 1999-08-31  J.T. Conklin  <jtc@redback.com>
3660
3661         * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
3662         sparcl-stub.c, sparclet-stub.c (getpacket): Remove 'buffer' arg,
3663         define it as a pointer to &remcomInBuffer[0].
3664         (handle_exception): Update.
3665
3666         * sparc-stub.c, sparcl-stub.c, sparclet-stub.c (handle_exception):
3667         Removed #ifdef'd out code which implements the non-standard 'b'
3668         (set baud rate) command.
3669
3670 1999-08-31  Stan Shebs  <shebs@andros.cygnus.com>
3671
3672         * infrun.c (keep_going): New function, broken out from the
3673         keep_going label in handle_inferior_event.
3674         (handle_inferior_event): Change more gotos into function calls.
3675
3676 Tue Aug 31 02:29:27 1999  Jeffrey A Law  (law@cygnus.com)
3677
3678         * hppa-tdep.c (read_unwind_info): Handle multiple unwind sections.
3679
3680 Tue Aug 31 15:28:44 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3681
3682         * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Fix printf
3683         format argument.
3684         * alpha-tdep.c (heuristic_proc_start): Ditto.
3685
3686         From Stan Shebs <shebs@andros.cygnus.com>:
3687         * defs.h (strlen_paddr): Fix prototype - add void argument list.
3688
3689 Tue Aug 31 14:02:12 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3690
3691         * defs.h (gdb_print_host_address), utils.c
3692         (gdb_print_host_address): Rename gdb_print_address.
3693
3694         * expprint.c, gdbtypes.c, symmisc.c: Update.
3695
3696         *expprint.c: Use gdb_print_host_address when displaying native
3697         pointers.
3698
3699 Sat Aug 28 14:23:29 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3700
3701         * scm-valprint.c (scm_ipruk), jv-valprint.c (java_value_print),
3702         cp-valprint.c (cp_print_class_member), exec.c (exec_files_info),
3703         remote.c (putpkt_binary, compare_sections_command,
3704         remote_cisco_section_offsets), dcache.c (dcache_info),
3705         breakpoint.c (break_at_finish_at_depth_command_1,
3706         break_at_finish_command_1), symfile.c (generic_load),
3707         (report_transfer_performance), top.c (get_prompt_1), f-valprint.c
3708         (f_val_print), maint.c (maintenance_translate_address): Fix printf
3709         -Wformat warnings.  Use paddr, paddr_nz, sizeof_paddr, paddr_u and
3710         paddr_d to print addresses. Change ``d'' to ``ld''.
3711
3712         * utils.c (strlen_paddr): New function.
3713         
3714 Tue Aug 31 01:36:44 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3715
3716         * config/d30v/tm-d30v.h (d30v_frame_chain,
3717         d30v_init_frame_pc): Add declaration.
3718
3719         * arc-tdep.c (arc_pop_frame): Rename pop_frame.
3720         (arc_push_dummy_frame): Rename push_dummy_frame.
3721         (arc_set_cpu_type_command): Add declaration.
3722         
3723         * config/arc/tm-arc.h (arc_pop_frame, arc_push_dummy_frame): Add
3724         declaration.
3725         
3726 1999-08-30  Stan Shebs  <shebs@andros.cygnus.com>
3727
3728         * infrun.c (prepare_to_wait): New function, broken out from the
3729         wfi_continue label in handle_inferior_event.
3730         (handle_inferior_event): Change more gotos into function calls.
3731
3732 1999-08-30  Michael Snyder  <msnyder@cleaver.cygnus.com>
3733
3734         * tracepoint.c: -Wall warning cleanup. 
3735         (parse_and_eval_memrange): remove (unused).
3736         (output_command, args_info, locals_info, registers_info): add decls.
3737         (getpkt, putpkt, remote_console_output): add decls.
3738         (isalnum, isspace): cast arg to avoid warning.
3739         (printf, fprintf, sprintf): use [fs]printf_vma for printing addrs.
3740         
3741 Mon Aug 30 21:47:58 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3742
3743         * d10v-tdep.c: #include "language.h".
3744
3745 Mon Aug 30 20:38:57 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3746
3747         * configure.in (AC_CHECK_HEADERS): Check for <time.h>.
3748         * configure, acconfig.in: Re-generate.
3749
3750         * remote-rdp.c: #include <time.h>
3751
3752         * config/arm/tm-arm.h (arm_float_info): Add declaration.
3753
3754         * arm-tdep.c (convert_from_extended, convert_to_extended): Change
3755         double ptr arg to void ptr arg.
3756
3757         * config/arm/tm-arm.h (arm_frameless_function_invocation): Add
3758         declaration.
3759         (arm_frame_find_saved_regs): Rename frame_find_saved_regs.
3760         (convert_from_extended, convert_to_extended): Add declaration.
3761
3762 Mon Aug 30 19:05:32 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3763
3764         * configure.in (WERR_CFLAGS): Separate the -Werror flag.
3765         * configure: Re-generate.
3766
3767         * Makefile.in (INTERNAL_CFLAGS): Re-define using
3768         INTERNAL_WARN_CFLAGS.
3769         (INTERNAL_WARN_CFLAGS): Define.  Leave off WERR_CFLAGS.
3770         (tracepoint.o): Add explicit rule.
3771         (WERR_CFLAGS): Add definition.
3772
3773 Mon Aug 30 17:52:17 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3774
3775         * utils.c: #include "event-loop.h" for declaration of
3776         async_request_quit.
3777         * Makefile.in (utils.o): Add dependency on event-loop.h.
3778
3779         * event-top.c (mark_async_signal_handler_wrapper,
3780         async_request_quit): Move declaration from here.
3781         * event-loop.h: To here.
3782         
3783         * defs.h: Add declaration of exec.c:exec_set_section_offsets.
3784
3785         * event-top.c: #include "gdbcmd.h" which includes "command.h" and
3786         hence expose declaration of function dont_repeat.
3787
3788         * top.c (ISATTY), tracepoint.c (ISATTY), utils.c (ISATTY),
3789         event-top.c (ISATTY): Move definitions from here.
3790         * defs.h (ISATTY): To here. #include <unistd.h>.
3791
3792         * sol-thread.c, solib.c, source.c, sparcl-tdep.c, tracepoint.c,
3793         utils.c, win32-nat.c, wince.c, top.c, symfile.c, ser-unix.c,
3794         ser-tcp.c, procfs.c, maint.c, infttrace.c, hppa-tdep.c,
3795         ser-pipe.c, remote-rdp.c, main.c, inftarg.c, inflow.c,
3796         hpux-thread.c, hp-psymtab-read.c, go32-nat.c, fork-child.c,
3797         corelow.c, command.c: Do not #include <unistd.h>, moved to defs.h.
3798
3799 Mon Aug 30 15:14:43 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3800
3801         * defs.h (struct tui_stream, enum streamtype): Move from here.
3802         * utils.c: To here.
3803
3804         * main.c (tui_file_fputs): Move from here.
3805         * utils.c: To here.
3806
3807 Sun Aug 29 10:03:32 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3808
3809         * gdb-events.h, gdb-events.c, gdb-events.sh: New files.
3810
3811 1999-08-27  Michael Snyder  <msnyder@cleaver.cygnus.com>
3812
3813         * solib.c (open_symbol_file_object): new function.
3814         Called when attaching to a new process, if there is no loaded
3815         symbol file.  Attempts to locate the executable file for the
3816         attached process and load symbols from it.
3817         (solib_add): Call open_symbol_file_object if attaching to a
3818         new process and no open symbol file.    
3819
3820 1999-08-27  Jason Molenda  (jsm@bugshack.cygnus.com)
3821
3822         * config/i386/tm-sun386.h (GDB_TARGET_IS_SUN386): Definition
3823         removed--no longer checked anywhere in gdb.
3824
3825 1999-08-27  Stan Shebs  <shebs@andros.cygnus.com>
3826
3827         * infrun.c (stop_stepping): New function, broken out from
3828         stop_stepping label in handle_inferior_event.
3829         (handle_inferior_event): Change gotos into function calls.
3830
3831 Fri Aug 27 20:13:22 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3832
3833         * defs.h (LONGEST): Move definition to earlier in file - to just
3834         after BFD.
3835         (paddr_u, paddr_d): Declare.
3836         * utils.c (decimal2str): New function.
3837         (paddr_u, paddr_d): Define.
3838
3839         * remote.c (remote_cisco_section_offsets,
3840         compare_sections_command): Fix XprintfX arguments.  Use paddr...
3841         (putpkt_binary): Fix XprintfX arguments.
3842
3843 Tue Aug 24 21:30:36 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3844
3845         * arm-tdep.c (arm_init_extra_frame_info): Add braces.  Recommended
3846         by gcc -Wparentheses.
3847
3848 1999-08-26  Stan Shebs  <shebs@andros.cygnus.com>
3849
3850         * infrun.c (check_sigtramp2): New function, broken out from
3851         check_sigtramp2 label in handle_inferior_event.
3852         (handle_inferior_event): Change gotos into function calls.
3853
3854         Declare Tahoe configuration obsolete.
3855         * configure.host, configure.tgt: Comment out Tahoe configs.
3856         * Makefile.in: Comment out Tahoe-related action.
3857         * tahoe-tdep.c, config/tahoe/*: Comment out.
3858         * NEWS: Mention obsolete status.
3859
3860 1999-08-26  J.T. Conklin  <jtc@redback.com>
3861
3862         * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sh-stub.c,
3863         sparc-stub, sparcl-stub.c sparclet-stub.c (getpacket): If '$',
3864         the packet start character is received in the 'middle' of a 
3865         packet, assume that packet end character has been lost and
3866         start a new packet.
3867
3868         * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
3869         sparcl-stub.c sparclet-stub.c (getpacket): Changed to return ptr
3870         to first character of input buffer.  Removed & 0x7f masks.
3871         (handle_exception): Don't access remcomInBuffer directly.
3872
3873 1999-08-25  Stan Shebs  <shebs@andros.cygnus.com>
3874
3875         * breakpoint.c (disable_breakpoints_in_shlibs): Only disable
3876         enabled breakpoints.
3877
3878 Tue Aug 24 14:59:23 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3879
3880         * tracepoint.c, remote.c, pa64solib.h, value.h, somsolib.h,
3881         solib.h, scm-lang.h, language.h, inferior.h, defs.h, coff-solib.h,
3882         ch-lang.h, breakpoint.h, annotate.h: Remove #if __STDC__ wrapping
3883         struct declarations.
3884
3885         * config/sparc/nm-sun4sol2.h, config/mn10300/tm-mn10300.h,
3886         config/mn10200/tm-mn10200.h, config/i386/tm-i386.h,
3887         config/i386/tm-i386v.h, config/i386/nm-i386sol2.h,
3888         config/pa/nm-hppah.h, config/rs6000/nm-rs6000.h,
3889         config/sparc/tm-sp64.h, config/v850/tm-v850.h,
3890         config/tic80/tm-tic80.h, config/sparc/tm-sparc.h,
3891         config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
3892         config/mips/tm-mips.h, config/m68k/tm-m68k.h,
3893         config/m32r/tm-m32r.h, config/i960/tm-mon960.h,
3894         config/fr30/tm-fr30.h, config/h8300/tm-h8300.h,
3895         config/arm/tm-arm.h, config/alpha/tm-alpha.h,
3896         config/a29k/tm-a29k.h: Ditto.
3897
3898 Wed Aug 25 10:45:33 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3899
3900         * Makefile.in (gdb$(EXEEXT)): Add dependency on TDEPLIBS.
3901
3902         * config/arm/arm.mt (TDEPLIBS): Define.  Move libangsd.a to here.
3903         (TDEPFILES): From here.
3904
3905 1999-08-24  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
3906
3907         * top.c (init_main): Add new set/show command exec-done-display,
3908         default value is off.
3909         * event-loop.h: Export exec_done_display_p.
3910         * event-top.c: New variable exec_done_display_p.
3911         * infrun.c (complete_execution): Print completion message if
3912         corresponding flag is set.
3913
3914         * top.c (DEFAULT_PROMPT): Add space after "(gdb)" at end of prompt.
3915
3916         From: J.T. Conklin  <jtc@redback.com> 
3917         * top.c (DEFAULT_PROMPT): Set to "(gdb)" if not already defined.
3918         (init_main): Always use DEFAULT_PROMPT.
3919
3920 Tue Aug 24 03:23:31 1999  Jeffrey A Law  (law@cygnus.com)
3921
3922         * hppa-tdep.c: Remove useless "purecov: deadcode" comments.
3923         (hppa_use_struct_convention): Update for PA64.
3924         (hppa_frame_saved_pc): Properly extract the saved PC in a call
3925         dummy frame.
3926         (in_solib_call_trampoline): Return nonzero if we are in a function
3927         called ".stub".
3928         (prologue_inst_adjust_sp): Handle std,ma.
3929         (skip_prologue_hard_way): Handle more PA2.0/PA64 insns.
3930         (hppa_frame_find_saved_regs): Similarly.  Handle indirect save of
3931         %r3 into the stack.
3932
3933         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Define.
3934         (CALL_DUMMY_BREAKPOINT_OFFSET): Define.
3935
3936 Tue Aug 24 14:59:23 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3937
3938         * Makefile.in (gdb$(EXEEXT)): Add dependency on main.o that was
3939         lost when libgdb.a was added.
3940
3941 Tue Aug 24 14:26:34 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3942
3943         * gdbarch.c, gdbarch.h: Convert to pure ISO-C.
3944         
3945         * gdbarch.sh: New file.
3946         * gdbarch.c, gdbarch.h: Add note describing gdbarch.sh
3947
3948 Mon Aug 23 19:36:17 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3949
3950         * Makefile.in (libgdb.a): New target.
3951         (gdb$(EXEEXT)): Add dependency on libgdb.a.
3952         (libgdb-files, LIBGDB_OBS, libgdb, LIBGDBDEPS, LIBGDBFILES): Delete.
3953
3954 Mon Aug 23 10:16:32 1999  Jeffrey A Law  (law@cygnus.com)
3955
3956         * infttrate.c (child_pid_to_exec_file): Find the correct base
3957         of the stack for PA64.
3958
3959         * pa64solib.c: Fix some minor whitespace problems.
3960         (bfd_lookup_symbol): New function.
3961         (pa64_solib_create_inferior_hook): Find the address __dld_break
3962         in the dynamic linker.  Try to set a shlib event breakpoint in
3963         that function.
3964         (add_to_solist): Do not add the same shared library to the shlib
3965         list more than once.
3966
3967 Sun Aug 22 14:49:40 1999  Andrew Cagney  <cagney@b1.cygnus.com>
3968
3969         * value.h (enum lval_type): Move declaration from here.
3970         * defs.h (enum lval_type): To here.
3971         * frame.h, gdbarch.h: Delete incomplete declaration of ``enum
3972         lval_type''.
3973         
3974 1999-08-20  Michael Snyder  <msnyder@cleaver.cygnus.com>
3975
3976         * breakpoint.c (can_use_hardware_watchpoint): reject expressions
3977         that refer to registers or register variables.
3978
3979 Fri Aug 20 10:53:38 1999  Jeffrey A Law  (law@cygnus.com)
3980
3981         * hppa-tdep.c (hppa_fix_call_dummy): Provide PA2.0W aware code.
3982
3983         * pa64solib.c pa64solib.h: New files.
3984
3985         * config/pa/hppa64.mt: Delete commented out code that is and
3986         never will be appropriate for this target.
3987         * config/pa/hpux11w.mt (TDEPFILES): Remove SOM references.  Also
3988         remove pa64solib.o.
3989         * config/pa/hpux11w.mh (NATDEPFILES): Remove SOM references.
3990
3991         * configure.host; Use "hpux11w" and "hpux11" instead of
3992         "hpux1100w" and "hpux1100" respectively
3993         * config/pa/hpux11w.mh: Renamed from hpux1100w.mh.
3994         * config/pa/hpux11w.mt, config/pa/hpux11.mh: Likewise.
3995         * config/pa/hpux11.mt: Likewise.
3996
3997 1999-08-19  Michael Snyder  <msnyder@cleaver.cygnus.com>
3998
3999         * breakpoint.h (target_hw_bp_type): new enum.
4000         * breakpoint.c (insert_breakpoints): use enum instead of consts.
4001         (remove_breakpoint): use enum instead of consts.
4002         (throughout): use "warning" instead of "fprintf(stderr, ..."
4003         [Also clean up a bunch of excessively long lines.]
4004         
4005 1999-08-19  J.T. Conklin  <jtc@redback.com>
4006
4007         * i386-stub.c (waitabit): Removed.
4008         (breakpoint): Update.
4009
4010         * i386-stub.c, m32r-stub.c, sparc-stub.c, sparcl-stub.c,
4011         sparclet-stub.c (set_debug_traps): Don't send gratuitous ACK.
4012
4013         * m68k-stub.c (putpacket): Restore code so that packets are sent
4014         until an ACK is received.
4015
4016 1999-08-19  Eli Zaretskii  <eliz@is.elta.co.il>
4017
4018         * breakpoint.c (bpstat_stop_status): Accept triggered addresses
4019         anywhere inside the region occupied by a watched variable as a
4020         sign that the watchpoint fired.  Don't stop if some watchpoint
4021         was triggered, but its address doesn't match the address of this 
4022         watchpoint.
4023         (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New macro.
4024         Default definition is to call TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT.
4025         (can_use_hardware_watchpoint): Call TARGET_REGION_OK_FOR_HW_WATCHPOINT;
4026         if it returns zero, return zero immediately. 
4027         (insert_breakpoints): Try to insert watchpoints for all the values
4028         on the value chain, even if some of them fail to insert.  Remove
4029         the breakpoint if parts of its value chain couldn't be inserted.
4030         
4031 1999-08-19  Eli Zaretskii  <eliz@is.elta.co.il>
4032
4033         * go32-nat.c (go32_stopped_by_watchpoint): Remove unused code.
4034
4035 1999-08-19  Eli Zaretskii  <eliz@is.elta.co.il>
4036
4037         * go32-nat.c (tcgetpgrp, tcsetpgrp): New functions.
4038
4039 1999-08-19  Eli Zaretskii  <eliz@is.elta.co.il>
4040
4041         * go32-nat.c (go32_wait): If we are in a single-step mode, and the
4042         next instruction is INT nn or INTO, use a temporary breakpoint to
4043         simulate single-step mode, and reset the trace flag.
4044
4045 1999-08-19  Eli Zaretskii  <eliz@is.elta.co.il>
4046
4047         * go32-nat.c (wp_op): New typedef.
4048         (SHOW_DR): Print the length of watched region as well.
4049         (go32_insert_aligned_watchpoint): Remove unused argument PID.  All
4050         callers and the prototype changed.
4051         (go32_handle_nonaligned_watchpoint): Renamed from
4052         go32_insert_nonaligned_watchpoint.  Now handles all operations on
4053         non-aligned watchpoints: insertion, deletion, and counting.  If
4054         called with wp_count as the first argument, return the count of
4055         debug registers needed to watch the region.  Don't break out of
4056         the loop before all the addresses in the region are processed.
4057         (go32_remove_watchpoint): Call go32_remove_aligned_watchpoint to
4058         do the actual work.
4059         (go32_remove_aligned_watchpoint): New function, modeled after
4060         go32_insert_aligned_watchpoint.  Removes watchpoints that watch
4061         regions of arbitrary length by calling
4062         go32_handle_nonaligned_watchpoint as needed.
4063         (go32_region_ok_for_watchpoint): New function, called from
4064         can_use_hardware_watchpoint via the new macro
4065         TARGET_REGION_OK_FOR_HW_WATCHPOINT.
4066
4067         * config/i386/nm-go32.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
4068         Define to call go32_region_ok_for_watchpoint.
4069         (DECR_PC_AFTER_HW_BREAK): Define back to zero (previous redefinition
4070         to 1 was due to a bug in go32-nat.c).
4071
4072 1999-08-19  Eli Zaretskii  <eliz@is.elta.co.il>
4073
4074         * go32-nat.c (cleanup_dregs): New function.
4075         (go32_mourn_inferior): Call it.
4076         (IS_REG_FREE, LOCAL_ENABLE_REG, GLOBAL_ENABLE_REG, DISABLE_REG,
4077         SET_BREAK, SET_WATCH, IS_WATCH, WATCH_HIT): Protect arguments with
4078         parentheses.
4079         (SET_BREAK): Increment the debug register's reference count.
4080         (DR_DEF): New macro, returns the access and length bits of the
4081         breakpoint.
4082         (SHOW_DR): Print the reference count of each register.  Disable or
4083         enable print-out depending on an environment variable GDB_SHOW_DR.
4084         (go32_insert_aligned_watchpoint): Look for an occupied debug
4085         register with the same address and access/length bits, and reuse
4086         it by incrementing reference the count, before occupying another
4087         register.  Return zero upon success.
4088         (go32_insert_nonaligned_watchpoint): Pass the read/write bits to
4089         go32_remove_watchpoint.
4090         (go32_remove_watchpoint): Accept an additional parameter: the
4091         read/write bits of the watchpoint to remove, and only remove a
4092         watchpoint if it's occupied and its address and read/write bits
4093         match.  Only disable the register if its reference count is zero;
4094         otherwise just decrease the reference count.
4095         (go32_remove_hw_breakpoint): Only decrease reference count and
4096         disable the debug register if it is occupied and its access bits
4097         match those of an instruction breakpoint.
4098         (go32_insert_hw_breakpoint): Before occupying another debug
4099         register, look for an already occupied register that defines an
4100         instruction breakpoint with the same address.  If found, increment
4101         its reference count.  Call SHOW_DR even if failed to insert a
4102         breakpoint.
4103
4104         * config/i386/nm-go32.h (target_remove_watchpoint): Accept the
4105         TYPE argument as well.
4106
4107 Wed Aug 18 17:47:25 1999  Andrew Cagney  <cagney@b1.cygnus.com>
4108
4109         * mips-tdep.c: Add more comments.
4110
4111 1999-08-17  Stan Shebs  <shebs@andros.cygnus.com>
4112
4113         * blockframe.c: Don't use PARAMS anymore, remove obsolete comment
4114         about frameless functions.
4115
4116 1999-08-16  Michael Snyder  <msnyder@cleaver.cygnus.com>
4117
4118         * thread.c (delete_thread): delete any step_resume breakpoint
4119         held by the thread.  (prune_threads): call delete_thread.
4120         * breakpoint.c (breakpoint_init_inferior): if startup, then
4121         delete any remaining step_resume breakpoints.
4122         * infrun.c (handle_inferior_event): add cautionary comment.
4123
4124 1999-08-16  Fernando Nasser  <fnasser@totem.to.cygnus.com>
4125
4126         * remote.c (remote_async_mourn): New function. Async version of
4127         remote_mourn().
4128
4129 1999-08-16  Eli Zaretskii  <eliz@is.elta.co.il>
4130
4131         * terminal.h [__GO32__]: Remove conditional; DJGPP now supports
4132         termios.
4133
4134 1999-08-16  Eli Zaretskii  <eliz@is.elta.co.il>
4135
4136         * command.c (CANT_FORK) [__MSDOS__]: Define.
4137         (shell_escape) [CANT_FORK]: If ARG is NULL, pass an empty string
4138         to `system'.
4139         [__DJGPP__]: Return to the original directory after the shell
4140         exits.
4141
4142 1999-08-16  Eli Zaretskii  <eliz@is.elta.co.il>
4143
4144         * config/i386/xm-go32.h (ROOTED_P): Don't reference X[1] if X[0]
4145         is a null character.
4146
4147         * config/i386/nm-go32.h (DECR_PC_AFTER_HW_BREAK): Define to 1.
4148
4149 1999-08-16  Eli Zaretskii  <eliz@is.elta.co.il>
4150
4151         * go32-nat.c (redir_cmdline_parse, redir_cmdline_delete,
4152         redir_to_child, redir_to_debugger, redir_debug_init)
4153         [__DJGPP_MINOR__ < 3]: Dummy stubs for redirecting debuggee's
4154         standard handles.
4155         (print_387_status): Print "last FP instruction", not "last
4156         exception".  Restore the upper 5 bits of the opcode that aren't
4157         stored in the FPU state.  Print the FPU stack in its physical
4158         order, not relative to ST(0).  Print "special", not "trap" for
4159         unnormals and infinities.  Print all 10 bytes of each FP register,
4160         and print them with 19 significant digits.
4161         (regno_mapping): Make the mapping consistent with tm-go32.h.
4162         (sig_map): Add mappings for SIGQUIT, SIGFPE, SIGALRM.  Map NMI to
4163         SIGBUS.
4164         (excep_map): New variable, maps GDB signals to DJGPP exceptions.
4165         (go32_attach): Signal an error: we cannot attach to other
4166         processes.
4167         (go32_resume): Record the signal with which the inferior should be
4168         resumed, mapped to the DJGPP exception number.
4169         (go32_wait): Pass the signal recorded in go32_resume to the
4170         debuggee.  Save and restore debugger's and debuggee's current
4171         working directory.
4172         [__DJGPP_MINOR__ < 3]: Save and restore inferior's FPU state.
4173         (store_register): FPU regsiters have numbers less than 31.
4174         (go32_kill_inferior): Delete the parsed command-line storage.
4175         (go32_create_inferior): Initialize the parsed command-line
4176         storage.  Parse the command line and create the redirections for
4177         inferior's standard handles.
4178         [__DJGPP_MINOR__ < 3]: Init the inferior's FPU state.
4179         (ignore2): Function deleted.
4180         (device_mode): New function, switches a character device between
4181         raw and cooked mode.
4182         (go32_terminal_init): Invalidate the raw/cooked mode information.
4183         (go32_terminal_info): Print whether the inferior's terminal is in
4184         raw or cooked mode.
4185         [__DJGPP_MINOR__ > 2]: Say if standard handles are redirected or
4186         closed by the inferior.
4187         (go32_terminal_inferior): Switch standard handles to the
4188         inferior's files/devices.  Put the inferior's input device to
4189         raw/cooked mode, exactly like we found it last time.
4190         (go32_terminal_ours): Restore debugger's standard handles and put
4191         the terminal into cooked mode.  Save the mode of inferior's input
4192         device.
4193         (init_go32_ops): Assign go32_ops.to_attach,
4194         go32_ops.to_terminal_info, go32_ops.to_terminal_ours_for_output.
4195         Initialize inferior's cwd and the command-line storage.
4196
4197 Mon Aug 16 14:29:30 1999  Jeffrey A Law  (law@cygnus.com)
4198
4199         * config/pa/tm-hppa.h (ARGS_GROW_DOWNWARD): Define.
4200         * config/pa/tm-hppa64.h (ARGS_GROW_DOWNWARD): Undefine.
4201         * hppa-tdep.c (hppa_push_arguments): Handle arguments growing in
4202         both directions depending ARGS_GROW_DOWNWARD.
4203         (hppa_find_saved_regs): Update for 64bit wide registers & pointers
4204         and PA64 ABI. 
4205
4206         * hppa-tdep.c (hppa_pop_frame): Various fixes for 64bit wide
4207         registers and pointers.
4208         (hppa_fix_call_dummy, skip_trampoline_code): Likewise.
4209         (restore_pc_queue): Update tests for width of memory loads.
4210         (hppa_push_arguments): Delete version that was #if 0'd out.
4211
4212         * hppa-tdep.c (push_dummy_frame): Handle the new 64it ABI.
4213         (find_dummy_frame_regs): Corresponding changes.
4214
4215         * hppa-tdep.c (read_unwind_info): Initialize obj_private->dp.
4216         (internalize_unwinds): Improve test for when to use segment
4217         relative code for unwinder bounds.
4218         (rp_saved): Fix offset of saved return pointer for the 64bit ABI.
4219         (hppa_frame_saved_pc): Various updates to handle 64bit registers
4220         and pointers.
4221         (frame_chain, restore_pc_queue): Likewise.
4222
4223         * hppa-tdep.c (rp_saved): RP is saved at frame-16 when
4224         pointers are 64bits wide.
4225
4226         * hppa-tdep.c (record_text_segment_lowaddr): New function.
4227         (internalize_unwinds): Use it if addressess are 8 bytes wide. 
4228
4229         * symfile.c (syms_from_objfile): No longer warn if the lowest
4230         section does not have SEC_CODE set.
4231
4232         * Makefile.in (pa64solib.o): Add dependencies.
4233
4234         * hppah-nat.c (store_inferior_registers): Do not try to write a
4235         nonzero value to the high part of IPSW.  Fix typo in unable to store
4236         warning.
4237
4238         * config/pa/tm-hppa.h (opd_data structure): Delete.  Not actually
4239         needed.
4240         (struct obj_private_struct): Add new entry for the objfile's DP
4241         value.
4242         * config/pa/tm-hppa64.h (CALL_DUMMY): Add a nop to make it an even
4243         number of instructions.  Pack the dummy into word sized hunks.
4244         (CALL_DUMMY_LENGTH): Update appropriately.
4245         (PC_IN_CALL_DUMMY, CALL_DUMMY_LOCATION_AFTER_TEXT_END): Delete.
4246
4247 Mon Aug 16 19:08:19 1999  Andrew Cagney  <cagney@b1.cygnus.com>
4248
4249         * configure.in: Try -lsocket when looking for socketpair.
4250         * configure, config.h: Re-generate.
4251
4252 1999-08-13  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
4253
4254         From Christopher Faylor <cgf@cygnus.com>:
4255         
4256         * event-loop.c (gdb_wait_for_event): Before going to wait for
4257         another event with select or poll, flush the error and the output
4258         streams.
4259
4260         * event-top.c (gdb_readline2): Do not buffer the input, because
4261         doing so can interfere with select/poll in bad ways.
4262
4263 Fri Aug 13 17:36:56 1999  Eli Zaretskii  <eliz@is.elta.co.il>
4264
4265         * maint.c (maintenance_dump_me) [__DJGPP__]: Simulate a core dump
4266         with SIGABRT.
4267         * utils.c (quit) [__MSDOS__]: Don't mention SIGINT, since it's not
4268         gonna happen.
4269         (notice_quit): No need to define this function for the DJGPP port.
4270
4271 1999-08-13  James Ingham  <jingham@leda.cygnus.com>
4272
4273         * arm-tdep.c (arm_frameless_function_invocation): SKIP_PROLOGUE
4274         macro no longer modifies its argument.  Update uses to accord.
4275
4276         * config/arm/arm.mt (TDEPFILES): Add the remote-rdi.o to the
4277         TDEPFILES.
4278         * configure.tgt: Add rdi-share to configdir for the Arm targets.
4279
4280 Fri Aug 13 11:16:32 1999  Jeffrey A Law  (law@cygnus.com)
4281
4282         * hppah-nat.c (store_inferior_registers): Revamp to be PA2.0W
4283         aware.
4284
4285         * infttrace.c (ttrace_write_reg_64): New function.
4286
4287         * hp-symtab-read.c (is_in_import_list): Delete extern declaration.
4288         * somread.c (is_in_import_list): Delete function.
4289         * objfiles.c (is_in_import_list): New function.
4290         * objfiles.h (is_in_import_list): Declare.
4291
4292         * config/pa/tm-hppa64.h (GDB_TARGET_IS_HPPA20W): Define before
4293         including tm-hppah.h.
4294         (PC_IN_CALL_DUMMY): Define.
4295         (HPUX_1100): Similarly.
4296         * config/pa/tm-hppa.h (somsolib.h, pa64solib.h): Conditionalize
4297         includes on GDB_TARGET_IS_HPPA20W.
4298
4299         * configure.host: Distinguish between wide and narrow modes
4300         for hpux11.
4301         * config/pa/hpux1100w.mh, config/pa/hpux1100w.mt: New files.
4302
4303         * config/pa/tm-hppa64.h (STACK_ALIGN): Redefine.
4304         (REG_PARM_STACK_SPACE): Likewise.
4305
4306         * config/pa/tm-hppa.h (CLEAN_UP_REGISTER_VALUE): Handle 64bit
4307         PA target correctly.
4308         (REG_PARM_STACK_SPACE): Define.
4309         (struct unwind_table_entry): region_start and region_end are
4310         CORE_ADDRs.
4311         (typedef opd_data): New.
4312         (obj_private_data_t): Include pointer to opd_data structure.
4313
4314 1999-08-13  Keith Seitz  <keiths@cygnus.com>
4315
4316         * stabsread.c (stabsread_clear_cache): New funciton which clears
4317         an optimization cache of the reader.
4318
4319         * coffread.c (coff_symfile_finish): Give stabs reader a chance to
4320         clean up.
4321
4322         * win32-nat.c (handle_load_dll): Don't suppress re-reading symbols
4323         from a DLL if an objfile for it already exists. (Not that this should
4324         happen anymore anyway...)
4325
4326 1999-08-13  Keith Seitz  <keiths@cygnus.com>
4327
4328         * config/mcore/tm-mcore.h (SAVE_DUMMY_FRAME_TOS): Define for MCore,
4329         which also requires that the stack pointer be saved for call
4330         dummies BEFORE arguments get pushed onto it.
4331
4332 1999-08-12  Stan Shebs  <shebs@andros.cygnus.com>
4333
4334         From Eli Zaretskii  <eliz@is.elta.co.il>:
4335         * source.c (mod_path) [_WIN32 || __DJGPP__]: Don't remove trailing
4336         slash from "d:/".  Don't overstep the beginning of name.
4337         [_WIN32 || __MSDOS__]: Convert "d:" to "d:.", otherwise appending
4338         a slash changes its meaning.
4339         (openp): Use SLASH_P, not equality with SLASH_CHAR.
4340         (print_source_lines_base) [CRLF_SOURCE_FILES]: Skip \r only before
4341         a \n.
4342         (forward_search_command) [CRLF_SOURCE_FILES]: Remove \r at the end
4343         of all lines.
4344         (reverse_search_command) [CRLF_SOURCE_FILES]: Likewise.
4345
4346         * gnu-regex.c (CHAR_CLASS_MAX_LENGTH): Don't use wide characters
4347         unless HAVE_BTOWC is defined.
4348
4349 Fri Aug 13 10:20:12 1999  Andrew Cagney  <cagney@b1.cygnus.com>
4350
4351         From J.T. Conklin <jtc@redback.com>:
4352         * gdbinit.in: Change the template .gdbinit to match the recent
4353         fatal error handling change.
4354
4355 1999-08-11  Keith Seitz  <keiths@cygnus.com>
4356
4357         * maint.c (maintenance_internal_error): Fix typo in prototype.
4358
4359 Wed Aug 11 15:38:05 1999  Andrew Cagney  <cagney@amy.cygnus.com>
4360
4361         * remote.c (remote_rcmd): Pass an empty command across to the
4362         target.  Check for and handle an ``Enn'' return status.
4363
4364 Tue Aug 10 13:59:45 1999  Andrew Cagney  <cagney@b1.cygnus.com>
4365
4366         * maint.c (_initialize_maint_cmds): Add ``maintenance
4367         internal-error'' command.
4368         (maintenance_internal_error): New function.
4369
4370 1999-08-10  James Ingham  <jingham@leda.cygnus.com>
4371
4372         * top.c: Remove the disassembly_flavor_hook, use the new set_hook
4373         instead. 
4374         * defs.h: Ditto.
4375         * arm-tdep.c (set_disassembly_flavor_sfunc):  Ditto.
4376
4377 1999-08-10  Michael Snyder  <msnyder@cleaver.cygnus.com>
4378
4379         * config/i386/nm-i386sol2.h (FIND_NEW_THREADS): remove, obsolete.
4380         * config/sparc/nm-sun4sol2.h (FIND_NEW_THREADS): remove, obsolete.
4381                 
4382 1999-08-10  J.T. Conklin  <jtc@redback.com>
4383
4384         * configure.tgt (i[3456]86-*-aout*, i[3456]86-*-coff*,
4385         i[3456]86-*-elf*): Use embed.mt.
4386         * config/i386/embed.mt: New file.
4387
4388 1999-08-10  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
4389
4390         * remote.c (remote_async_open_1): Remove casting in call to
4391         add_file_handler.
4392         (extended_remote_async_create_inferior): Ditto.
4393
4394         * event-top.c (change_line_handler): Ditto.
4395         (_initialize_event_loop): Ditto.
4396
4397         * infrun.c (complete_execution): Ditto.
4398
4399         * event-loop.c (add_file_handler): Change proc parameter to be ptr
4400         to func with void parameter, rather than void*. Coerce second
4401         paramter in calls to create_file_handler. Replace
4402         async_handler_func and file_handler_func with handler_func.
4403
4404         * event-loop.h: Get rid of typedefs for file_handler_func and
4405         async_handler_func, just have one, and call it handler_func.
4406         Replace async_handler_func and file_handler_func occurrences with
4407         handler_func.
4408
4409 Tue Aug 10 03:13:03 1999  Jeffrey A Law  (law@cygnus.com)
4410
4411         * hppa-tdep.c: Delete random #if 0 code.
4412         (is_branch): Handle new branching opcodes from PA2.0
4413         (inst_saves_gr, inst_saves_fr): Handle additional instructions
4414         used to save general and floating point registers in the stack.
4415         (skip_prologue_hard_way): Handle additional instructions to
4416         save the return pointer in the stack.
4417         (after_prologue): Fix mis-guided and incorrect code to find
4418         the end of the prologue using debug symbols.
4419         (hppa_skip_prologue): Generally clean up comments, lose code
4420         which does not apply to the PA, etc.
4421
4422 Sun Aug  8 17:53:41 1999  Andrew Cagney  <cagney@amy.cygnus.com>
4423
4424         * MAINTAINERS: Make Andrew Cagney the mn10300 maintainer.
4425         Transfer responsibility for the PowerPC from Andrew Cagney to
4426         Elena Zannoni.
4427
4428 Tue Aug 10 13:59:45 1999  Andrew Cagney  <cagney@b1.cygnus.com>
4429
4430         Based on code from J.T. Conklin <jtc@redback.com>:
4431         * utils.c (internal_error): Make quit? and coredump? separate
4432         questions so that the user can dump-core and not quit.
4433         (internal_error): Cleanup error message.
4434
4435 1999-08-09  Tom Tromey  <tromey@cygnus.com>
4436
4437         * kod-cisco.c (cisco_kod_open): Removed incorrect `arg' argument.
4438
4439 Sun Aug  8 12:06:47 1999  Fred Fish  <fnf@cygnus.com>
4440
4441         * coffread.c (process_coff_symbol): Remove section_offsets from
4442         prototype and function definition.  Get section_offsets from the
4443         passed objfile and pass it on to callees the same way.
4444         (coff_symtab_read): Ditto.
4445         (coff_symfile_read): Ditto.
4446         * dbxread.c (read_dbx_dynamic_symtab): Ditto.
4447         (read_dbx_symtab): Ditto.
4448         (dbx_symfile_read): Ditto.
4449         (coffstab_build_psymtabs): Ditto.
4450         (elfstab_build_psymtabs): Ditto.
4451         (stabsect_build_psymtabs): Ditto.
4452         * dstread.c (dst_symfile_read): Ditto.
4453         * elfread.c (elf_symfile_read): Ditto.
4454         * jv-class.c (jv_class_symfile_read): Ditto.
4455         * mipsread.c (mipscoff_symfile_read): Ditto.
4456         * nlmread.c (nlm_symfile_read): Ditto.
4457         * os9kread.c (os9k_symfile_read): Ditto.
4458         * somread.c (som_symfile_read): Ditto.
4459         * stabsread.h (elfstab_build_psymtabs): Ditto.
4460         * xcoffread.c (xcoff_initial_scan): Ditto.
4461
4462         * symfile.h (sym_read): Remove section_offsets from prototype.
4463         * symfile.c (syms_from_objfile): Call sym_read without
4464         section_offsets.
4465         (reread_symbols): Ditto.
4466
4467         * elfread.c (elfstab_offset_sections): Use SIZEOF_SECTION_OFFSETS
4468         to allocate sections offsets array.
4469         * xcoffread.c (xcoff_symfile_offsets): Ditto.
4470
4471         * partial-stab.h (section_offsets): Get from objfile.
4472         * dbxread.c (read_dbx_symtab): Fix typo that made -1 casted
4473         to a CORE_ADDR look like an subtraction expression.
4474         * objfiles.h: Add some comments.
4475         * symfile.c: Add some comments.
4476         * objfiles.c: Add some comments.
4477         (objfile_relocated): Use ALL_OBJFILE_OSECTIONS to iterate over
4478         sections.
4479         (find_pc_sect_sections): Use ALL_OBJSECTIONS to iterate over all
4480         sections in all objfiles.
4481         * symfile.c (syms_from_objfile): Use ALL_OBJFILE_OSECTIONS.
4482
4483         * irix5-nat.c (symbol_add_stub): Fix typo that made taking the
4484         address of lowest_sect with '&' look like a bitwise and op.
4485         * osfsolib.c (symbol_add_stub): Ditto.
4486         * solib.c (symbol_add_stub): Ditto.
4487         * symfile.c (syms_from_objfile): Ditto.
4488
4489         * dwarf2read.c (dwarf2_build_psymtabs_hard): Minor format tweak.
4490         * symfile.c (syms_from_objfile): Ditto, and fix typo.
4491         * top.c (init_main): Fix typo in comment (DEFULAT_PROMPT).
4492         * doc/gdbint.texinfo (find_sym_fns): This replaces symfile_init.
4493
4494 1999-08-08  James Ingham  <jingham@leda.cygnus.com>
4495
4496         * remote.c (remote_insert_breakpoint): Fix typo in Z packet support. 
4497         Also move Z packet support OUTSIDE of REMOTE_BREAKPOINT ifdef,
4498         since this is not set for all targets that support the Z packet.
4499
4500 Fri Aug  6 17:17:28 1999  Andrew Cagney  <cagney@b1.cygnus.com>
4501
4502         * defs.h (fatal): Delete declaration.
4503         (internal_error): Declare.
4504         * utils.c (nomem): Call internal_error instead of fatal.
4505         (fatal_dump_core): Delete.
4506         (malloc_botch): Print message direct to stderr.
4507         (fatal): Delete definition.
4508         * utils.c (internal_error): Define.
4509         
4510         * gdbarch.h, gdbarch.c, hppah-nat.c, ch-exp.c, dsrec.c, sh-tdep.c,
4511         infptrace.c, f-lang.c, symm-nat.c, top.c, m3-nat.c, v850-tdep.c,
4512         remote-vx.c, remote-sim.c, remote-mips.c, source.c, infcmd.c,
4513         findvar.c, remote.c: Replace fatal with call to internal_error.
4514
4515 Sun Aug  8 15:28:33 1999  Andrew Cagney  <cagney@b1.cygnus.com>
4516
4517         * ser-pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Move
4518         definition from here.
4519         * defs.h: To here.
4520         
4521 Sat Aug  7 21:44:59 1999  Fred Fish  <fnf@cygnus.com>
4522
4523         * remote.c (remote_insert_breakpoint): Fix typo, missing ';'.
4524
4525 Sun Aug  8 11:26:57 1999  Andrew Cagney  <cagney@b1.cygnus.com>
4526
4527         * mips-tdep.c (mips_gdbarch_init): Add break; to the default case.
4528
4529 Fri Aug  6 19:26:03 1999  Andrew Cagney  <cagney@b1.cygnus.com>
4530
4531         * defs.h: Delete #if ANSI_PROTOTYPES code, GDB assumes ISO-C.
4532         * remote-rdp.c (send_rdp), remote-os9k.c (printf_monitor),
4533         remote-mips.c: (mips_error), remote-array.c: (printf_monitor,
4534         debuglogs), complaints.c (complain), monitor.c:
4535         (monitor_printf_noecho, monitor_printf), language.c (type_error,
4536         range_error), remote-st.c: (printf_stdebug), remote-sim.c
4537         (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
4538         gdb_os_evprintf_filtered, gdb_os_error), serial.c (serial_printf),
4539         utils.c (warning, error, fatal, fatal_dump_core, (query,
4540         fprintf_filtered, fprintf_unfiltered, fprintfi_filtered,
4541         printf_filtered, printf_unfiltered, printfi_filtered): Delete
4542         legacy #ifndef ANSI_PROTOTYPES varargs code.
4543
4544         * defs.h: Don't #include <varargs.h>.
4545         * remote-rdp.c, remote-os9k.c, remote-mips.c, remote-array.c,
4546         monitor.c, remote-st.c: Don't include <varargs.h> or <stdarg.h>.
4547
4548 1999-08-06  James Ingham  <jingham@leda.cygnus.com>
4549
4550         * configure.in, configure: add the --enable-multi-ice to determine 
4551         whether to configure and build the multi-ice-gdb-server.  Note,
4552         for now this only builds on cygwin, so don't enable it for other
4553         platforms... 
4554
4555 1999-08-06  Tom Tromey  <tromey@cygnus.com>
4556
4557         * Makefile.in (SFILES): Added kod.c and kod-cisco.c.
4558         (COMMON_OBS): Added kod.o and kod-cisco.o.
4559         (kod-cisco.o): New target.
4560         (kod.o): New target.
4561         * kod-cisco.c: New file.
4562         * kod.c: New file.
4563
4564 1999-08-06  James Ingham  <jingham@leda.cygnus.com>
4565
4566         These are some fixups for the Arm, and support for the
4567         disassembly-flavor for the ARM.
4568         
4569         * defs.h: Declare the disassembly_flavor_hook
4570         * top.c: Define the disassembly_flavor_hook
4571         * i386-tdep.c: Remove unnecessary declaration of the
4572         disassembly_flavor_hook.
4573
4574         * config/arm/tm-arm.h: Change definition of
4575         arm_init_extra_frame_info.
4576         Add a few more comments.
4577         * arm-tdep.c (arm_init_extra_frame_info): Listen to and use the
4578         fromleaf parameter passed into init_extra_frame_info.
4579         (set_disassembly_flavor_sfunc): New Function.
4580         (set_disassembly_flavor): New Function.
4581         (arm_othernames): Use the set_disassembly_flavor.
4582         (_initialize_arm_tdep): Setup the disassembly flavor commands, and 
4583         initialize the flavor.
4584         (arm_frameless_function_invocation): Adjust for
4585         frameless functions that have 1 or 2 instructions that mimic the
4586         standard APCS form.
4587         (arm_scan_prologue): Be more careful about scanning the function
4588         prologue.  Don't match things that just have a few of the prologue 
4589         instructions out of order, and don't get thrown by the scheduler
4590         migrating instructions into the prologue.
4591
4592         Add support for the "Z" and "z" packets to request the stub
4593         to set a breakpoint.
4594         
4595         * remote.c (set_remote_protocol_Z_packet_cmd): New function.
4596         (show_remote_protocol_Z_packet_cmd): New Function.
4597         (remote_open_1): Init the Z packet config.
4598         (remote_async_open_1): Init the Z packet config.
4599         (remote_insert_breakpoint): Use the "Z" packet if supported.
4600         (remote_remove_breakpoint): Use the "z" packet if supported.
4601         (remote_insert_watchpoint): New Function - currently wired to
4602         nothing. 
4603         (remote_remove_watchpoint): Ditto.
4604         (remote_insert_hw_breakpoint): Ditto.
4605         (remote_remove_hw_breakpoint): Ditto.
4606
4607 1999-08-06  Stan Shebs  <shebs@andros.cygnus.com>
4608
4609         * infcmd.c: Include parser-defs.h.
4610         (interrupt_target_command): Declare.
4611         (stack_dummy_testing): Remove old funky flag.
4612         (run_stack_dummy): Remove unused reference to old funky flag.
4613
4614 1999-08-06  Tom Tromey  <tromey@cygnus.com>
4615
4616         * command.c (do_setshow_command): Call set_hook if not NULL.
4617         * top.c (set_hook): New hook definition.
4618         * defs.h (set_hook): Declare.
4619
4620 1999-08-05  Stan Shebs  <shebs@andros.cygnus.com>
4621
4622         * infrun.c: Convert code to pure standard C, elim some warnings.
4623         (stopped_for_shlib_catchpoint): Remove, never used.
4624
4625 1999-08-05  Keith Seitz  <keiths@cygnus.com>
4626
4627         * NEWS: Mention new Motorola MCore target.
4628
4629         * sparc-tdep.c (gdb_print_insn_sparc): Print insns of the current
4630         architecture.
4631
4632 Thu Aug  5 20:41:22 1999  Andrew Cagney  <cagney@b1.cygnus.com>
4633
4634         * configure.in (configdirs): Add check for socketpair.
4635         * configure, config.in: Re-generate.
4636
4637         From Mon Jul 19 10:46:18 1999 Philippe De Muyter <phdm@macqel.be>:
4638         * ser-pipe.c (sys/wait.h): Include this file only #if HAVE_SYS_WAIT_H.
4639         (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Macros defined if needed.
4640
4641 Thu Aug  5 20:04:17 1999  Andrew Cagney  <cagney@b1.cygnus.com>
4642
4643         * target.c (debug_to_open, debug_to_attach, debug_to_post_attach,
4644         debug_to_require_attach, debug_to_detach, debug_to_require_detach,
4645         debug_to_wait, debug_to_post_wait, debug_to_fetch_registers,
4646         debug_to_store_registers, debug_to_prepare_to_store,
4647         debug_to_xfer_memory, debug_to_files_info,
4648         debug_to_insert_breakpoint, debug_to_remove_breakpoint,
4649         debug_to_terminal_init, debug_to_terminal_inferior,
4650         debug_to_terminal_ours_for_output, debug_to_terminal_ours,
4651         debug_to_terminal_info, debug_to_kill, debug_to_load,
4652         debug_to_lookup_symbol, debug_to_create_inferior,
4653         debug_to_post_startup_inferior,
4654         debug_to_acknowledge_created_inferior,
4655         debug_to_clone_and_follow_inferior,
4656         debug_to_post_follow_inferior_by_clone,
4657         debug_to_insert_fork_catchpoint, debug_to_remove_fork_catchpoint,
4658         debug_to_insert_vfork_catchpoint,
4659         debug_to_remove_vfork_catchpoint, debug_to_has_forked,
4660         debug_to_has_vforked, debug_to_can_follow_vfork_prior_to_exec,
4661         debug_to_post_follow_vfork, debug_to_insert_exec_catchpoint,
4662         debug_to_remove_exec_catchpoint, debug_to_has_execd,
4663         debug_to_reported_exec_events_per_exec_call,
4664         debug_to_has_syscall_event, debug_to_has_exited,
4665         debug_to_mourn_inferior, debug_to_can_run,
4666         debug_to_notice_signals, debug_to_thread_alive, debug_to_stop,
4667         debug_to_query, debug_to_rcmd, debug_to_enable_exception_callback,
4668         debug_to_get_current_exception_event, debug_to_pid_to_exec_file,
4669         debug_to_core_file_to_sym_file, debug_to_close): Send trace output
4670         to ``gdb_stdlog'' instead of ``gdb_stderr''.
4671
4672 Thu Aug  5 16:22:10 1999  Andrew Cagney  <cagney@b1.cygnus.com>
4673
4674         * remote.c (init_remote_ops): Initialize remote_ops.to_rcmd.
4675         (init_remote_async_ops): Initialize remote_async_ops.to_query.
4676         (remote_rcmd): New function.
4677
4678         * monitor.c (monitor_rcmd): Rename monitor_command.
4679         (init_base_monitor_ops): Initialize monitor_ops.to_rcmd.
4680         (_initialize_remote_monitors): Move "monitor" command from here.
4681         * target.c (initialize_targets): To here.
4682         (monitor_command): New function.  Implement "monitor" command.
4683
4684         * target.c (cleanup_target): de_fault to_rcmd.
4685         (update_current_target): INHERIT to_rcmd.
4686         (debug_to_rcmd): New function.
4687         (setup_target_debug): Initialize current_target.to_rcmd.
4688
4689         * target.h (struct target_ops): Add field to_rcmd.
4690         (target_rcmd): Define.
4691
4692 Thu Aug  5 14:24:07 1999  Andrew Cagney  <cagney@b1.cygnus.com>
4693
4694         * remote.c: Replace comment describing remote protocol with
4695         pointer to official document.
4696         
4697 Thu Aug  5 11:59:06 1999  Andrew Cagney  <cagney@b1.cygnus.com>
4698
4699         * remote.c (remote_protocol_binary_download): New variable.
4700         Replace ``remote_binary_download'' and ``remote_binary_checked''.
4701         (set_remote_protocol_binary_download_cmd,
4702         show_remote_protocol_binary_download_cmd): New functions.
4703         (remote_open_1, remote_async_open_1, remote_cisco_open):
4704         Initialize ``remote_protocol_binary_download'' instead of
4705         ``remote_binary_download''.
4706         (check_binary_download): Re-write.
4707         (remote_write_bytes): Ditto.
4708         (_initialize_remote): Add ``set remote X-packet'' and ``show
4709         remote X-packet'' commands.  Disable old ``set
4710         remotebinarydownload'' command.
4711
4712 1999-08-04  Keith Seitz  <keiths@cygnus.com>
4713
4714         * remote-rdi.c (arm_rdi_close): Close the transport device, too.
4715
4716 Wed Aug  4 10:42:58 1999  Fred Fish  <fnf@cygnus.com>
4717
4718         * xcoffread.c (scan_xcoff_symtab): Change main_aux into
4719         an array of 5 internal_auxent to leave room for bfd to
4720         write n_numaux entries.  Change code to use the first one.
4721
4722 1999-08-02  Stan Shebs  <shebs@andros.cygnus.com>
4723
4724         * c-valprint.c (c_val_print): When printing decimal equivalent
4725         of a char, cast appropriately.
4726
4727 1999-08-02  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
4728
4729         From Jonathan Larmour <jlarmour@cygnus.co.uk>:
4730         * main.c (print_gdb_help): Use gdbinit variable to determine file
4731         name used for --nx help
4732
4733 1999-08-01  Jason Molenda  (jsm@bugshack.cygnus.com)
4734
4735         * config/mips/tm-mips.h (BIG_ENDIAN): Don't define here.
4736
4737 1999-08-01  Jim Blandy  <jimb@zwingli.cygnus.com>
4738
4739         * stabsread.c (read_range_type): Handle an unsigned range type
4740         whose length in bytes is any power of two, not just a few
4741         common ones.
4742
4743         * monitor.c (monitor_expect): When we receive a character that
4744         isn't part of the string we were expecting, don't just start
4745         matching again at the beginning of the string --- some shorter
4746         suffix of the input might be a prefix of the string too.
4747
4748 1999-07-31  Fred Fish  <fnf@cygnus.com>
4749
4750         * symfile.c (symbol_file_command): Fix typo that made -1 casted
4751         to a CORE_ADDR look like an subtraction expression.
4752         (add_symbol_file_command): Ditto.
4753
4754 1999-07-30  Jim Blandy  <jimb@cygnus.com>
4755
4756         * hppa-tdep.c (pa_print_registers): Frob register output some more.
4757
4758 1999-07-29  Jim Blandy  <jimb@cygnus.com>
4759
4760         * config/pa/nm-hppah.h (PTRACE_ARG3_TYPE): After more
4761         consideration, make this a CORE_ADDR, like WDB did. 
4762
4763         Rather than casting every single use of really_free_pendings to 
4764         make_cleanup_func, why not actually make it have that type?  Golly!
4765         * buildsym.c (really_free_pendings): Change argument type to PTR.
4766         buildsym.h (really_free_pendings): Fix declaration.
4767         * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1),
4768         dwarf2read.c (psymtab_to_symtab_1), dwarfread
4769         (psymtab_to_symtab_1), hp-psymtab-read.c (hpread_build_psymtabs),
4770         os9kread.c (os9k_symfile_read, os9k_psymtab_to_symtab_1),
4771         xcoffread.c (xcoff_psymtab_to_symtab_1, xcoff_initial_scan):
4772         Remove casts.
4773
4774         Pass a CORE_ADDR safely through catch_errors.
4775         * hppa-tdep.c (args_for_find_stub): New member, return_val.
4776         (cover_find_stub_with_shl_get): Change argument and return type to
4777         match catch_errors.  Save return value of find_stub_with_shl_get
4778         in *args.
4779         (initialize_hp_cxx_exception_support): Collect value of
4780         eh_notify_callback_addr from args. 
4781
4782         Get rid of some noise.  It would be nice to get helpful warnings
4783         from the compiler about lossy conversions.
4784         * hppa-tdep.c (eh_notify_hook_addr, eh_notify_callback_addr,
4785         eh_break_addr, eh_catch_catch_addr, eh_catch_throw_addr,
4786         break_callback_sal): Initialize these to zero, not NULL, to shush
4787         warnings.
4788         * infttrace.c (thread_fake_step): Compare signal to
4789         TARGET_SIGNAL_0, not NULL, to avoid warnings.
4790         (_initialize_infttrace): Add sanity check.
4791
4792         * config/pa/nm-hppah.h (PTRACE_ARG3_TYPE): Define this to be
4793         long, so we can pass arguments properly to ptrace.
4794
4795         * hppah-nat.c (child_xfer_memory): Correctly compute mask to round
4796         address to an int boundary.
4797
4798 1999-07-29  Jim Blandy  <jimb@cygnus.com>
4799
4800         Change from Ian Lance Taylor <ian@zembu.com>.  The
4801         i386_linux_sigtramp* functions should be moved to
4802         i386-linux-tdep.c, when that file is introduced.
4803
4804         * config/i386/tm-linux.h (LINUX_SIGCONTEXT_SIZE): Define.
4805         (LINUX_SIGCONTEXT_PC_OFFSET): Define.
4806         (LINUX_SIGCONTEXT_SP_OFFSET): Define.
4807         (SIGCONTEXT_PC_OFFSET): Don't define.
4808         (I386_LINUX_SIGTRAMP): Define.
4809         (IN_SIGTRAMP): Define.
4810         (i386_linux_sigtramp): Declare.
4811         (sigtramp_saved_pc): Define.
4812         (i386_linux_sigtramp_saved_pc): Declare.
4813         (FRAMELESS_SIGNAL): Define.
4814         (FRAME_CHAIN, FRAME_SAVED_PC): Define after #undef.
4815         * i386-tdep.c (i386_linux_sigtramp_start): New static function if
4816         I386_LINUX_SIGTRAMP.
4817         (i386_linux_sigtramp): New function if I386_LINUX_SIGTRAMP.
4818         (i386_linux_sigtramp_saved_pc): Likewise.
4819         (i386_linux_sigtramp_saved_sp): Likewise.
4820
4821 1999-07-28  Jim Blandy  <jimb@cygnus.com>
4822
4823         * infrun.c (handle_inferior_event): Don't try to use the code for
4824         stepping over a function call to also handle stepping out of a
4825         sigtramp on HP-UX.  That ends up trashing step-resume breakpoints.
4826         This change reverts some of David Taylor's change of 31 Dec 1998.
4827         The HP-UX maintainer needs to submit a new change for whatever
4828         problem the original change was trying to fix.
4829
4830 1999-07-28  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
4831
4832         * event-top.c (command_line_handler): Don't treat an empty line
4833         from readline the same way as a multiline command. This avoids
4834         missing detecting when the user presses just 'enter'.
4835
4836 1999-07-28  Jim Blandy  <jimb@cygnus.com>
4837
4838         Provide more sanity checking:
4839         * infrun.c (handle_inferior_event): Before assigning a new
4840         breakpoint to step_resume_breakpoint, make sure it's not already
4841         pointing at one; if it is, that's a bug.
4842         (check_for_old_step_resume_breakpoint): New function.
4843
4844 1999-07-28  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
4845
4846         From Eli Zaretskii  <eliz@is.elta.co.il>:
4847         * top.c (gdb_init) [__MSDOS__]: Arrange for GDB to return to the
4848         original directory before exiting.
4849         (cd_command) [_WIN32 || __MSDOS__]: Canonicalize the new directory
4850         name explicitly.  Handle "d:/" names correctly.
4851         (init_history) [__MSDOS__]: Use _gdb_history as the default GDB
4852         history file name.
4853
4854 Mon Jul 26 17:13:39 1999  Andrew Cagney  <cagney@b1.cygnus.com>
4855
4856         * remote.c (enum packet_support, enum packet_detect, struct
4857         packet_config): Define.
4858         (set_packet_config_cmd, show_packet_config_cmd,
4859         add_packet_config_cmd, init_packet_config): New functions.
4860         Generic support for optional packets.
4861         (remote_protocol_P): Replace stub_supports_P.
4862         (set_remote_protocol_P_packet_cmd, show_remote_protocol_P_packet_cmd):
4863         New functions.
4864         (_initialize_remote): Add ``set remote-protocol-P-packet'' command.
4865         (remote_open_1, remote_async_open_1, remote_cisco_open):
4866         Initialize ``remote_protocol_P''.
4867         (remote_store_registers): Re-write ``P'' probe logic.
4868         (store_register_using_P): New function.
4869
4870         From Ian Lance Taylor <ian@airs.com>:
4871         (remote_prepare_to_store): Only read registers when ``P'' packet
4872         is in state unsupported or support-unknown.
4873         
4874 1999-07-24  Fred Fish  <fnf@cygnus.com>
4875
4876         * symfile.c (default_symfile_offsets): Clear section_offsets
4877         before filling it in.
4878
4879 1999-07-16  Keith Seitz  <keiths@cygnus.com>
4880
4881         * remote.c (_initialize_remote): "remotebreak" should be a var_boolean.
4882
4883 1999-07-15  Jim Blandy  <jimb@cygnus.com>
4884         
4885         Make the output from "info registers" fit withinin 80 columns.
4886         * hppa-tdep.c (pa_print_registers): Make it easy to change row and
4887         column counts.  Switch to three columns, instead of four, and
4888         adjust spacing.
4889
4890         First cut at supporting HPPA2.0 in "wide" (64-bit) mode.
4891         * configure.tgt: Add hppa2.0w target.
4892         * config/pa/hppa64.mt, config/pa/tm-hppa64.h: New files.
4893         * hppa-tdep.c (hppa_fix_call_dummy): Dyke out code to tweak the
4894         call dummy, if target is PA2.0w.  This is temporary, until I get
4895         function calls working.
4896         * hppah-nat.c (fetch_register): Rewritten to handle both narrow
4897         and wide register requests.
4898         (HPPAH_OFFSETOF): New macro.
4899
4900         * gdbtypes.c (is_integral_type): New function.
4901         * gdbtypes.h: Prototype for above.
4902
4903 1999-07-15  J.T. Conklin  <jtc@redback.com>
4904
4905         * configure.tgt (i[3456]86-*-vxworks*): New target.
4906         * config/i386/vxworks.mt: New file, x86 VxWorks target
4907         * config/i386/tm-vxworks.h: New file.
4908
4909         * configure.tgt (powerpc-*-vxworks*): New target.
4910         * config/powerpc/vxworks.mt: New file, PowerPC VxWorks target
4911         * config/powerpc/tm-vxworks.h: New file.
4912
4913         * NEWS: Mention the new configs.
4914
4915 1999-07-15  Fernando Nasser  <fnasser@cygnus.com>
4916
4917         * target.c (target_preopen): Prevent query when not from_tty.
4918         * infcmd.c (run_command): Prevent query when not from_tty.
4919
4920 1999-07-15  Fernando Nasser  <fnasser@cygnus.com>
4921
4922         * event-loop.c: Fix typo in comment.
4923
4924 Wed Jul 14 17:29:31 1999  Andrew Cagney  <cagney@b1.cygnus.com>
4925
4926         * ser-pipe.c (struct pipe_state): Define.
4927         (pipe_close): Retain the PID of the sub-process using ``struct
4928         pipe_state''.  Delete #ifdef code that used popen().
4929         (pipe_close): Kill of the sub-process as part of the cleanup.
4930
4931         * serial.h (struct _serial_t): Add field ``state''.
4932
4933 1999-07-13  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
4934
4935         * event-top.c (display_gdb_prompt): Don't display the prompt if we
4936         are in the middle of an execution command. Also trick readline so
4937         it doesn't try to display the prompt.
4938         (command_line_handler): Get rid of change_prompt, unused variable.
4939         Use {push, pop}_prompt mechanism in case of multiline commands.
4940
4941         * infrun.c (complete_execution): Set target_executing to 0 as
4942         first thing, so that display_gdb_prompt does the right thing.
4943
4944 Tue Jul 13 20:29:46 1999  Andrew Cagney  <cagney@b1.cygnus.com>
4945
4946         * parse.c (build_parse): Fix conditional increment of num_std_regs
4947         for SP_REGNUM. Was conditional on FP_REGNUM.
4948
4949 Tue Jul 13 16:44:58 1999  Andrew Cagney  <cagney@b1.cygnus.com>
4950
4951         * gdbarch.h, gdbarch.c: Revert 1999-07-07 Stan Shebs
4952         <shebs@andros.cygnus.com> indentation change.  Don't let indent
4953         mess with these files.
4954
4955 Mon Jul 12 11:15:09 1999  Andrew Cagney  <cagney@b1.cygnus.com>
4956
4957         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_RAW,
4958         REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERTIBLE): Define.
4959         (REGISTER_RAW_SIZE): Re-define as mips_register_convert_to_raw.
4960         * mips-tdep.c (mips_register_convert_to_raw,
4961         mips_register_convert_to_virtual, ): New functions.
4962         (mips_register_raw_size, mips_register_convertible): New
4963         functions.  Handle bug introduced by ``Wed Apr 1 23:13:23 1998
4964         Andrew Cagney <cagney@b1.cygnus.com>'' where remote mips64 target
4965         transfers SR as 64 bits yet GDB expected only 32 bits.
4966         (mips64_transfers_32bit_regs): New static variable.
4967         (_initialize_mips_tdep): Add obscure command ``set
4968         remote-mips64-transfers-32bit-regs'' that provides backward
4969         compatibility.
4970         (do_gp_register_row): Extract register values from raw buffer.
4971
4972         * NEWS: Document protocol change.
4973
4974 1999-07-12  Keith Seitz  <keiths@cygnus.com>
4975
4976         * rdi-share/unixcomm.c (Unix_ResetSerial): Remove CYGWIN32
4977         conditional.  It's no longer needed.
4978         (SERPORT1, SERPORT2): Linux serial ports are "/dev/ttyX", not
4979         "/dev/cuaX" (X=0,1,2,3,...).
4980
4981 Mon Jul 12 02:02:00 1999  Andrew Cagney  <cagney@amy.cygnus.com>
4982
4983         * defs.h, utils.c (fputstrn_filtered, fputstrn_unfiltered,
4984         fputstrnn_unfiltered): New functions.
4985         (gdb_printchar): Delete.
4986
4987         * remote.c (print_packet): Replace gdb_printchar with
4988         fputstrn_filtered.
4989         (getpkt): Use fputstrn_unfiltered to dump packet received.
4990         (putpkt_binary): Use fputstrnn_unfiltered to dump packet sent.
4991
4992 1999-07-09  Keith Seitz  <keiths@cygnus.com>
4993
4994         * blockframe.c (blockvector_for_pc_sect): When looking for a block,
4995         we want the one whose end is greater than our PC, not greater or equal.
4996
4997 1999-07-08  Stan Shebs  <shebs@andros.cygnus.com>
4998
4999         * sparcl-tdep.c (init_sparclite_ops): Fix doc strings, remove
5000         useless inits.
5001         (sparclite_ops): Remove redundant decl.
5002
5003 Thu Jul  8 16:48:40 1999  Andrew Cagney  <cagney@b1.cygnus.com>
5004
5005         * ser-pipe.c (pipe_open): Bi-directional popen found on both
5006         NetBSD and OpenBSD.
5007         * ser-pipe.c: New file.  Implement popen() style serial interface.
5008         * NEWS: Mention.
5009         * Makefile.in (ALLDEPFILES): Add ser-pipe.c.
5010         (ser-pipe.o): Add new target.  Specify dependencies.
5011         (SER_HARDWIRE): Add ser-pipe.o.
5012         * serial.c (serial_open): Recognize a serial pipe ``|''.
5013
5014 1999-07-07  Stan Shebs  <shebs@andros.cygnus.com>
5015
5016         * All C files except *-stub.c and *-share/*: Indent to GNU
5017         standard, using indent 1.9.1.
5018         * defs.h: Make indent ignore this file, macros confuse it.
5019
5020         * gnu-regex.c, gnu-regex.h: Don't let indent mess with these.
5021
5022 Wed Jul  7 13:06:24 1999  Andrew Cagney  <cagney@b1.cygnus.com>
5023
5024         * remote-mips.c (fputs_readable): Rename puts_readable, add struct
5025         gdb_file argument.
5026         (fputc_readable): Rename putc_readable, add struct gdb_file
5027         argument.
5028
5029         * remote-mips.c (mips_expect_timeout, mips_receive_header,
5030         mips_send_packet, mips_receive_packet), remote-rdp.c (put_byte,
5031         get_byte, put_word, rdp_init, rdp_init), remote-sds.c
5032         (sds_interrupt, sds_wait, readchar, putmessage, read_frame,
5033         getmessage), remote-udi.c (udi_store_registers, fetch_register):
5034         (store_register), xmodem.c (readchar), utils.c (puts_debug),
5035         gnu-nat.h (debug), parse.c (parse_exp_1): Cleanup - send debug/log
5036         messages to gdb_stdlog.
5037
5038 1999-07-06  Stan Shebs  <shebs@andros.cygnus.com>
5039
5040         * exec.c: Remove long-#ifed-out section of code that confuses
5041         indent.
5042         * gdbtypes.c (add_mangled_type): Add some braces to indicate
5043         grouping better.
5044         * gnu-nat.c: Remove literal newlines embedded in strings,
5045         causes indent to weird out.
5046         * language.c (binop_result_type): Remove extra paren.
5047         * lynx-nat.c: Add a missing paren to fetch_core_registers decl.
5048         * nec4102rom.c (vr4102_insert_step): Fix typos.
5049         (_initialize_vr4102_rom): Remove literal newline in string.
5050         * config/a29k/tm-a29k.h: Suppress formatting of pictures.
5051         * config/m68k/xm-3b1.h: Remove excess #endif.
5052
5053         Declare Pyramid configuration obsolete.
5054         * configure.host, configure.tgt: Comment out Pyramid configs.
5055         * Makefile.in: Comment out Pyramid-related actions.
5056         * pyr-xdep.c, pyr-tdep.c, config/pyr/*: Comment out.
5057         * NEWS: Mention obsolete status.
5058
5059 1999-07-06  Jason Molenda  (jsm@bugshack.cygnus.com)
5060
5061         * remote.c: Include <sys/time.h> to pick up FD_SET et al defns on
5062         some old Linux distributions.
5063         * remote-os9k.c, remote-st.c, ser-tcp.c, ser-unix.c,
5064         sparcl-tdep.c, remote.c: Back out inclusion of <sys/select.h>.
5065         It isn't necessary after all.
5066
5067 1999-07-06  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
5068
5069         * infcmd.c (strip_bg_char): Remove assignment from 'if' condition.
5070
5071 1999-07-05  Jason Molenda  (jsm@bugshack.cygnus.com)
5072
5073         * remote.c: Include <sys/select.h> if it exists in order to pick up
5074         FD_SET et al defns.
5075         * remote-os9k.c:  Same.
5076         * remote-st.c:  Same.
5077         * ser-tcp.c:  Same.
5078         * ser-unix.c:  Same.
5079         * sparcl-tdep.c:  Same.
5080
5081 Fri Jul  2 19:38:43 1999  Andrew Cagney  <cagney@b1.cygnus.com>
5082
5083         * top.c (target_output_hook): Delete definition.
5084         * defs.h (target_output_hook): Delete declaration.
5085
5086         * remote.c (remote_console_output): Delete call to
5087         target_output_hook().  Send target output to gdb_stdtarg using an
5088         unfiltered write. Make more robust.
5089
5090         * remote-sim.c (gdb_os_write_stdout, gdb_os_write_stderr):
5091         Ditto. For moment, do not try to separate target stdout and stderr
5092         streams.
5093
5094         * defs.h (gdb_stdtarg): New global. Output from target and
5095         simulators.
5096
5097 1999-07-02  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
5098
5099         * top.c (return_to_top_level): Do all the exec_cleanups too.
5100
5101         * event-top.c (command_handler): Set up for a continuation, if we
5102         are in the middle of running an execution command which will
5103         finish later on. Do cleanups, an display of time/space only if not
5104         running with an async target or not running an execution command.
5105         (command_line_handler_continuation): New function. Continuation
5106         for command_line_handler.
5107
5108         * utils.c (exec_cleanup_chain): New cleanup chain to be used in
5109         async mode for the execution commands.
5110         (make_exec_cleanup): New function. Add a cleanup to the
5111         exec_cleanup_chain.
5112         (do_exec_cleanups): New Function. Do cleanups on the
5113         exec_cleanup_chain.
5114         (add_continuation): New function. Add a new continuation to the
5115         cmd_continuation list.
5116         (do_all_continuations): New function. Do all the continuations on
5117         the cmd_continuation list.
5118
5119         * top.h (ALL_CLEANUPS): Move from here to defs.h.
5120
5121         * defs.h (struct continuation_arg): New structure. Arg to pass to
5122         the call to a command continuation.
5123         (struct continuation): New structure. Continuation for an
5124         execution command.
5125         (ALL_CLEANUPS): Move here from top.h.
5126         
5127         * remote.c (remote_async_open_1): Set things up for telling the
5128         target we are running the extended protocol, only after the target
5129         has stopped.
5130         (set_extended_protocol): New function. Tell the target we are
5131         using the extended protocol.
5132         (remote_async_resume): Set things up for sync execution only if
5133         this is the first time we are called.
5134
5135         * breakpoint.c (until_break_command_continuation): New function.
5136         Stuff to be done after the target stops during the 'until'
5137         command.
5138         (until_break_command): Set things up for completing the 'until'
5139         command later on. Do the final cleanups only if not running
5140         asynchronously or async execution is not supported by the target.
5141
5142         * infcmd.c (until_command): Recognize '&' at end of command and
5143         handle it properly.
5144         (finish_command_continuation): New function. Do whatever is needed
5145         after the target has stopped.
5146         (finish_command): Recognize '&' at end of command and handle it
5147         properly. Don't do stuff needed after target has stopped if
5148         running asynchronously and target has async. Use exec_cleanup_chain
5149         if running asynchronously and target is asynchronous.
5150
5151         * infrun.c (cmd_continuation): New gloabl variable. Used to
5152         coplete execution commands in async mode, after the target has
5153         stoped.
5154         (fetch_inferior_event): Use exec_cleanup_chain, instead of
5155         cleanup_chain. Do all the exec cleanups at the end. Do all the
5156         continuations at the end. Call complete_execution from here,
5157         instead of normal_stop.
5158         (complete_execution): Cleanup the signals handlers for SIGINT
5159         before displaying the prompt.
5160         (start_remote): Set target_executing to 1.
5161         (normal_stop): Don't call complete_execution from here.
5162         
5163 Thu Jul  1 19:14:30 1999  Andrew Cagney  <cagney@b1.cygnus.com>
5164
5165         * blockframe.c (struct dummy_frame): Add member ``top''.
5166         (generic_push_dummy_frame): Initialize top to sp.
5167         (generic_save_dummy_frame_tos): New function.  Initialize top.
5168         (generic_find_dummy_frame): Check for the top of the frame.
5169
5170         * blockframe.c (generic_push_dummy_frame): Free the dummy_frame
5171         registers.
5172
5173         * config/mn10300/tm-mn10300.h (SAVE_DUMMY_FRAME_TOS): Define.
5174         (TARGET_READ_FP): Return the SP as a best guess.
5175
5176 Wed Jun 30 15:45:48 1999  Jeffrey A Law  (law@cygnus.com)
5177
5178         * configure.host (hppa*-*-hpux11*): Accept any version of hpux11
5179         instead of hpux11.0*.
5180
5181 1999-06-30  Fernando Nasser  <fnasser@totem.to.cygnus.com>
5182
5183         * source.c (directory_command): Add missing test for from_tty. 
5184
5185 1999-06-29  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
5186
5187         * remote.c: Include event-loop.h.
5188         (remote_async_ops, extended_async_remote_ops): Define new target
5189         vector structures for asynchronous debugging.
5190         (remote_async_open): New function. Asynchronous version of
5191         remote_open.
5192         (extended_remote_async_open): New function. Asynchronous version
5193         of extended_remote_open.
5194         (remote_async_open_1): New function. Async version of
5195         remote_open_1.
5196         (remote_async_detach): New function. Async version of
5197         remote_detach.
5198         (remote_async_resume): New function. Async version of
5199         remote_resume.
5200         (initialize_sigint_signal_handler, handle_remote_sigint,
5201         handle_remote_sigint_twice, async_remote_interrupt,
5202         async_remote_interrupt_twice, cleanup_sigint_signal_handler): New
5203         functions. Used for handling ^C while target is running.
5204         (remote_async_wait): New function. Async version of remote_wait.
5205         (remote_async_kill): New function. Async version of remote_kill.
5206         (extended_remote_async_create_inferior): New function. Async
5207         version of extended_remote_create_inferior.
5208         (init_remote_async_ops): New function. Initialize target vector
5209         for target async.
5210         (init_extended_async_remote_ops): New function. Initialize target
5211         vector for target extended-async.
5212         (_initialize_remote): Initialize remote_async_ops and
5213         extended_async_remote_ops.
5214
5215         * infrun.c: Include "event-loop.h".
5216         (sync_execution): new global variable.
5217         (proceed): Invoke wait_for_inferior and normal_stop only if not
5218         running in async mode or if target doesn't support async
5219         execution.
5220         (start_remote): Don't call wait_for_inferior and normal_stop if
5221         not running in async mode or if target not async. If running async
5222         and target is async, start the target in simulated synchronous
5223         mode.
5224         (async_ecss, async_ecs): New global vars, for inferior state.
5225         (fetch_inferior_event): New function. Async version of
5226         wait_for_inferior.
5227         (complete_execution): New function. Reset of gdb prompt and stdin,
5228         after inferior execution has completed.
5229         (normal_stop): Call complete_execution at end of asynchronous
5230         execution.
5231
5232         * infcmd.c (strip_bg_char): New function to detect the background
5233         execution char '&'.
5234         (run_command): Modify to support background and foreground
5235         execution in async mode.
5236         (continue_command): Ditto.
5237         (step_1): Ditto.
5238         (jump_command): Ditto.
5239         (interrupt_target_command): New function. Interrupt the
5240         target execution.
5241         (_initialize_infcmd): Add new command 'interrupt'.
5242         
5243         * top.c (target_executing): New global variable.
5244         (execute_command): Reject commands that cannot be executed while
5245         the target is running asynchronously.
5246
5247         * event-top.c (push_prompt): Make non static.
5248         (pop_prompt): Make non static. If the current prompt is empty,
5249         don't try to copy it over the previous one.
5250         (handle_sigint): Make non static.
5251         (command_handler): Do the cleanups only when not executing with an
5252         asynchronous target.
5253
5254         * event-loop.c (delete_async_signal_handler): Pass a pointer to a
5255         pointer to a signal handler, so that is can be freed at the end.
5256
5257         * target.c (update_current_target): Inherit to_has_async_exec.
5258
5259         * inferior.h: Add global variables target_executing, and
5260         sync_execution. Export function fetch_inferior_event.
5261
5262         * event-loop.h: Add push_prompt, pop_prompt, handle_sigint to the
5263         exported functions. Update prototype for delete_signal_handler.
5264
5265         * target.h (struct target_ops): New target op: to_has_async_exec.
5266         (target_has_async): New macro.
5267
5268         * Makefile.in (infrun.o): Add dependency on event-loop.h.
5269         (remote.o): Ditto.
5270
5271 1999-06-28  Jim Blandy  <jimb@zwingli.cygnus.com>
5272
5273         * solib.c (clear_solib): Don't disable breakpoints if we're
5274         running an a.out executable (Solaris's SunOS emulation).
5275
5276 1999-06-25  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
5277
5278         * main.c (main): Remove intialization of command_loop_hook, it
5279         is now done in _initialize_event_loop().
5280         * event-loop.c (gdb_do_one_event): Make static.
5281         (start_event_loop): New function. Just start the event loop.
5282         * event-top.c (cli_command_loop): New name for start_event_loop().
5283         (gdb_readline2): Make non static.
5284         (_initialize_event_loop): Set command_loop_hook to cli_command_loop.
5285         * event-loop.h: Adjust exported functions accordingly.
5286
5287         * top.c (init_main): Move setting of async_command_editing_p from
5288         here.  
5289         * event-top.c (_initialize_event_loop): To here.
5290         (change_line_handler): Revert previous change. Add comment.
5291         (_initialize_event_loop): Revert previous change.
5292         (cli_command_loop): New name for start_event_loop().
5293         (start_event_loop): New function. This just starts up the event loop.
5294         (gdb_readline2): Make non static.
5295         (_initialize_event_loop): Set command_loop_hook to cli_command_loop.
5296
5297 1999-06-25  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
5298
5299         * event-top.c (change_line_handler): Get rid of the global
5300         variable input_fd, use `fileno (instream)' instead.
5301         (_initialize_event_loop): Ditto
5302         
5303         * event-loop.c (add_file_handler): New function. Wrapper for
5304         create_file_handler.
5305         (create_file_handler): Make static.  
5306         * event-top.c (_initialize_event_loop): Call add_file_handler,
5307         instead of create_file_handler.
5308         (change_line_handler): Ditto.  
5309         Remove poll.h include.
5310         * event-loop.h: Export add_file_handler instead of
5311         create_file_handler.    
5312
5313 1999-06-24  Stan Shebs  <shebs@andros.cygnus.com>
5314
5315         Declare Altos configuration obsolete.
5316         * configure.host, configure.tgt: Comment out Altos config.
5317         * Makefile.in: Comment out Altos-related actions.
5318         * altos-xdep.c, config/m68k/altos.mh, altos.mt, tm-altos.h,
5319         xm-altos.h: Comment out.
5320         * NEWS: Mention obsolete status.
5321
5322 1999-06-24  Jason Molenda  (jsm@bugshack.cygnus.com)
5323
5324         * Makefile.in: Add MAKEHTML and MAKEHTMLFLAGS; pass them down;
5325         recognize html and install-html targets.
5326         * gdbserver/Makefile.in: Add empty html and install-html targets.
5327         * nlm/Makefile.in: Ditto.
5328         * rdi-share/Makefile.in: Ditto.
5329
5330 1999-06-24  Jim Blandy  <jimb@zwingli.cygnus.com>
5331
5332         * ax-gdb.c (agent_command): Remove vestigial call to ax_reqs.
5333
5334 1999-06-24  James Ingham  <jingham@leda.cygnus.com>
5335
5336         * arm-tdep.c (arm_othernames): Change both gdb's register display
5337         AND the opcode disassembly register naming if the othernames
5338         command.  Fixes the gdb part of CR 101177.
5339
5340 1999-06-23  Stan Shebs  <shebs@andros.cygnus.com>
5341
5342         Declare Convex configuration obsolete.
5343         * configure.host, configure.tgt: Comment out Convex configs.
5344         * Makefile.in: Comment out Convex-related actions.
5345         * convex-xdep.c, convex-tdep.c, config/convex/*: Comment out.
5346         * NEWS: Mention obsolete status.
5347
5348 1999-06-23  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
5349
5350         * main.c: Turn on async by default by setting async_p to 1.
5351
5352 Wed Jun 23 15:44:39 1999  Andrew Cagney  <cagney@b1.cygnus.com>
5353
5354         From Jimmy Guo <guo@cup.hp.com>:
5355         * frame.h (enum lval_type): Delcare when an __STDC__ compiler.
5356         Reverts Mon Aug 11 16:08:52 1997 Fred Fish <fnf@cygnus.com>
5357         change.
5358         * utils.c (gdb_file_rewind, gdb_file_put): Fix.  A void function
5359         does not return a result.
5360
5361 Wed Jun 23 15:30:46 1999  Andrew Cagney  <cagney@b1.cygnus.com>
5362
5363         * remote.c (set_thread, remote_get_threadinfo,
5364         remote_threads_info, remote_current_thread, remote_get_threadlist,
5365         extended_remote_restart, get_offsets, remote_open_1,
5366         remote_detach, remote_resume, remote_wait, remote_fetch_registers,
5367         remote_store_registers, check_binary_download, remote_write_bytes,
5368         remote_read_bytes, remote_search, putpkt_binary, putpkt_binary,
5369         read_frame, compare_sections_command, remote_query,
5370         packet_command, remote_info_process): Use alloca to create space
5371         for arrays of size PBUFSIZ.
5372
5373 1999-06-22  Jason Molenda  (jsm@bugshack.cygnus.com)
5374
5375         * top.c: Update copyright years to include 1999.
5376
5377 1999-06-18  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
5378
5379         * top.c: Move include of event-loop.h, to avoid redefinition of
5380         NFDBITS.
5381
5382         * event-loop.c (create_file_handler): Do not do a realloc of the
5383         pollfd structure of the notifier, unless there is already one.
5384         Include <sys/types.h> for platforms that have no poll.
5385         
5386         * event-top.c: Fix prototype for _initialize_event_loop.
5387         (_initialize_event_loop): Do something only if running in async
5388         mode.
5389
5390 1999-06-17  Jim Blandy  <jimb@zwingli.cygnus.com>
5391
5392         Make the '/c' print format use a true character type.  This is
5393         more appropriate than builtin_type_char for languages other than
5394         C, and C tolerates it.
5395         * gdbtypes.c (builtin_type_true_char): New variable.
5396         (build_gdbtypes): Initialize it.
5397         * gdbtypes.h (builtin_type_true_char): New declaration.
5398         * printcmd.c (print_scalar_formatted): When the format is 'c',
5399         extract the value as a builtin_type_true_char.
5400
5401         * jv-exp.y (yylex): Say character literals are java_char_type, not
5402         builtin_type_char.  Java treats the latter like `byte'.
5403
5404 1999-06-17  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
5405
5406         * Makefile.in (top_h): Define.
5407         (event-loop.o): Add dependencies on top.h and defs.h.
5408         (event-top.o): Add dependency on terminal.h.
5409
5410         * event-loop.c: Get rid of #include <readline.h>.
5411
5412         * event-loop.h: Get rid of nested #include's. 
5413         * event-loop.c: Rearrange includes to accomodate change in
5414         event-loop.h. Include poll.h, not sys/poll.h.
5415         * event-top.c: Ditto.
5416         * main.c: Ditto.
5417         
5418 1999-06-16  David Taylor  <taylor@louisiana.cygnus.com>
5419
5420         * alpha-tdep.c (alpha_pop_frame): if frame->proc_desc
5421         is NULL, call find_proc_desc so we know how to restore
5422         the registers.
5423
5424 1999-06-15  Michael Snyder  <msnyder@cleaver.cygnus.com>
5425
5426         * event-top.c (start_event_loop): call get_prompt.
5427         (display_gdb_prompt): call get_prompt.
5428         (async_stop_sig): call get_prompt.
5429
5430 1999-06-15  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
5431
5432         * event-loop.c (delete_file_handler): When positioning prev_ptr,
5433         keep looping while the one after is not equal to file_ptr, instead
5434         of equal.
5435
5436 1999-06-14  Stan Shebs  <shebs@andros.cygnus.com>
5437
5438         * MAINTAINERS: Add Jimmy Guo and Jim Blandy as HP testsuite and
5439         SVR4 solib maintainers, respectively.
5440
5441 1999-06-14  Michael Snyder  <msnyder@cleaver.cygnus.com>
5442
5443         Add parameters to the gdb prompt.
5444         * top.c (prompt): Rename to gdb_prompt_string for clarity.
5445         (command_line_input): rename "prrompt" to prompt_arg for clarity.
5446         (gdb_readline): rename "prrompt" to prompt_arg for clarity.
5447         (read_command_lines): rename "prompt" to prompt_arg for clarity.
5448         (stop_sig): call get_prompt instead of reading prompt string directly.
5449         (command_loop): ditto.
5450         (gdb_prompt_escape): New variable.  Esc char for prompt parameters.
5451         (get_prompt_1): New function, workhorse for get_prompt.
5452         (get_prompt): Completely rewrite.  Add functionality for a 
5453         parameterized prompt, ie. the displayed prompt can change according
5454         to the value of one or more expressions given as parameters in the
5455         prompt string.
5456         (init_main): use renamed variable gdb_prompt_string.  Add new
5457         command "set prompt-escape-char" to set gdb_prompt_escape.
5458         
5459 Sun Jun 13 10:44:13 1999  Andrew Cagney  <cagney@b1.cygnus.com>
5460
5461         * defs.h (gdb_stdlog), main.c: Declare.
5462         * main.c (main): Initialize.
5463         * gdbarch.c: Write trace messages to the log file.
5464         * remote.c: Update any debug/log prints.
5465
5466 1999-06-11  Michael Snyder  <msnyder@cleaver.cygnus.com>
5467
5468         * remote.c (remote_wait): Clean up new thread handling.
5469         (record_currthread): Announce new threads.
5470
5471 1999-06-11  Jim Blandy  <jimb@zwingli.cygnus.com>
5472
5473         * partial-stab.h (case N_LSYM, 'T' descriptor): Don't create
5474         partial symbol table entries for nameless enums, even if the type
5475         name is " ".  (We still pick up the enum elements, though.)
5476
5477         * partial-stab.h: Remove #if 0'd sections, dating back to 1992,
5478         which set a variable which exists nowhere else in the source.
5479         Please examine your test suite output carefully, and report any
5480         problems to me.
5481
5482 1999-06-11  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
5483
5484         * event-top.c (setup_event_loop): Change name to start_event_loop.
5485         Move the intialization of event-loop variables to
5486         _initialize_event_loop.
5487         (_initialize_event_loop): New function. Called at init time, to
5488         set up important event-loop variables.
5489
5490         * event-loop.h: setup_event_loop is now start_event_loop.
5491         * main.c (main): Ditto.
5492
5493 Fri Jun 11 18:34:33 1999  Andrew Cagney  <cagney@b1.cygnus.com>
5494
5495         * defs.h (gdb_file_rewind_ftype, gdb_file_rewind,
5496         set_gdb_file_rewind, gdb_file_put_ftype, gdb_file_put,
5497         set_gdb_file_put): Declare.
5498         
5499         * utils.c (gdb_file_new): Initialize ``rewind'' and ``put''.
5500         (struct gdb_file): Add to_rewind and to_put.
5501         (null_file_put, null_file_rewind, gdb_file_put, gdb_file_rewind,
5502         set_gdb_file_put, set_gdb_file_rewind): New functions.
5503         (tui_file_rewind, tui_file_put): New functions.
5504         (tui_file_new): Add rewind and put.
5505
5506 Fri Jun 11 15:10:32 1999  Andrew Cagney  <cagney@b1.cygnus.com>
5507
5508         * d10v-tdep.c (d10v_push_arguments): Fix order of arguments passed
5509         to store_address.
5510
5511 Fri Jun 11 10:31:29 1999  Andrew Cagney  <cagney@b1.cygnus.com>
5512
5513         * remote.c (tty_input): Change array to pointer.
5514         (_initialize_remote): Call build_remote_gdbarch_data.
5515         (build_remote_gdbarch_data): New function. Allocate space for
5516         tty_input.
5517         (readsocket, readtty): Delete extern declaration of tty_input.
5518
5519 1999-06-10  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
5520
5521         * event-top.c (gdb_readline2): Call the command handling function
5522         via the input_handler pointer.
5523         (change_line_handler): When turning off editing, set input_handler
5524         as well.
5525
5526         * utils.c (prompt_for_continue): If running asynchronously, call
5527         async_request_quit, instead of request_quit.
5528
5529         * tracepoint.c (read_actions): If running asynchronously, set the
5530         signal handler for STOP_SIGNAL to handle_stop_sig.
5531
5532         * top.h: (source_line_number, source_file_name, source_error,
5533         source_pre_error, history_expansion_p, server_command): export for
5534         use of event-top.c.
5535
5536         * event-top.c: Include top.h and terminal.h.
5537         (instream): Remove extern declaration.
5538         (handle_sigint, handle_sigquit, handle_sighup, handle_sigfpe,
5539         handle_sigwinch, async_do_nothing, async_disconnect,
5540         async_float_handler, async_stop_sig): Make static.
5541         (async_request_quit, async_do_nothing, async_disconnect,
5542         async_float_handler, async_stop_sig): Add gdb_glient_data
5543         argument.
5544         (handle_stop_sig): New function.
5545         (sigtstp_token): New variable.
5546         (sigint_token, sigquit_token, sigfpe_token, sigwinch_token):
5547         Change their type tp PTR.
5548         (mark_async_signal_handler_wrapper): New function.
5549         (setup_event_loop): Initialize all the variables used by readline
5550         only if not already done while reading the .gdbinit file.  Display
5551         the initial gdb prompt, if .gdbinit took care of setting things up
5552         for readline.
5553         (change_line_handler): When turning on the use of readline,
5554         initialize input_handler as well.
5555         (command_line_handler): Set up the signal handler for STOP_SIGNAL
5556         to be handle_stop_sig.
5557         (async_init_signals): Remove coercion of signal handlers in calls
5558         to create_async_signal_handler.  Initialize token for stop signal.
5559         (handle_sigint): Call async_request_quit using one argument.
5560         (handle_sigint, handle_sigquit, handle_sighup, handle_sigfpe,
5561         handle_sigwinch): Call mark_async_signal_handler_wrapper instead
5562         of mark_async_signal_handler.
5563
5564         * event-loop.h: Add extern declarations for handle_stop_sig,
5565         async_command_editing_p, async_annotation_suffix,
5566         new_async_prompt, the_prompts.
5567
5568         * top.c (command_line_input): Set the signal handler to be
5569         handle_stop_sig, in case gdb is running asynchronously.
5570         (get_prompt): Return the top of the prompt stack if running
5571         asynchronously.
5572         (set_prompt): Set the top of the prompt stack if running
5573         asynchronously.
5574         (init_main): Move ``extern'' vars from here to event-loop.h.
5575         
5576 1999-06-10  Michael Snyder  <msnyder@cleaver.cygnus.com>
5577
5578         * values.c (value_from_string): new function.  Make a value_ptr
5579         from a string, with storage in local GDB memory (not in inferior).
5580         * value.h (value_from_string): add prototype.
5581         * remote.c (remote_cisco_ops): New remote target, "target cisco".
5582         (init_remote_cisco_ops): New function, initialize new target.
5583         (remote_cisco_mourn, remote_cisco_wait, remote_cisco_open, 
5584         remote_cisco_close): New functions, implement new target cisco.
5585         (minitelnet, readtty, readsocket) New functions, implement the
5586         I/O pass-through mode for target cisco.
5587         (remote_wait): Detect special enhanced version of the 'S' packet
5588         for target cisco.  
5589         (remote_cisco_expand): Perform Cisco variant of RLL decoding.
5590
5591 1999-06-10  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
5592
5593         * event-loop.c (gdb_wait_for_event): Initialize num_found to 0.
5594
5595         * top.c (print_prompt): Delete this function.
5596
5597         From: Andrew Cagney  <cagney@b1.cygnus.com>
5598
5599         * event-top.c (async_hook): Delete extern declaration.
5600
5601         * defs.h: Replace ``async_hook'' with ``async_p''.
5602         * top.c (gdb_init, init_main, init_main, init_main, init_main):
5603         Replace ``async_hook'' with ``async_p''.
5604
5605         * main.c: Rename ``async'' to ``async_p''.
5606         (main): Add --noasync option.
5607         (main): Hook in the asynchronous event-loop based CLI using
5608         command_loop_hook instead of async_hook. Delete call to
5609         async_hook().
5610
5611 Thu Jun 10 21:14:16 1999  Andrew Cagney  <cagney@b1.cygnus.com>
5612
5613         * mn10300-tdep.c (mn10300_store_return_value,
5614         mn10300_extract_struct_value_address,
5615         mn10300_extract_return_value), config/mn10300/tm-mn10300.h: New
5616         functions.
5617         * config/mn10300/tm-mn10300.h (EXTRACT_STRUCT_VALUE_ADDRESS,
5618         STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE): Update.
5619         (TARGET_MN10300): Delete macro.  Not used.
5620
5621 Thu Jun 10 20:04:02 1999  Andrew Cagney  <cagney@b1.cygnus.com>
5622
5623         * mn10300-tdep.c (mn10300_register_names): Make static.
5624         (STORE_STRUCT_RETURN): Do not modify SP.
5625
5626         * config/mn10300/tm-mn10300.h(mn10300_register_name),
5627         mn10300-tdep.c : New function.
5628         * config/mn10300/tm-mn10300.h (REGISTER_NAME): Update.
5629         * config/mn10300/tm-mn10300.h (mn10300_saved_pc_after_call),
5630         mn10300-tdep.c: New function.
5631         * config/mn10300/tm-mn10300.h (SAVED_PC_AFTER_CALL): Update.
5632
5633 1999-06-10  Keith Seitz  <keiths@cygnus.com>
5634
5635         * mcore-rom.c (picobug_dumpregs): Return a value. Any value, it
5636         doesn't matter.
5637         * mcore-tdep.c (mcore_analyze_prologue): Set NO_MORE_FRAMES
5638         if the start of the function is the entry point.
5639         (mcore_analyze_prologue): rotli takes an immediate, not an
5640         offset immediate.
5641         (mcore_push_arguments): Fix compiler warning.
5642
5643 1999-06-09  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
5644
5645         * rs6000-tdep.c (skip_prologue): Don't mistake a branch for a     
5646         subroutine call.        
5647
5648 1999-06-08  Michael Snyder  <msnyder@cleaver.cygnus.com>
5649
5650         * remote.c (remote_wait): Add 'N' response packet, which is a
5651         stop with signal number plus section offsets for .text, .data and
5652         .bss.  This is used by Cisco to indicate relocation offsets.
5653         (remote_cisco_section_offsets, remote_cisco_objfile_relocate):
5654         new files to support 'N' packet.  
5655         (remote_info_process): New function.  Implements the 
5656         "info remote-process" command, by means of which the remote target 
5657         can report anything it wants to about the remote process/app being 
5658         debugged.  
5659         (_initialize_remote): add info remote-proc command.  
5660         (remote_threads_info): New function for "info threads" command.  
5661         Attempts to use new query "qfThreadInfo" instead of the old 
5662         undocumented query.
5663         * exec.c (exec_set_section_offsets) new files to support 'N' packet.
5664
5665 Tue Jun  8 13:33:42 1999  Andrew Cagney  <cagney@amy.cygnus.com>
5666
5667         * inferior.h (generic_target_read_pc, generic_target_write_pc,
5668         generic_target_read_fp, generic_target_write_fp,
5669         generic_target_read_sp, generic_target_write_sp): Declare new
5670         functions.
5671         * findvar.c (generic_target_read_pc, generic_target_write_pc,
5672         generic_target_read_fp, generic_target_write_fp,
5673         generic_target_read_sp, generic_target_write_sp): New functions.
5674         (TARGET_READ_PC, TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP,
5675         TARGET_READ_SP, TARGET_WRITE_SP): Default to corresponding generic
5676         function.
5677         (write_pc_pid, write_pc_pid, read_sp, write_sp, read_fp,
5678         write_fp): Simplify.
5679
5680         * gdbarch.c (verify_gdbarch): Always verify TARGET_PTR_BIT,
5681         TARGET_SHORT_BIT, TARGET_INT_BIT, TARGET_LONG_BIT,
5682         TARGET_LONG_LONG_BIT, TARGET_FLOAT_BIT, TARGET_DOUBLE_BIT,
5683         TARGET_LONG_DOUBLE_BIT, TARGET_READ_PC, TARGET_WRITE_PC,
5684         TARGET_READ_FP, TARGET_WRITE_FP, TARGET_READ_SP, TARGET_WRITE_SP,
5685         USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY_BREAKPOINT_OFFSET_P,
5686         CALL_DUMMY_P, CALL_DUMMY_STACK_ADJUST_P, GET_SAVED_REGISTER,
5687         REGISTER_CONVERTIBLE, PUSH_ARGUMENTS, PUSH_RETURN_ADDRESS,
5688         FRAME_CHAIN_VALID.
5689         (GET_GDBARCH, SET_GDBARCH): Delete macros.  Implement functions
5690         directly.
5691         * gdbarch.h, gdbarch.c: Call fatal() instead of abort().  Identify
5692         the function / macro with a problem.  Always verify a architecture
5693         attribute before returning it.
5694         * gdbarch.h, gdbarch.c (generic_register_convertible_not): New
5695         function.
5696
5697         * mips-tdep.c (mips_push_return_address): New function.
5698         * config/mips/tm-mips.h (PUSH_RETURN_ADDRESS): Define.
5699
5700         * mips-tdep.c (mips_gdbarch_init): Initialize short_bit,
5701         double_bit, long_double_bit, read_pc, write_pc, read_fp, write_fp,
5702         read_sp, write_sp, frame_chain_valid, get_saved_register,
5703         push_arguments, push_return_address, register_convertible,
5704         call_dummy_p, use_generic_dummy_frames,
5705         call_dummy_breakpoint_offset_p, call_dummy_stack_adjust_p,
5706         call_dummy_words and sizeof_call_dummy_words.
5707         * config/mips/tm-mips.h: Don't define CALL_DUMMY when multi-arch.
5708
5709 1999-06-07  Keith Seitz  <keiths@cygnus.com>
5710
5711         * v850ice.c (init_hidden_window): Do not rely on the existence of
5712         a gui for window creation. Return boolean status.
5713         (v850ice_open): Use boolean status of init_hidden_window.
5714         Allow any ICE execution command to run under CLI. Maybe one
5715         day gdb will use a real event loop and allow this code to run.
5716         * configure.tgt: Configure the v850 ice for all cygwin-hosted
5717         toolchains.
5718
5719 Mon Jun  7 23:37:26 1999  Andrew Cagney  <cagney@amy.cygnus.com>
5720
5721         * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Delete.
5722         * mips-tdep.c (mips_init_extra_frame_info): Allocate saved_regs.
5723         (temp_saved_regs): Replace struct with a simple pointer.
5724         (set_reg_offset, mips32_heuristic_proc_desc, heuristic_proc_desc,
5725         mips_init_extra_frame_info): Update.
5726
5727 Mon Jun  7 21:40:12 1999  Andrew Cagney  <cagney@amy.cygnus.com>
5728
5729         * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Move elements from here.
5730         * mips-tdep.c (struct frame_extra_info): To here.
5731
5732         * mips-tdep.c (mips_print_extra_frame_info, mips_find_saved_regs,
5733         mips_init_extra_frame_info, mips_pop_frame): Update
5734         (mips_init_extra_frame_info): Allocate space for the extra info.
5735
5736 Mon Jun  7 21:08:50 1999  Andrew Cagney  <cagney@amy.cygnus.com>
5737
5738         * config/mips/tm-mips.h (mips_init_extra_frame_info), mips-tdep.c:
5739         Rename init_extra_frame_info.  Add argument ``fromleaf''.
5740         mips-tdep.c (mips_gdbarch_init): Add mips_init_extra_frame_info.
5741
5742         * config/mips/tm-mips.h (mips_print_extra_frame_info),
5743         mips-tdep.c: New function.
5744         (PRINT_EXTRA_FRAME_INFO): Update definition.
5745
5746 Mon Jun  7 20:11:07 1999  Andrew Cagney  <cagney@amy.cygnus.com>
5747
5748         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
5749         config/mips/tm-tx19.h, config/mips/tm-tx19l.h,
5750         config/mips/tm-tx39.h, config/mips/tm-tx39l.h: Rename macro
5751         REGISTER_NAMES to MIPS_REGISTER_NAMES.
5752
5753         * config/mips/tm-mips.h (REGISTER_NAME): Define.
5754         * mips-tdep.c (mips_processor_reg_names): New static variable.
5755         (mips_register_name): New function.
5756         (mips_set_processor_type): Update mips_processor_reg_names.
5757         (mips_generic_reg_names): Initialize using MIPS_REGISTER_NAMES.
5758         (mips_gdbarch_init): Add mips_register_name.
5759
5760 Sun Jun  6 11:09:19 1999  Andrew Cagney  <cagney@b1.cygnus.com>
5761
5762         * remote.c (PBUFSIZ): Re-define so that value is computed at
5763         run-time.
5764         (MAXBUFBYTES): Re-define as a macro function.
5765         * gdbarch.h, gdbarch.c: Add multi-arch support for REGISTER_BYTES.
5766         * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
5767
5768 1999-06-05  Fernando Nasser  <fnasser@totem.to.cygnus.com>
5769
5770         * symtab.c (decode_line_1): Accept filenames with spaces in
5771         'linespecs' when enclosed in double quotation marks and handle
5772         drive specification is DOS format (D:).
5773
5774 1999-06-04  Jim Blandy  <jimb@zwingli.cygnus.com>
5775
5776         * parse.c: Don't include <ctype.h> twice.
5777
5778 1999-06-04  David Taylor  <taylor@louisiana.cygnus.com>
5779
5780         Sat May 15 12:16:09 1999  Per Bothner  <bothner@deneb.cygnus.com>
5781
5782         * eval.c (evaluate_subexp_standard):  Remove Gilmore rant.
5783         (Of course C has "expected types", at least if you allow
5784         brace-initializer expressions - as in Gcc.)
5785         Remove NULLing out expect_type.  Do pass NULL_TYPE in place
5786         the incoming expect_type where appropriate.
5787
5788 Fri Jun  4 10:56:23 1999  Jeffrey A Law  (law@cygnus.com)
5789
5790         * hppa-tdep.c (hppa_fix_call_dummy): Make it work for GCC compiled
5791         executables without end.o.  Clean up lots of mis-guided comments.
5792
5793 Fri Jun  4 17:10:36 1999  Andrew Cagney  <cagney@b1.cygnus.com>
5794
5795         * parser-defs.h (std_regs): Replace array with pointer.
5796         * parse.c (build_parse): Build the std_regs table according to the
5797         standard registers available.
5798         (_initialize_parse): Register std_regs and num_std_regs as
5799         architecture specific.
5800         * gdbarch.h, gdbarch.c: Add multi-arch support for SP_REGNUM,
5801         FP_REGNUM, PC_REGNUM, NUM_REGS, REGISTER_NAME.
5802         * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
5803         
5804 1999-06-03  Michael Snyder  <msnyder@cleaver.cygnus.com>
5805
5806         * thread.c: eliminate the target_thread_vector (functionality
5807         moved into the standard target vector).
5808         * gdbthread.h: eliminate target_thread_vector.  Move all related
5809         defines into remote.c, since they are no longer shared with thread.c.
5810         * remote.c: eliminate the target_thread_vector.
5811         (remote_find_new_threads): change return type to void, consistent
5812         with the target vector table.  (cont_thread): rename continue_thread.
5813         (record_currthread): remove dead code.  (remote_thread_alive):
5814         clean up and simplify.  (threadref etc.): move definitions to here
5815         from gdbthread.h.  
5816
5817 1999-06-02  Jason Molenda  (jsm@bugshack.cygnus.com)
5818
5819         * inftarg.c (child_create_inferior): Remove dead HPUX specific code
5820         which tries to find csh.
5821         * fork-child.c: Remove DEBUGGING predefine and conditionalized
5822         printfs.
5823         (fork_inferior): Remove dead HPUX specific code which assumes shell
5824         is csh.
5825
5826         * hppa-tdep.c: Remove DEBUGGING and #if 0 debugging printfs.
5827         * parse.c: Ditto.
5828         * somread.c: Ditto.
5829
5830         * gdbarch.h: Forward decl of struct value.
5831
5832 Thu Jun  3 10:12:38 1999  Andrew Cagney  <cagney@b1.cygnus.com>
5833
5834         * d10v-tdep.c (do_d10v_pop_frame): Rename d10v_pop_frame.  Make
5835         static.
5836         * d10v-tdep.c (d10v_pop_frame), config/d10v/tm-d10v.h: New
5837         function.  Call generic_pop_current_frame.
5838         * config/d10v/tm-d10v.h (POP_FRAME): Update.
5839         * gdbarch.h, gdbarch.c (frame_num_args_unknown): New function.
5840         * gdbarch.h, gdbarch.c: Add multi-arch support for POP_FRAME,
5841         SKIP_PROLOGUE, INNER_THAN, DECR_PC_AFTER_BREAK,
5842         FUNCTION_START_OFFSET, REMOTE_TRANSLATE_XFER_ADDRESS, FRAME_CHAIN,
5843         FRAME_CHAIN_VALID, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS,
5844         FRAME_LOCALS_ADDRESS, FRAME_ARGS_SKIP,
5845         FRAMELESS_FUNCTION_INVOCATION, REGISTER_BYTE, REGISTER_RAW_SIZE,
5846         REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, SAVED_PC_AFTER_CALL,
5847         FRAME_NUM_ARGS, MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5848         REGISTER_SIZE.
5849         * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
5850         * config/d10v/tm-d10v.h (DMEM_START, IMEM_START, STACK_START,
5851         ARG1_REGNUM, ARGN_REGNUM, RET1_REGNUM): Move definitions from
5852         here.
5853         * d10v-tdep.c: To here.
5854         * config/d10v/tm-d10v.h (struct type): Move declaration from here.
5855         * gdbarch.h: To here.
5856         * config/d10v/tm-d10v.h (struct frame_info, struct
5857         frame_saved_regs, struct type): Delete declarations.
5858         
5859 1999-06-02  Robert Hoehne  <robert.hoehne@gmx.net>
5860
5861         * go32-nat.c: go32_terminal_init, go32_terminal_inferior and
5862         go32_terminal_ours are new functions to save/restore the inferior`s
5863         stdin/stdout filemodes
5864
5865 1999-06-02  Stan Shebs  <shebs@andros.cygnus.com>
5866
5867         * MAINTAINERS: Add Mark Kettenis, Jeff Law, and Philippe De Muyter
5868         as maintainers for Hurd, HP/UX, and COFF, respectively.
5869
5870 1999-06-02  Mark Kettenis  <kettenis@gnu.org>
5871
5872         * gnu-nat.c (inf_continue): New function.
5873         (struct inf): Use `unsigned int' instead of `int' for bit-fields.
5874         Add new bit-field named `nomsg'.
5875         (inf_validate_procinfo): Renamed from inf_validate_stopped, all
5876         callers changed.  Also update the `nomsg' and `traced' fields of
5877         INF.
5878         (make_inf): Initialize INF->nomsg.
5879         (inf_cleanup): Reset INF->nomsg.
5880         (inf_detach): Call `inf_validate_procinfo'.  Call `inf_continue'
5881         instead of `inf_signal' if the inferior does not have a message
5882         port.
5883         (gnu_resume): Likewise.
5884         (gnu_create_inferior): Reset INF->nomsg in `attach_to_child'.
5885         Call `inf_validate_procinfo' after returning from `fork_inferior'.
5886         (gnu_attach): Update signal thread and tracing state.
5887
5888         * config/i386/tm-i386gnu.h: Include "i386/tm-i386.h" instead of
5889         "i386/tm-i386v.h".
5890         (STACK_END_ADDR): Remove.
5891         (SIGCONTEXT_PC_OFFSET): New define.
5892         Include "tm-sysv4.h".
5893
5894 1999-06-02  J.T. Conklin  <jtc@redback.com>
5895
5896         * config/tm-vxworks.h: New file, header for definitions common to
5897         all vxWorks targets.
5898         * config/a29k/tm-vx29k.h, config/i960/tm-vx960.h,
5899         config/m68k/tm-vx68.h, config/mips/tm-vxmips.h,
5900         config/sparc/tm-vxsparc.h: Include tm-vxworks.h.
5901
5902 Wed Jun  2 17:37:03 1999  Jeffrey A Law  (law@cygnus.com)
5903
5904         * config/pa/tm-hppa.h (IMPORT_SHLIB): New unwind stub type.
5905
5906 1999-06-02  Christopher Faylor <cgf@cygnus.com>
5907
5908         * configure.tgt: Alphabetically reorder some targets.
5909
5910 1999-06-02  Keith Seitz  <keiths@cygnus.com>
5911
5912         * v850ice.c (v850ice_xfer_memory): Insert lost "break".
5913
5914 1999-06-02  Jim Blandy  <jimb@zwingli.cygnus.com>
5915
5916         * rs6000-tdep.c (variants): Fix description of 750 register set.
5917         (Thanks to J. T. Conklin.)
5918
5919 Wed Jun  2 16:10:08 1999  Andrew Cagney  <cagney@b1.cygnus.com>
5920
5921         * gdbarch.h, gdbarch.c: Add multi-arch support for
5922         STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
5923         EXTRACT_STRUCT_VALUE_ADDRESS, USE_STRUCT_CONVENTION,
5924         FRAME_INIT_SAVED_REGS and INIT_EXTRA_FRAME_INFO.
5925         * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
5926
5927         * config/d10v/tm-d10v.h (FRAME_INIT_SAVED_REGS): Replace
5928         FRAME_FIND_SAVED_REGS.
5929         (d10v_frame_init_saved_regs): Replace d10v_frame_find_saved_regs.
5930         * d10v-tdep.c (d10v_pop_frame, d10v_frame_chain,
5931         d10v_frame_init_saved_regs): Update.
5932         * gdbarch.h: Disallow FRAME_FIND_SAVED_REGS when multi-arch.
5933
5934         * gdbarch.h, gdbarch.c: Add multi-arch support for
5935         D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
5936         D10V_CONVERT_DADDR_TO_RAW and D10V_CONVERT_IADDR_TO_RAW.
5937         * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
5938
5939         * config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Delete.
5940         * d10v-tdep.c (struct frame_extra_info): Define.
5941         (d10v_init_extra_frame_info, d10v_pop_frame, d10v_frame_chain,
5942         d10v_frame_find_saved_regs): Update.
5943         * gdbarch.h: Disallow EXTRA_FRAME_INFO when multi-arch.
5944
5945 Tue Jun  1 13:36:31 1999  Philippe De Muyter  <phdm@macqel.be>
5946
5947         * config/m68k/tm-delta68.h (FRAME_NUM_ARGS): Macro prototype fixed.
5948         * config/m68k/tm-news.h, config/ns32k/tm-merlin.h: Ditto.
5949         * config/ns32k/tm-umax.h (FRAME_NUM_ARGS): Old macro definition
5950         removed; new macro prototype fixed.
5951
5952 Wed Jun  2 11:18:37 1999  Andrew Cagney  <cagney@b1.cygnus.com>
5953
5954         * gdbarch.h, gdbarch.c: Add multi-arch support for
5955         EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS, PUSH_DUMMY_FRAME,
5956         PUSH_RETURN_ADDRESS, POP_FRAME, FRAME_FIND_SAVED_REGS.
5957         * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
5958
5959         * gdbarch.h, gdbarch.c: Add multi-arch support for
5960         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5961         REGISTER_CONVERT_TO_RAW.
5962         * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
5963
5964         * defs.h (REGISTER_NAME): Move compatibility definition from here.
5965         * gdbarch.h: To here.
5966
5967         * frame.h, blockframe.c (generic_fix_call_dummy): New
5968         stub function.
5969         * gdbarch.h, gdbarch.c: Add multi-arch support for FIX_CALL_DUMMY.
5970         * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
5971
5972 Tue Jun  1 20:06:38 1999  Andrew Cagney  <cagney@b1.cygnus.com>
5973
5974         * d10v-tdep.c (d10v_gdbarch_init): Set get_saved_register.
5975         * config/d10v/tm-d10v.h: Update.
5976         
5977 Tue Jun  1 19:50:05 1999  Andrew Cagney  <cagney@b1.cygnus.com>
5978
5979         * gdbarch.h, gdbarch.c: Add multi-arch support for TARGET_READ_PC,
5980         TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP, TARGET_READ_SP
5981         and TARGET_WRITE_SP.
5982         * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
5983
5984 Tue Jun  1 19:19:02 1999  Andrew Cagney  <cagney@b1.cygnus.com>
5985
5986         * gdbarch.c (default_gdbarch): Set field GET_SAVED_REGISTER to
5987         generic_get_saved_register.
5988         * gdbarch.c: Change update dispatch functions so that they check
5989         for a NULL function pointer.
5990
5991 Tue Jun  1 19:19:02 1999  Andrew Cagney  <cagney@b1.cygnus.com>
5992
5993         * gdbarch.h, gdbarch.c: Add multi-arch support for TARGET_INT_BIT,
5994         TARGET_CHAR_BIT, TARGET_SHORT_BIT, TARGET_FLOAT_BIT,
5995         TARGET_DOUBLE_BIT and TARGET_LONG_DOUBLE_BIT.
5996         * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
5997         
5998 Tue Jun  1 18:47:54 1999  Andrew Cagney  <cagney@b1.cygnus.com>
5999
6000         * parse.c (build_parse): New function.  Initialize
6001         msym_text_symbol_type, msym_data_symbol_type and
6002         msym_unknown_symbol_type.
6003         (_initialize_parse): Call build_parse.
6004         (_initialize_parse): Register variables msym_text_symbol_type,
6005         msym_data_symbol_type as msym_unknown_symbol_type as
6006         per-architecture.
6007
6008 Tue Jun  1 11:30:09 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6009
6010         * d10v-tdep.c (_initialize_d10v_tdep): Register d10v as an
6011         architecture.
6012         (d10v_gdbarch_init): New function.
6013         * confg/d10v/tm-d10v.h (GDB_MULTI_ARCH): Define.
6014
6015 Tue Jun  1 10:45:24 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6016
6017         * config/d10v/tm-d10v.h (REGISTER_CONVERTIBLE,
6018         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Convert
6019         macros into functions.
6020         * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_register_convertable,
6021         d10v_register_convert_to_virtual, d10v_register_convert_to_raw):
6022         The new functions.
6023
6024 1999-05-31  Fernando Nasser  <fnasser@totem.to.cygnus.com>
6025
6026         * stack.c (print_args_stub): Add missing stream parameter.
6027
6028 Mon May 31 15:50:08 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6029
6030         Fri May 28 16:51:00 1999  Martin Dorey  <martin.dorey@madge.com>:
6031         * valops.c, value.h (default_push_arguments): Fix order of
6032         parameters to match PUSH_ARGUMENTS arguments.
6033
6034 Thu May 27 11:42:55 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6035
6036         * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS): Return 0.
6037
6038         * valops.c (value_assign): Delete redundant test of
6039         REGISTER_CONVERTIBLE.
6040
6041 Thu May 27 11:33:57 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6042
6043         * config/w65/tm-w65.h, config/tic80/tm-tic80.h, config/sh/tm-sh.h,
6044         config/i386/tm-i386m3.h, config/i386/tm-go32.h,
6045         config/i386/tm-cygwin.h, config/h8500/tm-h8500.h,
6046         config/d30v/tm-d30v.h, config/d10v/tm-d10v.h: Delete definition of
6047         macro NAMES_HAVE_UNDERSCORE.
6048
6049 Thu May 27 09:31:06 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6050
6051         * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS,
6052         EXTRACT_STRUCT_VALUE_ADDRESS_P): Provide default definitions.
6053         * values.c (value_being_returned): Use
6054         EXTRACT_STRUCT_VALUE_ADDRESS when EXTRACT_STRUCT_VALUE_ADDRESS_P.
6055
6056 Wed May 26 13:51:25 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6057
6058         * utils.c (tui_file_new, tui_file_delete, tui_fileopen): New
6059         functions.
6060         (tui_file_isatty): Rename gdb_file_isatty.
6061         (gdb_file_init_astring): Use tui_file_new to create stream.
6062         (gdb_file_get_strbuf, gdb_file_adjust_strbuf): Call gdb_file_data
6063         to access the tui_stream.
6064         (tui_file_flush): Rename gdb_flush. Call gdb_file_data to access
6065         the tui_stream. Pass FILE and not STREAM down.
6066         
6067         * utils.c (struct stdio_file, stdio_file_flush, stdio_file_fputs,
6068         stdio_file_isatty, stdio_file_delete, stdio_file_new,
6069         stdio_fileopen): Define type and functions.  Implement a simple
6070         STDIO based gdb_file.
6071         (struct gdb_file, gdb_file_new, gdb_file_delete, null_file_isatty,
6072         null_file_flush, null_file_fputs, null_file_delete, gdb_file_data,
6073         set_gdb_file_flush, set_gdb_file_isatty, set_gdb_file_fputs,
6074         set_gdb_file_data, fputs_unfiltered, gdb_flush, gdb_file_isatty):
6075         Define type and functions.  Implement virtual functions for
6076         gdb_file.
6077
6078         * defs.h (struct gdb_file): Declare.
6079         (GDB_FILE): Change type to struct gdb_file. Deprecate.
6080         (gdb_file_flush_ftype, gdb_file_fputs_ftype,
6081         gdb_file_isatty_ftype, gdb_file_delete_ftype): Add function type
6082         declarations.
6083         
6084         * defs.h (set_gdb_file_flush, set_gdb_file_fputs,
6085         set_gdb_file_isatty, set_gdb_file_data, gdb_file_new,
6086         gdb_file_delete, gdb_file_data, stdio_fileopen, tui_fileopen): Add
6087         function declarations.
6088         (gdb_fopen): Re-implement. Call stdio_file_new.
6089         (gdb_fclose): Re-implement. Call gdb_file_delete.
6090         
6091         * main.c (tui_file_fputs): Rename fputs_unfiltered.  Use
6092         gdb_file_data to gain access to the tui_stream data.  Use FILE
6093         instead of STREAM where applicable.
6094         (main): Create gdb_stdout and gdb_stderr using tui_fileopen.
6095         
6096         * defs.h (struct tui_stream): Add field ts_magic.
6097         * utils.c (tui_file_magic): Local variable.
6098         (tui_file_new): Set field ts_magic.
6099         (tui_file_delete, tui_file_isatty, gdb_file_init_astring,
6100         gdb_file_get_strbuf, gdb_file_adjust_strbuf, tui_file_flush):
6101         Verify ts_magic.
6102
6103 1999-05-25  Jim Blandy  <jimb@zwingli.cygnus.com>
6104
6105         * breakpoint.c (insert_breakpoints, remove_breakpoint,
6106         breakpoint_1): Add a 'default' case, which prints a warning
6107         message, to remove EGCS warnings.
6108
6109 1999-05-25  Fernando Nasser  <fnasser@totem.to.cygnus.com>
6110
6111         * utils.c (gdb_file_adjust_strbuf): Take into account the
6112         possibility that the buffer has not been allocated yet.
6113
6114 Tue May 25 16:05:11 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6115
6116         * gdbarch.h (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6117         REGISTER_CONVERT_TO_RAW): Provide default definition.
6118
6119         * valops.c (value_assign), infcmd.c (do_registers_info), findvar.c
6120         (value_from_register, value_of_register): Remove #ifdef
6121         REGISTER_CONVERTIBLE.  Assume REGISTER_CONVERTIBLE etc defined.
6122
6123 1999-05-25  Keith Seitz  <keiths@cygnus.com>
6124
6125         * config/mcore/tm-mcore.h (FRAME_NUM_ARGS): Re-write definition of
6126         FRAME_NUM_ARGS so that it returns NUM_ARGS as a result instead of
6127         setting a variable as a side effect.
6128
6129 Tue May 25 16:18:25 1999  Andrew Cagney  <cagney@amy.cygnus.com>
6130
6131         * remote-d10v.c (d10v_eva_prepare_to_trace,
6132         d10v_eva_get_trace_data), remote-sim.c (_initialize_remote_sim):
6133         Add declaraton.  Make static.
6134
6135         * remote-d10v.c (_initialize_remote_d10v), d10v-tdep.c
6136         (_initialize_d10v_tdep): Add declaration.
6137         * config/d10v/tm-d10v.h (d10v_frame_chain): Add declaration.
6138
6139 Tue May 25 15:20:58 1999  Andrew Cagney  <cagney@amy.cygnus.com>
6140
6141         * main.c (init_proc, proc_remove_foreign): Delete function.
6142         * inftarg.c (child_mourn_inferior): Update. Delete call to
6143         proc_remove_foreign().
6144         * top.c (gdb_init): Update. Delete call to init_proc().
6145
6146         * utils.c (pollquit, fmthex, hexlate): Delete function.
6147
6148 Tue May 25 13:01:43 1999  Andrew Cagney  <cagney@amy.cygnus.com>
6149
6150         * main.c (gdb_init): Move declaration from here.
6151         * top.h: To here.
6152         
6153         * defs.h (init_page_info): Add declaration.
6154
6155         * top.c (initialize_utils): Move declaration from here.
6156         * defs.h: To here.
6157
6158         * infcmd.c (target_map_name_to_register): Move declaration from
6159         here.
6160         * parser-defs.h: To here.
6161
6162         * c-typeprint.c (cp_type_print_method_args), target.c
6163         (nosupport_runtime, normal_target_post_startup_inferior): Add
6164         declaration.  Make static.
6165
6166 Tue May 25 13:53:23 1999  Andrew Cagney  <cagney@amy.cygnus.com>
6167
6168         * main.c: Include "event-loop.h".
6169         * Makefile.in (main.o): Add dependency.
6170
6171         * top.h (setup_event_loop, async_init_signals), top.c
6172         (set_async_editing_command, set_async_annotation_level,
6173         set_async_prompt), event-loop.c (display_gdb_prompt): Move
6174         declarations from here.
6175         * event-loop.h: To here.
6176         
6177         * event-loop.h (delete_async_signal_handler): Add function
6178         declaration.
6179
6180         * event-top.c (change_annotation_level, command_handler): Add
6181         declaration.  Make static.
6182
6183 Tue May 25 12:44:58 1999  Andrew Cagney  <cagney@amy.cygnus.com>
6184
6185         * tracepoint.c (free_actions_list, add_register): Add declaration.
6186         Make static.
6187         (free_actions_list_cleanup_wrapper): New function.  Wraps
6188         free_actions_list for make_cleanup.
6189         (trace_start_command): Pass free_actions_list_cleanup_wrapper
6190         instead of free_actions_list to make_cleanup.
6191         (_initialize_tracepoint): Add extern declaration.
6192
6193 Tue May 25 12:23:39 1999  Andrew Cagney  <cagney@amy.cygnus.com>
6194
6195         * jv-typeprint.c (java_type_print_base, jv-valprint.c
6196         (java_print_value_fields): Add static declaration.
6197
6198         * jv-lang.c (java_lookup_type, get_java_utf8_name,
6199         java_lookup_type): Add static declaration.
6200         (get_java_class_symtab, java_class_is_primitive,
6201         java_value_string): Add declaration. Make static.
6202         (java_rerun_cleanup): Add extern declaration for this stub
6203         function.
6204         
6205 Tue May 25 12:06:29 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6206
6207         * gdbarch.h: When multi-arch, check that REGISTER_NAMES was not
6208         defined.
6209
6210 Mon May 24 16:16:29 1999  Andrew Cagney  <cagney@amy.cygnus.com>
6211
6212         * inflow.c (_initialize_inflow), annotate.c
6213         (_initialize_annotate), os9kread.c (_initialize_os9kread),
6214         serial.c (_initialize_serial), nlmread.c (_initialize_nlmread),
6215         f-valprint.c (_initialize_f_valprint), cp-valprint.c
6216         (_initialize_cp_valprint), typeprint.c (_initialize_typeprint),
6217         complaints.c (_initialize_complaints), scm-lang.c
6218         (_initialize_scheme_language), m2-lang.c
6219         (_initialize_m2_language), dbxread.c (_initialize_dbxread),
6220         f-lang.c (_initialize_f_language), ch-lang.c
6221         (_initialize_chill_language), c-lang.c (_initialize_c_language),
6222         corefile.c (_initialize_core), stabsread.c
6223         (_initialize_stabsread), mipsread.c (_initialize_mipsread),
6224         elfread.c (_initialize_elfread), coffread.c
6225         (_initialize_coffread), maint.c (_initialize_maint_cmds),
6226         demangle.c (_initialize_demangler), maint.c
6227         (_initialize_maint_cmds), language.c (_initialize_language): Add
6228         external declaration.
6229
6230 Mon May 24 10:04:56 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6231
6232         * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/v850/tm-v850.h,
6233         config/tic80/tm-tic80.h, config/tahoe/tm-tahoe.h,
6234         config/rs6000/tm-rs6000.h, config/sparc/tm-sparc.h,
6235         config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
6236         config/ns32k/tm-merlin.h, config/mn10300/tm-mn10300.h,
6237         config/mn10200/tm-mn10200.h, config/mips/tm-mips.h,
6238         config/m88k/tm-m88k.h, config/m68k/tm-news.h,
6239         config/m68k/tm-delta68.h, config/m68k/tm-isi.h,
6240         config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
6241         config/i960/tm-i960.h, config/i386/tm-i386v.h,
6242         config/i386/tm-i386.h, config/h8500/tm-h8500.h,
6243         config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
6244         config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
6245         config/convex/tm-convex.h, config/arc/tm-arc.h,
6246         config/arm/tm-arm.h, config/alpha/tm-alpha.h,
6247         config/a29k/tm-a29k.h: Re-write definition of FRAME_NUM_ARGS so
6248         that it returns NUM_ARGS as a result instead of setting a variable
6249         as a side effect.
6250
6251         * ns32k-tdep.c (merlin_frame_num_args), tahoe-tdep.c
6252         (tahoe_frame_num_args), vax-tdep.c (vax_frame_num_args),
6253         m68k-tdep.c (news_frame_num_args, delta68_frame_num_args,
6254         isi_frame_num_args), convex-tdep.c (convex_frame_num_args): New
6255         functions.
6256
6257         * stack.c (print_args_stub): Update use of FRAME_NUM_ARGS.
6258
6259 Mon May 24 11:57:04 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6260
6261         * remote.c (remote_xfer_memory): Re-write with assumption that
6262         REMOTE_TRANSLATE_XFER_ADDRESS is defined.  Pass targ_addr and
6263         targ_len by reference.
6264         (REMOTE_TRANSLATE_XFER_ADDRESS): Provide default definition.
6265         
6266         * remote-d10v.c (remote_d10v_translate_xfer_address): Update.
6267         * config/d10v/tm-d10v.h (REMOTE_TRANSLATE_XFER_ADDRESS): Update.
6268
6269 Mon May 24 12:10:58 1999  Andrew Cagney  <cagney@amy.cygnus.com>
6270
6271         * value.h (default_push_arguments): Add function declaration.
6272
6273         * alpha-tdep.c (alpha_about_to_return), gdbarch.c (verify_gdbarch,
6274         arch_ok, set_arch), command.c (find_cmd), infrun.c
6275         (follow_inferior_fork, follow_fork, follow_vfork,
6276         set_schedlock_func, is_internal_shlib_eventpoint,
6277         stopped_for_internal_shlib_event, stopped_for_shlib_catchpoint,
6278         xdb_handle_command), infcmd.c (run_no_args_command, go_command),
6279         symfile.c (add_filename_language, set_ext_lang_command,
6280         info_ext_lang_command, init_filename_language_table), symtab.c
6281         (overload_list_add_symbol), defs.h (default_get_saved_register),
6282         ax-general.c (grow_expr, append_const, read_const, generic_ext):
6283         Ditto.
6284
6285         * infrun.c (currently_stepping): Ditto.  Make static.
6286
6287         * valops.c (hand_function_call): Explictly type static variable
6288         ``checked''.
6289
6290 Mon May 24 08:36:18 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6291
6292         * d10v-tdep.c (d10v_breakpoint_from_pc, d10v_register_name,
6293         d10v_register_byte, d10v_register_raw_size,
6294         d10v_register_virtual_size, d10v_register_virtual_type,
6295         d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
6296         d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
6297         d10v_store_struct_return, d10v_store_return_value,
6298         d10v_extract_struct_value_address, d10v_frame_saved_pc,
6299         d10v_frame_args_address, d10v_frame_locals_address,
6300         d10v_saved_pc_after_call): New functions.
6301         
6302         * config/d10v/tm-d10v.h (REGISTER_BYTE, REGISTER_RAW_SIZE,
6303         REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN,
6304         D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
6305         D10V_CONVERT_DADDR_TO_RAW, D10V_CONVERT_IADDR_TO_RAW,
6306         STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
6307         EXTRACT_STRUCT_VALUE_ADDRESS, SAVED_PC_AFTER_CALL, FRAME_SAVED_PC,
6308         FRAME_ARGS_ADDRESS): Re-define using new functions.
6309
6310         * config/d10v/tm-d10v.h (BREAKPOINT_FROM_PC): Replace BREAKPOINT.
6311         (REGISTER_NAME): Replace REGISTER_NAMES.
6312
6313         * utils.c (core_addr_lessthan, core_addr_greaterthan): New
6314         functions.
6315         * defs.h (core_addr_lessthan, core_addr_greaterthan): Declare.
6316         
6317 Sat May 22 16:44:06 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6318
6319         * utils.c (n_spaces): Handle case where first call has N equal to
6320         zero.
6321         (print_spaces): Use n_spaces.
6322
6323 Fri May 21 11:23:54 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6324
6325         * valops.c (value_push): Remove conditional definition based on
6326         absense of macro PUSH_ARGUMENTS.  Pass SP and STRUCT_ADDR by
6327         reference.
6328         (default_push_arguments): New function.
6329
6330         * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
6331         config/sparc/tm-sparc.h, config/sparc/tm-sp64.h,
6332         config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
6333         config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
6334         config/mips/tm-mips.h, config/m32r/tm-m32r.h,
6335         config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
6336         config/d30v/tm-d30v.h, config/d10v/tm-d10v.h, config/arm/tm-arm.h,
6337         config/alpha/tm-alpha.h: Update definition of PUSH_ARGUMENTS.
6338         Return updated SP.
6339
6340         * rs6000-tdep.c (rs6000_push_arguments): Rename push_arguments.
6341
6342 Thu May 20 12:18:28 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6343
6344         * blockframe.c (get_prev_frame): Remove #ifdef around test for
6345         FRAMELESS_FUNCTION_INVOCATION.
6346         (get_prev_frame): Change FRAMELESS_FUNCTION_INVOCATION call to a
6347         function invocation.
6348         * i386-tdep.c (i386_frame_num_args), stack.c (frame_info): Ditto.
6349         * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/vax/tm-vax.h,
6350         config/sparc/tm-sparc.h, config/sh/tm-sh.h,
6351         config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
6352         config/mips/tm-mips.h, config/m88k/tm-m88k.h,
6353         config/m68k/tm-m68k.h, config/i960/tm-i960.h,
6354         config/i386/tm-sun386.h, config/i386/tm-i386v.h,
6355         config/i386/tm-i386.h, config/h8500/tm-h8500.h,
6356         config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
6357         config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
6358         config/convex/tm-convex.h, config/arm/tm-arm.h,
6359         config/arc/tm-arc.h, config/alpha/tm-alpha.h,
6360         config/a29k/tm-a29k.h: Update FRAMELESS_FUNCTION_INVOCATION.
6361         * fr30-tdep.c (fr30_frameless_function_invocation), convex-tdep.c
6362         (convex_frameless_function_invocation), arm-tdep.c
6363         (arm_frameless_function_invocation): New functions.
6364
6365 1999-05-20  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
6366
6367         * top.c: Change dates in comments to ISO format.
6368
6369         * event-top.c: Ditto.
6370         * event-loop.c: Ditto.
6371         * main.c: Ditto.
6372         
6373 1999-05-19  Keith Seitz  <keiths@cygnus.com>
6374
6375         * config/mcore/tm-mcore.h (BELIEVE_PCC_PROMOTION): Define. We
6376         really do want to believe what gcc tells us about types...
6377
6378 1999-05-19  Keith Seitz  <keiths@cygnus.com>
6379
6380         * config/mcore/tm-mcore.h (FRAME_ARGS_ADDRESS): Define to a function.
6381          (FRAME_LOCALS_ADDRESS): Ditto.
6382         * mcore-tdep.c (mcore_frame_args_addcress): New function.
6383         (mcore_frame_locals_address): New function.
6384
6385         * monitor.c (monitor_open): Only assume we have eight
6386         breakpoints if the monitor implementation does not tell
6387         us how many there really are. Alloc memory for these
6388         dynamically.
6389         (monitor_close): Free memory associated with breakpoint
6390         storage.
6391         (monitor_insert_breakpoint): Don't rely on a hardcoded
6392         number of breakpoints.
6393         (monitor_remove_breakpoint): Ditto.
6394         (NUM_MONITOR_BREAKPOINTS): Removed and replaced with monitor_ops
6395         specification.
6396         * monitor.h (struct monitor_ops): Add new member so that the
6397         individual monitor implementations can tell us how many
6398         breakpoints the monitor supports.
6399
6400         * mcore-rom.c (init_picobug_cmds): Add number of breakpoints supported
6401         by picobug monitor.
6402
6403 1999-05-18  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
6404
6405         From Philippe De Muyter  <phdm@macqel.be>:
6406         * event-loop.h: Include sys/wait.h only if HAVE_SYS_WAIT_H.
6407         
6408 1999-05-17  Keith Seitz  <keiths@cygnus.com>
6409
6410         * configure.tgt: Add MCore target.
6411         * Makefile.in: Add mcore-tdep.c and mcore-rom.c
6412         * config/mcore/tm-mcore.h: New file.
6413         * config/mcore/mcore.mt: New file.
6414         * mcore-rom.c: New file.
6415         * mcore-tdep.c: New file.
6416
6417 1999-05-17  Fernando Nasser  <fnasser@totem.to.cygnus.com>
6418
6419         * top.c (print_command_line): Added the missing stream argument.
6420         * gdbcmd.h: Added argument to prototype.
6421         * command.c: Fixed call to include extra argument.
6422         * breakpoint.c: Same.
6423
6424 1999-05-14  Jim Blandy  <jimb@zwingli.cygnus.com>
6425
6426         Targets are #defining PREPARE_TO_PROCEED with inconsistent numbers
6427         of arguments.  Since the Mach 3 target needs an argument, we'll
6428         make things consistent by adding an argument everywhere.
6429         * infrun.c (proceed): Pass an argument to PREPARE_TO_PROCEED.
6430         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Add ignored argument
6431         to definition.
6432
6433 1999-05-11  Stan Shebs  <shebs@andros.cygnus.com>
6434
6435         Fri Apr 23 13:27:34 PDT 1999  Toshiyasu Morita  (tm@netcom.com)
6436         * sh-stub.c: Mostly localize processor dependencies.
6437
6438 1999-05-10  Martin Hunt  <hunt@cygnus.com>
6439
6440         * debugify.c, debugify.h: Removed because they are no
6441         longer used.
6442
6443 1999-05-08  Jim Blandy  <jimb@zwingli.cygnus.com>
6444
6445         * infrun.c (_initialize_infrun): Handle TARGET_SIGNAL_LWP,
6446         TARGET_SIGNAL_WAITING, and TARGET_SIGNAL_CANCEL like SIGALRM or
6447         SIGIO --- pass them through to the inferior silently. 
6448         * target.h (enum target_signals): Add TARGET_SIGNAL_CANCEL, for
6449         Solaris's SIGCANCEL.
6450         * target.c (target_signal_from_host, target_signal_to_host): Add
6451         mapping between SIGCANCEL and TARGET_SIGNAL_CANCEL.
6452         (signals): Add entry for SIGCANCEL.
6453
6454 1999-05-07  Stan Shebs  <shebs@andros.cygnus.com>
6455
6456         After years of talking about it, finally break up the
6457         wait_for_inferior loop.
6458         * infrun.c (struct execution_control_state): New struct,
6459         holds what used to be local vars governing wfi behavior.
6460         (init_execution_control_state): New function, was code in
6461         wfi that set up execution control state.
6462         (handle_inferior_event): New function, was body of main
6463         wfi loop.  Rewrite all local var references to go through
6464         the ecs structure passed into this function.
6465         (wait_for_inferior): Rewrite to set up and use execution control
6466         state, and to call the new functions.
6467         (currently_stepping): New function, was the macro
6468         CURRENTLY_STEPPING.
6469         (enum infwait_states): Rename from wfi_states.
6470         (infwait_normal_state, etc): Similarly.
6471
6472 Thu May  6 15:25:32 1999  Philippe De Muyter  <phdm@macqel.be>
6473
6474         * coffread.c (coff_symtab_read): Call `record_line' with the line
6475         number of the ".bf" symbol only for one-line functions.
6476
6477 1999-05-06  Michael Snyder  <msnyder@cleaver.cygnus.com>
6478
6479         * Makefile.in: thread.o depends on target.h.
6480
6481 1999-05-06  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
6482
6483         * event-top.c (change_line_handler): Use POLLIN instead of
6484         POLLRDNORM, for compatibility with Linux.
6485         (setup_event_loop): Ditto.
6486
6487 1999-05-06  Jim Blandy  <jimb@zwingli.cygnus.com>
6488
6489         * mips-tdep.c (heuristic_proc_start): Rewrite cryptic error
6490         message about hitting the "heuristic fence post" with something
6491         that actually gives the user a fighting chance of figuring out
6492         why GDB is unhappy.
6493         
6494 1999-05-06  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
6495
6496         * top.c: Include event-loop.h.
6497         (init_main): Add async version of 'set prompt' command.
6498         If in async mode define the editing and annotate set 
6499         commands in a different way.
6500         Initialize new variable asyn_command_editing_p to 1.
6501         Initialize the gdb prompt for async mode.
6502         (quit_cover): Make not static, for use by the event loop.
6503         (gdb_init): Call async_init_signals for the asynchronous case.
6504         (source_line_number, source_file_name, source_error,
6505         source_pre_error, history_expansion_p): Make non-static, so
6506         event-top.c can use them.
6507         (command_loop_marker): Make non-static, for use in event-top.c.
6508         Include event-loop.h.
6509         
6510         * top.h: Add prototype for async_init_signals.
6511         (SET_TOP_LEVEL): Move here from main.c.
6512         Add setup_event_loop to exported functions.
6513
6514         * defs.h: Add async_hook to exported variables.
6515
6516         * main.c (SET_TOP_LEVEL): Move to top.h, so that it is visible in 
6517         event-loop.c.  Add new global variable async to determine whether 
6518         we are running in async mode or not.
6519         (main): Add support for --async switch. Use async_hook to call
6520         setup_event_loop, when running in async mode.
6521
6522         * event-top.c: New file. Gdb input line handler and command line
6523         handler for the event loop. Initialization of signal handlers.
6524         All the handled signals have handlers called handle_<signalname>.
6525         Set up all the appropriate tokens for asynchronous signal 
6526         handling.
6527                 
6528         * event-loop.h: New file. Data structures and definitions for the
6529         event loop.
6530
6531         * event-loop.c: New file. Functions for the event loop 
6532         implementation.
6533
6534         * config.in: Regenerate with autoheader.
6535
6536         * configure.in (AC_CHECK_FUNCS): Add poll to list of functions 
6537         to be checked for. 
6538
6539         * configure: Regenerate.
6540                                                         
6541         * Makefile.in (SFILES): Add new source files.
6542         (eventloop_h): Define.
6543         (COMMON_OBS): Add new object files.
6544         (event-loop.o): Add rule for target object.
6545         (event-top.o): Ditto.
6546
6547 1999-05-05  Stan Shebs  <shebs@andros.cygnus.com>
6548
6549         * infrun.c (wait_for_inferior): Transform breaks and continues
6550         into gotos, move the target_wait to the very top of the loop.
6551
6552 1999-05-05  Jonathan Larmour  <jlarmour@cygnus.co.uk>
6553
6554         * configure.in: Ensure that GDB links with libuser32.a under
6555         cygwin because libreadline requires it.
6556         * Makefile.in (WIN32LIBS): Substitute in result from configure
6557         * configure: regenerate
6558
6559 1999-05-04  Jim Blandy  <jimb@zwingli.cygnus.com>
6560
6561         Fix from John Rigby.  Richard Henderson says it seems okay.
6562         * alpha-tdep.c (PROC_DUMMY_FRAME): As long as we're abusing fields
6563         of (proc)->pdr, we ought to at least abuse one large enough to
6564         hold the value we're trying to store in it.  iopt is only 32 bits
6565         wide; cbLineOffset is a bfd_vma.
6566
6567 1999-05-04  DJ Delorie  <dj@cygnus.com>
6568
6569         DJGPP changes from Robert Hoehne  <robert.hoehne@gmx.net>
6570
6571         * ser-go32.c: correct includes
6572         * source.c (openp): use ROOTED_P instead of SLASH_P
6573         * go32-nat.c: enhance exception and NPX handling
6574         (go32_kill_inferior): fix small bug killing inferior
6575         * configure.in: don't look for termcap with djgpp
6576         * configure: rebuild
6577
6578 1999-05-04  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
6579
6580         * main.c (main): Comment out unused and undocumented command line
6581         option '-'.
6582
6583 1999-04-30  Jim Blandy  <jimb@zwingli.cygnus.com>
6584
6585         Cleanup from Philippe De Muyter:
6586         * configure.in (BFD_NEED_DECLARATION): Check also for strstr.
6587         * acconfig.h (NEED_DECLARATION_MALLOC, NEED_DECLARATION_REALLOC,
6588         NEED_DECLARATION_FREE, NEED_DECLARATION_STRERROR): Define slots
6589         removed; they are now generated automatically.
6590         * gdb_string.h (strstr): Provide function prototype if
6591         NEED_DECLARATION_STRSTR.
6592         * configure, config.in: Regenerated.
6593
6594 Fri Apr 30 11:16:09 1999  Michael Snyder  <msnyder@cleaver.cygnus.com>
6595
6596         * target.h (to_find_new_threads): new target ops vector.
6597         (target_find_new_threads): define.
6598         * target.c (update_current_target): inherit new target ops vector.
6599         * remote.c: Setup to_find_new_threads vector.
6600         * sol-thread.c: ditto.
6601         * thread.c (target_find_new_threads): rename: local_find_new_threads.
6602         (info_threads_command): call target_find_new_threads by new method,
6603         as a target ops vector, rather than previous macro definition method.
6604         * infcmd.c (go_command): define only if in xdb mode.
6605         * procfs.c: fix typo in comment.
6606         
6607 Fri Apr 30 01:02:05 1999  Jeffrey A Law  (law@cygnus.com)
6608
6609         * hppah-nat.c: Fix various coding convention violations introduced
6610         by HP.
6611         (child_acknowledge_created_inferior): Do nothing if PT_SET_EVENT_MASK
6612         is not defined.
6613
6614 1999-04-28  Stan Shebs  <shebs@andros.cygnus.com>
6615
6616         * TODO: Add some items inspired by review of the manual.
6617
6618 Tue Apr 27 17:38:19 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6619
6620         * config/z8k/tm-z8k.h, config/v850/tm-v850.h,
6621         config/tic80/tm-tic80.h, config/sparc/tm-sparc.h,
6622         config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
6623         config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
6624         config/mips/tm-mips.h, config/m88k/tm-m88k.h,
6625         config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
6626         config/i960/tm-i960.h, config/i386/tm-i386.h,
6627         config/h8500/tm-h8500.h, config/h8300/tm-h8300.h,
6628         config/fr30/tm-fr30.h, config/d30v/tm-d30v.h,
6629         config/d10v/tm-d10v.h, config/alpha/tm-alpha.h,
6630         config/arm/tm-arm.h, config/a29k/tm-a29k.h, config/arc/tm-arc.h:
6631         Change SKIP_PROLOGUE and SKIP_PROLOGUE_FRAMELESS_P macros so that
6632         they return the new address.
6633
6634         * sparc-tdep.c (sparc_skip_prologue), hppa-tdep.c
6635         (hppa_skip_prologue), m88k-tdep.c
6636         (m88k_skip_prologue), i960-tdep.c
6637         (i960_skip_prologue), arc-tdep.c
6638         (arc_skip_prologue), a29k-tdep.c (a29k_skip_prologue): Rename
6639         skip_prologue function.
6640
6641         * config/m68k/tm-isi.h: Convert macro SKIP_PROLOGUE into a new
6642         function.
6643         * m68k-tdep.c (isi_skip_prologue): That new function.
6644         * vax-tdep.c (vax_skip_prologue), config/vax/tm-vax.h: Ditto.
6645         * tahoe-tdep.c (tahoe_skip_prologue), config/tahoe/tm-tahoe.h: Ditto.
6646         * rs6000-tdep.c (rs6000_skip_prologue), config/rs6000/tm-rs6000.h:
6647         Ditto.
6648         * ns32k-tdep.c (umax_skip_prologue), config/ns32k/tm-umax.h: Ditto.
6649         * config/ns32k/tm-merlin.h, ns32k-tdep.c (merlin_skip_prologue):
6650         Ditto.
6651         * config/m68k/tm-altos.h, m68k-tdep.c (altos_skip_prologue): Ditto.
6652         * config/convex/tm-convex.h, convex-tdep.c (convex_skip_prologue):
6653         Ditto.
6654
6655         * symtab.c (in_prologue, find_function_start_sal, decode_line_1),
6656         infrun.c (wait_for_inferior), blockframe.c
6657         (frameless_look_for_prologue): Update.
6658         * config/fr30/tm-fr30.h (FRAMELESS_FUNCTION_INVOCATION): Update.
6659
6660 1999-04-27  Stan Shebs  <shebs@andros.cygnus.com>
6661
6662         * TODO: Remove item about DEBUG_EXPRESSIONS, no longer meaningful.
6663
6664         * infrun.c (enum wfi_state): New enum.
6665         (wait_for_inferior): Merge all but one of the target_wait calls
6666         into a single call, add a wfi_state variable to encode which of
6667         the calls is being made.
6668
6669 1999-04-26  Jim Blandy  <jimb@zwingli.cygnus.com>
6670
6671         Fix from Dave Holcomb.
6672         * hpux-thread.c (init_hpux_thread_ops): Use the right function
6673         name when initializing hpux_thread_ops.to_thread_alive.
6674
6675         * coffread.c (coff_symfile_read): If we have a `.stab' section,
6676         but no `.stabstr' section, then print an error message; don't
6677         crash.
6678
6679 1999-04-26  Jim Blandy  <jimb@zwingli.cygnus.com>
6680
6681         1999-04-25  Mark Kettenis  <kettenis@gnu.org>
6682
6683         * gnu-nat.c (gnu_attach): Call target_terminal_init before calling
6684         inf_set_traced, since that function calls code that might try to
6685         restore the terminal settings.
6686
6687 Mon Apr 26 08:55:46 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6688
6689         * gdbarch.h, gdbarch.c: More format cleanups.
6690
6691 Sun Apr 25 18:54:51 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6692
6693         * gdbarch.h (CALL_DUMMY_STACK_ADJUST_P): Replace
6694         SIZEOF_CALL_DUMMY_STACK_ADJUST_P.
6695         (CALL_DUMMY_STACK_ADJUST): Replace
6696         SIZEOF_CALL_DUMMY_STACK_ADJUST_P.
6697         * gdbarch.c (gdbarch_call_dummy_stack_adjust,
6698         set_gdbarch_call_dummy_stack_adjust): Define.
6699
6700 Fri Apr 23 15:00:25 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6701
6702         * gdbarch.c (arch_ok): New function. Fix logic test for a valid
6703         architecture.
6704         (set_arch): Use.
6705
6706 1999-04-22  Jason Molenda  (jsm@bugshack.cygnus.com)
6707
6708         * README: Note that readline is not installed as a part of
6709         make install.
6710
6711 Thu Apr 22 21:02:28 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6712
6713         * gdbarch.h, gdbarch.c (GET_SAVED_REGISTER, get_saved_register):
6714         Add.
6715         (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
6716         default_gdbarch): Update.
6717
6718         * value.h (get_saved_register): Cleanup prototype.
6719         * findvar.c (default_get_saved_register): Rename function
6720         get_saved_register.
6721         (GET_SAVED_REGISTER): Define as default_get_saved_register when
6722         undefined.
6723         (get_saved_register): Always declare. Call GET_SAVED_REGISTER.
6724
6725         * sparc-tdep.c (sparc_get_saved_register): Rename function
6726         get_saved_register.
6727         * config/sparc/tm-sparc.h (GET_SAVED_REGISTER): Update.
6728         * a29k-tdep.c (a29k_get_saved_register): Rename function
6729         get_saved_register.
6730         * config/a29k/tm-a29k.h (GET_SAVED_REGISTER): Update.
6731
6732         * config/d10v/tm-d10v.h, config/powerpc/tm-ppc-eabi.h,
6733         config/h8300/tm-h8300.h, config/m32r/tm-m32r.h,
6734         config/mn10200/tm-mn10200.h, config/mn10300/tm-mn10300.h,
6735         config/sh/tm-sh.h, config/tic80/tm-tic80.h, config/v850/tm-v850.h:
6736         Update macro GET_SAVED_REGISTER so that it calls
6737         generic_get_saved_register.
6738         * v850-tdep.c, tic80-tdep.c, sh-tdep.c, mn10300-tdep.c,
6739         mn10200-tdep.c, m32r-tdep.c, h8300-tdep.c, rs6000-tdep.c: Delete
6740         function get_saved_register.
6741
6742 Thu Apr 22 13:32:23 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6743
6744         * gdbarch.c: Cleanup.  Re-order the definition of the ``struct
6745         gdbarch'' initialization functions so that maintenance is more
6746         straightforward.
6747         
6748 Thu Apr 22 11:07:21 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6749
6750         * gdbarch.h, gdbarch.c (use_generic_dummy_frames,
6751         USE_GENERIC_DUMMY_FRAMES): Add.
6752         (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
6753         default_gdbarch): Update.
6754
6755         * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
6756         config/sh/tm-sh.h, config/powerpc/tm-ppc-eabi.h,
6757         config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
6758         config/m32r/tm-m32r.h, config/h8300/tm-h8300.h,
6759         config/fr30/tm-fr30.h, config/d10v/tm-d10v.h: Give the
6760         USE_GENERIC_DUMMY_FRAMES macro the value one.
6761         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Default to a value of
6762         zero.
6763
6764         * blockframe.c (generic_find_dummy_frame,
6765         generic_pc_in_call_dummy, generic_read_register_dummy,
6766         generic_push_dummy_frame, generic_pop_current_frame,
6767         generic_pop_dummy_frame, generic_frame_chain_valid,
6768         generic_get_saved_register): Always define.
6769
6770         * breakpoint.c (frame_in_dummy): Convert #ifdef
6771         USE_GENERIC_DUMMY_FRAMES to runtime test.
6772
6773         * rs6000-tdep.c (pop_frame, push_arguments, push_arguments,
6774         push_arguments, frame_saved_pc, rs6000_frame_chain,
6775         rs6000_frame_chain): Convert #ifdef USE_GENERIC_DUMMY_FRAMES to
6776         runtime test.
6777         (get_saved_register): Always define.
6778
6779 Wed Apr 21 17:15:52 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6780
6781         * gdbarch.c (gdbarch_dump): Fix robustness check on
6782         BELIEVE_PCC_PROMOTION_TYPE.
6783
6784 Wed Apr 21 15:39:27 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6785
6786         * gdbarch.h (TARGET_BYTE_ORDER_SELECTABLE_P): When multi-arch,
6787         force selectable byte order.
6788         (CALL_DUMMY): Check for CALL_DUMMY definition when multi-arch. Are
6789         incompatible.
6790         * gdbarch.c (verify_gdbarch): Check call_dummy_stack_adjust.
6791         
6792 Wed Apr 21 14:45:44 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6793
6794         * gdbarch.c (gdbarch_update): Move dump-arch code from here.
6795         (gdbarch_dump): To here.  Make more robust.
6796         * gdbarch.h (gdbarch_dump): Add prototype.
6797         
6798         * gdbarch.c (enum set_arch): Declare.
6799         (set_arch): Add type parameter.  Only disable
6800         ``target_architecture_auto'' when set_arch_manual.
6801         (set_architecture, set_architecture_from_arch_mach,
6802         set_architecture_from_file): Update.
6803         (set_arch): When ``gdbarch_debug'', gdbarch_dump() the current
6804         architecture.
6805
6806 Wed Apr 21 10:48:53 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6807
6808         * frame.h (generic_pc_in_call_dummy):  Make signature consistent
6809         with other pc_in_call_dummy functions by adding SP parameter.
6810         * blockframe.c (generic_pc_in_call_dummy): Update.  Pass SP and
6811         not FP to generic_find_dummy_frame().
6812         * breakpoint.c (frame_in_dummy): Update.
6813         * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
6814         config/sh/tm-sh.h, config/mn10300/tm-mn10300.h,
6815         config/mn10200/tm-mn10200.h, config/m32r/tm-m32r.h,
6816         config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
6817         config/d10v/tm-d10v.h: Update PC_IN_CALL_DUMMY definition.
6818
6819 Tue Apr 20 12:15:45 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6820
6821         * config/d10v/tm-d10v.h (GDB_TARGET_IS_D10V): Move from here.
6822         * gdbarch.h (GDB_TARGET_IS_D10V): To here.  Implement using
6823         TARGET_ARCHITECTURE.
6824         (D10V_MAKE_DADDR, D10V_MAKE_IADDR): Provide fatal default
6825         definitions.
6826
6827         * valops.c (value_at): Replace #ifdef GDB_TARGET_IS_D10V code with
6828         runtime test.
6829         (value_fetch_lazy): Ditto.
6830         * values.c (unpack_long): Ditto.
6831         * printcmd.c (print_frame_args): Ditto.
6832
6833 Sat Apr 17 15:39:33 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6834
6835         * gdbarch.h: Cleanup multi-arch comments.
6836
6837 Fri Apr 16 15:39:10 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6838
6839         * gdbarch.h: Provide definition if GDB_MULTI_ARCH > 1 or
6840         GDB_MULTI_ARCH > 0 and no previous definition.
6841         * gdbarch.c (verify_gdbarch): Only verify a full multi-arch
6842         target.
6843
6844 1999-04-15  Stan Shebs  <shebs@andros.cygnus.com>
6845
6846         * infrun.c (wait_for_inferior) [HAVE_STEPPABLE_WATCHPOINT,
6847         HAVE_NONSTEPPABLE_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT]: Test
6848         at runtime instead of compile time.
6849
6850 Thu Apr 15 15:15:07 1999  Andrew Cagney  <cagney@amy.cygnus.com>
6851
6852         * mips-tdep.c (struct gdbarch_tdep): Rename elf_abi to
6853         elf_flags. Check ABFD is elf_flavour before extracting elf_flags.
6854         Match ARCH against entire elf_flags instead of just the
6855         EF_MIPS_ABI field.
6856         (mips_gdbarch_init): Extract/print ef_mips_arch and
6857         ef_mips_bitptrs and ef_mips_abi fields from elf_flags.
6858
6859 1999-04-14  Philippe De Muyter  <phdm@macqel.be>
6860
6861         * breakpoint.c (maintenance_info_breakpoints): Function made
6862         static to match previous prototype.
6863
6864         * coffread.c (coff_record_line): Static function removed.
6865         (enter_linenos): Call `record_line' instead of `coff_record_line'.
6866         (FILE-LEVEL, coff_start_symtab, coff_end_symtab): `coff_record_line'
6867         -related stuff removed.
6868         (coff_symfile_read): Redundant statement removed.
6869         (coff_symtab_read): `record_line' is now called with the first line
6870         number of each function, given by the ".bf" symbol.  This solves
6871         the line-number bug for one-line functions.
6872
6873 Wed Apr 14 11:09:45 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6874
6875         * gdbarch.h (BELIEVE_PCC_PROMOTION_TYPE, BELIEVE_PCC_PROMOTION):
6876         Add multi-arch definitions.
6877         * gdbarch.c (gdbarch_believe_pcc_promotion,
6878         gdbarch_believe_pcc_promotion_type): New functions.
6879         (gdbarch_update): Update
6880         (struct gdbarch default_gdbarch): Update.
6881
6882         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Provide default.
6883         (define_symbol): Change #if BELIEVE_PCC_PROMOTION_TYPE and #if
6884         BELIEVE_PCC_PROMOTION to if().
6885
6886 1999-04-13  Jason Molenda  (jsm@bugshack.cygnus.com)
6887
6888         * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define if we're
6889         on a Solaris host (of any architecture).
6890         * configure: Regenerated.
6891
6892 Wed Apr 14 08:23:32 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6893
6894         * gdbarch.c (SET_GDBARCH, GET_GDBARCH, FSET_GDBARCH): New macros.
6895         (gdbarch_byte_order, gdbarch_long_bit, gdbarch_long_long_bit,
6896         gdbarch_ptr_bit, gdbarch_call_dummy_location,
6897         gdbarch_call_dummy_address, gdbarch_call_dummy_address,
6898         gdbarch_call_dummy_breakpoint_offset,
6899         gdbarch_call_dummy_breakpoint_offset, gdbarch_call_dummy_length,
6900         gdbarch_pc_in_call_dummy, dbarch_call_dummy_breakpoint_offset_p,
6901         dbarch_call_dummy_p, dbarch_call_dummy_words,
6902         dbarch_sizeof_call_dummy_words, dbarch_call_dummy_stack_adjust,
6903         dbarch_call_dummy_stack_adjust_p): Define using new macros.
6904         
6905 1999-04-13  Jason Molenda  (jsm@bugshack.cygnus.com)
6906
6907         * rom68k-rom.c (init_rom68k_cmds): Fix an accidental substitution
6908         in monitor command strings, fix some formatting mistakes.
6909
6910 1999-04-13  Stan Shebs  <shebs@andros.cygnus.com>
6911
6912         * configure.tgt (arm-*-*): Whack another vestige of wingdb.
6913
6914 1999-04-12  James Ingham  <jingham@cygnus.com>
6915
6916         * arm-tdep.c (arm_pop_frame): don't clobber the previous frame's
6917         stack pointer (stored in frame->framereg's register) BEFORE
6918         reading it.  This was causing "return" to behave very oddly.
6919
6920 1999-04-12  Stan Shebs  <shebs@andros.cygnus.com>
6921
6922         * NEWS: Mention tic80.
6923
6924 1999-04-12  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
6925
6926         * a68v-nat.c: Remove reference to 'extern char registers[]' throughout.
6927         * altos-xdep.c: Ditto.
6928         * arm-xdep.c: Ditto.
6929         * convex-xdep.c:  Ditto.
6930         * cxux-nat.c: Ditto.
6931         * hp300ux-nat.c: Ditto.
6932         * hppab-nat.c: Ditto.
6933         * i386aix-nat.c: Ditto.
6934         * i386mach-nat.c: Ditto.
6935         * m88k-nat.c: Ditto.
6936         * ptx4-nat.c: Ditto.
6937         * pyr-xdep.c: Ditto.
6938         * rs6000-nat.c: Ditto.
6939         * sun3-nat.c: Ditto.
6940         * sun386-nat.c: Ditto.
6941         * symm-nat.c: Ditto.
6942         * umax-xdep.c: Ditto.
6943         * i386v4-nat.c: Ditto. Also include inferior.h.
6944         * m68k-tdep.c: Ditto. Also include inferior.h.
6945
6946 Mon Apr 12 15:57:16 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6947
6948         * inferior.h (CALL_DUMMY_STACK_ADJUST, CALL_DUMMY_STACK_ADJUST_P):
6949         Provide default definitions.
6950         * valops.c (hand_function_call): Replace #ifdef
6951         CALL_DUMMY_STACK_ADJUST with if (CALL_DUMMY_STACK_ADJUST_P).
6952
6953         * gdbarch.h (SIZEOF_CALL_DUMMY_STACK_ADJUST,
6954         (SIZEOF_CALL_DUMMY_STACK_ADJUST_P): Define
6955         * gdbarch.c (struct gdbarch): Add call_dummy_stack_adjust,
6956         call_dummy_stack_adjust_p.
6957         (gdbarch_call_dummy_stack_adjust,
6958         set_gdbarch_call_dummy_stack_adjust,
6959         gdbarch_call_dummy_stack_adjust_p,
6960         set_gdbarch_call_dummy_stack_adjust_p): New functions.
6961         (default_gdbarch): Update.
6962
6963 1999-04-09  Jim Blandy  <jimb@zwingli.cygnus.com>
6964
6965         * ax-gdb.c, ax-gdb.h, ax-general.c, ax.h: Remove RCS Id strings.
6966         They're a pain.
6967
6968         * GDB 4.18 released.
6969         * Makefile.in (VERSION): Bump to 4.18.1.
6970
6971 Thu Apr  8 16:04:34 1999  Andrew Cagney  <cagney@b1.cygnus.com>
6972
6973         * inferior.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
6974         SIZEOF_CALL_DUMMY_WORDS): Define macros.
6975         (PUSH_DUMMY_FRAME, FIX_CALL_DUMMY, STORE_STRUCT_RETURN): Provide
6976         fatal default.
6977
6978         * inferior.h, gdbarch.c (call_dummy_words,
6979         sizeof_call_dummy_words): Declare/Define variables.
6980         * valops.c (value_arg_coerce, find_function_addr,
6981         call_function_by_hand): Always define.
6982         (hand_function_call): Rename CALL_DUMMY version of
6983         call_function_by_hand.  Make static.  Add prototype.
6984         (hand_function_call): Update.  Allocate space for *dummy and
6985         *dummy1 using alloca.
6986         * breakpoint.c (frame_in_dummy): Update.
6987
6988         * gdbarch.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
6989         SIZEOF_CALL_DUMMY_WORDS): Define.
6990         * gdbarch.c (gdbarch_call_dummy_p, set_gdbarch_call_dummy_p,
6991         gdbarch_call_dummy_words, set_gdbarch_call_dummy_words,
6992         gdbarch_sizeof_call_dummy_words,
6993         set_gdbarch_sizeof_call_dummy_words): New functions.
6994         (gdbarch_alloc, verify_gdbarch, gdbarch_update, struct
6995         default_gdbarch): Update.
6996
6997 1999-04-08  Jason Molenda  (jsm@bugshack.cygnus.com)
6998
6999         * monitor.c (monitor_read_memory): If a MO_GETMEM_NEEDS_RANGE 
7000         monitor, increase the end address by one byte.
7001
7002 1999-04-08  Jason Molenda  (jsm@bugshack.cygnus.com)
7003
7004         * dbug-rom.c (init_dbug_cmds): Fix strings in 
7005         dbug_cmds.{step,clr_break,clr_all_break,fill} to send correct
7006         commands to the monitor.
7007
7008 1999-04-08  Keith Seitz  <keiths@cygnus.com>
7009
7010         * m32r-stub.c (branchDestination): Undo overly ambitious
7011         sed script's conversion of cast from "char" to "unsigned char".
7012         Return offset should now be properly computed.
7013
7014 Thu Apr  8 14:13:19 1999  Andrew Cagney  <cagney@b1.cygnus.com>
7015
7016         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
7017         Non-zero when CALL_DUMMY_BREAKPOINT_OFFSET is valid.
7018
7019         * infcmd.c (breakpoint_auto_delete_contents): Always define.
7020         (run_stack_dummy): Update.
7021         * infrun.c (wait_for_inferior): Update
7022
7023         * gdbarch.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
7024         * gdbarch.c (set_gdbarch_call_dummy_breakpoint_offset_p,
7025         gdbarch_call_dummy_breakpoint_offset_p): New functions.
7026         (struct gdbarch, gdbarch_alloc, default_gdbarch, gdbarch_update):
7027         Update.
7028
7029 1999-04-07  Stan Shebs  <shebs@andros.cygnus.com>
7030
7031         * MAINTAINERS: Mark Alexander can no longer maintain
7032         h8300 and other embedded targets, sniff.
7033
7034 1999-04-06  Stan Shebs  <shebs@andros.cygnus.com>
7035
7036         * inftarg.c (child_wait): Initialize execd_pathname.
7037         * target.c (debug_to_has_execd): Handle NULL execd_pathname.
7038
7039         * solib.c (clear_solib): Don't call disable_breakpoints_in_shlibs,
7040         this breaks rerunning on sun4 native.
7041
7042 1999-04-06  Jim Blandy  <jimb@zwingli.cygnus.com>
7043
7044         * config/sparc/nm-linux.h: Don't redefine PT_ATTACH to use the
7045         deprecated PTRACE_SUNATTACH compatibility commands.  The
7046         definitions from <sys/ptrace.h> are fine.
7047
7048 1999-04-06  Martin Hunt  <hunt@cygnus.com>
7049
7050         * annotate.h: Declare annotate_signal_hook.
7051
7052         * annotate.c (annotate_signal): Add a call to 
7053         annotate_signal_hook().
7054
7055 1999-04-06  Jim Blandy  <jimb@zwingli.cygnus.com>
7056
7057         * dwarf2read.c (dwarf_decode_lines): Don't call record_line when
7058         we hit a DW_LNE_end_sequence instruction.
7059
7060         * README: Note that GDB requires an ANSI C compiler, and explain
7061         how to get GCC.
7062
7063         * README: Update.
7064
7065 1999-04-05  Stan Shebs  <shebs@andros.cygnus.com>
7066
7067         * NEWS: Add more notes about user-visible changes.
7068
7069 Mon Apr  5 14:56:59 1999  Michael Snyder  <msnyder@cleaver.cygnus.com>
7070
7071         * target.c (target_signal_to_string): check for signal
7072         number in range; otherwise if the target board returns
7073         a bogus signal number we might core dump (per David Taylor).
7074
7075 1999-04-05  David Taylor  <taylor@ryobi.cygnus.com>
7076
7077         * utils.c (fputs_maybe_filtered): test value of
7078         pagination_enabled before paginating.
7079
7080 1999-04-02  James Ingham  <jingham@cygnus.com>
7081
7082         * blockframe.c (get_prev_frame): Remove the redundant
7083         get_prev_frame_info.  It is now exactly the same as
7084         get_prev_frame, so there is no reason to have both functions.
7085         
7086         * rs6000-tdep.c (rs6000_init_extra_frame_info): 
7087           frame.h: 
7088           a29k-tdep.c (init_extra_frame_info): 
7089           config/a29k/tm-a29k.h: 
7090           i386-tdep.c:
7091         Change all references to get_prev_frame_info to get_prev_frame.
7092         
7093 1999-04-02  Stan Shebs  <shebs@andros.cygnus.com>
7094
7095         * bcache.c, bcache.h, breakpoint.c, defs.h, expprint.c,
7096         expression.h, gdbarch.c, gdbtypes.c, gdbtypes.h, gnu-nat.c,
7097         gnu-nat.h, hppa-tdep.c, maint.c, monitor.c, objfiles.h, parse.c,
7098         remote-mips.c, remote-sds.c, remote.c, sol-thread.c, symmisc.c,
7099         symtab.h, target.c, top.c, typeprint.c, config/nm-gnu.h: Evaporate
7100         the unused MAINTENANCE_CMDS conditional.
7101
7102 1999-04-02  James Ingham  <jingham@cygnus.com>
7103
7104         * config/arm/tm-arm.h: (EXTRACT_STRUCT_VALUE_ADDRESS): This needs
7105         to call extract_address, not just cast the first 4 bytes, since
7106         the result will be passed to value_at which expects host-byte
7107         order. 
7108
7109         * arm-tdep.c (arm_scan_prologue): The prologue_start address was
7110         directly &'ed with 0x03fffffc, rather than using
7111         ADDR_BITS_REMOVE.  This would cause inferior function calls to
7112         report the stack incorrectly on return.
7113
7114
7115 1999-04-02  Keith Seitz  <keiths@cygnus.com>
7116
7117         * top.c (ui_loop_hook): Change declaration. Now returns an int.
7118         * win32-nat.c (child_wait): Timeout WaitForDebugEvent and call
7119         the ui_loop_hook if there was no debug event.
7120         * top.c (ui_loop_hook): Change to return an int and include
7121         on all non-Cygwin builds.
7122         * v850ice.c: Change prototype of ui_loop_hook.
7123         (v850ice_wait): Update call to ui_loop_hook.
7124         * ser-unix.c (hardwire_readchar): Enable ui_loop_hook callbacks
7125         for non-Cygwin builds. Check return status of ui_loop_hook and
7126         return a timeout if told to detach. Add more documentation.
7127         * ser-tcp.c (tcp_readchar): Break up timeouts into one second
7128         intervals and call ui_loop_hook so that other UIs can
7129         keep up to date. If ui_loop_hook returns non-zero, then
7130         return SERIAL_TIMEOUT to facilitate detaching from the
7131         target.
7132         * remote.c (remote_interrupted_already): Remove.
7133         (remote_interrupt_twice): Revive.
7134         (remote_interrupt): Call remote_stop to interrupt the target
7135         and install remote_interrupt_twice to take more severe
7136         actions if this fails.
7137         (remote_stop): Only attempt to stop the target. This separates
7138         the command line from other UIs.
7139         * remote-sim.c (gdb_os_poll_quit): Add a call to ui_loop_hook,
7140         if it is defined.
7141
7142 1999-04-01  Jim Blandy  <jimb@zwingli.cygnus.com>
7143
7144         Fix for cross-debugging on an AIX host from Johanna Svenningsson:
7145         * ax-gdb.h (enum axs_lvalue_kind): Remove trailing comma from enum.
7146         * ax.h (enum agent_op): Same.
7147         * tracepoint.h (enum actionline_type): Same.
7148         * config/xm-aix4.h: Add declaration for termdef.
7149
7150 1999-03-31  Stan Shebs  <shebs@andros.cygnus.com>
7151
7152         * jv-lang.h (dynamics_objfile): Remove decl, conflicts with static
7153         decl in jv-lang.c.
7154
7155         * infrun.c (follow_inferior_fork): Add ifdefs around
7156         SOLIB_REMOVE_INFERIOR_HOOK.
7157
7158 Wed Mar 31 11:39:49 1999  David Taylor  <taylor@ryobi.cygnus.com>
7159
7160         * valops.c (search_struct_field): revert HP merge change
7161         to this function -- it causes messages to be printed about
7162         member class ambiguity when the compiler is happy.
7163         (search_struct_field_aux): delete -- added as part of HP merge
7164         change; with aforementioned change it is no longer called.
7165
7166 1999-03-30  Stan Shebs  <shebs@andros.cygnus.com>
7167
7168         Make more HPUX-specific code generic.
7169         * infrun.c: Include top.h.
7170         (MAY_SWITCH_FROM_INFERIOR_PID, MAY_FOLLOW_EXEC,
7171         USE_THREAD_STEP_NEEDED): New native macros.
7172         (may_switch_from_inferior_pid, may_follow_exec,
7173         use_thread_step_needed): New globals.
7174         (follow_inferior_fork): Remove HPUXHPPA ifdef.
7175         (follow_exec): Ditto, also save run target and re-push instead of
7176         always pushing child_ops, add ifdefs around SOLIB_RESTART and
7177         SOLIB_CREATE_INFERIOR_HOOK.
7178         (wait_for_inferior): Use new globals instead of ifdefing HPUXHPPA,
7179         always use printf_filtered to report new threads.
7180         (normal_stop): Ditto.
7181         * target.h, target.c (find_run_target): New function.
7182         * config/pa/nm-hppah.h: Define new macros.
7183
7184 1999-03-29  Stan Shebs  <shebs@andros.cygnus.com>
7185
7186         * top.h: Include setjmp.h here.
7187         * main.c, top.c: Don't include it here.
7188
7189 1999-03-29  Keith Seitz  <keiths@cygnus.com>
7190
7191         * symtab.c (decode_line_1): Take out change which breaks symbols
7192         which include class names and methods, e.g., "Foo::bar".
7193
7194 1999-03-26  Stan Shebs  <shebs@andros.cygnus.com>
7195
7196         * configure.tgt (i[3456]86-*-sysv4.2MP, i[3456]86-*-sysv4.2uw2*):
7197         Recognize both, as i[3456]86-*-sysv4.2*.
7198         (i[3456]86-*-sysv5*): Recognize.
7199
7200         * infrun.c (wait_for_inferior): Remove most #if 0 segments.
7201
7202 Fri Mar 26 17:27:27 1999  Andrew Cagney  <cagney@b1.cygnus.com>
7203
7204         * blockframe.c (pc_in_call_dummy_on_stack): Fix.  Had copied code
7205         from at_entry_point.
7206
7207 Thu Mar 25 19:30:02 1999  Andrew Cagney  <cagney@amy.cygnus.com>
7208
7209         * gdbarch.c: Include all headers.
7210         (struct gdbarch), gdbarch.h (CALL_DUMMY_LOCATION,
7211         CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
7212         CALL_DUMMY_BREAKPOINT_OFFSET, CALL_DUMMY_LENGTH,
7213         PC_IN_CALL_DUMMY): Add ``call_dummy_location'',
7214         ``call_dummy_length'', ``pc_in_call_dummy'',
7215         ``call_dummy_start_offset'', ``call_dummy_breakpoint_offset'' to
7216         multi-arch framework.
7217
7218         * inferior.h, blockframe.c (pc_in_call_dummy_before_text_end,
7219         pc_in_call_dummy_after_text_end, pc_in_call_dummy_on_stack,
7220         pc_in_call_dummy_at_entry_point): Convert PC_IN_CALL_DUMMY macro's
7221         into functions.
7222
7223         * mips-tdep.c (mips_gdbarch_init): Initialize above
7224
7225 Tue Mar 23 17:22:57 1999  Philippe De Muyter  <phdm@macqel.be>
7226
7227         * remote.c, parse.c: Include ctype.h.
7228
7229 1999-03-24  Stan Shebs  <shebs@andros.cygnus.com>
7230
7231         * configure.host (mips-dec-mach3*): Use mipsm3 not mach3.
7232
7233         Attempt to sort out SCO-related configs.
7234         * configure.host (i[3456]86-*-sysv4.2*): Use instead of
7235         i[3456]86-*-sysv4.2MP and i[3456]86-*-sysv4.2uw2*.
7236         (i[3456]86-*-sysv5*): Recognize.
7237         * configure.tgt (i[3456]86-*-sco3.2v5*, i[3456]86-*-sco3.2v4*):
7238         Recognize.
7239
7240 Wed Mar 24 16:19:01 1999  Christopher Faylor <cgf@cygnus.com>
7241
7242         * MAINTAINERS: Add DJ Delorie (dj@cygnus.com) as the djgpp
7243         maintainer.
7244
7245 Wed Mar 24 21:19:57 1999  Andrew Cagney  <cagney@amy.cygnus.com>
7246
7247         * target.h (enum target_signal): Do not hardwire values of MACH
7248         signals.
7249
7250 1999-03-14  Ken Raeburn  <raeburn@raeburn.org>
7251
7252         * target.h (enum target_signal): Add TARGET_SIGNAL_INFO.
7253         * target.c (signals): Add SIGINFO description.
7254         (target_signal_from_host, target_signal_to_host): Translate
7255         SIGINFO to/from TARGET_SIGNAL_INFO.
7256
7257 Wed Mar 24 01:01:27 1999  Andrew Cagney  <cagney@sludge.cygnus.com>
7258
7259         * rs6000-tdep.c (rs6000_software_single_step): Change SIGNAL to
7260         unsigned int.
7261
7262         From Rodney Brown <rodneybrown@pmsc.com>
7263         * target.h (enum thread_control_capabilities), breakpoint.h (enum
7264         bptype), breakpoint.c (enum insertion_state_t): Strict ISO-C
7265         doesn't allow trailing comma in enum definition.
7266         
7267 Mon Mar 22 15:56:04 1999  Andrew Cagney  <cagney@b1.cygnus.com>
7268
7269         * blockframe.c (inside_entry_file, inside_entry_func): Convert #if
7270         CALL_DUMMY_LOCATION to if.
7271         * valops.c (call_function_by_hand): Ditto.
7272         * infcmd.c (run_stack_dummy): Ditto.
7273         * inferior.h (CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
7274         CALL_DUMMY_BREAKPOINT_OFFSET): Provide default.
7275
7276 1999-03-23  Jason Molenda  (jsm@bugshack.cygnus.com)
7277
7278         * hppa-tdep.c (pa_register_look_aside): Remove CPU_HPPA_RISC_20
7279         check, test for presence of struct save_state_t and the ss_wide 
7280         member directly.
7281         * configure.in:  Remove CPU_HPPA_RISC_20 test.  Add tests for
7282         HAVE_STRUCT_SAVE_STATE_T and HAVE_STRUCT_MEMBER_SS_WIDE.
7283         * acconfig.h: Add HAVE_STRUCT_SAVE_STATE_T HAVE_STRUCT_MEMBER_SS_WIDE.
7284         * configure, config.in: Regenerated.
7285
7286 Mon Mar 22 13:25:13 1999  Michael Snyder  <msnyder@cleaver.cygnus.com>
7287
7288         * infttrace.c (proc_wait): rename to ptrace_wait.
7289
7290 1999-03-18  Jim Blandy  <jimb@zwingli.cygnus.com>
7291
7292         * dwarf2read.c: Correctly recognize location expressions that
7293         designate LOC_REF_ARG arguments.  Doc fixes.
7294         (isderef): New global.  (Yuck.)
7295         (dwarf2_complex_location_expr): New complaint.
7296         (read_func_scope): Reject frame_base attributes that use the
7297         `deref' opcode as too complex.
7298         (new_symbol): If both regoff and isderef are set, and the base
7299         register is the frame pointer, then it's a LOC_REF_ARG argument.
7300         (decode_locdesc): Recognize the `deref' opcode in location
7301         expressions.  Complain if it's not the last op in the expression.
7302
7303         * config/fr30/tm-fr30.h (COERCE_FLOAT_TO_DOUBLE): #define this to
7304         be true, or else value_arg_coere won't respect the (accurate)
7305         information we have about whether a function is prototyped.
7306
7307 1999-03-17  Jim Blandy  <jimb@zwingli.cygnus.com>
7308
7309         * config/fr30/tm-fr30.h (STACK_ALIGN): Define this here, so
7310         calling functions by hand with odd-sized arguments doesn't munge
7311         the stack.
7312
7313 1999-03-17  Jason Molenda  (jsm@bugshack.cygnus.com)
7314
7315         * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define for Solaris
7316         hosts--gdb doesn't support this yet.
7317         * configure: Regenerated.
7318
7319 1999-03-16  Keith Seitz  <keiths@cygnus.com>
7320
7321         * remote.c (remote_binary_checked): New file global.
7322         (check_binary_download): New function to check if
7323         stub supports binary downloading that works with
7324         stubs that are not eight bit clean.
7325         (remote_write_bytes): Check for binary download capability
7326         and use it if available.
7327         Remove references to global remote_binary_length. What a hack.
7328         (putpkt_binary): New function.
7329         (putpkt): Call putpkt_binary.
7330         Use xor to escape trouble characters.
7331         * m32r-stub.c (bin2mem): Follow escape char convention change.
7332
7333 Tue Mar 16 01:11:33 1999  Andrew Cagney  <cagney@rhino.cygnus.com>
7334
7335         * target.h (struct target_ops), target.c (debug_to_query),
7336         remote.c (pack_hex_byte, remote_query): Promote char parameters to
7337         int.  Stops compile problems with pedantic ISO-C compilers.
7338         
7339 Tue Mar 16 15:29:04 1999  Stan Shebs  <shebs@andros.cygnus.com>
7340
7341         * go32-xdep.c: Remove, no longer used by anything.
7342         * Makefile.in: Remove references.
7343
7344         * jv-lang.c, jv-lang.h (java_primitive_type): Declare argument
7345         as int instead of char.
7346
7347 Mon Mar 15 11:42:43 1999  Andrew Cagney  <cagney@b1.cygnus.com>
7348
7349         * d10v-tdep.c (push_stack_item, pop_stack_item): New function.
7350         (d10v_push_arguments): Use.
7351         
7352         From Martin M. Hunt  <hunt@cygnus.com>:
7353         * d10v-tdep.c (d10v_push_arguments): When arguments
7354         must be pushed onto the stack, they go on in
7355         reverse order.
7356
7357 1999-03-16  Jim Blandy  <jimb@zwingli.cygnus.com>
7358
7359         * symtab.c (make_symbol_overload_list): Don't try to stuff minimal
7360         or partial symbols into the overload list; we don't know their
7361         types.  (Thanks to Rajiv Mirani.)
7362
7363 1999-03-15  Jason Molenda  (jsm@bugshack.cygnus.com)
7364
7365         * acinclude.m4 (--with-itclconfig, --with-itkconfig, --with-tixconfig):
7366         Fix whitespace so --help messages line up.
7367         * configure.in (--with-cpu): Fix capitalization for --help messages.
7368         * configure, aclocal.m4: Regenerated.
7369
7370 Mon Mar 15 11:39:03 1999  Ian Carmichael  <iancarm@cygnus.com>
7371
7372         Support building gdb w/o simulator:
7373         * configure.in: Support --disable-sim. Check for sim directory.
7374         * Makefile.in (IGNORE_SIM, IGNORE_SIM_OBS): New.
7375         * acconfig.h (WITH_SIM): Define.
7376         * configure, config.in: Regenerate.
7377
7378 Mon Mar 15 08:01:33 1999  Elena Zannoni  <ezannoni@cygnus.com>
7379
7380         Patch from Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
7381
7382         * top.c (read_command_lines): Reset control_level to 0.
7383         (define_command): Don't do it here.
7384
7385 Sun Mar 14 16:12:15 1999  Andrew Cagney  <cagney@rhino.cygnus.com>
7386
7387         * hppah-nat.c (store_inferior_registers): Delete extern
7388         registers[] declaration.
7389
7390 Sun Mar 14 19:17:30 1999  Andrew Cagney  <cagney@b1.cygnus.com>
7391
7392         * infrun.c (write_inferior_status_register): New function. Provide
7393         update access to an inf_status register buffer.  Only used by HP.
7394         * inferior.h (write_inferior_status_register): Add prototype.
7395
7396         * hppa-tdep.c (push_dummy_frame): Use
7397         write_inferior_status_register when hacking around a sleeping
7398         inferior.  Accidently fix byte-order problem.
7399
7400 Sun Mar 14 16:40:10 1999  Andrew Cagney  <cagney@b1.cygnus.com>
7401
7402         * config/pa/tm-hppa.h (PUSH_DUMMY_FRAME): Fix parameter. Address
7403         not needed.
7404
7405 Fri Mar 12 13:11:48 1999  Michael Snyder  <msnyder@cleaver.cygnus.com>
7406
7407         * remote.c (remote_write_bytes): fix 'X' packet protocol so that it
7408         can't overwrite the end of its buffer with escaped characters.
7409
7410 1999-03-12  Jim Blandy  <jimb@zwingli.cygnus.com>
7411
7412         Alpha patches from Richard Henderson:
7413
7414         * alpha-tdep.c (alpha_skip_prologue): Recognize subq.
7415
7416         * config/alpha/tm-alpha.h (REGISTER_NAMES): No f31, but fpcr.
7417         (FPCR_REGNUM): New.
7418         (REGISTER_CONVERTIBLE): Don't convert fpcr.
7419         (REGISTER_VIRTUAL_TYPE): Don't make fpcr a double.
7420
7421         * stabsread.c (define_symbol): Only consider live range extension
7422         if we have an open parenthesis.
7423
7424 1999-03-11  Jim Blandy  <jimb@zwingli.cygnus.com>
7425
7426         * monitor.c (monitor_fetch_register): Print RDEBUG info correctly
7427         when the register name is null.
7428
7429 Thu Mar 11 19:33:07 1999  Stan Shebs  <shebs@andros.cygnus.com>
7430
7431         * infrun.c (wait_for_inferior): Change #if DECR_PC_AFTER_BREAK
7432         uses to expressions, remove redundant extern decls.
7433
7434 Thu Mar 11 18:05:11 1999  Michael Snyder  <msnyder@cleaver.cygnus.com>
7435
7436         * infptrace.c (proc_wait): Rename to ptrace_wait.
7437         * inftarg.c (child_wait): call ptrace_wait instead of proc_wait.
7438         * inferior.h: Declare ptrace_wait instead of proc_wait.
7439
7440 Thu Mar 11 11:46:25 1999  Andrew Cagney  <cagney@amy.cygnus.com>
7441
7442         * breakpoint.c (create_solib_load_unload_event_breakpoint,
7443         create_fork_vfork_event_catchpoint, tcatch_command,
7444         create_exception_catchpoint, break_at_finish_at_depth_command_1,
7445         catch_fork_command_1, ep_skip_leading_whitespace,
7446         break_at_finish_command_1, catch_exec_command_1,
7447         catch_exception_command_1, stop_command, stopin_command,
7448         stopat_command, ep_parse_optional_filename,
7449         ep_find_event_name_end, ep_parse_optional_if_clause,
7450         catch_fork_command_1), stack.c (show_and_print_stack_frame_stub,
7451         print_stack_frame_stub, print_only_stack_frame_stub,
7452         backtrace_command_1, backtrace_full_command, func_command),
7453         valprint.c (print_decimal), source.c (print_source_lines_base):
7454         Add prototype.
7455
7456         * stack.c (print_stack_frame_stub, show_and_print_stack_frame_stub,
7457         print_only_stack_frame_stub): Make param void*.
7458
7459 Wed Mar 10 19:33:28 1999  Geoffrey Noer  <noer@cygnus.com>
7460
7461         * win32-nat.c: If old Cygwin Win32 API headers aren't being used,
7462          define some gdb-specific defines that shouldn't have been in the
7463          global headers.
7464
7465 Wed Mar 10 21:20:25 1999  Andrew Cagney  <cagney@b1.cygnus.com>
7466
7467         * findvar.c (registers, register_valid): Replace array with pointer.
7468         (build_findvar): New function.  Allocate space for REGISTERS and
7469         REGISTER_VALID.
7470         (_initialize_findvar): Call build_findvar.
7471         (_initialize_findvar): Register REGISTERS and REGISTER_VALID as
7472         arch dependant.
7473         
7474         * inferior.h (registers, register_valid): Replace array with
7475         pointer.
7476
7477         * inferior.h (struct inferior_status): Move definition from here.
7478
7479         * infrun.c (struct inferior_status): To here.
7480         (struct inferior_status): Change ``stop_registers'' and
7481         ``registers'' to pointers.
7482         (xmalloc_inferior_status, free_inferior_status): New functions.
7483         (restore_inferior_status): Call free_inferior_status.
7484         (save_inferior_status): Call xmalloc_inferior_status.
7485         (discard_inferior_status): New function, discard inf_status
7486         buffer.  Call free_inferior_status.
7487         
7488         * inferior.h (stop_registers): Replace array with pointer.
7489         * infrun.c (stop_registers): Update.
7490         (build_infrun): Initialize stop_registers.
7491         (_initialize_infrun): Call build_infrun.
7492         (_initialize_infrun): Register ``stop_registers'' as arch dependant.
7493
7494 Wed Mar 10 14:50:42 1999  Andrew Cagney  <cagney@amy.cygnus.com>
7495
7496         * alpha-tdep.c (alpha_linux_sigtramp_offset): Only compile when
7497         LINUXALPHA target. Hack.
7498
7499         * infrun.c (set_follow_fork_mode_command): Make static.  Add
7500         prototype.
7501         * tracepoint.c (add_register): Ditto.
7502         * valprint.c (strcat_longest): Comment out.  Does not appear to be
7503         used.
7504         * valops.c (find_method_list): Make static.  Add prototype.
7505         * thread.c (target_find_new_threads): Make static.  Add prototype.
7506         * stack.c (stack_publish_stopped_with_no_frame,
7507         select_and_maybe_print_frame): Comment out.  Does not appear to be
7508         used.
7509         (current_frame_command): Add prototype.
7510         * breakpoint.c (break_at_finish_command,
7511         break_at_finish_at_depth_command, tbreak_at_finish_command): Make
7512         static.  Add prototype.
7513         * findvar.c (read_relative_register_raw_bytes_for_frame): Ditto.
7514
7515 Wed Mar 10 23:38:54 1999  Andrew Cagney  <cagney@b1.cygnus.com>
7516
7517         * corefile.c (registers): Delete redundant variable declaration.
7518         * inferior.h (run_stack_dummy): Change array argument to pointer.
7519         * infcmd.c (run_stack_dummy): Update.
7520         * value.h (value_being_returned): Change RETBUF to a pointer.
7521         * values.c (value_being_returned): Update.
7522
7523 Wed Mar 10 11:08:16 1999  Andrew Cagney  <cagney@amy.cygnus.com>
7524
7525         * source.c (list_command): GCC suggested explicit braces to avoid
7526         ambiguous `else'.
7527
7528         * jv-typeprint.c: Include "c-lang.h".
7529         * Makefile.in (jv-typeprint.o): Add dependency.
7530         * jv-valprint.c: Include "gdbcore.h", "annotate.h".
7531         * Makefile.in (jv-valprint.o): Add dependencies.
7532         * objfiles.c: Include "breakpoint.h".
7533         * Makefile.in (objfiles.o): Add dependency.
7534         * main.c: Include <unistd.h>.
7535         * parse.c: Include <ctype.h>.
7536         * remote.c: Include <ctype.h>.
7537         * ser-tcp.c: Include <unistd.h>.
7538         * ax-general.c: Include "value.h".
7539         * Makefile.in (ax-general.o): Add dependency.
7540
7541         * alpha-tdep.c (alpha_push_arguments): Make ``i'' an int instead
7542         of a register.
7543         * frame.h (show_and_print_stack_frame): Add function prototype.
7544         * language.h (language_enum): Add function prototype.
7545         * value.h (find_overload_match): Add function prototype.
7546
7547         * defs.h, utils.c (subset_compare): Rename subsetCompare. Add
7548         prototype.
7549         * stack.c (backtrace_command): Update.
7550
7551 Wed Mar 10 13:58:36 1999  Andrew Cagney  <cagney@b1.cygnus.com>
7552
7553         * configure.in (AC_CHECK_HEADERS): Check for <sys/select.h>
7554         * configure, config.in: Re-generate.
7555         * inflow.c: Conditionally include <sys/select.h>.
7556
7557 Wed Mar 10 13:44:38 1999  Andrew Cagney  <cagney@b1.cygnus.com>
7558
7559         * frame.h (struct dummy_frame): Move from here.
7560         * blockframe.c (struct dummy_frame): To here.
7561
7562         * blockframe.c (struct dummy_frame): Replace ``regs'' with pointer
7563         ``registers''.
7564         (generic_pop_dummy_frame): Free it.
7565         (generic_push_dummy_frame): Allocate dummy frame register buffer.
7566
7567 Wed Mar 10 11:08:16 1999  Andrew Cagney  <cagney@amy.cygnus.com>
7568
7569         * thread.c (_initialize_thread): Delete redundant ``extern struct
7570         cmd_list_element *cmdlist''.
7571         * printcmd.c (print_command_1): Ditto for ``objectprint'';
7572
7573 1999-03-09  Stan Shebs  <shebs@andros.cygnus.com>
7574
7575         * MAINTAINERS: New file, list of maintainers and areas they
7576         maintain.
7577
7578 1999-03-09  Rodney Brown  <RodneyBrown@pmsc.com>
7579
7580         Get working on UnixWare 2.1.1.
7581         * acconfig.h: Update for defines for procfs.c.
7582         * configure.in: Identify defines for procfs.c.
7583         * configure.host: i386-*-sysv4.2uw2* => i386v42mp
7584         * configure.tgt:  i386-*-sysv4.2uw2* => i386v42mp
7585         * configure, config.in: Regenerate.
7586         * procfs.c: Rename HAVE_NO_PRRUN_T to HAVE_PRRUN_T (autoconf
7587         standard), wrap UNIXWARE difference in THE_PR_LWP macro for
7588         legibility.
7589         * config/i386/tm-i386v42mp.h: Remove HAVE_PSTATUS_T,
7590         HAVE_NO_PRRUN_T; now set by configure.
7591
7592 Tue Mar  9 16:29:24 1999  Andrew Cagney  <cagney@b1.cygnus.com>
7593
7594         * i386-tdep.c (gdb_print_insn_i386): Abort when disassembly_flavor
7595         undefined..
7596
7597         * fr30-tdep.c (_initialize_fr30_tdep): Add prototype.  Fix
7598         coding style.
7599
7600         * target.c (debug_to_enable_exception_callback,
7601         debug_to_get_current_exception_event): Return result of call to
7602         debug_target().
7603
7604 1999-03-09  Jim Blandy  <jimb@zwingli.cygnus.com>
7605
7606         Another HURD fix from Mark Kettenis:
7607         * gnu-nat.c: Include <string.h>.  Remove declaration of strerror.
7608         Include <bits/waitflags.h> instead of <waitflags.h> and define
7609         _SYS_WAIT_H to prevent the warning that we should not include it.
7610         (gnu_create_inferior): Change return type of attach_to_child to
7611         void.  Do not return INFERIOR_PID.
7612         (gnu_pid_to_exec_file): Change return type to char *.
7613         Return NULL.
7614
7615         Fix for the HURD from Mark Kettenis:
7616         * configure.in: Add AC_PROG_AWK.  Needed by the machine-dependent
7617         makefile fragments for the Hurd.
7618         * Makefile.in (AWK): Add.  Set by configure.
7619         * configure: Regenerated.
7620
7621 1999-03-08  Jason Molenda  (jsm@bugshack.cygnus.com)
7622
7623         * infttrace.c (hppa_get_process_events): Removed. Function only
7624         usable on HPUX 10 and above.  It is not called by any other part
7625         of GDB.
7626         * hppah-nat.c (hppa_get_process_events): Ditto.
7627         (child_pid_to_exec_file): Only call ptrace with
7628         PT_GET_PROCESS_PATHNAME if that symbol has been defined.
7629         * config/pa/nm-hppah.h: Don't set up prototypes et al for 
7630         hppa_get_process_events.
7631
7632         * config/pa/hppahpux.mh (TERM_LIB): Do not initialize, let autoconf
7633         determine best library automatically.
7634         * config/pa/hpux1020.mh: Ditto.
7635         * config/pa/hpux1100.mh: Ditto.
7636         * configure.in (TERM_LIB): Also check for libHcurses.
7637         * configure: Regenerated.
7638
7639 Thu Mar  4 17:16:04 1999  Michael Snyder  <msnyder@cleaver.cygnus.com>
7640
7641         * m32r-stub.c: add support for crc "Compare" command.
7642
7643 1999-03-04  Jim Blandy  <jimb@zwingli.cygnus.com>
7644
7645         * fr30-tdep.c (fr30_store_return_value): Allocate zeroes
7646         dynamically, to save BSS space, and to remove assumptions about
7647         the size of the largest value we'll return.
7648
7649         * config/fr30/tm-fr30.h (fr30_store_return_value): Use PARAMS in
7650         prototype.
7651
7652 Thu Mar  4 08:37:35 1999  Andrew Cagney  <cagney@b1.cygnus.com>
7653
7654         * sh3-rom.c (sh3_supply_register, sh3_supply_register),
7655         mips-tdep.c (mips_push_arguments), m32r-rom.c
7656         (m32r_upload_command), m32r-tdep.c (decode_prologue), monitor.c
7657         (longlong_hexchars), tracepoint.c (validate_actionline,
7658         read_actions), mdebugread.c
7659         (parse_symbol), jv-typeprint.c
7660         (java_type_print_base, java_type_print_base), mdebugread.c
7661         (parse_symbol), top.c (source_command), utils.c
7662         (floatformat_to_doublest): GCC suggest explicit braces to avoid
7663         ambiguous `else'.
7664         
7665         * tracepoint.c (map_args_over_tracepoints, trace_actions_command),
7666         m32r-rom.c (m32r_supply_register), win32-nat.c
7667         (handle_output_debug_string, child_continue), i960-tdep.c
7668         (pop_frame), m32r-rom.c (m32r_upload_command): GCC suggested
7669         parentheses around assignment used as truth value.
7670
7671         * remote-sds.c (sds_wait), monitor.c (monitor_fetch_register),
7672         ser-e7kpc.c, (dosasync_write), arc-tdep.c (arc_get_frame_setup):
7673         GCC suggested parentheses around operands.
7674
7675         * c-typeprint.c (c_type_print_base): GCC suggested enclosing
7676         "while" expression in paren.
7677
7678 Wed Mar  3 18:14:33 1999  Andrew Cagney  <cagney@chook.cygnus.com>
7679
7680         * sol-thread.c (save_inferior_pid): Cast the saved pid to void*.
7681         (restore_inferior_pid): Takes void* as required by make_cleanup.
7682         Casts pid back to an int.
7683
7684         * procfs.c (make_cleanup_close_proc_file,
7685         close_proc_file_cleanup): Create a proc_file cleanup.
7686         (info_proc): Use.
7687
7688         * defs.h (make_cleanup_freeargv): Helper function.  Establish
7689         cleanup using freeargv.  Can not just typecast/pass freeargv as it
7690         violates ISO-C.
7691         * utils.c (do_freeargv): Helper.
7692         (make_cleanup_freeargv): New function.
7693
7694         * symmisc.c (maintenance_print_symbols,
7695         maintenance_print_psymbols, maintenance_print_msymbols), symfile.c
7696         (symbol_file_command), stack.c (backtrace_command), remote-sim.c
7697         (gdbsim_create_inferior, gdbsim_open), remote-mips.c
7698         (common_open), procfs.c (info_proc), infrun.c (handle_command,
7699         xdb_handle_command), exec.c (exec_file_attach): Call
7700         make_cleanup_freeargv.
7701
7702 1999-03-03  James Ingham  <jingham@cygnus.com>
7703
7704         * i386-tdep.c (_initialize_i386_tdep): Set the inital value for
7705         disassembly flavor at startup, rather than hardcoding it.
7706
7707 1999-03-03  Jim Blandy  <jimb@zwingli.cygnus.com>
7708
7709         Put return values in the right place.
7710         * fr30-tdep.c (fr30_store_return_value): New function.
7711         * config/fr30/tm-fr30.h (STORE_RETURN_VALUE): Call
7712         fr30_store_return_value.
7713
7714 Wed Mar  3 18:10:55 1999  Andrew Cagney  <cagney@chook.cygnus.com>
7715
7716         * gdbtypes.c (virtual_base_list_aux): Return void.  Add prototype.
7717
7718         * breakpoint.c (map_catch_names): Comment out unused function.
7719
7720 1999-03-02  Jason Molenda  (jsm@bugshack.cygnus.com)
7721
7722         * hppa-tdep.c (pa_register_look_aside): Only refer to save_state_t
7723         structure on PA 2.0 systems.
7724
7725 1999-03-02  Stan Shebs  <shebs@andros.cygnus.com>
7726
7727         From Gary Thomas  <gthomas@cygnus.co.uk>:
7728         * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT,
7729         THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Use illegal instruction
7730         instead of SWI 24.
7731         * config/arm/tm-arm.h (CALL_DUMMY): Ditto.
7732         (IN_SIGTRAMP): Define.
7733
7734 1999-03-02  Nick Clifton  <nickc@cygnus.com>
7735
7736         * findvar.c (store_address): Delete incorrect big endian
7737         code. 
7738
7739 Tue Mar  2 18:02:42 1999  Andrew Cagney  <cagney@chook>
7740
7741         * configure.in (gdb_cv_os_cygwin): Compat.  Continue to reconize
7742         __CYGWIN32__.
7743
7744 1999-03-01  Jason Molenda  (jsm@bugshack.cygnus.com)
7745
7746         * configure.in: Move setting of gdb_cv_os_cygwin to before
7747         setting of TERM_LIB.  Check for __CYGWIN__ instead of __CYGWIN32__.
7748         * configure: Regenerated.
7749
7750 1999-03-01  DJ Delorie  <dj@cygnus.com>
7751
7752         * configure.in: Change -cygwin32* to -cygwin*.
7753         * configure: Ditto.
7754
7755 1999-02-25  Stan Shebs  <shebs@andros.cygnus.com>
7756
7757         * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME,
7758         SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK,
7759         SOLIB_CREATE_CATCH_UNLOAD_HOOK): Supply default definitions.
7760         * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Ditto.
7761
7762 1999-02-25  Keith Seitz  <keiths@cygnus.com>
7763
7764         * corelow.c (core_close): Clear out solib state before
7765         closing the bfd associated with the core file.
7766         * solib.c (clear_solib): Mention that clear_solib requires
7767         an open BFD in order for disable_breakpoints_in_shlibs to
7768         determine whether breakpoints live in shared libraries.
7769
7770 1999-02-24  Jason Molenda  (jsm@bugshack.cygnus.com)
7771
7772         * configure.in: Set CPU_HPPA_RISC_20 if the host CPU is a PA 2.0 
7773         processor.
7774         * acconfig.h: Add CPU_HPPA_RISC_20
7775         * config.in, configure: Regenerated.
7776         * hppa-tdep.c (pa_register_look_aside): Only refer to new 
7777         structure elements if we are on a PA2.0 system.
7778         * defs.h: Include limits.h.
7779
7780 Tue Feb 23 14:37:08 1999  Michael Snyder  <msnyder@cleaver.cygnus.com>
7781
7782         * infrun.c (wait_for_inferior): Check scheduler_locking state 
7783         before resuming after a thread-specific breakpoint.
7784
7785 1999-02-23  Jim Blandy  <jimb@zwingli.cygnus.com>
7786
7787         * aclocal.m4, config.in, configure: Regenerated with latest
7788         autotools.
7789
7790 Mon Feb 22 12:32:19 1999  Per Bothner  <bothner@cygnus.com>
7791
7792         * jv-valprint.c (java_val_print):  Restore line that somehow got lost.
7793
7794         * jv-valprint.c (java_print_value_fields):  Check for NULL type.
7795
7796 1999-02-21  Jim Blandy  <jimb@zwingli.cygnus.com>
7797
7798         * tm-h8500.h, i386lynx-nat.c: Removed.  These files are long
7799         dead; it seems that they only appeared due to some CVS weirdness.
7800         If they appear again, we may need to distribute garlic and holy
7801         water.
7802
7803 1999-02-19  Jason Molenda  (jsm@bugshack.cygnus.com)
7804
7805         * configure.in (TERM_LIB): Move checking for TERM_LIB, substituting.
7806         * configure: Regenerated.
7807
7808 1999-02-19 Robert Hoehne (robert.hoehne@gmx.net)
7809
7810         * configure.host (i[3456]86-*-msdosdjgpp*): New host.
7811         * configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
7812         * go32-nat.c: New file, native DJGPP support.
7813         * config/i386/go32.mh: Rewrite for DJGPP (go32) host.
7814         * config/i386/go32.mt: New file, DJGPP (go32) target.
7815         * config/i386/nm-go32.h: New file.
7816         * config/i386/tm-go32.h: New file.
7817         * config/i386/xm-go32.h: Rewritten for current DJGPP.
7818
7819 1999-02-18  Jason Molenda  (jsm@bugshack.cygnus.com)
7820
7821         * reply_mig_hack.awk, config/nm-gnu.h, config/alpha/nm-linux.h
7822         config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h
7823         config/i386/nm-i386sco5.h, config/i386/tm-fbsd.h, config/i386/tm-i386.h
7824         config/powerpc/nm-aix.h, config/powerpc/tm-macos.h
7825         config/powerpc/tm-ppc-aix.h, config/powerpc/xm-aix.h
7826         config/rs6000/tm-rs6000-aix4.h, testsuite/gdb.chill/tests1.ch
7827         testsuite/gdb.chill/tests2.ch, testsuite/gdb.chill/tests2.exp:
7828         Update FSF address in copyright notices.
7829
7830 1999-02-18  Jason Molenda  (jsm@bugshack.cygnus.com)
7831
7832         * configure.in: Quote "$GCC" correctly.
7833         * configure: Regenerated.
7834
7835 1999-02-18  Jim Blandy  <jimb@zwingli.cygnus.com>
7836
7837         * dbxread.c (elfstab_build_psymtabs): Don't assume that there's a
7838         section named ".text", which has all the code in it.  Instead, look
7839         at all the sections in the file with the `code' flag set.
7840         (find_text_range): New function, that does all the work.
7841
7842 Thu Feb 18 17:50:45 1999  Andrew Cagney  <cagney@b1.cygnus.com>
7843
7844         * mips-tdep.c (FP_REGISTER_DOUBLE): Conditionally define.
7845
7846 Fri Jan 29 16:51:11 1999  Andrew Cagney  <cagney@chook.cygnus.com>
7847
7848         * mips-tdep.c (return_value_location): New function. Merge/rewrite
7849         of return-value code in mips_extract_return_value,
7850         mips_store_return_value.  Stop buffer overflow when 64 bit value
7851         in 32 bit registers.  Extract 64bit float from 32 bit register
7852         pair of correct order.
7853         (mips_extract_return_value, mips_store_return_value): Call
7854         return_value_location.  For store, ensure that remainder of
7855         register is zero.
7856         
7857 Thu Jan 28 18:58:02 1999  Andrew Cagney  <cagney@chook.cygnus.com>
7858
7859         From John Metzler <jmetzler@cygnus.com>:
7860         * mips-tdep.c (struct gdbarch_tdep): Add mips_saved_regsize.
7861         (MIPS_SAVED_REGSIZE): Define.
7862         (mips_find_saved_regs, read_next_frame_reg, mips_pop_frame):
7863         Read/write MIPS_SAVED_REGSIZE bytes of register on stack instead
7864         of MIPS_REGSIZE.
7865         (mips_gdbarch_init): Initialize mips_saved_regsize.
7866
7867         * mips-tdep.c (mips_frame_saved_pc, mips16_heuristic_proc_desc,
7868         mips_push_arguments, mips_push_dummy_frame,
7869         mips_use_struct_convention): Ditto.  For MIPS_SAVED_REGSIZE <
7870         REGISTER_RAW_SIZE, handle little/big endian issues from only using
7871         half the register.
7872         (STACK_ARGSIZE): Default to MIPS_SAVED_REGSIZE instead of
7873         MIPS_REGSIZE.
7874
7875         * mips-tdep.c (struct gdbarch_tdep, FP_REGISTER_DOUBLE,
7876         mips_gdbarch_init): Apply similar changes.  Add
7877         mips_fp_register_double to struct.
7878
7879 Wed Feb 17 10:10:27 1999  Stu Grossman  <grossman@babylon-5.cygnus.com>
7880
7881         * gdbtypes.h (get_discrete_bounds):  Remove duplicate decl.
7882
7883         * jv-typeprint.c (java_type_print_base):  Change fputs => fputs_filtered.
7884         
7885 Mon Jan 25 18:30:57 1999  Per Bothner  <bothner@cygnus.com>
7886
7887         * jv-lang.h (JAVA_OBJECT_SIZE):  Change from hard-wired constant.
7888         (java_primitive_type_from_name, get_java_object_header_size):  Declare.
7889         * jv-lang.c (java_class_from_object):  Use get_java_object_type.
7890         * jv-lang.c:  Update Class field names:  dtable->vtable,
7891         msize->method_count, nfields->field_count, bfsize->size_in_bytes,
7892         nmethods->method_count.
7893         (type_from_class):  Demangle array type names.
7894         (java_link_class_type):  Array type names are now demangled.
7895         (get_java_object_type):  If not defined yet, try looking it up.
7896         (get_java_object_header_size):  New function.
7897         (java_primitive_type_from_name):  New function.
7898         (java_demangled_signature_length, java_demangled_signature_copy): New.
7899         (java_demangle_type_signature):  Re-implement using above functions.
7900         (evaluate_subexp_java):  For UNOP_IND, call evaluate_subexp_java
7901         to evaluate subexp (not evaluate_subexp_standard).
7902         For BINOP_SUBSCRIPT update for new array type naming scheme.
7903         * jv-valprint.c (java_value_print):  Use java_class_from_object.
7904         Update array printing to new array type naming convention.
7905         (java_val_print):  Doing check_typedef when printing a pointer is
7906         is a waste of effort.  Also, handle TYPE_CODE_INT, to make sure
7907         Java bytes as not printed as C chars.
7908
7909 Fri Jan  8 16:58:22 1999  Stu Grossman  <grossman@babylon-5.cygnus.com>
7910
7911         * blockframe.c (find_pc_sect_partial_function):  Search full symtabs as
7912         a last ditch effort (after the partial & minimal symtabs).
7913         * defs.h utils.c:  Fixup prototypes for vprintf_filtered,
7914         vfprintf_filtered, vfprintf_unfiltered and vprintf_unfiltered to return
7915         ints to match their standard equivalents.
7916         * defs.h symtab.c top.c:  Create skip_prologue_hook to allow Java to
7917         control the prologue skipping process.
7918         * jv-typeprint.c (java_type_print_base):  Remove extern for
7919         jv_class_demangle, add new arg for objfile (NULL).
7920         * symtab.h:  Remove struct sourcevector and struct source.  Definately
7921         not needed.
7922         * values.c (value_virtual_fn_field):  Fixes code to handle new vtable
7923         debug info format.  Patch from marka.
7924         
7925 Wed Dec 16 23:11:25 1998  Stu Grossman  <grossman@fencer.cygnus.com>
7926
7927         * jv-lang.c (java_class_from_object java_class_is_primitive
7928         is_object_type):  Change dtable to vtable.
7929         * (java_primitive_type):  Change arg to type char.
7930         * (_initialize_java_language):  Make java_char_type be unsigned.
7931         * jv-lang.h:  Fixup prototypes.
7932         
7933 Mon Dec  7 19:02:15 1998  Stu Grossman  <grossman@babylon-5.cygnus.com>
7934
7935         * jv-valprint.c (java_value_print):  Fix printing of values where
7936         run time type != compile time type.
7937
7938 Fri Dec  4 15:23:38 1998  Stu Grossman  <grossman@fencer.cygnus.com>
7939
7940         * Makefile.in:  Whack out m2-typeprint.c.
7941         * c-typeprint.c (c_type_print_varspec_suffix) typeprint.h:  Make this
7942         global.  It's needed by Java.
7943         * (c_type_print_base):  Whack prefix off of qualified method names
7944         (names with name spaces).
7945         * gdbtypes.h (struct cplus_struct_type):  Add bits for Java attributes.
7946         Shrink voffset
7947         to 16 bits to compensate for added bits above (hopefully this is still
7948         enough).
7949         * Add new accessor macros (TYPE_FND_FIELD_PUBLIC, ...) for all new
7950         attribute bits.
7951         * jv-typeprint.c (java_type_print_base):  Fix printing of method
7952         attributes.  Handle JVM style manglings.
7953         * (java_print_type):  Enable code type print varspec_suffix to allow
7954         array indices to print out.
7955         * jv-valprint.c (java_val_print):  Minor formatting.
7956         * m2-lang.c (m2_language_d):  Change m2_print_type to c_print_type.
7957         * stabsread.c (read_member_functions):  Save public and static attributes.
7958         
7959 Wed Feb 17 15:32:57 1999  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
7960
7961         * breakpoint.c (watch_command_1): Reformat comment.
7962
7963         * c-typeprint.c (c_type_print_base): Reformat comments.
7964
7965 1999-02-17  Jim Blandy  <jimb@zwingli.cygnus.com>
7966
7967         * Makefile.in (VERSION): Bump version to 4.17.2.
7968
7969 Tue Feb 16 15:48:20 1999  Edith Epstein  <eepstein@sophia.cygnus.com>
7970  
7971         * config/pa/nm-hppah.h: Added prototype declarations for
7972         hppa_enable_page_protection_events and 
7973         hppa_disable_page_protection_events.
7974  
7975         * inftarg.c (child_wait): Fixed code that checks whether
7976         or not the target program has done a fork/vfork. 
7977         related_pid  does not have a value unless the target 
7978         program has forked/vforked.
7979  
7980         * infttrace.c (hppa_insert_hw_watchpoint): Make sure that
7981         function always returns a value.
7982         (hppa_remove_hw_watchpoint): Make sure that function always
7983         returns a value.
7984
7985 Tue Feb 16 06:31:58 1999  Keith Seitz  <keiths@cygnus.com>
7986
7987         * config/powerpc/tm-ppc-eabi.h: Do not define PC_IN_CALL_DUMMY,
7988         let the generic call dummy infrastructure do it.
7989
7990 Sun Feb 14 18:21:08 1999  Mark Alexander  <marka@cygnus.com>
7991
7992         * config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
7993         coffread.c will correctly handle char or short function parameters.
7994
7995 1999-02-11  Jason Molenda  (jsm@bugshack.cygnus.com)
7996
7997         * configure, aclocal.m4: Regenerate with correct version of aclocal.
7998
7999 1999-02-10  Syd Polk  <spolk@cygnus.com>
8000
8001         * acinclude.m4: Fix for new location of itclConfig.sh and itkConfig.sh.
8002         * aclocal.m4: Regnerate.
8003         * configure: Regenerate.
8004
8005 1999-02-10  Jason Molenda  (jsm@bugshack.cygnus.com)
8006
8007         * demangle.c: Fix comments to mention "set demangle-style"
8008         instead of "set demangle".
8009         Run through indent to fix minor indenting problems.
8010
8011 Wed Feb 10 17:53:09 1999  Bob Manson  <manson@charmed.cygnus.com>
8012
8013         * i386-tdep.c (gdb_print_insn_i386): Add missing returns.
8014
8015 Wed Feb 10 13:17:21 1999  Stan Shebs  <shebs@andros.cygnus.com>
8016
8017         Declare Gould configuration obsolete:
8018         * configure.host, configure.tgt: Comment out Gould configs.
8019         * Makefile.in: Comment out Gould-related actions.
8020         * gould-xdep.c, gould-tdep.c, config/gould/*: Comment out.
8021         * NEWS: Mention obsolete status.
8022
8023 1999-02-09  DJ Delorie  <dj@cygnus.com>
8024
8025         * sparcl-tdep.c: UDP download works in cygwin
8026
8027 1999-02-08  Jason Molenda  (jsm@bugshack.cygnus.com)
8028
8029         * gnu-regex.c: Check ENABLE_NLS instead of HAVE_LIBINTL_H.
8030         * configure.in: Don't check for libintl.h.
8031         * configure, config.in: Regenerated.
8032
8033 Mon Feb  8 18:10:50 1999  Stan Shebs  <shebs@andros.cygnus.com>
8034
8035         * NEWS: Mention new X packet and PowerPC variant support.
8036
8037 1999-02-08  Nick Clifton  <nickc@cygnus.com>
8038
8039         * configure.host: Add support for StrongARM host.
8040         * configure.tgt: Add support for StrongARM target.
8041
8042 Mon Feb  8 12:05:05 1999  David Taylor  <taylor@texas.cygnus.com>
8043
8044         * dsrec.c (make_srec): Cast targ_addr to int in call to sprintf
8045         otherwise on big endian machine with a bfd_vma of 64 bits,
8046         *everything* gets loaded at location 0.
8047
8048 Mon Feb  7 10:05:43 1999  Frank Ch. Eigler  <fche@cygnus.com>
8049
8050        * infrun.c (wait_for_inferior): Allow SIGTRAP to be "pass"ed
8051        to target program.
8052
8053 Fri Feb  5 16:46:14 1999  Stan Shebs  <shebs@andros.cygnus.com>
8054
8055         * NEWS: Add mentions of various new things.
8056
8057 Thu Feb  4 00:19:14 1999  Christopher Faylor <cgf@cygnus.com>
8058
8059         * configure.in: Move termcap determination later in the
8060         file to catch setting of cygwin flag.
8061         * configure: Regenerate.
8062
8063 Wed Feb  3 14:16:38 1999  Christopher Faylor <cgf@cygnus.com>
8064
8065         * config/i386/cygwin.mh: Move TERMCAP test code to configure.in.
8066         * configure.in: Treat libtermcap.a detection as a special case
8067         when hosting on cygwin.
8068         * configure: Regenerate.
8069
8070 1999-02-03  Keith Seitz  <keiths@cygnus.com>
8071  
8072         * remote.c (remote_binary_download, remote_binary_length): New
8073         static globals for dealing with binary transmissions.
8074         (remote_write_bytes): Add support for binary downloads
8075         by shadowing the "M" packet with a new "X" packet. This
8076         defaults to ON; if the stub does not understand this, it
8077         will fall back to using "M".
8078         (putpkt): Add support for binary downloading.
8079         * monitor.c (monitor_expect): The mon2000 monitor
8080         on the MSA2000 will also emit random DC1/DC3 chars.
8081         * m32r-stub.c: Change all char's to unsigned char's
8082         to support binary downloading.
8083         (handle_exception): Add support for binary downloading
8084         via a new "X" packet.
8085         (getpacket): Do NOT strip eighth bit of incoming chars.
8086         Watch out for escaped characters in the incoming stream.
8087         (putpacket): Do NOT strip eighth bit of incoming chars.
8088         (bin2mem): New function to write binary data directly to
8089         memory.
8090         * m32r-rom.c: Add new "mon2000" target.
8091
8092 Tue Feb  2 18:40:29 1999  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
8093
8094         * hp-psymtab-read.c (hpread_build_psymtabs): Coerce first arg
8095         passed to make_cleanup to the correct type.
8096         (hpread_quick_traverse): Change fifth arg to call to 
8097         hpread_end_psymtab to be 0. 
8098         Compare CURR_MODULE_END to 0 rather than NULL.
8099         Get rid of ifdef'ed out code.
8100         (scan_procs): Get rid of ifdef'ed out code.
8101
8102         * somread.c (som_symfile_read): Coerce first argument passed to
8103         make_cleanup to the correct type.
8104
8105 Tue Feb  2 17:36:29 1999  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
8106
8107         * hp-psymtab-read.c (do_pxdb): New function. Check whether the
8108         file needs to be processed by pxdb (an HP debug info massaging
8109         tool), if so call it.
8110         (hpread_build_psymtabs): Initialize scan_start to 0 and
8111         simplify flow of control.
8112
8113         * somread.c (som_symfile_read): Add call to do_pxdb (), 
8114         in hp-psymtab-read.c.
8115
8116         * symfile.c (symbol_file_add): Remove ifdef'ed out HPUX specific
8117         code.
8118         (symfile_bfd_open): Remove HPUXHPPA ifdef'ed code. Code is now
8119         in hp-psymtab-read.c.
8120
8121 1999-02-02  Martin Hunt  <hunt@cygnus.com>
8122
8123         * printcmd.c (print_scalar_formatted): Use strcat to concat all
8124         the output together before calling fprintf_filtered().
8125
8126 1999-02-01  Jason Molenda  (jsm@bugshack.cygnus.com)
8127
8128         * configure.in: Require autoconf 2.13.
8129         (AM_EXEEXT): Replace with new AC_EXEEXT.
8130         * acinclude.m4: Move itcl header macros from aclocal.m4 to here.
8131         * aclocal.m4: Regenerated.
8132         * configure: Regenerated.
8133
8134 1999-02-01  Jim Blandy  <jimb@zwingli.cygnus.com>
8135
8136         Allow PPC users to select which PPC/RS6000 variant they're
8137         debugging at run-time.  At the moment, the only thing this affects
8138         is the set of registers visible.
8139         * config/rs6000/tm-rs6000.h (REGISTER_NAME): Define this as a call
8140         to the function rs6000_register_name.
8141         (rs6000_register_name): Include extern decl.
8142         (NUM_REGS): Bump to 183.  What's the right way to do this?
8143         (FIRST_UISA_SP_REGNUM, LAST_UISA_SP_REGNUM): Renamed from
8144         FIRST_SP_REGNUM, LAST_SP_REGNUM.
8145         (REGISTER_BYTES): Recompute this.
8146         * rs6000-tdep.c: Renamed all uses of FIRST_SP_REGNUM and
8147         LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
8148         some concomitant formatting changes.
8149         #include "gdbcmd.h", so we can define commands here.
8150         (struct variant): New structure.
8151         (COMMON_UISA_REG_NAMES, PPC_UISA_SPR_NAMES, PPC_SEGMENT_REG_NAMES,
8152         PPC_32_OEA_SPR_NAMES, num_registers): New macros. 
8153         (register_names_rs6000, register_names_uisa, register_names_403,
8154         register_names_403GC, register_names_505, register_names_860,
8155         register_names_601, register_names_602, register_names_603,
8156         register_names_604, register_names_750, variants): New variables.
8157         (rs6000_register_name, install_variant, find_variant_by_name,
8158         install_variant_by_name, list_variants, show_current_variant,
8159         set_processor, show_processor): New functions.
8160         (_initialize_rs6000_tdep): Define new commands `set processor' and
8161         `show processor', and call install_variant_by_name to set the
8162         default variant.
8163         * rs6000-nat.c: Renamed all uses of FIRST_SP_REGNUM and
8164         LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
8165         some concomitant formatting changes.
8166         * configure.in: Accept the `--with-cpu' flag, to specify a default
8167         processor variant.
8168         * acconfig.h: Provide a blurb for TARGET_CPU_DEFAULT, which is set
8169         by configure's `--with-cpu' flag.
8170         * config.in, configure: Regenerated.
8171
8172 Sun Jan 31 15:24:24 1999  Stan Shebs  <shebs@andros.cygnus.com>
8173
8174         * buildsym.h, buildsym.c: Convert to ANSI-only.
8175
8176         * buildsym.h, buildsym.c: Reformat to standard.
8177
8178         * buildsym.c (merge_symbol_lists): Remove unused variable.
8179         (_initialize_buildsym): Remove, does nothing.
8180
8181 1999-01-31 J.T. Conklin  <jtc@redbacknetworks.com>
8182
8183         * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
8184         sparcl-stub, sparclet-stub.c: Change declaration of putDebugChar
8185         to include explicit void return type as per documentation.  Fix up
8186         occasions where stubs erroneously checked return type.
8187
8188 Sun Jan 31 13:18:33 1999  Stan Shebs  <shebs@andros.cygnus.com>
8189
8190         From J.T. Conklin <jtc@redbacknetworks.com>:
8191         * remote.c (remote_query): Fix tipo.
8192
8193 Fri Jan 29 15:25:09 1999  Stan Shebs  <shebs@andros.cygnus.com>
8194
8195         * configure.tgt (v850): Add wildcard to match.
8196
8197 Fri Jan 29 16:44:01 1999  Edith Epstein  <eepstein@sophia.cygnus.com>
8198
8199         * inferior.h: Ran indent.
8200
8201         * fork-child.c: Ran indent.
8202
8203         * infrun.c : Ran indent.
8204
8205 Fri Jan 29 12:57:34 1999  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
8206
8207         * infrun.c (_initialize_infrun): Do not stop or print anything
8208         when a SIGWINCH is received.
8209
8210         * Makefile.in (m2-exp.tab.c): Use YACC not BISON.
8211         (f-exp.tab.c): Ditto.
8212         (jv-exp.tab.c): Ditto.
8213         (c-exp.tab.c): Ditto.
8214         (YACC): Define as @YACC@.
8215
8216 1999-01-29  Martin Hunt  <hunt@cygnus.com>
8217
8218         Changes from Keith Seitz  <keiths@cygnus.com>
8219         * valops.c (value_assign): Add calls to register_changed_hook and
8220         memory_changed_hook to inform UIs that the user has changed
8221         the target's registers/memory.
8222         * findvar.c (write_register_gen): Remove call to pc_changed_hook.
8223         * defs.h: Remove declaration for pc_changed_hook and
8224         add declarations for register_changed_hook and
8225         memory_changed_hook.
8226         * top.c: Ditto.
8227
8228 1999-01-29  Mark Alexander  <marka@cygnus.com>
8229
8230         * procfs.c (wait_fd): Handle deleted threads correctly.
8231
8232 1999-01-28  Jason Molenda  (jsm@bugshack.cygnus.com)
8233
8234         * utils.c (init_page_info): Force window size if running under emacs.
8235
8236 1999-01-27  James Ingham  <jingham@cygnus.com>
8237
8238         * typeprint.c (whatis_exp): Remove static declaration.
8239
8240 Wed Jan 27 16:50:25 1999  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
8241
8242         * hp-psymtab-read.c: Reformat using indent.
8243
8244 Wed Jan 27 13:20:25 1999  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
8245
8246         * hp-psymtab-read.c: Reformat comments, update copyright.
8247
8248 Wed Jan 27 15:09:22 1999  Andrew Cagney  <cagney@chook.cygnus.com>
8249
8250         * mips-tdep.c (mips_gdbarch_init): Trace e_flags from BFD
8251         elf_info.
8252
8253 Tue Jan 26 16:02:47 1999  Mark Alexander  <marka@cygnus.com>
8254
8255         * v850-tdep.c (v850_generic_reg_names, v850e_reg_names,
8256         v850_register_names, v850_processor_type_table): Declare tables
8257         and structures for handling differences in register names for
8258         v850 and v850e.
8259         (struct reg_list): Define new structure for creating tables
8260         of register bit masks in v850e instrutions.
8261         (handle_prepare, handle_pushm): New helpers for v850_scan_prologue.
8262         (v850_scan_prologue): Recognize v850e instructions: callt, prepare,
8263         and pushm.
8264         (v850_target_architecture_hook): New function to set register
8265         names based on current machine.
8266         (_initialize_v850_tdep): Set up target_architecture_hook.
8267         * config/v850/tm-v850.h (v850_register_names): Declare.
8268         (REGISTER_NAME): Define to refer to v850_register_names.
8269         (SR0_REGNUM, CTBP_REGNUM): Define.
8270         (PS_REGNUM): Redefine in terms of SR0_REGNUM.
8271
8272 Tue Jan 26 18:27:26 1999  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
8273
8274         * Makefile.in (c-exp.tab.c): Use BISON instead of YACC, to pick
8275         the correct value from configure output.
8276         (jv-exp.tab.c): Ditto.
8277         (f-exp.tab.c): Ditto.
8278         (m2-exp.tab.c): Ditto.
8279
8280 1999-01-26  Jason Molenda  (jsm@bugshack.cygnus.com)
8281
8282         * breakpoint.h (ep_is_exception_catchpoint): Add prototype.
8283         * frame.h (select_and_print_frame): Add prototype.
8284         * stack.c (func_command): Call select_and_print_frame with correct
8285         number of arguments.  Reformat whitespace.
8286
8287 Tue Jan 26 16:53:54 1999  Fernando Nasser  <fnasser@cygnus.com>
8288
8289         * remote.c (remote_query): fix maximum packet size to account for
8290           remote_debug use.
8291           (putpkt): add comment to alert about extra byte need.
8292
8293 Mon Jan 25 19:55:30 1999  Mark Alexander  <marka@cygnus.com>
8294
8295         * sh-tdep.c (sh_target_architecture_hook): Return immediately
8296         when a matching machine is found.
8297
8298 Fri Jan 22 09:10:35 1999  Mark Alexander  <marka@cygnus.com>
8299
8300         * remote-mips.c (mips_initialize): Fix parameters to clear_breakpoint.
8301         (common_breakpoint): Restore support for instruction breakpoints
8302         on non-LSI targets.
8303
8304 Thu Jan 21 17:16:19 1999  Andrew Cagney  <cagney@b1.cygnus.com>
8305
8306         * stack.c: Close open comment.
8307         * symtab.c (find_pc_sect_line): Ditto.
8308
8309 Thu Jan 21 17:51:51 1999  Stan Shebs  <shebs@andros.cygnus.com>
8310
8311         * procfs.c (init_procfs_ops): New function, fills in procfs_ops,
8312         init only nonzero fields, leave to_require_attach and
8313         to_require_detach empty, not needed for /proc systems yet.
8314         (_initialize_procfs): Call init_procfs_ops.
8315
8316         From J.T. Conklin <jtc@redbacknetworks.com>:
8317         * top.c (init_main): Fix tipo in description of the remotetimeout
8318         variable.
8319         * breakpoint.c (bpstat_stop_status): Handle systems where
8320         DECR_PC_AFTER_BREAK != DECR_PC_AFTER_HW_BREAK.
8321
8322 Thu Jan 21 17:25:46 1999  Mark Alexander  <marka@cygnus.com>
8323
8324         * mon960-rom.c (_initialize_mon960): Call init_mon960_cmds
8325         to fill in mon960_cmds structure properly.
8326
8327 Wed Jan 20 17:53:22 1999  Stan Shebs  <shebs@andros.cygnus.com>
8328
8329         * remote-sds.c (sds_ops): Define only once.
8330         (init_sds_ops, sds_command, _initialize_remote_sds): Declare.
8331         (init_sds_ops): Init only non-zero fields.
8332
8333 Wed Jan 20 15:45:15 1999  Mark Alexander  <marka@cygnus.com>
8334
8335         * h8300-tdep.c (original_register_names, h8300h_register_names,
8336         h8300_register_names): Define new variables.
8337         (set_register_names): New function to set register names based on
8338         current CPU type.
8339         (h8300_command, h8300h_command, h8300s_command): Call
8340         set_register_names.
8341         * config/h8300/tm-h8300.h (h8300_register_names): Declare.
8342         (REGISTER_NAME): Define to refer to h8300_register_names.
8343
8344 1999-01-19  Fernando Nasser  <fnasser@totem.to.cygnus.com>
8345
8346         * sol-thread.c abug-rom.c cpu32bug-rom.c dbug-rom.c m32r-rom.c 
8347         mac-nat.c mon960-rom.c op50-rom.c ppc-bdm.c remote-adapt.c 
8348         remote-array.c remote-bug.c remote-e7000.c remote-eb.c remote-es.c 
8349         remote-est.c remote-hms.c remote-mm.c remote-nindy.c remote-nrom.c 
8350         remote-os9k.c remote-rdp.c remote-sds.c remote-sim.c remote-st.c 
8351         remote-udi.c rom68k-rom.c sh3-rom.c sparcl-tdep.c sparclet-rom.c 
8352         v850ice.c win32-nat.c: cosmetic changes to conform to coding
8353         standards. 
8354
8355 1999-01-19  Jim Blandy  <jimb@zwingli.cygnus.com>
8356
8357         Use aclocal to generate GDB's aclocal.m4 script.  
8358         * acinclude.m4: New file, containing the hand-written local macro
8359         definitions that used to be in aclocal.m4.  Don't sinclude
8360         ../bfd/aclocal.m4 any more; running aclocal in this directory will
8361         get us the definitions we need.  HOWEVER: Do sinclude
8362         ../bfd/acinclude.m4, because we need the definition of
8363         BFD_NEED_DECLARATION.
8364         * aclocal.m4: Regenerated by aclocal.
8365         * configure: Regenerated by autoconf.
8366
8367 Tue Jan 19 10:27:23 1999  David Taylor  <taylor@texas.cygnus.com>
8368
8369         * breakpoint.c (disable_breakpoints_in_shlibs): new parameter,
8370         silent, controls whether to print message about removal of shared
8371         library breakpoints.
8372         * breakpoint.h (disable_breakpoints_in_shlibs): decl updated.
8373         * irix5-nat.c (clear_solib): call disable_breakpoints_in_shlibs.
8374         * osfsolib.c (clear_solib): ditto.
8375         * solib.c (clear_solib): ditto.
8376         * somsolib.c (som_solib_restart): update call to
8377         disable_breakpoints_in_shlibs.
8378
8379         * target.h (child_post_attach): only declare if CHILD_POST_ATTACH
8380         is define.
8381
8382 Tue Jan 19 18:07:11 1999  Andrew Cagney  <cagney@b1.cygnus.com>
8383
8384         * corelow.c (solib_add_stub): Ditto.
8385         (core_file_to_sym_file): Cast make_cleanup parameter.
8386
8387         * solib.c (symbol_add_stub, solib_map_sections): Change argument
8388         to PTR insted of a char*.  Matches catch_errors interface.
8389
8390 Mon Jan 18 14:01:24 1999  Andrew Cagney  <cagney@b1.cygnus.com>
8391
8392         * remote-array.c (array_open): Don't use fprintf_filtered to send
8393         data to the log file.
8394
8395         * remote-array.c (handle_load_dll): Change argument type to PTR so
8396         that it is compatible with catch_errors.
8397         * ocd.c (ocd_start_remote): Ditto.
8398         * remote-sds.c (sds_start_remote): Ditto.
8399
8400         * win32-nat.c (win32_child_thread_alive): Namespace proof
8401         child_thread_alive.
8402         (init_child_ops): Update.
8403
8404 Mon Jan 18 12:03:47 1999  Andrew Cagney  <cagney@b1.cygnus.com>
8405
8406         * remote-rdi.c (arm_rdi_open): Set gdb_hostif.hostosarg and
8407         gdb_hostif.dbgarg to NULL instead of stdout.
8408         (voiddummy, myprint, mywritec): Use gdb_stdout instead of stdout.
8409
8410 Mon Jan 18 16:40:50 1999  Stan Shebs  <shebs@andros.cygnus.com>
8411
8412         * ser-ocd.c (ocd_open): Handle Unix case gracefully.
8413
8414         * target.c (dummy_target): Don't initialize statically.
8415         (init_dummy_target): New function, fills in dummy_target.
8416         (initialize_targets): Use it.
8417         * hpux-thread.c (hpux_thread_ops): Don't initialize statically.
8418         (init_hpux_thread_ops): New function, fills in hpux_thread_ops.
8419         (_initialize_hpux_thread): Use it.
8420         * m3-nat.c (m3_ops): Don't initialize statically.
8421         (init_m3_ops): New function, fills in m3_ops.
8422         (_initialize_m3): Use it.
8423
8424 1999-01-18  Fernando Nasser  <fnasser@totem.to.cygnus.com>
8425
8426         * sol-thread.c: delete compile time initialization of target_ops
8427           (_initialize_sol_thread): initialize target_ops at run time.
8428         * hpux-thread.c: added target_ops entry.
8429         * m3-nat.c: ditto.
8430
8431 Mon Jan 18 15:19:13 1999  David Taylor  <taylor@texas.cygnus.com>
8432
8433         * procfs.c (procfs_ops): delete compile time initialization.
8434         (_initialize_procfs): initialize procfs_ops at run time.
8435
8436 Mon Jan 18 12:51:44 1999  Christopher Faylor <cgf@cygnus.com>
8437
8438         * configure.in: Ensure that -luser32 is always linked in
8439         for cygwin build.
8440         * configure: Regenerated.
8441
8442 Mon Jan 18 08:38:05 1999  Mark Alexander  <marka@cygnus.com>
8443
8444         * values.c (value_virtual_fn_field): Clear the pointed-to
8445         offset when casting to the base class.
8446
8447 Mon Jan 18 10:30:51 1999  David Taylor  <taylor@texas.cygnus.com>
8448
8449         * remote-udi.c (init_udi_ops): change non-existant udi_run_ops to
8450         udi_ops; delete NULL initializers.
8451
8452 Mon Jan 18 12:03:47 1999  Andrew Cagney  <cagney@b1.cygnus.com>
8453
8454         * serial.c (serial_close): gdb_fclose tages gdb_file** arg, not
8455         gdb_file*.
8456
8457         * f-valprint.c, target.c, gdbarch.c: Pass gdb_stderr not stderr.
8458
8459 Mon Jan 18 10:46:12 1999  Andrew Cagney  <cagney@b1.cygnus.com>
8460
8461         * stack.c (print_frame_info_base): Don't cast call to
8462         catch_errors.
8463         (print_args_stub): Change char* arg to PTR.
8464         * symmisc.c (print_symbol): Ditto.
8465         * top.c (quit_cover): Ditto.
8466         * remote.c (remote_open_1, remote_start_remote): Ditto.
8467         * infrun.c (normal_stop, hook_stop_stub, restore_selected_frame):
8468         Ditto.
8469
8470         * stack.c (backtrace_command): Cast first arg of make_cleanup to
8471         make_cleanup_func.
8472         * remote.c (remote_kill): Cast putpkt arg to catch_errors_ftype.
8473
8474 Mon Jan 18 08:47:02 1999  Andrew Cagney  <cagney@b1.cygnus.com>
8475         
8476         * defs.h (catch_errors_ftype): Define.
8477         (catch_errors): Replace char* arg with PTR arg.
8478         * top.c (catch_errors): Update
8479
8480         * breakpoint.c (bpstat_stop_status, bpstat_stop_status,
8481         delete_breakpoint, breakpoint_re_set): Delete all casts in call to
8482         catch_errors.
8483         (breakpoint_cond_eval, watchpoint_check,
8484         cover_target_enable_exception_callback, breakpoint_re_set_one):
8485         Arg is PTR not char*.
8486         
8487         * breakpoint.c (cover_target_enable_exception_callback): Change
8488         type to int. Check for cast values of 0 and -1.  Return a result!
8489         (insert_breakpoints): Move declaration of SAL and ARGS to where
8490         they are used.
8491
8492 1999-01-16  Fernando Nasser  <fnasser@totem.to.cygnus.com>
8493
8494         * remote.c (remote_query): new function - creates proper interface
8495         to the remote protocol "q" command.     
8496
8497 Fri Jan 15 17:11:48 EST 1999  Zdenek Radouch   (radouch@cygnus.com)
8498
8499         * config/fr30/tm-fr30.h:  Changed ABI to match GCC change
8500           (always use pointer for structs passed by value).
8501
8502 1999-01-15  Fernando Nasser  <fnasser@totem.to.cygnus.com>
8503
8504         * target.h: added entry for target queries (to_query)
8505           target.c: ditto.
8506
8507 Thu Jan 14 18:29:17 1999  David Taylor  <taylor@texas.cygnus.com>
8508
8509         * mips-tdep.c (mips_gdbarch_init): fix stream arg in
8510         fprintf_unfiltered calls.
8511         * remote-mm.c (mm_wait): fix stream arg to gdb_flush.
8512         * remote-udi.c (udi_wait): fix stream arg to fwrite.
8513         * symmisc.c (maintenance_check_symtabs): fix stream argument to
8514         print_address_numeric.
8515         
8516 Wed Jan 13 19:33:16 1999  David Taylor  <taylor@texas.cygnus.com>
8517
8518         * breakpoint.c (insert_breakpoints): insert cast to eliminate
8519         warning.
8520
8521 Wed Jan 13 14:59:02 1999  Michael Snyder  <msnyder@cleaver.cygnus.com>
8522
8523         * infrun.c (set/show scheduler-locking) New command.  Set a
8524           mode bit that will control how GDB attempts to control thread
8525           scheduling for step, continue, etc.  (resume): make use of
8526           the schedule-locking mode.
8527         * target.h (struct target_ops): new field to_has_thread_control.
8528         * sol-thread.c: initialize target_ops to_has_thread_control.
8529         * procfs.c: ditto.
8530         * target.c: ditto.
8531         * m3-nat.c: ditto.
8532         * remote.c: ditto.
8533         * hpux-thread.c: ditto.
8534         * thread.c: cull duplicate prototypes.  Move prototypes to top.
8535         * serial.c: indentation cleanup.
8536         * breakpoint.c: add casts to eliminate compiler warnings.
8537         
8538 Tue Jan 12 17:00:00 1999  Edith Epstein  <eepstein@sophia.cygnus.com>
8539
8540         * inftarg.c (child_create_inferior): fixed HPUXHPPA specific
8541           call to fork_inferior. The shell param is now NULL.
8542
8543 1999-01-12  Jason Molenda  (jsm@bugshack.cygnus.com)
8544
8545         * monitor.c (init_base_monitor_ops): Whitespace cleanup.
8546         (_initialize_remote_monitors): Same.
8547
8548 1999-01-12  Jason Molenda  (jsm@bugshack.cygnus.com)
8549
8550         * monitor.c (init_monitor_ops): Initialize the monitor_ops
8551         structure if it hasn't already been done.
8552
8553 Tue Jan 12 14:50:10 1999  Stan Shebs  <shebs@andros.cygnus.com>
8554
8555         * inftarg.c (child_ops): Don't initialize statically.
8556         (init_child_ops): New function, fills in child_ops.
8557         (_initialize_inftarg): Use it.
8558         (child_post_attach): Declare extern.
8559         (child_wait): Fix ambiguous parens.
8560         (child_attach_to_process): Remove unused local wstatus.
8561         (child_insert_fork_catchpoint, child_remove_fork_catchpoint,
8562         child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
8563         child_has_forked, child_insert_exec_catchpoint,
8564         child_remove_exec_catchpoint): Return a value.
8565
8566 Mon Jan 11 16:43:44 1999  Michael Snyder  <msnyder@cleaver.cygnus.com>
8567
8568         * remote.c (remote_wait): Add inferior_pid to thread list only
8569         if it is not already there.
8570
8571 1999-01-11  Jason Molenda  (jsm@bugshack.cygnus.com)
8572
8573         * scm-tags.h: Update FSF's address on copyright notice.
8574         * ser-e7kpc.c: Same.
8575         * gnu-nat.h: Same.
8576
8577 Mon Jan 11 13:45:57 1999  Stu Grossman  <grossman@babylon-5.cygnus.com>
8578
8579         * dwarf2read.c (dump_die):  Change stderr to gdb_stderr.
8580         * expprint.c (print_subexp):  fprintf => fprintf_unfiltered.
8581         * jv-typeprint.c (java_type_print_base):  fputs => fputs_filtered.
8582         * stack.c (struct function_bounds):  Remove superfluous `typedef'.
8583         * symfile.c (list_overlays_command):  stdout => gdb_stdout.
8584         * symmisc.c (maintenance_check_symtabs):  stdout => gdb_stdout.
8585         * utils.c (print_spaces):  Make more efficient.
8586         
8587 Mon Jan 11 13:55:51 1999  David Taylor  <taylor@texas.cygnus.com>
8588
8589         * utils (print_spaces): fix arg to strcat; fix formatting.
8590
8591 Fri Jan  8 11:57:24 1999  Stan Shebs  <shebs@andros.cygnus.com>
8592
8593         * exec.c (exec_ops): Don't initialize statically.
8594         (init_exec_ops): New function, fills in exec_ops.
8595         (_initialize_exec): Use it.
8596
8597 Thu Jan  7 17:50:15 EST 1999  Zdenek Radouch   (radouch@cygnus.com)
8598
8599         Beta FR30 port.
8600         * fr30-tdep.c
8601         * config/fr30/tm-fr30.h
8602         
8603 Wed Jan  6 12:28:35 1999  David Taylor  <taylor@texas.cygnus.com>
8604
8605         * configure.in: Add an --enable-tui argument.  Construct
8606         tui/Makefile from tui/Makefile.in.  Use AM_PROG_CC_STDC.  If we
8607         have the GUI, then we need this to process libgui.h.
8608         (ENABLE_CFLAGS): define and export BUILD_TUI.
8609         (AC_CHECK_HEADERS): Add check for term.h.
8610         
8611         * configure.host (hppa-*-hpux10.20, hppa-*-hpux11.0*): New configs.
8612
8613         * config.in, configure : regenerated.
8614
8615         * Makefile.in: Allow the TUI code to be conditionally enabled.
8616         (TUI_LIBRARY): New variable, value are set by the configuration
8617         script.  Set to the empty string when the TUI isn't enabled.
8618         (gdb$(GDBEXT)): Use those, instead of referring to all-tui and
8619         tui/libtui.a directly.
8620         (BUILD_TUI): build the tui -- only when configured with
8621         --enable-tui.
8622         (YLWRAP): use ylwrap to avoid problems on systems w/o bison.
8623         (gdb$(EXEEXT)): make it dependent on BUILD_TUI.
8624         (all-tui): remove dependency from phony target.
8625         (c-exp.tab.c): use ylwrap instead of bison.
8626         (jv-exp.tab.c): ditto.
8627         (f-exp.tab.c): ditto.
8628         (m2-exp.tab.c): ditto.
8629         (ALLDEPFILES): add somread.c, hp-psymtab-read.c, hp-symtab-read.c.
8630         (SFILES): remove the above files
8631         (COMMON_OBS): remove somread.o
8632         (SFILES): Add the tui files to this, so they get included in etags
8633         tables.
8634         (gdb$(EXEEXT)): Add all-tui to the list of dependencies, and add
8635         tui/libtui.a to the link list.
8636         (all-tui): New rule, which does a recursive make in the tui
8637         subdir.
8638         (tui/libtui.a): When recursing, pass down ${FLAGS_TO_PASS}.  And
8639         don't echo the make command.  This is closer to what the other
8640         recursions do.
8641         (HFILES_NO_SRCDIR): add hpread.h
8642         (COMMON_OBS): add hp-psymtab-read.o, hp-symtab-read.o
8643         (SFILES): add hp-psymtab-read.c, hp-symtab-read.c add rules for
8644         the new files.  Remove hpread.c, hpread.o
8645         (gdb$(EXEEXT)): Depend on the actual tui library, not on a
8646         fictitious target.  Since the fictitious target never existed,
8647         make would always relink.
8648         (tui/libtui.a): Always recurse to make sure the library is up to
8649         date.
8650
8651 Wed Jan  6 12:05:12 1999  Stan Shebs  <shebs@andros.cygnus.com>
8652
8653         * remote.c: Pacify --enable-build-warnings, reformat code
8654         to conform to standards, fix spelling errors.
8655         (ishex, stubhex, record_currthread, etc): Declare.
8656         (ishex, stubhex): Declare char arg as int.
8657         (pack_string): Comment out, never used but possibly useful.
8658         (threadref_to_int, remote_get_threadinfo, etc): Make static.
8659
8660 Wed Jan  6 11:43:32 1999  David Taylor  <taylor@texas.cygnus.com>
8661
8662         The following changes were made by Elena Zannoni
8663         <ezannoni@cygnus.com> and Edith Epstein <eepstein@cygnus.com> as
8664         part of a project to merge in changes made by HP.
8665
8666         * c-exp.y: use external flag hp_som_som_object_present to decide
8667         whether code was compiled by HP's compilers.  Add two new C++
8668         tokens for true and false.
8669         (yylex): check for template name is done differently for the
8670         HP/aCC compiler case.  Change some of the template processing code
8671         for handling HP aCC templates.  Handle true and false tokens.
8672         
8673 Tue Jan  5 11:13:36 1999  Michael Snyder  <msnyder@cleaver.cygnus.com>
8674
8675         * remote.c (record_curthread): Must not modify inferior_pid when
8676         called from wait_for_inferior.  Instead, if a new thread-id is
8677         detected, call add_thread.
8678         (MAGIC_NULL_PID): new macro, use instead of the magic number
8679         "42000".
8680         (remote_find_new_threads): if inferior_pid is unknown, get and use
8681         the current thread id.
8682         (remote_start_remote): on connecting, attempt to get the current
8683         thread id for inferior_pid.
8684         (remote_resume): If pid == -1, then resume any-thread (not the
8685         current thread specifically).  Also some cosmetic fixups.
8686         
8687         * thread.c (info_threads_command): don't initialize current_pid 
8688         until after call to FIND_NEW_THREADS (which may change inferior_pid).
8689         Also some cosmetic fixups.
8690         * infrun.c: cosmetic fixups and casts to avoid warnings.
8691         * infcmd.c: cosmetic fixups, mainly long lines.
8692         
8693 Tue Jan  5 11:55:57 1999  David Taylor  <taylor@texas.cygnus.com>
8694
8695         * target.c (noprocess): terminate sentence with a period.
8696         * breakpoint.c (catch_command_1): ditto.
8697
8698         * c-valprint.c (c_value_print): remove hack^2 from HP; it causes
8699         testsuite losses with no real gain.
8700
8701         * inferior.h (START_INFERIOR_TRAPS_EXPECTED): restore, but only
8702         if tm-*.h hasn't overridden default value.
8703
8704 1999-01-04  Jason Molenda  (jsm@bugshack.cygnus.com)
8705
8706         * configure.in: Fix whitespace indentation for --help.
8707         * configure: Regenerated.
8708
8709 1999-01-04  Manuel Bouyer <bouyer@antioche.lip6.fr>
8710
8711         * main.c: Add --write command line option, document -w.
8712         * gdb.1: Document --write.
8713
8714 1999-01-04  Jason Molenda  (jsm@bugshack.cygnus.com)
8715
8716         * configure.in: Require autoconf 2.12.1 or higher.
8717         * doc/configure.in: Ditto.
8718         * nlm/configure.in: Ditto.
8719         * rdi-share/configure.in: Ditto.
8720         * testsuite/configure.in: Ditto.
8721         * doc/Makefile.in: Don't hardcode $(SHELL).
8722         * nlm/Makefile.in: Ditto.
8723         * rdi-share/Makefile.in: Ditto.
8724         * testsuite/Makefile.in: Ditto.
8725
8726 Mon Jan  4 12:53:03 1999  Stan Shebs  <shebs@andros.cygnus.com>
8727
8728         * remote-vx.c (init_vx_ops, init_vx_run_ops): Remove unneeded
8729         inits of new fields, including ref to bogus field.
8730         (vx_ops, vx_run_ops): Make static.
8731
8732 Mon Jan  4 15:05:29 1999  David Taylor  <taylor@texas.cygnus.com>
8733
8734         * inferior.h (START_INFERIOR_TRAPS_EXPECTED): delete,
8735         already defined in tm.h.
8736
8737         * inftarg.c: change <sys/unistd.h> to <unistd.h> and
8738         conditionalize its inclusion.
8739         * infttrace.c: ditto.
8740
8741 For older changes see ChangeLog-98
8742 \f
8743 Local Variables:
8744 mode: change-log
8745 left-margin: 8
8746 fill-column: 74
8747 version-control: never
8748 End: