(reported by Florian)
Note that Addr_Undescribed will cause an assert if such
an undescribed addrinfo is pretty printed, as normally
such addrinfo should always be described before being pretty printed.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14558
void VG_(clear_addrinfo) ( AddrInfo* ai)
{
switch (ai->tag) {
+ case Addr_Undescribed:
+ break;
+
case Addr_Unknown:
- break;
+ break;
case Addr_Stack:
- break;
+ break;
case Addr_Block:
break;
vg_assert (!maybe_gcc || mc); // maybe_gcc can only be given in mc mode.
switch (ai->tag) {
+ case Addr_Undescribed:
+ VG_(core_panic)("mc_pp_AddrInfo Addr_Undescribed");
+
case Addr_Unknown:
if (maybe_gcc) {
VG_(emit)( "%sAddress 0x%llx is just below the stack ptr. "
extern void VG_(clear_addrinfo) ( AddrInfo* ai);
-/* Prints the AddrInfo ai describing a. */
+/* Prints the AddrInfo ai describing a.
+ Note that an ai with tag Addr_Undescribed will cause an assert.*/
extern void VG_(pp_addrinfo) ( Addr a, AddrInfo* ai );
/* Same as VG_(pp_addrinfo) but provides some memcheck specific behaviour: