From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12236 invoked by alias); 13 May 2002 17:32:31 -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 12229 invoked from network); 13 May 2002 17:32:30 -0000 Received: from unknown (HELO maxipes.logix.cz) (217.11.251.37) by sources.redhat.com with SMTP; 13 May 2002 17:32:30 -0000 Received: (qmail 28373 invoked from network); 13 May 2002 17:32:28 -0000 Received: from styx.suse.cz (HELO suse.cz) (hajzl@213.210.157.162) by broucek.logix.cz with SMTP; 13 May 2002 17:32:28 -0000 Message-ID: <3CDFF8AC.8050403@suse.cz> Date: Mon, 13 May 2002 10:32:00 -0000 From: Michal Ludvig Organization: SuSE CR User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510 X-Accept-Language: cs, cz, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: Re: [RFA] Dwarf2 fix References: <3CDFEA7C.7050104@suse.cz> <3CDFF205.8070505@suse.cz> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-05/txt/msg00476.txt.bz2 Andreas Jaeger wrote: > thanks for the explanation. I wanted to see a comment in the code... I see :-)) static void context_cpy (struct context *dst, struct context *src) { int regs_size = sizeof (struct context_reg) * NUM_REGS; struct context_reg *dreg; /* Save a pointer to an already allocated dst->reg before overriding dst by src. */ dreg = dst->reg; *dst = *src; dst->reg = dreg; memcpy (dst->reg, src->reg, regs_size); } Better now? ;-) Michal Ludvig -- * SuSE CR, s.r.o * mludvig@suse.cz * +420 2 9654 5373 * http://www.suse.cz