This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: why are calls to libstdc++ being handled by python?
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: "Linda A. Walsh" <gcc at tlinx dot org>
- Cc: "libstdc++" <libstdc++ at gcc dot gnu dot org>
- Date: Thu, 10 Jul 2014 14:02:13 +0100
- Subject: Re: why are calls to libstdc++ being handled by python?
- Authentication-results: sourceware.org; auth=none
- References: <53BE84AA dot 4000704 at tlinx dot org> <53BE87CD dot 3080303 at tlinx dot org>
On 10 July 2014 13:32, Linda A. Walsh wrote:
> Linda A. Walsh wrote:
>>
>> This looks very odd.
>
> It occurred to me that gdb might be written in python
> and it is having problems with ... ??? well not sure
> why it should have problems deciphering a traceback
> through libstdc++? So still a bit lost...
GDB has an (optional) Python API which is used by libstdc++ to provide
pretty printing of std::lib types and values, as well as filtering
names in stack frames (e.g. to replace std::basic_string<char,
std::char_traits<char>, std::allocator<char>> with std::string which
is much easier to read).
Unfortunately, sometimes when debugging you sometimes have garbage
data in your stack, and so when Python tries to improve the output it
gets confused by the garbage.