This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH][gdb/testsuite] Compile index-cache.c with -Wl,--build-id
- From: Tom de Vries <tdevries at suse dot de>
- To: Pedro Alves <palves at redhat dot com>, gdb-patches at sourceware dot org
- Cc: Simon Marchi <simon dot marchi at polymtl dot ca>
- Date: Fri, 21 Jun 2019 17:54:31 +0200
- Subject: Re: [PATCH][gdb/testsuite] Compile index-cache.c with -Wl,--build-id
- References: <20190621152742.GA20230@delia> <cf27c5eb-60c1-681b-1635-ff6653f91759@redhat.com>
On 21-06-19 17:47, Pedro Alves wrote:
> On 6/21/19 4:27 PM, Tom de Vries wrote:
>> Hi,
>>
>> When building gdb using a combined gcc/binutils-gdb build and running
>> gdb.base/index-cache.exp we get:
>> ...
>> FAIL: gdb.base/index-cache.exp: test_cache_enabled_miss: at least one file was created
>> FAIL: gdb.base/index-cache.exp: test_cache_enabled_miss: couldn't get executable build id
>> FAIL: gdb.base/index-cache.exp: test_cache_enabled_hit: check index-cache stats
>> ...
>>
>> With "set debug index-cache on" we get:
>> ...
>> (gdb) file index-cache
>> Reading symbols from index-cache...
>> index cache: objfile index-cache has no build id
>> ...
>>
>> The problem is that the vanilla toolchain does not add a build-id, which is
>> required for the index-cache functionality.
>
> What is "vanilla" here? A non-combined gcc/build-gdb build?
> Or is "combined gcc/build-gdb build" irrelevant here, and
> "vanilla" means "no-distro-patches build"?
The latter.
Thanks,
- Tom