summaryrefslogtreecommitdiffstats
path: root/contrib/gdb
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-01-16 08:46:50 +0000
committerbde <bde@FreeBSD.org>1998-01-16 08:46:50 +0000
commit4859a7febe66900c1f0688344ee01da099155929 (patch)
tree704fc4216443b3c6d9f0a1fbeba3d517c1e61825 /contrib/gdb
parent356127f254dab2cbb005babb7b76c2791349873f (diff)
downloadFreeBSD-src-4859a7febe66900c1f0688344ee01da099155929.zip
FreeBSD-src-4859a7febe66900c1f0688344ee01da099155929.tar.gz
Fixed copying of N_TXTADDR() from the system version in the previous
revision. N_TXTADDR() was 0x20 too high in the usual case. Reported by: luoqi@watermarkgroup.com (Luoqi Chen)
Diffstat (limited to 'contrib/gdb')
-rw-r--r--contrib/gdb/bfd/freebsd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/gdb/bfd/freebsd.h b/contrib/gdb/bfd/freebsd.h
index 1c7d12d..43d29a9 100644
--- a/contrib/gdb/bfd/freebsd.h
+++ b/contrib/gdb/bfd/freebsd.h
@@ -31,7 +31,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
(N_GETMAGIC(x) == OMAGIC || N_GETMAGIC(x) == NMAGIC \
|| N_GETMAGIC(x) == ZMAGIC \
? ((x).a_entry < (x).a_text ? 0 : (x).a_entry & ~TARGET_PAGE_SIZE) \
- : TARGET_PAGE_SIZE + sizeof(struct external_exec))
+ : TARGET_PAGE_SIZE)
#define N_TXTOFF(x) \
(N_GETMAGIC(x) == ZMAGIC ? TARGET_PAGE_SIZE \
: (N_GETMAGIC(x) == QMAGIC || N_GETMAGIC_NET(x) == ZMAGIC) ? 0 \
OpenPOWER on IntegriCloud