Oops! Forgot to check in ChangeLog.
[platform/upstream/binutils.git] / gdb / ChangeLog
1 Wed Nov 18 14:39:57 1992  Stu Grossman  (grossman at cygnus.com)
2
3         * infcmd.c (set_environment_command):  Make set env FOO x=y work.
4         Fix from maj@lucid.com.
5         * remote-udi.c (udi_open):  Reset vars so that user can re-run
6         programs without leaving GDB.
7         * (many routines):  Slightly improve error handling.
8         * (download):  Zero out BSS by longs instead of bytes to avoid
9         timeouts in real hardware.
10         * 29k-share/udi/udip2soc.c (UDIDisconnect, UDIKill):  Indicate
11         that connection is no longer in use after shutdown() of socket.
12         This keeps GDB from dying of a SIGPIPE when you issue multiple
13         `target udi' commands.
14
15 Wed Nov 18 14:27:47 1992  Fred Fish  (fnf@cygnus.com)
16
17         * language.h (language_format_info):  New structure to bundle
18         local formatting information.
19         * language.h (language_defn):  Replace individual format info
20         with language_format_info structs.
21         * language.h (local_*_format, local_*_format_prefix,
22         local_*_format_specifier, local_*_format_suffix):  New macros
23         for binary/octal/decimal/hex formats to access info elements.
24         * c-exp.y (c_language_defn):  Update for new format handling.
25         * m2-exp.y (m2_language_defn):  Update for new format handling.
26         * dbxread.c (language.h):  Include for partial-stab.h use.
27         * defs.h (local_hex_format, local_hex_format_custom,
28         local_hex_string, local_hex_string_custom):  Move to language.h.
29         * language.c (local_hex_format_custom, local_hex_string,
30         local_hex_string_custom, local_octal_format_custom):  Use new
31         format handling.
32         * language.c (unknown_language_defn, auto_language_defn,
33         local_language_defn):  Update for new format handling.
34         * printcmd.c (print_scalar_formatted):  Use new macros
35         to access decimal and binary format info for printing.
36         **** start-sanitize-chill ****
37         * c-exp.y (chill_language_defn):  Update for new format handling.
38         * ch-exp.y (CHARACTER_LITERAL):  Add support to yylex.
39         * ch-exp.y (match_integer_literal):  Add function.
40         * ch-exp.y (builtin_type_chill_char):  Add definition.
41         * gdbtypes.h (builtin_type_chill_char):  Add declaration.
42         **** end-sanitize-chill ****
43
44 Tue Nov 17 11:17:06 1992  Ian Lance Taylor  (ian@cygnus.com)
45
46         * tm-rs6000.h (BELIEVE_PCC_PROMOTION): Define, since AIX cc gets
47         it right.
48         (aix_framedata): added nosavedpc field.
49         (SAVED_PC_AFTER_CALL): Don't try to optimize; just call
50         read_register.
51         (FRAMELESS_FUNCTION_INVOCATION): Pass second argument of 0.
52         (FRAME_SAVED_PC): If PC not saved, use SAVED_PC_AFTER_CALL.
53         * rs6000-tdep.c (skip_prologue): Handle gcc generated stfd
54         instructions as function_frame_info does.  Expand special case of
55         st r31,-4(r1) to be st r31,NUM(r1), since gcc can generate offsets
56         other than -4.
57         (pop_frame): Add 4 rather than sizeof (int) to avoid host
58         dependence.
59         (function_frame_info): Set frameless if the function has no frame,
60         and set nosavedpc if the PC was not saved.  Handle gcc generated
61         stfd 31,-4(31); st 31, -12(31) correctly.
62         (frameless_function_invocation): New second argument pcsaved; if 0
63         return whether the function has a frame, if 1 return whether the
64         function saved PC.
65         (frame_initial_stack_address): Correct typo: cache registers for
66         callee_fi, not for fi, (avoids reading garbage memory locations).
67
68 Mon Nov 16 15:58:07 1992  Stu Grossman  (grossman at cygnus.com)
69
70         * infrun.c (wait_for_inferior (just before step_over_function
71         label)):  Change test for stepping into subroutine to check for the
72         presence of line number info.  This makes stuff compiled with -g1
73         cause GDB to not lose control when stepping.
74
75         * symtab.c (find_pc_line):  Improve code per gnu's suggestions.
76         Improve comments as well.
77
78 Sun Nov 15 09:22:09 1992  Fred Fish  (fnf@cygnus.com)
79
80         * Makefile.in (VERSION):  Bump to 4.7.2
81         * symtab.c (find_pc_symtab):  Fix return of random value
82         to caller.
83         * Makefile.in (c-exp.tab.c, m2-exp.tab.c):  Add dependency on
84         Makefile since it contains sed patterns used in generation.
85         Add sed pattern to also delete #include of any malloc.h.
86         * c-exp.y, expr.c, expression.h, language.c, m2-exp.y,
87         parser-defs.h, valarith.c, valops.c, value.h:  Remap macros and
88         function names to conform to K&R terminology with respect to
89         logical and bitwise operators:
90         UNOP_ZEROP => UNOP_LOGICAL_NOT
91         UNOP_LOGNOT => UNOP_COMPLEMENT
92         BINOP_LOGAND => BINOP_BITWISE_AND
93         BINOP_LOGXOR => BINOP_BITWISE_XOR
94         BINOP_LOGIOR => BINOP_BITWISE_IOR
95         BINOP_AND => BINOP_LOGICAL_AND
96         BINOP_OR => BINOP_LOGICAL_OR
97         PREC_OR => PREC_LOGICAL_OR
98         PREC_AND => PREC_LOGICAL_AND
99         PREC_LOGIOR => PREC_BITWISE_IOR
100         PREC_LOGXOR => PREC_BITWISE_XOR
101         PREC_LOGAND => PREC_BITWISE_AND
102         value_zerop() => value_logical_not()
103         value_lognot() => value_complement()
104         * c-exp.y (c_op_print_tab):  Add explicit empty terminator.
105         * m2-exp.y (m2_op_print_tab):  Add explicit empty terminator.
106         * i387-tdep.c (sys/dir.h):  Remove, appears to be unnecessary
107         and is nonexistant in some SVR4 based systems.
108         * language.c (DEFAULT_ALLOCSIZE):  Change from 3 => 4.
109         * m2-exp.y (number_sign, modblock):  Make static, #ifdef out
110         unused modblock.
111         * m2-exp.y (ANDAND):  Rename to LOGICAL_AND.
112         * source.c (source_info):  Fix minor nits, print "1 line" rather
113         than "1 lines", and "language is <lang>".
114         * valarith.c (value_binop):  Handle TYPE_CODE_BOOL as well
115         as TYPE_CODE_INT and TYPE_CODE_FLOAT.
116         * valprint.c (val_print):  Print TYPE_CODE_BOOL type values as
117         "TRUE" or "FALSE".
118         * values.c (value_from_longest):  Handle TYPE_CODE_BOOL.
119         **** start-sanitize-chill ****
120         * ch-exp.y:  New expression parser, for GNU-Chill.
121         * defs.h (enum language):  Add language_chill.
122         * dwarfread.c (set_cu_language):  Add LANG_CHILL case and make
123         LANG_MODULA2 a recognized language.
124         * gdbtypes.h (enum_typecode):  Note TYPE_CODE_BOOL used for 
125         Chill as well as Modula-2.
126         * gdbtypes.y (builtin_type_chill_bool, builtin_type_chill_long,
127         builtin_type_chill_ulong, builtin_type_chill_real):  Add.
128         * language.c (set_language_command):  Add chill.
129         * language.c (binop_result_type, integral_type, character_type,
130         boolean_type, structured_type, value_true, binop_type_check):
131         Add language_chill cases.
132         * language.h (_LANG_chill):  Define.
133         * symfile.c (deduce_language_from_filename):  Recognize the
134         filename extensions ".chill", ".c186", and ".c286" for Chill.
135         * valprint.c (typedef_print):  Add case for language_chill.
136         * Makefile.in (SFILES_MAINDIR):  Add ch-exp.y.
137         * Makefile.in (YYFILES):  Add ch-exp.tab.c.
138         * Makefile.in (YYOBJ):  Add ch-exp.tab.o.
139         * Makefile.in (saber_gdb):  Add unload of ch-exp.y and load
140         of ch-exp.tab.c.
141         * Makefile.in (distclean):  Add target ch-exp.tab.c.
142         * Makefile.in (realclean):  Add rm of ch-exp.tab.c.
143         * Makefile.in (ch-exp.tab.o, ch-exp.tab.c):  New targets.
144         * eval.c (evaluate_subexp):  Add OP_BOOL case.
145         * expprint.c (print_subexp):  Add OP_BOOL case. 
146         **** end-sanitize-chill ****
147
148 Fri Nov 13 20:24:10 1992  Stu Grossman  (grossman at cygnus.com)
149
150         * infcmd.c (step_over_calls):  Improve comments.
151         * symtab.c (find_pc_psymtab):  Clean up a bit.
152         * (find_pc_symtab):  Fix comments, clean up code.
153         * (find_pc_line):  General cleanups, efficiency improvements.
154         Also, don't return garbage when some line info exists, but there
155         was no good match.
156
157 Wed Nov 11 17:09:17 1992  Stu Grossman  (grossman at cygnus.com)
158
159         * Makefile.in:  Remove dependancies for 29k-share/dfe/yank.o and
160         29k-share/dfe/mini2udi.o.
161         * config/a29k-udi.mt:  Remove yank.o and mini2udi.o.
162         * alldeps.mak, depend:  Update to deal with removal of
163         aforementioned files.
164         * remote-udi.c:  Major cleanups.  Clean up udi_open and drop
165         requirement for useless 'program' argument.  Clean up
166         udi_create_inferior, and udi_load to call common download()
167         routine.  Create download routine to load remote hosts directly
168         (with the help of BFD) so that we don't need yank.c and
169         mini2udi.c.
170         Fix udi_detach to call UDIDisconnect with
171         the right arguments.  Clean up udi_resume, don't assign tip_error
172         twice.  Clean up udi_wait, straighten out status codes.  Make
173         udi_kill really work.
174
175 Fri Nov  6 10:26:01 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
176
177         * c-exp.y: separated host/target idea of integer type size,
178         removed redundant parse rules. (YYSTYPE): added typed_val, removed
179         UINT and CHAR rules. (parse_number): work out the targetwise type
180         of a number based upon it's size and qualifiers. (yylex): chars
181         are now treated the same way as ints.
182
183         * source.c (indentify_source_line): don't core dump if wanted
184         line is larger than number of lines in source. (can happen when
185         coff gets confused about #included source).
186
187 Fri Nov  6 03:00:39 1992  John Gilmore  (gnu@cygnus.com)
188
189         Fix problems noticed by Allan Steel, <allan@maths.su.oz.au>,
190         when debugging a program with 100 shared libraries.
191
192         * solib.c (solib_map_sections):  Always close the BFD we open.
193         Free all malloc'd storage we allocate, too, including error cases.
194         (struct so_list):  Remove unused so_bfd member.
195         (clear_solib):  Don't bother closing so_bfd.
196
197         * symfile.c (symfile_bfd_open):  Mark newly opened BFD as
198         cacheable.  `So many symbol files, so little file descriptors.'
199         
200 Fri Nov  6 00:14:38 1992  John Gilmore  (gnu@cygnus.com)
201
202         * m68k-stub.c:  Remove ansidecl.h and the few uses of it.
203         Stubs should stand alone as much as possible.
204
205         * source.c (show_directories):  Avoid printf_filtered length prob
206         pointed out by Jonathan Stone.
207
208         * i960-pinsn.c (MEM_MAX, MEM_SIZ):  Set upper limit properly to
209         avoid accesses beyond end of table.  Fix by Lee W. Cooprider,
210         <Lee_Cooprider@vos.stratus.com>.
211
212 Thu Nov  5 17:33:08 1992  Fred Fish  (fnf@cygnus.com)
213
214         * {ser-bsd.c, ser-termios.c} (serial_close):  Pass address of
215         struct, not struct itself.
216         * serial.h (serial_restore):  Fix prototype, takes pointer not
217         struct.
218
219 Thu Nov  5 17:12:42 1992  Stu Grossman  (grossman at cygnus.com)
220
221         * Makefile.in (depend):  Add nm.h to the list of things to fixup.
222         * depend:  Redo, to fixup nm.h problems with *-tab.c files.
223
224 Thu Nov  5 00:19:51 1992  John Gilmore  (gnu@cygnus.com)
225
226         * i386-stub.c:  Remove ansidecl.h and the few uses of it.
227         Stubs should stand alone as much as possible.
228
229         * README:  Add remote-es1800.c and remote-st2000.c to table.
230         * go32-nat.c:  Remove, there is no native go32 support.
231         * go32-xdep.c:  Remove unused fork, fvork, wait, execlp, kill_inferior.
232
233 Wed Nov  4 15:27:31 1992  Stu Grossman  (grossman at cygnus.com)
234
235         * inflow.c (pass_signal, set_sigint_trap, clear_sigint_trap):  Add
236         new routines to deal with sending SIGINTs to attached processes
237         when the user interrupts the controlling GDB.
238         * inftarg.c (child_wait), procfs.c (procfs_wait):  Add calls to
239         the aforementioned routines when waiting for the attached process.
240
241         * elfread.c, mipsread.c:  Include <string.h>.
242         * i386-stub.c:  Include "ansidecl.h" to deal with prototypes.
243         * serial.h:  Add prototype for serial_restore().        
244
245 Wed Nov  4 11:13:25 1992  Ian Lance Taylor  (ian@cygnus.com)
246
247         * minsyms.c (lookup_minimal_symbol_by_pc): subtract 1, not 2, from
248         minimal_symbol_count, because the NULL symbol is not included in
249         the count.  This prevented this function from finding the last
250         symbol in the table.
251
252 Tue Nov  3 11:29:17 1992  Ian Lance Taylor  (ian@cygnus.com)
253
254         * dbxread.c (process_one_symbol): if not defined
255         (BLOCK_ADDRESS_FUNCTION_RELATIVE), set function_start_offset at
256         the start of the function, not just after N_FUN.
257
258 Fri Oct 30 16:33:02 1992  Fred Fish  (fnf@cygnus.com)
259
260         * Makefile.in (c-exp.tab.c, m2-exp.tab.c):  Add sed patterns to
261           remap all malloc's to xmalloc's and all realloc's to xrealloc's.
262         * c-exp.y, m2-exp.y:  Add comment about how malloc/realloc are
263           remapped to xmalloc/xrealloc, use only malloc/realloc in grammer
264           file.  Remove preprocessor defines that previously did remapping.
265
266 Fri Oct 30 00:58:18 1992  John Gilmore  (gnu@cygnus.com)
267
268         * infcmd.c (run_command):  Avoid long calls to printf_filtered.
269         Bug fix courtesy of Alexander Klaiber.
270
271 Tue Oct 27 17:08:45 1992  K. Richard Pixley  (rich@cygnus.com)
272
273         hp300 native support (hp300hpux untested).
274
275         * hp300ux-xdep.c: removed.
276         * xm-hp300bsd.h (REGISTER_U_ADDR): removed.
277         * xm-hp300hpux.h: updated copyright.
278           (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): removed.
279         * nm-hp300bsd.h, nm-hp300hpux.h, hp300ux-nat.c: new files.
280         * Makefile.in (HFILES): added nm-hp300bsd.h and nm-hp300hpux.h.
281         * config/hp300bsd.mh (XDEPFILES): removed infptrace.o inftarg.o
282           fork-child.o coredep.o corelow.o.
283           (NAT_FILE, NATDEPFILES): new macros.
284         * config/hp300bsd.mt (TDEPFILES): removed exec.o.
285         * config/hp300hpux.mh (XDEPFILES): removed infptrace.o inftarg.o
286           fork-child.o.
287           (NAT_FILE, NATDEPFILES): new macros.
288         * config/hp300hpux.mt (TDEPFILES): removed exec.o.
289
290         Vax ultrix native support.
291
292         * nm-vax.h: new file.
293         * Makefile.in (HFILES): added nm-vax.h.
294         * config/vaxult.mh (XDEPFILES): infptrace.o inftarg.o fork-child.o
295           coredep.o corelow.o removed.
296           (NAT_FILE, NATDEPFILES): new macros.
297         * xm-vax.h: updated copyright.
298           (REGISTER_U_ADDR): removed.
299
300         Apollo native support (untested).
301
302         * Makefile.in (HFILES): added nm-apollo68[bv].h.
303         * a68v-nat.c, nm-apollo68[bv].h: new files.
304         * xm-apollo68[bv].h (FETCH_INFERIOR_REGISTERS): removed.
305         * xm-apollo68b.h (PTRACE_IN_WRONG_PLACE): removed.
306         * a68v-xdep.c: removed.
307         * config/apollo68[bv].mh (XDEPFILES): removed infptrace.o
308           inftarg.o fork-child.o a68v-xdep.o.
309           (NAT_FILE, NATDEPFILES): new macros.
310
311         * defs.h: include nm.h.
312         * coredep.c, infptrace.c, procfs.c, rs6000-nat.c, sparc-nat.c,
313           sparc-tdep.c, : do not include nm.h.
314         * doc/gdbint.texinfo: nm.h now included in defs.h.
315
316 Fri Oct 23 04:47:17 1992  Stu Grossman  (grossman at cygnus.com)
317
318         * Makefile.in (VERSION):  4.7.1 post release!
319
320         * config/hppahpux.mh (NATDEPFILES):  Add hppah-nat.o.
321
322 Fri Oct 23 00:48:08 1992  John Gilmore  (gnu@cygnus.com)
323
324         * Makefile.in (VERSION):  gdb-4.7 release.
325         * README:  Update for gdb-4.7.
326
327 Thu Oct 22 11:24:18 1992  Stu Grossman  (grossman at cygnus.com)
328
329         * sparc-tdep.c:  include nm.h (for now) so that we get USE_PROC_FS
330         when necessary.
331
332         * alldeps.mak, depend:  Update.
333
334 Thu Oct 22 03:14:36 1992  John Gilmore  (gnu@cygnus.com)
335
336         * partial-stab.h ('f', 'F'):  Don't reference pst->textlow if pst
337         is null.
338         * tm-sun4sol2.h (PROLOGUE_FIRSTLINE_OVERLAP):  Remove -- it 
339         causes problems in setting breakpoint in the right place in
340         functions with `float' args which are passed as doubles.
341         * xm-vaxbsd.h (MEM_FNS_DECLARED):  Avoid erroneous redecl's.
342         * config/rs6000.mh (NATDEPFILES):  Add corelow.o.
343
344 Thu Oct 22 01:01:24 1992  Stu Grossman  (grossman at cygnus.com)
345
346         * Makefile.in (HFILES):  Add nm-i386sco.h.
347         * dwarfread.c:  include <sys/types.h> for SCO.
348         * infptrace.c:  Don't include ptrace.h under SCO.
349         * config/i386sco.mh:  Use -D_POSIX_SOURCE instead of -posix for
350         gcc.
351         * config/i386v.mt:  Add exec.o to TDEPFILES.
352
353 Wed Oct 21 19:08:20 1992  Stu Grossman  (grossman at cygnus.com)
354
355         * i386v-nat.c:  Remove space from front of #endif.
356         * irix4-nat.c:  Remove externs of registers[], include inferior.h
357         instead.
358         * mips-nat.c:  Explicitly initialize zerobuf to 0!
359         * mips-tdep.c (init_extra_frame_info):  Undo John's last change.
360         Always setup fci->frame, even if it's non-zero.  Too many places
361         depend upon this behavior (and I have to get a release out the
362         door)!
363         * mipsread.c (parse_partial_symbols, psymtab_to_symtab_1):  Set
364         processing_gcc_compilation if we find the embedded stabs marker.
365         This fixes several bugs with finding the location of short or char
366         function parameters passed on the stack.
367
368 Wed Oct 21 17:46:07 1992  K. Richard Pixley  (rich@sendai.cygnus.com)
369
370         Native support for sun4sol2.
371
372         * xm-sysv4.h (USE_PROC_FS, ATTACH_DETACH): removed to nm-sysv4.h.
373         * nm-sysv4.h: new file.
374         * Makefile.in (HFILES): added nm-sysv4.h.
375         * config/sun4sol2.mh (XDEPFILES): removed procfs.o fork-child.o.
376           (NAT_FILE, NATDEPFILES): new macros.
377         * config/sun4sol2.mt (TDEPFILES): removed exec.o and solib.o.
378
379 Wed Oct 21 03:51:01 1992  John Gilmore  (gnu@cygnus.com)
380
381         * coredep.c:  Include "nm.h" to get REGISTER_U_ADDR.
382         * doc/gdbint.texinfo:  Improve REGISTER_U_ADDR and USE_PROC_FS doc.
383
384         * Makefile.in (VERSION):  Tick to 4.6.9.
385
386 Tue Oct 20 23:27:56 1992  John Gilmore  (gnu@cygnus.com)
387
388         * mipsread.c (UNSAFE_DATA_ADDR):  Remove MIPS-host-specific
389         definition, replace with portable one.
390         * remote-nindy.c:  Lint.
391         (nindy_wait):  Return type is int, result is inferior_pid.
392         * symmisc.c (dump_psymtab):  Only print section_offsets if set.
393         (initialize_symmisc):  Remove empty function.
394         * tm-spc-noun.h, tm-sun4os4.h, tm-sun4sol2.h (STACK_END_ADDRESS):
395         Remove obsolete, misspelled macro.
396         * doc/gdbint.texinfo:  Document obsolete STACK_END_ADDR.
397         (all @node commands):  Use new form to avoid nitpicking errors.
398         * doc/gdbint.texinfo:  Document host/native/target split.
399                                                                            
400 Wed Oct 21 00:14:34 1992  Stu Grossman  (grossman at cygnus.com)
401
402         * mips-nat.c (zerobuf):  Get rid of const to avoid gcc warnings.
403
404         * xm-mips.h (offsetof):  Don't define this if __STDC__.
405
406 Tue Oct 20 21:32:18 1992  K. Richard Pixley  (rich@sendai.cygnus.com)
407
408         umax native support (untested).
409
410         * config/umax.mh (XDEPFILES): removed infptrace.o inftarg.o
411           fork-child.o.
412           (NAT_FILE, NATDEPFILES): new macros.
413         * config/umax.mt (TDEPFILES): removed exec.o.
414         * xm-umax.h (U_REGS_OFFSET, ATTACH_DETACH, REGISTER_U_ADDR):
415           removed to nm-umax.h.
416         * nm-umax.h: new file.
417         * Makefile.in (HFILES): added nm-umax.h.
418
419         hppa native support (untested).
420
421         * config/hppahpux.mh, config/hppabsd.mh (XDEPFILES): now empty.
422           (NAT_FILE, NATDEPFILES): new macros.
423         * config/hppabsd.mt (TDEPFILES): removed exec.o and hppab-core.o.
424         * config/hppahpux.mt (TDEPFILES): removed exec.o.
425         * xm-hppa[bh].h (REGISTER_U_ADDR, U_REGS_OFFSET): removed.
426         * nm-hppa[bh].h, hppa[bh]-nat.c: new files.
427         * hppa[bh]-xdep.c: removed.
428         * hppa[bh]h-tdep.c: do not include ptrace.h.
429         * Makefile.in (HFILES): added nm-hppa[bh].h.
430
431         * doc/gdbint.texinfo: add PUSH_DUMMY_FRAME, POP_FRAME.
432
433 Tue Oct 20 00:01:46 1992  Stu Grossman  (grossman at cygnus.com)
434
435         * mips-nat.c:  Straighten out include files.  Work around
436         conflicting defs of JB_xxx syms in <setjmp.h> and <machine/pcb.h>
437         for Ultrix-4.2.
438
439 Mon Oct 19 15:09:57 1992  Stu Grossman  (grossman at cygnus.com)
440
441         * mips-nat.c (fetch_core_registers, register_addr):  Copy from
442         coredep.c, but zero out FP_REGNUM & ZERO_REGNUM so that stack
443         backtraces from core files work.
444         * config/decstation.mh, config/irix3.mh:  Remove coredep.o.
445         Functions are now defined in mips-nat.c.
446
447         * tm-irix3.h:  Put MIPS_EFI_SYMBOL_NAME in here too.
448
449         * remote-hms.c:  Disable all uses of serial_nextbaudrate and
450         serial_default_name().
451
452         * remote-hms.c, ser-go32.c, serial.h:  Change from
453         serial_timedreadchar() to new serial_readchar().
454
455         * Makefile.in (HFILES):  Fixup list of nm-*.h files.  Add missing ones.
456
457 Mon Oct 19 12:45:23 1992  Per Bothner  (bothner@cygnus.com)
458
459         * c-exp.y:  Moved handling of 'const' and 'volatile' from
460         <type> to <typebase>.  This removes 2 conflicts.
461
462 Sun Oct 18 00:36:30 1992  Fred Fish  (fnf@cygnus.com)
463
464         * breakpoint.c (breakpoint_re_set_one):  Don't delete watchpoints
465         from breakpoint table when reseting breakpoints.
466
467 Sat Oct 17 00:59:23 1992  Fred Fish  (fnf@cygnus.com)
468
469         Native support cleanup and corefile fixes for i386 SVR4 systems.
470
471         * i386-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
472           fill_fpregset): Moved to i386v4-nat.c
473         * i386v4-nat.c, nm-i386v4.h, :  New files.
474         * i386sol2.mh, i386v4.mh, ncr3000.mh (NAT_FILE):  Use nm-i386v4.h.
475         * i386sol2.mh, i386v4.mh, ncr3000.mh (NATDEPFILES):  Add corelow.o,
476           change i386v-nat.o to i386v4-nat.o.
477
478 Fri Oct 16 13:06:08 1992  K. Richard Pixley  (rich@sendai.cygnus.com)
479
480         Miscellaneous 386 configs updated.
481
482         * config/i386aout.mt (TDEPFILES): removed exec.o.
483         * config/i386sol2.mh, config/ncr3000.mh, config/i386v4.mh
484           (XDEPFILES): removed procfs.o fork-child.o i386-xdep.o.
485           (NAT_FILE, NATDEPFILES): new macros.
486         * config/i386aout.mt, config/i386sol2.mt, config/ncr3000.mt,
487           config/i386v4.mt (TDEPFILES): removed exec.o.
488         * config/i386v32.mh (XDEPFILES): removed infptrace.o inftarg.o
489           fork-child.o coredep.o corelow.o i386-xdep.o i387-tdep.o.
490           (NAT_FILE, NATDEPFILES): new macros.
491         * config/i386sco.mh (XDEPFILES): removed infptrace.o inftarg.o
492           fork-child.o coredep.o corelow.o i386-xdep.o.
493           (NAT_FILE, NATDEPFILES): new macros.
494
495         Native support cleanup for i386bsd (untested).
496
497         * config/i386bsd.mt (NATDEPFILES): exec.o removed.
498         * config/i386bsd.mh (NATDEPFILES): added exec.o
499         * tm-i386bsd.h (FLOAT_INFO): removed.
500         * nm-i386bsd.h (FLOAT_INFO): added.
501
502         Native support for i386v (untested).
503
504         * config/i386v.mh (XDEPFILES): removed infptrace.o inftarg.o
505           fork-child.o coredep.o corelow.o i386-xdep.o i387-tdep.o.
506           (NAT_FILE, NATDEPFILES): new macros.
507         * config/i386v.mt (TDEPFILES): removed exec.o, added i387-tdep.o.
508         * i386-xdep.c: removed.
509         * Makefile.in (HFILES): added nm-i386v.h
510         * i386v-nat.c, nm-i386v.h: new file.
511         * xm-i386v.h: (REGISTER_U_ADDR, i386_register_u_addr): removed to
512           nm-i386v.h.
513         * tm-i386v.h (FLOAT_INFO): removed.
514
515         Native support for linux (untested).
516
517         * config/linux.mh (XDEPFILES): removed infptrace.o inftarg.o
518           fork-child.o coredep.o corelow.o i387-tdep.o i386-xdep.o.
519           (NAT_FILE, NATDEPFILES): new macros.
520         * config/linux.mt (TDEPFILES): removed exec.o, added i387-tdep.o.
521         * Makefile.in (HFILES): added nm-linux.h.
522         * nm-linux.h: new file.
523         * xm-linux.h: updated copyright.  cleaned up formatting.
524           (ATTACH_DETACH, U_REGS_OFFSET): removed to nm-linux.h.
525
526         Native support for sun386 (untested).
527
528         * config/sun386.mh (XDEPFILES): removed infptrace.o inftarg.o
529           fork-child.o sun386-xdep.o.
530           (NAT_FILE, NATDEPFILES): new macros.
531         * config/sun386.mt (TDEPFILES): removed exec.o.
532         * Makefile.in (HFILES): added nm-sun386.h.
533         * sun386-nat.c, nm-sun386.h: new file.
534         * sun386-xdep.c: removed.
535         * xm-sun386.h: updated comment and copyright.
536           (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): removed to
537           nm-sun386.h.
538
539         Native support for i386mach (untested).
540
541         * config/i386mach.mh (XDEPFILES): removed infptrace.o inftarg.o
542           fork-child.o mach386-xdep.o.
543           (NAT_FILE, NATDEPFILES): new macros.    
544         * Makefile.in (HFILES): added nm-i386mach.h.
545         * nm-i386mach.h, i386mach-nat.c: new files.
546         * mach386-xdep.c: removed.
547         * xm-i386mach.h: updated copyright.
548           (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): removed to
549           nm-i386mach.h.
550
551         Native separation for go32 (untested).
552
553         * config/go32.mh (NAT_FILE, NATDEPFILES): new macros.
554         * go32-nat.c: new file.
555         * go32-xdep.c (call_ptrace, child_resume,
556           fetch_inferior_registers, store_inferior_registers,
557           child_xfer_memory, fetch_core_registers): removed to go32-nat.c.
558
559         Native support for m88k (untested).
560
561         * Makefile.in (HFILES): added nm-m88k.h
562         * xm-delta88.h, xm-m88k.h (REGISTER_U_ADDR,
563           FETCH_INFERIOR_REGISTERS): removed.
564         * config/m88k.mh, config/delta88.mh (XDEPFILES): infptrace.o
565           inftarg.o fork-child.o m88k-xdep.o removed to NATDEPFILES.
566           (NAT_FILE, NATDEPFILES): new macros.
567         * config/m88k.mt, config/delta88.mt (TDEPFILES): removed exec.o.
568         * m88k-nat.c, nm-m88k.h, nm-delta88.h: new files.o.
569         * m88k-xdep.c: removed.
570
571 Fri Oct 16 04:16:30 1992  John Gilmore  (gnu@cygnus.com)
572
573         * i386b-nat.c:  Comment changes.
574         * nm-i386bsd.h, xm-i386bsd.h:  Split native dependent pieces out
575         into new nm-file.
576         * config/i386bsd.mh (NAT_FILE):  Point to new nm-file.
577
578 Fri Oct 16 03:34:01 1992  John Gilmore  (gnu@cygnus.com)
579
580         Avoid longjmp()-catching compilation errors in cross-ports.
581
582         * doc/gdbint.texinfo:  Update GET_LONGJMP_TARGET, L_SET doc.
583         * irix4-nat.c, mips-nat.c (JB_ELEMENT_SIZE, get_longjmp_target):
584         Move from mips-tdep.c and tm-{irix3,mips}.h.
585         * mips-nat.c:  Remove a bunch of code that was ifdef'd out of
586         native MIPS ports.
587         * nm-irix3.h, nm-mips.h (GET_LONGJMP_TARGET):  Move from tm-irix3.h
588         and tm-mips.h.
589
590         * ultra3-nat.c (register_addr):  Move from ultra3-xdep.c.
591         (fetch_core_registers):  Fix bfd_seek arguments.        
592
593 Fri Oct 16 03:02:28 1992  John Gilmore  (gnu@cygnus.com)
594
595         Make core files work again (add back the `core' target).
596
597         * config/decstation.mh, news.mh, sun2os3.mh, sun2os4.mh
598         (NATDEPFILES):  Add corelow.o.
599         * config/delta88.mt, m88k.mt (TDEPFILES):  Remove coredep.o, it's
600         native dependent.
601
602         * config/3b1.mh, bigmips.mh, hp300bsd.mh, hppabsd.mh, hppahpux.mh,
603         i386sco.mh, i386v.mh, i386v32.mh, irix3.mh, isi.mh, linux.mh,
604         littlemips.mh, merlin.mh, news1000.mh, pn.mh, rtbsd.mh, tahoe.mh,
605         vaxbsd.mh, vaxult.mh (XDEPFILES): Add corelow.o whenever coredep.o
606         appears.  FIXME, these should be moved to NATDEPFILES for native
607         use only.
608
609 Thu Oct 15 21:53:53 1992  K. Richard Pixley  (rich@sendai.cygnus.com)
610
611         Ultra3 host/target/native split.  (untested).
612
613         * ultra3-xdep.c: updated copyright.  Do not include sys/ptrace.h.
614           (fetch_register, fetch_inferior_registers,
615           store_inferior_registers, fetch_core_registers): removed to
616           ultra3-nat.c.
617         * xm-ultra3.h (FETCH_INFERIOR_REGISTERS, U_REGS_OFFSET): removed
618           to nm-ultra3.h.
619         * Makefile.in (HFILES): added nm-ultra3.h.
620         * nm-ultra3.h, ultra3-nat.c: new files for native support.
621         * config/ultra3.mh (XDEPFILES): removed infptrace.o inftarg.o
622           fork-child.o.
623           (NAT_FILE, NATDEPFILES): new macros for native support.
624         * config/ultra3.mt (TDEPFILES): exec.o removed.
625
626         * xm-vaxult.h: add MEM_FNS_DECLARED.
627
628 Thu Oct 15 02:59:30 1992  John Gilmore  (gnu@cygnus.com)
629
630         * Makefile.in (VERSION):  Roll to 4.6.8.
631         (OBS):  Put version.o first, so Makefile rebuild happens early.
632         
633         * command.h:  Publicize prototype for not_just_help_class_command.
634         * command.c:  Remove proto.
635         * maint.c:  Mark "mt" as an abbrev, to avoid duplicated help
636         output.  Move "maint info" from class info to class maintenance,
637         and improve text.
638         * infrun.c:  Move "stop" to class_obscure, and give it a
639         function so it will not be seen as a global help topic.  FIXME,
640         it should be possible to set these attributes independently.
641
642         * core.c (core_command):  Make nicer error message for no core support.
643
644         Lint around file_ptr's (bfd's off_t's) and bfd_seek.
645
646         * dbxread.c (read_dbx_symtab):  Use L_SET as bfd_seek arg.
647         (elfstab_build_psymtabs):  staboffset and stabstroffset args are
648         file_ptr's.
649         * dwarfread.c (struct dwfinfo):  Convert dbfoff, lnfoff to file_ptr.
650         (scan_compilation_units):  Punt unused filename arg.  dbfoff,
651         lnoffset, and curlnoffset are file_ptr's now.
652         (dwarf_build_psymtabs):  Drop desc and filename args; use
653         objfile.  dbfoff and lnoffset are file_ptr's now.
654         (read_ofile_symtab):  foffset is now file_ptr.  Use L_SET in bfd_seek.
655         * elfread.c (struct elfinfo):  dboffset and lnoffset are file_ptr's.
656         (elf_symfile_read):  Skip desc and filename args to
657         dwarf_build_psymtabs.  Pass file_ptr's to elfstab_build_psymtabs.
658         * gdb-stabs.h:  Use file_ptr rather than off_t.
659         * mipsread.c (fixup_symtab): f_ptr is a file_ptr.  Re-enable
660         compile-time debug check that someone turned off as "unused".
661         (read_the_mips_symtab):  st_filptr is a file_ptr.  Fix bfd_seek call.
662         * symfile.h:  Update dwarf_build_psymtabs and
663         elfstab_build_psymtabs prototypes.
664         * xcoffread.c (init_stringtab, init_lineno, xcoff_symfile_read):
665         Use file_ptr offsets.  bfd_seeks use L_SET.
666
667 Thu Oct 15 01:27:32 1992  Stu Grossman  (grossman at cygnus.com)
668
669         * mips-tdep.c, mipsread.c, tm-mips.h:  Get rid of ".gdbinfo."
670         symbol.  #define MIPS_EFI_SYMBOL_NAME instead.  Use different
671         value so that demangler won't be invoked.  This greatly speeds up
672         stepping.
673         * mips-tdep.c (mips_pop_frame):  Rewrite handling of
674         linked_proc_info so that it properly deallocates the appropriate
675         item after it is done with it instead of before.
676         * Don't pass bogus frame pointer to create_new_frame().  Just
677         leave it as zero so that lower level code will figure out the
678         correct value.
679
680 Wed Oct 14 18:56:28 1992  K. Richard Pixley  (rich@sendai.cygnus.com)
681
682         Sony News native support.
683
684         * Makefile.in (HFILES): added nm-news.h.
685         * nm-news.h: new file.
686         * config/news.mh (XDEPFILES): removed infptrace.o inftarg.o
687           fork-child.o coredep.o to NATDEPFILES.
688           (NAT_FILE, NATDEPFILES): new macros for native support.
689         * config/news.mt (TDEPFILES): removed exec.o.
690
691         * remote-vx.c: remove redundant include of sys/time.h.
692
693         * infrun.c: include ctype.h.  Otherwise some machines result in
694           undefined for isdigit.
695
696 Tue Oct 13 01:27:14 1992  John Gilmore  (gnu@cygnus.com)
697
698         * configure.in:  Convert m68k entries to m68* entries to handle
699         all the various m68xxx hosts and targets.
700         * config/news1000.mt:  No longer needed, same as news.mt.
701
702 Fri Oct  9 18:54:37 1992  K. Richard Pixley  (rich@sendai.cygnus.com)
703
704         * config/sun3os[34].mh (NATDEPFILES): remove duplicate inftarg.o.
705
706 Fri Oct  9 14:20:08 1992  Stu Grossman  (grossman at cygnus.com)
707
708         * Makefile.in (HFILES):  Add all nm-irix3.h, nm-irix4.h,
709         nm-sun2.h, nm-mips.h.
710
711         * config/irix3.mh (NATDEPFILES):  nat-mips.o => mips-nat.o.
712
713         * Makefile.in (alldeps.mak):  Add = sign after NATDEPFILES.
714
715         * config/bigmips.mh config/littlemips.mh:  Remove mips-xdep.o.
716
717 Fri Oct  9 08:41:11 1992  Ian Lance Taylor  (ian@cygnus.com)
718
719         * xm-hppah.h: if __STDC__ is not defined, define
720         HPPA_COMPILER_BUG.
721         symtab.c (decode_line_1): avoid a bug in the HP9000/700 native
722         compiler; see the comment in the file.
723
724 Fri Oct  9 04:43:43 1992  John Gilmore (gnu@cygnus.com)
725
726         First cut at support for all BSD variants on 386.
727
728         * tm-i386bsd.h, xm-i386bsd.h:  New config files.
729         * i386b-nat.c:  New native support file.
730         * configure.in:  Add host and target for i[34]86-*-bsd*.
731         * config/i386bsd.mh, config/i386bsd.mt:  New config files.
732
733 Fri Oct  9 00:31:33 1992  K. Richard Pixley  (rich@sendai.cygnus.com)
734
735         Sun2 native support (untested).
736
737         * xm-sun2.h (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS,
738           REGISTER_U_ADDR): removed to nm-sun2.h.
739         * nm-sun2.h: new file.
740         * config/sun2os[34].mh (XDEPFILES): infptrace.o inftarg.o
741           fork-child.o sun3-xdep.o removed.
742           (NAT_FILE, NATDEPFILES): new macros.
743
744         Mips native support.  Decstation and iris4 have been tested.
745         Iris3 has not.
746
747         * mips-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
748           fill_fpregset): removed to irix4-nat.c
749         * mips-xdep.c: removed.
750         * irix4-nat.c, mips-nat.c, nm-irix3.h, nm-irix4.h, nm-mips.h: new
751           files.
752         * procfs.c: include nm.h.
753         * xm-irix3.h (U_REGS_OFFSET, FETCH_INFERIOR_REGISTERS): removed.
754         * xm-irix4.h: bump copyright.
755         (U_REGS_OFFSET, FETCH_INFERIOR_REGISTERS, USE_PROC_FS,
756         PROC_NAME_FMT): removed.
757         * xm-mips.h (FETCH_INFERIOR_REGISTERS): removed.
758         * config/irix4.mh (XDEPFILES): removed procfs.o fork-child.o.
759         (NAT_FILE, NATDEPFILES): new macros for native support.
760         (CC): supply default compiler switches.
761         * config/irix3.mh (XDEPFILES): removed infptrace.o inftarg.o
762           fork-child.o coredep.o.
763         (NAT_FILE, NATDEPFILES): new macros for native support.  Note that
764         irix3 is untested.
765         * config/decstation.mh (XDEPFILES): removed infptrace.o inftarg.o
766           fork-child.o mips-xdep.o coredep.o.
767           (NAT_FILE, NATDEPFILES): new macros for native support.
768
769 Thu Oct  8 23:50:51 1992  K. Richard Pixley  (rich@sendai.cygnus.com)
770
771         * config/rs6000.mh (XDEPFILES): removed fork-child.o.
772         (NATDEPFILES): added fork-child.o
773         * config/sun3os3.mh (XDEPFILES): removed fork-child.o.
774         (NATDEPFILES): added fork-child.o
775         * config/sun3os4.mh (XDEPFILES): removed fork-child.o.
776         (NATDEPFILES): added fork-child.o
777
778 Thu Oct  8 23:19:25 1992  John Gilmore  (gnu@cygnus.com)
779
780         * infcmd.c (path_info):  Avoid 250-char limit on printf_filtered,
781         by using puts_filtered instead.
782
783 Fri Oct  9 00:28:25 1992  Ken Raeburn  (raeburn@cambridge.cygnus.com)
784
785         * remote-nindy.c (nindy_load): Replacement version from Steve
786         Chamberlain, doesn't require forking to run "strip" or "sx".
787
788 Thu Oct  8 18:27:35 1992  Stu Grossman  (grossman at cygnus.com)
789
790         * Makefile.in (HFILES):  Add nm-*.h files.
791
792 Thu Oct  8 16:27:45 1992  K. Richard Pixley  (rich@sendai.cygnus.com)
793
794         * config/sun4os4.mh (XDEPFILES): fork-child.o removed.
795         (NATDEPFILES): added fork-child.o.
796
797         * doc/gdbint.texinfo: document a few more macros, create new
798           section for native macros.
799
800 Thu Oct  8 13:52:46 1992  Stu Grossman  (grossman at cygnus.com)
801
802         * Makefile.in alldeps.mak depend:  Rip out 29k/udi pending
803         resolution of copyright issues.
804
805 Wed Oct  7 20:08:53 1992  Stu Grossman  (grossman at cygnus.com)
806
807         * Makefile.in (setup-to-dist):  Remove -norecursion so that doc
808         subdir gets configured.
809
810 Wed Oct  7 12:24:01 1992  Ken Raeburn  (raeburn@cygnus.com)
811
812         * Makefile.in (nindy.o): Define "STRIP" as pathname of strip
813         program.
814         * nindy-share/nindy.c (coffstrip): Use that pathname, instead of
815         searching for a "bfd_strip" program.  Also, fixed up arguments
816         passed to that program.
817
818         * tm-nindy960.h (ADDITIONAL_OPTIONS): Use "-ser" rather than "-r",
819         which is now used for something else.  Rewrite description of
820         associated parameters to match how gdb does it now.
821         (ADDITIONAL_OPTION_HELP): Fix message accordingly.
822
823         * m68k-pinsn.c (print_insn_arg): Handle new "`" operand type.
824
825 Tue Oct  6 14:47:11 1992  K. Richard Pixley  (rich@sendai.cygnus.com)
826
827         NOTICE_SIGNAL_HANDLING_CHANGE macro added to the target vector as
828         to_notice_signals.
829
830         * inferior.h (proc_signal_handling_change): prototype removed.
831         * infrun.c (NOTICE_SIGNAL_HANDLING_CHANGE): default removed.
832         (handle_command): now calls target_notice_signals.
833         * procfs.c (proc_signal_handling_change): renamed to
834           procfs_notice_signals.  Now static.  Add prototype.  All callers
835           changed.
836         * target.h (struct target_ops): new field, to_notice_signals.
837         (target_notice_signals): new macro to cover new field.
838         * target.c (cleanup_target): default to_notice_signals to ignore.
839         * corelow.c (core_ops),
840         exec.c (exec_ops),
841         inftarg.c (child_ops),
842         procfs.c (procfs_ops),
843         remote-adapt.c (adapt-ops),
844         remote-eb.c (eb_ops),
845         remote-es1800.c (es1800_ops, es1800_child_ops),
846         remote-hms.c (hms_ops),
847         remote-mm.c (mm_ops),
848         remote-nindy.c (nindy_ops),
849         remote-st2000.c (st2000_ops),
850         remote-udi.c (udi_ops),
851         remote-vx.c (vx_ops, vx_run_ops),
852         remote.c (remote_ops),
853         target.c (dummy_target),
854         xcoffexec.c (exec_ops): added static initializer for
855         to_notice_signals.
856         * xm-irix4.h, xm-sysv4.h (NOTICE_SIGNAL_HANDLING_CHANGE): removed.
857
858 Tue Oct  6 12:13:08 1992  John Gilmore  (gnu@cygnus.com)
859
860         * main.c (define_command):  Add forgotten initializer.
861
862 Tue Oct  6 02:23:17 1992  John Gilmore  (gnu@cygnus.com)
863
864         * language.c, language.h:  Move saved_language out to global
865         expected_language.  Set expected_language when user expectation
866         changes.
867         * language.c (language_info):  Don't print type/range checking gub.
868         * main.c (main):  Set expected language.
869         (execute_command):  Check against expected language.
870         * symfile.c (set_initial_language):  Set expected language.
871
872         * configure.in, config/i386sol2.{mh,mt}:  Preliminary Solaris-x86 conf.
873
874 Fri Sep  4 00:34:30 1992  Per Bothner  (bothner@rtl.cygnus.com)
875
876         A bunch of changes mostly to improve debugging of C++ programs.
877         Specifically, the calling of inferiors methods is improved.
878
879         * value.h:  New macros METHOD_PTR_IS_VIRTUAL,
880         METHOD_PTR_FROM_VOFFSET, METHOD_PTR_TO_VOFFSET to partially
881         hide the implementation details of pointer-to-method objects.
882         How to tell if the pointer points to a virtual method is
883         still very dependent on the particular compiler, but this
884         should make it easier to find the places to change.
885         * eval.c (evaluate_subexp [case OP_FUNCALL]), valprint.c
886         (val_print [case TYPE_CODE_PTR]):  Use the new METHOD_PTR_*
887         macros, instead of a hard-wired-in code that incorrectly
888         assumed a no-longerused representation of pointer-to-method
889         values.  And otherwise fix the relevant bit-rotted code.
890
891         * valprint.c (type_print_base [case TYPE_CODE_STRUCT]):
892         If there are both fields and methods, put a space between.
893
894         * stabsread.c (read_struct_type):  Fix bug in handling of
895         GNU C++ anonymous type (indicated by CPLUS_MARKER followed
896         by '_').  (It used to prematurely exit the loop reading in
897         the fields, so it would think it should start reading
898         methods while still in the fields.  This could crash gdb
899         given a gcc that can emit nested type information.)
900
901         * valops.c (search_struct_method):  Pass 'this' value by
902         reference instead of by value.  This provides a more
903         consistent interface through a recursive search where the
904         "bottom" functions may need to adjust offsets (due to multiple
905         inheritance).
906         * valops.c, value.h, values.c:  Pass extra parameters to
907         value_fn_field and value_virtual_fn_field so we can
908         correctly adjust offset for multiple inheritance.
909         * eval.c (evaluate_subexp [case OP_FUNCALL]):  Simplify
910         virtual function calls by using value_virtual_fn_field().
911         * values.c: New function baseclass_offset, derived from
912         baseclass_addr (which perhaps can be made obsolete?).
913         It returns an offset rather than an address.  This is a
914         cleaner interface since it doesn't mess around allocating
915         new values.
916         * valops.c (search_struct_method):  Use baseclass_offset
917         rather than baseclass_addr.
918
919 Mon Oct  5 16:02:04 1992  Stu Grossman  (grossman at cygnus.com)
920
921         * Makefile.in:  Re-install 29K/UDI stuff.
922         * remote-udi.c (udi_resume):  Clean up.
923         * (udi_wait):  Rewrite, leave out bugs.
924         * Add debugging code to print out all register fetches and stores.
925         * Straighten out target_ops.
926         * tm-29k.h (DUMMY_FRAME_RSIZE):  Pad out to doubleword.
927
928 Mon Oct  5 09:46:44 1992  Ian Lance Taylor  (ian@cygnus.com)
929
930         * remote-udi.c (udi_create_inferior): run with no arguments should
931         not pass the program name as an argument, since the UDI code
932         already handles that.
933         (udi_load): get the symbols from prog_name, not arg_string (the
934         load command should really use arg_string as the program name, not
935         prog_name, but at least the run command works now).
936
937         * munch: HP9000/300 nm puts an extra space between T and symbol
938         name.
939
940         * config/irix4.mh: added -lsun to XM_CLIBS to get RPC functions
941         needed for vxworks targets.
942
943 Fri Oct  2 22:04:42 1992  John Gilmore  (gnu@cygnus.com)
944
945         * am29k-tdep.c (_initialize_29k):  Make it possible for the
946         user to set and query the address where function calls into the
947         inferior write a small scratch routine.  `set call_scratch_address'
948         * inferior.h (PC_IN_CALL_DUMMY):  Fix fencepost error.
949         * remote.c (remote_prepare_to_store): Only fetch regs if they are
950         not already cached validly.
951
952 Thu Oct  1 14:36:42 1992  K. Richard Pixley  (rich@sendai.cygnus.com)
953
954         Rs6000 native support.
955
956         * infptrace.c: remove #ifdef USG from around include ptrace.h.
957           machines without this header should not be compiling this file.
958         * nm-rs6000.h, rs6000-nat.c: new files for native support.
959         * rs6000-tdep.c: do not include sys/ptrace.h or sys/reg.h.
960         * rs6000-xdep.c: removed.  all code now in rs6000-nat.c.
961         * xm-rs6000.h: do not include ptrace.h.
962           (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to nm-rs6000.h.
963         * config/rs6000.mh (XDEPFILES): removed rs6000-xdep.o.
964           infptrace.o and inftarg.o move to NATDEPFIES.
965           (NAT_FILE, NATDEPFILES): new macro for native support.
966
967         Sun3 native support.
968
969         * config/sun3os3.mh, config/sun3os4.mh (NAT_FILE, NATDEPFILES):
970           new macros for native support.
971           (XDEPFILES): moved infptrace.o and inftarg.o to NATDEPFILES,
972           removed sun3-xdep.o.
973         * xm-sun3.h (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to
974           nm-sun3.h.
975         * sun3-xdep.c: removed.  All code is now in sun3-nat.c.
976         * sun3-nat.c, nm-sun3.h: new files for native support.
977
978 Thu Oct  1 10:30:54 1992  Fred Fish  (fnf@cygnus.com)
979
980         * dwarfread.c (dbsize):  New variable to hold size of dwarf info.
981         * dwarfread.c (dwarf_build_psymtabs):  Rename dbsize parameter to 
982         dbfsize and use it to initialize new local file scope dbsize.
983         * dwarfread.c (read_ofile_symtab):  Initialize dbsize and use it.
984         * dwarfread.c (basicdieinfo):  Use dbsize to check for oversize
985         DIEs as well as the current check for undersize DIEs.  This helps
986         to gracefully detect and reject corrupted DIE information.
987
988 Thu Oct  1 01:57:56 1992  John Gilmore  (gnu@cygnus.com)
989
990         Add `command hooks' and a hook for inferior program stopping.
991
992         * command.h (struct cmd_list_element):  Remove unused `aux'
993         field.  Add new `hook', `hookee', and `cmd_pointer' fields.
994         * command.c (add_cmd):  Initialize new fields, elim old.
995         (add_alias_cmd):  Clone new fields.
996         (delete_cmd):  Un-hook hookee if we're deleting hook.
997         (help_cmd):  Tell user the command is hooked, if it is.
998         (lookup_cmd_1):  Abbreviations return the original command
999         instead of themselves, so that hooks on the original cmd will be
1000         run.
1001         * defs.h (enum command_class):  Add class_pseudo and comments.
1002         * gdbcmd.h (execute_user_command):  Add prototype.
1003         * infrun.c (normal_stop):  If the stop command is hooked,
1004         run the hook whenever we stop.
1005         (hook_stop_stub):  Stub for catch_errors.
1006         (_initialize_infrun):  Set up pseudo "stop" command.
1007         * main.c (execute_user_command):  Code extracted from execute_command.
1008         (execute_command):  If hooked, run the hook before the command.
1009         (define_command):  If defining a new hook, check the command it
1010         is hooking, and warn if none.  Install the hook.
1011         * source.c (_initialize_source):  "l" is an abbrev for "list".
1012         * doc/gdb.texinfo:  Document command hooks.
1013
1014         * Makefile.in (VERSION):  Roll to 4.6.7.
1015         * config/sun4os4.mh:  Remove dup inftarg.o from NATDEPFILES.
1016         * infrun.c (breakpoints_inserted):  Make it static again.
1017         * tm-symmetry.h (FLOAT_INFO):  #if 0 it for cross-ptrace abuse.
1018
1019 Wed Sep 30 15:33:22 1992  K. Richard Pixley  (rich@sendai.cygnus.com)
1020
1021         Native file renaming.
1022
1023         * nat-sparc.c -> sparc-nat.c
1024         * nat-sun4os4.h -> nm-sun4os4.h
1025         * nat-trash.h -> nm-trash.h
1026         * config/sun4os4.mh: track file renaming.
1027         * configure.in: link to nm.h rather than nat.h.
1028         * infptrace.c: include nm.h rather than nat.h.
1029
1030 Tue Sep 29 14:35:00 1992  K. Richard Pixley  (rich@sendai.cygnus.com)
1031
1032         Host/target/native split for sun4.
1033
1034         * Makefile.in (TSOBS): removed corelow.o.
1035         * infptrace.c: included nat.h.
1036         * nat-trash.h: temporary header file.  This should be removed once
1037           all hosts have the native/host/target split.
1038         * configure.in: add a symlink from nat-trash.h to nat.h if no
1039           other nat file exists for this configuration.
1040         * sparc-tdep.c: no longer include sys/ptrace.h.
1041         * sparc-xdep.c: removed.  contents have been moved to nat-sparc.c.
1042         * xm-sparc.h (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to
1043           nat-sun4os4.h.
1044         * nat-sparc.c, nat-sun4os4.h: new files for sun4 native support.
1045         * config/sun4os4.mh (XDEPFILES): moved infptrace.o and inftarg.o
1046           to NATDEPFILES.  removed sparc-xdep.o.
1047           (NATDEPFILES, NAT_FILE): new macros for native support.
1048
1049         Break the direct connection from core_file_command to any
1050         particular type of core file support.
1051
1052         * target.h (find_core_target): new prototype.
1053         * target.c (find_core_target): new function.  Walks the target
1054           list looking for the core target.
1055         * core.c (core_file_command): replace calls to core_detach and
1056           core_open with find_core_target and direct calls.
1057
1058 Tue Sep 29 10:19:00 1992  Ian Lance Taylor  (ian@cygnus.com)
1059
1060         * xm-hp300hpux.h: define MEM_FNS_DECLARED; include <sys/ptrace.h>
1061         for infptrace.c.
1062         config/hp300hpux.mh: ALLOCA1 was not defined.
1063
1064 Mon Sep 28 22:03:41 1992  Stu Grossman  (grossman at cygnus.com)
1065
1066         * breakpoint.c, exec.c, language.c, main.c, printcmd.c, symfile.c,
1067         target.c, valprint.c:  Use unfiltered forms of f/printf, et. al.
1068         until we can figure out a better way to do paging.
1069
1070 Sat Sep 26 02:07:31 1992  John Gilmore  (gnu@cygnus.com)
1071
1072         * findvar.c (supply_register):  Add CLEAN_UP_REGISTER_VALUE hook.
1073         * tm-hppa.h (CLEAN_UP_REGISTER_VALUE):  Use it.
1074         * hppa-coredep.c:  Remove, now that we use the hook.
1075         * config/hppab.mh, config/hppah.mh:  Use standard coredep.o.
1076         * hppab-xdep.c, hppah-xdep.c:  Remove custom code, use hook.
1077
1078         * dbxread.c, partial-stab.h:  Replace all #ifdef hp9000s800's with
1079         GDB_TARGET_IS_HPPA's.  This is a SERIOUS KLUDGE.  The code needs to all
1080         be ripped out and reimplemented right (see elfread.c).
1081         * tm-hppa.h (GDB_TARGET_IS_HPPA):  Define.
1082
1083         Rename all HPPA files to fit into unique DOS filenames:
1084         * *hppabsd*  => *hppab*
1085         * *hppahpux* => *hppah*
1086
1087 Sat Sep 26 00:25:15 1992  John Gilmore  (gnu@cygnus.com)
1088
1089         Make the /proc support a target-struct in its own right.
1090
1091         * Makefile.in: Remove inftarg.[co], since it is now included via
1092         config/*.mh files.
1093         * config/*.mh:  Add inftarg.o and fork-child.o to all *.mh that
1094         reference infptrace.o.  Add fork-child.o to all *.mh that
1095         reference procfs.o.
1096
1097         * inferior.h (proc_wait, inferior_proc_init, proc_set_exec_trap):
1098         No longer global functions.
1099         (fork_inferior):  New global function from fork-child.c.
1100         * inftarg.c (child_wait):  Remove USE_PROC_FS conditional.
1101         (ptrace_me, ptrace_him):  New stub functions for fork_inferior().
1102         (child_create_inferior):  Moved to fork-child.c as fork_inferior.
1103         (child_create_inferior):  New tiny function that calls fork_inferior.
1104         * fork-child.c:  New file, containing fork_inferior, which is
1105         built from slight mods to inftarg.c's child_create_inferior.
1106
1107         * procfs.c (procfs_ops):  Add target vector.
1108         (attach):  Rename as static do_attach.
1109         (procfs_create_inferior):  New tiny function that calls fork_inferior.
1110         (child_xfer_memory):  Rename to static procfs_xfer_memory.
1111         (store_inferior_registers):  Rename to static procfs_store_registers.
1112         (inferior_proc_init):  Rename to static procfs_init_inferior.
1113         (procfs_attach, procfs_detach, procfs_prepare_to_store,
1114         procfs_files_info, procfs_open, procfs_mourn_inferior,
1115         procfs_can_run):  Slightly mangled copies of the corresponding
1116         child_XXX routines from inftarg.c.
1117         (proc_wait):  Renamed to static procfs_wait.
1118         (child_resume):  Rename to static procfs_resume.
1119         (fetch_inferior_registers):  Rename to static procfs_fetch_registers.
1120         (initialize_proc_fs):  Rename to initialize_procfs.  Set up
1121         procfs_ops, too.
1122
1123         * putenv.c:  index -> strchr.
1124         * regex.c:  Always rename bcopy to memcpy, etc.
1125         FIXME:  Eventually do the renames rather than use #define's.
1126         * sparc-tdep.c (deferred_stores):  Moved from sparc-xdep.c.
1127         Fix bcopy->memcpy.
1128         * sparc-xdep.c:  Move deferred_stores to target dependent.
1129         * xm-irix4.h, xm-sysv4.h (CREATE_INFERIOR_HOOK):  No longer needed.
1130
1131 Fri Sep 25 21:59:27 1992  John Gilmore  (gnu@cygnus.com)
1132
1133         Split non-target-dependent code out of target_attach routines.
1134
1135         * target.h:  Comments on target_attach args and results.
1136         * infcmd.c (attach_command): Check for existing execution, call
1137         target_attach, set up terminal status and wait_for_inferior, wait
1138         for the attach status, and do normal_stop.
1139         * inftarg.c (child_attach):  Remove target independent stuff.
1140         * remote-adapt.c (adapt_attach):  Ditto.
1141         * remote-mm.c (mm_attach):  Ditto.
1142         * remote-udi.c (udi_attach):  Ditto.
1143         * remote-vx.c (vx_attach):  Ditto.
1144
1145         Cleanup.
1146
1147         * remote-hms.c (hms_attach):  Remove completely, it was useless.
1148         * remote-mm.c, remote-hms.c, remote-udi.c, remote-adapt.c:  Remove
1149         commented-out start_remote calls.
1150         * remote-hms.c, remote-adapt.c, remote-mm.c, remote-udi.c: Remove
1151         DENTER and DEXIT macros and their calls.  Use a real debugger --
1152         like gdb -- to see what functions are being called when.
1153         * utils.c (strcmp_iw):  Make nonstatic, for lint.
1154
1155 Fri Sep 25 18:48:20 1992  John Gilmore  (gnu@cygnus.com)
1156
1157         * infrun.c, inftarg.c, inferior.h:  Comment and lint cleanups.
1158
1159 Fri Sep 25 15:13:44 1992  Stu Grossman  (grossman at cygnus.com)
1160
1161         * tm-sparc.h, dbxread.c (read_ofile_symtab):  Install Jim Wilson's
1162         fix to differentiate between gcc1 & gcc2 compiled files so that we
1163         can debug calls that pass structs as args correctly.
1164         * symmisc.c (dump_symtab):  If block was compiled with gcc, say
1165         so, and what version.
1166
1167         * remote.c (remote_wait):  Make regs be char to avoid picayune
1168         ANSI compiler warnings.
1169
1170         * energize.h:  Move all external struct decls to inside of
1171         __STDC__, add prototype for energize_shell_wait().
1172         * energize.c (getpty):  Clean up, make us really get a controlling
1173         terminal.
1174         * (energize_initialize):  Disable SIGIO prior to setting up for
1175         I/O interrupts.  Move setsid(), et. al. to getpty().
1176         * (energize_shell_wait):  New routine to wait for things started
1177         via the shell command, uses wait() instead of /dev/proc.
1178         * Also, add prototype for execute_command_1().
1179
1180 Fri Sep 25 12:09:33 1992  K. Richard Pixley  (rich@sendai.cygnus.com)
1181
1182         * inftarg.c (child_create_inferior, child_attach,
1183           child_mourn_inferior): collect unix child process stratum
1184           functions which live below the target vector into this file to
1185           facilitate host/target/native split.  Also, make them static.
1186         * inflow.c (child_mourn_inferior): removed.
1187         * infrun.c (child_create_inferior, child_attach): removed.
1188           (resume): becomes global so that functions below the
1189           target vector can find it.
1190         * inferior.h (resume): add prototype.
1191           (child_mourn_inferior, child_create_inferior, child_attach):
1192           remove prototypes.
1193
1194         * xcoffexec.c (exec_ops): child_attach and child_create_inferior
1195           replaced with find_default_attach and
1196           find_default_create_inferior.
1197
1198 Fri Sep 25 10:21:04 1992  Ken Raeburn  (raeburn@rtl.cygnus.com)
1199
1200         * i960-pinsn.c: Use _filtered routines for printing, so symbolic
1201         addresses don't get displayed in the wrong positions.
1202
1203 Fri Sep 25 09:52:47 1992  K. Richard Pixley  (rich@sendai.cygnus.com)
1204
1205         Separate core functions along target vector in preparation for
1206         native support.  Functions above vector now live in core.c.  Those
1207         below in corelow.c.
1208
1209         * core.c (solib_add_stub, core_close, core_open, core_detach,
1210           get_core_registers, core_files_info, core_ops): moved to corelow.c
1211           (_initialize_core): removed addition of core_ops target.
1212         * corelow.c: new file.
1213         (solib_add_stub, core_close, core_open, core_detach,
1214         get_core_registers, core_files_info, core_ops): moved from core.c
1215         (_initialize_corelow): new function.
1216         * gdbcore.h (core_open, core_detach): added prototypes.
1217         (core_ops): add forward declaration.
1218         * Makefile.in (SFILES_MAINDIR): add core.c
1219         (OBS): add core.o
1220         (TSOBS): change core.o to corelow.o
1221
1222 Wed Sep 23 11:14:53 1992  Stu Grossman  (grossman at cygnus.com)
1223
1224         * m68k-tdep.c (m68k_saved_pc_after_call):  Use 'GDB_TARGET_IS_SUN3'
1225         instead of 'sun' predefined symbol so that trap analysis code is
1226         enabled only when the TARGET is a sun3.
1227
1228 Tue Sep 22 17:13:19 1992  Ken Raeburn  (raeburn@cambridge.cygnus.com)
1229
1230         * tm-i960.h (ext_format_i960): Add top-level declaration.
1231         (REGISTER_CONVERT_TO_{VIRTUAL,RAW}): Don't declare it in nested
1232         blocks, else Sun4 compiler complains.
1233
1234 Tue Sep 22 00:43:51 1992  John Gilmore  (gnu@cygnus.com)
1235
1236         * mips-pinsn.c (print_insn_arg, case 'B'):  Disassemble `break'
1237         instruction's argument.  Patch from jonathan@cs.stanford.edu
1238         (Jonathan Stone).
1239
1240 Mon Sep 21 18:16:30 1992  K. Richard Pixley  (rich@sendai.cygnus.com)
1241
1242         Break the thread of control that implies that a unix child
1243         process will be the default target.
1244
1245         * target.c (find_default_run_target, find_default_attach,
1246         find_default_create_inferior, return_zero):  new functions.
1247         (cleanup_target):  Make return_zero the default for to_can_run.
1248
1249         * exec.c (exec_ops), core.c (core_ops):  Replace child_attach and
1250         child_create_inferior references with find_default_XXX instead.
1251
1252         * target.h (struct target_ops): new field, to_can_run.
1253         (find_default_attach, find_default_create_inferior):  new prototypes.
1254         (target_can_run): new macro.
1255
1256         * Also added a zero (default) to_can_run element to all static
1257         struct target_ops initializations throughout GDB, except: 
1258         * inftarg.c (child_ops): Use new child_can_run() to enable child runs.
1259
1260         * infrun.c (child_create_inferior):  Clean up error handling when
1261         no exec file is specified.
1262         (child_attach):  Don't require exec file.
1263
1264 Mon Sep 21 19:43:13 1992  John Gilmore and K. Richard Pixley (gnu@cygnus.com)
1265
1266         Remove kill_inferior_fast, in favor of target_kill, which goes
1267         through the target vector.
1268
1269         * inferior.h (kill_inferior_fast): remove declaration.
1270
1271         * main.c (disconnect): call quit_cover using catch_errors rather
1272         than calling kill_inferior_fast directly.  New way goes through
1273         the target vector, handles attached processes, and writes
1274         command history if appropriate.
1275         (quit_cover): new function, wrapper for quit_command.
1276
1277         * convex-xdep.c, go32-xdep.c, hppabsd-xdep.c, hppahpux-xdep.c,
1278         infptrace.c, procfs.c:  Removed all instances of kill_inferior_fast,
1279         inlining them into the local kill_inferior when needed.
1280
1281 Mon Sep 21 19:23:05 1992  John Gilmore  (gnu@cygnus.com)
1282
1283         * infrun.c (_initialize_infrun):  Alias `i handle' == `i signals'.
1284         * stabsread.c (read_struct_type): Simplify complicated expression
1285         for dumb DECstation compiler.
1286
1287 Mon Sep 21 14:54:35 1992  Ian Lance Taylor  (ian@cygnus.com)
1288
1289         * m68k-pinsn (print_insn_arg, fetch_arg): added support for
1290         operands to memory management instructions, from WRS.
1291
1292 Sep 20 08:42:12 1992  Fred Fish  (fnf@cygnus.com)
1293
1294         * main.c (main):  Back out previous language setting changes.
1295         Replace with simple default to C before processing any init
1296         files.  There MUST be a language set, even in the absence of
1297         init files or executables, or expression parsing fails.
1298
1299 Sat Sep 19 09:52:26 1992  Fred Fish  (fnf@cygnus.com)
1300
1301         * main.c (main):  Move code that sets initial language to
1302         symfile.c.  Fixup places where command files are processed to
1303         be consistent in setting a default language if none has been
1304         previously set.
1305         * symfile.c (set_initial_language):  Add code moved from
1306         main() that sets an initial default language when a new
1307         symbol file is read.
1308         * symfile.c (symbol_file_command):  Call set_initial_language.
1309         * symtab.c (find_main_psymtab):  Add FIXME comment.
1310
1311 Wed Sep 16 22:31:55 1992  K. Richard Pixley  (rich@sendai.cygnus.com)
1312
1313         * breakpoint.c, sparc-tdep.c: comment changes.
1314         * configure.in: removed target_dependent line.
1315
1316         * remote-mm.c (mm_attach): change printf to error to prevent
1317         fallthrough bug.
1318         * remote-udi.c (udi_attach): change printf to error to prevent
1319         fallthrough bug.
1320
1321         * rs6000-tdep.c (push_dummy_frame, pop_dummy_frame): replace
1322         calls to {fetch|store}_inferior_registers with calls to
1323         target_{fetch|store}_registers, for remote-target independence.
1324
1325 Sat Sep 19 04:23:54 1992  John Gilmore  (gnu@cygnus.com)
1326
1327         * Makefile.in:  Fix bug I introduced in merging Rich's change.
1328         * infrun.c (child_create_inferior):  Use proceed() rather than
1329         doing all the same stuff by hand.
1330
1331 Thu Sep 17 17:35:37 1992  K. Richard Pixley  (rich@sendai.cygnus.com)
1332
1333         * Makefile.in, configure.in: add support for files used only when
1334         configured native, that is, when host = target.
1335
1336 Wed Sep 16 23:03:23 1992  K. Richard Pixley  (rich@sendai.cygnus.com)
1337
1338         * tm-sparc.h, xm-sparc.h: externs and macros relating to deferred
1339         stores are target dependent and were moved from xm to tm.
1340
1341 Sat Sep 19 03:14:37 1992  John Gilmore  (gnu@cygnus.com)
1342
1343         * Makefile.in (gdb-all.texi):  Build in objdir, not $srcdir.
1344
1345         * config/decstation.mh:  Add MMALLOC_LIB and MMALLOC_DISABLE
1346         overrides, to avoid problem in xdr_bytes with malloc(0) => 0.
1347
1348 Wed Sep 16 20:04:54 1992  K. Richard Pixley  (rich@sendai.cygnus.com)
1349
1350         * target.h (struct target_ops):  removed to_convert_to_virtual and
1351         to_convert_from_virtual elements.  Initializations removed from
1352         all static initializations.
1353         (target_convert_to_virtual, target_convert_from_virtual):
1354         removed.
1355         (host_convert_to_virtual, host_convert_from_virtual):  Removed
1356         forward declarations.
1357         * target.c (cleanup_target): removed default assignments for
1358         to_convert_to_virtual and to_convert_from_virtual.
1359         * inftarg.c (host_convert_to_virtual, host_convert_from_virtual):
1360         removed.
1361         * findvar.c (value_of_register, value_from_register):  
1362         target_convert_to_virtual inlined.
1363         * infcmd.c (do_registers_info):  target_convert_to_virtual inlined.
1364         * valops.c (value_assign):  target_convert_from_virtual inlined.
1365
1366 Fri Sep 18 02:07:39 1992  John Gilmore  (gnu@cygnus.com)
1367
1368         * main.c (gdb_readline):  Avoid printf_filtered, which sets char
1369         position wrong if used for the prompt.
1370         * utils.c (puts_filtered):  Comment:  NOT a puts() replacement!
1371
1372         Support for accessing arbitrary MIPS stack frames in memory.
1373
1374         * blockframe.c (get_prev_frame_info):  If INIT_FRAME_PC_FIRST is
1375         set, run it before INIT_EXTRA_FRAME_INFO.
1376         * stack.c (frame_info):  If PRINT_EXTRA_FRAME_INFO defined, call it.
1377
1378         * mips-tdep.c (init_extra_frame_info): Only clobber the `frame'
1379         (FP) value in the frame_info struct if it is zero (as from top of
1380         execution stack).
1381         (setup_arbitrary_frame):  Implement FRAME_SPECIFICATION_DYADIC.
1382
1383         * mips-xdep.c (fetch_inferior_registers):  ZERO_REGNUM always
1384         comes back as zero.  So does FP_REGNUM, as a trigger for
1385         init_extra_frame_info.
1386
1387         * tm-mips.h (INIT_FRAME_PC_FIRST):  Kludge, FIXME, defined to get
1388         the program counter set before INIT_EXTRA_FRAME_INFO is run.
1389         (INIT_FRAME_PC):  Defined to null.
1390         (PRINT_EXTRA_FRAME_INFO): print frame pointer location via symtab.
1391         (FRAME_SPECIFICATION_DYADIC):  Ask for two args in frame command.
1392         Briefly explain MIPS stacks in GDB.
1393
1394 Thu Sep 17 03:49:59 1992  John Gilmore  (gnu@cygnus.com)
1395
1396         * copying.awk, copying.c (show_copying_command,
1397         show_warranty_command):  Rename from copying_info, warranty_info,
1398         to match command function conventions.
1399
1400         * utils.c (prompt_for_continue):  Reinitialize more-counts
1401         before printing anything, and again afterward.  Fix comments.
1402         (vfprintf_filtered):  Eliminate static buffer; use auto buffer,
1403         or alloca() if needed.
1404
1405         * rs6000-xdep.c:  Use correct conditional (IBM6000_TARGET) to
1406         detect native versus cross-host.
1407
1408 Wed Sep 16 21:57:14 1992  Stu Grossman  (grossman at cygnus.com)
1409
1410         * m68k-tdep.c (sun3_saved_pc_after_call):  Only do trap check for
1411         Suns.  Rename to m68k_saved_pc_after_call.
1412         * tm-68k-noun.h, tm-sun3.h (SAVED_PC_AFTER_CALL):  Use
1413         m68k_saved... instead of sun3_saved...
1414
1415 Wed Sep 16 17:00:07 1992  John Gilmore  (gnu@cygnus.com)
1416
1417         * Makefile.in (update-depend, update-alldeps): Split out of
1418         setup-to-dist, for convenience in rebuilding the depend and
1419         alldeps.mak files.
1420         (assorted):  Update to catch straggler files when building gdb.tar.Z.
1421
1422 Tue Sep 15 01:18:50 1992  John Gilmore  (gnu@cygnus.com)
1423
1424         Preliminary cleanup for splitting host/native/target.
1425
1426         * infptrace.c (child_resume):  Don't deal with NO_SINGLE_STEP
1427         here; it is dealt with at a gdb-target-independent level.
1428         * rs6000-tdep.c (single_step):  Don't call ptrace, we are a
1429         high toned routine.  Fix return type to void.
1430         * tm-rs6000.h (AIX_BUGGY_PTRACE_CALL): Zap, we think we fixed it.
1431         Rich and I believe the "real problem" was that both single_step
1432         and target_resume were issuing PT_CONTINUE calls.  This would
1433         cause the second PT_CONTINUE to sometimes fail because the process
1434         was already running.
1435         * infptrace.c (child_resume):  Remove AIX_BUGGY_PTRACE_CALL kludge.
1436
1437 Mon Sep 14 19:20:43 1992  Stu Grossman  (grossman at cygnus.com)
1438
1439         * energize.c (pty_to_kernel):  Must check for EAGAIN as
1440         termination condition.
1441         (full_filename):  Don't prepend dirname if filename begins with /.
1442         (breakpoint_notify, kernel_dispatch):  Deal with DynamicLoad
1443         messages properly!!
1444         (getpty (NCR)):  Lotsa bug fixes...
1445         (kernel_dispatch (case StopRType)):  Use kill() instead of
1446         killpg() so we can deal with losing systems...
1447         (wait_for_events):  Work around NCR select() lossage.  It doesn't
1448         zero out readfds when select() returns zero.
1449         (energize_initialize):  Use I_SETSIG to get SIGIO interrupts.  Use
1450         getcwd() instead of getwd() (NCR getwd() seg faults).
1451         (energize_wait):  Use sigaction() for NCR.  Their version of signal()
1452         is unreliable by default.
1453
1454         * procfs.c (proc_wait):  Call print_sys_errmsg() if we get an
1455         error from PIOCSWSTOP.
1456
1457         * breakpoint.c, core.c, exec.c, language.c, main.c, printcmd.c,
1458         symfile.c, target.c, valprint.c:  Use _filtered form of *printf.
1459         defs.h, utils.c:  Make vfprintf_filtered global.
1460
1461         * energize.c (send_location):  New routine to consolidate all
1462         places where we must notify kernel of where the given pc is.
1463         (cplus_demangle):  Put single-quotes around demangled names.
1464         (energize_call_command):  Call send_location() after doing up,
1465         down, and frame commands.
1466
1467 Fri Sep 11 18:28:28 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
1468
1469         * doc/gdb.texinfo, doc/gdbinv-m.m4.in, doc/gdbinv-s.m4.in: first
1470         pass at doc for two new remote targets---29K using UDI, and Tandem
1471         ST2000 using STDBUG.
1472
1473         * doc/all.m4, doc/none.m4: new m4 switch, _ST2000__
1474
1475         * doc/all.m4: turn on H8/300 stuff for generic manual
1476
1477         * doc/gdbinv-s.m4.in: remove text on special procedures to continue 
1478         after explicit call to breakpoint() in serial stubs.
1479
1480 Fri Sep 11 01:34:25 1992  John Gilmore  (gnu@sphagnum.cygnus.com)
1481
1482         * mipsread.c:  Clean up some white space.
1483         (parse_symbol):  Handle stEnd of stFile.
1484         (parse_partial_symbols):  Remove old #if 0'd code.  Handle stLocal.
1485
1486         * mips-xdep.c (REGISTER_PTRACE_ADDR, fetch_inferior_registers,
1487         store_inferior_registers):  Replace unexplained numbers
1488         with manifest constants from a DECstation header file.
1489         * xm-mips.h (KERNEL_U_ADDR):  Get from <machine/param.h>.
1490         (REGISTER_U_ADDR):  Fix up for Ultrix 4.2.
1491
1492         * tm-tahoe.h, xm-tahoe.h (KERNEL_U_ADDR):  Move macro to xm-tahoe.h.
1493
1494         * stack.c (_initialize_stack):  "dow" should be a valid abbreviation
1495         for "down".  Suggested by Richard Stallman.
1496
1497 Thu Sep 10 15:26:07 1992  Ken Raeburn  (raeburn@cambridge.cygnus.com)
1498
1499         * remote-vx.c: Rename realloc for inclusion of rpc/rpc.h, to avoid
1500         redeclaration bug on SunOS 4.
1501
1502 Wed Sep  9 17:36:53 1992  John Gilmore  (gnu@cygnus.com)
1503
1504         * i386-stub.c, sparc-stub.c (getpacket):  Actually check checksums.
1505         * m68k-stub.c:  Remove a few extraneous ANSI-isms.
1506         * remote-nindy.c (nindy_prepare_to_store):  Only fetch regs if 
1507         they aren't already there.
1508         * remote-vx.c (vx_prepare_to_store):  Ditto.
1509         * xcoffread.c:  Surround forward struct defns with #ifdef __STDC__.
1510
1511 Wed Sep  9 16:50:22 1992  John Gilmore  (gnu@cygnus.com)
1512
1513         Removed a large number of changes inserted by Per Bothner
1514         for C++ support.  These will go back in when they've been
1515         examined.
1516
1517 Tue Sep  8 21:05:18 1992  Stu Grossman  (grossman at cygnus.com)
1518
1519         * serial.h:  Fix prototye for serial_raw().
1520         * ser-bsd.c, ser-termios.c:  Fix args for serial_open() &
1521         serial_write() to match prototypes.
1522         * remote-st2000.c (get_reg_name):  Make *p be const.
1523
1524 Tue Sep  8 17:24:52 1992  Ken Raeburn  (raeburn@cambridge.cygnus.com)
1525
1526         * remote-nindy.c (nindy_fetch_registers): Make return type void,
1527         to agree with target structure field type.
1528         (nindy_store_registers): Ditto.
1529
1530         * Makefile (OPCODES): New var, pointing to opcodes library.
1531         (CLIBS, CDEPS): Include it.
1532         (saber_gdb): Load opcodes library.
1533
1534 Tue Sep  8 15:22:06 1992  Stu Grossman  (grossman at cygnus.com)
1535
1536         * a68v-xdep.c (store_inferior_registers):  declare as void.
1537         * infptrace.c:  HP/Apollos have ptrace.h in the wrong place.
1538         * remote-st2000.c:  Massive changes to use new serial package.
1539         Also added 'connect' command to transparantly connect to serial
1540         port.
1541         * ser-termios.c:  Big cleanup, use nicer coding conventions.
1542         * ser-bsd.c:  New module, serial stuff for BSD systems.
1543         * serial.h:  Define struct ttystate properly using HAVE_TERMIO.
1544         * xm-apollo68b.h:  #define PTRACE_IN_WRONG_PLACE...
1545
1546 Fri Sep  4 18:53:57 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
1547
1548         * doc/gdb.texinfo: fix shameful error of agreement reported by
1549         jimb@occs.cs.oberlin.edu (Jim Blandy)
1550         * doc/gdb.texinfo: remove old partial discussion of remote serial
1551         protocol (via serial debug stubs)
1552         * doc/gdbinv-m.m4.in, doc/gdbinv-s.m4.in: new section discussing
1553         use of serial debug stubs
1554
1555 Fri Sep  4 00:34:30 1992  Per Bothner  (bothner@rtl.cygnus.com)
1556
1557         * symfile.h:  Declaration of set_demangling_style() moved
1558         here from demangle.h (which is now in ../include).
1559         * i386-xdep.c:  Update comment.
1560
1561 Thu Sep  3 13:44:46 1992  K. Richard Pixley  (rich@sendai.cygnus.com)
1562
1563         * symtab.c (completion_list_add_symbol): restructured to optimize
1564         for time.  First clip names that cannot match.  Then clip any
1565         names we've already considered.  Drop a redundant strncpy.  Drop
1566         a redundant malloc and associated free for demangled names.
1567
1568 Thu Sep  3 09:17:05 1992  Stu Grossman  (grossman at cygnus.com)
1569
1570         * a68v-xdep.c (store_inferior_registers):  Define as type void.
1571         * configure.in:  Add host m68k-apollo*-bsd*.
1572         * demangle.c (struct demanglers):  Use enum instead of constant
1573         value to keep braindamaged HP/Apollo compiler happy.
1574
1575 Wed Sep  2 20:45:31 1992  Per Bothner  (bothner@rtl.cygnus.com)
1576
1577         * utils.c (strcmp_iw):  Add a hack to allow "FOO(ARGS)" to
1578         match "FOO".  This allows 'break Foo' to work when Foo is
1579         a mangled C++ function.  (See comment before function.)
1580
1581 Wed Sep  2 13:45:27 1992  John Gilmore  (gnu@cygnus.com)
1582
1583         * config/rs6000.mh (MH_CFLAGS):  Circumvent IBM <rpc/rpc.h> bug,
1584         for files in vx-share/*.c.
1585         * xm-rs6000.h (fd_set):  Circumvent the rs6000.mh circumvention,
1586         for normal GDB source files.
1587
1588         * Makefile.in (VERSION):  Roll to 4.6.6.
1589
1590         * tm-vx68.h, tm-es1800.h:  Use tm-68k.h rather than tm-sun3.h.
1591         * tm-sun3.h:  Remove STACK_END_ADDR, no longer used.
1592         * tm-sun3os4.h:  Update comments.
1593         * xm-delta88.h:  Remove STACK_END_ADDR.
1594
1595 Wed Sep  2 01:18:31 1992  John Gilmore  (gnu@cygnus.com)
1596
1597         * Makefile.in (VERSION):  Roll to 4.6.5.
1598
1599         * infrun.c:  Lint for recent `handle' changes.
1600
1601         * ser-termios.c, ser-go32.c:  Remove DEFUN crap, clean up.
1602         * serial.h (EXFUN):  Remove all uses, convert to PARAMS.
1603         * config/sun4os4.mh:  Include ser-termios.o.  FIXME, all .mh files
1604         should include a ser-XXX.o module.
1605
1606         * dbxread.c (elfstab_build_psymtabs):  Remove DEFUN crap.
1607         * defs.h, i960-pinsn.c, remote-hms.c:  Replace CONST with simple const.
1608
1609         * configure.in:  Map unrecognized sun 68k's, sun sparcs, into 
1610         known suns in configure.in, rather than mapping them to unique
1611         config files that happen to duplicate other config files.
1612         * config/sun3.{mh,mt}:  Remove (use identical sun3os4.*).
1613         * config/sun4.{mh,mt}:  Remove (use identical sun4os4.*).
1614
1615 Wed Sep  2 00:10:43 1992  John Gilmore  (gnu@cygnus.com)
1616
1617         * configure.in (*-*-sunos*):  Use trailing * to match all
1618         sub-variants of SunOS, e.g. sunos4* to match sunos4.1.1.
1619         (sparc-*-sunos3):  Remove host & target.  Sunos3 never shipped
1620         in production on Sun-4.
1621         ({a29k,i[34]86,i960}-*-elf):  Add targets, equivalent to coff.
1622         (m68k-*-{aout,coff,elf}):  Add targets, w/new config and tm files.
1623         (sparc-*-{aout,coff,elf}):  Add targets, w/new config and tm files.
1624
1625         * config/m68k-un.mt, config/m68k-noun.mt, config/sparc-un.mt,
1626         config/sparc-noun.mt:  New target configs for embedded.
1627         * config/sun4os3.{mh,mt}:  Remove, never existed in production.
1628
1629         * tm-68k-un.h, tm-68k-noun.h, tm-spc-un.h, tm-spc-noun.h:  New
1630         target definitions for embedded with and without underlines on
1631         identifiers.  FIXME -- this ought to be known by BFD instead.
1632
1633         * tm-sparc.h, tm-sun2.h, tm-sun3.h:  Delete NAMES_HAVE_UNDERSCORE:
1634         not a parameter of the CPU, but of the development environment.
1635         * tm-es1800.h, tm-sunos.h, tm-vx68.h:  Add NAMES_HAVE_UNDERSCORE.
1636
1637 Tue Sep  1 17:31:45 1992  John Gilmore  (gnu@cygnus.com)
1638
1639         * breakpoint.c (breakpoint_re_set):  Avoid setting source symtab
1640         (which involves reading in main's symtab) if we have no breakpoints.
1641
1642 Mon Aug 31 13:47:45 1992  Fred Fish  (fnf@cygnus.com)
1643
1644         * dwarfread.c (cu_language):  New local variable to record
1645         language for current compilation unit being processed.
1646         * dwarfread.c (set_cu_language):  New local function to decode
1647         and record language for current compilation unit being processed.
1648         * dwarfread.c (synthesize_typedef):  Add local function to
1649         synthesize a typedef for C++ classes, structs, unions, and
1650         enumerations.
1651         * dwarfread.c (read_structure_scope):  Synthesize typedefs
1652         for C++ classes, structs and unions.
1653         * dwarfread.c (read_enumeration):  Synthesize typedefs for
1654         C++ enumerations.
1655         * dwarfread.c (read_file_scope):   Call set_cu_language to
1656         record language for current compilation unit.  After symtab
1657         is built, save this recorded language.
1658         * dwarfread.c (process_dies, add_partial_symbol, struct_type,
1659         scan_partial_symbols, new_symbol):  Recognize TAG_class_type.
1660         * dwarfread.c (add_partial_symbol):  Synthesize partial symbol
1661         typedefs for C++ classes, structs, unions, and enumerations.
1662         * dwarfread.c (scan_compilation_units):  Call set_cu_language
1663         to record language for current compilation unit.        
1664         * dwarfread.c (scan_partial_symbols):  Call add_enum_psymbol here
1665         for TAG_enumeration_types, rather than in add_partial_symbol.
1666         * dwarfread.c (add_partial_symbol):  Combine TAG_enumeration_type
1667         case with class, struct, and union type cases, now that they are
1668         the same.  Remove tests for non-NULL name attributes, now done
1669         by callers.
1670         * gdbtypes.h (TYPE_CODE_CLASS):  Add type for C++ classes, but
1671         treat as alias for TYPE_CODE_STRUCT for now.
1672
1673 Sun Aug 30 21:32:17 1992  Ian Lance Taylor  (ian@cygnus.com)
1674
1675         * Makefile.in: map "gdb" through program_transform_name when
1676         installing.
1677
1678 Sun Aug 30 21:18:51 1992  Fred Fish  (fnf@cygnus.com)
1679
1680         * {i386-tdep.c, m68k-tdep.c, mips-tdep.c, sparc-tdep.c}
1681           (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
1682         Use "regi" for local indexing through register numbers, reserving
1683         "regno" for the name of a specific register passed as an input
1684         parameter.  Fix bug propagated through all versions that sometimes
1685         used regno as an index when it should have been regi, thus using
1686         -1 as an index in some cases.
1687
1688 Sun Aug 30 18:15:17 1992  Per Bothner  (bothner@rtl.cygnus.com)
1689
1690         * cplus-dem.c, demangle.h:  Moved to ../libiberty and ../include,
1691         respectively, so same demangler can be used by other programs.
1692         * Makefile.in:  Remove demangler stuff.
1693         * Makefile.in (depend):  Pass -I../readline (needed for main.c).
1694         * demangle.c (_initialize_demangler):  Tell demangler which
1695         CPLUS_MARKER to assume.
1696
1697 Fri Aug 28 13:13:33 1992  John Gilmore  (gnu@cygnus.com)
1698
1699         RS/6000 portability changes (for hosting cross-debuggers).
1700
1701         * breakpoint.c (fixup_breakpoints):  Re-kludge to IBM6000_TARGET.
1702         * buildsym.c, rs6000-xdep.c, rs6000-tdep.c, tm-rs6000.h, 
1703         xcoffexec.c, xcoffread.c:  Rename aixcoff to xcoff everywhere.
1704         * printcmd.c (print_frame_args):  Remove an RS/6000 dependency.
1705         * stabsread.c (define_symbol):  Remove RS/6000 dependencies.
1706         * tm-rs6000.h (ATTACH_DETACH):  Remove: host-dependent.
1707         (PTRACE_ATTACH, PTRACE_DETACH):  Remove: host-dep.
1708         (NO_SINGLE_STEP):  Add, target-dependent.
1709         (loadinfotextindex):  Lowercase, remove "aix_".
1710         * xm-rs6000.h:  Add <sys/ptrace.h> for infptrace.c.
1711         (NO_SINGLE_STEP):  Remove, target-dependent.
1712         * xcoffexec.c (vmap_symtab):  Cleanup #if 0'd code.
1713         * xcoffread.c:  Only build file if RS/6000 native GDB.
1714         (build_function_symbol):  Remove #if 0'd code.
1715         * rs6000-tdep.c:  Cleanup.  Add static fn protos.
1716         Use CORE_ADDR for addresses throughout.  Make void fns void.
1717         (pop_dummy_frame):  Add FIXME about bogosity of design here.
1718         (rs6000_struct_return_address):  Ditto.
1719         (frameless_function_invocation, frame_get_cache_fsr,
1720         frame_initial_stack_address, xcoff_relocate_symtab,
1721         xcoff_init_loadinfo, free_loadinfo, xcoff_add_toc_to_loadinfo,
1722         add_text_to_loadinfo, find_toc_address):  Move from xdep file.
1723         Use CORE_ADDRs.  Change identifiers to lowercase.
1724
1725         * rs6000-xdep.c:  Make whole file conditional on native RS/6000,
1726         supplying dummy routines if non-native.  Add prototype for
1727         static exec_one_dummy_insn.  Move a mess of functions to
1728         rs6000-tdep.c (as above).  Remove #if 0'd code.
1729
1730         * config/rs6000.mh (XDEPFILES):  Move xcoffexec.o to target side.
1731         (XM_CLIBS):  Add -lm to circumvent AIX 3.2 libc ldexp bug.
1732         * config/rs6000.mt (TDEPFILES):  Adopt xcoffexec.o.
1733
1734         * gdbtypes.h (TYPE_ALLOC):  Parenthesize result to avoid problems
1735         for callers.
1736
1737         * vx-share/README, nindy-share/README:  New files describing
1738         how these directories' code is shared, and with whom.
1739
1740 Thu Aug 27 20:04:56 1992  John Gilmore  (gnu@cygnus.com)
1741
1742         * configure.in (target configurations):  Reformat into table.
1743         Remove unsupp. Amigados host and target.  Ditto Mach 386 target.
1744
1745         * tm-altosgas.h, tm-i386v-g.h:  Remove ancient coff encap configs.
1746         * config/{altosgas.mt, i386v-g.mt, i386v32-g.mt}:  Ditto.
1747         * config/{i386sco.mt,i386v32.mt}:  Remove; identical to i386v.mt.
1748         * config/{go32.mt,i960.mt}:  Remove; they only printed error msgs.
1749         * config/nindy960.mt:  Remove useless MT_CFLAGS setting.
1750         * config/i386aout.mt:  Use tm-i386v.h, not tm-i386v-g.h.
1751
1752         * Makefile.in (config-check):  Add command to check whether
1753         configure.in is consistent with config/*.
1754
1755 Wed Aug 26 21:10:52 1992  John Gilmore  (gnu@cygnus.com)
1756
1757         * configure.in (host configurations):  Reformat nested cases into
1758         easy-to-maintain table.
1759         (m68k-altos-*, i386v*):  We don't care whether coff encap is used.
1760         config/{altosgas.mh, i386v-g.mh, i386v32-g.mh}:  Remove.
1761
1762 Wed Aug 26 16:02:01 1992  Fred Fish  (fnf@cygnus.com)
1763
1764         * cplus-dem.c:  Reorder args to most local functions to make them
1765         follow the consistent pattern of struct work_stuff pointer first,
1766         followed by pointer into string being demangled, followed by
1767         pointer to the string where the result is being stored, followed
1768         by other args.  Also generally replace most variables of name
1769         "type" with "mangled" for consistency.  They all pointed to the
1770         same string but half were one name and half the other.
1771         * cplus-dem.c (LONGERNAMES):  Remove #ifndef's.
1772         * cplus-dem.c (demangle_qualified):  Rewrite to clean up and allow
1773         use whenever a qualified name is being demangled.
1774         * cplus-dem.c (do_type):  Qualified names are treated similarly
1775         to fundamental types, not as modifiers of fundamental types.    
1776
1777 Mon Aug 24 20:44:38 1992  Stu Grossman  (grossman at cygnus.com)
1778
1779         * configure.in:  Add sparclite as a target.
1780
1781         * sparc-stub.c (handle_exception):  Flush instruction cache just
1782         before returning to the user.  (hexToInt):  Fix overzealous cleanup.
1783
1784 Mon Aug 24 11:57:13 1992  Fred Fish  (fnf@cygnus.com)
1785
1786         * infrun.c (handle_command):  Rewrite to allow multiple signal
1787         numbers, signal number ranges, and to recognize "all" to mean all
1788         signals except those used by the debugger.
1789         * infrun.c (SET_SIGS, UNSET_SIGS):  Macros used in handle_command
1790         to set or reset actions for specific signals.
1791
1792 Sun Aug 23 17:10:07 1992  Fred Fish  (fnf@cygnus.com)
1793
1794         * coffread.c (decode_type):  Call alloc_type to alloc new
1795         types.
1796         * stabsread.c (read_array_type, read_range_type, define_symbol):
1797         Call alloc_type to alloc new types.
1798         * stabsread.c (define_symbol):  Move dbl_valu symbol field data
1799         from type_obstack to symbol_obstack.
1800         * stabsread.c (define_symbol):  Move typedef_sym from type_obstack
1801         to symbol_obstack.
1802         * gdbtypes.h (TYPE_ALLOC):  New macro to allocate space for data
1803         associated with a type, using the same mechanism as was used to
1804         allocate space for the type structure itself.
1805         * coffread.c (patch_type, coff_read_struct_type,
1806         coff_read_enum_type):  Use TYPE_ALLOC.
1807         * dwarfread.c (struct_type):  Use TYPE_ALLOC.
1808         * gdbtypes.c (create_array_type, check_stub_method, 
1809         allocate_cplus_struct_type):  Use TYPE_ALLOC.
1810         * mipsread.c (parse_symbol, parse_type):  Use TYPE_ALLOC.
1811         * stabsread.c (read_struct_type, read_array_type, read_enum_type,
1812         read_range_type):  Use TYPE_ALLOC.
1813
1814 Sun Aug 23 11:04:08 1992  Fred Fish  (fnf@cygnus.com)
1815
1816         * breakpoint.c (breakpoint_re_set):  Select a default source
1817         symtab if one is not currently selected.
1818         * utils.c (query):  Call wrap_here before building the output
1819         query string, to turn off wrapping and flush any buffered output.
1820         Otherwise our query may end up in the wrap buffer and never be
1821         seen by the user.
1822         * eval.c (evaluate_subexp):  Report error when attempting to
1823         evaluate subscript for types without a target type, rather
1824         than dumping core by using the NULL pointer.
1825         * symfile.c (symbol_file_command):  Forget current_source_symtab
1826         and current_source_line when discarding symbol table.
1827
1828 Sat Aug 22 22:33:20 1992  John Gilmore  (gnu@cygnus.com)
1829
1830         Bug fixes from Andrew Heybey <ath@lcs.mit.edu>.
1831
1832         * tm-mips.h (REGISTER_VIRTUAL_TYPE):  Float regs are float type.
1833         * mips-tdep.c (mips_print_register):  Alloc enough space for two regs.
1834
1835 Fri Aug 21 15:17:03 1992  Stu Grossman  (grossman at cygnus.com)
1836
1837         * remote.c (remote_open):  Fix baud rate setting to make -b flag
1838         work.  (remote_wait):  Change 'T' message parser to deal with new
1839         improved format which allows stub to send an arbitrary bunch of
1840         registers.
1841         * sparc-stub.c:  General cleanups.  (trap_low, handle_exception):
1842         make all this re-entrant by storing all state on the stack.  Clean
1843         up memory error trapping.  (computeSignal, set_debug_traps):
1844         make it all table driven.  Make a start at a baud rate setting command.
1845
1846 Wed Aug 19 10:23:27 1992  Ian Lance Taylor  (ian@cygnus.com)
1847
1848         * m68k-pinsn.c: handle new operand type 'r', introduced for cas2.
1849
1850         * remote-vx.c: redefine malloc to avoid buggy declaration on
1851         RS/6000 <rpc/types.h>.
1852         xm-rs6000.h: include <sys/select.h> to define fd_set for
1853         <rpc/svc.h> on RS/6000.
1854
1855 Tue Aug 18 14:48:24 1992  Ian Lance Taylor  (ian@cygnus.com)
1856
1857         * Makefile.in: added FLAGS_TO_PASS variable, and passed it to
1858         recursive invocations of make.  Always create installation
1859         directories.
1860
1861 Mon Aug 17 18:29:58 1992  Per Bothner  (bothner@rtl.cygnus.com)
1862
1863         * m68k-pinsn.c:  Minor fix in style of output (don't use
1864         range to indicate floating point control registers).
1865
1866 Sat Aug 15 02:58:03 1992  John Gilmore  (gnu@cygnus.com)
1867
1868         * m68k-pinsn.c:  Surround extended support with #ifdef HAVE_68881.
1869
1870         * infcmd.c (registers_info):  Handle multiple register names.
1871         Changes inspired by Roland McGrath.
1872
1873 Sat Aug 15 02:28:52 1992  Stu Grossman  (grossman at cygnus.com)
1874
1875         * sparc-stub.c:  New file.  Mix it with your SPARClite
1876         application, and it will speak GDB remote protocol!
1877         * remote.c (remote_wait):  Change 'T' (expedited reply) message to
1878         deal with arbitrary registers.  Needed for sparc-stub.
1879
1880 Fri Aug 14 12:11:25 1992  Fred Fish  (fnf@cygnus.com)
1881
1882         * cplus-dem.c (cplus_markers):  Add table for gnu style and
1883         use throughout, in place of compile time constant CPLUS_MARKER.
1884         * cplus-dem.c (ARM_VTABLE_STRING, ARM_VTABLE_STRLEN):  Add.
1885         * cplus-dem.c (cfront_special):  New function, as suggested
1886         by pfieland@stratus.com.
1887         * cplus-dem.c (forget_types):  New function.
1888         * cplus-dem.c (cplus_demangle):  Call gnu_special, moved from
1889         demangle_prefix().
1890         * cplus-dem.c (mop_up):  Call forget_types().
1891         * cplus-dem.c (AUTO_DEMANGLING, GNU_DEMANGLING, LUCID_DEMANGLING):
1892         Use throughout, instead of checking current_demangling_style.
1893         * cplus-dem.c (demangle_signature):  When finding an explicit
1894         start of function args, forget all remembered types for
1895         lucid/cfront style demangling.
1896         * cplus-dem.c (demangle_prefix):  In a sequence of two or more
1897         underbar characters, use last pair as the delimiter.  Hoist
1898         gnu_special() call up to cplus_demangle().  Call cfront_special()
1899         when appropriate.
1900         * cplus-dem.c (cplus_special):  Fix virtual table name demangling
1901         for inherited classes.  
1902         * cplus-dem.c (demangle_args):  Document quirks of numbered
1903         references to previously seen types.
1904         * dbxread.c (read_ofile_symtab, process_one_symbol):
1905         Use AUTO_DEMANGLING rather than explicitly checking
1906         current_demangling_style.
1907         * demangle.h:  Add some comments.
1908         * demangle.h (AUTO_DEMANGLING, GNU_DEMANGLING, LUCID_DEMANGLING,
1909         CFRONT_DEMANGLING):  New macros.
1910         * dwarfread.c (LCC_PRODUCER):  Remove trailing space, which is
1911         not found in the actual producer string produced by lcc.
1912         * dwarfread.c (handle_producer):  Use AUTO_DEMANGLING rather
1913         than explicitly checking current_demangling_style.
1914
1915 Thu Aug 13 11:54:46 1992  John Gilmore  (gnu at cygnus.com)
1916
1917         * breakpoint.c (enable_longjmp_breakpoint,
1918         disable_longjmp_breakpoint, set_longjmp_resume_breakpoint):
1919         Check for duplicate breakpoints at the same address.  Bug report
1920         and preliminary fix from Dave Morrison, <drmorris@us.oracle.com>.
1921
1922 Wed Aug 12 11:14:58 1992  Fred Fish  (fnf@cygnus.com)
1923
1924         * buildsym.c (end_symtab):  Document that end_symtab can return
1925         NULL under non-error conditions.
1926         * dwarfread.c (read_file_scope):  Guard against dereferencing NULL
1927         returned from end_symtab for empty compilation units.
1928
1929 Tue Aug 11 02:49:39 1992  John Gilmore  (gnu at cygnus.com)
1930
1931         * am29k-tdep.c:  Lint from DECstation compiler.
1932         * mem-break.c:  Restore test of BREAKPOINT size that Fred removed.
1933         As the man page says, "Sometimes you just can't get lint to shut
1934         up".  That doesn't mean you should blow away the code it won't
1935         shut up about.
1936         * mips-xdep.c:  Revise stubbing-out of code until Rich cleans
1937         it up over the next few weeks.  Make mips x 29k build.
1938         * tm-29k.h (CALL_DUMMY):  Make it work on cross-endian hosts.
1939         (FIX_CALL_DUMMY):  Comment in the patching of the breakpoint,
1940         but leave it as a comment because the breakpoint instruction 
1941         is not easily accessible at this moment (it's static, and if
1942         we define one here, it goes into every file compiled).
1943
1944 Mon Aug 10 22:27:19 1992  Fred Fish  (fnf@cygnus.com)
1945
1946         * Makefile.in (VERSION):  Bump to 4.6.3.
1947         * dwarfread.c (scan_partial_symbols):  Skip over DIE's within
1948         function scopes when building partial symbol tables.
1949         * objfiles.c (open_existing_mapped_file):  Make it clear in
1950         warning message that out of date mapped files are ignored.
1951         * symtab.c (lookup_symtab_1, lookup_symbol):  Print compilation
1952         unit source file name in error message.
1953
1954 Sat Aug  8 23:12:22 1992  Fred Fish  (fnf@cygnus.com)
1955
1956         * dwarfread.c (struct dieinfo):  Add has_at_byte_size.
1957         * dwarfread.c (struct_type):  In absence of AT_byte_size for
1958         bitfield, use size of object of member's type for the size of
1959         the anonymous object containing the bit field.
1960         * dwarfread.c (completedieinfo):  Set has_at_byte_size when
1961         an AT_byte_size attribute is seen.
1962         * mipsread.c (psymtab_to_symtab_1):  Fix misspelled cast to
1963         union aux_ext (was aux_ent).
1964         * i386-pinsn.c (print_insn):  Cast 2'nd arg to read_memory from
1965         unsigned char* to char*, for Lucid compiler.
1966         * i386-tdep.c (codestream_fill):  Fix cast of 2'nd arg to read_memory
1967         to be correct type (from unsigned char* to char*).
1968         * valprint.c (type_print_derivation_info):  Minor tweak to placement
1969         of commas in derived class printing.
1970         * xcoffread.c (builtin_type):  Fix misspelling in fatal message.
1971
1972 Fri Aug  7 11:18:23 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
1973
1974         * xm-go32.h: Define LSEEK_NOT_LINEAR
1975         * source.c (find_source_lines): if LSEEK_NOT_LINEAR is defined
1976         then work out the lseek positions of newlines by running through
1977         the file and `tell'ing.  This makes source file listing work on
1978         OS's where the relationship between physical position in file and
1979         canonical position is indeterminate, eg VMS and DOS.
1980
1981 Thu Aug  6 10:56:01 1992  Fred Fish  (fnf@cygnus.com)
1982
1983         * stabsread.c:  Ensure that all members of all allocated structures
1984         are initialized to known state to avoid hard to find bugs with gdb
1985         using fields containing random data.
1986         * buildsym.c (start_subfile):  Compact dirname initialization.
1987         * buildsym.c (patch_subfile_names):  New function.
1988         * buildsym.c (end_symtab):  Make copy of dirname on symbol obstack.
1989         * buildsym.c (end_symtab):  Free all malloc'd subfile fields.
1990         * buildsym.h (patch_subfile_names):  Add prototype.
1991         * dbxread.c (process_one_symbol):  Call patch_subfile_names.
1992
1993 Wed Aug  5 01:42:40 1992  John Gilmore  (gnu at cygnus.com)
1994
1995         * remote-udi.c:  Update comments.
1996
1997         * remote.c (getpkt):  Only force retransmission ten times;
1998         after that, assume bug in target code, and handle pkt anyway.
1999
2000 Mon Aug  3 17:06:20 1992  Stu Grossman  (grossman at cygnus.com)
2001
2002         * configure.in:  Add support for apollo 68k under BSD environment.
2003         * xm-apollo68b.h:  New file to support above.
2004
2005 Mon Aug  3 00:25:56 1992  Fred Fish  (fnf@cygnus.com)
2006
2007         * configure.in:  Recognize i486 host cpu.
2008         * valprint.c (type_print_derivation_info):  Print derivation info
2009         in same form as class declarations in source.
2010         * valprint.c (type_print_varspec_suffix):  Split arg printing
2011         code out to type_print_args function.
2012         
2013 Sat Aug  1 13:32:58 1992  Fred Fish  (fnf@cygnus.com)
2014
2015         * dwarfread.c (struct dieinfo):  Remove obsolete at_visibility, 
2016         at_import, at_frame_base.
2017         * dwarfread.c (completedieinfo):  Remove cases for obsolete
2018         AT_visibility, AT_import, and AT_frame_base attributes.
2019         * breakpoint.h (BREAKPOINT_MAX):  Increase from 10 to 16 for
2020         i860, which can keep up to 4 shadow breakpoints.
2021         * tm-stratus.h (USG):  Define.
2022         * tm-stratus.h (TARGET_BYTE_ORDER):  Define to BIG_ENDIAN.
2023         * xm-stratus.h (HOST_BYTE_ORDER):  Define to BIG_ENDIAN.
2024         * xm-stratus.h (xm-sysv4.h):  Include, name changed from xm-svr4.h.
2025         * xm-stratus.h (NO_JOB_CONTROL):  Remove define.
2026         * config/stratus.mt (TDEPFILES):  Include files available from
2027         stratus that are not yet in release pending receipt of paperwork
2028         at FSF.
2029         * buildsym.c (finish_block):  Minor code format change.
2030         * gdbtypes.h (struct field):  Add to comments.
2031         * gdbtypes.h (virtual_field_bits):  Add to comments.
2032         * objfiles.c (allocate_objfile):  Change obstack interface to
2033         match FSF merging efforts.
2034
2035 Mon Jul 27 21:14:44 1992  Fred Fish  (fnf@cygnus.com)
2036
2037         * Makefile.in (VERSION):  Bump to 4.6.2.
2038         * Makefile.in (SFILES_MAINDIR):  Add stabsread.c
2039         * Makefile.in (OBS):  Add stabsread.o
2040         * Makefile.in (stabsread.o):  Add build rule.
2041         * stabsread.c, stabsread.h:  New files.
2042         * buildsym.c:  Split out stabs specific support to stabsread.c.
2043         * buildsym.h:  Split out stabs specific support to stabsread.h.
2044         * dbxread.c (stabsread.h):  Include
2045         * dbxread.c (dbx_new_init):  Call stabsread_new_init.
2046         * dbxread.c (dbx_psymtab_to_symtab_1):  Call stabsread_init.
2047         * dbxread.c (read_ofile_symtab):  Call end_stabs.
2048         * dbxread.c (process_one_symbol):  Call end_stabs and start_stabs.
2049         * dbxread.c (elfstab_build_psymtabs):  Call stabsread_new_init.
2050         * dwarfread.c (psymtab_to_symtab_1):  Call buildsym_init, add
2051         really_free_pendings to cleanups.
2052         * elfread.c (elf_new_init):  Call stabsread_new_init.
2053         * gdbtypes.c:  Small changes to maintenance commands.
2054         * mipsread.c (stabsread.h):  Include.
2055         * mipsread.c (psymtab_to_symtab_1):  Call end_stabs.
2056         * xcoffread.c (stabsread.h):  Include.
2057         * xcoffread.c (global_stabs):  Remove redundant def.
2058         * xcoffread.c (read_xcoff_symtab):  Call start_stabs and end_stabs.
2059
2060 Wed Jul 22 21:39:33 1992  Fred Fish  (fnf@cygnus.com)
2061
2062         * lmode_inferior_valid, lmode_ours_valid:  New static vars.
2063         * inflow.c (terminal_init_inferior, terminal_inferior,
2064         terminal_ours_1, initialize_inflow):  Record and use state
2065         of lmode_inferior_valid and lmode_ours_valid.
2066
2067 Wed Jul 22 04:23:03 1992  D. V. Henkel-Wallace  (gumby@cygnus.com)
2068
2069         * es1800.c: use FREAD|FWRITE rather than _FREAD|_FWRITE.
2070         include <sgtty.h> on USG.  (from sef).
2071
2072         * depend: es1800 dependency needed here.
2073
2074 Mon Jul 20 21:09:53 1992  Fred Fish  (fnf@cygnus.com)
2075
2076         * buildsym.c (read_struct_type):  Initialize structs allocated
2077         with alloca, to avoid using random values from stack later on.
2078         * defs.h (fprintf_filtered):  Add prototype.
2079         * gdbtypes.c (check_stub_method):  Fix misleading comments.
2080         * gdbtypes.c (print_arg_types, dump_fn_fieldlists):  New maint
2081         support functions.
2082         * gdbtypes.c (print_cplus_stuff, recursive_dump_type):  Many
2083         small changes to maint support functions.
2084         * gdbtypes.h (cplus_struct_type):  Reorganize member ordering
2085         for some fields and expand comments.
2086         * objfiles.c (allocate_objfile):  Use new obstack_alloc_arg
2087         macro and track change to obstack_full_begin macro.
2088         * utils.c (fprintfi_filtered):  New function.
2089         * valprint.c (type_print_base):  Fixup field printing to not
2090         print extraneous lines and not print bogus "no data fields"
2091         messages for C++ classes with no data members.  Also use new
2092         fprintfi_filtered function.
2093
2094 Mon Jul 20 11:25:18 1992  D. V. Henkel-Wallace  (gumby@cygnus.com)
2095
2096         * configure.in: es1800 ok for 68000 too.
2097
2098 Sat Jul 18 15:48:58 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
2099
2100         * configure.in: echo error messages to stderr, not stdout
2101
2102 Fri Jul 17 17:07:24 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
2103
2104         * configure.in: recognize hppa* instead of hppa
2105
2106 Fri Jul 17 16:52:04 1992  Stu Grossman  (grossman at cygnus.com)
2107
2108         * energize.c:  Second cut at DynamicLoad message handling.
2109
2110         * energize.c:  Relativize pathnames in #include statements.
2111         * (kernel_dispatch):  Better error messages for unknown protocol
2112         messages.
2113         * (kernel_dispatch):  First cut at DynamicLoad message handling.
2114
2115         * Makefile.in:  Remove -I../readline from all compilations,
2116         include a special case for main.o instead.
2117
2118 Fri Jul 17 10:14:56 1992  Fred Fish  (fnf@cygnus.com)
2119
2120         * eval.c (evaluate_subexp):  Ask lookup_struct_elt_type to call
2121         error if it fails to find a member type, rather than return NULL
2122         and trigger a coredump.
2123         * symtab.c (lookup_symbol, lookup_demangled_block_symbol,
2124         lookup_demangled_partial_symbol,):  Ask demangle_and_match to
2125         match on complete demanglings, including argument lists for member
2126         functions, rather than just accepting the first demangling that
2127         matches the class and function name.
2128         * dwarfread.c (read_file_scope):  Pass contents of AT_comp_dir
2129         to start_symtab as the directory name.
2130         * dwarfread.c (completedieinfo):  Strip off any leading hostname
2131         portion of the AT_comp_dir attribute string.  Gdb doesn't know
2132         what to do with them (FIXME).
2133
2134 Thu Jul 16 13:37:09 1992  Stu Grossman  (grossman at cygnus.com)
2135
2136         * breakpoint.c (commands_command):  Simplify code a bit, remove
2137         unnecessary fflush().
2138
2139         * Makefile.in (OTHERS):  Add gcc.patch.
2140         * partial-stab.h (N_SO):  Fix handling of redundant SOs (again...)
2141
2142 Thu Jul 16 12:07:40 1992  Fred Fish  (fnf@cygnus.com)
2143
2144         * dwarfread.c (LCC_PRODUCER):  Change to match current NCR
2145         lcc producer string.
2146
2147 Thu Jul 16 11:40:55 1992  Stu Grossman  (grossman at cygnus.com)
2148
2149         * WHATS.NEW renamed to NEWS.
2150
2151 Wed Jul 15 11:37:31 1992  Fred Fish  (fnf@cygnus.com)
2152
2153         * dbxread.c, dwarfread.c:  Re-enable experimental code to
2154         automatically select demangling style.
2155         * demangle.c (DEFAULT_DEMANGLING_STYLE):  Rename from simply
2156         DEMANGLING_STYLE, to make more descriptive.  Revert back to
2157         "auto" as default.  Comment use.
2158         * Makefile.in (DEMANGLING_STYLE, DEMANGLE_OPTS):  Remove.
2159         * Makefile.in (${DEMANGLER}.o) Remove target and special
2160         compilation rule.
2161
2162 Tue Jul 14 23:05:14 1992  Fred Fish  (fnf@cygnus.com)
2163
2164         * Makefile.in (VERSION):  Bump to 4.6.1 (post-release versions).
2165
2166 Tue Jul 14 19:26:54 1992  Stu Grossman  (grossman at cygnus.com)
2167
2168         * Makefile.in, demangle.c:  Change default demangling style to
2169         gnu.
2170         * Makefile.in:  Update version to 4.6 !!!
2171         * README, WHATS.NEW:  Update for 4.6.
2172
2173 Tue Jul 14 16:59:46 1992  Ken Raeburn  (raeburn@cygnus.com)
2174
2175         * i960-tdep.c (frame_args_address): If arg pointer can't be found,
2176         use frame address.
2177
2178         * buildsym.c (read_struct_type): Don't die on TYPE_CODE_UNDEF
2179         nodes as base classes.
2180
2181 Tue Jul 14 00:12:30 1992  Stu Grossman  (grossman at cygnus.com)
2182
2183         * alldeps.mak, depend:  Update.
2184
2185         * xcoffread.c:  Add decl for section_offset to keep prototype happy.
2186
2187         * Makefile.in (VERSION):  4.5.9.
2188
2189         * xm-hp300bsd.h:  Add decl for strdup().
2190         * mips-tdep.c (heuristic_proc_desc):  Fill in proc start addr in
2191         PDR.  Cleanup a few things, fix compilation warnings.
2192
2193 Mon Jul 13 19:06:54 1992  Fred Fish  (fnf@cygnus.com)
2194
2195         * Makefile.in (DEMANGLING_STYLE):  New define to set default
2196         demangling style for C++.  Defaults to "auto".
2197         * Makefile.in (DEMANGLE_OPTS):  Use DEMANGLING_STYLE.
2198         * Makefile.in (SFILES_MAINDIR):  Add demangle.c
2199         * Makefile.in (OBS):  Add demangle.o
2200         * cplus-dem.c (GNU_DEMANGLING, ARM_DEMANGLING, LUCID_DEMANGLING):
2201         Remove compile time decisions about demangling style and replace
2202         with runtime decisions using current_demangling_style.
2203         * cplus-dem.c (main):  Expand code included during building of
2204         standalone demangler to recognize demangling style options.
2205         * dbxread.c (demangle.h):  Include.
2206         * dbxread.c (read_ofile_symtab, process_one_symbol):  Set GNU C++
2207         demangling style if processing g++ code and current demangling style
2208         is auto (Note: this feature currently disabled.)
2209         * demangle.c:  New file, generic demangling control.
2210         * demangle.h (demangling_styles):  New enumeration to select one
2211         of several demangling styles.  Also define string names for each
2212         style.
2213         * demangle.h (set_demangling_style):  Add prototype.
2214         * dwarfread.c (demangle.h):  Include.
2215         * dwarfread.c (GPLUS_PRODUCER, LCC_PRODUCER, CFRONT_PRODUCER):
2216         New producer string prefixes to recognize.
2217         * dwarfread.c (handle_producer):  Consolidate actions for specific
2218         producers.  Set demangling style based on producer string if
2219         current style is auto.  (Note: this feature currently disabled.)
2220         * config/ncr3000.mt (DEMANGLE_OPTS):  Remove.
2221
2222 Sat Jul 11 18:23:58 1992  John Gilmore  (gnu at cygnus.com)
2223
2224         * config/sun4sol2.mh:  Remove -xs flag, default INSTALL to cp.
2225
2226 Fri Jul 10 13:58:34 1992  Per Bothner  (bothner@rtl.cygnus.com)
2227
2228         * gdbtypes.c, gdbtypes.h:  New function lookup_signed_typename.
2229         * c-exp.y:  Call lookup_signed_typename() after seeing
2230         "signed".  This handles "signed char" correctly.
2231         * c-exp.y:  Recognize (but ignore) 'const' and 'volatile'
2232         keywords before a type specifier.
2233
2234 Fri Jul 10 10:19:52 1992  Fred Fish  (fnf@cygnus.com)
2235
2236         * command.c (lookup_cmd_1):  Clarify descriptive comments.
2237         * gdbcmd.h (maintenanceprintlist):  Add declaration.
2238         * main.c (maintenanceprintlist):  Add definition.
2239         * main.c (gdb_completer_command_word_break_characters):  Add.
2240         * main.c (symbol_completion_function):  Switch completer word
2241         break character sets dynamically, based on whether completion is
2242         being done on commands or on something else.
2243         * main.c (initialize_cmd_lists):  Init maintenanceprintlist.
2244         * maint.c:  Include demangle.h.
2245         * maint.c (maintenance_demangle):  New function.
2246         * maint.c (maintenance_print_command):  New function.
2247         * maint.c (_initialize_maint_cmds):  Reorganize some commands
2248         under new maintenance print subcommand.
2249
2250 Thu Jul  9 19:05:27 1992  Per Bothner  (bothner@rtl.cygnus.com)
2251
2252         * gdbtypes.c (lookup_struct_elt_type):  If the input type is
2253         TYPE_CODE_PTR or TYPE_CODE_REF, dereference it to get the
2254         target type.  Otherwise, 'whatis this.field' wouldn't work,
2255         which would be inconsistent, since 'print this.field' works.
2256         * buildsym.c (read_struct_type, read_enum_type):  Clear
2257         TYPE_FLAG_STUB flag.
2258         * buildsym.c (cleanup_undefined_types):  Don't rely on a
2259         flawed "Reasonable test to see if" a type has been defined
2260         since it was referred to; now we can just see if the
2261         TYPE_FLAG_STUB flag has been cleared.
2262         * valprint.c (print_type_base):  Emit public/protected/private
2263         labels for methods as well as fields.  Also, indent these labels
2264         2 spaces instead of 4, for a more conventional "look".
2265         * symtab.c (gdb_mangle_name):  Undo Fred's change, unless
2266         GCC_MANGLE_BUG is defined.  Also, handle destructors specially.
2267         * gcc.patch:  New file.  Contains patch for gcc (so people
2268         with gdb-2.2.x won't have to wait for a new gcc release).
2269
2270 Thu Jul  9 18:44:26 1992  Ken Raeburn  (raeburn@cygnus.com)
2271
2272         * i960-pinsn.c (mem): Variables reg[123] should point to CONST.
2273         (print_addr): Call print_address to show symbolic version as well.
2274
2275         * remote-vx.c (vx_kill): Don't look for arguments; they aren't
2276         being passed.
2277         (vx_read_register): Declare inferior_fp_regs.  Delete code for
2278         copying "inferior_registers" around; the values are already in var
2279         "registers".  Use correct size for register set.
2280
2281         * remote-vx.c (vx_write_register): Don't try writing FP regs; the
2282         target doesn't support it.
2283         (vx_read_register): Don't try reading them either.
2284
2285         * tm-i960.h (IP_REGNUM): Move to end of non-FP list, since the
2286         VxWorks back end reads them in one contiguous set except for this
2287         one.
2288         (register_names): Change "pc" to "pcw" to avoid confusion printing
2289         "$pc".
2290         * tm-vx960.h (PC_REGNUM): Use RIP_REGNUM, since that's where we
2291         find the PC under VxWorks.
2292
2293 Wed Jul  8 21:34:30 1992  Fred Fish  (fnf@cygnus.com)
2294
2295         * dwarfread.c (alloc_utype, decode_subscr_data):  Call alloc_type
2296         to create new blank types, instead of handcrafting them.
2297         * defs.h (printfi_filtered):  Add prototype.
2298         * utils.c (printfi_filtered):  New function.
2299         * gdbtypes.c (recursive_dump_type):  Use printfi_filtered to
2300         to simplify the code.  Other cleanups.
2301         * gdbtypes.c (check_stub_method):  Demangle using DMGL_ANSI.
2302         * gdbtypes.h (struct cplus_struct_type):  Add comments describing
2303         use of various fields.
2304         * gdbtypes.c (print_bit_vector, print_cplus_stuff):  New functions.
2305         * c-exp.y (%token):  Add CLASS as a token for C++, add grammar
2306         production that currently treats it exactly the same as STRUCT.
2307         * c-exp.y (yylex):  Recognize "class" as token CLASS.
2308         * symtab.c (gdb_mangle_name):  Rewrite to match current g++ stabs.
2309         * symtab.c (decode_line_1):  Fix to pass quoted args on down to
2310         general symbol handling code.  Call cplus_mangle_opname with
2311         DMGL_ANSI.
2312         * symtab.c (decode_line_2):  Print demangled function names in
2313         breakpoint menus, instead of just file and line number.
2314         * symtab.c (name_match):  Call cplus_demangle with DMGL_ANSI.
2315         * valprint.c (type_print_base):  Print "class" for C++ classes,
2316         rather than "struct".  Print section labels for public, protected
2317         and private members of C++ classes.     
2318         * values.c:  Include demangle.h.
2319         * values.c (value_headof):  Call cplus_demangle with DMGL_ANSI.
2320
2321 Wed Jul  8 17:23:07 1992  Stu Grossman  (grossman at cygnus.com)
2322
2323         * Makefile.in (VERSION):  Update to 4.5.8.
2324
2325  Wed Jul  8 00:11:02 1992  Stu Grossman  (grossman at cygnus.com)
2326
2327         * dbxread.c (dbx_symfile_init):  Init stab_section_info to NULL to
2328         prevent crashes when examining cross-targets.
2329         * dbxread.c (process_one_symbol):  Include directory name when
2330         calling start_subfile for SOL & BINCL symbols.  This allows gdb to
2331         find include files, and yacc/lex sources when the cwd doesn't match
2332         that in which the object was compiled.
2333         * objfiles.h (ALL_MSYMBOLS):  Don't seg fault when there are no
2334         msymbols.
2335         * symtab.c (lookup_symtab_1):  Rewrite.  It now handles include
2336         files.
2337
2338 Tue Jul  7 09:00:42 1992  Fred Fish  (fnf@cygnus.com)
2339
2340         * maint.c (maintenance_command, maintenance_info_command):
2341         Install with allow_unknown as 0 and call help_list to show
2342         list of possibilities when no subcommand is specified.
2343
2344 Tue Jul  7 00:20:29 1992  Fred Fish  (fnf@cygnus.com)
2345
2346         * configure.in:  Add m68k-ericsson-*.
2347         * remote-es1800.c, tm-es1800.h, config/es1800.mt:  New files.
2348
2349 Sun Jul  5 17:17:16 1992  Fred Fish  (fnf@cygnus.com)
2350
2351         * maint.c:  New file.
2352         * Makefile.in (SFILES_MAINDIR):  Add new file maint.c.
2353         * Makefile.in (OBS):  Add new file maint.o.
2354         * defs.h (command_class):  Add class_maintenance.
2355         * defs.h (MAINTENANCE_CMDS):  Default to including maintenance
2356         commands.  Allow for them (and other nonessential parts of gdb)
2357         to be selectively left out under special circumstances.
2358         * gdbtypes.c (recursive_dump_type):  New function; supports
2359         maintenance print-type command.
2360         * gdbtypes.h (recursive_dump_type, maintenance_print_type):
2361         Add prototypes.
2362         * main.c (maintenancelist, maintenanceinfolist):  Add maintenance
2363         command lists.
2364         * main.c (initialize_cmd_lists):  Eliminate unnecessary casts on
2365         initializers.  Add initializations for setprintlist, showprintlist,
2366         setchecklist, showchecklist, maintenancelist, and maintenanceinfolist.
2367         * printcmd.c (maintenance_print_type):  New maintenance cmd.
2368         * valprint.c (setprintlist, showprintlist):  Move to main.c, as
2369         implied by comment that all cmd lists are owned by main.c.
2370         * infcmd.c (unsetlist):  Move to main.c, as implied by comment
2371         that all cmd lists are owned by main.c.
2372         * language.c (setchecklist, showchecklist):  Move to main.c, as
2373         implied by comment that all cmd lists are owned by main.c
2374         * breakpoint.c (enablelist, enablebreaklist, disablelist, cmdlist,
2375         deletelist):  Remove redundant declarations (also in gdbcmd.h).
2376         * symmisc.c (printsyms_command):  Now maintenance_print_symbols.
2377         * symmisc.c (printmsyms_command):  Now maintenance_print_msymbols.
2378         * symmisc.c (printpsyms_command):  Now maintenance_print_psymbols.
2379         * symmisc.c (printobjfiles_command):  Now maintenance_print_objfiles.
2380         * symtab.h (maintenance_print_symbols, maintenance_print_psymbols,
2381         maintenance_print_msymbols, maintenance_print_objfiles):
2382         Add prototypes.
2383         * symmisc.c (printsyms_command, printpsyms_command,
2384         printmsyms_command, printobjfiles_command):  Removed from
2385         _initialize_symmisc.
2386         * main.c (dump_me_command):  Moved to maint.c and renamed to
2387         maintenance_dump_me.
2388         * breakpoint.c (all_breakpoints_info):  Rename to
2389         maintenance_info_breakpoints.
2390         * breakpoint.c (_initialize_breakpoint):  Convert add_info of
2391         all_breakpoints_info to add maintenance_info_breakpoints to the
2392         maintenanceinfolist instead.
2393         main.c (initialize_main):  Set up maintenance class commands.
2394
2395 Sun Jul  5 11:03:53 1992  Stu Grossman  (grossman at cygnus.com)
2396
2397         * energize-patches:  Fix minor problems with building energize lib.
2398
2399         * energize-patches:  Change names of all cadillac procedure calls
2400         to be energize procedure calls.  Simplify many hooks by moving
2401         tests energize.c.  Configure energize, and build it automatically now.
2402
2403 Sun Jul  5 09:43:28 1992  Fred Fish  (fnf@cygnus.com)
2404
2405         * Makefile.in (VERSION):  Bump to 4.5.7.
2406         * cplus-dem.c (demangle_args):  Validate index for previously
2407         seen type to guard against bogus values from malformed manglings.
2408         * valops.c (value_struct_elt_for_reference):  Guard against
2409         blindly using NULL return value from lookup_symbol.
2410
2411 Sun Jul  5 09:46:43 1992  Stu Grossman  (grossman at cygnus.com)
2412
2413         * cadillac.c, cadillac-patches:  Rename to energize.c and
2414         energize-patches.  Change all routines and variables named
2415         'cadillac*' to 'energize*'.  Create new file called energize.h to
2416         hold all interface declarations.
2417
2418         * deblib/connection/*:  Move all of this stuff into energize/, but
2419         delete unneeded files.
2420
2421 Sun Jul  5 03:06:39 1992  John Gilmore  (gnu at cygnus.com)
2422
2423         * tm-sysv4.h (NAMES_HAVE_UNDERSCORE):  SVR4 systems don't.
2424
2425         * buildsym.c (finish_block):  Fix thinko `inner block' complaints.
2426         * dbxread.c (process_one_symbol):  Parse N_OPT "gcc2_compiled.".
2427         * procfs.c (proc_set_exec_trap): Set run-on-last-close flag on
2428         child processes, to avoid dead ones "hanging around" after GDB exits.
2429         (attach): Always stop the process if it needs it.  Set RLC flag
2430         when attaching running processes, so it will continue if we detach
2431         it, quit, or are killed.
2432         (detach):  Clear faults and set RLC flag to make process run
2433         when we close it.
2434         (open_proc_file):  New `mode' argument for O_RDONLY or O_RDWR.
2435         Callers changed.
2436         (info_proc):  Open process O_RDONLY, so we can see any process,
2437         even those controlled by debuggers.
2438         * tm-sun4sol2.h (SUN_FIXED_LBRAC_BUG):  They did (in Sol 2).
2439
2440 Sat Jul  4 03:43:38 1992  John Gilmore  (gnu at cygnus.com)
2441
2442         Relocate symbols using an array of section_offsets, rather than a
2443         single `addr' or `offset'.  This makes Solaris-2 support work, and
2444         permits better VxWorks (and maybe xcoff) support later.
2445
2446         * symtab.h (struct section_offsets):  New structure for keeping
2447         a set of offsets, rather than a single one.
2448         (struct objfile):  Replace addr with section_offsets member.
2449         * symfile.h:  Add sym_offsets to struct sym_fns.  Conforming changes.
2450         * gdb-stabs.h:  New include file with `symbol type specific'
2451         parameters for psymtabs and objfiles.
2452         * Makefile.in (HFILES):  Add gdb-stabs.h.
2453         * buildsym.h (start_psymtab, process_one_symbol):  Fix prototypes.
2454         * coffread.c:  Conforming changes.  Fake offset array always 0.
2455         * dbxread.c:  Conforming changes.
2456         (struct dbx_symfile_info):  Move to gdb-stabs.h.
2457         (start_psymtab):  Call elfstab_offset_sections to calculate good
2458         offsets for this source file, based on the ELF symbol table info.
2459         (read_ofile_symtab):  Yank N_CATCH, which is dead.
2460         (process_one_symbol, N_CATCH):  Yank.
2461         (", N_FUN, N_FNAME, N_FN, N_FN_SEQ, N_SO, N_SOL, N_ENTRY):
2462         Relocate with SECT_OFF_TEXT.
2463         (", N_STSYM, N_LCSYM, N_ROSYM):  Grope around in the stab string
2464         to distinguish relocatable from absolute symbols.  Then, if not
2465         absolute, do:
2466         (", N_STSYM, N_DSLINE):  SECT_OFF_DATA.
2467         (", N_LCSYM, N_BSLINE):  SECT_OFF_BSS.
2468         (", N_ROSYM):  SECT_OFF_RODATA.
2469         (elfstab_build_psymtabs):  Caller has allocated dbx_symfile_info.
2470         (dbx_symfile_offsets):  Add to translate addr to offset.
2471         * dwarfread.c:  Conforming changes.  Single offset currently used.
2472         * elfread.c:  Add various complaints about elf/stab stuff.
2473         #include gdb-stabs.h.  Conforming changes, using a single offset.
2474         (elf_symtab_read):  Record info from BSF_FILE symbols, and local
2475         variables called "Bbss.bss", "Ddata.data", and "Drodata.rodata",
2476         for later use in building psymtabs.
2477         (elf_symfile_read):  Allocate dbx_symfile_info here, to keep
2478         the info collected in elf_symtab_read.  Cleanup calls free_elfinfo.
2479         (free_elfinfo):  New fn, frees all chained stab_section_infos
2480         in an objfile, and zaps the start-of-chain pointer.
2481         (elfstab_offset_sections):  New fn, looks in stab_section_info
2482         chain to determine section bases to relocate a psymtab's worth
2483         of symbols, as they are being read.
2484         * mipsread.c:  Conforming changes.  Stabs-reading will relocate
2485         using one offset.  MIPS-reading will not relocate at all.
2486         * partial-stab.h:  Relocate different symbol types using different
2487         offsets from section_offsets.
2488         * symfile.c:  Conforming changes.
2489         (find_lowest_section):  Unused function to use later
2490         to free us from the Tyranny of the Text Section.
2491         (syms_from_objfile):  Translate absolute arg ADDR to offsets used
2492         in all lower layers of symbol reading.  Call format-specific
2493         sym_offsets function to initialize offsets for high speed symbol
2494         reading.
2495         (symbol_file_add):  Call reinit_frame_cache so callers don't have to.
2496         (symbol_file_command, add_symbol_file_command):  Callers changed.
2497         * symmisc.c (dump_psymtab):  Print new relocation parameters.
2498         * xcoffread.c:  Corresponding changes.
2499
2500         * buildsym.c:  Tidy innerblock_complaint and blockvector_complaint.
2501         * main.c (main):  Read the $HOME/.gdbinit file before processing
2502         the argv arguments (e.g. reading symbol files or core
2503         files).  This allows global parameters to be set, which will apply
2504         during the symbol reading.  The ./.gdbinit is still read after
2505         argv processing.
2506         * symtab.c (list_symbols):  `i variables' shouldn't show enum values.
2507         * xcoffexec.c:  Clean up quote inside comment.
2508
2509 Fri Jul  3 20:18:26 1992  Fred Fish  (fnf@cygnus.com)
2510
2511         * breakpoint.c, buildsym.c, c-exp.y, coffread.c, command.c,
2512         core.c, cplus-dem.c, dbxread.c, dwarfread.c, elfread.c, environ.c,
2513         eval.c, findvar.c, gdbtypes.c, hppabsd-tdep.c, hppahpux-tdep.c,
2514         i386-tdep.c, ieee-float.c, infcmd.c, inflow.c, infptrace.c,
2515         infrun.c, m2-exp.y, mipsread.c, objfiles.c, parse.c, procfs.c,
2516         putenv.c, remote-mm.c, remote-vx.c, solib.c, sparc-tdep.c,
2517         sparc-xdep.c, stack.c, symfile.c, symtab.c, symtab.h, target.c,
2518         tm-i386v.h, tm-sparc.h, utils.c, valarith.c, valops.c, valprint.c,
2519         values.c, xcoffread.c:
2520         Remove "(void)" casts from function calls where the return value
2521         is ignored, in accordance with GNU coding standards.
2522
2523 Fri Jul  3 00:00:49 1992  John Gilmore  (gnu at cygnus.com)
2524
2525         * dbxread.c (process_one_symbol):  Ignore N_MAIN, N_ENDM for Solaris.
2526         * partial-stab.h:  Ignore N_ENDM.
2527         * elfread.c (elf_symtab_read):  Ignore symbols that don't have a
2528         CODE or DATA section attachment.  This eliminates a lot of random
2529         values from shared libraries, which screw up the ordinary symbols
2530         in the address ranges they happen to overlap.
2531         * buildsym.c (define_symbol):  Eliminate special tests
2532         for function types; move into "function" cases in switch statement.
2533         (define_symbol: 'f', 'F', 'P'):  Process all parameter types
2534         in case they define new type numbers.  But ignore them (FIXME).
2535         ('k', 'B'):  Ignore const and volatile if we see them (FIXME).
2536         (read_sun_builtin_type):  Add commentary.
2537
2538 Wed Jul  1 00:47:02 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
2539
2540         * xm-rs6000.h: define MEM_FNS_DECLARED
2541
2542 Tue Jun 30 02:25:10 1992  John Gilmore  (gnu at cygnus.com)
2543
2544         * tm-mips.h (GDB_TARGET_IS_MIPS):  Define for mips-xdep.c.
2545         (READ_MIPS_FORMAT, COFF_FORMAT):  Remove, unused now.
2546         * mips-xdep.c:  Remove most include files (unused, caused errs).
2547         (fetch_core_registers):  Use right parameters in dummy fn.
2548
2549 Mon Jun 29 18:30:57 1992  John Gilmore  (gnu at cygnus.com)
2550
2551         * buildsym.c (scan_file_globals):  Beware the null file.
2552         Fix from Jim Williams.
2553
2554         * stack.c (return_command):  Evaluate expression *before* popping
2555         off the stack frames!  Fix inspired by Jim Williams.
2556         (up_silently_command, down_silently_command):  No sel frame is error.
2557
2558         * defs.h (memcpy, memset):  Conditionalize decls on
2559         #ifndef MEM_FNS_DECLARED, since DECstation differs.
2560         (alloca):  Break out the STDC and non-STDC alloca cases, to make
2561         it work on old preprocessors as well as "picky ANSI" ones.
2562         * xm-mips.h (memcpy, memset):  Declare, and set MEM_FNS_DECLARED.
2563
2564         * mips-tdep.c (heuristic_proc_start):  Zero arg produces zero.
2565         * utils.c (fputs_demangled):  Rename SLOP since DECstation system
2566         header files define it!
2567
2568         * tm-29k.h (BREAKPOINT):  Allow it to be overridden with -D.
2569
2570 Mon Jun 29 16:30:25 1992  Fred Fish  (fnf@cygnus.com)
2571
2572         * dbxread.c, i386-pinsn.c, i386-tdep.c, regex.c, solib.c, symmisc.c,
2573         symtab.h, tm-i386v4.h, valprint.c, values.c:  Lint.
2574         * breakpoint.c, c-exp.y, coffread.c, command.c, environ.c, eval.c,
2575         findvar.c, infcmd.c, infptrace.c, infrun.c, m2-exp.y, parse.c,
2576         putenv.c, solib.c, sparc-xdep.c, symtab.c, tm-i386v.h, tm-sparc.h,
2577         utils.c, valarith.c, valops.c, valprint.c, values.c:
2578         Replace bcopy() use with memcpy(), which is more standard and can
2579         take advantage of gcc's builtin functions for increased performance.
2580         * breakpoint.c, buildsym.c, coffread.c, dbxread.c, i386-tdep.c,
2581         ieee-float.c, infcmd.c, sparc-tdep.c, stack.c, symtab.c, symtab.h,
2582         target.c, values.c:
2583         Replace bzero() use with memset(), which is more standard and can
2584         take advantage of gcc's builtin functions for increased performance.
2585         * i386-tdep.c, main.c, valprint.c:
2586         Replace bcmp() use with memcmp(), which is more standard and can
2587         take advantage of gcc's builtin functions for increased performance.
2588
2589 Sun Jun 28 13:30:22 1992  Fred Fish  (fnf@cygnus.com)
2590
2591         * remote.c (remote_wait):  Fix cast on signal() call.
2592         * defs.h (alloca):  More diddling with alloca.  Have to ensure
2593         that it has a prototype, so that if alloca is defined as a macro
2594         that takes an arg, the definition is seen as a use of a macro
2595         that takes an arg, to satisfy picky ANSI preprocessors.
2596
2597 Sat Jun 27 12:12:20 1992  Fred Fish  (fnf@cygnus.com)
2598
2599         * sparc-pinsn.c:  Use <string.h> rather than "string.h", for
2600         consistency with all other gdb files.
2601         * cadillac.c:  Use <string.h> rather than <strings.h>.
2602         * cadillac.c (kernel_dispatch):  Convert rindex usage to strrchr.
2603         * Makefile.in (MAKE):  Remove definition for consistency with
2604         other Makefile.in files and to fix problem with recursive makes.
2605
2606 Fri Jun 26 19:03:23 1992  John Gilmore  (gnu at cygnus.com)
2607
2608         * hppahpux-xdep.c (child_xfer_memory):  Avoid PT_WDUSER because it
2609         crashes H-PUX.
2610
2611 Fri Jun 26 11:09:10 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
2612
2613         * source.c (print_source_lines): for DOS interoperability; don't
2614         print CR (013) as ^M.
2615
2616 Thu Jun 25 15:18:42 1992  Stu Grossman  (grossman at cygnus.com)
2617
2618         * dbxread.c (dbx_symfile_init):  Move more code under hp9000s800
2619         conditional.
2620         * hppabsd-core.c:  Don't include "param.h", include <sys/param.h>
2621         instead.
2622         * remote.c (remote_wait):  Cast signal to void * to avoid warning
2623         from busted HP compiler.
2624
2625         * partial-stab.h (N_SO):  Rearrange code a little so that all SO
2626         stabs cause end_psymtab to be called.
2627
2628         * buildsym.c (read_sun_builtin_type):  Handle new FCS Sun CC
2629         compiler feature of putting 'c' into basic type descriptors for
2630         all forms of char.
2631
2632         * procfs.c (child_resume):  Work around Solaris (on Sparc) lossage
2633         where there is no place for nPC in prrun struct.
2634
2635 Thu Jun 25 12:06:00 1992  Fred Fish  (fnf@cygnus.com)
2636
2637         * mipsread.c:  Pass NULL name pointer to init_type, not 0.
2638         * gdbtypes.c (init_type):  Use copy of typename on type_obstack.
2639         * dwarfread.c (enum_type):  Save enum names on type_obstack.
2640         * dwarfread.c (struct_type):  Save member name on type_obstack.
2641         * symtab.c (_initialize_symtab):  Fix misspelling.
2642         * regex.c (store_jump, insert_jump):  Return void.
2643
2644 Thu Jun 25 04:00:10 1992  John Gilmore  (gnu at cygnus.com)
2645
2646         * defs.h (PARAMS):  Move to ../include/ansidecl.h.
2647         (alloca):  Declare return type on SPARC, since Sun doesn't.
2648         (*_BYTE_ORDER):  Improve comment:  *must* be defined.
2649
2650         * tm-hppa.h:  New file, architectural definition of HP PA.
2651         * tm-hppabsd.h, tm-hppahpux.h:  Shrink to deltas from tm-hppa.h.
2652
2653         * am29k-pinsn.c, am29k-tdep.c, copying.awk, copying.c,
2654         hppa-coredep.c, hppa-pinsn.c, hppabsd-core.c, hppabsd-tdep.c,
2655         hppabsd-xdep.c, hppahpux-tdep.c, hppahpux-xdep.c, remote-udi.c,
2656         ser-go32.c, xcoffsolib.c:  Remove <stdio.h> which is already in
2657         "defs.h".
2658
2659         * hppa-coredep.c, hppa-pinsn.c, hppabsd-core.c, hppabsd-tdep.c,
2660         hppabsd-xdep.c, hppahpux-tdep.c, hppahpux-xdep.c, xcoffsolib.c,
2661         xcoffsolib.h, xm-go32.h, xm-hppabsd.h, xm-hppahpux.h:  Copyrights.
2662
2663 Wed Jun 24 12:53:20 1992  John Gilmore  (gnu at cygnus.com)
2664
2665         * printcmd.c (output_command):  Thinko.
2666         (x_command):  Only set remembered size/format if cmd succeeds.
2667
2668         * dbxread.c (read_ofile_symtab):  Remove N_CATCH special case,
2669         since it is no longer used and burns time for every symbol read.
2670         (process_one_symbol):  Treat N_CATCH like default (complain).
2671
2672 Wed Jun 24 00:26:56 1992  Stu Grossman  (grossman at cygnus.com)
2673
2674         * partial-stab.h (case N_TEXT):  Fix fencepost error when
2675         detecting start of new symbol info after reading symtab for a
2676         module with a zero length TEXT segment.
2677
2678 Tue Jun 23 21:46:26 1992  Fred Fish  (fnf@cygnus.com)
2679
2680         * Makefile.in (VERSION):  Bump to 4.5.6.
2681         * coffread.c (coff_end_symtab):  Cast 2nd arg of complain() to
2682         correct type.
2683         * defs.h (NORETURN):  Define away for Lucid compiler.
2684         * remote.c (remote_timer, remote_interrupt):  Signal handlers
2685         take one int arg.
2686         * ser-termios.c (serial_write, serial_close):  Return whatever
2687         value the write/close call returns, rather than falling off end.
2688         * inferior.h (PTRACE_ARG3_TYPE):  Third arg to ptrace is int on
2689         more systems than it is "char *".  Define PTRACE_ARG3_TYPE to
2690         default to int.
2691         * infptrace.c, hppabsd-xdep.c, hppahpux-xdep.c, i386-xdep.c,
2692         inferior.h (call_ptrace):  Use PTRACE_ARG3_TYPE to declare type
2693         of third arg.
2694         * a68v-xdep.c, arm-xdep.c, convex-xdep.c, hp300ux-xdep.c, infrun.c,
2695         m88k-xdep.c, mach386-xdep.c, mips-xdep.c, os68k-xdep.c, pyr-tdep.c,
2696         pyr-xdep.c, rs6000-xdep.c, sparc-xdep.c, sun3-xdep.c, sun386-xdep.c,
2697         symm-xdep.c, ultra3-xdep.c:  Use PTRACE_ARG3_TYPE to cast ptrace
2698         argument 3.
2699         * sparc-xdep.c, a68v-xdep.c (fetch_inferior_registers,
2700         store_inferior_registers): Supply missing fourth argument to
2701         ptrace().
2702         * cadillac.c (kernel_dispatch):  Make return type void.
2703         * cadillac.c (iosig):  Signal handlers take one int arg.
2704         * valprint.c (val_print_fields):  Call fprint_symbol to get
2705         automatic C++ demangling for mangled field names.
2706
2707 Mon Jun 22 20:18:06 1992  Fred Fish  (fnf@cygnus.com)
2708
2709         * command.c (add_abbrev_prefix_cmd):  Fix misspelling in comment.
2710         * dwarfread.c (enum_type):  Fix misspelling in comment.
2711         * valprint.c (val_print_fields, cplus_val_print):  Minor
2712         adjustment to printing of C++ class structures to more closely
2713         match format for printing C structures, with and without setting
2714         pretty print.
2715
2716 Mon Jun 22 17:19:02 1992  Per Bothner  (bothner@cygnus.com)
2717
2718         * infrun.c (wait_for_inferior):  Don't test for SIGEMT
2719         (which is not a Posix signal) if it isn't defined.
2720         * tm-linux.h, xm-linux.h, config/linux.m[ht], configure.in:
2721         New port to Linux (a free Unix clone for 386 machines).
2722
2723 Sat Jun 20 19:19:52 1992  John Gilmore  (gnu at cygnus.com)
2724
2725         COFF changes for dealing better with EPI 29K C compiler output.
2726
2727         * coffread.c (record_minimal_symbol):  Pass the minsym type to it.
2728         Callers changed.
2729         (coff_end_symtab):  Sort blocks if needed.  Complain if misordered.
2730         (read_coff_symtab):  Move patch_opaque_types call from
2731         coff_symfile_read.  Restrict it to symtabs from this objfile.
2732         (process_coff_symbol: C_TPDEF):  Don't put ordinary foward
2733         references on opaque type chain; just let coff_lookup_type handle 'em.
2734         (decode_type):  Complain about tagndx values on
2735         non-struct/union/enum types, which the EPI compiler tends to produce.
2736
2737         * symtab.c (list_symbols):  Make minimal symbol variable-finding work.
2738
2739         * tm-68k.h (FIX_CALL_DUMMY): Avoid alignment and byte order
2740         dependency.
2741
2742         * elfread.c (elf_symfile_read):  Update bfd_elf_find_section
2743         usage to match new prototype.  Include libbfd.h to get prototype.
2744
2745         * source.c (find_source_lines):  Handle large st_size fields.
2746
2747 Sat Jun 20 16:28:39 1992  Fred Fish  (fnf@cygnus.com)
2748
2749         * infcmd.c (jump_command):  Use cleanups to avoid memory leaks.
2750         * stack.c (return_command):  Use cleanups to avoid memory leaks.
2751
2752 Fri Jun 19 19:06:41 1992  John Gilmore  (gnu at cygnus.com)
2753
2754         * remote-adapt.c, remote-eb.c, remote-mm.c:  Lint.  Fix
2755         INT_REGNUM to INTE_REGNUM.
2756
2757         * tm-29k.h (SDB_REG_TO_REGNUM):  Add for EPI 29K C compiler.
2758
2759 Fri Jun 19 15:30:15 1992  Stu Grossman  (grossman at cygnus.com)
2760
2761         * configure.in, dbxread.c, hppa-coredep.c, hppa-pinsn.c,
2762         hppabsd-core.c, hppabsd-tdep.c, hppabsd-xdep.c, hppahpux-tdep.c,
2763         hppahpux-xdep.c, munch, partial-stab.h, tm-hppabsd.h,
2764         tm-hppahpux.h, xm-hppabsd.h, xm-hppahpux.h:  HPPA merge.
2765
2766         * Makefile.in (c-exp.tab.c, m2-exp.tab.c):  Filter out bogus extern
2767         declarations of malloc/realloc/free that are inserted by some
2768         versions of yacc.
2769         * m2-exp.y:  Prevent conflicts with TRUE and FALSE tokens by
2770         #undeffing them.
2771         * xm-rs6000.h:  Declare malloc/realloc/free appropriately.  Yet
2772         another decl of strdup (this really ought to come from libiberty.h!).
2773
2774 Fri Jun 19 10:28:05 1992  John Gilmore  (gnu at cygnus.com)
2775
2776         * remote.c (getpkt):  Error if input exceeds buffer size.
2777         (_initialize_remote):  `set remotedebug' enables packet trace.
2778
2779         * dbxread.c (process_one_symbol:N_FUN):  GCC now produces relative
2780         N_SLINE's, etc, just like Sun cc on Solaris2.   
2781
2782         * am29k-tdep.c (read_register_stack, write_register_stack):
2783         Change RSTACK_HIGH_ADDR to rstack_high_address, a user-settable
2784         variable.  Add `set' and `show' commands for it.
2785         * doc/gdb.texinfo:  Document it.
2786
2787 Thu Jun 18 19:35:22 1992  Fred Fish  (fnf@cygnus.com)
2788
2789         * valprint.c (type_print_1):  Plug memory leak.  Print all
2790         C++ syms as demangled, not just functions.
2791         * buildsym.c (read_range_type):  When we find a signed char
2792         type, do a lookup of signed char, not plain char.  Plain char's
2793         still get looked up as plain char's elsewhere.
2794
2795 Thu Jun 18 18:59:04 1992  John Gilmore  (gnu at cygnus.com)
2796
2797         * eval.c:  Avoid residue-by-zero when evaluating without side effects.
2798         (Bug and fix found by Pierre Willard.)
2799
2800 Wed Jun 17 13:08:33 1992  Stu Grossman  (grossman at cygnus.com)
2801
2802         * xm-rs6000.h:  Fix decls for malloc, realloc, and free.
2803
2804         * xm-rs6000.h:  Add decl for strdup().
2805
2806         * tm-rs6000.h:  Remove #include of inferior.h.  Fixes many
2807         compilation errors.
2808
2809         * breakpoint.c (enable_command, disable_command):  Without args,
2810         should only affect normal breakpoints and watchpoints.
2811
2812         * m68k-pinsn.c (print_insn_arg):  Make register be const.
2813         * xcoffexec.c:  Remove ' from comment.
2814         * xm-sun3os4.h:  Define MALLOC_INCOMPATIBLE to avoid conflicts
2815         with decls of malloc in c-exp.tab.c (as produced by yacc).
2816         There's got to be a better way to do this...
2817
2818 Wed Jun 17 11:10:40 1992  Fred Fish  (fnf@cygnus.com)
2819
2820         * partial-stab.h: Convert single rindex use to strrchr.
2821         * mipsread.c, dbxread.c:  Remove troublesome inclusion of non-
2822         standard <strings.h> file, now that the only single use of
2823         rindex in the gdb source files is gone.
2824
2825 Tue Jun 16 22:17:49 1992  Fred Fish  (fnf@cygnus.com)
2826
2827         * mipsread.c:  Undo ill effects from including <strings.h>,
2828         which #defines index to be strchr.  Unfortunately, index is
2829         a member of a symbol table structure that can't be changed.
2830         * mipsread.c:  tm-mips.h includes coff/symconst.h and coff/sym.h,
2831         remove redundant #include's.
2832
2833 Tue Jun 16 14:15:51 1992  Stu Grossman  (grossman at cygnus.com)
2834
2835         * mipsread.c:  #include <strings.h> for rindex().
2836
2837 Tue Jun 16 09:01:49 1992  Fred Fish  (fnf@cygnus.com)
2838
2839         * xcoffexec.c (map_vmap):  Turn comment into a real C comment.
2840
2841 Mon Jun 15 18:41:23 1992  Stu Grossman  (grossman at cygnus.com)
2842
2843         * dbxread.c (process_one_symbol), partial-stab.h:  Ignore
2844         extraneous SO stabs from busted C++ compilers.
2845
2846 Mon Jun 15 12:21:45 1992  Fred Fish  (fnf@cygnus.com)
2847
2848         * Makefile.in (VERSION):  Bump to 4.5.5.
2849         * symtab.c (decode_line_1):  Until C++ support stabilizes, when
2850         C++ lookups fail, print possibly helpful hint about completion.
2851         * cplus-dem.c (demangle_signature):  Fix ARM style demangling
2852         for static data members.
2853         * dbxread.c (dbx_psymtab_to_symtab_1):  Fix prototype.
2854         * config/ncr3000.mh (INSTALL):  Don't use /usr/ucb/install,
2855         it's broken on ncr3000's.
2856
2857 Mon Jun 15 07:21:00 1992  Fred Fish  (fnf@cygnus.com)
2858
2859         * dwarfread.c (decode_modified_type):  Change type of first arg.
2860         Change 'modifier' to char from unsigned char.  Cast single use
2861         that needs to be unsigned char.
2862         * symtab.h (SYMBOL_BASEREG_VALID):  Explain disabling.
2863         * utils.c (strdup_demangled):  Add function.
2864         * defs.h (strdup_demangled):  Add prototype.
2865         * stack.c (return_command):  Demangle C++ function names for query.
2866         * infcmd.c (jump_command):  Demangle C++ function names for query.
2867         * cplus-dem.c (consume_count):  New function and prototype.
2868         * cplus-dem.c (demangle_class, gnu_special, demangle_func_type,
2869         do_type):  Replace conversion code with consume_count().
2870         * cplus-dem.c (gnu_special):  Fix demangled of static members.
2871         * source.c (list_command):  Print demangled function names
2872         when appropriate.  Fix supplied by Peter Schauer.
2873
2874 Mon Jun 15 01:45:48 1992  John Gilmore  (gnu at cygnus.com)
2875
2876         * sparc-tdep.c:  Clean up slightly for Solaris2.
2877
2878         * buildsym.c (define_symbol):  Nameless types are now on several
2879         platforms; generalize them and un-ifdef them to make Solaris 2
2880         work.
2881
2882 Sun Jun 14 10:55:51 1992  John Gilmore  (gnu at cygnus.com)
2883
2884         * infcmd.c:  Fix typo (reported by Rob Savoye).
2885         * xm-sun4sol2.h (gregset_t):  Thinko in register set definition.
2886         * symtab.h:  Disable SYMBOL_BASEREG_VALID until it works.
2887         * dbxread.c (dbx_psymtab_to_symtab_1):  Renamed from
2888         psymtab_to_symtab_1.  Use current psymtab's sym_offset and symbol_size,
2889         rather than the one for the first file in the dependency chain.
2890
2891         * dbxread.c (end_psymtab):  Only reset texthigh if it's not already
2892         set.  Don't reset our own texthigh, or dependency-only pst's, in
2893         scanning all the rest of the psymtabs.
2894         (process_one_symbol):  Fix comments around N_OBJ, N_OPT, N_UNDF.
2895
2896         * buildsym.h (N_UNDF):  Improve comments.
2897         (N_LSYM, etc):  Skip types without names (":T(0,3)=sfoob...").
2898
2899 Sat Jun 13 11:16:45 1992  Fred Fish  (fnf at cygnus.com)
2900
2901         * symtab.h (struct symbol):  Add aux_value union for preserving
2902         an additional per-symbol value.
2903         * symtab.h (SYMBOL_BASEREG, SYMBOL_BASEREG_VALID):  Add defines.
2904         * frame.h (FRAME_GET_BASEREG_VALUE):  Provide default definition.
2905         * findvar.c (read_var_value):  Use SYMBOL_BASEREG if valid.
2906         * printcmd.c (address_info):  Use SYMBOL_BASEREG if valid.
2907         * symmisc.c (print_symbol):  Use SYMBOL_BASEREG if valid.
2908
2909 Sat Jun 13 09:18:46 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
2910
2911         * symfile.c (clear_symtab_users_once): Now non-static (for
2912         objfiles.c).
2913
2914 Fri Jun 12 18:54:40 1992  John Gilmore  (gnu at cygnus.com)
2915
2916         * arm-pinsn.c, i960-pinsn.c, m68k-pinsn.c, mips-pinsn.c, 
2917         ns32k-pinsn.c, pyr-pinsn.c, sparc-pinsn.c, tahoe-pinsn.c, 
2918         vax-pinsn.c:  Remove reg_names decl (now in defs.h).
2919
2920         Solaris-2 support on SPARC:
2921
2922         * dbxread.c:  Add symbol_size to struct dbx_symfile_info.
2923         Add symbol_size and file offsets to struct symloc.
2924         Add static symbol_table_offset, string_table_offset,
2925         file_string_table_offset, next_file_string_table_offset, 
2926         last_function_name.
2927         (add_old_header_file):  Convert error() to complain()t.
2928         (dbx_symfile_read):  Get symbol size via the objfile.
2929         Also get symbol_table_offset.
2930         (dbx_symfile_init):  Record symbol size and count via the objfile.
2931         (dbx_next_symbol_text):  Always add file_string_table_offset when
2932         accessing string table.
2933         (read_dbx_symtab):  Initialize file_string_table_offset to 0.
2934         (SET_NAMESTRING):  Use the offset.
2935         (end_psymtab):  Large kludge to determine addresses where source
2936         files start and end (for the psymtab header).
2937         (psymtab_to_symtab_1):  Set file_string_table_offset before reading.
2938         Get this, symbol size, and symbol offset, from psymtab.
2939         (read_ofile_symtab):  Don't back up one symbol for Solaris2.
2940         Patch up last_source_start_addr if zero in N_SO.
2941         (process_one_symbol):  Add variable function_start_offset.
2942         ( "", N_FUN, N_LBRAC, N_RBRAC, N_SLINE):  Add ifdef for
2943         BLOCK_ADDRESS_FUNCTION_RELATIVE.
2944         ( "", N_OBJ, N_OPT):  Ignore.
2945         (elfstab_build_psymtabs):  New function to read stabs out of
2946         an ELF file.
2947
2948         * Makefile.in:  Accept $(BISON) even though we really want $(YACC).
2949         (gdb):  use GLOBAL_CFLAGS when linking, too.
2950         * partial-stab.h (N_UNDF):  Deal with Sol2 relative stringtab offsets.
2951         (N_OBJ, N_OPT):  Ignore.
2952         ('f', 'F'):  Save last function name.
2953
2954         * elfread.c (record_minimal_symbol_and_info):  Kludged to put
2955         extra info in the minimal symbol.
2956         (elf_symtab_read):  The extra info is the size of an ELF object,
2957         which was kludged to us in the `udata' field of the BFD symbol.
2958         Gag me with a crowbar...
2959         (elf_symfile_read):  Keep track of both the absolute load address,
2960         and the offset between load addr and symbols.  Handle STABS as
2961         well as DWARF sections, passing the absolute load address to
2962         elfstab_build_psymtabs.
2963
2964         * symfile.h:  Prototype elfstab_build_psymtabs.
2965         * symfile.c:  Add almost-OK debug versions of add_psymbol_*to_list.
2966
2967         * xm-sysv4.h:  Add <limits.h> to avoid conflicting defns in defs.h.
2968
2969         * buildsym.h:  Add processing_acc_compilation flag.
2970         * buildsym.c (read_sun_builtin_type, read_sun_floating_type):  New.
2971         (define_symbol):  Skip arg types in function entries.  Resolve
2972         overloaded 'P' which acc uses for prototypes of functions called
2973         by this file.
2974         (read_type: 'b', 'r'):  Handle Solaris2 builtin types.
2975
2976         * minsyms.c (prim_record_minimal_symbol_and_info):  Hack to
2977         save size of ELF symbols.  FIXME.
2978         * tm-sun4os5.h:  Rename to tm-sun4sol2.h.  Update defines for Sol2.
2979         * xm-sun4os5.h:  Rename to xm-sun4sol2.h.  Hack more defines.
2980
2981         * configure.in:  Solaris config is sparc-sun-solaris2.
2982         * config/sun4os5.m[ht]:  Rename to config/sun4sol2.m[ht]; new xm, tm.
2983
2984         * objfiles.c (free_objfile):  Eliminate storage leaks.  Contributed
2985         by <Peter.Schauer@regent.e-technik.tu-muenchen.dbp.de>. 
2986         * symfile.c (symfile_bfd_open):  Comment where name is freed.
2987         * symmisc.c (extend_psymbol_list):  Comment where list is freed.
2988
2989 Fri Jun 12 08:24:36 1992  Fred Fish  (fnf at cygnus.com)
2990
2991         * expprint.c (print_subexp):  Add missing ']'.
2992         * defs.h (reg_names):  Fix declaration to match that in infcmd.c
2993         * stack.c (reg_names):  Delete redundant (and inconsistent) decl.
2994         * WHATS.NEW:  Point out improved C++ function name handling.
2995         * gdbtypes.c (lookup_fundamental_type):  For now, use the same
2996         type names for both implicitly and explicitly signed integral
2997         types.  See comment in the source code.
2998
2999 Thu Jun 11 12:31:50 1992  John Gilmore  (gnu at cygnus.com)
3000
3001         Two `long long' fixes from Robert R. Henry (rrh@dino.tera.com):
3002         * defs.h (longest_to_int):  Avoid void arm of ?: in error case.
3003         * expprint.c (print_subexp):  Fix printing of register names.
3004
3005 Thu Jun 11 01:33:40 1992  John Gilmore  (gnu at cygnus.com)
3006
3007         * inferior.h (register_valid):  Declare.
3008         * remote-udi.c, rs6000-xdep.c, sparc-xdep.c, tm-rs6000.h:  Remove decl.
3009         * objfiles.h (ALL_OBJFILE_{SYMTABS,PSYMTABS,MSYMBOLS}):  Add
3010         macros for traversing the data structures in a single objfile.
3011         * tm-m88k.h, tm-sparc.h (REGISTER_NAMES):  Remove extra semicolon.
3012         * tm-i960.h (REGISTER_NAMES):  Cosmetic change.
3013         * infcmd.c:  Lint.
3014
3015 Tue Jun  9 17:19:45 1992  Fred Fish  (fnf at cygnus.com)
3016
3017         * c-exp.y, m2-exp.y:  Move remapping defines for malloc and
3018         realloc.  Add remapping defines for {yyss, yyssp, yyvs, yyvsp}.
3019         * config/{amix.mh, i386v4.mh, ncr3000.mh, stratus.mh,
3020         sun4os5.mh}:  Add definition for INSTALL using /usr/ucb/install.
3021
3022 Tue Jun  9 16:29:19 1992  Stu Grossman  (grossman at cygnus.com)
3023
3024         * depend:  rebuild to account for remote-st2000.c.
3025         * remote-st2000.c:  Almost works now.
3026         * tm-st2000.h:  Need to turn on HAVE_68881, else things won't compile.
3027
3028 Mon Jun  8 23:05:51 1992  Fred Fish  (fnf@cygnus.com)
3029
3030         * c-exp.y (yylex):  Recognize single-quoted strings that specify
3031         tokens with embedded whitespace, such as C++ demangled names.
3032         * defs.h (demangle_and_match, strcmp_iw, skip_quoted):  Prototypes.
3033         * main.c (gdb_completer_quote_characters):  Add global variable.
3034         * main.c (symbol_completion_function):  Total rewrite for C++
3035         demangled name handling.
3036         * main.c (skip_quoted):  New function.
3037         * main.c (main):  Set rl_completer_quote_characters.
3038         * symmisc.c (dump_symtab):  Print source language for symtab.   
3039         * symtab.c (expensive_mangler):  Add prototype and function.
3040         * symtab.c (completion_list_add_symbol):  Total rewrite for new
3041         C++ demangled name handling.
3042         * symtab.c (lookup_symbol): Check for demangled C++ symbol first,
3043         other changes for demangled C++ symbol handling.
3044         * symtab.c (lookup_demangled_block_symbol):  Use demangle_and_match.
3045         * symtab.c (lookup_demangled_partial_symbol):  Use demangle_and_match.
3046         * symtab.c (decode_line_1):  Recognize C++ demangled names on input.
3047         * symtab.c (completion_list_add_symbol):  Total rewrite for new
3048         C++ demangled name handling.
3049         * symtab.c (expensive_mangler):  New function.
3050         * utils.c (strcmp_iw, demangle_and_match):  New functions.
3051         * xcoffread.c (aixcoff_symfile_read):  Fix prototype.
3052
3053 Mon Jun  8 21:59:08 1992  John Gilmore  (gnu at cygnus.com)
3054
3055         * Makefile.in:  Roll VERSION to 4.5.4.
3056         * Makefile.in, config/*.mh, config/*.mt:  Rename TM_CFLAGS
3057         to MT_CFLAGS, XM_CFLAGS to MH_CFLAGS to match file names.
3058         * config/sun4os5.mh:  Add MH_CFLAGS=-xs to save debug info.
3059
3060 Mon Jun  8 14:17:42 1992  Stu Grossman  (grossman at cygnus.com)
3061
3062         * alldeps.mak:  Rebuild to account for new files.
3063         * config/st2000.mt:  Use tm-st2000.h, not tm-68k.h.
3064         * tm-st2000.h:  New file.
3065         * configure.in:  Tandem debug monitor (st2000) support.
3066         * remote-st2000.c, config/st2000.mt:  ditto.
3067
3068 Fri Jun  5 11:51:01 1992  John Gilmore  (gnu at cygnus.com)
3069
3070         * blockframe.c (inside_entry_file, inside_main_func,
3071         inside_entry_func):  Return 0 if no symbols; avoid crashing.
3072
3073 Wed Jun  3 17:48:04 1992  John Gilmore  (gnu@cygnus.com)
3074
3075         * xcoffread.c (read_xcoff_symtab):  Set c_sclass from n_sclass
3076         without masking, since it is signed and will later be compared
3077         against signed quantities.  The right fix is probably to make
3078         it all unsigned, but this is a small, safe fix for this release.
3079         FIXME -- make the real change sometime soon.
3080
3081 Mon Jun  1 16:16:12 1992  Michael Tiemann  (tiemann@cygnus.com)
3082
3083         * remote-vx.c (vx_load_command,add_symbol_stub): Default READNOW
3084         parameter in call to `symbol_file_add' to 0.
3085
3086         * xm-sun4os4.h (MALLOC_INCOMPATIBLE): Define it.
3087
3088 Sun May 31 06:38:27 1992  Michael Tiemann  (tiemann@cygnus.com)
3089
3090         * configure.in: Handle -m680[01234]0-wrs.
3091
3092 Fri May 29 22:16:02 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
3093
3094         * m68k-pinsn.c (print_insn_arg): Pass &EXT_FORMAT_68881 to
3095         `ieee_extended_to_double'.
3096
3097 Wed May 27 09:27:57 1992  John Gilmore  (gnu at cygnus.com)
3098
3099         * valops.c (value_assign):  Lint, by Pierre Willard.
3100
3101 Tue May 19 19:38:10 1992  John Gilmore  (gnu at cygnus.com)
3102
3103         * coredep.c (fetch_core_registers):  Remove premature warning,
3104         which triggers on DECstation even though all regs are accessible.
3105
3106         * m68k-pinsn.c (print_insn_arg):  Use new macros to get
3107         sign-extension of instruction fields even on unsigned-char hosts.
3108         Bug found by Fred J Roeber, fjr@sgfb.ssd.ray.com.
3109
3110         88K changes inspired by Ted Lemon (uunet!lupine!mellon):
3111         * tm-m88k.h, tm-umax.h:  Avoid sizeof() in REGISTER_xxx macros,
3112         since they define the target, not the host.
3113         * m88k-pinsn.c:  Fix typo.
3114
3115 Thu May 14 01:16:48 1992  John Gilmore  (gnu at cygnus.com)
3116
3117         * valarith.c (value_zerop):  -0.0 is still zero.
3118         * eval.c (evaluate_subexp):  Avoid NaN anomalies in float compares.
3119         Patches by Paul Eggert <eggert@twinsun.com>.
3120
3121 Mon May 18 13:53:51 1992  Stu Grossman  (grossman at cygnus.com)
3122
3123         * alldeps.mak, depend:  re-make to account for ser-*.c.
3124
3125 Sun May 17 16:51:20 1992  Fred Fish  (fnf@cygnus.com)
3126
3127         * inflow.c (new_tty):  Temporarily ignore SIGTTOU when
3128         disconnecting from controlling terminal, to avoid gdb hanging
3129         on SVR4.  Fixes bug reported by Oliver Okrongli.
3130         * procfs.c (PROC_NAME_FMT):  Change format to match default used
3131         by system, as suggested by Oliver Okrongli.
3132         * tm-68k.h (FRAME_FIND_SAVED_REGS):  Apply missing parentheses
3133         bug fix from Brent Townshend (bst%tt@cam.ORG).
3134         * c-exp.y (nonempty_typelist):  Fix memory overrun bug reported
3135         by turlais@rechser.total.fr.
3136         * dwarfread.c (decode_subscr_data):  Fix bug in calculation of
3137         length of non-zero lowerbound arrays.  Bug fix from Peggy Fieland.
3138         * objfiles.h (unlink_objfile):  Add prototype.
3139         * objfiles.c (unlink_objfile):  Add function.
3140         * objfiles.c (free_objfile):  Call unlink_objfile.
3141         * objfiles.c (allocate_objfile):  Call unlink_objfile on newly
3142         remapped objfiles.  Bug reported by hahn@sunshine.labs.tek.com.
3143         Also, discard old possibly bogus sf struct.
3144         * symfile.c (symbol_file_add):  Call init_entry_point_info() and
3145         find_sym_fns() for remapped symbol files, in case of any changes
3146         since the last mapping.
3147
3148 Wed May 13 18:28:20 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
3149
3150         * findvar.c (read_relative_register_raw_bytes): use the raw size
3151         of a register to bcopy, rather than the host's sizeof(CORE_ADDR).
3152
3153 Tue May 12 17:44:39 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
3154
3155         Changes to support GDB running on DOS using GO32 and H8 support
3156
3157         * defs.h: if xm.h doesn't define FOPEN_RB, include "fopen-same.h",
3158         allowing hosts with different text and binary file formats to
3159         work.
3160         * coffread.c (read_coff_symtab): changed calling convention and
3161         operation - now it opens its own file with FOPEN_RB rather than
3162         duping and fdopening the provided handle.
3163         * dbxread.c, cplus-dem.c: #include mangling.
3164         * exec.c: If O_BINARY isn't defined, set it to 0, call openp for
3165         binary files oring in the right bit.
3166         * utils.c, terminal.h, inflow.c: hackery because dos doesn't have terminals.
3167         * remote-hms.c: cleanup to use the new remote serial stuff
3168         * serial.h, ser-termios.c, ser-go32.c: newfiles to provide host
3169         independent remote terminal I/O.
3170         * remote.c: if DONT_USE_REMOTE not defined, then don't use it.
3171         * source.c (openp): fix off by one problem removing / - can now
3172         open a source file in the root directory with DOS.
3173         * values.c (value_as_pointer): remove bogus address bits from
3174         long. (unpack_long): unpack into unsigned long/short if pointer.
3175
3176 Tue May 12 14:15:48 1992  Stu Grossman  (grossman at cygnus.com)
3177
3178         * infrun.c (child_attach):  Don't allow gdb to attach to itself.
3179         It gets permanently stuck in many OSes.
3180         * breakpoint.c, infcmd.c, infrun.c, utils.c:  Change many printfs
3181         to printf_filtered.
3182         * breakpoint.c: Improve help text for info breakpoints.
3183
3184 Mon May 11 14:17:18 1992  John Gilmore  (gnu at cygnus.com)
3185
3186         * README:  Add pointer to internals doc, and describe reading
3187         info files.
3188         * utils.c (print_sys_errmsg):  Use stderr.  Reported by Pierre Willard.
3189         * symtab.c (output_source_filename):  Remove old glop for wrapping
3190         lines, use wrap_here.  Reported by Pierre Willard (pierre@la.tce.com).
3191
3192 Thu May  7 11:45:03 1992  John Gilmore  (gnu at cygnus.com)
3193
3194         * Makefile.in:  version.c should depend on Makefile, not Makefile.in.
3195         * munch:  Add sort -u to avoid duplications.
3196         * symtab.c (lookup_symbol):  Improve Stu's fix of 22 April.
3197         Improved fix by hahn@sunshine.labs.tek.com (Doug Hahn).
3198
3199 Mon May 11 13:27:46 1992  Fred Fish  (fnf@cygnus.com)
3200
3201         * cplus-dem.c (demangle_signature):  Recognize misplaced '_' to
3202         avoid infinite loops while demangling bogus mangled names.
3203         * valprint.c (type_print_base):  Minor fix for GNU style guide
3204         conformance.
3205
3206 Sat May  9 18:02:17 1992  Fred Fish  (fnf at fishpond)
3207
3208         * Makefile.in (VERSION):  Bump to 4.5.3
3209         * Makefile.in (DEMANGLE_OPTS):  Remove obsolete -Dnounderscore
3210         * Makefile.in (demangle):  New target to create standalone
3211         demangler with same code and options as internal demangler.
3212         * cplus-dem.c:  Massive restructuring, rewriting, cleanups, etc
3213         to support ARM style and Lucid style demangling, improve
3214         maintainability, fix several demangling bugs.  More changes
3215         to follow.
3216         * defs.h (strstr):  Add ANSI compatible prototype.
3217         * valprint.c (type_print_1):  Demangle using ansi option.
3218         * config/ncr3000.mt (DEMANGLE_OPTS):  Remove -Dnounderscore.
3219
3220 Sat May  9 14:47:28 1992  Stu Grossman  (grossman at cygnus.com)
3221
3222         * xcoffexec.c (vmap_exec):  Don't assume .text and .data are the
3223         first two sections.
3224
3225 Fri May  8 11:42:15 1992  Per Bothner  (bothner@rtl.cygnus.com)
3226
3227         * mipsread.c (parse_procedure):  Return rather than using
3228         uninitialized variable 'b'.
3229
3230 Fri May  8 07:48:27 1992  Stu Grossman  (grossman at cygnus.com)
3231
3232         * Makefile.in, remote-udi.c, remote-vx.c, 29k-share/dfe/mini2udi.c,
3233         29k-share/dfe/yank.c, vx-share/xdr_ptrace.c, vx-share/xdr_regs.c:
3234         Remove -I29k-share, -Ivx-share from Makefile.in.  Make #includes
3235         relative to each source file.
3236
3237 Fri May  8 07:48:27 1992  K. Richard Pixley  (rich@cygnus.com)
3238
3239         * Makefile.in: propogate INSTALL, INSTALL_DATA, INSTALL_PROGRAM on
3240         recursions.
3241
3242 Thu May  7 10:00:52 1992  Stu Grossman  (grossman at cygnus.com)
3243
3244         * am29k-pinsn.c:  Use new opcode table in "opcode/a29k.h".
3245         * am29k-tdep.c:  Update to latest code from AMD.
3246         (get_saved_register) don't crap out if no frame.
3247         * remote-udi.c:  Set/clear inferior_pid as appropriate.
3248         (udi_open) call target_preopen, don't close fd 0!!!, clean up
3249         error handling.  Fixup end-of-debugging messages.
3250         (udi_fetch_registers) clean up big time, mainly don't multiply
3251         register_valid indices by 4, and use proper Offset when reading
3252         gr96-gr127.  (udi_store_registers) general cleanup.
3253         (fetch_register) cleanup, simplify.  (regnum_to_srnum)
3254         INT_REGNUM->INTE_REGNUM.
3255         * tm-29k.h:  Upgrade to latest code from AMD.
3256         * 29k-share/udi/udip2soc.c:  Get rid of useless errmsg_m macro.
3257         (UDIConnect) Clean up error processing (like, don't do exit() if
3258         execlp fails), make code restartable, make more attractive.
3259         (UDIStop) Use SIGINT instead of SIGUSR1, as isstip won't stop
3260         otherwise.
3261
3262 Wed May  6 14:34:18 1992  Per Bothner  (bothner@rtl.cygnus.com)
3263
3264         * tm-irix3.h:  Re-define CPLUS_MARKER to '.'.
3265         * xm-rs6000.h, tm-rs6000.h:  Move re-definition of CPLUS_MARKER
3266         from former to latter.
3267
3268 Wed May  6 14:12:35 1992  Fred Fish  (fnf@cygnus.com)
3269
3270         * cplus-dem.c (do_args):  Handle void args the same as others.
3271         * objfiles.c (free_objfile):  Only try to unmap files when
3272         reusable objfiles are supported.
3273         * valprint.c (type_print_varspec_suffix):  Add parameter that
3274         specifies if C++ demangling included function arguments.  Use
3275         it to suppress printing extra pair of ()'s.
3276         * valprint.c (type_print_1):  Fix problem with printing demangled
3277         C++ function types where demangled type includes the function
3278         args.
3279
3280 Tue May  5 11:10:27 1992  Fred Fish  (fnf@cygnus.com)
3281
3282         * Makefile.in (DEMANGLER):  Define and default to cplus-dem.
3283         Allows selection of C++ demangler to be a configuration option
3284         until multiple demanglers are supported.
3285         * demangle.h:  New include file for extended demangler support.
3286         * breakpoint.c, gdbtypes.c, printcmd.c, stack.c, symtab.c,
3287         utils.c, valprint.c:  Include "demangle.h" and change all calls
3288         to cplus_demangle() or fputs_demangled() to use individual
3289         demangling options.
3290         * valprint.c (type_print_1):  Change options to cplus_demangle
3291         to print demangled function args.  Still broken, but now less so.
3292         * cplus-dem.c:  Include demangle.h, reorganize and update some
3293         comments to reflect reality.
3294         * cplus-dem.c (cplus_demangle, cplus_mangle_opname):  Change
3295         second arg from fixed integer to bit based multiple options.
3296         * cplus-dem.c (optable):  Reformat and replace ansi members with
3297         bit based options.
3298         * cplus-dem.c (do_type):  Fix bug with parsing missing return type.
3299
3300 Mon May  4 22:26:59 1992  John Gilmore  (gnu at cygnus.com)
3301
3302         * values.c (set_internalvar):  Force evaluation of lazy values.
3303         Bug reported by RMS.
3304
3305 Sun May  3 15:47:45 1992  Fred Fish  (fnf@cygnus.com)
3306
3307         * Makefile.in (VERSION):  Bump to 4.5.2.
3308         * Makefile.in (DEMANGLE_OPTS):  Add, default to -Dnounderscore.
3309         * configure.in:  Simplify ncr3000 gdb_host logic, add gdb_target.
3310         * dwarfread.c (struct_type):  Apply fix from Peggy Fieland for
3311         proper handling of bit fields.
3312         * gdbtypes.h (struct type):  Clarify use of field.bitpos.
3313         * symtab.h:  Fix couple of misspellings in comments.
3314         * value.h (struct value):  Clarify use of bitpos.
3315         * value.h (unpack_field_as_long):  Change prototype, returns
3316         LONGEST.
3317         * values.c (unpack_field_as_long):  Change return type to LONGEST,
3318         sign extend unpacked fields that are signed, other rewriting.
3319         * config/ncr3000.mt:  New target config file.
3320
3321 Fri May  1 01:53:26 1992  John Gilmore  (gnu at cygnus.com)
3322
3323         * utils.c (printchar):  Print 0x7F and 0x80-0x9F in \nnn notation
3324         even when printing 8-bit characters.
3325
3326         * gdbtypes.c (make_{reference,pointer,function}_type):  New
3327         functions which handle overwriting of forward-referenced types
3328         for stabs file reading.
3329         (lookup_{reference,pointer,function}_type):  These just call
3330         the make_*_type functions with a null storage alloc parameter.
3331         * gdbtypes.h (make_{reference,pointer,function}_type):  Declare.
3332         * xcoffread.c (smash_to_pointer_type):  Remove, no longer used.
3333
3334         * buildsym.c (dbx_lookup_type):  Zero result for (-1,-1) arg.
3335         (dbx_alloc_type):  Make it easier to understand.  No funct change.
3336         (define_symbol: 't'):  Don't put the typedef name into the name of
3337         the struct, union, or enum.  Bugfix.
3338         (read_type: '*', '&', 'f'):  Add comments.  Use make_XXX_type
3339         routines to properly handle overwriting preallocated types so that
3340         forward references will work.
3341         (read_enum_type):  Force enum values to file scope, due to bug in
3342         Sun compiler output.  FIXME, fix later.
3343
3344         Remove unused header_file_prev_index mechanism.  It was already
3345         obsolete in gdb-3.5.  These comments appeared in 3.5:
3346           /* This code was used before I knew about the instance codes.
3347              My first hypothesis is that it is not necessary now
3348              that instance codes are handled.  */
3349         * dbxread.c (add_new_header_file):  Remove header_file_prev_index.
3350         * buildsym.h:  Remove it and prev_index that saves it.
3351         * buildsym.c (push_subfile, pop_subfile, start_symtab):  Remove it.
3352
3353         * solib.c (special_symbol_handling):  When called from core files,
3354         must set up debug_addr.  Don't print error messages, just return.
3355         * symmisc.c (print_symbol):  Less ascii diarrhea for enums, please.
3356
3357 Wed Apr 29 15:26:51 1992  Per Bothner  (bothner@rtl.cygnus.com)
3358
3359         * cplus-dem.c:  Allow nested class names (as in
3360         Foo::Bar::method()).
3361         Allow the cleaner cfront style of nested class names
3362         (Q2_3Foo3Bar as well as Q23Foo3Bar).
3363         Make cplus_demangle re-entrant by removing use of global
3364         variables.  Instead, place all shared variables in a
3365         stack-allocated structure, and pass around its address. 
3366
3367 Fri Apr 24 07:41:19 1992  Stu Grossman  (grossman at cygnus.com)
3368
3369         * Makefile.in (make-proto-gdb-1):  1st cut at packaging
3370         29k-share/* subdirs...
3371
3372         * remote-udi.c (udi_insert/remove_breakpoint):  Completely
3373         rewrite, only leave out the bugs.
3374
3375         * Makefile.in:  Add 29k/UDI support.  Improve depend.
3376         * alldeps.mak, configure.in, depend:  Add 29k/UDI support.
3377
3378         * am29k-tdep.c:  Update to use new calling conventions, and misc
3379         symbol elements.
3380
3381         * m68k-pinsn.c (print_insn_arg):  Make branch offsets be signed.
3382
3383 Thu Apr 23 18:43:17 1992  Fred Fish  (fnf@cygnus.com)
3384
3385         * tm-29k.h:  Set DECR_PC_AFTER_BREAK to 0, as 29ks have nice
3386         breakpoint instructions that leave PC pointing at the right place.
3387
3388         * core.c (core_open):  Call warning() to print warnings.
3389
3390 Wed Apr 22 09:55:42 1992  Stu Grossman  (grossman at cygnus.com)
3391
3392         * symtab.c (lookup_symbol):  Need to check if msymbol->name is
3393         NULL, as ALL_MSYMBOLS will never return a NULL msymbol pointer.
3394         This prevents a crash when trying to lookup the value of a
3395         non-existent symbol.
3396
3397 Wed Apr 22 09:42:15 1992  Fred Fish  (fnf@cygnus.com)
3398
3399         * signame.c, signame.h:  Remove, replaced by strsignal.c in
3400         libiberty.
3401         * i960-tdep.c, infrun.c, mach386-xdep.c, procfs.c, sparc-tdep.c,
3402         sun386-xdep.c:  Remove include of signame.h     
3403         * Makefile.in (SFILES_MAINDIR):  Remove signame.c
3404         * Makefile.in (HFILES):  Remove signame.h
3405         * Makefile.in (OBS):  Remove signame.o
3406         * defs.h (safe_strerror, safe_strsignal, strerrno, strsigno,
3407         errno_max, signo_max, strtoerrno, strtosigno, strsignal,
3408         psignal, perror):  Add prototypes.
3409         * defs.h, xm-apollo68v.h, xm-ultra3.h (SYS_SIGLIST_MISSING):
3410         Remove define.
3411         * depend:  Manually remove signame.[cho] references.
3412         * convex-tdep.c (subsig_name):  Replace use of sys_siglist with
3413         strsignal.
3414         * convex-xdep.c (core_file_command):  Replace use of sys_siglist
3415         with safe_strsignal.
3416         * core.c (core_open):  Replace use of sys_siglist with
3417         safe_strsignal.
3418         * core.c (memory_error):  Replace use of sys_errlist with
3419         safe_strerror.
3420         * i960-tdep.c (print_fault):  Replace use of sys_siglist with
3421         safe_strsignal.
3422         * infcmd.c (program_info):  Replace use of sys_siglist with
3423         safe_strsignal.
3424         * infrun.c (signal_stop, signal_print, signal_program):
3425         Allocate dynamically based on dynamic determination of number
3426         of signals to support.
3427         * infrun.c (child_create_inferior):  Replace use of sys_errlist
3428         with safe_strerror.
3429         * infrun.c (wait_for_inferior):  Replace use of sys_siglist with
3430         safe_strsignal.
3431         * infrun.c (sig_print_info):  Replace use of sig_abbrev with
3432         strsigno and sys_siglist with safe_strsignal.
3433         * infrun.c (handle_command):  Call signo_max to find number of
3434         signals.  Replace sig_number with strtosigno and sig_abbrev with
3435         strsigno.
3436         * infrun.c (signals_info):  Replace sig_number with strtosigno. 
3437         * infrun.c (_initialize_infrun):  Call signo_max to find number of
3438         signals.  Dynamically allocate signal_{stop,print,program}.
3439         * procfs.c (errno_table):  Remove, now in libiberty/strerror.c.
3440         * procfs.c (errnoname):  Add function and prototype.
3441         * procfs.c (info_proc_siginfo):  Call errnoname, replace use
3442         of sys_siglist with safe_strsignal.
3443         * procfs.c (info_proc_stop, info_proc_signals):  Replace use of
3444         sys_siglist with safe_strsignal.
3445         * procfs.c (info_proc_stop):  Call errnoname.
3446         * procfs.c (signalname):  Replace sig_abbrev with strsigno.
3447         * stuff.c (main, get_offset):  Replace use of sys_errlist with
3448         strerror.
3449         * sun386-xdep.c (core_file_command):  Replace use of sys_siglist
3450         with safe_strsignal.
3451         * umax-xdep.c (core_file_command):  Replace use of sys_siglist
3452         with safe_strsignal.
3453         * utils.c (safe_strerror, safe_strsignal):  Add functions that
3454         call strerror and strsignal respectively, and deal with NULL
3455         returns.
3456         * utils.c (perror_with_name, print_sys_errmsg):  Replace use of
3457         sys_errlist with safe_strerror.
3458         * valprint.c (val_print):  Replace use of sys_errlist with
3459         safe_strerror.
3460
3461 Tue Apr 21 12:00:47 1992  K. Richard Pixley  (rich@cygnus.com)
3462
3463         * Makefile.in: rework CFLAGS so that they can be set from the
3464           command line to make.  CFLAGS -> INTERNAL_CFLAGS.
3465           USER_CFLAGS -> CFLAGS.  Remove MINUS_G.  Default CFLAGS to -g.
3466           Pass CFLAGS on recusions.
3467
3468 Fri Apr 17 19:25:57 1992  Fred Fish  (fnf@cygnus.com)
3469
3470         * gdbtypes.h, c-exp.y, m2-exp.y, mipsread.c, gdbtypes.c:  Back
3471         out of change on 4/14/92 and remove TYPE_FLAG_FUND_TYPE.  It was
3472         overkill for the problem it solved.
3473         * valprint.c (type_print_base):  Remove TYPE_FLAG_FUND_TYPE test
3474         and default to simply printing type names as appropriate.
3475         * main.c (main):  Remove one of the leading newlines from
3476         warning_pre_print initialization.
3477         * objfiles.c (open_existing_mapped_file):  Add function and
3478         prototype.
3479         * objfiles.c (open_mapped_file):  Rewrite to use new function
3480         open_existing_mapped_file.
3481
3482 Thu Apr 16 23:50:12 1992  John Gilmore  (gnu at cygnus.com)
3483
3484         * sun3-xdep.c (fetch_core_registers):  Lint.
3485         * tm-sun3.h:  Prototype lint.
3486         * value.h:  Typo.
3487
3488 Thu Apr 16 19:56:50 1992  Fred Fish  (fnf@cygnus.com)
3489
3490         * dwarfread.c (TARGET_FT_POINTER_SIZE, TARGET_FT_LONG_SIZE):
3491         Define using TARGET_PTR_BIT and TARGET_LONG_BIT for now.
3492         * objfiles.c:  Cast calls to close() with unused returns to void.
3493         * objfiles.c (allocate_objfile):  Initialize objfile's mmfd, free
3494         old objfile's name before updating it.
3495         * objfiles.c (free_objfile):  Major rewrite for mapped objfiles.
3496         * objfiles.h (objfile struct):  Add mmfd member.
3497         * symfile.c (syms_from_objfile):  Move some code to
3498         new_symfile_objfile.
3499         * symfile.c (new_symfile_objfile):  Add new function, common code
3500         from syms_from_objfile.
3501         * symfile.c (symbol_file_add):  Call new_symfile_objfile for both
3502         mapped and unmapped symbol files.
3503         * symfile.c (symbol_file_command):  Print "No symbol file now"
3504         message, ala exec_file_command for the exec file.
3505         * symfile.h (new_symfile_objfile):  Add prototype.      
3506         * xcoffexec.c (map_vmap):  Add call to new_symfile_objfile.
3507         * xcoffsolib.c (solib_add):  Add call to new_symfile_objfile.
3508
3509 Thu Apr 16 18:26:34 1992  Per Bothner  (bothner@cygnus.com)
3510
3511         * rs6000-pinsn.c:  New version from IBM (Metin).
3512         * m2-exp.y:  Re-write string initializers ("<>" => {'<', '>'})
3513         to avoid warnings from some compilers.
3514
3515 Tue Apr 14 22:33:55 1992  Fred Fish  (fnf@cygnus.com)
3516
3517         * gdbtypes.h (FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL):  Add defines.
3518         * gdbtypes.h (TYPE_FLAG_FUND_TYPE):  Add define for bit in a
3519         type's flag word that marks it as a fundamental type.
3520         * c-exp.y (_initialize_c_exp): Add TYPE_FLAG_FUND_TYPE bit to
3521         flags argument for all calls to init_type().
3522         * m2-exp.y (_initialize_m2_exp): Add TYPE_FLAG_FUND_TYPE bit to
3523         flags argument for all calls to init_type().  Also remove
3524         dependency on host sizes for ints, floats, etc.
3525         * mipsread.c (_initialize_mipsread): Add TYPE_FLAG_FUND_TYPE bit to
3526         flags argument for all calls to init_type().  Also remove
3527         dependency on host sizes for ints, floats, etc.
3528         * gdbtypes.c (lookup_fundamental_type):  Add TYPE_FLAG_FUND_TYPE
3529         bit to flags argument for all calls to init_type().  Add types
3530         FT_FIXED_DECIMAL and FT_FLOAT_DECIMAL.
3531         * valprint.c (unsigned_type_table, signed_type_table,
3532         float_type_table):  Remove.
3533         * valprint.c (type_print_base):  Test new TYPE_FLAG_FUND_TYPE
3534         bit when printing fundamental types, and print the actual name
3535         for such types, rather than inventing one.  Remove code that
3536         invented fundamental type names.
3537         * valprint.c (_initialize_valprint):  Remove initializations
3538         for now removed unsigned_type_table, signed_type_table, and
3539         float_type_table.
3540
3541 Tue Apr 14 14:30:46 1992  Stu Grossman  (grossman at cygnus.com)
3542
3543         * remote-vx.c, vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
3544         vx-share/xdr_rdb.h:  Update for new remote protocol under VxWorks
3545         5.0.2.
3546
3547 Mon Apr 13 20:59:21 1992  Fred Fish  (fnf@cygnus.com)
3548
3549         * dwarfread.c (target_to_host):  New function similar to previous
3550         swapin function.
3551         * dwarfread.c (SWAPIN, swapin):  Remove macro and support function.
3552         Extensive changes to convert all previous usages to use new
3553         target_to_host() function.
3554         * dwarfread.c (struct dieinfo):  Change types of most integral
3555         members to be unsigned.
3556
3557 Mon Apr 13 15:59:10 1992  John Gilmore  (gnu at cygnus.com)
3558
3559         * WHATS.NEW:  Revise -mapped doc.
3560
3561 Sat Apr 11 23:14:36 1992  John Gilmore  (gnu at cygnus.com)
3562
3563         * mipsread.c (parse_partial_symbols):  Complain when sh->index is
3564         too high or when skipping `forwards' moves us backwards.
3565         (parse_type):  Print mis-guessed tag name in complaint.
3566         (parse_external):  Eliminate cur_stab and obscure top_stack clobbers.
3567         (parse_procedure):  Do not attempt to create symbols; just fill in
3568         the SYMBOL_VALUE field of a .gdbinfo. symbol if we can find one.
3569         (psymtab_to_symtab_1):  Split up `stabs' from `native ecoff' code
3570         for clarity.  Set top_stack before calling parse_external.  In
3571         stabs, sort symbols before calling parse_procedure.
3572         * mipsread.c:  Lint.
3573         * symmisc.c (std_in, std_out, std_err):  Add vars to access std
3574         FILE *'s when debugging GDB (e.g. as args to dump_symtab).
3575         * Makefile.in:  Remove stage* targets.  Avoid echo on recursive
3576         makes.  Eliminate doc/Makefile from tar.Z file if doc/Makefile.in
3577         exists.
3578
3579 Fri Apr 10 23:47:37 1992  John Gilmore  (gnu at cygnus.com)
3580
3581         * Makefile.in (VERSION):  Set to 4.5.1.
3582         * xcoffread.c (NO_TYPEDEFS):  Fix typo in commented-out #define.
3583         * sparc-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
3584         fill_gregset):  New functions for SVR4 /proc support.
3585         * mipsread.c:  Cleanup.  Add more complaints for unhandled cases.
3586         Remove new symbol types and such to ../include/coff/symconst.h.
3587         (parse_symbol):  Simplify code for parsing struct/enum/unions.
3588         (parse_type):  Handle `long long' types.
3589         (upgrade_type):  Handle `const' qualifier.
3590         (parse_partial_symbols):  fix indentation, clean a bit. 
3591
3592 Fri Apr 10 22:41:03 1992  Fred Fish  (fnf@cygnus.com)
3593
3594         * dwarfread.c (SWAPIN,swapin):  New macro and function to call to
3595         copy in data from raw read buffers, calling bfd byteswapping
3596         routines as appropriate.  Use to replace most existing memcpy
3597         calls.
3598         * dwarfread.c (basicdieinfo, completedieinfo):  Add objfile arg.
3599         * configure.in:  Recognize new ncr3000 config.
3600         * config/ncr3000.mh:  New config file.
3601
3602 Fri Apr 10 08:30:58 1992  Stu Grossman  (grossman at cygnus.com)
3603
3604         GDB-4.5 release!
3605
3606         * README:  Update for release.
3607         * Makefile.in:  Update version to 4.5.
3608         * WHATS.NEW:  The obvious.
3609
3610         * depend:  Generate new depend file for this release.
3611
3612         * Makefile.in (depend):  Fix dependancy generation so that it does
3613         not include gcc 'fixincluded' files, which are usually in a system
3614         specific location.
3615
3616 Thu Apr  9 13:35:00 1992  Per Bothner  (bothner@rtl.cygnus.com)
3617
3618         Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik).
3619         * buildsym.c  (#ifdef RS6000_TARGET):  Don't create unnecessary
3620         symbols for nameless types.  And, handle `R' (register parameter
3621         type) for AIX.  (an extension to existing stabstring grammar).
3622         * rs6000-xdep.c:  Fix typo (= should have been ==).
3623
3624 Thu Apr  9 12:10:06 1992  Stu Grossman  (grossman at cygnus.com)
3625
3626         * Makefile.in:  version=4.4.88, add xm-vax.h to HFILES.
3627
3628 Thu Apr  9 02:29:03 1992  John Gilmore  (gnu at cygnus.com)
3629
3630         * xm-sun4os5.h (DO_DEFERRED_STORES, CLEAR_DEFERRED_STORES):  Zap.
3631         * signame.c (SIGWAITING, SIGLWP):  Add.
3632
3633 Tue Apr  7 16:34:07 1992  Per Bothner  (bothner@cygnus.com)
3634
3635         * xm-i386mach.h:  add decls for errno and strdup().
3636
3637         * breakpoint.c (breakpoint_1):  Add (int) casts for enums
3638         used in array index context (otherwise, some compilers barf).   
3639
3640 Tue Apr  7 08:45:46 1992  Stu Grossman  (grossman at cygnus.com)
3641
3642         * m68k-tdep.c, tm-sun3.h:  #ifdef around get_longjmp_target().
3643         Change def of SAVED_PC_AFTER_CALL to call routine to see if we are
3644         in a system call, and provide better backtrace if so.
3645
3646         * Makefile.in (HFILES):  Add xcoffsolib.h.
3647         * rs6k-opcode.h:  Move to ../include/opcode/rs6k.h.
3648         * rs6000-pinsn.c:  #include "opcode/rs6k.h"
3649
3650         * mipsread.c (read_mips_symtab, read_the_mips_symtab,
3651         mipscoff_symfile_read):  Convert to BFD to do file I/O.
3652
3653         * symfile.c:  #include <ctype.h> to get proper def if isspace().
3654
3655         * i386-tdep.c (get_longjmp_target):  #ifdef GET_LONGJMP_TARGET.
3656
3657 Mon Apr  6 17:25:45 1992  Per Bothner  (bothner@cygnus.com)
3658
3659         * mipsread.c: Create a .gdbinfo pseudo-symbol for each
3660         function also when parsing embedded stabs.
3661
3662 Mon Apr  6 15:25:03 1992  Stu Grossman  (grossman at cygnus.com)
3663
3664         * mipsread.c:  Fix more declarations.
3665
3666         * mipsread.c:  Fix many invocations of complain.  Use enum
3667         type_code where appropriate.
3668
3669         * xm-vaxult.h:  Add decl for strdup().
3670
3671         * Makefile.in: Add dependancies for xm-vaxbsd.h and xm-vaxult.h
3672         for xm-vax.h.
3673
3674 Fri Apr  3 17:41:29 1992  Stu Grossman  (grossman at cygnus.com)
3675
3676         * buildsym.h, dbxread.c, mipsread.c:  Add objfile arg to
3677         process_one_symbol.
3678
3679 Fri Apr  3 12:17:14 1992  Per Bothner  (bothner@cygnus.com)
3680
3681         * munch: Must pre-pend "_" to "initialize" for SYSV style nm.
3682         * tm-rs6000.h, xcoffexec.c, xcoffread.c, xm-rs6000.h:
3683         Merge in more patches for rs6000 from Metin Ozisik.
3684         * utils.c:  Fix typo in comment.
3685
3686 Fri Apr  3 11:23:03 1992  Fred Fish  (fnf@cygnus.com)
3687
3688         * procfs.c (procinfo struct):  Add nopass_next_sigstop member.
3689         * procfs.c (attach):  Set nopass_next_sigstop if attached 
3690         process is forcibly stopped.
3691         * procfs.c (child_resume):  Use nopass_next_sigstop to suppress
3692         resending SIGSTOP to attached process on first resume.
3693
3694 Fri Apr  3 01:37:26 1992  Stu Grossman  (grossman at cygnus.com)
3695
3696         * Makefile.in (SFILES_MAINDIR):  add mipsread.c
3697
3698 Thu Apr  2 20:20:54 1992  John Gilmore  (gnu at cygnus.com)
3699
3700         * Makefile.in (OBS):  Compile mipsread.c for all targets now.
3701         (VERSION):  Bump to 4.4.85.
3702         * mipsread.c:  Update for new include files.  Lint.
3703         * tm-irix3.h, tm-mips.h:  Use new include files for ECOFF symtab.
3704         * config/{bigmips.mt, littlemips.mt, irix3.mt, decstation.mt}:
3705         Don't need to bring in mipsread.o specially any more.
3706
3707 Thu Apr  2 19:38:31 1992  Stu Grossman  (grossman at cygnus.com)
3708
3709         * mipsread.c (fixup_sigtramp):  Also look for _sigtramp as a real
3710         routine (for Irix-4.x).  Make many funcs static and void.
3711         * mips-tdep.c (mips-frame-chain):  Clean up, simplify.
3712         * (init_extra_frame_info):  Don't trash cached value of frame
3713         pointer register.  This fixes backtracing through routines that use
3714         alloca().  Generally clean up declarations of functions, and use
3715         typedefs and macros to reference data structures as appropriate.
3716         * tm-irix3.h, tm-mips.h (EXTRA_FRAME_INFO):  use proper type for
3717         proc_desc element.
3718
3719 Thu Apr  2 09:47:11 1992  Fred Fish  (fnf@cygnus.com)
3720
3721         * values.c (unpack_long):  Fix unpacking error for signed chars
3722         on hosts where the default character type is unsigned.
3723         * procfs.c (pr_flag_table, pr_why_table):  Add some entries
3724         for newer SVR4 variants.
3725         * procfs.c (proc_set_exec_trap):  Reorder tests for ioctl's that
3726         turn off trace inherit-on-fork flag to favor latest SVR4 method.
3727         * procfs.c (mappingflags):  Add support for MA_PHYS
3728
3729 Thu Apr  2 00:55:56 1992  John Gilmore  (gnu at cygnus.com)
3730
3731         * buildsym.c (read_struct_type):  Avoid coredump when C++
3732         abbreviated type name is messed up.  Reported by Joe Buck.
3733         FIXME, we need to determine whether GDB or GCC needs to be
3734         smarter to correctly locate this type name.
3735
3736         * c-exp.y, coffread.c, command.c, command.h, copying.awk,
3737         dbxread.c, gdbtypes.c, infcmd.c, inferior.h, infrun.c,
3738         m2-exp.y, printcmd.c, remote.c, solib.c, source.c, stack.c,
3739         symtab.c, tm-sun4os4.h, tm-sun4os5.h, values.c:  Lint.
3740         * symfile.c (add_symbol_file_command):  Initialize mapped/readnow.
3741
3742 Wed Apr  1 11:39:52 1992  Fred Fish  (fnf@cygnus.com)
3743
3744         * breakpoint.h (bpdisp, bptype):  Remove trailing comma.
3745         * symtab.h (current_source_symtab):  Make extern
3746         * symtab.h (current_source_line): Make extern
3747         * inferior.h:  Move all procfs.c prototypes to one place, add
3748         prototype for proc_signal_handling_change.  Add prototypes for
3749         signal_stop_state, signal_print_state, and signal_pass_state.
3750         * inferior.h (stop_soon_quietly):  Make extern
3751         * inferior.h (attach_flag):  Make extern
3752         * infrun.c (NOTICE_SIGNAL_HANDLING_CHANGE):  Default is null.
3753         * infrun.c (signal_stop_state, signal_print_state,
3754         signal_pass_state):  New functions to query specific signal
3755         handling flags.
3756         * infrun.c (handle_command):  Minor error message change, add
3757         NOTICE_SIGNAL_HANDLING_CHANGE.
3758         * procfs.c (open_proc_file):  Remove iris specific reset of
3759         inherit-on-fork flag, moved to proc_set_exec_trap().
3760         * procfs.c (proc_set_exec_trap):  Add SVR4 and iris code
3761         to reset inherit-on-fork flag, bash comment to GNU form.
3762         * procfs.c (proc_base_address, set_proc_siginfo,
3763         fetch_core_registers):  Conform to code style.
3764         * procfs.c (signame.h):  Include.
3765         * procfs.c (MAX_SYSCALLS, syscall_table[], init_syscalltable(),
3766         syscallname(), info_proc_syscalls()):  New macros, tables, and
3767         functions to organize and report system call information.
3768         * procfs.c (saved_fltset, saved_trace, saved_sighold,
3769         saved_exitset, saved_entryset):  Add to procinfo struct.
3770         * procfs.c (struct trans):  Add.
3771         * procfs.c (pr_flag_table, pr_why_table, faults_table,
3772         siginfo_table, errno_table):  Tables to translate numeric values
3773         to symbolic names and short descriptions.
3774         * procfs.c (signalname, info_proc_signals):  Add function and
3775         prototype.
3776         * procfs.c (proc_info):  Now info_proc.
3777         * procfs.c (proc_info_address_map):  Now info_proc_mappings.
3778         * procfs.c (info_proc_flags, info_proc_stop, info_proc_siginfo,
3779         info_proc_faults, lookupname, lookupdesc, sigcodename,
3780         sigcodedesc):  New functions.
3781         * procfs.c (proc_signal_handling_change):  New function to set
3782         the trace flags based on the state of gdb's signal handling flags.
3783         * procfs.c (inferior_proc_init):  Call proc_signal_handling_change
3784         and remove code to do PIOCSTRACE ioctl.
3785         * procfs.c (attach, detach):  Preserve and restore process flags
3786         using saved_* fields in procinfo struct.
3787         * procfs.c (attach):  Call proc_signal_handling_change.
3788         * procfs.c (info_proc):  Major rework to expand "info proc" cmd.
3789         * procfs.c (proc_desc):  Update for latest changes.
3790         * xm-irix4.h (CREATE_INFERIOR_HOOK):  Protect by USE_PROC_FS.
3791         * xm-irix4.h (NOTICE_SIGNAL_HANDLING_CHANGE):  Add definition.
3792         * xm-sysv4.h (NOTICE_SIGNAL_HANDLING_CHANGE):  Add definition.
3793
3794 Tue Mar 31 18:38:28 1992  Fred Fish  (fnf@cygnus.com)
3795
3796         * procfs.c (set_proc_siginfo):  Add prototype and new function.
3797         * procfs.c (detach, child_resume):  Call set_proc_siginfo to set
3798         up inferior siginfo struct.
3799         * elfread.c (elf_symfile_read):  Compute the relocation amount
3800         by subtracting off the address of the ".text" section.
3801         * solib.c:  Add pointer to ".text" section to so_list struct.
3802         * solib.c (solib_map_sections):  Initialize pointer to ".text"
3803         section in so_list struct.
3804         * solib.c (symbol_add_stub):  Pass base address of ".text"
3805         section to symbol_file_add, rather than the load address of
3806         the shared library.  On SunOS they are the same.  On SVR4 they
3807         are not.
3808
3809 Tue Mar 31 17:48:15 1992  Stu Grossman  (grossman at cygnus.com)
3810
3811         * mipsread.c (parse_procedure):  PDR.isym should get pointer to
3812         function name, not .gdbinfo. symbol.
3813
3814 Tue Mar 31 17:05:04 1992  John Gilmore  (gnu at cygnus.com)
3815
3816         * breakpoint.c (breakpoint_1):  Fix prototype, this time for sure!
3817
3818 Tue Mar 31 11:01:06 1992  Stu Grossman  (grossman at cygnus.com)
3819
3820         * Makefile.in (VERSION):  4.4.8
3821
3822         * procfs.c (open_proc_file):  Disable inherit-on-fork flag so that
3823         commands in .cshrc/.profile won't get traced.
3824
3825 Tue Mar 31 08:11:58 1992  John Gilmore  (gnu at cygnus.com)
3826
3827         * elfread.c (elf_symtab_read):  Use xmalloc, not bfd_xmalloc.
3828         * exec.c (build_section_table):  Don't abort if no sections.
3829         * sparc-tdep.c (single_step):  Lint.
3830         * utils.c (mrealloc):  Handle realloc (0, size) case here.
3831
3832 Mon Mar 30 16:50:43 1992  Stu Grossman  (grossman at cygnus.com)
3833
3834         * Makefile.in (alldeps.mak):  Config files are now *.m[ht] as
3835         opposed to m[ht]-*!
3836
3837         * config/irix4.mh:  Don't use coredep.o.  It doesn't work with procfs.
3838
3839         * mipsread.c (parse_symbol, parse_procedure):  Re-do the way that
3840         .gdbinfo. symbols are created.  Move creation from parse_procedure
3841         to parse_symbol, where it is fairly easy to grow the symtab.  This
3842         also fixes a symtab trashing bug on all mips-based systems.
3843         * (got_numargs, lookup_numargs, free_numargs):  Delete.  Not
3844         needed anymore.
3845         * tm-mips.h, tm-iris3.h, mips-tdep.c, mipsread.c:  Re-do struct
3846         mips_extra_func_info, and all the PROC_xxx macros that look at it.
3847
3848 Mon Mar 30 14:17:53 1992  Per Bothner  (bothner@cygnus.com)
3849
3850         * c-exp.y:  Add missing return type to yyparse() prototype.
3851
3852 Sat Mar 28 22:22:06 1992  John Gilmore  (gnu at cygnus.com)
3853
3854         Create and use macros for iterating on symtabs, psymtabs, msymbols.
3855
3856         * minsyms.c (iterate_over_msymbols):  Remove; clunky and slow.
3857         * symfile.h, symtab.h (iterate_over_msymbols):  Remove prototype
3858         * coffread.c (coff_symfile_read):  iterate_over_symtabs => ALL_SYMTABS.
3859         (patch_opaque_types):  Avoid dummy args and result.
3860         * objfiles.c (have_partial_symbols, have_full_symbols,
3861         have_minimal_symbols):  explicit iteration => ALL_OBJFILES; simplify.
3862         (iterate_over_objfiles, iterate_over_symtabs,
3863         iterate_over_psymtabs):  Remove, clunky and slow.
3864         * objfiles.h:  Replace iterate_over_* prototypes with ALL_SYMTABS,
3865         ALL_PSYMTABS, and ALL_MSYMBOLS macros.
3866         * symmisc.c (dump_symtab, dump_psymtab, dump_msymbols,
3867         dump_objfile):  Remove dummy args and results.  Move filename
3868         comparisons to callers.
3869         (printsyms_command, printpsyms_command, printmsyms_command,
3870         printobjfiles_command):  iterate_over_* => ALL_*.  Compare filenames.
3871         * symtab.c (lookup_symtab_1, lookup_symtab, lookup_partial_symtab,
3872         lookup_symbol, find_main_psymtab, find_pc_symtab, sources_info,
3873         list_symbols, make_symbol_completion_list):  Replace explicit
3874         iteration with ALL_SYMTABS, ALL_PSYMTABS, or ALL_MSYMBOLS.
3875         Eliminate Dijkstra flag crap, break out of loops with gotos.
3876         (lookup_symtab_1):  Protect '/' tests from short filenames.
3877         (cplus_mangled_symbol):  Move inline into lookup_symbol.
3878         * xcoffexec.c (relocate_objfile_msymbols):  Remove poor hack.
3879         (relocate_minimal_symbol):  Move inline to vmap_symtab.
3880         (vmap_symtab):  Replace iteration with ALL_OBJFILES,
3881         iterate_over_msymbols with ALL_MSYMBOLS.
3882
3883         Misc cleanup prior to release.
3884
3885         * Makefile.in (VERSION):  Roll to 4.4.7.
3886         (HFILES):  Add call-cmds.h.
3887         * call-cmds.h:  New header for command fns called by other files.
3888         * breakpoint.c (watchpoints_info):  Remove, same as breakpoints_info.
3889         (breakpoint_1):  Remove unused type arg.  Change callers.
3890
3891         * dwarfread.c (dwarf_build_psymtabs):  Remove mainline test.
3892         * mipsread.c (compare_symtabs, compare_psymtabs):  Remove, unused.
3893         * mipsread.c:  Add prototypes for all static functions.
3894
3895         * symmisc.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
3896         dump_blockvector, dump_block, dump_addrchass, dump_namespace,
3897         dump_symbol, dump_type, dump_linetable, dump_strtbl):  Remove, unused.
3898         * xcoffread.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
3899         dump_blockvector, dump_block, dump_addrchass, dump_namespace,
3900         dump_symbol, dump_type, dump_linetable, dump_strtbl):  Remove 2nd
3901         unused copy!
3902
3903         * buildsym.c (define_symbol):  Handle global register variables
3904         (from Pierre Willard).  Complain if register numbers are too large.
3905         * target.c (nomemory):  Now that higher levels examine errno, give EIO.
3906         * tm-sparc.h:  Don't #include <sun4/reg.h>.
3907         * sparc-tdep.c (sparc_frame_chain, frame_saved_pc):  Remove
3908         dependency on <sun4/reg.h>.  Start to handle cross-byte-order.
3909
3910         * language.h:  Avoid forward enum declaration.
3911         * configure.in, tm-sun4os5.h, xm-sun4os5.h, config/sun4os5.mh,
3912         config/sun4os5.mt:  New host and target.
3913         * defs.h (errno): #include <errno.h> rather than assuming int.
3914         From Pierre Willard.
3915
3916         * breakpoint.c, breakpoint.h, buildsym.c, coffread.c, cplus-dem.c,
3917         dbxread.c, dwarfread.c, elfread.c, infcmd.c, infrun.c, inftarg.c,
3918         language.c, main.c, mem-break.c, mips-tdep.c, mipsread.c,
3919         partial-stab.h, remote.c, saber.suppress, symfile.c, symtab.c,
3920         valops.c, valprint.c, xcoffread.c, c-exp.y, m2-exp.y, blockframe.c,
3921         command.c, core.c, exec.c, gdbtypes.h, parse.c, printcmd.c, solib.c,
3922         sparc-xdep.c, utils.c, value.h, values.c:  Lint.
3923
3924 Sat Mar 28 02:43:26 1992  John Gilmore  (gnu at cygnus.com)
3925
3926         * buildsym.c (read_range_type):  Avoid int overflow by using unsigned.
3927         * dbxread.c (dbx_symfile_init):  Remove bogus `lvalue cast'.
3928         * language.h (enum exp_opcode):  Avoid forward enum def.
3929         * main.c (define_command, user_defined_command):  Lint.
3930         * mem-break.c, xcoffread.c:  Lint.
3931         * solib.c:  Only #include <a.out.h> on SunOS, not SVR4.
3932
3933 Sun Mar 29 14:16:22 1992  Per Bothner  (bothner@cygnus.com)
3934
3935         * Merged in latest RS6000 diffs from Metin G. Ozisik.
3936         * xcoffsolib.c, xcoffsolib.h:  New files, from Metin.
3937         * Various files: Changed #ifdef IBM6000 to IBM6000_HOST
3938         or IBM6000_TARGET as (approximately) appropriate.
3939
3940 Sat Mar 28 13:00:10 1992  Fred Fish  (fnf@cygnus.com)
3941
3942         * objfiles.h (OBJF_SYMS):  Define flag bit for objfile flags.
3943         * symfile.c (symbol_file_add):  Use OBJF_SYMS to decide  whether
3944         or not to try reading symbols from a mapped objfile.  Plugs memory
3945         leak due to shared libraries generating no psymtabs or symtabs.
3946
3947 Fri Mar 27 15:44:55 1992  John Gilmore  (gnu at cygnus.com)
3948
3949         * buildsym.c (MAX_OF_C_TYPE, MIN_OF_C_TYPE):  Unused, remove.
3950         * copying.awk:  Lint.  Make stronger warning at top of copying.c.
3951         * elfread.c (elf_symtab_read):  Eliminate check of mainline.
3952         * gdbtypes.c (smash_to_*):  Remove FIXME comments.
3953         (lookup_pointer_type):  Add FIXME comment.
3954         * main.c (set_history_size_command):  Disallow negative size.
3955         * partial-stab.h:  Update copyright.
3956         * rs6000-tdep.c (skip_trampoline_code):  Better comments.
3957
3958 Wed Mar 25 10:45:38 1992  John Gilmore  (gnu at cygnus.com)
3959
3960         * main.c (set_history_size_command):  Negative size is error.
3961         (Reported by Peggy Fieland.)
3962
3963 Thu Mar 26 17:01:18 1992  Fred Fish  (fnf@cygnus.com)
3964
3965         * coffread.c (coff_symfile_init):  Update comment.
3966         * dbxread.c (DBX_SYMFILE_INFO, DBX_TEXT_SECT, DBX_SYMCOUNT,
3967         DBX_STRINGTAB, DBX_STRINGTAB_SIZE, DBX_SYMTAB_OFFSET):  Define
3968         macros to access the dbx specific objfile information.
3969         * dbxread.c (symfile_string_table, symfile_string_table_size):
3970         Remove these local variables.
3971         * dbxread.c (read_ofile_symtab, psymtab_to_symtab_1,
3972         read_dbx_symtab):  Remove the stringtab and stringtab_size params
3973         from the function prototypes, the function definition, and the
3974         function calls.  These are now available via DBX_STRINGTAB and
3975         DBX_STRINGTAB_SIZE using the objfile pointer.
3976         * dbxread.c (dbx_symfile_read):  Relocate addr before using as
3977         an arg to read_dbx_symtab.
3978         * dbxread.c (dbx_symfile_read):  Remove code that free'd the
3979         stringtab and the dbx specific per-objfile private info.
3980         * dbxread.c (init_psymbol_list):  Remove symbol count from passed
3981         args in prototype, function definition, and function calls.  It is
3982         now available via the DBX_SYMCOUNT macro using the objfile
3983         pointer.
3984         * dbxread.c (dbx_symfile_read, dbx_symfile_init):  Remove the
3985         local instance of struct dbx_symfile_info and replace with DBX_*
3986         macros.
3987         * dbxread.c (dbx_symfile_read):  Remove init's of now deleted
3988         symfile_string_table and symfile_string_table_size.
3989         * dbxread.c (dbx_symfile_finish):  Remove now obsolete free of
3990         symfile_string_table.
3991         * dbxread.c (init_psymbol_list):  Use DBX_SYMCOUNT.
3992         * dbxread.c (dbx_psymtab_to_symtab):  Remove local stringtab and
3993         stringtab size variables.  Remove all code that used to reread
3994         the stringtab.
3995         * objfiles.c (allocate_objfile):  Move calls to init_malloc()
3996         to prior to any calls to mmalloc for the objfile specific heap.
3997         * utils.c (init_malloc):  Document the requirement that for each
3998         heap for which corruption checking is desired, that init_mmalloc
3999         must be called prior to any mmalloc calls on the heap.
4000
4001 Thu Mar 26 13:20:06 1992  Per Bothner  (bothner@cygnus.com)
4002
4003         * rs6000-pinsn.c:  Make dis-assembly output more like
4004         other targets:  Don't print instruction in hex before
4005         the assembly;  use print_address to print out jump
4006         destinations.
4007
4008 Wed Mar 25 16:52:35 1992  Per Bothner  (bothner@cygnus.com)
4009
4010         * c-exp.y, gdbtypes.h:  Add builtin_type_signed_char.
4011         * cplus-dem.c:  Support "Sc" meaning "signed char".
4012
4013 Wed Mar 25 15:21:44 1992  Stu Grossman  (grossman at cygnus.com)
4014
4015         * configure.in:  fix iris/iris3.
4016
4017 Wed Mar 25 14:55:48 1992  Per Bothner  (bothner@cygnus.com)
4018
4019         * command.c, main.c (various places):  Use ctype.h macros
4020         (such as isupper(x)),  instead of hard-wiring in ASCII-isms
4021         (such as (x >= 'A' && x <= 'Z')).
4022         (There are still more of these in other files.)
4023         * main.c (defined_command):  Lower-case the user's
4024         new command before entering it.  Needed because
4025         command lookup is case-insensitive (and also lower-cases).
4026         (Based on Metin's earlier patch.)
4027
4028 Tue Mar 24 23:27:01 1992  K. Richard Pixley  (rich@cygnus.com)
4029
4030         * config/irix4.mh: new file.
4031
4032 Tue Mar 24 14:17:48 1992  Stu Grossman  (grossman@cygnus.com)
4033
4034         * infcmd.c (step_1):  Call disable_longjmp_breakpoint at the right
4035         time.
4036
4037         * xm-mips.h:  Declare strdup for ultrix.
4038
4039         * mipsread.c (fixup_sigtramp):  Make sure that current_objfile is setup
4040         when calling new_symbol.
4041         * mips-tdep.c (mips_frame_chain):  Use symfile_objfile instead of
4042         current_objfile.
4043
4044 Tue Mar 24 13:26:25 1992  Per Bothner  (bothner@rtl.cygnus.com)
4045
4046         * config/rs6000.mh:  Update (for Fred's new mmalloc)
4047         flags to disable use of GNU malloc/mmalloc.
4048         * munch:  Change SYSV rule to allow .text before the label,
4049         as well as after, to work for AIX.
4050         * gdbtypes.h:  Minor clarifiction.
4051
4052 Tue Mar 24 07:26:19 1992  Michael Tiemann  (tiemann@cygnus.com)
4053
4054         * buildsym.c (read_struct_type): Handle cretinous dbx symbol name
4055         continuation in yet another place (between method declarations).
4056
4057 Mon Mar 23 23:01:41 1992  Stu Grossman  (grossman at cygnus.com)
4058
4059         * mips-tdep.c:  include symfile.h and objfiles.h to fix
4060         compilation errors.
4061
4062 Mon Mar 23 15:49:14 1992  Per Bothner  (bothner@cygnus.com)
4063
4064         * valops.c (value_struct_elt_for_reference):  Added 'offset'
4065         parameter to handle multiple inheritance.
4066         * eval.c, value.h:  Update accordingly.
4067
4068 Fri Mar 20 17:43:27 1992  Fred Fish  (fnf@cygnus.com)
4069
4070         * objfiles.h: New file
4071         * Makefile.in (HFILES):  Add objfiles.h
4072         * blockframe.c:  Remove entry_scope_lowpc, entry_scope_highpc,
4073         main_scope_lowpc, main_scope_highpc.
4074         * blockframe.c, buildsym.c, coffread.c, dbxread.c, dwarfread.c,
4075         elfread.c, gdbtypes.h, minsyms.c, mipsread.c, objfiles.c, solib.c,
4076         source.c, symfile.c, symmisc.c, symtab.c, target.c, xcoffexec.c,
4077         xcoffread.c, :  Include objfiles.h.
4078         * tm-29k.h, tm-i386v.h, tm-merlin.h, tm-rs6000.h, tm-sun386.h,
4079         tm-symmetry.h, tm-tahoe.h, tm-umax.h, tm-vax.h, m88k-tdep.c,
4080         mips-tdep.c (FRAME_CHAIN): Renamed outside_startup_file to
4081         inside_entry_file() and logic changed appropriately.
4082         * blockframe.c (outside_startup_file):  Renamed to
4083         inside_entry_file() and logic changed appropriately.
4084         * blockframe.c (inside_main_scope):  Renamed to inside_main_func()
4085         and logic changed to use per-objfile specific fields.
4086         * blockframe.c (inside_entry_scope):  Renamed to
4087         inside_entry_func() and logic changed to use per-objfile specific
4088         fields.
4089         * blockframe.c, buildsym.h, coffread.c, dwarfread.c, mipsread.c,
4090         symfile.c, mips-tdep.c (startup_file_start, startup_file_end):
4091         Remove extern decls.
4092         * symfile.c, symfile.h (entry_point):  Remove extern decl.      
4093         * coffread.c (coff_symfile_init):  Common entry point init code
4094         moved to symfiles.c, call init_entry_point_info().
4095         * coffread.c (complete_symtab):  Use new per-objfile entry info.
4096         * mip-tdep.c (mips_frame_chain):  Use new per-objfile entry info.
4097         * mipsread.c (parse_partial_symbols):  Use new per-objfile entry
4098         info.
4099         * dbxread.c (read_dbx_symtab):  Use new per-objfile entry info.
4100         * defs.h (inside_entry_scope, outside_startup_file,
4101         inside_main_scope):  Prototypes changed for renames to
4102         inside_entry_func, inside_entry_file, inside_main_func,
4103         respectively.
4104         * symfile.c (syms_from_objfile):  Common entry point init code
4105         moved to init_entry_point_info() and call init_entry_point_info().
4106         * symfile.h (init_entry_point_info):  Include prototype.
4107         * xcoffread.c (aixcoff_symfile_init):  Common entry point init code
4108         moved to symfiles.c and call init_entry_point_info().
4109         * dwarfread.c (entry_scope_lowpc, entry_scope_highpc,
4110         main_scope_lowpc, main_scope_highpc):  Remove extern decls.
4111         * dwarfread.c (read_func_scope, read_file_scope):  Use new per-
4112         objfile entry info.
4113         * frame.h (FRAME_CHAIN_VALID):  Provide default definition that
4114         works for the majority of targets.
4115         * tm-68k.h, tm-convex.h, tm-h8300.h, tm-i386v.h, tm-irix3.h,
4116         tm-merlin.h, tm-mips.h, tm-pyr.h, tm-rs6000.h, tm-sparc.h,
4117         tm-sun386.h, tm-tahoe.h, tm-umax.h, tm-vax.h (FRAME_CHAIN_VALID):
4118         Use default definition in frame.h.
4119         * frame.h (selected_frame_level):  Make decl extern.
4120         * objfiles.c, symfile.c (current_objfile):  Moved to objfiles.c
4121         * objfiles.c, symfile.c (symfile_objfile):  Moved to objfiles.c
4122         * partial-stab.h:  Use new per-objfile entry info.
4123         * symfile.h (struct objfile):  Removed, moved to objfiles.h.
4124         * symfile.h, objfiles.h (allocate_objfile, free_objfile,
4125         free_all_objfiles, iterate_over_objfiles, iterate_over_symtabs,
4126         iterate_over_psymtabs, have_partial_symbols, have_full_symbols,
4127         have_minimal_symbols):  Prototypes moved to objfiles.h.
4128         * symfile.h, objfiles.h (ALL_OBJFILES, ALL_OBJFILES_SAFE):
4129         Macros moved to objfiles.h.
4130         * tm-h8300.h, tm-i386v4.h (FRAME_CHAIN_VALID_ALTERNATE): Define.
4131
4132 Thu Mar 19 18:49:45 1992  Per Bothner  (bothner@cygnus.com)
4133
4134         More C++ improvements (pointers to members, qualified names).
4135         * c-exp.y:  Support exp.type::name and exp->type::name
4136         syntaxes.  (Unfortunately, doesn't work for static members.)
4137         * c-exp.y, eval.c:   Make type::~type work better.
4138         * eval.c (evaluate_subexp: OP_SCOPE):  Replace use of
4139         value_static_field by value_struct_elt_for_reference.
4140         * eval.c (evaluate_subexp):  Merge code for STRUCTOP_MEMBER
4141         and STRUCTOP_MPTR; cast arg1 to domain-type of arg2.
4142         * eval.c (evaluate_subexp):  Remove special case for UNOP_ADDR
4143         for OP_SCOPE operand; no point in it now that we use lazy
4144         reading of values, and use "reference to member" objects.
4145         * gdbtypes.h:  Clarify comment.
4146         * valops.c:  Change value_struct_elt_for_address to return
4147         a reference (or variable), rather than a pointer.  Change
4148         the name to value_struct_elt_for_reference to reflect this.
4149         Returning a reference instead of a address provides a
4150         generalization, since we can use the routine for both
4151         class::name as well as &class::name.
4152         Also, recurse to handle multiple inheritance properly.
4153         * valprint.c:  Moved code to print pointer-to-members
4154         to new function point_class_member.  This allows a
4155         "reference-to-member" to be printed using the same code.
4156         * valprint.c (type_print_varspec_prefix):  Avoid printing
4157         "struct " for domains of class-member types.
4158         * valops.c (search_struct_field):  Inline code for simplified
4159         version of value_static_field (which can then be deleted).
4160         * value.h:  Rename value_struct_elt_for_address to
4161         value_struct_elt_for_reference.  Delete value_static_field.
4162         * values.c:  Remove no longer used function value_static_field.
4163
4164 Thu Mar 19 13:54:11 1992  Fred Fish  (fnf@cygnus.com)
4165
4166         * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
4167         elfread.c (coff_symfile_finish):  Add function, prototype, and
4168         add to the xxxx_sym_fns struct for each file type.  Also reformat
4169         the xxxx_sym_fns vector to a standard format and add comments.
4170         * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
4171         elfread.c (xxx_symfile_new_init, xxx_symfile_init, xxx_symfile_read):  
4172         Pass pointer to struct objfile rather than pointer to sym_fns.
4173         Change references inside each function accordingly.  Allocate any
4174         symbol file specific info in the per-objfile memory region.
4175         * dbxread.c (free_and_init_header_files):  Break function into
4176         free_header_files(), called from dbx_symfile_finish(), and
4177         init_header_files(), called from dbx_new_init().
4178         * dbxread.c (dbx_new_init):  Move deallocation things to new
4179         dbx_symfile_finish function.
4180         * elfread.c (elf_new_init):  Call buildsym_new_init().
4181         * objfiles.c (free_objfile): Call the appropriate symfile_finish()
4182         routine for the objfile before deallocating other stuff.
4183         * sparc-tdep.c (get_longjmp_target):  Cast target_read_memory arg.
4184         * symfile.h:  Move struct sym_fns to before struct objfile def.
4185         Add sym_finish function pointer and change prototypes of other
4186         function pointers to reflect passing struct objfile pointer rather
4187         than struct sym_fns pointer.
4188         * symfile.c:  Remove now obsolete symtab_fns pointer.
4189         * symfile.c (symfile_init):  Renamed to find_sym_fns, and now only
4190         locates the correct sym_fns struct for the given objfile.
4191         * symfile.c (syms_from_objfile, symbol_file_add):  Restructured
4192         for better support of mapped symbol tables.
4193         * symfile.c (symbol_file_command):  Remove obsolete code using
4194         symfile_fns.
4195         * symfile.h:  Remove duplicate declarations for symfile_objfile,
4196         entry_point, and object_files.
4197         * target.c (target_info):  Compare symfile_objfile to NULL.
4198         * xcoffread.c (aixcoff_new_init):  Move deallocation stuff to
4199         aixcoff_symfile_finish().
4200
4201 Wed Mar 18 18:22:46 1992  Fred Fish  (fnf@cygnus.com)
4202
4203         * infrun.c (IN_SOLIB_TRAMPOLINE):  Add default definition.
4204         * infrun.c (wait_for_inferior):  Use IN_SOLIB_TRAMPOLINE.
4205         * tm-sysv4.h (IN_SOLIB_TRAMPOLINE): Add SVR4 definition.
4206
4207 Wed Mar 18 15:51:15 1992  Per Bothner  (bothner@cygnus.com)
4208
4209         Some improvements to g++ debugging.
4210         * symtab.c (list_symbols): demangle before pattern matching.
4211         * symtab.c:  Other fixes to improve handing of operators.
4212         * valprint.c (type_print_base):  Fix test for constructor.
4213         * values.c (value_static_field):  Allow evaluation of
4214         CLASS::METHOD, returning a function pointer.
4215
4216 Wed Mar 18 08:39:52 1992  Fred Fish  (fnf@cygnus.com)
4217
4218         * Makefile.in (VERSION):  Roll  4.4.6.
4219         * exec.c (exec_file_command):  Add code to ignore optional args
4220         passed in by file_command() for use in symbol_file_command().
4221         * main.c (main):  Document -mapped and -readnow in help summary.
4222         * objfiles.c (open_mapped_file):  Cosmetic change, arg renamed.
4223         * objfiles.c (allocate_objfile):  Filename arg removed.  Changes
4224         to get filename from bfd with bfd_get_filename().  Test mapto
4225         against 0, not NULL.  Use mstrsave() to make copy of filename.
4226         * remote-mm.c (mm_load):  Symbol_file_add() takes an additional
4227         arg.
4228         * remote-vx.c (vx_load_command, add_symbol_stub):
4229         Symbol_file_add() takes an additional arg.
4230         * solib.c (symbol_add_stub):  Symbol_file_add() takes an
4231         additional arg.
4232         * symfile.c (symfile_open):  Renamed to symfile_bfd_open and
4233         changed to return a bfd not an objfile pointer.
4234         * symfile.c (syms_from_objfile): Eliminate local copy of bfd.
4235         * symfile.c (symbol_file_add):  Takes an additional arg (readnow).
4236         Change to eliminate local bfd and use symfile_bfd_open() plus
4237         allocate_objfile().  Add code to implement readnow option.
4238         * symfile.c (symbol_file_command): Changes to option handling,
4239         readnow functionality moved to symbol_file_add().
4240         * symfile.c (symfile_init):  Eliminate local copy of bfd.
4241         * symfile.c (add_symbol_file_command):  Changes to parse mapped
4242         and readnow options.
4243         * symfile.h (allocate_objfile):  Arg removed from prototype.
4244         * symtab.h (symbol_file_add):  Arg added to prototype.
4245         * xcoffexec.c (map_vmap):  Allocate_objfile() takes an additional
4246         arg.
4247
4248 Sat Mar 14 16:38:47 1992  Fred Fish  (fnf@cygnus.com)
4249
4250         * gmalloc.c, gmalloc.h mcheck.c mmap-alloc.c mmap-sbrk.c mtrace.c,
4251         mtrace.awk, state.c, state.h:  Removed.
4252         * .gdbinit: Add ../malloc, ../libiberty, and ../bfd to list of
4253         directories searched for source files.
4254         * Makefile.in (GNU_MALLOC, MALLOC_CFLAGS, MALLOCSRC): Removed
4255         * Makefile.in (MMALLOC_DIR, MMALLOC_DEP, MMALLOC_LIB,
4256         MMALLOC_DISABLE, MMALLOC_CHECK, MMALLOC_CFLAGS): Add
4257         * Makefile.in (CFLAGS):  Replace MALLOC_CFLAGS with MMALLOC_CFLAGS.
4258         * Makefile.in (CLIBS, CDEPS):  Add MMALLOC_LIB
4259         * Makefile.in (ADD_FILES, ADD_DEPS):  Remove GNU_MALLOC.
4260         * Makefile.in (SFILES_MAINDIR): Remove stat.c mmap-alloc.c, mmap-
4261         sbrk.c
4262         * Makefile.in (HFILES): Remove state.h
4263         * Makefile.in (POSSLIBS_MAINDIR): Remove MALLOCSRC.
4264         * Makefile.in (OBS): Remove state.o mmap-alloc.o mmap-sbrk.o
4265         * Makefile.in (saber_gdb): Remove mcheck, mtrace.  Add MMALLOC_DIR.
4266         * Makefile.in (clean): Remove all object files.
4267         * c-exp.y:  Define malloc to xmalloc and realloc to xrealloc.
4268         * cplus-dem.c: Remove prototypes definitions that are now done in
4269         def.h.
4270         * dbxread.c (throughout):  Change from using per-objfile
4271         xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
4272         * defs.h: Remove prototypes for mmap_* functions.  Add prototypes
4273         for xmmalloc, xmrealloc, mfree, mmcheck, mmtrace, mmalloc_attach, 
4274         mmalloc_detach, mmalloc_setkey, msavestring, and mstrsave, nomem.
4275         * depend:  Remove dependencies for state.o, state.h.
4276         * dwarfread.c: Add declaration for warning_pre_print.
4277         * dwarfread.c (dwarfwarn):  Use warning_pre_print.
4278         * dwarfread.c (throughout):  Change from using per-objfile
4279         xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
4280         * gdbtypes.c (lookup_fundamental_type):  Fix init_type calls to
4281         use supplied objfile.
4282         * i386-xdep.c (print_387_status): Change to use warning() rather
4283         than printfs.
4284         * i387-tdep.c (print_387_control_word):  Change to use warning()
4285         rather than printfs.
4286         * infrun.c (wait_for_inferior):  Remove unreachable abort() call
4287         that some compilers grumble about.              
4288         * language.c (throughout):  Add declaration for warning_pre_print
4289         and using warning() instead of printfs.
4290         * m2-exp.y:  Define malloc to xmalloc and realloc to xrealloc.
4291         * main.c (main):  Add declaration for warning_pre_print and set it
4292         similarly to error_pre_print.  Add declarations for
4293         mapped_symbol_files and readnow_symbol_files.  Add appropriate
4294         definitions to long_options[].
4295         * minsyms.c:  Trivial fix to comment.
4296         * objfiles.c (allocate_objfile):  Substantially rewritten for
4297         using mapped symbol files.
4298         * objfiles.c (throughout):  Change from using per-objfile
4299         xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
4300         * objfiles.c (open_mapped_file, mapped_to_address):  Add functions.
4301         * source.c (throughout):  Change from using per-objfile
4302         xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
4303         * source.c (open_source_file):  Use mstrsave to save file name in
4304         mapped symbol region for objfile.
4305         * symfile.c:  Remove include for state.h.
4306         include to local form.
4307         * symfile.c (symbol_file_add_digested):  Remove.
4308         * symfile.c (symbol_file_add):  Substantially rewritten for mapped
4309         symbol files.
4310         * symfile.h:  Remove malloc/xrealloc/xmalloc/xrealloc/free members
4311         from objfile structure.  Add malloc descriptor pointer (md).
4312         * symfile.h (OBJF_DUMPABLE):  Changed name to OBJF_MAPPED.
4313         * symm-xdep.c (print_fpu_status):  Use warning() rather than
4314         printfs.
4315         * symmisc.c (free_symtab_block):  Now takes and uses current
4316         objfile pointer.
4317         * symmisc.c (throughout):  Change from using per-objfile
4318         xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
4319         * symtab.c (cplus_mangled_symbol):  Cast return value to avoid
4320         Sun compiler grumblings when PTR is char *.
4321         * symtab.c (lookup_symbol):  Cast return value of iterate_over_
4322         msymbols() to correct pointer type.
4323         * utils.c (warning_pre_print):  Initialize to "\nwarning: ".
4324         * utils.c (fatal, fatal_dump_core):  Ensure that the fatal
4325         error always starts on a line of it's own.
4326         * utils.c (init_malloc, malloc_botch, xmalloc, xrealloc):
4327         Rewrite for new mapped malloc package use.
4328         * utils.c (mmalloc, mrealloc, mfree):  Stubs for configurations
4329         that don't want to use the mapped malloc package; pass arguments
4330         on to traditional malloc package functions.
4331         * utils.c (nomem):  Add for fatal virtual memory exhausted aborts.
4332         * utils.c (xmmalloc, xmrealloc, xmalloc, xrealloc):  Like mmalloc,
4333         mrealloc, malloc, and realloc but get fatal error if runs out
4334         of memory.
4335         * utils.c (msavestring, mstrsave):  Save a string in a specific
4336         mapped malloc region.
4337         * utils.c (print_spaces):  Use xmalloc to get the buffer.
4338         * xm-amix.h, xm-i386v4.h, xm-sun3os4.h, xm-sun4os4.h:  Add defines
4339         for MMAP_BASE_ADDRESS and MMAP_INCREMENT.
4340         * config/i386v4.mh:  Insignificant reorganization.
4341
4342 Sat Mar 14 11:44:47 1992  Fred Fish  (fnf@cygnus.com)
4343
4344         * xcoffread.c:  Only enable compilation of debugging functions
4345         if IBM6000 is defined.  Fails to compile otherwise.
4346
4347 Fri Mar 13 15:51:11 1992  K. Richard Pixley  (rich@cygnus.com)
4348
4349         * Makefile.in: pass MAKEINFO down on info.
4350
4351 Fri Mar 13 12:56:36 1992  John Gilmore  (gnu at cygnus.com)
4352
4353         * mipsread.c (mipscoff_symfile_read):  Eliminate a lot of
4354         useless code, including an lseek to an uninitialized variable.
4355         Reported by Jim Williams <jimbo@wrs.com>.
4356
4357 Thu Mar 12 11:56:46 1992  Per Bothner  (bothner@cygnus.com)
4358
4359         Merged in patches from metin@ibmpa.awdpa.ibm.com (Metin G.
4360         Ozisik) (dated Fri, 6 Mar 92 17:51) for the rs6000.
4361         * minsyms.c, symfile.c:  Changes that may be generally
4362         applicable, but are #ifdef IBM6000 for now.
4363         * rs6000-xdep.c:  Fixed typo in comment.
4364         * rs6000-tdep.c:  Non-substatial changes.
4365         * xoffread.c:  The main change here is addition of some
4366         debugging functions.
4367         * xoffexec.c: More changes.
4368
4369         * xcoffread.c:  Fixed two too-few-parameters bugs.
4370
4371         * solib.h, infrun.c, tm-rs6000.h:  Add a PID parameter
4372         to SOLIB_CREATE_INFERIOR_HOOK macro.
4373
4374 Sun Mar  8 21:17:48 1992  Fred Fish  (fnf@cygnus.com)
4375
4376         * symfile.h:  Add prototype for iterate_over_msymbols().
4377         * symtab.c (cplus_mangled_symbol):  Add function.
4378         * symtab.c (lookup_symbol):  Call cplus_mangled_symbol via
4379         iterate_over_msymbols to find demangled C++ symbol.
4380         * xcoffexec.c (relocate_minimal_symbol): Return meaningful
4381         value to iterate_over_msymbols().
4382         * xcoffexec.c (vmap_symtab):  Ignore return from iterate_over_
4383         msymbols().
4384
4385 Fri Mar  6 21:59:34 1992  K. Richard Pixley  (rich@cygnus.com)
4386
4387         * Makefile.in: added check target.
4388
4389 Thu Mar  5 23:56:01 1992  John Gilmore  (gnu at cygnus.com)
4390
4391         * ecoff.c:  Move to ../bfd/coff-msym.c.
4392         * config/mt-*mips:  Remove ecoff.o from the configuration.
4393         * remote.c ():  Add newline to initial +.
4394         (remote_resume):  Mention how to cope with signals.
4395         (remote_interrupt):  Add debug msg.
4396         (remote-wait):  Implement new 'T' reply, which includes
4397         status, PC, and FP all in a single short message.
4398         (putpkt):  Add further debugging of packet acks.
4399         * mipsread.c (fixup_symtab):  Also swap RFD's.
4400         (parse_partial_symbols):  Avoid bug on unknown symbol types.
4401         * Makefile.in (VERSION):  Roll to 4.4.5.
4402         * mips-tdep.c (heuristic_proc_start):  Avoid long delays
4403         for remote MIPS by limiting heuristic to 200 byte search.
4404         (heuristic_proc_desc):  Byte-swapping.
4405         (mips_print_register):  Cope with failure of
4406         read_relative_register_raw_bytes.  Byte-swap integers for
4407         printing.
4408         * mips-pinsn.c (print_insn):  Byte-swap instruction.
4409
4410 Thu Mar  5 12:32:09 1992  Stu Grossman  (grossman at cygnus.com)
4411
4412         * config.sub configure.in config/mh-irix4
4413         gdb/configure.in gdb/mips-tdep.c gdb/mipsread.c
4414         gdb/procfs.c gdb/signame.h gdb/tm-irix3.h gdb/tm-mips.h
4415         gdb/xm-irix4.h gdb/config/mt-irix3
4416         gdb/config/mh-irix4 texinfo/configure.in:  Port to SGI Irix-4.x.
4417
4418 Wed Mar  4 11:56:42 1992  Fred Fish  (fnf@cygnus.com)
4419
4420         * defs.h, utils.c:  xrealloc takes PTR as first arg.
4421         * defs.h:  Reword confusing comment about ANSI prototypes.
4422         * defs.h:  Some minor whitespace changes.
4423         * infrun.c (wait_for_inferior):  Compare int tmp to int 0,
4424         not NULL, which can be (void *).
4425         * tm-amix.h, tm-i386v4.h:  Add defines for setjmp/longjmp handling.
4426         * tm-i386v.h (SP_ARG0):  Define
4427         * xm-sysv4.h:  Back out of change for missing prototypes.
4428         * i386-tdep.c (get_longjmp_target):  Add function.
4429
4430 Wed Mar  4 05:46:11 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
4431
4432         * Makefile.in: install man page too.
4433
4434 Tue Mar  3 15:11:52 1992  Michael Tiemann  (tiemann@cygnus.com)
4435
4436         * All GDB files that #include defs.h: Removed stdio.h.
4437         (defs.h): #include stdio.h.
4438
4439 Mon Mar  2 23:00:12 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4440
4441         * gdbtypes.c (lookup_pointer_type): initialize the TYPE_LENGTH of
4442         a ptype to reflect the setting of TARGET_PTR_BIT.  Set the
4443         TYPE_FLAGS of a ptype to TYPE_FLAG_UNSIGNED.
4444         * tm-h8300.h, h8300-tdep.c, remote-hms.c: personal checkpoint
4445         * printcmd.c (print_address): if ADDR_BITS_REMOVE is defined, use
4446         it before printing out the hex shape of an address.
4447
4448 Sun Mar  1 17:41:09 1992  Per Bothner  (bothner@cygnus.com)
4449
4450         * rs6000-xdep.c (frame_initial_stack_address):  Move
4451         code to set frame->cache_fsr into new separate function
4452         frame_get_cacahe_fsr.  This allows fixing a fatal error.
4453         * xcoffexec.c:  Turn previously suppressed error
4454         message back on, after cleaning up BFD.
4455
4456         * breakpoint.c (breakpoint_re_set):  Removed (at least for now)
4457         printing of blank line, since it cases printing of an
4458         extra blank line.  Is this intended?  It does mess up
4459         gdb test suite.
4460         * defs.h:  Put back declarations of malloc and realloc,
4461         but protected by #ifndef MALLOC_INCOMPATIBLE.
4462         * objfiles.c:  Undo previous change:  Use malloc/realloc
4463         for objfile malloc/realloc fields (but add a cast).
4464         * xcoffexec.c:  Suppress an error message (for now).
4465
4466 Sat Feb 29 14:43:02 1992  Per Bothner  (bothner@cygnus.com)
4467
4468         Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
4469         [Mail dated Fri, 21 Feb 92 13:14:54 -0800]
4470         * buildsym.c: Use smash_to_pointer_type() to handle forward type
4471         references.
4472         * xcoffread.c: Modifications to C_DECL storage class handling, and
4473         introduction of an old smash_to_pointer_type() routine.
4474
4475         Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
4476         [Mail dated Thu, 20 Feb 92 13:57:16 -0800]
4477         * rs6000-xdep.c, rs6000-tdep.c, tm-rs6000.h: function_frame_info()
4478         parameters have been modified.
4479
4480         Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
4481         [Mail dated Thu, 20 Feb 92 10:10:05 -0800]
4482         * rs6000-tdep.c: Before Feb 5 92, register_valid[] array was not used,
4483         and fetch_inferior_registers() always fetched all the registers
4484         resulting valid register values at hand all the time. Pushing a dummy
4485         frame did not require validating all register values first. After
4486         putting the above mechanism into action, we didn't have valid registers
4487         values always ready. Thus, all registers need to be fetched before
4488         pushing a dummy frame now.
4489
4490         Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
4491         [Mail dated Thu, 13 Feb 92 16:22:44 -0800]
4492         * rs6000-xdep.c: frame_initial_stack_address() function to calculate
4493         the starting address (actual frame address) of a frame.
4494         * rs6000-tdep.c: modifications to function_frame_info() to see if
4495         function reserves a frame pointer register (alloca register)
4496         * tm-rs6000.h: EXTRA_FRAME_INFO, FRAME_ARGS_ADDRESS and
4497         FRAME_LOCALS_ADDRESS has been updated to support debugging of
4498         functions with alloca() calls.
4499
4500 Sun Mar  1 13:13:39 1992  Fred Fish  (fnf@cygnus.com)
4501
4502         * xm-sysv4.h:  Provide definitions/prototypes for host environment
4503         functions for which no definitions or prototypes are provided in
4504         any currently included gdb or host environment header files.
4505         For SVR4, this currently includes malloc and realloc, which cannot
4506         be portably prototyped in any gdb include file.
4507
4508 Sat Feb 29 14:43:02 1992  Per Bothner  (bothner@cygnus.com)
4509
4510         * buildsym.h:  Remove obsolete variable file_stabs.
4511
4512         * Makefile.in:  Move place where configure merges in host-
4513         and target-dependent fragments later, so the latter
4514         can override (say) GNU_MALLOC.
4515         * config/mh-rs6000:  Use system malloc.  Otherwise, I
4516         ended up with *two* incompatible versions of malloc
4517         (functions in libc would call the malloc in libc).
4518         I assume this is a shared library problem.
4519
4520         * remote.c:  Fix (presumed) typo.
4521         * objfiles.c:  Use xmalloc/xrealloc instead of
4522         malloc/realloc (since the latter are no longer declared).
4523
4524         Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
4525         [Mail dated Thu, 6 Feb 1992 10:22:02 -0800]
4526         * rs6000-xdep.c: Improvements to fetch_inferior_registers() to
4527         handle individual registers.
4528         * tm-rs6000.h: Fix SAVED_PC_AFTER_CALL macro to handle pc value
4529         correctly in case it wasn't cached yet. (A problem showed up
4530         after fetching individual registers.)
4531         * buildsym.c: Disable type_synonym_name's type name overwriting
4532         in cases it is unnecesary. rs6000 portation doesn't use
4533         type_synonym_name, and it used to nullify type names
4534         * xcoffread.c: to handle g++'s typename abbreviation, fill in a
4535         type's name as soon as space for that type is allocated.
4536         * xcoffread.c: ignore a section's lineno information if it is
4537         not `.text'. (In rs6000 bfd portation integration, skipping over
4538         `.pad' sections are ignored since it was in machine independent
4539         part of the code. Thus, a problem of fake sections with invalid
4540         lineno information arised.)
4541
4542         Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
4543         [Mail dated Thu, 6 Feb 1992 13:26:22 -0800]
4544         * rs6000-tdep.c: make function_frame_info() work whether or not
4545         reading from a core file.
4546         * tm-rs6000.h: Implementation of FRAME_FIND_SAVED_REGS macro.
4547
4548         * infrun.c. main.c, printcmd.c. symtab.c:
4549         More changes from IBM for rs6000.
4550
4551
4552 Thu Feb 27 22:57:19 1992  Per Bothner  (bothner@cygnus.com)
4553
4554         * rs6k-opcode.h, tm-rs6000.h, xm-rs6000.h, rs6000-tdep.c,
4555         rs6000-xdep.c, xcoffexec.c, xcoffread.c:
4556         Merge in changes (mostly from IBM) for RS6000.
4557         * breakpoint.c, buildsym.c, infptrace.c, stack.c, symtab.c:
4558         More changes from IBM for RS6000.  These are in machine-
4559         independent code, and probably could do with some cleaning
4560         up.  The most questionable of these are #ifdef IBM6000.
4561         * infrun.c, sparc-tdep.c: Pass a parameter (signal number)
4562         to single_step() (for consistency with rs6000 and i860).
4563         * utils.c:  Allow the 1st arg to xrealloc to be NULL
4564         (in which case do malloc).  This removes the need for
4565         some tests in xcoff code (and perhaps other places?).
4566         * coffread.c: Removed variables last_source_file,
4567         type_vector, and type_vector_length as these are now
4568         defined by buildsym.[ch].
4569         * defs.h:  Remove prototypes for malloc and realloc, since
4570         these should only be used to implement xmalloc and xrealloc,
4571         and they conflict with <stdlib.h> in AIX - where they
4572         return void* even when __STDC__ isn't defined.  Sigh.
4573         * munch:  Recognize *initialize* in data as well as text
4574         (AIX uses data).  Also, incorporate a patch from Garrett
4575         Wollman <wollman@uvm-gen.uvm.edu> to make the sed script
4576         much more sensible, by only trying to match the name of
4577         the initialize_foo function, and not the junk before it.
4578         
4579 Thu Feb 27 20:07:43 1992  Stu Grossman  (grossman at cygnus.com)
4580
4581         * breakpoint.c (breakpoint_re_set_one):  Don't reset breakpoint
4582         unless symbol table indicates that something has changed.
4583
4584 Thu Feb 27 11:48:47 1992  John Gilmore  (gnu at cygnus.com)
4585
4586         * remote.c:  Make it work for embedded MIPS.  Increase buffer
4587         size, and use throughout.  Round buffer size up if too many regs.
4588         Support baud rate setting and try for an 8-bit path.  If
4589         interrupted while waiting for target, send a ^C down the wire.
4590         Avoid single-byte reads.
4591         * tm-mips.h:  Add more embedded-system registers to REGISTER_NAMES
4592         and NUM_REGS.
4593         * mips-xdep.h:  Avoid the embedded regs when on Unix.
4594
4595         * mipsread.c:  Byte-swap the symbol table structures, using
4596         routines from ecoff.c, to read a symbol table written in any
4597         of the four possible byte orders.
4598         * configure.in (mips-big-* target):  Same as Sony News.
4599         * config/mt-bigmips, config/mt-littlemips:  Add ecoff.o.
4600         * ecoff.c:  New file for symbol swapping routines.
4601
4602 Thu Feb 27 09:26:38 1992  Stu Grossman  (grossman at cygnus.com)
4603
4604         * breakpoint.c (all_breakpoints_info, breakpoint_1):  Add 'info
4605         all-breakpoints' command.
4606         * (get_number):  Allow users to enter negative breakpoint numbers.
4607         * (breakpoint_1):  Reformat display of 'info break' to show new
4608         fields.
4609         * (create_longjmp_breakpoint, breakpoint_re_set,
4610         breakpoint_re_set_one, enable/disable_longjmp_breakpoint),
4611         symfile.c  (syms_from_objfile):  Re-do
4612         insertion of longjmp breakpoints.  Move all code into
4613         breakpoint_re_set, and call that instead of
4614         create_longjmp_breakpoint in symfile.c.
4615
4616 Thu Feb 27 06:11:05 1992  John Gilmore  (gnu at cygnus.com)
4617
4618         * breakpoint.h (ALL_BREAKPOINTS_SAFE):  Add.
4619         * breakpoint.c (breakpoint_re_set):  Use ALL_BREAKPOINTS_SAFE.
4620         * symtab.c (find_pc_symtab):  Handle having no objfiles.
4621         * infcmd.c:  Fix comment.
4622         * objfiles.c (free_all_objfiles):  Add.
4623         * symfile.h (ALL_OBJFILES, ALL_OBJFILES_SAFE):  Add.
4624         * symfile.c (symbol_file_command):  free all objfiles when
4625         specifying a new symbol file.
4626         (reread_symbols):  Stat the file name, don't fstat the descriptor.
4627
4628 Wed Feb 26 18:04:40 1992  K. Richard Pixley  (rich@cygnus.com)
4629
4630         * Makefile.in, configure.in: removed traces of namesubdir,
4631           -subdirs, $(subdir), $(unsubdir), some rcs triggers.  Forced
4632           copyrights to '92, changed some from Cygnus to FSF.
4633
4634 Tue Feb 25 19:31:19 1992  Stu Grossman  (grossman at cygnus.com)
4635
4636         * dbxread.c (end_psymtab):  Delete empty psymtabs.
4637         * symfile.c (allocate_psymtab):  Recycle empty psymtabs.
4638         * symfile.h (struct objfile):  Add free_psymtabs.
4639
4640 Sat Feb 22 02:00:32 1992  John Gilmore  (gnu at cygnus.com)
4641
4642         * Makefile.in (VERSION):  Roll to gdb-4.4.4.
4643
4644         * symfile.c (symbol_file_command):  strcmp => !strcmp.
4645         * breakpoint.h:  Move prototypes to follow enum definition they need.
4646         * breakpoint.c, infrun.c:  Lint.
4647         * printcmd.c:  Use `enum enable' rather than `enum
4648         display_status'.
4649         * mipsread.c:  First pass at making it compile with the new
4650         objfile changes.  Probably seriously broken still, but it
4651         compiles.  FIXME.
4652
4653 Sat Feb 22 00:56:39 1992  Stu Grossman  (grossman at cygnus.com)
4654
4655         * infrun.c, infcmd.c, breakpoint.c, main.c, symfile.c,
4656         breakpoint.h, tm-sun4os4.h, tm-sparc.h, sparc-tdep.c, tm-mips.h,
4657         mips-tdep.h, tm-sun3.h, tm-68k.h, m68k-tdep.h:  Add support for
4658         stepping (and nexting) through longjmp().  Also, cleanup
4659         breakpoint handling quite a bit by creating explicit breakpoint
4660         types instead of using magic breakpoint numbers.
4661         Makefile.in:  Update version to 4.4.3
4662
4663 Sat Feb 22 00:08:50 1992  John Gilmore  (gnu at cygnus.com)
4664
4665         * buildsym.c, dwarfread.c, gdbtypes.c, inflow.c, main.c,
4666         minsyms.c, printcmd.c, remote.c, saber.suppress:  Saberlint.
4667         * symmisc.c, xcoffread.c:  Move debug functions to symmisc.c.
4668
4669         * xm-sun3os4.h, xm-sun4os4.h:  Enable HAVE_MMAP.
4670
4671         * minsyms.c (install_minimal_symbols):  Add bunches to any
4672         existing minsyms in the objfile.  Avoid extra mallocation
4673         by working directly in the obstack.  Remove ignored `mainline' parm.
4674         * coffread.c, dbxread.c, elfread.c, mipsread.c, solib.c, symtab.h,
4675         xcoffread.c:  Change all callers.
4676         * FIXME:  We should be able to eliminate MAINLINE from all the
4677         symbol readers now, with a small bit of work.
4678
4679         * valops.c, value.h:  Lint.
4680         * remote-vx.c:  Add missing break; statement.  Bugfix by
4681         Michael Sclafani, <sclafani@src.dec.com>.
4682
4683 Fri Feb 21 17:29:54 1992  Fred Fish  (fnf at cygnus.com)
4684
4685         * Makefile.in (VERSION):  Update version to 4.4.2
4686         * Makefile.in (SFILES_MAINDIR):  Add gdbtypes.c, state.c, objfiles.c,
4687         minsyms.c, mmap-alloc.c, mmap-sbrk.c
4688         * Makefile.in (HFILES):  Add gdbtypes.h, state.h, solib.h
4689         * Makefile.in (OBS):  Add gdbtypes.o, state.o, objfiles.o, minsyms.o,
4690         mmap-alloc.o, mmap-sbrk.o
4691
4692         * altos-xdep.c:  Minor whitespace change.
4693         * am29k-tdep.c (examine_prologue):  Convert from misc function vector
4694         use to new minimal symbol table use.
4695         * arm-xdep.c (fetch_inferior_registers):  Document unused argument.
4696         * arm-xdep.c (store_inferior_registers):  Returns void.
4697         * blockframe.c (get_pc_function_start, find_pc_partial_function):
4698         Convert from misc function vector use to new minimal symbol table use.
4699         Remove find_pc_misc_function().  Ifdef out block_innermost_frame().
4700         * breakpoint.c:  Add prototypes for local functions.
4701         * breakpoint.c (catch_command_1):  Change to static and remove unused
4702         local "pc".
4703         * breakpoint.c (map_breakpoint_numbers):  Prototype arg "function".
4704         * breakpoint.h:  Change function decls to prototype form.
4705         * buildsym.c:  Add prototypes for local functions.
4706         * buildsym.c:  Moved hashname() function here from dbxread.c.
4707         * buildsym.c (dbx_lookup_type):  Cast args to xrealloc().
4708         * buildsym.c:  Remove dbx_create_type(), uses changed to alloc_type().
4709         * buildsym.c (dbx_alloc_type):  Change to static.
4710         * buildsym.c (finish_block): Add objfile parameter.
4711         * buildsym.c (misc):  Change symbol_obstack to objfile version.
4712         * buildsym.c (make_blockvector): Change to static.
4713         * buildsym.c (start_subfile):  Use strdup instead of obsavestring.
4714         * buildsym.c (compare_line_numbers): Change to static, args are const,
4715         cast args when used.
4716         * buildsym.c (start_symtab):  Inline new_object_header_files() call.
4717         * buildsym.c (patch_block_stabs):  Moved to this file from xcoffread
4718         and made static.  Add objfile parameter.
4719         * buildsym.c (end_symtab): Simplify code using line table size.
4720         Realloc the linetable on the objfile symbol_obstack and copy there.
4721         * buildsym.c (scan_file_globals):  Convert from misc function vector
4722         use to new minimal symbol use.
4723         * buildsym.c (define_symbol):  Add objfile parameter.  Make sure
4724         strings get allocated in objfile's symbol_obstack.  Convert references
4725         to builtin types to lookup_fundamental_type().
4726         * buildsym.c (read_type):  Make static, add objfile parameter, convert
4727         references to buildin types to lookup_fundamental_type().
4728         * buildsym.c (read_struct_type):  Add objfile parameter.
4729         * buildsym.c (read_array_type):  Make static, add objfile parameter.
4730         * buildsym.c (read_enum_type):  Make static, add objfile parameter.
4731         * buildsym.c (read_huge_number): Make static.
4732         * buildsym.c (read_range_type): Make static, add objfile parameter,
4733         convert references to buildin types to lookup_fundamental_type ().
4734         * buildsym.c (read_args):  Make static, add objfile parameter.
4735         * buildsym.h:  Convert function decl's to prototype form.
4736         * c-exp.y:  Add prototypes for local functions, convert uses of misc
4737         function vector to minimal symbol table.  Reformat all builtin type
4738         initializations and pass a NULL objfile to init_type() for them.
4739         * coffread.c:  Change context_stack ref's to coff_context_stack,
4740         add local function prototypes.  Cast uses of xrealloc arg 1.
4741         * coffread.c (coff_alloc_type):  Call alloc_type instead of  hand-
4742         crafting a new type.
4743         * coffread.c (add_symbol_to_list):  Change to coff_add_symbol_to_list.
4744         * coffread.c (finish_block):  Change name to coff_finish_block.
4745         * coffread.c (make_blockvector):  Add and use objfile parameter.
4746         * coffread.c (record_line):  Change name to coff_record_line.
4747         * coffread.c (start_symtab):  Change name to coff_start_symtab.
4748         * coffread.c (end_symtab):  Change name to coff_end_symtab.
4749         * coffread.c (record_misc_function):  Change name to record_minimal_
4750         symbol and change to minimal symbol table use from misc func tbl.
4751         * coffread.c (coff_symfile_read):  Convert from misc function vector
4752         use to minimal symbol table use.
4753         * coffread.c (hashname):  Remove; use common version in buildsym.c.
4754         * coffread.c (decode_base_type):  Change references to builtin types
4755         to calls to lookup_fundamental_type().
4756         * coffread.c (read_struct_type):  Change name to coff_read_struct_type.
4757         * coffread.c (read_enum_type):  Change name to coff_read_enum_type.
4758         * command.c: Add prototypes for local functions.
4759         * command.c (add_cmd):  Prototype the 'fun' parameter and use the
4760         appropriate member of the function union for that type.
4761         * command.c (add_abbrev_cmd):  Prototype the 'fun' parameter and
4762         ifdef out the function since it isn't currently used.
4763         * command.c (add_alias_cmd):  Pass correct function type to add_cmd.
4764         * command.c (add_prefix_cmd):  Prototype the 'fun' parameter.
4765         * command.c (add_abbrev_prefix_cmd):  Prototype the 'fun' parameter.
4766         * command.c (help_cmd):  Compare function pointer to NULL.
4767         * command.c (help_cmd_list):  Compare function pointer to NULL.
4768         * command.c (lookup_cmd_1):  Use correct member of function union.
4769         * command.c (undef_cmd_error):  Make static.
4770         * command.c (complete_on_cmdlist):  Use correct member of func union.
4771         * command.c (do_setshow_command):  Use correct member of func union.
4772         * command.c (shell_escape):  Convert rindex use to strrchr.
4773         * command.h (COMMAND_H):  Define if already included.
4774         * command.h (cmd_list_element struct):  Change 'function' to a union
4775         and prototype args.  Prototype completer function.
4776         * command.h:  Convert decl's to prototype form.
4777         * convex-xdep.c (store_inferior_registers):  Returns void.
4778         * copying.c:  Prototype local functions.
4779         * coredep.c:  Minor whitespace change.
4780         * cplus-dem.c:  Remove hack to use BSD equivalents of mem* and str*.
4781         * cplus-dem.c:  Prototype local functions.
4782         * dbxread.c (hashname):  Remove; moved to buildsym.c.
4783         * dbxread.c (free_and_init_header_files):  Make static.
4784         * dbxread.c:  Add prototypes for local functions.
4785         * dbxread.c (new_object_header_files):  Remove; inlined usages.
4786         * dbxread.c (xrealloc usages):  Cast args.
4787         * dbxread.c (record_misc_function):  Change to record_minimal_symbol
4788         and change usages accordingly.
4789         * dbxread.c (static_psymbols usages):  Change to use per-objfile copy.
4790         * dbxread.c (xmalloc usages):  Use per-objfile copy when appropriate.
4791         * dbxread.c (dbx_next_symbol_text):  Make static.
4792         * dbxread.c (init_psymbol_list):  Convert to use per-objfile data.
4793         * dbxread.c (init_bincl_list):  Add and use objfile parameter.
4794         * dbxread.c (free_bincl_list):  Add and use objfile parameter.
4795         * dbxread.c (compare_psymbols):  Remove; use common symfile.c version.
4796         * dbxread.c (end_psymtab):  Convert to use per-objfile data.
4797         * dwarfread.c (DEFUN/EXFUN):  Remove all usages.  Use PARAMS for
4798         prototypes.
4799         * dwarfread.c (record_misc_function):  Change name to record_minimal_
4800         symbol and use minimal symbol table throughout.
4801         * dwarfread.c (compare_psymbols):  Remove; use common symtab.c version.
4802         * dwarfread.c:  Convert all references to builtin types to use the new
4803         lookup_fundamental_type function.
4804         * dwarfread.c (read_enumeration):  Add and use objfile parameter.
4805         * elfread.c (DEFUN/EXFUN):  Remove all usages.  Use PARAMS for proto-
4806         types.
4807         * elfread.c (record_misc_function):  Convert to use record_minimal_
4808         symbol.
4809         * elfread.c (elf_symtab_read):  Add objfile parameter.
4810         * eval.c:  Add prototypes for local functions and move some decls
4811         around to accomodate prototypes.
4812         * expprint.c:  Add prototypes for local functions.  Change references
4813         to misc function vector to minimal symbol table.
4814         * findvar.c (read_memory usages):  Cast args.
4815         * gdbtypes.h:  New file, type info from symfile.h and symtab.h.
4816         * gmalloc.c:  Use NOARGS where prototypes used hardwired void.
4817         * gmalloc.c (BLOCKSIZE):  Constant to be shifted is unsigned.
4818         * gmalloc.h:  Use NOARGS where prototypes used hardwired void.
4819         * gould-xdep.c:  Minor whitespace change.
4820         * hp300ux-xdep.c (fetch_inferior_registers):  Remove unused regno var.
4821         * hp300ux-xdep.c (store_inferior_registers):  Returns void.
4822         * hp300ux-xdep.c (fetch_core_registers):  Takes unused arg reg_addr.
4823         * i386-stub.c: Add prototypes, change "volatile" to NORETURN.
4824         * i386-tdep.c: Add prototypes for local functions.
4825         * i386-tdep.c (codestream_fill, codestream_seek, codestream_read,
4826         i386_get_frame_setup, i386_skip_prologue): Explicitly declare params
4827         that defaulted to int.
4828         * i386-tdep.c (i386_follow_jump, i386_frame_find_saved_regs,
4829         i386_push_dummy_frame): Returns void.
4830         * i386-xdep.c (i386_register_u_addr):  Declare params that default to
4831         int and explicitly declare return type as int.
4832         * i387-tdep.c:  Minor formatting changes.
4833         * i960-tdep.c (leafproc_return):  Convert from misc function vector
4834         use to minimal symbol table use.
4835         * infcmd.c:  Add prototypes for local functions.
4836         * infcmd.c (continue_command, until_next_command, until_command,
4837         path_info, path_command):  Make static.
4838         * infcmd.c (step_1, until_next_command):  Convert from misc func
4839         vector to minimal symbol table use.
4840         * inflow.c:  Add prototypes for local functions.
4841         * infptrace.c (store_inferior_registers):  Returns void, not int.
4842         * language.c (_initialize_language):  Use proper member of function
4843         union.
4844         * m2-exp.y:  Add prototypes for local functions, convert misc function
4845         vector uses to minimal symbol table uses.
4846         * m2-exp.y (make_qualname, yyerror):  Make static.
4847         * m2-exp.y (_initialize_m2_exp):  Call init_types with NULL objfile.
4848         * m68k-pinsn.c:  Add prototypes for local functions.
4849         * m68k-pinsn.c (print_insn):  Cast args to read_memory.
4850         * m68k-pinsn.c (fetch_arg):  Make parameter 'code' and int.
4851         * m68k-stub.c:  Add prototypes.
4852         * m88k-pinsn.c (sprint_address):  Convert from misc function vector
4853         use to minimal symbol table use.
4854         * m88k-xdep.c (fetch_inferior_registers):  Takes an unused parameter.
4855         * m88k-xdep.c (store_inferior_registers):  Returns void.
4856         * mach386-xdep.c (fetch_inferior_registers):  Takes an unused param.
4857         * mach386-xdep.c (store_inferior_registers):  Returns void.
4858         * mach386-xdep.c (fetch_core_registers):  Takes an unused parameter.
4859         * main.c:  Add prototypes for local functions.
4860         * main.c (return_to_top_level):  Is type NORETURN (volatile).  Cast
4861         longjmp() result to (NORETURN void).
4862         * main.c (catch_errors):  Prototype the 'func' parameter.
4863         * main.c (disconnect, stop_sig, do_nothin, float_handler):
4864         Takes an unused arg.
4865         * main.c (execute_command):  Call the right member of the func union.
4866         * main.c (command_loop_marker, symbol_completion_function,
4867         command_loop):  Make static.
4868         * main.c (command_line_input):  Make linelength unsigned, cast arg
4869         to command_line_input().
4870         * main.c (add_info, add_com):  Prototype the 'fun' parameter.
4871         * main.c (initialize_main):  Call right member of function union.
4872         * mcheck.c (NOARGS):  Change hardwired void in prototypes to NOARGS.
4873         * mem-break.c:  Include symtab.h
4874         * mips-xdep.c (fetch_inferior_registers):  Takes unused param.
4875         * mips-xdep.c (store_inferior_registers):  Returns void.
4876         * mipsread.c (mipscoff_symfile_read):  Change from misc function vector
4877         use to minimal symbol table use.
4878         * mipsread.c (symbol_obstack usages):  Convert all to use per-objfile
4879         version.
4880         * mipsread.c (make_type):  Remove, convert usages to init_type.
4881         * mipsread.c (_initialize_mipsread):  Call init_type with NULL objfile.
4882         * nindy-tdep.c (nindy_frame_chain_valid):  Convert from misc function
4883         vector use to minimal symbol table use.
4884         * parse.c:  Add prototypes for local functions.
4885         * parse.c (xrealloc usages):  Cast args.
4886         * parse.c (prefixify_expression, length_of_subexp):  Make static.
4887         * parser-defs.h (PARSER_DEFS_H):  Define when first included.
4888         * parser-defs.h:  Convert function decls to prototype form.
4889         * partial-stab.h:  Convert from misc function vector use to new minimal
4890         symbol table use.
4891         * partial-stab.h (global_psymbols, static_psymbols usages):  Reference
4892         the per-objfile copies.
4893         * printcmd.c:  Add prototypes for local functions.  Move some struct
4894         definitions around to accomodate prototypes.
4895         * printcmd.c (decode_format):  Make static, change args oformat and
4896         osize to int from char.
4897         * printcmd.c (print_formatted):  Change 'format' and 'size' to int.
4898         * printcmd.c (print_scalar_formatted):  Change arg 'format' to int.
4899         * printcmd.c (print_address_symbolic):  Convert from misc function
4900         vector use to minimal symbol table use.
4901         * printcmd.c (address_info):  Convert from misc function vector use
4902         to minimal symbol table use.
4903         * printcmd.c (delete_display, enable_display, disable_display_command):
4904         Make static.
4905         * procfs.c (EXFUN/DEFUN):  Remove all usages, convert to PARAMS.
4906         * procfs.c (fetch_core_registers):  Add unused param reg_addr.
4907         * pyr-xdep.c (fetch_inferior_registers):  Add unused param regno.
4908         * pyr-xdep.c (store_inferior_registers):  Returns void.
4909         * remote-mm.c (mm_load):  symbol_file_add return value unused.
4910         * remote-nindy.c:  Minor format change.
4911         * remote-vx.c (vx_load_command):  symbol_file_add result unused.
4912         * rs6000-xdep.c (fetch_inferior_registers):  Add unused param regno.
4913         * rs6000-xdep.c (store_inferior_registers):  Returns void.
4914         * rs6000-xdep.c (fetch_core_registers):  add unused param reg_addr
4915         * rs6000-xdep.c (aixcoff_relocate_symtab):  Convert from misc function
4916         vector use to minimal symbol table use.
4917         * solib.c:  Add prototypes for local functions.
4918         * solib.c (solib_add_common_symbols, locate_base):  Convert from misc
4919         function vector use to minimal symbol table use.
4920         * solib.c (EXFUN/DEFUN):  Remove all usages, convert to PARAMS.
4921         * solib.c (find_solib, shared_library_command):  Make static
4922         * solib.c (read_memory, write_memory usages):  Cast args.
4923         * solib.c (special_symbol_handling):  Add function
4924         * source.c:  Add prototypes for local functions.
4925         * source.c (select_source_symtab):  Convert to scan objfiles.
4926         * source.c (open_source_file):  Make static.
4927         * source.c (xrealloc usages):  Cast args.
4928         * source.c (source_line_charpos):  ifdef out, unused.
4929         * source.c (get_filename_and_charpos):  Make static.
4930         * stack.c:  Add prototypes for local functions.
4931         * stack.c (print_frame_info, frame_info):  Convert from misc function
4932         vector use to minimal symbol table use.
4933         * symfile.c:  Add prototypes for local functions.
4934         * symfile.c (compare_symbols):  Make args const PTR's.
4935         * symfile.c (compare_psymbols, sort_pst_symbols) add.
4936         * symfile.c (sort_all_symtab_syms):  Scan objfile list.
4937         * symfile.c (obsavestring):  Add objfile parameter.
4938         * symfile.c (init_misc_bunches, prim_record_misc_function,
4939         compare_misc_functions, discard_misc_bunches, condense_misc_bunches,
4940         sort_misc_function_vector, compact_misc_function_vector): Remove
4941         * symfile.c (symbol_file_add_digested):  Add function.
4942         * symfile.c (symbol_file_add):  Returns struct objfile *.
4943         * symfile.c (symbol_file_command):  Modify for state file use.
4944         * symfile.c (symfile_open):  Add parameter "dumpable".
4945         * symfile.c (allocate_objfile, free_objfile):  Moved to objfiles.c
4946         * symfile.c (load_command, add_symbol_file_command):  Make static.
4947         * symfile.c (fill_in_vptr_fieldno):  Moved to gdbtypes.c
4948         * symfile.c (rindex usages):  Converted to strrchr.
4949         * symfile.c (allocate_psymtab):  New
4950         * symfile.c (free_named_symtabs):  Ifdef out code that needs to be
4951         converted to minimal symbol table usage, but no obvious conversion.
4952         * symfile.c (free_all_symtabs):  Remove.
4953         * symfile.c (_initialize_symfile):  Use per-objfile info.
4954         * symfile.h:  Rework the objfile structure to add per-objfile data
4955         objects (psymbol_obstack, symbol_obstack, type_obstack,
4956         global_psymbols, static_psymbols, msymbols, minimal_symbol_count,
4957         fundamental_types, malloc, realloc, free, xmalloc, xrealloc, etc).
4958         Add prototypes to function declarations.
4959         * symm-tdep.c (symmetry_extract_return_value):  Convert from misc
4960         function vector usage to minimal symbol table usage.
4961         * symmisc.c (DEV_TTY):  Define if not defined.
4962         * symmisc.c:  Add local function prototypes.
4963         * symmisc.c (dump_objfile, dump_msymbols, dump-symtab, print_syms,
4964         printpsyms_command, print_objfiles, print_objfiles_command):
4965         Rework to use iterate_over_*
4966         * symtab.c:  Add prototypes for local functions.
4967         * symtab.c (lookup_symtab_1):  Convert to look through objfiles.
4968         * symtab.c (lookup_partial_symtab):  Scan through objfiles.
4969         * symtab.c (lookup_primitive_typename, lookup_typename, lookup_
4970         unsigned_typename, lookup_struct, lookup_union, lookup_enum,
4971         lookup_template_type, lookup_struct_elt_type, lookup_pointer_type,
4972         lookup_reference_type, lookup_member_type, allocate_stub_method,
4973         check_stub_method, create_array_type, smash_to_member_type,):
4974         Moved to gdbtypes.c
4975         * symtab.c (lookup_symbol):  Some args are const.
4976         * symtab.h: All type related defs and structs moved to gdbtypes.h
4977         * symtab.h: Convert decls to prototypes.
4978         * target.c (noprocess):  Make static.
4979         * target.h:  Change decl's to prototypes.
4980         * tm-sunos.h: (CLEAR_SOLIB, SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK,
4981         DISABLE_UNSETTABLE_BREAK) Moved to solib.h.
4982         * utils.c (_initialize_utils):  Use correct member of function union.
4983         * valarith.c:  include gdbtypes.h
4984         * valops.c: include gdbtypes.h, add prototypes for local functions.
4985         * valops.c (value_push, value_arg_push, find_function_addr):
4986         Make static.
4987         * valops.c (value_string):  Convert from misc function vector use
4988         to minimal symbol table use.
4989         * valops.c (check_field_in):  Make arg const.
4990         * valprint.c:  Add prototypes for local functions.
4991         * valprint.c (print_string):  Make static
4992         * valprint.c (value_print, val_print_fields, val_print): Make arg int.
4993         * values.c:  Add prototypes for local functions.
4994         * values.c (value_headof):  Convert from misc function vector to
4995         minimal symbol table.
4996         * xcoffexec.c:  Add prototypes for local functions.
4997         * xcoffexec.c (exec_close, file_command, add_to_section_table):
4998         Make static.
4999         * xcoffexec.c (relocate_minimal_symbol):  Add.
5000         * xcoffread.c (patch_block_stabs):  Moved to buildsyms.c.
5001         * xcoffread.c: Add prototypes for local functions.
5002         * xcoffread.c (sort_syms):  Convert to scan objfiles.
5003         * xcoffread.c (read_xcoff_symtab):  Make static.
5004         * xcoffread.c (various):  Replace references to builtin types with
5005         calls to lookup_fundamental_type.  Replace references to symbol_obstack
5006         and psymbol_obstack with pointers to the per-objfile copies.
5007         * xcoffread.c (dump_linetable, dump_type, dump_symbol, dump_namespace,
5008         dump_block, dump_blockvector, dump_last_symtab, dump_symtabs):
5009         Make static.
5010         * xcoffread.c (init_stringtab):  Add objfile parameter.
5011         * gdbtypes.c: New file
5012         * minsyms.c: New file
5013         * mmap-alloc.c: New file
5014         * mmap-sbrk.c: New file
5015         * objfiles.c: New file
5016         * state.c: New file
5017         * state.h: New file
5018
5019 Fri Feb 21 17:29:54 1992  John Gilmore  (gnu at cygnus.com)
5020
5021         * Check in Fred Fish's changes in these modules.  Fred
5022         will make ChangeLog entries for all of them.  Update VERSION
5023         to 4.4.2.
5024
5025 Thu Feb 20 18:10:17 1992  Fred Fish  (fnf at cygnus.com)
5026
5027         * tm-sparc.h, tm-sysv4.h, solib.h:  Move shared lib definitions
5028         into solib.h.
5029         * sparc-pinsn.c, sparc-tdep.c, standalonec, sun3-xdep.c,
5030         sun386-xdep.c, symm-xdep.c, target.c, ultra3-xdep.c, utils.c,
5031         value.h: Prototypes for static functions; lint.
5032         * gdbtypes.h:  Empty file to ease transition.
5033
5034 Thu Feb 20 16:43:13 1992  Fred Fish  (fnf at cygnus.com)
5035
5036         * environ.h, expression.h, frame.h, gdbcmd.h, gdbcore.h,
5037         inferior.h, language.h, signame.h, target.h, terminal.h, 
5038         tm-68k.h, tm-i386v.h, tm-sparc.h, tm-sun386.h, tm-symmetry.h,
5039         xm-i386v.h, xm-sparc.h: Prototypes for all external functions.
5040         Lint.
5041         * core.c, exec.c, infrun.c, inftarg.c, language.c, remote.c,
5042         signame.c, sparc-xdep.c: Prototypes for all static functions.
5043         Lint.
5044         * core.c, eval.c, exec.c, inftarg.c, remote-adapt.c, remote-eb.c,
5045         remote-hms.c, remote-mm.c, remote-nindy.c, remote-vx.c, remote.c,
5046         target.c, target.h, valarith.c, valops.c, value.h, xcoffexec.c:
5047         Remove to_call_function and target_call_function, since it
5048         always calls the same thing (call_function_by_hand).
5049         * core.c, exec.c, solib.c:  Rename target_ops sections =>
5050         to_sections, etc.
5051         * infcmd.c, inflow.c, infptrace.c, infrun.c, main.c, target.c,
5052         target.h:  target_kill takes no args.
5053         * language.c (language_info):  Scaffolding to allow briefer
5054         messages when the current language changes.  FIXME.
5055         * xm-amix.h, xm-i386v4.h, xm-stratus.h: Define NORETURN to avoid
5056         complaints about volatile functions.
5057         * xm-sysv4.h (HAVE_MMAP):  Define.
5058
5059 Thu Feb 20 09:04:18 1992  Fred Fish  (fnf at cygnus.com)
5060
5061         * defs.h:  Include ansidecl.h and PARAMS macro.  Use PARAMS
5062         to make prototypes for all functions declared here.
5063         * cplus-dem.c:  Avoid declaring xmalloc and xrealloc.
5064         * c-exp.y:  Rename SIGNED, OR, and AND to avoid conflict.
5065         * environ.c:  Include <stdio.h> before defs.h.  Minor cleanup.
5066         * ieee-float.h:  Use PARAMS for prototypes; make some params const.
5067         * ieee-float.c, valarith.c:  Include <stdio.h>.  Lint.  b*=>mem*.
5068         * m2-exp.y:  Remove unused CONST; Rename OR and AND.
5069         * utils.c:  Avoid declaring malloc and realloc.  Lint.
5070         (request_quit):  Accept signal-number parameter.
5071
5072 Mon Feb 17 07:13:27 1992  Fred Fish  (fnf at cygnus.com)
5073
5074         * dwarfread.c (process_dies):  Add case to handle TAG_pointer_type
5075         DIE's.  Add new function read_tag_pointer_type() to read them.
5076
5077         * dwarfread.c (dwarf_read_array_type, read_subroutine_type):
5078         When creating a new user defined type, check to see if a partial
5079         type already exists, and if so, bash it to fit.
5080
5081 Fri Feb 14 19:00:17 1992  John Gilmore  (gnu at cygnus.com)
5082
5083         * coffread.c (decode_base_type):  Pass long, not union.
5084         Fix by Eric Valette, ev@chorus.fr.
5085
5086 Thu Feb 13 17:14:28 1992  Fred Fish  (fnf at cygnus.com)
5087
5088         * elfread.c (elf_symtab_read):  Fix code to correctly track
5089         changes in bfd for absolute symbols.
5090
5091 Thu Feb 13 12:43:29 1992  Stu Grossman  (grossman at cygnus.com)
5092
5093         * xm-vaxbsd.h:  Close off comment.
5094
5095 Thu Feb 13 07:45:19 1992  Fred Fish  (fnf at cygnus.com)
5096
5097         * xm-sysv4.h:  Define NEED_POSIX_SETPGID.
5098
5099 Fri Feb  7 11:51:12 1992  Per Bothner  (bothner at cygnus.com)
5100
5101         * mips-tdep.c (mips_print_registers):  Print correct register
5102         number for double pseudo-registers.
5103
5104 Fri Feb  7 07:56:05 1992  John Gilmore  (gnu at cygnus.com)
5105
5106         * buildsym.c (read_struct_type):  Avoid double-bump of parse ptr
5107         in the op$::OPERATOR. case.  From Steven McCanne,
5108         <mccanne@horse.ee.lbl.gov>.
5109
5110         * exec.c (set_section_name):  Pass arg to exec_files_info;
5111         only call it if interactive.  From Francis Kauth <fk@tv.tv.tek.com>.
5112
5113 Thu Feb  6 17:41:32 1992  John Gilmore  (gnu at cygnus.com)
5114
5115         * main.c (print_gdb_version):  Copyright msg: only this year.
5116         (cd_command):  Avoid changing current_directory on error.
5117
5118 Thu Feb  6 15:14:01 1992  Per Bothner  (bothner at cygnus.com)
5119
5120         * mipsread.c (parse_partial_symbols):  Handle dependencies
5121         between partial symbol tables (when not doing stabs-in-ecoff).
5122         (This used to be handled by parse_fdr, but parse_fdr was
5123         incompatible with handling stabs-in-ecoff, so the code
5124         was re-written to not use parse_fdr.  Unfortunately,
5125         the logic to handle dependencies was overlooked.)
5126
5127 Thu Feb  6 11:51:39 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
5128
5129         * coffread.c (read_enum_type): Use the size of a target int when
5130         describing enum.
5131         * defs.h: added new #define for TARGET_PTR_BIT, defaults to size
5132         of target int.
5133         * h8300-tdep.c, remote-hms.c, tm-h8300.h: too many changes to count
5134         * symtab.c (lookup_reference_type, lookup_ptr_type): use
5135         TARGET_PTR_BIT to determine size of a pointer
5136         * values.c (unpack_long): when unpacking a REF or a PTR don't
5137         assume the size of the type.
5138
5139 Wed Feb  5 22:29:59 1992  John Gilmore  (gnu at cygnus.com)
5140
5141         * mipsread.c (parse_symbol):  Avoid clobbering enum pointer when
5142         looking at its members.  Improve guess between struct and union,
5143         only assuming union if multiple members have offsets of zero.
5144
5145 Tue Feb  4 18:05:44 1992  Per Bothner  (bothner at cygnus.com)
5146
5147         * mipsread.c:  Use (FP0_REGNUM-32) instead of magic number 6.
5148         (This is just for clarity - and one day permitting us to
5149          change FP0_REGNUM from 38 to 32, which would make more sense.)
5150         * tm-mips.h:  Added STAB_REG_TO_REGNUM macro, so that
5151         register numbers in stabs-in-ecoff get handled correctly.
5152
5153 Sat Feb  1 04:45:10 1992  Stu Grossman  (grossman at cygnus.com)
5154
5155         * xm-vax.h, xm-vaxult.h, xm-vaxbsd.h, config/mh-vaxult,
5156         config/mh-vaxbsd, configure.in:  Split up config stuff for Vaxen
5157         into BSD and Ultrix.
5158
5159 Sat Feb  1 04:39:41 1992  John Gilmore  (gnu at cygnus.com)
5160
5161         * dbxread.c (dbx_symfile_init):  Call malloc, not xmalloc.
5162
5163 Sat Feb  1 04:15:41 1992  Stu Grossman  (grossman at cygnus.com)
5164
5165         * Makefile.in:  Increment version to 4.4.1.
5166         * main.c (print_gdb_version):  Update copyright notice.
5167
5168 Sat Feb  1 01:43:11 1992  Per Bothner  (bothner at cygnus.com)
5169
5170         * mipsread.c:  Prepend "struct " to the names of structure
5171         types, and similarly for enums and unions.  (This used
5172         to be done, but got lost in the re-write to "guess" the
5173         difference between enum/struct/union.)
5174         Also, guess that a tag is an enum if the first member
5175         has type btNil.
5176
5177 Fri Jan 31 21:45:51 1992  Stu Grossman  (grossman at cygnus.com)
5178
5179         * xm-vax.h:  #ifndef ultrix around #include of endian.h and
5180         limits.h (sigh).
5181
5182 Fri Jan 31 00:05:01 1992  John Gilmore  (gnu at cygnus.com)
5183
5184         * Projects:  Patching executables is done.
5185         * Makefile.in (VERSION):  Roll to gdb-4.4.
5186         * README, WHATS.NEW:  Update for gdb-4.4.
5187
5188         * symfile.c (reread_symbols):  Whenever we reread one object
5189         file's symbols, we must restart the scan, because the object_files
5190         chain has been permuted.
5191
5192         * exec.c (exec_files_info):  Split out into print_section_info.
5193         Print BFD filename of each section if it's not the default one.
5194         * core.c (core_files_info):  Call print_section_info.
5195
5196         * xm-vax.h:  Include a few system header files whose definitions
5197         must precede defs.h.
5198         * language.c, language.h:  Make some things const.
5199         * expression.h, main.c:  const spreads like ooze.
5200
5201         * mem-break.c (break_insn, break_insn_size):  Use unsigned chars,
5202         since BREAKPOINT values can be >0x80.
5203
5204 Thu Jan 30 17:21:14 1992  Stu Grossman  (grossman at cygnus.com)
5205
5206         * infrun.c, xm-i386sco.h:  SCO needs to use setpgid().
5207
5208 Thu Jan 30 01:04:23 1992  John Gilmore  (gnu at cygnus.com)
5209
5210         * sparc-pinsn.c:  Remove kludge for preferring architectures.
5211         Remove #ifdef's for SORT_NEEDED.  We need to sort the table, now
5212         and forever.  Add `add' instruction to the set that get checked
5213         for a preceding `sethi' in order to print an absolute address.
5214         Corresponding changes in ../include/opcode/sparc.h needed
5215         to eliminate garbage instructions.
5216
5217 Wed Jan 29 19:24:34 1992  Per Bothner  (bothner at cygnus.com)
5218
5219         * mipsread.c (parse_partial_symbols):  Make sure partial
5220         symbols are created for external symbols (as used to be
5221         the case).  This is a bit of a pain with the mips-coff.
5222         It uses a table which points to all of the external
5223         symbols belonging to a particular FDR or psymtab.
5224         Once we've generated this table, we might as well save
5225         it, and then use it in psymtab_to_symtab_1 to find
5226         the symbols to pass to parse_external().
5227         * symfile.c,  symfile.c:  New function start_psymtab_common
5228         to share the common parts of allocating a new psymtab
5229         for dbxread, mipsread (and later dwarfread).  Its code
5230         was pulled out from start_psymtab in dbxread.c.
5231         * dbxread.c (start_psymtab):  Use start_psymtab_common().
5232
5233         * valprint.c (val_print):  If there is an error when trying
5234         to print a string, check to see if there really is a problem
5235         by reading just one character.  If that works, assume
5236         things are ok.
5237
5238 Wed Jan 29 18:58:43 1992  Stu Grossman  (grossman at cygnus.com)
5239
5240         * sparc-pinsn.c (compare_opcodes):  Make it prefer v6, v7,
5241         cypress, v8 mnemonics in that order.
5242
5243 Tue Jan 28 17:32:13 1992  Per Bothner  (bothner at cygnus.com)
5244
5245         * sparc-pinsn.c:  Put the qsort() back in.
5246
5247 Mon Jan 27 18:51:03 1992  John Gilmore  (gnu at cygnus.com)
5248
5249         * findvar.c (read_register, write_register):  Handle machines
5250         where REGISTER_TYPE is not the same size as "int".
5251
5252         Handle debug symbols in dynamically loaded (relocated) code:
5253
5254         * dbxread.c (read_ofile_symtab):  Fix up N_CATCH better.  Pass
5255         offset to process_one_symbol.
5256         (process_one_symbol):  Take new offset parameter.  Add it into
5257         appropriate symbol types to relocate symbols to loaded addresses.
5258         Handle all possible symbol types, and complain() about types that
5259         we don't expect to see.
5260         * mipsread.c (psymtab_to_symtab_1):  Pass offset of zero to
5261         process_one_symbol (FIXME, should pass real offset).
5262
5263         Misc bugfixes:
5264
5265         * breakpoint.c (resolve_sal_pc):  Split out code to resolve a
5266         sal's PC value.
5267         (set_breakpoint, break_command_1, until_break_command,
5268         catch_command_1, breakpoint_re_set_one):  Use it.
5269         * symtab.h (resolve_sal_pc):  Declare.
5270         * infcmd.c (jump_command):  Use resolve_sal_pc.
5271
5272         * source.c (list_command):  Shorten "FILE, line N" to "FILE:N".
5273
5274         * putenv.c (putenv):  Avoid unportably casting pointers to unsigneds.
5275
5276         * c-exp.y (yylex):  `this' and `template' are only tokens in C++.
5277
5278         * xm-convex.h, xm-hp300bsd.h, xm-isi.h, xm-merlin.h, xm-news.h,
5279         xm-np1.h, xm-pn.h, xm-pyr.h, xm-rtbsd.h, xm-symmetry.h, xm-umax.h:
5280         Remove MISSING_VPRINTF declaration, and superfluous "kgdb" defines.
5281
5282 Mon Jan 27 15:46:21 1992  Stu Grossman  (grossman at cygnus.com)
5283
5284         * dbxread.c (process_one_symbol):  Make a first cut at handling
5285         symbol tables generated by Sun's acc.  (#ifdef'd out, FIXME.)
5286
5287         * symtab.c (find_pc_line):  Fix stepping into and out of #included
5288         files.
5289
5290 Mon Jan 27 13:00:55 1992  Stu Grossman  (grossman at cygnus.com)
5291
5292         * Makefile.in (OPCODES):  Remove OPCODES defs and refs.  There is
5293         no longer any need to copy ../include/opcode/* into gdb.
5294
5295 Mon Jan 27 12:30:38 1992  John Gilmore  (gnu at cygnus.com)
5296
5297         * ChangeLog, ChangeLog-9091:  Split ChangeLog at 1992.
5298
5299 Sun Jan 26 19:05:40 1992  Per Bothner  (bothner at cygnus.com)
5300
5301         * valprint.c (type_print_base, type_print_method_args):
5302         Print C++ constructor methods without bogus "return type."
5303
5304 Sat Jan 25 15:57:59 1992  Fred Fish  (fnf at cygnus.com)
5305
5306         * infptrace.c (child_xfer_memory):  Parameter "target" should
5307         be a pointer to a structure, not the entire structure.
5308
5309 Fri Jan 24 01:30:27 1992  Fred Fish  (fnf at cygnus.com)
5310
5311         * depend:  Convert the couple of references to ansidecl.h that
5312         used the local gdb version to use the ../include version.
5313
5314 Thu Jan 23 22:24:43 1992  Fred Fish  (fnf at cygnus.com)
5315
5316         * procfs.c
5317         (child_xfer_memory): Takes pointer to a struct, not entire struct.
5318         (inferior_proc_init):  Fix non-ANSI version of args.
5319         (attach):  Call print_sys_errmsg with correct number of args.
5320         (mappingflags):  Make static, does not need to be global.
5321
5322         * i386-tdep.c (i386_frame_num_args):  Takes a pointer to a struct
5323         not the entire struct itself.
5324
5325         * valops.c (value_assign):  Cast some args to modify_field() and
5326         {read,write}_register_bytes() correctly.
5327
5328         * ansidecl.h:  Removed, is duplicate of ../include/ansidecl.h
5329
5330         * Makefile.in (MALLOCSRC):  Removed reference to removed local
5331         copy of ansidecl.h.
5332
5333         * dwarfread.c (list_in_scope):  Needs an initial value, use file
5334         scope.
5335
5336 Mon Jan 20 19:06:28 1992  Stu Grossman  (grossman at cygnus.com)
5337
5338         * main.c (main):  Make option_index local to keep new getopt happy.
5339         main.c, solib.c, Makefile.in:  Update copyright notices.
5340
5341 Mon Jan 20 08:54:00 1992  Michael Tiemann  (tiemann at cygnus.com)
5342
5343         * cplus-dem.c (cplus_demangle): Correctly demangle destructors.
5344
5345 Sat Jan 18 17:17:45 1992  Stu Grossman  (grossman at cygnus.com)
5346
5347         * Makefile.in (HFILES):  Add partial-stab.h.
5348
5349 Sat Jan 18 16:45:01 1992  Fred Fish  (fnf at cygnus.com)
5350
5351         * config/mh-stratus, config/mt-stratus, tm-stratus.h, xm-stratus.h:
5352         New files for stratus.  Not complete enough to actually build
5353         on the Stratus machine; that awaits copyright assignment for
5354         i860 changes.
5355
5356         * Makefile.in (USER_CFLAGS):  Add macro specifically reserved
5357         for getting custom flags into CFLAGS when doing makes.
5358
5359         * configure.in:  Add config information for stratus.
5360
5361 Thu Jan 16 00:51:46 1992  Fred Fish  (fnf at cygnus.com)
5362
5363         * dbxread.c (process_one_symbol):  Pass address of structure
5364         to complain(), rather than the whole structure.
5365
5366 Wed Jan 15 09:56:16 1992  Fred Fish  (fnf at cygnus.com)
5367
5368         * solib.c (solib_add_common_symbols):  Only compile in when not
5369         using SVR4 style shared libraries.
5370
5371 Tue Jan 14 22:34:00 1992  Fred Fish  (fnf at cygnus.com)
5372
5373         * dwarfread.c (locval):  Add offreg flag to indicate location
5374         values that are computed off a base register.
5375
5376         * dwarfread.c (new_symbol):  Rework TAG_global_variable and
5377         TAG_local_variable cases to account for static variables
5378         within function scopes.
5379
5380 Tue Jan 14 12:28:52 1992  Stu Grossman  (grossman at cygnus.com)
5381
5382         * inflow.c:  remove #include <sys/dir.h>.  Not necessary, and
5383         doesn't exist on some systems.
5384
5385         * infrun.c (wait_for_inferior!!!!):  Prevent gdb from hanging when
5386         nexting over recursive function calls.
5387
5388         * target.c (target_read_string):  Create this routine to read null
5389         terminated strings from the target.  It deals with running off the
5390         end of memory elegantly as well.  solib.c (find_solib):  Use
5391         target_read_string() to avoid problems with running off the end of
5392         memory.
5393
5394         * inflow.c (child_terminal_info):  #ifdef TIOCPGRP around lines
5395         that reference pgrp_inferior.
5396
5397 Mon Jan 13 14:57:11 1992  Per Bothner  (bothner at cygnus.com)
5398
5399         * tm-mips.h:  Removed BLOCK_ADDRESS_ABSOLUTE, now that
5400         mips-tfile has been hacked to act more "traditionally."
5401         * dbxread.c:  Fixed typo in comment.
5402
5403 Sun Jan 12 13:08:36 1992  Per Bothner  (bothner at cygnus.com)
5404
5405         * mips-tdep.c (mips_skip_prologue):  Add some number of
5406         'sw' instructions before 'addiu' adjusts the stack.
5407
5408 Fri Jan 10 13:47:06 1992  Fred Fish  (fnf at cygnus.com)
5409
5410         * dwarfread.c (start_symtab, end_symtab, scopecount, openscope,
5411         freescope, buildblock closescope, record_line, add_symbol_to_list,
5412         gatherblocks, make_blockvector):  Extensive changes to switch
5413         to generic symbol table building code in buildsym.c.  Remove
5414         scope tree structures and functions, symbol table building
5415         functions, and lots of other small changes.
5416
5417         * dwarfread.c:  Add new macros GCC_PRODUCER and STREQN.  Remove
5418         GCC_COMPILED_FLAG_SYMBOL and GCC2_COMPILED_FLAG_SYMBOL.
5419
5420 Tue Jan  7 13:09:57 1992  Stu Grossman  (grossman at cygnus.com)
5421
5422         * buildsym.c (cleanup_undefined_types):  Add support for enums.
5423         This fixes the 'GDB internal error.  cleanup_undefined_types with
5424         bad type' problem.
5425
5426 Sun Jan  5 09:47:50 1992  Stu Grossman  (grossman at cygnus.com)
5427
5428         * dbxread.c:  detect gcc2 compilations.
5429
5430 Thu Jan  2 15:07:41 1992  John Gilmore  (gnu at cygnus.com)
5431
5432         * sparc-pinsn.c:  Rename bitfields that overlap with macro names
5433         in ../include/opcode/sparc.h.
5434
5435 Wed Jan  1 04:29:00 1992  Fred Fish  (fnf at cygnus.com)
5436
5437         * Makefile.in:  Change tm-svr4.h to tm-sysv4.h.  Change xm-svr4.h
5438         to xm-sysv4.h.  Split OPCODE_DIR into OPCODE_DIR1 and OPCODE_DIR2
5439         to reflect actual locations of opcode files, so TAGS target will
5440         be buildable.
5441
5442         * i386-tdep.c:  Change an erroneous 'm68k' reference to 'i386'.
5443
5444         * i386-tdep.c (supply_fpregset, fill_fpregset):  Remove m68k
5445         code.
5446
5447         * m68k-tdep.c (supply_fpregset, fill_fpregset):  Fix array
5448         dereferencing to access the correct elements.
5449
5450         * valops.c (value_addr):  Declare return type of external func
5451         value_copy().
5452
5453         * xcoffread.c:  Undefine next_symbol_text before redefining it.
5454
5455 For older changes see ChangeLog-9091
5456 \f
5457 Local Variables:
5458 mode: indented-text
5459 left-margin: 8
5460 fill-column: 74
5461 version-control: never
5462 End: