rinhizakura / mini-gdbstub Goto Github PK
View Code? Open in Web Editor NEWAn implementation of the GDB Remote Serial Protocol to help you adding debug mode on emulator
License: MIT License
An implementation of the GDB Remote Serial Protocol to help you adding debug mode on emulator
License: MIT License
C++20 introduces the __VA_OPT__
function macro, which is also available in GNU C and GNU C++. However, for older versions of clang, __VA_OPT__
might be absent. Tested on macOS Catalina:
cc -c -Iinclude -Wall -Wextra -MMD -Werror -O3 ./lib/conn.c -o /Users/apple/rv/rv32emu/build/mini-gdbstub//conn.o
./lib/conn.c:40:9: error: expected ')'
warn("Set sockopt fail.\n");
^
include/utils/log.h:21:28: note: expanded from macro 'warn'
strerror(errno) __VA_OPT__(, ) __VA_ARGS__)
^
./lib/conn.c:40:9: note: to match this '('
include/utils/log.h:20:11: note: expanded from macro 'warn'
__info(YELLOW "ERRNO: %s\n" NC format, \
^
./lib/conn.c:49:9: error: expected ')'
warn("Bind fail.\n");
^
We shall avoid such new features.
Reference: https://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html
Hi,
Thanks for your contribution, the tutorial is helpful for me. ๐
I read the introduction two weeks ago. However, that is dead now.
https://www.chciken.com/tlmboy/2022/04/03/gdb-z80.html
Will you publish the introduction in any other place? Thanks a lot!
While attempting to build latest rv32emu + mini-gdbstub on macOS Monterey, I got the following messages:
In file included from ./lib/gdbstub.c:7:
include/gdb_signal.h:1:9: error: 'GDB_SIGNAL' is used as a header guard here, followed by #define of a different macro [-Werror,-Wheader-guard]
#ifndef GDB_SIGNAL
^~~~~~~~~~
include/gdb_signal.h:2:9: note: 'GDG_SIGNAL' is defined here; did you mean 'GDB_SIGNAL'?
#define GDG_SIGNAL
^~~~~~~~~~
GDB_SIGNAL
1 error generated.
Replacing the use of GDB_SIGNAL
with #pragma once
would pass.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.