Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gdb: take libstdc++ pretty printers from host, not external/
libstdc++ comes with a python script to help gdb pretty-print some useful C++ types (unique_ptr, vector, etc.). Our current gdb script takes this script from external/, but unfortunately the script we have in external/ is from Fedora 20, written for Python 2, while some systems' gdb have Python 3 so this script doesn't work. The more sensible thing to do - given that we're already using (by default) the build machine's libstdc++, and its gdb, is to run the script installed on the build machine. This is what this patch does, unfortunately in an ugly way and not a very robust way (namely, if two versions of libstdc++ are installed, it picks one arbitrarily). But I can't figure out a cleaner way to do this. Fixes cloudius/gcc-bin/#1 Signed-off-by: Nadav Har'El <[email protected]> Signed-off-by: Pekka Enberg <[email protected]>
- Loading branch information