Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 298538 Details for
Bug 438190
dwfl_module_getsrc: Module bias not use when searching for lines
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
subtrace bias
getsrc-bias.patch (text/plain), 1.08 KB, created by
Kristian Høgsberg
on 2008-03-19 16:36:13 UTC
(
hide
)
Description:
subtrace bias
Filename:
MIME Type:
Creator:
Kristian Høgsberg
Created:
2008-03-19 16:36:13 UTC
Size:
1.08 KB
patch
obsolete
>diff -up elfutils-0.133/libdwfl/dwfl_module_getsrc.c~ elfutils-0.133/libdwfl/dwfl_module_getsrc.c >--- elfutils-0.133/libdwfl/dwfl_module_getsrc.c~ 2008-03-19 02:01:12.000000000 -0400 >+++ elfutils-0.133/libdwfl/dwfl_module_getsrc.c 2008-03-19 01:56:53.000000000 -0400 >@@ -68,9 +68,9 @@ dwfl_module_getsrc (Dwfl_Module *mod, Dw > while (l < u) > { > size_t idx = (l + u) / 2; >- if (addr < cu->die.cu->lines->info[idx].addr) >+ if (addr - bias < cu->die.cu->lines->info[idx].addr) > u = idx; >- else if (addr > cu->die.cu->lines->info[idx].addr) >+ else if (addr - bias > cu->die.cu->lines->info[idx].addr) > l = idx + 1; > else > return &cu->lines->idx[idx]; >@@ -84,7 +84,7 @@ dwfl_module_getsrc (Dwfl_Module *mod, Dw > We never want the last one, because it's the end-sequence > marker with an address at the high bound of the CU's code. */ > if (u > 0 && u < cu->die.cu->lines->nlines >- && addr > cu->die.cu->lines->info[u - 1].addr) >+ && addr - bias > cu->die.cu->lines->info[u - 1].addr) > return &cu->lines->idx[u - 1]; > > error = DWFL_E_ADDR_OUTOFRANGE;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 438190
: 298538