Ken Raeburn [Mon, 28 Dec 1992 19:11:56 +0000 (19:11 +0000)]
today's changes
Ken Raeburn [Mon, 28 Dec 1992 19:04:43 +0000 (19:04 +0000)]
note dependencies for coff-z8k.o and -we32k.o
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
Ken Raeburn [Mon, 28 Dec 1992 18:38:32 +0000 (18:38 +0000)]
avoid #elif
Ken Raeburn [Mon, 28 Dec 1992 18:38:10 +0000 (18:38 +0000)]
SunOS 4.0.3 has no sys/stdtypes.h
Ken Raeburn [Mon, 28 Dec 1992 18:37:21 +0000 (18:37 +0000)]
handle local label number zero -- 0f, 0b, 0$ -- correctly
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.
Fred Fish [Mon, 28 Dec 1992 01:54:41 +0000 (01:54 +0000)]
* bfd.h: Add declaration for bfd_get_size().
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.
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.
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.
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
David D. Zuhn [Fri, 25 Dec 1992 01:31:54 +0000 (01:31 +0000)]
better clean handling
David D. Zuhn [Fri, 25 Dec 1992 01:27:18 +0000 (01:27 +0000)]
don't remove binutils from Solaris builds
David D. Zuhn [Fri, 25 Dec 1992 01:26:01 +0000 (01:26 +0000)]
updated dates
David D. Zuhn [Thu, 24 Dec 1992 22:44:50 +0000 (22:44 +0000)]
added dvi target
David D. Zuhn [Thu, 24 Dec 1992 22:10:05 +0000 (22:10 +0000)]
clean up mostlyclean changes
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.
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.
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.
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}.
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.
Per Bothner [Tue, 22 Dec 1992 23:41:30 +0000 (23:41 +0000)]
New version, generated automatically.
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.
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.
David D. Zuhn [Tue, 22 Dec 1992 23:28:53 +0000 (23:28 +0000)]
updated dates, added -g to hppa native CFLAGS
David D. Zuhn [Tue, 22 Dec 1992 23:27:58 +0000 (23:27 +0000)]
add dvi target
David D. Zuhn [Tue, 22 Dec 1992 23:26:39 +0000 (23:26 +0000)]
don't build sed -- it's broken
David D. Zuhn [Tue, 22 Dec 1992 23:08:06 +0000 (23:08 +0000)]
update date, remove stage1 make if on rs6000
Steve Chamberlain [Tue, 22 Dec 1992 21:59:06 +0000 (21:59 +0000)]
H8/300 simulator
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 ****
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.
Stu Grossman [Tue, 22 Dec 1992 05:28:27 +0000 (05:28 +0000)]
* bfd.c: Add struct hppa_core_data to tdata union.
Stu Grossman [Tue, 22 Dec 1992 05:27:05 +0000 (05:27 +0000)]
* bfd.h: Update to get hppa_core_struct from bfd.c.
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.
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?
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.
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.
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.
David D. Zuhn [Mon, 21 Dec 1992 10:22:03 +0000 (10:22 +0000)]
add include of "complaints.h"
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 ****
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.
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.
John Gilmore [Thu, 17 Dec 1992 08:43:27 +0000 (08:43 +0000)]
Update to get tekhex tdata name change from bfd.
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 '_'.
Jim Wilson [Thu, 17 Dec 1992 03:06:16 +0000 (03:06 +0000)]
Update to FSF ss-921211.
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
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.
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.
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.
Roland Pesch [Wed, 16 Dec 1992 02:39:50 +0000 (02:39 +0000)]
Change default pointer to texinfo.tex to match new location.
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.
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.
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
Per Bothner [Wed, 16 Dec 1992 00:01:59 +0000 (00:01 +0000)]
Various changes to improve archive support. See ChangeLog.
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.
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.
Steve Chamberlain [Tue, 15 Dec 1992 22:49:55 +0000 (22:49 +0000)]
lints
Steve Chamberlain [Tue, 15 Dec 1992 20:41:16 +0000 (20:41 +0000)]
checkpoint
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.
Ian Lance Taylor [Tue, 15 Dec 1992 18:43:00 +0000 (18:43 +0000)]
Add i386sco4.mh (this time for sure).
Ian Lance Taylor [Tue, 15 Dec 1992 18:12:37 +0000 (18:12 +0000)]
Tue Dec 15 10:05:56 1992 Ian Lance Taylor (ian@cygnus.com)
* coffread.c (decode_type): catch negative tagndx fields generated
by SCO 3.2v4 cc.
* exec.c: comment out string following #endif.
* configure.in (i[34]86-*-sco3.2v4*): use host i386sco4.
* xm-i386sco.h: include <sys/types.h> and <sys/dir.h>, required by
<sys/user.h>.
* config/i386sco4.mh: new file; like i386sco.mh, but don't require
gcc, and define const to empty to avoid SCO 3.2v4 cc bug.
Fred Fish [Tue, 15 Dec 1992 12:18:53 +0000 (12:18 +0000)]
* complaints.c: New file, code moved from utils.c.
* complaints.c (complain): Made into a varargs function.
* complaints.h: New file, code moved from symfile.h.
* Makefile.in (SFILES_MAINDIR): Add complaints.c.
* Makefile.in (HFILES): Add complaints.h.
* Makefile.in (OBS): Add complaints.o.
* symfile.c (complaint_root, stop_whining, complaint_series,
complain, clear_complaints, add_show_from_set for stop_whining):
Moved to complaints.c.
* symfile.h (struct complaint, complaint_root decl, complain
prototype, clear_complaints prototype): Moved to complaints.h.
* buildsym.c, coffread.c, dbxread.c, dwarfread.c, elfread.c,
gdbtypes.c, mipsread.c, stbsread.c, symfile.c: Include
complaints.h. Remove casts from arguments to complain(),
which is now a varargs function, and remove unnecessary
placeholder zero args.
* defs.h (begin_line): Add prototype.
* defs.h (vprintf_filtered): Add prototype.
* dwarfread.c (varargs.h): Remove, no longer needed.
* dwarfread.c (dwarfwarn): Remove prototype and function.
* dwarfread.c (complaints): Define a bunch of complaints.
* dwarfread.c (SQUAWK): Remove macro defs, convert all
usages to standard complain() calls.
* utils.c (begin_line): New function that ensures that
whatever gets filter-printed next starts on its own line.
* utils.c (vprintf_filtered): New func, like vfprintf_filtered,
but to stdout (calls vfprintf_filtered internally).
John Gilmore [Tue, 15 Dec 1992 11:19:30 +0000 (11:19 +0000)]
Avoid printf_filtered limit.
John Gilmore [Tue, 15 Dec 1992 11:05:22 +0000 (11:05 +0000)]
i860-tdep.c: Lint.
* remote.c: Avoid printf_filtered line limit. Suggested by
Robert R. Henry, <rrh@tera.com>.
* main.c (main): Accept --silent as well as --quiet. Change +help
to --help. Suggested by Karl Berry, <karl@cs.umb.edu>.
John Gilmore [Tue, 15 Dec 1992 10:02:30 +0000 (10:02 +0000)]
Typo
David D. Zuhn [Tue, 15 Dec 1992 08:36:57 +0000 (08:36 +0000)]
update dates, HP700 target list
John Gilmore [Tue, 15 Dec 1992 07:29:28 +0000 (07:29 +0000)]
Lint
Jim Wilson [Tue, 15 Dec 1992 03:46:14 +0000 (03:46 +0000)]
For SPARC V9, for RELOC_WDISP2_14, upper 2 bits start at bit 20 now, instead
of bit 19.
Fred Fish [Tue, 15 Dec 1992 02:52:11 +0000 (02:52 +0000)]
* gdbtypes.c (create_array_type): Complete rewrite. Now requires
a optional type to decorate as an array type, the type of the
index, and the bounds of the array. Records this additional info
in the array type for use with languages with nonzero array
bounds.
* gdbtypes.h (enum type_code): Update comment for TYPE_CODE_ARRAY
to note that arrays may have bounds.
* gdbtypes.h (create_array_type): Update prototype.
* c-exp.y (ptype production): Adjust for new create_array_type
calling conventions.
* coffread.c (decode_type): Call create_array_type rather than
handcrafting array types.
* convex-tdep.c (value_type): Remove, now use create_array_type.
* convex-tdep.c (value_of_trapped_internalvar): Convert calls to
vector_type into calls to create_array_type.
* dwarfread.c (decode_subscr_data): Name changed to
decode_subscript_data_item throughout.
* dwarfread.c (decode_subscript_data_item): Rewrite to use
create_array_type. Now records index type and range as well.
* dwarfread.c (dwarf_read_array_type): Rewrite as part of
change to use create_array_type.
* dwarfread.c (read_subroutine_type): Test existing user defined
types before decorating them, to ensure they are blank, and
complain about it if they are not.
* dwarfread.c (decode_fund_type): For unrecognized types, always
return some valid type (type integer). If the unrecognized type
cannot be an implementation defined type, complain as well.
* m88k-tdep.c (pushed_size): Update comment for TYPE_CODE_ARRAY.
* m88k-tdep.c (store_param): Update comment for TYPE_CODE_ARRAY.
* mipsread.c (upgrade_type): Add FIXME comment that code to
handcraft arrays should be replaced with call to create_array_type.
* stabsread.c (read_array_type): Replace code to handcraft
array types with call to create_array_type.
* valprint.c (type_print_varspec_prefix): Minor formatting
change, join lines that don't need to be split.
Stu Grossman [Tue, 15 Dec 1992 02:02:21 +0000 (02:02 +0000)]
* gdbtypes.h: Remove const from decl for cplus_struct_default to
work around PA-GAS assembler bug. Also, add trailing */ to some
comments.
* gdbtypes.c: Remove const from decl for cplus_struct_default.
Same reason as above.
Stu Grossman [Tue, 15 Dec 1992 01:49:05 +0000 (01:49 +0000)]
* hppahpux.mt (TDEPFILES): Add exec.o.
* hppahpux.mh (NATDEPFILES): Remove exec.o, add inftarg.o, and fork-child.o.
Stu Grossman [Tue, 15 Dec 1992 01:45:15 +0000 (01:45 +0000)]
* convex-xdep.c, hppab-nat.c, i860-tdep.c, infptrace.c: Remove
decl for attach_flag, it now lives in inferior.h.
* hppa-pinsn.c: Reformat opcode tables. Add function prototypes.
Make most functions static.
* hppah-nat.c: General cleanups, remove BSD specific code (since
that all lives in hppab-nat.c).
* hppah-tdep.c (frame_chain_valid), tm-hppa.h (FRAME_CHAIN):
Change sense of test against inside_entry_file(). This fix is
from U. of Utah.
* tm-hppa.h (PUSH_DUMMY_FRAME, POP_FRAME): Use char * for 2nd arg
to read/write_register_bytes().
Stu Grossman [Tue, 15 Dec 1992 01:14:14 +0000 (01:14 +0000)]
* hppahpux.h: Add defs for malloc() & realloc().
Stu Grossman [Tue, 15 Dec 1992 01:12:34 +0000 (01:12 +0000)]
* hppa.c: #include "sysdep.h", not <sysdep.h>.
* libhppa.h: Make millicode_start and millicode_end be unsigned
int to be same type as CORE_ADDR in GDB. Why are these here?
Stu Grossman [Tue, 15 Dec 1992 01:07:07 +0000 (01:07 +0000)]
* configure.in (hppa*-*-*): Don't remove bfd and gdb from
configdirs anymore.
David D. Zuhn [Sun, 13 Dec 1992 09:08:29 +0000 (09:08 +0000)]
* Makefile.in: extensive cleanup:: removed all of the explicit
clean-* targets, collapsed many wrappers around subdir_do into
one, added additional targets to satisfy standards.texi, deleted
some old targets, some changes for consistency
Ian Lance Taylor [Sun, 13 Dec 1992 00:56:14 +0000 (00:56 +0000)]
Sat Dec 12 15:26:34 1992 Ian Lance Taylor (ian@cygnus.com)
* listing.c: Call xmalloc, not malloc; don't declare malloc.
* Changes to support SCO 3.2v4:
* read.c (s_align_bytes, s_align_ptwo): If not SEG_DATA or
SEG_BSS, fill with NOP_OPCODE.
* config/i386coff.mt: Add opcode/i386.h to TARG_CPU_DEPENDENTS.
* config/obj-coffbfd.c (do_relocs_for): Increment addr even if not
using ZERO_BASED_SEGMENTS.
(fill_section): If ZERO_BASED_SEGMENTS, set segment addresses, but
never set segment address for SEG_E2 (.bss) and don't write out
SEG_E2 contents. Set .init and .fini sections to STYP_TEXT.
(obj_coff_endef): Don't merge labels or symbols awaiting forward
definitions, and don't merge tags with non-tags. Check for .bf
rather than just checking whether the second character is b and
the third character is f.
(obj_coff_val): gcc can generate values which we don't handle
correctly; discard information for now, since it only affects the
debugging information.
(tag_find_or_name): Don't insert tags in the symbol table.
(yank_symbols): Don't merge labels.
(write_object_file): Don't define SUB_SEGMENT_ALIGN if it is
already defined. Fill subsegments with NOP_OPCODE, not 0. Don't
set segment address if ZERO_BASED_SEGMENTS.
(obj_coff_section): Accept and ignore a trailing quoted string, as
used in AT&T i386 syntax.
(fixup_segment): Take segment as argument. On the i386, adjust PC
relative addends by the segment vaddr.
* tc-i386.h: Define SUB_SEGMENT_ALIGN.
* tc-a29k.h: Define ZERO_BASED_SEGMENTS.
* tc-i386.c: (i386_operand): If I386COFF, accept any segment type.
Ian Lance Taylor [Sun, 13 Dec 1992 00:52:11 +0000 (00:52 +0000)]
Sat Dec 12 15:54:36 1992 Ian Lance Taylor (ian@cygnus.com)
* coff-i386.c (CALC_ADDEND): if reloc is PC relative, add the
vaddr of the section to the addend.
* targets.c: if MINIMIZE is 1, and SCO_CORE is defined, add
SCO_CORE to SELECT_VECS.
(target_vector): add sco_core_vec.
* sco-core.c (sco_core_vec): add leading underscore initializer.
* configure.in (i[34]86-*-sco*): use target i386-sco.
* config/i386-sco.mt: new file; define SCO_CORE.
David D. Zuhn [Sat, 12 Dec 1992 04:20:03 +0000 (04:20 +0000)]
* configure.in: handle some programs as cross-only, and others as
native only
* test-build.mk: handle partial holes in a more generic manner
* Makefile.in: m4 depends on libiberty
also updated dates in test-build.mk and build-all.mk
John Gilmore [Thu, 10 Dec 1992 09:56:01 +0000 (09:56 +0000)]
* config/{vxworks68,vxworks960}: Don't include xdr_regs.o.
John Gilmore [Thu, 10 Dec 1992 09:55:34 +0000 (09:55 +0000)]
* mipsread.c (parse_symbol): When checking whether a structured
type is an enum, check qualifiers of its first member, as well as
the base type of the member. Bug found and fixed by John M.
Farrell, <farrell@fjort.reo.dec.com>.
* config/{vxworks68,vxworks960}: Don't include xdr_regs.o.
John Gilmore [Thu, 10 Dec 1992 06:44:06 +0000 (06:44 +0000)]
Update dependencies after deleting files.
John Gilmore [Thu, 10 Dec 1992 03:56:36 +0000 (03:56 +0000)]
* vx-share/{reg.h,xdr_regs.h,xdr_regs.c}: Remove, unused.
* remote-vx.c: Don't include vx-share/reg.h.
* vx-share/ptrace.h: Reproduce from scratch.
Fred Fish [Wed, 9 Dec 1992 07:01:43 +0000 (07:01 +0000)]
* c-lang.c (_initialize_c_language): Name changed from
_initialize_c_exp.
* m2-lang.c (_initialize_m2_language): Name changed from
_initialize_m2_exp.
* m2-lang.c (_initialize_m2_language): Change malloc to xmalloc since
it is no longer inside m2-exp.y, where it was remapped by Makefile.
**** start-sanitize-chill ****
* ch-lang.c (_initialize_chill_language): Name changed from
_initialize_chill_exp.
**** end-sanitize-chill ****
Fred Fish [Wed, 9 Dec 1992 06:50:30 +0000 (06:50 +0000)]
* c-exp.y, m2-exp.y: Migrate code that has nothing to do with
expression parsing into c-lang.c and m2-lang.c respectively.
* c-lang.c, m2-lang.c: New files, code migrated from c-exp.y and
m2-exp.y respectively.
* c-lang.h, m2-lang.h: New files, internal interfaces between c-*
and m2-* files respectively.
* Makefile.in (SFILES_MAINDIR): Add c-lang.c, m2-lang.c.
* Makefile.in (HFILES): Add c-lang.h, m2-lang.h.
* Makefile.in (OBS): Add c-lang.o, m2-lang.o.
* expression.h (struct block): Forward declaration for prototypes.
* language.h (struct objfile): Forward declaration for prototypes.
**** start-sanitize-chill ****
* Makefile.in (SFILES_MAINDIR): Add ch-lang.c.
* Makefile.in (HFILES): Add ch-lang.h.
* Makefile.in (OBS): Add ch-lang.o.
* ch-exp.y: Migrate code that has nothing to do with expression
parsing into ch-lang.c.
* ch-lang.c: New file, code migrated from c-exp.y.
* ch-lang.h: New file, internal interface between ch-* files.
**** end-sanitize-chill ****
Fred Fish [Tue, 8 Dec 1992 21:47:49 +0000 (21:47 +0000)]
Changes for Amiga Unix from rhealey@ub.d.umn.edu.
* config/amix.mh (NAT_FILE): Add, set to nm-sysv4.h.
* config/amix.mh (NATDEPFILES): Add.
* config/amix.mh (XDEPFILES): Move procfs.o and fork-child.o
to NATDEPFILES.
* dwarfread.c (decode_subscr_data): Remove spurious test that
accepted only integer subscript types. We don't do anything
with the type at the moment anyway.
Jeffrey Osier [Tue, 8 Dec 1992 21:47:07 +0000 (21:47 +0000)]
Incredibly obsolete install dox for 88k...
Ken Raeburn [Tue, 8 Dec 1992 09:42:06 +0000 (09:42 +0000)]
missed tc-tahoe files
Ken Raeburn [Tue, 8 Dec 1992 09:39:03 +0000 (09:39 +0000)]
as-m680x0.texinfo does not exist
Ken Raeburn [Tue, 8 Dec 1992 09:37:22 +0000 (09:37 +0000)]
regenerated from as.texinfo &c
Ken Raeburn [Tue, 8 Dec 1992 09:31:57 +0000 (09:31 +0000)]
replaced with newer code
Ken Raeburn [Tue, 8 Dec 1992 09:30:28 +0000 (09:30 +0000)]
updated for current list of files
Ken Raeburn [Tue, 8 Dec 1992 09:25:47 +0000 (09:25 +0000)]
trad-core.h is gone
Ken Raeburn [Tue, 8 Dec 1992 08:48:16 +0000 (08:48 +0000)]
obj-coffbfd.c: include libcoff.h
Ken Raeburn [Tue, 8 Dec 1992 08:11:15 +0000 (08:11 +0000)]
tonight's changes
Ken Raeburn [Tue, 8 Dec 1992 08:07:52 +0000 (08:07 +0000)]
version 1.93 now
Ken Raeburn [Tue, 8 Dec 1992 08:05:48 +0000 (08:05 +0000)]
not needed
Ken Raeburn [Tue, 8 Dec 1992 08:05:32 +0000 (08:05 +0000)]
updated for added/deleted files
K. Richard Pixley [Tue, 8 Dec 1992 05:27:22 +0000 (05:27 +0000)]
recording file death