This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/2] minor cleanups for cmd_list_element
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 13 Jan 2014 09:28:51 -0700
- Subject: [PATCH 0/2] minor cleanups for cmd_list_element
- Authentication-results: sourceware.org; auth=none
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