Stupid but it will work. Sometimes adding another source path is not enough if you have complex hierarchy. In this case you can add substitution rule for source path with set substitute-path GDB command. Here is how to do it within CPython project:. There are multiple ways to help GDB find sources, where the easiest ones are directory and set substitute-path commands, though -fdebug-prefix-map is really useful.
Alex Dzyoba. Home Blog KB Feed. The latest version of GDB, version New --force-condition option for the '-break-insert' and '-dprintf-insert' commands.
New --force option for the '-break-condition' command. The '-file-list-exec-source-files' now accepts an optional regular expression to filter the source files included in the result.
The results from '-file-list-exec-source-files' now include a 'debug-fully-read' field to indicate if the corresponding source's debugging information has been partially read false or has been fully read true.
TUI Improvements: Mouse actions are now supported. The mouse wheel scrolls the appropriate window. Key combinations that do not have a specific action on the focused window are now passed to GDB. New method gdb. When hitting a catchpoint, the Python API will now emit a gdb.
GDB comes with a configure script that automates the process of preparing GDB for installation; you can then use make to build the gdb program. That directory contains:.
Pass the identifier for the platform on which GDB will run as an argument. You can often leave off host ; configure tries to guess the correct value by examining your system. The configured source files, and the binaries, are left in the corresponding source directories.
Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.
Linked Related Hot Network Questions.
0コメント