Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:jeff_mahoney:crash-python:devel
gdb
0001-check_types_equal-short-circuit-check-if-i...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-check_types_equal-short-circuit-check-if-identical-p.patch of Package gdb
From ccae74f7755cc286c2d225f3d91f419ba1104e79 Mon Sep 17 00:00:00 2001 From: Jeff Mahoney <jeffm@suse.com> Date: Tue, 12 Jan 2016 16:21:07 -0500 Subject: [PATCH 01/17] check_types_equal: short circuit check if identical pointers are used If two types share identical pointers, we don't need to check typedefs before comparing the result. --- gdb/gdbtypes.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index f41d6bd960e..3537fb73c8a 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -4200,6 +4200,9 @@ static bool check_types_equal (struct type *type1, struct type *type2, std::vector<type_equality_entry> *worklist) { + if (type1 == type2) + return 1; + type1 = check_typedef (type1); type2 = check_typedef (type2); -- 2.37.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor