| commit | 7d21600b31fe959b758ed475a2211d6805047df9 | [log] [tgz] |
|---|---|---|
| author | Tom Tromey <tromey@adacore.com> | Wed Nov 15 06:48:55 2023 -0700 |
| committer | Tom Tromey <tromey@adacore.com> | Wed Nov 15 09:43:38 2023 -0700 |
| tree | b4fb6a0c1195f25a6b321c4868075157ca469037 | |
| parent | e1ccbfffb5e0121c084898ac63f042187621d4ec [diff] |
Check gdb_python_module in gdbpy_handle_missing_debuginfo If you run gdb in the build tree without --data-directory, on a program that does not have debug info, it will crash, because gdbpy_handle_missing_debuginfo unconditionally uses gdb_python_module. Other code in gdb using gdb_python_module checks it first and it seemes harmless to do the same thing here. (gdb_python_initialized does not cover this case so that python can be partially initialized and still somewhat work.)