Commit Graph

39504 Commits

Author SHA1 Message Date
gdbadmin 6a7d64f6f0 *** empty log message *** 2003-05-26 00:00:32 +00:00
Andreas Schwab 78bf922a93 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
stack_align and deprecated_extra_stack_alignment_needed.
	(m68k_stack_align): Delete.
2003-05-25 21:15:20 +00:00
Andreas Schwab eb2e12d711 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
(m68k_register_virtual_size): Likewise.
	(altos_skip_prologue): Remove obsolete function.
	(isi_frame_num_args): Likewise.
	(news_frame_num_args): Likewise.
	(m68k_fix_call_dummy): Make static.
	(m68k_push_dummy_frame): Likewise.
	(m68k_pop_frame): Likewise.
	(m68k_skip_prologue): Likewise.
	(m68k_frame_init_saved_regs): Likewise.
	(m68k_saved_pc_after_call): Likewise.
	(m68k_get_longjmp_target): Make multi-arch.
	(m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
	structure.  Register m68k_get_longjmp_target if enabled.
	* m68k-tdep.h (struct gdbarch_tdep): Define.
	* config/m68k/tm-m68k.h: Don't include "regcache.h".

	* Makefile.in (config.status): Also depend on configure.tgt
	and configure.host.
	(m68klinux-tdep.o): Update dependencies.
	* configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
	* m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
	(M68K_LINUX_JB_PC): Define.
	(m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
	and take additional parameter.
	(m68k_linux_sigtramp_saved_pc): Update.
	(m68k_linux_init_abi): Set jb_pc and jb_elt_size.  Register
	m68k_linux_pc_in_sigtramp, in_plt_section,
	find_solib_trampoline_target.
	* config/m68k/tm-linux.h: Don't include any tm headers.
	(START_INFERIOR_TRAPS_EXPECTED): Remove definition.
	(JB_ELEMENT_SIZE): Likewise.
	(JB_PC): Likewise.
	(GET_LONGJMP_TARGET): Likewise.
	(IN_SIGTRAMP): Likewise.
	(SVR4_SHARED_LIBS): Define this and include "solib.h".
2003-05-25 18:50:55 +00:00
Mark Kettenis eb2c22dc71 * sparc-tdep.c (sparc32_do_push_arguments): New function.
(sparc32_push_arguments): Re-implement by calling
sparc32_do_push_arguments.
2003-05-25 15:47:26 +00:00
Jason Thorpe 493e6a13fd * ld-mips-elf/mips-elf.exp: Make all NetBSD targets match as elf. 2003-05-25 14:36:19 +00:00
Mark Kettenis 44b7b84e51 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
SPARC_O1_REGNUM): New defines.
(sparc32_extract_return_value): Rewrite to operate on a regcache.
(sparc32_store_return_value): New function.
(sparc_extract_struct_value_address): Rewrite to operate on a
regcache.
(sparc_gdbarch_init): Don't set
deprecated_extract_struct_value_address.  Set
extract_struct_value_address instead. Don't set
deprecated_extract_return_value and deprecated_store_return_value
for 32-bit targets.  Set extract_return_value and
store_return_value instead.
* config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
DEPRECTAED_EXTRACT_RETURN_VALUE,
DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
(STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
(sparc_store_return_value): Remove prototype.
(sparc32_store_return_value): New prototype.
(sparc32_extract_return_value, sparc_extract_struct_value_address):
Adjust prototypes.
2003-05-25 11:58:08 +00:00
gdbadmin c9373d2edf *** empty log message *** 2003-05-25 00:00:33 +00:00
Mark Kettenis f6ad61e3d5 * sparcnbsd-tdep.c: Include "gdb_string.h". 2003-05-24 12:45:12 +00:00
Jason Eckhardt 14218d5f24 2003-05-23 Jason Eckhardt <jle@rice.edu>
gas:
        * config/tc-i860.c (target_xp): Declare variable.
        (OPTION_XP): Declare macro.
        (md_longopts): Add option -mxp.
        (md_parse_option): Set target_xp.
        (md_show_usage): Add -mxp usage.
        (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
        (md_assemble): Don't try expansions if XP_ONLY is set.
        * doc/c-i860.texi: Document -mxp option.

gas/testsuite:
        * gas/i860/xp.s: New file.
        * gas/i860/xp.d: New file.

include/opcode:
        * i860.h (expand_type): Add XP_ONLY.
        (scyc.b): New XP instruction.
        (ldio.l): Likewise.
        (ldio.s): Likewise.
        (ldio.b): Likewise.
        (ldint.l): Likewise.
        (ldint.s): Likewise.
        (ldint.b): Likewise.
        (stio.l): Likewise.
        (stio.s): Likewise.
        (stio.b): Likewise.
        (pfld.q): Likewise.

opcodes:
        * i860-dis.c (crnames): Add bear, ccr, p0, p1, p2, p3.
        (print_insn_i860): Grab 4 bits of the control register field
        instead of 3.
2003-05-24 04:22:23 +00:00
Andrew Cagney b276f1bbc9 2003-05-23 Andrew Cagney <cagney@redhat.com>
* p-valprint.c (pascal_val_print): Replace extract_address with
	the inline equivalent extract_unsigned_integer.
	* jv-valprint.c (java_value_print): Ditto.
	* ada-valprint.c (ada_val_print_1): Ditto.
	* ada-lang.h (EXTRACT_ADDRESS): Ditto.
2003-05-24 03:21:42 +00:00
gdbadmin 8d0fd02a11 *** empty log message *** 2003-05-24 00:00:03 +00:00
Eric Christopher 36ede617d2 2003-05-23 Eric Christopher <echristo@redhat.com>
* config/tc-mips.c (macro_build_jalr): Warning patrol.
2003-05-23 22:26:20 +00:00
Theodore A. Roth e76c5fcc46 * blockframe.c (frameless_look_for_prologue): Remove unused
after_prologue variable.
2003-05-23 17:05:19 +00:00
Mark Kettenis 2cdd89cb84 * blockframe.c (get_pc_function_start): Rewrite to avoid
asignments in if-statements.
2003-05-23 16:59:13 +00:00
Elena Zannoni 182d43bc6e 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
Committed by Elena Zannoni  <ezannoni@redhat.com>.
  	* coffread.c(coff_symtab_read): Do relocate static symbols from PE
	files, don't relocate absolute symbols (and do use mst_abs).
2003-05-23 16:16:00 +00:00
Andrew Cagney e8f3fcdde6 2003-05-23 Andrew Cagney <cagney@redhat.com>
* objc-lang.c: Include "gdb_assert.h".
	(objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
	(CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
	(gdb_check, gdb_check_fatal): Delete functions.
	(read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
	gdb_assert.
	(parse_selector, parse_method, find_methods, find_imps): Ditto.
	* Makefile.in (objc-lang.o): Update dependencies.
2003-05-23 16:02:30 +00:00
Richard Earnshaw 39c1d492f8 * gas/i860/i860.exp: Don't call exit if the target isn't an i860. 2003-05-23 11:03:35 +00:00
Alan Modra 0b4ffb6c40 daily update 2003-05-23 00:00:06 +00:00
gdbadmin 6590067365 *** empty log message *** 2003-05-23 00:00:02 +00:00
Ian Lance Taylor 3c23e6fb7e * disasm.c (gdb_disassemble_info): Initialize disassemble_info
with fprintf_filtered, not fprintf_unfiltered.
2003-05-22 23:00:15 +00:00
Jim Blandy e3e5a4f3c1 * gdb.base/corefile.exp: Tolerate stuff after argument parens in
backtrace.
2003-05-22 22:35:45 +00:00
Andrew Cagney af1342ab7f 2003-05-22 Andrew Cagney <cagney@redhat.com>
* stack.c (frame_info): Inline extract_address, replacing it with
	extract_unsigned_integer.
	* findvar.c (unsigned_pointer_to_address): Ditto.
	* dwarf2loc.c (dwarf_expr_read_reg): Ditto.
	* dwarf2expr.c (dwarf2_read_address): Ditto.
	* frame.c (frame_pc_unwind): Update comment.
	* dummy-frame.c (deprecated_read_register_dummy): Update comment.
2003-05-22 18:37:05 +00:00
Jeff Johnston 47e242eca4 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
* infptrace.c (detach): Call print_sys_errmsg rather than
        perror_with_name to issue warning message when errno is non-zero
        after calling ptrace detach.
2003-05-22 15:46:20 +00:00
Thiemo Seufer 3302cdecd1 * gas/mips/jal-newabi.s: New file, testcase for NewABI xgot jal macro.
* gas/mips/jal-newabi.d: Likewise.
	* gas/mips/mips.exp: Add new testcase.
2003-05-22 12:13:43 +00:00
Thiemo Seufer d0c728db63 * elf64-mips.c (elf_mips_gnu_rel16_s2): Add internally used
R_MIPS_GNU_REL16_S2 support.
	(bfd_elf64_bfd_reloc_type_lookup): Use it.
	(mips_elf64_rtype_to_howto): Use it.
	* elfn32-mips.c (elf_mips_gnu_rel16_s2): Add internally used
	R_MIPS_GNU_REL16_S2 support.
	(bfd_elf32_bfd_reloc_type_lookup): Use it.
	(mips_elf_n32_rtype_to_howto): Use it.
2003-05-22 09:27:52 +00:00
Thiemo Seufer a105a3009c * config/tc-mips.c (append_insn): Use actual relocation size for new
fixp's.	Don't relax overflow checking for partial_inplace relocations.
	Use the actual relocation type in combined relocs, not just the type
	of the first one.
	(macro_build_jalr): Use actual relocation size for new fix.
	(s_cpsetup, s_gpdword): Likewise.
2003-05-22 09:19:33 +00:00
Thiemo Seufer dc9461f6ad * config/tc-mips.c (macro): Don't use uninitialized tempreg. 2003-05-22 09:15:12 +00:00
Nick Clifton ceb410091e Do not producesection relative offsets for relocs that will not be based on the
section symbol.
2003-05-22 08:57:32 +00:00
Dave Anglin 759ebd765d * som.h: Define PA_2_0 before including a.out.h 2003-05-22 03:34:52 +00:00
DJ Delorie 61fa5f72e3 * configure.in: Use curly braces in the definition of tooldir.
* configure: Regenerate.
2003-05-22 02:47:53 +00:00
DJ Delorie 3a12db1680 * Makefile.tpl (configure-target-libiberty): Depend only on gcc, not
newlib or libgloss.
* Makefile.in: Regenerate.
2003-05-22 02:36:57 +00:00
Joel Brobecker e2ac8128ef * config/pa/tm-hppa.h: Delete some unused macros. Move some
macro definitions from here...
        * hppa-tdep.c: ...to there.
2003-05-22 02:04:05 +00:00
Alan Modra 2e7b6c08fd daily update 2003-05-22 00:00:06 +00:00
gdbadmin dab01c341b *** empty log message *** 2003-05-22 00:00:01 +00:00
Eric Christopher 143d77c5e9 2003-05-07 Eric Christopher <echristo@redhat.com>
Alexandre Oliva   <aoliva@redhat.com>

	* elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Adjust
	pic tests, change to warning.
	(_bfd_mips_elf_final_link): Remove EF_MIPS_CPIC flag setting.

2003-05-07  Eric Christopher  <echristo@redhat.com>

        * config/tc-mips.c (mips_abicalls): New variable.
        (md_parse_option): Use.
        (s_option): Ditto.
        (s_abicalls): Ditto.
        (mips_elf_final_processing): Set EF_MIPS_PIC and
        EF_MIPS_CPIC dependent on above.
2003-05-21 21:53:33 +00:00
DJ Delorie 44482353b7 * Makefile.tpl: Add missing empty maybe-check-gcc target.
* Makefile.in: Regenerate.
2003-05-21 21:08:20 +00:00
Andrew Cagney 125309b22a 2003-05-21 Andrew Cagney <cagney@redhat.com>
* gdbint.texinfo (Target Architecture Definition): Delete
	references to "extract_address" and "store_address".
2003-05-21 19:52:39 +00:00
Dave Anglin 85c77c383f * config/tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
* testsuite/gas/hppa/parse/parse.exp: Add "space.s".
	* testsuite/gas/hppa/parse/space.s: New file to test spaces.
2003-05-21 19:40:54 +00:00
Nick Clifton cea3d58d02 Check for a target triplet of shl-...-netbsdelf as well as shle-...-netbsdelf. 2003-05-21 13:06:30 +00:00
Nick Clifton 60e424089f Fix dst_mask for X_STORMY16_REL_12 reloc. 2003-05-21 12:36:46 +00:00
Nick Clifton 87ccc1b08d Move .file and .loc pseudo ops into obj-elf.c 2003-05-21 12:07:56 +00:00
Nick Clifton 7ed2c8b026 Fix dw3gencfi.c so that it will build on targets that do not define BFD_ASSEMBLER. 2003-05-21 11:31:07 +00:00
Maciej W. Rozycki fec2c52d36 2003-05-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
* configure.in: Use curly braces in the definition of tooldir.
	* configure: Regenerate.
2003-05-21 09:48:07 +00:00
Nick Clifton 385a4c14f3 USe is_elf_hash_table() to check for the presence of an elf_link_hash_table 2003-05-21 09:23:07 +00:00
Nick Clifton b9b171fb1a Fix typo "ink" instead of "link" 2003-05-21 09:09:37 +00:00
Jason Eckhardt 941bbe7882 2003-05-20 Jason Eckhardt <jle@rice.edu>
opcode/i860.h (flush): Set lower 3 bits properly and use 'L'
        for the immediate operand type instead of 'i'.
2003-05-21 05:06:49 +00:00
Jason Eckhardt a1dfe41ed9 2003-05-20 Jason Eckhardt <jle@rice.edu>
* gas/i860/branch.{s,d}: New files.
        * gas/i860/system.{s,d}: New files.
2003-05-21 05:01:47 +00:00
Jason Eckhardt ca464f3718 2003-05-20 Jason Eckhardt <jle@rice.edu>
opcode/i860.h (fzchks): Both S and R bits must be set.
        (pfzchks): Likewise.
        (faddp): Likewise.
        (pfaddp): Likewise.
        (fix.ss): Remove (invalid instruction).
        (pfix.ss): Likewise.
        (ftrunc.ss): Likewise.
        (pftrunc.ss): Likewise.
2003-05-21 02:06:40 +00:00
Jason Eckhardt 371409b0e0 2003-05-20 Jason Eckhardt <jle@rice.edu>
* gas/i860/bitwise.{s,d}: New files.
	* gas/i860/bte.{s,d}: New files.
	* gas/i860/fldst01.{s,d}: New files.
	* gas/i860/fldst02.{s,d}: New files.
	* gas/i860/fldst03.{s,d}: New files.
	* gas/i860/fldst04.{s,d}: New files.
	* gas/i860/fldst05.{s,d}: New files.
	* gas/i860/fldst06.{s,d}: New files.
	* gas/i860/fldst07.{s,d}: New files.
	* gas/i860/fldst08.{s,d}: New files.
	* gas/i860/float01.{s,d}: New files.
	* gas/i860/float02.{s,d}: New files.
	* gas/i860/float03.{s,d}: New files.
	* gas/i860/float04.{s,d}: New files.
	* gas/i860/form.{s,d}: New files.
	* gas/i860/iarith.{s,d}: New files.
	* gas/i860/ldst01.{s,d}: New files.
	* gas/i860/ldst02.{s,d}: New files.
	* gas/i860/ldst03.{s,d}: New files.
	* gas/i860/ldst04.{s,d}: New files.
	* gas/i860/ldst05.{s,d}: New files.
	* gas/i860/ldst06.{s,d}: New files.
	* gas/i860/pfam.{s,d}: New files.
	* gas/i860/pfmam.{s,d}: New files.
	* gas/i860/pfmsm.{s,d}: New files.
	* gas/i860/pfsm.{s,d}: New files.
	* gas/i860/regress01.{s,d}: New files.
	* gas/i860/shift.{s,d}: New files.
	* gas/i860/simd.{s,d}: New files.
2003-05-21 01:42:40 +00:00
Jason Eckhardt 6ccb204bf4 2003-05-20 Jason Eckhardt <jle@rice.edu>
* gas/i860: New directory.
        * gas/i860/i860.exp: New file.
2003-05-21 01:28:55 +00:00