From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24169 invoked by alias); 19 May 2003 15:31:22 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 24161 invoked from network); 19 May 2003 15:31:22 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 19 May 2003 15:31:22 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h4JFVIH03647 for ; Mon, 19 May 2003 11:31:22 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h4JFVHI26570 for ; Mon, 19 May 2003 11:31:17 -0400 Received: from localhost.redhat.com (IDENT:Ic7grnGyjm4/id18OWy4249drdR9GMXh@tooth.toronto.redhat.com [172.16.14.29]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h4JFVHo12575 for ; Mon, 19 May 2003 11:31:17 -0400 Received: by localhost.redhat.com (Postfix, from userid 469) id C62262C43C; Mon, 19 May 2003 11:36:36 -0400 (EDT) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16072.64004.623018.571211@localhost.redhat.com> Date: Mon, 19 May 2003 15:31:00 -0000 To: Mark Kettenis Cc: gdb-patches@sources.redhat.com, mludvig@suse.cz, aj@suse.de Subject: Re: [PATCH/i386newframe] amd64newframe In-Reply-To: <200305171519.h4HFJ5Ni045634@elgar.kettenis.dyndns.org> References: <200305171519.h4HFJ5Ni045634@elgar.kettenis.dyndns.org> X-SW-Source: 2003-05/txt/msg00337.txt.bz2 Mark Kettenis writes: > Folks, > > I've checked in on my i386newframe branch a major overhaul of the > x86-64 (sub)target to make it fit into the new frame unwindig > framework. I've tried very hard to reduce the gratuitous differences > between the i386 and x86_64 stuff, and cleaned things up quite a bit. > However, this code is *untested*. The code compiles, that is, I can > build a x86_64-linux cross-debugger on my i386-unknown-freebsd4.7 > system (actually I can't since the final link fails because of a > problem with the way we do our shared library support). It would be > great if someone could provide me with access to an amd64 system. If > it's running *BSD, I can probably add the necessary support for it to > GDB. Otherwise I'd appreciate it if someone could test this code on > x86_64-linux. > > Mark > > > Index: ChangeLog > from Mark Kettenis > > Revise the x86_64 (sub)taget. ^^^^^^^ typo (meager contribution...:) I don't know if I can grant you access to some hardware, I'll see what I can do. However I have tried to run the gdb testsuite. It is not running too well, I had to kill it because it was hanging, like this below: Breakpoint 26, marker2 (a=99) at /home/ezannoni/kettenis-branch/src/gdb/testsuite/gdb.base/break.c:49 49 int marker2 (a) int a; { return (1); } The program being debugged stopped while in a function called from GDB. When the function (marker2) is done executing, GDB will silently stop (instead of continuing to evaluate the expression containing the function call). (gdb) PASS: gdb.base/break.exp: hit breakpoint on called function bt #0 marker2 (a=99) at /home/ezannoni/kettenis-branch/src/gdb/testsuite/gdb.base/break.c:49 #1 This frame inner-to next frame (corrupt stack?) (gdb) PASS: gdb.base/break.exp: backtrace while in called function finish Run till exit from #0 marker2 (a=99) at /home/ezannoni/kettenis-branch/src/gdb/testsuite/gdb.base/break.c:49 /home/ezannoni/kettenis-branch/src/gdb/dummy-frame.c:317: internal-error: dummy_frame_prev_register: Assertion `dummy != NULL' failed. A problem internal to GDB has been detected. Further debugging may prove unreliable. Quit this debugging session? (y or n) FAIL: gdb.base/break.exp: (timeout) finish from called function delete breakpoints Please answer y or n. Quit this debugging session? (y or n) ERROR: Delete all breakpoints in delete_breakpoints (timeout) break main Please answer y or n. Quit this debugging session? (y or n) UNRESOLVED: gdb.base/break.exp: setting breakpoint at main (timeout) I get the same internal error also in the inferior function calls tests: (gdb) PASS: gdb.base/call-ar-st.exp: run until breakpoint set at a line print print_double_array(double_array) array_d : ========= 0.000000 23.456700 46.913400 70.370100 93.826800 117.283500 140.740200 164.196900 187.653600 /home/ezannoni/kettenis-branch/src/gdb/dummy-frame.c:317: internal-error: dummy_frame_prev_register: Assertion `dummy != NULL' failed. A problem internal to GDB has been detected. Further debugging may prove unreliable. Quit this debugging session? (y or n) FAIL: gdb.base/call-ar-st.exp: print print_double_array(double_array) (pattern 5 + sentinel) (timeout) print print_char_array(char_array) (gdb) p t_char_values(0,0) /home/ezannoni/kettenis-branch/src/gdb/dummy-frame.c:317: internal-error: dummy_frame_prev_register: Assertion `dummy != NULL' failed. A problem internal to GDB has been detected. Further debugging may prove unreliable. Quit this debugging session? (y or n) ERROR: Got interactive prompt. UNRESOLVED: gdb.base/callfuncs.exp: p t_char_values(0,0) print 'A' == iso_8859_1_string[8] $9 = 0 (gdb) FAIL: gdb.base/charset.exp: check value of parsed character literal in ISO-8859-1 print "abcdefABCDEF012345" /home/ezannoni/kettenis-branch/src/gdb/dummy-frame.c:317: internal-error: dummy_frame_prev_register: Assertion `dummy != NULL' failed. A problem internal to GDB has been detected. Further debugging may prove unreliable. Quit this debugging session? (y or n) Please answer y or n. Quit this debugging session? (y or n) Create a core file of GDB? (y or n) Please answer y or n. Create a core file of GDB? (y or n) Please answer y or n. Create a core file of GDB? (y or n) ERROR: Got interactive prompt. UNRESOLVED: gdb.base/charset.exp: parse string literal in ISO-8859-1 ERROR: Got interactive prompt. It seems to occur at any inferior function call. Let me see if I can dig further. elena