Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: bug-gdb@gnu.org,  gdb-patches@sourceware.org
Cc: Harald Koenig <H.Koenig@science-computing.de>,
	 Harald Koenig <koenig@science-computing.de>
Subject: Re: some compile errors fo gdb-7.0.1
Date: Thu, 18 Feb 2010 19:23:00 -0000	[thread overview]
Message-ID: <201002181923.34196.pedro@codesourcery.com> (raw)
In-Reply-To: <20100215141621.GA9469@atuin.science-computing.de>

[moving from bug-gdb@gnu.org, patches go to gdb-patches@]

On Monday 15 February 2010 14:16:21, Harald Koenig wrote:
> 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...

Thanks.  I've applied it to mainline, as below, after
running the testsuite with it and finding on regressions.
The breakpoint.c hunk was no longer necessary, the same fix
had already been applied since 7 was released.

I encourage you to try building cvs head, or a recent
snapshot with hp cc so catch other possible tweaks
necessary, as gdb 7.1 is close to branching out.

-- 
Pedro Alves

2010-02-18  Harald Koenig  <H.Koenig@science-computing.de>

	* mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
	* symfile.c (symfile_map_offsets_to_segments): Fix assertion.

---
 gdb/mi/mi-main.c |    2 +-
 gdb/symfile.c    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Index: src/gdb/mi/mi-main.c
===================================================================
--- src.orig/gdb/mi/mi-main.c	2010-02-17 19:41:35.000000000 +0000
+++ src/gdb/mi/mi-main.c	2010-02-18 18:13:08.000000000 +0000
@@ -190,7 +190,7 @@ 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
Index: src/gdb/symfile.c
===================================================================
--- src.orig/gdb/symfile.c	2010-02-17 22:01:03.000000000 +0000
+++ src/gdb/symfile.c	2010-02-18 18:13:08.000000000 +0000
@@ -3715,7 +3715,7 @@ symfile_map_offsets_to_segments (bfd *ab
 
   /* 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.  */


       reply	other threads:[~2010-02-18 19:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20100215141621.GA9469@atuin.science-computing.de>
2010-02-18 19:23 ` Pedro Alves [this message]
2010-02-23 15:22   ` Harald Koenig
2010-02-23 17:08     ` Pedro Alves
2010-02-23 16:35   ` Harald Koenig
2010-02-23 17:14     ` Harald Koenig
2010-02-24 12:51       ` Harald Koenig
2010-02-24 13:35         ` Build errors on AIX Pedro Alves
2010-02-24 14:09           ` Harald Koenig
2010-03-01  6:47           ` Joel Brobecker
2010-03-01  6:51     ` some compile errors fo gdb-7.0.1 Joel Brobecker

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=201002181923.34196.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=H.Koenig@science-computing.de \
    --cc=bug-gdb@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=koenig@science-computing.de \
    /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