Operating System - HP-UX
1829857 Members
1997 Online
109993 Solutions
New Discussion

obtain all external variables in adb (B.11.23)

 
mobidyc
Trusted Contributor

obtain all external variables in adb (B.11.23)

Hello,

on hpux 11.00 and 11.11 i can obtain all external variables by the followin command:
# echo '$e $b' |adb64 /stand/vmunix /dev/kmem
(around 8000 vars)

on hpux 11.23 this way doesn't work:
# echo '$e $b' |adb64 /stand/vmunix /dev/kmem
adb: error: Unrecognized keyword.
# echo '$e' |adb64 /stand/vmunix /dev/kmem
adb: error: Unrecognized keyword.
# echo '$v' |adb64 /stand/vmunix /dev/kmem
9 = 0
b = 0xde9000
backcompat = 0x1
d = 0x644000
dot = 0
dotincr = 0
e = 0x22fb68
followchild = 0
m = 0x2
macropath = ".:/usr/lib/adb"
maxoffset = 0x10000
maxwidth = 0xb2
pager = "more -c"
prompt = "adb> "
radix = 0x10
s = 0
space = 0xffffffffffffffff
t = 0xdc9000

is it a problem with the vmunix/kmem files or am i missing something?

--
Regards,
Cedrick Gaillard
Best regards, Cedrick Gaillard
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: obtain all external variables in adb (B.11.23)

Hi Cedrick:

Try adding the old (backward-compatability) switch to 'adb':

# adb -o

Regards!

...JRF...
whiteknight
Honored Contributor

Re: obtain all external variables in adb (B.11.23)

hi,

refer to this
http://docs.hp.com/en/B2355-60105/adb.1.html

WK
Problem never ends, you must know how to fix it
mobidyc
Trusted Contributor

Re: obtain all external variables in adb (B.11.23)

Hello,

i'm on a PA-RISC so the '-o' flag is already set.
and
of course, before post my problem, i've looked the man page ;)

i think i've a problem with vmunix, i will regenerate a new kernel and test after reboot (it's a test machine)

--
Regards,
Cedrick Gaillard
Best regards, Cedrick Gaillard