binutils-gdb.git
31 years agoNow works in a cross build environment
Steve Chamberlain [Mon, 4 Jan 1993 15:45:35 +0000 (15:45 +0000)]
Now works in a cross build environment

31 years ago * command.c (shell_escape, make_command, _initialze_command):
Steve Chamberlain [Mon, 4 Jan 1993 15:39:00 +0000 (15:39 +0000)]
* command.c (shell_escape, make_command, _initialze_command):
don't create or use fork if CANT_FORK is defined.
* serial.h, ser-go32.c: now compiles, but "the obvious problems of
code written for the IBM PC" remain.
* xm-go32.h: define CANT_FORK

31 years ago * srec.c (srec_write_records): one of my boards wants a CR between
Steve Chamberlain [Mon, 4 Jan 1993 15:21:21 +0000 (15:21 +0000)]
* srec.c (srec_write_records): one of my boards wants a CR between
records.

31 years agolog for changes checked in this morning; deleted some duplicate entries
Ken Raeburn [Mon, 4 Jan 1993 13:28:51 +0000 (13:28 +0000)]
log for changes checked in this morning; deleted some duplicate entries

31 years ago(s_data): Use "data_section"; it'll map to SEG_DATA or SEG_E1 if appropriate,
Ken Raeburn [Mon, 4 Jan 1993 13:24:39 +0000 (13:24 +0000)]
(s_data): Use "data_section"; it'll map to SEG_DATA or SEG_E1 if appropriate,
as soon as I check in as.h.
(s_lcomm): Likewise with bss_section.
(s_fill): Use memset, not bzero.
whitespace/comment changes.
deleted some "#ifdef DONTDEF" sections relating to GDB symtabs.

31 years agodelete decls of segment_name, seg_name
Ken Raeburn [Mon, 4 Jan 1993 13:14:53 +0000 (13:14 +0000)]
delete decls of segment_name, seg_name

31 years agocomment reformatting
Ken Raeburn [Mon, 4 Jan 1993 13:12:27 +0000 (13:12 +0000)]
comment reformatting

31 years agoAllow srcdir builds
Steve Chamberlain [Mon, 4 Jan 1993 01:55:53 +0000 (01:55 +0000)]
Allow srcdir builds

31 years agoAdded h8300sim
Steve Chamberlain [Sun, 3 Jan 1993 23:16:04 +0000 (23:16 +0000)]
Added h8300sim

31 years ago * remote-sim.c: first attempt at general simulator interface
Steve Chamberlain [Sun, 3 Jan 1993 22:37:07 +0000 (22:37 +0000)]
* remote-sim.c: first attempt at general simulator interface
* remote-hms.c: whitespace
* h8300-tdep.c: (h8300_skip_prologue, examine_prologue):
understand new stack layout. (print_register_hook): print ccr
register in a fancy way.
include simulator target too.

31 years ago * remote-sim.c: first attempt at general simulator interface
Steve Chamberlain [Sun, 3 Jan 1993 22:36:04 +0000 (22:36 +0000)]
* remote-sim.c: first attempt at general simulator interface
* remote-hms.c: whitespace
* h8300-tdep.c: (h8300_skip_prologue, examine_prologue):
understand new stack layout. (print_register_hook): print ccr
register in a fancy way.

31 years ago * eval.c (language.h): Include.
Fred Fish [Sun, 3 Jan 1993 22:24:21 +0000 (22:24 +0000)]
* eval.c (language.h): Include.
* eval.c (evaluate_subexp_with_coercion):  Only coerce arrays
to pointer types when the current language is C.  It loses for
other languages when the lower index bound is nonzero.
* valarith.c (value_subscript):  Take array lower bounds into
account when performing subscripting operations.
* valops.c (value_coerce_array):  Add comment describing why
arrays with nonzero lower bounds are dealt with in value_subscript,
rather than in value_coerce_array.

31 years ago * p1.c, p3.c, run.c, writecode.c: all used h8/300 opcodes in and
Steve Chamberlain [Sun, 3 Jan 1993 22:19:42 +0000 (22:19 +0000)]
* p1.c, p3.c, run.c, writecode.c: all used h8/300 opcodes in and
running

31 years ago **** start-sanitize-chill ****
Fred Fish [Sun, 3 Jan 1993 06:56:08 +0000 (06:56 +0000)]
**** start-sanitize-chill ****
* ch-exp.y (FLOAT_LITERAL):  Add token.
* ch-exp.y (literal):  Add FLOAT_LITERAL.
* ch-exp.y (match_float_literal):  New lexer routine.
* ch-exp.y (convert_float):  Remove.
* ch-exp.y (yylex):  Call match_float_literal.
* ch-exp.y (yylex):  Match single '.' after trying
to match floating point literals.
**** end-sanitize-chill ****

31 years ago * eval.c (evaluate_subexp): Add case MULTI_SUBSCRIPT.
Fred Fish [Sat, 2 Jan 1993 20:32:01 +0000 (20:32 +0000)]
* eval.c (evaluate_subexp):  Add case MULTI_SUBSCRIPT.
* expprint.c (print_subexp):  Rename BINOP_MULTI_SUBSCRIPT to
MULTI_SUBSCRIPT.
* expprint.c (dump_expression):  New function for dumping
expression vectors during gdb debugging.
* expression.h (BINOP_MULTI_SUBSCRIPT):  Name changed to
MULTI_SUBSCRIPT and moved out of BINOP range.
* expression.h (DUMP_EXPRESSION):  New macro that calls
dump_expression if DEBUG_EXPRESSIONS is defined.
* m2-exp.y (BINOP_MULTI_SUBSCRIPT):  Changed to MULTI_SUBSCRIPT.
* parse.c (length_of_subexp, prefixify_subexp):  Change
BINOP_MULTI_SUBSCRIPT to MULTI_SUBSCRIPT.
* parse.c (parse_exp_1):  Call DUMP_EXPRESSION before and after
prefixify'ing the expression.
* printcmd.c (print_command_1):  Add comment.
**** start-sanitize-chill ****
* ch-exp.y (expression_list):  Add useful actions.
* ch-exp.y (value_array_element):  Add useful actions.
* ch-exp.y (array_primitive_value):  Add production.
* ch-exp.y (yylex):  Recognize ',' as a token.
**** end-sanitize-chill ****

31 years agopass prefix & exec_prefix, POSIXize recursive makes
David D. Zuhn [Sat, 2 Jan 1993 02:23:49 +0000 (02:23 +0000)]
pass prefix & exec_prefix, POSIXize recursive makes

31 years agoReplace T in TC_H8300
Steve Chamberlain [Fri, 1 Jan 1993 22:21:33 +0000 (22:21 +0000)]
Replace T in TC_H8300

31 years ago * tm-sun4sol2.h (CPLUS_MARKER): Remove, now set in tm-sysv4.h.
Fred Fish [Fri, 1 Jan 1993 20:29:41 +0000 (20:29 +0000)]
* tm-sun4sol2.h (CPLUS_MARKER):  Remove, now set in tm-sysv4.h.
* tm-sysv4.h (CPLUS_MARKER):  By default, g++ uses '.' as the
CPLUS_MARKER for all SVR4 systems, so follow suit.
* defs.h (strdup_demangled):  Remove prototype.
* dwarfread.c (enum_type, synthesize_typedef):  Use new macro
SYMBOL_INIT_LANGUAGE_SPECIFIC.
* dwarfread.c (new_symbol):  Use SYMBOL_INIT_DEMANGLED_NAME.
* minsyms.c (install_minimal_symbols, prim_record_minimal_symbol,
prim_record_minimal_symbol_and_info):  Use new macro
SYMBOL_INIT_LANGUAGE_SPECIFIC.
* minsyms.c (install_minimal_symbols):  Use new macro
SYMBOL_INIT_DEMANGLED_NAME.
* stabsread.c (define_symbol):  Use new macro
SYMBOL_INIT_DEMANGLED_NAME.
* symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
Use new macro SYMBOL_INIT_DEMANGLED_NAME.
* symfile.h (ADD_PSYMBOL_VT_TO_LIST):  Use new macro
SYMBOL_INIT_DEMANGLED_NAME.
* symmisc.c (dump_msymbols, dump_symtab, print_partial_symbol):
SYMBOL_DEMANGLED_NAME now tests language itself.
* symtab.c (COMPLETION_LIST_ADD_SYMBOL):  SYMBOL_DEMANGLED_NAME
now tests language itself.
* symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME):  New macro that does
what SYMBOL_DEMANGLED_NAME used to do, directly access the C++
mangled name member in the language dependent portion of a symbol.
* symtab.h (SYMBOL_DEMANGLED_NAME):  New macro that returns the
mangled name member appropriate for a symbol's language.
* symtab.h (SYMBOL_SOURCE_NAME, SYMBOL_LINKAGE_NAME,
SYMBOL_MATCHES_NAME, SYMBOL_MATCHES_REGEXP):
SYMBOL_DEMANGLED_NAME now tests language itself.
* symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC):  New macro that
initializes language dependent portion of symbol.
* symtab.h (SYMBOL_INIT_DEMANGLED_NAME):  New macro that
demangles and caches the demangled form of symbol names.
* utils.c (fputs_demangled, fprint_symbol):  Use current language
to select an appropriate demangling algorithm.
* utils.c (strdup_demangled):  Remove, no longer used.
**** start-sanitize-chill ****
* symtab.h (SYMBOL_CHILL_DEMANGLED_NAME):  New macro that directly
access the Chill mangled name member in the language dependent
portion of a symbol.
* ch-lang.c (chill_demangle):  New function, simple demangler.
* defs.h (chill_demangle):  Add prototype.
* symtab.h (language_dependent_info):  Add struct for Chill.
**** end-sanitize-chill ****

31 years ago * Makefile.in (BISON): Add comment that when bison is used, it
Fred Fish [Thu, 31 Dec 1992 19:08:08 +0000 (19:08 +0000)]
* Makefile.in (BISON):  Add comment that when bison is used, it
must include the "-y" option.
* c-exp.y, m2-exp.y (yyrule, yyname, yyss, yyssp, yyvs, yyvsp):
Remove defines to remap non-yacc symbols, thus backing out of
previous recent changes.  Standard policy is that non-yacc parser
generators get fixed, rather than adding bug workarounds in gdb
for each new one that pops up.  Expand comment to note this.
* c-exp.y, m2-exp.y (YYDEBUG):  Revert back to disabled by default.

31 years ago * partial-stab.h (near N_BINCL): Remove redundant code in N_BINCL
Stu Grossman [Thu, 31 Dec 1992 17:24:06 +0000 (17:24 +0000)]
* partial-stab.h (near N_BINCL):  Remove redundant code in N_BINCL
case.  Use code in N_SOL.

31 years ago * paread.c: New file that contains all HPPA/HPUX symbol reading
Stu Grossman [Thu, 31 Dec 1992 17:14:14 +0000 (17:14 +0000)]
* paread.c:  New file that contains all HPPA/HPUX symbol reading
code.
* dbxread.c:  Remove almost all HPPA/HPUX symbol reading code.
* (dbx_symfile_init):  Use sizeof(long) instead of 4.
* (dbx_symfile_offsets):  Make static.
* (pastab_build_psymtabs):  New interface routine for paread to
send stabs into dbxread.
* gdb-stabs.h:  Remove gobs of HPPA cruft.

31 years ago * c-exp.y, m2-exp.y (yyrule, yyname): Remap like other yy* names
Fred Fish [Thu, 31 Dec 1992 06:23:28 +0000 (06:23 +0000)]
* c-exp.y, m2-exp.y (yyrule, yyname):  Remap like other yy* names
for byacc.
**** start-sanitize-chill ****
* ch-exp.y (yyrule, yyname):  Remap like other yy* names for byacc.
**** end-sanitize-chill ****

31 years ago * c-exp.y, m2-exp.y (yyreds, yytoks): Remap like other yy* names.
Fred Fish [Thu, 31 Dec 1992 04:05:05 +0000 (04:05 +0000)]
* c-exp.y, m2-exp.y (yyreds, yytoks):  Remap like other yy* names.
* c-exp.y, m2-exp.y (YYDEBUG):  Define if MAINTENANCE_CMDS is defined
and YYDEBUG is not already defined.
* c-exp.y (strncmp):  Replace throughout with STREQN, missed
them during the previous replacements.
* printcmd.c (_initialize_printcmd):  Update internal documentation
for "set" command to note that the assignment syntax is language
dependent.
**** start-sanitize-chill ****
* ch-exp.y (yyreds, yytoks):  Remap like other yy* names.
* ch-exp.y (YYDEBUG):  Define if MAINTENANCE_CMDS is defined
and YYDEBUG is not already defined.
* ch-exp.y (GDB_REGNAME, GDB_LAST, GDB_VARIABLE, GDB_ASSIGNMENT,
single_assignment_action): New terminals and nonterminal for gdb
extensions to chill expression grammer.
* ch-exp.y (match_dollar_tokens):  Lexer routine to match all
tokens that start with '$' (register names, convenience vars, etc).
* ch-exp.y (tokentab2):  Add GDB_ASSIGNMENT.
* ch-exp.y (yylex):  Call match_dollar_tokens.
**** end-sanitize-chill ****

31 years agoupdate comments
David D. Zuhn [Thu, 31 Dec 1992 01:30:27 +0000 (01:30 +0000)]
update comments

31 years agoA bunch of changes to COFF support. See the ChangeLog.
Ian Lance Taylor [Wed, 30 Dec 1992 21:39:51 +0000 (21:39 +0000)]
A bunch of changes to COFF support.  See the ChangeLog.

31 years agoWed Dec 30 12:46:30 1992 Ian Lance Taylor (ian@cygnus.com)
Ian Lance Taylor [Wed, 30 Dec 1992 20:49:21 +0000 (20:49 +0000)]
Wed Dec 30 12:46:30 1992  Ian Lance Taylor  (ian@cygnus.com)

* archive.c (do_slurp_coff_armap): set symdef_count correctly
(it broke a couple of weeks ago).

31 years agoWed Dec 30 10:18:57 1992 Ian Lance Taylor (ian@cygnus.com)
Ian Lance Taylor [Wed, 30 Dec 1992 20:34:14 +0000 (20:34 +0000)]
Wed Dec 30 10:18:57 1992  Ian Lance Taylor  (ian@cygnus.com)

* app.c, config/tc-*.c: Don't include read.h, since it is already
included by as.h.

