Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146373340
D20759.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
772 B
Referenced Files
None
Subscribers
None
D20759.id.diff
View Options
Index: head/contrib/elftoolchain/libdwarf/libdwarf_attr.c
===================================================================
--- head/contrib/elftoolchain/libdwarf/libdwarf_attr.c
+++ head/contrib/elftoolchain/libdwarf/libdwarf_attr.c
@@ -100,7 +100,6 @@
uint64_t form, int indirect, Dwarf_Error *error)
{
struct _Dwarf_Attribute atref;
- Dwarf_Section *str;
int ret;
ret = DW_DLE_NONE;
@@ -183,9 +182,7 @@
break;
case DW_FORM_strp:
atref.u[0].u64 = dbg->read(ds->ds_data, offsetp, dwarf_size);
- str = _dwarf_find_section(dbg, ".debug_str");
- assert(str != NULL);
- atref.u[1].s = (char *) str->ds_data + atref.u[0].u64;
+ atref.u[1].s = _dwarf_strtab_get_table(dbg) + atref.u[0].u64;
break;
case DW_FORM_ref_sig8:
atref.u[0].u64 = 8;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 3, 4:26 AM (6 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29178455
Default Alt Text
D20759.id.diff (772 B)
Attached To
Mode
D20759: Avoid .debug_str lookups.
Attached
Detach File
Event Timeline
Log In to Comment