Sophie

Sophie

distrib > Fedora > 13 > i386 > media > os > by-pkgid > 52a37fb77746ef557a2ec666070d732e > files > 7

bigloo-doc-3.2b-3.fc12.i686.rpm

<!-- 95% W3C COMPLIANT, 95% CSS FREE, RAW HTML -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title>BdbThe ``Bigloo Debugger''Nov 1999</title>
 <style type="text/css">
  <!--
  pre { font-family: monospace }
  tt { font-family: monospace }
  code { font-family: monospace }
  p.flushright { text-align: right }
  p.flushleft { text-align: left }
  span.sc { font-variant: small-caps }
  span.sf { font-family: sans-serif }
  span.skribetitle { font-family: sans-serif; font-weight: bolder; font-size: x-large; }
  span.refscreen { }
  span.refprint { display: none; }
  -->
 </style>
</head>

<body class="chapter" bgcolor="#ffffff">
<table width="100%" class="skribetitle" cellspacing="0" cellpadding="0"><tbody>
<tr><td align="center" bgcolor="#8381de"><div class="skribetitle"><strong><big><big><big>4. Bdb<br/>The ``Bigloo Debugger''<br/>Nov 1999 -- Stopping</big></big></big></strong></div><center>
</center>
</td></tr></tbody></table>
<table cellpadding="3" cellspacing="0" width="100%" class="skribe-margins"><tr>
<td align="left" valign="top" class="skribe-left-margin" width="20%" bgcolor="#dedeff"><div class="skribe-left-margin">
<br/><center id='center1545'
><table width="97%" border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse;" frame="box" rules="none"><tbody>
<tr bgcolor="#8381de"><th id="tc1535" align="center" colspan="1"><font color="#ffffff"><strong id='bold1533'
>main page</strong></font></th></tr>
<tr bgcolor="#ffffff"><td id="tc1542" align="center" colspan="1"><table width="100%" border="0" style="border-collapse: collapse;" frame="void" rules="none"><tbody>
<tr><td id="tc1538" align="left" valign="top" colspan="1"><strong id='bold1537'
>top:</strong></td><td id="tc1539" align="right" valign="top" colspan="1"><a href="bdb.html#Bdb-The-``Bigloo-Debugger''-Nov-1999" class="inbound">Bdb<br/>The ``Bigloo Debugger''<br/>Nov 1999</a></td></tr>
</tbody></table>
</td></tr>
</tbody></table>
</center>
<br/><br/><center id='center1555'
><table width="97%" border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse;" frame="box" rules="none"><tbody>
<tr bgcolor="#8381de"><th id="tc1549" align="center" colspan="1"><font color="#ffffff"><strong id='bold1547'
>Stopping</strong></font></th></tr>
<tr bgcolor="#ffffff"><td id="tc1552" align="center" colspan="1"><table cellspacing="1" cellpadding="1" width="100%" class="toc">
<tbody>
 <tr><td valign="top" align="left">4.1</td><td colspan="4" width="100%"><a href="bdb-5.html#Setting-breakpoints">Setting breakpoints</a></td></tr>
 <tr><td valign="top" align="left">4.2</td><td colspan="4" width="100%"><a href="bdb-5.html#Break-conditions">Break conditions</a></td></tr>
</tbody>
</table>
</td></tr>
</tbody></table>
</center>
<br/><br/><center id='center1565'
><table width="97%" border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse;" frame="box" rules="none"><tbody>
<tr bgcolor="#8381de"><th id="tc1559" align="center" colspan="1"><font color="#ffffff"><strong id='bold1557'
>Chapters</strong></font></th></tr>
<tr bgcolor="#ffffff"><td id="tc1562" align="center" colspan="1"><table cellspacing="1" cellpadding="1" width="100%" class="toc">
<tbody>
 <tr><td valign="top" align="left"></td><td colspan="4" width="100%"><a href="bdb-1.html#Bdb-Copying-Conditions">Bdb Copying Conditions</a></td></tr>
 <tr><td valign="top" align="left">1</td><td colspan="4" width="100%"><a href="bdb-2.html#Table-of-contents">Table of contents</a></td></tr>
 <tr><td valign="top" align="left">2</td><td colspan="4" width="100%"><a href="bdb-3.html#Overview">Overview</a></td></tr>
 <tr><td valign="top" align="left">3</td><td colspan="4" width="100%"><a href="bdb-4.html#Running-Programs-Under-BDB">Running Programs Under BDB</a></td></tr>
 <tr><td valign="top" align="left">4</td><td colspan="4" width="100%"><a href="bdb-5.html#Stopping">Stopping</a></td></tr>
 <tr><td valign="top" align="left">5</td><td colspan="4" width="100%"><a href="bdb-6.html#Continuing-execution-after-a-breakpoint">Continuing execution after a breakpoint</a></td></tr>
 <tr><td valign="top" align="left">6</td><td colspan="4" width="100%"><a href="bdb-7.html#Examining-the-Stack">Examining the Stack</a></td></tr>
 <tr><td valign="top" align="left">7</td><td colspan="4" width="100%"><a href="bdb-8.html#Using-BDB-under-Emacs">Using BDB under Emacs</a></td></tr>
 <tr><td valign="top" align="left"></td><td colspan="4" width="100%"><a href="bdb-9.html#Bibliography">Bibliography</a></td></tr>
 <tr><td valign="top" align="left"></td><td colspan="4" width="100%"><a href="bdb-10.html#Index">Index</a></td></tr>
</tbody>
</table>
</td></tr>
</tbody></table>
</center>
</div></td>
<td align="left" valign="top" class="skribe-body"><div class="skribe-body">
<a name="Stopping" class="mark"></a><a name="g1164" class="mark"></a>
In addition to the GDB commands, BDB enables breakpoints inside
Bigloo source code 


<!-- Setting breakpoints -->
<a name="Setting-breakpoints"></a>
<div class="section-atitle"><table width="100%"><tr><td bgcolor="#dedeff"><h3><font color="black">4.1 Setting breakpoints</font>
</h3></td></tr></table>
</div><div class="section">
<a name="Set-Breaks" class="mark"></a>
You may use any of the GDB commands to set breakpoints
The key point is that none of these
commands know Bigloo identifiers. Setting breakpoints inside Bigloo
functions requires special BDB commands:<br/><br/><dl class="description" id='description1193'
> <dt><code id='code1167'
>break FUNCTION</code></dt> <dt><code id='code1168'
>
</code></dt> <dt><code id='code1169'
>b FUNCTION</code></dt> <dt><code id='code1170'
>
</code></dt><dd><a name="g1171" class="mark"></a>Set a breakpoint at entry to the function <code id='code1174'
><em id='it1173'
>FUNCTION</em></code>. IF <code id='code1176'
><em id='it1175'
>FUNCTION</em></code>
is an  uppercase symbol, <code id='code1178'
><em id='it1177'
>FUNCTION</em></code> is interpreted as the name of a Bigloo
function. If <code id='code1180'
><em id='it1179'
>FUNCTION</em></code> contains at least one lower case character it 
is interpreted as the name of a C function.<br/><br/></dd>
 <dt><code id='code1183'
>tbreak FUNCTION</code></dt> <dt><code id='code1184'
>
</code></dt> <dt><code id='code1185'
>tb FUNCTION</code></dt> <dt><code id='code1186'
>
</code></dt><dd><a name="g1187" class="mark"></a>Set a temporary breakpoint at entry to the function <code id='code1190'
><em id='it1189'
>FUNCTION</em></code>.<br/><br/></dd>
</dl>
</div><br>
<!-- Break conditions -->
<a name="Break-conditions"></a>
<div class="section-atitle"><table width="100%"><tr><td bgcolor="#dedeff"><h3><font color="black">4.2 Break conditions</font>
</h3></td></tr></table>
</div><div class="section">
<a name="Conditions" class="mark"></a>
Conditions may be associated with breakpoints inside debugged code.
The syntax is:<br/><br/><dl class="description" id='description1210'
> <dt><code id='code1195'
>bcond BNUM EXPRESSION</code></dt> <dt><code id='code1196'
>
</code></dt><dd><a name="g1197" class="mark"></a>Specify <code id='code1200'
><em id='it1199'
>EXPRESSION</em></code> as the break condition for breakpoint number 
<code id='code1202'
><em id='it1201'
>BNUM</em></code>. <code id='code1204'
><em id='it1203'
>EXPRESSION</em></code> is an expression that is evaluated in the 
environment of the breakpoint. That is <code id='code1206'
><em id='it1205'
>EXPRESSION</em></code> may uses local 
variables. If <code id='code1208'
><em id='it1207'
>EXPRESSION</em></code> is made of uppercase symbols, it is
interpreted as a Bigloo expression and is thus evaluated by the Bigloo
interpreter. Otherwise it is interpreted as a C expression.
</dd>
</dl>
</div><br>
</div></td>
</tr></table><div class="skribe-ending">
<hr> 
<p class="ending" id='paragraph1571'
><font size="-1">
This <span class="sc">Html</span> page has been produced by 
<a href="http://www.inria.fr/mimosa/fp/Skribe" class="http">Skribe</a>.
<br/>
Last update <em id='it1569'
>Tue Jun  2 11:43:28 2009</em>.</font></p></div>
</body>
</html>