This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/15011] New: unable to fetch function parameters


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]