288Index
running on target using serial port, 253
running on target using TCP/IP, 251–52
serial cable, 254
step-by-step procedures, 250–51
using with GNU debugger, 250–55
glibc, 45
Global Null pointer elimination test elimina-
tion pass, 46
GNU assembler, 44
GNU binary utilities, 203, 226–38
addr2line
utility, 237–38
ar
utility, 226–28
ldd
utility, 238
nm
utility, 228–31
listing debug symbols, 231
listing line numbers in source files,
230–31
objcopy
utility, 231–32
objdump
utility, 232–36
ranlib
utility, 228
size
utility, 236
strings
utility, 237
strip
utility, 228–31
GNU C compiler, 43, 135
building/installing, 48–54
configure
script, running, 49–51
final install, 52
make bootstrap
command, 51
make install
command, 52
typical directory tree after installa-
tion, 52–54
unpacking source code, 48–49
and development tools installations, 58
downloading the latest version, 48
environment variables, 54–56
C_INCLUDE_PATH
, 55
COMPILER_PATH
, 55
CPLUS_INCLUDE_PATH
, 55
GCC_EXEC_PREFIX
, 55
LD_LIBRARY_PATH
, 55
LIBRARY_PATH
, 55
OBJC_INCLUDE_PATH
, 55
TMPDIR
, 54
installing, 48–58
languages supported by, 43
location of include files, setting, 57–58
location of libraries, setting, 56–57
manual pages path, setting, 58
PATH variable, setting, 56
post-installation tasks, 56–58
GNU debugger (GDB), 12, 135–74
break
command, 141, 146, 156–58
break points:
adding, 156–58
continuing from, 158
deleting, 160
disabling, 159
enabling, 159–60
continue
command, 138, 144, 158
controlling execution, 144–46
defined, 136
delete
command, 160
disable
command, 159
disable display
command, 154
display
command, 153–54
enable
command, 159–60
enable display
command, 154
file
command, 137
files and shared libraries, 163
finish
command, 144–46, 166–68
frame
command, 146
getting started with, 136–43
common
gdb
commands, 137–38
passing command-line arguments to
program being debugged,
141–43
sample
gdb
session, 138–41
info display
command, 154
kill
command, 144
list
command, 141
next
command, 137–38, 141, 144, 146
object file formats supported by, 136
optimized code:
debugging, 160–62
print expr
command, 138
pwd
command, 154
quit
command, 137–38, 141, 144
return
command, 144
run
command, 138, 142-44
running processing:
debugging, 165–68
Next Page >>
<< Previous Page
Back to the Table of Contents