1 ;; Scheme side of the gdb module.
3 ;; Copyright (C) 2014 Free Software Foundation, Inc.
5 ;; This file is part of GDB.
7 ;; This program is free software; you can redistribute it and/or modify
8 ;; it under the terms of the GNU General Public License as published by
9 ;; the Free Software Foundation; either version 3 of the License, or
10 ;; (at your option) any later version.
12 ;; This program is distributed in the hope that it will be useful,
13 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;; GNU General Public License for more details.
17 ;; You should have received a copy of the GNU General Public License
18 ;; along with this program. If not, see <http://www.gnu.org/licenses/>.
20 ;; This file is loaded with scm_c_primitive_load, which is ok, but files
21 ;; loaded with it are not compiled. So we do very little here, and do
22 ;; most of the initialization in init.scm.
25 ;; The version of the (gdb) module as (major minor).
26 ;; Incompatible changes bump the major version.
27 ;; Other changes bump the minor version.
28 ;; It's not clear whether we need a patch-level as well, but this can
29 ;; be added later if necessary.
30 ;; This is not the GDB version on purpose. This version tracks the Scheme
31 ;; gdb module version.
32 ;; TODO: Change to (1 0) when ready.
35 ;; Export the bits provided by the C side.
36 ;; This is so that the compiler can see the exports when
37 ;; other code uses this module.
38 ;; TODO: Generating this list would be nice, but it would require an addition
39 ;; to the GDB build system. Still, I think it's worth it.
99 make-block-symbols-iterator
100 block-symbols-progress?
108 BP_HARDWARE_WATCHPOINT
125 breakpoint-expression
127 set-breakpoint-enabled!
129 set-breakpoint-silent!
130 breakpoint-ignore-count
131 set-breakpoint-ignore-count!
133 set-breakpoint-hit-count!
135 set-breakpoint-thread!
139 set-breakpoint-condition!
193 FRAME_UNWIND_NO_REASON
195 FRAME_UNWIND_OUTERMOST
196 FRAME_UNWIND_UNAVAILABLE
197 FRAME_UNWIND_INNER_ID
199 FRAME_UNWIND_NO_SAVED_PC
200 FRAME_UNWIND_MEMORY_ERROR
207 frame-unwind-stop-reason
218 unwind-stop-reason-string
226 set-iterator-progress!
232 ;; FIXME: Where's the constructor?
273 objfile-pretty-printers
274 set-objfile-pretty-printers!
285 PARAM_ZUINTEGER_UNLIMITED
287 PARAM_STRING_NOESCAPE
288 PARAM_OPTIONAL_FILENAME
307 memory-port-read-buffer-size
308 set-memory-port-read-buffer-size!
309 memory-port-write-buffer-size
310 set-memory-port-write-buffer-size!
311 ;; with-gdb-output-to-port, with-gdb-error-to-port are in experimental.scm.
313 ;; scm-pretty-print.c
317 pretty-printer-enabled?
318 set-pretty-printer-enabled!
319 make-pretty-printer-worker
320 pretty-printer-worker?
328 progspace-pretty-printers
329 set-progspace-pretty-printers!
353 SYMBOL_LOC_CONST_BYTES
354 SYMBOL_LOC_UNRESOLVED
355 SYMBOL_LOC_OPTIMIZED_OUT
357 SYMBOL_LOC_REGPARM_ADDR
363 SYMBOL_VARIABLES_DOMAIN
364 SYMBOL_FUNCTIONS_DOMAIN
429 TYPE_CODE_INTERNAL_FUNCTION
472 value-reinterpret-cast
474 value-referenced-value
492 ;; Load the rest of the Scheme side.
493 ;; data-directory is provided by the C code.
496 (string-append (data-directory) file-name-separator-string "guile"))
498 (use-modules ((gdb init)))
500 ;; These come from other files, but they're really part of this module.