Skip to content

Commit ecb2c99

Browse files
authored
Merge pull request #4 from Marcondiro/image_debug
derive Debug for Image and SectionCache
2 parents d51a02a + 704127c commit ecb2c99

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/image/image.rs

+1
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ impl Drop for BoxedCallback {
227227

228228
/// An Image defines the memory image that was traced as a collection
229229
/// of file sections and the virtual addresses at which those sections were loaded.
230+
#[derive(Debug)]
230231
pub struct Image<'a> {
231232
// the wrapped inst
232233
pub(crate) inner: &'a mut pt_image,

src/image/iscache.rs

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ mod test {
8181
}
8282

8383
/// A cache of traced image sections.
84+
#[derive(Debug)]
8485
pub struct SectionCache<'a>(pub(crate) &'a mut pt_image_section_cache);
8586
impl<'a> SectionCache<'a> {
8687
/// Allocate a traced memory image section cache.

0 commit comments

Comments
 (0)