Commit Graph

34215 Commits

Author SHA1 Message Date
Michal Ludvig d06f167ab3 2002-04-24 Michal Ludvig <mludvig@suse.cz>
* gdbserver/linux-low.c (regsets_fetch_inferior_registers),
	(regsets_store_inferior_registers): Removed cast to int from
	ptrace() calls.
	* gdbserver/regcache.h: Added declaration of struct inferior_info.
2002-04-24 15:33:55 +00:00
Andreas Schwab 062cd5e7fc * config/tc-i386.c (output_jump, output_disp)
(md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
	more.
	(md_apply_fix3): Remember addend value for rela relocations.
	(tc_gen_reloc): Correctly compute pc-relative relocation addend.
2002-04-24 14:56:07 +00:00
David S. Miller 21d83aa55a 2002-04-24 David S. Miller <davem@redhat.com>
* i960-tdep.c (register_in_window_p): New function.
	(i960_find_saved_register): Use it instead of
	REGISTER_IN_WINDOW_P.
	* config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.

2002-04-24  David S. Miller  <davem@redhat.com>

	* gdbint.texinfo (REGISTER_IN_WINDOW): Delete definition.
2002-04-24 13:48:39 +00:00
Nick Clifton c6ed57bdd2 Add Indonesian translation 2002-04-24 09:01:51 +00:00
David S. Miller 4867e41ec7 2002-04-24 David S. Miller <davem@redhat.com>
* symtab.h (find_stab_function_addr): Kill extern.
	* minsyms.c (find_stab_function_addr): Remove from here...
	* dbxread.c: ... to here, and mark it static.
2002-04-24 08:00:54 +00:00
David S. Miller 69cdf6a234 2002-04-20 David S. Miller <davem@redhat.com>
* sparc-tdep.c (sparc_pop_frame): Only need to allocate
	SPARC_INTREG_SIZE * 16 bytes for reg_temp.
2002-04-24 07:12:27 +00:00
David S. Miller 5a595886e4 2002-04-21 David S. Miller <davem@redhat.com>
* remote-vxsparc.c (vx_read_register): Fix typo, we want
	REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
	(vx_write_register): Likewise.
2002-04-24 05:34:52 +00:00
Elena Zannoni 96b3d632cb 2002-04-23 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/help.exp: Change 'help status' to allow for target
	dependent output differences.
2002-04-24 03:07:33 +00:00
gdbadmin 79ebd1633b *** empty log message *** 2002-04-24 00:00:34 +00:00
Alan Modra 9146f2980c daily update 2002-04-24 00:00:05 +00:00
Michael Snyder 11d3b27da0 2002-04-22 Michael Snyder <msnyder@redhat.com>
* arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
2002-04-23 18:10:06 +00:00
H.J. Lu b7efdfcc1b 2002-04-23 H.J. Lu <hjl@gnu.org>
* gas/mips/elempic.d: Use empic.l.
	* gas/mips/telempic.d: Likewise.
	* gas/mips/tempic.d: Likewise.
2002-04-23 17:20:22 +00:00
H.J. Lu 978ee720ae 2002-04-23 H.J. Lu <hjl@gnu.org>
* gas/hppa/parse/parse.exp: Don't expect failure on line separator
	test on hppa*-*-linux* nor hppa*-*-netbsd*.
2002-04-23 16:19:08 +00:00
Joel Brobecker 1da1a19239 * source.c (is_regular_file): New function.
(openp): Check wether file to open is a regular file
        to avoid opening directories.
2002-04-23 11:09:10 +00:00
Michael Chastain 5019bb5448 2002-04-22 Michael Chastain <mec@shout.net>
* gdb.c++/local.exp: Add PR numbers: gdb/482, gdb/483.
2002-04-23 05:18:28 +00:00
Alan Modra 067fa4a66b * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition
under which a plt call stub is used.
	(final_link_relocate): Similarly.
	(allocate_plt_static): Clear h-plabel except when plt entry is
	exclusively used for a plabel.
	(allocate_dynrelocs): Use the above to simplify plt sizing.
	(struct elf32_hppa_link_hash_table): Add has_22bit_branch.
	(elf32_hppa_link_hash_table_create): Init.
	(BL22_RP): Define.
	(hppa_build_one_stub): Use BL22_RP if has_22bit_branch.
	(elf32_hppa_check_relocs): Set has_22bit_branch.

	* elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message.
	(final_link_relocate): Likewise.
2002-04-23 05:11:23 +00:00
Michael Chastain a805a116a8 2002-04-22 Michael Chastain <mec@shout.net>
* gdb.c++/method.exp: Fix syntax of reference to gdb/277.
2002-04-23 05:08:31 +00:00
Jason Thorpe baa6f10b32 * findvar.c (extract_signed_integer): Cast printf argument
to suppress format warning.
(extract_unsigned_integer): Likewise.
* infcmd.c (registers_info): Likewise.
* top.c (get_prompt_1): Likewise.
* valops.c (value_assign): Likewise.
* valprint.c (print_decimal): Likewise.
2002-04-23 03:00:57 +00:00
H.J. Lu b2c4da8122 2002-04-22 H.J. Lu (hjl@gnu.org)
* c-exp.y (typebase): Support

	[long|long long|short] [signed|unsigned] [int|]

	and

	signed [long|long long|short] int
2002-04-23 02:06:54 +00:00
Jason Thorpe f267bd6a08 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
and vax-tdep.h.
* vax-tdep.h: New file.
* vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
Make several routines static.
(vax_get_saved_register): New function.
(vax_gdbarch_init): New function.
(_initialize_vax_tdep): Register vax_gdbarch_init.
* config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
Remove macros now under the control of gdbarch.
2002-04-23 00:53:31 +00:00
gdbadmin 2a290ed49a *** empty log message *** 2002-04-23 00:00:11 +00:00
Alan Modra bfa37dc8d3 daily update 2002-04-23 00:00:07 +00:00
Michael Snyder da3c6d4a30 2002-04-22 Michael Snyder <msnyder@redhat.com>
* arm-tdep.c: Some whitespace and coding standards tweaks.
2002-04-22 23:22:04 +00:00
Jason Thorpe a33f755889 * vax-tdep.c: Include regcache.h.
(vax_call_dummy_words): New.
(sizeof_vax_call_dummy_words): New.
(vax_fix_call_dummy): New function.
(vax_saved_pc_after_call): Ditto.
* config/vax/tm-vax.h: Don't include regcache.h.
(SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
(CALL_DUMMY): Remove.
(CALL_DUMMY_WORDS): Define.
(SIZEOF_CALL_DUMMY_WORDS): Define.
(FIX_CALL_DUMMY): Use vax_fix_call_dummy.
2002-04-22 23:13:50 +00:00
Michael Snyder 47a73475e9 2002-04-18 Michael Snyder <msnyder@redhat.com>
* arm-tdep.h: Change regnum defines to enums for ease of debugging.
2002-04-22 22:46:40 +00:00
Chris Demetriou 6398a4776e 2002-04-22 Chris Demetriou <cgd@broadcom.com>
* gas/mips/mips-gp64-fp32.l: New file.
        * gas/mips/mips-gp64-fp32.d: Use mips-gp64-fp32.l to check stderr
        output.
        * gas/mips/mips-gp64-fp64.l: New file.
        * gas/mips/mips-gp64-fp64.d: Use mips-gp64-fp64.l to check stderr
        output.
2002-04-22 22:29:47 +00:00
Chris Demetriou 2b2e39bfa5 2002-04-22 Chris Demetriou <cgd@broadcom.com>
* config/tc-mips.c (macro_build): Add close-parenthesis missing
        from previous change.

(also, fix ChangeLog entry for previous patch.)
2002-04-22 21:50:44 +00:00
Jakub Jelinek af40ce3c79 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build
search table if some FDE is DW_EH_PE_aligned encoded either.
	(_bfd_elf_write_section_eh_frame): Handle terminating FDE specially.
2002-04-22 21:37:48 +00:00
Jason Thorpe 52efde73b9 * vax-tdep.c (vax_frame_chain): New function.
(vax_push_dummy_frame): Ditto.
(vax_pop_frame): Ditto.
* config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
(FRAMELESS_FUNCTION_INVOCATION): Use
generic_frameless_function_invocation_not.
(PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
(POP_FRAME): Use vax_pop_frame.
2002-04-22 21:32:05 +00:00
Eric Christopher 80cc45a581 2002-04-22 Eric Christopher <echristo@redhat.com>
* config/tc-mips.c: Add warning if macro instructions are expanded
	into a branch delay slot.
2002-04-22 21:21:06 +00:00
Chris Demetriou ff970196bd 2002-04-22 Chris Demetriou <cgd@broadcom.com>
* lib/gas-defs.exp (run_dump_test): Support new attribute "stderr"
        which is a file used to regexp_diff the assembler's pruned stderr
        output.
        (write_file): New helper function to write a string into a file.

        * gas/mips/empic.l: New file which matches empic tests' warnings.
        * gas/mips/empic.d: Use empic.l.
2002-04-22 21:14:43 +00:00
Jason Thorpe ea74468cd0 * vax-tdep.c (vax_store_struct_return): New function.
(vax_extract_return_value): Ditto.
(vax_store_return_value): Ditto.
(vax_extract_struct_value_address): Ditto.
* config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
vax_store_struct_return.
(EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
(STORE_RETURN_VALUE): Use vax_store_return_value.
(EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
2002-04-22 20:59:28 +00:00
Jason Thorpe 5516aa921e * vax-tdep.c (vax_frame_saved_pc): New function.
(vax_frame_args_address_correct): Ditto.
(vax_frame_args_address): Ditto.
(vax_frame_locals_address): Ditto.
(vax_frame_num_args): Move code to be in proximity to
other frame-related functions.
* config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
(FRAME_SAVED_PC): Use vax_frame_saved_pc.
(FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
(FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
(FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
2002-04-22 20:38:41 +00:00
H.J. Lu 36af0b355e 2002-04-22 H.J. Lu (hjl@gnu.org)
* Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
	includedir.
2002-04-22 20:19:52 +00:00
Jason Thorpe ab62c900e2 * vax-tdep.c (vax_frame_init_saved_regs): New function.
* config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
(FRAME_INIT_SAVED_REGS): New macro.
2002-04-22 19:44:05 +00:00
Jason Thorpe 7232b100b9 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd. 2002-04-22 17:01:55 +00:00
Jason Thorpe b70d2aeea9 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
where needed.
(fetch_osf_core_registers): Likewise.
(supply_gregset): Likewise.
2002-04-22 15:59:11 +00:00
Jakub Jelinek 09ae86c216 * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative.
(_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel
	encoded personality.
	(_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality
	for CIE/FDE removal.
2002-04-22 12:06:01 +00:00
Joel Brobecker a0e8a2d152 Document some changes to address internal-errors on Tru64 5.1.
Add missing blank line before one of the previous entries.
2002-04-22 10:20:44 +00:00
Joel Brobecker 0e931cf0ee * symfile.h (get_section_index): Define.
* symfile.c (get_section_index): New function.
        * mdebugread.c (SC_IS_SBSS): New macro.
        (SC_IS_BSS): Return true for the scBss storage class only, as
        the scSBss storage class refers to the .sbss section.
        (parse_partial_symbols): Discard the symbols which associated
        section does not exist.
        Make sure to use the .sbss section index for symbols which
        storage class is scBss, rather than using the .bss section index.
2002-04-22 10:19:35 +00:00
Joel Brobecker e2f6d8e5e4 * symfile.h (get_section_index): Define.
* symfile.c (get_section_index): New function.
* mdebugread.c (SC_IS_SBSS): New macro.
(SC_IS_BSS): Return true for the scBss storage class only, as
the scSBss storage class refers to the .sbss section.
(parse_partial_symbols): Discard the symbols which associated
section does not exist.
Make sure to use the .sbss section index for symbols which
storage class is scBss, rather than using the .bss section index.
2002-04-22 10:19:04 +00:00
Jason Thorpe 51eb8b0846 * vax-tdep.c: Update copyright years.
(vax_register_name): New function.
(vax_register_byte): Ditto.
(vax_register_raw_size): Ditto.
(vax_register_virtual_size): Ditto.
(vax_register_virtual_type): Ditto.
* config/vax/tm-vax.h: Update copyright years.
(REGISTER_NAMES): Remove.
(REGISTER_NAME): Define.
(REGISTER_BYTE): Use vax_register_byte.
(REGISTER_RAW_SIZE): Use vax_register_raw_size.
(REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
(REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
2002-04-22 06:56:04 +00:00
David S. Miller 4eb8c7fc85 Revert Sparc OS abi changes. 2002-04-22 03:51:34 +00:00
Andrew Cagney 6cc1c0a886 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
declaration
* arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
2002-04-22 02:18:59 +00:00
David S. Miller 7673a6cc14 2002-04-21 David S. Miller <davem@redhat.com>
* gdbint.texinfo (SKIP_PROLOGUE_FRAMELESS_P): Delete definition.
2002-04-22 01:39:54 +00:00
David S. Miller 99633aa4f8 2002-04-20 David S. Miller <davem@redhat.com>
* sparc-tdep.h: New file.
	* sparc-tdep.c (elf-bfd.h): Include.
	(SPARC_HAS_FPU, FP_REGISTER_BYTES, FP_MAX_REGNUM,
	SPARC_INTREG_SIZE, DUMMY_REG_SAVE_OFFSET, gdbarch_tdep,
	CALL_DUMMY_CALL_OFFSET): Move out to sparc-tdep.h
	(sparc_dump_tdep): New function.
	(_initialize_sparc_tdep): Use gdbarch_register instead of
	register_gdbarch_init which is deprecated.
	(process_note_abi_tag_sections, sparc_abi_handler,
	sparc_abi_handler_list, sparc_gdbarch_register_os_abi): New.
	(sparc_gdbarch_init): Determine elf os ident key based upon
	either the elf header or by using process_note_abi_tag_sections.
	Fix 'gdbarch already exists' test by comparing os_ident as well.
	As the last action, invoke OS abi_handler if installed.
2002-04-22 01:02:02 +00:00
David S. Miller 9319a2feca 2002-04-21 David S. Miller <davem@redhat.com>
* arch-utils.c (generic_prologue_frameless_p): Kill
	SKIP_PROLOGUE_FRAMELESS_P code.
	* config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
	references.
	(PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
	* arc-tdep.c (arc_prologue_frameless_p): Implement.
	* config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
	references.
	(PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
	* sparc-tdep.c (sparc_prologue_frameless_p): Implement.
	(sparc_gdbarch_init): Pass it to
	set_gdbarch_prologue_frameless_p.
2002-04-22 00:27:39 +00:00
Alan Modra eaa7db9139 daily update 2002-04-22 00:03:58 +00:00
gdbadmin 6ba6ed7617 *** empty log message *** 2002-04-22 00:00:33 +00:00
Jason Thorpe e9ed6d011c * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
(alphabsd-nat.o): New dependency list.
2002-04-21 22:03:10 +00:00