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