This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] S390: Name "invisible" registers with the empty string instead of NULL
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: arnez at linux dot vnet dot ibm dot com (Andreas Arnez)
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 3 Mar 2015 17:14:22 +0100 (CET)
- Subject: Re: [PATCH] S390: Name "invisible" registers with the empty string instead of NULL
- Authentication-results: sourceware.org; auth=none
Andreas Arnez wrote:
> When adding vector register support to GDB, s390_register_name() was
> added to suppress the right halves of the first 16 vector registers.
> However, that function returned NULL instead of an empty string in such
> a case. This leads to an incomplete list of registers returned by
> "complete info registers ", because completion stops at the first NULL
> return value from user_reg_map_regnum_to_name().
>
> gdb/ChangeLog:
>
> * s390-linux-tdep.c (s390_register_name): Return empty string
> instead of NULL for registers that shouldn't be visible.
This is OK.
Thanks,
Ulrich
--
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain
Ulrich.Weigand@de.ibm.com