mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Fix symbol addresses in threads
PR: 192608 Submitted by: luca.pizzamiglio@gmail.com (maintainer)
This commit is contained in:
parent
cdb8256f1b
commit
d49cb5cb02
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364713
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= gdb
|
||||
PORTVERSION= 7.8
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= GNU
|
||||
|
||||
|
@ -1502,14 +1502,14 @@ ps_err_e
|
||||
ps_pglobal_lookup (struct ps_prochandle *ph, const char *obj,
|
||||
const char *name, psaddr_t *sym_addr)
|
||||
{
|
||||
struct minimal_symbol *ms;
|
||||
struct bound_minimal_symbol ms;
|
||||
CORE_ADDR addr;
|
||||
|
||||
ms = lookup_minimal_symbol (name, NULL, NULL).minsym;
|
||||
if (ms == NULL)
|
||||
ms = lookup_minimal_symbol (name, NULL, NULL);
|
||||
if (!ms.minsym)
|
||||
return PS_NOSYM;
|
||||
|
||||
*sym_addr = ms->mginfo.value.address;
|
||||
*sym_addr = BMSYMBOL_VALUE_ADDRESS (ms);
|
||||
return PS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user