aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/gdbhelpers
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-04-03 17:07:15 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-11-08 21:42:55 +0100
commitffe9f9fef003d29b65d29b8da5416aff72baff5a (patch)
tree5d73f752a98a796a252b0bf920965d159782221f /gdbhelpers
parent35db0f18f8153592ec8ed6ea0fa3650c2d3efded (diff)
downloadsparse-dev-ffe9f9fef003d29b65d29b8da5416aff72baff5a.tar.gz
add support for C11's _Atomic as type qualifier
This only add the parsing and checks as a type qualifier; there is no operational semantic associated with it. Note: this only support _Atomic as *type qualifier*, not as a *type specifier* (partly because there an ambiguity on how to parse '_Atomic' when followed by an open parenthesis (can be valid as qualifier and as specifier)). Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'gdbhelpers')
-rw-r--r--gdbhelpers3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdbhelpers b/gdbhelpers
index f6399d3b..2fe9336d 100644
--- a/gdbhelpers
+++ b/gdbhelpers
@@ -110,6 +110,9 @@ define gdb_show_ctype
if ($arg0->modifiers & MOD_RESTRICT)
printf "MOD_RESTRICT "
end
+ if ($arg0->modifiers & MOD_ATOMIC)
+ printf "MOD_ATOMIC "
+ end
if ($arg0->modifiers & MOD_SIGNED)
printf "MOD_SIGNED "
end