From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13464 invoked by alias); 24 Apr 2013 21:30:34 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 13454 invoked by uid 89); 24 Apr 2013 21:30:34 -0000 X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.1 Received: from dub0-omc1-s31.dub0.hotmail.com (HELO dub0-omc1-s31.dub0.hotmail.com) (157.55.0.230) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 24 Apr 2013 21:30:33 +0000 Received: from DUB123-W33 ([157.55.0.238]) by dub0-omc1-s31.dub0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 24 Apr 2013 14:30:31 -0700 X-EIP: [FUbxDaYO5IKrfjq2FdVaLbSezSw7kaV/] Message-ID: From: Saurabh T To: "gdb@sourceware.org" Subject: Problem calling functions within gdb (version 7.5) Date: Wed, 24 Apr 2013 21:30:00 -0000 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2013-04/txt/msg00077.txt.bz2 Here's a simple C++ example: =A0 #include =A0 void fn(int n, const double (*x)[3]) { =A0 for (int i=3D0; i < n; i++) =A0=A0=A0 printf("%g %g %g\n", x[i][0], x[i][1], x[i][2]); } =A0 void fn2(int *k) { printf("%d\n", *k); } =A0 int main() { =A0 int n =3D 3; =A0 const double x[3][3] =3D {{1, 2, 3}, {3, 4, 5}, {5, 6, 7}}; =A0 fn(3, x); =A0 int *k =3D &n; =A0 fn2(k); =A0 return 0; } =A0 In gdb, if you put a breakpoint at the return 0 line, run until there, and = say: =A0 1. call fn(3, x) gdb says: Cannot resolve function fn to any overloaded instance This used to work with gdb 7.2. The function signature completely matches t= he arguments so I dont know what it's complaining about. =A0 2. print k Let's say this prints 0x7ffb24 call fn2(0x7ffb24) gdb again says: Cannot resolve function fn2 to any overloaded instance This also used to work with gdb 7.2. Here I can understand if promoting int= s to arbitrary pointers is no longer supported. =A0 Any thoughts as to whether these are bugs, or how I can get the behaviour I= want at least wrt case 1? =A0 Thanks.=20=09=09=20=09=20=20=20=09=09=20=20 >From gdb-return-42043-listarch-gdb=sources.redhat.com@sourceware.org Thu Apr 25 06:41:31 2013 Return-Path: Delivered-To: listarch-gdb@sources.redhat.com Received: (qmail 4152 invoked by alias); 25 Apr 2013 06:41:30 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Delivered-To: mailing list gdb@sourceware.org Received: (qmail 4141 invoked by uid 89); 25 Apr 2013 06:41:30 -0000 X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1 Received: from mail-bk0-f54.google.com (HELO mail-bk0-f54.google.com) (209.85.214.54) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 25 Apr 2013 06:41:29 +0000 Received: by mail-bk0-f54.google.com with SMTP id q11so1103858bkw.27 for ; Wed, 24 Apr 2013 23:41:27 -0700 (PDT) X-Received: by 10.205.75.3 with SMTP id yy3mr14279404bkb.80.1366872087083; Wed, 24 Apr 2013 23:41:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.205.83.204 with HTTP; Wed, 24 Apr 2013 23:40:46 -0700 (PDT) From: Hui Zhu Date: Thu, 25 Apr 2013 06:41:00 -0000 Message-ID: Subject: New format of 7.6 branch gdb/ChangeLog? To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2013-04/txt/msg00078.txt.bz2 Content-length: 490 2013-04-24 Hui Zhu PR gdb/15165 * breakpoint.c (dprintf_print_recreate): New. (save_breakpoints): Let it not save dprintf commands. (initialize_breakpoint_ops): Set dprintf_print_recreate. gdb/ 2013-04-19 Vladimir Kargov Pedro Alves * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to value contents. "gdb/" Is this a new format of Changelog? Do I need move changelog after it? Thanks, Hui