similar to: LLVM IR Debugger

Displaying 20 results from an estimated 1000 matches similar to: "LLVM IR Debugger"

2018 Jan 04
0
LLVM IR Debugger
You can attach debug info to the Llvm module about LLVM IR, at which point one can throw the executable into any debugger and get llvm level debugging. I've started a patch to revive this feature (DebugIR pass). I've been sidetracked the past month, but I'll come back to it soon :) https://reviews.llvm.org/D40778 Cheers, Siddharth On Thu 4 Jan, 2018, 09:23 Brenda So via llvm-dev,
2018 Jan 04
2
LLVM IR Debugger
interesting ... just curious, why did they delete "-debug-ir" to begin with ? Also, it's extremely interesting that gdb and lldb can be used to debug LLVM IR. How does your code work (on a high level)? A high level explanation will help me understand what you've done better. >From first glance, my idea is slight different because your code interfaces with gdb and lldb while
2017 Nov 20
4
Debugging LLVM IR - Reviving the DebugIR pass
Hello all, I recently felt the need to have debug info at the LLVM IR level (because my frontend's semantics vastly differ from IR that it doesn't make much sense to use it). Asm can sometimes be too "low level", so it's nice to have the ability to single-step at the IR level. The pass that used to do this (-debugir) bitrotted and was removed from tree. I spent the weekend
2018 Mar 21
2
Reviving the DebugIR pass
Hi, I recently had the need to see the correspondence between some Clang generated LLVM IR and the compiled machine code within a debugger (lldb in this case). Unfortunately it looks like the functionality to do this used to be in a pass called 'DebugIR' but was removed due to the lack of a maintainer [1]. It appears an attempt was made [2] to revive this but it appears to have stalled.
2018 Mar 22
4
Reviving the DebugIR pass
We have implemented a debug pass to enable debugging of jitted functions. The pass dumps the IR of the module at the beginning of the pass, which then becomes the source code for the debug metadata. Our solution focuses on a windows x86 solution but I’m sure it would be easy to extend to other platforms. In order to load the resulting debugging info into Visual Studio, we jit to object file then
2018 Mar 21
0
Reviving the DebugIR pass
Hi Dan, Having missed this functionality myself in the past I’m excited to see this gain traction. Let me know if there’s anything I can do to help this along. Cheers, Jonas On Wed, 21 Mar 2018 at 18:19, Dan Liew via llvm-dev <llvm-dev at lists.llvm.org> wrote: > Hi, > > I recently had the need to see the correspondence between some Clang > generated LLVM IR and the compiled
2018 Jan 04
0
LLVM IR Debugger
On 4 January 2018 at 07:11, Brenda So via llvm-dev <llvm-dev at lists.llvm.org> wrote: > interesting ... just curious, why did they delete "-debug-ir" to begin with ? The metadata describing the information debuggers need (line numbers, variable locations and so on) was evolving rapidly at the time I think. The -debug-ir pass was lagging behind I think, and rarely used as far
2016 Mar 25
2
[GSoC] First draft project proposal; IR level interpreter debugger
On 03/25/2016 03:28 AM, Philip Reames via llvm-dev wrote: > I've scanned over your proposal, but am not quite sure I understand your > objective. Is your intent to be able to step through IR source in a > debugger and inspect intermediate state? If so, you may consider > whether "simply" inserting debug metatadata into your IR which describes > the IR source, and
2018 Mar 22
2
Reviving the DebugIR pass
>> This work could also be used to fix [3]. Although this probably needs >> more though because there's the question of whether we should preserve >> existing debug information in an LLVM IR file or write over it when it >> is given to Clang. > > If foo.ll contains edited debug info, `clang -g` shouldn't silently drop > the edits. A warning + no-op seems
2016 Mar 25
0
[GSoC] First draft project proposal; IR level interpreter debugger
On Fri, Mar 25, 2016 at 12:45 PM, Tobias Grosser <tobias at grosser.es> wrote: > On 03/25/2016 03:28 AM, Philip Reames via llvm-dev wrote: >> >> I've scanned over your proposal, but am not quite sure I understand your >> objective. Is your intent to be able to step through IR source in a >> debugger and inspect intermediate state? Yes, that is what I had in
2018 Mar 23
0
Reviving the DebugIR pass
Please do take over the pass revival. College hasn't left me with the bandwidth to continue this side project :) If there's small things here and there, I'd be happy to pitch in. However,.whipping the patch into shape is beyond me right now. Thanks Siddharth On Fri 23 Mar, 2018, 00:53 via llvm-dev, <llvm-dev at lists.llvm.org> wrote: > > >> This work could also
2016 Mar 25
2
[GSoC] First draft project proposal; IR level interpreter debugger
On 3/25/16 11:58 AM, Janek van Oirschot via llvm-dev wrote: > On Fri, Mar 25, 2016 at 12:45 PM, Tobias Grosser <tobias at grosser.es> wrote: >> On 03/25/2016 03:28 AM, Philip Reames via llvm-dev wrote: >>> >>> I've scanned over your proposal, but am not quite sure I understand your >>> objective. Is your intent to be able to step through IR source in
2013 Sep 22
1
[LLVMdev] DebugIR pass fails with an assert
Hi List, My IR compiles fine and runs. I've tried to add DebugIR pass so as to be able to debug and profile it (since source is an SQL query all that I can debug and profile is IR itself). When I tried to add it to pass manager I got the following assert: Program received signal SIGABRT, Aborted. 0x00007ffff3fe4425 in __GI_raise (sig=<optimized out>) at
2017 Nov 15
2
答复: hi, Is there any solution about how to add some dwarf info to the IR bitcode file.
Hi Andrew I am newbie. There are many headers and classes, I do not know how to use to add dwarf info to bc file. Can you show me the demo or example, is there any info about how to use these classes step by step. BR Owen 发件人: Andrew Kelley [mailto:superjoe30 at gmail.com] 发送时间: 2017年11月15日 12:51 收件人: Wuweijia <wuweijia at huawei.com> 抄送: 陳韋任
2018 Apr 01
2
Custom Binary Format Challenges
Program counter - EIP, RIP for x86/64. I need to obtain it and pass it as an argument to the function that calculates an ordinal from it. I think that there must be some way to use the bitcode language to place byte values at a designated offset. Or use the command line to specify the section and offset for the data. On Sun, Apr 1, 2018 at 6:00 PM, Brenda So <sogun3 at gmail.com> wrote:
2018 Mar 22
0
Reviving the DebugIR pass
+ 1 to having this functionality implemented as `llvm-as -g` or some analog (`clang -g foo.ll`). As I outlined in https://reviews.llvm.org/D40778 <https://reviews.llvm.org/D40778>, I think such a solution can be made to work for JIT users who don't have on-disk *.ll files. > On Mar 21, 2018, at 5:37 PM, Jason Surprise via llvm-dev <llvm-dev at lists.llvm.org> wrote: > >
2018 Apr 02
1
Custom Binary Format Challenges
The bitcode is only a representation of the IR, which is in SSA form. And SSA form assumes an infinite amount of registers, which is not offered by x86. When bitcode gets assembled/compiled to machine language, it breaks down the SSA form into non-SSA format. Personally I don't know how to use bitcode language to achieve what you want to do. The closest thing I can think of is the llvm-MC
2018 Apr 01
2
Custom Binary Format Challenges
Thank you so much! What about discovering the instruction pointer value? Also, does anybody know how to embed an artifact as a resource in a binary? I'd like to have two text sections, and have one copied in from another binary. On Sun, Apr 1, 2018 at 2:15 PM, Brenda So <sogun3 at gmail.com> wrote: > Hi, > > You can write it as if you are writing an optimization pass: >
2018 Apr 02
0
Custom Binary Format Challenges
If you can write what you want to output in C with asm statements, clang can show you what the IR should look like. On Mon, Apr 2, 2018 at 7:35 AM, Kenneth Adam Miller via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Program counter - EIP, RIP for x86/64. I need to obtain it and pass it as > an argument to the function that calculates an ordinal from it. > > I think that
2009 Apr 02
2
Method to permit ssh while denying sftp
Is there a way to permit ssh sessions while denying sftp with openssh 3.8? In openssh 4.4+ this is possible using the Match directive with Force Command but I don't know how to configure this in older versions. Thanks in advance for any guidance. Brenda