Bug 1784210
Summary: | Incorrect printing of source lines (colorized source lines not updated when source reloaded?) | |||
---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dave Malcolm <dmalcolm> | |
Component: | gdb | Assignee: | Sergio Durigan Junior <sergiodj> | |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 31 | CC: | dsmith, jan.kratochvil, keiths, kevinb, pmuldoon, sergiodj | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | gdb-8.3.50.20190824-30.fc31 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1798695 (view as bug list) | Environment: | ||
Last Closed: | 2020-02-20 05:03:43 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: |
Description
Dave Malcolm
2019-12-16 23:52:24 UTC
Here's another example, after a rebuild of cc1, where the output for "list 4302" is only correct after "set style sources off" (and continues to be correct when "set style sources on"): (gdb) list 4302 4297 potentially looking at descendents. */ 4298 4299 /* Once we've found all reachable regions, purge all the values in 4300 them and their descendents (setting to new unknown values), without 4301 treating it as a leak. 4302 4303 TODO: make a distinction between reachable vs to-be-set-to-unknown 4304 so that we can purge state in descendents, and only set top-level 4305 regions to "unknown"? */ (gdb) set style sources off (gdb) list 4302 4297 svalue *parm_sval = get_svalue (parm_sid); 4298 if (parm_sval) 4299 if (region_svalue *parm_ptr = parm_sval->dyn_cast_region_svalue ()) 4300 { 4301 region_id pointee_rid = parm_ptr->get_pointee (); 4302 reachable_regions.add (pointee_rid); 4303 } 4304 // FIXME: what about compound parms that contain ptrs? 4305 } 4306 (gdb) set style sources on (gdb) list 4302 4297 svalue *parm_sval = get_svalue (parm_sid); 4298 if (parm_sval) 4299 if (region_svalue *parm_ptr = parm_sval->dyn_cast_region_svalue ()) 4300 { 4301 region_id pointee_rid = parm_ptr->get_pointee (); 4302 reachable_regions.add (pointee_rid); 4303 } 4304 // FIXME: what about compound parms that contain ptrs? 4305 } FWIW "set style sources on" seems to be enough to purge the cache: (gdb) list 968,968 968 else (gdb) set style sources on (gdb) list 968,968 968 state->m_region_model->on_call_pre (call, &ctxt); Upstream bug: https://sourceware.org/bugzilla/show_bug.cgi?id=25126 Thanks for the report, David, and sorry for the long time it took me to process it. Do you still want the fix backported to F30 GDB, or do you mind if I just backport it to F31 GDB? I've worked around it locally on my development box by adding set style enabled off to my ~/.gdbinit so I personally don't need it backported. FEDORA-2020-d606156d7a has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-d606156d7a gdb-8.3.50.20190824-30.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-d606156d7a gdb-8.3.50.20190824-30.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report. |