Ticket #4366: gdb-9-1-linker-error-fix.diff

File gdb-9-1-linker-error-fix.diff, 1.4 KB (added by Vijay Kumar Banerjee, on Mar 30, 2021 at 11:44:46 PM)

GDB commit: ad8464f799a4c96c7ab8bdfec3f95846cf54f9b0

  • sim/ppc/ld-insn.c

    diff --git a/sim/ppc/ld-insn.c b/sim/ppc/ld-insn.c
    index e39131ca133..585071a861f 100644
    a b  
    2828
    2929#include "igen.h"
    3030
     31static model *last_model;
     32
     33static insn *last_model_macro;
     34static insn *last_model_function;
     35static insn *last_model_internal;
     36static insn *last_model_static;
     37static insn *last_model_data;
     38
     39model *models;
     40
     41insn *model_macros;
     42insn *model_functions;
     43insn *model_internal;
     44insn *model_static;
     45insn *model_data;
     46
     47int max_model_fields_len;
     48
    3149static void
    3250update_depth(insn_table *entry,
    3351             lf *file,
  • sim/ppc/ld-insn.h

    diff --git a/sim/ppc/ld-insn.h b/sim/ppc/ld-insn.h
    index 88318ffa2b3..52baeaa2d84 100644
    a b extern insn_table *load_insn_table 
    200200 table_include *includes,
    201201 cache_table **cache_rules);
    202202
    203 model *models;
    204 model *last_model;
     203extern model *models;
    205204
    206 insn *model_macros;
    207 insn *last_model_macro;
     205extern insn *model_macros;
     206extern insn *model_functions;
     207extern insn *model_internal;
     208extern insn *model_static;
     209extern insn *model_data;
    208210
    209 insn *model_functions;
    210 insn *last_model_function;
    211 
    212 insn *model_internal;
    213 insn *last_model_internal;
    214 
    215 insn *model_static;
    216 insn *last_model_static;
    217 
    218 insn *model_data;
    219 insn *last_model_data;
    220 
    221 int max_model_fields_len;
     211extern int max_model_fields_len;
    222212
    223213extern void insn_table_insert_insn
    224214(insn_table *table,