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                                    //  /     \\  \
koe...@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 

--- /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.  */
_______________________________________________
bug-gdb mailing list
bug-gdb@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gdb

Reply via email to