bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with ptype $<user register>


From: Paul Hilfinger
Subject: Problem with ptype $<user register>
Date: Wed, 07 Mar 2007 09:50:36 -0000

For the simple "hello world" program appended, the command sequence

    b main
    run
    ptype $pc

causes an internal GDB error:

   .../gdb/regcache.c:163: internal-error: register_type: Assertion `regnum >= 
0 && regnum < descr->nr_cooked_registers' failed.
   A problem internal to GDB has been detected,
   further debugging may prove unreliable.

when run on i686 GNU/Linux with recent sources:

     GNU gdb 6.6.50.20070307-cvs

Program compiled with GCC 4.1.2 derivate.

Paul Hilfinger

-----------------------------foo.c---------------------------------------
#include <stdio.h>

main ()
{
  printf ("Hello, world!\n");
}





reply via email to

[Prev in Thread] Current Thread [Next in Thread]