From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6717 invoked by alias); 20 Jul 2004 19:17:00 -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 6698 invoked from network); 20 Jul 2004 19:16:57 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 20 Jul 2004 19:16:57 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i6KJGve1008855 for ; Tue, 20 Jul 2004 15:16:57 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i6KJGva14375 for ; Tue, 20 Jul 2004 15:16:57 -0400 Received: from [172.16.50.84] (vpn50-84.rdu.redhat.com [172.16.50.84]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id i6KJGvM5007109 for ; Tue, 20 Jul 2004 15:16:57 -0400 Subject: [RFA] read_reg() patch From: "Martin M. Hunt" To: gdb-patches@sources.redhat.com Content-Type: multipart/mixed; boundary="=-GKDmM9YLEGxGs+JyZiB4" Organization: Red Hat Inc. Message-Id: <1090351011.3030.12.camel@dragon> Mime-Version: 1.0 Date: Tue, 20 Jul 2004 19:17:00 -0000 X-SW-Source: 2004-07/txt/msg00256.txt.bz2 --=-GKDmM9YLEGxGs+JyZiB4 Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 372 2004-07-20 Kevin Buettner and Martin Hunt * dwarf2-frame.c (read_reg): Add a call to store_unsigned_integer. This extracts the least significant register_size() bits and extends it to the size of a pointer. Without this, big-endian targets where pointer size != register size breaks. -- Martin M. Hunt Red Hat Inc. --=-GKDmM9YLEGxGs+JyZiB4 Content-Disposition: attachment; filename=read_reg.patch Content-Type: text/x-patch; name=read_reg.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 641 Index: dwarf2-frame.c =================================================================== RCS file: /cvs/src/src/gdb/dwarf2-frame.c,v retrieving revision 1.36 diff -w -u -r1.36 dwarf2-frame.c --- dwarf2-frame.c 15 Jun 2004 01:04:19 -0000 1.36 +++ dwarf2-frame.c 20 Jul 2004 18:54:54 -0000 @@ -214,6 +214,8 @@ buf = (char *) alloca (register_size (gdbarch, regnum)); frame_unwind_register (next_frame, regnum, buf); + store_unsigned_integer (buf, TYPE_LENGTH (builtin_type_void_data_ptr), + extract_unsigned_integer (buf, register_size (gdbarch, regnum))); return extract_typed_address (buf, builtin_type_void_data_ptr); } --=-GKDmM9YLEGxGs+JyZiB4--