]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: move lm_info to solib in dsbt_current_sos
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 15 May 2024 17:13:27 +0000 (13:13 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 16 May 2024 15:34:40 +0000 (11:34 -0400)
Commit 8971d2788e79 ("gdb: link so_list using intrusive_list")
mistakenly removed the line that moves the lm_info unique pointer to
sop->lm_info, probably due to a bad conflict resolution.  Restore that
line.

Unfortunately, this code is only used for TI C66, which is not widely
tested (if used at all).

Change-Id: I9f64eb4430c324bc93ddb4bd00d820dee34adfbb
Approved-By: Tom Tromey <tom@tromey.com>
gdb/solib-dsbt.c

index 11225f72ed0161d8664c59a1f95a39b438b4cc8e..908c78aebdca3a42f29df93ad85b87fff030176c 100644 (file)
@@ -616,6 +616,7 @@ dsbt_current_sos (void)
              sop->so_original_name = sop->so_name;
            }
 
+         sop->lm_info = std::move (li);
          sos.push_back (*sop);
        }
       else