Andrew Cagney
76860b5fb3
* gdbarch.sh (struct gdbarch_data): Add field init_p.
...
(register_gdbarch_data): Initialize init_p.
(gdbarch_data): Initialize data pointer using the init function.
(init_gdbarch_data): Delete function.
(gdbarch_update_p): Update.
(initialize_non_multiarch): Update.
(struct gdbarch): Add field initialized_p.
* gdbarch.h, gdbarch.c: Re-generate.
2002-06-08 18:09:01 +00:00
Andrew Cagney
3010767930
* gdbint.texinfo (Releasing GDB): Revise the section ``Cut the
...
Branch''.
2002-06-08 17:50:59 +00:00
Daniel Jacobowitz
b7b05886f4
2002-06-08 Daniel Jacobowitz <drow@mvista.com>
...
Based on patch from Matt Green:
* config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
* config/tc-mips.c (s_mips_file): Renamed from s_file.
(s_mips_loc): New function.
(mips_nonecoff_pseudo_table): Call them.
(append_insn): Call dwarf2_emit_insn.
2002-06-08 16:04:35 +00:00
Alan Modra
21e152480c
* elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Make static.
2002-06-08 12:27:33 +00:00
Alan Modra
796f6cb780
* Makefile.am: Fix quote style in last change.
...
* Makefile.in: Regenerate.
2002-06-08 08:50:44 +00:00
Alan Modra
e90b95f66d
* Makefile.am: Run "make dep-am".
...
* Makefile.in: Regenerate.
2002-06-08 08:45:03 +00:00
Alan Modra
fa44922763
* Makefile.am: Run "make dep-am".
...
* Makefile.in: Regenerate.
* doc/Makefile.in: Regnerate.
2002-06-08 08:44:18 +00:00
Alan Modra
4da711b140
* ldexp.c: Replace CONST with const.
...
* ldfile.c: Likewise.
* ldfile.h: Likewise.
* ldlex.l: Likewise.
* mri.c: Likewise.
* pe-dll.h: Likewise.
2002-06-08 07:39:45 +00:00
Alan Modra
b1f88ebebf
* bucomm.c: Replace CONST with const.
...
* nm.c: Likewise.
* objdump.c: Likewise.
2002-06-08 07:38:30 +00:00
Alan Modra
5a38dc70b4
* as.c: Replace CONST with const.
...
* write.c: Likewise.
* config/obj-coff.c: Likewise.
* config/tc-a29k.c: Likewise.
* config/tc-arm.c: Likewise.
* config/tc-dlx.c: Likewise.
* config/tc-h8300.c: Likewise.
* config/tc-h8500.c: Likewise.
* config/tc-i370.c: Likewise.
* config/tc-i860.c: Likewise.
* config/tc-i960.c: Likewise.
* config/tc-m68hc11.c: Likewise.
* config/tc-m68k.c: Likewise.
* config/tc-m88k.c: Likewise.
* config/tc-mcore.c: Likewise.
* config/tc-mips.c: Likewise.
* config/tc-ns32k.c: Likewise.
* config/tc-pdp11.c: Likewise.
* config/tc-pj.c: Likewise.
* config/tc-s390.c: Likewise.
* config/tc-sh.c: Likewise.
* config/tc-sparc.c: Likewise.
* config/tc-tahoe.c: Likewise.
* config/tc-tic80.c: Likewise.
* config/tc-v850.c: Likewise.
* config/tc-vax.c: Likewise.
* config/tc-w65.c: Likewise.
* config/tc-z8k.c: Likewise.
2002-06-08 07:37:16 +00:00
Alan Modra
92007e403c
* a29k.h: Replace CONST with const.
...
(CONST): Don't define.
* convex.h: Replace CONST with const.
(CONST): Don't define.
* dlx.h: Replace CONST with const.
* or32.h (CONST): Don't define.
2002-06-08 07:32:12 +00:00
Alan Modra
56da5fedc7
* a29k-dis.c: Replace CONST with const.
...
* h8300-dis.c: Likewise.
* m68k-dis.c: Likewise.
* or32-dis.c: Likewise.
* sparc-dis.c: Likewise.
2002-06-08 07:29:27 +00:00
Alan Modra
3f9c735ef4
* armnetbsd.c: Replace CONST with const.
...
* corefile.c: Likewise.
* elf32-dlx.c: Likewise.
* elf64-mips.c: Likewise.
* mmo.c: Likewise.
* ns32knetbsd.c: Likewise.
2002-06-08 07:27:52 +00:00
Daniel Jacobowitz
c5dd6aab56
2002-06-08 Daniel Jacobowitz <drow@mvista.com>
...
Based on patch from Matt Green:
* config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
* config/tc-mips.c (s_mips_file): Renamed from s_file.
(s_mips_loc): New function.
(mips_nonecoff_pseudo_table): Call them.
(append_insn): Call dwarf2_emit_insn.
2002-06-08 05:37:29 +00:00
Chris Demetriou
f3c08b7e16
2002-06-07 Chris Demetriou <cgd@broadcom.com>
...
Ed Satterthwaite <ehs@broadcom.com>
* cp1.c (inner_mac, fp_mac, inner_rsqrt, fp_inv_sqrt)
(fp_rsqrt, fp_madd, fp_msub, fp_nmadd, fp_nmsub): New functions.
* sim-main.h (fp_rsqrt, fp_madd, fp_msub, fp_nmadd)
(fp_nmsub): New prototypes.
(RSquareRoot, MultiplyAdd, MultiplySub, NegMultiplyAdd)
(NegMultiplySub): New defines.
* mips.igen (RSQRT.fmt): Use RSquareRoot().
(MADD.D, MADD.S): Replace with...
(MADD.fmt): New instruction.
(MSUB.D, MSUB.S): Replace with...
(MSUB.fmt): New instruction.
(NMADD.D, NMADD.S): Replace with...
(NMADD.fmt): New instruction.
(NMSUB.D, MSUB.S): Replace with...
(NMSUB.fmt): New instruction.
2002-06-08 03:05:23 +00:00
Alan Modra
986b7daaef
* elf64-sparc.c (sparc64_elf_add_symbol_hook): Check the hash
...
table is elf64-sparc.
2002-06-08 03:01:47 +00:00
gdbadmin
d1761b83b1
*** empty log message ***
2002-06-08 00:00:33 +00:00
Alan Modra
965cd73762
daily update
2002-06-08 00:00:04 +00:00
Thiemo Seufer
5a65966349
* elfxx-mips.c (_bfd_mips_elf_relocate_section): Simplify code.
...
Fix RELA addends to get not shifted in the result. Don't do special
handling of R_MIPS_64 for NewABI.
2002-06-07 23:43:41 +00:00
Thiemo Seufer
a4672219e1
* config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
...
to -1.
(file_ase_mips16): New veriable.
(mips_eabi64): Remove.
(CPU_HAS_MIPS16): New define.
(CPU_HAS_MDMX): Fix data type.
(md_begin): Code cleanup. Use file_ase_mips16.
(mips_elf_final_processing): Handle mips16 header flag.
Handle EABI flag without intermediate variable.
2002-06-07 23:26:54 +00:00
Thiemo Seufer
437ee9d5ca
* doc/as.texinfo: Update MIPS documentation.
2002-06-07 23:07:19 +00:00
Chris Demetriou
52714ff9ee
2002-06-07 Chris Demetriou <cgd@broadcom.com>
...
Ed Satterthwaite <ehs@broadcom.com>
* cp1.c: Fix more comment spelling and formatting.
(value_fcr, store_fcr): Use fenr_FS rather than hard-coding value.
(denorm_mode): New function.
(fpu_unary, fpu_binary): Round results after operation, collect
status from rounding operations, and update the FCSR.
(convert): Collect status from integer conversions and rounding
operations, and update the FCSR. Adjust NaN values that result
from conversions. Convert to use sim_io_eprintf rather than
fprintf, and remove some debugging code.
* cp1.h (fenr_FS): New define.
2002-06-07 22:55:49 +00:00
Thiemo Seufer
85b5171940
* config/tc-mips.c: Add define for $zero register.
...
(md_begin): Add $zero as alias name for $0.
(insn_uses_reg): Use ZERO define.
(mips_ip): Add $zero as alias name for $0.
(mips16_ip): Likewise.
(s_cplocal): Demand empty rest of input line.
(tc_get_register): Likewise. Add support for $kt0, kt1 register
names. Use ZERO define. Fix input_line_pointer progress.
2002-06-07 22:54:47 +00:00
Chris Demetriou
577d8c4b5a
2002-06-07 Chris Demetriou <cgd@broadcom.com>
...
* cp1.c (convert): Remove unusable debugging code, and move MIPS
rounding mode to sim FP rounding mode flag conversion code into...
(rounding_mode): New function.
2002-06-07 16:50:42 +00:00
Chris Demetriou
196496eda0
2002-06-07 Chris Demetriou <cgd@broadcom.com>
...
* cp1.c: Clean up formatting of a few comments.
(value_fpr): Reformat switch statement.
2002-06-07 16:43:19 +00:00
H.J. Lu
91a106e65e
2002-06-07 H.J. Lu <hjl@gnu.org>
...
* readelf.c (DW_CFA_GNU_args_size): Don't define.
(DW_CFA_GNU_negative_offset_extended): Likewise.
(DW_CFA_GNU_window_save): Likewise.
(display_debug_frames): Handle DW_CFA_offset_extended_sf,
DW_CFA_def_cfa_sf and DW_CFA_def_cfa_offset_sf.
2002-06-07 16:42:31 +00:00
Michal Ludvig
8dda97708f
2002-06-07 Michal Ludvig <mludvig@suse.cz>
...
* x86-64-linux-nat.c (x86_64_fxsave_offset): New.
(supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
better do the things actually here.
* x86-64-tdep.c (x86_64_register_name2nr): New.
(x86_64_register_name): Renamed to x86_64_register_nr2name.
(x86_64_gdbarch_init): Respect the above change.
* x86-64-tdep.h (x86_64_register_name2nr)
(x86_64_register_nr2name): Add prototypes.
* config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
2002-06-07 16:11:10 +00:00
Alan Modra
eb95bb9a4e
* emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
2002-06-07 15:09:21 +00:00
Alan Modra
9bab7074b0
Replace bfd_alloc/bfd_malloc + memset with bfd_zalloc/bfd_zmalloc
2002-06-07 15:04:49 +00:00
Alan Modra
9758f3fc77
* symbols.c: Replace CONST by const throughout.
...
(symbol_find_exact): Split out from..
(symbol_find_base): ..here.
* symbols.h: Replace CONST by const throughout.
(symbol_find_exact): Declare.
* config/obj-elf.c: #include "struc-symbol.h".
(elf_frob_file): If group name matches an exported symbol, use that
symbol for the signature and ".group" as the section name.
2002-06-07 14:57:50 +00:00
Alan Modra
1126897b36
* elf-bfd.h (struct bfd_elf_section_data <group_name>): Replace with
...
"group" union.
(elf_group_name): Update.
(elf_group_id): Define.
(bfd_elf_set_group_contents): Declare.
* elf.c (elf_fake_sections): Qualify use of elf_group_name.
(set_group_contents): Rename to bfd_elf_set_group_contents. Remove
ATTRIBUTE_UNUSED from failedptrarg. If elf_group_id is set, use
that sym for the signature.
(_bfd_elf_compute_section_file_positions): Don't call
set_group_contents for "ld -r" case.
(swap_out_syms): Use bfd_zalloc.
* elflink.h (elf_link_add_archive_symbols): Likewise.
(NAME(bfd_elf,size_dynamic_sections)): Likewise.
(elf_bfd_final_link): Call bfd_elf_set_group_contents.
2002-06-07 14:57:11 +00:00
Nick Clifton
e0076ab314
Enable pei386_auto_import by default. Only print a info message about auto
...
imports being resilved if this feature was not requested via a command line
switch.
2002-06-07 14:56:01 +00:00
Nick Clifton
6ab6b380ee
When computing size of symbols for an ELF target use the internal size field.
2002-06-07 11:02:48 +00:00
Nick Clifton
1634475f71
Fix phdrs2 test
2002-06-07 10:30:56 +00:00
Joern Rennecke
dbb4348d4a
Add comment for last change.
2002-06-07 10:24:56 +00:00
Alan Modra
3fad3c7c22
* elf64-ppc.c (ppc64_elf_relocate_section): Allow unresolved
...
relocs in opd for non-shared too.
2002-06-07 10:21:53 +00:00
Alan Modra
f13a54248a
* scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
2002-06-07 09:59:07 +00:00
Alan Modra
c46f20ef0a
* Makefile.am (libbfd.h): Don't use "echo -n".
...
(libcoff.h, bfd.h): Likewise.
* Makefile.in: Regenerate.
2002-06-07 07:37:20 +00:00
Chris Demetriou
cfe9ea23c7
2002-06-06 Chris Demetriou <cgd@broadcom.com>
...
Ed Satterthwaite <ehs@broadcom.com>
* cp1.h: New file.
* sim-main.h: Include cp1.h.
(SETFCC, GETFCC, IR, UF, OF, DX, IO, UO, FP_FLAGS, FP_ENABLE)
(FP_CAUSE, GETFS, FP_RM_NEAREST, FP_RM_TOZERO, FP_RM_TOPINF)
(FP_RM_TOMINF, GETRM): Remove. Moved to cp1.h.
(FP_FS, FP_MASK_RM, FP_SH_RM, Nan, Less, Equal): Remove.
(value_fcr, store_fcr, test_fcsr, fp_cmp): New prototypes.
(ValueFCR, StoreFCR, TestFCSR, Compare): New macros.
* cp1.c: Don't include sim-fpu.h; already included by
sim-main.h. Clean up formatting of some comments.
(NaN, Equal, Less): Remove.
(test_fcsr, value_fcr, store_fcr, update_fcsr, fp_test)
(fp_cmp): New functions.
* mips.igen (do_c_cond_fmt): Remove.
(C.cond.fmta, C.cond.fmtb): Replace uses of do_c_cond_fmt_a with
Compare. Add result tracing.
(CxC1): Remove, replace with...
(CFC1a, CFC1b, CFC1c, CTC1a, CTC1b, CTC1c): New instructions.
(DMxC1): Remove, replace with...
(DMFC1a, DMFC1b, DMTC1a, DMTC1b): New instructions.
(MxC1): Remove, replace with...
(MFC1a, MFC1b, MTC1a, MTC1b): New instructions.
2002-06-07 00:13:24 +00:00
Alan Modra
feb2269354
daily update
2002-06-07 00:11:11 +00:00
gdbadmin
42b2198cd1
*** empty log message ***
2002-06-07 00:00:32 +00:00
Jeff Law
76f99c63fb
* elf32-h8300.c (elf32_h8_relax_section): Ignore uninteresting
...
relocations.
2002-06-06 21:33:11 +00:00
Michael Snyder
c5984d7012
2002-06-06 Michael Snyder <msnyder@redhat.com>
...
* gdb.base/overlays.exp: Record addresses of overlay
functions in TCL variables rather than in GDB variables,
to avoid having GDB convert them to pointers (with loss
of information).
2002-06-06 20:26:10 +00:00
Michael Snyder
99a8512bd1
2002-06-06 Michael Snyder <msnyder@redhat.com>
...
* gdb.base/d10v.ld: Merge in several years worth of
default linker script changes.
2002-06-06 19:12:39 +00:00
Michael Snyder
c15b0d21ff
2002-06-06 Michael Snyder <msnyder@redhat.com>
...
* gdb.base/long_long.exp: Add check for sizeof (long double).
2002-06-06 19:08:18 +00:00
Michael Snyder
7bd91a28eb
2002-06-06 Michael Snyder <msnyder@redhat.com>
...
* d10v-tdep.c (d10v_push_arguments): Handle struct_return.
Delete extra braces and re-indent.
2002-06-06 18:57:08 +00:00
Michael Snyder
3d79a47c75
2002-06-06 Michael Snyder <msnyder@redhat.com>
...
* d10v-tdep.c (d10v_store_return_value): Char return values
must be shifted over by one byte in R0.
(d10v_extract_return_value): Delete extra braces, re-indent.
2002-06-06 18:47:35 +00:00
Joern Rennecke
9691d64f9a
* config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
...
but warn about it.
* testsuite/gas/sh/pcrel.s: Also test @(symbol,pc).
* testsuite/gas/sh/pcrel.d: Update.
* testsuite/gas/sh/pcrel.l: New file.
2002-06-06 17:29:55 +00:00
Daniel Jacobowitz
ffdefa66c4
2002-06-06 Daniel Jacobowitz <drow@mvista.com>
...
* tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
and mips_opts.ase_mdmx if they are uninitialized.
2002-06-06 16:38:01 +00:00
Elena Zannoni
095a4c965d
2002-06-06 Elena Zannoni <ezannoni@redhat.com>
...
* d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
(d10v_register_virtual_type): Make $fp and $sp be pointer to data.
(d10v_integer_to_address): Rewrite.
(d10v_frame_init_saved_regs): When reading fp and sp registers use
the d10v specific functions which take care of converting to the
correct space.
2002-06-06 16:35:37 +00:00