[Lldb-commits] [PATCH] D62732: [RISCV] Add SystemV ABI

2021-06-04 Thread zhongchengyong via Phabricator via lldb-commits
sven added a comment.

@luismarques 
I have tried the patch with llvm12, test case is provide by 
jade(https://gist.github.com/e2efac2f780ed820277dbaf608805f4e), but it didn't 
worked for me.
After execute 'gdb-remote 1234', the terminal shows:

  Process 1 stopped
  * Thread #1, stop reason = signal SIGTRAP
 frame #0: 0x
  }

It seems that the unwind didn't succeed, can you figure out the problem?
my qemu vesion: 4.2.1
Thanks.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62732/new/

https://reviews.llvm.org/D62732

___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits


[Lldb-commits] [PATCH] D62732: [RISCV] Add SystemV ABI

2021-06-04 Thread zhongchengyong via Phabricator via lldb-commits
sven added a comment.

In D62732#2790087 , @luismarques wrote:

> In D62732#2790028 , @luismarques 
> wrote:
>
>> That's surprising. I'll see if I can figure out what the issue might be. 
>> Thanks.
>
> Confirmed. Something must have broken since the last patch revision. I'll see 
> if I can figure out / fix this soon.

Hi @luismarques, @jade  I have fixed the issue by install **libxml2-dev**, then 
recompile lldb and it works.
The cause of this issue is that LLDB doesn't send qXfer command for register 
info which defined in qemu-gdb-stub xml if libxml2 is not installed.
See ProcessGDBRemote.cpp::GetGDBServerRegisterInfo().
Thank you for your help.

  // query the target of gdb-remote for extended target information returns
  // true on success (got register definitions), false on failure (did not).
  bool ProcessGDBRemote::GetGDBServerRegisterInfo(ArchSpec &arch_to_use) {
// Make sure LLDB has an XML parser it can use first
if (!XMLDocument::XMLEnabled())
  return false;


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62732/new/

https://reviews.llvm.org/D62732

___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits