Comments (6)
It solves the issue where the current $PC
is known to be in a file, but does not correspond to any line in the file -- so GDB sets it to the top of the file.
from pwndbg.
@zachriggle I see, not sure how this could be solved without breaking the above mentioned scenario. Does that happen that often?
from pwndbg.
I'm not sure, since it hides it when it happens ^_^.
I wouldn't have gone out of my way to add the check if it wasn't affecting me in some way.
What files are you debugging where the first line of source in a file is important (i.e. not a function declaration)?
from pwndbg.
its nut just about the very first line. the check looks if the first line of the source listing is the first line of the file. that also applies if you break on the first function in a file not having many includes so that the first line of the file is actually included in the listing.
It happens quite often in some of my projects, I noticed it because i tried to break on one of them to debug and did see nothing 😅
from pwndbg.
It seems the best way to fix this is to check the current line, rather than whether or not the first line appears in the listing.
Would you agree that if the current line is claimed to be Line 1, something is wrong?
This way you can get listings which happen to include Line 1.
from pwndbg.
@zachriggle yes, i guess that sounds safe to assume and should not happen under normal conditions
PS: should i make a PR?
from pwndbg.
Related Issues (20)
- procinfo should display cwd and cmdline as well HOT 3
- crash in command start after running sstart HOT 3
- Is patch_list showing good assembly? HOT 2
- Refactor EventWrapper
- gdbserver 8.0.1, gdb 13.2: Unable to access 16000 bytes of target memory HOT 3
- heap or bins command is not working on android device HOT 2
- Save history of previous context output HOT 1
- Enhance thread context HOT 3
- Refactor symbol.py skipped exceptions
- Crash when debugging remote target HOT 3
- The `ctx threads` (or `threads`) should display all threads no matter of context threads limit HOT 3
- threads context doesnt display current thread? HOT 1
- `movsxd` instruction might be recognized as an invalid instruction HOT 2
- Cannot detect i386 arch when remote debugging HOT 7
- search command will crash qemu process HOT 15
- IDA_Script something wrong HOT 8
- rop
- When using the open proxy api, AI function cannot be used normally. HOT 5
- Add linkmap support/command HOT 3
- Enabling reverse stack growth HOT 4
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 pwndbg.