Small fix to XRoar's GDB support

A place to discuss everything Dragon related that doesn't fall into the other categories.
Post Reply
sixxie
Posts: 1348
Joined: Fri Jul 18, 2008 8:36 am
Location: Hertfordshire
Contact:

Small fix to XRoar's GDB support

Post by sixxie »

GDB users curious as to why write watchpoints never triggered in XRoar unless there was also some sort of read watchpoint may like to update to the latest point release, 0.34.7

Bit of a brown paper bag one, that.
litwr
Posts: 17
Joined: Tue Oct 18, 2016 6:24 pm

Re: Small fix to XRoar's GDB support

Post by litwr »

I can't use gdb under Linux. :( Is there a way to build GDB-6x09? I have to use an EXE-file with Virtual Box. Thanks.
sixxie
Posts: 1348
Joined: Fri Jul 18, 2008 8:36 am
Location: Hertfordshire
Contact:

Re: Small fix to XRoar's GDB support

Post by sixxie »

Oh, strange, I used to have a (working!) git repo on my site, seems to be gone.

I'll have to find the latest local copy and re-push.

Either way it's stuck being based on GDB version 7.6, because its architecture changed a fair bit after that and I never put the time into redoing.
sixxie
Posts: 1348
Joined: Fri Jul 18, 2008 8:36 am
Location: Hertfordshire
Contact:

Re: Small fix to XRoar's GDB support

Post by sixxie »

Ok the git repo is there, I just hadn't pushed out any branch with the name stated on the web page...

If you follow the instructions at http://www.6809.org.uk/dragon/m6809-gdb.shtml, you should get a working native m6809-gdb.
litwr
Posts: 17
Joined: Tue Oct 18, 2016 6:24 pm

Re: Small fix to XRoar's GDB support

Post by litwr »

Code: Select all

gcc -g -O2   -I. -I. -I./common -I./config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../opcodes/.. -I./../readline/.. -I../bfd -I./../bfd -I./../include -I../libdecnumber -I./../libdecnumber  -I./gnulib/import -Ibuild-gnulib/import   -DTUI=1  -I/usr/include/python2.7 -I/usr/include/python2.7 -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement -Wempty-body  -c -o gdb.o -MT gdb.o -MMD -MP -MF .deps/gdb.Tpo gdb.c
In file included from gdb.c:19:0:
defs.h:105:17: fatal error: bfd.h: No such file or directory
 #include "bfd.h"
                 ^
compilation terminated.
Makefile:968: recipe for target 'gdb.o' failed
make: *** [gdb.o] Error 1
:(
sixxie
Posts: 1348
Joined: Fri Jul 18, 2008 8:36 am
Location: Hertfordshire
Contact:

Re: Small fix to XRoar's GDB support

Post by sixxie »

Odd, working here, from a clean checkout.

bfd/bfd.h (from the top level) is a generated header file from earlier in the build process.

If you type (again from the top level):

Code: Select all

make -C bfd bfd.h
What's the output?

If nothing, try rm bfd/stmp-bfd-h first...
litwr
Posts: 17
Joined: Tue Oct 18, 2016 6:24 pm

Re: Small fix to XRoar's GDB support

Post by litwr »

Wow! It works! :) The problem was in the command cd gdb - it must be cd binutils-gdb.
sixxie
Posts: 1348
Joined: Fri Jul 18, 2008 8:36 am
Location: Hertfordshire
Contact:

Re: Small fix to XRoar's GDB support

Post by sixxie »

Whoooops! Build instructions left over from using a different git repo ;)

I'll update!
Post Reply