This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: What to do with info addr and location expressions


[added binutils: gdb needs a way of printing out dwarf2 location expressions]

There are plenty of ways to fix it.  In general, we need a location
expression pretty-printer - this is quite complicated, so no one's done
it yet.  However, in specific, take a look at
locexpr_describe_location.  You could just add another case which
recognizes the form GCC emits for thread-local variables to fix the
regression.

Is that good enough?

Why not share the readelf code? Print both the actual expression and (for simple cases) an english translation.


Andrew



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]