小编dsc*_*obi的帖子

如何指定CPU核心在Linux中运行程序

我需要在CPU的同一核心上运行两个程序.第二个程序总是在另一个核心上运行,因为第一个程序使用第一个核心的50%.如何强制Linux在核心上运行程序?

linux multicore process

3
推荐指数
1
解决办法
3476
查看次数

当main.elf动态链接时(使用共享库),无法使用GDB分析核心转储

我正在尝试分析核心转储,但我得到了以下结果.

如果我使main.elf静态链接一切正常,我可以看到所有线程的bt.有任何想法吗?

GNU gdb 6.6.0.20070423-cvs
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=mipsel-linux --target=mipsel-linux-uclibc".
(gdb) file main.elf 
Reading symbols from /home/tobi/main.elf...Reading symbols from /home/tobi/main.dbg...done.
done.
(gdb) core-file /srv/tobi/core
warning: .dynamic …
Run Code Online (Sandbox Code Playgroud)

c gdb

1
推荐指数
1
解决办法
6094
查看次数

标签 统计

c ×1

gdb ×1

linux ×1

multicore ×1

process ×1