Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 395570 Details for
Bug 538886
/sbin/ldconfig: .../libstdc++.so.6.0.20-gdb.py is not an ELF file - it has the wrong magic bytes at the start
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
libstdc++.so.6.0.20-gdb.py
libstdc++.so.6.0.20-gdb.py (text/plain), 2.27 KB, created by
Geoff Madden
on 2015-02-05 05:32:42 UTC
(
hide
)
Description:
libstdc++.so.6.0.20-gdb.py
Filename:
MIME Type:
Creator:
Geoff Madden
Created:
2015-02-05 05:32:42 UTC
Size:
2.27 KB
patch
obsolete
># -*- python -*- ># Copyright (C) 2009-2014 Free Software Foundation, Inc. > ># This program is free software; you can redistribute it and/or modify ># it under the terms of the GNU General Public License as published by ># the Free Software Foundation; either version 3 of the License, or ># (at your option) any later version. ># ># This program is distributed in the hope that it will be useful, ># but WITHOUT ANY WARRANTY; without even the implied warranty of ># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ># GNU General Public License for more details. ># ># You should have received a copy of the GNU General Public License ># along with this program. If not, see <http://www.gnu.org/licenses/>. > >import sys >import gdb >import os >import os.path > >pythondir = '/usr//share/gcc-data/x86_64-pc-linux-gnu/4.9.2/python' >libdir = '/usr/lib/../lib64' > ># This file might be loaded when there is no current objfile. This ># can happen if the user loads it manually. In this case we don't ># update sys.path; instead we just hope the user managed to do that ># beforehand. >if gdb.current_objfile () is not None: > # Update module path. We want to find the relative path from libdir > # to pythondir, and then we want to apply that relative path to the > # directory holding the objfile with which this file is associated. > # This preserves relocatability of the gcc tree. > > # Do a simple normalization that removes duplicate separators. > pythondir = os.path.normpath (pythondir) > libdir = os.path.normpath (libdir) > > prefix = os.path.commonprefix ([libdir, pythondir]) > # In some bizarre configuration we might have found a match in the > # middle of a directory name. > if prefix[-1] != '/': > prefix = os.path.dirname (prefix) + '/' > > # Strip off the prefix. > pythondir = pythondir[len (prefix):] > libdir = libdir[len (prefix):] > > # Compute the ".."s needed to get from libdir to the prefix. > dotdots = ('..' + os.sep) * len (libdir.split (os.sep)) > > objfile = gdb.current_objfile ().filename > dir_ = os.path.join (os.path.dirname (objfile), dotdots, pythondir) > > if not dir_ in sys.path: > sys.path.insert(0, dir_) > ># Load the pretty-printers. >from libstdcxx.v6.printers import register_libstdcxx_printers >register_libstdcxx_printers (gdb.current_objfile ())
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 538886
:
395570