aboutsummaryrefslogtreecommitdiff
path: root/gcc/bitmap.h
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2021-10-13 10:04:39 +0200
committerAldy Hernandez <aldyh@redhat.com>2021-10-14 11:04:13 +0200
commit3d0a7271b383c95d5c8dc9647966517a61e71abb (patch)
tree226df0b2ff1edc10688cbeaa028c12c3177f218b /gcc/bitmap.h
parent6e3bfd60e87303b32bf2284ea4e79078f488bc95 (diff)
downloadgcc-3d0a7271b383c95d5c8dc9647966517a61e71abb.zip
gcc-3d0a7271b383c95d5c8dc9647966517a61e71abb.tar.gz
gcc-3d0a7271b383c95d5c8dc9647966517a61e71abb.tar.bz2
Add debug helpers for auto_bitmap.
Using debug() on an auto_bitmap from gdb doesn't work because the implicit conversion from auto_bitmap to bitmap_head doesn't work from within a debugging session. This patch adds the convenience functions for auto_bitmap. gcc/ChangeLog: * bitmap.c (debug): New overloaded function for auto_bitmaps. * bitmap.h (debug): Same.
Diffstat (limited to 'gcc/bitmap.h')
-rw-r--r--gcc/bitmap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/bitmap.h b/gcc/bitmap.h
index 0846f79..1bddcdb 100644
--- a/gcc/bitmap.h
+++ b/gcc/bitmap.h
@@ -964,6 +964,9 @@ class auto_bitmap
bitmap_head m_bits;
};
+extern void debug (const auto_bitmap &ref);
+extern void debug (const auto_bitmap *ptr);
+
/* Base class for bitmap_view; see there for details. */
template<typename T, typename Traits = array_traits<T> >
class base_bitmap_view