Re: [Linux-ia64] gdb'ing 32-bit executable on IA64

From: Don Dugger <n0ano_at_n0ano.com>
Date: 2002-11-12 06:05:27
Nitin-

I just remembered, there's one more gotcha you have to deal with
to run `gdb' on IA32 processes.  `gdb' uses the shell to actually
execute the target program and, by default, it winds up using
the IA64 version of the shell.  This doesn't work.

What you have to do is spcify an IA32 shell through the `SHELL'
environment variable when using the IA32 `gdb'.  If all of the
IA32 programs are in the directory `/usr/ia32/bin' then the
following sommand should work:

	SHELL=/usr/ia32/bin/sh /usr/ia32/bin/gdb $*

On Wed, Oct 30, 2002 at 08:14:22AM -0700, Don Dugger wrote:
> Nitin-
> 
> Use an IA32 `gdb'.  The standard `gdb' on IA64 machines only deals with
> IA64 processes.  All you have to do is copy `gdb' over from an IA32
> machine and then use that to debug your IA32 processes.
> 
> On Wed, Oct 30, 2002 at 09:58:05AM -0500, Sane_Purushottam@emc.com wrote:
> > When I try to run a 32-bit executable in gdb on a IA-64 linux (RH 7.2), I
> > can set the breakpoint fine but when I try to run it, I get an error "Can't
> > insert breakpoint for slot numbers greater than 2"
> > 
> > What's the solution ??
> > 
> > Nitin Sane
> > sane_purushottam@emc.com
> > (508) 382-7319
> > 
> > 
> > _______________________________________________
> > Linux-IA64 mailing list
> > Linux-IA64@linuxia64.org
> > http://lists.linuxia64.org/lists/listinfo/linux-ia64
> 
> -- 
> Don Dugger
> "Censeo Toto nos in Kansa esse decisse." - D. Gale
> n0ano@n0ano.com
> 
> _______________________________________________
> Linux-IA64 mailing list
> Linux-IA64@linuxia64.org
> http://lists.linuxia64.org/lists/listinfo/linux-ia64

-- 
Don Dugger
"Censeo Toto nos in Kansa esse decisse." - D. Gale
n0ano@n0ano.com
Received on Mon Nov 11 11:20:01 2002

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:10 EST