blob: 18dc6fa1184baa56f0d6c050def848d90548088c [file] [log] [blame]
<html lang="en">
<head>
<title>Supported Languages - 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="Languages.html#Languages" title="Languages">
<link rel="prev" href="Checks.html#Checks" title="Checks">
<link rel="next" href="Unsupported-Languages.html#Unsupported-Languages" title="Unsupported Languages">
<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="Supported-Languages"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="Unsupported-Languages.html#Unsupported-Languages">Unsupported Languages</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="Checks.html#Checks">Checks</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Languages.html#Languages">Languages</a>
<hr>
</div>
<h3 class="section">15.4 Supported Languages</h3>
<p><span class="sc">gdb</span> supports C, C<tt>++</tt>, D, Go, Objective-C, Fortran,
OpenCL C, Pascal, Rust, assembly, Modula-2, and Ada.
<!-- This is false ... -->
Some <span class="sc">gdb</span> features may be used in expressions regardless of the
language you use: the <span class="sc">gdb</span> <code>@</code> and <code>::</code> operators,
and the &lsquo;<samp><span class="samp">{type}addr</span></samp>&rsquo; construct (see <a href="Expressions.html#Expressions">Expressions</a>) can be used with the constructs of any supported
language.
<p>The following sections detail to what degree each source language is
supported by <span class="sc">gdb</span>. These sections are not meant to be language
tutorials or references, but serve only as a reference guide to what the
<span class="sc">gdb</span> expression parser accepts, and what input and output
formats should look like for different languages. There are many good
books written on each of these languages; please look to these for a
language reference or tutorial.
<ul class="menu">
<li><a accesskey="1" href="C.html#C">C</a>: C and C<tt>++</tt>
<li><a accesskey="2" href="D.html#D">D</a>: D
<li><a accesskey="3" href="Go.html#Go">Go</a>: Go
<li><a accesskey="4" href="Objective_002dC.html#Objective_002dC">Objective-C</a>: Objective-C
<li><a accesskey="5" href="OpenCL-C.html#OpenCL-C">OpenCL C</a>: OpenCL C
<li><a accesskey="6" href="Fortran.html#Fortran">Fortran</a>: Fortran
<li><a accesskey="7" href="Pascal.html#Pascal">Pascal</a>: Pascal
<li><a accesskey="8" href="Rust.html#Rust">Rust</a>: Rust
<li><a accesskey="9" href="Modula_002d2.html#Modula_002d2">Modula-2</a>: Modula-2
<li><a href="Ada.html#Ada">Ada</a>: Ada
</ul>
</body></html>