ML_(read_debuginfo_stabs) since it's always equal to di->text_bias.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9294
Stabs reader
-------------------- */
extern
-void ML_(read_debuginfo_stabs) ( struct _DebugInfo* di, PtrdiffT debug_offset,
+void ML_(read_debuginfo_stabs) ( struct _DebugInfo* di,
UChar* stabC, Int stab_sz,
UChar* stabstr, Int stabstr_sz );
we ignore it. */
# if !defined(VGP_amd64_linux)
if (stab_img && stabstr_img) {
- ML_(read_debuginfo_stabs) ( di, di->text_bias, stab_img, stab_sz,
+ ML_(read_debuginfo_stabs) ( di, stab_img, stab_sz,
stabstr_img, stabstr_sz );
}
# endif
/* Read stabs-format debug info. This is all rather horrible because
stabs is a underspecified, kludgy hack.
*/
-void ML_(read_debuginfo_stabs) ( DebugInfo* di, PtrdiffT debug_offset,
+void ML_(read_debuginfo_stabs) ( DebugInfo* di,
UChar* stabC, Int stab_sz,
UChar* stabstr, Int stabstr_sz )
{
line.first = True;
/* line ends at start of next function */
- addr = debug_offset + st->n_value;
+ addr = di->text_bias + st->n_value;
func.start = addr;
}