? Makefile ? Makefile.in ? aclocal.m4 ? autom4te.cache ? config.log ? config.status ? configure ? depcomp ? docpatch.diff ? install-sh ? missing ? mkinstalldirs ? simulavr-disp.1 ? simulavr.1 ? simulavr.spec ? doc/Makefile ? doc/Makefile.in ? doc/doxygen.config ? doc/html ? doc/mdate-sh ? doc/simulavr.info ? doc/stamp-vti ? doc/version.texi ? regress/Makefile ? regress/Makefile.in ? regress/regress.py ? regress/modules/Makefile ? regress/test_opcodes/Makefile ? src/.deps ? src/Makefile ? src/Makefile.in ? src/config-h.in ? src/config.h ? src/dtest ? src/simulavr ? src/stamp-h1 ? src/disp/.deps ? src/disp/Makefile ? src/disp/Makefile.in ? src/disp/simulavr-disp ? src/disp-vcd/.deps ? src/disp-vcd/Makefile ? src/disp-vcd/Makefile.in ? src/disp-vcd/config_parser.c ? src/disp-vcd/config_parser.h ? src/disp-vcd/config_scanner.c ? src/disp-vcd/simulavr-vcd ? src/getopt/.deps ? src/getopt/Makefile ? src/getopt/Makefile.in ? test_asm/Makefile ? test_asm/Makefile.in ? test_asm/test_8515/Makefile ? test_asm/test_8515/Makefile.in ? test_asm/test_8515/test_blink ? test_asm/test_8515/test_blink.bin ? test_asm/test_8515/test_blink.elf ? test_asm/test_8515/test_blink.hex ? test_asm/test_8515/test_blink.lst ? test_asm/test_8515/test_cntr ? test_asm/test_8515/test_cntr.bin ? test_asm/test_8515/test_cntr.elf ? test_asm/test_8515/test_cntr.hex ? test_asm/test_8515/test_cntr.lst ? test_asm/test_8515/test_eeprom ? test_asm/test_8515/test_eeprom.bin ? test_asm/test_8515/test_eeprom.elf ? test_asm/test_8515/test_eeprom.hex ? test_asm/test_8515/test_eeprom.lst ? test_asm/test_8515/test_port ? test_asm/test_8515/test_port.bin ? test_asm/test_8515/test_port.elf ? test_asm/test_8515/test_port.hex ? test_asm/test_8515/test_port.lst ? test_asm/test_8515/test_stack ? test_asm/test_8515/test_stack.bin ? test_asm/test_8515/test_stack.elf ? test_asm/test_8515/test_stack.hex ? test_asm/test_8515/test_stack.lst ? test_asm/test_8515/test_toie0 ? test_asm/test_8515/test_toie0.bin ? test_asm/test_8515/test_toie0.elf ? test_asm/test_8515/test_toie0.hex ? test_asm/test_8515/test_toie0.lst ? test_asm/test_8515/test_toie0_2 ? test_asm/test_8515/test_toie0_2.bin ? test_asm/test_8515/test_toie0_2.elf ? test_asm/test_8515/test_toie0_2.hex ? test_asm/test_8515/test_toie0_2.lst ? test_asm/test_8515/test_wdr ? test_asm/test_8515/test_wdr.bin ? test_asm/test_8515/test_wdr.elf ? test_asm/test_8515/test_wdr.hex ? test_asm/test_8515/test_wdr.lst ? test_asm/test_8515/test_wdr2 ? test_asm/test_8515/test_wdr2.bin ? test_asm/test_8515/test_wdr2.elf ? test_asm/test_8515/test_wdr2.hex ? test_asm/test_8515/test_wdr2.lst ? test_c/.deps ? test_c/Makefile ? test_c/Makefile.in ? test_c/deep_frame ? test_c/deep_frame.bin ? test_c/deep_frame.elf ? test_c/deep_frame.hex ? test_c/deep_frame.lst ? test_c/demo ? test_c/demo.bin ? test_c/demo.elf ? test_c/demo.hex ? test_c/demo.lst ? test_c/demo_kr ? test_c/demo_kr.bin ? test_c/demo_kr.elf ? test_c/demo_kr.hex ? test_c/demo_kr.lst Index: doc/simulavr.texi =================================================================== RCS file: /cvsroot/simulavr/simulavr/doc/simulavr.texi,v retrieving revision 1.20 diff -u -r1.20 simulavr.texi --- doc/simulavr.texi 13 Aug 2003 18:47:30 -0000 1.20 +++ doc/simulavr.texi 28 Aug 2003 12:20:22 -0000 @@ -219,32 +219,32 @@ Print out messages for debugging the gdb remote serial protocol interface. @cindex @code{--port} address@hidden address@hidden address@hidden --port @var{} @itemx -p Listen for gdb connection on TCP port. If not specified, a default will be used. Run @samp{simulavr --help} to see what the default is. This option is ignored if the @option{--gdbserver} is not specified. address@hidden @address@hidden address@hidden address@hidden address@hidden @code{--device} address@hidden --device @var{} @itemx -d Specify device type. The device types available for use with a specific -version of simulavr can be obtained using the @option{--help} option. +version of simulavr can be obtained using the @option{--list-devices} option. address@hidden @address@hidden address@hidden address@hidden address@hidden @code{--eeprom-image} address@hidden --eeprom-image @var{} @itemx -e Specify an optional eeprom image file to be loaded into the device's eeprom memory space. address@hidden @address@hidden address@hidden address@hidden address@hidden @code{--eeprom-type} address@hidden --eeprom-type @var{} @itemx -E Specify the type of the eeprom image file. If not specified, the default is binary. address@hidden @address@hidden address@hidden address@hidden address@hidden @code{--flash-type} address@hidden --flash-type @var{} @itemx -F Specify the type of the flash image file. If not specified, the default is binary. @@ -255,7 +255,7 @@ Prints a list of supported devices to stdout and exits. @cindex @code{--disp-prog} address@hidden address@hidden address@hidden --disp-prog @var{} @itemx -P Specify a program to be used to display register and memory information in real time as a child process. The display program can also be @@ -371,8 +371,8 @@ @c GDB Hints @c @menu -* GDB Hints:: -* Building GDB:: +* GDB Hints:: +* Building GDB:: @end menu @node GDB Hints, Building GDB, Using with GDB, Using with GDB @@ -401,7 +401,7 @@ #echo (gdb) set debug remote 1\n #set debug remote 1 -## If you don't want specify the program to debug when invoking gdb, +## If you don't want specify the program to debug when invoking gdb, ## you can tell gdb to read it in here. The file should be an elf file ## compiled with debugging information (-g for C files and -gstabs for ## asm files). @@ -442,12 +442,28 @@ @c @node Building GDB, , GDB Hints, Using with GDB @comment node-name, next, previous, up address@hidden Patching GDB for AVR address@hidden Building GDB for AVR @cindex gdb, building @cindex avr-gdb In order to use simulavr as a backend to gdb, you must build a special -AVR patched version of gdb. The source code for simulavr contains the +AVR version of gdb. All gdb versions after address@hidden officially +support the AVR target. You don't have to apply any patches to gdb +unless you want to use an gdb version before @b{5.2.1}. You can just +configure gdb with the @code{--target=avr} option. +For example you can use this build procedure: + address@hidden address@hidden +$ ./configure --target=avr --program-prefix=avr- +$ make +$ su +$ make install +$ exit address@hidden cartouche address@hidden example + +The source code for simulavr contains the needed patches and instructions for patching and building avr-gdb on a Unix system. @@ -567,12 +583,13 @@ @cindex bugs @cindex problems -If you find a bug in simulavr, please send electronic mail address@hidden address@hidden@email{Simulavr-devel@@mail.freesoftware.fsf.org}}. Include the +If you find a bug in simulavr, please send electronic mail to address@hidden@email{simulavr-devel@@nongnu.org}}. Include the version number, which you can find by running @address@hidden --version}}. Also include in your message the output that simulavr produced, a simple AVR program which reproduces the bug, and the -output you expected. +output you expected. If you are using avr-gdb also include the +version number reported by @address@hidden --version}} If you have other questions, comments or suggestions about simulavr, contact me via electronic mail at the above address. Index: src/main.c =================================================================== RCS file: /cvsroot/simulavr/simulavr/src/main.c,v retrieving revision 1.31 diff -u -r1.31 main.c --- src/main.c 2 Jul 2003 16:21:05 -0000 1.31 +++ src/main.c 28 Aug 2003 12:21:50 -0000 @@ -131,13 +131,13 @@ " -v, --version : Print out the version number and exit\n" " -g, --gdbserver : Run as a gdbserver process\n" " -G, --gdb-debug : Print out debug messages for gdbserver\n" - " -p, --port= : Listen for gdb connection on TCP port\n" - " -d, --device= : Specify device type\n" - " -e, --eeprom-image= : Specify an eeprom image file\n" - " -E, --eeprom-type= : Specify the type of the eeprom image file\n" - " -F, --flash-type= : Specify the type of the flash image file\n" + " -p, --port : Listen for gdb connection on TCP port\n" + " -d, --device : Specify device type\n" + " -e, --eeprom-image : Specify an eeprom image file\n" + " -E, --eeprom-type : Specify the type of the eeprom image file\n" + " -F, --flash-type : Specify the type of the flash image file\n" " -L, --list-devices : Print supported devices to stdout and exit\n" - " -P, --disp-prog= : Display register and memory info with prog\n" + " -P, --disp-prog : Display register and memory info with prog\n" " -X, --without-xterm : Don't start disp prog in an xterm\n" " -C, --core-dump : Dump a core memory image to file on exit\n" "\n"