* These are based on patches from Minh Tran-le
<mtranle@paris.intellicorp.com>.
* configure.in (i[34]86-ibm-aix*): Accept i486 for host.  Use
obj_format coffbfd and gas_target i386coff for target.
(i[34]86-*-isc*): New host (uses sysv).
* config/i386aix.mt: Removed (no longer used).
* config/mh-i386aix (RANLIB): Use true rather than /bin/true.
(MINUS_G): Removed.
(LDFLAGS): Added, defined as -shlib.
* config/te-i386aix.h (REVERSE_SORT_RELOCS): Undefine.
* config/te-sco386.h (LOCAL_LABEL): Don't define.
(DOT_LABEL_PREFIX): Define.
* expr.c (operand): If DOT_LABEL_PREFIX, use .L0\001 as a label
name rather than L0\001.
* read.c (s_lcomm): Make a frag in SEG_BSS rather than using
local_bss_counter.
* symbols.c, symbols.h (local_bss_counter): Removed.
* write.c (write_object_file): bss no longer uses
local_bss_counter.  Pass correct data and bss size to
VMS_write_object_file.
* config/obj-vms.c (VMS_write_object_file): Accept bss size as
argument, rather than using local_bss_counter.
* config/tc-m88k.c (s_bss): Don't use local_bss_counter.
* config/tc-sparc.c (s_reserve): Don't use local_bss_counter.
* config/obj-coffbfd.c (had_lineno, had_reloc): Removed.
(size_section): Restored sanity check.
(do_relocs_for): Base section address on s_paddr rather than
computing it.  Adjust a29k R_IHIHALF special case to account for
section paddr (used to require paddr to be zero).  If there are no
reclos, set s_relptr to 0.  Set relocation size in object_headers.
(fill_section): Always set s_vaddr here, removing
ZERO_BASED_SEGMENTS case.  Force s_scnptr for bss to 0.  Don't set
NOLOAD for i386 .bss, because it confuses the SVR3 native linker.
Set STYP_INFO for .comment.
(coff_header_append): Use object headers and H_{SET,GET}_* macros.
Make aouthdr writing depend on OBJ_COFF_OMIT_OPTIONAL_HEADER.
(crawl_symbols): Handle 8 character section name correctly.  Use
H_{SET,GET}_* macros.
(do_linenos_for): Set lineno size in object_headers.
(write_object_file): Use H_{SET,GET}_* macros.  Don't bother to
set s_vaddr here.  If string_byte_count remains 4, set it back to
0, and only write strings out if there are some.  Call
fill_section before do_relocs_for and do_linenos_for.
(obj_coff_section): Handle optional quoted second argument giving
section characteristics.
(obj_coff_bss): Added to handle .bss.
(obj_coff_ident): Added to handle .ident (puts string in .comment
section).
(obj_coff_lcomm): Put common symbols in .bss, not .data.
(fixup_mdeps): Change to segment.  Call frag_wane after
md_convert_frag.
(fixup_segment): Explicitly check S_IS_COMMON before making 386
adjustment (already happened only for common symbols, but this is
clearer).
* config/obj-coffbfd.h (OBJ_COFF_OMIT_OPTIONAL_HEADER): Define.
* config/tc-i386.c (s_bss): Don't use if I386COFF.
(md_pseudo_table): Ignore .optim and .noopt.
(tc_coff_sizemachdep): New function.
* config/tc-i386.h (REVERSE_SORT_RELOCS): Undef, for SVR3
compatibility.
(LOCAL_LABEL): Removed definition.
(DOT_LABEL_PREFIX): Defined.

31 years agoupdated dates
David D. Zuhn [Wed, 30 Dec 1992 06:52:33 +0000 (06:52 +0000)]
updated dates

31 years agofix libbfd.h declaration, by tweaking elf.c comment, so bfd can compile
Ken Raeburn [Wed, 30 Dec 1992 02:48:29 +0000 (02:48 +0000)]
fix libbfd.h declaration, by tweaking elf.c comment, so bfd can compile

31 years agoregenerated from current sources - bfd_elf_find_section return type changed
Ken Raeburn [Wed, 30 Dec 1992 00:16:39 +0000 (00:16 +0000)]
regenerated from current sources - bfd_elf_find_section return type changed

31 years agoapp.c (app_push): Use memcpy, not bcopy.
Ken Raeburn [Tue, 29 Dec 1992 23:53:52 +0000 (23:53 +0000)]
app.c (app_push): Use memcpy, not bcopy.
(do_scrub_next_char): For \", return " not '.
(symbol_chars): Now const.

31 years agoTue Dec 29 15:06:00 1992 Ian Lance Taylor (ian@cygnus.com)
Ian Lance Taylor [Tue, 29 Dec 1992 23:39:18 +0000 (23:39 +0000)]
Tue Dec 29 15:06:00 1992  Ian Lance Taylor  (ian@cygnus.com)

* config/mh-sco: Don't override BISON definition.

31 years agoTue Dec 29 15:06:00 1992 Ian Lance Taylor (ian@cygnus.com)
Ian Lance Taylor [Tue, 29 Dec 1992 23:10:26 +0000 (23:10 +0000)]
Tue Dec 29 15:06:00 1992  Ian Lance Taylor  (ian@cygnus.com)

* build-all.mk: If canonhost is i386-unknown-sco3.2v4, change it
to i386-sco3.2v4.  Set TARGETS and CFLAGS for i386-sco3.2v4.
(all-cygnus, native, build-cygnus): Make
$(canonhost)-stamp-3stage-done, not $(host)....
* test-build.mk (stamp-3stage-compared): Use tail +10c for
i386-sco3.2v4.  Added else true to if command.

31 years agoTue Dec 29 13:54:35 1992 Ian Lance Taylor (ian@cygnus.com)
Ian Lance Taylor [Tue, 29 Dec 1992 21:59:15 +0000 (21:59 +0000)]
Tue Dec 29 13:54:35 1992  Ian Lance Taylor  (ian@cygnus.com)

* coffcode.h (coff_real_object_p): use name I386AIXMAGIC rather
than I386SVMAGIC.
(coff_pointerize_aux): don't pointerize a negative tagndx
(sometimes generated by SCO 3.2v4 cc).

* bout.c (calljx_callback, callj_callback,
b_out_get_relocated_section_contents): warn if relocating against
an undefined symbol.

31 years ago * hppah-tdep.c (skip_trampoline_code): Use new macros for
Stu Grossman [Tue, 29 Dec 1992 00:27:18 +0000 (00:27 +0000)]
* hppah-tdep.c (skip_trampoline_code):  Use new macros for
accessing minimal symbol data.
* infcmd.c (read_pc):  Use #ifdef, not #if.
* symfile.c (syms_from_objfile):  Add CONST to decl for targets.
* tm-hppa.h (FIX_CALL_DUMMY):  Use new macros for accessing
minimal symbol data.

31 years ago * hppah-tdep.c (frame_saved_pc): Use better test for outermost
Stu Grossman [Mon, 28 Dec 1992 23:19:51 +0000 (23:19 +0000)]
* hppah-tdep.c (frame_saved_pc):  Use better test for outermost
frame.  Use find_return_regnum to find the caller.
* (find_unwind_entry):  New routine to locate stack frame info
associated with a procedure.  This looks in the $UNWIND_START$
section in the SOM file.
* (find_return_regnum):  New routine.  Uses find_unwind_entry() to
figure out where the caller's return address is stored.
* (find_proc_framesize):  New routine.  Uses find_unwind_entry()
to figure out the frame size for a procedure.
* (saved_pc_after_call):  New routine, moved from tm-hppa.h.
* (init_extra_frame_info):  New routine.  Corrects PC and FP for
outermost frame if necessary.
* (frame_chain):  New routine, moved from tm-hppa.h.
* (skip_trampoline_code):  Handle computed function calls (ie:
calls from $$dyncall).
* (unwind_command):  Temporary support function to allow user
to control/observe aspects of the unwind (stack frame) info.
* infcmd.c (read_pc):  (Temporary), put a hack in to see if the PC
was in a system call, if so, then read the PC from r31.
* tm-hppah.h (SKIP_TRAMPOLINE_CODE, IN_SOLIB_TRAMPOLINE):  Deal
with extra arg for skip_trampoline_code().
* (INIT_EXTRA_FRAME_INFO):  Define to point at subr (see above).
* (FRAME_CHAIN, FRAME_CHAIN_VALID):  Turn into real subroutines.
* tm-hppa.h (SAVED_PC_AFTER_CALL):  Turn into real subroutine.

31 years ago* hppa.c: Get rid of DEFUN, use more conventional prolog stuff.
Stu Grossman [Mon, 28 Dec 1992 22:57:19 +0000 (22:57 +0000)]
* hppa.c:  Get rid of DEFUN, use more conventional prolog stuff.
Make a bunch more routines be static.
* hppa.c (fill_spaces):  Get rid of this, replace with much better
written setup_sections().
* (setup_sections):  New routine to create BFD sections for each
space and subspace in SOM files.
* (hppa_object_setup):  Use BFD sections created by
setup_sections() to locate GDB symbol table info.
* (make_unique_section):  New routine to create a BFD section.  It
ensures that the given name is unique, and will generate a unique
one if necessary.
* (hppa_object_p):  Become much more paranoid about file header.
* (make_bfd_asection):  Call bfd_make_section to do the dirty
work.  Simplify code somewhat.
* (hppa_core_file_p):  Use proper name for stack section.
* libhppa.h:  Remove millicode_start, millicode_end decls.

