From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4030 invoked by alias); 29 Sep 2002 15:41:09 -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 4022 invoked from network); 29 Sep 2002 15:41:06 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 29 Sep 2002 15:41:06 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id A0D813D88 for ; Sun, 29 Sep 2002 11:41:00 -0400 (EDT) Message-ID: <3D971F0C.2090807@redhat.com> Date: Sun, 29 Sep 2002 08:41:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020824 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [patch/5.3] No __FUNCTION__ Content-Type: multipart/mixed; boundary="------------000308090001040304070801" X-SW-Source: 2002-09/txt/msg00708.txt.bz2 This is a multi-part message in MIME format. --------------000308090001040304070801 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 156 I've committed the attached (with a hesatant ok from MarkK) (HEAD and branch). What GDB needs is something that works regardless of the compiler. Andrew --------------000308090001040304070801 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 2687 2002-09-29 Andrew Cagney * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of __FUNCTION__. * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with function name. (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto. (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto. (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto. (S_msg_sig_post_reply): Ditto. Index: gnu-nat.c =================================================================== RCS file: /cvs/src/src/gdb/gnu-nat.c,v retrieving revision 1.23 diff -u -r1.23 gnu-nat.c --- gnu-nat.c 26 Aug 2002 19:18:33 -0000 1.23 +++ gnu-nat.c 29 Sep 2002 15:23:37 -0000 @@ -1759,31 +1759,31 @@ error_t do_mach_notify_no_senders (mach_port_t notify, mach_port_mscount_t count) { - return ill_rpc (__FUNCTION__); + return ill_rpc ("do_mach_notify_no_senders"); } error_t do_mach_notify_port_deleted (mach_port_t notify, mach_port_t name) { - return ill_rpc (__FUNCTION__); + return ill_rpc ("do_mach_notify_port_deleted"); } error_t do_mach_notify_msg_accepted (mach_port_t notify, mach_port_t name) { - return ill_rpc (__FUNCTION__); + return ill_rpc ("do_mach_notify_msg_accepted"); } error_t do_mach_notify_port_destroyed (mach_port_t notify, mach_port_t name) { - return ill_rpc (__FUNCTION__); + return ill_rpc ("do_mach_notify_port_destroyed"); } error_t do_mach_notify_send_once (mach_port_t notify) { - return ill_rpc (__FUNCTION__); + return ill_rpc ("do_mach_notify_send_once"); } @@ -1845,13 +1845,13 @@ S_proc_setmsgport_reply (mach_port_t reply, error_t err, mach_port_t old_msg_port) { - return ill_rpc (__FUNCTION__); + return ill_rpc ("S_proc_setmsgport_reply"); } error_t S_proc_getmsgport_reply (mach_port_t reply, error_t err, mach_port_t msg_port) { - return ill_rpc (__FUNCTION__); + return ill_rpc ("S_proc_getmsgport_reply"); } @@ -1890,7 +1890,7 @@ error_t S_msg_sig_post_reply (mach_port_t reply, error_t err) { - return ill_rpc (__FUNCTION__); + return ill_rpc ("S_msg_sig_post_reply"); } Index: gnu-nat.h =================================================================== RCS file: /cvs/src/src/gdb/gnu-nat.h,v retrieving revision 1.2 diff -u -r1.2 gnu-nat.h --- gnu-nat.h 6 Mar 2001 08:21:07 -0000 1.2 +++ gnu-nat.h 29 Sep 2002 15:23:37 -0000 @@ -96,6 +96,6 @@ #define debug(msg, args...) \ do { if (gnu_debug_flag) \ - fprintf_unfiltered (gdb_stdlog, "%s: " msg "\r\n", __FUNCTION__ , ##args); } while (0) + fprintf_unfiltered (gdb_stdlog, "%s:%d: " msg "\r\n", __FILE__ , __LINE__ , ##args); } while (0) #endif /* __GNU_NAT_H__ */ --------------000308090001040304070801--