From: Andrew Cagney Date: Sun, 29 Sep 2002 15:27:10 +0000 (+0000) Subject: 2002-09-29 Andrew Cagney X-Git-Tag: gdb_5_3-2002-12-12-release~137 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a60a5fb7adc8bcd721ef541805a6949d96348d3;p=thirdparty%2Fbinutils-gdb.git 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 46755aea694..36e896ad9ee 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,14 @@ +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. + 2002-09-28 Andrew Cagney Import from mainline: diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index 59aad5dd7f3..e332dba3f3d 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -1759,31 +1759,31 @@ ill_rpc (char *fun) 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 @@ error_t 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 @@ S_msg_sig_post_untraced_reply (mach_port_t reply, error_t err) 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"); } diff --git a/gdb/gnu-nat.h b/gdb/gnu-nat.h index cc430835f2c..bcdfe6e7779 100644 --- a/gdb/gnu-nat.h +++ b/gdb/gnu-nat.h @@ -96,6 +96,6 @@ extern int gnu_debug_flag; #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__ */