This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[ob] Warning fixes for avr
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sourceware dot org
- Date: Sat, 21 Jan 2006 17:26:08 -0500
- Subject: [ob] Warning fixes for avr
I've checked in the attached, which will allow an avr-elf cross
debugger to build with -Werror.
--
Daniel Jacobowitz
CodeSourcery
2006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
* avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address)
(avr_extract_return_value, avr_frame_prev_register): Use gdb_byte.
Index: avr-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/avr-tdep.c,v
retrieving revision 1.88
diff -u -p -r1.88 avr-tdep.c
--- avr-tdep.c 17 Dec 2005 22:33:59 -0000 1.88
+++ avr-tdep.c 21 Jan 2006 22:11:16 -0000
@@ -279,7 +279,7 @@ avr_convert_saddr_to_raw (CORE_ADDR x)
/* Convert from address to pointer and vice-versa. */
static void
-avr_address_to_pointer (struct type *type, void *buf, CORE_ADDR addr)
+avr_address_to_pointer (struct type *type, gdb_byte *buf, CORE_ADDR addr)
{
/* Is it a code address? */
if (TYPE_CODE (TYPE_TARGET_TYPE (type)) == TYPE_CODE_FUNC
@@ -297,7 +297,7 @@ avr_address_to_pointer (struct type *typ
}
static CORE_ADDR
-avr_pointer_to_address (struct type *type, const void *buf)
+avr_pointer_to_address (struct type *type, const gdb_byte *buf)
{
CORE_ADDR addr = extract_unsigned_integer (buf, TYPE_LENGTH (type));
@@ -823,7 +823,7 @@ avr_breakpoint_from_pc (CORE_ADDR * pcpt
static void
avr_extract_return_value (struct type *type, struct regcache *regcache,
- void *valbuf)
+ gdb_byte *valbuf)
{
ULONGEST r24, r25;
ULONGEST c;
@@ -975,7 +975,7 @@ avr_frame_prev_register (struct frame_in
void **this_prologue_cache,
int regnum, int *optimizedp,
enum lval_type *lvalp, CORE_ADDR *addrp,
- int *realnump, void *bufferp)
+ int *realnump, gdb_byte *bufferp)
{
struct avr_unwind_cache *info
= avr_frame_unwind_cache (next_frame, this_prologue_cache);