From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23105 invoked by alias); 16 Feb 2013 07:07:01 -0000 Received: (qmail 23076 invoked by uid 22791); 16 Feb 2013 07:07:00 -0000 X-SWARE-Spam-Status: No, hits=-6.0 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_SPAMHAUS_DROP,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_BT,TW_DB X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 16 Feb 2013 07:06:53 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r1G76qJG010440 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 16 Feb 2013 02:06:53 -0500 Received: from valrhona.uglyboxes.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r1G76pNk009905 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Sat, 16 Feb 2013 02:06:52 -0500 Message-ID: <511F300B.7040607@redhat.com> Date: Sat, 16 Feb 2013 07:07:00 -0000 From: Keith Seitz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 MIME-Version: 1.0 To: insight Subject: [PATCH] Fix build error/struct bp_location->source_file Content-Type: multipart/mixed; boundary="------------070806030701000309020409" X-IsSubscribed: yes Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2013-q1/txt/msg00021.txt.bz2 This is a multi-part message in MIME format. --------------070806030701000309020409 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 285 Hi, This patch fixes the build problem reported earlier by Robert Bu. If there are any further issues, please let me know. Keith 2013-02-15 Keith Seitz * generic/gdbtk-bp.c (gdb_find_bp_at_line): Update struct bp_location changes wrt source_file from GDB. --------------070806030701000309020409 Content-Type: text/x-patch; name="source_file.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="source_file.patch" Content-length: 986 Index: generic/gdbtk-bp.c =================================================================== RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-bp.c,v retrieving revision 1.50 diff -u -p -r1.50 gdbtk-bp.c --- generic/gdbtk-bp.c 10 Nov 2012 18:09:30 -0000 1.50 +++ generic/gdbtk-bp.c 16 Feb 2013 07:05:15 -0000 @@ -1,5 +1,5 @@ /* Tcl/Tk command definitions for Insight - Breakpoints. - Copyright (C) 2001-2012 Free Software Foundation, Inc. + Copyright (C) 2001-2013 Free Software Foundation, Inc. This file is part of GDB. @@ -249,8 +249,8 @@ gdb_find_bp_at_line (ClientData clientDa Tcl_SetListObj (result_ptr->obj_ptr, 0, NULL); ALL_BREAKPOINTS (b) { - if (b->loc && b->loc->line_number == line - && !strcmp (b->loc->source_file, s->filename)) + if (b->loc && b->loc->symtab && b->loc->line_number == line + && !strcmp (b->loc->symtab->filename, s->filename)) { Tcl_ListObjAppendElement (NULL, result_ptr->obj_ptr, Tcl_NewIntObj (b->number)); --------------070806030701000309020409--