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