aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorВладимир Мартьянов <vilgeforce@gmail.com>2019-03-17 12:51:01 +0300
committerSimon Marchi <simon.marchi@polymtl.ca>2019-03-17 14:48:59 -0400
commitd4cbef22ba406707a4fcb30a7a57308447626f14 (patch)
tree2b0c2d6a2248f0c2a0c76f7ed3ac7dcb2091df23 /gdb
parentfce4c071610c0d01b70b172ee538e831023c1c2f (diff)
downloadgdb-d4cbef22ba406707a4fcb30a7a57308447626f14.zip
gdb-d4cbef22ba406707a4fcb30a7a57308447626f14.tar.gz
gdb-d4cbef22ba406707a4fcb30a7a57308447626f14.tar.bz2
Remove unused variable from windows_make_so
There is unused variable text_vma in function windows_make_so. This leads to build error on Windows using Cygwin. gdb/ChangeLog: 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com> PR gdb/24350 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/windows-nat.c1
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 478ff0a..cb7f6b0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
+ PR gdb/24350
+ * windows-nat.c (windows_make_so): Remove unused text_vma variable.
+
+2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
+
PR gdb/24351
* windows-nat.c (display_selector): Fix format specifiers.
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index c8acadd..d38ade58 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -778,7 +778,6 @@ windows_make_so (const char *name, LPVOID load_addr)
if (p >= so->so_name && strcasecmp (p, "/cygwin1.dll") == 0)
{
asection *text = NULL;
- CORE_ADDR text_vma;
gdb_bfd_ref_ptr abfd (gdb_bfd_open (so->so_name, "pei-i386", -1));