@@ -11,7 +11,7 @@ class ControlButtons extends React.Component<{}, State> {
1111 // @ts -expect-error ts-migrate(2554) FIXME: Expected 1-2 arguments, but got 0.
1212 super ( ) ;
1313 // @ts -expect-error ts-migrate(2339) FIXME: Property 'connectComponentState' does not exist on... Remove this comment to see the full error message
14- store . connectComponentState ( this , [ "gdb_pid" ] ) ;
14+ store . connectComponentState ( this , [ "gdb_pid" , "reverse_supported" ] ) ;
1515 }
1616 render ( ) {
1717 let btn_class = "btn btn-default btn-sm" ;
@@ -34,8 +34,7 @@ class ControlButtons extends React.Component<{}, State> {
3434 type = "button"
3535 title = {
3636 "Continue until breakpoint is hit or inferior program exits keyboard shortcut: c" +
37- // @ts -expect-error ts-migrate(2304) FIXME: Cannot find name 'initial_data'.
38- ( initial_data . rr ? ". shift + c for reverse." : "" )
37+ ( this . state . reverse_supported ? ". shift + c for reverse." : "" )
3938 }
4039 className = { btn_class }
4140 >
@@ -57,8 +56,7 @@ class ControlButtons extends React.Component<{}, State> {
5756 type = "button"
5857 title = {
5958 "Step over next function call keyboard shortcut: n or right arrow" +
60- // @ts -expect-error ts-migrate(2304) FIXME: Cannot find name 'initial_data'.
61- ( initial_data . rr ? ". shift + n for reverse." : "" )
59+ ( this . state . reverse_supported ? ". shift + n for reverse." : "" )
6260 }
6361 className = { btn_class }
6462 >
@@ -71,8 +69,7 @@ class ControlButtons extends React.Component<{}, State> {
7169 type = "button"
7270 title = {
7371 "Step into next function call keyboard shortcut: s or down arrow" +
74- // @ts -expect-error ts-migrate(2304) FIXME: Cannot find name 'initial_data'.
75- ( initial_data . rr ? ". shift + s for reverse." : "" )
72+ ( this . state . reverse_supported ? ". shift + s for reverse." : "" )
7673 }
7774 className = { btn_class }
7875 >
@@ -95,8 +92,7 @@ class ControlButtons extends React.Component<{}, State> {
9592 type = "button"
9693 title = {
9794 "Next Instruction: Execute one machine instruction, stepping over function calls keyboard shortcut: m" +
98- // @ts -expect-error ts-migrate(2304) FIXME: Cannot find name 'initial_data'.
99- ( initial_data . rr ? ". shift + m for reverse." : "" )
95+ ( this . state . reverse_supported ? ". shift + m for reverse." : "" )
10096 }
10197 className = "btn btn-default"
10298 >
@@ -108,8 +104,7 @@ class ControlButtons extends React.Component<{}, State> {
108104 type = "button"
109105 title = {
110106 "Step Instruction: Execute one machine instruction, stepping into function calls keyboard shortcut: ','" +
111- // @ts -expect-error ts-migrate(2304) FIXME: Cannot find name 'initial_data'.
112- ( initial_data . rr ? ". shift + , for reverse." : "" )
107+ ( this . state . reverse_supported ? ". shift + , for reverse." : "" )
113108 }
114109 className = "btn btn-default"
115110 >
0 commit comments