Bug 865554 - stl types are not displayed via libstdcxx printers.py
Summary: stl types are not displayed via libstdcxx printers.py
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: insight
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Patrick Monnerat
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-11 18:26 UTC by Stan Cox
Modified: 2012-11-24 03:33 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-23 07:25:25 UTC


Attachments (Terms of Use)
stl string test (124 bytes, text/x-c++src)
2012-10-11 18:26 UTC, Stan Cox
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.