John Gilmore [Thu, 13 Aug 1992 19:02:32 +0000 (19:02 +0000)]
* breakpoint.c (enable_longjmp_breakpoint,
disable_longjmp_breakpoint, set_longjmp_resume_breakpoint):
Check for duplicate breakpoints at the same address. Bug report
and preliminary fix from Dave Morrison, <drmorris@us.oracle.com>.
Fred Fish [Wed, 12 Aug 1992 18:17:48 +0000 (18:17 +0000)]
* buildsym.c (end_symtab): Document that end_symtab can return
NULL under non-error conditions.
* dwarfread.c (read_file_scope): Guard against dereferencing NULL
returned from end_symtab for empty compilation units.
John Gilmore [Tue, 11 Aug 1992 09:54:24 +0000 (09:54 +0000)]
Changes to make MIPS x 29K compile.
* am29k-tdep.c: Lint from DECstation compiler.
* mem-break.c: Restore test of BREAKPOINT size that Fred removed.
As the man page says, "Sometimes you just can't get lint to shut
up". That doesn't mean you should blow away the code it won't
shut up about.
* mips-xdep.c: Revise stubbing-out of code until Rich cleans
it up over the next few weeks. Make mips x 29k build.
* tm-29k.h (CALL_DUMMY): Make it work on cross-endian hosts.
(FIX_CALL_DUMMY): Comment in the patching of the breakpoint,
but leave it as a comment because the breakpoint instruction
is not easily accessible at this moment (it's static, and if
we define one here, it goes into every file compiled).
Fred Fish [Tue, 11 Aug 1992 05:29:41 +0000 (05:29 +0000)]
* Makefile.in (VERSION): Bump to 4.6.3.
* dwarfread.c (scan_partial_symbols): Skip over DIE's within
function scopes when building partial symbol tables.
* objfiles.c (open_existing_mapped_file): Make it clear in
warning message that out of date mapped files are ignored.
* symtab.c (lookup_symtab_1, lookup_symbol): Print compilation
unit source file name in error message.
Fred Fish [Sun, 9 Aug 1992 06:16:44 +0000 (06:16 +0000)]
* bout.c (bfd_reloc_status_type, callj_callback): Cast void*
pointers to bfd_byte* before performing arithmetic on them. Such
use with bare void* pointers is a gcc extension.
* cache.c (bfd_cache_delete): Forward decl with prototype form.
* archive (normalize): Add to CONST to match actual usages with
CONST.
Fred Fish [Sun, 9 Aug 1992 06:14:59 +0000 (06:14 +0000)]
* dwarfread.c (struct dieinfo): Add has_at_byte_size.
* dwarfread.c (struct_type): In absence of AT_byte_size for
bitfield, use size of object of member's type for the size of
the anonymous object containing the bit field.
* dwarfread.c (completedieinfo): Set has_at_byte_size when
an AT_byte_size attribute is seen.
* mipsread.c (psymtab_to_symtab_1): Fix misspelled cast to
union aux_ext (was aux_ent).
* i386-pinsn.c (print_insn): Cast 2'nd arg to read_memory from
unsigned char* to char*, for Lucid compiler.
* i386-tdep.c (codestream_fill): Fix cast of 2'nd arg to read_memory
to be correct type (from unsigned char* to char*).
* valprint.c (type_print_derivation_info): Minor tweak to placement
of commas in derived class printing.
* xcoffread.c (builtin_type): Fix misspelling in fatal message.
* ldlang.h: add new field "loadable" to output_section_statement.
* ldlang.c (lang_output_section_statement_lookup): initilize new
field. (wild_doit): if new field is not set, then stop output
section from being loadable.
(lang_enter_output_section_statement): set the field from the
NOLOAD keyword
* ldgram.y: new synax for NOLOAD. Removes a shift/reduce too.
* h8300hms.sc-sh, h8300hms.em: get -r right.
* xm-go32.h: Define LSEEK_NOT_LINEAR
* serial.c (find_source_lines): if LSEEK_NOT_LINEAR is defined
then work out the lseek positions of newlines by running through
the file and `tell'ing. This makes source file listing work on
OS's where the relationship between physical position in file and
canonical position is indeterminate, eg VMS and DOS.
Fred Fish [Thu, 6 Aug 1992 21:44:36 +0000 (21:44 +0000)]
* stabsread.c: Ensure that all members of all allocated structures
are initialized to known state to avoid hard to find bugs with gdb
using fields containing random data.
Per Bothner [Wed, 5 Aug 1992 18:46:00 +0000 (18:46 +0000)]
* copy.c: When is_strip (because it is invoked as the strip
program), follow traditional argv processing:
'strip file1 file2' now strips file1 and file2, rather
than stripping file1 (as input), leaving output in file2.
John Gilmore [Wed, 5 Aug 1992 08:59:10 +0000 (08:59 +0000)]
* tc-m68k.c (try_index): Error if index scaling specified and
assembling for an older CPU than a 68020.
This bug was found at Adobe because GAS did not diagnose incorrect
68020 code generated by GCC when compiling for 68010. We had to debug it
in the target system as failing instructions.
Per Bothner [Wed, 5 Aug 1992 04:15:37 +0000 (04:15 +0000)]
* cdtest-main.cc, cdtest-func.cc, cdtest-foo.h, cdtest-foo.cc,
cdtest.exp: A test program (copied from libg++/test-install)
that tests that constructor and destructors are handled
corrrectly.
Fred Fish [Mon, 3 Aug 1992 07:28:46 +0000 (07:28 +0000)]
* configure.in: Recognize i486 host cpu.
* valprint.c (type_print_derivation_info): Print derivation info
in same form as class declarations in source.
* valprint.c (type_print_varspec_suffix): Split arg printing
code out to type_print_args function.
Fred Fish [Sat, 1 Aug 1992 20:51:09 +0000 (20:51 +0000)]
* config/stratus.mt (CC): Remove definition.
* elf.c (bfd_section_from_shdr, elf_section_from_bfd_section,
section_from_elf_index): Add SHT_BEPROGBITS case for i860 in
big endian mode.
* elf.c (bfd_section_from_shdr): Test for the possibility that
section_from_elf_index returns NULL and don't dereference it.
Fred Fish [Sat, 1 Aug 1992 20:47:51 +0000 (20:47 +0000)]
* dwarf.h: Replace with current version from gcc distribution.
* common.h (SHT_BEPROGBITS): Add section type for i860 operating
in big endian mode, where code is in a separate section. The
SHT_PROGBITS section is used for data. From pfieland@stratus.com.
Fred Fish [Sat, 1 Aug 1992 20:40:59 +0000 (20:40 +0000)]
* dwarfread.c (struct dieinfo): Remove obsolete at_visibility,
at_import, at_frame_base.
* dwarfread.c (completedieinfo): Remove cases for obsolete
AT_visibility, AT_import, and AT_frame_base attributes.
* breakpoint.h (BREAKPOINT_MAX): Increase from 10 to 16 for
i860, which can keep up to 4 shadow breakpoints.
* tm-stratus.h (USG): Define.
* tm-stratus.h (TARGET_BYTE_ORDER): Define to BIG_ENDIAN.
* xm-stratus.h (HOST_BYTE_ORDER): Define to BIG_ENDIAN.
* xm-stratus.h (xm-sysv4.h): Include, name changed from xm-svr4.h.
* xm-stratus.h (NO_JOB_CONTROL): Remove define.
* config/stratus.mt (TDEPFILES): Include files available from
stratus that are not yet in release pending receipt of paperwork
at FSF.
* buildsym.c (finish_block): Minor code format change.
* gdbtypes.h (struct field): Add to comments.
* gdbtypes.h (virtual_field_bits): Add to comments.
* objfiles.c (allocate_objfile): Change obstack interface to
match FSF merging efforts.
Ken Raeburn [Sat, 1 Aug 1992 02:26:13 +0000 (02:26 +0000)]
* config/tc-m68k.c (m68k_ip): Mismatch error could also indicate
processor/opcode mismatch, so reword the error message.
(md_assemble): If no CPU has been set (even if FPU/PMMU
characteristics have been), default to 68020. Don't need extra
quotes around error string.
Ken Raeburn [Sat, 1 Aug 1992 02:12:55 +0000 (02:12 +0000)]
* configure.in (mips host): Accept "ultrix" with version number.
* expr.c (floating_constant): Separate "=-" to avoid confusing
ancient or broken compilers.
* config/tc-m68k.c (m68k_ip): Mismatch error could also indicate
processor/opcode mismatch, so reword the error message.
(md_assemble): If no CPU has been set (even if FPU/PMMU
characteristics have been), default to 68020. Don't need extra
quotes around error string.
Fred Fish [Thu, 23 Jul 1992 04:41:40 +0000 (04:41 +0000)]
* lmode_inferior_valid, lmode_ours_valid: New static vars.
* inflow.c (terminal_init_inferior, terminal_inferior,
terminal_ours_1, initialize_inflow): Record and use state
of lmode_inferior_valid and lmode_ours_valid.
Fred Fish [Tue, 21 Jul 1992 04:14:34 +0000 (04:14 +0000)]
* buildsym.c (read_struct_type): Initialize structs allocated
with alloca, to avoid using random values from stack later on.
* defs.h (fprintf_filtered): Add prototype.
* gdbtypes.c (check_stub_method): Fix misleading comments.
* gdbtypes.c (print_arg_types, dump_fn_fieldlists): New maint
support functions.
* gdbtypes.c (print_cplus_stuff, recursive_dump_type): Many
small changes to maint support functions.
* gdbtypes.h (cplus_struct_type): Reorganize member ordering
for some fields and expand comments.
* objfiles.c (allocate_objfile): Use new obstack_alloc_arg
macro and track change to obstack_full_begin macro.
* utils.c (fprintfi_filtered): New function.
* valprint.c (type_print_base): Fixup field printing to not
print extraneous lines and not print bogus "no data fields"
messages for C++ classes with no data members. Also use new
fprintfi_filtered function.
Stu Grossman [Sat, 18 Jul 1992 00:00:24 +0000 (00:00 +0000)]
* energize.c: Relativize pathnames in #include statements.
* (kernel_dispatch): Better error messages for unknown protocol
messages.
* (kernel_dispatch): First cut at DynamicLoad message handling.