Commit graph

23560 commits

Author SHA1 Message Date
Catherine Moore
948beb4a24 * bfd-in.h: Add argument to elf_backend_get_symbol_type.
* bfd-in2.h: Rebuild.
       * elf.c (swap_out_syms):  Pass type to elf_backend_get_symbol_type.
       * elf32-arm.c:  Add HOWTO entries for R_ARM_GNU_VTINHERIT and
       R_ARM_GNU_VTENTRY.
       (elf32_arm_gc_mark_hook): New.
       (elf32_arm_gc_sweep_hook): New.
       (elf32_arm_check_relocs): New.
       (elf32_arm_final_link_relocate):  Handle VTINHERIT and VTENTRY
       relocations.
       (elf32_arm_relocate_section): Handle VTINHERIT and VTENTRY
       relocations.
1998-09-15 13:52:55 +00:00
Andrew Cagney
b2d5581361 Use value_at_lazy() to examine memory values. For x/i this is very
important as it stops the specified address being fetched twice -
once by value_at() and once somewhere in the disassembler.
1998-09-15 07:50:31 +00:00
Michael Snyder
c8ca08efeb Mon Sep 14 20:00:57 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* dejagnu/baseboards/m68k-emc.exp: New file.
	* dejagnu/config/m68k-emc.exp: New file.
	* gdb/testsuite/config/m68k-emc.exp: New file.
1998-09-15 03:06:26 +00:00
Nick Clifton
043333a61a define SIM_HAVE_BIENDIAN 1998-09-14 16:58:00 +00:00
Michael Snyder
4a8051a834 Sun Sep 13 01:34:59 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* blockframe.c (find_pc_sect_partial_function): use bfd section
	  of msymbol for end of section comparison.
1998-09-13 08:37:08 +00:00
Michael Snyder
74c1b0ba6b Fri Sep 11 14:02:49 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* tracepoint.c: clean up several unused variables and such.
1998-09-11 21:03:29 +00:00
Michael Snyder
b6e88501aa Fri Sep 11 13:58:02 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdb.c++/classes.exp: Change all regular expressions to match
        arbitrary combinations of newline/carriage-return, so that they
        will work equally well on Unix and Windows.
        * gdb.c++/inherit.exp: ditto.
        * gdb.c++/virtfunc.exp: ditto.
1998-09-11 21:00:26 +00:00
Richard Henderson
7194b91a0f 1998-09-10 Geoff Keating <geoffk@ozemail.com.au>
* elf32-ppc.c (ppc_elf_relocate_section): If dynobj is NULL,
        assume there is no PLT or GOT.
1998-09-11 20:15:54 +00:00
Zdenek Radouch
05f1989d85 Fri Sep 11 12:38:34 EDT 1998 Zdenek Radouch (radouch@cygnus.com)
* arm-tdep.c (arm_push_arguments): fixed frame construction
1998-09-11 16:40:04 +00:00
Jim Ingham
d0757953c9 Thu Sep 10 22:10:29 1998 Jim Ingham <jingham@cygnus.com>
*gdbtk-cmds.c (gdb_disassemble): Make sure the symtab's linetable is not
	null before trying to use it...
1998-09-11 05:13:57 +00:00
Michael Snyder
6a5c768569 Thu Sep 10 20:51:23 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* mn10300-tdep.c (mn10300_analyze_prologue): guard against NULL.
1998-09-11 03:52:21 +00:00
Doug Evans
4d87923eb3 * r5900.igen (plzcw): Make `i' signed.
PR 17191.
1998-09-10 19:00:46 +00:00
Michael Meissner
52ce74dc9f Sanitize out Nortel 750 sprs 1998-09-10 18:28:13 +00:00
Stan Shebs
d7d7dd1b5a More avoidance of writing documentation in the internals manual.
* dbxread.c (IGNORE_SYMBOL): Remove definition, is never used.
	* os9kread.c: Remove comment mentioning IGNORE_SYMBOL.
1998-09-10 02:58:19 +00:00
Michael Meissner
7be9a046da Add PowerPC 750 move to/from SPRs 1998-09-09 23:59:09 +00:00
Doug Evans
190659a22d * m32r-sim.h (m32r_trap): Update prototype.
* traps.c (m32r_trap): New arg `pc'.
	* sem.c,sem-switch.c: Regenerated.
	* cpux.h,readx.c,semx.c: Regenerated.
