Replace useless FRAME, FRAME_ADDR types with struct frame_info *
and CORE_ADDR, respectively. * frame.h (FRAME, FRAME_INFO_ID, FRAME_ADDR): Remove. * blockframe.c (get_frame_info): Remove. * a29k-tdep.c, alpha-tdep.c, blockframe.c, breakpoint.c, breakpoint.h, energize.c, findvar.c, gdbtk.c, gould-pinsn.c, h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, i386-tdep.c, i960-tdep.c, infcmd.c, inferior.h, infrun.c, m68k-tdep.c, m88k-tdep.c, mips-tdep.c, nindy-tdep.c, printcmd.c, pyr-tdep.c, rs6000-tdep.c, sh-tdep.c, sparc-tdep.c, stack.c, valops.c, z8k-tdep.c, config/a29k/tm-a29k.h, config/alpha/tm-alpha.h, config/gould/tm-pn.h, config/h8300/tm-h8300.h, config/h8500/tm-h8500.h, config/mips/tm-mips.h, config/ns32k/tm-merlin.h, config/ns32k/tm-umax.h, config/pyr/tm-pyr.h, config/sparc/tm-sparc.h): Replace FRAME with struct frame_info * everywhere, replace FRAME_ADDR with CORE_ADDR, rename variables consistently (using `frame' or `fi'), remove calls to get_frame_info and FRAME_INFO_ID, remove comments about FRAME and FRAME_ADDR cruftiness.
This commit is contained in:
parent
b4123234f0
commit
1dfc8dfb17
3 changed files with 7 additions and 13 deletions
|
@ -243,13 +243,7 @@ gdb_loc (clientData, interp, argc, argv)
|
|||
|
||||
if (argc == 1)
|
||||
{
|
||||
struct frame_info *frame;
|
||||
struct symbol *func;
|
||||
|
||||
frame = get_frame_info (selected_frame);
|
||||
|
||||
pc = frame ? frame->pc : stop_pc;
|
||||
|
||||
pc = selected_frame ? selected_frame->pc : stop_pc;
|
||||
sal = find_pc_line (pc, 0);
|
||||
}
|
||||
else if (argc == 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue