This file is indexed.

/usr/share/gtksourceview-3.0/language-specs/gdb-log.lang is in libgtksourceview-3.0-common 3.18.2-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright (C) 2010 Philip Withnall <philip@tecnocode.co.uk>

  GtkSourceView is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License as published by the Free Software Foundation; either
  version 2.1 of the License, or (at your option) any later version.

  GtkSourceView is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  Lesser General Public License for more details.

  You should have received a copy of the GNU Lesser General Public
  License along with this library; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-->
<language id="gdb-log" _name="GDB Log" version="2.0" _section="Other">
  <metadata>
    <property name="globs">*.gdb</property>
  </metadata>

  <styles>
    <style id="thread-action" _name="Thread Action" map-to="def:comment"/>
    <style id="thread-header" _name="Thread Header" map-to="def:statement"/>
    <style id="frame-number" _name="Frame Number" map-to="def:keyword"/>
    <style id="address" _name="Address" map-to="def:number"/>
    <style id="function" _name="Function" map-to="def:function"/>
    <style id="string" _name="String" map-to="def:string"/>
    <style id="filename" _name="Filename" map-to="def:statement"/>
    <style id="optimized-out" _name="Optimized Out" map-to="def:special-constant"/>
    <style id="incomplete-sequence" _name="Incomplete Sequence" map-to="def:special-constant"/>
    <style id="prompt" _name="Prompt" map-to="def:comment"/>
  </styles>

  <definitions>
    <define-regex id="identifier">[A-Za-z_][A-Za-z0-9_]*(?:@@[A-Za-z0-9_\.]+)?</define-regex>
    <define-regex id="filename">.+?</define-regex>

    <!-- Either a decimal number (single to multi-digit, signed or unsigned) or a standard hexadecimal number -->
    <define-regex id="thread-number">(?:-?[1-9][0-9]*|\%{def:hexadecimal})</define-regex>

    <!-- Allow reuse of the frame regexes so we can use them in frame and crash-frame -->
    <define-regex id="frame-start">((?P&lt;address&gt;\%{def:hexadecimal})\s+in\s+)?(?:(?P&lt;function&gt;\*?\%{identifier})|(?P&lt;badfunction&gt;\?\?))\s+\(</define-regex>
    <define-regex id="frame-end">(?:(?:at|from)\s+(?P&lt;filename&gt;\%{filename})(?P&lt;linenumber&gt;\:[0-9]+)?|\))$</define-regex>

    <context id="optimized-out" style-ref="optimized-out">
      <keyword>value optimized out</keyword>
    </context>

    <context id="incomplete-sequence" style-ref="incomplete-sequence">
      <keyword>incomplete sequence</keyword>
    </context>

    <context id="prompt" style-ref="prompt" end-at-line-end="true">
      <start>\(gdb\)|---|Kill|Using|Program|Starting|No symbol</start>
      <end>---$</end>
    </context>

    <context id="thread-action" style-ref="thread-action">
      <!--[New Thread 0xb73ffb70 (LWP 26323)]
          [Thread 0xb73ffb70 (LWP 26323) exited]
          [Switching to Thread 0xb7fe6b70 (LWP 26322)]
          [New LWP    1        ]-->
      <match>^\[(?:New |Switching to )?(?:Thread|LWP)\s+(\%{thread-number})?.*\]$</match>
      <include>
        <context sub-pattern="1" style-ref="address"/>
      </include>
    </context>

    <context id="thread-header" style-ref="thread-header">
      <!--Thread 4 (Thread 0xb7fe6b70 (LWP 26322)):
          Thread 10 (LWP    40        ):-->
      <match>^Thread \d+ \((?:Thread|LWP)\s+(\%{thread-number}).*\):$</match>
      <include>
        <context sub-pattern="1" style-ref="address"/>
      </include>
    </context>

    <context id="signal-handler-frame">
      <!--#3  <signal handler called>-->
      <match>^#(\d+)\s+&lt;(signal handler called)&gt;$</match>
      <include>
        <context sub-pattern="1" style-ref="frame-number"/>
        <context sub-pattern="2" style-ref="def:special-constant"/>
      </include>
    </context>

    <context id="crash-frame" end-at-line-end="false" once-only="true">
      <!--This occurs once only, at the top of the file:
          0x00110402 in __kernel_vsyscall ()-->
      <start>^\%{frame-start}</start>
      <end>\%{frame-end}</end>
      <include>
        <context where="start" sub-pattern="address" style-ref="address"/>
        <context where="start" sub-pattern="function" style-ref="function"/>
        <context where="start" sub-pattern="badfunction" style-ref="def:error"/>
        <context where="end" sub-pattern="filename" style-ref="filename"/>
        <context where="end" sub-pattern="linenumber" style-ref="def:number"/>
        <context ref="optimized-out"/>
        <context ref="incomplete-sequence"/>
        <context ref="prompt"/>
      </include>
    </context>

    <context id="frame" end-at-line-end="false">
      <!--#0  0x0054d422 in __kernel_vsyscall ()
          #1  0x005002d2 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
              at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:179
          #2  0x0043e9f4 in __pthread_cond_timedwait (cond=0xb6401678, mutex=0x88e5e58,
              abstime=0xb63ff1e8) at forward.c:152
          #-1 0xfc59f649 in __lwp_park () from /lib/libc.so.1-->
      <start>^#(?P&lt;framenumber&gt;-?\d+)\s+\%{frame-start}</start>
      <end>\%{frame-end}</end>
      <include>
        <context where="start" sub-pattern="framenumber" style-ref="frame-number"/>
        <context where="start" sub-pattern="address" style-ref="address"/>
        <context where="start" sub-pattern="function" style-ref="function"/>
        <context where="start" sub-pattern="badfunction" style-ref="def:error"/>
        <context where="end" sub-pattern="filename" style-ref="filename"/>
        <context where="end" sub-pattern="linenumber" style-ref="def:number"/>
        <context ref="optimized-out"/>
        <context ref="incomplete-sequence"/>
        <context ref="prompt"/>
      </include>
    </context>

    <!-- Necessary because some frames put their filename on the next line, after their closing bracket, and since we want to match
         frames which have no filename (i.e. just a closing bracket) as well as normal frames, we have to deal with this odd case. -->
    <context id="frame-ending">
      <!--    at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:179-->
      <match>^\s+(?:at|from)\s+(?P&lt;filename&gt;\%{filename})(?P&lt;linenumber&gt;\:[0-9]+)?$</match>
      <include>
        <context sub-pattern="filename" style-ref="filename"/>
        <context sub-pattern="linenumber" style-ref="def:number"/>
      </include>
    </context>

    <context id="gdb-log">
      <include>
        <context ref="prompt"/>
        <context ref="thread-action"/>
        <context ref="thread-header"/>
        <context ref="signal-handler-frame"/>
        <context ref="crash-frame"/>
        <context ref="frame"/>
        <context ref="frame-ending"/>
      </include>
    </context>
  </definitions>
</language>