mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:37:35 +00:00
Everywhere: Replace a bundle of dbg with dbgln.
These changes are arbitrarily divided into multiple commits to make it easier to find potentially introduced bugs with git bisect.
This commit is contained in:
parent
27bc48e06c
commit
9229ba0fe9
14 changed files with 130 additions and 80 deletions
|
@ -25,11 +25,10 @@
|
|||
*/
|
||||
|
||||
#include "LineProgram.h"
|
||||
#include <AK/Debug.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
|
||||
//#define DWARF_DEBUG
|
||||
|
||||
namespace Debug::Dwarf {
|
||||
|
||||
LineProgram::LineProgram(InputMemoryStream& stream)
|
||||
|
@ -236,10 +235,10 @@ void LineProgram::handle_sepcial_opcode(u8 opcode)
|
|||
m_address += address_increment;
|
||||
m_line += line_increment;
|
||||
|
||||
#ifdef DWARF_DEBUG
|
||||
dbgln("Special adjusted_opcode: {}, address_increment: {}, line_increment: {}", adjusted_opcode, address_increment, line_increment);
|
||||
dbg() << "Address is now:" << (void*)m_address << ", and line is: " << m_source_files[m_file_index].name << ":" << m_line;
|
||||
#endif
|
||||
if constexpr (debug_dwarf) {
|
||||
dbgln("Special adjusted_opcode: {}, address_increment: {}, line_increment: {}", adjusted_opcode, address_increment, line_increment);
|
||||
dbgln("Address is now: {:p}, and line is: {}:{}", m_address, m_source_files[m_file_index].name, m_line);
|
||||
}
|
||||
|
||||
append_to_line_info();
|
||||
}
|
||||
|
@ -252,9 +251,7 @@ void LineProgram::run_program()
|
|||
u8 opcode = 0;
|
||||
m_stream >> opcode;
|
||||
|
||||
#ifdef DWARF_DEBUG
|
||||
dbg() << (void*)(m_stream.offset() - 1) << ": opcode: " << opcode;
|
||||
#endif
|
||||
dbgln<debug_dwarf>("{:p}: opcode: {}", m_stream.offset() - 1, opcode);
|
||||
|
||||
if (opcode == 0) {
|
||||
handle_extended_opcode();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue