[Dwarf-Discuss] how to find local variable stored in register

Neeraj kushwaha kushneeraj@gmail.com
Wed Feb 6 04:57:15 GMT 2008


Continuing on this..

How GDB finds the value of variable which are stored in register for
each function stack frame?
As GDB uses dwarf debug info internally and is capable of finding them.


On Feb 6, 2008 9:10 AM, Daniel Berlin <dberlin at dberlin.org> wrote:
> On Feb 5, 2008 7:14 PM, Jim Blandy <jimb at red-bean.com> wrote:
> > On Feb 5, 2008 2:43 PM, Daniel Jacobowitz <drow at false.org> wrote:
> > > I think 16.1% of executable size is huge.  .debug_frame is normally,
> > > what, 2-3% of executable size?
> >
> > Different organizations have different concerns.  I think it's a
> > mistake for GCC to assume that a GiB is precious; it's not so for many
> > real-world organizations.
> Even at google, which has ungodly amounts of disk space, debug info
> size is a serious concern.
> This is more because of the network cost of propagating binaries
> around than it is because they happen to take up some amount of local
> disk.
> I think it would be a huge mistake to assume because local disk is
> cheap that debug info size doesn't matter.
> If you ever end up having to propagate your binary to a datacenter
> full of machines, or build on NFS, it matters a lot.

More information about the Dwarf-discuss mailing list