Fix regression introduced in 6b308faf.

That commit switched to a single string column for representing
breakpoint locations, but neglected to update the case of a breakpoint
in a non-debug function to actually format the address as a string
appropriately, leading to those simply showing no data since then.
This commit is contained in:
Rene Gollent
2013-06-07 22:32:32 -04:00
parent 07842a5be0
commit 7e6a958b0b
@@ -263,18 +263,18 @@ private:
case 2: case 2:
{ {
LocatableFile* sourceFile = location.SourceFile(); LocatableFile* sourceFile = location.SourceFile();
BString data;
if (sourceFile != NULL) { if (sourceFile != NULL) {
BString data;
data.SetToFormat("%s:%" B_PRId32, sourceFile->Name(), data.SetToFormat("%s:%" B_PRId32, sourceFile->Name(),
location.GetSourceLocation().Line() + 1); location.GetSourceLocation().Line() + 1);
value.SetTo(data);
} else { } else {
AutoLocker<Team> teamLocker(fTeam); AutoLocker<Team> teamLocker(fTeam);
if (UserBreakpointInstance* instance if (UserBreakpointInstance* instance
= breakpoint->InstanceAt(0)) { = breakpoint->InstanceAt(0)) {
value.SetTo(instance->Address()); data.SetToFormat("%#" B_PRIx64, instance->Address());
} }
} }
value.SetTo(data);
return true; return true;
} }
default: default: