]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/solib-frv: move lm_info object to solib
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 22 Jul 2024 14:42:49 +0000 (10:42 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Tue, 23 Jul 2024 14:33:34 +0000 (10:33 -0400)
commit5a2f7d248a50a868152cb357dd05ebcd860ac244
tree8ca8b374e84e7b4cd158856fe2e82cc5571c17d3
parentd0af16d5a105948ea17e4410d3ddbb12ba64e586
gdb/solib-frv: move lm_info object to solib

I noticed that the lm_info_frv objects created in frv_current_sos are
never moved to the solib object.  This bug was introduced in 8971d2788e
("gdb: link so_list using intrusive_list"), which mistakenly removed the
line

    sop->lm_info = std::move (li);

... probably due so a bad merge conflict resolution.

Re-add this line.

If merged in master, I would cherry-pick this to gdb-15-branch.

Change-Id: I609a1a5ad39e93f70a95ea5ebe3f8ff4ab6a8db2
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32005
Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/solib-frv.c