This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Allow subscripting raw pointers
- From: Tom Tromey <tom at tromey dot com>
- To: Manish Goregaokar <manish at mozilla dot com>
- Cc: gdb-patches at sourceware dot org, Tom Tromey <tom at tromey dot com>
- Date: Tue, 05 Jul 2016 11:19:54 -0600
- Subject: Re: [PATCH] Allow subscripting raw pointers
- Authentication-results: sourceware.org; auth=none
- References: <CAFOnWknrO_Gtgj+k_foXMJk3UkzRtdq7WgzENZ4cPf2bRUv8RA@mail.gmail.com>
>>>>> "Manish" == Manish Goregaokar <manish@mozilla.com> writes:
Manish> 2016-07-04 Manish Goregaokar <manish@mozilla.com>
Manish> gdb/ChangeLog:
Manish> * rust-lang.c (rust_subscript): Allow subscripting pointers
Manish> gdb/testsuite/ChangeLog:
Manish> * simple.rs: Add test for raw pointer subscripting
Manish> * simple.exp: Add test expectations
This is ok. Thanks.
Manish> + else if (TYPE_CODE (type) == TYPE_CODE_PTR)
Manish> + {
Manish> + base = lhs;
Manish> + low_bound = 0;
Manish> + high_bound = LONGEST_MAX;
Manish> + }
Manish> else
I suspect maybe your MUA is misconfigured somehow? Your patches often
come out looking like the indentation is messed up; but in this case the
context makes it clear that the indentation is probably ok.
Tom