Bug 1798695

Summary: Incorrect printing of source lines (colorized source lines not updated when source reloaded?)
Product: Red Hat Enterprise Linux 8 Reporter: Sergio Durigan Junior <sergiodj>
Component: gdbAssignee: Keith Seitz <keiths>
gdb sub component: gcc-toolset-9 QA Contact: qe-baseos-tools-bugs
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: unspecified    
Priority: unspecified CC: dmalcolm, dsmith, extras-qa, gdb-bugs, jan.kratochvil, keiths, kevinb, mcermak, ohudlick, pmuldoon, sergiodj
Version: 8.3Keywords: Triaged
Target Milestone: rc   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1784210
: 1825310 (view as bug list) Environment:
Last Closed: 2020-09-11 19:50:19 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:
Bug Depends On:    
Bug Blocks: 1825310, 1825311    

Comment 1 Keith Seitz 2020-04-17 16:18:33 UTC
RHEL8 system gdb currently ships gdb-8.2. The bug discussed here was introduced
with the source highlighting feature introduced in gdb-8.3. Moving this to DTS9.

Comment 2 Keith Seitz 2020-09-11 19:50:19 UTC
This is addressed in GTS10 already [it is part of FSF GDB 9.2 release]:

2019-10-24  H.J. Lu  <hongjiu.lu>

        PR gdb/25126
        * symfile.c (reread_symbols): Call forget_cached_source_info to
        clear the stale source cache.

The test from Sergio is missing, but it is (obviously) not needed.

Closing.