NetBSD Problem Report #23364
Received: (qmail 1763 invoked by uid 605); 3 Nov 2003 23:59:37 -0000
Message-Id: <20031103235936.CD88C11153@narn.netbsd.org>
Date: Mon, 3 Nov 2003 23:59:36 +0000 (UTC)
From: cagney@mac.com
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: cagney@mac.com
To: gnats-bugs@gnats.NetBSD.org
Subject: "(gdb) info auxv" doesn't work
X-Send-Pr-Version: www-1.0
>Number: 23364
>Category: kern
>Synopsis: "(gdb) info auxv" doesn't work
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Nov 04 00:00:01 +0000 2003
>Closed-Date: Fri Oct 06 21:17:50 +0000 2017
>Last-Modified: Fri Oct 06 21:17:50 +0000 2017
>Originator: Andrew Cagney
>Release: 1.6.1
>Organization:
>Environment:
NetBSD localhost 1.6.1_STABLE NetBSD 1.6.1_STABLE (NETLUX) #0: Mon Oct 13 14:28:35 EDT 2003 cagney@localhost:/home/NetBSD/netbsd-1-6/src/sys/arch/macppc/compile/NETLUX macppc
>Description:
I can't test GDB's new "info auxv" command because there's no /proc/$$/auxv to test it against :-(
>How-To-Repeat:
$ ls /proc/$$/auxv
ls: /proc/18267/auxv: No such file or directory
vs:
$ uname -a
SunOS ... 5.9 Generic sun4u sparc SUNW,Ultra-60
$ ls /proc/$$/auxv
/proc/24845/auxv
>Fix:
>Release-Note:
>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: cagney@mac.com
Cc: gnats-bugs@gnats.NetBSD.org
Subject: Re: kern/23364: "(gdb) info auxv" doesn't work
Date: Tue, 11 Nov 2003 14:27:50 +0100
On Mon, Nov 03, 2003 at 11:59:36PM +0000, cagney@mac.com wrote:
> $ ls /proc/$$/auxv
> ls: /proc/18267/auxv: No such file or directory
Could you please tell us what's the content of that file supposed to be?
Martin
From: Andrew Cagney <cagney@mac.com>
To: Martin Husemann <martin@duskware.de>
Cc: gnats-bugs@gnats.NetBSD.org
Subject: Re: kern/23364: "(gdb) info auxv" doesn't work
Date: Tue, 11 Nov 2003 13:07:36 -0500
> On Mon, Nov 03, 2003 at 11:59:36PM +0000, cagney@mac.com wrote:
>
>> $ ls /proc/$$/auxv
>> ls: /proc/18267/auxv: No such file or directory
>
>
> Could you please tell us what's the content of that file supposed to be?
The contents of the "auxilary vector" passed to $$ during that program's
startup. See <sys/exec_elf.h>. Note that core files should also
include this information.
Andrew
State-Changed-From-To: open->closed
State-Changed-By: kamil@NetBSD.org
State-Changed-When: Fri, 06 Oct 2017 23:17:50 +0200
State-Changed-Why:
It works now.
(gdb) info auxv
3 AT_PHDR Program headers for program 0x5c600040
4 AT_PHENT Size of program header entry 56
5 AT_PHNUM Number of program headers 8
6 AT_PAGESZ System page size 4096
7 AT_BASE Base address of interpreter 0x7f7f7e800000
8 AT_FLAGS Flags 0x0
9 AT_ENTRY Entry point of program 0x5c600e60
2000 AT_SUN_UID Effective user ID 1000
2001 AT_SUN_RUID Real user ID 1000
2002 AT_SUN_GID Effective group ID 100
2003 AT_SUN_RGID Real group ID 100
13 AT_GID Real group ID 140187723288576
2014 AT_SUN_EXECNAME Canonicalized file name given to execve 0x7f7fff72c478 "/bin/cat"
0 AT_NULL End of vector 0x0
Proper support is stable with ptrace(2) PIOD_READ_AUXV.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.