forked from Imagelibrary/binutils-gdb
Sync libbacktrace from gcc [PR31327]
Note that this includes Nick's fix from edf64cd235 which
landed upstream a bit differently as r13-1566-g9ed57796235abc in GCC.
This pulls in libbacktrace as of r14-9404-gc775a030af9cad in GCC trunk.
Note that I have dropped a top-level Darwin change from r14-4825-g6a6d3817afa02b
which would've required an autoreconf, as it should be handled separately.
Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* elf.c -- Get debug data from a Mach-O file for backtraces.
|
||||
Copyright (C) 2020-2021 Free Software Foundation, Inc.
|
||||
Copyright (C) 2020-2024 Free Software Foundation, Inc.
|
||||
Written by Ian Lance Taylor, Google.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
@@ -1268,7 +1268,7 @@ backtrace_initialize (struct backtrace_state *state, const char *filename,
|
||||
mff = macho_nodebug;
|
||||
if (!macho_add (state, name, d, 0, NULL, base_address, 0,
|
||||
error_callback, data, &mff, &mfs))
|
||||
return 0;
|
||||
continue;
|
||||
|
||||
if (mff != macho_nodebug)
|
||||
macho_fileline_fn = mff;
|
||||
|
||||
Reference in New Issue
Block a user