|
From: <sv...@va...> - 2012-01-16 09:27:02
|
Author: bart
Date: 2012-01-16 09:22:25 +0000 (Mon, 16 Jan 2012)
New Revision: 12336
Log:
debug info reader: rearrange the source code such that gcc issues a warning if an enumeration label is missing.
Modified:
trunk/coregrind/m_debuginfo/d3basics.c
Modified: trunk/coregrind/m_debuginfo/d3basics.c
===================================================================
--- trunk/coregrind/m_debuginfo/d3basics.c 2012-01-15 21:02:44 UTC (rev 12335)
+++ trunk/coregrind/m_debuginfo/d3basics.c 2012-01-16 09:22:25 UTC (rev 12336)
@@ -53,8 +53,8 @@
switch (hashch) {
case DW_children_no: return "no children";
case DW_children_yes: return "has children";
- default: return "DW_children_???";
}
+ return "DW_children_???";
}
HChar* ML_(pp_DW_TAG) ( DW_TAG tag )
@@ -148,8 +148,8 @@
case DW_TAG_PGI_kanji_type: return "DW_TAG_PGI_kanji_type";
case DW_TAG_PGI_interface_block:
return "DW_TAG_PGI_interface_block";
- default: return "DW_TAG_???";
}
+ return "DW_TAG_???";
}
HChar* ML_(pp_DW_FORM) ( DW_FORM form )
@@ -180,8 +180,8 @@
case DW_FORM_exprloc: return "DW_FORM_exprloc";
case DW_FORM_flag_present:return "DW_FORM_flag_present";
case DW_FORM_ref_sig8: return "DW_FORM_ref_sig8";
- default: return "DW_FORM_???";
}
+ return "DW_FORM_???";
}
HChar* ML_(pp_DW_AT) ( DW_AT attr )
@@ -328,8 +328,8 @@
case DW_AT_PGI_lbase: return "DW_AT_PGI_lbase";
case DW_AT_PGI_soffset: return "DW_AT_PGI_soffset";
case DW_AT_PGI_lstride: return "DW_AT_PGI_lstride";
- default: return "DW_AT_???";
}
+ return "DW_AT_???";
}
|