Page 1 of 1
Small fix to XRoar's GDB support
Posted: Mon Jan 02, 2017 12:53 pm
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.
Re: Small fix to XRoar's GDB support
Posted: Tue Jan 03, 2017 4:26 pm
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.
Re: Small fix to XRoar's GDB support
Posted: Tue Jan 03, 2017 5:37 pm
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.
Re: Small fix to XRoar's GDB support
Posted: Tue Jan 03, 2017 11:28 pm
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.
Re: Small fix to XRoar's GDB support
Posted: Wed Jan 04, 2017 8:28 pm
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
Re: Small fix to XRoar's GDB support
Posted: Thu Jan 05, 2017 8:29 am
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):
What's the output?
If nothing, try
rm bfd/stmp-bfd-h first...
Re: Small fix to XRoar's GDB support
Posted: Thu Jan 05, 2017 2:43 pm
by litwr
Wow! It works!
The problem was in the command
cd gdb - it must be
cd binutils-gdb.
Re: Small fix to XRoar's GDB support
Posted: Thu Jan 05, 2017 3:51 pm
by sixxie
Whoooops! Build instructions left over from using a different git repo
I'll update!