|
From: Carlo W. <li...@us...> - 2002-02-01 15:48:33
|
CVSROOT : /cvsroot/libcw
Module : src
Commit time: 2002-01-01 15:48:32 UTC
Modified files:
libcwd/elf32.cc
Log message:
Bug fix: the .debug_line section can be completely empty.
---------------------- diff included ----------------------
Index: src/libcwd/elf32.cc
diff -u src/libcwd/elf32.cc:1.34 src/libcwd/elf32.cc:1.35
--- src/libcwd/elf32.cc:1.34 Wed Jan 30 20:42:08 2002
+++ src/libcwd/elf32.cc Fri Feb 1 07:48:21 2002
@@ -1,4 +1,4 @@
-// $Header: /cvsroot/l/li/libcw/src/libcwd/elf32.cc,v 1.34 2002/01/31 04:42:08 libcw Exp $
+// $Header: /cvsroot/l/li/libcw/src/libcwd/elf32.cc,v 1.35 2002/02/01 15:48:21 libcw Exp $
//
// Copyright (C) 2001, by
//
@@ -1490,7 +1490,7 @@
// doing DWARF in find_nearest_line().
location.set_func_iter(M_function_names.insert(cur_func).first);
- do
+ while( debug_line_ptr < debug_line_ptr_end )
{
file = 0; // One less than the `file' mentioned in the documentation.
column = 0;
@@ -1655,7 +1655,6 @@
}
}
}
- while( debug_line_ptr < debug_line_ptr_end );
LIBCWD_ASSERT( debug_line_ptr == debug_line_ptr_end );
// End state machine code.
@@ -1885,7 +1884,6 @@
}
M_inside_find_nearest_line = true;
#if DEBUGSTABS || DEBUGDWARF
- int off = libcw::debug::libcw_do._off;
libcw::debug::debug_ct::OnOffState state;
Debug( libcw_do.force_on(state) );
libcw::debug::channel_ct::OnOffState state2;
----------------------- End of diff -----------------------
|