This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [binutils-gdb] Style the gdb welcome message
- From: "Maciej W. Rozycki" <macro at wdc dot com>
- To: Andrew Burgess <andrew dot burgess at embecosm dot com>
- Cc: Tom Tromey <tom at tromey dot com>, Tom Tromey <tromey at sourceware dot org>, gdb-patches at sourceware dot org
- Date: Sat, 19 Oct 2019 12:20:59 +0100 (BST)
- Subject: Re: [binutils-gdb] Style the gdb welcome message
- Ironport-sdr: miXLD2LKO/9mWMvcBNvuhLwBgeOa30wsRRpg6v0XWZ9T8ZDrIQEpHMYvVFpByqN7hEIbnO1ZvQ mgBfNW4WxEJ3/QYBrLDIKc88YmaDeISeKd5SgOHpfaAlvAMyFwDQoOJCOh01sHyzUUutnXN4uc 66rXhaY2y09iG9F9CdwyB0Hi+oeZR6sqYZunXzozOkk74aWbbB/HT+fjJYQPPG65/t0hxsdJCe 0XLyYu5+5viXbuTW/jgXnnJVV+VDTxgsCy/64WC+JEsZD9w1vM1LjqTe6R4iVsUesVIs6f38qx RoI=
- Ironport-sdr: lFXYoHpW3kwXXPzMavvwccXk9c0L/2Lszq0mhV5DjSoSidjlQnTQMIb4Nrdnnxm/EBTGPii7Uu /omkcWM8nvJqzpaTigNTQCphTm6Np0cwbcJyTeV165pjPyO/0ua8Cb8zxjHJVKLqKI/Jxlgi/Z aDmlQ/hzDnywnaWivpbgpWstE9ow+BamVj+EPsEyO1uRYGV31MwUn7+sNRsdO6ZfQW5yjrFGPw Yk1BBJk+r86XNwT42sldLsC4V6pCf3Jm0HEwbxOwXt4Nl64TDpR1hgwsuMak8ZmkSWeuwKdsRN Z4B+hHHQhd9Pgt5HWacMSRJ9
- Ironport-sdr: Wqrf+YvO1YGYdaqcaY+IKqIuSa02Sp3ysCv8eSQZS7Lt2oK1k+iKOzoMEKsW+YSKO01hMvT53Y jRLv0SNAfF3dH+mY0iFkBXoreIT0VzbE6Xyj4Gwy1Po/ZjjPwxA2JEH1+S5VB5UM/BZ+LRKJ7h 4POb8p+K5PnNrBXzO4QlqC+0g4PaBExDK1Fz7847i6M79r22emt6dtH/ewU/bz49IFlVyOrr8q t4VWPbnrV12AywzsRY7Mh+gveUzxz7VMtqQeKHfzslfsgFOU9YgG2z4X+fROScujjiK9ouAS/F gXA=
- References: <20181228210008.91892.qmail@sourceware.org> <alpine.LFD.2.21.1910042302160.8305@redsun52.ssa.fujisawa.hgst.com> <875zkr9c9p.fsf@tromey.com> <20191015083234.GT4962@embecosm.com>
- Wdcironportexception: Internal
On Tue, 15 Oct 2019, Andrew Burgess wrote:
> > I'm curious to hear what others think. In the absence of comments I'll
> > remove it sometime before 9.1, I think. Or I'll approve a patch to
> > do so.
>
> What this might mean is that if ~/.gdbinit contains only (or starts
> with) commands that produce no output, for example 'set style enabled
> off' then these would be processed before GDB printed the welcome
> message.
Thank you all who responded for your input.
As this is a matter of a human interface I realise that personal
perception will be very different among various people, from positive,
through neutral to disturbing. The classic single-colour interface is
uniform and does not, in my personal experience, cause any disturbance
or distraction to me. Other people may appreciate the highlighting.
I think a way to move forward might be to borrow from other GNU
projects, such as GCC and coreutils, and have an environment variable
defined called GDB_COLORS, analogously to GCC_COLORS or LS_COLORS, and
make GDB interpret it ahead of its usual initialisation files (which
could optionally override the environment settings).
Thoughts?
Maciej