Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:tabraham1:branches:home:jeff_mahoney:crash-python:devel
gdb
0003-gdb-exclude-PROP_UNDEFINED-ranges-from-bou...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0003-gdb-exclude-PROP_UNDEFINED-ranges-from-bound_flag_ev.patch of Package gdb
From 595de3d8de39e79bf7581bd1436e6a3e149df1a5 Mon Sep 17 00:00:00 2001 From: Jeff Mahoney <jeffm@suse.com> Date: Wed, 18 Mar 2020 10:56:39 -0400 Subject: [PATCH 03/17] gdb: exclude PROP_UNDEFINED ranges from bound_flag_evaluated check The bound_flag_evaluated flag will be set when a dynamic type is evaluated as a static type. If the high range is PROP_UNDEFINED, nothing will be changed when it's evaluated, but the equality check will still fail. This makes it impossible to compare types in Python code if the type contains a zero-length array. Acked-by: Jeff Mahoney <jeffm@suse.com> --- gdb/gdbtypes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index 3537fb73c8a..0a626503f72 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -915,7 +915,8 @@ operator== (const range_bounds &l, const range_bounds &r) return (FIELD_EQ (low) && FIELD_EQ (high) && FIELD_EQ (flag_upper_bound_is_count) - && FIELD_EQ (flag_bound_evaluated) + && (FIELD_EQ (flag_bound_evaluated) || + l.high.kind () == PROP_UNDEFINED) && FIELD_EQ (bias)); #undef FIELD_EQ -- 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