31 years agorebuilt from current bfd library
Ken Raeburn [Mon, 28 Dec 1992 22:17:40 +0000 (22:17 +0000)]
rebuilt from current bfd library

31 years agofrom fsf: sequent os is bsd(ish)
Ken Raeburn [Mon, 28 Dec 1992 20:10:40 +0000 (20:10 +0000)]
from fsf: sequent os is bsd(ish)

31 years agoMon Dec 28 11:15:35 1992 Ian Lance Taylor (ian@cygnus.com)
Ian Lance Taylor [Mon, 28 Dec 1992 19:43:59 +0000 (19:43 +0000)]
Mon Dec 28 11:15:35 1992  Ian Lance Taylor  (ian@cygnus.com)

* m68kcoff.sc-sh: define _end as well as end, for consistency with
aout.sc-sh.

* configure.in: accept *-ericsson-ose for any m68k CPU.

* ldwrite.c (write_rel): don't always set SEC_HAS_CONTENTS flag
for each output section.

31 years agotoday's changes
Ken Raeburn [Mon, 28 Dec 1992 19:11:56 +0000 (19:11 +0000)]
today's changes

31 years agonote dependencies for coff-z8k.o and -we32k.o
Ken Raeburn [Mon, 28 Dec 1992 19:04:43 +0000 (19:04 +0000)]
note dependencies for coff-z8k.o and -we32k.o

31 years agoexpr.c (0$), obj-coff.h (#elif), ho-sunos.h (sys/stdtypes) changes
Ken Raeburn [Mon, 28 Dec 1992 18:40:10 +0000 (18:40 +0000)]
expr.c (0$), obj-coff.h (#elif), ho-sunos.h (sys/stdtypes) changes

31 years agoavoid #elif
Ken Raeburn [Mon, 28 Dec 1992 18:38:32 +0000 (18:38 +0000)]
avoid #elif

31 years agoSunOS 4.0.3 has no sys/stdtypes.h
Ken Raeburn [Mon, 28 Dec 1992 18:38:10 +0000 (18:38 +0000)]
SunOS 4.0.3 has no sys/stdtypes.h

31 years agohandle local label number zero -- 0f, 0b, 0$ -- correctly
Ken Raeburn [Mon, 28 Dec 1992 18:37:21 +0000 (18:37 +0000)]
handle local label number zero -- 0f, 0b, 0$ -- correctly

31 years agoMon Dec 28 08:32:06 1992 Minh Tran-Le (mtranle@paris.intellicorp.com)
Ian Lance Taylor [Mon, 28 Dec 1992 16:34:12 +0000 (16:34 +0000)]
Mon Dec 28 08:32:06 1992  Minh Tran-Le  (mtranle@paris.intellicorp.com)

* configure.in (i[34]86-*-isc*): added; uses mh-sysv.

31 years ago * bfd.h: Add declaration for bfd_get_size().
Fred Fish [Mon, 28 Dec 1992 01:54:41 +0000 (01:54 +0000)]
* bfd.h:  Add declaration for bfd_get_size().

31 years ago * bfd.c (bfd_get_size): New function that gets an upper bound
Fred Fish [Mon, 28 Dec 1992 01:51:57 +0000 (01:51 +0000)]
* bfd.c (bfd_get_size):  New function that gets an upper bound
on the possible size of any object in a bfd.
* elf.c (bfd_elf_find_section, elf_get_str_section,
elf_get_symtab_upper_bound):  Rewrite to avoid NULL pointer
dereferences.
* elf.c (elf_big_vec, elf_little_vec):  Document last three
members initialized to NULL.

31 years ago * dbxread.c (dbx_symfile_init, elfstab_build_psymtabs):
Fred Fish [Mon, 28 Dec 1992 01:44:21 +0000 (01:44 +0000)]
* dbxread.c (dbx_symfile_init, elfstab_build_psymtabs):
Call new bfd_get_size() and verify that string table is no larger
than the file that is supposed to contain it.
* symfile.c (syms_from_objfile):  Only complain about configured
NAMES_HAVE_UNDERSCORE differences between gdb and bfd if the
current target is the default BFD target.

31 years ago * solib.c (BKPT_AT_MAIN): Change to BKPT_AT_SYMBOL.
Fred Fish [Sun, 27 Dec 1992 04:59:09 +0000 (04:59 +0000)]
* solib.c (BKPT_AT_MAIN):  Change to BKPT_AT_SYMBOL.
* solib.c (bkpt_names):  New array of symbol names to try to
use for the "mapping complete" breakpoint.  Configurable
define SOLIB_BKPT_NAME is first one to try.
* solib.c (find_solib):  Test debug_base for nonzero rather
than just greater than zero.
* solib.c (enable_break):  Use bkpt_names to look up address
at which to set "mapping complete" breakpoint.

31 years ago * hppa.c: change a 'const' to 'CONST', or else HP C compiler dies
David D. Zuhn [Fri, 25 Dec 1992 01:50:27 +0000 (01:50 +0000)]
* hppa.c: change a 'const' to 'CONST', or else HP C compiler dies

31 years agobetter clean handling
David D. Zuhn [Fri, 25 Dec 1992 01:31:54 +0000 (01:31 +0000)]
better clean handling

31 years agodon't remove binutils from Solaris builds
David D. Zuhn [Fri, 25 Dec 1992 01:27:18 +0000 (01:27 +0000)]
don't remove binutils from Solaris builds

31 years agoupdated dates
David D. Zuhn [Fri, 25 Dec 1992 01:26:01 +0000 (01:26 +0000)]
updated dates

31 years agoadded dvi target
David D. Zuhn [Thu, 24 Dec 1992 22:44:50 +0000 (22:44 +0000)]
added dvi target

31 years agoclean up mostlyclean changes
David D. Zuhn [Thu, 24 Dec 1992 22:10:05 +0000 (22:10 +0000)]
clean up mostlyclean changes

31 years ago * Makefile.in (mostlyclean, distclean, realclean): Fix to
Per Bothner [Thu, 24 Dec 1992 20:42:13 +0000 (20:42 +0000)]
* Makefile.in (mostlyclean, distclean, realclean):  Fix to
do more-or-less the right thing.

31 years ago * demangle.h: Protect file from multiple inclusions with
Fred Fish [Wed, 23 Dec 1992 06:44:25 +0000 (06:44 +0000)]
* demangle.h:  Protect file from multiple inclusions with
#if !defined(DEMANGLE_H)...#define DEMANGLE_H...#endif.

31 years ago * defs.h (STRCMP, STREQ, STREQN): New macros.
Fred Fish [Wed, 23 Dec 1992 06:34:57 +0000 (06:34 +0000)]
* defs.h (STRCMP, STREQ, STREQN):  New macros.
* defs.h (demangle_and_match):  Remove prototype.
* dwarfread.c (STREQ, STREQN):  Remove macros, replaced with STREQ
  and STREQN defined in defs.h.
* dwarfread.c (set_cu_language):  For completely unknown languages,
  try to deduce the language from the filename.  Retain behavior
  that for known languages we don't know how to handle, we use
  language_unknown.
* dwarfread.c (enum_type, symthesize_typedef):  Initialize language
  and demangled name fields in symbol.
* dwarfread.c, mipsread.c, partial-stab.h:  For all usages of
  ADD_PSYMBOL_TO_LIST, add language and objfile parameters.
* dwarfread.c (new_symbol):  Attempt to demangle C++ symbol names
  and cache the results in SYMBOL_DEMANGLED_NAME for the symbol.
* elfread.c (STREQ):  Remove macro, use STREQ defined in defs.h.
  Replace usages throughout.
* elfread.c (demangle.h):  Include.
* elfread.c (record_minimal_symbol):  Remove prototype and function.
* gdbtypes.h, symtab.h (B_SET, B_CLR, B_TST, B_TYPE, B_BYTES,
  B_CLRALL):  Moved from symtab.h to gdbtypes.h.
* infcmd.c (jump_command):  Remove code to demangle name and add
  it to a cleanup list.  Now just use SYMBOL_DEMANGLED_NAME.
* minsyms.c (demangle.h):  Include.
* minsyms.c (lookup_minimal_symbol):  Indent comment to match code.
* minsyms.c (install_minimal_symbols):  Attempt to demangle symbol
  names as C++ names, and cache them in SYMBOL_DEMANGLED_NAME.
* mipsread.c (psymtab_language):  Add static variable.
* stabsread.c (demangle.h):  Include.
* stabsread.c (define_symbol):  Attempt to demangle C++ symbol
  names and cache them in the SYMBOL_DEMANGLED_NAME field.
* stack.c (return_command):  Remove explicit demangling of name
  and use of cleanups.  Just use SYMBOL_DEMANGLED_NAME.
* symfile.c (demangle.h):  Include.
* symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):  Fix
  to match macros in symfile.h and allow them to be compiled
  if INLINE_ADD_PSYMBOL is not true.
* symfile.h (INLINE_ADD_PSYMBOL):  Default to true if not set.
* symfile.h (ADD_PSYMBOL_*):  Add language and objfile parameters.
  Add code to demangle and cache C++ symbol names.  Use macro form
  if INLINE_ADD_PSYMBOL is true, otherwise use C function form.
* symmisc.c (add_psymbol_to_list, add_psymbol_addr_to_list):
  Remove, also defined in symfile.c, which we already fixed.
* symtab.c (expensive_mangler):  Remove prototype and function.
* symtab.c (find_methods):  Remove physnames parameter and fix
  prototype to match.
* symtab.c (completion_list_add_symbol):  Name changed to
  completion_list_add_name.
* symtab.c (COMPLETION_LIST_ADD_SYMBOL):  New macro, adds both
  the normal symbol name and the cached C++ demangled name.
* symtab.c (lookup_demangled_partial_symbol,
  lookup_demangled_block_symbol):  Remove prototypes and functions.
* symtab.c (lookup_symbol):  Remove use of expensive_mangler,
  use lookup_block_symbol instead of lookup_demangled_block_symbol.
  Remove code to try demangling names and matching them.
* symtab.c (lookup_partial_symbol, lookup_block_symbol):
  Fix to try matching the cached demangled name if no match is
  found using the regular symbol name.
* symtab.c (find_methods):  Remove unused physnames array.
* symtab.c (name_match, NAME_MATCH):  Remove function and macro,
  replaced with SYMBOL_MATCHES_REGEXP from symtab.h.
* symtab.c (completion_list_add_symbol):  Rewrite to use cached
  C++ demangled symbol names.
* symtab.h:  Much reformatting of structures and such to add
  whitespace to make them more readable, and make them more
  consistent with other gdb structure definitions.
* symtab.h (general_symbol_info): New struct containing fields
  common to all symbols.
* symtab.h (SYMBOL_LANGUAGE, SYMBOL_DEMANGLED_NAME,
  SYMBOL_SOURCE_NAME, SYMBOL_LINKAGE_NAME, SYMBOL_MATCHES_NAME,
  SYMBOL_MATCHES_REGEXP, MSYMBOL_INFO, MSYMBOL_TYPE):  New macros.
* symtab. (struct minimal_symbol, struct partial_symbol, struct
  symbol): Use general_symbol_info struct.
* utils.c (demangle_and_match):  Remove, no longer used.
* valops.c (demangle.h):  Include.
* xcoffexec.c (eq):  Remove macro, replace usages with STREQ.
* blockframe.c, breakpoint.c, c-exp.y, c-valprint.c, dbxread.c,
  infcmd.c, m2-exp.y, minsyms.c, objfiles.h, solib.c, stack.c,
  symmisc.c, symtab.c, valops.c:  Replace references to minimal
  symbol fields with appropriate macros.
* breakpoint.c, buildsym.c, c-exp.y, c-typeprint.c, c-valprint.c,
  coffread.c, command.c, convex-tdep.c, cp-valprint.c, dbxread.c,
  demangle.c, elfread.c, energize.c, environ.c, exec.c,
  gdbtypes.c, i960-tdep.c, infrun.c, infrun-hacked.c, language.c,
  main.c, minsyms.c, mipsread.c, partial-stab.h, remote-es1800.c,
  remote-nindy.c, remote-udi.c, rs6000-tdep.c, solib.c, source.c,
  sparc-pinsn.c, stabsread.c, standalone.c, state.c, stuff.c,
  symfile.c, symmisc.c, symtab.c, symtab.h, tm-sysv4.h,
  tm-ultra3.h, values.c, xcoffexec.c, xcoffread.c:  Replace strcmp
  and strncmp usages with STREQ, STREQN, or STRCMP as appropriate.
* breakpoint.c, buildsym.c, c-typeprint.c, expprint.c, findvar.c,
  mipsread.c, printcmd.c, source.c, stabsread.c, stack.c,
  symmisc.c, tm-29k.h, valops.c, values.c:  Replace SYMBOL_NAME
  references with SYMBOL_SOURCE_NAME or SYMBOL_LINKAGE_NAME as
  appropriate.
* buildsym.c (start_subfile, patch_subfile_names):  Default the
  source language to what can be deduced from the filename.
* buildsym.c (end_symtab):  Update the source language in the
  allocated symtab to match what we have been using.
* buildsym.h (struct subfile):  Add a language field.
* c-typeprint.c (c_print_type):  Remove code to do explicit
  demangling.
* dbxread.c (psymtab_language):  Add static variable.
* dbxread.c (start_psymtab):  Initialize psymtab_language using
  deduce_language_from_filename.

31 years ago * Makefile.in: Make check depend on all.
Per Bothner [Tue, 22 Dec 1992 23:52:26 +0000 (23:52 +0000)]
* Makefile.in:  Make check depend on all.
* Makefile.in (distclean): Remove sysdep.h.
* size.c:  Use %u format where appropriate.
* objdump.c:  Standardize:  L_SET -> SEEK_SET.
* objdump.c:  Use new macro bfd_asymbol_bfd.
* configure.in:  Allow std-host as the default ${mys_host}.

31 years ago * ldexp.c, ldlang.c, ldmain.c, ldsym.c, ldwarn.c: Use new
Per Bothner [Tue, 22 Dec 1992 23:46:19 +0000 (23:46 +0000)]
* ldexp.c, ldlang.c, ldmain.c, ldsym.c, ldwarn.c:  Use new
macro bfd_asymbol_bfd as appropriate.
* Makefile.in:  Un-duplicate ldlex.c dependency.
* condigure.in:  Replace my_host case table by sourcing
../bfd/configure.host.  Allow std-host as the default.
* ldmisc.c:  Change logic for C++ name demangling:  There is
no initial '_' to remove from stab-derived function names.

31 years agoNew version, generated automatically.
Per Bothner [Tue, 22 Dec 1992 23:41:30 +0000 (23:41 +0000)]
New version, generated automatically.

31 years ago * bfd-in.h: New macros bfd_asymbol_bfd and bfd_asymbol_flavour;
Per Bothner [Tue, 22 Dec 1992 23:40:27 +0000 (23:40 +0000)]
* bfd-in.h:  New macros bfd_asymbol_bfd and bfd_asymbol_flavour;
perhaps we can later remove the the_bfd field from each symbol.
* syms.c (struct symbol_cache_entry):  Remove unused field
app_data.  Add comment noting that the_bfd is almost redundant,
but not quite.
* aoutx.h, coff-a29k.c, coff-i386.c, coff-i960.c, coffcode.h:
Use new macros bfd_asymbol_bfd and bfd_asymbol_flavour.
* hppa.c (fill_spaces):  Make slightly more rebust.
* configure.in:  Allow std-host as the "default" host.

31 years ago * hosts/std-host.h: New file. Attempt at a generic/default
Per Bothner [Tue, 22 Dec 1992 23:37:36 +0000 (23:37 +0000)]
* hosts/std-host.h:  New file.  Attempt at a generic/default
set of definitions, to discourage porting to new hosts by copying.
* hosts/news.h:  Removed.
* hosts/sparc.h:  Use std-host.h.

31 years agoupdated dates, added -g to hppa native CFLAGS
David D. Zuhn [Tue, 22 Dec 1992 23:28:53 +0000 (23:28 +0000)]
updated dates, added -g to hppa native CFLAGS

31 years agoadd dvi target
David D. Zuhn [Tue, 22 Dec 1992 23:27:58 +0000 (23:27 +0000)]
add dvi target

31 years agodon't build sed -- it's broken
David D. Zuhn [Tue, 22 Dec 1992 23:26:39 +0000 (23:26 +0000)]
don't build sed -- it's broken

31 years agoupdate date, remove stage1 make if on rs6000
David D. Zuhn [Tue, 22 Dec 1992 23:08:06 +0000 (23:08 +0000)]
update date, remove stage1 make if on rs6000

31 years agoH8/300 simulator
Steve Chamberlain [Tue, 22 Dec 1992 21:59:06 +0000 (21:59 +0000)]
H8/300 simulator

31 years ago * valprint.c (val_print): Reorganize comment and add note
Fred Fish [Tue, 22 Dec 1992 06:32:19 +0000 (06:32 +0000)]
* valprint.c (val_print):  Reorganize comment and add note
about dependency on target byte ordering.
**** start-sanitize-chill ****
* ch-exp.y (value_array_slice):  Fix typo.
* ch-valprint.c (chill_val_print): Remove C'ism that arrays of
byte sized ints are assumed to be char strings and printed with
string syntax.  In chill, arrays of chars and arrays of
bytes/ubytes are distinquishable, and printed appropriately.
**** end-sanitize-chill ****

31 years ago * hppa.h: Move handy aliases to the front. Fix masks for extract
Stu Grossman [Tue, 22 Dec 1992 05:31:22 +0000 (05:31 +0000)]
* hppa.h:  Move handy aliases to the front.  Fix masks for extract
and deposit instructions.

31 years ago* bfd.c: Add struct hppa_core_data to tdata union.
Stu Grossman [Tue, 22 Dec 1992 05:28:27 +0000 (05:28 +0000)]
* bfd.c:  Add struct hppa_core_data to tdata union.

31 years ago * bfd.h: Update to get hppa_core_struct from bfd.c.
Stu Grossman [Tue, 22 Dec 1992 05:27:05 +0000 (05:27 +0000)]
* bfd.h:  Update to get hppa_core_struct from bfd.c.

31 years ago * tm-hppah.h: #define NEED_TEXT_START_END for target memory
Stu Grossman [Tue, 22 Dec 1992 03:21:54 +0000 (03:21 +0000)]
* tm-hppah.h:  #define NEED_TEXT_START_END for target memory
read/write routines for HPUX.

31 years ago * hppa-pinsn.c (print_insn): Improve handling of be and ble
Stu Grossman [Tue, 22 Dec 1992 03:18:46 +0000 (03:18 +0000)]
* hppa-pinsn.c (print_insn):  Improve handling of be and ble
branch targets to compute target address using const from previous
instruction if necessary.
* Add `Q' operator to print out bit position field various
instructions.
* hppah-nat.c:  #include sys/param.h, and sys/user.h.  General
cleanups, use new code from Utah.
* (store_inferior_registers):  Update to new code from Utah.
* (initialize_kernel_u_addr):  Re-enable decl of struct user u.
* (fetch_register):  Clear out priv level when reading PCs.
* hppah-tdep.c:  Get rid of gobs of KERNELDEBUG stuff.
* Remove decl of errno, #include wait.h and target.h.
* (frame_saved_pc):  Check `flags' pseudo-register to see if we
were inside of a kernel call.  If so, then PC is in a different
register.  Also, mask out bottom two bits of all PCs so as not to
confuse higher level code.
* (push_dummy_frame):  Create from #define in tm-hppa.h.
* (find_dummy_frame_regs):  Update from Utah.
* (hp_pop_frame):  Create from #define in tm-hppa.h.
* (hp_restore_pc_queue):  New, from Utah.
* (hp_push_arguments):  Big fixes from Utah.
* (pa_do_registers_info, pa_print_registers):  Only print out fp
regs upon request.
* (skip_trampoline_code):  New routine to deal with stubs that
live in nowhereland between callers and callees.
* i860-tdep.c:  Remove decl of attach_flag.
* infrun.c (wait_for_inferior):  Add new macro
INSTRUCTION_NULLIFIED, which can tell if the instruction pointed
at by PC will be nullified.  If so, then step the target once more
so as to avoid confusing the user.
* (just before step_over_function:):  Use stop_func_start, not
stop_pc when checking for the existance of line number info.
stop_func_start will reflect the proper address of the target
routine, not of the stub that we may be traversing to get there.
* tm-hppa.h:  define SKIP_TRAMPOLINE_CODE and IN_SOLIB_TRAMPOLINE
to deal with the stubs that PA compilers sometimes stick between
callers and callees.  Also, define FLAGS_REGNUM for access to the
`flags' pseudo-reg.
* (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW):  Use
memcpy, not bcopy.
* (CANNOT_STORE_REGISTER):  New from Utah.  Says that we can't
write gr0, PC regs, and PSW!
* (FRAME_FIND_SAVED_REGS):  Bug fixes from Utah.
* (PUSH_DUMMY_FRAME, POP_FRAME):  Make into real routines in
hppah-nat.c.
* (CALL_DUMMY, FIX_CALL_DUMMY):  Fixes from Utah.
* Define struct unwind_table_entry.
* valops.c (call_function_by_hand):  Add another arg to
FIX_CALL_DUMMY (under #ifdef GDB_TARGET_IS_HPPA).  Why is this
necessary?

31 years ago * hppa.c: Conditionalize on HOST_HPPAHPUX instead of hp9000s800.
Stu Grossman [Tue, 22 Dec 1992 01:53:33 +0000 (01:53 +0000)]
* hppa.c:  Conditionalize on HOST_HPPAHPUX instead of hp9000s800.
Get rid of HPPA/BSD specific code.  That will go somewhere else
someday.
* (fill_spaces):  Don't spin forever and die if you don't find
$MILLICODE$ subspace.
* (hppa_object_p):  Make sure that we have a real honest-to-cthulu
exec file!
* (hppa_core_file_failing_signal, hppa_core_file_failing_command):
Make these work for HPUX.
* (make_bfd_asection):  New routine to make section creation a
little easier.
* (hppa_core_file_p):  Completely rewrite, leave out bugs.
* libhppa.h:  #include the right system files.  Redefine all of
the structs/macros for hacking core files to use more sensible
HPUX core file structures.
* targets.c (target_vector):  Conditionalize hppa_vec on
HOST_HPPAHPUX, not hp9000s800.
* hosts/hppahpux.h:  #include stdlib.h to get correct decls for
malloc and realloc.  #define HOST_HPPAHPUX.

31 years ago* hppa.c: Conditionalize on HOST_HPPAHPUX instead of hp9000s800.
Stu Grossman [Tue, 22 Dec 1992 01:53:06 +0000 (01:53 +0000)]
* hppa.c:  Conditionalize on HOST_HPPAHPUX instead of hp9000s800.
Get rid of HPPA/BSD specific code.  That will go somewhere else
someday.
* (fill_spaces):  Don't spin forever and die if you don't find
$MILLICODE$ subspace.
* (hppa_object_p):  Make sure that we have a real honest-to-cthulu
exec file!
* (hppa_core_file_failing_signal, hppa_core_file_failing_command):
Make these work for HPUX.
* (make_bfd_asection):  New routine to make section creation a
little easier.
* (hppa_core_file_p):  Completely rewrite, leave out bugs.
* libhppa.h:  #include the right system files.  Redefine all of
the structs/macros for hacking core files to use more sensible
HPUX core file structures.
* targets.c (target_vector):  Conditionalize hppa_vec on
HOST_HPPAHPUX, not hp9000s800.
* hosts/hppahpux.h:  #include stdlib.h to get correct decls for
malloc and realloc.  #define HOST_HPPAHPUX.

31 years agoMon Dec 21 12:40:10 1992 Ian Lance Taylor (ian@cygnus.com)
Ian Lance Taylor [Mon, 21 Dec 1992 21:17:54 +0000 (21:17 +0000)]
Mon Dec 21 12:40:10 1992  Ian Lance Taylor  (ian@cygnus.com)

* Patches from Minh Tran-le <mtranle@paris.intellicorp.com>.
* configure.in (i386-*-isc*, i386-*-aix*): New targets.
* configure.host (i386-*-isc*, i386-*-aix*): New hosts.
* hosts/i386isc.h, config/i386isc.mh: New files for Interactive
Unix.
* hosts/i386aix.h, config/i386aix.mh: New files for AIX on PS/2.
* aix386-core.c: New file for handling core files on AIX on PS/2.
* targets.c: if AIX386_CORE, use aix386_core_vec.
* coffcode.h (coff_real_object_p): check for I386SVMAGIC as well
as I386MAGIC.

31 years agoadd include of "complaints.h"
David D. Zuhn [Mon, 21 Dec 1992 10:22:03 +0000 (10:22 +0000)]
add include of "complaints.h"

31 years ago * Makefile.in (VERSION): Bump to 4.7.4.
Fred Fish [Fri, 18 Dec 1992 20:21:32 +0000 (20:21 +0000)]
* Makefile.in (VERSION):  Bump to 4.7.4.
* Makefile.in (SFILES_MAINDIR):  Add typeprint.c, c-typeprint.c,
  m2-typeprint.c, c-valprint.c cp-valprint.c m2-valprint.c.
* Makefile.in (HFILES):  Add valprint.h.
* Makefile.in (OBS):  Add typeprint.o, c-typeprint.o,
  m2-typeprint.o, c-valprint.o, cp-valprint.o m2-valprint.o.
* typeprint.c, typeprint.h:  New files for language independent
  type printing functions.
* c-typeprint.c, m2-typeprint.c:  New files for language dependent
  type printing functions and definitions.
* valprint.h:  New include file for language independent value
  printing definitions.
* c-valprint.c, cp-valprint.c, m2-valprint.c:  New files for language
  dependent value printing functions.
* c-exp.y (production ptype):  Add range_type variable and use new
  create_range_type function.
* c-exp.y (tokentab2, tokentab3), c-lang.c (c_op_print_tab),
  infcmd.c (path_var_name), language.c (unk_op_print_tab),
  m2-lang.c (m2_op_print_tab):  Change from ANSI-obsolescent
  "const static" to ANSI-conformant "static const".
* c-exp.y (c_create_fundamental_type):  Remove unused nbytes.
* c-exp.y (c_language_defn, cplus_language_defn):  Add c_print_type,
  and c_val_print.
* c-lang.h (c_print_type, c_val_print):  Add prototypes.
* coffread.c (decode_type):  Add range_type variable and call to
  new create_range_type function.
* complaints.c (complain):  Remove unused val variable.
* complaints.c (_initialize_complaints):  Make it void.
* convex-tdep.c (value_of_trapped_internalvar):  Add range_type
  variable and call new create_range_type function.
* defs.h (enum val_prettyprint):  Move enum from value.h to here
  so we can avoid having to include value.h just for prototypes that
  need the enum (thanks ANSI).
* dwarfread.c (struct_type):  Local anonymous_size variable is
  only used if !BITS_BIG_ENDIAN.
* dwarfread.c (decode_subscript_data_item):  Add rangetype
  variable and call new create_range_type function.
* elfread.c (elf_symfile_read):  Remove unused dbx and text_sect
  variables.
* eval.c (evaluate_subexp):  Remove unused local variable name
  and the statement with no side effects that initializes it.
* expprint.c (print_subexp):  Change local_printstr to
  LA_PRINT_STRING.
* gdbtypes.c (create_range_type):  New function that creates
  a range type using code fragments from object file readers as
  an example of what has to be initialized.
* gdbtypes.c (create_array_type):  Removed index_type, low_bound,
  and high_bound parameters, replaced with a single range_type
  parameter.  Change function body to use passed in range_type
  rather than handcrafting one.
* gdbtypes.h (create_range_type):  Add prototype.
* gdbtypes.h (create_array_type):  Change prototype parameters.
* infrun.c (normal_stop):  Remove unused local variables tem and c.
* infrun.c (hook_stop_stub):  Return 0 rather than random value.
* language.c (unk_lang_print_type, unk_lang_val_print):  Add
  stub functions that call error if called.
* language.c (unknown_language_defn, auto_language_defn,
  local_language_defn):  Add initializers unk_lang_print_type and
  unk_lang_val_print.
* language.h (struct language_defn):  Reformat for larger
  comments, add la_print_type and la_val_print members.  Add
  LA_PRINT_TYPE and LA_VAL_PRINT macros.  Change local_printchar
  to LA_PRINT_CHAR and local_printstr to LA_PRINT_STRING.
* m2-lang.c (m2_create_fundamental_type):  Remove unused local
  variable nbytes.
* m2-lang.c (m2_language_defn):  Add initializers m2_print_type
  and m2_val_print.
* m2-lang.h (m2_print_type, m2_val_print):  Add prototypes.
* main.c (execute_command): Remove unused local variable cmdlines.
* main.c (echo_command), stabsread.c (read_type), printcmd.c
  (clear_displays), symmisc.c (block_depth), values.c
  (clear_value_history):
  Make testing of truth value of assignment result explicit.
* mipsread.c (upgrade_type):  Update FIXME to include future use
  of create_range_type.
* printcmd.c (ptype_command, ptype_eval, whatis_command,
  whatis_exp, maintenance_print_type):  Move prototypes and functions
  to new typeprint.c.
* printcmd.c (_initialize_printcmd):  Move add_com calls for
  ptype_command and whatis_command to new typeprint.c.
* ser-bsd.c (serial_open):  Remove unused variable sgttyb.
* source.c (find_source_lines):  Local variable c only used
  when LSEEK_NOT_LINEAR is defined.
* stabsread.c (read_array_type):  Use new create_range_type
  function.
* stabsread.c (read_range_type):  Add new index_type variable and
  call new create_range_type function rather than handcrafting
  range types.
* symmisc.c (type_print_1):  Change usages to LA_PRINT_TYPE.
* symtab.c (typedef_print usages):  Use c_typedef_print, renamed.
* symtab.c (type_print_base usages):  Use c_type_print_base.
* symtab.c (type_print_varspec_prefix usages):  Use
  c_type_print_varspec_prefix.
* symtab.c (type_print_method_args usages):  Use
  cp_type_print_method_args.
* valprint.c:  Completely ripped apart and the fragments used
  to create c-valprint.c, cp-valprint.c, m2-valprint.c, and
  valprint.h.  Remaining stuff is language independent.
* value.h (struct fn_field):  Forward declare for prototypes.
* value.h (type_print_1):  Remove prototype.
* value.h (enum val_prettyprint):  Moved to defs.h.
* value.h (typedef_print):  Prototype renamed to c_typedef_print.
* value.h (baseclass_offset):  Add prototype.
**** start-sanitize-chill ****
* Makefile.in (SFILES_MAINDIR):  Add ch-typeprint.c, ch-valprint.c.
* Makefile.in (OBS):  Add ch-typeprint.o, ch-valprint.o.
* ch-typeprint.c:  New file for language dependent type printing.
* ch-valprint.c:  New file for language dependent value printing.
* ch-exp.y (parse_number):  Remove prototype and stub function.
* ch-exp.y (decode_integer_literal):  Removed unused digits and
  temp variables.
* ch-exp.y (convert_float):  Completely ifdef out for now.
* ch-exp.y (tokentab2, tokentab3, tokentab4, tokentab5),
  ch-lang.c (chill_op_print_tab):
  Change from ANSI-obsolescent "const static" to ANSI-conformant
  "static const".
* ch-exp.y (yylex):  Add unhandled storage class enumeration
  literals to switch statement for completeness.
* ch-lang.c (chill_create_fundamental_types):  Remove unused
  nbytes variable.  Change dummy type to 2 bytes to match int.
  Handle FT_VOID types gratuituously added to chill DWARF by
  compiler.  Change FT_CHAR case to generate an TYPE_CODE_CHAR
  type rather than a one byte TYPE_CODE_INT type.
* ch-lang.c (chill_language_defn):  Add chill_print_type and
  chill_val_print.
* ch-lang.h (chill_print_type, chill_val_print):  Add prototypes.
**** end-sanitize-chill ****

31 years ago * aoutf1.h (sunos4_write_object_contents): set flags to 0, fixing
Steve Chamberlain [Fri, 18 Dec 1992 18:38:04 +0000 (18:38 +0000)]
* aoutf1.h (sunos4_write_object_contents): set flags to 0, fixing
1927.

31 years agoEliminate uses of NAMES_HAVE_UNDERSCORE, using
John Gilmore [Thu, 17 Dec 1992 09:15:10 +0000 (09:15 +0000)]
Eliminate uses of NAMES_HAVE_UNDERSCORE, using
bfd_get_symbol_leading_char instead.

* coffread.c (EXTERNAL_NAME):  New macro for removing possible
leading character from names.
(read_coff_symtab):  Use BFD's FILE *, don't open a second one.
(read_coff_symtab):  Complain() about .bb/.eb mismatch, don't error().
(process_coff_symbol, coff_read_struct_type, coff_read_enum_type):
Replace NAMES_HAVE_UNDERSCORE with EXTERNAL_NAME.

* kdb-start.c (main):  Remove NAMES_HAVE_UNDERSCORE.
* minsyms.c (install_minimal_symbols):  Replace NAMES_HAVE_UNDERSCORE.
Remove SOME_NAMES_HAVE_DOT support (apparently unused).
* partial-stab.h:  Replace NAMES_HAVE_UNDERSCORE.
* solib.c:  Replace NAMES_HAVE_UNDERSCORE.
* stabsread.h:  Remove NAMES_HAVE_UNDERSCORE and HASH_OFFSET.
* symfile.c (syms_from_objfile):  Insert debugging check to test
NAMES_HAVE_UNDERSCORE setting against the BFD support.  FIXME,
remove this (and all tm-*.h NAMES_HAVE_UNDERSCORE) soon.

* doc/gdbint.texinfo (Host Conditionals):  Remove
NAMES_HAVE_UNDERSCORE, SOME_NAMES_HAVE_DOT, document
MEM_FNS_DECLARED.
(Target Conditionals):  Remove all of the above.

31 years agoUpdate to get tekhex tdata name change from bfd.
John Gilmore [Thu, 17 Dec 1992 08:43:27 +0000 (08:43 +0000)]
Update to get tekhex tdata name change from bfd.

31 years ago* bfd.c: Use right name for tekhex tdata struct.
John Gilmore [Thu, 17 Dec 1992 08:42:31 +0000 (08:42 +0000)]
* bfd.c:  Use right name for tekhex tdata struct.
* tekhex.c:  Insert leading_char (0) into bfd_target struct.  Style.
* libcoff.h:  Updated to get spacing change from coffcode.h.
* trad-core.c:  leading_char is 0 (no symbols!), not '_'.

31 years agoUpdate to FSF ss-921211.
Jim Wilson [Thu, 17 Dec 1992 03:06:16 +0000 (03:06 +0000)]
Update to FSF ss-921211.

31 years agoremoved the files there were moved to etc, added the directories that are
David D. Zuhn [Wed, 16 Dec 1992 21:38:43 +0000 (21:38 +0000)]
removed the files there were moved to etc, added the directories that are
in unsupported/latest, since they appear in latest builds

31 years agoWed Dec 16 12:12:33 1992 Ian Lance Taylor (ian@cygnus.com)
Ian Lance Taylor [Wed, 16 Dec 1992 20:13:53 +0000 (20:13 +0000)]
Wed Dec 16 12:12:33 1992  Ian Lance Taylor  (ian@cygnus.com)

* write.c, obj-ieee.c: don't define SUB_SEGMENT_ALIGN if it is
already defined.

31 years agoWed Dec 16 10:25:31 1992 Ian Lance Taylor (ian@cygnus.com)
Ian Lance Taylor [Wed, 16 Dec 1992 18:27:07 +0000 (18:27 +0000)]
Wed Dec 16 10:25:31 1992  Ian Lance Taylor  (ian@cygnus.com)

* Makefile.in: Add lines defining CC and CXX, and use CXX rather
than gcc in definitions of CXX_FOR_BUILD and CXX_FOR_TARGET.

31 years agoChange default TEXIDIR to find FSF's texinfo.tex in new location.
Roland Pesch [Wed, 16 Dec 1992 02:40:29 +0000 (02:40 +0000)]
Change default TEXIDIR to find FSF's texinfo.tex in new location.

31 years agoChange default pointer to texinfo.tex to match new location.
Roland Pesch [Wed, 16 Dec 1992 02:39:50 +0000 (02:39 +0000)]
Change default pointer to texinfo.tex to match new location.

31 years agoRevert change making writing the archive map the standard. Instead, change
Per Bothner [Wed, 16 Dec 1992 02:17:49 +0000 (02:17 +0000)]
Revert change making writing the archive map the standard.  Instead, change
the ar program so that *its* default is to always request writing the map.

31 years ago * Makefile.in (dist): Fix permissions before release.
Per Bothner [Wed, 16 Dec 1992 02:13:17 +0000 (02:13 +0000)]
* Makefile.in (dist):  Fix permissions before release.
* size.c:  Use bfd_size_type (and long) where appropriate.
* ar.c:  Make writing a map the default, to be compatible
with SYSV and Posix.2.  Remove some bogus kludges that
handled __.SYMDEF directly.
* NEWS:  New file.

31 years ago Makefile.in: regularize use of $host_canonical and $target_canonical
David D. Zuhn [Wed, 16 Dec 1992 01:01:49 +0000 (01:01 +0000)]
 Makefile.in: regularize use of $host_canonical and $target_canonical
 configure.in: split apart configdirs, handle removal of directories
   for native or cross compilations more gracefully

31 years agoVarious changes to improve archive support. See ChangeLog.
Per Bothner [Wed, 16 Dec 1992 00:01:59 +0000 (00:01 +0000)]
Various changes to improve archive support.  See ChangeLog.

31 years agoChange AR_FLAGS from qc to rc - the 'q' option is not Posix.
Per Bothner [Tue, 15 Dec 1992 23:01:02 +0000 (23:01 +0000)]
Change AR_FLAGS from qc to rc - the 'q' option is not Posix.

31 years ago * app.c (do_scrub_begin): allow single quote strings if so
Steve Chamberlain [Tue, 15 Dec 1992 22:55:01 +0000 (22:55 +0000)]
* app.c (do_scrub_begin): allow single quote strings if so
configured.

31 years agolints
Steve Chamberlain [Tue, 15 Dec 1992 22:49:55 +0000 (22:49 +0000)]
lints

31 years agocheckpoint
Steve Chamberlain [Tue, 15 Dec 1992 20:41:16 +0000 (20:41 +0000)]
checkpoint

31 years agoTue Dec 15 12:38:16 1992 Ian Lance Taylor (ian@cygnus.com)
Ian Lance Taylor [Tue, 15 Dec 1992 20:40:05 +0000 (20:40 +0000)]
Tue Dec 15 12:38:16 1992  Ian Lance Taylor  (ian@cygnus.com)

* configure.in (i[34]86-*-sco3.2v4*): use mh-sco4.
* config/mh-sco4: New file, like mh-sco but without defining
_POSIX_SOURCE.