ruby-changes:65091
From: David <ko1@a...>
Date: Sun, 31 Jan 2021 09:53:19 +0900 (JST)
Subject: [ruby-changes:65091] 3813bb4152 (master): vm_dump: dump registers for Mac M1
https://git.ruby-lang.org/ruby.git/commit/?id=3813bb4152 From 3813bb41524a1e2f0b08b6e2f1213ba46477a5f7 Mon Sep 17 00:00:00 2001 From: David CARLIER <devnexen@g...> Date: Fri, 29 Jan 2021 23:43:35 +0000 Subject: vm_dump: dump registers for Mac M1 --- vm_dump.c | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/vm_dump.c b/vm_dump.c index 539e394..ae3cbb4 100644 --- a/vm_dump.c +++ b/vm_dump.c @@ -785,7 +785,7 @@ rb_print_backtrace(void) https://github.com/ruby/ruby/blob/trunk/vm_dump.c#L785 # define HAVE_PRINT_MACHINE_REGISTERS 1 # endif #elif defined __APPLE__ -# if defined __x86_64__ || defined __i386__ +# if defined __x86_64__ || defined __i386__ || defined __aarch64__ # define HAVE_PRINT_MACHINE_REGISTERS 1 # endif #endif @@ -949,6 +949,28 @@ rb_dump_machine_register(const ucontext_t *ctx) https://github.com/ruby/ruby/blob/trunk/vm_dump.c#L949 dump_machine_register(es); dump_machine_register(fs); dump_machine_register(gs); +# elif defined __aarch64__ + dump_machine_register(x[0]); + dump_machine_register(x[1]); + dump_machine_register(x[2]); + dump_machine_register(x[3]); + dump_machine_register(x[4]); + dump_machine_register(x[5]); + dump_machine_register(x[6]); + dump_machine_register(x[7]); + dump_machine_register(x[18]); + dump_machine_register(x[19]); + dump_machine_register(x[20]); + dump_machine_register(x[21]); + dump_machine_register(x[22]); + dump_machine_register(x[23]); + dump_machine_register(x[24]); + dump_machine_register(x[25]); + dump_machine_register(x[26]); + dump_machine_register(x[27]); + dump_machine_register(x[28]); + dump_machine_register(fp); + dump_machine_register(sp); # endif } # endif -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/