mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-29 00:30:04 +02:00
* Updated breakpad to latest version.
This commit is contained in:
12
thirdparty/breakpad/common/stabs_reader.cc
vendored
12
thirdparty/breakpad/common/stabs_reader.cc
vendored
@@ -130,7 +130,7 @@ bool StabsReader::ProcessCompilationUnit() {
|
||||
// There may be an N_SO entry whose name ends with a slash,
|
||||
// indicating the directory in which the compilation occurred.
|
||||
// The build directory defaults to NULL.
|
||||
const char *build_directory = NULL;
|
||||
const char *build_directory = NULL;
|
||||
{
|
||||
const char *name = SymbolString();
|
||||
if (name[0] && name[strlen(name) - 1] == '/') {
|
||||
@@ -138,7 +138,7 @@ bool StabsReader::ProcessCompilationUnit() {
|
||||
++iterator_;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// We expect to see an N_SO entry with a filename next, indicating
|
||||
// the start of the compilation unit.
|
||||
{
|
||||
@@ -212,7 +212,7 @@ bool StabsReader::ProcessCompilationUnit() {
|
||||
queued_lines_.clear();
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
bool StabsReader::ProcessFunction() {
|
||||
assert(!iterator_->at_end && iterator_->type == N_FUN);
|
||||
@@ -237,7 +237,7 @@ bool StabsReader::ProcessFunction() {
|
||||
return false;
|
||||
}
|
||||
queued_lines_.clear();
|
||||
|
||||
|
||||
while (!iterator_->at_end) {
|
||||
if (iterator_->type == N_SO || iterator_->type == N_FUN)
|
||||
break;
|
||||
@@ -266,8 +266,8 @@ bool StabsReader::ProcessFunction() {
|
||||
if (!iterator_->at_end) {
|
||||
assert(iterator_->type == N_SO || iterator_->type == N_FUN);
|
||||
if (iterator_->type == N_FUN) {
|
||||
const char *name = SymbolString();
|
||||
if (name[0] == '\0') {
|
||||
const char *symbol_name = SymbolString();
|
||||
if (symbol_name[0] == '\0') {
|
||||
// An N_FUN entry with no name is a terminator for this function;
|
||||
// its value is the function's size.
|
||||
ending_address = function_address + iterator_->value;
|
||||
|
Reference in New Issue
Block a user