From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28856 invoked by alias); 19 Dec 2001 20:41:44 -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 28737 invoked from network); 19 Dec 2001 20:40:26 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 19 Dec 2001 20:40:26 -0000 Received: from porcupine.cygnus.com (cse.cygnus.com [205.180.230.236]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id MAA11772 for ; Wed, 19 Dec 2001 12:40:20 -0800 (PST) Received: from porcupine.cygnus.com (law@localhost) by porcupine.cygnus.com (8.11.6/8.11.6) with ESMTP id fBJKdpa22626 for ; Wed, 19 Dec 2001 13:39:52 -0700 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 To: gdb-patches@sources.redhat.com Reply-to: law@redhat.com From: law@redhat.com Subject: gdb.base/break.exp fix Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 19 Dec 2001 12:41:00 -0000 Message-ID: <22625.1008794391@porcupine.cygnus.com> X-SW-Source: 2001-12/txt/msg00480.txt.bz2 Inferior calls on HP's typically go through some trampoline code (sr4export) in the inferior before reaching the target function. These trampolines will show up in a backtrace if we're in a called function. break.exp knows about these trampolines, but apparently some minor tweaks have been made to the frame output code when doing a backtrace. While most of the code in break.exp was suitably updated, there is one case for HPs that wasn't updated. Basically this replaces "$hex in marker2" with ($hex in )? * gdb.base/break.exp: Fix HP specific search string when testing backtracing in a called function. Index: break.exp =================================================================== RCS file: /cvs/cvsfiles/devo/gdb/testsuite/gdb.base/break.exp,v retrieving revision 1.62 diff -c -3 -p -r1.62 break.exp *** break.exp 2001/03/26 19:55:23 1.62 --- break.exp 2001/12/19 20:33:24 *************** gdb_expect { *** 592,598 **** # send_gdb "bt\n" gdb_expect { ! -re "#0\[ \t\]*$hex in marker2.*:4\[49\]\r\n#1.*_sr4export.*$gdb_prompt $"\ {pass "backtrace while in called function"} -re "#0\[ \t\]*($hex in )?marker2.*:4\[49\]\r\n#1.*function called from gdb.*$gdb_prompt $"\ {pass "backtrace while in called function"} --- 592,598 ---- # send_gdb "bt\n" gdb_expect { ! -re "#0\[ \t\]*($hex in )?marker2.*:4\[49\]\r\n#1.*_sr4export.*$gdb_promp t $"\ {pass "backtrace while in called function"} -re "#0\[ \t\]*($hex in )?marker2.*:4\[49\]\r\n#1.*function called from gdb.*$gdb_prompt $"\ {pass "backtrace while in called function"}