Article View: gnu.gdb.bug
Article #1076Re: some compile errors fo gdb-7.0.1
From: Pedro Alves
Date: Thu, 18 Feb 2010 19:23
Date: Thu, 18 Feb 2010 19:23
62 lines
4504 bytes
4504 bytes
[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. */
Technical Details
Message-ID:
<mailman.1456.1266521033.14305.bug-gdb@gnu.org>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.com!usenet.stanford.edu!news.stanford.edu!not-for-mailReferences:
<20100215141621.GA9469@atuin.science-computing.de>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!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.com!usenet.stanford.edu!news.stanford.edu!not-for-mail From: Pedro Alves <pedro@codesourcery.com> Newsgroups: gnu.gdb.bug Subject: Re: some compile errors fo gdb-7.0.1 Date: Thu, 18 Feb 2010 19:23:34 +0000 Organization: CodeSourcery Lines: 64 Approved: bug-gdb@gnu.org Message-ID: <mailman.1456.1266521033.14305.bug-gdb@gnu.org> References: <20100215141621.GA9469@atuin.science-computing.de> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Trace: news.stanford.edu 1266521034 15362 199.232.76.165 (18 Feb 2010 19:23:54 GMT) X-Complaints-To: news@news.stanford.edu Cc: Harald Koenig <H.Koenig@science-computing.de>, Harald Koenig <koenig@science-computing.de> To: bug-gdb@gnu.org, gdb-patches@sourceware.org Envelope-to: bug-gdb@gnu.org User-Agent: KMail/1.12.2 (Linux/2.6.31-19-generic; KDE/4.3.2; x86_64; ; ) In-Reply-To: <20100215141621.GA9469@atuin.science-computing.de> X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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>