how to install gdb and valgrind in ubuntu

If I type gdb on my terminal prompt, gdb opens up , but when I run commands like next, weird stuff shows up like:

_libc_start_main (main=0x40060d <main>, argc=1, argv=0x7fffffffdfc8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdfb8) at libc-start.c:321 No such file or directory.

Same story with valgrind. Could somebody tell me how to install gdb?

1 Answer

try this first:

sudo apt-get install libc6-dbg gdb valgrind
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like