Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 94 of file find.c.
Referenced by KdbSymGetAddressInformation().
{ PROSSYM_ENTRY RosSymEntry; DPRINT("RelativeAddress = 0x%08x\n", RelativeAddress); if (RosSymInfo->Symbols == NULL || RosSymInfo->SymbolsCount == 0 || RosSymInfo->Strings == NULL || RosSymInfo->StringsLength == 0) { DPRINT1("Uninitialized RosSymInfo\n"); return FALSE; } ASSERT(LineNumber || FileName || FunctionName); /* find symbol entry for function */ RosSymEntry = FindEntry(RosSymInfo, RelativeAddress); if (NULL == RosSymEntry) { DPRINT("None of the requested information was found!\n"); return FALSE; } if (LineNumber != NULL) { *LineNumber = RosSymEntry->SourceLine; } if (FileName != NULL) { PCSTR Name = ""; if (RosSymEntry->FileOffset != 0) { Name = (PCHAR) RosSymInfo->Strings + RosSymEntry->FileOffset; } strcpy(FileName, Name); } if (FunctionName != NULL) { PCSTR Name = ""; if (RosSymEntry->FunctionOffset != 0) { Name = (PCHAR) RosSymInfo->Strings + RosSymEntry->FunctionOffset; } strcpy(FunctionName, Name); } return TRUE; }