|
1316 | 1316 | \item What libraries are eventually used when running the program could be |
1317 | 1317 | different from what \texttt{ldd} shows. For example, |
1318 | 1318 | one could use the \texttt{LD\_PRELOAD} mechanism. For that reasons, |
1319 | | -Solarisu has a \texttt{pldd} command which provides for a running process |
| 1319 | +Solaris has a \texttt{pldd} command which provides for a running process |
1320 | 1320 | library dependencies. Example on \texttt{LD\_PRELOAD} with \texttt{gcc}: use |
1321 | 1321 | already mentioned \texttt{Ma\-ke\-file01}, and compile |
1322 | 1322 | \example{basic-utils/preload.c} like this: ``\texttt{gcc -shared -o |
|
1543 | 1543 | is then started from debugger using the \texttt{run} command, or the debugger |
1544 | 1544 | can be connected to already running process. \texttt{dbx} can also be used to |
1545 | 1545 | analyze program crashes, provided a \texttt{core} file was generated. |
1546 | | -\item It is possible to find it e.g. on Solarisu, it is not present by default |
| 1546 | +\item It is possible to find it e.g. on Solaris, it is not present by default |
1547 | 1547 | on other systems. |
1548 | 1548 | \item For source line debugging it is not necessary to use just the \texttt{-g} |
1549 | 1549 | option for translation, it is also necessary to have the object files and source |
|
1556 | 1556 | \texttt{gdb} command, see the \texttt{help FAQ}; the very first question is |
1557 | 1557 | ``A.1 Gdb does $<$something$>$; how do I do it in dbx?'' |
1558 | 1558 | \item If the option \texttt{-g} is not used, dbx will be still usable on |
1559 | | -Solarisu, because it will print function arguments. On BSD systems and Linux |
| 1559 | +Solaris, because it will print function arguments. On BSD systems and Linux |
1560 | 1560 | distributions the \texttt{-g} has to be used, otherwise the debuggers will not |
1561 | 1561 | be of much use. This is demonstrated in the \example{debug/dbx.c} example. |
1562 | 1562 | When compiling with gcc and using gdb the \texttt{where} command will not show |
|
0 commit comments