* [pushed] gdb: fix darwin-nat build
@ 2021-09-28 23:48 Simon Marchi
0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2021-09-28 23:48 UTC (permalink / raw)
To: gdb-patches
There are two errors of this kind:
CXX darwin-nat.o
/Users/smarchi/src/binutils-gdb/gdb/darwin-nat.c:1175:19: error: format specifies type 'unsigned long' but the argument has type 'ULONGEST' (aka 'unsigned long long') [-Werror,-Wformat]
ptid.pid (), ptid.tid ());
^~~~~~~~~~~
Fix them by using ptid_t's to_string method.
Change-Id: I52087d5f7ee0fc01ac8b3f87d4db0217cb0d7cc7
---
gdb/darwin-nat.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c
index 84558bfc1328..f7827b225180 100644
--- a/gdb/darwin-nat.c
+++ b/gdb/darwin-nat.c
@@ -906,8 +906,8 @@ darwin_nat_target::resume (ptid_t ptid, int step, enum gdb_signal signal)
int nsignal;
inferior_debug
- (2, _("darwin_resume: pid=%d, tid=0x%lx, step=%d, signal=%d\n"),
- ptid.pid (), ptid.tid (), step, signal);
+ (2, _("darwin_resume: ptid=%s, step=%d, signal=%d\n"),
+ ptid.to_string ().c_str (), step, signal);
if (signal == GDB_SIGNAL_0)
nsignal = 0;
@@ -1171,8 +1171,8 @@ darwin_nat_target::wait_1 (ptid_t ptid, struct target_waitstatus *status)
darwin_thread_t *thread;
inferior_debug
- (2, _("darwin_wait: waiting for a message pid=%d thread=%lx\n"),
- ptid.pid (), ptid.tid ());
+ (2, _("darwin_wait: waiting for a message ptid=%s thread=%lx\n"),
+ ptid.to_string ().c_str ());
/* Handle fake stop events at first. */
if (darwin_inf_fake_stop != NULL)
--
2.33.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-28 23:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-28 23:48 [pushed] gdb: fix darwin-nat build Simon Marchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).