1998-09-09 22:34:09 +00:00
Doug Evans
3efbfbebdc * sim/sky/pr17191.s: New file.
* sim/sky/pr17191.brn: New file.
	* sim/sky/t-macros.inc: New file.
1998-09-09 21:50:10 +00:00
Nick Clifton
a61c93863e fix linker testsuite failure 1998-09-09 21:25:37 +00:00
Richard Henderson
1891eb9f0d * config/tc-i386.c (i386_operand): Fix typo in last patch. 1998-09-09 18:27:52 +00:00
Ron Unrau
253ceee6d0 Merges from SKY branch:
* blockframe.c(find_pc_sect_partial_function): look for min syms in
          the same section when trying to guess the end of a function.
        * symfile.c(list_overlays_command): use print_address_numeric
        * remote-sim.c: export simulator_command
        * tm-r5900.h: add COP0 registers
        * txvu-tdep.c: printvector and printvector-order commands
        * tm-txvu.h: add COP0 registers
        * mips-tdep.c: use NUM_CORE_REGS
1998-09-09 17:41:59 +00:00
Ron Unrau
323f833daf Branch merge for GDB:
* sim-main.h: track COP0 registers
        * interp.c (sim_{fetch,store}_register): read/write COP0 registers
        * sky-gdb.[ch]: add sim pipeorder command
1998-09-09 17:30:31 +00:00
Jason Molenda
fc4109089c 1998-09-08 Jason Molenda (jsm@bugshack.cygnus.com)
* breakpoint.c (bpstat_stop_status):  Declare a bp match if the
        current fp matches the bp->fp OR if the current fp is less than
        the bp->fp if we're looking at a bp_step_resume breakpoint.

PR 15992.

With a bp_step_resume type breakpoint, the frame pointer check exists in
case we recurse and execute the same text section--we want to not stop
there because it would confuse the user.  So gdb checks to see that the
frame pointer matches the one recorded in the breakpoint.

If the current frame pointer is less than the frame pointer recorded in
the breakpoint, then something odd is happened and we should declare that
we're at the breakpoint so that we clear it out.

This happens in Purify instrumented executables on PA systems, at least.
They insert some calls out to Purify code in the function epilogue and
it confuses GDB (which assumes that the frame pointer does not move
around through the entire execution of a function).
1998-09-09 04:16:53 +00:00
Stan Shebs
1f926de145 Cleanup opportunity discovered while updating internals manual.
* symtab.h (struct symtab): Remove EXTRA_SYMTAB_INFO hook,
	not currently used.
	* symfile.c (allocate_symtab): Deprecate use of
	INIT_EXTRA_SYMTAB_INFO here.
1998-09-09 02:48:11 +00:00
Catherine Moore
d22136dc8c Tue Sep 8 18:10:01 1998 Catherine Moore <clm@cygnus.com>
* config/tc-arm.c (arm_adjust_symtab):  Move #ifdef
        OBJ_COFF so that routine is defined for a.out format.
1998-09-08 23:20:30 +00:00
Richard Henderson
de1d28b669 * config/tc-i386.c (i386_operand): Detect non-segment registers
used as segment prefixes.
1998-09-08 22:57:36 +00:00
Frank Ch. Eigler
9ade226a42 * Patch for PR 17142, brought over from sky branch.
Fri Sep  4 10:37:57 1998  Frank Ch. Eigler  <fche@cygnus.com>
	* r5900.igen (mtsab): Correct typo in input register.
	* sim-main.h (TMP_*): New macros for accessing local 128-bit
	temporary for multimedia instructions.
	* r5900.igen (*): Convert most instructions to use new TMP
	macros to store output result during computation.
1998-09-08 11:09:45 +00:00
Peter Schauer
ebe909d29e * rs6000-core.c (_LONG_LONG): Define for AIX 4.x only. 1998-09-07 20:26:43 +00:00
Nick Clifton
c80944f2a5 do not try to dump empty sections 1998-09-06 23:17:06 +00:00
Ian Lance Taylor
c84d3d6970 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): Correct definition to
match definition of _bfd_gc_sections field.
	* libbfd.h: Rebuild.
1998-09-06 00:41:41 +00:00
Ian Lance Taylor
5c27572868 * ehopt.c (check_eh_frame): Check the size of the FDE, and don't
optimize across FDE boundaries.
1998-09-06 00:39:46 +00:00
Ian Lance Taylor
1f23c5b3f0 Sat Sep 5 19:17:10 1998 Mumit Khan <khan@xraylith.wisc.edu>
* dlltool.c (scan_all_symbols): Don't re-export symbols exported
	by other DLLs.
