From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 81934 invoked by alias); 11 Feb 2016 19:12:34 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 81923 invoked by uid 89); 11 Feb 2016 19:12:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=-1.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=that=e2, H*UA:Webmail, unwinding, HContent-Transfer-Encoding:8bit?= X-HELO: simark.ca Received: from simark.ca (HELO simark.ca) (158.69.221.121) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 11 Feb 2016 19:12:32 +0000 Received: by simark.ca (Postfix, from userid 112) id 378C01E6DA; Thu, 11 Feb 2016 14:12:30 -0500 (EST) Received: from simark.ca (localhost [127.0.0.1]) by simark.ca (Postfix) with ESMTP id 79ABC1E16D; Thu, 11 Feb 2016 14:12:28 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 11 Feb 2016 19:12:00 -0000 From: Simon Marchi To: Neale Ferguson Cc: gdb@sourceware.org Subject: Re: Python diagnostic messages truncated In-Reply-To: References: Message-ID: <91ee2b788994ee677c37c65a1f3c8a02@simark.ca> X-Sender: simon.marchi@polymtl.ca User-Agent: Roundcube Webmail/1.1.3 X-IsSubscribed: yes X-SW-Source: 2016-02/txt/msg00016.txt.bz2 On 2016-02-11 14:05, Neale Ferguson wrote: > I have written a python macro that uses the > filtering/unwinding/decorator > facilities of gdb. > > (gdb) source ~/sna-stacktrace/stacktrace.py > (gdb) thr 3 > [Switching to thread 3 (Thread 0x7f21b751e700 (LWP 22219))] > #0 0x00007f21ba364dad in write () at > ../sysdeps/unix/syscall-template.S:81 > 81 ../sysdeps/unix/syscall-template.S: No such file or directory. > (gdb) bt > #0 0x00007f21ba364dad in write () at > ../sysdeps/unix/syscall-template.S:81 > #1 0x0000000000614c78 in console_write (handle=, > buffer=0x7f21b8c06160, numbytes=1, byteswritten=0x7f21b751d814, > overlapped=) at io.c:1128 > #2 0x000000000060d6b4 in ves_icall_System_IO_MonoIO_Write (handle=0x1, > src=0x7f21b8c06140, src_offset=, count=1, > error=0x7f21b751d8d0) at file-io.c:862 > #3 0x0000000041b90b35 in [wrapper - > managed-to-native]:System.IO.MonoIO.Write(long, szarray, int, int, > valuetype) () > #4 0x0000000041b908e0 in System.IO.FileStream.WriteInternal(szarray, > int, > int) () > #5 0x0000000041b9073c in System.IO.FileStream.Write(szarray, int, int) > () > #6 0x0000000041b9063c in System.IO.StreamWriter.FlushBytes() () > #7 0x0000000041b8e4f8 in System.IO.StreamWriter.FlushCore() () > #8 0x0000000041b90fe0 in System.IO.StreamWriter.Write(szarray, int, > int) > () > #9 0x0000000041b90cf8 in System.IO.CStreamWriter.Write(szarray, int, > int) > () > #10 0x00007f21b751db10 in () > #11 0x0000000041b90c38 in System.IO.CStreamWriter.Write(szarray) () > #12 0x0000000041b90bfb in System.IO.TextWriter.WriteLine() () > #13 0x0000000041b8f9dd in System.IO.TextWriter.WriteLine(string) () > #14 0x0000000041b8f97c in > System.IO.SynchronizedWriter.WriteLine(string) () > #15 0x00007f21b751dba0 in () > #16 0x0000000041b8883d in System.Console.WriteLine(string) () > #17 0x0000000041b887f4 in Test.MainClass.Worker(object) () > Python Exception value has been optimized out: > > It is that last message that’s causing me grief. It appears there > should > be more to the message but it’s not being shown and I am unable to find > out where the error is occurring. Is there a way of retrieving this > message? > > Neale Hi Neale, You can do (gdb) set python print-stack full to make gdb print the stack (where the Python exception was thrown). Simon