This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils 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] tests: run-backtrace-demangle.sh check exitcode and max number of frames.


On Sat, Jan 18, 2014 at 07:27:50PM +0100, Jan Kratochvil wrote:
> On Thu, 16 Jan 2014 09:45:51 +0100, Mark Wielaard wrote:
> > There can be more than 3 frames, but depending on the system/installed
> > glibc we might not be able to unwind fully till the end.
> > cxxfunc -> f -> main
> > Expect to see the top two and a warning that there are more frames
> > (exit code 1)
> 
> I agree there should be something like ' || true' but which system cannot
> unwind 'main'?  IIUC the 2 frames (and not 3 frames).

You are right. 3 frames would also work since they all come from the
main executable. I just picked 2 because the test only needs and checks
the top two, "cxxfunc" and "f", but it can also be 3.

Cheers,

Mark

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