Changeset ffdc659 in rtems


Ignore:
Timestamp:
Mar 8, 2002, 4:26:03 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
2f89140
Parents:
8264d23
Message:

2002-03-05 Greg Menke <gregory.menke@…>

  • startup/gdb-support.c: Added calls into the mips-support gdb stub for configuring the memory regions. Any bsp that wants to use the gdbstub will need to do something similar.
  • startup/Makefile.am: Added shared/gdbstub directory to include path.
Location:
c/src/lib/libbsp/mips/genmongoosev
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/mips/genmongoosev/ChangeLog

    r8264d23 rffdc659  
     12002-03-05      Greg Menke <gregory.menke@gsfc.nasa.gov>
     2
     3        * startup/gdb-support.c: Added calls into the mips-support gdb stub
     4        for configuring the memory regions.  Any bsp that wants to use the
     5        gdbstub will need to do something similar.
     6        * startup/Makefile.am: Added shared/gdbstub directory to include path.
     7
    182002-02-27      Greg Menke <gregory.menke@gsfc.nasa.gov>
    29
  • c/src/lib/libbsp/mips/genmongoosev/startup/Makefile.am

    r8264d23 rffdc659  
    2323#
    2424
     25AM_CPPFLAGS += -I @srcdir@/../../shared/gdbstub
     26
    2527$(PGM): $(OBJS)
    2628        $(make-rel)
  • c/src/lib/libbsp/mips/genmongoosev/startup/gdb-support.c

    r8264d23 rffdc659  
    1515#include <rtems/bspIo.h>
    1616#include <libcpu/mongoose-v.h>
     17#include "gdb_if.h"
    1718
    1819#include <rtems/libio.h>
     
    3738
    3839
    39 extern void mips_gdb_stub_install(void);
     40static int debugUartEnabled = 0;
    4041
    4142
    42 static int debugUartEnabled = 0;
    4343
    4444
     
    6262      return -1;
    6363   }
     64   printf("gdbstub: UART 2 configured for 19200N82\n");
    6465
    6566   debugUartEnabled  = -1;
    6667
    6768   /* set up vectoring for gdb */
    68    mips_gdb_stub_install();
     69   mips_gdb_stub_install(-1);
    6970
    70    printf("gdbstub: Remote GDB stub listening on UART 2 at 19200N82\n");
     71   /*
     72      this is a rough approximation of our memory map.  Yours is
     73      probably different.  It only needs to be sufficient for the stub
     74      to know what it can and can't do and where.
     75   */
     76   gdbstub_add_memsegment(0         , 0x8001ffff, MEMOPT_READABLE );
     77   gdbstub_add_memsegment(0x80020000, 0x80afffff, MEMOPT_READABLE | MEMOPT_WRITEABLE );
     78   gdbstub_add_memsegment(0x80b00000, 0x814fffff, MEMOPT_READABLE );
     79   gdbstub_add_memsegment(0x81500000, 0x81ffffff, MEMOPT_READABLE | MEMOPT_WRITEABLE );
     80
    7181
    7282   if( breakoninit )
    7383   {
     84      printf("gdbstub: GDB stub entered, connect host debugger now\n");
    7485      /*
    7586         break to gdb.  We'll wait there for the operator to get their gdb
     
    7788      */
    7889      mips_break(0);
     90      printf("gdbstub: User code running\n");
    7991   }
    80 
    81    printf("gdbstub: User code running\n");
     92   else
     93      printf("gdbstub: GDB stub ready for exceptions\n");
    8294
    8395   return RTEMS_SUCCESSFUL;
     
    114126}
    115127
     128
     129
     130
     131/*
     132   {
     133      * initialize hardware pc and data breakpoints to quiet state*
     134      unsigned32 dcic, reg, mask;
     135
     136      reg = 0xffffffff;
     137      mask = 0xffffffff;
     138
     139      mips_set_bpcrm( reg, mask );
     140      mips_set_bdarm( reg, mask );
     141
     142      mips_get_dcic( dcic );
     143      * configure dcic for trapping, user & kernel mode, PC traps and enable it *
     144      dcic = DCIC_TR | DCIC_UD | DCIC_KD | DCIC_PCE | DCIC_DE;
     145      * dcic = DCIC_UD | DCIC_KD | DCIC_PCE | DCIC_DE; *
     146      mips_set_dcic( dcic );
     147
     148      mips_get_bpcrm( reg, mask );
     149      mips_get_dcic( dcic );
     150      * printf("bpc is %08X, bpc_mask is %08X, dcic is now %08X\n", reg, mask, dcic ); *
     151   }
     152*/
     153
Note: See TracChangeset for help on using the changeset viewer.