Bug 18291 - enabled status not printed in output of "info xmethods"
Summary: enabled status not printed in output of "info xmethods"
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: python (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-21 22:49 UTC by dje
Modified: 2015-05-21 17:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dje 2015-04-21 22:49:50 UTC
bash$ gdb a.out
(gdb) i xm
Xmethods in objfile /usr/local/google/home/dje/ruffies-copy/src/play/gcc-unique_ptr.x64:
  libstdc++::unique_ptr
    get
    operator*
  libstdc++::unordered_multimap
    empty
    size
  ...
(gdb) dis xm
(gdb) i xm
Xmethods in objfile /usr/local/google/home/dje/ruffies-copy/src/play/gcc-unique_ptr.x64:
  libstdc++::unique_ptr
    get
    operator*
  libstdc++::unordered_multimap
    empty
    size
  ...

I'd expect to see all of these marked as disabled.

[Another odd thing is the xmethods are marked as owned by the binary, when one might expect them to be owned by libstdc++.so. That's just an artifact of how they're loaded in my environment.]
Comment 1 Sourceware Commits 2015-05-08 14:21:16 UTC
The master branch has been updated by Siva Chandra Reddy <sivachandra@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=df2eb078c0a88a44c49de7045a1c163f380a7efc

commit df2eb078c0a88a44c49de7045a1c163f380a7efc
Author: Siva Chandra <sivachandra@chromium.org>
Date:   Sat Apr 25 17:10:30 2015 -0700

    [PR python/18291] Fix printing of "disabled" status of xmethod matchers.
    
    gdb/ChangeLog:
    
    	PR python/18291
    	* python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
    	Print xmethod matcher status.
    
    gdb/testsuite/ChangeLog:
    
    	PR python/18291
    	* gdb.python/py-xmethods.exp: Add tests.
Comment 2 dje 2015-05-21 17:49:23 UTC
patch committed