This is to record an issue which was fixed in master on Apr 10th, 2020: https://sourceware.org/pipermail/gdb-patches/2020-April/167305.html << Sometimes, get_msymbol_address can cause infinite recursion, leading to a crash. This was reported previously here: https://sourceware.org/pipermail/gdb-patches/2019-November/162154.html A user on irc reported this as well, and with his help and the help of a friend of his, we found that the problem occurred because, when reloading a separate debug objfile, the objfile would lose the OBJF_MAINLINE flag. This would cause some symbols from this separate debug objfile to be marked "maybe_copied" -- but then get_msymbol_address could find the same symbol and fail as reported. >>
The gdb-9-branch branch has been updated by Joel Brobecker <brobecke@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9502fa5ea9e01670852466249025bc126de9945c commit 9502fa5ea9e01670852466249025bc126de9945c Author: Joel Brobecker <brobecker@adacore.com> Date: Sun May 17 08:57:06 2020 -0700 gdb/ChangeLog: Add PR number to the latest entry This adds the PR number to the following gdb/ChangeLog entry: 2020-05-17 Tom Tromey <tromey@adacore.com> Pushed by Joel Brobecker <brobecker@adacore.com> PR symtab/26003 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
patch backported