Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH c++ 1/5] lm32: Add (const gdb_byte *) cast
@ 2015-10-11  4:37 Simon Marchi
  2015-10-11  4:37 ` [PATCH c++ 3/5] mep: Add cast for int to enum conversion Simon Marchi
                   ` (6 more replies)
  0 siblings, 7 replies; 22+ messages in thread
From: Simon Marchi @ 2015-10-11  4:37 UTC (permalink / raw)
  To: gdb-patches; +Cc: Simon Marchi

There might be a cleaner sequence of function calls to do what is done
here (I don't know), but since I don't want to risk breaking anything,
it's safer to just add the required cast.

gdb/ChangeLog:

	* lm32-tdep.c (lm32_push_dummy_call): Add cast.
---
 gdb/lm32-tdep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/lm32-tdep.c b/gdb/lm32-tdep.c
index 25a7e1e..a0defad 100644
--- a/gdb/lm32-tdep.c
+++ b/gdb/lm32-tdep.c
@@ -289,7 +289,7 @@ lm32_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
 	regcache_cooked_write_unsigned (regcache, first_arg_reg + i, val);
       else
 	{
-	  write_memory (sp, (void *) &val, TYPE_LENGTH (arg_type));
+	  write_memory (sp, (const gdb_byte *) &val, TYPE_LENGTH (arg_type));
 	  sp -= 4;
 	}
     }
-- 
2.6.1


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

end of thread, other threads:[~2015-10-22 13:51 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-11  4:37 [PATCH c++ 1/5] lm32: Add (const gdb_byte *) cast Simon Marchi
2015-10-11  4:37 ` [PATCH c++ 3/5] mep: Add cast for int to enum conversion Simon Marchi
2015-10-12 10:35   ` Yao Qi
2015-10-12 16:43     ` Simon Marchi
2015-10-11  4:37 ` [PATCH c++ 2/5] m32c: Split m32c_move_reg_t in read/write variants Simon Marchi
2015-10-12 10:47   ` Yao Qi
2015-10-12 16:42     ` Simon Marchi
2015-10-11  4:37 ` [PATCH c++ 4/5] mips: fix void*/gdb_byte* compilation errors Simon Marchi
2015-10-22 13:13   ` Pedro Alves
2015-10-11  4:44 ` [PATCH c++ 5/5] mips: Add cast for int to enum conversion Simon Marchi
2015-10-12 10:54   ` Pedro Alves
2015-10-12 16:28     ` Simon Marchi
2015-10-12 10:52 ` [PATCH c++ 1/5] lm32: Add (const gdb_byte *) cast Yao Qi
2015-10-12 11:10 ` Pedro Alves
2015-10-12 12:18   ` Jon Beniston
2015-10-13 17:14   ` Simon Marchi
2015-10-13 17:32     ` Pedro Alves
2015-10-13 17:37       ` Simon Marchi
2015-10-22  9:59 ` Simon Marchi
2015-10-22 13:34   ` Pedro Alves
2015-10-22 13:39     ` Simon Marchi
2015-10-22 15:21   ` Simon Marchi

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