// JPM Various efforts to set the ELF format support\r
// JPM Various efforts to set the DWARF format support\r
// JPM 09/15/2018 Support the unsigned char\r
-// JPM Oct./2018 Cosmetic changes, and added source file search paths\r
+// JPM Oct./2018 Cosmetic changes, added source file search paths, and ELF function name\r
+// JPM Sept./2019 Support the unsigned/signed short type\r
//\r
\r
// To Do\r
+// To think about unique format to handle variations from ELF, DWARF, etc.\r
//\r
\r
\r
bool B;\r
double D;\r
float F;\r
+ int16_t SS;\r
int32_t SI;\r
int64_t SL;\r
+ uint16_t US;\r
uint32_t UI;\r
uint64_t UL;\r
};\r
case DBG_ATE_signed:\r
switch (TypeByteSize)\r
{\r
+ case 2:\r
+ sprintf(value, "%i", V.SS);\r
+ break;\r
+\r
case 4:\r
sprintf(value, "%i", V.SI);\r
break;\r
case DBG_ATE_unsigned:\r
switch (TypeByteSize)\r
{\r
+ case 2:\r
+ sprintf(value, "%u", V.US);\r
+ break;\r
+\r
case 4:\r
sprintf(value, "%u", V.UI);\r
break;\r
// Return NULL if no function name has been found\r
char *DBGManager_GetFunctionName(size_t Adr)\r
{\r
+ char *Symbolname = NULL;\r
+\r
if ((DBGType & DBG_ELFDWARF))\r
{\r
- return DWARFManager_GetFunctionName(Adr);\r
+ Symbolname = DWARFManager_GetFunctionName(Adr);\r
}\r
- else\r
+\r
+ if ((DBGType & DBG_ELF) && (Symbolname == NULL))\r
{\r
- return NULL;\r
+ Symbolname = ELFManager_GetFunctionName(Adr);\r
}\r
+\r
+ return Symbolname;\r
}\r
\r
\r