[smsprev4@smspre1 PLCX]$ gdb core.32345 PLCXPro GNU gdb (GDB) Red Hat Enterprise Linux (7.2-64.AXS4.2) 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/>... "/app/smsprev4/sbin/PLCX/core.32345" is a core file. Please specify an executable to debug. "/app/smsprev4/sbin/PLCX/PLCXPro" is not a core dump: File format not recognized怎么查看错误
时间: 2024-03-06 17:48:17 浏览: 95
gdb for linux
这个错误信息表明,你需要指定一个可执行文件来调试,而不是指定一个core dump文件。你可以尝试使用以下命令来调试可执行文件:
```
gdb PLCXPro
```
当你进入GDB调试器时,可以使用以下命令来加载core dump文件:
```
core-file core.32345
```
然后你就可以使用GDB来分析core dump文件了。如果你仍然遇到问题,可以提供更多的上下文和细节,以便我更好地帮助你。
阅读全文