aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/gdbhelpers
diff options
authorAl Viro <viro@ftp.linux.org.uk>2009-03-09 23:32:36 +0000
committerChristopher Li <sparse@chrisli.org>2009-07-18 05:30:09 +0000
commit47567023ae85e9c8428585da298e6d6613a86ab1 (patch)
tree6922e78595ef0c3636b83fc7930aa808ae61eeb3 /gdbhelpers
parent2be16aeb8ccd4b05819a3036962010af0c5745d1 (diff)
downloadsparse-dev-47567023ae85e9c8428585da298e6d6613a86ab1.tar.gz
Fix __label__ handling
a) __label__ in gcc is not a type, it's a statement. Accepted in the beginning of compound-statement, has form __label__ ident-list; b) instead of crapping into NS_SYMBOL namespace (and consequent shadowing issues), reassign the namespace to NS_LABEL after we'd bound it. We'll get block scope and label namespace, i.e. what we get in gcc. c) MOD_LABEL can be dropped now. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'gdbhelpers')
-rw-r--r--gdbhelpers3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdbhelpers b/gdbhelpers
index 7223ffd0..e28417a7 100644
--- a/gdbhelpers
+++ b/gdbhelpers
@@ -146,9 +146,6 @@ define gdb_show_ctype
if ($arg0->modifiers & MOD_TOPLEVEL)
printf "MOD_TOPLEVEL "
end
- if ($arg0->modifiers & MOD_LABEL)
- printf "MOD_LABEL "
- end
if ($arg0->modifiers & MOD_ASSIGNED)
printf "MOD_ASSIGNED "
end