binutils-gdb.git
32 years agoIf at first the network screws you over, try, try again...
Ken Raeburn [Fri, 10 Jul 1992 00:07:40 +0000 (00:07 +0000)]
If at first the network screws you over, try, try again...

32 years agoFixed some bugs in handling vxworks960 -- not reading registers right,
Ken Raeburn [Thu, 9 Jul 1992 23:54:02 +0000 (23:54 +0000)]
Fixed some bugs in handling vxworks960 -- not reading registers right,
trying to use FP regs (not supported by target), botching IP.

32 years agoFixed some bugs in handling vxworks960 -- not reading registers right,
Ken Raeburn [Thu, 9 Jul 1992 23:48:29 +0000 (23:48 +0000)]
Fixed some bugs in handling vxworks960 -- not reading registers right,
trying to use FP regs (not supported by target), botching IP.

32 years agoFixed some bugs in handling vxworks960 -- not reading registers right,
Ken Raeburn [Thu, 9 Jul 1992 23:40:01 +0000 (23:40 +0000)]
Fixed some bugs in handling vxworks960 -- not reading registers right,
trying to use FP regs (not supported by target), botching IP.

32 years ago(Finally) doc that GDB sometimes inserts quotes for you, on overloaded
Roland Pesch [Thu, 9 Jul 1992 20:40:39 +0000 (20:40 +0000)]
(Finally) doc that GDB sometimes inserts quotes for you, on overloaded
symbol completion requests.

32 years agoMinor changes to make these work with bison again.
Michael Tiemann [Thu, 9 Jul 1992 11:47:50 +0000 (11:47 +0000)]
Minor changes to make these work with bison again.

32 years agoOnly treat "class" as a token if the current language is C++.
Fred Fish [Thu, 9 Jul 1992 07:15:11 +0000 (07:15 +0000)]
Only treat "class" as a token if the current language is C++.

32 years agoadded prms
Heinz G. Seidl [Thu, 9 Jul 1992 06:21:03 +0000 (06:21 +0000)]
added prms

32 years ago * dwarfread.c (alloc_utype, decode_subscr_data): Call alloc_type
Fred Fish [Thu, 9 Jul 1992 04:40:39 +0000 (04:40 +0000)]
* dwarfread.c (alloc_utype, decode_subscr_data):  Call alloc_type
to create new blank types, instead of handcrafting them.
* defs.h (printfi_filtered):  Add prototype.
* utils.c (printfi_filtered):  New function.
* gdbtypes.c (recursive_dump_type):  Use printfi_filtered to
to simplify the code.  Other cleanups.
* gdbtypes.c (check_stub_method):  Demangle using DMGL_ANSI.
* gdbtypes.h (struct cplus_struct_type):  Add comments describing
use of various fields.
* gdbtypes.c (print_bit_vector, print_cplus_stuff):  New functions.
* c-exp.y (%token):  Add CLASS as a token for C++, add grammar
production that currently treats it exactly the same as STRUCT.
* c-exp.y (yylex):  Recognize "class" as token CLASS.
* symtab.c (gdb_mangle_name):  Rewrite to match current g++ stabs.
* symtab.c (decode_line_1):  Fix to pass quoted args on down to
general symbol handling code.  Call cplus_mangle_opname with
DMGL_ANSI.
* symtab.c (decode_line_2):  Print demangled function names in
breakpoint menus, instead of just file and line number.
* symtab.c (name_match):  Call cplus_demangle with DMGL_ANSI.
* valprint.c (type_print_base):  Print "class" for C++ classes,
rather than "struct".  Print section labels for public, protected
and private members of C++ classes.
* values.c:  Include demangle.h.
* values.c (value_headof):  Call cplus_demangle with DMGL_ANSI.

32 years ago* Makefile.in (VERSION): Update to 4.5.8.
Stu Grossman [Thu, 9 Jul 1992 00:24:24 +0000 (00:24 +0000)]
* Makefile.in (VERSION):  Update to 4.5.8.

32 years ago * archive.c (bsd_write_armap): write the timestamp of the
Steve Chamberlain [Wed, 8 Jul 1992 23:28:21 +0000 (23:28 +0000)]
* archive.c (bsd_write_armap): write the timestamp of the
archive header to be just a little bit later than the timestamp of
the file, otherwise the linker will complain that the index is
out of date.

32 years agoRemove tm-es1800.h and remote-es1800.c from distribution files until
Fred Fish [Wed, 8 Jul 1992 13:44:31 +0000 (13:44 +0000)]
Remove tm-es1800.h and remote-es1800.c from distribution files until
copyright assignment with Ericsson is completed.

32 years ago* dbxread.c (dbx_symfile_init): Init stab_section_info to NULL to
Stu Grossman [Wed, 8 Jul 1992 08:00:30 +0000 (08:00 +0000)]
* dbxread.c (dbx_symfile_init):  Init stab_section_info to NULL to
prevent crashes when examining cross-targets.
* dbxread.c (process_one_symbol):  Include directory name when
calling start_subfile for SOL & BINCL symbols.  This allows gdb to
find include files, and yacc/lex sources when the cwd doesn't match
that in which the object was compiled.
* objfiles.h (ALL_MSYMBOLS):  Don't seg fault when there are no
msymbols.
* symtab.c (lookup_symtab_1):  Rewrite.  It now handles include
files.

