NetBurner 3.5.0
PDF Version
 
GDB Stub (Remote Debugging)

GDB Stub functions. More...

Stub Initialization functions

void InitGDBStub (int port, int baudrate)
 Start the GDB stub and then immediately stop at a break point This function will start the GDB stub, and will stop immediately at a breakpoint. This function is best used during development to stop the system from executing questionable code at startup. It is also useful to control the system execution to debug startup and initialization code.
 
void InitGDBStubNoBreak (int port, int baudrate)
 Start the GDB stub and continue without stopping This function will start the GDB stub, and continue with normal program execution. This function is best used to debug a program that is operating correctly and has intermitant bugs or anomallies. The program will run as normal until you connect the debugger. Thus you can operate the program until one needs to debug it.
 

Detailed Description

GDB Stub functions.

#include< gdbstub.h >

This module provides code for operating a serial GDB stub. This is used to debug programs running on a NetBurner system. More information can be found in ../nburn/docs/gdb/GDB-Gettingstarted

Function Documentation

◆ InitGDBStub()

void InitGDBStub ( int port,
int baudrate )

#include <gdbstub.h>

Start the GDB stub and then immediately stop at a break point This function will start the GDB stub, and will stop immediately at a breakpoint. This function is best used during development to stop the system from executing questionable code at startup. It is also useful to control the system execution to debug startup and initialization code.

Parameters
portThe serial port to use this can be 0 or 1 coresponding to uart 0 or uart 1
baudrateThe baud rate to use on the port.
See also
InitGDBStubNoBreak

◆ InitGDBStubNoBreak()

void InitGDBStubNoBreak ( int port,
int baudrate )

#include <gdbstub.h>

Start the GDB stub and continue without stopping This function will start the GDB stub, and continue with normal program execution. This function is best used to debug a program that is operating correctly and has intermitant bugs or anomallies. The program will run as normal until you connect the debugger. Thus you can operate the program until one needs to debug it.

Parameters
portThe serial port to use this can be 0 or 1 coresponding to uart 0 or uart 1
baudrateThe baud rate to use on the port.
See also
InitGDBStub