* xm-rs6000.h: Remove #include of inferior.h. Fixes many
[binutils.git] / gdb / ChangeLog
CommitLineData
427d778c
SG
1Wed Jun 17 13:08:33 1992 Stu Grossman (grossman at cygnus.com)
2
65c36045
SG
3 * xm-rs6000.h: Remove #include of inferior.h. Fixes many
4 compilation errors.
5
423e9664
SG
6 * breakpoint.c (enable_command, disable_command): Without args,
7 should only affect normal breakpoints and watchpoints.
427d778c 8
423e9664
SG
9 * m68k-pinsn.c (print_insn_arg): Make register be const.
10 * xcoffexec.c: Remove ' from comment.
427d778c
SG
11 * xm-sun3os4.h: Define MALLOC_INCOMPATIBLE to avoid conflicts
12 with decls of malloc in c-exp.tab.c (as produced by yacc).
13 There's got to be a better way to do this...
14
323227fe
FF
15Wed Jun 17 11:10:40 1992 Fred Fish (fnf@cygnus.com)
16
17 * partial-stab.h: Convert single rindex use to strrchr.
18 * mipsread.c, dbxread.c: Remove troublesome inclusion of non-
19 standard <strings.h> file, now that the only single use of
20 rindex in the gdb source files is gone.
21
fa0bcaa3
FF
22Tue Jun 16 22:17:49 1992 Fred Fish (fnf@cygnus.com)
23
24 * mipsread.c: Undo ill effects from including <strings.h>,
25 which #defines index to be strchr. Unfortunately, index is
26 a member of a symbol table structure that can't be changed.
27 * mipsread.c: tm-mips.h includes coff/symconst.h and coff/sym.h,
28 remove redundant #include's.
29
b303297a
SG
30Tue Jun 16 14:15:51 1992 Stu Grossman (grossman at cygnus.com)
31
32 * mipsread.c: #include <strings.h> for rindex().
33
d1140eb5
FF
34Tue Jun 16 09:01:49 1992 Fred Fish (fnf@cygnus.com)
35
36 * xcoffexec.c (map_vmap): Turn comment into a real C comment.
37
c72af089
SG
38Mon Jun 15 18:41:23 1992 Stu Grossman (grossman at cygnus.com)
39
40 * dbxread.c (process_one_symbol), partial-stab.h: Ignore
41 extraneous SO stabs from busted C++ compilers.
42
4c07f28d
FF
43Mon Jun 15 12:21:45 1992 Fred Fish (fnf@cygnus.com)
44
45 * Makefile.in (VERSION): Bump to 4.5.5.
46 * symtab.c (decode_line_1): Until C++ support stabilizes, when
47 C++ lookups fail, print possibly helpful hint about completion.
48 * cplus-dem.c (demangle_signature): Fix ARM style demangling
49 for static data members.
50 * dbxread.c (dbx_psymtab_to_symtab_1): Fix prototype.
51 * config/ncr3000.mh (INSTALL): Don't use /usr/ucb/install,
52 it's broken on ncr3000's.
53
1c92ca6f
FF
54Mon Jun 15 07:21:00 1992 Fred Fish (fnf@cygnus.com)
55
56 * dwarfread.c (decode_modified_type): Change type of first arg.
57 Change 'modifier' to char from unsigned char. Cast single use
58 that needs to be unsigned char.
59 * symtab.h (SYMBOL_BASEREG_VALID): Explain disabling.
60 * utils.c (strdup_demangled): Add function.
61 * defs.h (strdup_demangled): Add prototype.
62 * stack.c (return_command): Demangle C++ function names for query.
63 * infcmd.c (jump_command): Demangle C++ function names for query.
64 * cplus-dem.c (consume_count): New function and prototype.
65 * cplus-dem.c (demangle_class, gnu_special, demangle_func_type,
66 do_type): Replace conversion code with consume_count().
67 * cplus-dem.c (gnu_special): Fix demangled of static members.
68 * source.c (list_command): Print demangled function names
69 when appropriate. Fix supplied by Peter Schauer.
70
71Mon Jun 15 01:45:48 1992 John Gilmore (gnu at cygnus.com)
72
73 * buildsym.c (define_symbol): Nameless types are now on several
74 platforms; generalize them and un-ifdef them to make Solaris 2
75 work.
76
bcbf9559
JG
77Sun Jun 14 10:55:51 1992 John Gilmore (gnu at cygnus.com)
78
d69bba12
JG
79 * infcmd.c: Fix typo (reported by Rob Savoye).
80 * xm-sun4sol2.h (gregset_t): Thinko in register set definition.
81 * symtab.h: Disable SYMBOL_BASEREG_VALID until it works.
82 * dbxread.c (dbx_psymtab_to_symtab_1): Renamed from
83 psymtab_to_symtab_1. Use current psymtab's sym_offset and symbol_size,
84 rather than the one for the first file in the dependency chain.
85
bcbf9559
JG
86 * dbxread.c (end_psymtab): Only reset texthigh if it's not already
87 set. Don't reset our own texthigh, or dependency-only pst's, in
88 scanning all the rest of the psymtabs.
89 (process_one_symbol): Fix comments around N_OBJ, N_OPT, N_UNDF.
90
91 * buildsym.h (N_UNDF): Improve comments.
92 (N_LSYM, etc): Skip types without names (":T(0,3)=sfoob...").
93
252f6c65
FF
94Sat Jun 13 11:16:45 1992 Fred Fish (fnf at cygnus.com)
95
96 * symtab.h (struct symbol): Add aux_value union for preserving
97 an additional per-symbol value.
98 * symtab.h (SYMBOL_BASEREG, SYMBOL_BASEREG_VALID): Add defines.
99 * frame.h (FRAME_GET_BASEREG_VALUE): Provide default definition.
100 * findvar.c (read_var_value): Use SYMBOL_BASEREG if valid.
101 * printcmd.c (address_info): Use SYMBOL_BASEREG if valid.
102 * symmisc.c (print_symbol): Use SYMBOL_BASEREG if valid.
103
a6b46ad4
MT
104Sat Jun 13 09:18:46 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
105
106 * symfile.c (clear_symtab_users_once): Now non-static (for
107 objfiles.c).
108
bf2e5f6b
JG
109Fri Jun 12 18:54:40 1992 John Gilmore (gnu at cygnus.com)
110
346168a2
JG
111 * arm-pinsn.c, i960-pinsn.c, m68k-pinsn.c, mips-pinsn.c,
112 ns32k-pinsn.c, pyr-pinsn.c, sparc-pinsn.c, tahoe-pinsn.c,
113 vax-pinsn.c: Remove reg_names decl (now in defs.h).
114
115 Solaris-2 support on SPARC:
116
117 * dbxread.c: Add symbol_size to struct dbx_symfile_info.
118 Add symbol_size and file offsets to struct symloc.
119 Add static symbol_table_offset, string_table_offset,
120 file_string_table_offset, next_file_string_table_offset,
121 last_function_name.
122 (add_old_header_file): Convert error() to complain()t.
123 (dbx_symfile_read): Get symbol size via the objfile.
124 Also get symbol_table_offset.
125 (dbx_symfile_init): Record symbol size and count via the objfile.
126 (dbx_next_symbol_text): Always add file_string_table_offset when
127 accessing string table.
128 (read_dbx_symtab): Initialize file_string_table_offset to 0.
129 (SET_NAMESTRING): Use the offset.
130 (end_psymtab): Large kludge to determine addresses where source
131 files start and end (for the psymtab header).
132 (psymtab_to_symtab_1): Set file_string_table_offset before reading.
133 Get this, symbol size, and symbol offset, from psymtab.
134 (read_ofile_symtab): Don't back up one symbol for Solaris2.
135 Patch up last_source_start_addr if zero in N_SO.
136 (process_one_symbol): Add variable function_start_offset.
137 ( "", N_FUN, N_LBRAC, N_RBRAC, N_SLINE): Add ifdef for
138 BLOCK_ADDRESS_FUNCTION_RELATIVE.
139 ( "", N_OBJ, N_OPT): Ignore.
140 (elfstab_build_psymtabs): New function to read stabs out of
141 an ELF file.
142
143 * Makefile.in: Accept $(BISON) even though we really want $(YACC).
144 (gdb): use GLOBAL_CFLAGS when linking, too.
145 * partial-stab.h (N_UNDF): Deal with Sol2 relative stringtab offsets.
146 (N_OBJ, N_OPT): Ignore.
147 ('f', 'F'): Save last function name.
148
149 * elfread.c (record_minimal_symbol_and_info): Kludged to put
150 extra info in the minimal symbol.
151 (elf_symtab_read): The extra info is the size of an ELF object,
152 which was kludged to us in the `udata' field of the BFD symbol.
153 Gag me with a crowbar...
154 (elf_symfile_read): Keep track of both the absolute load address,
155 and the offset between load addr and symbols. Handle STABS as
156 well as DWARF sections, passing the absolute load address to
157 elfstab_build_psymtabs.
158
159 * symfile.h: Prototype elfstab_build_psymtabs.
160 * symfile.c: Add almost-OK debug versions of add_psymbol_*to_list.
161
162 * xm-sysv4.h: Add <limits.h> to avoid conflicting defns in defs.h.
163
93297ea0
JG
164 * buildsym.h: Add processing_acc_compilation flag.
165 * buildsym.c (read_sun_builtin_type, read_sun_floating_type): New.
166 (define_symbol): Skip arg types in function entries. Resolve
167 overloaded 'P' which acc uses for prototypes of functions called
168 by this file.
169 (read_type: 'b', 'r'): Handle Solaris2 builtin types.
170
171 * minsyms.c (prim_record_minimal_symbol_and_info): Hack to
172 save size of ELF symbols. FIXME.
173 * tm-sun4os5.h: Rename to tm-sun4sol2.h. Update defines for Sol2.
174 * xm-sun4os5.h: Rename to xm-sun4sol2.h. Hack more defines.
175
bf2e5f6b 176 * configure.in: Solaris config is sparc-sun-solaris2.
93297ea0 177 * config/sun4os5.m[ht]: Rename to config/sun4sol2.m[ht]; new xm, tm.
bf2e5f6b 178
346168a2
JG
179 * objfiles.c (free_objfile): Eliminate storage leaks. Contributed
180 by <Peter.Schauer@regent.e-technik.tu-muenchen.dbp.de>.
181 * symfile.c (symfile_bfd_open): Comment where name is freed.
182 * symmisc.c (extend_psymbol_list): Comment where list is freed.
183
252f6c65 184Fri Jun 12 08:24:36 1992 Fred Fish (fnf at cygnus.com)
6b53bf34
FF
185
186 * expprint.c (print_subexp): Add missing ']'.
187 * defs.h (reg_names): Fix declaration to match that in infcmd.c
188 * stack.c (reg_names): Delete redundant (and inconsistent) decl.
189 * WHATS.NEW: Point out improved C++ function name handling.
190 * gdbtypes.c (lookup_fundamental_type): For now, use the same
191 type names for both implicitly and explicitly signed integral
192 types. See comment in the source code.
193
28de880c
JG
194Thu Jun 11 12:31:50 1992 John Gilmore (gnu at cygnus.com)
195
196 Two `long long' fixes from Robert R. Henry (rrh@dino.tera.com):
197 * defs.h (longest_to_int): Avoid void arm of ?: in error case.
198 * expprint.c (print_subexp): Fix printing of register names.
199
1304f099
JG
200Thu Jun 11 01:33:40 1992 John Gilmore (gnu at cygnus.com)
201
202 * inferior.h (register_valid): Declare.
203 * remote-udi.c, rs6000-xdep.c, sparc-xdep.c, tm-rs6000.h: Remove decl.
204 * objfiles.h (ALL_OBJFILE_{SYMTABS,PSYMTABS,MSYMBOLS}): Add
205 macros for traversing the data structures in a single objfile.
206 * tm-m88k.h, tm-sparc.h (REGISTER_NAMES): Remove extra semicolon.
207 * tm-i960.h (REGISTER_NAMES): Cosmetic change.
208 * infcmd.c: Lint.
209
252f6c65 210Tue Jun 9 17:19:45 1992 Fred Fish (fnf at cygnus.com)
36ce1b64
FF
211
212 * c-exp.y, m2-exp.y: Move remapping defines for malloc and
213 realloc. Add remapping defines for {yyss, yyssp, yyvs, yyvsp}.
214 * config/{amix.mh, i386v4.mh, ncr3000.mh, stratus.mh,
215 sun4os5.mh}: Add definition for INSTALL using /usr/ucb/install.
216
55488e9e
SG
217Tue Jun 9 16:29:19 1992 Stu Grossman (grossman at cygnus.com)
218
219 * depend: rebuild to account for remote-st2000.c.
220 * remote-st2000.c: Almost works now.
221 * tm-st2000.h: Need to turn on HAVE_68881, else things won't compile.
222
d630b615
FF
223Mon Jun 8 23:05:51 1992 Fred Fish (fnf@cygnus.com)
224
225 * c-exp.y (yylex): Recognize single-quoted strings that specify
226 tokens with embedded whitespace, such as C++ demangled names.
227 * defs.h (demangle_and_match, strcmp_iw, skip_quoted): Prototypes.
228 * main.c (gdb_completer_quote_characters): Add global variable.
229 * main.c (symbol_completion_function): Total rewrite for C++
230 demangled name handling.
231 * main.c (skip_quoted): New function.
232 * main.c (main): Set rl_completer_quote_characters.
233 * symmisc.c (dump_symtab): Print source language for symtab.
234 * symtab.c (expensive_mangler): Add prototype and function.
235 * symtab.c (completion_list_add_symbol): Total rewrite for new
236 C++ demangled name handling.
237 * symtab.c (lookup_symbol): Check for demangled C++ symbol first,
238 other changes for demangled C++ symbol handling.
239 * symtab.c (lookup_demangled_block_symbol): Use demangle_and_match.
240 * symtab.c (lookup_demangled_partial_symbol): Use demangle_and_match.
241 * symtab.c (decode_line_1): Recognize C++ demangled names on input.
242 * symtab.c (completion_list_add_symbol): Total rewrite for new
243 C++ demangled name handling.
244 * symtab.c (expensive_mangler): New function.
245 * utils.c (strcmp_iw, demangle_and_match): New functions.
246 * xcoffread.c (aixcoff_symfile_read): Fix prototype.
247
d9915ebc
JG
248Mon Jun 8 21:59:08 1992 John Gilmore (gnu at cygnus.com)
249
250 * Makefile.in: Roll VERSION to 4.5.4.
251 * Makefile.in, config/*.mh, config/*.mt: Rename TM_CFLAGS
252 to MT_CFLAGS, XM_CFLAGS to MH_CFLAGS to match file names.
253 * config/sun4os5.mh: Add MH_CFLAGS=-xs to save debug info.
254
88cc9a36
SG
255Mon Jun 8 14:17:42 1992 Stu Grossman (grossman at cygnus.com)
256
55488e9e
SG
257 * alldeps.mak: Rebuild to account for new files.
258 * config/st2000.mt: Use tm-st2000.h, not tm-68k.h.
259 * tm-st2000.h: New file.
88cc9a36
SG
260 * configure.in: Tandem debug monitor (st2000) support.
261 * remote-st2000.c, config/st2000.mt: ditto.
262
6f8db23a
JG
263Fri Jun 5 11:51:01 1992 John Gilmore (gnu at cygnus.com)
264
265 * blockframe.c (inside_entry_file, inside_main_func,
266 inside_entry_func): Return 0 if no symbols; avoid crashing.
267
268Wed Jun 3 17:48:04 1992 John Gilmore (gnu@cygnus.com)
2795260c
JG
269
270 * xcoffread.c (read_xcoff_symtab): Set c_sclass from n_sclass
271 without masking, since it is signed and will later be compared
272 against signed quantities. The right fix is probably to make
273 it all unsigned, but this is a small, safe fix for this release.
274 FIXME -- make the real change sometime soon.
275
a748555b
MT
276Mon Jun 1 16:16:12 1992 Michael Tiemann (tiemann@cygnus.com)
277
fb44a8f5
MT
278 * remote-vx.c (vx_load_command,add_symbol_stub): Default READNOW
279 parameter in call to `symbol_file_add' to 0.
280
a748555b
MT
281 * xm-sun4os4.h (MALLOC_INCOMPATIBLE): Define it.
282
283Sun May 31 06:38:27 1992 Michael Tiemann (tiemann@cygnus.com)
284
285 * configure.in: Handle -m680[01234]0-wrs.
286
48079d66
MT
287Fri May 29 22:16:02 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
288
289 * m68k-pinsn.c (print_insn_arg): Pass &EXT_FORMAT_68881 to
290 `ieee_extended_to_double'.
291
cb614788
JG
292Wed May 27 09:27:57 1992 John Gilmore (gnu at cygnus.com)
293
294 * valops.c (value_assign): Lint, by Pierre Willard.
295
6ad6ef42
JG
296Tue May 19 19:38:10 1992 John Gilmore (gnu at cygnus.com)
297
cb614788
JG
298 * coredep.c (fetch_core_registers): Remove premature warning,
299 which triggers on DECstation even though all regs are accessible.
300
301 * m68k-pinsn.c (print_insn_arg): Use new macros to get
302 sign-extension of instruction fields even on unsigned-char hosts.
303 Bug found by Fred J Roeber, fjr@sgfb.ssd.ray.com.
6ad6ef42 304
cb614788 305 88K changes inspired by Ted Lemon (uunet!lupine!mellon):
6ad6ef42
JG
306 * tm-m88k.h, tm-umax.h: Avoid sizeof() in REGISTER_xxx macros,
307 since they define the target, not the host.
308 * m88k-pinsn.c: Fix typo.
309
310Thu May 14 01:16:48 1992 John Gilmore (gnu at cygnus.com)
311
312 * valarith.c (value_zerop): -0.0 is still zero.
313 * eval.c (evaluate_subexp): Avoid NaN anomalies in float compares.
314 Patches by Paul Eggert <eggert@twinsun.com>.
315
316Mon May 18 13:53:51 1992 Stu Grossman (grossman at cygnus.com)
317
318 * alldeps.mak, depend: re-make to account for ser-*.c.
319
6c316cfd
FF
320Sun May 17 16:51:20 1992 Fred Fish (fnf@cygnus.com)
321
322 * inflow.c (new_tty): Temporarily ignore SIGTTOU when
323 disconnecting from controlling terminal, to avoid gdb hanging
324 on SVR4. Fixes bug reported by Oliver Okrongli.
325 * procfs.c (PROC_NAME_FMT): Change format to match default used
326 by system, as suggested by Oliver Okrongli.
327 * tm-68k.h (FRAME_FIND_SAVED_REGS): Apply missing parentheses
328 bug fix from Brent Townshend (bst%tt@cam.ORG).
329 * c-exp.y (nonempty_typelist): Fix memory overrun bug reported
330 by turlais@rechser.total.fr.
331 * dwarfread.c (decode_subscr_data): Fix bug in calculation of
332 length of non-zero lowerbound arrays. Bug fix from Peggy Fieland.
333 * objfiles.h (unlink_objfile): Add prototype.
334 * objfiles.c (unlink_objfile): Add function.
335 * objfiles.c (free_objfile): Call unlink_objfile.
336 * objfiles.c (allocate_objfile): Call unlink_objfile on newly
337 remapped objfiles. Bug reported by hahn@sunshine.labs.tek.com.
338 Also, discard old possibly bogus sf struct.
339 * symfile.c (symbol_file_add): Call init_entry_point_info() and
340 find_sym_fns() for remapped symbol files, in case of any changes
341 since the last mapping.
342
343Wed May 13 18:28:20 1992 Steve Chamberlain (sac@thepub.cygnus.com)
344
345 * findvar.c (read_relative_register_raw_bytes): use the raw size
346 of a register to bcopy, rather than the host's sizeof(CORE_ADDR).
347
ae0ea72e 348Tue May 12 17:44:39 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6ad6ef42 349
ae0ea72e
SC
350 Changes to support GDB running on DOS using GO32 and H8 support
351
352 * defs.h: if xm.h doesn't define FOPEN_RB, include "fopen-same.h",
353 allowing hosts with different text and binary file formats to
354 work.
355 * coffread.c (read_coff_symtab): changed calling convention and
356 operation - now it opens its own file with FOPEN_RB rather than
357 duping and fdopening the provided handle.
358 * dbxread.c, cplus-dem.c: #include mangling.
359 * exec.c: If O_BINARY isn't defined, set it to 0, call openp for
360 binary files oring in the right bit.
361 * utils.c, terminal.h, inflow.c: hackery because dos doesn't have terminals.
362 * remote-hms.c: cleanup to use the new remote serial stuff
363 * serial.h, ser-termios.c, ser-go32.c: newfiles to provide host
364 independent remote terminal I/O.
365 * remote.c: if DONT_USE_REMOTE not defined, then don't use it.
366 * source.c (openp): fix off by one problem removing / - can now
367 open a source file in the root directory with DOS.
368 * values.c (value_as_pointer): remove bogus address bits from
369 long. (unpack_long): unpack into unsigned long/short if pointer.
370
0defac02
SG
371Tue May 12 14:15:48 1992 Stu Grossman (grossman at cygnus.com)
372
84c8f62d
SG
373 * infrun.c (child_attach): Don't allow gdb to attach to itself.
374 It gets permanently stuck in many OSes.
bcf2e6ab
SG
375 * breakpoint.c, infcmd.c, infrun.c, utils.c: Change many printfs
376 to printf_filtered.
70d47e66 377 * breakpoint.c: Improve help text for info breakpoints.
0defac02
SG
378
379Mon May 11 14:17:18 1992 John Gilmore (gnu at cygnus.com)
380
381 * README: Add pointer to internals doc, and describe reading
382 info files.
383 * utils.c (print_sys_errmsg): Use stderr. Reported by Pierre Willard.
384 * symtab.c (output_source_filename): Remove old glop for wrapping
385 lines, use wrap_here. Reported by Pierre Willard (pierre@la.tce.com).
386
387Thu May 7 11:45:03 1992 John Gilmore (gnu at cygnus.com)
388
389 * Makefile.in: version.c should depend on Makefile, not Makefile.in.
390 * munch: Add sort -u to avoid duplications.
391 * symtab.c (lookup_symbol): Improve Stu's fix of 22 April.
392 Improved fix by hahn@sunshine.labs.tek.com (Doug Hahn).
393
7fd31a84
FF
394Mon May 11 13:27:46 1992 Fred Fish (fnf@cygnus.com)
395
396 * cplus-dem.c (demangle_signature): Recognize misplaced '_' to
397 avoid infinite loops while demangling bogus mangled names.
398 * valprint.c (type_print_base): Minor fix for GNU style guide
399 conformance.
400
f9b5584c
FF
401Sat May 9 18:02:17 1992 Fred Fish (fnf at fishpond)
402
403 * Makefile.in (VERSION): Bump to 4.5.3
404 * Makefile.in (DEMANGLE_OPTS): Remove obsolete -Dnounderscore
405 * Makefile.in (demangle): New target to create standalone
406 demangler with same code and options as internal demangler.
407 * cplus-dem.c: Massive restructuring, rewriting, cleanups, etc
408 to support ARM style and Lucid style demangling, improve
409 maintainability, fix several demangling bugs. More changes
410 to follow.
411 * defs.h (strstr): Add ANSI compatible prototype.
412 * valprint.c (type_print_1): Demangle using ansi option.
413 * config/ncr3000.mt (DEMANGLE_OPTS): Remove -Dnounderscore.
414
1e939db1
SG
415Sat May 9 14:47:28 1992 Stu Grossman (grossman at cygnus.com)
416
417 * xcoffexec.c (vmap_exec): Don't assume .text and .data are the
418 first two sections.
419
d5e88583
PB
420Fri May 8 11:42:15 1992 Per Bothner (bothner@rtl.cygnus.com)
421
422 * mipsread.c (parse_procedure): Return rather than using
423 uninitialized variable 'b'.
424
0defac02 425Fri May 8 07:48:27 1992 Stu Grossman (grossman at cygnus.com)
9b98dea2 426
aa942355
SG
427 * Makefile.in, remote-udi.c, remote-vx.c, 29k-share/dfe/mini2udi.c,
428 29k-share/dfe/yank.c, vx-share/xdr_ptrace.c, vx-share/xdr_regs.c:
429 Remove -I29k-share, -Ivx-share from Makefile.in. Make #includes
430 relative to each source file.
431
0defac02
SG
432Fri May 8 07:48:27 1992 K. Richard Pixley (rich@cygnus.com)
433
9b98dea2 434 * Makefile.in: propogate INSTALL, INSTALL_DATA, INSTALL_PROGRAM on
0defac02 435 recursions.
9b98dea2
RP
436
437Thu May 7 10:00:52 1992 Stu Grossman (grossman at cygnus.com)
438
439 * am29k-pinsn.c: Use new opcode table in "opcode/a29k.h".
440 * am29k-tdep.c: Update to latest code from AMD.
441 (get_saved_register) don't crap out if no frame.
442 * remote-udi.c: Set/clear inferior_pid as appropriate.
443 (udi_open) call target_preopen, don't close fd 0!!!, clean up
444 error handling. Fixup end-of-debugging messages.
445 (udi_fetch_registers) clean up big time, mainly don't multiply
446 register_valid indices by 4, and use proper Offset when reading
447 gr96-gr127. (udi_store_registers) general cleanup.
448 (fetch_register) cleanup, simplify. (regnum_to_srnum)
449 INT_REGNUM->INTE_REGNUM.
450 * tm-29k.h: Upgrade to latest code from AMD.
451 * 29k-share/udi/udip2soc.c: Get rid of useless errmsg_m macro.
452 (UDIConnect) Clean up error processing (like, don't do exit() if
453 execlp fails), make code restartable, make more attractive.
454 (UDIStop) Use SIGINT instead of SIGUSR1, as isstip won't stop
455 otherwise.
456
ba2c9027
PB
457Wed May 6 14:34:18 1992 Per Bothner (bothner@rtl.cygnus.com)
458
459 * tm-irix3.h: Re-define CPLUS_MARKER to '.'.
460 * xm-rs6000.h, tm-rs6000.h: Move re-definition of CPLUS_MARKER
461 from former to latter.
462
55b3ef9a
FF
463Wed May 6 14:12:35 1992 Fred Fish (fnf@cygnus.com)
464
465 * cplus-dem.c (do_args): Handle void args the same as others.
466 * objfiles.c (free_objfile): Only try to unmap files when
467 reusable objfiles are supported.
468 * valprint.c (type_print_varspec_suffix): Add parameter that
469 specifies if C++ demangling included function arguments. Use
470 it to suppress printing extra pair of ()'s.
471 * valprint.c (type_print_1): Fix problem with printing demangled
472 C++ function types where demangled type includes the function
473 args.
474
8f793aa5
FF
475Tue May 5 11:10:27 1992 Fred Fish (fnf@cygnus.com)
476
477 * Makefile.in (DEMANGLER): Define and default to cplus-dem.
478 Allows selection of C++ demangler to be a configuration option
479 until multiple demanglers are supported.
480 * demangle.h: New include file for extended demangler support.
481 * breakpoint.c, gdbtypes.c, printcmd.c, stack.c, symtab.c,
482 utils.c, valprint.c: Include "demangle.h" and change all calls
483 to cplus_demangle() or fputs_demangled() to use individual
484 demangling options.
485 * valprint.c (type_print_1): Change options to cplus_demangle
486 to print demangled function args. Still broken, but now less so.
487 * cplus-dem.c: Include demangle.h, reorganize and update some
488 comments to reflect reality.
489 * cplus-dem.c (cplus_demangle, cplus_mangle_opname): Change
490 second arg from fixed integer to bit based multiple options.
491 * cplus-dem.c (optable): Reformat and replace ansi members with
492 bit based options.
493 * cplus-dem.c (do_type): Fix bug with parsing missing return type.
494
6fab5bef
JG
495Mon May 4 22:26:59 1992 John Gilmore (gnu at cygnus.com)
496
497 * values.c (set_internalvar): Force evaluation of lazy values.
498 Bug reported by RMS.
499
4db8e515
FF
500Sun May 3 15:47:45 1992 Fred Fish (fnf@cygnus.com)
501
502 * Makefile.in (VERSION): Bump to 4.5.2.
503 * Makefile.in (DEMANGLE_OPTS): Add, default to -Dnounderscore.
504 * configure.in: Simplify ncr3000 gdb_host logic, add gdb_target.
505 * dwarfread.c (struct_type): Apply fix from Peggy Fieland for
506 proper handling of bit fields.
507 * gdbtypes.h (struct type): Clarify use of field.bitpos.
508 * symtab.h: Fix couple of misspellings in comments.
509 * value.h (struct value): Clarify use of bitpos.
510 * value.h (unpack_field_as_long): Change prototype, returns
511 LONGEST.
512 * values.c (unpack_field_as_long): Change return type to LONGEST,
513 sign extend unpacked fields that are signed, other rewriting.
514 * config/ncr3000.mt: New target config file.
515
ea1549b3
JG
516Fri May 1 01:53:26 1992 John Gilmore (gnu at cygnus.com)
517
fcdb113e
JG
518 * utils.c (printchar): Print 0x7F and 0x80-0x9F in \nnn notation
519 even when printing 8-bit characters.
520
ea1549b3
JG
521 * gdbtypes.c (make_{reference,pointer,function}_type): New
522 functions which handle overwriting of forward-referenced types
523 for stabs file reading.
524 (lookup_{reference,pointer,function}_type): These just call
525 the make_*_type functions with a null storage alloc parameter.
526 * gdbtypes.h (make_{reference,pointer,function}_type): Declare.
527 * xcoffread.c (smash_to_pointer_type): Remove, no longer used.
528
529 * buildsym.c (dbx_lookup_type): Zero result for (-1,-1) arg.
530 (dbx_alloc_type): Make it easier to understand. No funct change.
531 (define_symbol: 't'): Don't put the typedef name into the name of
532 the struct, union, or enum. Bugfix.
533 (read_type: '*', '&', 'f'): Add comments. Use make_XXX_type
534 routines to properly handle overwriting preallocated types so that
535 forward references will work.
536 (read_enum_type): Force enum values to file scope, due to bug in
537 Sun compiler output. FIXME, fix later.
538
539 Remove unused header_file_prev_index mechanism. It was already
540 obsolete in gdb-3.5. These comments appeared in 3.5:
541 /* This code was used before I knew about the instance codes.
542 My first hypothesis is that it is not necessary now
543 that instance codes are handled. */
544 * dbxread.c (add_new_header_file): Remove header_file_prev_index.
545 * buildsym.h: Remove it and prev_index that saves it.
546 * buildsym.c (push_subfile, pop_subfile, start_symtab): Remove it.
547
548 * solib.c (special_symbol_handling): When called from core files,
549 must set up debug_addr. Don't print error messages, just return.
550 * symmisc.c (print_symbol): Less ascii diarrhea for enums, please.
551
f536aa39
PB
552Wed Apr 29 15:26:51 1992 Per Bothner (bothner@rtl.cygnus.com)
553
554 * cplus-dem.c: Allow nested class names (as in
555 Foo::Bar::method()).
556 Allow the cleaner cfront style of nested class names
557 (Q2_3Foo3Bar as well as Q23Foo3Bar).
558 Make cplus_demangle re-entrant by removing use of global
559 variables. Instead, place all shared variables in a
560 stack-allocated structure, and pass around its address.
561
72b1aa30
SG
562Fri Apr 24 07:41:19 1992 Stu Grossman (grossman at cygnus.com)
563
9e91f617
SG
564 * Makefile.in (make-proto-gdb-1): 1st cut at packaging
565 29k-share/* subdirs...
566
54847287
SG
567 * remote-udi.c (udi_insert/remove_breakpoint): Completely
568 rewrite, only leave out the bugs.
569
0857b46a
SG
570 * Makefile.in: Add 29k/UDI support. Improve depend.
571 * .Sanitize, alldeps.mak, configure.in, depend: Add 29k/UDI support.
572
07df4831
SG
573 * am29k-tdep.c: Update to use new calling conventions, and misc
574 symbol elements.
575
72b1aa30
SG
576 * m68k-pinsn.c (print_insn_arg): Make branch offsets be signed.
577
c8094777
FF
578Thu Apr 23 18:43:17 1992 Fred Fish (fnf@cygnus.com)
579
66a8a9b4
SG
580 * tm-29k.h: Set DECR_PC_AFTER_BREAK to 0, as 29ks have nice
581 breakpoint instructions that leave PC pointing at the right place.
582
c8094777
FF
583 * core.c (core_open): Call warning() to print warnings.
584
35a25840
SG
585Wed Apr 22 09:55:42 1992 Stu Grossman (grossman at cygnus.com)
586
587 * symtab.c (lookup_symbol): Need to check if msymbol->name is
588 NULL, as ALL_MSYMBOLS will never return a NULL msymbol pointer.
589 This prevents a crash when trying to lookup the value of a
590 non-existent symbol.
591
4ace50a5
FF
592Wed Apr 22 09:42:15 1992 Fred Fish (fnf@cygnus.com)
593
594 * signame.c, signame.h: Remove, replaced by strsignal.c in
595 libiberty.
596 * i960-tdep.c, infrun.c, mach386-xdep.c, procfs.c, sparc-tdep.c,
597 sun386-xdep.c: Remove include of signame.h
598 * Makefile.in (SFILES_MAINDIR): Remove signame.c
599 * Makefile.in (HFILES): Remove signame.h
600 * Makefile.in (OBS): Remove signame.o
601 * defs.h (safe_strerror, safe_strsignal, strerrno, strsigno,
602 errno_max, signo_max, strtoerrno, strtosigno, strsignal,
603 psignal, perror): Add prototypes.
604 * defs.h, xm-apollo68v.h, xm-ultra3.h (SYS_SIGLIST_MISSING):
605 Remove define.
606 * depend: Manually remove signame.[cho] references.
607 * convex-tdep.c (subsig_name): Replace use of sys_siglist with
608 strsignal.
609 * convex-xdep.c (core_file_command): Replace use of sys_siglist
610 with safe_strsignal.
611 * core.c (core_open): Replace use of sys_siglist with
612 safe_strsignal.
613 * core.c (memory_error): Replace use of sys_errlist with
614 safe_strerror.
615 * i960-tdep.c (print_fault): Replace use of sys_siglist with
616 safe_strsignal.
617 * infcmd.c (program_info): Replace use of sys_siglist with
618 safe_strsignal.
619 * infrun.c (signal_stop, signal_print, signal_program):
620 Allocate dynamically based on dynamic determination of number
621 of signals to support.
622 * infrun.c (child_create_inferior): Replace use of sys_errlist
623 with safe_strerror.
624 * infrun.c (wait_for_inferior): Replace use of sys_siglist with
625 safe_strsignal.
626 * infrun.c (sig_print_info): Replace use of sig_abbrev with
627 strsigno and sys_siglist with safe_strsignal.
628 * infrun.c (handle_command): Call signo_max to find number of
629 signals. Replace sig_number with strtosigno and sig_abbrev with
630 strsigno.
631 * infrun.c (signals_info): Replace sig_number with strtosigno.
632 * infrun.c (_initialize_infrun): Call signo_max to find number of
633 signals. Dynamically allocate signal_{stop,print,program}.
634 * procfs.c (errno_table): Remove, now in libiberty/strerror.c.
635 * procfs.c (errnoname): Add function and prototype.
636 * procfs.c (info_proc_siginfo): Call errnoname, replace use
637 of sys_siglist with safe_strsignal.
638 * procfs.c (info_proc_stop, info_proc_signals): Replace use of
639 sys_siglist with safe_strsignal.
640 * procfs.c (info_proc_stop): Call errnoname.
641 * procfs.c (signalname): Replace sig_abbrev with strsigno.
642 * stuff.c (main, get_offset): Replace use of sys_errlist with
643 strerror.
644 * sun386-xdep.c (core_file_command): Replace use of sys_siglist
645 with safe_strsignal.
646 * umax-xdep.c (core_file_command): Replace use of sys_siglist
647 with safe_strsignal.
648 * utils.c (safe_strerror, safe_strsignal): Add functions that
649 call strerror and strsignal respectively, and deal with NULL
650 returns.
651 * utils.c (perror_with_name, print_sys_errmsg): Replace use of
652 sys_errlist with safe_strerror.
653 * valprint.c (val_print): Replace use of sys_errlist with
654 safe_strerror.
655
6e6bf7f2
RP
656Tue Apr 21 12:00:47 1992 K. Richard Pixley (rich@cygnus.com)
657
658 * Makefile.in: rework CFLAGS so that they can be set from the
659 command line to make. CFLAGS -> INTERNAL_CFLAGS.
660 USER_CFLAGS -> CFLAGS. Remove MINUS_G. Default CFLAGS to -g.
661 Pass CFLAGS on recusions.
662
663Fri Apr 17 19:25:57 1992 Fred Fish (fnf@cygnus.com)
664
665 * gdbtypes.h, c-exp.y, m2-exp.y, mipsread.c, gdbtypes.c: Back
666 out of change on 4/14/92 and remove TYPE_FLAG_FUND_TYPE. It was
667 overkill for the problem it solved.
668 * valprint.c (type_print_base): Remove TYPE_FLAG_FUND_TYPE test
669 and default to simply printing type names as appropriate.
670 * main.c (main): Remove one of the leading newlines from
671 warning_pre_print initialization.
672 * objfiles.c (open_existing_mapped_file): Add function and
673 prototype.
674 * objfiles.c (open_mapped_file): Rewrite to use new function
675 open_existing_mapped_file.
676
b0c8c726
JG
677Thu Apr 16 23:50:12 1992 John Gilmore (gnu at cygnus.com)
678
679 * sun3-xdep.c (fetch_core_registers): Lint.
680 * tm-sun3.h: Prototype lint.
681 * value.h: Typo.
682
2d6d969c
FF
683Thu Apr 16 19:56:50 1992 Fred Fish (fnf@cygnus.com)
684
685 * dwarfread.c (TARGET_FT_POINTER_SIZE, TARGET_FT_LONG_SIZE):
686 Define using TARGET_PTR_BIT and TARGET_LONG_BIT for now.
687 * objfiles.c: Cast calls to close() with unused returns to void.
688 * objfiles.c (allocate_objfile): Initialize objfile's mmfd, free
689 old objfile's name before updating it.
690 * objfiles.c (free_objfile): Major rewrite for mapped objfiles.
691 * objfiles.h (objfile struct): Add mmfd member.
692 * symfile.c (syms_from_objfile): Move some code to
693 new_symfile_objfile.
694 * symfile.c (new_symfile_objfile): Add new function, common code
695 from syms_from_objfile.
696 * symfile.c (symbol_file_add): Call new_symfile_objfile for both
697 mapped and unmapped symbol files.
698 * symfile.c (symbol_file_command): Print "No symbol file now"
699 message, ala exec_file_command for the exec file.
700 * symfile.h (new_symfile_objfile): Add prototype.
701 * xcoffexec.c (map_vmap): Add call to new_symfile_objfile.
702 * xcoffsolib.c (solib_add): Add call to new_symfile_objfile.
703
d453b386
PB
704Thu Apr 16 18:26:34 1992 Per Bothner (bothner@cygnus.com)
705
706 * rs6000-pinsn.c: New version from IBM (Metin).
707 * m2-exp.y: Re-write string initializers ("<>" => {'<', '>'})
708 to avoid warnings from some compilers.
709
4a11eef2
FF
710Tue Apr 14 22:33:55 1992 Fred Fish (fnf@cygnus.com)
711
712 * gdbtypes.h (FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL): Add defines.
713 * gdbtypes.h (TYPE_FLAG_FUND_TYPE): Add define for bit in a
714 type's flag word that marks it as a fundamental type.
715 * c-exp.y (_initialize_c_exp): Add TYPE_FLAG_FUND_TYPE bit to
716 flags argument for all calls to init_type().
717 * m2-exp.y (_initialize_m2_exp): Add TYPE_FLAG_FUND_TYPE bit to
718 flags argument for all calls to init_type(). Also remove
719 dependency on host sizes for ints, floats, etc.
720 * mipsread.c (_initialize_mipsread): Add TYPE_FLAG_FUND_TYPE bit to
721 flags argument for all calls to init_type(). Also remove
722 dependency on host sizes for ints, floats, etc.
723 * gdbtypes.c (lookup_fundamental_type): Add TYPE_FLAG_FUND_TYPE
724 bit to flags argument for all calls to init_type(). Add types
725 FT_FIXED_DECIMAL and FT_FLOAT_DECIMAL.
726 * valprint.c (unsigned_type_table, signed_type_table,
727 float_type_table): Remove.
728 * valprint.c (type_print_base): Test new TYPE_FLAG_FUND_TYPE
729 bit when printing fundamental types, and print the actual name
730 for such types, rather than inventing one. Remove code that
731 invented fundamental type names.
732 * valprint.c (_initialize_valprint): Remove initializations
733 for now removed unsigned_type_table, signed_type_table, and
734 float_type_table.
735
35a25840
SG
736Tue Apr 14 14:30:46 1992 Stu Grossman (grossman at cygnus.com)
737
738 * remote-vx.c, vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
739 vx-share/xdr_rdb.h: Update for new remote protocol under VxWorks
740 5.0.2.
741
13b5a7ff
FF
742Mon Apr 13 20:59:21 1992 Fred Fish (fnf@cygnus.com)
743
744 * dwarfread.c (target_to_host): New function similar to previous
745 swapin function.
746 * dwarfread.c (SWAPIN, swapin): Remove macro and support function.
747 Extensive changes to convert all previous usages to use new
748 target_to_host() function.
749 * dwarfread.c (struct dieinfo): Change types of most integral
750 members to be unsigned.
751
3bc82410
JG
752Mon Apr 13 15:59:10 1992 John Gilmore (gnu at cygnus.com)
753
754 * WHATS.NEW: Revise -mapped doc.
755
817bc7b8
JG
756Sat Apr 11 23:14:36 1992 John Gilmore (gnu at cygnus.com)
757
758 * mipsread.c (parse_partial_symbols): Complain when sh->index is
759 too high or when skipping `forwards' moves us backwards.
760 (parse_type): Print mis-guessed tag name in complaint.
761 (parse_external): Eliminate cur_stab and obscure top_stack clobbers.
762 (parse_procedure): Do not attempt to create symbols; just fill in
763 the SYMBOL_VALUE field of a .gdbinfo. symbol if we can find one.
764 (psymtab_to_symtab_1): Split up `stabs' from `native ecoff' code
765 for clarity. Set top_stack before calling parse_external. In
766 stabs, sort symbols before calling parse_procedure.
767 * mipsread.c: Lint.
768 * symmisc.c (std_in, std_out, std_err): Add vars to access std
769 FILE *'s when debugging GDB (e.g. as args to dump_symtab).
770 * Makefile.in: Remove stage* targets. Avoid echo on recursive
771 makes. Eliminate doc/Makefile from tar.Z file if doc/Makefile.in
772 exists.
773
554d1be4
JG
774Fri Apr 10 23:47:37 1992 John Gilmore (gnu at cygnus.com)
775
44d835be 776 * Makefile.in (VERSION): Set to 4.5.1.
554d1be4
JG
777 * xcoffread.c (NO_TYPEDEFS): Fix typo in commented-out #define.
778 * sparc-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
779 fill_gregset): New functions for SVR4 /proc support.
44d835be
JG
780 * mipsread.c: Cleanup. Add more complaints for unhandled cases.
781 Remove new symbol types and such to ../include/coff/symconst.h.
782 (parse_symbol): Simplify code for parsing struct/enum/unions.
783 (parse_type): Handle `long long' types.
784 (upgrade_type): Handle `const' qualifier.
785 (parse_partial_symbols): fix indentation, clean a bit.
554d1be4 786
6e706950
FF
787Fri Apr 10 22:41:03 1992 Fred Fish (fnf@cygnus.com)
788
95967e73
FF
789 * dwarfread.c (SWAPIN,swapin): New macro and function to call to
790 copy in data from raw read buffers, calling bfd byteswapping
791 routines as appropriate. Use to replace most existing memcpy
792 calls.
793 * dwarfread.c (basicdieinfo, completedieinfo): Add objfile arg.
6e706950
FF
794 * configure.in: Recognize new ncr3000 config.
795 * config/ncr3000.mh: New config file.
796
601836ef
SG
797Fri Apr 10 08:30:58 1992 Stu Grossman (grossman at cygnus.com)
798
6e706950
FF
799 GDB-4.5 release!
800
801 * README: Update for release.
b69ce5ab
SG
802 * Makefile.in: Update version to 4.5.
803 * WHATS.NEW: The obvious.
804
ece32565
SG
805 * depend: Generate new depend file for this release.
806
601836ef
SG
807 * Makefile.in (depend): Fix dependancy generation so that it does
808 not include gcc 'fixincluded' files, which are usually in a system
809 specific location.
810
9b6f92db
PB
811Thu Apr 9 13:35:00 1992 Per Bothner (bothner@rtl.cygnus.com)
812
813 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik).
814 * buildsym.c (#ifdef RS6000_TARGET): Don't create unnecessary
815 symbols for nameless types. And, handle `R' (register parameter
816 type) for AIX. (an extension to existing stabstring grammar).
817 * rs6000-xdep.c: Fix typo (= should have been ==).
818
7fe388ad
SG
819Thu Apr 9 12:10:06 1992 Stu Grossman (grossman at cygnus.com)
820
821 * Makefile.in: version=4.4.88, add xm-vax.h to HFILES.
822
9e53d9dc
JG
823Thu Apr 9 02:29:03 1992 John Gilmore (gnu at cygnus.com)
824
825 * xm-sun4os5.h (DO_DEFERRED_STORES, CLEAR_DEFERRED_STORES): Zap.
826 * signame.c (SIGWAITING, SIGLWP): Add.
827
6fba3d7c
PB
828Tue Apr 7 16:34:07 1992 Per Bothner (bothner@cygnus.com)
829
56619803 830 * xm-i386mach.h: add decls for errno and strdup().
ff1e35cb 831
6fba3d7c
PB
832 * breakpoint.c (breakpoint_1): Add (int) casts for enums
833 used in array index context (otherwise, some compilers barf).
834
628c6d3b
SG
835Tue Apr 7 08:45:46 1992 Stu Grossman (grossman at cygnus.com)
836
e05ba37d
SG
837 * m68k-tdep.c, tm-sun3.h: #ifdef around get_longjmp_target().
838 Change def of SAVED_PC_AFTER_CALL to call routine to see if we are
839 in a system call, and provide better backtrace if so.
840
1f415ae7 841 * Makefile.in (HFILES): Add xcoffsolib.h.
c994feb6 842 * rs6k-opcode.h: Move to ../include/opcode/rs6k.h.
2741887b 843 * rs6000-pinsn.c: #include "opcode/rs6k.h"
c994feb6 844
96c19d0f
SG
845 * mipsread.c (read_mips_symtab, read_the_mips_symtab,
846 mipscoff_symfile_read): Convert to BFD to do file I/O.
847
c1bde665
SG
848 * symfile.c: #include <ctype.h> to get proper def if isspace().
849
628c6d3b
SG
850 * i386-tdep.c (get_longjmp_target): #ifdef GET_LONGJMP_TARGET.
851
ad142b8e
PB
852Mon Apr 6 17:25:45 1992 Per Bothner (bothner@cygnus.com)
853
854 * mipsread.c: Create a .gdbinfo pseudo-symbol for each
855 function also when parsing embedded stabs.
856
ce9260ae
SG
857Mon Apr 6 15:25:03 1992 Stu Grossman (grossman at cygnus.com)
858
391ca579
SG
859 * mipsread.c: Fix more declarations.
860
e5578a31
SG
861 * mipsread.c: Fix many invocations of complain. Use enum
862 type_code where appropriate.
41bd448e 863
995e7f86
SG
864 * xm-vaxult.h: Add decl for strdup().
865
ce9260ae
SG
866 * Makefile.in: Add dependancies for xm-vaxbsd.h and xm-vaxult.h
867 for xm-vax.h.
868
b2de19e3
SG
869Fri Apr 3 17:41:29 1992 Stu Grossman (grossman at cygnus.com)
870
871 * buildsym.h, dbxread.c, mipsread.c: Add objfile arg to
872 process_one_symbol.
873
556f3d90
PB
874Fri Apr 3 12:17:14 1992 Per Bothner (bothner@cygnus.com)
875
876 * munch: Must pre-pend "_" to "initialize" for SYSV style nm.
877 * tm-rs6000.h, xcoffexec.c, xcoffread.c, xm-rs6000.h:
878 Merge in more patches for rs6000 from Metin Ozisik.
879 * utils.c: Fix typo in comment.
880
d65eee73
FF
881Fri Apr 3 11:23:03 1992 Fred Fish (fnf@cygnus.com)
882
883 * procfs.c (procinfo struct): Add nopass_next_sigstop member.
884 * procfs.c (attach): Set nopass_next_sigstop if attached
885 process is forcibly stopped.
886 * procfs.c (child_resume): Use nopass_next_sigstop to suppress
887 resending SIGSTOP to attached process on first resume.
888
239e7ee9
SG
889Fri Apr 3 01:37:26 1992 Stu Grossman (grossman at cygnus.com)
890
891 * Makefile.in (SFILES_MAINDIR): add mipsread.c
892
e10a3052
JG
893Thu Apr 2 20:20:54 1992 John Gilmore (gnu at cygnus.com)
894
895 * Makefile.in (OBS): Compile mipsread.c for all targets now.
896 (VERSION): Bump to 4.4.85.
897 * mipsread.c: Update for new include files. Lint.
898 * tm-irix3.h, tm-mips.h: Use new include files for ECOFF symtab.
899 * config/{bigmips.mt, littlemips.mt, irix3.mt, decstation.mt}:
900 Don't need to bring in mipsread.o specially any more.
901
4ad1963e
SG
902Thu Apr 2 19:38:31 1992 Stu Grossman (grossman at cygnus.com)
903
904 * mipsread.c (fixup_sigtramp): Also look for _sigtramp as a real
905 routine (for Irix-4.x). Make many funcs static and void.
906 * mips-tdep.c (mips-frame-chain): Clean up, simplify.
907 * (init_extra_frame_info): Don't trash cached value of frame
908 pointer register. This fixes backtracing through routines that use
909 alloca(). Generally clean up declarations of functions, and use
910 typedefs and macros to reference data structures as appropriate.
911 * tm-irix3.h, tm-mips.h (EXTRA_FRAME_INFO): use proper type for
912 proc_desc element.
913
5c1c5e67
FF
914Thu Apr 2 09:47:11 1992 Fred Fish (fnf@cygnus.com)
915
916 * values.c (unpack_long): Fix unpacking error for signed chars
917 on hosts where the default character type is unsigned.
918 * procfs.c (pr_flag_table, pr_why_table): Add some entries
919 for newer SVR4 variants.
920 * procfs.c (proc_set_exec_trap): Reorder tests for ioctl's that
921 turn off trace inherit-on-fork flag to favor latest SVR4 method.
922 * procfs.c (mappingflags): Add support for MA_PHYS
923
ac88ca20
JG
924Thu Apr 2 00:55:56 1992 John Gilmore (gnu at cygnus.com)
925
03c93c66
JG
926 * buildsym.c (read_struct_type): Avoid coredump when C++
927 abbreviated type name is messed up. Reported by Joe Buck.
928 FIXME, we need to determine whether GDB or GCC needs to be
929 smarter to correctly locate this type name.
930
ac88ca20
JG
931 * c-exp.y, coffread.c, command.c, command.h, copying.awk,
932 dbxread.c, gdbtypes.c, infcmd.c, inferior.h, infrun.c,
933 m2-exp.y, printcmd.c, remote.c, solib.c, source.c, stack.c,
934 symtab.c, tm-sun4os4.h, tm-sun4os5.h, values.c: Lint.
935 * symfile.c (add_symbol_file_command): Initialize mapped/readnow.
936
cc221e76
FF
937Wed Apr 1 11:39:52 1992 Fred Fish (fnf@cygnus.com)
938
939 * breakpoint.h (bpdisp, bptype): Remove trailing comma.
940 * symtab.h (current_source_symtab): Make extern
941 * symtab.h (current_source_line): Make extern
942 * inferior.h: Move all procfs.c prototypes to one place, add
943 prototype for proc_signal_handling_change. Add prototypes for
944 signal_stop_state, signal_print_state, and signal_pass_state.
945 * inferior.h (stop_soon_quietly): Make extern
946 * inferior.h (attach_flag): Make extern
947 * infrun.c (NOTICE_SIGNAL_HANDLING_CHANGE): Default is null.
948 * infrun.c (signal_stop_state, signal_print_state,
949 signal_pass_state): New functions to query specific signal
950 handling flags.
951 * infrun.c (handle_command): Minor error message change, add
952 NOTICE_SIGNAL_HANDLING_CHANGE.
953 * procfs.c (open_proc_file): Remove iris specific reset of
954 inherit-on-fork flag, moved to proc_set_exec_trap().
955 * procfs.c (proc_set_exec_trap): Add SVR4 and iris code
956 to reset inherit-on-fork flag, bash comment to GNU form.
957 * procfs.c (proc_base_address, set_proc_siginfo,
958 fetch_core_registers): Conform to code style.
959 * procfs.c (signame.h): Include.
960 * procfs.c (MAX_SYSCALLS, syscall_table[], init_syscalltable(),
961 syscallname(), info_proc_syscalls()): New macros, tables, and
962 functions to organize and report system call information.
963 * procfs.c (saved_fltset, saved_trace, saved_sighold,
964 saved_exitset, saved_entryset): Add to procinfo struct.
965 * procfs.c (struct trans): Add.
966 * procfs.c (pr_flag_table, pr_why_table, faults_table,
967 siginfo_table, errno_table): Tables to translate numeric values
968 to symbolic names and short descriptions.
969 * procfs.c (signalname, info_proc_signals): Add function and
970 prototype.
971 * procfs.c (proc_info): Now info_proc.
972 * procfs.c (proc_info_address_map): Now info_proc_mappings.
973 * procfs.c (info_proc_flags, info_proc_stop, info_proc_siginfo,
974 info_proc_faults, lookupname, lookupdesc, sigcodename,
975 sigcodedesc): New functions.
976 * procfs.c (proc_signal_handling_change): New function to set
977 the trace flags based on the state of gdb's signal handling flags.
978 * procfs.c (inferior_proc_init): Call proc_signal_handling_change
979 and remove code to do PIOCSTRACE ioctl.
980 * procfs.c (attach, detach): Preserve and restore process flags
981 using saved_* fields in procinfo struct.
982 * procfs.c (attach): Call proc_signal_handling_change.
983 * procfs.c (info_proc): Major rework to expand "info proc" cmd.
984 * procfs.c (proc_desc): Update for latest changes.
985 * xm-irix4.h (CREATE_INFERIOR_HOOK): Protect by USE_PROC_FS.
986 * xm-irix4.h (NOTICE_SIGNAL_HANDLING_CHANGE): Add definition.
987 * xm-sysv4.h (NOTICE_SIGNAL_HANDLING_CHANGE): Add definition.
988
989Tue Mar 31 18:38:28 1992 Fred Fish (fnf@cygnus.com)
990
991 * procfs.c (set_proc_siginfo): Add prototype and new function.
992 * procfs.c (detach, child_resume): Call set_proc_siginfo to set
993 up inferior siginfo struct.
994 * elfread.c (elf_symfile_read): Compute the relocation amount
995 by subtracting off the address of the ".text" section.
996 * solib.c: Add pointer to ".text" section to so_list struct.
997 * solib.c (solib_map_sections): Initialize pointer to ".text"
998 section in so_list struct.
999 * solib.c (symbol_add_stub): Pass base address of ".text"
1000 section to symbol_file_add, rather than the load address of
1001 the shared library. On SunOS they are the same. On SVR4 they
1002 are not.
1003
3bec9cdd
SG
1004Tue Mar 31 17:48:15 1992 Stu Grossman (grossman at cygnus.com)
1005
1006 * mipsread.c (parse_procedure): PDR.isym should get pointer to
1007 function name, not .gdbinfo. symbol.
1008
e360572c
JG
1009Tue Mar 31 17:05:04 1992 John Gilmore (gnu at cygnus.com)
1010
1011 * breakpoint.c (breakpoint_1): Fix prototype, this time for sure!
1012
fad3fc94
SG
1013Tue Mar 31 11:01:06 1992 Stu Grossman (grossman at cygnus.com)
1014
e360572c 1015 * Makefile.in (VERSION): 4.4.8
5e8fdb82 1016
fad3fc94
SG
1017 * procfs.c (open_proc_file): Disable inherit-on-fork flag so that
1018 commands in .cshrc/.profile won't get traced.
1019
3b0b9220
JG
1020Tue Mar 31 08:11:58 1992 John Gilmore (gnu at cygnus.com)
1021
1022 * elfread.c (elf_symtab_read): Use xmalloc, not bfd_xmalloc.
1023 * exec.c (build_section_table): Don't abort if no sections.
1024 * sparc-tdep.c (single_step): Lint.
1025 * utils.c (mrealloc): Handle realloc (0, size) case here.
1026
d1bb1d41
SG
1027Mon Mar 30 16:50:43 1992 Stu Grossman (grossman at cygnus.com)
1028
f8b4aa8e
SG
1029 * Makefile.in (alldeps.mak): Config files are now *.m[ht] as
1030 opposed to m[ht]-*!
1031
9d4c62df
SG
1032 * config/irix4.mh: Don't use coredep.o. It doesn't work with procfs.
1033
d1bb1d41
SG
1034 * mipsread.c (parse_symbol, parse_procedure): Re-do the way that
1035 .gdbinfo. symbols are created. Move creation from parse_procedure
1036 to parse_symbol, where it is fairly easy to grow the symtab. This
1037 also fixes a symtab trashing bug on all mips-based systems.
1038 * (got_numargs, lookup_numargs, free_numargs): Delete. Not
1039 needed anymore.
1040 * tm-mips.h, tm-iris3.h, mips-tdep.c, mipsread.c: Re-do struct
1041 mips_extra_func_info, and all the PROC_xxx macros that look at it.
1042
d26b50b7
PB
1043Mon Mar 30 14:17:53 1992 Per Bothner (bothner@cygnus.com)
1044
1045 * c-exp.y: Add missing return type to yyparse() prototype.
1046
be772100
JG
1047Sat Mar 28 22:22:06 1992 John Gilmore (gnu at cygnus.com)
1048
1049 Create and use macros for iterating on symtabs, psymtabs, msymbols.
1050
1051 * minsyms.c (iterate_over_msymbols): Remove; clunky and slow.
1052 * symfile.h, symtab.h (iterate_over_msymbols): Remove prototype
1053 * coffread.c (coff_symfile_read): iterate_over_symtabs => ALL_SYMTABS.
1054 (patch_opaque_types): Avoid dummy args and result.
1055 * objfiles.c (have_partial_symbols, have_full_symbols,
1056 have_minimal_symbols): explicit iteration => ALL_OBJFILES; simplify.
1057 (iterate_over_objfiles, iterate_over_symtabs,
1058 iterate_over_psymtabs): Remove, clunky and slow.
1059 * objfiles.h: Replace iterate_over_* prototypes with ALL_SYMTABS,
1060 ALL_PSYMTABS, and ALL_MSYMBOLS macros.
1061 * symmisc.c (dump_symtab, dump_psymtab, dump_msymbols,
1062 dump_objfile): Remove dummy args and results. Move filename
1063 comparisons to callers.
1064 (printsyms_command, printpsyms_command, printmsyms_command,
1065 printobjfiles_command): iterate_over_* => ALL_*. Compare filenames.
1066 * symtab.c (lookup_symtab_1, lookup_symtab, lookup_partial_symtab,
1067 lookup_symbol, find_main_psymtab, find_pc_symtab, sources_info,
1068 list_symbols, make_symbol_completion_list): Replace explicit
1069 iteration with ALL_SYMTABS, ALL_PSYMTABS, or ALL_MSYMBOLS.
1070 Eliminate Dijkstra flag crap, break out of loops with gotos.
1071 (lookup_symtab_1): Protect '/' tests from short filenames.
1072 (cplus_mangled_symbol): Move inline into lookup_symbol.
1073 * xcoffexec.c (relocate_objfile_msymbols): Remove poor hack.
1074 (relocate_minimal_symbol): Move inline to vmap_symtab.
1075 (vmap_symtab): Replace iteration with ALL_OBJFILES,
1076 iterate_over_msymbols with ALL_MSYMBOLS.
1077
1078 Misc cleanup prior to release.
1079
1080 * Makefile.in (VERSION): Roll to 4.4.7.
1081 (HFILES): Add call-cmds.h.
1082 * call-cmds.h: New header for command fns called by other files.
1083 * breakpoint.c (watchpoints_info): Remove, same as breakpoints_info.
1084 (breakpoint_1): Remove unused type arg. Change callers.
1085
1086 * dwarfread.c (dwarf_build_psymtabs): Remove mainline test.
1087 * mipsread.c (compare_symtabs, compare_psymtabs): Remove, unused.
1088 * mipsread.c: Add prototypes for all static functions.
1089
1090 * symmisc.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
1091 dump_blockvector, dump_block, dump_addrchass, dump_namespace,
1092 dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove, unused.
1093 * xcoffread.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
1094 dump_blockvector, dump_block, dump_addrchass, dump_namespace,
1095 dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove 2nd
1096 unused copy!
1097
1098 * buildsym.c (define_symbol): Handle global register variables
1099 (from Pierre Willard). Complain if register numbers are too large.
1100 * target.c (nomemory): Now that higher levels examine errno, give EIO.
1101 * tm-sparc.h: Don't #include <sun4/reg.h>.
1102 * sparc-tdep.c (sparc_frame_chain, frame_saved_pc): Remove
1103 dependency on <sun4/reg.h>. Start to handle cross-byte-order.
1104
1105 * language.h: Avoid forward enum declaration.
1106 * configure.in, tm-sun4os5.h, xm-sun4os5.h, config/sun4os5.mh,
1107 config/sun4os5.mt: New host and target.
1108 * defs.h (errno): #include <errno.h> rather than assuming int.
1109 From Pierre Willard.
1110
1111 * breakpoint.c, breakpoint.h, buildsym.c, coffread.c, cplus-dem.c,
1112 dbxread.c, dwarfread.c, elfread.c, infcmd.c, infrun.c, inftarg.c,
1113 language.c, main.c, mem-break.c, mips-tdep.c, mipsread.c,
1114 partial-stab.h, remote.c, saber.suppress, symfile.c, symtab.c,
1115 valops.c, valprint.c, xcoffread.c, c-exp.y, m2-exp.y, blockframe.c,
1116 command.c, core.c, exec.c, gdbtypes.h, parse.c, printcmd.c, solib.c,
1117 sparc-xdep.c, utils.c, value.h, values.c: Lint.
1118
1119Sat Mar 28 02:43:26 1992 John Gilmore (gnu at cygnus.com)
1120
1121 * buildsym.c (read_range_type): Avoid int overflow by using unsigned.
1122 * dbxread.c (dbx_symfile_init): Remove bogus `lvalue cast'.
1123 * language.h (enum exp_opcode): Avoid forward enum def.
1124 * main.c (define_command, user_defined_command): Lint.
1125 * mem-break.c, xcoffread.c: Lint.
1126 * solib.c: Only #include <a.out.h> on SunOS, not SVR4.
1127
1eeba686
PB
1128Sun Mar 29 14:16:22 1992 Per Bothner (bothner@cygnus.com)
1129
1130 * Merged in latest RS6000 diffs from Metin G. Ozisik.
1131 * xcoffsolib.c, xcoffsolib.h: New files, from Metin.
1132 * Various files: Changed #ifdef IBM6000 to IBM6000_HOST
1133 or IBM6000_TARGET as (approximately) appropriate.
1134
bf349b77
FF
1135Sat Mar 28 13:00:10 1992 Fred Fish (fnf@cygnus.com)
1136
1137 * objfiles.h (OBJF_SYMS): Define flag bit for objfile flags.
1138 * symfile.c (symbol_file_add): Use OBJF_SYMS to decide whether
1139 or not to try reading symbols from a mapped objfile. Plugs memory
1140 leak due to shared libraries generating no psymtabs or symtabs.
1141
c2e4669f
JG
1142Fri Mar 27 15:44:55 1992 John Gilmore (gnu at cygnus.com)
1143
1144 * buildsym.c (MAX_OF_C_TYPE, MIN_OF_C_TYPE): Unused, remove.
1145 * copying.awk: Lint. Make stronger warning at top of copying.c.
1146 * elfread.c (elf_symtab_read): Eliminate check of mainline.
1147 * gdbtypes.c (smash_to_*): Remove FIXME comments.
1148 (lookup_pointer_type): Add FIXME comment.
1149 * main.c (set_history_size_command): Disallow negative size.
1150 * partial-stab.h: Update copyright.
1151 * rs6000-tdep.c (skip_trampoline_code): Better comments.
1152
1153Wed Mar 25 10:45:38 1992 John Gilmore (gnu at cygnus.com)
1154
1155 * main.c (set_history_size_command): Negative size is error.
1156 (Reported by Peggy Fieland.)
1157
3624c875
FF
1158Thu Mar 26 17:01:18 1992 Fred Fish (fnf@cygnus.com)
1159
1160 * coffread.c (coff_symfile_init): Update comment.
1161 * dbxread.c (DBX_SYMFILE_INFO, DBX_TEXT_SECT, DBX_SYMCOUNT,
1162 DBX_STRINGTAB, DBX_STRINGTAB_SIZE, DBX_SYMTAB_OFFSET): Define
1163 macros to access the dbx specific objfile information.
1164 * dbxread.c (symfile_string_table, symfile_string_table_size):
1165 Remove these local variables.
1166 * dbxread.c (read_ofile_symtab, psymtab_to_symtab_1,
1167 read_dbx_symtab): Remove the stringtab and stringtab_size params
1168 from the function prototypes, the function definition, and the
1169 function calls. These are now available via DBX_STRINGTAB and
1170 DBX_STRINGTAB_SIZE using the objfile pointer.
1171 * dbxread.c (dbx_symfile_read): Relocate addr before using as
1172 an arg to read_dbx_symtab.
1173 * dbxread.c (dbx_symfile_read): Remove code that free'd the
1174 stringtab and the dbx specific per-objfile private info.
1175 * dbxread.c (init_psymbol_list): Remove symbol count from passed
1176 args in prototype, function definition, and function calls. It is
1177 now available via the DBX_SYMCOUNT macro using the objfile
1178 pointer.
1179 * dbxread.c (dbx_symfile_read, dbx_symfile_init): Remove the
1180 local instance of struct dbx_symfile_info and replace with DBX_*
1181 macros.
1182 * dbxread.c (dbx_symfile_read): Remove init's of now deleted
1183 symfile_string_table and symfile_string_table_size.
1184 * dbxread.c (dbx_symfile_finish): Remove now obsolete free of
1185 symfile_string_table.
1186 * dbxread.c (init_psymbol_list): Use DBX_SYMCOUNT.
1187 * dbxread.c (dbx_psymtab_to_symtab): Remove local stringtab and
1188 stringtab size variables. Remove all code that used to reread
1189 the stringtab.
1190 * objfiles.c (allocate_objfile): Move calls to init_malloc()
1191 to prior to any calls to mmalloc for the objfile specific heap.
1192 * utils.c (init_malloc): Document the requirement that for each
1193 heap for which corruption checking is desired, that init_mmalloc
1194 must be called prior to any mmalloc calls on the heap.
1195
1196Thu Mar 26 13:20:06 1992 Per Bothner (bothner@cygnus.com)
1197
1198 * rs6000-pinsn.c: Make dis-assembly output more like
1199 other targets: Don't print instruction in hex before
1200 the assembly; use print_address to print out jump
1201 destinations.
1202
04f27ddc
PB
1203Wed Mar 25 16:52:35 1992 Per Bothner (bothner@cygnus.com)
1204
1205 * c-exp.y, gdbtypes.h: Add builtin_type_signed_char.
1206 * cplus-dem.c: Support "Sc" meaning "signed char".
1207
88f36033
SG
1208Wed Mar 25 15:21:44 1992 Stu Grossman (grossman at cygnus.com)
1209
1210 * configure.in: fix iris/iris3.
1211
5c71cf23
PB
1212Wed Mar 25 14:55:48 1992 Per Bothner (bothner@cygnus.com)
1213
1214 * command.c, main.c (various places): Use ctype.h macros
1215 (such as isupper(x)), instead of hard-wiring in ASCII-isms
1216 (such as (x >= 'A' && x <= 'Z')).
1217 (There are still more of these in other files.)
1218 * main.c (defined_command): Lower-case the user's
1219 new command before entering it. Needed because
1220 command lookup is case-insensitive (and also lower-cases).
1221 (Based on Metin's earlier patch.)
1222
fd2329d7
RP
1223Tue Mar 24 23:27:01 1992 K. Richard Pixley (rich@cygnus.com)
1224
1225 * config/irix4.mh: new file.
1226
4f301966
SG
1227Tue Mar 24 14:17:48 1992 Stu Grossman (grossman@cygnus.com)
1228
0a22f63e
SG
1229 * infcmd.c (step_1): Call disable_longjmp_breakpoint at the right
1230 time.
1231
1232 * xm-mips.h: Declare strdup for ultrix.
9d53db1a 1233
4f301966
SG
1234 * mipsread.c (fixup_sigtramp): Make sure that current_objfile is setup
1235 when calling new_symbol.
1236 * mips-tdep.c (mips_frame_chain): Use symfile_objfile instead of
1237 current_objfile.
1238
5c8d3927
PB
1239Tue Mar 24 13:26:25 1992 Per Bothner (bothner@rtl.cygnus.com)
1240
1241 * config/rs6000.mh: Update (for Fred's new mmalloc)
1242 flags to disable use of GNU malloc/mmalloc.
1243 * munch: Change SYSV rule to allow .text before the label,
1244 as well as after, to work for AIX.
1245 * gdbtypes.h: Minor clarifiction.
1246
be1384b0
MT
1247Tue Mar 24 07:26:19 1992 Michael Tiemann (tiemann@cygnus.com)
1248
1249 * buildsym.c (read_struct_type): Handle cretinous dbx symbol name
1250 continuation in yet another place (between method declarations).
1251
62a469e1
SG
1252Mon Mar 23 23:01:41 1992 Stu Grossman (grossman at cygnus.com)
1253
1254 * mips-tdep.c: include symfile.h and objfiles.h to fix
1255 compilation errors.
1256
b3024b21
PB
1257Mon Mar 23 15:49:14 1992 Per Bothner (bothner@cygnus.com)
1258
1259 * valops.c (value_struct_elt_for_reference): Added 'offset'
1260 parameter to handle multiple inheritance.
1261 * eval.c, value.h: Update accordingly.
1262
5e2e79f8
FF
1263Fri Mar 20 17:43:27 1992 Fred Fish (fnf@cygnus.com)
1264
1265 * objfiles.h: New file
1266 * Makefile.in (HFILES): Add objfiles.h
1267 * blockframe.c: Remove entry_scope_lowpc, entry_scope_highpc,
1268 main_scope_lowpc, main_scope_highpc.
1269 * blockframe.c, buildsym.c, coffread.c, dbxread.c, dwarfread.c,
1270 elfread.c, gdbtypes.h, minsyms.c, mipsread.c, objfiles.c, solib.c,
1271 source.c, symfile.c, symmisc.c, symtab.c, target.c, xcoffexec.c,
1272 xcoffread.c, : Include objfiles.h.
1273 * tm-29k.h, tm-i386v.h, tm-merlin.h, tm-rs6000.h, tm-sun386.h,
1274 tm-symmetry.h, tm-tahoe.h, tm-umax.h, tm-vax.h, m88k-tdep.c,
1275 mips-tdep.c (FRAME_CHAIN): Renamed outside_startup_file to
1276 inside_entry_file() and logic changed appropriately.
1277 * blockframe.c (outside_startup_file): Renamed to
1278 inside_entry_file() and logic changed appropriately.
1279 * blockframe.c (inside_main_scope): Renamed to inside_main_func()
1280 and logic changed to use per-objfile specific fields.
1281 * blockframe.c (inside_entry_scope): Renamed to
1282 inside_entry_func() and logic changed to use per-objfile specific
1283 fields.
1284 * blockframe.c, buildsym.h, coffread.c, dwarfread.c, mipsread.c,
1285 symfile.c, mips-tdep.c (startup_file_start, startup_file_end):
1286 Remove extern decls.
1287 * symfile.c, symfile.h (entry_point): Remove extern decl.
1288 * coffread.c (coff_symfile_init): Common entry point init code
1289 moved to symfiles.c, call init_entry_point_info().
1290 * coffread.c (complete_symtab): Use new per-objfile entry info.
1291 * mip-tdep.c (mips_frame_chain): Use new per-objfile entry info.
1292 * mipsread.c (parse_partial_symbols): Use new per-objfile entry
1293 info.
1294 * dbxread.c (read_dbx_symtab): Use new per-objfile entry info.
1295 * defs.h (inside_entry_scope, outside_startup_file,
1296 inside_main_scope): Prototypes changed for renames to
1297 inside_entry_func, inside_entry_file, inside_main_func,
1298 respectively.
1299 * symfile.c (syms_from_objfile): Common entry point init code
1300 moved to init_entry_point_info() and call init_entry_point_info().
1301 * symfile.h (init_entry_point_info): Include prototype.
1302 * xcoffread.c (aixcoff_symfile_init): Common entry point init code
1303 moved to symfiles.c and call init_entry_point_info().
1304 * dwarfread.c (entry_scope_lowpc, entry_scope_highpc,
1305 main_scope_lowpc, main_scope_highpc): Remove extern decls.
1306 * dwarfread.c (read_func_scope, read_file_scope): Use new per-
1307 objfile entry info.
1308 * frame.h (FRAME_CHAIN_VALID): Provide default definition that
1309 works for the majority of targets.
1310 * tm-68k.h, tm-convex.h, tm-h8300.h, tm-i386v.h, tm-irix3.h,
1311 tm-merlin.h, tm-mips.h, tm-pyr.h, tm-rs6000.h, tm-sparc.h,
1312 tm-sun386.h, tm-tahoe.h, tm-umax.h, tm-vax.h (FRAME_CHAIN_VALID):
1313 Use default definition in frame.h.
1314 * frame.h (selected_frame_level): Make decl extern.
1315 * objfiles.c, symfile.c (current_objfile): Moved to objfiles.c
1316 * objfiles.c, symfile.c (symfile_objfile): Moved to objfiles.c
1317 * partial-stab.h: Use new per-objfile entry info.
1318 * symfile.h (struct objfile): Removed, moved to objfiles.h.
1319 * symfile.h, objfiles.h (allocate_objfile, free_objfile,
1320 free_all_objfiles, iterate_over_objfiles, iterate_over_symtabs,
1321 iterate_over_psymtabs, have_partial_symbols, have_full_symbols,
1322 have_minimal_symbols): Prototypes moved to objfiles.h.
1323 * symfile.h, objfiles.h (ALL_OBJFILES, ALL_OBJFILES_SAFE):
1324 Macros moved to objfiles.h.
1325 * tm-h8300.h, tm-i386v4.h (FRAME_CHAIN_VALID_ALTERNATE): Define.
1326
01be6913
PB
1327Thu Mar 19 18:49:45 1992 Per Bothner (bothner@cygnus.com)
1328
1329 More C++ improvements (pointers to members, qualified names).
1330 * c-exp.y: Support exp.type::name and exp->type::name
1331 syntaxes. (Unfortunately, doesn't work for static members.)
1332 * c-exp.y, eval.c: Make type::~type work better.
1333 * eval.c (evaluate_subexp: OP_SCOPE): Replace use of
1334 value_static_field by value_struct_elt_for_reference.
1335 * eval.c (evaluate_subexp): Merge code for STRUCTOP_MEMBER
1336 and STRUCTOP_MPTR; cast arg1 to domain-type of arg2.
1337 * eval.c (evaluate_subexp): Remove special case for UNOP_ADDR
1338 for OP_SCOPE operand; no point in it now that we use lazy
1339 reading of values, and use "reference to member" objects.
1340 * gdbtypes.h: Clarify comment.
1341 * valops.c: Change value_struct_elt_for_address to return
1342 a reference (or variable), rather than a pointer. Change
1343 the name to value_struct_elt_for_reference to reflect this.
1344 Returning a reference instead of a address provides a
1345 generalization, since we can use the routine for both
1346 class::name as well as &class::name.
1347 Also, recurse to handle multiple inheritance properly.
1348 * valprint.c: Moved code to print pointer-to-members
1349 to new function point_class_member. This allows a
1350 "reference-to-member" to be printed using the same code.
1351 * valprint.c (type_print_varspec_prefix): Avoid printing
1352 "struct " for domains of class-member types.
1353 * valops.c (search_struct_field): Inline code for simplified
1354 version of value_static_field (which can then be deleted).
1355 * value.h: Rename value_struct_elt_for_address to
1356 value_struct_elt_for_reference. Delete value_static_field.
1357 * values.c: Remove no longer used function value_static_field.
1358
80d68b1d
FF
1359Thu Mar 19 13:54:11 1992 Fred Fish (fnf@cygnus.com)
1360
1361 * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
1362 elfread.c (coff_symfile_finish): Add function, prototype, and
1363 add to the xxxx_sym_fns struct for each file type. Also reformat
1364 the xxxx_sym_fns vector to a standard format and add comments.
1365 * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
1366 elfread.c (xxx_symfile_new_init, xxx_symfile_init, xxx_symfile_read):
1367 Pass pointer to struct objfile rather than pointer to sym_fns.
1368 Change references inside each function accordingly. Allocate any
1369 symbol file specific info in the per-objfile memory region.
1370 * dbxread.c (free_and_init_header_files): Break function into
1371 free_header_files(), called from dbx_symfile_finish(), and
1372 init_header_files(), called from dbx_new_init().
1373 * dbxread.c (dbx_new_init): Move deallocation things to new
1374 dbx_symfile_finish function.
1375 * elfread.c (elf_new_init): Call buildsym_new_init().
1376 * objfiles.c (free_objfile): Call the appropriate symfile_finish()
1377 routine for the objfile before deallocating other stuff.
1378 * sparc-tdep.c (get_longjmp_target): Cast target_read_memory arg.
1379 * symfile.h: Move struct sym_fns to before struct objfile def.
1380 Add sym_finish function pointer and change prototypes of other
1381 function pointers to reflect passing struct objfile pointer rather
1382 than struct sym_fns pointer.
1383 * symfile.c: Remove now obsolete symtab_fns pointer.
1384 * symfile.c (symfile_init): Renamed to find_sym_fns, and now only
1385 locates the correct sym_fns struct for the given objfile.
1386 * symfile.c (syms_from_objfile, symbol_file_add): Restructured
1387 for better support of mapped symbol tables.
1388 * symfile.c (symbol_file_command): Remove obsolete code using
1389 symfile_fns.
1390 * symfile.h: Remove duplicate declarations for symfile_objfile,
1391 entry_point, and object_files.
1392 * target.c (target_info): Compare symfile_objfile to NULL.
1393 * xcoffread.c (aixcoff_new_init): Move deallocation stuff to
1394 aixcoff_symfile_finish().
1395
dc52fc71
FF
1396Wed Mar 18 18:22:46 1992 Fred Fish (fnf@cygnus.com)
1397
1398 * infrun.c (IN_SOLIB_TRAMPOLINE): Add default definition.
1399 * infrun.c (wait_for_inferior): Use IN_SOLIB_TRAMPOLINE.
1400 * tm-sysv4.h (IN_SOLIB_TRAMPOLINE): Add SVR4 definition.
1401
2cd99985
PB
1402Wed Mar 18 15:51:15 1992 Per Bothner (bothner@cygnus.com)
1403
1404 Some improvements to g++ debugging.
1405 * symtab.c (list_symbols): demangle before pattern matching.
1406 * symtab.c: Other fixes to improve handing of operators.
1407 * valprint.c (type_print_base): Fix test for constructor.
1408 * values.c (value_static_field): Allow evaluation of
1409 CLASS::METHOD, returning a function pointer.
1410
b0246b3b
FF
1411Wed Mar 18 08:39:52 1992 Fred Fish (fnf@cygnus.com)
1412
1413 * Makefile.in (VERSION): Roll 4.4.6.
1414 * exec.c (exec_file_command): Add code to ignore optional args
1415 passed in by file_command() for use in symbol_file_command().
1416 * main.c (main): Document -mapped and -readnow in help summary.
1417 * objfiles.c (open_mapped_file): Cosmetic change, arg renamed.
1418 * objfiles.c (allocate_objfile): Filename arg removed. Changes
1419 to get filename from bfd with bfd_get_filename(). Test mapto
1420 against 0, not NULL. Use mstrsave() to make copy of filename.
1421 * remote-mm.c (mm_load): Symbol_file_add() takes an additional
1422 arg.
1423 * remote-vx.c (vx_load_command, add_symbol_stub):
1424 Symbol_file_add() takes an additional arg.
1425 * solib.c (symbol_add_stub): Symbol_file_add() takes an
1426 additional arg.
1427 * symfile.c (symfile_open): Renamed to symfile_bfd_open and
1428 changed to return a bfd not an objfile pointer.
1429 * symfile.c (syms_from_objfile): Eliminate local copy of bfd.
1430 * symfile.c (symbol_file_add): Takes an additional arg (readnow).
1431 Change to eliminate local bfd and use symfile_bfd_open() plus
1432 allocate_objfile(). Add code to implement readnow option.
1433 * symfile.c (symbol_file_command): Changes to option handling,
1434 readnow functionality moved to symbol_file_add().
1435 * symfile.c (symfile_init): Eliminate local copy of bfd.
1436 * symfile.c (add_symbol_file_command): Changes to parse mapped
1437 and readnow options.
1438 * symfile.h (allocate_objfile): Arg removed from prototype.
1439 * symtab.h (symbol_file_add): Arg added to prototype.
1440 * xcoffexec.c (map_vmap): Allocate_objfile() takes an additional
1441 arg.
1442
318bf84f
FF
1443Sat Mar 14 16:38:47 1992 Fred Fish (fnf@cygnus.com)
1444
1445 * gmalloc.c, gmalloc.h mcheck.c mmap-alloc.c mmap-sbrk.c mtrace.c,
5a4470de 1446 mtrace.awk, state.c, state.h: Removed.
318bf84f
FF
1447 * .gdbinit: Add ../malloc, ../libiberty, and ../bfd to list of
1448 directories searched for source files.
1449 * Makefile.in (GNU_MALLOC, MALLOC_CFLAGS, MALLOCSRC): Removed
1450 * Makefile.in (MMALLOC_DIR, MMALLOC_DEP, MMALLOC_LIB,
1451 MMALLOC_DISABLE, MMALLOC_CHECK, MMALLOC_CFLAGS): Add
1452 * Makefile.in (CFLAGS): Replace MALLOC_CFLAGS with MMALLOC_CFLAGS.
1453 * Makefile.in (CLIBS, CDEPS): Add MMALLOC_LIB
1454 * Makefile.in (ADD_FILES, ADD_DEPS): Remove GNU_MALLOC.
1455 * Makefile.in (SFILES_MAINDIR): Remove stat.c mmap-alloc.c, mmap-
1456 sbrk.c
1457 * Makefile.in (HFILES): Remove state.h
1458 * Makefile.in (POSSLIBS_MAINDIR): Remove MALLOCSRC.
1459 * Makefile.in (OBS): Remove state.o mmap-alloc.o mmap-sbrk.o
1460 * Makefile.in (saber_gdb): Remove mcheck, mtrace. Add MMALLOC_DIR.
1461 * Makefile.in (clean): Remove all object files.
1462 * c-exp.y: Define malloc to xmalloc and realloc to xrealloc.
1463 * cplus-dem.c: Remove prototypes definitions that are now done in
1464 def.h.
1465 * dbxread.c (throughout): Change from using per-objfile
1466 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
1467 * defs.h: Remove prototypes for mmap_* functions. Add prototypes
1468 for xmmalloc, xmrealloc, mfree, mmcheck, mmtrace, mmalloc_attach,
1469 mmalloc_detach, mmalloc_setkey, msavestring, and mstrsave, nomem.
1470 * depend: Remove dependencies for state.o, state.h.
1471 * dwarfread.c: Add declaration for warning_pre_print.
1472 * dwarfread.c (dwarfwarn): Use warning_pre_print.
1473 * dwarfread.c (throughout): Change from using per-objfile
1474 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
1475 * gdbtypes.c (lookup_fundamental_type): Fix init_type calls to
1476 use supplied objfile.
1477 * i386-xdep.c (print_387_status): Change to use warning() rather
1478 than printfs.
1479 * i387-tdep.c (print_387_control_word): Change to use warning()
1480 rather than printfs.
1481 * infrun.c (wait_for_inferior): Remove unreachable abort() call
1482 that some compilers grumble about.
1483 * language.c (throughout): Add declaration for warning_pre_print
1484 and using warning() instead of printfs.
1485 * m2-exp.y: Define malloc to xmalloc and realloc to xrealloc.
1486 * main.c (main): Add declaration for warning_pre_print and set it
1487 similarly to error_pre_print. Add declarations for
1488 mapped_symbol_files and readnow_symbol_files. Add appropriate
1489 definitions to long_options[].
1490 * minsyms.c: Trivial fix to comment.
1491 * objfiles.c (allocate_objfile): Substantially rewritten for
1492 using mapped symbol files.
1493 * objfiles.c (throughout): Change from using per-objfile
1494 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
1495 * objfiles.c (open_mapped_file, mapped_to_address): Add functions.
1496 * source.c (throughout): Change from using per-objfile
1497 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
1498 * source.c (open_source_file): Use mstrsave to save file name in
1499 mapped symbol region for objfile.
1500 * symfile.c: Remove include for state.h.
1501 include to local form.
1502 * symfile.c (symbol_file_add_digested): Remove.
1503 * symfile.c (symbol_file_add): Substantially rewritten for mapped
1504 symbol files.
1505 * symfile.h: Remove malloc/xrealloc/xmalloc/xrealloc/free members
1506 from objfile structure. Add malloc descriptor pointer (md).
1507 * symfile.h (OBJF_DUMPABLE): Changed name to OBJF_MAPPED.
1508 * symm-xdep.c (print_fpu_status): Use warning() rather than
1509 printfs.
1510 * symmisc.c (free_symtab_block): Now takes and uses current
1511 objfile pointer.
1512 * symmisc.c (throughout): Change from using per-objfile
1513 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
1514 * symtab.c (cplus_mangled_symbol): Cast return value to avoid
1515 Sun compiler grumblings when PTR is char *.
1516 * symtab.c (lookup_symbol): Cast return value of iterate_over_
1517 msymbols() to correct pointer type.
1518 * utils.c (warning_pre_print): Initialize to "\nwarning: ".
1519 * utils.c (fatal, fatal_dump_core): Ensure that the fatal
1520 error always starts on a line of it's own.
1521 * utils.c (init_malloc, malloc_botch, xmalloc, xrealloc):
1522 Rewrite for new mapped malloc package use.
1523 * utils.c (mmalloc, mrealloc, mfree): Stubs for configurations
1524 that don't want to use the mapped malloc package; pass arguments
1525 on to traditional malloc package functions.
1526 * utils.c (nomem): Add for fatal virtual memory exhausted aborts.
1527 * utils.c (xmmalloc, xmrealloc, xmalloc, xrealloc): Like mmalloc,
1528 mrealloc, malloc, and realloc but get fatal error if runs out
1529 of memory.
1530 * utils.c (msavestring, mstrsave): Save a string in a specific
1531 mapped malloc region.
1532 * utils.c (print_spaces): Use xmalloc to get the buffer.
1533 * xm-amix.h, xm-i386v4.h, xm-sun3os4.h, xm-sun4os4.h: Add defines
1534 for MMAP_BASE_ADDRESS and MMAP_INCREMENT.
1535 * config/i386v4.mh: Insignificant reorganization.
1536
0750528a
FF
1537Sat Mar 14 11:44:47 1992 Fred Fish (fnf@cygnus.com)
1538
1539 * xcoffread.c: Only enable compilation of debugging functions
1540 if IBM6000 is defined. Fails to compile otherwise.
1541
4db3902a
RP
1542Fri Mar 13 15:51:11 1992 K. Richard Pixley (rich@cygnus.com)
1543
1544 * Makefile.in: pass MAKEINFO down on info.
1545
bec9fad9
JG
1546Fri Mar 13 12:56:36 1992 John Gilmore (gnu at cygnus.com)
1547
1548 * mipsread.c (mipscoff_symfile_read): Eliminate a lot of
1549 useless code, including an lseek to an uninitialized variable.
1550 Reported by Jim Williams <jimbo@wrs.com>.
1551
6730b139
PB
1552Thu Mar 12 11:56:46 1992 Per Bothner (bothner@cygnus.com)
1553
4db3902a
RP
1554 Merged in patches from metin@ibmpa.awdpa.ibm.com (Metin G.
1555 Ozisik) (dated Fri, 6 Mar 92 17:51) for the rs6000.
1556 * minsyms.c, symfile.c: Changes that may be generally
1557 applicable, but are #ifdef IBM6000 for now.
1558 * rs6000-xdep.c: Fixed typo in comment.
1559 * rs6000-tdep.c: Non-substatial changes.
1560 * xoffread.c: The main change here is addition of some
1561 debugging functions.
1562 * xoffexec.c: More changes.
1563
1564 * xcoffread.c: Fixed two too-few-parameters bugs.
1565
6730b139
PB
1566 * solib.h, infrun.c, tm-rs6000.h: Add a PID parameter
1567 to SOLIB_CREATE_INFERIOR_HOOK macro.
1568
a846ac55
FF
1569Sun Mar 8 21:17:48 1992 Fred Fish (fnf@cygnus.com)
1570
1571 * symfile.h: Add prototype for iterate_over_msymbols().
1572 * symtab.c (cplus_mangled_symbol): Add function.
1573 * symtab.c (lookup_symbol): Call cplus_mangled_symbol via
1574 iterate_over_msymbols to find demangled C++ symbol.
1575 * xcoffexec.c (relocate_minimal_symbol): Return meaningful
1576 value to iterate_over_msymbols().
1577 * xcoffexec.c (vmap_symtab): Ignore return from iterate_over_
1578 msymbols().
1579
1580Fri Mar 6 21:59:34 1992 K. Richard Pixley (rich@cygnus.com)
1581
1582 * Makefile.in: added check target.
1583
a1106a1e
JG
1584Thu Mar 5 23:56:01 1992 John Gilmore (gnu at cygnus.com)
1585
1586 * ecoff.c: Move to ../bfd/coff-msym.c.
1587 * config/mt-*mips: Remove ecoff.o from the configuration.
53ccaf5f
JG
1588 * remote.c (): Add newline to initial +.
1589 (remote_resume): Mention how to cope with signals.
1590 (remote_interrupt): Add debug msg.
1591 (remote-wait): Implement new 'T' reply, which includes
1592 status, PC, and FP all in a single short message.
1593 (putpkt): Add further debugging of packet acks.
1594 * mipsread.c (fixup_symtab): Also swap RFD's.
1595 (parse_partial_symbols): Avoid bug on unknown symbol types.
b67cb9d5 1596 * Makefile.in (VERSION): Roll to 4.4.5.
a846ac55
FF
1597 * mips-tdep.c (heuristic_proc_start): Avoid long delays
1598 for remote MIPS by limiting heuristic to 200 byte search.
1599 (heuristic_proc_desc): Byte-swapping.
1600 (mips_print_register): Cope with failure of
1601 read_relative_register_raw_bytes. Byte-swap integers for
1602 printing.
1603 * mips-pinsn.c (print_insn): Byte-swap instruction.
a1106a1e 1604
1170a046
SG
1605Thu Mar 5 12:32:09 1992 Stu Grossman (grossman at cygnus.com)
1606
1607 * config.sub configure.in config/.Sanitize config/mh-irix4
1608 gdb/.Sanitize gdb/configure.in gdb/mips-tdep.c gdb/mipsread.c
1609 gdb/procfs.c gdb/signame.h gdb/tm-irix3.h gdb/tm-mips.h
1610 gdb/xm-irix4.h gdb/config/.Sanitize gdb/config/mt-irix3
1611 gdb/config/mh-irix4 texinfo/configure.in: Port to SGI Irix-4.x.
1612
d7eddc51
FF
1613Wed Mar 4 11:56:42 1992 Fred Fish (fnf@cygnus.com)
1614
1615 * defs.h, utils.c: xrealloc takes PTR as first arg.
1616 * defs.h: Reword confusing comment about ANSI prototypes.
1617 * defs.h: Some minor whitespace changes.
1618 * infrun.c (wait_for_inferior): Compare int tmp to int 0,
1619 not NULL, which can be (void *).
1620 * tm-amix.h, tm-i386v4.h: Add defines for setjmp/longjmp handling.
1621 * tm-i386v.h (SP_ARG0): Define
1622 * xm-sysv4.h: Back out of change for missing prototypes.
1623 * i386-tdep.c (get_longjmp_target): Add function.
1624
a846ac55
FF
1625Wed Mar 4 05:46:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
1626
1627 * Makefile.in: install man page too.
1628
d747e0af
MT
1629Tue Mar 3 15:11:52 1992 Michael Tiemann (tiemann@cygnus.com)
1630
1631 * All GDB files that #include defs.h: Removed stdio.h.
1632 (defs.h): #include stdio.h.
1633
96743d3c
SC
1634Mon Mar 2 23:00:12 1992 Steve Chamberlain (sac@thepub.cygnus.com)
1635
1636 * gdbtypes.c (lookup_pointer_type): initialize the TYPE_LENGTH of
1637 a ptype to reflect the setting of TARGET_PTR_BIT. Set the
1638 TYPE_FLAGS of a ptype to TYPE_FLAG_UNSIGNED.
1639 * tm-h8300.h, h8300-tdep.c, remote-hms.c: personal checkpoint
1640 * printcmd.c (print_address): if ADDR_BITS_REMOVE is defined, use
1641 it before printing out the hex shape of an address.
1642
6c6afbb9
PB
1643Sun Mar 1 17:41:09 1992 Per Bothner (bothner@cygnus.com)
1644
bff1c97a
FF
1645 * rs6000-xdep.c (frame_initial_stack_address): Move
1646 code to set frame->cache_fsr into new separate function
1647 frame_get_cacahe_fsr. This allows fixing a fatal error.
1648 * xcoffexec.c: Turn previously suppressed error
1649 message back on, after cleaning up BFD.
1650
6c6afbb9
PB
1651 * breakpoint.c (breakpoint_re_set): Removed (at least for now)
1652 printing of blank line, since it cases printing of an
1653 extra blank line. Is this intended? It does mess up
1654 gdb test suite.
1655 * defs.h: Put back declarations of malloc and realloc,
1656 but protected by #ifndef MALLOC_INCOMPATIBLE.
1657 * objfiles.c: Undo previous change: Use malloc/realloc
1658 for objfile malloc/realloc fields (but add a cast).
1659 * xcoffexec.c: Suppress an error message (for now).
1660
1661Sat Feb 29 14:43:02 1992 Per Bothner (bothner@cygnus.com)
1662
1663 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
1664 [Mail dated Fri, 21 Feb 92 13:14:54 -0800]
1665 * buildsym.c: Use smash_to_pointer_type() to handle forward type
1666 references.
1667 * xcoffread.c: Modifications to C_DECL storage class handling, and
1668 introduction of an old smash_to_pointer_type() routine.
1669
1670 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
1671 [Mail dated Thu, 20 Feb 92 13:57:16 -0800]
1672 * rs6000-xdep.c, rs6000-tdep.c, tm-rs6000.h: function_frame_info()
1673 parameters have been modified.
1674
1675 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
1676 [Mail dated Thu, 20 Feb 92 10:10:05 -0800]
1677 * rs6000-tdep.c: Before Feb 5 92, register_valid[] array was not used,
1678 and fetch_inferior_registers() always fetched all the registers
1679 resulting valid register values at hand all the time. Pushing a dummy
1680 frame did not require validating all register values first. After
1681 putting the above mechanism into action, we didn't have valid registers
1682 values always ready. Thus, all registers need to be fetched before
1683 pushing a dummy frame now.
1684
1685 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
1686 [Mail dated Thu, 13 Feb 92 16:22:44 -0800]
1687 * rs6000-xdep.c: frame_initial_stack_address() function to calculate
1688 the starting address (actual frame address) of a frame.
1689 * rs6000-tdep.c: modifications to function_frame_info() to see if
1690 function reserves a frame pointer register (alloca register)
1691 * tm-rs6000.h: EXTRA_FRAME_INFO, FRAME_ARGS_ADDRESS and
1692 FRAME_LOCALS_ADDRESS has been updated to support debugging of
1693 functions with alloca() calls.
1694
4b8333de
FF
1695Sun Mar 1 13:13:39 1992 Fred Fish (fnf@cygnus.com)
1696
1697 * xm-sysv4.h: Provide definitions/prototypes for host environment
1698 functions for which no definitions or prototypes are provided in
1699 any currently included gdb or host environment header files.
1700 For SVR4, this currently includes malloc and realloc, which cannot
1701 be portably prototyped in any gdb include file.
1702
1703Sat Feb 29 14:43:02 1992 Per Bothner (bothner@cygnus.com)
1704
1705 * buildsym.h: Remove obsolete variable file_stabs.
1706
1707 * Makefile.in: Move place where configure merges in host-
1708 and target-dependent fragments later, so the latter
1709 can override (say) GNU_MALLOC.
1710 * config/mh-rs6000: Use system malloc. Otherwise, I
1711 ended up with *two* incompatible versions of malloc
1712 (functions in libc would call the malloc in libc).
1713 I assume this is a shared library problem.
1714
1715 * remote.c: Fix (presumed) typo.
1716 * objfiles.c: Use xmalloc/xrealloc instead of
1717 malloc/realloc (since the latter are no longer declared).
1718
1719 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
1720 [Mail dated Thu, 6 Feb 1992 10:22:02 -0800]
1721 * rs6000-xdep.c: Improvements to fetch_inferior_registers() to
1722 handle individual registers.
1723 * tm-rs6000.h: Fix SAVED_PC_AFTER_CALL macro to handle pc value
1724 correctly in case it wasn't cached yet. (A problem showed up
1725 after fetching individual registers.)
1726 * buildsym.c: Disable type_synonym_name's type name overwriting
1727 in cases it is unnecesary. rs6000 portation doesn't use
1728 type_synonym_name, and it used to nullify type names
1729 * xcoffread.c: to handle g++'s typename abbreviation, fill in a
1730 type's name as soon as space for that type is allocated.
1731 * xcoffread.c: ignore a section's lineno information if it is
1732 not `.text'. (In rs6000 bfd portation integration, skipping over
1733 `.pad' sections are ignored since it was in machine independent
1734 part of the code. Thus, a problem of fake sections with invalid
1735 lineno information arised.)
1736
1737 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
1738 [Mail dated Thu, 6 Feb 1992 13:26:22 -0800]
1739 * rs6000-tdep.c: make function_frame_info() work whether or not
1740 reading from a core file.
1741 * tm-rs6000.h: Implementation of FRAME_FIND_SAVED_REGS macro.
1742
1743 * infrun.c. main.c, printcmd.c. symtab.c:
1744 More changes from IBM for rs6000.
1745
1746
818de002
PB
1747Thu Feb 27 22:57:19 1992 Per Bothner (bothner@cygnus.com)
1748
1749 * rs6k-opcode.h, tm-rs6000.h, xm-rs6000.h, rs6000-tdep.c,
1750 rs6000-xdep.c, xcoffexec.c, xcoffread.c:
1751 Merge in changes (mostly from IBM) for RS6000.
1752 * breakpoint.c, buildsym.c, infptrace.c, stack.c, symtab.c:
1753 More changes from IBM for RS6000. These are in machine-
1754 independent code, and probably could do with some cleaning
1755 up. The most questionable of these are #ifdef IBM6000.
1756 * infrun.c, sparc-tdep.c: Pass a parameter (signal number)
1757 to single_step() (for consistency with rs6000 and i860).
1758 * utils.c: Allow the 1st arg to xrealloc to be NULL
1759 (in which case do malloc). This removes the need for
1760 some tests in xcoff code (and perhaps other places?).
1761 * coffread.c: Removed variables last_source_file,
1762 type_vector, and type_vector_length as these are now
1763 defined by buildsym.[ch].
1764 * defs.h: Remove prototypes for malloc and realloc, since
1765 these should only be used to implement xmalloc and xrealloc,
1766 and they conflict with <stdlib.h> in AIX - where they
1767 return void* even when __STDC__ isn't defined. Sigh.
1768 * munch: Recognize *initialize* in data as well as text
1769 (AIX uses data). Also, incorporate a patch from Garrett
1770 Wollman <wollman@uvm-gen.uvm.edu> to make the sed script
1771 much more sensible, by only trying to match the name of
1772 the initialize_foo function, and not the junk before it.
1773
8537ba60
SG
1774Thu Feb 27 20:07:43 1992 Stu Grossman (grossman at cygnus.com)
1775
1776 * breakpoint.c (breakpoint_re_set_one): Don't reset breakpoint
1777 unless symbol table indicates that something has changed.
1778
069bc454
JG
1779Thu Feb 27 11:48:47 1992 John Gilmore (gnu at cygnus.com)
1780
b543979c
JG
1781 * remote.c: Make it work for embedded MIPS. Increase buffer
1782 size, and use throughout. Round buffer size up if too many regs.
1783 Support baud rate setting and try for an 8-bit path. If
1784 interrupted while waiting for target, send a ^C down the wire.
1785 Avoid single-byte reads.
1786 * tm-mips.h: Add more embedded-system registers to REGISTER_NAMES
1787 and NUM_REGS.
1788 * mips-xdep.h: Avoid the embedded regs when on Unix.
1789
d141f3e3
JG
1790 * mipsread.c: Byte-swap the symbol table structures, using
1791 routines from ecoff.c, to read a symbol table written in any
1792 of the four possible byte orders.
069bc454
JG
1793 * configure.in (mips-big-* target): Same as Sony News.
1794 * config/mt-bigmips, config/mt-littlemips: Add ecoff.o.
1795 * ecoff.c: New file for symbol swapping routines.
1796
80ba48f5
SG
1797Thu Feb 27 09:26:38 1992 Stu Grossman (grossman at cygnus.com)
1798
1799 * breakpoint.c (all_breakpoints_info, breakpoint_1): Add 'info
1800 all-breakpoints' command.
1801 * (get_number): Allow users to enter negative breakpoint numbers.
1802 * (breakpoint_1): Reformat display of 'info break' to show new
1803 fields.
1804 * (create_longjmp_breakpoint, breakpoint_re_set,
1805 breakpoint_re_set_one, enable/disable_longjmp_breakpoint),
1806 symfile.c (syms_from_objfile): Re-do
1807 insertion of longjmp breakpoints. Move all code into
1808 breakpoint_re_set, and call that instead of
1809 create_longjmp_breakpoint in symfile.c.
1810
cba0d141
JG
1811Thu Feb 27 06:11:05 1992 John Gilmore (gnu at cygnus.com)
1812
1813 * breakpoint.h (ALL_BREAKPOINTS_SAFE): Add.
1814 * breakpoint.c (breakpoint_re_set): Use ALL_BREAKPOINTS_SAFE.
1815 * symtab.c (find_pc_symtab): Handle having no objfiles.
1816 * infcmd.c: Fix comment.
1817 * objfiles.c (free_all_objfiles): Add.
1818 * symfile.h (ALL_OBJFILES, ALL_OBJFILES_SAFE): Add.
1819 * symfile.c (symbol_file_command): free all objfiles when
1820 specifying a new symbol file.
1821 (reread_symbols): Stat the file name, don't fstat the descriptor.
1822
a846ac55
FF
1823Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
1824
1825 * Makefile.in, configure.in: removed traces of namesubdir,
1826 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
1827 copyrights to '92, changed some from Cygnus to FSF.
1828
cba0d141
JG
1829Tue Feb 25 19:31:19 1992 Stu Grossman (grossman at cygnus.com)
1830
1831 * dbxread.c (end_psymtab): Delete empty psymtabs.
1832 * symfile.c (allocate_psymtab): Recycle empty psymtabs.
1833 * symfile.h (struct objfile): Add free_psymtabs.
1834
35318110
JG
1835Sat Feb 22 02:00:32 1992 John Gilmore (gnu at cygnus.com)
1836
47890ed7
JG
1837 * Makefile.in (VERSION): Roll to gdb-4.4.4.
1838
35318110
JG
1839 * symfile.c (symbol_file_command): strcmp => !strcmp.
1840 * breakpoint.h: Move prototypes to follow enum definition they need.
1841 * breakpoint.c, infrun.c: Lint.
1842 * printcmd.c: Use `enum enable' rather than `enum
1843 display_status'.
1844 * mipsread.c: First pass at making it compile with the new
1845 objfile changes. Probably seriously broken still, but it
1846 compiles. FIXME.
1847
30875e1c
SG
1848Sat Feb 22 00:56:39 1992 Stu Grossman (grossman at cygnus.com)
1849
1850 * infrun.c, infcmd.c, breakpoint.c, main.c, symfile.c,
1851 breakpoint.h, tm-sun4os4.h, tm-sparc.h, sparc-tdep.c, tm-mips.h,
1852 mips-tdep.h, tm-sun3.h, tm-68k.h, m68k-tdep.h: Add support for
1853 stepping (and nexting) through longjmp(). Also, cleanup
1854 breakpoint handling quite a bit by creating explicit breakpoint
1855 types instead of using magic breakpoint numbers.
1856 Makefile.in: Update version to 4.4.3
1857
021959e2
JG
1858Sat Feb 22 00:08:50 1992 John Gilmore (gnu at cygnus.com)
1859
93fe4e33
JG
1860 * buildsym.c, dwarfread.c, gdbtypes.c, inflow.c, main.c,
1861 minsyms.c, printcmd.c, remote.c, saber.suppress: Saberlint.
1862 * symmisc.c, xcoffread.c: Move debug functions to symmisc.c.
1863
021959e2
JG
1864 * xm-sun3os4.h, xm-sun4os4.h: Enable HAVE_MMAP.
1865
1866 * minsyms.c (install_minimal_symbols): Add bunches to any
1867 existing minsyms in the objfile. Avoid extra mallocation
1868 by working directly in the obstack. Remove ignored `mainline' parm.
1869 * coffread.c, dbxread.c, elfread.c, mipsread.c, solib.c, symtab.h,
1870 xcoffread.c: Change all callers.
1871 * FIXME: We should be able to eliminate MAINLINE from all the
1872 symbol readers now, with a small bit of work.
1873
1874 * valops.c, value.h: Lint.
1875 * remote-vx.c: Add missing break; statement. Bugfix by
1876 Michael Sclafani, <sclafani@src.dec.com>.
1877
bff1c97a
FF
1878Fri Feb 21 17:29:54 1992 Fred Fish (fnf at cygnus.com)
1879
1880 * Makefile.in (VERSION): Update version to 4.4.2
1881 * Makefile.in (SFILES_MAINDIR): Add gdbtypes.c, state.c, objfiles.c,
1882 minsyms.c, mmap-alloc.c, mmap-sbrk.c
1883 * Makefile.in (HFILES): Add gdbtypes.h, state.h, solib.h
1884 * Makefile.in (OBS): Add gdbtypes.o, state.o, objfiles.o, minsyms.o,
1885 mmap-alloc.o, mmap-sbrk.o
1886
1887 * altos-xdep.c: Minor whitespace change.
1888 * am29k-tdep.c (examine_prologue): Convert from misc function vector
1889 use to new minimal symbol table use.
1890 * arm-xdep.c (fetch_inferior_registers): Document unused argument.
1891 * arm-xdep.c (store_inferior_registers): Returns void.
1892 * blockframe.c (get_pc_function_start, find_pc_partial_function):
1893 Convert from misc function vector use to new minimal symbol table use.
1894 Remove find_pc_misc_function(). Ifdef out block_innermost_frame().
1895 * breakpoint.c: Add prototypes for local functions.
1896 * breakpoint.c (catch_command_1): Change to static and remove unused
1897 local "pc".
1898 * breakpoint.c (map_breakpoint_numbers): Prototype arg "function".
1899 * breakpoint.h: Change function decls to prototype form.
1900 * buildsym.c: Add prototypes for local functions.
1901 * buildsym.c: Moved hashname() function here from dbxread.c.
1902 * buildsym.c (dbx_lookup_type): Cast args to xrealloc().
1903 * buildsym.c: Remove dbx_create_type(), uses changed to alloc_type().
1904 * buildsym.c (dbx_alloc_type): Change to static.
1905 * buildsym.c (finish_block): Add objfile parameter.
1906 * buildsym.c (misc): Change symbol_obstack to objfile version.
1907 * buildsym.c (make_blockvector): Change to static.
1908 * buildsym.c (start_subfile): Use strdup instead of obsavestring.
1909 * buildsym.c (compare_line_numbers): Change to static, args are const,
1910 cast args when used.
1911 * buildsym.c (start_symtab): Inline new_object_header_files() call.
1912 * buildsym.c (patch_block_stabs): Moved to this file from xcoffread
1913 and made static. Add objfile parameter.
1914 * buildsym.c (end_symtab): Simplify code using line table size.
1915 Realloc the linetable on the objfile symbol_obstack and copy there.
1916 * buildsym.c (scan_file_globals): Convert from misc function vector
1917 use to new minimal symbol use.
1918 * buildsym.c (define_symbol): Add objfile parameter. Make sure
1919 strings get allocated in objfile's symbol_obstack. Convert references
1920 to builtin types to lookup_fundamental_type().
1921 * buildsym.c (read_type): Make static, add objfile parameter, convert
1922 references to buildin types to lookup_fundamental_type().
1923 * buildsym.c (read_struct_type): Add objfile parameter.
1924 * buildsym.c (read_array_type): Make static, add objfile parameter.
1925 * buildsym.c (read_enum_type): Make static, add objfile parameter.
1926 * buildsym.c (read_huge_number): Make static.
1927 * buildsym.c (read_range_type): Make static, add objfile parameter,
1928 convert references to buildin types to lookup_fundamental_type ().
1929 * buildsym.c (read_args): Make static, add objfile parameter.
1930 * buildsym.h: Convert function decl's to prototype form.
1931 * c-exp.y: Add prototypes for local functions, convert uses of misc
1932 function vector to minimal symbol table. Reformat all builtin type
1933 initializations and pass a NULL objfile to init_type() for them.
1934 * coffread.c: Change context_stack ref's to coff_context_stack,
1935 add local function prototypes. Cast uses of xrealloc arg 1.
1936 * coffread.c (coff_alloc_type): Call alloc_type instead of hand-
1937 crafting a new type.
1938 * coffread.c (add_symbol_to_list): Change to coff_add_symbol_to_list.
1939 * coffread.c (finish_block): Change name to coff_finish_block.
1940 * coffread.c (make_blockvector): Add and use objfile parameter.
1941 * coffread.c (record_line): Change name to coff_record_line.
1942 * coffread.c (start_symtab): Change name to coff_start_symtab.
1943 * coffread.c (end_symtab): Change name to coff_end_symtab.
1944 * coffread.c (record_misc_function): Change name to record_minimal_
1945 symbol and change to minimal symbol table use from misc func tbl.
1946 * coffread.c (coff_symfile_read): Convert from misc function vector
1947 use to minimal symbol table use.
1948 * coffread.c (hashname): Remove; use common version in buildsym.c.
1949 * coffread.c (decode_base_type): Change references to builtin types
1950 to calls to lookup_fundamental_type().
1951 * coffread.c (read_struct_type): Change name to coff_read_struct_type.
1952 * coffread.c (read_enum_type): Change name to coff_read_enum_type.
1953 * command.c: Add prototypes for local functions.
1954 * command.c (add_cmd): Prototype the 'fun' parameter and use the
1955 appropriate member of the function union for that type.
1956 * command.c (add_abbrev_cmd): Prototype the 'fun' parameter and
1957 ifdef out the function since it isn't currently used.
1958 * command.c (add_alias_cmd): Pass correct function type to add_cmd.
1959 * command.c (add_prefix_cmd): Prototype the 'fun' parameter.
1960 * command.c (add_abbrev_prefix_cmd): Prototype the 'fun' parameter.
1961 * command.c (help_cmd): Compare function pointer to NULL.
1962 * command.c (help_cmd_list): Compare function pointer to NULL.
1963 * command.c (lookup_cmd_1): Use correct member of function union.
1964 * command.c (undef_cmd_error): Make static.
1965 * command.c (complete_on_cmdlist): Use correct member of func union.
1966 * command.c (do_setshow_command): Use correct member of func union.
1967 * command.c (shell_escape): Convert rindex use to strrchr.
1968 * command.h (COMMAND_H): Define if already included.
1969 * command.h (cmd_list_element struct): Change 'function' to a union
1970 and prototype args. Prototype completer function.
1971 * command.h: Convert decl's to prototype form.
1972 * convex-xdep.c (store_inferior_registers): Returns void.
1973 * copying.c: Prototype local functions.
1974 * coredep.c: Minor whitespace change.
1975 * cplus-dem.c: Remove hack to use BSD equivalents of mem* and str*.
1976 * cplus-dem.c: Prototype local functions.
1977 * dbxread.c (hashname): Remove; moved to buildsym.c.
1978 * dbxread.c (free_and_init_header_files): Make static.
1979 * dbxread.c: Add prototypes for local functions.
1980 * dbxread.c (new_object_header_files): Remove; inlined usages.
1981 * dbxread.c (xrealloc usages): Cast args.
1982 * dbxread.c (record_misc_function): Change to record_minimal_symbol
1983 and change usages accordingly.
1984 * dbxread.c (static_psymbols usages): Change to use per-objfile copy.
1985 * dbxread.c (xmalloc usages): Use per-objfile copy when appropriate.
1986 * dbxread.c (dbx_next_symbol_text): Make static.
1987 * dbxread.c (init_psymbol_list): Convert to use per-objfile data.
1988 * dbxread.c (init_bincl_list): Add and use objfile parameter.
1989 * dbxread.c (free_bincl_list): Add and use objfile parameter.
1990 * dbxread.c (compare_psymbols): Remove; use common symfile.c version.
1991 * dbxread.c (end_psymtab): Convert to use per-objfile data.
1992 * dwarfread.c (DEFUN/EXFUN): Remove all usages. Use PARAMS for
1993 prototypes.
1994 * dwarfread.c (record_misc_function): Change name to record_minimal_
1995 symbol and use minimal symbol table throughout.
1996 * dwarfread.c (compare_psymbols): Remove; use common symtab.c version.
1997 * dwarfread.c: Convert all references to builtin types to use the new
1998 lookup_fundamental_type function.
1999 * dwarfread.c (read_enumeration): Add and use objfile parameter.
2000 * elfread.c (DEFUN/EXFUN): Remove all usages. Use PARAMS for proto-
2001 types.
2002 * elfread.c (record_misc_function): Convert to use record_minimal_
2003 symbol.
2004 * elfread.c (elf_symtab_read): Add objfile parameter.
2005 * eval.c: Add prototypes for local functions and move some decls
2006 around to accomodate prototypes.
2007 * expprint.c: Add prototypes for local functions. Change references
2008 to misc function vector to minimal symbol table.
2009 * findvar.c (read_memory usages): Cast args.
2010 * gdbtypes.h: New file, type info from symfile.h and symtab.h.
2011 * gmalloc.c: Use NOARGS where prototypes used hardwired void.
2012 * gmalloc.c (BLOCKSIZE): Constant to be shifted is unsigned.
2013 * gmalloc.h: Use NOARGS where prototypes used hardwired void.
2014 * gould-xdep.c: Minor whitespace change.
2015 * hp300ux-xdep.c (fetch_inferior_registers): Remove unused regno var.
2016 * hp300ux-xdep.c (store_inferior_registers): Returns void.
2017 * hp300ux-xdep.c (fetch_core_registers): Takes unused arg reg_addr.
2018 * i386-stub.c: Add prototypes, change "volatile" to NORETURN.
2019 * i386-tdep.c: Add prototypes for local functions.
2020 * i386-tdep.c (codestream_fill, codestream_seek, codestream_read,
2021 i386_get_frame_setup, i386_skip_prologue): Explicitly declare params
2022 that defaulted to int.
2023 * i386-tdep.c (i386_follow_jump, i386_frame_find_saved_regs,
2024 i386_push_dummy_frame): Returns void.
2025 * i386-xdep.c (i386_register_u_addr): Declare params that default to
2026 int and explicitly declare return type as int.
2027 * i387-tdep.c: Minor formatting changes.
2028 * i960-tdep.c (leafproc_return): Convert from misc function vector
2029 use to minimal symbol table use.
2030 * infcmd.c: Add prototypes for local functions.
2031 * infcmd.c (continue_command, until_next_command, until_command,
2032 path_info, path_command): Make static.
2033 * infcmd.c (step_1, until_next_command): Convert from misc func
2034 vector to minimal symbol table use.
2035 * inflow.c: Add prototypes for local functions.
2036 * infptrace.c (store_inferior_registers): Returns void, not int.
2037 * language.c (_initialize_language): Use proper member of function
2038 union.
2039 * m2-exp.y: Add prototypes for local functions, convert misc function
2040 vector uses to minimal symbol table uses.
2041 * m2-exp.y (make_qualname, yyerror): Make static.
2042 * m2-exp.y (_initialize_m2_exp): Call init_types with NULL objfile.
2043 * m68k-pinsn.c: Add prototypes for local functions.
2044 * m68k-pinsn.c (print_insn): Cast args to read_memory.
2045 * m68k-pinsn.c (fetch_arg): Make parameter 'code' and int.
2046 * m68k-stub.c: Add prototypes.
2047 * m88k-pinsn.c (sprint_address): Convert from misc function vector
2048 use to minimal symbol table use.
2049 * m88k-xdep.c (fetch_inferior_registers): Takes an unused parameter.
2050 * m88k-xdep.c (store_inferior_registers): Returns void.
2051 * mach386-xdep.c (fetch_inferior_registers): Takes an unused param.
2052 * mach386-xdep.c (store_inferior_registers): Returns void.
2053 * mach386-xdep.c (fetch_core_registers): Takes an unused parameter.
2054 * main.c: Add prototypes for local functions.
2055 * main.c (return_to_top_level): Is type NORETURN (volatile). Cast
2056 longjmp() result to (NORETURN void).
2057 * main.c (catch_errors): Prototype the 'func' parameter.
2058 * main.c (disconnect, stop_sig, do_nothin, float_handler):
2059 Takes an unused arg.
2060 * main.c (execute_command): Call the right member of the func union.
2061 * main.c (command_loop_marker, symbol_completion_function,
2062 command_loop): Make static.
2063 * main.c (command_line_input): Make linelength unsigned, cast arg
2064 to command_line_input().
2065 * main.c (add_info, add_com): Prototype the 'fun' parameter.
2066 * main.c (initialize_main): Call right member of function union.
2067 * mcheck.c (NOARGS): Change hardwired void in prototypes to NOARGS.
2068 * mem-break.c: Include symtab.h
2069 * mips-xdep.c (fetch_inferior_registers): Takes unused param.
2070 * mips-xdep.c (store_inferior_registers): Returns void.
2071 * mipsread.c (mipscoff_symfile_read): Change from misc function vector
2072 use to minimal symbol table use.
2073 * mipsread.c (symbol_obstack usages): Convert all to use per-objfile
2074 version.
2075 * mipsread.c (make_type): Remove, convert usages to init_type.
2076 * mipsread.c (_initialize_mipsread): Call init_type with NULL objfile.
2077 * nindy-tdep.c (nindy_frame_chain_valid): Convert from misc function
2078 vector use to minimal symbol table use.
2079 * parse.c: Add prototypes for local functions.
2080 * parse.c (xrealloc usages): Cast args.
2081 * parse.c (prefixify_expression, length_of_subexp): Make static.
2082 * parser-defs.h (PARSER_DEFS_H): Define when first included.
2083 * parser-defs.h: Convert function decls to prototype form.
2084 * partial-stab.h: Convert from misc function vector use to new minimal
2085 symbol table use.
2086 * partial-stab.h (global_psymbols, static_psymbols usages): Reference
2087 the per-objfile copies.
2088 * printcmd.c: Add prototypes for local functions. Move some struct
2089 definitions around to accomodate prototypes.
2090 * printcmd.c (decode_format): Make static, change args oformat and
2091 osize to int from char.
2092 * printcmd.c (print_formatted): Change 'format' and 'size' to int.
2093 * printcmd.c (print_scalar_formatted): Change arg 'format' to int.
2094 * printcmd.c (print_address_symbolic): Convert from misc function
2095 vector use to minimal symbol table use.
2096 * printcmd.c (address_info): Convert from misc function vector use
2097 to minimal symbol table use.
2098 * printcmd.c (delete_display, enable_display, disable_display_command):
2099 Make static.
2100 * procfs.c (EXFUN/DEFUN): Remove all usages, convert to PARAM.
2101 * procfs.c (fetch_core_registers): Add unused param reg_addr.
2102 * pyr-xdep.c (fetch_inferior_registers): Add unused param regno.
2103 * pyr-xdep.c (store_inferior_registers): Returns void.
2104 * remote-mm.c (mm_load): symbol_file_add return value unused.
2105 * remote-nindy.c: Minor format change.
2106 * remote-vx.c (vx_load_command): symbol_file_add result unused.
2107 * rs6000-xdep.c (fetch_inferior_registers): Add unused param regno.
2108 * rs6000-xdep.c (store_inferior_registers): Returns void.
2109 * rs6000-xdep.c (fetch_core_registers): add unused param reg_addr
2110 * rs6000-xdep.c (aixcoff_relocate_symtab): Convert from misc function
2111 vector use to minimal symbol table use.
2112 * solib.c: Add prototypes for local functions.
2113 * solib.c (solib_add_common_symbols, locate_base): Convert from misc
2114 function vector use to minimal symbol table use.
2115 * solib.c (EXFUN/DEFUN): Remove all usages, convert to PARAM.
2116 * solib.c (find_solib, shared_library_command): Make static
2117 * solib.c (read_memory, write_memory usages): Cast args.
2118 * solib.c (special_symbol_handling): Add function
2119 * source.c: Add prototypes for local functions.
2120 * source.c (select_source_symtab): Convert to scan objfiles.
2121 * source.c (open_source_file): Make static.
2122 * source.c (xrealloc usages): Cast args.
2123 * source.c (source_line_charpos): ifdef out, unused.
2124 * source.c (get_filename_and_charpos): Make static.
2125 * stack.c: Add prototypes for local functions.
2126 * stack.c (print_frame_info, frame_info): Convert from misc function
2127 vector use to minimal symbol table use.
2128 * symfile.c: Add prototypes for local functions.
2129 * symfile.c (compare_symbols): Make args const PTR's.
2130 * symfile.c (compare_psymbols, sort_pst_symbols) add.
2131 * symfile.c (sort_all_symtab_syms): Scan objfile list.
2132 * symfile.c (obsavestring): Add objfile parameter.
2133 * symfile.c (init_misc_bunches, prim_record_misc_function,
2134 compare_misc_functions, discard_misc_bunches, condense_misc_bunches,
2135 sort_misc_function_vector, compact_misc_function_vector): Remove
2136 * symfile.c (symbol_file_add_digested): Add function.
2137 * symfile.c (symbol_file_add): Returns struct objfile *.
2138 * symfile.c (symbol_file_command): Modify for state file use.
2139 * symfile.c (symfile_open): Add parameter "dumpable".
2140 * symfile.c (allocate_objfile, free_objfile): Moved to objfiles.c
2141 * symfile.c (load_command, add_symbol_file_command): Make static.
2142 * symfile.c (fill_in_vptr_fieldno): Moved to gdbtypes.c
2143 * symfile.c (rindex usages): Converted to strrchr.
2144 * symfile.c (allocate_psymtab): New
2145 * symfile.c (free_named_symtabs): Ifdef out code that needs to be
2146 converted to minimal symbol table usage, but no obvious conversion.
2147 * symfile.c (free_all_symtabs): Remove.
2148 * symfile.c (_initialize_symfile): Use per-objfile info.
2149 * symfile.h: Rework the objfile structure to add per-objfile data
2150 objects (psymbol_obstack, symbol_obstack, type_obstack,
2151 global_psymbols, static_psymbols, msymbols, minimal_symbol_count,
2152 fundamental_types, malloc, realloc, free, xmalloc, xrealloc, etc).
2153 Add prototypes to function declarations.
2154 * symm-tdep.c (symmetry_extract_return_value): Convert from misc
2155 function vector usage to minimal symbol table usage.
2156 * symmisc.c (DEV_TTY): Define if not defined.
2157 * symmisc.c: Add local function prototypes.
2158 * symmisc.c (dump_objfile, dump_msymbols, dump-symtab, print_syms,
2159 printpsyms_command, print_objfiles, print_objfiles_command):
2160 Rework to use iterate_over_*
2161 * symtab.c: Add prototypes for local functions.
2162 * symtab.c (lookup_symtab_1): Convert to look through objfiles.
2163 * symtab.c (lookup_partial_symtab): Scan through objfiles.
2164 * symtab.c (lookup_primitive_typename, lookup_typename, lookup_
2165 unsigned_typename, lookup_struct, lookup_union, lookup_enum,
2166 lookup_template_type, lookup_struct_elt_type, lookup_pointer_type,
2167 lookup_reference_type, lookup_member_type, allocate_stub_method,
2168 check_stub_method, create_array_type, smash_to_member_type,):
2169 Moved to gdbtypes.c
2170 * symtab.c (lookup_symbol): Some args are const.
2171 * symtab.h: All type related defs and structs moved to gdbtypes.h
2172 * symtab.h: Convert decls to prototypes.
2173 * target.c (noprocess): Make static.
2174 * target.h: Change decl's to prototypes.
2175 * tm-sunos.h: (CLEAR_SOLIB, SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK,
2176 DISABLE_UNSETTABLE_BREAK) Moved to solib.h.
2177 * utils.c (_initialize_utils): Use correct member of function union.
2178 * valarith.c: include gdbtypes.h
2179 * valops.c: include gdbtypes.h, add prototypes for local functions.
2180 * valops.c (value_push, value_arg_push, find_function_addr):
2181 Make static.
2182 * valops.c (value_string): Convert from misc function vector use
2183 to minimal symbol table use.
2184 * valops.c (check_field_in): Make arg const.
2185 * valprint.c: Add prototypes for local functions.
2186 * valprint.c (print_string): Make static
2187 * valprint.c (value_print, val_print_fields, val_print): Make arg int.
2188 * values.c: Add prototypes for local functions.
2189 * values.c (value_headof): Convert from misc function vector to
2190 minimal symbol table.
2191 * xcoffexec.c: Add prototypes for local functions.
2192 * xcoffexec.c (exec_close, file_command, add_to_section_table):
2193 Make static.
2194 * xcoffexec.c (relocate_minimal_symbol): Add.
2195 * xcoffread.c (patch_block_stabs): Moved to buildsyms.c.
2196 * xcoffread.c: Add prototypes for local functions.
2197 * xcoffread.c (sort_syms): Convert to scan objfiles.
2198 * xcoffread.c (read_xcoff_symtab): Make static.
2199 * xcoffread.c (various): Replace references to builtin types with
2200 calls to lookup_fundamental_type. Replace references to symbol_obstack
2201 and psymbol_obstack with pointers to the per-objfile copies.
2202 * xcoffread.c (dump_linetable, dump_type, dump_symbol, dump_namespace,
2203 dump_block, dump_blockvector, dump_last_symtab, dump_symtabs):
2204 Make static.
2205 * xcoffread.c (init_stringtab): Add objfile parameter.
2206 * gdbtypes.c: New file
2207 * minsyms.c: New file
2208 * mmap-alloc.c: New file
2209 * mmap-sbrk.c: New file
2210 * objfiles.c: New file
2211 * state.c: New file
2212 * state.h: New file
2213
021959e2
JG
2214Fri Feb 21 17:29:54 1992 John Gilmore (gnu at cygnus.com)
2215
2216 * Check in Fred Fish's changes in these modules. Fred
93fe4e33
JG
2217 will make ChangeLog entries for all of them. Update VERSION
2218 to 4.4.2.
021959e2 2219
7919c3ed
JG
2220Thu Feb 20 18:10:17 1992 Fred Fish (fnf at cygnus.com)
2221
2222 * tm-sparc.h, tm-sysv4.h, solib.h: Move shared lib definitions
2223 into solib.h.
2224 * sparc-pinsn.c, sparc-tdep.c, standalonec, sun3-xdep.c,
2225 sun386-xdep.c, symm-xdep.c, target.c, ultra3-xdep.c, utils.c,
2226 value.h: Prototypes for static functions; lint.
2227 * gdbtypes.h: Empty file to ease transition.
2228
75af490b
JG
2229Thu Feb 20 16:43:13 1992 Fred Fish (fnf at cygnus.com)
2230
2231 * environ.h, expression.h, frame.h, gdbcmd.h, gdbcore.h,
2232 inferior.h, language.h, signame.h, target.h, terminal.h,
2233 tm-68k.h, tm-i386v.h, tm-sparc.h, tm-sun386.h, tm-symmetry.h,
2234 xm-i386v.h, xm-sparc.h: Prototypes for all external functions.
2235 Lint.
2236 * core.c, exec.c, infrun.c, inftarg.c, language.c, remote.c,
2237 signame.c, sparc-xdep.c: Prototypes for all static functions.
2238 Lint.
2239 * core.c, eval.c, exec.c, inftarg.c, remote-adapt.c, remote-eb.c,
2240 remote-hms.c, remote-mm.c, remote-nindy.c, remote-vx.c, remote.c,
2241 target.c, target.h, valarith.c, valops.c, value.h, xcoffexec.c:
2242 Remove to_call_function and target_call_function, since it
2243 always calls the same thing (call_function_by_hand).
2244 * core.c, exec.c, solib.c: Rename target_ops sections =>
2245 to_sections, etc.
2246 * infcmd.c, inflow.c, infptrace.c, infrun.c, main.c, target.c,
2247 target.h: target_kill takes no args.
2248 * language.c (language_info): Scaffolding to allow briefer
2249 messages when the current language changes. FIXME.
2250 * xm-amix.h, xm-i386v4.h, xm-stratus.h: Define NORETURN to avoid
2251 complaints about volatile functions.
2252 * xm-sysv4.h (HAVE_MMAP): Define.
2253
2254Thu Feb 20 09:04:18 1992 Fred Fish (fnf at cygnus.com)
088c3a0b
JG
2255
2256 * defs.h: Include ansidecl.h and PARAMS macro. Use PARAMS
2257 to make prototypes for all functions declared here.
2258 * cplus-dem.c: Avoid declaring xmalloc and xrealloc.
2259 * c-exp.y: Rename SIGNED, OR, and AND to avoid conflict.
2260 * environ.c: Include <stdio.h> before defs.h. Minor cleanup.
2261 * ieee-float.h: Use PARAMS for prototypes; make some params const.
2262 * ieee-float.c, valarith.c: Include <stdio.h>. Lint. b*=>mem*.
2263 * m2-exp.y: Remove unused CONST; Rename OR and AND.
2264 * utils.c: Avoid declaring malloc and realloc. Lint.
2265 (request_quit): Accept signal-number parameter.
2266
af213624
FF
2267Mon Feb 17 07:13:27 1992 Fred Fish (fnf at cygnus.com)
2268
9e4c1921
FF
2269 * dwarfread.c (process_dies): Add case to handle TAG_pointer_type
2270 DIE's. Add new function read_tag_pointer_type() to read them.
2271
af213624
FF
2272 * dwarfread.c (dwarf_read_array_type, read_subroutine_type):
2273 When creating a new user defined type, check to see if a partial
2274 type already exists, and if so, bash it to fit.
2275
be8303da
JG
2276Fri Feb 14 19:00:17 1992 John Gilmore (gnu at cygnus.com)
2277
2278 * coffread.c (decode_base_type): Pass long, not union.
2279 Fix by Eric Valette, ev@chorus.fr.
2280
d35bf52d
FF
2281Thu Feb 13 17:14:28 1992 Fred Fish (fnf at cygnus.com)
2282
2283 * elfread.c (elf_symtab_read): Fix code to correctly track
2284 changes in bfd for absolute symbols.
2285
5b620e75
SG
2286Thu Feb 13 12:43:29 1992 Stu Grossman (grossman at cygnus.com)
2287
2288 * xm-vaxbsd.h: Close off comment.
2289
0a663e9e
FF
2290Thu Feb 13 07:45:19 1992 Fred Fish (fnf at cygnus.com)
2291
2292 * xm-sysv4.h: Define NEED_POSIX_SETPGID.
2293
2294Fri Feb 7 11:51:12 1992 Per Bothner (bothner at cygnus.com)
2295
2296 * mips-tdep.c (mips_print_registers): Print correct register
2297 number for double pseudo-registers.
2298
ef9b1bc9
JG
2299Fri Feb 7 07:56:05 1992 John Gilmore (gnu at cygnus.com)
2300
256269fc
JG
2301 * buildsym.c (read_struct_type): Avoid double-bump of parse ptr
2302 in the op$::OPERATOR. case. From Steven McCanne,
2303 <mccanne@horse.ee.lbl.gov>.
2304
ef9b1bc9
JG
2305 * exec.c (set_section_name): Pass arg to exec_files_info;
2306 only call it if interactive. From Francis Kauth <fk@tv.tv.tek.com>.
2307
195853fc
JG
2308Thu Feb 6 17:41:32 1992 John Gilmore (gnu at cygnus.com)
2309
2310 * main.c (print_gdb_version): Copyright msg: only this year.
2311 (cd_command): Avoid changing current_directory on error.
2312
ee17fd34
PB
2313Thu Feb 6 15:14:01 1992 Per Bothner (bothner at cygnus.com)
2314
2315 * mipsread.c (parse_partial_symbols): Handle dependencies
2316 between partial symbol tables (when not doing stabs-in-ecoff).
2317 (This used to be handled by parse_fdr, but parse_fdr was
2318 incompatible with handling stabs-in-ecoff, so the code
2319 was re-written to not use parse_fdr. Unfortunately,
2320 the logic to handle dependencies was overlooked.)
2321
1f46923f
SC
2322Thu Feb 6 11:51:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
2323
2324 * coffread.c (read_enum_type): Use the size of a target int when
2325 describing enum.
2326 * defs.h: added new #define for TARGET_PTR_BIT, defaults to size
2327 of target int.
2328 * h8300-tdep.c, remote-hms.c, tm-h8300.h: too many changes to count
2329 * symtab.c (lookup_reference_type, lookup_ptr_type): use
2330 TARGET_PTR_BIT to determine size of a pointer
2331 * values.c (unpack_long): when unpacking a REF or a PTR don't
2332 assume the size of the type.
2333
778c358d
JG
2334Wed Feb 5 22:29:59 1992 John Gilmore (gnu at cygnus.com)
2335
2336 * mipsread.c (parse_symbol): Avoid clobbering enum pointer when
2337 looking at its members. Improve guess between struct and union,
2338 only assuming union if multiple members have offsets of zero.
2339
bd49ef36
PB
2340Tue Feb 4 18:05:44 1992 Per Bothner (bothner at cygnus.com)
2341
2342 * mipsread.c: Use (FP0_REGNUM-32) instead of magic number 6.
2343 (This is just for clarity - and one day permitting us to
2344 change FP0_REGNUM from 38 to 32, which would make more sense.)
2345 * tm-mips.h: Added STAB_REG_TO_REGNUM macro, so that
2346 register numbers in stabs-in-ecoff get handled correctly.
2347
2348Sat Feb 1 04:45:10 1992 Stu Grossman (grossman at cygnus.com)
2349
2350 * xm-vax.h, xm-vaxult.h, xm-vaxbsd.h, config/mh-vaxult,
2351 config/mh-vaxbsd, configure.in: Split up config stuff for Vaxen
2352 into BSD and Ultrix.
2353
96499e96
JG
2354Sat Feb 1 04:39:41 1992 John Gilmore (gnu at cygnus.com)
2355
2356 * dbxread.c (dbx_symfile_init): Call malloc, not xmalloc.
2357
98f03b91
SG
2358Sat Feb 1 04:15:41 1992 Stu Grossman (grossman at cygnus.com)
2359
dafe57bc 2360 * Makefile.in: Increment version to 4.4.1.
98f03b91
SG
2361 * main.c (print_gdb_version): Update copyright notice.
2362
2363Sat Feb 1 01:43:11 1992 Per Bothner (bothner at cygnus.com)
2364
2365 * mipsread.c: Prepend "struct " to the names of structure
2366 types, and similarly for enums and unions. (This used
2367 to be done, but got lost in the re-write to "guess" the
2368 difference between enum/struct/union.)
2369 Also, guess that a tag is an enum if the first member
2370 has type btNil.
2371
3671f1fd
SG
2372Fri Jan 31 21:45:51 1992 Stu Grossman (grossman at cygnus.com)
2373
2374 * xm-vax.h: #ifndef ultrix around #include of endian.h and
2375 limits.h (sigh).
2376
0c6efbcc
JG
2377Fri Jan 31 00:05:01 1992 John Gilmore (gnu at cygnus.com)
2378
ee7270cd
JG
2379 * Projects: Patching executables is done.
2380 * Makefile.in (VERSION): Roll to gdb-4.4.
75c86b57 2381 * README, WHATS.NEW: Update for gdb-4.4.
ee7270cd 2382
4a1dcb7f
JG
2383 * symfile.c (reread_symbols): Whenever we reread one object
2384 file's symbols, we must restart the scan, because the object_files
2385 chain has been permuted.
2386
0c6efbcc
JG
2387 * exec.c (exec_files_info): Split out into print_section_info.
2388 Print BFD filename of each section if it's not the default one.
2389 * core.c (core_files_info): Call print_section_info.
2390
2391 * xm-vax.h: Include a few system header files whose definitions
2392 must precede defs.h.
2393 * language.c, language.h: Make some things const.
2394 * expression.h, main.c: const spreads like ooze.
2395
2396 * mem-break.c (break_insn, break_insn_size): Use unsigned chars,
2397 since BREAKPOINT values can be >0x80.
2398
d58ea996
SG
2399Thu Jan 30 17:21:14 1992 Stu Grossman (grossman at cygnus.com)
2400
2401 * infrun.c, xm-i386sco.h: SCO needs to use setpgid().
2402
0c6efbcc
JG
2403Thu Jan 30 01:04:23 1992 John Gilmore (gnu at cygnus.com)
2404
2405 * sparc-pinsn.c: Remove kludge for preferring architectures.
2406 Remove #ifdef's for SORT_NEEDED. We need to sort the table, now
2407 and forever. Add `add' instruction to the set that get checked
2408 for a preceding `sethi' in order to print an absolute address.
2409 Corresponding changes in ../include/opcode/sparc.h needed
2410 to eliminate garbage instructions.
2411
d4ea2aba
PB
2412Wed Jan 29 19:24:34 1992 Per Bothner (bothner at cygnus.com)
2413
2414 * mipsread.c (parse_partial_symbols): Make sure partial
2415 symbols are created for external symbols (as used to be
2416 the case). This is a bit of a pain with the mips-coff.
2417 It uses a table which points to all of the external
2418 symbols belonging to a particular FDR or psymtab.
2419 Once we've generated this table, we might as well save
2420 it, and then use it in psymtab_to_symtab_1 to find
2421 the symbols to pass to parse_external().
2422 * symfile.c, symfile.c: New function start_psymtab_common
2423 to share the common parts of allocating a new psymtab
2424 for dbxread, mipsread (and later dwarfread). Its code
2425 was pulled out from start_psymtab in dbxread.c.
2426 * dbxread.c (start_psymtab): Use start_psymtab_common().
2427
2428 * valprint.c (val_print): If there is an error when trying
2429 to print a string, check to see if there really is a problem
2430 by reading just one character. If that works, assume
2431 things are ok.
2432
05151637
SG
2433Wed Jan 29 18:58:43 1992 Stu Grossman (grossman at cygnus.com)
2434
2435 * sparc-pinsn.c (compare_opcodes): Make it prefer v6, v7,
2436 cypress, v8 mnemonics in that order.
2437
4a074bea
PB
2438Tue Jan 28 17:32:13 1992 Per Bothner (bothner at cygnus.com)
2439
2440 * sparc-pinsn.c: Put the qsort() back in.
2441
c55e6167 2442Mon Jan 27 18:51:03 1992 John Gilmore (gnu at cygnus.com)
1aa560b2 2443
eae1a261
JG
2444 * findvar.c (read_register, write_register): Handle machines
2445 where REGISTER_TYPE is not the same size as "int".
2446
c55e6167 2447 Handle debug symbols in dynamically loaded (relocated) code:
3c03b5de 2448
c55e6167
JG
2449 * dbxread.c (read_ofile_symtab): Fix up N_CATCH better. Pass
2450 offset to process_one_symbol.
2451 (process_one_symbol): Take new offset parameter. Add it into
2452 appropriate symbol types to relocate symbols to loaded addresses.
2453 Handle all possible symbol types, and complain() about types that
2454 we don't expect to see.
2455 * mipsread.c (psymtab_to_symtab_1): Pass offset of zero to
2456 process_one_symbol (FIXME, should pass real offset).
1aa560b2 2457
c55e6167
JG
2458 Misc bugfixes:
2459
2460 * breakpoint.c (resolve_sal_pc): Split out code to resolve a
2461 sal's PC value.
2462 (set_breakpoint, break_command_1, until_break_command,
2463 catch_command_1, breakpoint_re_set_one): Use it.
c55e6167
JG
2464 * symtab.h (resolve_sal_pc): Declare.
2465 * infcmd.c (jump_command): Use resolve_sal_pc.
2466
4cc9f7e2 2467 * source.c (list_command): Shorten "FILE, line N" to "FILE:N".
c55e6167
JG
2468
2469 * putenv.c (putenv): Avoid unportably casting pointers to unsigneds.
3818ed33 2470
5a4e7215
JG
2471 * c-exp.y (yylex): `this' and `template' are only tokens in C++.
2472
3818ed33
JG
2473 * xm-convex.h, xm-hp300bsd.h, xm-isi.h, xm-merlin.h, xm-news.h,
2474 xm-np1.h, xm-pn.h, xm-pyr.h, xm-rtbsd.h, xm-symmetry.h, xm-umax.h:
2475 Remove MISSING_VPRINTF declaration, and superfluous "kgdb" defines.
2476
c55e6167
JG
2477Mon Jan 27 15:46:21 1992 Stu Grossman (grossman at cygnus.com)
2478
2479 * dbxread.c (process_one_symbol): Make a first cut at handling
2480 symbol tables generated by Sun's acc. (#ifdef'd out, FIXME.)
2481
2482 * symtab.c (find_pc_line): Fix stepping into and out of #included
2483 files.
2484
71f49876
SG
2485Mon Jan 27 13:00:55 1992 Stu Grossman (grossman at cygnus.com)
2486
2487 * Makefile.in (OPCODES): Remove OPCODES defs and refs. There is
2488 no longer any need to copy ../include/opcode/* into gdb.
2489
fd8db897
JG
2490Mon Jan 27 12:30:38 1992 John Gilmore (gnu at cygnus.com)
2491
2492 * ChangeLog, ChangeLog-9091: Split ChangeLog at 1992.
2493
24b2fbdc
PB
2494Sun Jan 26 19:05:40 1992 Per Bothner (bothner at cygnus.com)
2495
2496 * valprint.c (type_print_base, type_print_method_args):
2497 Print C++ constructor methods without bogus "return type."
2498
cdb90e99
FF
2499Sat Jan 25 15:57:59 1992 Fred Fish (fnf at cygnus.com)
2500
2501 * infptrace.c (child_xfer_memory): Parameter "target" should
2502 be a pointer to a structure, not the entire structure.
2503
1b07e406
FF
2504Fri Jan 24 01:30:27 1992 Fred Fish (fnf at cygnus.com)
2505
2506 * depend: Convert the couple of references to ansidecl.h that
2507 used the local gdb version to use the ../include version.
2508
9a1ae235
FF
2509Thu Jan 23 22:24:43 1992 Fred Fish (fnf at cygnus.com)
2510
f66f459f
FF
2511 * procfs.c
2512 (child_xfer_memory): Takes pointer to a struct, not entire struct.
2513 (inferior_proc_init): Fix non-ANSI version of args.
2514 (attach): Call print_sys_errmsg with correct number of args.
2515 (mappingflags): Make static, does not need to be global.
2516
fc1f8646
FF
2517 * i386-tdep.c (i386_frame_num_args): Takes a pointer to a struct
2518 not the entire struct itself.
2519
1b7a420e
FF
2520 * valops.c (value_assign): Cast some args to modify_field() and
2521 {read,write}_register_bytes() correctly.
2522
9a1ae235
FF
2523 * ansidecl.h: Removed, is duplicate of ../include/ansidecl.h
2524
99140c31
FF
2525 * Makefile.in (MALLOCSRC): Removed reference to removed local
2526 copy of ansidecl.h.
2527
2528 * dwarfread.c (list_in_scope): Needs an initial value, use file
2529 scope.
2530
9a1ae235
FF
2531Mon Jan 20 19:06:28 1992 Stu Grossman (grossman at cygnus.com)
2532
2533 * main.c (main): Make option_index local to keep new getopt happy.
2534 main.c, solib.c, Makefile.in: Update copyright notices.
2535
0eb0a820
MT
2536Mon Jan 20 08:54:00 1992 Michael Tiemann (tiemann at cygnus.com)
2537
2538 * cplus-dem.c (cplus_demangle): Correctly demangle destructors.
2539
313085cb
SG
2540Sat Jan 18 17:17:45 1992 Stu Grossman (grossman at cygnus.com)
2541
2542 * Makefile.in (HFILES): Add partial-stab.h.
2543
be9a2362
FF
2544Sat Jan 18 16:45:01 1992 Fred Fish (fnf at cygnus.com)
2545
24e7d5ba
JG
2546 * config/mh-stratus, config/mt-stratus, tm-stratus.h, xm-stratus.h:
2547 New files for stratus. Not complete enough to actually build
2548 on the Stratus machine; that awaits copyright assignment for
2549 i860 changes.
be9a2362
FF
2550
2551 * Makefile.in (USER_CFLAGS): Add macro specifically reserved
2552 for getting custom flags into CFLAGS when doing makes.
2553
2554 * configure.in: Add config information for stratus.
2555
cdce29ee
FF
2556Thu Jan 16 00:51:46 1992 Fred Fish (fnf at cygnus.com)
2557
2558 * dbxread.c (process_one_symbol): Pass address of structure
2559 to complain(), rather than the whole structure.
2560
7f435241
FF
2561Wed Jan 15 09:56:16 1992 Fred Fish (fnf at cygnus.com)
2562
2563 * solib.c (solib_add_common_symbols): Only compile in when not
2564 using SVR4 style shared libraries.
2565
a5bd5ba6
FF
2566Tue Jan 14 22:34:00 1992 Fred Fish (fnf at cygnus.com)
2567
2568 * dwarfread.c (locval): Add offreg flag to indicate location
2569 values that are computed off a base register.
2570
2571 * dwarfread.c (new_symbol): Rework TAG_global_variable and
2572 TAG_local_variable cases to account for static variables
2573 within function scopes.
2574
7e97eb28
SG
2575Tue Jan 14 12:28:52 1992 Stu Grossman (grossman at cygnus.com)
2576
8c3d2a53
SG
2577 * inflow.c: remove #include <sys/dir.h>. Not necessary, and
2578 doesn't exist on some systems.
2579
5e746644
SG
2580 * infrun.c (wait_for_inferior!!!!): Prevent gdb from hanging when
2581 nexting over recursive function calls.
2582
d261ece7
SG
2583 * target.c (target_read_string): Create this routine to read null
2584 terminated strings from the target. It deals with running off the
2585 end of memory elegantly as well. solib.c (find_solib): Use
2586 target_read_string() to avoid problems with running off the end of
2587 memory.
2588
7e97eb28
SG
2589 * inflow.c (child_terminal_info): #ifdef TIOCPGRP around lines
2590 that reference pgrp_inferior.
2591
0cf9329b
PB
2592Mon Jan 13 14:57:11 1992 Per Bothner (bothner at cygnus.com)
2593
2594 * tm-mips.h: Removed BLOCK_ADDRESS_ABSOLUTE, now that
2595 mips-tfile has been hacked to act more "traditionally."
2596 * dbxread.c: Fixed typo in comment.
2597
488d2691
PB
2598Sun Jan 12 13:08:36 1992 Per Bothner (bothner at cygnus.com)
2599
2600 * mips-tdep.c (mips_skip_prologue): Add some number of
2601 'sw' instructions before 'addiu' adjusts the stack.
2602
4d315a07
FF
2603Fri Jan 10 13:47:06 1992 Fred Fish (fnf at cygnus.com)
2604
2605 * dwarfread.c (start_symtab, end_symtab, scopecount, openscope,
2606 freescope, buildblock closescope, record_line, add_symbol_to_list,
2607 gatherblocks, make_blockvector): Extensive changes to switch
2608 to generic symbol table building code in buildsym.c. Remove
2609 scope tree structures and functions, symbol table building
2610 functions, and lots of other small changes.
2611
2612 * dwarfread.c: Add new macros GCC_PRODUCER and STREQN. Remove
2613 GCC_COMPILED_FLAG_SYMBOL and GCC2_COMPILED_FLAG_SYMBOL.
2614
2615Tue Jan 7 13:09:57 1992 Stu Grossman (grossman at cygnus.com)
2616
2617 * buildsym.c (cleanup_undefined_types): Add support for enums.
2618 This fixes the 'GDB internal error. cleanup_undefined_types with
2619 bad type' problem.
2620
2621Sun Jan 5 09:47:50 1992 Stu Grossman (grossman at cygnus.com)
2622
2623 * dbxread.c: detect gcc2 compilations.
2624
1a4d253c
JG
2625Thu Jan 2 15:07:41 1992 John Gilmore (gnu at cygnus.com)
2626
2627 * sparc-pinsn.c: Rename bitfields that overlap with macro names
2628 in ../include/opcode/sparc.h.
2629
1d4c28c5
FF
2630Wed Jan 1 04:29:00 1992 Fred Fish (fnf at cygnus.com)
2631
2632 * Makefile.in: Change tm-svr4.h to tm-sysv4.h. Change xm-svr4.h
2633 to xm-sysv4.h. Split OPCODE_DIR into OPCODE_DIR1 and OPCODE_DIR2
2634 to reflect actual locations of opcode files, so TAGS target will
2635 be buildable.
2636
2637 * i386-tdep.c: Change an erroneous 'm68k' reference to 'i386'.
2638
2639 * i386-tdep.c (supply_fpregset, fill_fpregset): Remove m68k
2640 code.
2641
2642 * m68k-tdep.c (supply_fpregset, fill_fpregset): Fix array
2643 dereferencing to access the correct elements.
2644
2645 * valops.c (value_addr): Declare return type of external func
2646 value_copy().
2647
2648 * xcoffread.c: Undefine next_symbol_text before redefining it.
2649
fd8db897 2650For older changes see ChangeLog-9091
bd5635a1
RP
2651\f
2652Local Variables:
2653mode: indented-text
2654left-margin: 8
2655fill-column: 74
2656version-control: never
2657End:
This page took 0.521636 seconds and 4 git commands to generate.