Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] gdbserver: Fix build on MIPS
@ 2025-01-16  1:10 Sergio Durigan Junior
  2025-01-16  2:26 ` Simon Marchi
  0 siblings, 1 reply; 7+ messages in thread
From: Sergio Durigan Junior @ 2025-01-16  1:10 UTC (permalink / raw)
  To: GDB Patches; +Cc: Simon Marchi, Sergio Durigan Junior

Commit 3470a0e144df6c01f8479fa649f43aa907936e7e inadvertently broke
the build on MIPS because it's passing a non-existent "pid" argument
to "proc->for_each_thread".  This commit fixes the problem by removing
the argument from the call.

Signed-off-by: Sergio Durigan Junior <sergiodj@sergiodj.net>
---
 gdbserver/linux-mips-low.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdbserver/linux-mips-low.cc b/gdbserver/linux-mips-low.cc
index 98733709fa3..fafcdefbb06 100644
--- a/gdbserver/linux-mips-low.cc
+++ b/gdbserver/linux-mips-low.cc
@@ -623,7 +623,7 @@ mips_target::low_remove_point (raw_bkpt_type type, CORE_ADDR addr,
 				  &priv->watch_mirror);
 
   /* Only update the threads of this process.  */
-  proc->for_each_thread (pid, update_watch_registers_callback);
+  proc->for_each_thread (update_watch_registers_callback);
 
   return 0;
 }
-- 
2.45.2


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-01-17  2:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-16  1:10 [PATCH] gdbserver: Fix build on MIPS Sergio Durigan Junior
2025-01-16  2:26 ` Simon Marchi
2025-01-16  4:07   ` Sergio Durigan Junior
2025-01-16  4:53     ` Joel Brobecker
2025-01-16 16:28       ` Sergio Durigan Junior
2025-01-17  2:35         ` Joel Brobecker
2025-01-17  2:50           ` Sergio Durigan Junior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox