This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] undef reg in gdb_curses.h
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 29 Oct 2013 10:41:47 -0600
- Subject: Re: [RFC] undef reg in gdb_curses.h
- Authentication-results: sourceware.org; auth=none
- References: <1382024768-24151-1-git-send-email-tromey at redhat dot com>
>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:
Tom> I tried to build gdb on the AIX machine in the GCC compile farm
Tom> (gcc111), but it failed in a couple of spots because gdb uses "reg" as
Tom> a variable name and the AIX <curses.h> defines "reg" to "register".
Tom> I saw that we already had a workaround for this lurking in utils.c, so
Tom> I just moved that to gdb_curses.h.
Tom> This fixed the problem on AIX and still builds on x86-64 Fedora 18.
Tom> Let me know what you think. I suppose in the absence of comments I
Tom> will put this in.
I'm checking this in now.
Tom