mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-09 15:23:16 +00:00
e6491be4e3
Added trivial updater script. Refreshed nix-specific patch with path to debug symbols. Dropped upstreamed patches for gcc-12 support and musl support. Changes: https://www.sourceware.org/gdb/download/ANNOUNCEMENT
18 lines
584 B
Diff
18 lines
584 B
Diff
--- a/gdb/main.c
|
|
+++ b/gdb/main.c
|
|
@@ -708,8 +708,12 @@ captured_main_1 (struct captured_main_args *context)
|
|
if (gdb_sysroot.empty ())
|
|
gdb_sysroot = TARGET_SYSROOT_PREFIX;
|
|
|
|
- debug_file_directory
|
|
- = relocate_gdb_directory (DEBUGDIR, DEBUGDIR_RELOCATABLE);
|
|
+ const char * nix_debug = getenv ("NIX_DEBUG_INFO_DIRS");
|
|
+ if (nix_debug != NULL)
|
|
+ debug_file_directory = nix_debug;
|
|
+ else
|
|
+ debug_file_directory
|
|
+ = relocate_gdb_directory (DEBUGDIR, DEBUGDIR_RELOCATABLE);
|
|
|
|
gdb_datadir = relocate_gdb_directory (GDB_DATADIR,
|
|
GDB_DATADIR_RELOCATABLE);
|