.gdbinit

来自「CSB637 uCOS-II with Visual C」· GDBINIT 代码 · 共 50 行

GDBINIT
50
字号
#*********************************************************************************************************
#*                                               uC/TCP-IP
#*                                       The Embedded TCP/IP Suite
#*
#*                          (c) Copyright 2003-2005; Micrium, Inc.; Weston, FL
#*
#*                   All rights reserved.  Protected by international copyright laws.
#*                   Knowledge of the source code may not be used to write a similar
#*                   product.  This file may only be used in accordance with a license
#*                   and should not be redistributed in any way.
#*********************************************************************************************************

#*********************************************************************************************************
#*                                         DEBUG STARTUP SCRIPT
#*
#* Filename      : debug-gdb.cmd
#* Version       : V1.22
#* Programmer(s) : JDH
#*********************************************************************************************************

echo Setting up Micrium debugging environment...\n

dir .
set prompt arm-elf-gdb> 

# Set max number of complaints about incorrect symbols.
set complaints 1

# Set default output radix for printing of values.
set output-radix 16

# Set default input radix for entering numbers.
set input-radix 16

# This connects to OCDLibRemote default port (8888).
target remote 192.168.3.99:8888

# Increase the packet size to improve download speed.
set remote memory-write-packet-size 1024
set remote memory-write-packet-size fixed

# Load the program executable.
load

# Set a breakpoint at main().
b main

# Execute until main().
c

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?