Skip to content

Update gdb #2018

Merged
merged 2 commits into from
Dec 12, 2020
Merged

Update gdb #2018

merged 2 commits into from
Dec 12, 2020

Conversation

donald
Copy link
Collaborator

@donald donald commented Dec 10, 2020

Primary goal was to embed Python 3 instead of Python2 in gdb. While we are at it, update to latest and greatest.

buczek@theinternet:~/git/bee-files (update-gdb)$ gdb
GNU gdb (GDB) 10.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) python import sys;print(sys.version)
3.7.2 (default, Jan  4 2019, 16:36:18) 
[GCC 7.3.0]
(gdb) 

Use Python 3.7 from /usr/local/system/python3.

We can no longer use gdbs --with-pythons, because it is totaly broken.
Instead of python-config.py from the package specified with
--with-python, a copy of an old python-config.py script from Python-2.7 is
embedded and used with the interpreter found via --with-python.

In our case, the required "-L" option is not returned.

However, if we add the needed CPPFLAGS and LDFLAGS, gdb/configure (run
during the build phase of the top level directory!) will notice that
Python just works.
@donald donald merged commit 86b534b into master Dec 12, 2020
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant