aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/gdbhelpers
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-04-03 17:07:02 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-11-08 21:41:34 +0100
commit35db0f18f8153592ec8ed6ea0fa3650c2d3efded (patch)
tree7c7893fdc1c9299f05981cc263c4ae918e504913 /gdbhelpers
parent095dc58e5cdaf04330c2f75f74aab415d18d562d (diff)
downloadsparse-dev-35db0f18f8153592ec8ed6ea0fa3650c2d3efded.tar.gz
associate MOD_RESTRICT with restrict-qualified variables
Note: there is still no semantic associated with 'restrict' but this is a preparatory step. 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 3d1148a8..f6399d3b 100644
--- a/gdbhelpers
+++ b/gdbhelpers
@@ -107,6 +107,9 @@ define gdb_show_ctype
if ($arg0->modifiers & MOD_VOLATILE)
printf "MOD_VOLATILE "
end
+ if ($arg0->modifiers & MOD_RESTRICT)
+ printf "MOD_RESTRICT "
+ end
if ($arg0->modifiers & MOD_SIGNED)
printf "MOD_SIGNED "
end