Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Python exception "AttributeError: module 'gdb' has no attribute 'Register'" #44

Copy link
Copy link
@agentzh

Description

@agentzh
Issue body actions

First of all, thank you for creating this debugger!

I'm trying out pycrash on Fedora 30 using the latest master branches of libdumpfile and this project but hit by a weird Python exception:

$ ./pycrash -m ~/tmp ~/tmp/./usr/lib/debug/lib/modules/2.6.32-754.24.3.el6.x86_64/vmlinux ~/tmp/bad-centos6-test2.core
Traceback (most recent call last):
  File "<string>", line 4, in <module>
  File "./build/lib/crash/__init__.py", line 5, in <module>
    import kdump.target
  File "./build/lib/kdump/target.py", line 16, in <module>
    TargetFetchRegisters = Callable[[gdb.InferiorThread, gdb.Register], None]
AttributeError: module 'gdb' has no attribute 'Register'
./test-gdb-compatibility.gdbinit:16: Error in sourced command file:
Error while executing Python code.
fatal: crash-python cannot initialize

How to work around this please? Thanks for your attention!

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.