32 years ago* config/mh-solaris: Use -xs when compiling so that Sun-C puts
Stu Grossman [Wed, 8 Jul 1992 07:04:02 +0000 (07:04 +0000)]
* config/mh-solaris:  Use -xs when compiling so that Sun-C puts
a symbol-table into the executable.

32 years agoget the CROSS macro into gcc's flags
K. Richard Pixley [Tue, 7 Jul 1992 21:48:41 +0000 (21:48 +0000)]
get the CROSS macro into gcc's flags

32 years agoTired of watching byacc be sanitized out. :)
Sean Eric Fagan [Tue, 7 Jul 1992 19:47:28 +0000 (19:47 +0000)]
Tired of watching byacc be sanitized out. :)

32 years ago * maint.c (maintenance_command, maintenance_info_command):
Fred Fish [Tue, 7 Jul 1992 16:00:30 +0000 (16:00 +0000)]
* maint.c (maintenance_command, maintenance_info_command):
Install with allow_unknown as 0 and call help_list to show
list of possibilities when no subcommand is specified.

32 years ago * config.sub: Add es1800 (m68k-ericsson-es1800).
Fred Fish [Tue, 7 Jul 1992 07:25:41 +0000 (07:25 +0000)]
* config.sub:  Add es1800 (m68k-ericsson-es1800).

32 years ago * configure.in: Add m68k-ericsson-*.
Fred Fish [Tue, 7 Jul 1992 07:24:25 +0000 (07:24 +0000)]
* configure.in: Add m68k-ericsson-*.

32 years ago * configure.in: Add m68k-ericsson-*.
Fred Fish [Tue, 7 Jul 1992 07:22:56 +0000 (07:22 +0000)]
* configure.in:  Add m68k-ericsson-*.
* remote-es1800.c, tm-es1800.h, config/es1800.mt:  New files.

32 years ago*** empty log message ***
Steve Chamberlain [Tue, 7 Jul 1992 00:11:55 +0000 (00:11 +0000)]
*** empty log message ***

32 years agoupdated to July 1
K. Richard Pixley [Mon, 6 Jul 1992 23:25:46 +0000 (23:25 +0000)]
updated to July 1

32 years agoAdd gdb-stabs.h to list of files to keep.
Fred Fish [Mon, 6 Jul 1992 02:38:03 +0000 (02:38 +0000)]
Add gdb-stabs.h to list of files to keep.

32 years ago * maint.c: New file.
Fred Fish [Mon, 6 Jul 1992 00:22:57 +0000 (00:22 +0000)]
* maint.c:  New file.
* Makefile.in (SFILES_MAINDIR):  Add new file maint.c.
* Makefile.in (OBS):  Add new file maint.o.
* defs.h (command_class):  Add class_maintenance.
* defs.h (MAINTENANCE_CMDS):  Default to including maintenance
commands.  Allow for them (and other nonessential parts of gdb)
to be selectively left out under special circumstances.
* gdbtypes.c (recursive_dump_type):  New function; supports
maintenance print-type command.
* gdbtypes.h (recursive_dump_type, maintenance_print_type):
Add prototypes.
* main.c (maintenancelist, maintenanceinfolist):  Add maintenance
command lists.
* main.c (initialize_cmd_lists):  Eliminate unnecessary casts on
initializers.  Add initializations for setprintlist, showprintlist,
setchecklist, showchecklist, maintenancelist, and maintenanceinfolist.
* printcmd.c (maintenance_print_type):  New maintenance cmd.
* valprint.c (setprintlist, showprintlist):  Move to main.c, as
implied by comment that all cmd lists are owned by main.c.
* infcmd.c (unsetlist):  Move to main.c, as implied by comment
that all cmd lists are owned by main.c.
* language.c (setchecklist, showchecklist):  Move to main.c, as
implied by comment that all cmd lists are owned by main.c
* breakpoint.c (enablelist, enablebreaklist, disablelist, cmdlist,
deletelist):  Remove redundant declarations (also in gdbcmd.h).
* symmisc.c (printsyms_command):  Now maintenance_print_symbols.
* symmisc.c (printmsyms_command):  Now maintenance_print_msymbols.
* symmisc.c (printpsyms_command):  Now maintenance_print_psymbols.
* symmisc.c (printobjfiles_command):  Now maintenance_print_objfiles.
* symtab.h (maintenance_print_symbols, maintenance_print_psymbols,
maintenance_print_msymbols, maintenance_print_objfiles):
Add prototypes.
* symmisc.c (printsyms_command, printpsyms_command,
printmsyms_command, printobjfiles_command):  Removed from
_initialize_symmisc.
* main.c (dump_me_command):  Moved to maint.c and renamed to
maintenance_dump_me.
* breakpoint.c (all_breakpoints_info):  Rename to
maintenance_info_breakpoints.
* breakpoint.c (_initialize_breakpoint):  Convert add_info of
all_breakpoints_info to add maintenance_info_breakpoints to the
maintenanceinfolist instead.
main.c (initialize_main):  Set up maintenance class commands.

32 years ago* energize-patches: Fix minor problems with building energize lib.
Stu Grossman [Sun, 5 Jul 1992 19:09:38 +0000 (19:09 +0000)]
* energize-patches:  Fix minor problems with building energize lib.
(Also all energize.h to .Sanitize).

32 years ago* energize-patches: Change names of all cadillac procedure calls
Stu Grossman [Sun, 5 Jul 1992 18:07:52 +0000 (18:07 +0000)]
* energize-patches:  Change names of all cadillac procedure calls
to be energize procedure calls.  Simplify many hooks by moving
tests energize.c.  Configure energize, and build it automatically now.

32 years ago * Makefile.in (VERSION): Bump to 4.5.7.
Fred Fish [Sun, 5 Jul 1992 17:21:13 +0000 (17:21 +0000)]
* Makefile.in (VERSION):  Bump to 4.5.7.
* cplus-dem.c (demangle_args):  Validate index for previously
seen type to guard against bogus values from malformed manglings.
* valops.c (value_struct_elt_for_reference):  Guard against
blindly using NULL return value from lookup_symbol.

32 years ago* cadillac.c, cadillac-patches: Rename to energize.c and
Stu Grossman [Sun, 5 Jul 1992 17:07:54 +0000 (17:07 +0000)]
* cadillac.c, cadillac-patches:  Rename to energize.c and
energize-patches.  Change all routines and variables named
'cadillac*' to 'energize*'.  Create new file called energize.h to
hold all interface declarations.

