[image of Archer
Fish]

GDB: The GNU Project Debugger

[bugs] [committee] [contributing] [current cvs] [documentation] [download] [home] [irc] [links] [mailing lists] [news] [schedule] [song] [wiki]

A.R. Index for GDB version 7.0

28.1587

You can not take this seriously!

Also available: most recent branch | current | last release
Last updated: Tue Oct 6 17:39:15 UTC 2009

Critical

Things previously eliminated but returned. This should always be empty.

BUGTotalDescription
ATTRIBUTE UNUSED17Do not use ATTRIBUTE_UNUSED, do not bother (GDB is compiled with -Werror and, consequently, is not able to tolerate false warnings. Since -Wunused-param produces such warnings, neither that warning flag nor ATTRIBUTE_UNUSED are used by GDB
TARGET HAS HARDWARE WATCHPOINTS1Replace TARGET_HAS_HARDWARE_WATCHPOINTS with nothing, not needed
218

File Total  %ll  %p  ATTRIBUTE UNUSED  deprecated  editCase function  frame register read  get frame base  GNU/Linux  if assignment  inline  long long  OP eol  sprintf  TARGET HAS HARDWARE WATCHPOINTS  UCASE function   Total File
Totals 1165> 19^v  1^v  17^v  451^v  19^v  19^v  16^v  37^v  89^v  11^v  54^v  262^v  152^v  1^v  17^v  1165< Totals
ada-exp.y 1>                       1^v        1< ada-exp.y
ada-lang.c 6>       6^v                        6< ada-lang.c
addrmap.c 1>         1^v                      1< addrmap.c
aix-thread.c 8>                 2^v    5^v  1^v        8< aix-thread.c
alpha-nat.c 1>       1^v                        1< alpha-nat.c
alpha-tdep.c 2>           1^v            1^v        2< alpha-tdep.c
alphanbsd-tdep.c 1>             1^v                  1< alphanbsd-tdep.c
amd64-linux-tdep.c 4>               4^v                4< amd64-linux-tdep.c
amd64-tdep.c 1>               1^v                1< amd64-tdep.c
annotate.c 6>       6^v                        6< annotate.c
annotate.h 2>       2^v                        2< annotate.h
arch-utils.c 2>       2^v                        2< arch-utils.c
arm-linux-tdep.c 6>     2^v          4^v                6< arm-linux-tdep.c
arm-tdep.c 40>     15^v  1^v        1^v    1^v    14^v  8^v      40< arm-tdep.c
armnbsd-nat.c 2>       2^v                        2< armnbsd-nat.c
blockframe.c 1>                       1^v        1< blockframe.c
breakpoint.c 6>       6^v                        6< breakpoint.c
breakpoint.h 2>       2^v                        2< breakpoint.h
buildsym.c 3>                       3^v        3< buildsym.c
c-exp.y 4>                       4^v        4< c-exp.y
c-lang.c 3>                         3^v      3< c-lang.c
c-typeprint.c 9>                       9^v        9< c-typeprint.c
c-valprint.c 2>       1^v                1^v        2< c-valprint.c
charset.c 1>                         1^v      1< charset.c
cli-out.c 1>                         1^v      1< cli-out.c
cli/cli-cmds.c 5>                 5^v              5< cli/cli-cmds.c
cli/cli-decode.c 11>       8^v                3^v        11< cli/cli-decode.c
cli/cli-decode.h 2>       2^v                        2< cli/cli-decode.h
cli/cli-script.c 9>       5^v                  4^v      9< cli/cli-script.c
cli/cli-setshow.c 4>       4^v                        4< cli/cli-setshow.c
coffread.c 16>       8^v          1^v      7^v        16< coffread.c
command.h 2>       2^v                        2< command.h
complaints.c 2>       2^v                        2< complaints.c
config/rs6000/nm-rs6000.h 1>       1^v                        1< config/rs6000/nm-rs6000.h
core-regset.c 1>       1^v                        1< core-regset.c
corefile.c 5>       5^v                        5< corefile.c
corelow.c 4>       3^v                1^v        4< corelow.c
cris-tdep.c 2>       1^v                1^v        2< cris-tdep.c
darwin-nat.c 1>       1^v                        1< darwin-nat.c
dbxread.c 9>       8^v          1^v              9< dbxread.c
defs.h 28>       26^v              2^v          28< defs.h
doublest.c 1>                       1^v        1< doublest.c
dsrec.c 4>       4^v                        4< dsrec.c
dummy-frame.c 1>       1^v                        1< dummy-frame.c
dwarf2-frame.c 3>             2^v          1^v        3< dwarf2-frame.c
dwarf2expr.c 1>             1^v                  1< dwarf2expr.c
dwarf2expr.h 1>             1^v                  1< dwarf2expr.h
dwarf2loc.c 2>             2^v                  2< dwarf2loc.c
dwarf2read.c 7>                   1^v    5^v  1^v      7< dwarf2read.c
elfread.c 7>       7^v                        7< elfread.c
eval.c 8>       2^v                6^v        8< eval.c
event-loop.c 3>                       3^v        3< event-loop.c
exceptions.c 3>       3^v                        3< exceptions.c
exceptions.h 1>       1^v                        1< exceptions.h
exec.c 6>       6^v                        6< exec.c
expprint.c 2>                       1^v  1^v      2< expprint.c
f-exp.y 1>                       1^v        1< f-exp.y
f-typeprint.c 2>                       2^v        2< f-typeprint.c
frame-base.c 1>             1^v                  1< frame-base.c
frame.c 9>       3^v    5^v  1^v                  9< frame.c
frame.h 5>       3^v    1^v  1^v                  5< frame.h
frv-tdep.c 2>                         2^v      2< frv-tdep.c
gcore.c 3>             2^v            1^v      3< gcore.c
gdb-stabs.h 1>       1^v                        1< gdb-stabs.h
gdbarch.c 15>       15^v                        15< gdbarch.c
gdbarch.h 4>       4^v                        4< gdbarch.h
gdbcore.h 4>       4^v                        4< gdbcore.h
gdbtypes.c 1>                 1^v              1< gdbtypes.c
gnu-nat.c 10>       1^v                  3^v    6^v  10< gnu-nat.c
gnu-v2-abi.c 2>       1^v                1^v        2< gnu-v2-abi.c
go32-nat.c 7> 1^v      1^v          1^v    1^v  2^v  1^v      7< go32-nat.c
hppa-hpux-tdep.c 3>                       3^v        3< hppa-hpux-tdep.c
hppa-tdep.c 1>         1^v                      1< hppa-tdep.c
hppanbsd-nat.c 3>                       3^v        3< hppanbsd-nat.c
hpux-thread.c 32>       31^v                  1^v      32< hpux-thread.c
i386-linux-tdep.c 6>               6^v                6< i386-linux-tdep.c
i386-tdep.c 1>               1^v                1< i386-tdep.c
i386-tdep.h 1>               1^v                1< i386-tdep.h
ia64-tdep.c 23>         2^v  1^v          13^v  7^v        23< ia64-tdep.c
infcmd.c 9>       7^v    1^v            1^v        9< infcmd.c
infrun.c 16>       8^v                1^v  7^v      16< infrun.c
interps.c 18>       17^v                  1^v      18< interps.c
irix5-nat.c 1>       1^v                        1< irix5-nat.c
jv-exp.y 4>                       3^v  1^v      4< jv-exp.y
jv-lang.c 2>       2^v                        2< jv-lang.c
jv-valprint.c 1>                 1^v              1< jv-valprint.c
language.c 13>                       13^v        13< language.c
libunwind-frame.c 1>       1^v                        1< libunwind-frame.c
linespec.c 12>                 2^v      8^v  2^v      12< linespec.c
linux-fork.c 3>                 2^v      1^v        3< linux-fork.c
linux-nat.c 31> 2^v              2^v  8^v    6^v    13^v      31< linux-nat.c
linux-record.c 9>               9^v                9< linux-record.c
linux-record.h 1>               1^v                1< linux-record.h
m2-exp.y 4>                       4^v        4< m2-exp.y
m2-valprint.c 2>                       2^v        2< m2-valprint.c
m32c-tdep.c 5>                       3^v  2^v      5< m32c-tdep.c
m32r-linux-nat.c 1>                 1^v              1< m32r-linux-nat.c
m68hc11-tdep.c 1>                         1^v      1< m68hc11-tdep.c
m68klinux-nat.c 1>       1^v                        1< m68klinux-nat.c
macroscope.c 1>       1^v                        1< macroscope.c
maint.c 4>       4^v                        4< maint.c
mdebugread.c 6>                       6^v        6< mdebugread.c
mi/mi-interp.c 7>       7^v                        7< mi/mi-interp.c
mi/mi-main.c 2>                       1^v  1^v      2< mi/mi-main.c
mi/mi-out.c 1>                         1^v      1< mi/mi-out.c
minsyms.c 5>                       5^v        5< minsyms.c
mips-linux-tdep.c 1>       1^v                        1< mips-linux-tdep.c
mips-tdep.c 12>       2^v    4^v            6^v        12< mips-tdep.c
mips-tdep.h 1>       1^v                        1< mips-tdep.h
monitor.c 18>       2^v          6^v    6^v  1^v  3^v      18< monitor.c
mt-tdep.c 8>           4^v          1^v  2^v  1^v      8< mt-tdep.c
nto-procfs.c 6>       2^v          1^v    2^v  1^v        6< nto-procfs.c
nto-tdep.c 6>                         5^v    1^v  6< nto-tdep.c
objc-exp.y 10>                 1^v      9^v        10< objc-exp.y
objc-lang.c 14>       1^v                13^v        14< objc-lang.c
objfiles.c 1>               1^v                1< objfiles.c
objfiles.h 2>       2^v                        2< objfiles.h
parse.c 6>                       6^v        6< parse.c
ppc-linux-nat.c 3>                     1^v    2^v      3< ppc-linux-nat.c
ppc-linux-tdep.c 2>               2^v                2< ppc-linux-tdep.c
ppc-linux-tdep.h 1>               1^v                1< ppc-linux-tdep.h
ppc-sysv-tdep.c 1>                       1^v        1< ppc-sysv-tdep.c
printcmd.c 5>                 1^v    2^v  2^v        5< printcmd.c
procfs.c 68>       6^v  2^v        22^v      25^v  13^v      68< procfs.c
record.c 1>               1^v                1< record.c
reggroups.c 1>       1^v                        1< reggroups.c
remote-fileio.c 4>       1^v                1^v  2^v      4< remote-fileio.c
remote-m32r-sdi.c 3>       1^v                  2^v      3< remote-m32r-sdi.c
remote-sim.c 3>       3^v                        3< remote-sim.c
remote.c 26>       3^v  5^v        3^v      1^v  14^v      26< remote.c
remote.h 2>       2^v                        2< remote.h
rs6000-aix-tdep.c 1>             1^v                  1< rs6000-aix-tdep.c
rs6000-nat.c 7> 1^v      3^v              3^v          7< rs6000-nat.c
rs6000-tdep.c 22>                       22^v        22< rs6000-tdep.c
scm-lang.c 1>                 1^v              1< scm-lang.c
scm-valprint.c 1>                         1^v      1< scm-valprint.c
score-tdep.c 3>                 1^v    2^v          3< score-tdep.c
score-tdep.h 3>               2^v            1^v    3< score-tdep.h
ser-base.c 2>       2^v                        2< ser-base.c
ser-go32.c 1>                 1^v              1< ser-go32.c
ser-tcp.c 2>       2^v                        2< ser-tcp.c
ser-unix.c 2>       2^v                        2< ser-unix.c
serial.c 1>       1^v                        1< serial.c
serial.h 1>       1^v                        1< serial.h
sh64-tdep.c 9>           2^v          7^v          9< sh64-tdep.c
sol-thread.c 11>         1^v        3^v        7^v      11< sol-thread.c
solib-irix.c 3>       2^v          1^v              3< solib-irix.c
solib-pa64.c 11> 11^v                              11< solib-pa64.c
solib-som.c 1>                 1^v              1< solib-som.c
solib-spu.c 7> 4^v                    3^v          7< solib-spu.c
solib-sunos.c 4>                 1^v            3^v  4< solib-sunos.c
solib-svr4.c 7>                             7^v  7< solib-svr4.c
somread.c 2>       2^v                        2< somread.c
source.c 5>                         5^v      5< source.c
stabsread.c 4>                       4^v        4< stabsread.c
stack.c 7>       4^v      3^v                  7< stack.c
symfile.c 19>       14^v          1^v      1^v  3^v      19< symfile.c
symtab.c 17>                 1^v      12^v  4^v      17< symtab.c
target.c 13>   1^v    12^v                        13< target.c
target.h 2>       2^v                        2< target.h
top.c 28>       27^v                1^v        28< top.c
tracepoint.c 48>       15^v          5^v      11^v  17^v      48< tracepoint.c
tracepoint.h 2>       2^v                        2< tracepoint.h
tui/tui-data.c 2>                 2^v              2< tui/tui-data.c
tui/tui-hooks.c 12>       12^v                        12< tui/tui-hooks.c
tui/tui-io.c 1>                         1^v      1< tui/tui-io.c
tui/tui-layout.c 1>                       1^v        1< tui/tui-layout.c
tui/tui-out.c 1>                         1^v      1< tui/tui-out.c
tui/tui-regs.c 1>                 1^v              1< tui/tui-regs.c
tui/tui-source.c 5>                 2^v        3^v      5< tui/tui-source.c
tui/tui-stack.c 6>                         6^v      6< tui/tui-stack.c
tui/tui-win.c 4>       2^v                  2^v      4< tui/tui-win.c
tui/tui-windata.c 2>                 1^v      1^v        2< tui/tui-windata.c
tui/tui.c 2>       2^v                        2< tui/tui.c
user-regs.c 1>       1^v                        1< user-regs.c
utils.c 9>       6^v                3^v        9< utils.c
v850-tdep.c 2>                 2^v              2< v850-tdep.c
valarith.c 1>                 1^v              1< valarith.c
valops.c 18>       16^v                2^v        18< valops.c
valprint.c 1>                       1^v        1< valprint.c
value.c 7>       7^v                        7< value.c
value.h 11>       11^v                        11< value.h
varobj.c 2>                       2^v        2< varobj.c
vec.c 1>                   1^v            1< vec.c
vec.h 7>                   7^v            7< vec.h
windows-nat.c 19>       6^v  7^v        3^v        3^v      19< windows-nat.c
xcoffread.c 27>       26^v          1^v              27< xcoffread.c
xstormy16-tdep.c 1>                       1^v        1< xstormy16-tdep.c
xtensa-tdep.c 4>                 1^v  1^v    1^v  1^v      4< xtensa-tdep.c
Totals 1165> 19^v  1^v  17^v  451^v  19^v  19^v  16^v  37^v  89^v  11^v  54^v  262^v  152^v  1^v  17^v  1165< Totals
File Total  %ll  %p  ATTRIBUTE UNUSED  deprecated  editCase function  frame register read  get frame base  GNU/Linux  if assignment  inline  long long  OP eol  sprintf  TARGET HAS HARDWARE WATCHPOINTS  UCASE function   Total File

Code

Coding standard problems, portability problems, readability problems.

BUGTotalDescription
OP eol262Do not use &&, or || at the end of a line
sprintf152Do not use sprintf, instead use xstrprintf
if assignment89An IF statement's expression contains an assignment
long long54Do not use `long long', instead use LONGEST
editCase function19Function name starts lower case but has uppercased letters.
%ll19Do not use printf("%ll"), instead use printf("%s",phex()) to dump a `long long' value
UCASE function17Function name is uppercase.
inline11Do not use the inline attribute; since the compiler generally ignores this, better algorithm selection is needed to improved performance
%p1Do not use printf("%p"), instead use printf("%s",paddr()) to dump a target address
if clause more than 50 lines0An IF statement's expression expands over 50 lines
10624

Comments

Problems concerning comments in source files.

BUGTotalDescription
GNU/Linux37Do not use `Linux', instead use `Linux kernel' or `GNU/Linux system'; comments should clearly differentiate between the two (this test assumes that word `Linux' appears on the same line as the word `GNU' or `kernel' or a kernel version
137

DOS 8.3 File Names

File names with problems on 8.3 file systems.

BUGTotalDescription
DECIMAL1.H DOS 8.3 dup6DOSCHK - the names DECIMAL1.H and libdecnumber/bid/decimal128.h resolve to the same file on a DOS 8.3 system.
For DOS, this can be fixed by modifying the file fnchange.lst.
DECIMAL3.H DOS 8.3 dup4DOSCHK - the names DECIMAL3.H and libdecnumber/bid/decimal32.h resolve to the same file on a DOS 8.3 system.
For DOS, this can be fixed by modifying the file fnchange.lst.
DECIMAL6.H DOS 8.3 dup4DOSCHK - the names DECIMAL6.H and libdecnumber/bid/decimal64.h resolve to the same file on a DOS 8.3 system.
For DOS, this can be fixed by modifying the file fnchange.lst.
DECNUMBE.H DOS 8.3 dup3DOSCHK - the names DECNUMBE.H and libdecnumber/decNumber.h resolve to the same file on a DOS 8.3 system.
For DOS, this can be fixed by modifying the file fnchange.lst.
GNULIB-C.M4 DOS 8.3 dup3DOSCHK - the names GNULIB-C.M4 and gdb/gnulib/m4/gnulib-cache.m4 resolve to the same file on a DOS 8.3 system.
For DOS, this can be fixed by modifying the file fnchange.lst.
HOST-IEE.C DOS 8.3 dup3DOSCHK - the names HOST-IEE.C and libdecnumber/bid/host-ieee128.c resolve to the same file on a DOS 8.3 system.
For DOS, this can be fixed by modifying the file fnchange.lst.
too many dots3DOSCHK - too many dots
DECCONTE.H DOS 8.3 dup2DOSCHK - the names DECCONTE.H and libdecnumber/decContext.h resolve to the same file on a DOS 8.3 system.
For DOS, this can be fixed by modifying the file fnchange.lst.
DECDOUBL.H DOS 8.3 dup2DOSCHK - the names DECDOUBL.H and libdecnumber/decDouble.h resolve to the same file on a DOS 8.3 system.
For DOS, this can be fixed by modifying the file fnchange.lst.
DECPACKE.H DOS 8.3 dup2DOSCHK - the names DECPACKE.H and libdecnumber/decPacked.h resolve to the same file on a DOS 8.3 system.
For DOS, this can be fixed by modifying the file fnchange.lst.
DECSINGL.H DOS 8.3 dup2DOSCHK - the names DECSINGL.H and libdecnumber/decSingle.h resolve to the same file on a DOS 8.3 system.
For DOS, this can be fixed by modifying the file fnchange.lst.
WATCHPOI.C DOS 8.3 dup2DOSCHK - the names WATCHPOI.C and gdb/testsuite/gdb.base/watchpoint.c resolve to the same file on a DOS 8.3 system.
For DOS, this can be fixed by modifying the file fnchange.lst.
WATCHPOI.EXP DOS 8.3 dup2DOSCHK - the names WATCHPOI.EXP and gdb/testsuite/gdb.base/watchpoint.exp resolve to the same file on a DOS 8.3 system.
For DOS, this can be fixed by modifying the file fnchange.lst.
1338

Deprecated

Mechanisms that have been replaced with something better, simpler, cleaner; or are no longer required by core-GDB. New code should not use deprecated mechanisms. Existing code, when touched, should be updated to use non-deprecated mechanisms. See obsolete and deprecate. (The declaration and definition are hopefully excluded from count so zero should indicate no remaining uses).

BUGTotalDescription
deprecated sym private31Do not use deprecated sym_private, see declaration for details
deprecated child ops29Do not use deprecated child_ops, see declaration for details
deprecated xfer memory22Do not use deprecated xfer_memory, see declaration for details
deprecated sym stab info20Do not use deprecated sym_stab_info, see declaration for details
deprecated set value type18Do not use deprecated set_value_type, see declaration for details
deprecated ui loop hook10Do not use deprecated ui_loop_hook, see declaration for details
deprecated warn user10Do not use deprecated warn_user, see declaration for details
deprecated add core fns8Do not use deprecated add_core_fns, see declaration for details
deprecated detach hook8Do not use deprecated detach_hook, see declaration for details
deprecated safe get selected frame8Do not use deprecated safe_get_selected_frame, see declaration for details
deprecated command loop hook7Do not use deprecated command_loop_hook, see declaration for details
deprecated query hook7Do not use deprecated query_hook, see declaration for details
deprecated readline hook7Do not use deprecated readline_hook, see declaration for details
deprecated target wait hook7Do not use deprecated target_wait_hook, see declaration for details
deprecated exec file display hook6Do not use deprecated exec_file_display_hook, see declaration for details
deprecated fp regnum6Do not use deprecated fp_regnum, see declaration for details
deprecated readline begin hook6Do not use deprecated readline_begin_hook, see declaration for details
deprecated readline end hook6Do not use deprecated readline_end_hook, see declaration for details
deprecated remove raw breakpoint6Do not use deprecated remove_raw_breakpoint, see declaration for details
deprecated throw reason6Do not use deprecated throw_reason, see declaration for details
deprecated ui load progress hook6Do not use deprecated ui_load_progress_hook, see declaration for details
deprecated context hook5Do not use deprecated context_hook, see declaration for details
deprecated function start offset5Do not use deprecated function_start_offset, see declaration for details
deprecated init ui hook5Do not use deprecated init_ui_hook, see declaration for details
deprecated memory changed hook5Do not use deprecated memory_changed_hook, see declaration for details
deprecated print frame info listing hook5Do not use deprecated print_frame_info_listing_hook, see declaration for details
deprecated register changed hook5Do not use deprecated register_changed_hook, see declaration for details
deprecated warning hook5Do not use deprecated warning_hook, see declaration for details
deprecated insert raw breakpoint4Do not use deprecated insert_raw_breakpoint, see declaration for details
deprecated selected frame level changed hook4Do not use deprecated selected_frame_level_changed_hook, see declaration for details
deprecated value modifiable4Do not use deprecated value_modifiable, see declaration for details
deprecated call command hook3Do not use deprecated call_command_hook, see declaration for details
deprecated cmd warning3Do not use deprecated cmd_warning, see declaration for details
deprecated error begin hook3Do not use deprecated error_begin_hook, see declaration for details
deprecated interactive hook3Do not use deprecated interactive_hook, see declaration for details
deprecated set gdbarch data3Do not use deprecated set_gdbarch_data, see declaration for details
deprecated show load progress3Do not use deprecated show_load_progress, see declaration for details
deprecated show value hack3Do not use deprecated show_value_hack, see declaration for details
deprecated trace start stop hook3Do not use deprecated trace_start_stop_hook, see declaration for details
deprecated annotate signal hook2Do not use deprecated annotate_signal_hook, see declaration for details
deprecated annotate signalled hook2Do not use deprecated annotate_signalled_hook, see declaration for details
deprecated attach hook2Do not use deprecated attach_hook, see declaration for details
deprecated file changed hook2Do not use deprecated file_changed_hook, see declaration for details
deprecated ibm6000 target2Do not use deprecated ibm6000_target, see declaration for details
deprecated post add symbol hook2Do not use deprecated post_add_symbol_hook, see declaration for details
deprecated pre add symbol hook2Do not use deprecated pre_add_symbol_hook, see declaration for details
deprecated set hook2Do not use deprecated set_hook, see declaration for details
deprecated target gdbarch select hack2Do not use deprecated target_gdbarch_select_hack, see declaration for details
deprecated core resize section table1Do not use deprecated core_resize_section_table, see declaration for details
deprecated pc in call dummy1Do not use deprecated pc_in_call_dummy, see declaration for details
deprecated trace find hook1Do not use deprecated trace_find_hook, see declaration for details
deprecated value frame id hack1Do not use deprecated value_frame_id_hack, see declaration for details
deprecated value internalvar hack1Do not use deprecated value_internalvar_hack, see declaration for details
deprecated value lval hack1Do not use deprecated value_lval_hack, see declaration for details
deprecated value regnum hack1Do not use deprecated value_regnum_hack, see declaration for details
deprecated debug xfer memory0Do not use deprecated debug_xfer_memory, see declaration for details
deprecated mips set processor regs hack0Do not use deprecated mips_set_processor_regs_hack, see declaration for details
deprecated serial fd0Do not use deprecated serial_fd, see declaration for details
deprecated set value modifiable0Do not use deprecated set_value_modifiable, see declaration for details
deprecated flush hook-1Do not use deprecated flush_hook, see declaration for details
deprecated target resume hook-1Do not use deprecated target_resume_hook, see declaration for details
deprecated target wait loop hook-1Do not use deprecated target_wait_loop_hook, see declaration for details
62451

Obsolete

Mechanisms that have been replaced, but have not yet been marked as such (using the deprecated_ prefix). See deprecate and deprecated.

BUGTotalDescription
frame register read19Replace frame_register_read() with get_frame_register(), or possibly introduce a new method safe_get_frame_register()
get frame base16Replace get_frame_base with get_frame_id, get_frame_base_address, get_frame_locals_address, or get_frame_args_address.
235

Deprecate

Mechanisms that are a candidate for being made obsolete. Once core GDB no longer depends on these mechanisms and/or there is a replacement available, these mechanims can be deprecated (adding the deprecated prefix) obsoleted (put into category obsolete) or deleted. See obsolete and deprecated.

BUGTotalDescription
write memory135Replace write_memory() with regcache_read() et.al.
read memory125Replace read_memory() with regcache_read() et.al.
write pc24Replace write_pc() with get_frame_base_address or get_frame_id; at present the inferior function call code still uses this when doing a DECR_PC_AFTER_BREAK
read pc13Replace READ_PC() with frame_pc_unwind; at present the inferior function call code still uses this
SOLIB ADD8Replace SOLIB_ADD with nothing, not needed?
SOLIB CREATE INFERIOR HOOK7Replace SOLIB_CREATE_INFERIOR_HOOK with nothing, not needed?
GCC2 COMPILED FLAG SYMBOL6Replace GCC2_COMPILED_FLAG_SYMBOL with nothing, not needed?
GCC COMPILED FLAG SYMBOL5Replace GCC_COMPILED_FLAG_SYMBOL with nothing, not needed?
PC SOLIB5Replace PC_SOLIB with nothing, not needed?
9328

Legacy

Methods used to prop up targets using targets that still depend on deprecated mechanisms. (The method's declaration and definition are hopefully excluded from count).

BUGTotalDescription
legacy register sim regno7Do not use legacy register_sim_regno, see declaration for details
legacy sim regno ignore3Do not use legacy sim_regno_ignore, see declaration for details
legacy name2Do not use legacy name, see declaration for details
legacy virtual frame pointer2Do not use legacy virtual_frame_pointer, see declaration for details
422

Gdbarch

Count of calls to the gdbarch set methods. (Declaration and definition hopefully excluded from count).

BUGTotalDescription
set register name59Call to set_gdbarch_register_name
set return value53Call to set_gdbarch_return_value
set num regs49Call to set_gdbarch_num_regs
set push dummy call46Call to set_gdbarch_push_dummy_call
set register type42Call to set_gdbarch_register_type
set print insn38Call to set_gdbarch_print_insn
set long double bit37Call to set_gdbarch_long_double_bit
set ptr bit35Call to set_gdbarch_ptr_bit
set skip prologue35Call to set_gdbarch_skip_prologue
set sp regnum35Call to set_gdbarch_sp_regnum
set unwind pc35Call to set_gdbarch_unwind_pc
set dummy id34Call to set_gdbarch_dummy_id
set breakpoint from pc33Call to set_gdbarch_breakpoint_from_pc
set pc regnum33Call to set_gdbarch_pc_regnum
set inner than32Call to set_gdbarch_inner_than
set regset from core section31Call to set_gdbarch_regset_from_core_section
set num pseudo regs30Call to set_gdbarch_num_pseudo_regs
set long bit29Call to set_gdbarch_long_bit
set skip trampoline code29Call to set_gdbarch_skip_trampoline_code
set long long bit25Call to set_gdbarch_long_long_bit
set frame align24Call to set_gdbarch_frame_align
set long double format22Call to set_gdbarch_long_double_format
set pseudo register read22Call to set_gdbarch_pseudo_register_read
set unwind sp22Call to set_gdbarch_unwind_sp
set pseudo register write21Call to set_gdbarch_pseudo_register_write
set write pc21Call to set_gdbarch_write_pc
set double bit20Call to set_gdbarch_double_bit
set fp0 regnum20Call to set_gdbarch_fp0_regnum
set dwarf2 reg to regnum19Call to set_gdbarch_dwarf2_reg_to_regnum
set int bit18Call to set_gdbarch_int_bit
set register reggroup p17Call to set_gdbarch_register_reggroup_p
set float bit16Call to set_gdbarch_float_bit
set short bit16Call to set_gdbarch_short_bit
set software single step16Call to set_gdbarch_software_single_step
set addr bit15Call to set_gdbarch_addr_bit
set fetch tls load module address15Call to set_gdbarch_fetch_tls_load_module_address
set skip solib resolver14Call to set_gdbarch_skip_solib_resolver
set stab reg to regnum14Call to set_gdbarch_stab_reg_to_regnum
set decr pc after break13Call to set_gdbarch_decr_pc_after_break
set register sim regno13Call to set_gdbarch_register_sim_regno
set frame args skip11Call to set_gdbarch_frame_args_skip
set believe pcc promotion10Call to set_gdbarch_believe_pcc_promotion
set char signed10Call to set_gdbarch_char_signed
set get longjmp target10Call to set_gdbarch_get_longjmp_target
set read pc10Call to set_gdbarch_read_pc
set in function epilogue p9Call to set_gdbarch_in_function_epilogue_p
set call dummy location7Call to set_gdbarch_call_dummy_location
set cannot store register7Call to set_gdbarch_cannot_store_register
set convert register p7Call to set_gdbarch_convert_register_p
set displaced step location7Call to set_gdbarch_displaced_step_location
set double format7Call to set_gdbarch_double_format
set have nonsteppable watchpoint7Call to set_gdbarch_have_nonsteppable_watchpoint
set push dummy code7Call to set_gdbarch_push_dummy_code
set register to value7Call to set_gdbarch_register_to_value
set value to register7Call to set_gdbarch_value_to_register
set address to pointer6Call to set_gdbarch_address_to_pointer
set cannot fetch register6Call to set_gdbarch_cannot_fetch_register
set displaced step copy insn6Call to set_gdbarch_displaced_step_copy_insn
set displaced step fixup6Call to set_gdbarch_displaced_step_fixup
set displaced step free closure6Call to set_gdbarch_displaced_step_free_closure
set float format6Call to set_gdbarch_float_format
set pointer to address6Call to set_gdbarch_pointer_to_address
set ps regnum6Call to set_gdbarch_ps_regnum
set addr bits remove5Call to set_gdbarch_addr_bits_remove
set convert from func ptr addr5Call to set_gdbarch_convert_from_func_ptr_addr
set ecoff reg to regnum5Call to set_gdbarch_ecoff_reg_to_regnum
set frame red zone size5Call to set_gdbarch_frame_red_zone_size
set print registers info5Call to set_gdbarch_print_registers_info
set sofun address maybe missing5Call to set_gdbarch_sofun_address_maybe_missing
set core pid to str4Call to set_gdbarch_core_pid_to_str
set core reg section encodes pid4Call to set_gdbarch_core_reg_section_encodes_pid
set core regset sections4Call to set_gdbarch_core_regset_sections
set elf make msymbol special4Call to set_gdbarch_elf_make_msymbol_special
set gcore bfd target4Call to set_gdbarch_gcore_bfd_target
set max insn length4Call to set_gdbarch_max_insn_length
set skip main prologue4Call to set_gdbarch_skip_main_prologue
set deprecated fp regnum3Call to set_gdbarch_deprecated_fp_regnum
set fetch pointer argument3Call to set_gdbarch_fetch_pointer_argument
set from file3Call to set_gdbarch_from_file
set get siginfo type3Call to set_gdbarch_get_siginfo_type
set get syscall number3Call to set_gdbarch_get_syscall_number
set memory remove breakpoint3Call to set_gdbarch_memory_remove_breakpoint
set overlay update3Call to set_gdbarch_overlay_update
set print float info3Call to set_gdbarch_print_float_info
set process record3Call to set_gdbarch_process_record
set static transform name3Call to set_gdbarch_static_transform_name
set vbit in delta3Call to set_gdbarch_vbit_in_delta
set virtual frame pointer3Call to set_gdbarch_virtual_frame_pointer
set address class name to type flags2Call to set_gdbarch_address_class_name_to_type_flags
set address class type flags2Call to set_gdbarch_address_class_type_flags
set address class type flags to name2Call to set_gdbarch_address_class_type_flags_to_name
set adjust breakpoint address2Call to set_gdbarch_adjust_breakpoint_address
set cannot step breakpoint2Call to set_gdbarch_cannot_step_breakpoint
set core read description2Call to set_gdbarch_core_read_description
set in solib return trampoline2Call to set_gdbarch_in_solib_return_trampoline
set integer to address2Call to set_gdbarch_integer_to_address
set memory insert breakpoint2Call to set_gdbarch_memory_insert_breakpoint
set process record signal2Call to set_gdbarch_process_record_signal
set sdb reg to regnum2Call to set_gdbarch_sdb_reg_to_regnum
set single step through delay2Call to set_gdbarch_single_step_through_delay
set skip permanent breakpoint2Call to set_gdbarch_skip_permanent_breakpoint
set smash text address2Call to set_gdbarch_smash_text_address
set stabs argument has addr2Call to set_gdbarch_stabs_argument_has_addr
set value from register2Call to set_gdbarch_value_from_register
set coff make msymbol special1Call to set_gdbarch_coff_make_msymbol_special
set core xfer shared libraries1Call to set_gdbarch_core_xfer_shared_libraries
set deprecated function start offset1Call to set_gdbarch_deprecated_function_start_offset
set displaced step hw singlestep1Call to set_gdbarch_displaced_step_hw_singlestep
set frame num args1Call to set_gdbarch_frame_num_args
set has global breakpoints1Call to set_gdbarch_has_global_breakpoints
set has global solist1Call to set_gdbarch_has_global_solist
set record special symbol1Call to set_gdbarch_record_special_symbol
set remote register number1Call to set_gdbarch_remote_register_number
set vtable function descriptors1Call to set_gdbarch_vtable_function_descriptors
set bits big endian0Call to set_gdbarch_bits_big_endian
set print vector info0Call to set_gdbarch_print_vector_info
set target signal from host0Call to set_gdbarch_target_signal_from_host
set target signal to host0Call to set_gdbarch_target_signal_to_host
1181641

Macro

Breakdown of macro definitions (and #undef) in configuration files.

BUGTotalDescription
nm GDB FPREGSET T2Do not define macros such as GDB_FPREGSET_T in a tm, nm or xm file, in fact do not provide a tm, nm or xm file
nm GDB GREGSET T2Do not define macros such as GDB_GREGSET_T in a tm, nm or xm file, in fact do not provide a tm, nm or xm file
macro CODESET1Do not define macros such as CODESET in a tm, nm or xm file, in fact do not provide a tm, nm or xm file
nm CANNOT STEP HW WATCHPOINTS1Do not define macros such as CANNOT_STEP_HW_WATCHPOINTS in a tm, nm or xm file, in fact do not provide a tm, nm or xm file
nm DEPRECATED IBM6000 TARGET1Do not define macros such as DEPRECATED_IBM6000_TARGET in a tm, nm or xm file, in fact do not provide a tm, nm or xm file
nm FILL FPXREGSET1Do not define macros such as FILL_FPXREGSET in a tm, nm or xm file, in fact do not provide a tm, nm or xm file
nm GET THREAD SIGNALS1Do not define macros such as GET_THREAD_SIGNALS in a tm, nm or xm file, in fact do not provide a tm, nm or xm file
nm PC SOLIB1Do not define macros such as PC_SOLIB in a tm, nm or xm file, in fact do not provide a tm, nm or xm file
nm PROCFS DONT TRACE FAULTS1Do not define macros such as PROCFS_DONT_TRACE_FAULTS in a tm, nm or xm file, in fact do not provide a tm, nm or xm file
nm PROCFS NEED CLEAR CURSIG FOR KILL1Do not define macros such as PROCFS_NEED_CLEAR_CURSIG_FOR_KILL in a tm, nm or xm file, in fact do not provide a tm, nm or xm file
nm REALTIME HI1Do not define macros such as REALTIME_HI in a tm, nm or xm file, in fact do not provide a tm, nm or xm file
nm REALTIME LO1Do not define macros such as REALTIME_LO in a tm, nm or xm file, in fact do not provide a tm, nm or xm file
nm SOLIB ADD1Do not define macros such as SOLIB_ADD in a tm, nm or xm file, in fact do not provide a tm, nm or xm file
nm SOLIB CREATE INFERIOR HOOK1Do not define macros such as SOLIB_CREATE_INFERIOR_HOOK in a tm, nm or xm file, in fact do not provide a tm, nm or xm file
nm START INFERIOR TRAPS EXPECTED1Do not define macros such as START_INFERIOR_TRAPS_EXPECTED in a tm, nm or xm file, in fact do not provide a tm, nm or xm file
nm THREAD STATE CLEAR TRACED1Do not define macros such as THREAD_STATE_CLEAR_TRACED in a tm, nm or xm file, in fact do not provide a tm, nm or xm file
nm THREAD STATE FLAVOR1Do not define macros such as THREAD_STATE_FLAVOR in a tm, nm or xm file, in fact do not provide a tm, nm or xm file
nm THREAD STATE SET TRACED1Do not define macros such as THREAD_STATE_SET_TRACED in a tm, nm or xm file, in fact do not provide a tm, nm or xm file
nm THREAD STATE SIZE1Do not define macros such as THREAD_STATE_SIZE in a tm, nm or xm file, in fact do not provide a tm, nm or xm file
1921

Fixed

Problems that have been expunged from the source code.

BUGTotalDescription
ATTRIBUTE UNUSED17Do not use ATTRIBUTE_UNUSED, do not bother (GDB is compiled with -Werror and, consequently, is not able to tolerate false warnings. Since -Wunused-param produces such warnings, neither that warning flag nor ATTRIBUTE_UNUSED are used by GDB
TARGET HAS HARDWARE WATCHPOINTS1Replace TARGET_HAS_HARDWARE_WATCHPOINTS with nothing, not needed
abort0Do not use abort, instead use internal_error; GDB should never abort
ADD SHARED SYMBOL FILES0Replace ADD_SHARED_SYMBOL_FILES with nothing, not needed?
ARGSUSED0Do not use ARGSUSED, unnecessary
asprintf0Do not use asprintf(), instead use xstrprintf()
assert0Do not use assert, instead use gdb_assert or internal_error; assert calls abort and GDB should never call abort
assert.h0Do not include assert.h, instead include "gdb_assert.h"
basename0Do not use basename, instead use lbasename
bcmp0Do not use bcmp(), ISO C 90 implies memcmp()
bcopy0Do not use bcopy(), ISO C 90 implies memcpy() and memmove()
BIG ENDIAN0Do not use BIG_ENDIAN, instead use BFD_ENDIAN_BIG
boolean0Do not use `boolean', use `int' instead
bzero0Do not use bzero(), instead use memset()
CYGWIN32 0Do not use __CYGWIN32__, instead use __CYGWIN__ or, better, an explicit autoconf tests
dirent.h0Do not include dirent.h, instead include gdb_dirent.h
d namelen0Do not use dirent.d_namelen, instead use NAMELEN
error not internal-warning0Do not use error("internal-warning"), instead use internal_warning
false0Definitely do not use `false' in boolean expressions
floatformat from double0Do not use floatformat_from_double() from libierty, instead use floatformat_from_doublest()
floatformat to double0Do not use floatformat_to_double() from libierty, instead use floatformat_to_doublest()
frame unwind unsigned register0Replace frame_unwind_unsigned_register with frame_unwind_register_unsigned
func 0Do not use __func__, ISO C 90 does not support this macro
FUNCTION 0Do not use __FUNCTION__, ISO C 90 does not support this macro
FUNCTION EPILOGUE SIZE0Replace FUNCTION_EPILOGUE_SIZE with nothing, not needed?
generic target write pc0Replace generic_target_write_pc with a per-architecture implementation, this relies on PC_REGNUM which is being eliminated
generic use struct convention0Replace generic_use_struct_convention with nothing, EXTRACT_STRUCT_VALUE_ADDRESS is a predicate
gnu-regex.h0Do not include gnu-regex.h, instead include gdb_regex.h
hash0Do not use ` #...', instead use `#...'(some compilers only correctly parse a C preprocessor directive when `#' is the first character on the line)
HAVE VFORK0Do not use HAVE_VFORK, instead include "gdb_vfork.h" and call vfork() unconditionally
IN SOLIB DYNSYM RESOLVE CODE0Replace IN_SOLIB_DYNSYM_RESOLVE_CODE with nothing, not needed?
LITTLE ENDIAN0Do not use LITTLE_ENDIAN, instead use BFD_ENDIAN_LITTLE
multi-line string0Multi-line string must have the newline escaped
PARAMS0Do not use PARAMS(), ISO C 90 implies prototypes
PROCESS LINENUMBER HOOK0Replace PROCESS_LINENUMBER_HOOK with nothing, not needed?
PTR0Do not use PTR, ISO C 90 implies `void *'
read register0Replace read_register() with regcache_read() et.al.
read sp0Replace read_sp() with frame_sp_unwind
regex.h0Do not include regex.h, instead include gdb_regex.h
register cached0Replace register_cached() with nothing, does not have a regcache parameter
REGISTER U ADDR0Replace REGISTER_U_ADDR with nothing, not needed?
sec ptr0Instead of sec_ptr, use struct bfd_section
setlinebuf0Do not use setlinebuf(), ISO C 90 implies setvbuf()
set register cached0Replace set_register_cached() with nothing, does not have a regcache parameter
SOLIB LOADED LIBRARY PATHNAME0Replace SOLIB_LOADED_LIBRARY_PATHNAME with nothing, not needed?
stat.h0Do not include stat.h or sys/stat.h, instead include gdb_stat.h
strdup0Do not use strdup(), instead use xstrdup()
strerror0Do not use strerror(), instead use safe_strerror()
strlen d name0Do not use strlen dirent.d_name, instead use NAMELEN
strnicmp0Do not use strnicmp(), instead use strncasecmp()
strsave0Do not use strsave(), instead use xstrdup() et.al.
true0Do not try to use `true' in boolean expressions
var boolean0Replace var_boolean with add_setshow_boolean_cmd
vasprintf0Do not use vasprintf(), instead use xstrvprintf
vfork.h0Do not include vfork.h, instead include gdb_vfork.h
vsprint0Do not use vsprint(), instead use xstrvprintf
wait.h0Do not include wait.h or sys/wait.h, instead include gdb_wait.h
write register0Replace write_register() with regcache_read() et.al.
xasprintf0Do not use xasprintf(), instead use xstrprintf
xregex.h0Do not include xregex.h, instead include gdb_regex.h
xvasprintf0Do not use xvasprintf(), instead use xstrvprintf
6118

Input files: ari.doc ari.doc.bug ari.doschk.bug ari.idx ari.source.bug ari.werror.bug
Scripts: gdb_ari.sh gdb_copyright.sh gdb_find.sh gdb_indent.sh gdb_makefile.sh gdb_orphan.sh

[bugs] [committee] [contributing] [current cvs] [documentation] [download] [home] [irc] [links] [mailing lists] [news] [schedule] [song] [wiki]

Please send FSF & GNU inquiries & questions to gnu@gnu.org. There are also other ways to contact the FSF.

This page is maintained by the GDB developers.

Copyright Free Software Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.

Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.

Last modified 2009-10-06.