Fix incorrect storage of breakpoints.
When a breakpoint is asked to archive itself to a message, ensure that the message is empty before writing. Fixes breakpoints past the first one being broken on restore due to each breakpoint archive containing the combined settings of all previous breakpoints.
This commit is contained in:
parent
cf225839c2
commit
4c43e5395e
@ -102,6 +102,8 @@ BreakpointSetting::WriteTo(BMessage& archive) const
|
|||||||
if (fFunctionID == NULL)
|
if (fFunctionID == NULL)
|
||||||
return B_BAD_VALUE;
|
return B_BAD_VALUE;
|
||||||
|
|
||||||
|
archive.MakeEmpty();
|
||||||
|
|
||||||
status_t error;
|
status_t error;
|
||||||
if ((error = ArchivingUtils::ArchiveChild(fFunctionID, archive, "function"))
|
if ((error = ArchivingUtils::ArchiveChild(fFunctionID, archive, "function"))
|
||||||
!= B_OK
|
!= B_OK
|
||||||
|
Loading…
Reference in New Issue
Block a user