(Once again, now with Changelog :-) Hi all, I've created a new typecode TYPE_CODE_FLAGS with appropriate functions and used it in builtin_type_i386_eflags type. I did this to be able to print i386's and x86-64's FLAGS register in a symbolic form, instead of printing it in a hexadecimal and decimal notation. Now it looks like this: (gdb) info registers eflags eflags 0x747 [ DF IF TF ZF PF CF ] I've chosen quite a generic way for implementation, so that the others could use this for their types as well. For now I'm using this type only on x86-64, but using it on i386 should be possible without modifications. (BTW Should I do it or the maintainer will?) 2002-04-22 Michal Ludvig * c-valprint.c (c_val_print): Added handling of TYPE_CODE_FLAGS. * gdbtypes.c (builtin_type_i386_eflags): Added. (add_flag_ignore, add_flag_name, init_flags_type): Added. (is_integral_type, rank_one_type, recursive_dump_type): Added TYPE_CODE_FLAGS handling. (build_gdbtypes): Added builtin_type_i386_eflags initialization. * gdbtypes.h (type_code): Added TYPE_CODE_FLAGS. (builtin_type_i386_eflags): Added. * values.c (unpack_long: Added TYPE_CODE_FLAGS handling. * x86-64-tdep.c (x86_64_register_info_table): Changed type of eflags. Any comments? Can I commit? Michal Ludvig -- * SuSE CR, s.r.o * mludvig@suse.cz * +420 2 9654 5373 * http://www.suse.cz