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:
parent
07842a5be0
commit
7e6a958b0b
@ -263,18 +263,18 @@ private:
|
||||
case 2:
|
||||
{
|
||||
LocatableFile* sourceFile = location.SourceFile();
|
||||
BString data;
|
||||
if (sourceFile != NULL) {
|
||||
BString data;
|
||||
data.SetToFormat("%s:%" B_PRId32, sourceFile->Name(),
|
||||
location.GetSourceLocation().Line() + 1);
|
||||
value.SetTo(data);
|
||||
} else {
|
||||
AutoLocker<Team> teamLocker(fTeam);
|
||||
if (UserBreakpointInstance* instance
|
||||
= breakpoint->InstanceAt(0)) {
|
||||
value.SetTo(instance->Address());
|
||||
data.SetToFormat("%#" B_PRIx64, instance->Address());
|
||||
}
|
||||
}
|
||||
value.SetTo(data);
|
||||
return true;
|
||||
}
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user