]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gprofng: Remove duplicate symbols
authorClaudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com>
Mon, 31 Mar 2025 11:17:17 +0000 (14:17 +0300)
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Mon, 7 Apr 2025 01:23:56 +0000 (18:23 -0700)
commit50491ef1d395badbffabe192433d2c6010bc2f15
tree0a13066d044dbeed0e6469e62a774df17a6f34ff
parent13f614be23ab6ef1018ddf9c133175e806e68ed8
gprofng: Remove duplicate symbols

Remove all duplicate symbols which can be in SymLst.  The duplication
is due to processing of both static and dynamic symbols.  The
Stabs::removeDupSyms function is called before computing symbol
aliases.

Introduce a new vector function (i.e., truncate()), that truncates a
vector lenght to the given new count.  This functionis used by
removeDupSyms function.

Signed-off-by: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com>
gprofng/src/Stabs.cc
gprofng/src/Stabs.h
gprofng/src/vec.h