Bug 865554

Summary: stl types are not displayed via libstdcxx printers.py
Product: [Fedora] Fedora Reporter: Stan Cox <scox>
Component: insightAssignee: Patrick Monnerat <patrick>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: keiths, patrick
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-23 07:25:25 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:
Attachments:
Description Flags
stl string test none

Description Stan Cox 2012-10-11 18:26:28 UTC
Created attachment 625625 [details]
stl string test

Description of problem:
A stl type, e.g. a string, is not displayed using the libstdcxx printers.py:
 insight -n a.out
 ...<and in the console window>
 (gdb) print hello
$1 = {static npos = <optimized out>, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x602028 "Ni Hao"}}


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. g++ hello.cxx
2. insight -n ./a.out
3. b 8
   run
   print hello
  
Actual results:


Expected results:
print hello
"Ni hao"

Additional info:

Comment 1 Keith Seitz 2012-10-11 19:11:32 UTC
This is happening because the insight executable was built without python support:

$ insight -nw -q
(gdb) python print hello
Python scripting is not supported in this copy of GDB.

Comment 2 Patrick Monnerat 2012-11-15 19:14:34 UTC
@Keith: thanks for the hint, you saved me a lot of investigations :-)

Comment 3 Fedora Update System 2012-11-15 19:15:42 UTC
insight-7.4.50-4.20120403cvs.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/insight-7.4.50-4.20120403cvs.fc17

Comment 4 Fedora Update System 2012-11-15 19:16:01 UTC
insight-7.4.50-4.20120403cvs.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/insight-7.4.50-4.20120403cvs.fc16

Comment 5 Fedora Update System 2012-11-15 19:16:21 UTC
insight-7.4.50-4.20120403cvs.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/insight-7.4.50-4.20120403cvs.fc18

Comment 6 Fedora Update System 2012-11-16 07:29:24 UTC
Package insight-7.4.50-4.20120403cvs.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing insight-7.4.50-4.20120403cvs.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-18300/insight-7.4.50-4.20120403cvs.fc16
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2012-11-23 07:25:27 UTC
insight-7.4.50-4.20120403cvs.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2012-11-24 03:31:34 UTC
insight-7.4.50-4.20120403cvs.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2012-11-24 03:33:34 UTC
insight-7.4.50-4.20120403cvs.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.