* deblib/connection/*:  Move all of this stuff into energize/, but
delete unneeded files.

32 years ago* cadillac.c, cadillac-patches: Rename to energize.c and
Stu Grossman [Sun, 5 Jul 1992 17:06:47 +0000 (17:06 +0000)]
* cadillac.c, cadillac-patches:  Rename to energize.c and
energize-patches.  Change all routines and variables named
'cadillac*' to 'energize*'.  Create new file called energize.h to
hold all interface declarations.

32 years agoTypo
John Gilmore [Sun, 5 Jul 1992 11:54:06 +0000 (11:54 +0000)]
Typo

32 years agoSVR4 names don't have underscores, according to the ABI.
John Gilmore [Sun, 5 Jul 1992 11:29:16 +0000 (11:29 +0000)]
SVR4 names don't have underscores, according to the ABI.

32 years ago* buildsym.c (finish_block): Fix thinko `inner block' complaints.
John Gilmore [Sun, 5 Jul 1992 10:26:53 +0000 (10:26 +0000)]
* buildsym.c (finish_block):  Fix thinko `inner block' complaints.
* dbxread.c (process_one_symbol):  Parse N_OPT "gcc2_compiled.".
* procfs.c (proc_set_exec_trap): Set run-on-last-close flag on
child processes, to avoid dead ones "hanging around" after GDB exits.
(attach): Always stop the process if it needs it.  Set RLC flag
when attaching running processes, so it will continue if we detach
it, quit, or are killed.
(detach):  Clear faults and set RLC flag to make process run
when we close it.
(open_proc_file):  New `mode' argument for O_RDONLY or O_RDWR.
Callers changed.
(info_proc):  Open process O_RDONLY, so we can see any process,
even those controlled by debuggers.
* tm-sun4sol2.h (SUN_FIXED_LBRAC_BUG):  They did (in Sol 2).

32 years agoSince sconix is treated as an OS (as opposed to vendor), we need to
Sean Eric Fagan [Sat, 4 Jul 1992 21:47:03 +0000 (21:47 +0000)]
Since sconix is treated as an OS (as opposed to vendor), we need to
explicitly check for it.

32 years agoDon't really want <sys/file.h> on a SysV system, and need to make sure
Sean Eric Fagan [Sat, 4 Jul 1992 21:45:42 +0000 (21:45 +0000)]
Don't really want <sys/file.h> on a SysV system, and need to make sure
a couple of necessary defines are done.

32 years agoRelocate symbols using an array of section_offsets, rather than a
John Gilmore [Sat, 4 Jul 1992 21:03:34 +0000 (21:03 +0000)]
Relocate symbols using an array of section_offsets, rather than a
single `addr' or `offset'.  This makes Solaris-2 support work, and
permits better VxWorks (and maybe xcoff) support later.

* dbxread.c:  Conforming changes.
(struct dbx_symfile_info):  Move to gdb-stabs.h.
(start_psymtab):  Call elfstab_offset_sections to calculate good
offsets for this source file, based on the ELF symbol table info.
(read_ofile_symtab):  Yank N_CATCH, which is dead.
(process_one_symbol, N_CATCH):  Yank.
(", N_FUN, N_FNAME, N_FN, N_FN_SEQ, N_SO, N_SOL, N_ENTRY):
Relocate with SECT_OFF_TEXT.
(", N_STSYM, N_LCSYM, N_ROSYM):  Grope around in the stab string
to distinguish relocatable from absolute symbols.  Then, if not
absolute, do:
(", N_STSYM, N_DSLINE):  SECT_OFF_DATA.
(", N_LCSYM, N_BSLINE):  SECT_OFF_BSS.
(", N_ROSYM):  SECT_OFF_RODATA.
(elfstab_build_psymtabs):  Caller has allocated dbx_symfile_info.
(dbx_symfile_offsets):  Add to translate addr to offset.

32 years ago> * xm-rs6000.h: define MEM_FNS_DECLARED
David D. Zuhn [Sat, 4 Jul 1992 14:17:13 +0000 (14:17 +0000)]
>       * xm-rs6000.h: define MEM_FNS_DECLARED

32 years agoRelocate symbols using an array of section_offsets, rather than a
John Gilmore [Sat, 4 Jul 1992 13:59:03 +0000 (13:59 +0000)]
Relocate symbols using an array of section_offsets, rather than a
single `addr' or `offset'.  This makes Solaris-2 support work, and
permits better VxWorks (and maybe xcoff) support later.  See ChangeLog.

32 years agoTidy innerblock_complaint and blockvector_complaint.
John Gilmore [Sat, 4 Jul 1992 12:23:23 +0000 (12:23 +0000)]
Tidy innerblock_complaint and blockvector_complaint.

32 years ago* main.c (main): Read the $HOME/.gdbinit file before processing
John Gilmore [Sat, 4 Jul 1992 12:21:01 +0000 (12:21 +0000)]
* main.c (main):  Read the $HOME/.gdbinit file before processing
the argv arguments (e.g. reading symbol files or core
files).  This allows global parameters to be set, which will apply
during the symbol reading.  The ./.gdbinit is still read after
argv processing.
* symtab.c (list_symbols):  `i variables' shouldn't show enum values.

32 years agoRegen after bfd/syms.c change: BSF_FILE.
John Gilmore [Sat, 4 Jul 1992 10:41:16 +0000 (10:41 +0000)]
Regen after bfd/syms.c change: BSF_FILE.

32 years ago* syms.h: Define BSF_FILE, update BSF_SECTION_SYM desc.
John Gilmore [Sat, 4 Jul 1992 10:38:33 +0000 (10:38 +0000)]
* syms.h:  Define BSF_FILE, update BSF_SECTION_SYM desc.
* elf.c:  Remove unconditional debug printf's.
(elf_write_object_contents, elf_slurp_symbol_table):  Handle
BSF_SECTION_SYM <=> STT_SECTION, BSF_FILE <=> STT_FILE.
(elf_slurp_symbol_table):  Hand out symbols in forward, not
reverse order.  Simplify duplicate code.

32 years agomore docs on srcdir in makefiles, patch accepted by rms
David D. Zuhn [Sat, 4 Jul 1992 06:29:02 +0000 (06:29 +0000)]
more docs on srcdir in makefiles, patch accepted by rms

32 years ago * elf.c: Remove "(void)" casts from function calls where the
Fred Fish [Sat, 4 Jul 1992 03:24:37 +0000 (03:24 +0000)]
* elf.c:  Remove "(void)" casts from function calls where the
return value is ignored, in accordance with GNU coding standards.

32 years ago * breakpoint.c, buildsym.c, c-exp.y, coffread.c, command.c,
Fred Fish [Sat, 4 Jul 1992 03:22:08 +0000 (03:22 +0000)]
* breakpoint.c, buildsym.c, c-exp.y, coffread.c, command.c,
core.c, cplus-dem.c, dbxread.c, dwarfread.c, elfread.c, environ.c,
eval.c, findvar.c, gdbtypes.c, hppabsd-tdep.c, hppahpux-tdep.c,
i386-tdep.c, ieee-float.c, infcmd.c, inflow.c, infptrace.c,
infrun.c, m2-exp.y, mipsread.c, objfiles.c, parse.c, procfs.c,
putenv.c, remote-mm.c, remote-vx.c, solib.c, sparc-tdep.c,
sparc-xdep.c, stack.c, symfile.c, symtab.c, symtab.h, target.c,
tm-i386v.h, tm-sparc.h, utils.c, valarith.c, valops.c, valprint.c,
values.c, xcoffread.c:
Remove "(void)" casts from function calls where the return value
is ignored, in accordance with GNU coding standards.

32 years ago* dbxread.c (process_one_symbol): Ignore N_MAIN, N_ENDM for Solaris.
John Gilmore [Fri, 3 Jul 1992 07:08:31 +0000 (07:08 +0000)]
* dbxread.c (process_one_symbol):  Ignore N_MAIN, N_ENDM for Solaris.
* partial-stab.h:  Ignore N_ENDM.
* elfread.c (elf_symtab_read):  Ignore symbols that don't have a
CODE or DATA section attachment.  This eliminates a lot of random
values from shared libraries, which screw up the ordinary symbols
in the address ranges they happen to overlap.
* buildsym.c (define_symbol):  Eliminate special tests
for function types; move into "function" cases in switch statement.
(define_symbol: 'f', 'F', 'P'):  Process all parameter types
in case they define new type numbers.  But ignore them (FIXME).
('k', 'B'):  Ignore const and volatile if we see them (FIXME).
(read_sun_builtin_type):  Add commentary.

32 years ago,
Steve Chamberlain [Thu, 2 Jul 1992 00:53:25 +0000 (00:53 +0000)]
,

32 years agoAliasing bug fixes
Steve Chamberlain [Thu, 2 Jul 1992 00:53:14 +0000 (00:53 +0000)]
Aliasing bug fixes

32 years agorestore some old code to punt symbols which are BSF_LOCAL (needed for Solaris,
Mark Eichin [Wed, 1 Jul 1992 22:52:47 +0000 (22:52 +0000)]
restore some old code to punt symbols which are BSF_LOCAL (needed for Solaris,
should be correct for anything else.)

32 years agoMake sparcfrw/sparcfrwcompat/sparclitefrw/sparclitefrwcompat valid
Jim Wilson [Wed, 1 Jul 1992 17:53:32 +0000 (17:53 +0000)]
Make sparcfrw/sparcfrwcompat/sparclitefrw/sparclitefrwcompat valid
configurations for gcc.

32 years ago * hppa.c: Apply John's standard fix to avoid "empty translation
Fred Fish [Tue, 30 Jun 1992 23:50:04 +0000 (23:50 +0000)]
* hppa.c:  Apply John's standard fix to avoid "empty translation
unit" warnings from some ANSI-C compilers.

32 years agoGo ahead and make the TODO file part of the distribution, so we have a
Fred Fish [Tue, 30 Jun 1992 23:48:44 +0000 (23:48 +0000)]
Go ahead and make the TODO file part of the distribution, so we have a
recognized place to note things which are not yet implemented.

32 years ago * mmalloc.h (struct mdesc): Add FIXME comments to point out the
Fred Fish [Tue, 30 Jun 1992 23:45:42 +0000 (23:45 +0000)]
* mmalloc.h (struct mdesc):  Add FIXME comments to point out the
need to save some data on a per-process basis for mapped regions
that are shared.
* attach.c (reuse):  Update the morecore field for reused mapped
regions to be correct for the current process.

32 years agoSmall clarification in description of Jxx FOO expansion for 680x0.
Roland Pesch [Tue, 30 Jun 1992 18:17:31 +0000 (18:17 +0000)]
Small clarification in description of Jxx FOO expansion for 680x0.

32 years agoMake cross compilation work better.
John Gilmore [Tue, 30 Jun 1992 09:27:41 +0000 (09:27 +0000)]
Make cross compilation work better.

* tm-mips.h (GDB_TARGET_IS_MIPS):  Define for mips-xdep.c.
(READ_MIPS_FORMAT, COFF_FORMAT):  Remove, unused now.
* mips-xdep.c:  Remove most include files (unused, caused errs).
(fetch_core_registers):  Use right parameters in dummy fn.

32 years ago* buildsym.c (scan_file_globals): Beware the null file.
John Gilmore [Tue, 30 Jun 1992 08:53:28 +0000 (08:53 +0000)]
* buildsym.c (scan_file_globals):  Beware the null file.
Fix from Jim Williams.

* stack.c (return_command):  Evaluate expression *before* popping
off the stack frames!  Fix inspired by Jim Williams.
(up_silently_command, down_silently_command):  No sel frame is error.

* defs.h (memcpy, memset):  Conditionalize decls on
#ifndef MEM_FNS_DECLARED, since DECstation differs.
(alloca):  Break out the STDC and non-STDC alloca cases, to make
it work on old preprocessors as well as "picky ANSI" ones.
* xm-mips.h (memcpy, memset):  Declare, and set MEM_FNS_DECLARED.

* mips-tdep.c (heuristic_proc_start):  Zero arg produces zero.
* utils.c (fputs_demangled):  Rename SLOP since DECstation system
header files define it!

32 years agoAllow BREAKPOINT to be overridden by -D (for Adobe).
John Gilmore [Tue, 30 Jun 1992 01:34:18 +0000 (01:34 +0000)]
Allow BREAKPOINT to be overridden by -D (for Adobe).

32 years agoUpdate to gcc 2.2.2. New basic machine type we32k. Hppa split into hppa1.0
Jim Wilson [Tue, 30 Jun 1992 01:22:59 +0000 (01:22 +0000)]
Update to gcc 2.2.2.  New basic machine type we32k.  Hppa split into hppa1.0
and hppa1.1.  (hppa is no longer valid.)

32 years ago * mmtrace.c: Lint.
Fred Fish [Mon, 29 Jun 1992 23:38:26 +0000 (23:38 +0000)]
* mmtrace.c:  Lint.

32 years ago * obstack.h: Convert bcopy() use to memcpy(), which is more
Fred Fish [Mon, 29 Jun 1992 23:37:10 +0000 (23:37 +0000)]
* obstack.h:  Convert bcopy() use to memcpy(), which is more
portable, more standard, and can take advantage of gcc's builtin
functions for increased performance.

32 years ago * dbxread.c, i386-pinsn.c, i386-tdep.c, regex.c, solib.c, symmisc.c,
Fred Fish [Mon, 29 Jun 1992 23:34:38 +0000 (23:34 +0000)]
* dbxread.c, i386-pinsn.c, i386-tdep.c, regex.c, solib.c, symmisc.c,
symtab.h, tm-i386v4.h, valprint.c, values.c:  Lint.
* breakpoint.c, c-exp.y, coffread.c, command.c, environ.c, eval.c,
findvar.c, infcmd.c, infptrace.c, infrun.c, m2-exp.y, parse.c,
putenv.c, solib.c, sparc-xdep.c, symtab.c, tm-i386v.h, tm-sparc.h,
utils.c, valarith.c, valops.c, valprint.c, values.c:
Replace bcopy() use with memcpy(), which is more standard and can
take advantage of gcc's builtin functions for increased performance.
* breakpoint.c, buildsym.c, coffread.c, dbxread.c, i386-tdep.c,
ieee-float.c, infcmd.c, sparc-tdep.c, stack.c, symtab.c, symtab.h,
target.c, values.c:
Replace bzero() use with memset(), which is more standard and can
take advantage of gcc's builtin functions for increased performance.
* i386-tdep.c, main.c, valprint.c:
Replace bcmp() use with memcmp(), which is more standard and can
take advantage of gcc's builtin functions for increased performance.

32 years ago * remote.c (remote_wait): Fix cast on signal() call.
Fred Fish [Sun, 28 Jun 1992 20:31:11 +0000 (20:31 +0000)]
* remote.c (remote_wait):  Fix cast on signal() call.
* defs.h (alloca):  More diddling with alloca.  Have to ensure
that it has a prototype, so that if alloca is defined as a macro
that takes an arg, the definition is seen as a use of a macro
that takes an arg, to satisfy picky ANSI preprocessors.

32 years ago * h8300.h: Finish filling in all the holes in the opcode table,
Fred Fish [Sun, 28 Jun 1992 20:30:01 +0000 (20:30 +0000)]
* h8300.h:  Finish filling in all the holes in the opcode table,
so that the Lucid C compiler can digest this as well...

32 years agoUpdate Cadillac patch kit.
Fred Fish [Sat, 27 Jun 1992 19:41:24 +0000 (19:41 +0000)]
Update Cadillac patch kit.

32 years ago * sparc-pinsn.c: Use <string.h> rather than "string.h", for
Fred Fish [Sat, 27 Jun 1992 19:16:47 +0000 (19:16 +0000)]
* sparc-pinsn.c:  Use <string.h> rather than "string.h", for
consistency with all other gdb files.
* cadillac.c:  Use <string.h> rather than <strings.h>.
* cadillac.c (kernel_dispatch):  Convert rindex usage to strrchr.
* Makefile.in (MAKE):  Remove definition for consistency with
other Makefile.in files and to fix problem with recursive makes.

32 years agoUse tabs to indent comments, so they line up.
John Gilmore [Sat, 27 Jun 1992 05:01:14 +0000 (05:01 +0000)]
Use tabs to indent comments, so they line up.

32 years ago* i386.h: Add setc, setnc, addr16, data16, repz, repnz aliases.
John Gilmore [Sat, 27 Jun 1992 04:56:08 +0000 (04:56 +0000)]
* i386.h:  Add setc, setnc, addr16, data16, repz, repnz aliases.
Fix opcodes on various sizes of fild/fist instructions
(16bit=no suffix, 32bit="l" suffix, 64bit="ll" suffix).
Fixes suggested by Minh Tran-Le.

32 years ago(1) corrections to command-line completion material
Roland Pesch [Sat, 27 Jun 1992 03:53:10 +0000 (03:53 +0000)]
(1) corrections to command-line completion material
    (more text on quotes still needed)
(2) warning re problems in coff

32 years agoAvoid PT_WDUSER because it crashes H-PUX.
John Gilmore [Sat, 27 Jun 1992 02:28:05 +0000 (02:28 +0000)]
Avoid PT_WDUSER because it crashes H-PUX.

32 years agoInstall into the right place for cross
Steve Chamberlain [Fri, 26 Jun 1992 22:42:15 +0000 (22:42 +0000)]
Install into the right place for cross

32 years ago * source.c (print_source_lines): for DOS interoperability; don't
Steve Chamberlain [Fri, 26 Jun 1992 18:12:17 +0000 (18:12 +0000)]
* source.c (print_source_lines): for DOS interoperability; don't
print CR (013) as ^M.

32 years agoDefault dir_so_symnum to -10 to avoid even the slightest possibility of
Stu Grossman [Fri, 26 Jun 1992 03:55:28 +0000 (03:55 +0000)]
Default dir_so_symnum to -10 to avoid even the slightest possibility of
screwage.  This is a continuation of the redundant SO record fixup for the
Lucid C++ compiler.

32 years agoFixup PRSVADDR problem as per Johns suggestions.
Stu Grossman [Fri, 26 Jun 1992 03:49:00 +0000 (03:49 +0000)]
Fixup PRSVADDR problem as per Johns suggestions.

32 years ago* configure.in: Make bsd based systems use sysdep-obsd.h.
Stu Grossman [Thu, 25 Jun 1992 23:16:16 +0000 (23:16 +0000)]
* configure.in:  Make bsd based systems use sysdep-obsd.h.

32 years agoDeclare free() for hpux.
Stu Grossman [Thu, 25 Jun 1992 23:11:26 +0000 (23:11 +0000)]
Declare free() for hpux.

32 years ago* dbxread.c (dbx_symfile_init): Move more code under hp9000s800
Stu Grossman [Thu, 25 Jun 1992 23:02:57 +0000 (23:02 +0000)]
* dbxread.c (dbx_symfile_init):  Move more code under hp9000s800
conditional.
* hppabsd-core.c:  Don't include "param.h", include <sys/param.h>
instead.
* remote.c (remote_wait):  Cast signal to void * to avoid warning
from busted HP compiler.

32 years agoCatch up Cygnus-logo version of GDB refcard with last few changes to
Roland Pesch [Thu, 25 Jun 1992 22:58:28 +0000 (22:58 +0000)]
Catch up Cygnus-logo version of GDB refcard with last few changes to
FSF version:
  - threecol.tex now embedded, not separate file
  - folding guides
  - "gdb --help" recommended rather than "gdb -help"

32 years ago* partial-stab.h (N_SO): Rearrange code a little so that all SO
Stu Grossman [Thu, 25 Jun 1992 22:46:04 +0000 (22:46 +0000)]
* partial-stab.h (N_SO):  Rearrange code a little so that all SO
stabs cause end_psymtab to be called.

32 years ago* buildsym.c (read_sun_builtin_type): Handle new FCS Sun CC
Stu Grossman [Thu, 25 Jun 1992 22:35:09 +0000 (22:35 +0000)]
* buildsym.c (read_sun_builtin_type):  Handle new FCS Sun CC
compiler feature of putting 'c' into basic type descriptors for
all forms of char.

32 years ago* procfs.c (child_resume): Work around Solaris (on Sparc) lossage
Stu Grossman [Thu, 25 Jun 1992 22:22:40 +0000 (22:22 +0000)]
* procfs.c (child_resume):  Work around Solaris (on Sparc) lossage
where there is no place for nPC in prrun struct.

32 years ago * mipsread.c: Pass NULL name pointer to init_type, not 0.
Fred Fish [Thu, 25 Jun 1992 19:10:49 +0000 (19:10 +0000)]
* mipsread.c:  Pass NULL name pointer to init_type, not 0.
* gdbtypes.c (init_type):  Use copy of typename on type_obstack.
* dwarfread.c (enum_type):  Save enum names on type_obstack.
* dwarfread.c (struct_type):  Save member name on type_obstack.
* symtab.c (_initialize_symtab):  Fix misspelling.
* regex.c (store_jump, insert_jump):  Return void.

32 years agoLint. Remove excess whitespace.
John Gilmore [Thu, 25 Jun 1992 11:54:08 +0000 (11:54 +0000)]
Lint.  Remove excess whitespace.

32 years ago* defs.h (PARAMS): Move to ../include/ansidecl.h.
John Gilmore [Thu, 25 Jun 1992 11:50:31 +0000 (11:50 +0000)]
* defs.h (PARAMS):  Move to ../include/ansidecl.h.
(alloca):  Declare return type on SPARC, since Sun doesn't.
(*_BYTE_ORDER):  Improve comment:  *must* be defined.

32 years ago* hosts/solaris2.h: Configure same as sysv4.
John Gilmore [Thu, 25 Jun 1992 11:40:36 +0000 (11:40 +0000)]
* hosts/solaris2.h:  Configure same as sysv4.

32 years ago* tm-hppa.h: New file, architectural definition of HP PA.
John Gilmore [Thu, 25 Jun 1992 11:15:47 +0000 (11:15 +0000)]
* tm-hppa.h:  New file, architectural definition of HP PA.
* tm-hppabsd.h, tm-hppahpux.h:  Shrink to deltas from tm-hppa.h.

* am29k-pinsn.c, am29k-tdep.c, copying.awk, copying.c,
hppa-coredep.c, hppa-pinsn.c, hppabsd-core.c, hppabsd-tdep.c,
hppabsd-xdep.c, hppahpux-tdep.c, hppahpux-xdep.c, remote-udi.c,
ser-go32.c, xcoffsolib.c:  Remove <stdio.h> which is already in
"defs.h".

* hppa-coredep.c, hppa-pinsn.c, hppabsd-core.c, hppabsd-tdep.c,
hppabsd-xdep.c, hppahpux-tdep.c, hppahpux-xdep.c, xcoffsolib.c,
xcoffsolib.h, xm-go32.h, xm-hppabsd.h, xm-hppahpux.h:  Copyrights.

32 years ago* printcmd.c (output_command): Thinko.
John Gilmore [Thu, 25 Jun 1992 10:58:53 +0000 (10:58 +0000)]
* printcmd.c (output_command):  Thinko.
(x_command):  Only set remembered size/format if cmd succeeds.

32 years agokeep CYGNUS
K. Richard Pixley [Thu, 25 Jun 1992 03:11:49 +0000 (03:11 +0000)]
keep CYGNUS

32 years ago * nm.c (valueof macro): Add missing parentheses.
Per Bothner [Wed, 24 Jun 1992 20:58:17 +0000 (20:58 +0000)]
* nm.c (valueof macro):  Add missing parentheses.
(Their lack screwed up numeric_forward().)

32 years agoFix typo (place where GDB name was not given as _GDBN__).
Roland Pesch [Wed, 24 Jun 1992 20:55:36 +0000 (20:55 +0000)]
Fix typo (place where GDB name was not given as _GDBN__).

32 years agoAdded doc for command-line completion, incl new FNF support for quoted strings
Roland Pesch [Wed, 24 Jun 1992 20:45:53 +0000 (20:45 +0000)]
Added doc for command-line completion, incl new FNF support for quoted strings
w/C++ overloaded fns.

32 years ago* dbxread.c (read_ofile_symtab): Remove N_CATCH special case,
John Gilmore [Wed, 24 Jun 1992 19:58:57 +0000 (19:58 +0000)]
* dbxread.c (read_ofile_symtab):  Remove N_CATCH special case,
since it is no longer used and burns time for every symbol read.
(process_one_symbol):  Treat N_CATCH like default (complain).

32 years agoWed Jun 24 10:57:54 1992 Steve Chamberlain (sac@thepub.cygnus.com)
Steve Chamberlain [Wed, 24 Jun 1992 18:02:38 +0000 (18:02 +0000)]
Wed Jun 24 10:57:54 1992  Steve Chamberlain  (sac@thepub.cygnus.com)

* app.c (process_escape): new function to handle escapes the right
way, (do_scrub_next_char): use new function
* cond.c (s_ifdef): do ifdef/ifndef right
* read.c (s_fill): make the , expressions optional like the doc
says
* config/tc-h8300.[ch]: better warnings

32 years ago* partial-stab.h (case N_TEXT): Fix fencepost error when
Stu Grossman [Wed, 24 Jun 1992 07:31:55 +0000 (07:31 +0000)]
* partial-stab.h (case N_TEXT):  Fix fencepost error when
detecting start of new symbol info after reading symtab for a
module with a zero length TEXT segment.
(Note that this fixes the BNR problem with printing vxWorksVersion.  That ought
to make Ken happy).

32 years ago * configure.in: Use mh-posix for Linux (free Unix clone).
Per Bothner [Wed, 24 Jun 1992 06:26:05 +0000 (06:26 +0000)]
* configure.in:  Use mh-posix for Linux (free Unix clone).

32 years ago * valprint.c (val_print_fields): Call fprint_symbol to get
Fred Fish [Wed, 24 Jun 1992 06:24:51 +0000 (06:24 +0000)]
* valprint.c (val_print_fields):  Call fprint_symbol to get
automatic C++ demangling for mangled field names.

32 years ago * cadillac.c (kernel_dispatch): Make return type void.
Fred Fish [Wed, 24 Jun 1992 05:52:01 +0000 (05:52 +0000)]
* cadillac.c (kernel_dispatch):  Make return type void.
* cadillac.c (iosig):  Signal handlers take one int arg.

32 years ago * sysdep-norm.h (alloca): Protect against previous definition as
Fred Fish [Wed, 24 Jun 1992 05:00:25 +0000 (05:00 +0000)]
* sysdep-norm.h (alloca):  Protect against previous definition as
a macro with arguments.

32 years ago * libbfd.h, libbfd-in.h (bfd_seek): Make prototype match definition.
Fred Fish [Wed, 24 Jun 1992 04:56:01 +0000 (04:56 +0000)]
* libbfd.h, libbfd-in.h (bfd_seek):  Make prototype match definition.
* reloc.c (bfd_default_reloc_type_lookup):  Make cast on return
type match actual return type.
* elf_print_symbol (section_name):  Make CONST.

32 years ago * Makefile.in (VERSION): Bump to 4.5.6.
Fred Fish [Wed, 24 Jun 1992 04:49:48 +0000 (04:49 +0000)]
* Makefile.in (VERSION):  Bump to 4.5.6.
* coffread.c (coff_end_symtab):  Cast 2nd arg of complain() to
correct type.
* defs.h (NORETURN):  Define away for Lucid compiler.
* remote.c (remote_timer, remote_interrupt):  Signal handlers
take one int arg.
* ser-termios.c (serial_write, serial_close):  Return whatever
value the write/close call returns, rather than falling off end.
* inferior.h (PTRACE_ARG3_TYPE):  Third arg to ptrace is int on
more systems than it is "char *".  Define PTRACE_ARG3_TYPE to
default to int.
* infptrace.c, hppabsd-xdep.c, hppahpux-xdep.c, i386-xdep.c,
inferior.h (call_ptrace):  Use PTRACE_ARG3_TYPE to declare type
of third arg.
* a68v-xdep.c, arm-xdep.c, convex-xdep.c, hp300ux-xdep.c, infrun.c,
m88k-xdep.c, mach386-xdep.c, mips-xdep.c, os68k-xdep.c, pyr-tdep.c,
pyr-xdep.c, rs6000-xdep.c, sparc-xdep.c, sun3-xdep.c, sun386-xdep.c,
symm-xdep.c, ultra3-xdep.c:  Use PTRACE_ARG3_TYPE to cast ptrace
argument 3.
* sparc-xdep.c, a68v-xdep.c (fetch_inferior_registers,
store_inferior_registers): Supply missing fourth argument to
ptrace().

32 years agoMinor cleanup for better smallbook formatting w/default FSF style.
Roland Pesch [Wed, 24 Jun 1992 01:17:24 +0000 (01:17 +0000)]
Minor cleanup for better smallbook formatting w/default FSF style.

32 years ago(1) removed three-part table of config name components from Installing
Roland Pesch [Wed, 24 Jun 1992 00:15:44 +0000 (00:15 +0000)]
(1) removed three-part table of config name components from Installing
    appendix (too hard to maintain, esp w/recent versions of config.sub).
    Also corrected xref to this section accordingly.
(2) updated sample output from config.sub to match latest variation of
    that script
(3) minor editing to gnu contrib text on set/show remotedebug