Displaying 20 results from an estimated 168 matches for "sourceleveldebugging".
2010 Feb 11
3
[LLVMdev] Metadata
I don't think the lang ref metadata grammar section (http://llvm.org/docs/LangRef.html#metadata) has been fully updated
with how !dbg metadata is used in http://llvm.org/docs/SourceLevelDebugging.html. At least to me it is not clear. In my
mind I translate the phrase "LLVM IR allows metadata to be attached to instructions " into a grammar depicted in
SourceLevelDebugging.html. I was going to ask about this, but I'll let you instead. :-)
Garrison
On Feb 11, 2010, at 16:42, D...
2018 May 15
2
source line number for instruction
Hi,
I want to retrieve a function from a source line-number, is this
something possible to achieve?
I tried the following code snippet with LLVM-7 but it doesn't seem to
workhttp://llvm.org/docs/SourceLevelDebugging.html#ccxx_frontend
<http://llvm.org/docs/SourceLevelDebugging.html#ccxx_frontend:>
Is there specific documentation I can refer to implement this?
Thanks
--
*Rtr. PP Ridwan Shariffdeen*
Asst. District Rotaract Representative | Rotaract District 3220
Past President | Rotaract Club of Univ...
2010 Jul 07
2
[LLVMdev] source line number for instruction
Hi,
I found the following at
http://llvm.org/docs/SourceLevelDebugging.html#ccxx_frontend:
if (MDNode *N = I->getMetadata("dbg")) { // Here I is an LLVM instruction
DILocation Loc(N); // DILocation is in DebugInfo.h
unsigned Line = Loc.getLineNumber();
StringRef File = Loc.getFilename();
StringRef Dir = Loc.getDire...
2011 May 12
0
[LLVMdev] Docs/examples
...uld suggest actually
just invoking clang, since it knows how to call the system linker.
> 2) Making system calls
Call syscall()? I'm not completely sure what you're asking.
> 3) Creating debug info
I don't think we have any good examples for debug info...
http://llvm.org/docs/SourceLevelDebugging.html might be helpful,
though.
In general, docs are available at
http://llvm.org/docs/SourceLevelDebugging.html .
-Eli
2013 Aug 29
3
[LLVMdev] outdated debug metamata doc?
Is anyone maintaining this page?
http://llvm.org/docs/SourceLevelDebugging.html#composite-type-descriptors
DIBuilder::createSubroutineType seems to generate metadatas with a different format.
Thanks!
Wei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130829/70facf50/attachment....
2011 May 12
3
[LLVMdev] Docs/examples
Are there examples on doing the following?
1) Creating stand alone executables
2) Making system calls
3) Creating debug info
Obviously clang does all this, but I was hoping for something less complex.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110512/ba62fcfc/attachment.html>
2010 May 18
3
[LLVMdev] DEBUG INFO at the bytecode level
Hello,
Could I get some debug info at the byte code level? I am writing a
passer and if will be nice if I can know which line in the source an
instruction (or value) corresponds to.
I found a document online:
http://llvm.org/docs/SourceLevelDebugging.html, but I can't find an
example of doing it at the byte code level.
Cheers,
Zheng
2006 Apr 08
2
[LLVMdev] line number information
Thanks for your help. I took a look at
http://llvm.org/docs/SourceLevelDebugging.html and it seems like this
doesn't give you much in the way of line number information. If you know
what source line you are interested in then you can set a breakpoint, but
suppose you want to know the line number in the source code for some
arbitrary bytecode instruction. In my particular ca...
2010 Feb 11
0
[LLVMdev] Metadata
On Thursday 11 February 2010 16:31:16 Garrison Venn wrote:
> I don't think the lang ref metadata grammar section
> (http://llvm.org/docs/LangRef.html#metadata) has been fully updated with
> how !dbg metadata is used in
> http://llvm.org/docs/SourceLevelDebugging.html. At least to me it is not
> clear. In my mind I translate the phrase "LLVM IR allows metadata to be
> attached to instructions " into a grammar depicted in
> SourceLevelDebugging.html. I was going to ask about this, but I'll let you
> instead. :-)
But that's not...
2015 Aug 06
2
[LLVMdev] DebugInfo from LLVM Instruction
...getMetadata("dbg")) { // Here I is an LLVM instruction
DILocation Loc(N); // DILocation is in DebugInfo.h
unsigned Line = Loc.getLineNumber();
StringRef File = Loc.getFilename();
StringRef Dir = Loc.getDirectory();
}
As specified also at http://llvm.org/docs/SourceLevelDebugging.html <http://llvm.org/docs/SourceLevelDebugging.html>
However, looks like that the instruction " DILocation Loc(N);” is not valid anymore,
Since the DILocation class is changed.
Is that right?
How can I extract debug info (line, filename, etc.) from an instruction?
Thanks.
Best Regard...
2011 Dec 07
2
[LLVMdev] Generating DWARF information that pretends an outparam is the return value
...encapsulate situations like this.
>
> So, I assume you figured out how to create metadata nodes for TAG_subprogram and corresponding TAG_subroutine_type. If yes, then the zero'th element of array of types you supply (subroutine_type is encoded as composite type, see http://llvm.org/docs/SourceLevelDebugging.html#format_composite_type) is return type.
>
> Let's say you have
>
> 1
> 2 int foo() {
> 3 char c = 'a';
> 4 return 42;
> 5 }
>
> Try generating following metadata nodes (I am not including all of them here) to describe...
2010 May 18
4
[LLVMdev] DEBUG INFO at the bytecode level
...t;> Hello,
>>
>> Could I get some debug info at the byte code level? I am writing a
>> passer and if will be nice if I can know which line in the source an
>> instruction (or value) corresponds to.
>>
>> I found a document online:
>> http://llvm.org/docs/SourceLevelDebugging.html, but I can't find an
>> example of doing it at the byte code level.
>
> -print-dbginfo should print the source lines, at least the one in 2.6,
> the one in 2.7 seems to have the source line printing removed.
>
> I'll add it back when I get some time.
>
> Best...
2018 May 15
0
source line number for instruction
...6 AM Ridwan Shariffdeen via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Hi,
>
> I want to retrieve a function from a source line-number, is this something possible to achieve?
> I tried the following code snippet with LLVM-7 but it doesn't seem to workhttp://llvm.org/docs/SourceLevelDebugging.html#ccxx_frontend <http://llvm.org/docs/SourceLevelDebugging.html#ccxx_frontend:>
>
> Is there specific documentation I can refer to implement this?
>
> Thanks
>
> --
>
>
> *Rtr. PP Ridwan Shariffdeen*
> Asst. District Rotaract Representative | Rotaract District...
2011 Feb 02
1
[LLVMdev] reference to %llvm.dbg.variable in source level debug docs
...;""
>>
>> I see all uses of llvm.dbg.declare having values/types as first
>> argument, not metadata. What am I missing?
>
> I am seeing
> call void @llvm.dbg.declare(metadata !{i32* %argc.addr}, metadata !12), !dbg !13
In the example IR of http://llvm.org/docs/SourceLevelDebugging.html,
section "Object lifetimes and scoping", there is:
call void @llvm.dbg.declare({}* %2, metadata !12), !dbg !14
Which isn't exactly like the llvm.dbg.declare intrinsic is defined -
in the definition the first argument is also metadata.
Indeed, generating IR from C files using tr...
2010 Feb 11
2
[LLVMdev] Metadata
...cray.com> wrote:
> On Thursday 11 February 2010 16:31:16 Garrison Venn wrote:
>> I don't think the lang ref metadata grammar section
>> (http://llvm.org/docs/LangRef.html#metadata) has been fully updated with
>> how !dbg metadata is used in
>> http://llvm.org/docs/SourceLevelDebugging.html. At least to me it is not
>> clear. In my mind I translate the phrase "LLVM IR allows metadata to be
>> attached to instructions " into a grammar depicted in
>> SourceLevelDebugging.html. I was going to ask about this, but I'll let you
>> instead. :-)
>...
2011 Feb 01
2
[LLVMdev] reference to %llvm.dbg.variable in source level debug docs
Hello
I'm reading http://llvm.org/docs/SourceLevelDebugging.html and some
things aren't clear.
There are a couple of references made to %llvm.dbg.variable, which
isn't defined anywhere. It it an intrinsic? A global? Could it be a
relic from the old debug info docs (where it *is* defined?). The same
goes for llvm.dbg.derivedtype and llvm.dbg.subrang...
2011 Dec 07
0
[LLVMdev] Generating DWARF information that pretends an outparam is the return value
...em to
> encapsulate situations like this.
So, I assume you figured out how to create metadata nodes for TAG_subprogram and corresponding TAG_subroutine_type. If yes, then the zero'th element of array of types you supply (subroutine_type is encoded as composite type, see http://llvm.org/docs/SourceLevelDebugging.html#format_composite_type) is return type.
Let's say you have
1
2 int foo() {
3 char c = 'a';
4 return 42;
5 }
Try generating following metadata nodes (I am not including all of them here) to describe 'char' as the return type of function '...
2011 Dec 15
2
[LLVMdev] LLVM 2.9 metadata
Hi all,
In LLVM documentation about source level debugging
(http://www.llvm.org/releases/2.9/docs/SourceLevelDebugging.html)
Subprogram descriptor is defined as:
!2 = metadata !{
i32, ;; Tag = 46 + LLVMDebugVersion
<http://www.llvm.org/releases/2.9/docs/SourceLevelDebugging.html#LLVMDebugVersion>
;; (DW_TAG_subprogram)
i32, ;; Unused field.
metadata, ;; Reference to context descr...
2011 Dec 05
2
[LLVMdev] Generating DWARF information that pretends an outparam is the return value
The Rust compiler defines all functions as returning void, with the
first parameter being an outparam of the declared return type, ie.
fn foo2() -> int { ret 5; }
becomes
define void @_ZN4foo217_5cb557d30658848cE(i64*, { i64, { %tydesc*, i1,
{} } }*) uwtable {
store i64 5, i64* %0
ret void
}
I'm working on generating debug information for Rust, and I'm
currently stumped on how
2006 Apr 08
2
[LLVMdev] line number information
...Inst, you'll see methods to get the
filename,directory,line#,col#, all packaged up into an easy to use class
(some of Jim's excellent work :).
-Chris
> On Apr 8, 2006, at 5:33 AM, John Trimble wrote:
>
>> Thanks for your help. I took a look at http://llvm.org/docs/
>> SourceLevelDebugging.html and it seems like this doesn't give you much in
>> the way of line number information. If you know what source line you are
>> interested in then you can set a breakpoint, but suppose you want to know
>> the line number in the source code for some arbitrary bytecode in...