monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] monotone with argp


From: Ole Laursen
Subject: Re: [Monotone-devel] monotone with argp
Date: Thu, 27 Jan 2005 15:19:07 +0100
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux)

"Badai Aqrandista" <address@hidden> writes:

> i think i know where it segfault...
> but how do i know if this is a bug in my code or bug in libc? because
> i can't see what's going on inside libc... could anyone point me how
> to do that?

You can do it if you compile libc yourself. Or if there's a debug
version of libc available with your distribution (I think Debian might
have one, but I might be wrong).

BUT forget about libc for the time being - it is almost certainly a
bug in your code. Instead, examine the output from gdb more carefully.
You can type 'up' a couple of times till you get to the stack frame
with cpp_main, then print the local variables with 'print' followed
by an expression, e.g. the variable name.

-- 
Ole Laursen
http://www.cs.aau.dk/~olau/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]