From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5895 invoked by alias); 8 Jul 2002 14:29:43 -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 5882 invoked from network); 8 Jul 2002 14:29:42 -0000 Received: from unknown (HELO kerberos.suse.cz) (195.47.106.10) by sources.redhat.com with SMTP; 8 Jul 2002 14:29:42 -0000 Received: from chimera.suse.cz (chimera.suse.cz [10.20.0.2]) by kerberos.suse.cz (SuSE SMTP server) with ESMTP id 0343459D34A for ; Mon, 8 Jul 2002 16:29:42 +0200 (CEST) Received: from suse.cz (naga.suse.cz [10.20.1.16]) by chimera.suse.cz (8.11.0/8.11.0/SuSE Linux 8.11.0-0.4) with ESMTP id g68ETfg07879 for ; Mon, 8 Jul 2002 16:29:41 +0200 X-Authentication-Warning: chimera.suse.cz: Host naga.suse.cz [10.20.1.16] claimed to be suse.cz Message-ID: <3D29A1D5.2010700@suse.cz> Date: Mon, 08 Jul 2002 08:28:00 -0000 From: Michal Ludvig Organization: SuSE CR User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529 X-Accept-Language: cs, cz, en MIME-Version: 1.0 To: GDB Patches Subject: [RFA] struct context moved Content-Type: multipart/mixed; boundary="------------010705000509010703030101" X-SW-Source: 2002-07/txt/msg00111.txt.bz2 This is a multi-part message in MIME format. --------------010705000509010703030101 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Content-length: 427 Hi all, the appended patch moved declaration of struct context and struct context_reg to frame.h, where these two are used in struct frame_info. OK to commit? 2002-07-08 Michal Ludvig * dwarf2cfi.c (struct context, struct context_reg): Moved... * farme.h (struct context, struct context_reg): ...here. Michal Ludvig -- * SuSE CR, s.r.o * mludvig@suse.cz * +420 2 9654 5373 * http://www.suse.cz --------------010705000509010703030101 Content-Type: text/plain; name="context-1.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="context-1.diff" Content-length: 1776 Index: dwarf2cfi.c =================================================================== RCS file: /cvs/src/src/gdb/dwarf2cfi.c,v retrieving revision 1.12 diff -u -p -r1.12 dwarf2cfi.c --- dwarf2cfi.c 4 Jul 2002 14:43:51 -0000 1.12 +++ dwarf2cfi.c 8 Jul 2002 14:24:42 -0000 @@ -88,37 +88,6 @@ struct fde_array int array_size; }; -struct context_reg -{ - union - { - unsigned int reg; - long offset; - CORE_ADDR addr; - } - loc; - enum - { - REG_CTX_UNSAVED, - REG_CTX_SAVED_OFFSET, - REG_CTX_SAVED_REG, - REG_CTX_SAVED_ADDR, - REG_CTX_VALUE, - } - how; -}; - -/* This is the register and unwind state for a particular frame. */ -struct context -{ - struct context_reg *reg; - - CORE_ADDR cfa; - CORE_ADDR ra; - void *lsda; - int args_size; -}; - struct frame_state_reg { union Index: frame.h =================================================================== RCS file: /cvs/src/src/gdb/frame.h,v retrieving revision 1.22 diff -u -p -r1.22 frame.h --- frame.h 2 Jul 2002 19:08:53 -0000 1.22 +++ frame.h 8 Jul 2002 14:24:42 -0000 @@ -64,6 +64,37 @@ struct frame_saved_regs }; #endif +struct context_reg +{ + union + { + unsigned int reg; + long offset; + CORE_ADDR addr; + } + loc; + enum + { + REG_CTX_UNSAVED, + REG_CTX_SAVED_OFFSET, + REG_CTX_SAVED_REG, + REG_CTX_SAVED_ADDR, + REG_CTX_VALUE, + } + how; +}; + +/* This is the register and unwind state for a particular frame. */ +struct context +{ + struct context_reg *reg; + + CORE_ADDR cfa; + CORE_ADDR ra; + void *lsda; + int args_size; +}; + /* We keep a cache of stack frames, each of which is a "struct frame_info". The innermost one gets allocated (in wait_for_inferior) each time the inferior stops; current_frame --------------010705000509010703030101--