From mboxrd@z Thu Jan 1 00:00:00 1970 From: Don Dugger Date: Tue, 12 Nov 2002 17:34:46 +0000 Subject: Re: [Linux-ia64] gdb'ing 32-bit executable on IA64 Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org David- Nope, that didn't work. I'm running a 2.4.18 kernel, the EMUL_PREFIX_LINUX_IA32 is set to `emul/ia32-linux/', I put the IA32 version of `sh' into `/emul/ia32-linux/bin/sh' and the IA32 `gdb' didn't work. Do you think this is something we need to worry about or is it just a quirk of `gdb'? On Mon, Nov 11, 2002 at 11:24:49AM -0800, David Mosberger wrote: > >>>>> On Mon, 11 Nov 2002 12:05:27 -0700, Don Dugger said: > > Don> Nitin- I just remembered, there's one more gotcha you have to > Don> deal with to run `gdb' on IA32 processes. `gdb' uses the shell > Don> to actually execute the target program and, by default, it > Don> winds up using the IA64 version of the shell. This doesn't > Don> work. > > Don> What you have to do is spcify an IA32 shell through the `SHELL' > Don> environment variable when using the IA32 `gdb'. If all of the > Don> IA32 programs are in the directory `/usr/ia32/bin' then the > Don> following sommand should work: > > Don> SHELL=/usr/ia32/bin/sh /usr/ia32/bin/gdb $* > > Wouldn't it be much easier to copy the x86 version of bash into > > /emul/ia32-linux/bin/sh > > ? > > --david -- Don Dugger "Censeo Toto nos in Kansa esse decisse." - D. Gale n0ano@n0ano.com