| 1 |
<HTML> |
| 2 |
|
| 3 |
<HEAD> |
| 4 |
<TITLE>Debugging Tips for Developers</TITLE> |
| 5 |
|
| 6 |
<LINK rel=stylesheet type="text/css" |
| 7 |
href="./wdoc.css" |
| 8 |
title="Style sheet for wdoc developer documents"> |
| 9 |
|
| 10 |
</HEAD> |
| 11 |
|
| 12 |
|
| 13 |
<BODY> |
| 14 |
|
| 15 |
<BLOCKQUOTE> |
| 16 |
<DIV ALIGN=CENTER> |
| 17 |
<IMG SRC="images/sub.gif" ALT="[ACEDB DOCUMENTATION]" align=middle> |
| 18 |
<H3> |
| 19 |
ACEDB |
| 20 |
</H3> |
| 21 |
</DIV> |
| 22 |
|
| 23 |
|
| 24 |
<DIV ALIGN=CENTER> |
| 25 |
|
| 26 |
<H1 align=center> |
| 27 |
Debugging Tips for Developers |
| 28 |
</H1> |
| 29 |
|
| 30 |
<ADDRESS>Originally written by<BR> |
| 31 |
Ed Griffiths <[email protected]>, October 2000</ADDRESS> |
| 32 |
|
| 33 |
</DIV> |
| 34 |
|
| 35 |
<H2>Checking what dynamic libraries are used by an executable</H2> |
| 36 |
|
| 37 |
<P>To check which libraries are picked up at runtime use ldd if it's available on |
| 38 |
your machine otherwise try one of the following, just set the environmental |
| 39 |
variable(s) and then run the executable. |
| 40 |
|
| 41 |
<pre><CODE> |
| 42 |
ALPHA |
| 43 |
setenv _RLD_ARGS -v |
| 44 |
|
| 45 |
|
| 46 |
SGI |
| 47 |
setenv _RLDN32_PATH /usr/lib32/rld.debug |
| 48 |
setenv _RLD_ARGS -v |
| 49 |
|
| 50 |
|
| 51 |
SOLARIS and LINUX |
| 52 |
setenv LD_DEBUG libs |
| 53 |
</CODE></pre> |
| 54 |
|
| 55 |
|
| 56 |
<HR> |
| 57 |
<H3 ALIGN="CENTER">ACEDB</H3> |
| 58 |
|
| 59 |
|
| 60 |
<HR> |
| 61 |
<ADDRESS><A href="mailto:[email protected]">Ed Griffiths <[email protected]></A></ADDRESS> |
| 62 |
<!-- hhmts start --> |
| 63 |
Last modified: Thu Oct 19 10:33:01 BST 2000 |
| 64 |
<!-- hhmts end --> |
| 65 |
|
| 66 |
</BLOCKQUOTE> |
| 67 |
</BODY> |
| 68 |
</HTML> |