Description of problem: In some cases the check_missing_debuginfo command/function is not found. Version-Release number of selected component (if applicable): gdb-7.2-15.fc14.x86_64 gdb-heap-0.5-1.fc14.x86_64 coreutils-8.5-4.fc14.x86_64 coreutils-debuginfo-8.5-4.fc14.x86_64 Make sure that glibc-debuginfo is NOT installed on the machine How reproducible: Always Steps to Reproduce: 1. Make sure that glibc-debuginfo is NOT installed on the machine PYTHONPATH=/usr/share/gdb-heap gdb /bin/ls python import heap break main run 2. The do a "heap" command in gdb Actual results: gdb) heap Traceback (most recent call last): File "/usr/share/gdb-heap/heap/commands.py", line 34, in g return f(self, args, from_tty) File "/usr/share/gdb-heap/heap/commands.py", line 56, in invoke usage_list = list(iter_usage_with_progress()) File "/usr/share/gdb-heap/heap/__init__.py", line 526, in next return self.inner.next() File "/usr/share/gdb-heap/heap/__init__.py", line 550, in iter_usage for chunk in ms.iter_sbrk_chunks(): File "/usr/share/gdb-heap/heap/glibc.py", line 236, in iter_sbrk_chunks chunk = MChunkPtr(gdb.Value(sbrk_base()).cast(MChunkPtr.gdb_type())) File "/usr/share/gdb-heap/heap/glibc.py", line 317, in sbrk_base check_missing_debuginfo(e, 'glibc') NameError: global name 'check_missing_debuginfo' is not defined Error occurred in Python command: global name 'check_missing_debuginfo' is not defined Expected results: Nice one line error message about glibc-debuginfo missing. Or no failure at all. Additional info:
Thanks; fixed upstream in: http://git.fedorahosted.org/git/?p=gdb-heap.git;a=commitdiff;h=70e7228da13b61421fd27c2b18f429bdc4803e71
gdb-heap-0.5-2.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/gdb-heap-0.5-2.fc14
gdb-heap-0.5-2.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update gdb-heap'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/gdb-heap-0.5-2.fc14
Yes, gdb-heap-0.5-2.fc14 has much better for this.
gdb-heap-0.5-3.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/gdb-heap-0.5-3.fc14
gdb-heap-0.5-3.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.