Программы на C++. Форум разработчиков
-
Anonymous
GDB различные имена и адреса функций, чем ожидалось
Сообщение
Anonymous »
Я пытаюсь запечатлеть, когда ребенок выполняет прерван.
Код: Выделить всё
#include
#include
#include //to make things legible
#include
#include
#include [*]
#include
#include
using namespace std;
int getBacktrace(pid_t pid)
{
int rv = 0;
unw_addr_space_t as = unw_create_addr_space(&_UPT_accessors, 0);
if(!as)
{
return rv;
}
void *context = _UPT_create(pid);
unw_cursor_t cursor;
if(unw_init_remote(&cursor, as, context) == 0)
{
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79446231/gdb-different-function-names-and-addresses-than-expected[/url]
1739814853
Anonymous
Я пытаюсь запечатлеть, когда ребенок выполняет прерван.
[code]#include
#include
#include //to make things legible
#include
#include
#include [*]
#include
#include
using namespace std;
int getBacktrace(pid_t pid)
{
int rv = 0;
unw_addr_space_t as = unw_create_addr_space(&_UPT_accessors, 0);
if(!as)
{
return rv;
}
void *context = _UPT_create(pid);
unw_cursor_t cursor;
if(unw_init_remote(&cursor, as, context) == 0)
{
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79446231/gdb-different-function-names-and-addresses-than-expected[/url]