Commit Graph

9438 Commits

Author SHA1 Message Date
Mark Kettenis 6ce6d90f6a * gdbarch.sh (regset_from_core_section): New method.
(struct regset): Declare opaque.
* gdbarch.c, gdbarch.h: Regenerated.
2003-10-11 12:52:30 +00:00
Alan Modra b98ed7bea6 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
_cooked_size and vma;  Use bfd_section_size and bfd_get_section_vma.
	Correct test for pc within section.
2003-10-11 12:40:38 +00:00
Mark Kettenis f6214256ec * gdbarch.sh: Remove trailing whitepsace from comments. 2003-10-11 12:05:44 +00:00
Roland McGrath a8f4cde1ae . 2003-10-11 01:57:07 +00:00
Michael Snyder 7427672472 2003-10-10 Michael Snyder <msnyder@redhat.com>
* d10v-tdep.c: Fix typo in comment.
2003-10-10 21:59:05 +00:00
Andrew Cagney e754ae69e1 2003-10-10 Andrew Cagney <cagney@redhat.com>
* rs6000-tdep.c (e500_store_return_value): Delete function.
	(e500_extract_return_value): Delete function.
	(rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
	"restore_return_value" to "ppc_sysv_abi_extract_return_value" and
	"ppc_sysv_abi_restore_return_value" where applicable.
	* ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
	(ppc_sysv_abi_extract_return_value): Declare.
	(ppc_sysv_abi_broken_store_return_value): Declare.
	(ppc_sysv_abi_broken_extract_return_value): Declare.
	(ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
	* ppc-sysv-tdep.c (return_value_convention): Move definition to
	start of file.
	(do_ppc_sysv_return_value): New function.
	(ppc_sysv_abi_extract_return_value): New function.
	(ppc_sysv_abi_store_return_value): New function.
	(ppc_sysv_abi_broken_extract_return_value): New function.
	(ppc_sysv_abi_broken_store_return_value): New function.
	(ppc_sysv_abi_use_struct_convention): Call
	do_ppc_sysv_return_value.
2003-10-10 21:32:47 +00:00
Joel Brobecker 8d4ce20aa3 * blockframe.c (inside_main_func): No longer use symbol_lookup()
to lookup the main function symbol.
2003-10-10 20:49:40 +00:00
Corinna Vinschen afce3d2aa2 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
types correctly.
	(sh_push_dummy_call_fpu): Fix argument passing rules.
	(sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
	float types.
	(sh3e_sh4_store_return_value): Ditto.
2003-10-10 20:30:45 +00:00
Elena Zannoni 7fe958be01 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
* sh-tdep.c (sh_use_struct_convention): Clarify one case in
	comment.
2003-10-10 19:20:31 +00:00
Corinna Vinschen 3f997a978d * sh-tdep.c (sh_use_struct_convention): Clean up to have a
more readable code.  Accomodate passing of bitfields.
2003-10-10 19:14:08 +00:00
Andrew Cagney 8be9034ab1 2003-10-10 Andrew Cagney <cagney@redhat.com>
* Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
	* rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
	push_dummy_call to ppc64_sysv_abi_push_dummy_call.
	* ppc-sysv-tdep.c: Include "gdb_assert.h".
	(ppc64_sysv_abi_push_dummy_call): New function.
	(ppc64_sysv_abi_broken_push_dummy_call): New function.
	* ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
	(ppc64_sysv_abi_broken_push_dummy_call): Declare.
2003-10-10 18:29:13 +00:00
Kazuhiro Inaoka 85a453d541 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
* NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
	* README: Ditto.
	* d10v-tdep.c: Ditto.
	* h8300-tdep.c: Ditto.
	* remote-e7000.c: Ditto.
	* remote-hms.c: Ditto.
	* ser-e7kpc.c: Ditto.
	* sh-stub.c: Ditto.
	* sh-tdep.c: Ditto.
	* sh-tdep.h: Ditto.
	* sh3-rom.c: Ditto.
	* sh64-tdep.c: Ditto.
	* top.c: Ditto.
	* wince.c: Ditto.
	* config/d10v/d10v.mt: Ditto.
	* config/sh/embed.mt: Ditto.
	* config/sh/linux.mt: Ditto.
	* config/sh/tm-linux.h: Ditto.
	* config/sh/tm-sh.h: Ditto.
	* config/sh/wince.mt: Ditto.
2003-10-10 07:13:11 +00:00
Andrew Cagney 221c12ff27 2003-10-09 Andrew Cagney <cagney@redhat.com>
Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
	* config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
	(SOFTWARE_SINGLE_STEP_P): Ditto.
	* config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
	* config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
	(SOFTWARE_SINGLE_STEP_P): Ditto.
	* rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
	software_single_step to rs6000_software_single_step.
2003-10-10 03:14:08 +00:00
Andrew Cagney ef5200c1f0 2003-10-09 Andrew Cagney <cagney@redhat.com>
Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
	* config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
	(SOFTWARE_SINGLE_STEP_P): Ditto.
	* config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
	* config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
	(SOFTWARE_SINGLE_STEP_P): Ditto.
	* rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
	software_single_step to rs6000_software_single_step.
2003-10-10 02:40:19 +00:00
Andrew Cagney 9644bbdd74 2003-10-09 Andrew Cagney <cagney@redhat.com>
* MAINTAINERS: Mark m32r-elf as buildable with -Werror.
2003-10-10 01:59:13 +00:00
Elena Zannoni f49c4e4e2b Fix typo in previous CL entry. 2003-10-10 01:43:56 +00:00
Michael Snyder f3efb16c92 2003-10-09 Michael Snyder <msnyder@redhat.com>
* frame.h: Fix	typo in	comment.
2003-10-10 00:32:04 +00:00
Michael Snyder 67938b61d0 2003-10-09 Michael Snyder <msnyder@redhat.com>
* dummy-frame.c: Fix typo.
2003-10-10 00:28:43 +00:00
Michael Snyder db72fa6bdc 2003-10-09 Michael Snyder <msnyder@redhat.com>
* d10v-tdep.c: Random whitespace/comment tweaks.
2003-10-10 00:25:43 +00:00
Elena Zannoni 9a5cef92c8 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
* sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
        (sh_gdbarch_init): Delete function, it's only used for dummy calls
        on stack.

        Based on input by Stephen Clarke (stephen.clarke@superh.com):
        * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
        in detail.
2003-10-09 20:23:41 +00:00
Daniel Jacobowitz 0f317a0ca7 * remote-mips.c (mips_initialize): Remove unneeded call to
get_selected_frame.  Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2003-10-09 14:34:04 +00:00
Daniel Jacobowitz bbab2f465b * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
a memory pointer.
2003-10-09 14:11:58 +00:00
Jeff Johnston 550950b8bf 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
* lin-lwp.c (stop_and_resume_callback): Set the resumed flag
        for any lwp we resume.
        (running_callback): Add lwps that have pending status events
        against them to be considered running.
2003-10-08 20:05:56 +00:00
Kazuhiro Inaoka 15c69bc792 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
* m32r-tdep.c : Include "dis-asm.h".
	* Makefile.in (m32r-tdep.o): Update dependencies.
2003-10-08 02:54:31 +00:00
Joel Brobecker 51065942b4 * completer.h (get_gdb_completer_word_break_characters): Delete.
* completer.c: include language.h.
        (gdb_completer_word_break_characters): Delete.
        (get_gdb_completer_word_break_characters): Delete.
        (location_completer): Use the word break characters of the current
        language.
        (complete_line): Likewise.
        (line_completion_function): Likewise.
        (skip_quoted_chars): Likewise.
        * Makefile.in (completer.o): Add dependency on language.h.
        * top.c (init_main): Set the readline word break characters
        to GDB's default word break characters.
2003-10-06 22:41:17 +00:00
Joel Brobecker 6084f43ac2 * language.h (language_defn): new field, la_word_break_characters.
* language.c (unknown_language_defn): Set new field to
        default_word_break_characters.
        (auto_language_defn): Likewise.
        (local_language_defn): Likewise.
        * ada-lang.c (ada_language_defn): Likewise.
        * c-lang.c (c_language_defn): Likewise.
        (cplus_language_defn): Likewise.
        (asm_language_defn): Likewise.
        (minimal_language_defn): Likewise.
        * f-lang.c (f_language_defn): Likewise.
        * jv-lang.c (java_language_defn): Likewise.
        * m2-lang.c (m2_language_defn): Likewise.
        * objc-lang.c (objc_language_defn): Likewise.
        * p-lang.c (pascal_language_defn): Likewise.
        * scm-lang.c (scm_language_defn): Likewise.
2003-10-06 22:38:03 +00:00
Andrew Cagney 944fcfab56 2003-10-06 Andrew Cagney <cagney@redhat.com>
* ppc-sysv-tdep.c: Re-indent.
2003-10-06 22:23:47 +00:00
Joel Brobecker 9f0a53037d * language.h (default_word_break_characters): Add prototype.
* language.c (default_word_break_characters): New function.
2003-10-06 22:21:52 +00:00
Andreas Schwab 7270b6ed5a * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
with %eax.
2003-10-06 21:58:20 +00:00
Andrew Cagney a5d61f6618 2003-10-06 Andrew Cagney <cagney@redhat.com>
* Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
	"h8500-tdep.c".
	(z8k-tdep.o): Delete custom build rule.
2003-10-06 21:56:40 +00:00
Andrew Cagney 1bfd8a8364 2003-10-06 Andrew Cagney <cagney@redhat.com>
* Makefile.in: Update all dependencies.
2003-10-06 20:43:39 +00:00
Andrew Cagney 17144ef849 2003-10-06 Andrew Cagney <cagney@redhat.com>
* MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
	No longer list PA as as obsolete candidate.  List m32r as
	broken instead of obsolete.
2003-10-06 20:38:17 +00:00
Andrew Cagney a5679ae50d 2003-10-06 Andrew Cagney <cagney@redhat.com>
* config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
	* config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
	* config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
	* config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
	* config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
	* config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
	* config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
	* config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
	* config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
	* config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
	* config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
	* config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
	* config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
	* config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
	* config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
	* config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
	* config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
	* config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
	* config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
	* config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
	* config/z8k/z8k.mt: Ditto.
2003-10-06 20:23:41 +00:00
Andrew Cagney 4a8269c0f0 2003-10-06 Andrew Cagney <cagney@redhat.com>
* NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
	h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
	mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
	i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
	sparclite were removed.
	* configure.host, configure.tgt: Remove corresponding tuples.
2003-10-06 19:47:21 +00:00
Andrew Cagney 41989fcd80 2003-10-06 Andrew Cagney <cagney@redhat.com>
* breakpoint.c, breakpoint.h: Remove obsolete code and comments.
	* buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
	* monitor.c, sparc-tdep.c, stabsread.c: Ditto.
	* stabsread.h, xcoffread.c: Ditto.
2003-10-06 19:27:13 +00:00
Andrew Cagney 28a86f5cc0 2003-10-06 Andrew Cagney <cagney@redhat.com>
* z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
	* sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
	* sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
	* m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2003-10-06 19:10:44 +00:00
David Lecomber 4efdaa0dd7 2003-10-06 David Lecomber <dsl@sources.redhat.com>
* f-valprint.c: Reformatting
2003-10-06 15:51:08 +00:00
Mark Kettenis a8bb57e724 * x86-64-tdep.c: Remove duplicate comment. 2003-10-05 22:54:10 +00:00
Mark Kettenis ae53de438e * x86-64-tdep.c (x86_64_store_return_value): Don't use
DEPRECATED_REGISTER_RAW_SIZE.  Use symbolic names for register
names for return values.  This fixes a bug since we looked at %rbx
instead of %rdx.
2003-10-05 22:13:24 +00:00
Mark Kettenis 2c261faeaa * x86-64-tdep.c: Include "regset.h". 2003-10-05 22:02:49 +00:00
Mark Kettenis 473f17b043 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
sizeof_fpregset.
* i386-tdep.c: Include "regset.h".
(i386_supply_gregset): New function.
(i386_supply_fpregset): New function.
(i386_gdbarch_init): Initialze register set-related members of
TDEP.
* x86-64-tdep.c (x86_64_supply_fpregset): New function.
(x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2003-10-05 21:31:33 +00:00
Andrew Cagney afd48b755b 2003-10-03 Andrew Cagney <cagney@redhat.com>
* rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
	set extract_return_value, store_return_value and
	use_struct_convention to ppc64_sysv_abi_extract_return_value,
	ppc64_sysv_abi_store_return_value and
	ppc64_sysv_abi_use_struct_convention.
	* ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
	(ppc64_sysv_abi_store_return_value): Declare.
	(ppc64_sysv_abi_use_struct_convention): Declare.
	* ppc-sysv-tdep.c (enum return_value_convention): Define.
	(ppc64_sysv_abi_extract_return_value): New function.
	(ppc64_sysv_abi_store_return_value): New function.
	(ppc64_sysv_abi_use_struct_convention): New function.
	(ppc64_sysv_abi_return_value): New function.
2003-10-03 21:11:39 +00:00
Andrew Cagney 9b540880d6 2003-10-03 Andrew Cagney <cagney@redhat.com>
* ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
	convert a descriptor to a function when it's in the ".opd"
	section.
2003-10-03 20:50:56 +00:00
Corinna Vinschen 8748518b95 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
reg_size to keep GCC silent.
2003-10-03 08:13:37 +00:00
Corinna Vinschen 0fd8504376 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
base for DW_EH_PE_textrel encodings.
	(read_encoded_value): Add a DW_EH_PE_textrel case.
	(dwarf2_build_frame_info): Set unit.tbase to beginning of text
	section.
2003-10-03 08:08:27 +00:00
Mark Kettenis 37b517aa77 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment. 2003-10-02 22:16:21 +00:00
Andrew Cagney 12c266ea56 2003-10-02 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
	REGISTER_RAW_SIZE.
	* gdbarch.h, gdbarch.c: Re-generate.
	* aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
	* cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
	* hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
	* hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
	* ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
	* infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
	* mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
	* monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
	* remote-e7000.c, remote-mips.c, remote-sim.c: Update.
	* remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
	* rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
	* sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
	* target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
	* vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
	* config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
	* config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.

2003-10-02  Andrew Cagney  <cagney@redhat.com>

	* gdbint.texinfo (Target Architecture Definition): Rename
	REGISTER_RAW_SIZE to DEPRECATED_REGISTER_RAW_SIZE.
	* gdb.texinfo (Packets, Stop Reply Packets): Ditto.
	* gdbint.texinfo (Target Architecture Definition): Rename

2003-10-02  Andrew Cagney  <cagney@redhat.com>

	* mi-main.c: Rename REGISTER_RAW_SIZE to
	DEPRECATED_REGISTER_RAW_SIZE.
2003-10-02 20:28:31 +00:00
Jim Blandy 78ba4af6ad * dwarf2read.c (struct die_info): Doc fix. 2003-10-02 17:13:16 +00:00
Corinna Vinschen 617daa0e43 * sh-tdep.c: Running thru gdb_indent.sh. 2003-10-02 10:47:05 +00:00
Corinna Vinschen e5e33cd91f * sh-tdep.c (sh_justify_value_in_reg): New function.
(sh_stack_allocsize): Ditto.
	(flt_argreg_array): New array used for floating point argument
	passing.
	(sh_init_flt_argreg): New function.
	(sh_next_flt_argreg): Ditto.
	(sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
	"pass_on_stack". Use new helper functions.  Accomodate Renesas ABI.
	Fix argument passing strategy.
	(sh_push_dummy_call_nofpu): Ditto.
2003-10-02 10:45:02 +00:00