tags:

views:

388

answers:

2

Hi,

When I tried to run binary in gdb mode I am getting the below mentioned error message .Please find the error message in the attachment

(gdb)  r /devl/aaa/BINARY/pfm.sql_Kavitha /devl/aaa/AVP/OCT_TEST /devl/aaa/ASAPDATA/READONLY /devl/aaa/ASAPDATA/READONLY 17 kk12345
Starting program:  /devl/aaa/BINARY/pfm.sql_Kavitha /devl/aaa/AVP/OCT_TEST /devl/aaa/ASAPDATA/READONLY /devl/aaa/ASAPDATA/READONLY 17 kk12345
**No executable file specified.
Use the "file" or "exec-file" command.**

Please let me know if anybody knows how to resolve this issue.

thanks

A: 

Invoke gdb as:

gdb /devl/aaa/BINARY/pfm.sql_Kavitha

and then run the program from within gdb as:

(gdb) r /devl/aaa/BINARY/pfm.sql_Kavitha /devl/aaa/AVP/OCT_TEST /devl/aaa/ASAPDATA/READONLY /devl/aaa/ASAPDATA/READONLY 17 kk12345

(gdb) above is the prompt.

If you want to be able to specify the program to execute from within gdb, use file command, as the error message says:

(gdb) file /devl/aaa/BINARY/pfm.sql_Kavitha

followed by the r command as above.

Alok
A: 

There is some problem with the file you are trying to run from gdb -- either it is a corrupted file or the path is wrong. Try "gdb {filename}".

Amit Kumar