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