##// END OF EJS Templates
Added int ElfFile::getSymbolIndex(const QString &name)
jeandet -
r16:1f143e4ae72a default
parent child
Show More
@@ -1009,6 +1009,21 quint64 ElfFile::getSymbolSize(int index
1009 return 0;
1009 return 0;
1010 }
1010 }
1011
1011
1012 int ElfFile::getSymbolIndex(const QString &name)
1013 {
1014 if(this->e!=NULL)
1015 {
1016 for(int i=0;i<this->symbols.count();i++)
1017 {
1018 if(this->symbols.at(i)->name==name)
1019 {
1020 return i;
1021 }
1022 }
1023 }
1024 return -1;
1025 }
1026
1012 QString ElfFile::getSymbolSectionName(int index)
1027 QString ElfFile::getSymbolSectionName(int index)
1013 {
1028 {
1014 if(this->e!=NULL)
1029 if(this->e!=NULL)
@@ -105,6 +105,7 public:
105 QString getSymbolName(int index);
105 QString getSymbolName(int index);
106 QString getSymbolType(int index);
106 QString getSymbolType(int index);
107 quint64 getSymbolSize(int index);
107 quint64 getSymbolSize(int index);
108 int getSymbolIndex(const QString& name);
108 QString getSymbolSectionName(int index);
109 QString getSymbolSectionName(int index);
109 int getSymbolSectionIndex(int index);
110 int getSymbolSectionIndex(int index);
110 quint64 getSymbolAddress(int index);
111 quint64 getSymbolAddress(int index);
General Comments 0
You need to be logged in to leave comments. Login now