This is the mail archive of the gdb-patches@sourceware.org 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: [PATCH 02/16] source: add flags to print_source_lines ()


>>>>> "Markus" == Metzger, Markus T <markus.t.metzger@intel.com> writes:

Jan> Make it then 'enum print_source_lines_flags flags'.

Markus> Flags is intended as bit vector. The enum just gives names to
Markus> the individual bits.

In C it is ok to use the enum type the way that Jan suggests; and it
makes debugging a bit simpler since gdb will print the symbolic value.
gdb doesn't do this consistently (it doesn't do anything consistently
:-); but it is nice to do in new code.

Tom


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