1
0
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:
Tijl Coosemans 2014-08-12 15:39:58 +00:00
parent cdb8256f1b
commit d49cb5cb02
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364713
2 changed files with 5 additions and 4 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= gdb
PORTVERSION= 7.8
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= GNU

View File

@ -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;
}