@@ -581,10 +581,7 @@ static int annotate_browser__run(struct annotate_browser *self, int evidx,
581
581
struct rb_node * nd = NULL ;
582
582
struct map_symbol * ms = self -> b .priv ;
583
583
struct symbol * sym = ms -> sym ;
584
- const char * help = "<-/ESC: Exit, TAB/shift+TAB: Cycle hot lines, "
585
- "H: Hottest line, ->/ENTER: Line action, "
586
- "O: Offset view, "
587
- "S: Source view" ;
584
+ const char * help = "Press 'h' for help on key bindings" ;
588
585
int key ;
589
586
590
587
if (ui_browser__show (& self -> b , sym -> name , help ) < 0 )
@@ -637,16 +634,30 @@ static int annotate_browser__run(struct annotate_browser *self, int evidx,
637
634
else
638
635
nd = self -> curr_hot ;
639
636
break ;
640
- case 'H' :
637
+ case K_F1 :
641
638
case 'h' :
639
+ ui_browser__help_window (& self -> b ,
640
+ "UP/DOWN/PGUP\n"
641
+ "PGDN/SPACE Navigate\n"
642
+ "q/ESC/CTRL+C Exit\n\n"
643
+ "-> Go to target\n"
644
+ "<- Exit\n"
645
+ "h Cycle thru hottest instructions\n"
646
+ "j Toggle showing jump to target arrows\n"
647
+ "J Toggle showing number of jump sources on targets\n"
648
+ "n Search next string\n"
649
+ "o Toggle disassembler output/simplified view\n"
650
+ "s Toggle source code view\n"
651
+ "/ Search string\n"
652
+ "? Search previous string\n" );
653
+ continue ;
654
+ case 'H' :
642
655
nd = self -> curr_hot ;
643
656
break ;
644
- case 'S' :
645
657
case 's' :
646
658
if (annotate_browser__toggle_source (self ))
647
659
ui_helpline__puts (help );
648
660
continue ;
649
- case 'O' :
650
661
case 'o' :
651
662
self -> use_offset = !self -> use_offset ;
652
663
if (self -> use_offset )
0 commit comments