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]

gdb/2229: gdb has an internal error during function calling


>Number:         2229
>Category:       gdb
>Synopsis:       gdb has an internal error during function calling
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 14 16:28:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     bartoschek@or.uni-bonn.de
>Release:        6.6
>Organization:
>Environment:
Linux host 2.6.9-42.0.3.ELsmp #1 SMP Mon Sep 25 17:24:31 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux

OpenSuse Linux 10.1 with a selfcompiled gdb 6.6 and with the shipped 6.3
>Description:
Using

call xrWireBoxLegal(box) 

results in the following error in gdb 6.6:

(gdb) call xrWireBoxLegal(box)
amd64-tdep.c:640: internal-error: amd64_push_arguments: Assertion `!"Unexpected register class."' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n


With gdb 6.3 one gets:

../../gdb/amd64-tdep.c:611: internal-error: amd64_push_arguments: Assertion `!"Unexpected register class."' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n


Running the testcase on a i386 machine does not lead to an internal error.
>How-To-Repeat:
1. Compile the program gdb.C:   g++ -g gdb.C
2. Start it in gdb:  gdb ./a.out
3. Set a breakpoint:  break main
4. Run it:   run
5. After breaking issue:  call xrWireBoxLegal(box)
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="gdb.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="gdb.C"

I2luY2x1ZGUgPGNzdGRpbz4KI2luY2x1ZGUgPGNzdHJpbmc+CgpzdHJ1Y3QgTG9jIHsKICAgc2hv
cnQgY29vclszXTsKfTsKCnN0cnVjdCBCb3ggewogICBMb2MgbWluOwogICBMb2MgbWF4Owp9OwoK
CnZvaWQgeHJXaXJlQm94TGVnYWwoQm94IGJveCkgewp9CgppbnQgbWFpbigpIHsKCiAgIEJveCBi
b3g7CiAgIG1lbXNldCgmYm94LCAwLCBzaXplb2YoQm94KSk7CgogICB4cldpcmVCb3hMZWdhbChi
b3gpOwoKfQo=


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