From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2107 invoked by alias); 16 Feb 2005 02:18:11 -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 2036 invoked from network); 16 Feb 2005 02:17:42 -0000 Received: from unknown (HELO copland.sibelius.xs4all.nl) (24.75.92.210) by sourceware.org with SMTP; 16 Feb 2005 02:17:42 -0000 Received: from copland.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by copland.sibelius.xs4all.nl (8.13.3/8.13.3) with ESMTP id j1G2Hajo030293 for ; Wed, 16 Feb 2005 03:17:38 +0100 (CET) Received: (from kettenis@localhost) by copland.sibelius.xs4all.nl (8.13.3/8.13.3/Submit) id j1G2HZ7O019126; Tue, 15 Feb 2005 21:17:35 -0500 (EST) Date: Wed, 16 Feb 2005 06:43:00 -0000 Message-Id: <200502160217.j1G2HZ7O019126@copland.sibelius.xs4all.nl> From: Mark Kettenis To: gdb-patches@sources.redhat.com Subject: [COMMIT] Some amd64-linux-tdep.c tweaks X-SW-Source: 2005-02/txt/msg00160.txt.bz2 Committed, Mark Index: ChangeLog from Mark Kettenis * amd64-linux-tdep.c: Update copyright year. (amd64_linux_sigtramp_start): Change argument to `struct frame_info *'. Use safe_frame_unwind_memory instead of deprecated_read_memory_nobpt. (amd64_linux_sigtramp_p): Adjust call to amd64_linux_sigtramp_start. Index: amd64-linux-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/amd64-linux-tdep.c,v retrieving revision 1.7 diff -u -p -r1.7 amd64-linux-tdep.c --- amd64-linux-tdep.c 22 Aug 2004 16:27:30 -0000 1.7 +++ amd64-linux-tdep.c 16 Feb 2005 02:15:20 -0000 @@ -1,6 +1,6 @@ /* Target-dependent code for GNU/Linux x86-64. - Copyright 2001, 2003, 2004 Free Software Foundation, Inc. + Copyright 2001, 2003, 2004, 2005 Free Software Foundation, Inc. Contributed by Jiri Smid, SuSE Labs. This file is part of GDB. @@ -98,7 +98,7 @@ amd64_linux_sigtramp_start (struct frame PC is not at the start of the instruction sequence, there will be a few trailing readable bytes on the stack. */ - if (!safe_frame_unwind_memory (next_frame, pc, buf, LINUX_SIGTRAMP_LEN)) + if (!safe_frame_unwind_memory (next_frame, pc, buf, sizeof buf)) return 0; if (buf[0] != LINUX_SIGTRAMP_INSN0) @@ -107,8 +107,7 @@ amd64_linux_sigtramp_start (struct frame return 0; pc -= LINUX_SIGTRAMP_OFFSET1; - - if (!safe_frame_unwind_memory (next_frame, pc, buf, LINUX_SIGTRAMP_LEN)) + if (!safe_frame_unwind_memory (next_frame, pc, buf, sizeof buf)) return 0; }