From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2165 invoked by alias); 11 Apr 2006 08:39:16 -0000 Received: (qmail 2157 invoked by uid 22791); 11 Apr 2006 08:39:15 -0000 X-Spam-Check-By: sourceware.org Received: from dsl027-180-168.sfo1.dsl.speakeasy.net (HELO sunset.davemloft.net) (216.27.180.168) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 11 Apr 2006 08:39:13 +0000 Received: from localhost ([127.0.0.1] ident=davem) by sunset.davemloft.net with esmtp (Exim 4.60) (envelope-from ) id 1FTEP2-0000B5-Sq for gdb-patches@sources.redhat.com; Tue, 11 Apr 2006 01:39:12 -0700 Date: Tue, 11 Apr 2006 08:39:00 -0000 Message-Id: <20060411.013909.129717839.davem@davemloft.net> To: gdb-patches@sources.redhat.com Subject: [PATCH]: Don't use deprecated regcache functions From: "David S. Miller" Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00131.txt.bz2 I just noticed the following while investigating a threading failure on Linux/Sparc. Any reason we were still using deprecated_read_register_gen() here? Otherwise, ok to apply? 2006-04-11 David S. Miller * linux-thread-db.c (thread_db_store_registers): Use regcache_raw_collect. --- linux-thread-db.c.~1~ 2006-03-30 08:34:23.000000000 -0800 +++ linux-thread-db.c 2006-04-11 01:30:58.000000000 -0700 @@ -1047,7 +1047,7 @@ thread_db_store_registers (int regno) { gdb_byte raw[MAX_REGISTER_SIZE]; - deprecated_read_register_gen (regno, raw); + regcache_raw_collect (current_regcache, regno, raw); thread_db_fetch_registers (-1); regcache_raw_supply (current_regcache, regno, raw); }