-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a patch to gdb that fixes compilation with gcc 10
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From e90e9ad97190c3e187285682d905582503f4a42a Mon Sep 17 00:00:00 2001 | ||
From: Tom Tromey <[email protected]> | ||
Date: Wed, 5 Dec 2012 14:56:18 +0000 | ||
Subject: [PATCH] PR gdb/14917: * server.h (current_insn_ptr, | ||
emit_error): Declare 'extern'. | ||
|
||
--- | ||
gdb/gdbserver/ChangeLog | 5 +++++ | ||
gdb/gdbserver/server.h | 4 ++-- | ||
2 files changed, 7 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h | ||
index e93ad00c1d1..929819e55bc 100644 | ||
--- a/gdb/gdbserver/server.h | ||
+++ b/gdb/gdbserver/server.h | ||
@@ -523,8 +523,8 @@ CORE_ADDR get_get_tsv_func_addr (void); | ||
function in the IPA. */ | ||
CORE_ADDR get_set_tsv_func_addr (void); | ||
|
||
-CORE_ADDR current_insn_ptr; | ||
-int emit_error; | ||
+extern CORE_ADDR current_insn_ptr; | ||
+extern int emit_error; | ||
|
||
/* Version information, from version.c. */ | ||
extern const char version[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters