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]

Verbose eflags on i386/x86-64


Hi,
I'd like to modify "info registers" so that it would print current state 
of flags within eflags register on i386/x86-64.
Now the output is:
eflags         0x246    582
and I would like to see something like:
eflags         0x246    [DF SF AF PF]

I don't know what is the correct approach. I'd vote for adding new 
builtin_whatever_type_for_x86_eflags, modify register_virtual_type 
function and add a new function for printing a function with this type.

Can I do it this way, or is there a better solution?

Michal Ludvig
-- 
* SuSE CR, s.r.o     * mludvig@suse.cz
* +420 2 9654 5373   * http://www.suse.cz


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