Coder Social home page Coder Social logo

A python exception. about gef HOT 5 CLOSED

hugsy avatar hugsy commented on May 12, 2024
A python exception.

from gef.

Comments (5)

hugsy avatar hugsy commented on May 12, 2024

There are a lot of problem hard to solve with the regular target command from gdb so I have implemented another which should work better: see https://gef.readthedocs.org/en/latest/features/#gef-remote-debugging

If it is still triggers exception, please provide more details.

from gef.

sigma-d avatar sigma-d commented on May 12, 2024

In function context_regs(), if str(new_value)=='void' then long(new_value) will cause this exception.

from gef.

hugsy avatar hugsy commented on May 12, 2024

@sigma-d new_value in context_regs() should never produce a string. Can you tell me how to reproduce? And also give me the output of your info reg command when this exception occurs?

Thanks.

from gef.

sigma-d avatar sigma-d commented on May 12, 2024

cmdline I used:
./openwrt/trunk/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_musl-1.1.11/bin/mipsel-openwrt-linux-musl-gdb --data-directory /usr/share/gdb ./openwrt-malta-le-vmlinux-initramfs.elf
./qemu-2.6.0-rc3/mipsel-softmmu/qemu-system-mipsel -gdb tcp::4321 -S -nographic -m 256 -kernel openwrt-malta-le-vmlinux-initramfs.elf

openwrt-malta-le-vmlinux-initramfs.elf can get from:
https://downloads.openwrt.org/snapshots/trunk/malta/generic/

gdb version:
GNU gdb (GDB) 7.8

It looks like this issue happens after context_regs() got a value "void"(type:gdb.Value) from register "$status"

from gef.

hugsy avatar hugsy commented on May 12, 2024

It looks related to #13 (i.e. OpenWRT support) ?

If so, OWRT support is a WIP so if you can submit a patch or PR that would break with the existing arch, I'll be happy to integrate it.

from gef.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.