From 3d0a7271b383c95d5c8dc9647966517a61e71abb Mon Sep 17 00:00:00 2001 From: Aldy Hernandez Date: Wed, 13 Oct 2021 10:04:39 +0200 Subject: 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. --- gcc/bitmap.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/bitmap.h') 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 > class base_bitmap_view -- cgit v1.1