Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Maxim Grigoriev <maxim@tensilica.com>
To: GDB Patches <gdb-patches@sourceware.org>,  csilvers@google.com
Subject: GDB build is broken, when HAVE_ZLIB_H is not defined.
Date: Mon, 21 Apr 2008 22:16:00 -0000	[thread overview]
Message-ID: <480D0394.8020404@hq.tensilica.com> (raw)

Hello, everybody,

Am I missing something here ?
My build is broken:

xtensa_dc232b-linux-uclibc-gcc -c -g -O2   -I. 
-I/home/maxim/GDB/CVS/src/gdb -I/home/maxim/GDB/CVS/src/gdb/config 
-DLOCALEDIR="\"/opt/local/maxim/LINUX_ROOT/maxim/native_gdb/share/locale\"" 
-DHAVE_CONFIG_H -I/home/maxim/GDB/CVS/src/gdb/../include/opcode 
-I/home/maxim/GDB/CVS/src/gdb/../readline/.. -I../bfd 
-I/home/maxim/GDB/CVS/src/gdb/../bfd 
-I/home/maxim/GDB/CVS/src/gdb/../include -I../libdecnumber 
-I/home/maxim/GDB/CVS/src/gdb/../libdecnumber -I./../intl 
-I/home/maxim/GDB/CVS/src/gdb/gnulib -Ignulib  -DMI_OUT=1  -Wall 
-Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral 
-Wno-pointer-sign -Wno-unused -Wno-switch -Wno-char-subscripts -Werror 
/home/maxim/GDB/CVS/src/gdb/dwarf2read.c
/home/maxim/GDB/CVS/src/gdb/dwarf2read.c: In function 
'zlib_decompress_section':
/home/maxim/GDB/CVS/src/gdb/dwarf2read.c:5301: error: 'abfd' undeclared 
(first use in this function)
/home/maxim/GDB/CVS/src/gdb/dwarf2read.c:5301: error: (Each undeclared 
identifier is reported only once
/home/maxim/GDB/CVS/src/gdb/dwarf2read.c:5301: error: for each function 
it appears in.)
make[2]: *** [dwarf2read.o] Error 1

                           * * * * *

in dwarf2read.c, should not it look like this :

static void
zlib_decompress_section (struct objfile *objfile, asection *sectp,
                         gdb_byte **outbuf, bfd_size_type *outsize)
{
  bfd *abfd = objfile->obfd;
#ifndef HAVE_ZLIB_H
  error (_("Support for zlib-compressed DWARF data (from '%s') "
           "is disabled in this copy of GDB"),
         bfd_get_filename (abfd));
#else
  bfd_size_type compressed_size = bfd_get_section_size (sectp);
. . . .

-- Maxim


             reply	other threads:[~2008-04-21 21:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-21 22:16 Maxim Grigoriev [this message]
2008-04-21 22:38 ` Craig Silverstein
2008-04-22  3:24   ` Daniel Jacobowitz
2008-04-22  1:35 ` Craig Silverstein

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=480D0394.8020404@hq.tensilica.com \
    --to=maxim@tensilica.com \
    --cc=csilvers@google.com \
    --cc=gdb-patches@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