fix dwarf_find_line returning the wrong line number#95
fix dwarf_find_line returning the wrong line number#95jrfonseca merged 1 commit intojrfonseca:mainfrom
Conversation
|
I noticed 2 other problems.
Will send a patch to fix it. |
|
Regarding off-by-one errors, I'm not sure it's relevant, but be aware that drmingw adjust the symbol address by one to try to get the calling code source line, as opposed of the return code source line (often the next line), as seen in Lines 355 to 363 in 616ab1c |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #95 +/- ##
==========================================
- Coverage 51.11% 51.06% -0.05%
==========================================
Files 15 15
Lines 2160 2162 +2
Branches 824 828 +4
==========================================
Hits 1104 1104
- Misses 809 810 +1
- Partials 247 248 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I think I fixed it. I was wrong about the off-by-one error. With regard to |
|
I don't fully understand why the early break was removed, but it shouldn't be a problem in practice. |
|
Thanks for merging. The early break was removed because it is not the case that the line information is in one big sequence. It is split in multiple sequences and you have to search all of them. |
|
I see. Thanks for the explanation. |
|
I just tested it again and now it produces wrong results. I don't know why. Please revert, sorry. Next time I will test it more extensively. |
0.9.12 backed out due to #95 (comment)
In my tests I encountered a case where drmingw would return the wrong line number for an exe produced by GCC. I have fixed it.