This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/15011] New: unable to fetch function parameters
- From: "deeprtm3997 at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 10 Jan 2013 19:18:09 +0000
- Subject: [Bug gdb/15011] New: unable to fetch function parameters
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=15011
Bug #: 15011
Summary: unable to fetch function parameters
Product: gdb
Version: 7.5
Status: NEW
Severity: normal
Priority: P2
Component: gdb
AssignedTo: unassigned@sourceware.org
ReportedBy: deeprtm3997@gmail.com
Classification: Unclassified
Created attachment 6812
--> http://sourceware.org/bugzilla/attachment.cgi?id=6812
gdb session
I am running xv6 OS (teaching linux-like OS) on qemu and doing remote debugging
using gdb.
I start the kernel and set a breakpoint on function "exec". Gdb should show the
path and argv variables, but instead it says that :
Breakpoint 1, exec (
path=<error reading variable: can't compute CFA for this frame>,
argv=<error reading variable: can't compute CFA for this frame>)
at exec.c:12
12 {
(gdb) c
Continuing.
So, I am not able to fetch the argv and path.
When I try :
p argv[0]
it says "can't compute CFA for this frame".
What should I do?
The attachment below shows the problem.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.