반응형
development/emulator/qtools/trace_reader.cpp
development/emulator/qtools/dmtrace.cpp
이 에러는 gcc version 차이의 문제(gcc-4.4 가 more strict 하다는)로
1) development/emulator/qtools/trace_reader.cpp 다음 함수 코드 수정
static char *ExtractDexPathFromMmap(const char *mmap_path)
{
char *end = rindex(mmap_path, '@'); --> const char *end = rindex(mmap_path, '@');
if (end == NULL)
return NULL;
char *start = rindex(mmap_path, '/'); ---> const char *start = rindex(mmap_path, '/');
2) development/emulator/qtools/dmtrace.cpp 의 다음 함수 코드 수정
void DmTrace::parseAndAddFunction(int functionId, const char *name)
{
.....
.....
// Find the first parenthesis, the start of the signature.
char *paren = strchr(name, '('); --> char *paren = (char *) strchr(name, '(');
// If not found, then add the original name.
if (paren == NULL) {
*paren = 0;
// Search for the last period, the start of the method name
char *dot = strrchr(name, '.'); --> char *dot = (char *) strrchr(name, '.');
// If not found, then add the original name.
if (dot == NULL || dot == name) {
반응형