Menu

#65 unable to quit from non-readline code

0.10
closed-accepted
nobody
None
5
2008-04-24
2008-04-24
No

the jtag_readline_loop() was updated to check the return value of jtag_readline_multiple_commands_support() ... but only when readline is enabled. the non-readline code never checks the return value of the function. the easy fix is:

@@ -225,7 +226,8 @@ jtag_readline_loop( chain_t *chain, cons
line[0] = 0;
do
{
- jtag_readline_multiple_commands_support( chain, line );
+ if (!jtag_readline_multiple_commands_support( chain, line ))
+ break;
printf("%s", prompt);
fflush(stdout);
}

Discussion

  • Mike Frysinger

    Mike Frysinger - 2008-04-24
    • status: open --> closed-accepted
     
  • Mike Frysinger

    Mike Frysinger - 2008-04-24

    Logged In: YES
    user_id=114429
    Originator: YES

    committed as rev 1181

     
  • Kolja Waschk

    Kolja Waschk - 2017-02-12
    • Group: --> 0.10
     

Log in to post a comment.