Debugger: Add more helpers to Team.
ClearImages(): - Removes all existing images from the team's image list and notifies callers. To be used in case of an exec(). ClearSignalDispositionMappings(): - Remove any existing custom signal disposition mappings. This is intended to be used in preparation for loading new ones from a team after exec() is called.
This commit is contained in:
@@ -277,6 +277,14 @@ Team::Images() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
Team::ClearImages()
|
||||||
|
{
|
||||||
|
while (!fImages.IsEmpty())
|
||||||
|
RemoveImage(fImages.First());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
Team::AddStopImageName(const BString& name)
|
Team::AddStopImageName(const BString& name)
|
||||||
{
|
{
|
||||||
@@ -377,6 +385,13 @@ Team::GetSignalDispositionMappings() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
Team::ClearSignalDispositionMappings()
|
||||||
|
{
|
||||||
|
fCustomSignalDispositions.clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
Team::AddBreakpoint(Breakpoint* breakpoint)
|
Team::AddBreakpoint(Breakpoint* breakpoint)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -137,6 +137,7 @@ public:
|
|||||||
Image* ImageByID(image_id imageID) const;
|
Image* ImageByID(image_id imageID) const;
|
||||||
Image* ImageByAddress(target_addr_t address) const;
|
Image* ImageByAddress(target_addr_t address) const;
|
||||||
const ImageList& Images() const;
|
const ImageList& Images() const;
|
||||||
|
void ClearImages();
|
||||||
|
|
||||||
bool AddStopImageName(const BString& name);
|
bool AddStopImageName(const BString& name);
|
||||||
void RemoveStopImageName(const BString& name);
|
void RemoveStopImageName(const BString& name);
|
||||||
@@ -161,6 +162,8 @@ public:
|
|||||||
const SignalDispositionMappings&
|
const SignalDispositionMappings&
|
||||||
GetSignalDispositionMappings() const;
|
GetSignalDispositionMappings() const;
|
||||||
|
|
||||||
|
void ClearSignalDispositionMappings();
|
||||||
|
|
||||||
bool AddBreakpoint(Breakpoint* breakpoint);
|
bool AddBreakpoint(Breakpoint* breakpoint);
|
||||||
// takes over reference (also on error)
|
// takes over reference (also on error)
|
||||||
void RemoveBreakpoint(Breakpoint* breakpoint);
|
void RemoveBreakpoint(Breakpoint* breakpoint);
|
||||||
|
|||||||
Reference in New Issue
Block a user