From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14482 invoked by alias); 31 May 2003 16:54:40 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 14401 invoked from network); 31 May 2003 16:54:38 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (62.163.169.212) by sources.redhat.com with SMTP; 31 May 2003 16:54:38 -0000 Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2]) by walton.kettenis.dyndns.org (8.12.6p2/8.12.5) with ESMTP id h4VGsbfm004775 for ; Sat, 31 May 2003 18:54:37 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) by elgar.kettenis.dyndns.org (8.12.6p2/8.12.6) with ESMTP id h4VGsbAM007810 for ; Sat, 31 May 2003 18:54:37 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost) by elgar.kettenis.dyndns.org (8.12.6p2/8.12.6/Submit) id h4VGsbuG007807; Sat, 31 May 2003 18:54:37 +0200 (CEST) Date: Sat, 31 May 2003 16:54:00 -0000 Message-Id: <200305311654.h4VGsbuG007807@elgar.kettenis.dyndns.org> From: Mark Kettenis To: gdb-patches@sources.redhat.com Subject: [PATCH] Fix amd64 compilation X-SW-Source: 2003-05/txt/msg00591.txt.bz2 Apparently Andrew missed the push_dummy_call() in x86-64-tdep.c. Committed. Index: ChangeLog from Mark Kettenis * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed function signature. Index: x86-64-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/x86-64-tdep.c,v retrieving revision 1.74 diff -u -p -r1.74 x86-64-tdep.c --- x86-64-tdep.c 31 May 2003 16:49:18 -0000 1.74 +++ x86-64-tdep.c 31 May 2003 16:52:25 -0000 @@ -754,9 +754,10 @@ x86_64_store_return_value (struct type * static CORE_ADDR -x86_64_push_dummy_call (struct gdbarch *gdbarch, struct regcache *regcache, - CORE_ADDR dummy_addr, int nargs, struct value **args, - CORE_ADDR sp, int struct_return, CORE_ADDR struct_addr) +x86_64_push_dummy_call (struct gdbarch *gdbarch, CORE_ADDR func_addr, + struct regcache *regcache, CORE_ADDR bp_addr, + int nargs, struct value **args, CORE_ADDR sp, + int struct_return, CORE_ADDR struct_addr) { char buf[8]; @@ -772,7 +773,7 @@ x86_64_push_dummy_call (struct gdbarch * /* Store return address. */ sp -= 8; - store_unsigned_integer (buf, 8, dummy_addr); + store_unsigned_integer (buf, 8, bp_addr); write_memory (sp, buf, 8); /* Finally, update the stack pointer... */