Re: gdb under FC devel and undefined symbols

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> flavor is a *int:
> 
> int i, *flavor, yum = 0;

Because flavor is a scalar, it is often somewhat easy for the compiler
to "eliminate" it, leaving no memory location where it resides.
In many cases a register is assigned.  If for an entire statement,
then the register could be tagged as the location of the variable,
but if for less than an entire statement then it gets cloudy as to
what is reasonable.

> x86 assembler is not a total stranger to me.

The one-minute into is:
  (gdb) x/4i $pc  # next instruction and following 3
  (gdb) x/12i $pc-0x18  # heuristic for plausible previous instructions
  (gdb) p $eax   # register %eax
  (gdb) p $ebp   # stack frame pointer, if used as such
  (gdb) stepi   # single-step one instruction

-- 

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux