Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA]: patch to ia64.inc in gdb.asm testsuite
@ 2004-02-05  0:37 Jeff Johnston
  2004-02-10 21:30 ` Andrew Cagney
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff Johnston @ 2004-02-05  0:37 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 686 bytes --]

The attached patch is needed to get the gdb.asm testsuite running 
successfully for ia64.  A recent patch changed the link step to use the 
target linker rather than gcc.  The old method was defaulting dynamic 
loading.  The new code causes a static executable to be created with the 
first insn being that of gdbasm_startup.  Previously, the first insn was 
just a mov, but this should be an alloc insn.  Without this change, a 
SIGILL is caused for the first insn and the tests all fail.

Ok to commit?

-- Jeff J.


2004-02-04  Jeff Johnston  <jjohnstn@redhat.com>

        * gdb.asm/ia64.inc (gdbasm_startup): Make sure first instruction
        executed is an alloc instruction.



[-- Attachment #2: ia64asm.patch --]
[-- Type: text/plain, Size: 387 bytes --]

Index: ia64.inc
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/ia64.inc,v
retrieving revision 1.1
diff -u -r1.1 ia64.inc
--- ia64.inc	25 Aug 2003 23:43:40 -0000	1.1
+++ ia64.inc	5 Feb 2004 00:34:57 -0000
@@ -36,6 +36,7 @@
 
 	comment "crt0 startup"
 	.macro gdbasm_startup
+	gdbasm_enter
 	mov r32=r0
 	nop.i 0
 	nop.i 0

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFA]: patch to ia64.inc in gdb.asm testsuite
  2004-02-05  0:37 [RFA]: patch to ia64.inc in gdb.asm testsuite Jeff Johnston
@ 2004-02-10 21:30 ` Andrew Cagney
  2004-02-11 22:15   ` Jeff Johnston
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cagney @ 2004-02-10 21:30 UTC (permalink / raw)
  To: Jeff Johnston; +Cc: gdb-patches

> The attached patch is needed to get the gdb.asm testsuite running successfully for ia64.  A recent patch changed the link step to use the target linker rather than gcc.  The old method was defaulting dynamic loading.  The new code causes a static executable to be created with the first insn being that of gdbasm_startup.  Previously, the first insn was just a mov, but this should be an alloc insn.  Without this change, a SIGILL is caused for the first insn and the tests all fail.

If it works for you :-)  I'm sure there's going to be more of this fallout.

Andrew


> 2004-02-04  Jeff Johnston  <jjohnstn@redhat.com>
> 
>        * gdb.asm/ia64.inc (gdbasm_startup): Make sure first instruction
>        executed is an alloc instruction.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFA]: patch to ia64.inc in gdb.asm testsuite
  2004-02-10 21:30 ` Andrew Cagney
@ 2004-02-11 22:15   ` Jeff Johnston
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff Johnston @ 2004-02-11 22:15 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: gdb-patches

Patch checked in.  Thanks.

-- Jeff J.

Andrew Cagney wrote:
>> The attached patch is needed to get the gdb.asm testsuite running 
>> successfully for ia64.  A recent patch changed the link step to use 
>> the target linker rather than gcc.  The old method was defaulting 
>> dynamic loading.  The new code causes a static executable to be 
>> created with the first insn being that of gdbasm_startup.  Previously, 
>> the first insn was just a mov, but this should be an alloc insn.  
>> Without this change, a SIGILL is caused for the first insn and the 
>> tests all fail.
> 
> 
> If it works for you :-)  I'm sure there's going to be more of this fallout.
> 
> Andrew
> 
> 
>> 2004-02-04  Jeff Johnston  <jjohnstn@redhat.com>
>>
>>        * gdb.asm/ia64.inc (gdbasm_startup): Make sure first instruction
>>        executed is an alloc instruction.
> 
> 
> 
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-02-11 22:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-05  0:37 [RFA]: patch to ia64.inc in gdb.asm testsuite Jeff Johnston
2004-02-10 21:30 ` Andrew Cagney
2004-02-11 22:15   ` Jeff Johnston

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox