[PATCH, obvious?] Fix incorrect reference to source files

Luis Machado lgustavo@codesourcery.com
Tue Dec 6 23:07:00 GMT 2016


On 12/06/2016 05:02 PM, Simon Marchi wrote:
> On 2016-12-06 17:55, Luis Machado wrote:
>> How about the following? I also fixed another occurrences of the same
>> mistake
>> in another source file.
>>
>> ----
>>
>> gdb/gdbserver/ChangeLog:
>>
>> 2016-12-06  Luis Machado  <lgustavo@codesourcery.com>
>>
>>     * win32-i386-low.c: Fix incorrect reference to a couple source files.
>>     * nto-x86-low.c: Likewise.
>> ---
>>  gdb/gdbserver/nto-x86-low.c    | 2 +-
>>  gdb/gdbserver/win32-i386-low.c | 4 ++--
>>  2 files changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/gdb/gdbserver/nto-x86-low.c b/gdb/gdbserver/nto-x86-low.c
>> index da77c54..c7303ab 100644
>> --- a/gdb/gdbserver/nto-x86-low.c
>> +++ b/gdb/gdbserver/nto-x86-low.c
>> @@ -25,7 +25,7 @@
>>  #include <x86/context.h>
>>
>>
>> -/* Definition auto generated from reg-i386.dep.  */
>> +/* Defined in auto-generated build-time file gdb/gdbserver/i386.c.  */
>>  extern void init_registers_i386 ();
>>  extern struct reg *regs_i386;
>>  extern const struct target_desc *tdesc_i386;
>> diff --git a/gdb/gdbserver/win32-i386-low.c
>> b/gdb/gdbserver/win32-i386-low.c
>> index 5daa863..dc20d68 100644
>> --- a/gdb/gdbserver/win32-i386-low.c
>> +++ b/gdb/gdbserver/win32-i386-low.c
>> @@ -29,11 +29,11 @@
>>  #define FLAG_TRACE_BIT 0x100
>>
>>  #ifdef __x86_64__
>> -/* Defined in auto-generated file reg-amd64.c.  */
>> +/* Defined in auto-generated build-time file gdb/gdbserver/amd64.c.  */
>>  void init_registers_amd64 (void);
>>  extern const struct target_desc *tdesc_amd64;
>>  #else
>> -/* Defined in auto-generated file reg-i386.c.  */
>> +/* Defined in auto-generated build-time file gdb/gdbserver/i386.c.  */
>>  void init_registers_i386 (void);
>>  extern const struct target_desc *tdesc_i386;
>>  #endif
>
> You used the wrong directory :).
>
> gdb/gdbserver -> gdb/features/i386
>

The files don't live inside gdb/features/, they are auto-generated based 
on the .dat files from gdb/regformats/ and put inside 
<build>/gdb/gdbserver/, no?



More information about the Gdb-patches mailing list