Listing 2. An Excerpt of gdbserial

/*
     * Call GDB routine to setup the exception
     * vectors for the debugger
     */
     set_debug_traps() ;
     /*    
      * Call the breakpoint() routine in GDB to start
      * the debugging session.
      */
    printk("Waiting for connection from remote")
    printk("gdb... ") ;
    breakpoint() ;
    gdb_null() ;

    printk("Connected.\n");