cyrus-and / gdb-dashboard

Modular visual interface for GDB in Python
MIT License
11.09k stars 777 forks source link

dashbord command not found in ubuntu 16.04 #140

Closed sureshs2k12 closed 5 years ago

sureshs2k12 commented 5 years ago

Hello all,

i have done following this $ wget -P ~ git.io/.gdbinit, after this i have open the new terminal & type the $ tty command then gave this command "dashboard -output /dev/ttys001" in terminal but i am getting error

csk@CSK-Ubuntu:~$ dashboard -output /dev/ttys001
dashboard: command not found
csk@CSK-Ubuntu:~$ 

please help me for further move

cyrus-and commented 5 years ago

Hi, dashboard is not a system command, it's a GDB command, meaning that you have to run it inside a GDB session, what you want is:

  1. in terminal A run the tty command and note the path, say /dev/ttys001;

  2. in terminal B run:

    $ gdb /some/executable
    >>> dashboard -output /dev/ttys001
    >>> start
  3. now the dashboard will be displayed in terminal A and the prompt will be in terminal B.

Good luck!

sureshs2k12 commented 5 years ago

screenshot from 2019-03-05 16-50-27 Thanks for support ....

Please review above screen shot of my PC, which i got after following your flow

Thanks in advance...

cyrus-and commented 5 years ago

Is the .gdbinit file in your home folder?

sureshs2k12 commented 5 years ago

yes, now i can open dashboard(before .gdbinit file not in home folder, now its in home folder), but how can i visible all register view & expressions in terminal and have any change to look the live status of variable?

check below screenshot,which i try to display the register,threads,expressions... etc

screenshot from 2019-03-08 15-29-59

kindly request you to help me thanks in advance

sureshs2k12 commented 5 years ago

screenshot from 2019-03-08 16-11-40

help me to use the expressions and live watch of variable

cyrus-and commented 5 years ago

You can use the help command for about everything, in this case:

help dashboard expressions

So for example:

dashboard expressions watch foo()+5
sureshs2k12 commented 5 years ago

Thanks lot for your response....

its working fine...

i need your help on below questions

please help me for it

cyrus-and commented 5 years ago

I'm sorry, that's simply not possible with GDB (and any other debugger AFAIK).

sureshs2k12 commented 5 years ago

it's ok.... and thanks

how can i use non-stop mode? what is command to use non-stop mode?

cyrus-and commented 5 years ago

This has nothing to do with the dashboard, please refer to the GDB manual.