Call warning() to print warnings, which deals properly with leading and
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 Thu Apr 23 18:43:17 1992 Fred Fish (fnf@cygnus.com)
2
3 * core.c (core_open): Call warning() to print warnings.
4
5 Wed Apr 22 09:55:42 1992 Stu Grossman (grossman at cygnus.com)
6
7 * symtab.c (lookup_symbol): Need to check if msymbol->name is
8 NULL, as ALL_MSYMBOLS will never return a NULL msymbol pointer.
9 This prevents a crash when trying to lookup the value of a
10 non-existent symbol.
11
12 Wed Apr 22 09:42:15 1992 Fred Fish (fnf@cygnus.com)
13
14 * signame.c, signame.h: Remove, replaced by strsignal.c in
15 libiberty.
16 * i960-tdep.c, infrun.c, mach386-xdep.c, procfs.c, sparc-tdep.c,
17 sun386-xdep.c: Remove include of signame.h
18 * Makefile.in (SFILES_MAINDIR): Remove signame.c
19 * Makefile.in (HFILES): Remove signame.h
20 * Makefile.in (OBS): Remove signame.o
21 * defs.h (safe_strerror, safe_strsignal, strerrno, strsigno,
22 errno_max, signo_max, strtoerrno, strtosigno, strsignal,
23 psignal, perror): Add prototypes.
24 * defs.h, xm-apollo68v.h, xm-ultra3.h (SYS_SIGLIST_MISSING):
25 Remove define.
26 * depend: Manually remove signame.[cho] references.
27 * convex-tdep.c (subsig_name): Replace use of sys_siglist with
28 strsignal.
29 * convex-xdep.c (core_file_command): Replace use of sys_siglist
30 with safe_strsignal.
31 * core.c (core_open): Replace use of sys_siglist with
32 safe_strsignal.
33 * core.c (memory_error): Replace use of sys_errlist with
34 safe_strerror.
35 * i960-tdep.c (print_fault): Replace use of sys_siglist with
36 safe_strsignal.
37 * infcmd.c (program_info): Replace use of sys_siglist with
38 safe_strsignal.
39 * infrun.c (signal_stop, signal_print, signal_program):
40 Allocate dynamically based on dynamic determination of number
41 of signals to support.
42 * infrun.c (child_create_inferior): Replace use of sys_errlist
43 with safe_strerror.
44 * infrun.c (wait_for_inferior): Replace use of sys_siglist with
45 safe_strsignal.
46 * infrun.c (sig_print_info): Replace use of sig_abbrev with
47 strsigno and sys_siglist with safe_strsignal.
48 * infrun.c (handle_command): Call signo_max to find number of
49 signals. Replace sig_number with strtosigno and sig_abbrev with
50 strsigno.
51 * infrun.c (signals_info): Replace sig_number with strtosigno.
52 * infrun.c (_initialize_infrun): Call signo_max to find number of
53 signals. Dynamically allocate signal_{stop,print,program}.
54 * procfs.c (errno_table): Remove, now in libiberty/strerror.c.
55 * procfs.c (errnoname): Add function and prototype.
56 * procfs.c (info_proc_siginfo): Call errnoname, replace use
57 of sys_siglist with safe_strsignal.
58 * procfs.c (info_proc_stop, info_proc_signals): Replace use of
59 sys_siglist with safe_strsignal.
60 * procfs.c (info_proc_stop): Call errnoname.
61 * procfs.c (signalname): Replace sig_abbrev with strsigno.
62 * stuff.c (main, get_offset): Replace use of sys_errlist with
63 strerror.
64 * sun386-xdep.c (core_file_command): Replace use of sys_siglist
65 with safe_strsignal.
66 * umax-xdep.c (core_file_command): Replace use of sys_siglist
67 with safe_strsignal.
68 * utils.c (safe_strerror, safe_strsignal): Add functions that
69 call strerror and strsignal respectively, and deal with NULL
70 returns.
71 * utils.c (perror_with_name, print_sys_errmsg): Replace use of
72 sys_errlist with safe_strerror.
73 * valprint.c (val_print): Replace use of sys_errlist with
74 safe_strerror.
75
76 Tue Apr 21 12:00:47 1992 K. Richard Pixley (rich@cygnus.com)
77
78 * Makefile.in: rework CFLAGS so that they can be set from the
79 command line to make. CFLAGS -> INTERNAL_CFLAGS.
80 USER_CFLAGS -> CFLAGS. Remove MINUS_G. Default CFLAGS to -g.
81 Pass CFLAGS on recusions.
82
83 Fri Apr 17 19:25:57 1992 Fred Fish (fnf@cygnus.com)
84
85 * gdbtypes.h, c-exp.y, m2-exp.y, mipsread.c, gdbtypes.c: Back
86 out of change on 4/14/92 and remove TYPE_FLAG_FUND_TYPE. It was
87 overkill for the problem it solved.
88 * valprint.c (type_print_base): Remove TYPE_FLAG_FUND_TYPE test
89 and default to simply printing type names as appropriate.
90 * main.c (main): Remove one of the leading newlines from
91 warning_pre_print initialization.
92 * objfiles.c (open_existing_mapped_file): Add function and
93 prototype.
94 * objfiles.c (open_mapped_file): Rewrite to use new function
95 open_existing_mapped_file.
96
97 Thu Apr 16 23:50:12 1992 John Gilmore (gnu at cygnus.com)
98
99 * sun3-xdep.c (fetch_core_registers): Lint.
100 * tm-sun3.h: Prototype lint.
101 * value.h: Typo.
102
103 Thu Apr 16 19:56:50 1992 Fred Fish (fnf@cygnus.com)
104
105 * dwarfread.c (TARGET_FT_POINTER_SIZE, TARGET_FT_LONG_SIZE):
106 Define using TARGET_PTR_BIT and TARGET_LONG_BIT for now.
107 * objfiles.c: Cast calls to close() with unused returns to void.
108 * objfiles.c (allocate_objfile): Initialize objfile's mmfd, free
109 old objfile's name before updating it.
110 * objfiles.c (free_objfile): Major rewrite for mapped objfiles.
111 * objfiles.h (objfile struct): Add mmfd member.
112 * symfile.c (syms_from_objfile): Move some code to
113 new_symfile_objfile.
114 * symfile.c (new_symfile_objfile): Add new function, common code
115 from syms_from_objfile.
116 * symfile.c (symbol_file_add): Call new_symfile_objfile for both
117 mapped and unmapped symbol files.
118 * symfile.c (symbol_file_command): Print "No symbol file now"
119 message, ala exec_file_command for the exec file.
120 * symfile.h (new_symfile_objfile): Add prototype.
121 * xcoffexec.c (map_vmap): Add call to new_symfile_objfile.
122 * xcoffsolib.c (solib_add): Add call to new_symfile_objfile.
123
124 Thu Apr 16 18:26:34 1992 Per Bothner (bothner@cygnus.com)
125
126 * rs6000-pinsn.c: New version from IBM (Metin).
127 * m2-exp.y: Re-write string initializers ("<>" => {'<', '>'})
128 to avoid warnings from some compilers.
129
130 Tue Apr 14 22:33:55 1992 Fred Fish (fnf@cygnus.com)
131
132 * gdbtypes.h (FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL): Add defines.
133 * gdbtypes.h (TYPE_FLAG_FUND_TYPE): Add define for bit in a
134 type's flag word that marks it as a fundamental type.
135 * c-exp.y (_initialize_c_exp): Add TYPE_FLAG_FUND_TYPE bit to
136 flags argument for all calls to init_type().
137 * m2-exp.y (_initialize_m2_exp): Add TYPE_FLAG_FUND_TYPE bit to
138 flags argument for all calls to init_type(). Also remove
139 dependency on host sizes for ints, floats, etc.
140 * mipsread.c (_initialize_mipsread): Add TYPE_FLAG_FUND_TYPE bit to
141 flags argument for all calls to init_type(). Also remove
142 dependency on host sizes for ints, floats, etc.
143 * gdbtypes.c (lookup_fundamental_type): Add TYPE_FLAG_FUND_TYPE
144 bit to flags argument for all calls to init_type(). Add types
145 FT_FIXED_DECIMAL and FT_FLOAT_DECIMAL.
146 * valprint.c (unsigned_type_table, signed_type_table,
147 float_type_table): Remove.
148 * valprint.c (type_print_base): Test new TYPE_FLAG_FUND_TYPE
149 bit when printing fundamental types, and print the actual name
150 for such types, rather than inventing one. Remove code that
151 invented fundamental type names.
152 * valprint.c (_initialize_valprint): Remove initializations
153 for now removed unsigned_type_table, signed_type_table, and
154 float_type_table.
155
156 Tue Apr 14 14:30:46 1992 Stu Grossman (grossman at cygnus.com)
157
158 * remote-vx.c, vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
159 vx-share/xdr_rdb.h: Update for new remote protocol under VxWorks
160 5.0.2.
161
162 Mon Apr 13 20:59:21 1992 Fred Fish (fnf@cygnus.com)
163
164 * dwarfread.c (target_to_host): New function similar to previous
165 swapin function.
166 * dwarfread.c (SWAPIN, swapin): Remove macro and support function.
167 Extensive changes to convert all previous usages to use new
168 target_to_host() function.
169 * dwarfread.c (struct dieinfo): Change types of most integral
170 members to be unsigned.
171
172 Mon Apr 13 15:59:10 1992 John Gilmore (gnu at cygnus.com)
173
174 * WHATS.NEW: Revise -mapped doc.
175
176 Sat Apr 11 23:14:36 1992 John Gilmore (gnu at cygnus.com)
177
178 * mipsread.c (parse_partial_symbols): Complain when sh->index is
179 too high or when skipping `forwards' moves us backwards.
180 (parse_type): Print mis-guessed tag name in complaint.
181 (parse_external): Eliminate cur_stab and obscure top_stack clobbers.
182 (parse_procedure): Do not attempt to create symbols; just fill in
183 the SYMBOL_VALUE field of a .gdbinfo. symbol if we can find one.
184 (psymtab_to_symtab_1): Split up `stabs' from `native ecoff' code
185 for clarity. Set top_stack before calling parse_external. In
186 stabs, sort symbols before calling parse_procedure.
187 * mipsread.c: Lint.
188 * symmisc.c (std_in, std_out, std_err): Add vars to access std
189 FILE *'s when debugging GDB (e.g. as args to dump_symtab).
190 * Makefile.in: Remove stage* targets. Avoid echo on recursive
191 makes. Eliminate doc/Makefile from tar.Z file if doc/Makefile.in
192 exists.
193
194 Fri Apr 10 23:47:37 1992 John Gilmore (gnu at cygnus.com)
195
196 * Makefile.in (VERSION): Set to 4.5.1.
197 * xcoffread.c (NO_TYPEDEFS): Fix typo in commented-out #define.
198 * sparc-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
199 fill_gregset): New functions for SVR4 /proc support.
200 * mipsread.c: Cleanup. Add more complaints for unhandled cases.
201 Remove new symbol types and such to ../include/coff/symconst.h.
202 (parse_symbol): Simplify code for parsing struct/enum/unions.
203 (parse_type): Handle `long long' types.
204 (upgrade_type): Handle `const' qualifier.
205 (parse_partial_symbols): fix indentation, clean a bit.
206
207 Fri Apr 10 22:41:03 1992 Fred Fish (fnf@cygnus.com)
208
209 * dwarfread.c (SWAPIN,swapin): New macro and function to call to
210 copy in data from raw read buffers, calling bfd byteswapping
211 routines as appropriate. Use to replace most existing memcpy
212 calls.
213 * dwarfread.c (basicdieinfo, completedieinfo): Add objfile arg.
214 * configure.in: Recognize new ncr3000 config.
215 * config/ncr3000.mh: New config file.
216
217 Fri Apr 10 08:30:58 1992 Stu Grossman (grossman at cygnus.com)
218
219 GDB-4.5 release!
220
221 * README: Update for release.
222 * Makefile.in: Update version to 4.5.
223 * WHATS.NEW: The obvious.
224
225 * depend: Generate new depend file for this release.
226
227 * Makefile.in (depend): Fix dependancy generation so that it does
228 not include gcc 'fixincluded' files, which are usually in a system
229 specific location.
230
231 Thu Apr 9 13:35:00 1992 Per Bothner (bothner@rtl.cygnus.com)
232
233 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik).
234 * buildsym.c (#ifdef RS6000_TARGET): Don't create unnecessary
235 symbols for nameless types. And, handle `R' (register parameter
236 type) for AIX. (an extension to existing stabstring grammar).
237 * rs6000-xdep.c: Fix typo (= should have been ==).
238
239 Thu Apr 9 12:10:06 1992 Stu Grossman (grossman at cygnus.com)
240
241 * Makefile.in: version=4.4.88, add xm-vax.h to HFILES.
242
243 Thu Apr 9 02:29:03 1992 John Gilmore (gnu at cygnus.com)
244
245 * xm-sun4os5.h (DO_DEFERRED_STORES, CLEAR_DEFERRED_STORES): Zap.
246 * signame.c (SIGWAITING, SIGLWP): Add.
247
248 Tue Apr 7 16:34:07 1992 Per Bothner (bothner@cygnus.com)
249
250 * xm-i386mach.h: add decls for errno and strdup().
251
252 * breakpoint.c (breakpoint_1): Add (int) casts for enums
253 used in array index context (otherwise, some compilers barf).
254
255 Tue Apr 7 08:45:46 1992 Stu Grossman (grossman at cygnus.com)
256
257 * m68k-tdep.c, tm-sun3.h: #ifdef around get_longjmp_target().
258 Change def of SAVED_PC_AFTER_CALL to call routine to see if we are
259 in a system call, and provide better backtrace if so.
260
261 * Makefile.in (HFILES): Add xcoffsolib.h.
262 * rs6k-opcode.h: Move to ../include/opcode/rs6k.h.
263 * rs6000-pinsn.c: #include "opcode/rs6k.h"
264
265 * mipsread.c (read_mips_symtab, read_the_mips_symtab,
266 mipscoff_symfile_read): Convert to BFD to do file I/O.
267
268 * symfile.c: #include <ctype.h> to get proper def if isspace().
269
270 * i386-tdep.c (get_longjmp_target): #ifdef GET_LONGJMP_TARGET.
271
272 Mon Apr 6 17:25:45 1992 Per Bothner (bothner@cygnus.com)
273
274 * mipsread.c: Create a .gdbinfo pseudo-symbol for each
275 function also when parsing embedded stabs.
276
277 Mon Apr 6 15:25:03 1992 Stu Grossman (grossman at cygnus.com)
278
279 * mipsread.c: Fix more declarations.
280
281 * mipsread.c: Fix many invocations of complain. Use enum
282 type_code where appropriate.
283
284 * xm-vaxult.h: Add decl for strdup().
285
286 * Makefile.in: Add dependancies for xm-vaxbsd.h and xm-vaxult.h
287 for xm-vax.h.
288
289 Fri Apr 3 17:41:29 1992 Stu Grossman (grossman at cygnus.com)
290
291 * buildsym.h, dbxread.c, mipsread.c: Add objfile arg to
292 process_one_symbol.
293
294 Fri Apr 3 12:17:14 1992 Per Bothner (bothner@cygnus.com)
295
296 * munch: Must pre-pend "_" to "initialize" for SYSV style nm.
297 * tm-rs6000.h, xcoffexec.c, xcoffread.c, xm-rs6000.h:
298 Merge in more patches for rs6000 from Metin Ozisik.
299 * utils.c: Fix typo in comment.
300
301 Fri Apr 3 11:23:03 1992 Fred Fish (fnf@cygnus.com)
302
303 * procfs.c (procinfo struct): Add nopass_next_sigstop member.
304 * procfs.c (attach): Set nopass_next_sigstop if attached
305 process is forcibly stopped.
306 * procfs.c (child_resume): Use nopass_next_sigstop to suppress
307 resending SIGSTOP to attached process on first resume.
308
309 Fri Apr 3 01:37:26 1992 Stu Grossman (grossman at cygnus.com)
310
311 * Makefile.in (SFILES_MAINDIR): add mipsread.c
312
313 Thu Apr 2 20:20:54 1992 John Gilmore (gnu at cygnus.com)
314
315 * Makefile.in (OBS): Compile mipsread.c for all targets now.
316 (VERSION): Bump to 4.4.85.
317 * mipsread.c: Update for new include files. Lint.
318 * tm-irix3.h, tm-mips.h: Use new include files for ECOFF symtab.
319 * config/{bigmips.mt, littlemips.mt, irix3.mt, decstation.mt}:
320 Don't need to bring in mipsread.o specially any more.
321
322 Thu Apr 2 19:38:31 1992 Stu Grossman (grossman at cygnus.com)
323
324 * mipsread.c (fixup_sigtramp): Also look for _sigtramp as a real
325 routine (for Irix-4.x). Make many funcs static and void.
326 * mips-tdep.c (mips-frame-chain): Clean up, simplify.
327 * (init_extra_frame_info): Don't trash cached value of frame
328 pointer register. This fixes backtracing through routines that use
329 alloca(). Generally clean up declarations of functions, and use
330 typedefs and macros to reference data structures as appropriate.
331 * tm-irix3.h, tm-mips.h (EXTRA_FRAME_INFO): use proper type for
332 proc_desc element.
333
334 Thu Apr 2 09:47:11 1992 Fred Fish (fnf@cygnus.com)
335
336 * values.c (unpack_long): Fix unpacking error for signed chars
337 on hosts where the default character type is unsigned.
338 * procfs.c (pr_flag_table, pr_why_table): Add some entries
339 for newer SVR4 variants.
340 * procfs.c (proc_set_exec_trap): Reorder tests for ioctl's that
341 turn off trace inherit-on-fork flag to favor latest SVR4 method.
342 * procfs.c (mappingflags): Add support for MA_PHYS
343
344 Thu Apr 2 00:55:56 1992 John Gilmore (gnu at cygnus.com)
345
346 * buildsym.c (read_struct_type): Avoid coredump when C++
347 abbreviated type name is messed up. Reported by Joe Buck.
348 FIXME, we need to determine whether GDB or GCC needs to be
349 smarter to correctly locate this type name.
350
351 * c-exp.y, coffread.c, command.c, command.h, copying.awk,
352 dbxread.c, gdbtypes.c, infcmd.c, inferior.h, infrun.c,
353 m2-exp.y, printcmd.c, remote.c, solib.c, source.c, stack.c,
354 symtab.c, tm-sun4os4.h, tm-sun4os5.h, values.c: Lint.
355 * symfile.c (add_symbol_file_command): Initialize mapped/readnow.
356
357 Wed Apr 1 11:39:52 1992 Fred Fish (fnf@cygnus.com)
358
359 * breakpoint.h (bpdisp, bptype): Remove trailing comma.
360 * symtab.h (current_source_symtab): Make extern
361 * symtab.h (current_source_line): Make extern
362 * inferior.h: Move all procfs.c prototypes to one place, add
363 prototype for proc_signal_handling_change. Add prototypes for
364 signal_stop_state, signal_print_state, and signal_pass_state.
365 * inferior.h (stop_soon_quietly): Make extern
366 * inferior.h (attach_flag): Make extern
367 * infrun.c (NOTICE_SIGNAL_HANDLING_CHANGE): Default is null.
368 * infrun.c (signal_stop_state, signal_print_state,
369 signal_pass_state): New functions to query specific signal
370 handling flags.
371 * infrun.c (handle_command): Minor error message change, add
372 NOTICE_SIGNAL_HANDLING_CHANGE.
373 * procfs.c (open_proc_file): Remove iris specific reset of
374 inherit-on-fork flag, moved to proc_set_exec_trap().
375 * procfs.c (proc_set_exec_trap): Add SVR4 and iris code
376 to reset inherit-on-fork flag, bash comment to GNU form.
377 * procfs.c (proc_base_address, set_proc_siginfo,
378 fetch_core_registers): Conform to code style.
379 * procfs.c (signame.h): Include.
380 * procfs.c (MAX_SYSCALLS, syscall_table[], init_syscalltable(),
381 syscallname(), info_proc_syscalls()): New macros, tables, and
382 functions to organize and report system call information.
383 * procfs.c (saved_fltset, saved_trace, saved_sighold,
384 saved_exitset, saved_entryset): Add to procinfo struct.
385 * procfs.c (struct trans): Add.
386 * procfs.c (pr_flag_table, pr_why_table, faults_table,
387 siginfo_table, errno_table): Tables to translate numeric values
388 to symbolic names and short descriptions.
389 * procfs.c (signalname, info_proc_signals): Add function and
390 prototype.
391 * procfs.c (proc_info): Now info_proc.
392 * procfs.c (proc_info_address_map): Now info_proc_mappings.
393 * procfs.c (info_proc_flags, info_proc_stop, info_proc_siginfo,
394 info_proc_faults, lookupname, lookupdesc, sigcodename,
395 sigcodedesc): New functions.
396 * procfs.c (proc_signal_handling_change): New function to set
397 the trace flags based on the state of gdb's signal handling flags.
398 * procfs.c (inferior_proc_init): Call proc_signal_handling_change
399 and remove code to do PIOCSTRACE ioctl.
400 * procfs.c (attach, detach): Preserve and restore process flags
401 using saved_* fields in procinfo struct.
402 * procfs.c (attach): Call proc_signal_handling_change.
403 * procfs.c (info_proc): Major rework to expand "info proc" cmd.
404 * procfs.c (proc_desc): Update for latest changes.
405 * xm-irix4.h (CREATE_INFERIOR_HOOK): Protect by USE_PROC_FS.
406 * xm-irix4.h (NOTICE_SIGNAL_HANDLING_CHANGE): Add definition.
407 * xm-sysv4.h (NOTICE_SIGNAL_HANDLING_CHANGE): Add definition.
408
409 Tue Mar 31 18:38:28 1992 Fred Fish (fnf@cygnus.com)
410
411 * procfs.c (set_proc_siginfo): Add prototype and new function.
412 * procfs.c (detach, child_resume): Call set_proc_siginfo to set
413 up inferior siginfo struct.
414 * elfread.c (elf_symfile_read): Compute the relocation amount
415 by subtracting off the address of the ".text" section.
416 * solib.c: Add pointer to ".text" section to so_list struct.
417 * solib.c (solib_map_sections): Initialize pointer to ".text"
418 section in so_list struct.
419 * solib.c (symbol_add_stub): Pass base address of ".text"
420 section to symbol_file_add, rather than the load address of
421 the shared library. On SunOS they are the same. On SVR4 they
422 are not.
423
424 Tue Mar 31 17:48:15 1992 Stu Grossman (grossman at cygnus.com)
425
426 * mipsread.c (parse_procedure): PDR.isym should get pointer to
427 function name, not .gdbinfo. symbol.
428
429 Tue Mar 31 17:05:04 1992 John Gilmore (gnu at cygnus.com)
430
431 * breakpoint.c (breakpoint_1): Fix prototype, this time for sure!
432
433 Tue Mar 31 11:01:06 1992 Stu Grossman (grossman at cygnus.com)
434
435 * Makefile.in (VERSION): 4.4.8
436
437 * procfs.c (open_proc_file): Disable inherit-on-fork flag so that
438 commands in .cshrc/.profile won't get traced.
439
440 Tue Mar 31 08:11:58 1992 John Gilmore (gnu at cygnus.com)
441
442 * elfread.c (elf_symtab_read): Use xmalloc, not bfd_xmalloc.
443 * exec.c (build_section_table): Don't abort if no sections.
444 * sparc-tdep.c (single_step): Lint.
445 * utils.c (mrealloc): Handle realloc (0, size) case here.
446
447 Mon Mar 30 16:50:43 1992 Stu Grossman (grossman at cygnus.com)
448
449 * Makefile.in (alldeps.mak): Config files are now *.m[ht] as
450 opposed to m[ht]-*!
451
452 * config/irix4.mh: Don't use coredep.o. It doesn't work with procfs.
453
454 * mipsread.c (parse_symbol, parse_procedure): Re-do the way that
455 .gdbinfo. symbols are created. Move creation from parse_procedure
456 to parse_symbol, where it is fairly easy to grow the symtab. This
457 also fixes a symtab trashing bug on all mips-based systems.
458 * (got_numargs, lookup_numargs, free_numargs): Delete. Not
459 needed anymore.
460 * tm-mips.h, tm-iris3.h, mips-tdep.c, mipsread.c: Re-do struct
461 mips_extra_func_info, and all the PROC_xxx macros that look at it.
462
463 Mon Mar 30 14:17:53 1992 Per Bothner (bothner@cygnus.com)
464
465 * c-exp.y: Add missing return type to yyparse() prototype.
466
467 Sat Mar 28 22:22:06 1992 John Gilmore (gnu at cygnus.com)
468
469 Create and use macros for iterating on symtabs, psymtabs, msymbols.
470
471 * minsyms.c (iterate_over_msymbols): Remove; clunky and slow.
472 * symfile.h, symtab.h (iterate_over_msymbols): Remove prototype
473 * coffread.c (coff_symfile_read): iterate_over_symtabs => ALL_SYMTABS.
474 (patch_opaque_types): Avoid dummy args and result.
475 * objfiles.c (have_partial_symbols, have_full_symbols,
476 have_minimal_symbols): explicit iteration => ALL_OBJFILES; simplify.
477 (iterate_over_objfiles, iterate_over_symtabs,
478 iterate_over_psymtabs): Remove, clunky and slow.
479 * objfiles.h: Replace iterate_over_* prototypes with ALL_SYMTABS,
480 ALL_PSYMTABS, and ALL_MSYMBOLS macros.
481 * symmisc.c (dump_symtab, dump_psymtab, dump_msymbols,
482 dump_objfile): Remove dummy args and results. Move filename
483 comparisons to callers.
484 (printsyms_command, printpsyms_command, printmsyms_command,
485 printobjfiles_command): iterate_over_* => ALL_*. Compare filenames.
486 * symtab.c (lookup_symtab_1, lookup_symtab, lookup_partial_symtab,
487 lookup_symbol, find_main_psymtab, find_pc_symtab, sources_info,
488 list_symbols, make_symbol_completion_list): Replace explicit
489 iteration with ALL_SYMTABS, ALL_PSYMTABS, or ALL_MSYMBOLS.
490 Eliminate Dijkstra flag crap, break out of loops with gotos.
491 (lookup_symtab_1): Protect '/' tests from short filenames.
492 (cplus_mangled_symbol): Move inline into lookup_symbol.
493 * xcoffexec.c (relocate_objfile_msymbols): Remove poor hack.
494 (relocate_minimal_symbol): Move inline to vmap_symtab.
495 (vmap_symtab): Replace iteration with ALL_OBJFILES,
496 iterate_over_msymbols with ALL_MSYMBOLS.
497
498 Misc cleanup prior to release.
499
500 * Makefile.in (VERSION): Roll to 4.4.7.
501 (HFILES): Add call-cmds.h.
502 * call-cmds.h: New header for command fns called by other files.
503 * breakpoint.c (watchpoints_info): Remove, same as breakpoints_info.
504 (breakpoint_1): Remove unused type arg. Change callers.
505
506 * dwarfread.c (dwarf_build_psymtabs): Remove mainline test.
507 * mipsread.c (compare_symtabs, compare_psymtabs): Remove, unused.
508 * mipsread.c: Add prototypes for all static functions.
509
510 * symmisc.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
511 dump_blockvector, dump_block, dump_addrchass, dump_namespace,
512 dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove, unused.
513 * xcoffread.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
514 dump_blockvector, dump_block, dump_addrchass, dump_namespace,
515 dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove 2nd
516 unused copy!
517
518 * buildsym.c (define_symbol): Handle global register variables
519 (from Pierre Willard). Complain if register numbers are too large.
520 * target.c (nomemory): Now that higher levels examine errno, give EIO.
521 * tm-sparc.h: Don't #include <sun4/reg.h>.
522 * sparc-tdep.c (sparc_frame_chain, frame_saved_pc): Remove
523 dependency on <sun4/reg.h>. Start to handle cross-byte-order.
524
525 * language.h: Avoid forward enum declaration.
526 * configure.in, tm-sun4os5.h, xm-sun4os5.h, config/sun4os5.mh,
527 config/sun4os5.mt: New host and target.
528 * defs.h (errno): #include <errno.h> rather than assuming int.
529 From Pierre Willard.
530
531 * breakpoint.c, breakpoint.h, buildsym.c, coffread.c, cplus-dem.c,
532 dbxread.c, dwarfread.c, elfread.c, infcmd.c, infrun.c, inftarg.c,
533 language.c, main.c, mem-break.c, mips-tdep.c, mipsread.c,
534 partial-stab.h, remote.c, saber.suppress, symfile.c, symtab.c,
535 valops.c, valprint.c, xcoffread.c, c-exp.y, m2-exp.y, blockframe.c,
536 command.c, core.c, exec.c, gdbtypes.h, parse.c, printcmd.c, solib.c,
537 sparc-xdep.c, utils.c, value.h, values.c: Lint.
538
539 Sat Mar 28 02:43:26 1992 John Gilmore (gnu at cygnus.com)
540
541 * buildsym.c (read_range_type): Avoid int overflow by using unsigned.
542 * dbxread.c (dbx_symfile_init): Remove bogus `lvalue cast'.
543 * language.h (enum exp_opcode): Avoid forward enum def.
544 * main.c (define_command, user_defined_command): Lint.
545 * mem-break.c, xcoffread.c: Lint.
546 * solib.c: Only #include <a.out.h> on SunOS, not SVR4.
547
548 Sun Mar 29 14:16:22 1992 Per Bothner (bothner@cygnus.com)
549
550 * Merged in latest RS6000 diffs from Metin G. Ozisik.
551 * xcoffsolib.c, xcoffsolib.h: New files, from Metin.
552 * Various files: Changed #ifdef IBM6000 to IBM6000_HOST
553 or IBM6000_TARGET as (approximately) appropriate.
554
555 Sat Mar 28 13:00:10 1992 Fred Fish (fnf@cygnus.com)
556
557 * objfiles.h (OBJF_SYMS): Define flag bit for objfile flags.
558 * symfile.c (symbol_file_add): Use OBJF_SYMS to decide whether
559 or not to try reading symbols from a mapped objfile. Plugs memory
560 leak due to shared libraries generating no psymtabs or symtabs.
561
562 Fri Mar 27 15:44:55 1992 John Gilmore (gnu at cygnus.com)
563
564 * buildsym.c (MAX_OF_C_TYPE, MIN_OF_C_TYPE): Unused, remove.
565 * copying.awk: Lint. Make stronger warning at top of copying.c.
566 * elfread.c (elf_symtab_read): Eliminate check of mainline.
567 * gdbtypes.c (smash_to_*): Remove FIXME comments.
568 (lookup_pointer_type): Add FIXME comment.
569 * main.c (set_history_size_command): Disallow negative size.
570 * partial-stab.h: Update copyright.
571 * rs6000-tdep.c (skip_trampoline_code): Better comments.
572
573 Wed Mar 25 10:45:38 1992 John Gilmore (gnu at cygnus.com)
574
575 * main.c (set_history_size_command): Negative size is error.
576 (Reported by Peggy Fieland.)
577
578 Thu Mar 26 17:01:18 1992 Fred Fish (fnf@cygnus.com)
579
580 * coffread.c (coff_symfile_init): Update comment.
581 * dbxread.c (DBX_SYMFILE_INFO, DBX_TEXT_SECT, DBX_SYMCOUNT,
582 DBX_STRINGTAB, DBX_STRINGTAB_SIZE, DBX_SYMTAB_OFFSET): Define
583 macros to access the dbx specific objfile information.
584 * dbxread.c (symfile_string_table, symfile_string_table_size):
585 Remove these local variables.
586 * dbxread.c (read_ofile_symtab, psymtab_to_symtab_1,
587 read_dbx_symtab): Remove the stringtab and stringtab_size params
588 from the function prototypes, the function definition, and the
589 function calls. These are now available via DBX_STRINGTAB and
590 DBX_STRINGTAB_SIZE using the objfile pointer.
591 * dbxread.c (dbx_symfile_read): Relocate addr before using as
592 an arg to read_dbx_symtab.
593 * dbxread.c (dbx_symfile_read): Remove code that free'd the
594 stringtab and the dbx specific per-objfile private info.
595 * dbxread.c (init_psymbol_list): Remove symbol count from passed
596 args in prototype, function definition, and function calls. It is
597 now available via the DBX_SYMCOUNT macro using the objfile
598 pointer.
599 * dbxread.c (dbx_symfile_read, dbx_symfile_init): Remove the
600 local instance of struct dbx_symfile_info and replace with DBX_*
601 macros.
602 * dbxread.c (dbx_symfile_read): Remove init's of now deleted
603 symfile_string_table and symfile_string_table_size.
604 * dbxread.c (dbx_symfile_finish): Remove now obsolete free of
605 symfile_string_table.
606 * dbxread.c (init_psymbol_list): Use DBX_SYMCOUNT.
607 * dbxread.c (dbx_psymtab_to_symtab): Remove local stringtab and
608 stringtab size variables. Remove all code that used to reread
609 the stringtab.
610 * objfiles.c (allocate_objfile): Move calls to init_malloc()
611 to prior to any calls to mmalloc for the objfile specific heap.
612 * utils.c (init_malloc): Document the requirement that for each
613 heap for which corruption checking is desired, that init_mmalloc
614 must be called prior to any mmalloc calls on the heap.
615
616 Thu Mar 26 13:20:06 1992 Per Bothner (bothner@cygnus.com)
617
618 * rs6000-pinsn.c: Make dis-assembly output more like
619 other targets: Don't print instruction in hex before
620 the assembly; use print_address to print out jump
621 destinations.
622
623 Wed Mar 25 16:52:35 1992 Per Bothner (bothner@cygnus.com)
624
625 * c-exp.y, gdbtypes.h: Add builtin_type_signed_char.
626 * cplus-dem.c: Support "Sc" meaning "signed char".
627
628 Wed Mar 25 15:21:44 1992 Stu Grossman (grossman at cygnus.com)
629
630 * configure.in: fix iris/iris3.
631
632 Wed Mar 25 14:55:48 1992 Per Bothner (bothner@cygnus.com)
633
634 * command.c, main.c (various places): Use ctype.h macros
635 (such as isupper(x)), instead of hard-wiring in ASCII-isms
636 (such as (x >= 'A' && x <= 'Z')).
637 (There are still more of these in other files.)
638 * main.c (defined_command): Lower-case the user's
639 new command before entering it. Needed because
640 command lookup is case-insensitive (and also lower-cases).
641 (Based on Metin's earlier patch.)
642
643 Tue Mar 24 23:27:01 1992 K. Richard Pixley (rich@cygnus.com)
644
645 * config/irix4.mh: new file.
646
647 Tue Mar 24 14:17:48 1992 Stu Grossman (grossman@cygnus.com)
648
649 * infcmd.c (step_1): Call disable_longjmp_breakpoint at the right
650 time.
651
652 * xm-mips.h: Declare strdup for ultrix.
653
654 * mipsread.c (fixup_sigtramp): Make sure that current_objfile is setup
655 when calling new_symbol.
656 * mips-tdep.c (mips_frame_chain): Use symfile_objfile instead of
657 current_objfile.
658
659 Tue Mar 24 13:26:25 1992 Per Bothner (bothner@rtl.cygnus.com)
660
661 * config/rs6000.mh: Update (for Fred's new mmalloc)
662 flags to disable use of GNU malloc/mmalloc.
663 * munch: Change SYSV rule to allow .text before the label,
664 as well as after, to work for AIX.
665 * gdbtypes.h: Minor clarifiction.
666
667 Tue Mar 24 07:26:19 1992 Michael Tiemann (tiemann@cygnus.com)
668
669 * buildsym.c (read_struct_type): Handle cretinous dbx symbol name
670 continuation in yet another place (between method declarations).
671
672 Mon Mar 23 23:01:41 1992 Stu Grossman (grossman at cygnus.com)
673
674 * mips-tdep.c: include symfile.h and objfiles.h to fix
675 compilation errors.
676
677 Mon Mar 23 15:49:14 1992 Per Bothner (bothner@cygnus.com)
678
679 * valops.c (value_struct_elt_for_reference): Added 'offset'
680 parameter to handle multiple inheritance.
681 * eval.c, value.h: Update accordingly.
682
683 Fri Mar 20 17:43:27 1992 Fred Fish (fnf@cygnus.com)
684
685 * objfiles.h: New file
686 * Makefile.in (HFILES): Add objfiles.h
687 * blockframe.c: Remove entry_scope_lowpc, entry_scope_highpc,
688 main_scope_lowpc, main_scope_highpc.
689 * blockframe.c, buildsym.c, coffread.c, dbxread.c, dwarfread.c,
690 elfread.c, gdbtypes.h, minsyms.c, mipsread.c, objfiles.c, solib.c,
691 source.c, symfile.c, symmisc.c, symtab.c, target.c, xcoffexec.c,
692 xcoffread.c, : Include objfiles.h.
693 * tm-29k.h, tm-i386v.h, tm-merlin.h, tm-rs6000.h, tm-sun386.h,
694 tm-symmetry.h, tm-tahoe.h, tm-umax.h, tm-vax.h, m88k-tdep.c,
695 mips-tdep.c (FRAME_CHAIN): Renamed outside_startup_file to
696 inside_entry_file() and logic changed appropriately.
697 * blockframe.c (outside_startup_file): Renamed to
698 inside_entry_file() and logic changed appropriately.
699 * blockframe.c (inside_main_scope): Renamed to inside_main_func()
700 and logic changed to use per-objfile specific fields.
701 * blockframe.c (inside_entry_scope): Renamed to
702 inside_entry_func() and logic changed to use per-objfile specific
703 fields.
704 * blockframe.c, buildsym.h, coffread.c, dwarfread.c, mipsread.c,
705 symfile.c, mips-tdep.c (startup_file_start, startup_file_end):
706 Remove extern decls.
707 * symfile.c, symfile.h (entry_point): Remove extern decl.
708 * coffread.c (coff_symfile_init): Common entry point init code
709 moved to symfiles.c, call init_entry_point_info().
710 * coffread.c (complete_symtab): Use new per-objfile entry info.
711 * mip-tdep.c (mips_frame_chain): Use new per-objfile entry info.
712 * mipsread.c (parse_partial_symbols): Use new per-objfile entry
713 info.
714 * dbxread.c (read_dbx_symtab): Use new per-objfile entry info.
715 * defs.h (inside_entry_scope, outside_startup_file,
716 inside_main_scope): Prototypes changed for renames to
717 inside_entry_func, inside_entry_file, inside_main_func,
718 respectively.
719 * symfile.c (syms_from_objfile): Common entry point init code
720 moved to init_entry_point_info() and call init_entry_point_info().
721 * symfile.h (init_entry_point_info): Include prototype.
722 * xcoffread.c (aixcoff_symfile_init): Common entry point init code
723 moved to symfiles.c and call init_entry_point_info().
724 * dwarfread.c (entry_scope_lowpc, entry_scope_highpc,
725 main_scope_lowpc, main_scope_highpc): Remove extern decls.
726 * dwarfread.c (read_func_scope, read_file_scope): Use new per-
727 objfile entry info.
728 * frame.h (FRAME_CHAIN_VALID): Provide default definition that
729 works for the majority of targets.
730 * tm-68k.h, tm-convex.h, tm-h8300.h, tm-i386v.h, tm-irix3.h,
731 tm-merlin.h, tm-mips.h, tm-pyr.h, tm-rs6000.h, tm-sparc.h,
732 tm-sun386.h, tm-tahoe.h, tm-umax.h, tm-vax.h (FRAME_CHAIN_VALID):
733 Use default definition in frame.h.
734 * frame.h (selected_frame_level): Make decl extern.
735 * objfiles.c, symfile.c (current_objfile): Moved to objfiles.c
736 * objfiles.c, symfile.c (symfile_objfile): Moved to objfiles.c
737 * partial-stab.h: Use new per-objfile entry info.
738 * symfile.h (struct objfile): Removed, moved to objfiles.h.
739 * symfile.h, objfiles.h (allocate_objfile, free_objfile,
740 free_all_objfiles, iterate_over_objfiles, iterate_over_symtabs,
741 iterate_over_psymtabs, have_partial_symbols, have_full_symbols,
742 have_minimal_symbols): Prototypes moved to objfiles.h.
743 * symfile.h, objfiles.h (ALL_OBJFILES, ALL_OBJFILES_SAFE):
744 Macros moved to objfiles.h.
745 * tm-h8300.h, tm-i386v4.h (FRAME_CHAIN_VALID_ALTERNATE): Define.
746
747 Thu Mar 19 18:49:45 1992 Per Bothner (bothner@cygnus.com)
748
749 More C++ improvements (pointers to members, qualified names).
750 * c-exp.y: Support exp.type::name and exp->type::name
751 syntaxes. (Unfortunately, doesn't work for static members.)
752 * c-exp.y, eval.c: Make type::~type work better.
753 * eval.c (evaluate_subexp: OP_SCOPE): Replace use of
754 value_static_field by value_struct_elt_for_reference.
755 * eval.c (evaluate_subexp): Merge code for STRUCTOP_MEMBER
756 and STRUCTOP_MPTR; cast arg1 to domain-type of arg2.
757 * eval.c (evaluate_subexp): Remove special case for UNOP_ADDR
758 for OP_SCOPE operand; no point in it now that we use lazy
759 reading of values, and use "reference to member" objects.
760 * gdbtypes.h: Clarify comment.
761 * valops.c: Change value_struct_elt_for_address to return
762 a reference (or variable), rather than a pointer. Change
763 the name to value_struct_elt_for_reference to reflect this.
764 Returning a reference instead of a address provides a
765 generalization, since we can use the routine for both
766 class::name as well as &class::name.
767 Also, recurse to handle multiple inheritance properly.
768 * valprint.c: Moved code to print pointer-to-members
769 to new function point_class_member. This allows a
770 "reference-to-member" to be printed using the same code.
771 * valprint.c (type_print_varspec_prefix): Avoid printing
772 "struct " for domains of class-member types.
773 * valops.c (search_struct_field): Inline code for simplified
774 version of value_static_field (which can then be deleted).
775 * value.h: Rename value_struct_elt_for_address to
776 value_struct_elt_for_reference. Delete value_static_field.
777 * values.c: Remove no longer used function value_static_field.
778
779 Thu Mar 19 13:54:11 1992 Fred Fish (fnf@cygnus.com)
780
781 * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
782 elfread.c (coff_symfile_finish): Add function, prototype, and
783 add to the xxxx_sym_fns struct for each file type. Also reformat
784 the xxxx_sym_fns vector to a standard format and add comments.
785 * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
786 elfread.c (xxx_symfile_new_init, xxx_symfile_init, xxx_symfile_read):
787 Pass pointer to struct objfile rather than pointer to sym_fns.
788 Change references inside each function accordingly. Allocate any
789 symbol file specific info in the per-objfile memory region.
790 * dbxread.c (free_and_init_header_files): Break function into
791 free_header_files(), called from dbx_symfile_finish(), and
792 init_header_files(), called from dbx_new_init().
793 * dbxread.c (dbx_new_init): Move deallocation things to new
794 dbx_symfile_finish function.
795 * elfread.c (elf_new_init): Call buildsym_new_init().
796 * objfiles.c (free_objfile): Call the appropriate symfile_finish()
797 routine for the objfile before deallocating other stuff.
798 * sparc-tdep.c (get_longjmp_target): Cast target_read_memory arg.
799 * symfile.h: Move struct sym_fns to before struct objfile def.
800 Add sym_finish function pointer and change prototypes of other
801 function pointers to reflect passing struct objfile pointer rather
802 than struct sym_fns pointer.
803 * symfile.c: Remove now obsolete symtab_fns pointer.
804 * symfile.c (symfile_init): Renamed to find_sym_fns, and now only
805 locates the correct sym_fns struct for the given objfile.
806 * symfile.c (syms_from_objfile, symbol_file_add): Restructured
807 for better support of mapped symbol tables.
808 * symfile.c (symbol_file_command): Remove obsolete code using
809 symfile_fns.
810 * symfile.h: Remove duplicate declarations for symfile_objfile,
811 entry_point, and object_files.
812 * target.c (target_info): Compare symfile_objfile to NULL.
813 * xcoffread.c (aixcoff_new_init): Move deallocation stuff to
814 aixcoff_symfile_finish().
815
816 Wed Mar 18 18:22:46 1992 Fred Fish (fnf@cygnus.com)
817
818 * infrun.c (IN_SOLIB_TRAMPOLINE): Add default definition.
819 * infrun.c (wait_for_inferior): Use IN_SOLIB_TRAMPOLINE.
820 * tm-sysv4.h (IN_SOLIB_TRAMPOLINE): Add SVR4 definition.
821
822 Wed Mar 18 15:51:15 1992 Per Bothner (bothner@cygnus.com)
823
824 Some improvements to g++ debugging.
825 * symtab.c (list_symbols): demangle before pattern matching.
826 * symtab.c: Other fixes to improve handing of operators.
827 * valprint.c (type_print_base): Fix test for constructor.
828 * values.c (value_static_field): Allow evaluation of
829 CLASS::METHOD, returning a function pointer.
830
831 Wed Mar 18 08:39:52 1992 Fred Fish (fnf@cygnus.com)
832
833 * Makefile.in (VERSION): Roll 4.4.6.
834 * exec.c (exec_file_command): Add code to ignore optional args
835 passed in by file_command() for use in symbol_file_command().
836 * main.c (main): Document -mapped and -readnow in help summary.
837 * objfiles.c (open_mapped_file): Cosmetic change, arg renamed.
838 * objfiles.c (allocate_objfile): Filename arg removed. Changes
839 to get filename from bfd with bfd_get_filename(). Test mapto
840 against 0, not NULL. Use mstrsave() to make copy of filename.
841 * remote-mm.c (mm_load): Symbol_file_add() takes an additional
842 arg.
843 * remote-vx.c (vx_load_command, add_symbol_stub):
844 Symbol_file_add() takes an additional arg.
845 * solib.c (symbol_add_stub): Symbol_file_add() takes an
846 additional arg.
847 * symfile.c (symfile_open): Renamed to symfile_bfd_open and
848 changed to return a bfd not an objfile pointer.
849 * symfile.c (syms_from_objfile): Eliminate local copy of bfd.
850 * symfile.c (symbol_file_add): Takes an additional arg (readnow).
851 Change to eliminate local bfd and use symfile_bfd_open() plus
852 allocate_objfile(). Add code to implement readnow option.
853 * symfile.c (symbol_file_command): Changes to option handling,
854 readnow functionality moved to symbol_file_add().
855 * symfile.c (symfile_init): Eliminate local copy of bfd.
856 * symfile.c (add_symbol_file_command): Changes to parse mapped
857 and readnow options.
858 * symfile.h (allocate_objfile): Arg removed from prototype.
859 * symtab.h (symbol_file_add): Arg added to prototype.
860 * xcoffexec.c (map_vmap): Allocate_objfile() takes an additional
861 arg.
862
863 Sat Mar 14 16:38:47 1992 Fred Fish (fnf@cygnus.com)
864
865 * gmalloc.c, gmalloc.h mcheck.c mmap-alloc.c mmap-sbrk.c mtrace.c,
866 mtrace.awk, state.c, state.h: Removed.
867 * .gdbinit: Add ../malloc, ../libiberty, and ../bfd to list of
868 directories searched for source files.
869 * Makefile.in (GNU_MALLOC, MALLOC_CFLAGS, MALLOCSRC): Removed
870 * Makefile.in (MMALLOC_DIR, MMALLOC_DEP, MMALLOC_LIB,
871 MMALLOC_DISABLE, MMALLOC_CHECK, MMALLOC_CFLAGS): Add
872 * Makefile.in (CFLAGS): Replace MALLOC_CFLAGS with MMALLOC_CFLAGS.
873 * Makefile.in (CLIBS, CDEPS): Add MMALLOC_LIB
874 * Makefile.in (ADD_FILES, ADD_DEPS): Remove GNU_MALLOC.
875 * Makefile.in (SFILES_MAINDIR): Remove stat.c mmap-alloc.c, mmap-
876 sbrk.c
877 * Makefile.in (HFILES): Remove state.h
878 * Makefile.in (POSSLIBS_MAINDIR): Remove MALLOCSRC.
879 * Makefile.in (OBS): Remove state.o mmap-alloc.o mmap-sbrk.o
880 * Makefile.in (saber_gdb): Remove mcheck, mtrace. Add MMALLOC_DIR.
881 * Makefile.in (clean): Remove all object files.
882 * c-exp.y: Define malloc to xmalloc and realloc to xrealloc.
883 * cplus-dem.c: Remove prototypes definitions that are now done in
884 def.h.
885 * dbxread.c (throughout): Change from using per-objfile
886 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
887 * defs.h: Remove prototypes for mmap_* functions. Add prototypes
888 for xmmalloc, xmrealloc, mfree, mmcheck, mmtrace, mmalloc_attach,
889 mmalloc_detach, mmalloc_setkey, msavestring, and mstrsave, nomem.
890 * depend: Remove dependencies for state.o, state.h.
891 * dwarfread.c: Add declaration for warning_pre_print.
892 * dwarfread.c (dwarfwarn): Use warning_pre_print.
893 * dwarfread.c (throughout): Change from using per-objfile
894 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
895 * gdbtypes.c (lookup_fundamental_type): Fix init_type calls to
896 use supplied objfile.
897 * i386-xdep.c (print_387_status): Change to use warning() rather
898 than printfs.
899 * i387-tdep.c (print_387_control_word): Change to use warning()
900 rather than printfs.
901 * infrun.c (wait_for_inferior): Remove unreachable abort() call
902 that some compilers grumble about.
903 * language.c (throughout): Add declaration for warning_pre_print
904 and using warning() instead of printfs.
905 * m2-exp.y: Define malloc to xmalloc and realloc to xrealloc.
906 * main.c (main): Add declaration for warning_pre_print and set it
907 similarly to error_pre_print. Add declarations for
908 mapped_symbol_files and readnow_symbol_files. Add appropriate
909 definitions to long_options[].
910 * minsyms.c: Trivial fix to comment.
911 * objfiles.c (allocate_objfile): Substantially rewritten for
912 using mapped symbol files.
913 * objfiles.c (throughout): Change from using per-objfile
914 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
915 * objfiles.c (open_mapped_file, mapped_to_address): Add functions.
916 * source.c (throughout): Change from using per-objfile
917 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
918 * source.c (open_source_file): Use mstrsave to save file name in
919 mapped symbol region for objfile.
920 * symfile.c: Remove include for state.h.
921 include to local form.
922 * symfile.c (symbol_file_add_digested): Remove.
923 * symfile.c (symbol_file_add): Substantially rewritten for mapped
924 symbol files.
925 * symfile.h: Remove malloc/xrealloc/xmalloc/xrealloc/free members
926 from objfile structure. Add malloc descriptor pointer (md).
927 * symfile.h (OBJF_DUMPABLE): Changed name to OBJF_MAPPED.
928 * symm-xdep.c (print_fpu_status): Use warning() rather than
929 printfs.
930 * symmisc.c (free_symtab_block): Now takes and uses current
931 objfile pointer.
932 * symmisc.c (throughout): Change from using per-objfile
933 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
934 * symtab.c (cplus_mangled_symbol): Cast return value to avoid
935 Sun compiler grumblings when PTR is char *.
936 * symtab.c (lookup_symbol): Cast return value of iterate_over_
937 msymbols() to correct pointer type.
938 * utils.c (warning_pre_print): Initialize to "\nwarning: ".
939 * utils.c (fatal, fatal_dump_core): Ensure that the fatal
940 error always starts on a line of it's own.
941 * utils.c (init_malloc, malloc_botch, xmalloc, xrealloc):
942 Rewrite for new mapped malloc package use.
943 * utils.c (mmalloc, mrealloc, mfree): Stubs for configurations
944 that don't want to use the mapped malloc package; pass arguments
945 on to traditional malloc package functions.
946 * utils.c (nomem): Add for fatal virtual memory exhausted aborts.
947 * utils.c (xmmalloc, xmrealloc, xmalloc, xrealloc): Like mmalloc,
948 mrealloc, malloc, and realloc but get fatal error if runs out
949 of memory.
950 * utils.c (msavestring, mstrsave): Save a string in a specific
951 mapped malloc region.
952 * utils.c (print_spaces): Use xmalloc to get the buffer.
953 * xm-amix.h, xm-i386v4.h, xm-sun3os4.h, xm-sun4os4.h: Add defines
954 for MMAP_BASE_ADDRESS and MMAP_INCREMENT.
955 * config/i386v4.mh: Insignificant reorganization.
956
957 Sat Mar 14 11:44:47 1992 Fred Fish (fnf@cygnus.com)
958
959 * xcoffread.c: Only enable compilation of debugging functions
960 if IBM6000 is defined. Fails to compile otherwise.
961
962 Fri Mar 13 15:51:11 1992 K. Richard Pixley (rich@cygnus.com)
963
964 * Makefile.in: pass MAKEINFO down on info.
965
966 Fri Mar 13 12:56:36 1992 John Gilmore (gnu at cygnus.com)
967
968 * mipsread.c (mipscoff_symfile_read): Eliminate a lot of
969 useless code, including an lseek to an uninitialized variable.
970 Reported by Jim Williams <jimbo@wrs.com>.
971
972 Thu Mar 12 11:56:46 1992 Per Bothner (bothner@cygnus.com)
973
974 Merged in patches from metin@ibmpa.awdpa.ibm.com (Metin G.
975 Ozisik) (dated Fri, 6 Mar 92 17:51) for the rs6000.
976 * minsyms.c, symfile.c: Changes that may be generally
977 applicable, but are #ifdef IBM6000 for now.
978 * rs6000-xdep.c: Fixed typo in comment.
979 * rs6000-tdep.c: Non-substatial changes.
980 * xoffread.c: The main change here is addition of some
981 debugging functions.
982 * xoffexec.c: More changes.
983
984 * xcoffread.c: Fixed two too-few-parameters bugs.
985
986 * solib.h, infrun.c, tm-rs6000.h: Add a PID parameter
987 to SOLIB_CREATE_INFERIOR_HOOK macro.
988
989 Sun Mar 8 21:17:48 1992 Fred Fish (fnf@cygnus.com)
990
991 * symfile.h: Add prototype for iterate_over_msymbols().
992 * symtab.c (cplus_mangled_symbol): Add function.
993 * symtab.c (lookup_symbol): Call cplus_mangled_symbol via
994 iterate_over_msymbols to find demangled C++ symbol.
995 * xcoffexec.c (relocate_minimal_symbol): Return meaningful
996 value to iterate_over_msymbols().
997 * xcoffexec.c (vmap_symtab): Ignore return from iterate_over_
998 msymbols().
999
1000 Fri Mar 6 21:59:34 1992 K. Richard Pixley (rich@cygnus.com)
1001
1002 * Makefile.in: added check target.
1003
1004 Thu Mar 5 23:56:01 1992 John Gilmore (gnu at cygnus.com)
1005
1006 * ecoff.c: Move to ../bfd/coff-msym.c.
1007 * config/mt-*mips: Remove ecoff.o from the configuration.
1008 * remote.c (): Add newline to initial +.
1009 (remote_resume): Mention how to cope with signals.
1010 (remote_interrupt): Add debug msg.
1011 (remote-wait): Implement new 'T' reply, which includes
1012 status, PC, and FP all in a single short message.
1013 (putpkt): Add further debugging of packet acks.
1014 * mipsread.c (fixup_symtab): Also swap RFD's.
1015 (parse_partial_symbols): Avoid bug on unknown symbol types.
1016 * Makefile.in (VERSION): Roll to 4.4.5.
1017 * mips-tdep.c (heuristic_proc_start): Avoid long delays
1018 for remote MIPS by limiting heuristic to 200 byte search.
1019 (heuristic_proc_desc): Byte-swapping.
1020 (mips_print_register): Cope with failure of
1021 read_relative_register_raw_bytes. Byte-swap integers for
1022 printing.
1023 * mips-pinsn.c (print_insn): Byte-swap instruction.
1024
1025 Thu Mar 5 12:32:09 1992 Stu Grossman (grossman at cygnus.com)
1026
1027 * config.sub configure.in config/.Sanitize config/mh-irix4
1028 gdb/.Sanitize gdb/configure.in gdb/mips-tdep.c gdb/mipsread.c
1029 gdb/procfs.c gdb/signame.h gdb/tm-irix3.h gdb/tm-mips.h
1030 gdb/xm-irix4.h gdb/config/.Sanitize gdb/config/mt-irix3
1031 gdb/config/mh-irix4 texinfo/configure.in: Port to SGI Irix-4.x.
1032
1033 Wed Mar 4 11:56:42 1992 Fred Fish (fnf@cygnus.com)
1034
1035 * defs.h, utils.c: xrealloc takes PTR as first arg.
1036 * defs.h: Reword confusing comment about ANSI prototypes.
1037 * defs.h: Some minor whitespace changes.
1038 * infrun.c (wait_for_inferior): Compare int tmp to int 0,
1039 not NULL, which can be (void *).
1040 * tm-amix.h, tm-i386v4.h: Add defines for setjmp/longjmp handling.
1041 * tm-i386v.h (SP_ARG0): Define
1042 * xm-sysv4.h: Back out of change for missing prototypes.
1043 * i386-tdep.c (get_longjmp_target): Add function.
1044
1045 Wed Mar 4 05:46:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
1046
1047 * Makefile.in: install man page too.
1048
1049 Tue Mar 3 15:11:52 1992 Michael Tiemann (tiemann@cygnus.com)
1050
1051 * All GDB files that #include defs.h: Removed stdio.h.
1052 (defs.h): #include stdio.h.
1053
1054 Mon Mar 2 23:00:12 1992 Steve Chamberlain (sac@thepub.cygnus.com)
1055
1056 * gdbtypes.c (lookup_pointer_type): initialize the TYPE_LENGTH of
1057 a ptype to reflect the setting of TARGET_PTR_BIT. Set the
1058 TYPE_FLAGS of a ptype to TYPE_FLAG_UNSIGNED.
1059 * tm-h8300.h, h8300-tdep.c, remote-hms.c: personal checkpoint
1060 * printcmd.c (print_address): if ADDR_BITS_REMOVE is defined, use
1061 it before printing out the hex shape of an address.
1062
1063 Sun Mar 1 17:41:09 1992 Per Bothner (bothner@cygnus.com)
1064
1065 * rs6000-xdep.c (frame_initial_stack_address): Move
1066 code to set frame->cache_fsr into new separate function
1067 frame_get_cacahe_fsr. This allows fixing a fatal error.
1068 * xcoffexec.c: Turn previously suppressed error
1069 message back on, after cleaning up BFD.
1070
1071 * breakpoint.c (breakpoint_re_set): Removed (at least for now)
1072 printing of blank line, since it cases printing of an
1073 extra blank line. Is this intended? It does mess up
1074 gdb test suite.
1075 * defs.h: Put back declarations of malloc and realloc,
1076 but protected by #ifndef MALLOC_INCOMPATIBLE.
1077 * objfiles.c: Undo previous change: Use malloc/realloc
1078 for objfile malloc/realloc fields (but add a cast).
1079 * xcoffexec.c: Suppress an error message (for now).
1080
1081 Sat Feb 29 14:43:02 1992 Per Bothner (bothner@cygnus.com)
1082
1083 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
1084 [Mail dated Fri, 21 Feb 92 13:14:54 -0800]
1085 * buildsym.c: Use smash_to_pointer_type() to handle forward type
1086 references.
1087 * xcoffread.c: Modifications to C_DECL storage class handling, and
1088 introduction of an old smash_to_pointer_type() routine.
1089
1090 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
1091 [Mail dated Thu, 20 Feb 92 13:57:16 -0800]
1092 * rs6000-xdep.c, rs6000-tdep.c, tm-rs6000.h: function_frame_info()
1093 parameters have been modified.
1094
1095 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
1096 [Mail dated Thu, 20 Feb 92 10:10:05 -0800]
1097 * rs6000-tdep.c: Before Feb 5 92, register_valid[] array was not used,
1098 and fetch_inferior_registers() always fetched all the registers
1099 resulting valid register values at hand all the time. Pushing a dummy
1100 frame did not require validating all register values first. After
1101 putting the above mechanism into action, we didn't have valid registers
1102 values always ready. Thus, all registers need to be fetched before
1103 pushing a dummy frame now.
1104
1105 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
1106 [Mail dated Thu, 13 Feb 92 16:22:44 -0800]
1107 * rs6000-xdep.c: frame_initial_stack_address() function to calculate
1108 the starting address (actual frame address) of a frame.
1109 * rs6000-tdep.c: modifications to function_frame_info() to see if
1110 function reserves a frame pointer register (alloca register)
1111 * tm-rs6000.h: EXTRA_FRAME_INFO, FRAME_ARGS_ADDRESS and
1112 FRAME_LOCALS_ADDRESS has been updated to support debugging of
1113 functions with alloca() calls.
1114
1115 Sun Mar 1 13:13:39 1992 Fred Fish (fnf@cygnus.com)
1116
1117 * xm-sysv4.h: Provide definitions/prototypes for host environment
1118 functions for which no definitions or prototypes are provided in
1119 any currently included gdb or host environment header files.
1120 For SVR4, this currently includes malloc and realloc, which cannot
1121 be portably prototyped in any gdb include file.
1122
1123 Sat Feb 29 14:43:02 1992 Per Bothner (bothner@cygnus.com)
1124
1125 * buildsym.h: Remove obsolete variable file_stabs.
1126
1127 * Makefile.in: Move place where configure merges in host-
1128 and target-dependent fragments later, so the latter
1129 can override (say) GNU_MALLOC.
1130 * config/mh-rs6000: Use system malloc. Otherwise, I
1131 ended up with *two* incompatible versions of malloc
1132 (functions in libc would call the malloc in libc).
1133 I assume this is a shared library problem.
1134
1135 * remote.c: Fix (presumed) typo.
1136 * objfiles.c: Use xmalloc/xrealloc instead of
1137 malloc/realloc (since the latter are no longer declared).
1138
1139 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
1140 [Mail dated Thu, 6 Feb 1992 10:22:02 -0800]
1141 * rs6000-xdep.c: Improvements to fetch_inferior_registers() to
1142 handle individual registers.
1143 * tm-rs6000.h: Fix SAVED_PC_AFTER_CALL macro to handle pc value
1144 correctly in case it wasn't cached yet. (A problem showed up
1145 after fetching individual registers.)
1146 * buildsym.c: Disable type_synonym_name's type name overwriting
1147 in cases it is unnecesary. rs6000 portation doesn't use
1148 type_synonym_name, and it used to nullify type names
1149 * xcoffread.c: to handle g++'s typename abbreviation, fill in a
1150 type's name as soon as space for that type is allocated.
1151 * xcoffread.c: ignore a section's lineno information if it is
1152 not `.text'. (In rs6000 bfd portation integration, skipping over
1153 `.pad' sections are ignored since it was in machine independent
1154 part of the code. Thus, a problem of fake sections with invalid
1155 lineno information arised.)
1156
1157 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
1158 [Mail dated Thu, 6 Feb 1992 13:26:22 -0800]
1159 * rs6000-tdep.c: make function_frame_info() work whether or not
1160 reading from a core file.
1161 * tm-rs6000.h: Implementation of FRAME_FIND_SAVED_REGS macro.
1162
1163 * infrun.c. main.c, printcmd.c. symtab.c:
1164 More changes from IBM for rs6000.
1165
1166
1167 Thu Feb 27 22:57:19 1992 Per Bothner (bothner@cygnus.com)
1168
1169 * rs6k-opcode.h, tm-rs6000.h, xm-rs6000.h, rs6000-tdep.c,
1170 rs6000-xdep.c, xcoffexec.c, xcoffread.c:
1171 Merge in changes (mostly from IBM) for RS6000.
1172 * breakpoint.c, buildsym.c, infptrace.c, stack.c, symtab.c:
1173 More changes from IBM for RS6000. These are in machine-
1174 independent code, and probably could do with some cleaning
1175 up. The most questionable of these are #ifdef IBM6000.
1176 * infrun.c, sparc-tdep.c: Pass a parameter (signal number)
1177 to single_step() (for consistency with rs6000 and i860).
1178 * utils.c: Allow the 1st arg to xrealloc to be NULL
1179 (in which case do malloc). This removes the need for
1180 some tests in xcoff code (and perhaps other places?).
1181 * coffread.c: Removed variables last_source_file,
1182 type_vector, and type_vector_length as these are now
1183 defined by buildsym.[ch].
1184 * defs.h: Remove prototypes for malloc and realloc, since
1185 these should only be used to implement xmalloc and xrealloc,
1186 and they conflict with <stdlib.h> in AIX - where they
1187 return void* even when __STDC__ isn't defined. Sigh.
1188 * munch: Recognize *initialize* in data as well as text
1189 (AIX uses data). Also, incorporate a patch from Garrett
1190 Wollman <wollman@uvm-gen.uvm.edu> to make the sed script
1191 much more sensible, by only trying to match the name of
1192 the initialize_foo function, and not the junk before it.
1193
1194 Thu Feb 27 20:07:43 1992 Stu Grossman (grossman at cygnus.com)
1195
1196 * breakpoint.c (breakpoint_re_set_one): Don't reset breakpoint
1197 unless symbol table indicates that something has changed.
1198
1199 Thu Feb 27 11:48:47 1992 John Gilmore (gnu at cygnus.com)
1200
1201 * remote.c: Make it work for embedded MIPS. Increase buffer
1202 size, and use throughout. Round buffer size up if too many regs.
1203 Support baud rate setting and try for an 8-bit path. If
1204 interrupted while waiting for target, send a ^C down the wire.
1205 Avoid single-byte reads.
1206 * tm-mips.h: Add more embedded-system registers to REGISTER_NAMES
1207 and NUM_REGS.
1208 * mips-xdep.h: Avoid the embedded regs when on Unix.
1209
1210 * mipsread.c: Byte-swap the symbol table structures, using
1211 routines from ecoff.c, to read a symbol table written in any
1212 of the four possible byte orders.
1213 * configure.in (mips-big-* target): Same as Sony News.
1214 * config/mt-bigmips, config/mt-littlemips: Add ecoff.o.
1215 * ecoff.c: New file for symbol swapping routines.
1216
1217 Thu Feb 27 09:26:38 1992 Stu Grossman (grossman at cygnus.com)
1218
1219 * breakpoint.c (all_breakpoints_info, breakpoint_1): Add 'info
1220 all-breakpoints' command.
1221 * (get_number): Allow users to enter negative breakpoint numbers.
1222 * (breakpoint_1): Reformat display of 'info break' to show new
1223 fields.
1224 * (create_longjmp_breakpoint, breakpoint_re_set,
1225 breakpoint_re_set_one, enable/disable_longjmp_breakpoint),
1226 symfile.c (syms_from_objfile): Re-do
1227 insertion of longjmp breakpoints. Move all code into
1228 breakpoint_re_set, and call that instead of
1229 create_longjmp_breakpoint in symfile.c.
1230
1231 Thu Feb 27 06:11:05 1992 John Gilmore (gnu at cygnus.com)
1232
1233 * breakpoint.h (ALL_BREAKPOINTS_SAFE): Add.
1234 * breakpoint.c (breakpoint_re_set): Use ALL_BREAKPOINTS_SAFE.
1235 * symtab.c (find_pc_symtab): Handle having no objfiles.
1236 * infcmd.c: Fix comment.
1237 * objfiles.c (free_all_objfiles): Add.
1238 * symfile.h (ALL_OBJFILES, ALL_OBJFILES_SAFE): Add.
1239 * symfile.c (symbol_file_command): free all objfiles when
1240 specifying a new symbol file.
1241 (reread_symbols): Stat the file name, don't fstat the descriptor.
1242
1243 Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
1244
1245 * Makefile.in, configure.in: removed traces of namesubdir,
1246 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
1247 copyrights to '92, changed some from Cygnus to FSF.
1248
1249 Tue Feb 25 19:31:19 1992 Stu Grossman (grossman at cygnus.com)
1250
1251 * dbxread.c (end_psymtab): Delete empty psymtabs.
1252 * symfile.c (allocate_psymtab): Recycle empty psymtabs.
1253 * symfile.h (struct objfile): Add free_psymtabs.
1254
1255 Sat Feb 22 02:00:32 1992 John Gilmore (gnu at cygnus.com)
1256
1257 * Makefile.in (VERSION): Roll to gdb-4.4.4.
1258
1259 * symfile.c (symbol_file_command): strcmp => !strcmp.
1260 * breakpoint.h: Move prototypes to follow enum definition they need.
1261 * breakpoint.c, infrun.c: Lint.
1262 * printcmd.c: Use `enum enable' rather than `enum
1263 display_status'.
1264 * mipsread.c: First pass at making it compile with the new
1265 objfile changes. Probably seriously broken still, but it
1266 compiles. FIXME.
1267
1268 Sat Feb 22 00:56:39 1992 Stu Grossman (grossman at cygnus.com)
1269
1270 * infrun.c, infcmd.c, breakpoint.c, main.c, symfile.c,
1271 breakpoint.h, tm-sun4os4.h, tm-sparc.h, sparc-tdep.c, tm-mips.h,
1272 mips-tdep.h, tm-sun3.h, tm-68k.h, m68k-tdep.h: Add support for
1273 stepping (and nexting) through longjmp(). Also, cleanup
1274 breakpoint handling quite a bit by creating explicit breakpoint
1275 types instead of using magic breakpoint numbers.
1276 Makefile.in: Update version to 4.4.3
1277
1278 Sat Feb 22 00:08:50 1992 John Gilmore (gnu at cygnus.com)
1279
1280 * buildsym.c, dwarfread.c, gdbtypes.c, inflow.c, main.c,
1281 minsyms.c, printcmd.c, remote.c, saber.suppress: Saberlint.
1282 * symmisc.c, xcoffread.c: Move debug functions to symmisc.c.
1283
1284 * xm-sun3os4.h, xm-sun4os4.h: Enable HAVE_MMAP.
1285
1286 * minsyms.c (install_minimal_symbols): Add bunches to any
1287 existing minsyms in the objfile. Avoid extra mallocation
1288 by working directly in the obstack. Remove ignored `mainline' parm.
1289 * coffread.c, dbxread.c, elfread.c, mipsread.c, solib.c, symtab.h,
1290 xcoffread.c: Change all callers.
1291 * FIXME: We should be able to eliminate MAINLINE from all the
1292 symbol readers now, with a small bit of work.
1293
1294 * valops.c, value.h: Lint.
1295 * remote-vx.c: Add missing break; statement. Bugfix by
1296 Michael Sclafani, <sclafani@src.dec.com>.
1297
1298 Fri Feb 21 17:29:54 1992 Fred Fish (fnf at cygnus.com)
1299
1300 * Makefile.in (VERSION): Update version to 4.4.2
1301 * Makefile.in (SFILES_MAINDIR): Add gdbtypes.c, state.c, objfiles.c,
1302 minsyms.c, mmap-alloc.c, mmap-sbrk.c
1303 * Makefile.in (HFILES): Add gdbtypes.h, state.h, solib.h
1304 * Makefile.in (OBS): Add gdbtypes.o, state.o, objfiles.o, minsyms.o,
1305 mmap-alloc.o, mmap-sbrk.o
1306
1307 * altos-xdep.c: Minor whitespace change.
1308 * am29k-tdep.c (examine_prologue): Convert from misc function vector
1309 use to new minimal symbol table use.
1310 * arm-xdep.c (fetch_inferior_registers): Document unused argument.
1311 * arm-xdep.c (store_inferior_registers): Returns void.
1312 * blockframe.c (get_pc_function_start, find_pc_partial_function):
1313 Convert from misc function vector use to new minimal symbol table use.
1314 Remove find_pc_misc_function(). Ifdef out block_innermost_frame().
1315 * breakpoint.c: Add prototypes for local functions.
1316 * breakpoint.c (catch_command_1): Change to static and remove unused
1317 local "pc".
1318 * breakpoint.c (map_breakpoint_numbers): Prototype arg "function".
1319 * breakpoint.h: Change function decls to prototype form.
1320 * buildsym.c: Add prototypes for local functions.
1321 * buildsym.c: Moved hashname() function here from dbxread.c.
1322 * buildsym.c (dbx_lookup_type): Cast args to xrealloc().
1323 * buildsym.c: Remove dbx_create_type(), uses changed to alloc_type().
1324 * buildsym.c (dbx_alloc_type): Change to static.
1325 * buildsym.c (finish_block): Add objfile parameter.
1326 * buildsym.c (misc): Change symbol_obstack to objfile version.
1327 * buildsym.c (make_blockvector): Change to static.
1328 * buildsym.c (start_subfile): Use strdup instead of obsavestring.
1329 * buildsym.c (compare_line_numbers): Change to static, args are const,
1330 cast args when used.
1331 * buildsym.c (start_symtab): Inline new_object_header_files() call.
1332 * buildsym.c (patch_block_stabs): Moved to this file from xcoffread
1333 and made static. Add objfile parameter.
1334 * buildsym.c (end_symtab): Simplify code using line table size.
1335 Realloc the linetable on the objfile symbol_obstack and copy there.
1336 * buildsym.c (scan_file_globals): Convert from misc function vector
1337 use to new minimal symbol use.
1338 * buildsym.c (define_symbol): Add objfile parameter. Make sure
1339 strings get allocated in objfile's symbol_obstack. Convert references
1340 to builtin types to lookup_fundamental_type().
1341 * buildsym.c (read_type): Make static, add objfile parameter, convert
1342 references to buildin types to lookup_fundamental_type().
1343 * buildsym.c (read_struct_type): Add objfile parameter.
1344 * buildsym.c (read_array_type): Make static, add objfile parameter.
1345 * buildsym.c (read_enum_type): Make static, add objfile parameter.
1346 * buildsym.c (read_huge_number): Make static.
1347 * buildsym.c (read_range_type): Make static, add objfile parameter,
1348 convert references to buildin types to lookup_fundamental_type ().
1349 * buildsym.c (read_args): Make static, add objfile parameter.
1350 * buildsym.h: Convert function decl's to prototype form.
1351 * c-exp.y: Add prototypes for local functions, convert uses of misc
1352 function vector to minimal symbol table. Reformat all builtin type
1353 initializations and pass a NULL objfile to init_type() for them.
1354 * coffread.c: Change context_stack ref's to coff_context_stack,
1355 add local function prototypes. Cast uses of xrealloc arg 1.
1356 * coffread.c (coff_alloc_type): Call alloc_type instead of hand-
1357 crafting a new type.
1358 * coffread.c (add_symbol_to_list): Change to coff_add_symbol_to_list.
1359 * coffread.c (finish_block): Change name to coff_finish_block.
1360 * coffread.c (make_blockvector): Add and use objfile parameter.
1361 * coffread.c (record_line): Change name to coff_record_line.
1362 * coffread.c (start_symtab): Change name to coff_start_symtab.
1363 * coffread.c (end_symtab): Change name to coff_end_symtab.
1364 * coffread.c (record_misc_function): Change name to record_minimal_
1365 symbol and change to minimal symbol table use from misc func tbl.
1366 * coffread.c (coff_symfile_read): Convert from misc function vector
1367 use to minimal symbol table use.
1368 * coffread.c (hashname): Remove; use common version in buildsym.c.
1369 * coffread.c (decode_base_type): Change references to builtin types
1370 to calls to lookup_fundamental_type().
1371 * coffread.c (read_struct_type): Change name to coff_read_struct_type.
1372 * coffread.c (read_enum_type): Change name to coff_read_enum_type.
1373 * command.c: Add prototypes for local functions.
1374 * command.c (add_cmd): Prototype the 'fun' parameter and use the
1375 appropriate member of the function union for that type.
1376 * command.c (add_abbrev_cmd): Prototype the 'fun' parameter and
1377 ifdef out the function since it isn't currently used.
1378 * command.c (add_alias_cmd): Pass correct function type to add_cmd.
1379 * command.c (add_prefix_cmd): Prototype the 'fun' parameter.
1380 * command.c (add_abbrev_prefix_cmd): Prototype the 'fun' parameter.
1381 * command.c (help_cmd): Compare function pointer to NULL.
1382 * command.c (help_cmd_list): Compare function pointer to NULL.
1383 * command.c (lookup_cmd_1): Use correct member of function union.
1384 * command.c (undef_cmd_error): Make static.
1385 * command.c (complete_on_cmdlist): Use correct member of func union.
1386 * command.c (do_setshow_command): Use correct member of func union.
1387 * command.c (shell_escape): Convert rindex use to strrchr.
1388 * command.h (COMMAND_H): Define if already included.
1389 * command.h (cmd_list_element struct): Change 'function' to a union
1390 and prototype args. Prototype completer function.
1391 * command.h: Convert decl's to prototype form.
1392 * convex-xdep.c (store_inferior_registers): Returns void.
1393 * copying.c: Prototype local functions.
1394 * coredep.c: Minor whitespace change.
1395 * cplus-dem.c: Remove hack to use BSD equivalents of mem* and str*.
1396 * cplus-dem.c: Prototype local functions.
1397 * dbxread.c (hashname): Remove; moved to buildsym.c.
1398 * dbxread.c (free_and_init_header_files): Make static.
1399 * dbxread.c: Add prototypes for local functions.
1400 * dbxread.c (new_object_header_files): Remove; inlined usages.
1401 * dbxread.c (xrealloc usages): Cast args.
1402 * dbxread.c (record_misc_function): Change to record_minimal_symbol
1403 and change usages accordingly.
1404 * dbxread.c (static_psymbols usages): Change to use per-objfile copy.
1405 * dbxread.c (xmalloc usages): Use per-objfile copy when appropriate.
1406 * dbxread.c (dbx_next_symbol_text): Make static.
1407 * dbxread.c (init_psymbol_list): Convert to use per-objfile data.
1408 * dbxread.c (init_bincl_list): Add and use objfile parameter.
1409 * dbxread.c (free_bincl_list): Add and use objfile parameter.
1410 * dbxread.c (compare_psymbols): Remove; use common symfile.c version.
1411 * dbxread.c (end_psymtab): Convert to use per-objfile data.
1412 * dwarfread.c (DEFUN/EXFUN): Remove all usages. Use PARAMS for
1413 prototypes.
1414 * dwarfread.c (record_misc_function): Change name to record_minimal_
1415 symbol and use minimal symbol table throughout.
1416 * dwarfread.c (compare_psymbols): Remove; use common symtab.c version.
1417 * dwarfread.c: Convert all references to builtin types to use the new
1418 lookup_fundamental_type function.
1419 * dwarfread.c (read_enumeration): Add and use objfile parameter.
1420 * elfread.c (DEFUN/EXFUN): Remove all usages. Use PARAMS for proto-
1421 types.
1422 * elfread.c (record_misc_function): Convert to use record_minimal_
1423 symbol.
1424 * elfread.c (elf_symtab_read): Add objfile parameter.
1425 * eval.c: Add prototypes for local functions and move some decls
1426 around to accomodate prototypes.
1427 * expprint.c: Add prototypes for local functions. Change references
1428 to misc function vector to minimal symbol table.
1429 * findvar.c (read_memory usages): Cast args.
1430 * gdbtypes.h: New file, type info from symfile.h and symtab.h.
1431 * gmalloc.c: Use NOARGS where prototypes used hardwired void.
1432 * gmalloc.c (BLOCKSIZE): Constant to be shifted is unsigned.
1433 * gmalloc.h: Use NOARGS where prototypes used hardwired void.
1434 * gould-xdep.c: Minor whitespace change.
1435 * hp300ux-xdep.c (fetch_inferior_registers): Remove unused regno var.
1436 * hp300ux-xdep.c (store_inferior_registers): Returns void.
1437 * hp300ux-xdep.c (fetch_core_registers): Takes unused arg reg_addr.
1438 * i386-stub.c: Add prototypes, change "volatile" to NORETURN.
1439 * i386-tdep.c: Add prototypes for local functions.
1440 * i386-tdep.c (codestream_fill, codestream_seek, codestream_read,
1441 i386_get_frame_setup, i386_skip_prologue): Explicitly declare params
1442 that defaulted to int.
1443 * i386-tdep.c (i386_follow_jump, i386_frame_find_saved_regs,
1444 i386_push_dummy_frame): Returns void.
1445 * i386-xdep.c (i386_register_u_addr): Declare params that default to
1446 int and explicitly declare return type as int.
1447 * i387-tdep.c: Minor formatting changes.
1448 * i960-tdep.c (leafproc_return): Convert from misc function vector
1449 use to minimal symbol table use.
1450 * infcmd.c: Add prototypes for local functions.
1451 * infcmd.c (continue_command, until_next_command, until_command,
1452 path_info, path_command): Make static.
1453 * infcmd.c (step_1, until_next_command): Convert from misc func
1454 vector to minimal symbol table use.
1455 * inflow.c: Add prototypes for local functions.
1456 * infptrace.c (store_inferior_registers): Returns void, not int.
1457 * language.c (_initialize_language): Use proper member of function
1458 union.
1459 * m2-exp.y: Add prototypes for local functions, convert misc function
1460 vector uses to minimal symbol table uses.
1461 * m2-exp.y (make_qualname, yyerror): Make static.
1462 * m2-exp.y (_initialize_m2_exp): Call init_types with NULL objfile.
1463 * m68k-pinsn.c: Add prototypes for local functions.
1464 * m68k-pinsn.c (print_insn): Cast args to read_memory.
1465 * m68k-pinsn.c (fetch_arg): Make parameter 'code' and int.
1466 * m68k-stub.c: Add prototypes.
1467 * m88k-pinsn.c (sprint_address): Convert from misc function vector
1468 use to minimal symbol table use.
1469 * m88k-xdep.c (fetch_inferior_registers): Takes an unused parameter.
1470 * m88k-xdep.c (store_inferior_registers): Returns void.
1471 * mach386-xdep.c (fetch_inferior_registers): Takes an unused param.
1472 * mach386-xdep.c (store_inferior_registers): Returns void.
1473 * mach386-xdep.c (fetch_core_registers): Takes an unused parameter.
1474 * main.c: Add prototypes for local functions.
1475 * main.c (return_to_top_level): Is type NORETURN (volatile). Cast
1476 longjmp() result to (NORETURN void).
1477 * main.c (catch_errors): Prototype the 'func' parameter.
1478 * main.c (disconnect, stop_sig, do_nothin, float_handler):
1479 Takes an unused arg.
1480 * main.c (execute_command): Call the right member of the func union.
1481 * main.c (command_loop_marker, symbol_completion_function,
1482 command_loop): Make static.
1483 * main.c (command_line_input): Make linelength unsigned, cast arg
1484 to command_line_input().
1485 * main.c (add_info, add_com): Prototype the 'fun' parameter.
1486 * main.c (initialize_main): Call right member of function union.
1487 * mcheck.c (NOARGS): Change hardwired void in prototypes to NOARGS.
1488 * mem-break.c: Include symtab.h
1489 * mips-xdep.c (fetch_inferior_registers): Takes unused param.
1490 * mips-xdep.c (store_inferior_registers): Returns void.
1491 * mipsread.c (mipscoff_symfile_read): Change from misc function vector
1492 use to minimal symbol table use.
1493 * mipsread.c (symbol_obstack usages): Convert all to use per-objfile
1494 version.
1495 * mipsread.c (make_type): Remove, convert usages to init_type.
1496 * mipsread.c (_initialize_mipsread): Call init_type with NULL objfile.
1497 * nindy-tdep.c (nindy_frame_chain_valid): Convert from misc function
1498 vector use to minimal symbol table use.
1499 * parse.c: Add prototypes for local functions.
1500 * parse.c (xrealloc usages): Cast args.
1501 * parse.c (prefixify_expression, length_of_subexp): Make static.
1502 * parser-defs.h (PARSER_DEFS_H): Define when first included.
1503 * parser-defs.h: Convert function decls to prototype form.
1504 * partial-stab.h: Convert from misc function vector use to new minimal
1505 symbol table use.
1506 * partial-stab.h (global_psymbols, static_psymbols usages): Reference
1507 the per-objfile copies.
1508 * printcmd.c: Add prototypes for local functions. Move some struct
1509 definitions around to accomodate prototypes.
1510 * printcmd.c (decode_format): Make static, change args oformat and
1511 osize to int from char.
1512 * printcmd.c (print_formatted): Change 'format' and 'size' to int.
1513 * printcmd.c (print_scalar_formatted): Change arg 'format' to int.
1514 * printcmd.c (print_address_symbolic): Convert from misc function
1515 vector use to minimal symbol table use.
1516 * printcmd.c (address_info): Convert from misc function vector use
1517 to minimal symbol table use.
1518 * printcmd.c (delete_display, enable_display, disable_display_command):
1519 Make static.
1520 * procfs.c (EXFUN/DEFUN): Remove all usages, convert to PARAM.
1521 * procfs.c (fetch_core_registers): Add unused param reg_addr.
1522 * pyr-xdep.c (fetch_inferior_registers): Add unused param regno.
1523 * pyr-xdep.c (store_inferior_registers): Returns void.
1524 * remote-mm.c (mm_load): symbol_file_add return value unused.
1525 * remote-nindy.c: Minor format change.
1526 * remote-vx.c (vx_load_command): symbol_file_add result unused.
1527 * rs6000-xdep.c (fetch_inferior_registers): Add unused param regno.
1528 * rs6000-xdep.c (store_inferior_registers): Returns void.
1529 * rs6000-xdep.c (fetch_core_registers): add unused param reg_addr
1530 * rs6000-xdep.c (aixcoff_relocate_symtab): Convert from misc function
1531 vector use to minimal symbol table use.
1532 * solib.c: Add prototypes for local functions.
1533 * solib.c (solib_add_common_symbols, locate_base): Convert from misc
1534 function vector use to minimal symbol table use.
1535 * solib.c (EXFUN/DEFUN): Remove all usages, convert to PARAM.
1536 * solib.c (find_solib, shared_library_command): Make static
1537 * solib.c (read_memory, write_memory usages): Cast args.
1538 * solib.c (special_symbol_handling): Add function
1539 * source.c: Add prototypes for local functions.
1540 * source.c (select_source_symtab): Convert to scan objfiles.
1541 * source.c (open_source_file): Make static.
1542 * source.c (xrealloc usages): Cast args.
1543 * source.c (source_line_charpos): ifdef out, unused.
1544 * source.c (get_filename_and_charpos): Make static.
1545 * stack.c: Add prototypes for local functions.
1546 * stack.c (print_frame_info, frame_info): Convert from misc function
1547 vector use to minimal symbol table use.
1548 * symfile.c: Add prototypes for local functions.
1549 * symfile.c (compare_symbols): Make args const PTR's.
1550 * symfile.c (compare_psymbols, sort_pst_symbols) add.
1551 * symfile.c (sort_all_symtab_syms): Scan objfile list.
1552 * symfile.c (obsavestring): Add objfile parameter.
1553 * symfile.c (init_misc_bunches, prim_record_misc_function,
1554 compare_misc_functions, discard_misc_bunches, condense_misc_bunches,
1555 sort_misc_function_vector, compact_misc_function_vector): Remove
1556 * symfile.c (symbol_file_add_digested): Add function.
1557 * symfile.c (symbol_file_add): Returns struct objfile *.
1558 * symfile.c (symbol_file_command): Modify for state file use.
1559 * symfile.c (symfile_open): Add parameter "dumpable".
1560 * symfile.c (allocate_objfile, free_objfile): Moved to objfiles.c
1561 * symfile.c (load_command, add_symbol_file_command): Make static.
1562 * symfile.c (fill_in_vptr_fieldno): Moved to gdbtypes.c
1563 * symfile.c (rindex usages): Converted to strrchr.
1564 * symfile.c (allocate_psymtab): New
1565 * symfile.c (free_named_symtabs): Ifdef out code that needs to be
1566 converted to minimal symbol table usage, but no obvious conversion.
1567 * symfile.c (free_all_symtabs): Remove.
1568 * symfile.c (_initialize_symfile): Use per-objfile info.
1569 * symfile.h: Rework the objfile structure to add per-objfile data
1570 objects (psymbol_obstack, symbol_obstack, type_obstack,
1571 global_psymbols, static_psymbols, msymbols, minimal_symbol_count,
1572 fundamental_types, malloc, realloc, free, xmalloc, xrealloc, etc).
1573 Add prototypes to function declarations.
1574 * symm-tdep.c (symmetry_extract_return_value): Convert from misc
1575 function vector usage to minimal symbol table usage.
1576 * symmisc.c (DEV_TTY): Define if not defined.
1577 * symmisc.c: Add local function prototypes.
1578 * symmisc.c (dump_objfile, dump_msymbols, dump-symtab, print_syms,
1579 printpsyms_command, print_objfiles, print_objfiles_command):
1580 Rework to use iterate_over_*
1581 * symtab.c: Add prototypes for local functions.
1582 * symtab.c (lookup_symtab_1): Convert to look through objfiles.
1583 * symtab.c (lookup_partial_symtab): Scan through objfiles.
1584 * symtab.c (lookup_primitive_typename, lookup_typename, lookup_
1585 unsigned_typename, lookup_struct, lookup_union, lookup_enum,
1586 lookup_template_type, lookup_struct_elt_type, lookup_pointer_type,
1587 lookup_reference_type, lookup_member_type, allocate_stub_method,
1588 check_stub_method, create_array_type, smash_to_member_type,):
1589 Moved to gdbtypes.c
1590 * symtab.c (lookup_symbol): Some args are const.
1591 * symtab.h: All type related defs and structs moved to gdbtypes.h
1592 * symtab.h: Convert decls to prototypes.
1593 * target.c (noprocess): Make static.
1594 * target.h: Change decl's to prototypes.
1595 * tm-sunos.h: (CLEAR_SOLIB, SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK,
1596 DISABLE_UNSETTABLE_BREAK) Moved to solib.h.
1597 * utils.c (_initialize_utils): Use correct member of function union.
1598 * valarith.c: include gdbtypes.h
1599 * valops.c: include gdbtypes.h, add prototypes for local functions.
1600 * valops.c (value_push, value_arg_push, find_function_addr):
1601 Make static.
1602 * valops.c (value_string): Convert from misc function vector use
1603 to minimal symbol table use.
1604 * valops.c (check_field_in): Make arg const.
1605 * valprint.c: Add prototypes for local functions.
1606 * valprint.c (print_string): Make static
1607 * valprint.c (value_print, val_print_fields, val_print): Make arg int.
1608 * values.c: Add prototypes for local functions.
1609 * values.c (value_headof): Convert from misc function vector to
1610 minimal symbol table.
1611 * xcoffexec.c: Add prototypes for local functions.
1612 * xcoffexec.c (exec_close, file_command, add_to_section_table):
1613 Make static.
1614 * xcoffexec.c (relocate_minimal_symbol): Add.
1615 * xcoffread.c (patch_block_stabs): Moved to buildsyms.c.
1616 * xcoffread.c: Add prototypes for local functions.
1617 * xcoffread.c (sort_syms): Convert to scan objfiles.
1618 * xcoffread.c (read_xcoff_symtab): Make static.
1619 * xcoffread.c (various): Replace references to builtin types with
1620 calls to lookup_fundamental_type. Replace references to symbol_obstack
1621 and psymbol_obstack with pointers to the per-objfile copies.
1622 * xcoffread.c (dump_linetable, dump_type, dump_symbol, dump_namespace,
1623 dump_block, dump_blockvector, dump_last_symtab, dump_symtabs):
1624 Make static.
1625 * xcoffread.c (init_stringtab): Add objfile parameter.
1626 * gdbtypes.c: New file
1627 * minsyms.c: New file
1628 * mmap-alloc.c: New file
1629 * mmap-sbrk.c: New file
1630 * objfiles.c: New file
1631 * state.c: New file
1632 * state.h: New file
1633
1634 Fri Feb 21 17:29:54 1992 John Gilmore (gnu at cygnus.com)
1635
1636 * Check in Fred Fish's changes in these modules. Fred
1637 will make ChangeLog entries for all of them. Update VERSION
1638 to 4.4.2.
1639
1640 Thu Feb 20 18:10:17 1992 Fred Fish (fnf at cygnus.com)
1641
1642 * tm-sparc.h, tm-sysv4.h, solib.h: Move shared lib definitions
1643 into solib.h.
1644 * sparc-pinsn.c, sparc-tdep.c, standalonec, sun3-xdep.c,
1645 sun386-xdep.c, symm-xdep.c, target.c, ultra3-xdep.c, utils.c,
1646 value.h: Prototypes for static functions; lint.
1647 * gdbtypes.h: Empty file to ease transition.
1648
1649 Thu Feb 20 16:43:13 1992 Fred Fish (fnf at cygnus.com)
1650
1651 * environ.h, expression.h, frame.h, gdbcmd.h, gdbcore.h,
1652 inferior.h, language.h, signame.h, target.h, terminal.h,
1653 tm-68k.h, tm-i386v.h, tm-sparc.h, tm-sun386.h, tm-symmetry.h,
1654 xm-i386v.h, xm-sparc.h: Prototypes for all external functions.
1655 Lint.
1656 * core.c, exec.c, infrun.c, inftarg.c, language.c, remote.c,
1657 signame.c, sparc-xdep.c: Prototypes for all static functions.
1658 Lint.
1659 * core.c, eval.c, exec.c, inftarg.c, remote-adapt.c, remote-eb.c,
1660 remote-hms.c, remote-mm.c, remote-nindy.c, remote-vx.c, remote.c,
1661 target.c, target.h, valarith.c, valops.c, value.h, xcoffexec.c:
1662 Remove to_call_function and target_call_function, since it
1663 always calls the same thing (call_function_by_hand).
1664 * core.c, exec.c, solib.c: Rename target_ops sections =>
1665 to_sections, etc.
1666 * infcmd.c, inflow.c, infptrace.c, infrun.c, main.c, target.c,
1667 target.h: target_kill takes no args.
1668 * language.c (language_info): Scaffolding to allow briefer
1669 messages when the current language changes. FIXME.
1670 * xm-amix.h, xm-i386v4.h, xm-stratus.h: Define NORETURN to avoid
1671 complaints about volatile functions.
1672 * xm-sysv4.h (HAVE_MMAP): Define.
1673
1674 Thu Feb 20 09:04:18 1992 Fred Fish (fnf at cygnus.com)
1675
1676 * defs.h: Include ansidecl.h and PARAMS macro. Use PARAMS
1677 to make prototypes for all functions declared here.
1678 * cplus-dem.c: Avoid declaring xmalloc and xrealloc.
1679 * c-exp.y: Rename SIGNED, OR, and AND to avoid conflict.
1680 * environ.c: Include <stdio.h> before defs.h. Minor cleanup.
1681 * ieee-float.h: Use PARAMS for prototypes; make some params const.
1682 * ieee-float.c, valarith.c: Include <stdio.h>. Lint. b*=>mem*.
1683 * m2-exp.y: Remove unused CONST; Rename OR and AND.
1684 * utils.c: Avoid declaring malloc and realloc. Lint.
1685 (request_quit): Accept signal-number parameter.
1686
1687 Mon Feb 17 07:13:27 1992 Fred Fish (fnf at cygnus.com)
1688
1689 * dwarfread.c (process_dies): Add case to handle TAG_pointer_type
1690 DIE's. Add new function read_tag_pointer_type() to read them.
1691
1692 * dwarfread.c (dwarf_read_array_type, read_subroutine_type):
1693 When creating a new user defined type, check to see if a partial
1694 type already exists, and if so, bash it to fit.
1695
1696 Fri Feb 14 19:00:17 1992 John Gilmore (gnu at cygnus.com)
1697
1698 * coffread.c (decode_base_type): Pass long, not union.
1699 Fix by Eric Valette, ev@chorus.fr.
1700
1701 Thu Feb 13 17:14:28 1992 Fred Fish (fnf at cygnus.com)
1702
1703 * elfread.c (elf_symtab_read): Fix code to correctly track
1704 changes in bfd for absolute symbols.
1705
1706 Thu Feb 13 12:43:29 1992 Stu Grossman (grossman at cygnus.com)
1707
1708 * xm-vaxbsd.h: Close off comment.
1709
1710 Thu Feb 13 07:45:19 1992 Fred Fish (fnf at cygnus.com)
1711
1712 * xm-sysv4.h: Define NEED_POSIX_SETPGID.
1713
1714 Fri Feb 7 11:51:12 1992 Per Bothner (bothner at cygnus.com)
1715
1716 * mips-tdep.c (mips_print_registers): Print correct register
1717 number for double pseudo-registers.
1718
1719 Fri Feb 7 07:56:05 1992 John Gilmore (gnu at cygnus.com)
1720
1721 * buildsym.c (read_struct_type): Avoid double-bump of parse ptr
1722 in the op$::OPERATOR. case. From Steven McCanne,
1723 <mccanne@horse.ee.lbl.gov>.
1724
1725 * exec.c (set_section_name): Pass arg to exec_files_info;
1726 only call it if interactive. From Francis Kauth <fk@tv.tv.tek.com>.
1727
1728 Thu Feb 6 17:41:32 1992 John Gilmore (gnu at cygnus.com)
1729
1730 * main.c (print_gdb_version): Copyright msg: only this year.
1731 (cd_command): Avoid changing current_directory on error.
1732
1733 Thu Feb 6 15:14:01 1992 Per Bothner (bothner at cygnus.com)
1734
1735 * mipsread.c (parse_partial_symbols): Handle dependencies
1736 between partial symbol tables (when not doing stabs-in-ecoff).
1737 (This used to be handled by parse_fdr, but parse_fdr was
1738 incompatible with handling stabs-in-ecoff, so the code
1739 was re-written to not use parse_fdr. Unfortunately,
1740 the logic to handle dependencies was overlooked.)
1741
1742 Thu Feb 6 11:51:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
1743
1744 * coffread.c (read_enum_type): Use the size of a target int when
1745 describing enum.
1746 * defs.h: added new #define for TARGET_PTR_BIT, defaults to size
1747 of target int.
1748 * h8300-tdep.c, remote-hms.c, tm-h8300.h: too many changes to count
1749 * symtab.c (lookup_reference_type, lookup_ptr_type): use
1750 TARGET_PTR_BIT to determine size of a pointer
1751 * values.c (unpack_long): when unpacking a REF or a PTR don't
1752 assume the size of the type.
1753
1754 Wed Feb 5 22:29:59 1992 John Gilmore (gnu at cygnus.com)
1755
1756 * mipsread.c (parse_symbol): Avoid clobbering enum pointer when
1757 looking at its members. Improve guess between struct and union,
1758 only assuming union if multiple members have offsets of zero.
1759
1760 Tue Feb 4 18:05:44 1992 Per Bothner (bothner at cygnus.com)
1761
1762 * mipsread.c: Use (FP0_REGNUM-32) instead of magic number 6.
1763 (This is just for clarity - and one day permitting us to
1764 change FP0_REGNUM from 38 to 32, which would make more sense.)
1765 * tm-mips.h: Added STAB_REG_TO_REGNUM macro, so that
1766 register numbers in stabs-in-ecoff get handled correctly.
1767
1768 Sat Feb 1 04:45:10 1992 Stu Grossman (grossman at cygnus.com)
1769
1770 * xm-vax.h, xm-vaxult.h, xm-vaxbsd.h, config/mh-vaxult,
1771 config/mh-vaxbsd, configure.in: Split up config stuff for Vaxen
1772 into BSD and Ultrix.
1773
1774 Sat Feb 1 04:39:41 1992 John Gilmore (gnu at cygnus.com)
1775
1776 * dbxread.c (dbx_symfile_init): Call malloc, not xmalloc.
1777
1778 Sat Feb 1 04:15:41 1992 Stu Grossman (grossman at cygnus.com)
1779
1780 * Makefile.in: Increment version to 4.4.1.
1781 * main.c (print_gdb_version): Update copyright notice.
1782
1783 Sat Feb 1 01:43:11 1992 Per Bothner (bothner at cygnus.com)
1784
1785 * mipsread.c: Prepend "struct " to the names of structure
1786 types, and similarly for enums and unions. (This used
1787 to be done, but got lost in the re-write to "guess" the
1788 difference between enum/struct/union.)
1789 Also, guess that a tag is an enum if the first member
1790 has type btNil.
1791
1792 Fri Jan 31 21:45:51 1992 Stu Grossman (grossman at cygnus.com)
1793
1794 * xm-vax.h: #ifndef ultrix around #include of endian.h and
1795 limits.h (sigh).
1796
1797 Fri Jan 31 00:05:01 1992 John Gilmore (gnu at cygnus.com)
1798
1799 * Projects: Patching executables is done.
1800 * Makefile.in (VERSION): Roll to gdb-4.4.
1801 * README, WHATS.NEW: Update for gdb-4.4.
1802
1803 * symfile.c (reread_symbols): Whenever we reread one object
1804 file's symbols, we must restart the scan, because the object_files
1805 chain has been permuted.
1806
1807 * exec.c (exec_files_info): Split out into print_section_info.
1808 Print BFD filename of each section if it's not the default one.
1809 * core.c (core_files_info): Call print_section_info.
1810
1811 * xm-vax.h: Include a few system header files whose definitions
1812 must precede defs.h.
1813 * language.c, language.h: Make some things const.
1814 * expression.h, main.c: const spreads like ooze.
1815
1816 * mem-break.c (break_insn, break_insn_size): Use unsigned chars,
1817 since BREAKPOINT values can be >0x80.
1818
1819 Thu Jan 30 17:21:14 1992 Stu Grossman (grossman at cygnus.com)
1820
1821 * infrun.c, xm-i386sco.h: SCO needs to use setpgid().
1822
1823 Thu Jan 30 01:04:23 1992 John Gilmore (gnu at cygnus.com)
1824
1825 * sparc-pinsn.c: Remove kludge for preferring architectures.
1826 Remove #ifdef's for SORT_NEEDED. We need to sort the table, now
1827 and forever. Add `add' instruction to the set that get checked
1828 for a preceding `sethi' in order to print an absolute address.
1829 Corresponding changes in ../include/opcode/sparc.h needed
1830 to eliminate garbage instructions.
1831
1832 Wed Jan 29 19:24:34 1992 Per Bothner (bothner at cygnus.com)
1833
1834 * mipsread.c (parse_partial_symbols): Make sure partial
1835 symbols are created for external symbols (as used to be
1836 the case). This is a bit of a pain with the mips-coff.
1837 It uses a table which points to all of the external
1838 symbols belonging to a particular FDR or psymtab.
1839 Once we've generated this table, we might as well save
1840 it, and then use it in psymtab_to_symtab_1 to find
1841 the symbols to pass to parse_external().
1842 * symfile.c, symfile.c: New function start_psymtab_common
1843 to share the common parts of allocating a new psymtab
1844 for dbxread, mipsread (and later dwarfread). Its code
1845 was pulled out from start_psymtab in dbxread.c.
1846 * dbxread.c (start_psymtab): Use start_psymtab_common().
1847
1848 * valprint.c (val_print): If there is an error when trying
1849 to print a string, check to see if there really is a problem
1850 by reading just one character. If that works, assume
1851 things are ok.
1852
1853 Wed Jan 29 18:58:43 1992 Stu Grossman (grossman at cygnus.com)
1854
1855 * sparc-pinsn.c (compare_opcodes): Make it prefer v6, v7,
1856 cypress, v8 mnemonics in that order.
1857
1858 Tue Jan 28 17:32:13 1992 Per Bothner (bothner at cygnus.com)
1859
1860 * sparc-pinsn.c: Put the qsort() back in.
1861
1862 Mon Jan 27 18:51:03 1992 John Gilmore (gnu at cygnus.com)
1863
1864 * findvar.c (read_register, write_register): Handle machines
1865 where REGISTER_TYPE is not the same size as "int".
1866
1867 Handle debug symbols in dynamically loaded (relocated) code:
1868
1869 * dbxread.c (read_ofile_symtab): Fix up N_CATCH better. Pass
1870 offset to process_one_symbol.
1871 (process_one_symbol): Take new offset parameter. Add it into
1872 appropriate symbol types to relocate symbols to loaded addresses.
1873 Handle all possible symbol types, and complain() about types that
1874 we don't expect to see.
1875 * mipsread.c (psymtab_to_symtab_1): Pass offset of zero to
1876 process_one_symbol (FIXME, should pass real offset).
1877
1878 Misc bugfixes:
1879
1880 * breakpoint.c (resolve_sal_pc): Split out code to resolve a
1881 sal's PC value.
1882 (set_breakpoint, break_command_1, until_break_command,
1883 catch_command_1, breakpoint_re_set_one): Use it.
1884 * symtab.h (resolve_sal_pc): Declare.
1885 * infcmd.c (jump_command): Use resolve_sal_pc.
1886
1887 * source.c (list_command): Shorten "FILE, line N" to "FILE:N".
1888
1889 * putenv.c (putenv): Avoid unportably casting pointers to unsigneds.
1890
1891 * c-exp.y (yylex): `this' and `template' are only tokens in C++.
1892
1893 * xm-convex.h, xm-hp300bsd.h, xm-isi.h, xm-merlin.h, xm-news.h,
1894 xm-np1.h, xm-pn.h, xm-pyr.h, xm-rtbsd.h, xm-symmetry.h, xm-umax.h:
1895 Remove MISSING_VPRINTF declaration, and superfluous "kgdb" defines.
1896
1897 Mon Jan 27 15:46:21 1992 Stu Grossman (grossman at cygnus.com)
1898
1899 * dbxread.c (process_one_symbol): Make a first cut at handling
1900 symbol tables generated by Sun's acc. (#ifdef'd out, FIXME.)
1901
1902 * symtab.c (find_pc_line): Fix stepping into and out of #included
1903 files.
1904
1905 Mon Jan 27 13:00:55 1992 Stu Grossman (grossman at cygnus.com)
1906
1907 * Makefile.in (OPCODES): Remove OPCODES defs and refs. There is
1908 no longer any need to copy ../include/opcode/* into gdb.
1909
1910 Mon Jan 27 12:30:38 1992 John Gilmore (gnu at cygnus.com)
1911
1912 * ChangeLog, ChangeLog-9091: Split ChangeLog at 1992.
1913
1914 Sun Jan 26 19:05:40 1992 Per Bothner (bothner at cygnus.com)
1915
1916 * valprint.c (type_print_base, type_print_method_args):
1917 Print C++ constructor methods without bogus "return type."
1918
1919 Sat Jan 25 15:57:59 1992 Fred Fish (fnf at cygnus.com)
1920
1921 * infptrace.c (child_xfer_memory): Parameter "target" should
1922 be a pointer to a structure, not the entire structure.
1923
1924 Fri Jan 24 01:30:27 1992 Fred Fish (fnf at cygnus.com)
1925
1926 * depend: Convert the couple of references to ansidecl.h that
1927 used the local gdb version to use the ../include version.
1928
1929 Thu Jan 23 22:24:43 1992 Fred Fish (fnf at cygnus.com)
1930
1931 * procfs.c
1932 (child_xfer_memory): Takes pointer to a struct, not entire struct.
1933 (inferior_proc_init): Fix non-ANSI version of args.
1934 (attach): Call print_sys_errmsg with correct number of args.
1935 (mappingflags): Make static, does not need to be global.
1936
1937 * i386-tdep.c (i386_frame_num_args): Takes a pointer to a struct
1938 not the entire struct itself.
1939
1940 * valops.c (value_assign): Cast some args to modify_field() and
1941 {read,write}_register_bytes() correctly.
1942
1943 * ansidecl.h: Removed, is duplicate of ../include/ansidecl.h
1944
1945 * Makefile.in (MALLOCSRC): Removed reference to removed local
1946 copy of ansidecl.h.
1947
1948 * dwarfread.c (list_in_scope): Needs an initial value, use file
1949 scope.
1950
1951 Mon Jan 20 19:06:28 1992 Stu Grossman (grossman at cygnus.com)
1952
1953 * main.c (main): Make option_index local to keep new getopt happy.
1954 main.c, solib.c, Makefile.in: Update copyright notices.
1955
1956 Mon Jan 20 08:54:00 1992 Michael Tiemann (tiemann at cygnus.com)
1957
1958 * cplus-dem.c (cplus_demangle): Correctly demangle destructors.
1959
1960 Sat Jan 18 17:17:45 1992 Stu Grossman (grossman at cygnus.com)
1961
1962 * Makefile.in (HFILES): Add partial-stab.h.
1963
1964 Sat Jan 18 16:45:01 1992 Fred Fish (fnf at cygnus.com)
1965
1966 * config/mh-stratus, config/mt-stratus, tm-stratus.h, xm-stratus.h:
1967 New files for stratus. Not complete enough to actually build
1968 on the Stratus machine; that awaits copyright assignment for
1969 i860 changes.
1970
1971 * Makefile.in (USER_CFLAGS): Add macro specifically reserved
1972 for getting custom flags into CFLAGS when doing makes.
1973
1974 * configure.in: Add config information for stratus.
1975
1976 Thu Jan 16 00:51:46 1992 Fred Fish (fnf at cygnus.com)
1977
1978 * dbxread.c (process_one_symbol): Pass address of structure
1979 to complain(), rather than the whole structure.
1980
1981 Wed Jan 15 09:56:16 1992 Fred Fish (fnf at cygnus.com)
1982
1983 * solib.c (solib_add_common_symbols): Only compile in when not
1984 using SVR4 style shared libraries.
1985
1986 Tue Jan 14 22:34:00 1992 Fred Fish (fnf at cygnus.com)
1987
1988 * dwarfread.c (locval): Add offreg flag to indicate location
1989 values that are computed off a base register.
1990
1991 * dwarfread.c (new_symbol): Rework TAG_global_variable and
1992 TAG_local_variable cases to account for static variables
1993 within function scopes.
1994
1995 Tue Jan 14 12:28:52 1992 Stu Grossman (grossman at cygnus.com)
1996
1997 * inflow.c: remove #include <sys/dir.h>. Not necessary, and
1998 doesn't exist on some systems.
1999
2000 * infrun.c (wait_for_inferior!!!!): Prevent gdb from hanging when
2001 nexting over recursive function calls.
2002
2003 * target.c (target_read_string): Create this routine to read null
2004 terminated strings from the target. It deals with running off the
2005 end of memory elegantly as well. solib.c (find_solib): Use
2006 target_read_string() to avoid problems with running off the end of
2007 memory.
2008
2009 * inflow.c (child_terminal_info): #ifdef TIOCPGRP around lines
2010 that reference pgrp_inferior.
2011
2012 Mon Jan 13 14:57:11 1992 Per Bothner (bothner at cygnus.com)
2013
2014 * tm-mips.h: Removed BLOCK_ADDRESS_ABSOLUTE, now that
2015 mips-tfile has been hacked to act more "traditionally."
2016 * dbxread.c: Fixed typo in comment.
2017
2018 Sun Jan 12 13:08:36 1992 Per Bothner (bothner at cygnus.com)
2019
2020 * mips-tdep.c (mips_skip_prologue): Add some number of
2021 'sw' instructions before 'addiu' adjusts the stack.
2022
2023 Fri Jan 10 13:47:06 1992 Fred Fish (fnf at cygnus.com)
2024
2025 * dwarfread.c (start_symtab, end_symtab, scopecount, openscope,
2026 freescope, buildblock closescope, record_line, add_symbol_to_list,
2027 gatherblocks, make_blockvector): Extensive changes to switch
2028 to generic symbol table building code in buildsym.c. Remove
2029 scope tree structures and functions, symbol table building
2030 functions, and lots of other small changes.
2031
2032 * dwarfread.c: Add new macros GCC_PRODUCER and STREQN. Remove
2033 GCC_COMPILED_FLAG_SYMBOL and GCC2_COMPILED_FLAG_SYMBOL.
2034
2035 Tue Jan 7 13:09:57 1992 Stu Grossman (grossman at cygnus.com)
2036
2037 * buildsym.c (cleanup_undefined_types): Add support for enums.
2038 This fixes the 'GDB internal error. cleanup_undefined_types with
2039 bad type' problem.
2040
2041 Sun Jan 5 09:47:50 1992 Stu Grossman (grossman at cygnus.com)
2042
2043 * dbxread.c: detect gcc2 compilations.
2044
2045 Thu Jan 2 15:07:41 1992 John Gilmore (gnu at cygnus.com)
2046
2047 * sparc-pinsn.c: Rename bitfields that overlap with macro names
2048 in ../include/opcode/sparc.h.
2049
2050 Wed Jan 1 04:29:00 1992 Fred Fish (fnf at cygnus.com)
2051
2052 * Makefile.in: Change tm-svr4.h to tm-sysv4.h. Change xm-svr4.h
2053 to xm-sysv4.h. Split OPCODE_DIR into OPCODE_DIR1 and OPCODE_DIR2
2054 to reflect actual locations of opcode files, so TAGS target will
2055 be buildable.
2056
2057 * i386-tdep.c: Change an erroneous 'm68k' reference to 'i386'.
2058
2059 * i386-tdep.c (supply_fpregset, fill_fpregset): Remove m68k
2060 code.
2061
2062 * m68k-tdep.c (supply_fpregset, fill_fpregset): Fix array
2063 dereferencing to access the correct elements.
2064
2065 * valops.c (value_addr): Declare return type of external func
2066 value_copy().
2067
2068 * xcoffread.c: Undefine next_symbol_text before redefining it.
2069
2070 For older changes see ChangeLog-9091
2071 \f
2072 Local Variables:
2073 mode: indented-text
2074 left-margin: 8
2075 fill-column: 74
2076 version-control: never
2077 End:
This page took 0.071718 seconds and 5 git commands to generate.