This is an automated email from Gerrit.

Alexey Brodkin (abrod...@synopsys.com) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/5160

-- gerrit

commit 87b10c75fe4ee756a01794b07e878cdf6201cbe1
Author: Alexey Brodkin <abrod...@synopsys.com>
Date:   Wed May 8 00:41:28 2019 +0300

    gdb-server: Expand arch-specific structure type every time
    
    As it is mentioned here [1] type's ID is unique name within containing
    feature. That said if regs of the same type located in different features
    it's required to insert type definition at least in each feature.
    
    See more details in discussion here [2].
    
    [1] 
https://sourceware.org/gdb/onlinedocs/gdb/Target-Description-Format.html#Types
    [2] 
https://github.com/foss-for-synopsys-dwc-arc-processors/openocd/commit/2a5f5125ac8fa0e1359b6be03b209f9f5d1ade82#r33460077
    
    Change-Id: Ia9e4b31911d6184c41d4fa38c1a0a0066a4da05e
    Signed-off-by: Alexey Brodkin <abrod...@synopsys.com>

diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c
index 95e6c04..a91fd4c 100644
--- a/src/server/gdb_server.c
+++ b/src/server/gdb_server.c
@@ -2011,7 +2011,7 @@ static int lookup_add_arch_defined_types(char const 
**arch_defined_types_list[],
                                return 1;
                        } else {
                                if (!strcmp((*arch_defined_types_list)[j], 
type_id))
-                                       return 0;
+                                       return 1;
                        }
                }
        }

-- 


_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to