|
From: <pa...@fr...> - 2012-12-21 11:40:32
|
----- Original Message -----
> Hello,
>
> However, I really want the line number of my function that the error
> is occurring in, but I can't find it.
>
> $ valgrind --tool=memcheck --trace-children=yes ./myApp
> (myApp top secret output omitted)
[snip]
> Unfortunately, on that last line starting with "by 0x7EED1D", the
> line
> appears to be truncated before the line number in the file is
> specified.
>
> Is there a way to increase the buffer or whatever so that this line
> is
> not truncated?
Hi
Usually when there is a limit, there's a way to change the limit. I think that it's here
static void printIpDesc(UInt n, Addr ip, void* uu_opaque)
{
#define BUF_LEN 4096
static UChar buf[BUF_LEN];
in
coregrind/m_stacktrace.c
Download the Valgrind source, modify BUF_LEN to something larger, build Valgrind and see if it works.
A+
Paul
|