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]

[PATCH 0/2] minor cleanups for cmd_list_element


While working on something else, I happened to notice that
cmd_list_element is packed poorly.

This little series first cleans up cmd_list_element by replacing a
flag field with bitfields.  I think the resulting code is clearer.

The second patch trivially rearranges cmd_list_element.  The savings
are modest -- around 50k for "gdb --batch", the best possible case --
but I don't think there is any downside.

Built and regression tested on x86-64 Fedora 18.  I also ran
check-perf and compared the results; the memory use is down a bit and
all the performance differences are just noise.

Tom


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