Anyone having problems building avr-gdb?

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So I was working my way through the latest build script (porting to Mac OS X on the way) and I have run into some problems with avr-gdb. I know that the build script doesn't include gdb but I am extending it to build 'my' tool set. Anyway, on to the problem.

The FreeBSD ports pages seems to be the best place to get patches for software. I was applying the four patches for avr-gdb and ran into problems with patch-gdb::symfile.c. Here is the patch verbatim:

Index: gdb/symfile.c
===================================================================
RCS file: /cvs/src/src/gdb/symfile.c,v
retrieving revision 1.143
diff -u -p -p -r1.143 symfile.c
--- symfile.c	1 Oct 2004 10:23:09 -0000	1.143
+++ symfile.c	19 Oct 2004 20:07:58 -0000
@@ -1405,7 +1405,7 @@ load_section_callback (bfd *abfd, asecti
 	  struct cleanup *old_chain;
 	  CORE_ADDR lma = bfd_section_lma (abfd, asec) + args->load_offset;
 	  bfd_size_type block_size;
-	  int err;
+	  int err = 0;
 	  const char *sect_name = bfd_get_section_name (abfd, asec);
 	  bfd_size_type sent;

The patch requires changing to the gdb directory in the source tree or adding 'gdb/' in front of 'symfile.c' on lines six and seven.

This patch is more than two years old. I would have thought this would have been discovered in the FreeBSD builds.

Am I missing something here or is this a bug that needs to be reported.

You can have my mac when you pry my cold dead fingers off of it.

Kevin McEnhill -- mcenhillk@gmail.com