summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibSymbolication
diff options
context:
space:
mode:
authorRodrigo Tobar <rtobarc@gmail.com>2021-10-13 23:22:58 +0800
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-10-15 22:10:03 -0700
commit9199f0836abc40f5d11c979ba541a5261a5ac73e (patch)
treead7d2bf8032300184329fb2f36a127c7a9c9bb94 /Userland/Libraries/LibSymbolication
parent89e52faa22aef7fa5b6c3d68e570905c9b81a112 (diff)
downloadserenity-9199f0836abc40f5d11c979ba541a5261a5ac73e.zip
LibSymbolication: Make Symbol comparable
All its members are comparable themselves, so this can be defaulted. Making it comparable will allow us, among other things, to check if a list of symbols (i.e., the result of calling the symbolicate functions) is equal or not to another, which in turn will allow us to avoid refreshing the SystemMonitor's Stack tab when successive symbolicated stacks are the same.
Diffstat (limited to 'Userland/Libraries/LibSymbolication')
-rw-r--r--Userland/Libraries/LibSymbolication/Symbolication.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibSymbolication/Symbolication.h b/Userland/Libraries/LibSymbolication/Symbolication.h
index 5dc8b728f5..7b5535c4f5 100644
--- a/Userland/Libraries/LibSymbolication/Symbolication.h
+++ b/Userland/Libraries/LibSymbolication/Symbolication.h
@@ -17,6 +17,7 @@ struct Symbol {
String object {};
u32 offset { 0 };
Vector<Debug::DebugInfo::SourcePosition> source_positions;
+ bool operator==(Symbol const&) const = default;
};
Optional<FlatPtr> kernel_base();