Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: asmwarrior <asmwarrior@gmail.com>
To: gdb@sourceware.org
Subject: [windows mingw]gdb cvs head build error in windows-nat.c
Date: Fri, 16 Dec 2011 14:17:00 -0000	[thread overview]
Message-ID: <4EEB53E4.3070207@gmail.com> (raw)

I build under MSYS+mingw
Here is the build error:


gcc -O0 -g -D__USE_MINGW_ACCESS   -I. -I../../gdb/gdb -I../../gdb/gdb/common -I.
./../gdb/gdb/config -DLOCALEDIR="\"/mingw/share/locale\"" -DHAVE_CONFIG_H -I../.
./gdb/gdb/../include/opcode -I../../gdb/gdb/../opcodes/.. -I../../gdb/gdb/../rea
dline/.. -I../bfd -I../../gdb/gdb/../bfd -I../../gdb/gdb/../include -I../libdecn
umber -I../../gdb/gdb/../libdecnumber  -I../../gdb/gdb/gnulib -Ignulib    -IE:/c
ode/python272/include -IE:/code/python272/include -Wall -Wdeclaration-after-stat
ement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wunused
-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wno-format -Werror -c
  -o dcache.o -MT dcache.o -MMD -MP -MF .deps/dcache.Tpo ../../gdb/gdb/dcache.c
../../gdb/gdb/windows-nat.c: In function 'init_windows_ops':
../../gdb/gdb/windows-nat.c:2517:26: error: 'cygwin_get_dr' undeclared (first us
e in this function)
../../gdb/gdb/windows-nat.c:2517:26: note: each undeclared identifier is reporte
d only once for each function it appears in
../../gdb/gdb/windows-nat.c:2519:29: error: 'cygwin_get_dr7' undeclared (first u
se in this function)
cc1.exe: warnings being treated as errors
../../gdb/gdb/windows-nat.c: At top level:
../../gdb/gdb/windows-nat.c:2654:1: error: 'cygwin_get_dr' defined but not used
../../gdb/gdb/windows-nat.c:2673:1: error: 'cygwin_get_dr7' defined but not used


So, I think it was caused by this:

2011-12-14  Pedro Alves
The change in windows-nat.c

gdb/windows-nat.c |   21 ++++++++++++++++++++-
  1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 20e3c67..97ed237 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -2494,8 +2494,9 @@ init_windows_ops (void)

    i386_dr_low.set_control = cygwin_set_dr7;
    i386_dr_low.set_addr = cygwin_set_dr;
-  i386_dr_low.reset_addr = NULL;
+  i386_dr_low.get_addr = cygwin_get_dr;
    i386_dr_low.get_status = cygwin_get_dr6;
+  i386_dr_low.get_control = cygwin_get_dr7;


any ideas?

asmwarrior
ollydbg from codeblocks' forum


             reply	other threads:[~2011-12-16 14:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-16 14:17 asmwarrior [this message]
2011-12-16 14:30 ` Eli Zaretskii
2011-12-16 14:35   ` asmwarrior
2011-12-16 14:51   ` Eli Zaretskii
2011-12-16 14:30 ` asmwarrior
2011-12-16 15:17   ` Pierre Muller
2011-12-16 16:16     ` Pedro Alves
2011-12-16 17:16     ` Pierre Muller
2011-12-16 17:26       ` Pedro Alves
2011-12-16 19:58         ` Pierre Muller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EEB53E4.3070207@gmail.com \
    --to=asmwarrior@gmail.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox