]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/guile/lib/gdb.scm
Add objfile-progspace to Guile interface
[thirdparty/binutils-gdb.git] / gdb / guile / lib / gdb.scm
1 ;; Scheme side of the gdb module.
2 ;;
3 ;; Copyright (C) 2014-2015 Free Software Foundation, Inc.
4 ;;
5 ;; This file is part of GDB.
6 ;;
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.
11 ;;
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.
16 ;;
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/>.
19
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.
23
24 (define-module (gdb)
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.
33 #:version (0 1))
34
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.
40
41 (export
42
43 ;; guile.c
44
45 execute
46 data-directory
47 gdb-version
48 host-config
49 target-config
50
51 ;; scm-arch.c
52
53 arch?
54 current-arch
55 arch-name
56 arch-charset
57 arch-wide-charset
58
59 arch-void-type
60 arch-char-type
61 arch-short-type
62 arch-int-type
63 arch-long-type
64
65 arch-schar-type
66 arch-uchar-type
67 arch-ushort-type
68 arch-uint-type
69 arch-ulong-type
70 arch-float-type
71 arch-double-type
72 arch-longdouble-type
73 arch-bool-type
74 arch-longlong-type
75 arch-ulonglong-type
76
77 arch-int8-type
78 arch-uint8-type
79 arch-int16-type
80 arch-uint16-type
81 arch-int32-type
82 arch-uint32-type
83 arch-int64-type
84 arch-uint64-type
85
86 ;; scm-block.c
87
88 block?
89 block-valid?
90 block-start
91 block-end
92 block-function
93 block-superblock
94 block-global-block
95 block-static-block
96 block-global?
97 block-static?
98 block-symbols
99 make-block-symbols-iterator
100 block-symbols-progress?
101 lookup-block
102
103 ;; scm-breakpoint.c
104
105 BP_NONE
106 BP_BREAKPOINT
107 BP_WATCHPOINT
108 BP_HARDWARE_WATCHPOINT
109 BP_READ_WATCHPOINT
110 BP_ACCESS_WATCHPOINT
111
112 WP_READ
113 WP_WRITE
114 WP_ACCESS
115
116 make-breakpoint
117 register-breakpoint!
118 delete-breakpoint!
119 breakpoints
120 breakpoint?
121 breakpoint-valid?
122 breakpoint-number
123 breakpoint-type
124 brekapoint-visible?
125 breakpoint-location
126 breakpoint-expression
127 breakpoint-enabled?
128 set-breakpoint-enabled!
129 breakpoint-silent?
130 set-breakpoint-silent!
131 breakpoint-ignore-count
132 set-breakpoint-ignore-count!
133 breakpoint-hit-count
134 set-breakpoint-hit-count!
135 breakpoint-thread
136 set-breakpoint-thread!
137 breakpoint-task
138 set-breakpoint-task!
139 breakpoint-condition
140 set-breakpoint-condition!
141 breakpoint-stop
142 set-breakpoint-stop!
143 breakpoint-commands
144
145 ;; scm-cmd.c
146
147 make-command
148 register-command!
149 command?
150 command-valid?
151 dont-repeat
152
153 COMPLETE_NONE
154 COMPLETE_FILENAME
155 COMPLETE_LOCATION
156 COMPLETE_COMMAND
157 COMPLETE_SYMBOL
158 COMPLETE_EXPRESSION
159
160 COMMAND_NONE
161 COMMAND_RUNNING
162 COMMAND_DATA
163 COMMAND_STACK
164 COMMAND_FILES
165 COMMAND_SUPPORT
166 COMMAND_STATUS
167 COMMAND_BREAKPOINTS
168 COMMAND_TRACEPOINTS
169 COMMAND_OBSCURE
170 COMMAND_MAINTENANCE
171 COMMAND_USER
172
173 ;; scm-disasm.c
174
175 arch-disassemble
176
177 ;; scm-exception.c
178
179 make-exception
180 exception?
181 exception-key
182 exception-args
183
184 ;; scm-frame.c
185
186 NORMAL_FRAME
187 DUMMY_FRAME
188 INLINE_FRAME
189 TAILCALL_FRAME
190 SIGTRAMP_FRAME
191 ARCH_FRAME
192 SENTINEL_FRAME
193
194 FRAME_UNWIND_NO_REASON
195 FRAME_UNWIND_NULL_ID
196 FRAME_UNWIND_OUTERMOST
197 FRAME_UNWIND_UNAVAILABLE
198 FRAME_UNWIND_INNER_ID
199 FRAME_UNWIND_SAME_ID
200 FRAME_UNWIND_NO_SAVED_PC
201 FRAME_UNWIND_MEMORY_ERROR
202
203 frame?
204 frame-valid?
205 frame-name
206 frame-type
207 frame-arch
208 frame-unwind-stop-reason
209 frame-pc
210 frame-block
211 frame-function
212 frame-older
213 frame-newer
214 frame-sal
215 frame-read-var
216 frame-select
217 newest-frame
218 selected-frame
219 unwind-stop-reason-string
220
221 ;; scm-iterator.c
222
223 make-iterator
224 iterator?
225 iterator-object
226 iterator-progress
227 set-iterator-progress!
228 iterator-next!
229 end-of-iteration
230 end-of-iteration?
231
232 ;; scm-lazy-string.c
233 ;; FIXME: Where's the constructor?
234
235 lazy-string?
236 lazy-string-address
237 lazy-string-length
238 lazy-string-encoding
239 lazy-string-type
240 lazy-string->value
241
242 ;; scm-math.c
243
244 valid-add
245 value-sub
246 value-mul
247 value-div
248 value-rem
249 value-mod
250 value-pow
251 value-not
252 value-neg
253 value-pos
254 value-abs
255 value-lsh
256 value-rsh
257 value-min
258 value-max
259 value-lognot
260 value-logand
261 value-logior
262 value-logxor
263 value=?
264 value<?
265 value<=?
266 value>?
267 value>=?
268
269 ;; scm-objfile.c
270
271 objfile?
272 objfile-valid?
273 objfile-filename
274 objfile-progspace
275 objfile-pretty-printers
276 set-objfile-pretty-printers!
277 current-objfile
278 objfiles
279
280 ;; scm-param.c
281
282 PARAM_BOOLEAN
283 PARAM_AUTO_BOOLEAN
284 PARAM_ZINTEGER
285 PARAM_UINTEGER
286 PARAM_ZUINTEGER
287 PARAM_ZUINTEGER_UNLIMITED
288 PARAM_STRING
289 PARAM_STRING_NOESCAPE
290 PARAM_OPTIONAL_FILENAME
291 PARAM_FILENAME
292 PARAM_ENUM
293
294 make-parameter
295 register-parameter!
296 parameter?
297 parameter-value
298 set-parameter-value!
299
300 ;; scm-ports.c
301
302 input-port
303 output-port
304 error-port
305 stdio-port?
306 open-memory
307 memory-port?
308 memory-port-range
309 memory-port-read-buffer-size
310 set-memory-port-read-buffer-size!
311 memory-port-write-buffer-size
312 set-memory-port-write-buffer-size!
313 ;; with-gdb-output-to-port, with-gdb-error-to-port are in experimental.scm.
314
315 ;; scm-pretty-print.c
316
317 make-pretty-printer
318 pretty-printer?
319 pretty-printer-enabled?
320 set-pretty-printer-enabled!
321 make-pretty-printer-worker
322 pretty-printer-worker?
323 pretty-printers
324 set-pretty-printers!
325
326 ;; scm-progspace.c
327
328 progspace?
329 progspace-valid?
330 progspace-filename
331 progspace-objfiles
332 progspace-pretty-printers
333 set-progspace-pretty-printers!
334 current-progspace
335 progspaces
336
337 ;; scm-gsmob.c
338
339 gdb-object-kind
340
341 ;; scm-string.c
342
343 string->argv
344
345 ;; scm-symbol.c
346
347 SYMBOL_LOC_UNDEF
348 SYMBOL_LOC_CONST
349 SYMBOL_LOC_STATIC
350 SYMBOL_LOC_REGISTER
351 SYMBOL_LOC_ARG
352 SYMBOL_LOC_REF_ARG
353 SYMBOL_LOC_LOCAL
354 SYMBOL_LOC_TYPEDEF
355 SYMBOL_LOC_LABEL
356 SYMBOL_LOC_BLOCK
357 SYMBOL_LOC_CONST_BYTES
358 SYMBOL_LOC_UNRESOLVED
359 SYMBOL_LOC_OPTIMIZED_OUT
360 SYMBOL_LOC_COMPUTED
361 SYMBOL_LOC_REGPARM_ADDR
362
363 SYMBOL_UNDEF_DOMAIN
364 SYMBOL_VAR_DOMAIN
365 SYMBOL_STRUCT_DOMAIN
366 SYMBOL_LABEL_DOMAIN
367 SYMBOL_VARIABLES_DOMAIN
368 SYMBOL_FUNCTIONS_DOMAIN
369 SYMBOL_TYPES_DOMAIN
370
371 symbol?
372 symbol-valid?
373 symbol-type
374 symbol-symtab
375 symbol-line
376 symbol-name
377 symbol-linkage-name
378 symbol-print-name
379 symbol-addr-class
380 symbol-argument?
381 symbol-constant?
382 symbol-function?
383 symbol-variable?
384 symbol-needs-frame?
385 symbol-value
386 lookup-symbol
387 lookup-global-symbol
388
389 ;; scm-symtab.c
390
391 symtab?
392 symtab-valid?
393 symtab-filename
394 symtab-fullname
395 symtab-objfile
396 symtab-global-block
397 symtab-static-block
398 sal?
399 sal-valid?
400 sal-symtab
401 sal-line
402 sal-pc
403 sal-last
404 find-pc-line
405
406 ;; scm-type.c
407
408 TYPE_CODE_BITSTRING
409 TYPE_CODE_PTR
410 TYPE_CODE_ARRAY
411 TYPE_CODE_STRUCT
412 TYPE_CODE_UNION
413 TYPE_CODE_ENUM
414 TYPE_CODE_FLAGS
415 TYPE_CODE_FUNC
416 TYPE_CODE_INT
417 TYPE_CODE_FLT
418 TYPE_CODE_VOID
419 TYPE_CODE_SET
420 TYPE_CODE_RANGE
421 TYPE_CODE_STRING
422 TYPE_CODE_ERROR
423 TYPE_CODE_METHOD
424 TYPE_CODE_METHODPTR
425 TYPE_CODE_MEMBERPTR
426 TYPE_CODE_REF
427 TYPE_CODE_CHAR
428 TYPE_CODE_BOOL
429 TYPE_CODE_COMPLEX
430 TYPE_CODE_TYPEDEF
431 TYPE_CODE_NAMESPACE
432 TYPE_CODE_DECFLOAT
433 TYPE_CODE_INTERNAL_FUNCTION
434
435 type?
436 lookup-type
437 type-code
438 type-fields
439 type-tag
440 type-sizeof
441 type-strip-typedefs
442 type-array
443 type-vector
444 type-pointer
445 type-range
446 type-reference
447 type-target
448 type-const
449 type-volatile
450 type-unqualified
451 type-name
452 type-num-fields
453 type-fields
454 make-field-iterator
455 type-field
456 type-has-field?
457 field?
458 field-name
459 field-type
460 field-enumval
461 field-bitpos
462 field-bitsize
463 field-artificial?
464 field-baseclass?
465
466 ;; scm-value.c
467
468 value?
469 make-value
470 value-optimized-out?
471 value-address
472 value-type
473 value-dynamic-type
474 value-cast
475 value-dynamic-cast
476 value-reinterpret-cast
477 value-dereference
478 value-referenced-value
479 value-field
480 value-subscript
481 value-call
482 value->bool
483 value->integer
484 value->real
485 value->bytevector
486 value->string
487 value->lazy-string
488 value-lazy?
489 make-lazy-value
490 value-fetch-lazy!
491 value-print
492 parse-and-eval
493 history-ref
494 )
495
496 ;; Load the rest of the Scheme side.
497
498 (include "gdb/init.scm")
499
500 ;; These come from other files, but they're really part of this module.
501
502 (export
503
504 ;; init.scm
505 orig-input-port
506 orig-output-port
507 orig-error-port
508 throw-user-error
509 )