<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Just to clarify my use case:  I am one of the developers for a reverse-engineering tool called Ghidra.  Part of the tool is debugging-support to allow cross-over between dynamic and static analysis.  We currently support windbg/kd, the gcc MI2 interface,
 and direct Java debugging.  I have a working prototype for lldb, but it requires users to patch and rebuild lldb, which may be a heavy lift for some.  While it falls outside of my use case, I am quite willing to attempt implementing pieces 2 & 3 from Mr. Ingham's
 post.</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Jim Ingham via Phabricator <reviews@reviews.llvm.org><br>
<b>Sent:</b> Friday, October 8, 2021 2:31:13 PM<br>
<b>To:</b> David Millar; anoronha@apple.com; fallkrum@yahoo.com; kkleine@redhat.com; teemperor@gmail.com; medismail.bennani@gmail.com; jonas@devlieghere.com; tedwood@quicinc.com; jmolenda@apple.com; syaghmour@apple.com; jingham@apple.com; vsk@apple.com; boris.ulasevich@gmail.com;
 lldb-commits@lists.llvm.org; h.imai.833@nitech.jp; bruce.mitchener@gmail.com; david.spickett@linaro.org; quic_sourabhs@quicinc.com; djordje.todorovic@syrmia.com; serhiy.redko@gmail.com; Liburd1994@outlook.com<br>
<b>Cc:</b> mgorny@gentoo.org<br>
<b>Subject:</b> [PATCH] D111409: proposed support for Java interface to Scripting Bridge</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">jingham added a comment.<br>
<br>
Support for a scripting language in lldb has three distinct pieces.<br>
<br>
1. Making the SB API's available to the scripting languages<br>
2. Adding all the callbacks so the scripting language can be used for breakpoint callbacks, data formatters, etc.<br>
3. Adding a REPL for that language to the "script" command<br>
<br>
This patch does #1, but not #2 & #3.  Do we care about whether new scripting languages will be able to provide the full "scripting language" experience?  Does there need to be some plan for this before we add on the task of supporting the language?  Maybe it's
 okay to say "a REPL's too hard, and not worth it" but we should have a plan for adding in the callback interfaces?  Do we want to have somewhere you can advertise levels of support?  I would be sad to spend some time using a scripting language for lldb only
 to find it doesn't allow me to write breakpoint callbacks, for instance.<br>
<br>
This is language #3 so it seems like a fit time to discuss this...<br>
<br>
<br>
Repository:<br>
  rLLDB LLDB<br>
<br>
CHANGES SINCE LAST ACTION<br>
  <a href="https://reviews.llvm.org/D111409/new/">https://reviews.llvm.org/D111409/new/</a><br>
<br>
<a href="https://reviews.llvm.org/D111409">https://reviews.llvm.org/D111409</a><br>
<br>
</div>
</span></font>
</body>
</html>