🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #1075

some compile errors fo gdb-7.0.1

#1075
From: Harald Koenig
Date: Mon, 15 Feb 2010 14:16
84 lines
4878 bytes
--3MwIy2ne0vdjdPXF
Content-Disposition: inline
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi,

trying to compile gdb-7.0.1 on HP-UX, the hp cc complains about some problems in
mi-main.c and breakpoint.c symfile.c

       cc: "/soft/os/gdb/gdb-7.0.1/gdb-7.0.1/gdb/mi/mi-main.c", line 176: error 1610: Attempting to return value from function of type void.
       cc: "/soft/os/gdb/gdb-7.0.1/gdb-7.0.1/gdb/breakpoint.c", line 8275: error 1000: Unexpected symbol: "}".
       cc: "/soft/os/gdb/gdb-7.0.1/gdb-7.0.1/gdb/symfile.c", line 4036: error 1649: Illegal integer-pointer combination for >.

obvious patches attached...



Harald Koenig
-- 
"I hope to die                                      ___       _____
before I *have* to use Microsoft Word.",           0--,|    /OOOOOOO\
Donald E. Knuth, 02-Oct-2001 in Tuebingen.        <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig                                          \/\/\/\/\/\/\/\/\/
science+computing ag                                    //  /     \\  \
koenig@science-computing.de                            ^^^^^       ^^^^^
-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier, 
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Michel Lepert
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 


--3MwIy2ne0vdjdPXF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=gdb-701-hpux-patches

--- /tmp/mi-main.c	2010-02-15 14:52:24.000000000 +0100
+++ /soft/os/gdb/gdb-7.0.1/gdb-7.0.1/gdb/mi/mi-main.c	2010-02-15 14:51:17.000000000 +0100
@@ -171,11 +171,11 @@
 
 void
 mi_cmd_exec_jump (char *args, char **argv, int argc)
 {
   /* FIXME: Should call a libgdb function, not a cli wrapper.  */
-  return mi_execute_async_cli_command ("jump", argv, argc);
+  mi_execute_async_cli_command ("jump", argv, argc);
 }
  
 static int
 proceed_thread_callback (struct thread_info *thread, void *arg)
 {
--- /soft/os/gdb/gdb-7.0.1/gdb-7.0.1/gdb/breakpoint.c~	2009-09-15 05:30:04.000000000 +0200
+++ /soft/os/gdb/gdb-7.0.1/gdb-7.0.1/gdb/breakpoint.c	2010-02-15 14:58:54.000000000 +0100
@@ -8272,7 +8272,7 @@
   int i;
   int not_found = 0;
   int *not_found_ptr = &not_found;
-  struct symtabs_and_lines sals = {};
+  struct symtabs_and_lines sals = {0};
   struct symtabs_and_lines expanded;
   char *s;
   enum enable_state save_enable;
--- /soft/os/gdb/gdb-7.0.1/gdb-7.0.1/gdb/symfile.c~	2009-09-18 19:39:37.000000000 +0200
+++ /soft/os/gdb/gdb-7.0.1/gdb-7.0.1/gdb/symfile.c	2010-02-15 15:02:59.000000000 +0100
@@ -4033,7 +4033,7 @@
 
   /* It doesn't make sense to call this function unless you have some
      segment base addresses.  */
-  gdb_assert (segment_bases > 0);
+  gdb_assert (num_segment_bases > 0);
 
   /* If we do not have segment mappings for the object file, we
      can not relocate it by segments.  */

--3MwIy2ne0vdjdPXF--
Technical Details
Message-ID: <mailman.1295.1266266690.14305.bug-gdb@gnu.org>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.isc.org!usenet.stanford.edu!news.stanford.edu!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f0ead4270c,bc75c21c9a9e46ff,start
X-Google-Attributes: gidf0ead4270c,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.isc.org!usenet.stanford.edu!news.stanford.edu!not-for-mail
From: Harald Koenig <H.Koenig@science-computing.de>
Newsgroups: gnu.gdb.bug
Subject: some compile errors fo gdb-7.0.1
Date: Mon, 15 Feb 2010 15:16:21 +0100
Lines: 87
Approved: bug-gdb@gnu.org
Message-ID: <mailman.1295.1266266690.14305.bug-gdb@gnu.org>
NNTP-Posting-Host: lists.gnu.org
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="3MwIy2ne0vdjdPXF"
X-Trace: news.stanford.edu 1266266691 397 199.232.76.165 (15 Feb 2010 20:44:51 GMT)
X-Complaints-To: news@news.stanford.edu
Cc: Harald Koenig <koenig@science-computing.de>
To: bug-gdb@gnu.org
Envelope-to: bug-gdb@gnu.org
X-Virus-Scanned: amavisd-new
Content-Disposition: inline
User-Agent: Mutt/1.5.18 (2008-05-17)
X-detected-operating-system: by eggs.gnu.org: Solaris 8 (1)
X-Mailman-Approved-At: Mon, 15 Feb 2010 15:44:49 -0500
X-BeenThere: bug-gdb@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Bug reports for GDB, the GNU debugger" <bug-gdb.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>,
 <mailto:bug-gdb-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-gdb>
List-Post: <mailto:bug-gdb@gnu.org>
List-Help: <mailto:bug-gdb-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>,
 <mailto:bug-gdb-request@gnu.org?subject=subscribe>