1 Sat Mar 14 16:38:47 1992 Fred Fish (fnf@cygnus.com)
3 * gmalloc.c, gmalloc.h mcheck.c mmap-alloc.c mmap-sbrk.c mtrace.c,
4 state.c, state.h: Removed.
5 * .gdbinit: Add ../malloc, ../libiberty, and ../bfd to list of
6 directories searched for source files.
7 * Makefile.in (GNU_MALLOC, MALLOC_CFLAGS, MALLOCSRC): Removed
8 * Makefile.in (MMALLOC_DIR, MMALLOC_DEP, MMALLOC_LIB,
9 MMALLOC_DISABLE, MMALLOC_CHECK, MMALLOC_CFLAGS): Add
10 * Makefile.in (CFLAGS): Replace MALLOC_CFLAGS with MMALLOC_CFLAGS.
11 * Makefile.in (CLIBS, CDEPS): Add MMALLOC_LIB
12 * Makefile.in (ADD_FILES, ADD_DEPS): Remove GNU_MALLOC.
13 * Makefile.in (SFILES_MAINDIR): Remove stat.c mmap-alloc.c, mmap-
15 * Makefile.in (HFILES): Remove state.h
16 * Makefile.in (POSSLIBS_MAINDIR): Remove MALLOCSRC.
17 * Makefile.in (OBS): Remove state.o mmap-alloc.o mmap-sbrk.o
18 * Makefile.in (saber_gdb): Remove mcheck, mtrace. Add MMALLOC_DIR.
19 * Makefile.in (clean): Remove all object files.
20 * c-exp.y: Define malloc to xmalloc and realloc to xrealloc.
21 * cplus-dem.c: Remove prototypes definitions that are now done in
23 * dbxread.c (throughout): Change from using per-objfile
24 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
25 * defs.h: Remove prototypes for mmap_* functions. Add prototypes
26 for xmmalloc, xmrealloc, mfree, mmcheck, mmtrace, mmalloc_attach,
27 mmalloc_detach, mmalloc_setkey, msavestring, and mstrsave, nomem.
28 * depend: Remove dependencies for state.o, state.h.
29 * dwarfread.c: Add declaration for warning_pre_print.
30 * dwarfread.c (dwarfwarn): Use warning_pre_print.
31 * dwarfread.c (throughout): Change from using per-objfile
32 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
33 * gdbtypes.c (lookup_fundamental_type): Fix init_type calls to
35 * i386-xdep.c (print_387_status): Change to use warning() rather
37 * i387-tdep.c (print_387_control_word): Change to use warning()
39 * infrun.c (wait_for_inferior): Remove unreachable abort() call
40 that some compilers grumble about.
41 * language.c (throughout): Add declaration for warning_pre_print
42 and using warning() instead of printfs.
43 * m2-exp.y: Define malloc to xmalloc and realloc to xrealloc.
44 * main.c (main): Add declaration for warning_pre_print and set it
45 similarly to error_pre_print. Add declarations for
46 mapped_symbol_files and readnow_symbol_files. Add appropriate
47 definitions to long_options[].
48 * minsyms.c: Trivial fix to comment.
49 * objfiles.c (allocate_objfile): Substantially rewritten for
50 using mapped symbol files.
51 * objfiles.c (throughout): Change from using per-objfile
52 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
53 * objfiles.c (open_mapped_file, mapped_to_address): Add functions.
54 * source.c (throughout): Change from using per-objfile
55 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
56 * source.c (open_source_file): Use mstrsave to save file name in
57 mapped symbol region for objfile.
58 * symfile.c: Remove include for state.h.
59 include to local form.
60 * symfile.c (symbol_file_add_digested): Remove.
61 * symfile.c (symbol_file_add): Substantially rewritten for mapped
63 * symfile.h: Remove malloc/xrealloc/xmalloc/xrealloc/free members
64 from objfile structure. Add malloc descriptor pointer (md).
65 * symfile.h (OBJF_DUMPABLE): Changed name to OBJF_MAPPED.
66 * symm-xdep.c (print_fpu_status): Use warning() rather than
68 * symmisc.c (free_symtab_block): Now takes and uses current
70 * symmisc.c (throughout): Change from using per-objfile
71 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
72 * symtab.c (cplus_mangled_symbol): Cast return value to avoid
73 Sun compiler grumblings when PTR is char *.
74 * symtab.c (lookup_symbol): Cast return value of iterate_over_
75 msymbols() to correct pointer type.
76 * utils.c (warning_pre_print): Initialize to "\nwarning: ".
77 * utils.c (fatal, fatal_dump_core): Ensure that the fatal
78 error always starts on a line of it's own.
79 * utils.c (init_malloc, malloc_botch, xmalloc, xrealloc):
80 Rewrite for new mapped malloc package use.
81 * utils.c (mmalloc, mrealloc, mfree): Stubs for configurations
82 that don't want to use the mapped malloc package; pass arguments
83 on to traditional malloc package functions.
84 * utils.c (nomem): Add for fatal virtual memory exhausted aborts.
85 * utils.c (xmmalloc, xmrealloc, xmalloc, xrealloc): Like mmalloc,
86 mrealloc, malloc, and realloc but get fatal error if runs out
88 * utils.c (msavestring, mstrsave): Save a string in a specific
90 * utils.c (print_spaces): Use xmalloc to get the buffer.
91 * xm-amix.h, xm-i386v4.h, xm-sun3os4.h, xm-sun4os4.h: Add defines
92 for MMAP_BASE_ADDRESS and MMAP_INCREMENT.
93 * config/i386v4.mh: Insignificant reorganization.
95 Sat Mar 14 11:44:47 1992 Fred Fish (fnf@cygnus.com)
97 * xcoffread.c: Only enable compilation of debugging functions
98 if IBM6000 is defined. Fails to compile otherwise.
100 Fri Mar 13 15:51:11 1992 K. Richard Pixley (rich@cygnus.com)
102 * Makefile.in: pass MAKEINFO down on info.
104 Fri Mar 13 12:56:36 1992 John Gilmore (gnu at cygnus.com)
106 * mipsread.c (mipscoff_symfile_read): Eliminate a lot of
107 useless code, including an lseek to an uninitialized variable.
108 Reported by Jim Williams <jimbo@wrs.com>.
110 Thu Mar 12 11:56:46 1992 Per Bothner (bothner@cygnus.com)
112 Merged in patches from metin@ibmpa.awdpa.ibm.com (Metin G.
113 Ozisik) (dated Fri, 6 Mar 92 17:51) for the rs6000.
114 * minsyms.c, symfile.c: Changes that may be generally
115 applicable, but are #ifdef IBM6000 for now.
116 * rs6000-xdep.c: Fixed typo in comment.
117 * rs6000-tdep.c: Non-substatial changes.
118 * xoffread.c: The main change here is addition of some
120 * xoffexec.c: More changes.
122 * xcoffread.c: Fixed two too-few-parameters bugs.
124 * solib.h, infrun.c, tm-rs6000.h: Add a PID parameter
125 to SOLIB_CREATE_INFERIOR_HOOK macro.
127 Sun Mar 8 21:17:48 1992 Fred Fish (fnf@cygnus.com)
129 * symfile.h: Add prototype for iterate_over_msymbols().
130 * symtab.c (cplus_mangled_symbol): Add function.
131 * symtab.c (lookup_symbol): Call cplus_mangled_symbol via
132 iterate_over_msymbols to find demangled C++ symbol.
133 * xcoffexec.c (relocate_minimal_symbol): Return meaningful
134 value to iterate_over_msymbols().
135 * xcoffexec.c (vmap_symtab): Ignore return from iterate_over_
138 Fri Mar 6 21:59:34 1992 K. Richard Pixley (rich@cygnus.com)
140 * Makefile.in: added check target.
142 Thu Mar 5 23:56:01 1992 John Gilmore (gnu at cygnus.com)
144 * ecoff.c: Move to ../bfd/coff-msym.c.
145 * config/mt-*mips: Remove ecoff.o from the configuration.
146 * remote.c (): Add newline to initial +.
147 (remote_resume): Mention how to cope with signals.
148 (remote_interrupt): Add debug msg.
149 (remote-wait): Implement new 'T' reply, which includes
150 status, PC, and FP all in a single short message.
151 (putpkt): Add further debugging of packet acks.
152 * mipsread.c (fixup_symtab): Also swap RFD's.
153 (parse_partial_symbols): Avoid bug on unknown symbol types.
154 * Makefile.in (VERSION): Roll to 4.4.5.
155 * mips-tdep.c (heuristic_proc_start): Avoid long delays
156 for remote MIPS by limiting heuristic to 200 byte search.
157 (heuristic_proc_desc): Byte-swapping.
158 (mips_print_register): Cope with failure of
159 read_relative_register_raw_bytes. Byte-swap integers for
161 * mips-pinsn.c (print_insn): Byte-swap instruction.
163 Thu Mar 5 12:32:09 1992 Stu Grossman (grossman at cygnus.com)
165 * config.sub configure.in config/.Sanitize config/mh-irix4
166 gdb/.Sanitize gdb/configure.in gdb/mips-tdep.c gdb/mipsread.c
167 gdb/procfs.c gdb/signame.h gdb/tm-irix3.h gdb/tm-mips.h
168 gdb/xm-irix4.h gdb/config/.Sanitize gdb/config/mt-irix3
169 gdb/config/mh-irix4 texinfo/configure.in: Port to SGI Irix-4.x.
171 Wed Mar 4 11:56:42 1992 Fred Fish (fnf@cygnus.com)
173 * defs.h, utils.c: xrealloc takes PTR as first arg.
174 * defs.h: Reword confusing comment about ANSI prototypes.
175 * defs.h: Some minor whitespace changes.
176 * infrun.c (wait_for_inferior): Compare int tmp to int 0,
177 not NULL, which can be (void *).
178 * tm-amix.h, tm-i386v4.h: Add defines for setjmp/longjmp handling.
179 * tm-i386v.h (SP_ARG0): Define
180 * xm-sysv4.h: Back out of change for missing prototypes.
181 * i386-tdep.c (get_longjmp_target): Add function.
183 Wed Mar 4 05:46:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
185 * Makefile.in: install man page too.
187 Tue Mar 3 15:11:52 1992 Michael Tiemann (tiemann@cygnus.com)
189 * All GDB files that #include defs.h: Removed stdio.h.
190 (defs.h): #include stdio.h.
192 Mon Mar 2 23:00:12 1992 Steve Chamberlain (sac@thepub.cygnus.com)
194 * gdbtypes.c (lookup_pointer_type): initialize the TYPE_LENGTH of
195 a ptype to reflect the setting of TARGET_PTR_BIT. Set the
196 TYPE_FLAGS of a ptype to TYPE_FLAG_UNSIGNED.
197 * tm-h8300.h, h8300-tdep.c, remote-hms.c: personal checkpoint
198 * printcmd.c (print_address): if ADDR_BITS_REMOVE is defined, use
199 it before printing out the hex shape of an address.
201 Sun Mar 1 17:41:09 1992 Per Bothner (bothner@cygnus.com)
203 * rs6000-xdep.c (frame_initial_stack_address): Move
204 code to set frame->cache_fsr into new separate function
205 frame_get_cacahe_fsr. This allows fixing a fatal error.
206 * xcoffexec.c: Turn previously suppressed error
207 message back on, after cleaning up BFD.
209 * breakpoint.c (breakpoint_re_set): Removed (at least for now)
210 printing of blank line, since it cases printing of an
211 extra blank line. Is this intended? It does mess up
213 * defs.h: Put back declarations of malloc and realloc,
214 but protected by #ifndef MALLOC_INCOMPATIBLE.
215 * objfiles.c: Undo previous change: Use malloc/realloc
216 for objfile malloc/realloc fields (but add a cast).
217 * xcoffexec.c: Suppress an error message (for now).
219 Sat Feb 29 14:43:02 1992 Per Bothner (bothner@cygnus.com)
221 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
222 [Mail dated Fri, 21 Feb 92 13:14:54 -0800]
223 * buildsym.c: Use smash_to_pointer_type() to handle forward type
225 * xcoffread.c: Modifications to C_DECL storage class handling, and
226 introduction of an old smash_to_pointer_type() routine.
228 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
229 [Mail dated Thu, 20 Feb 92 13:57:16 -0800]
230 * rs6000-xdep.c, rs6000-tdep.c, tm-rs6000.h: function_frame_info()
231 parameters have been modified.
233 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
234 [Mail dated Thu, 20 Feb 92 10:10:05 -0800]
235 * rs6000-tdep.c: Before Feb 5 92, register_valid[] array was not used,
236 and fetch_inferior_registers() always fetched all the registers
237 resulting valid register values at hand all the time. Pushing a dummy
238 frame did not require validating all register values first. After
239 putting the above mechanism into action, we didn't have valid registers
240 values always ready. Thus, all registers need to be fetched before
241 pushing a dummy frame now.
243 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
244 [Mail dated Thu, 13 Feb 92 16:22:44 -0800]
245 * rs6000-xdep.c: frame_initial_stack_address() function to calculate
246 the starting address (actual frame address) of a frame.
247 * rs6000-tdep.c: modifications to function_frame_info() to see if
248 function reserves a frame pointer register (alloca register)
249 * tm-rs6000.h: EXTRA_FRAME_INFO, FRAME_ARGS_ADDRESS and
250 FRAME_LOCALS_ADDRESS has been updated to support debugging of
251 functions with alloca() calls.
253 Sun Mar 1 13:13:39 1992 Fred Fish (fnf@cygnus.com)
255 * xm-sysv4.h: Provide definitions/prototypes for host environment
256 functions for which no definitions or prototypes are provided in
257 any currently included gdb or host environment header files.
258 For SVR4, this currently includes malloc and realloc, which cannot
259 be portably prototyped in any gdb include file.
261 Sat Feb 29 14:43:02 1992 Per Bothner (bothner@cygnus.com)
263 * buildsym.h: Remove obsolete variable file_stabs.
265 * Makefile.in: Move place where configure merges in host-
266 and target-dependent fragments later, so the latter
267 can override (say) GNU_MALLOC.
268 * config/mh-rs6000: Use system malloc. Otherwise, I
269 ended up with *two* incompatible versions of malloc
270 (functions in libc would call the malloc in libc).
271 I assume this is a shared library problem.
273 * remote.c: Fix (presumed) typo.
274 * objfiles.c: Use xmalloc/xrealloc instead of
275 malloc/realloc (since the latter are no longer declared).
277 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
278 [Mail dated Thu, 6 Feb 1992 10:22:02 -0800]
279 * rs6000-xdep.c: Improvements to fetch_inferior_registers() to
280 handle individual registers.
281 * tm-rs6000.h: Fix SAVED_PC_AFTER_CALL macro to handle pc value
282 correctly in case it wasn't cached yet. (A problem showed up
283 after fetching individual registers.)
284 * buildsym.c: Disable type_synonym_name's type name overwriting
285 in cases it is unnecesary. rs6000 portation doesn't use
286 type_synonym_name, and it used to nullify type names
287 * xcoffread.c: to handle g++'s typename abbreviation, fill in a
288 type's name as soon as space for that type is allocated.
289 * xcoffread.c: ignore a section's lineno information if it is
290 not `.text'. (In rs6000 bfd portation integration, skipping over
291 `.pad' sections are ignored since it was in machine independent
292 part of the code. Thus, a problem of fake sections with invalid
293 lineno information arised.)
295 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
296 [Mail dated Thu, 6 Feb 1992 13:26:22 -0800]
297 * rs6000-tdep.c: make function_frame_info() work whether or not
298 reading from a core file.
299 * tm-rs6000.h: Implementation of FRAME_FIND_SAVED_REGS macro.
301 * infrun.c. main.c, printcmd.c. symtab.c:
302 More changes from IBM for rs6000.
305 Thu Feb 27 22:57:19 1992 Per Bothner (bothner@cygnus.com)
307 * rs6k-opcode.h, tm-rs6000.h, xm-rs6000.h, rs6000-tdep.c,
308 rs6000-xdep.c, xcoffexec.c, xcoffread.c:
309 Merge in changes (mostly from IBM) for RS6000.
310 * breakpoint.c, buildsym.c, infptrace.c, stack.c, symtab.c:
311 More changes from IBM for RS6000. These are in machine-
312 independent code, and probably could do with some cleaning
313 up. The most questionable of these are #ifdef IBM6000.
314 * infrun.c, sparc-tdep.c: Pass a parameter (signal number)
315 to single_step() (for consistency with rs6000 and i860).
316 * utils.c: Allow the 1st arg to xrealloc to be NULL
317 (in which case do malloc). This removes the need for
318 some tests in xcoff code (and perhaps other places?).
319 * coffread.c: Removed variables last_source_file,
320 type_vector, and type_vector_length as these are now
321 defined by buildsym.[ch].
322 * defs.h: Remove prototypes for malloc and realloc, since
323 these should only be used to implement xmalloc and xrealloc,
324 and they conflict with <stdlib.h> in AIX - where they
325 return void* even when __STDC__ isn't defined. Sigh.
326 * munch: Recognize *initialize* in data as well as text
327 (AIX uses data). Also, incorporate a patch from Garrett
328 Wollman <wollman@uvm-gen.uvm.edu> to make the sed script
329 much more sensible, by only trying to match the name of
330 the initialize_foo function, and not the junk before it.
332 Thu Feb 27 20:07:43 1992 Stu Grossman (grossman at cygnus.com)
334 * breakpoint.c (breakpoint_re_set_one): Don't reset breakpoint
335 unless symbol table indicates that something has changed.
337 Thu Feb 27 11:48:47 1992 John Gilmore (gnu at cygnus.com)
339 * remote.c: Make it work for embedded MIPS. Increase buffer
340 size, and use throughout. Round buffer size up if too many regs.
341 Support baud rate setting and try for an 8-bit path. If
342 interrupted while waiting for target, send a ^C down the wire.
343 Avoid single-byte reads.
344 * tm-mips.h: Add more embedded-system registers to REGISTER_NAMES
346 * mips-xdep.h: Avoid the embedded regs when on Unix.
348 * mipsread.c: Byte-swap the symbol table structures, using
349 routines from ecoff.c, to read a symbol table written in any
350 of the four possible byte orders.
351 * configure.in (mips-big-* target): Same as Sony News.
352 * config/mt-bigmips, config/mt-littlemips: Add ecoff.o.
353 * ecoff.c: New file for symbol swapping routines.
355 Thu Feb 27 09:26:38 1992 Stu Grossman (grossman at cygnus.com)
357 * breakpoint.c (all_breakpoints_info, breakpoint_1): Add 'info
358 all-breakpoints' command.
359 * (get_number): Allow users to enter negative breakpoint numbers.
360 * (breakpoint_1): Reformat display of 'info break' to show new
362 * (create_longjmp_breakpoint, breakpoint_re_set,
363 breakpoint_re_set_one, enable/disable_longjmp_breakpoint),
364 symfile.c (syms_from_objfile): Re-do
365 insertion of longjmp breakpoints. Move all code into
366 breakpoint_re_set, and call that instead of
367 create_longjmp_breakpoint in symfile.c.
369 Thu Feb 27 06:11:05 1992 John Gilmore (gnu at cygnus.com)
371 * breakpoint.h (ALL_BREAKPOINTS_SAFE): Add.
372 * breakpoint.c (breakpoint_re_set): Use ALL_BREAKPOINTS_SAFE.
373 * symtab.c (find_pc_symtab): Handle having no objfiles.
374 * infcmd.c: Fix comment.
375 * objfiles.c (free_all_objfiles): Add.
376 * symfile.h (ALL_OBJFILES, ALL_OBJFILES_SAFE): Add.
377 * symfile.c (symbol_file_command): free all objfiles when
378 specifying a new symbol file.
379 (reread_symbols): Stat the file name, don't fstat the descriptor.
381 Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
383 * Makefile.in, configure.in: removed traces of namesubdir,
384 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
385 copyrights to '92, changed some from Cygnus to FSF.
387 Tue Feb 25 19:31:19 1992 Stu Grossman (grossman at cygnus.com)
389 * dbxread.c (end_psymtab): Delete empty psymtabs.
390 * symfile.c (allocate_psymtab): Recycle empty psymtabs.
391 * symfile.h (struct objfile): Add free_psymtabs.
393 Sat Feb 22 02:00:32 1992 John Gilmore (gnu at cygnus.com)
395 * Makefile.in (VERSION): Roll to gdb-4.4.4.
397 * symfile.c (symbol_file_command): strcmp => !strcmp.
398 * breakpoint.h: Move prototypes to follow enum definition they need.
399 * breakpoint.c, infrun.c: Lint.
400 * printcmd.c: Use `enum enable' rather than `enum
402 * mipsread.c: First pass at making it compile with the new
403 objfile changes. Probably seriously broken still, but it
406 Sat Feb 22 00:56:39 1992 Stu Grossman (grossman at cygnus.com)
408 * infrun.c, infcmd.c, breakpoint.c, main.c, symfile.c,
409 breakpoint.h, tm-sun4os4.h, tm-sparc.h, sparc-tdep.c, tm-mips.h,
410 mips-tdep.h, tm-sun3.h, tm-68k.h, m68k-tdep.h: Add support for
411 stepping (and nexting) through longjmp(). Also, cleanup
412 breakpoint handling quite a bit by creating explicit breakpoint
413 types instead of using magic breakpoint numbers.
414 Makefile.in: Update version to 4.4.3
416 Sat Feb 22 00:08:50 1992 John Gilmore (gnu at cygnus.com)
418 * buildsym.c, dwarfread.c, gdbtypes.c, inflow.c, main.c,
419 minsyms.c, printcmd.c, remote.c, saber.suppress: Saberlint.
420 * symmisc.c, xcoffread.c: Move debug functions to symmisc.c.
422 * xm-sun3os4.h, xm-sun4os4.h: Enable HAVE_MMAP.
424 * minsyms.c (install_minimal_symbols): Add bunches to any
425 existing minsyms in the objfile. Avoid extra mallocation
426 by working directly in the obstack. Remove ignored `mainline' parm.
427 * coffread.c, dbxread.c, elfread.c, mipsread.c, solib.c, symtab.h,
428 xcoffread.c: Change all callers.
429 * FIXME: We should be able to eliminate MAINLINE from all the
430 symbol readers now, with a small bit of work.
432 * valops.c, value.h: Lint.
433 * remote-vx.c: Add missing break; statement. Bugfix by
434 Michael Sclafani, <sclafani@src.dec.com>.
436 Fri Feb 21 17:29:54 1992 Fred Fish (fnf at cygnus.com)
438 * Makefile.in (VERSION): Update version to 4.4.2
439 * Makefile.in (SFILES_MAINDIR): Add gdbtypes.c, state.c, objfiles.c,
440 minsyms.c, mmap-alloc.c, mmap-sbrk.c
441 * Makefile.in (HFILES): Add gdbtypes.h, state.h, solib.h
442 * Makefile.in (OBS): Add gdbtypes.o, state.o, objfiles.o, minsyms.o,
443 mmap-alloc.o, mmap-sbrk.o
445 * altos-xdep.c: Minor whitespace change.
446 * am29k-tdep.c (examine_prologue): Convert from misc function vector
447 use to new minimal symbol table use.
448 * arm-xdep.c (fetch_inferior_registers): Document unused argument.
449 * arm-xdep.c (store_inferior_registers): Returns void.
450 * blockframe.c (get_pc_function_start, find_pc_partial_function):
451 Convert from misc function vector use to new minimal symbol table use.
452 Remove find_pc_misc_function(). Ifdef out block_innermost_frame().
453 * breakpoint.c: Add prototypes for local functions.
454 * breakpoint.c (catch_command_1): Change to static and remove unused
456 * breakpoint.c (map_breakpoint_numbers): Prototype arg "function".
457 * breakpoint.h: Change function decls to prototype form.
458 * buildsym.c: Add prototypes for local functions.
459 * buildsym.c: Moved hashname() function here from dbxread.c.
460 * buildsym.c (dbx_lookup_type): Cast args to xrealloc().
461 * buildsym.c: Remove dbx_create_type(), uses changed to alloc_type().
462 * buildsym.c (dbx_alloc_type): Change to static.
463 * buildsym.c (finish_block): Add objfile parameter.
464 * buildsym.c (misc): Change symbol_obstack to objfile version.
465 * buildsym.c (make_blockvector): Change to static.
466 * buildsym.c (start_subfile): Use strdup instead of obsavestring.
467 * buildsym.c (compare_line_numbers): Change to static, args are const,
469 * buildsym.c (start_symtab): Inline new_object_header_files() call.
470 * buildsym.c (patch_block_stabs): Moved to this file from xcoffread
471 and made static. Add objfile parameter.
472 * buildsym.c (end_symtab): Simplify code using line table size.
473 Realloc the linetable on the objfile symbol_obstack and copy there.
474 * buildsym.c (scan_file_globals): Convert from misc function vector
475 use to new minimal symbol use.
476 * buildsym.c (define_symbol): Add objfile parameter. Make sure
477 strings get allocated in objfile's symbol_obstack. Convert references
478 to builtin types to lookup_fundamental_type().
479 * buildsym.c (read_type): Make static, add objfile parameter, convert
480 references to buildin types to lookup_fundamental_type().
481 * buildsym.c (read_struct_type): Add objfile parameter.
482 * buildsym.c (read_array_type): Make static, add objfile parameter.
483 * buildsym.c (read_enum_type): Make static, add objfile parameter.
484 * buildsym.c (read_huge_number): Make static.
485 * buildsym.c (read_range_type): Make static, add objfile parameter,
486 convert references to buildin types to lookup_fundamental_type ().
487 * buildsym.c (read_args): Make static, add objfile parameter.
488 * buildsym.h: Convert function decl's to prototype form.
489 * c-exp.y: Add prototypes for local functions, convert uses of misc
490 function vector to minimal symbol table. Reformat all builtin type
491 initializations and pass a NULL objfile to init_type() for them.
492 * coffread.c: Change context_stack ref's to coff_context_stack,
493 add local function prototypes. Cast uses of xrealloc arg 1.
494 * coffread.c (coff_alloc_type): Call alloc_type instead of hand-
496 * coffread.c (add_symbol_to_list): Change to coff_add_symbol_to_list.
497 * coffread.c (finish_block): Change name to coff_finish_block.
498 * coffread.c (make_blockvector): Add and use objfile parameter.
499 * coffread.c (record_line): Change name to coff_record_line.
500 * coffread.c (start_symtab): Change name to coff_start_symtab.
501 * coffread.c (end_symtab): Change name to coff_end_symtab.
502 * coffread.c (record_misc_function): Change name to record_minimal_
503 symbol and change to minimal symbol table use from misc func tbl.
504 * coffread.c (coff_symfile_read): Convert from misc function vector
505 use to minimal symbol table use.
506 * coffread.c (hashname): Remove; use common version in buildsym.c.
507 * coffread.c (decode_base_type): Change references to builtin types
508 to calls to lookup_fundamental_type().
509 * coffread.c (read_struct_type): Change name to coff_read_struct_type.
510 * coffread.c (read_enum_type): Change name to coff_read_enum_type.
511 * command.c: Add prototypes for local functions.
512 * command.c (add_cmd): Prototype the 'fun' parameter and use the
513 appropriate member of the function union for that type.
514 * command.c (add_abbrev_cmd): Prototype the 'fun' parameter and
515 ifdef out the function since it isn't currently used.
516 * command.c (add_alias_cmd): Pass correct function type to add_cmd.
517 * command.c (add_prefix_cmd): Prototype the 'fun' parameter.
518 * command.c (add_abbrev_prefix_cmd): Prototype the 'fun' parameter.
519 * command.c (help_cmd): Compare function pointer to NULL.
520 * command.c (help_cmd_list): Compare function pointer to NULL.
521 * command.c (lookup_cmd_1): Use correct member of function union.
522 * command.c (undef_cmd_error): Make static.
523 * command.c (complete_on_cmdlist): Use correct member of func union.
524 * command.c (do_setshow_command): Use correct member of func union.
525 * command.c (shell_escape): Convert rindex use to strrchr.
526 * command.h (COMMAND_H): Define if already included.
527 * command.h (cmd_list_element struct): Change 'function' to a union
528 and prototype args. Prototype completer function.
529 * command.h: Convert decl's to prototype form.
530 * convex-xdep.c (store_inferior_registers): Returns void.
531 * copying.c: Prototype local functions.
532 * coredep.c: Minor whitespace change.
533 * cplus-dem.c: Remove hack to use BSD equivalents of mem* and str*.
534 * cplus-dem.c: Prototype local functions.
535 * dbxread.c (hashname): Remove; moved to buildsym.c.
536 * dbxread.c (free_and_init_header_files): Make static.
537 * dbxread.c: Add prototypes for local functions.
538 * dbxread.c (new_object_header_files): Remove; inlined usages.
539 * dbxread.c (xrealloc usages): Cast args.
540 * dbxread.c (record_misc_function): Change to record_minimal_symbol
541 and change usages accordingly.
542 * dbxread.c (static_psymbols usages): Change to use per-objfile copy.
543 * dbxread.c (xmalloc usages): Use per-objfile copy when appropriate.
544 * dbxread.c (dbx_next_symbol_text): Make static.
545 * dbxread.c (init_psymbol_list): Convert to use per-objfile data.
546 * dbxread.c (init_bincl_list): Add and use objfile parameter.
547 * dbxread.c (free_bincl_list): Add and use objfile parameter.
548 * dbxread.c (compare_psymbols): Remove; use common symfile.c version.
549 * dbxread.c (end_psymtab): Convert to use per-objfile data.
550 * dwarfread.c (DEFUN/EXFUN): Remove all usages. Use PARAMS for
552 * dwarfread.c (record_misc_function): Change name to record_minimal_
553 symbol and use minimal symbol table throughout.
554 * dwarfread.c (compare_psymbols): Remove; use common symtab.c version.
555 * dwarfread.c: Convert all references to builtin types to use the new
556 lookup_fundamental_type function.
557 * dwarfread.c (read_enumeration): Add and use objfile parameter.
558 * elfread.c (DEFUN/EXFUN): Remove all usages. Use PARAMS for proto-
560 * elfread.c (record_misc_function): Convert to use record_minimal_
562 * elfread.c (elf_symtab_read): Add objfile parameter.
563 * eval.c: Add prototypes for local functions and move some decls
564 around to accomodate prototypes.
565 * expprint.c: Add prototypes for local functions. Change references
566 to misc function vector to minimal symbol table.
567 * findvar.c (read_memory usages): Cast args.
568 * gdbtypes.h: New file, type info from symfile.h and symtab.h.
569 * gmalloc.c: Use NOARGS where prototypes used hardwired void.
570 * gmalloc.c (BLOCKSIZE): Constant to be shifted is unsigned.
571 * gmalloc.h: Use NOARGS where prototypes used hardwired void.
572 * gould-xdep.c: Minor whitespace change.
573 * hp300ux-xdep.c (fetch_inferior_registers): Remove unused regno var.
574 * hp300ux-xdep.c (store_inferior_registers): Returns void.
575 * hp300ux-xdep.c (fetch_core_registers): Takes unused arg reg_addr.
576 * i386-stub.c: Add prototypes, change "volatile" to NORETURN.
577 * i386-tdep.c: Add prototypes for local functions.
578 * i386-tdep.c (codestream_fill, codestream_seek, codestream_read,
579 i386_get_frame_setup, i386_skip_prologue): Explicitly declare params
580 that defaulted to int.
581 * i386-tdep.c (i386_follow_jump, i386_frame_find_saved_regs,
582 i386_push_dummy_frame): Returns void.
583 * i386-xdep.c (i386_register_u_addr): Declare params that default to
584 int and explicitly declare return type as int.
585 * i387-tdep.c: Minor formatting changes.
586 * i960-tdep.c (leafproc_return): Convert from misc function vector
587 use to minimal symbol table use.
588 * infcmd.c: Add prototypes for local functions.
589 * infcmd.c (continue_command, until_next_command, until_command,
590 path_info, path_command): Make static.
591 * infcmd.c (step_1, until_next_command): Convert from misc func
592 vector to minimal symbol table use.
593 * inflow.c: Add prototypes for local functions.
594 * infptrace.c (store_inferior_registers): Returns void, not int.
595 * language.c (_initialize_language): Use proper member of function
597 * m2-exp.y: Add prototypes for local functions, convert misc function
598 vector uses to minimal symbol table uses.
599 * m2-exp.y (make_qualname, yyerror): Make static.
600 * m2-exp.y (_initialize_m2_exp): Call init_types with NULL objfile.
601 * m68k-pinsn.c: Add prototypes for local functions.
602 * m68k-pinsn.c (print_insn): Cast args to read_memory.
603 * m68k-pinsn.c (fetch_arg): Make parameter 'code' and int.
604 * m68k-stub.c: Add prototypes.
605 * m88k-pinsn.c (sprint_address): Convert from misc function vector
606 use to minimal symbol table use.
607 * m88k-xdep.c (fetch_inferior_registers): Takes an unused parameter.
608 * m88k-xdep.c (store_inferior_registers): Returns void.
609 * mach386-xdep.c (fetch_inferior_registers): Takes an unused param.
610 * mach386-xdep.c (store_inferior_registers): Returns void.
611 * mach386-xdep.c (fetch_core_registers): Takes an unused parameter.
612 * main.c: Add prototypes for local functions.
613 * main.c (return_to_top_level): Is type NORETURN (volatile). Cast
614 longjmp() result to (NORETURN void).
615 * main.c (catch_errors): Prototype the 'func' parameter.
616 * main.c (disconnect, stop_sig, do_nothin, float_handler):
618 * main.c (execute_command): Call the right member of the func union.
619 * main.c (command_loop_marker, symbol_completion_function,
620 command_loop): Make static.
621 * main.c (command_line_input): Make linelength unsigned, cast arg
622 to command_line_input().
623 * main.c (add_info, add_com): Prototype the 'fun' parameter.
624 * main.c (initialize_main): Call right member of function union.
625 * mcheck.c (NOARGS): Change hardwired void in prototypes to NOARGS.
626 * mem-break.c: Include symtab.h
627 * mips-xdep.c (fetch_inferior_registers): Takes unused param.
628 * mips-xdep.c (store_inferior_registers): Returns void.
629 * mipsread.c (mipscoff_symfile_read): Change from misc function vector
630 use to minimal symbol table use.
631 * mipsread.c (symbol_obstack usages): Convert all to use per-objfile
633 * mipsread.c (make_type): Remove, convert usages to init_type.
634 * mipsread.c (_initialize_mipsread): Call init_type with NULL objfile.
635 * nindy-tdep.c (nindy_frame_chain_valid): Convert from misc function
636 vector use to minimal symbol table use.
637 * parse.c: Add prototypes for local functions.
638 * parse.c (xrealloc usages): Cast args.
639 * parse.c (prefixify_expression, length_of_subexp): Make static.
640 * parser-defs.h (PARSER_DEFS_H): Define when first included.
641 * parser-defs.h: Convert function decls to prototype form.
642 * partial-stab.h: Convert from misc function vector use to new minimal
644 * partial-stab.h (global_psymbols, static_psymbols usages): Reference
645 the per-objfile copies.
646 * printcmd.c: Add prototypes for local functions. Move some struct
647 definitions around to accomodate prototypes.
648 * printcmd.c (decode_format): Make static, change args oformat and
649 osize to int from char.
650 * printcmd.c (print_formatted): Change 'format' and 'size' to int.
651 * printcmd.c (print_scalar_formatted): Change arg 'format' to int.
652 * printcmd.c (print_address_symbolic): Convert from misc function
653 vector use to minimal symbol table use.
654 * printcmd.c (address_info): Convert from misc function vector use
655 to minimal symbol table use.
656 * printcmd.c (delete_display, enable_display, disable_display_command):
658 * procfs.c (EXFUN/DEFUN): Remove all usages, convert to PARAM.
659 * procfs.c (fetch_core_registers): Add unused param reg_addr.
660 * pyr-xdep.c (fetch_inferior_registers): Add unused param regno.
661 * pyr-xdep.c (store_inferior_registers): Returns void.
662 * remote-mm.c (mm_load): symbol_file_add return value unused.
663 * remote-nindy.c: Minor format change.
664 * remote-vx.c (vx_load_command): symbol_file_add result unused.
665 * rs6000-xdep.c (fetch_inferior_registers): Add unused param regno.
666 * rs6000-xdep.c (store_inferior_registers): Returns void.
667 * rs6000-xdep.c (fetch_core_registers): add unused param reg_addr
668 * rs6000-xdep.c (aixcoff_relocate_symtab): Convert from misc function
669 vector use to minimal symbol table use.
670 * solib.c: Add prototypes for local functions.
671 * solib.c (solib_add_common_symbols, locate_base): Convert from misc
672 function vector use to minimal symbol table use.
673 * solib.c (EXFUN/DEFUN): Remove all usages, convert to PARAM.
674 * solib.c (find_solib, shared_library_command): Make static
675 * solib.c (read_memory, write_memory usages): Cast args.
676 * solib.c (special_symbol_handling): Add function
677 * source.c: Add prototypes for local functions.
678 * source.c (select_source_symtab): Convert to scan objfiles.
679 * source.c (open_source_file): Make static.
680 * source.c (xrealloc usages): Cast args.
681 * source.c (source_line_charpos): ifdef out, unused.
682 * source.c (get_filename_and_charpos): Make static.
683 * stack.c: Add prototypes for local functions.
684 * stack.c (print_frame_info, frame_info): Convert from misc function
685 vector use to minimal symbol table use.
686 * symfile.c: Add prototypes for local functions.
687 * symfile.c (compare_symbols): Make args const PTR's.
688 * symfile.c (compare_psymbols, sort_pst_symbols) add.
689 * symfile.c (sort_all_symtab_syms): Scan objfile list.
690 * symfile.c (obsavestring): Add objfile parameter.
691 * symfile.c (init_misc_bunches, prim_record_misc_function,
692 compare_misc_functions, discard_misc_bunches, condense_misc_bunches,
693 sort_misc_function_vector, compact_misc_function_vector): Remove
694 * symfile.c (symbol_file_add_digested): Add function.
695 * symfile.c (symbol_file_add): Returns struct objfile *.
696 * symfile.c (symbol_file_command): Modify for state file use.
697 * symfile.c (symfile_open): Add parameter "dumpable".
698 * symfile.c (allocate_objfile, free_objfile): Moved to objfiles.c
699 * symfile.c (load_command, add_symbol_file_command): Make static.
700 * symfile.c (fill_in_vptr_fieldno): Moved to gdbtypes.c
701 * symfile.c (rindex usages): Converted to strrchr.
702 * symfile.c (allocate_psymtab): New
703 * symfile.c (free_named_symtabs): Ifdef out code that needs to be
704 converted to minimal symbol table usage, but no obvious conversion.
705 * symfile.c (free_all_symtabs): Remove.
706 * symfile.c (_initialize_symfile): Use per-objfile info.
707 * symfile.h: Rework the objfile structure to add per-objfile data
708 objects (psymbol_obstack, symbol_obstack, type_obstack,
709 global_psymbols, static_psymbols, msymbols, minimal_symbol_count,
710 fundamental_types, malloc, realloc, free, xmalloc, xrealloc, etc).
711 Add prototypes to function declarations.
712 * symm-tdep.c (symmetry_extract_return_value): Convert from misc
713 function vector usage to minimal symbol table usage.
714 * symmisc.c (DEV_TTY): Define if not defined.
715 * symmisc.c: Add local function prototypes.
716 * symmisc.c (dump_objfile, dump_msymbols, dump-symtab, print_syms,
717 printpsyms_command, print_objfiles, print_objfiles_command):
718 Rework to use iterate_over_*
719 * symtab.c: Add prototypes for local functions.
720 * symtab.c (lookup_symtab_1): Convert to look through objfiles.
721 * symtab.c (lookup_partial_symtab): Scan through objfiles.
722 * symtab.c (lookup_primitive_typename, lookup_typename, lookup_
723 unsigned_typename, lookup_struct, lookup_union, lookup_enum,
724 lookup_template_type, lookup_struct_elt_type, lookup_pointer_type,
725 lookup_reference_type, lookup_member_type, allocate_stub_method,
726 check_stub_method, create_array_type, smash_to_member_type,):
728 * symtab.c (lookup_symbol): Some args are const.
729 * symtab.h: All type related defs and structs moved to gdbtypes.h
730 * symtab.h: Convert decls to prototypes.
731 * target.c (noprocess): Make static.
732 * target.h: Change decl's to prototypes.
733 * tm-sunos.h: (CLEAR_SOLIB, SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK,
734 DISABLE_UNSETTABLE_BREAK) Moved to solib.h.
735 * utils.c (_initialize_utils): Use correct member of function union.
736 * valarith.c: include gdbtypes.h
737 * valops.c: include gdbtypes.h, add prototypes for local functions.
738 * valops.c (value_push, value_arg_push, find_function_addr):
740 * valops.c (value_string): Convert from misc function vector use
741 to minimal symbol table use.
742 * valops.c (check_field_in): Make arg const.
743 * valprint.c: Add prototypes for local functions.
744 * valprint.c (print_string): Make static
745 * valprint.c (value_print, val_print_fields, val_print): Make arg int.
746 * values.c: Add prototypes for local functions.
747 * values.c (value_headof): Convert from misc function vector to
748 minimal symbol table.
749 * xcoffexec.c: Add prototypes for local functions.
750 * xcoffexec.c (exec_close, file_command, add_to_section_table):
752 * xcoffexec.c (relocate_minimal_symbol): Add.
753 * xcoffread.c (patch_block_stabs): Moved to buildsyms.c.
754 * xcoffread.c: Add prototypes for local functions.
755 * xcoffread.c (sort_syms): Convert to scan objfiles.
756 * xcoffread.c (read_xcoff_symtab): Make static.
757 * xcoffread.c (various): Replace references to builtin types with
758 calls to lookup_fundamental_type. Replace references to symbol_obstack
759 and psymbol_obstack with pointers to the per-objfile copies.
760 * xcoffread.c (dump_linetable, dump_type, dump_symbol, dump_namespace,
761 dump_block, dump_blockvector, dump_last_symtab, dump_symtabs):
763 * xcoffread.c (init_stringtab): Add objfile parameter.
764 * gdbtypes.c: New file
765 * minsyms.c: New file
766 * mmap-alloc.c: New file
767 * mmap-sbrk.c: New file
768 * objfiles.c: New file
772 Fri Feb 21 17:29:54 1992 John Gilmore (gnu at cygnus.com)
774 * Check in Fred Fish's changes in these modules. Fred
775 will make ChangeLog entries for all of them. Update VERSION
778 Thu Feb 20 18:10:17 1992 Fred Fish (fnf at cygnus.com)
780 * tm-sparc.h, tm-sysv4.h, solib.h: Move shared lib definitions
782 * sparc-pinsn.c, sparc-tdep.c, standalonec, sun3-xdep.c,
783 sun386-xdep.c, symm-xdep.c, target.c, ultra3-xdep.c, utils.c,
784 value.h: Prototypes for static functions; lint.
785 * gdbtypes.h: Empty file to ease transition.
787 Thu Feb 20 16:43:13 1992 Fred Fish (fnf at cygnus.com)
789 * environ.h, expression.h, frame.h, gdbcmd.h, gdbcore.h,
790 inferior.h, language.h, signame.h, target.h, terminal.h,
791 tm-68k.h, tm-i386v.h, tm-sparc.h, tm-sun386.h, tm-symmetry.h,
792 xm-i386v.h, xm-sparc.h: Prototypes for all external functions.
794 * core.c, exec.c, infrun.c, inftarg.c, language.c, remote.c,
795 signame.c, sparc-xdep.c: Prototypes for all static functions.
797 * core.c, eval.c, exec.c, inftarg.c, remote-adapt.c, remote-eb.c,
798 remote-hms.c, remote-mm.c, remote-nindy.c, remote-vx.c, remote.c,
799 target.c, target.h, valarith.c, valops.c, value.h, xcoffexec.c:
800 Remove to_call_function and target_call_function, since it
801 always calls the same thing (call_function_by_hand).
802 * core.c, exec.c, solib.c: Rename target_ops sections =>
804 * infcmd.c, inflow.c, infptrace.c, infrun.c, main.c, target.c,
805 target.h: target_kill takes no args.
806 * language.c (language_info): Scaffolding to allow briefer
807 messages when the current language changes. FIXME.
808 * xm-amix.h, xm-i386v4.h, xm-stratus.h: Define NORETURN to avoid
809 complaints about volatile functions.
810 * xm-sysv4.h (HAVE_MMAP): Define.
812 Thu Feb 20 09:04:18 1992 Fred Fish (fnf at cygnus.com)
814 * defs.h: Include ansidecl.h and PARAMS macro. Use PARAMS
815 to make prototypes for all functions declared here.
816 * cplus-dem.c: Avoid declaring xmalloc and xrealloc.
817 * c-exp.y: Rename SIGNED, OR, and AND to avoid conflict.
818 * environ.c: Include <stdio.h> before defs.h. Minor cleanup.
819 * ieee-float.h: Use PARAMS for prototypes; make some params const.
820 * ieee-float.c, valarith.c: Include <stdio.h>. Lint. b*=>mem*.
821 * m2-exp.y: Remove unused CONST; Rename OR and AND.
822 * utils.c: Avoid declaring malloc and realloc. Lint.
823 (request_quit): Accept signal-number parameter.
825 Mon Feb 17 07:13:27 1992 Fred Fish (fnf at cygnus.com)
827 * dwarfread.c (process_dies): Add case to handle TAG_pointer_type
828 DIE's. Add new function read_tag_pointer_type() to read them.
830 * dwarfread.c (dwarf_read_array_type, read_subroutine_type):
831 When creating a new user defined type, check to see if a partial
832 type already exists, and if so, bash it to fit.
834 Fri Feb 14 19:00:17 1992 John Gilmore (gnu at cygnus.com)
836 * coffread.c (decode_base_type): Pass long, not union.
837 Fix by Eric Valette, ev@chorus.fr.
839 Thu Feb 13 17:14:28 1992 Fred Fish (fnf at cygnus.com)
841 * elfread.c (elf_symtab_read): Fix code to correctly track
842 changes in bfd for absolute symbols.
844 Thu Feb 13 12:43:29 1992 Stu Grossman (grossman at cygnus.com)
846 * xm-vaxbsd.h: Close off comment.
848 Thu Feb 13 07:45:19 1992 Fred Fish (fnf at cygnus.com)
850 * xm-sysv4.h: Define NEED_POSIX_SETPGID.
852 Fri Feb 7 11:51:12 1992 Per Bothner (bothner at cygnus.com)
854 * mips-tdep.c (mips_print_registers): Print correct register
855 number for double pseudo-registers.
857 Fri Feb 7 07:56:05 1992 John Gilmore (gnu at cygnus.com)
859 * buildsym.c (read_struct_type): Avoid double-bump of parse ptr
860 in the op$::OPERATOR. case. From Steven McCanne,
861 <mccanne@horse.ee.lbl.gov>.
863 * exec.c (set_section_name): Pass arg to exec_files_info;
864 only call it if interactive. From Francis Kauth <fk@tv.tv.tek.com>.
866 Thu Feb 6 17:41:32 1992 John Gilmore (gnu at cygnus.com)
868 * main.c (print_gdb_version): Copyright msg: only this year.
869 (cd_command): Avoid changing current_directory on error.
871 Thu Feb 6 15:14:01 1992 Per Bothner (bothner at cygnus.com)
873 * mipsread.c (parse_partial_symbols): Handle dependencies
874 between partial symbol tables (when not doing stabs-in-ecoff).
875 (This used to be handled by parse_fdr, but parse_fdr was
876 incompatible with handling stabs-in-ecoff, so the code
877 was re-written to not use parse_fdr. Unfortunately,
878 the logic to handle dependencies was overlooked.)
880 Thu Feb 6 11:51:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
882 * coffread.c (read_enum_type): Use the size of a target int when
884 * defs.h: added new #define for TARGET_PTR_BIT, defaults to size
886 * h8300-tdep.c, remote-hms.c, tm-h8300.h: too many changes to count
887 * symtab.c (lookup_reference_type, lookup_ptr_type): use
888 TARGET_PTR_BIT to determine size of a pointer
889 * values.c (unpack_long): when unpacking a REF or a PTR don't
890 assume the size of the type.
892 Wed Feb 5 22:29:59 1992 John Gilmore (gnu at cygnus.com)
894 * mipsread.c (parse_symbol): Avoid clobbering enum pointer when
895 looking at its members. Improve guess between struct and union,
896 only assuming union if multiple members have offsets of zero.
898 Tue Feb 4 18:05:44 1992 Per Bothner (bothner at cygnus.com)
900 * mipsread.c: Use (FP0_REGNUM-32) instead of magic number 6.
901 (This is just for clarity - and one day permitting us to
902 change FP0_REGNUM from 38 to 32, which would make more sense.)
903 * tm-mips.h: Added STAB_REG_TO_REGNUM macro, so that
904 register numbers in stabs-in-ecoff get handled correctly.
906 Sat Feb 1 04:45:10 1992 Stu Grossman (grossman at cygnus.com)
908 * xm-vax.h, xm-vaxult.h, xm-vaxbsd.h, config/mh-vaxult,
909 config/mh-vaxbsd, configure.in: Split up config stuff for Vaxen
912 Sat Feb 1 04:39:41 1992 John Gilmore (gnu at cygnus.com)
914 * dbxread.c (dbx_symfile_init): Call malloc, not xmalloc.
916 Sat Feb 1 04:15:41 1992 Stu Grossman (grossman at cygnus.com)
918 * Makefile.in: Increment version to 4.4.1.
919 * main.c (print_gdb_version): Update copyright notice.
921 Sat Feb 1 01:43:11 1992 Per Bothner (bothner at cygnus.com)
923 * mipsread.c: Prepend "struct " to the names of structure
924 types, and similarly for enums and unions. (This used
925 to be done, but got lost in the re-write to "guess" the
926 difference between enum/struct/union.)
927 Also, guess that a tag is an enum if the first member
930 Fri Jan 31 21:45:51 1992 Stu Grossman (grossman at cygnus.com)
932 * xm-vax.h: #ifndef ultrix around #include of endian.h and
935 Fri Jan 31 00:05:01 1992 John Gilmore (gnu at cygnus.com)
937 * Projects: Patching executables is done.
938 * Makefile.in (VERSION): Roll to gdb-4.4.
939 * README, WHATS.NEW: Update for gdb-4.4.
941 * symfile.c (reread_symbols): Whenever we reread one object
942 file's symbols, we must restart the scan, because the object_files
943 chain has been permuted.
945 * exec.c (exec_files_info): Split out into print_section_info.
946 Print BFD filename of each section if it's not the default one.
947 * core.c (core_files_info): Call print_section_info.
949 * xm-vax.h: Include a few system header files whose definitions
951 * language.c, language.h: Make some things const.
952 * expression.h, main.c: const spreads like ooze.
954 * mem-break.c (break_insn, break_insn_size): Use unsigned chars,
955 since BREAKPOINT values can be >0x80.
957 Thu Jan 30 17:21:14 1992 Stu Grossman (grossman at cygnus.com)
959 * infrun.c, xm-i386sco.h: SCO needs to use setpgid().
961 Thu Jan 30 01:04:23 1992 John Gilmore (gnu at cygnus.com)
963 * sparc-pinsn.c: Remove kludge for preferring architectures.
964 Remove #ifdef's for SORT_NEEDED. We need to sort the table, now
965 and forever. Add `add' instruction to the set that get checked
966 for a preceding `sethi' in order to print an absolute address.
967 Corresponding changes in ../include/opcode/sparc.h needed
968 to eliminate garbage instructions.
970 Wed Jan 29 19:24:34 1992 Per Bothner (bothner at cygnus.com)
972 * mipsread.c (parse_partial_symbols): Make sure partial
973 symbols are created for external symbols (as used to be
974 the case). This is a bit of a pain with the mips-coff.
975 It uses a table which points to all of the external
976 symbols belonging to a particular FDR or psymtab.
977 Once we've generated this table, we might as well save
978 it, and then use it in psymtab_to_symtab_1 to find
979 the symbols to pass to parse_external().
980 * symfile.c, symfile.c: New function start_psymtab_common
981 to share the common parts of allocating a new psymtab
982 for dbxread, mipsread (and later dwarfread). Its code
983 was pulled out from start_psymtab in dbxread.c.
984 * dbxread.c (start_psymtab): Use start_psymtab_common().
986 * valprint.c (val_print): If there is an error when trying
987 to print a string, check to see if there really is a problem
988 by reading just one character. If that works, assume
991 Wed Jan 29 18:58:43 1992 Stu Grossman (grossman at cygnus.com)
993 * sparc-pinsn.c (compare_opcodes): Make it prefer v6, v7,
994 cypress, v8 mnemonics in that order.
996 Tue Jan 28 17:32:13 1992 Per Bothner (bothner at cygnus.com)
998 * sparc-pinsn.c: Put the qsort() back in.
1000 Mon Jan 27 18:51:03 1992 John Gilmore (gnu at cygnus.com)
1002 * findvar.c (read_register, write_register): Handle machines
1003 where REGISTER_TYPE is not the same size as "int".
1005 Handle debug symbols in dynamically loaded (relocated) code:
1007 * dbxread.c (read_ofile_symtab): Fix up N_CATCH better. Pass
1008 offset to process_one_symbol.
1009 (process_one_symbol): Take new offset parameter. Add it into
1010 appropriate symbol types to relocate symbols to loaded addresses.
1011 Handle all possible symbol types, and complain() about types that
1012 we don't expect to see.
1013 * mipsread.c (psymtab_to_symtab_1): Pass offset of zero to
1014 process_one_symbol (FIXME, should pass real offset).
1018 * breakpoint.c (resolve_sal_pc): Split out code to resolve a
1020 (set_breakpoint, break_command_1, until_break_command,
1021 catch_command_1, breakpoint_re_set_one): Use it.
1022 * symtab.h (resolve_sal_pc): Declare.
1023 * infcmd.c (jump_command): Use resolve_sal_pc.
1025 * source.c (list_command): Shorten "FILE, line N" to "FILE:N".
1027 * putenv.c (putenv): Avoid unportably casting pointers to unsigneds.
1029 * c-exp.y (yylex): `this' and `template' are only tokens in C++.
1031 * xm-convex.h, xm-hp300bsd.h, xm-isi.h, xm-merlin.h, xm-news.h,
1032 xm-np1.h, xm-pn.h, xm-pyr.h, xm-rtbsd.h, xm-symmetry.h, xm-umax.h:
1033 Remove MISSING_VPRINTF declaration, and superfluous "kgdb" defines.
1035 Mon Jan 27 15:46:21 1992 Stu Grossman (grossman at cygnus.com)
1037 * dbxread.c (process_one_symbol): Make a first cut at handling
1038 symbol tables generated by Sun's acc. (#ifdef'd out, FIXME.)
1040 * symtab.c (find_pc_line): Fix stepping into and out of #included
1043 Mon Jan 27 13:00:55 1992 Stu Grossman (grossman at cygnus.com)
1045 * Makefile.in (OPCODES): Remove OPCODES defs and refs. There is
1046 no longer any need to copy ../include/opcode/* into gdb.
1048 Mon Jan 27 12:30:38 1992 John Gilmore (gnu at cygnus.com)
1050 * ChangeLog, ChangeLog-9091: Split ChangeLog at 1992.
1052 Sun Jan 26 19:05:40 1992 Per Bothner (bothner at cygnus.com)
1054 * valprint.c (type_print_base, type_print_method_args):
1055 Print C++ constructor methods without bogus "return type."
1057 Sat Jan 25 15:57:59 1992 Fred Fish (fnf at cygnus.com)
1059 * infptrace.c (child_xfer_memory): Parameter "target" should
1060 be a pointer to a structure, not the entire structure.
1062 Fri Jan 24 01:30:27 1992 Fred Fish (fnf at cygnus.com)
1064 * depend: Convert the couple of references to ansidecl.h that
1065 used the local gdb version to use the ../include version.
1067 Thu Jan 23 22:24:43 1992 Fred Fish (fnf at cygnus.com)
1070 (child_xfer_memory): Takes pointer to a struct, not entire struct.
1071 (inferior_proc_init): Fix non-ANSI version of args.
1072 (attach): Call print_sys_errmsg with correct number of args.
1073 (mappingflags): Make static, does not need to be global.
1075 * i386-tdep.c (i386_frame_num_args): Takes a pointer to a struct
1076 not the entire struct itself.
1078 * valops.c (value_assign): Cast some args to modify_field() and
1079 {read,write}_register_bytes() correctly.
1081 * ansidecl.h: Removed, is duplicate of ../include/ansidecl.h
1083 * Makefile.in (MALLOCSRC): Removed reference to removed local
1086 * dwarfread.c (list_in_scope): Needs an initial value, use file
1089 Mon Jan 20 19:06:28 1992 Stu Grossman (grossman at cygnus.com)
1091 * main.c (main): Make option_index local to keep new getopt happy.
1092 main.c, solib.c, Makefile.in: Update copyright notices.
1094 Mon Jan 20 08:54:00 1992 Michael Tiemann (tiemann at cygnus.com)
1096 * cplus-dem.c (cplus_demangle): Correctly demangle destructors.
1098 Sat Jan 18 17:17:45 1992 Stu Grossman (grossman at cygnus.com)
1100 * Makefile.in (HFILES): Add partial-stab.h.
1102 Sat Jan 18 16:45:01 1992 Fred Fish (fnf at cygnus.com)
1104 * config/mh-stratus, config/mt-stratus, tm-stratus.h, xm-stratus.h:
1105 New files for stratus. Not complete enough to actually build
1106 on the Stratus machine; that awaits copyright assignment for
1109 * Makefile.in (USER_CFLAGS): Add macro specifically reserved
1110 for getting custom flags into CFLAGS when doing makes.
1112 * configure.in: Add config information for stratus.
1114 Thu Jan 16 00:51:46 1992 Fred Fish (fnf at cygnus.com)
1116 * dbxread.c (process_one_symbol): Pass address of structure
1117 to complain(), rather than the whole structure.
1119 Wed Jan 15 09:56:16 1992 Fred Fish (fnf at cygnus.com)
1121 * solib.c (solib_add_common_symbols): Only compile in when not
1122 using SVR4 style shared libraries.
1124 Tue Jan 14 22:34:00 1992 Fred Fish (fnf at cygnus.com)
1126 * dwarfread.c (locval): Add offreg flag to indicate location
1127 values that are computed off a base register.
1129 * dwarfread.c (new_symbol): Rework TAG_global_variable and
1130 TAG_local_variable cases to account for static variables
1131 within function scopes.
1133 Tue Jan 14 12:28:52 1992 Stu Grossman (grossman at cygnus.com)
1135 * inflow.c: remove #include <sys/dir.h>. Not necessary, and
1136 doesn't exist on some systems.
1138 * infrun.c (wait_for_inferior!!!!): Prevent gdb from hanging when
1139 nexting over recursive function calls.
1141 * target.c (target_read_string): Create this routine to read null
1142 terminated strings from the target. It deals with running off the
1143 end of memory elegantly as well. solib.c (find_solib): Use
1144 target_read_string() to avoid problems with running off the end of
1147 * inflow.c (child_terminal_info): #ifdef TIOCPGRP around lines
1148 that reference pgrp_inferior.
1150 Mon Jan 13 14:57:11 1992 Per Bothner (bothner at cygnus.com)
1152 * tm-mips.h: Removed BLOCK_ADDRESS_ABSOLUTE, now that
1153 mips-tfile has been hacked to act more "traditionally."
1154 * dbxread.c: Fixed typo in comment.
1156 Sun Jan 12 13:08:36 1992 Per Bothner (bothner at cygnus.com)
1158 * mips-tdep.c (mips_skip_prologue): Add some number of
1159 'sw' instructions before 'addiu' adjusts the stack.
1161 Fri Jan 10 13:47:06 1992 Fred Fish (fnf at cygnus.com)
1163 * dwarfread.c (start_symtab, end_symtab, scopecount, openscope,
1164 freescope, buildblock closescope, record_line, add_symbol_to_list,
1165 gatherblocks, make_blockvector): Extensive changes to switch
1166 to generic symbol table building code in buildsym.c. Remove
1167 scope tree structures and functions, symbol table building
1168 functions, and lots of other small changes.
1170 * dwarfread.c: Add new macros GCC_PRODUCER and STREQN. Remove
1171 GCC_COMPILED_FLAG_SYMBOL and GCC2_COMPILED_FLAG_SYMBOL.
1173 Tue Jan 7 13:09:57 1992 Stu Grossman (grossman at cygnus.com)
1175 * buildsym.c (cleanup_undefined_types): Add support for enums.
1176 This fixes the 'GDB internal error. cleanup_undefined_types with
1179 Sun Jan 5 09:47:50 1992 Stu Grossman (grossman at cygnus.com)
1181 * dbxread.c: detect gcc2 compilations.
1183 Thu Jan 2 15:07:41 1992 John Gilmore (gnu at cygnus.com)
1185 * sparc-pinsn.c: Rename bitfields that overlap with macro names
1186 in ../include/opcode/sparc.h.
1188 Wed Jan 1 04:29:00 1992 Fred Fish (fnf at cygnus.com)
1190 * Makefile.in: Change tm-svr4.h to tm-sysv4.h. Change xm-svr4.h
1191 to xm-sysv4.h. Split OPCODE_DIR into OPCODE_DIR1 and OPCODE_DIR2
1192 to reflect actual locations of opcode files, so TAGS target will
1195 * i386-tdep.c: Change an erroneous 'm68k' reference to 'i386'.
1197 * i386-tdep.c (supply_fpregset, fill_fpregset): Remove m68k
1200 * m68k-tdep.c (supply_fpregset, fill_fpregset): Fix array
1201 dereferencing to access the correct elements.
1203 * valops.c (value_addr): Declare return type of external func
1206 * xcoffread.c: Undefine next_symbol_text before redefining it.
1208 For older changes see ChangeLog-9091
1214 version-control: never