1# 2# 3# Copyright (c) 2015, Red Hat, Inc. 4# Copyright (c) 2015, Masatake YAMATO 5# 6# Author: Masatake YAMATO <yamato@redhat.com> 7# 8# This program is free software; you can redistribute it and/or 9# modify it under the terms of the GNU General Public License 10# as published by the Free Software Foundation; either version 2 11# of the License, or (at your option) any later version. 12# 13# This program is distributed in the hope that it will be useful, 14# but WITHOUT ANY WARRANTY; without even the implied warranty of 15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16# GNU General Public License for more details. 17# 18# You should have received a copy of the GNU General Public License 19# along with this program; if not, write to the Free Software 20# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 21# USA. 22# 23# 24--langdef=Gdbinit 25--map-Gdbinit=+(.gdbinit) 26--map-Gdbinit=+.gdb 27--kinddef-Gdbinit=d,definition,definitions 28--kinddef-Gdbinit=D,document,documents 29--kinddef-Gdbinit=t,toplevelVariable,toplevel variables 30--kinddef-Gdbinit=l,localVariable,local variables 31 32## 33## Ignore comments 34## 35--regex-Gdbinit=/^#.*//{exclusive} 36 37## 38## define 39## 40--regex-Gdbinit=/^define[[:space:]]+([^[:space:]]+)$/\1/d/ 41 42## 43## document 44## 45--regex-Gdbinit=/^document[[:space:]]+([^[:space:]]+)$/\1/D/ 46--kinds-Gdbinit=-D 47 48## 49## set $... 50## 51--regex-Gdbinit=/^set[[:space:]]+\$([a-zA-Z0-9_]+)[[:space:]]*=/\1/t/ 52 53## 54## __...set $... 55## 56--regex-Gdbinit=/^[[:space:]]+set[[:space:]]+\$([a-zA-Z0-9_]+)[[:space:]]*=/\1/l/ 57--kinds-Gdbinit=-l 58