gdb/2190: varobj.c:1471: internal-error: my_value_equal: Assertion `!value_lazy (val1)' failed
Mon Oct 23 02:18:00 GMT 2006

>Number:         2190
>Category:       gdb
>Synopsis:       varobj.c:1471: internal-error: my_value_equal: Assertion `!value_lazy (val1)' failed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 23 02:18:02 UTC 2006
>Release:        GDB 6.5
Linux redhat fedora core 5
I start gdb with using MI interface.  If the program contains some argument variables, gdb will be killed after a few steps and call "-var-update *" command.  There is an error message from gdb as below:

-var-update *
~"varobj.c:1471: internal-error: my_value_equal: Assertion `!value_lazy (val1)' failed.\n"
~"A problem internal to GDB has been detected,\n"
~"further debugging may prove unreliable.\n"
~"Quit this debugging session? (y or n) " 
This problem only occurs if I create MIVar for argument variable (argc).  If I don't create argument variable and create other variable instead of it, there is no problem on gdb. 
gdb -i mi a.out
-break-insert main
-var-create - * argc
-var-update *
-exec-next 1
-var-update *
-exec-next 1
-var-update * (error occur)

Content-Type: text/x-csrc; name="test.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.c"


More information about the Gdb-prs mailing list