1998-09-05 23:18:05 +00:00
Ian Lance Taylor
10926eb0d4 * config/obj-coff.c (obj_coff_section): Preserve any link once
flags when setting the section flags.
1998-09-05 23:01:35 +00:00
Nick Clifton
a03925a2fc Fixed generation of thumb function symbols. 1998-09-05 02:58:46 +00:00
Nick Clifton
49fe88644c Fix detection of thumb-elf function symbols 1998-09-05 02:47:40 +00:00
Stan Shebs
da5328aeaf * README: Update remote debugging and testsuite info. 1998-09-04 22:54:30 +00:00
Richard Henderson
08a63c2c4a Fri Sep 4 13:57:43 1998 Jakub Jelinek <jj@sunsite.ms.mff.cuni.cz>
* config/tc-sparc.c (in_signed_range): Sign extend 32-bit words
        to the host width.
1998-09-04 20:59:53 +00:00
Richard Henderson
35ac82f2a3 Fri Sep 4 13:54:23 1998 David Miller <davem@dm.cobaltmicro.com>
* elf32-sparc.c (elf32_sparc_relocate_section): Properly adjust
        the addend of a dynamic relocation referencing a section.
        * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
        (sparc64_elf_finish_dynamic_symbol): Fix the PLT relocation offset.
1998-09-04 20:57:07 +00:00
Catherine Moore
dbfd71f987 fix date 1998-09-04 15:06:32 +00:00
Catherine Moore
2d94a86b15 remove garbage 1998-09-04 14:22:03 +00:00
Richard Henderson
df775531ca * emulparams/d10velf.sh (TEMPLATE_NAME): Use elf32. 1998-09-04 00:31:41 +00:00
Richard Henderson
37b68f729c * elflink.h (bfd_elfNN_size_dynamic_sections): Verify that the
bed has a size_dynamic_sections routine before trying to use it.
1998-09-04 00:30:35 +00:00
Mark Alexander
11ac795258 * config/mn10300/tm-mn10300.h (FP_REGNUM): Redefine to be a
pseudo-register, not the same as a3.
	(D2_REGNUM, D3_REGNUM, A2_REGNUM, A3_REGNUM): Define.
	* mn10300-tdep.c (fix_frame_pointer): New function.
	(set_movm_offsets): Use register number macros instead of
	hard-coded constants.
	(mn10300_analyze_prologue): Fix to handle redefinition of FP_REGNUM.
	(mn10300_frame_chain):  Fix to handle redefinition of FP_REGNUM;
	use register number macros instead of hard-coded constants;
	add missing parameter to call of mn10300_analyze_prologue.
	(mn10300_frame_saved_pc): Use register number macros instead of
	hard-coded constants.
1998-09-03 22:59:13 +00:00
Stan Shebs
3fe41381a6 Killed the clone 1998-09-03 21:54:38 +00:00
Ulrich Drepper
20d1fa42af Fix typo. 1998-09-02 21:56:26 +00:00
Ulrich Drepper
e5a32b1725 * elf/readelf.c (process_dynamic_segment): Print DT_* value only if
do_dynamic.
(do_histogram): New variable.
(options): New long option histogram.  Set do_histogram if this
option is used.
(usage): Document --histogram.
(parse_args): Handle 0 return value from getopt_long.  Enable
do_histogram for -a.
(process_symbol_table): Read hash table also if only do_histogram.
Add code to print hash table histogram.
1998-09-02 21:55:37 +00:00
Michael Snyder
a6ac3b6bb5 Thu Aug 20 11:30:17 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* elf.c: comment and formatting cleanups.
        * elfcore.h: ditto.
1998-09-02 19:28:55 +00:00
Keith Seitz
b2a9dbf70f * gdbtk-cmds.c (gdb_cmd): Do not run the timer when downloading --
the ui_progress_hook that has been installed will actually
        update the gui for us.
1998-09-02 19:01:13 +00:00
Richard Henderson
2dabca81ba * frags.c (frag_grow): Include the size of the frag struct in the
obstack chunk size.
1998-09-02 18:35:47 +00:00
Richard Henderson
b90891398c * config/tc-sparc.c (sparc_ip): Allow all digits in an instruction
to handle edge8 and edge16.
1998-09-02 18:30:59 +00:00
Zdenek Radouch
e01b420025 Modifications/fixes to support the ARM/ELF port. 1998-09-01 16:24:23 +00:00