Comments (6)
languages with no void types
Completely slipped my attention, thanks for the bug report. I'll look into this soon
from pince.
I don't think this has to do with whether a language supports void or not as I tested it on a Go binary, where Go also doesn't have a void type, and no issues occur.
I think this has more to do with gdb's python binding that has poor support for Rust more than the void-ness of a language.
from pince.
Tested with a simple, infinitely looping rust binary with debug info. .format_string().strip('"')
doesn't fix anything, GDB can't read the path var at all, printing the variable gives <error reading variable: Cannot access memory at address 0x8>
from pince.
I've solved the void pointer issue with changing this code In ScriptUtils
void_ptr = gdb.lookup_type("void").pointer()
to void_ptr = gdb.lookup_type("u8").pointer()
It works if we use u8 instead of void. But again, it fails in many places that uses C-like expressions, such as breakpoints and watchpoints. Maybe it's about the time to refactor the older codebase to use more generalized expressions. However, this might take a while
from pince.
Here's something interesting, none of these issues appear if the target is compiled in release mode
from pince.
Considering all other issues, such as not being able to read string variables and all. I think the best solution would be to make GDB act like it's a release binary instead of trying to fix every single edge case out there
from pince.
Related Issues (20)
- TraceInstructionsWindow issues HOT 4
- Incorrect pygdbmi missing error HOT 5
- Is there a way to run it on MacOS? HOT 2
- Not running on fedora linux HOT 3
- Current user in install script is empty? HOT 4
- Internal GDB error handling
- Not installing properly on arch HOT 6
- GTAV Freezes with PINCE Debugger. HOT 8
- [Feature] Display byte array as decimal HOT 12
- Dragging an item in the address table crashes PINCE (Fedora/GNOME) HOT 5
- PINCE not starting Surface Pro 8 Ubuntu 22.04 HOT 17
- gdb command error when attaching to wine process HOT 15
- Install Failed on opensuse 15.5 HOT 45
- Installation issues on openSUSE Leap HOT 1
- Issues with translations that use ampersand (&)
- Automatic update for HexView HOT 2
- Random freeze using "Find out what accesses this address" HOT 4
- Pince is screwing up with locals (decimal numeric values are not parsed correcty) HOT 4
- Issues with decreasing search after unknown search HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pince.