debugging powerpc exe with lldb on x86 host

0

I want to compile and debug powerpc code compiler on ubutnu x86 host.

  • I installed powerpc gcc toolchain so I will be able to create an executable.
  • I build lldb and clang.
  • I wrote an hello world program and compiled with powerpc gcc.
  • Finally, I loaded and run the program via lldb.

I got :

(lldb) target create "./hello_ppc"
Current executable set to 'path_to_exe/hello_ppc' (powerpc).
(lldb) b main
Breakpoint 1: where = hello_ppc`main, address = 0x10000200
(lldb) r
Process 25399 launched: 'path_to_exe/hello_ppc' (powerpc)
hello World
Process 25399 exited with status = 12 (0x0000000c) 

How does lldb run powerpc executable on x86 ? does it has some kind of simulator ??

BTW: trying to add breakpoints didn't work ... (why ?)

lldb
llvm-clang
powerpc
asked on Stack Overflow Jul 16, 2020 by yehudahs

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0