118 lines
6.1 KiB
HTML
118 lines
6.1 KiB
HTML
<html lang="en">
|
|
<head>
|
|
<title>Objfiles In Guile - Debugging with GDB</title>
|
|
<meta http-equiv="Content-Type" content="text/html">
|
|
<meta name="description" content="Debugging with GDB">
|
|
<meta name="generator" content="makeinfo 4.13">
|
|
<link title="Top" rel="start" href="index.html#Top">
|
|
<link rel="up" href="Guile-API.html#Guile-API" title="Guile API">
|
|
<link rel="prev" href="Progspaces-In-Guile.html#Progspaces-In-Guile" title="Progspaces In Guile">
|
|
<link rel="next" href="Frames-In-Guile.html#Frames-In-Guile" title="Frames In Guile">
|
|
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
|
|
<!--
|
|
Copyright (C) 1988-2019 Free Software Foundation, Inc.
|
|
|
|
Permission is granted to copy, distribute and/or modify this document
|
|
under the terms of the GNU Free Documentation License, Version 1.3 or
|
|
any later version published by the Free Software Foundation; with the
|
|
Invariant Sections being ``Free Software'' and ``Free Software Needs
|
|
Free Documentation'', with the Front-Cover Texts being ``A GNU Manual,''
|
|
and with the Back-Cover Texts as in (a) below.
|
|
|
|
(a) The FSF's Back-Cover Text is: ``You are free to copy and modify
|
|
this GNU Manual. Buying copies from GNU Press supports the FSF in
|
|
developing GNU and promoting software freedom.''
|
|
-->
|
|
<meta http-equiv="Content-Style-Type" content="text/css">
|
|
<style type="text/css"><!--
|
|
pre.display { font-family:inherit }
|
|
pre.format { font-family:inherit }
|
|
pre.smalldisplay { font-family:inherit; font-size:smaller }
|
|
pre.smallformat { font-family:inherit; font-size:smaller }
|
|
pre.smallexample { font-size:smaller }
|
|
pre.smalllisp { font-size:smaller }
|
|
span.sc { font-variant:small-caps }
|
|
span.roman { font-family:serif; font-weight:normal; }
|
|
span.sansserif { font-family:sans-serif; font-weight:normal; }
|
|
--></style>
|
|
</head>
|
|
<body>
|
|
<div class="node">
|
|
<a name="Objfiles-In-Guile"></a>
|
|
<p>
|
|
Next: <a rel="next" accesskey="n" href="Frames-In-Guile.html#Frames-In-Guile">Frames In Guile</a>,
|
|
Previous: <a rel="previous" accesskey="p" href="Progspaces-In-Guile.html#Progspaces-In-Guile">Progspaces In Guile</a>,
|
|
Up: <a rel="up" accesskey="u" href="Guile-API.html#Guile-API">Guile API</a>
|
|
<hr>
|
|
</div>
|
|
|
|
<h5 class="subsubsection">23.3.3.14 Objfiles In Guile</h5>
|
|
|
|
<p><a name="index-objfiles-in-guile-2664"></a><a name="index-g_t_003cgdb_003aobjfile_003e-2665"></a><span class="sc">gdb</span> loads symbols for an inferior from various
|
|
symbol-containing files (see <a href="Files.html#Files">Files</a>). These include the primary
|
|
executable file, any shared libraries used by the inferior, and any
|
|
separate debug info files (see <a href="Separate-Debug-Files.html#Separate-Debug-Files">Separate Debug Files</a>).
|
|
<span class="sc">gdb</span> calls these symbol-containing files <dfn>objfiles</dfn>.
|
|
|
|
<p>Each objfile is represented as an object of type <code><gdb:objfile></code>.
|
|
|
|
<p>The following objfile-related procedures are provided by the
|
|
<code>(gdb)</code> module:
|
|
|
|
<div class="defun">
|
|
— Scheme Procedure: <b>objfile?</b><var> object<a name="index-objfile_003f-2666"></a></var><br>
|
|
<blockquote><p>Return <code>#t</code> if <var>object</var> is a <code><gdb:objfile></code> object.
|
|
Otherwise return <code>#f</code>.
|
|
</p></blockquote></div>
|
|
|
|
<div class="defun">
|
|
— Scheme Procedure: <b>objfile-valid?</b><var> objfile<a name="index-objfile_002dvalid_003f-2667"></a></var><br>
|
|
<blockquote><p>Return <code>#t</code> if <var>objfile</var> is valid, <code>#f</code> if not.
|
|
A <code><gdb:objfile></code> object can become invalid
|
|
if the object file it refers to is not loaded in <span class="sc">gdb</span> any
|
|
longer. All other <code><gdb:objfile></code> procedures will throw an exception
|
|
if it is invalid at the time the procedure is called.
|
|
</p></blockquote></div>
|
|
|
|
<div class="defun">
|
|
— Scheme Procedure: <b>objfile-filename</b><var> objfile<a name="index-objfile_002dfilename-2668"></a></var><br>
|
|
<blockquote><p>Return the file name of <var>objfile</var> as a string,
|
|
with symbolic links resolved.
|
|
</p></blockquote></div>
|
|
|
|
<div class="defun">
|
|
— Scheme Procedure: <b>objfile-progspace</b><var> objfile<a name="index-objfile_002dprogspace-2669"></a></var><br>
|
|
<blockquote><p>Return the <code><gdb:progspace></code> that this object file lives in.
|
|
See <a href="Progspaces-In-Guile.html#Progspaces-In-Guile">Progspaces In Guile</a>, for more on progspaces.
|
|
</p></blockquote></div>
|
|
|
|
<div class="defun">
|
|
— Scheme Procedure: <b>objfile-pretty-printers</b><var> objfile<a name="index-objfile_002dpretty_002dprinters-2670"></a></var><br>
|
|
<blockquote><p>Return the list of registered <code><gdb:pretty-printer></code> objects for
|
|
<var>objfile</var>. See <a href="Guile-Pretty-Printing-API.html#Guile-Pretty-Printing-API">Guile Pretty Printing API</a>, for more information.
|
|
</p></blockquote></div>
|
|
|
|
<div class="defun">
|
|
— Scheme Procedure: <b>set-objfile-pretty-printers!</b><var> objfile printer-list<a name="index-set_002dobjfile_002dpretty_002dprinters_0021-2671"></a></var><br>
|
|
<blockquote><p>Set the list of registered <code><gdb:pretty-printer></code> objects for
|
|
<var>objfile</var> to <var>printer-list</var>. The
|
|
<var>printer-list</var> must be a list of <code><gdb:pretty-printer></code> objects.
|
|
See <a href="Guile-Pretty-Printing-API.html#Guile-Pretty-Printing-API">Guile Pretty Printing API</a>, for more information.
|
|
</p></blockquote></div>
|
|
|
|
<div class="defun">
|
|
— Scheme Procedure: <b>current-objfile</b><var><a name="index-current_002dobjfile-2672"></a></var><br>
|
|
<blockquote><p>When auto-loading a Guile script (see <a href="Guile-Auto_002dloading.html#Guile-Auto_002dloading">Guile Auto-loading</a>), <span class="sc">gdb</span>
|
|
sets the “current objfile” to the corresponding objfile. This
|
|
function returns the current objfile. If there is no current objfile,
|
|
this function returns <code>#f</code>.
|
|
</p></blockquote></div>
|
|
|
|
<div class="defun">
|
|
— Scheme Procedure: <b>objfiles</b><var><a name="index-objfiles-2673"></a></var><br>
|
|
<blockquote><p>Return a list of all the objfiles in the current program space.
|
|
</p></blockquote></div>
|
|
|
|
</body></html>
|
|
|