|
Subject: |
Re: VxGDB question |
|
From: |
[email protected] (Jeff Hill) |
|
Date: |
Tue, 3 Jan 95 10:36:58 MST |
>
> I want to use VxGDB to print the contents of a pointer which
> points to a valid VXI memory location for a specific card. I have found
> that I can't use the "print *" option - I get the following error:
>
> (vxgdb) print ptr
> $1 = (int *) 0x20000000
> (vxgdb) print *ptr
> ptrace: Bad address.
> Cannot read memory: address 0x20000000 out of bounds.
> (vxgdb)
>
> This appears to be a limitation with ptrace(). I need to
> know *how* I can print the contents of pointers to VXI memory since I
> apparently can't do it with "print *". I would prefer using VxGDB to
> do this is possible. Any suggestions?
>
I suspect that your troubles result from VxGDB's using "ptr" as
an "(int32_t *)" when most register based VXI devices accept
"(int16_t *)" access only.
On the 68k:
int16_t maps to C type short
int32_t maps to C types int and long
Jeff
______________________________________________________________________
Jeffrey O. Hill Internet [email protected]
LANL MS H820 Voice 505 665 1831
Los Alamos, NM USA 87545 FAX 505 665 5107
- Navigate by Date:
- Next:
vxWorks version 5.1.1 winans
- Index:
1994
<1995>
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
- Navigate by Thread:
- Next:
vxWorks version 5.1.1 winans
- Index:
1994
<1995>
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
|