This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH/RFC] Get Alpha target to GDB_MULTI_ARCH_PARTIAL


On Sat, Apr 20, 2002 at 09:54:36AM -0700, Jason R Thorpe wrote:

 > Attached is a patch that gets the Alpha target to GDB_MULTI_ARCH_PARTIAL.
 > This is the low-hanging fruit.

Here is an updated version of this patch.  This, combined with the fix to
find_saved_register() I just committed, and using a compiler that emits
correct line number info:

                === gdb Summary ===

# of expected passes            7434
# of unexpected failures        531
# of unexpected successes       1
# of expected failures          70
# of unresolved testcases       149
# of untested testcases         6
# of unsupported tests          4

...for my alpha-netbsd target.

A bunch of the remaining failures look pretty bogus.  A bunch of the
failures are a result of:

(gdb) delete breakpoints^M
Delete all breakpoints? (y or n) info breakpoints^M
break call6i^M
Please answer y or n.^M
Delete all breakpoints? (y or n) Please answer y or n.^M
Delete all breakpoints? (y or n) UNRESOLVED: gdb.base/funcargs.exp: setting brea
kpoint at call6i (timeout)
break call6j^M
Please answer y or n.^M
Delete all breakpoints? (y or n) FAIL: gdb.base/funcargs.exp: setting breakpoint
 at call6j (timeout)
break call6k^M
Please answer y or n.^M
Delete all breakpoints? (y or n) FAIL: gdb.base/funcargs.exp: setting breakpoint
 at call6k (timeout) 
ERROR: Got interactive prompt.

...i.e. getting a prompt when one isn't expected.  Is that possibly a result
of a previous test failing and not setting up state properly for this test?

	* Makefile.in (alpha-nat.o): Add alpha-tdep.h to dependency list.
	(alpha-tdep.o): Likewise.
	* alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
	Alpha target register names.
	* alphabsd-nat.c: Likewise.
	* alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
	Alpha target register names.  Make serveral routines static.
	(alpha_get_saved_register): New function.
	(alpha_gdbarch_init): New function.
	(_initialize_alpha_tdep): Register alpha_gdbarch_init.
	* alpha-tdep.h: New file.  Includes several Alpha target constants
	taken from...
	* config/alpha/tm-alpha.h: ...here.  Remove macros that we now
	let gdbarch deal with.
	(GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>

Attachment: alpha-multiarch-2
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]