search for: assembly_fun

Displaying 3 results from an estimated 3 matches for "assembly_fun".

2020 Jan 09
3
LLD PDB Lines zero number issue
...n our COFF source debuggers will fail to do the source-level debug on the executable. This issue is same in both Linux and Windows, and I figure out a simple case in Linux to reproduce this issue as below. Please help to give us some advices on how to solve the zero Lines issue. $ cat main.c void assembly_fun(); int main() { int Index1; for (Index1 = 0; Index1 == 0; assembly_fun(), Index1++){ assembly_fun(); } assembly_fun(); } $ cat assembly.nasm DEFAULT REL SECTION .text global assembly_fun assembly_fun: ret $ cat makefile_clanglto_Oz CC_FLAGS= -g -m64 -mcmodel=small -target x...
2020 Jan 14
2
LLD PDB Lines zero number issue
...ch can dump the obj file debug location info? Let me simplify the previous test case to reproduce this issue. All what you need is just a C function to invoke an empty assembly function as below. 1. An empty assembly function file: $ cat assembly.nasm DEFAULT REL SECTION .text global assembly_fun assembly_fun: ret 1. A file of a C function to invoke the empty assembly function but not inline the assembly function: $ cat main.c void assembly_fun(); int main() { int Index1; for (Index1 = 0; Index1 == 0; assembly_fun(), Index1++){ assembly_fun(); } assembly_fun(); } Then li...
2020 Jan 12
2
LLD PDB Lines zero number issue
I checked the LLVM master code and find that the “-use-unknown-locations” option and its related logic is only supported for Dwarf debug info as below. These codes are missing in the Codeview side. It looks the “-use-unknown-locations” option logic is not complex, could we port the code logic into llvm\lib\CodeGen\AsmPrinter\CodeViewDebug.cpp as well? I’ve submitted a BZ for this requirment: