Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Uncle George <gatgul@voicenet.com>
To: axp-list@redhat.com
Subject: Re: gdb & __stxncpy.S for alpha
Date: Fri, 06 Mar 1998 11:36:40 -0500	[thread overview]
Message-ID: <35002617.A66123EE@voicenet.com> (raw)
In-Reply-To: 199803061536.IAA05678@ellpspace.math.ualberta.ca

thanks, but __stxncpy() is part of the alpha/glibc routines ( str...cpy() et al
).

eventually stxncpy will get a bogus addr, but I have no way to see who did me in!

I cannot get a stack trace at all if i breakpoint in __stxncpy(), regardless of
the state of the stack! I may have to use the "c" version to see whats going on!
its interesting though, i can get a stacktrace in strncpy() which is also
assembler in the alpha.
gat

Michal Jaegermann wrote:

> Uncle George wrote:
> >
> > what does this have to do with the kernel. __strxncpy.S is defined in
> > sysdeps/alpha of glibc.
> > i Mean i cannot do a gdb "where" on this function, as it does not go up the
> > stack .
>
> Debuggers rely on some conventions followed by compilers when they
> try to unwind a stack.  If you are hacking some low level function in
> an assembler you are free to disregard these conventions and apply
> shortcuts.  This, of course, does wonders for a debugging if you try
> a backtrace from inside of such "weird" code.  I do not know if this
> is the case here.




  parent reply	other threads:[~1998-03-06 16:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-03-06 12:16 gdb & __stxncpy.S for alpha Uncle George
1998-03-06 12:23 ` warp
1998-03-06 14:34   ` Uncle George
1998-03-06 15:36     ` Michal Jaegermann
1998-03-06 16:32       ` Tom Linden
1998-03-06 16:36       ` Uncle George [this message]
1998-03-09 16:57 ` Richard Henderson
read-only archive

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