[root@localhost Relay]# file RelayD
RelayD: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped
[root@localhost Relay]# ./start
: no process killed
./start: line 2: 2066 Segmentation fault ./RelayD start --daemon
: command not found
[root@localhost Relay]# gdb RelayD
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-92.el6)
Copyright (C) 2010 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".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
"/home/Relay/RelayD": not in executable format: File format not recognized
(gdb) run
Starting program:
No executable file specified.
Use the "file" or "exec-file" command.
如何调试这个文件?我试图运行 gdb 来调试文件,结果显示:不在可执行文件中。当我尝试运行 bin 文件时,程序显示段错误。