cgdb: upgrade 0.7.1 -> 0.8.0

0001-Avoid-use-of-mips-which-is-reserved-on-mips.patch
removed since it is inappropriate in 0.8.0

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
wangmy
2022-01-25 21:12:47 +08:00
committed by Khem Raj
parent ac3bf04b28
commit 46a98bfa3b
2 changed files with 2 additions and 72 deletions
@@ -1,67 +0,0 @@
From a3eba0fcee5e96ef47a6d3fac7196a1074f0dc17 Mon Sep 17 00:00:00 2001
From: Adrian Bunk <bunk@stusta.de>
Date: Wed, 30 Oct 2019 11:07:23 +0200
Subject: Avoid use of "mips" which is reserved on mips
Upstream-Status: Submitted [https://github.com/brasko/gdbwire/pull/9]
Signed-off-by: Adrian Bunk <bunk@stusta.de>
diff --git a/src/gdbwire_mi_parser.c b/src/gdbwire_mi_parser.c
index 3f6b563..24aa0cf 100644
--- a/lib/tgdb/gdbwire.c
+++ b/lib/tgdb/gdbwire.c
@@ -40,7 +40,7 @@ struct gdbwire_mi_parser {
/* The GDB/MI lexer state */
yyscan_t mils;
/* The GDB/MI push parser state */
- gdbwire_mi_pstate *mips;
+ gdbwire_mi_pstate *mipst;
/* The client parser callbacks */
struct gdbwire_mi_parser_callbacks callbacks;
};
@@ -71,8 +71,8 @@ gdbwire_mi_parser_create(struct gdbwire_mi_parser_callbacks callbacks)
}
/* Create a new push parser state instance */
- parser->mips = gdbwire_mi_pstate_new();
- if (!parser->mips) {
+ parser->mipst = gdbwire_mi_pstate_new();
+ if (!parser->mipst) {
gdbwire_mi_lex_destroy(parser->mils);
gdbwire_string_destroy(parser->buffer);
free(parser);
@@ -81,7 +81,7 @@ gdbwire_mi_parser_create(struct gdbwire_mi_parser_callbacks callbacks)
/* Ensure that the callbacks are non null */
if (!callbacks.gdbwire_mi_output_callback) {
- gdbwire_mi_pstate_delete(parser->mips);
+ gdbwire_mi_pstate_delete(parser->mipst);
gdbwire_mi_lex_destroy(parser->mils);
gdbwire_string_destroy(parser->buffer);
free(parser);
@@ -109,9 +109,9 @@ void gdbwire_mi_parser_destroy(struct gdbwire_mi_parser *parser)
}
/* Free the push parser instance */
- if (parser->mips) {
- gdbwire_mi_pstate_delete(parser->mips);
- parser->mips = NULL;
+ if (parser->mipst) {
+ gdbwire_mi_pstate_delete(parser->mipst);
+ parser->mipst = NULL;
}
free(parser);
@@ -162,7 +162,7 @@ gdbwire_mi_parser_parse_line(struct gdbwire_mi_parser *parser,
pattern = gdbwire_mi_lex(parser->mils);
if (pattern == 0)
break;
- mi_status = gdbwire_mi_push_parse(parser->mips, pattern, NULL,
+ mi_status = gdbwire_mi_push_parse(parser->mipst, pattern, NULL,
parser->mils, &output);
} while (mi_status == YYPUSH_MORE);
--
2.20.1
@@ -9,11 +9,8 @@ DEPENDS = "flex-native readline ncurses"
inherit autotools texinfo inherit autotools texinfo
SRC_URI = "http://cgdb.me/files/${BP}.tar.gz \ SRC_URI = "http://cgdb.me/files/${BP}.tar.gz"
file://0001-Avoid-use-of-mips-which-is-reserved-on-mips.patch \ SRC_URI[sha256sum] = "0d38b524d377257b106bad6d856d8ae3304140e1ee24085343e6ddf1b65811f1"
"
SRC_URI[md5sum] = "a104862ffd3145b076303992e9a3af26"
SRC_URI[sha256sum] = "bb723be58ec68cb59a598b8e24a31d10ef31e0e9c277a4de07b2f457fe7de198"
CACHED_CONFIGUREVARS = "ac_cv_file__dev_ptmx=yes ac_cv_rl_version=6.2 ac_cv_file__proc_self_status=yes" CACHED_CONFIGUREVARS = "ac_cv_file__dev_ptmx=yes ac_cv_rl_version=6.2 ac_cv_file__proc_self_status=yes"
EXTRA_OECONF = "--with-readline=${STAGING_LIBDIR} \ EXTRA_OECONF = "--with-readline=${STAGING_LIBDIR} \