GDB for Memory leaks

Hi Guys,

Please help me to understand why the below command has failed with the error "gdb: unrecognized option `-leaks'. I am sure that this used to work for me long time back. Can there be any issue with the Redhat linu version and GDB version?

------------------------------------------------------------------------

$ gdb -leaks -threads -command=gdb.params -pid=1507
gdb: unrecognized option `-leaks'
Use `gdb --help' for a complete list of options.


-------------------------------------------------------------------------

Please find my gdb version details below:

gdb -v
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-37.el5)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".

Regards,
John
Last edited on
Topic archived. No new replies allowed.