ruby-changes:23900
From: ko1 <ko1@a...>
Date: Thu, 7 Jun 2012 15:54:35 +0900 (JST)
Subject: [ruby-changes:23900] ko1:r35951 (trunk): * .gdbinit: add function `trace_machine_instructions' to trace
ko1 2012-06-07 15:54:24 +0900 (Thu, 07 Jun 2012) New Revision: 35951 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35951 Log: * .gdbinit: add function `trace_machine_instructions' to trace in native machine assemble. See https://bugs.ruby-lang.org/projects/ruby-trunk/wiki/MachineInstructionsTraceWithGDB for more details. Modified files: trunk/.gdbinit trunk/ChangeLog Index: .gdbinit =================================================================== --- .gdbinit (revision 35950) +++ .gdbinit (revision 35951) @@ -755,3 +755,16 @@ set $ps_thread_id = $arg1 print $ps_thread_th = (rb_thread_t*)$ps_thread->data end + +# Details: https://bugs.ruby-lang.org/projects/ruby-trunk/wiki/MachineInstructionsTraceWithGDB +define trace_machine_instructions + set logging on + set height 0 + set width 0 + display/i $pc + while !$exit_code + info line *$pc + si + end +end + Index: ChangeLog =================================================================== --- ChangeLog (revision 35950) +++ ChangeLog (revision 35951) @@ -1,3 +1,10 @@ +Thu Jun 07 15:53:03 2012 Koichi Sasada <ko1@a...> + + * .gdbinit: add function `trace_machine_instructions' to trace + in native machine assemble. + See https://bugs.ruby-lang.org/projects/ruby-trunk/wiki/MachineInstructionsTraceWithGDB + for more details. + Wed Jun 6 21:31:21 2012 Tanaka Akira <akr@f...> * process.c (proc_exec_cmd) renamed from proc_exec_v. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/