I have a script file named simple
. I can run it using ./simple
and everything works fine as it should.
I need to run this file in GDB to back trace how one particular parameter is changed and by what functions is it called. when I try
(gdb) file simple
"/home/examples/simple": not in executable format: File format not recognized
(gdb) r simple
Starting program: simple
No executable file specified.
Use the "file" or "exec-file" command.`
How can I overcome this?