extendedPC.hpp revision 605:98cb887364d3
124269Speter/*
224269Speter * Copyright 1998-2004 Sun Microsystems, Inc.  All Rights Reserved.
324269Speter * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
424269Speter *
528345Sdyson * This code is free software; you can redistribute it and/or modify it
628345Sdyson * under the terms of the GNU General Public License version 2 only, as
728345Sdyson * published by the Free Software Foundation.
824269Speter *
924269Speter * This code is distributed in the hope that it will be useful, but WITHOUT
1024269Speter * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1124269Speter * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1224269Speter * version 2 for more details (a copy is included in the LICENSE file that
1324269Speter * accompanied this code).
1424269Speter *
1524269Speter * You should have received a copy of the GNU General Public License version
1624269Speter * 2 along with this work; if not, write to the Free Software Foundation,
1724269Speter * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1824269Speter *
1924269Speter * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
2024269Speter * CA 95054 USA or visit www.sun.com if you need additional information or
2124269Speter * have any questions.
2224269Speter *
2324269Speter */
2424269Speter
2524269Speter// An ExtendedPC contains the _pc from a signal handler in a platform
2624269Speter// independent way.
2724269Speter
2824269Speterclass ExtendedPC VALUE_OBJ_CLASS_SPEC {
2924269Speter private:
3024269Speter  address _pc;
3124269Speter
3224269Speter public:
3324269Speter  address pc() const { return _pc; }
3424269Speter  ExtendedPC(address pc) { _pc  = pc;   }
3524269Speter  ExtendedPC()           { _pc  = NULL; }
3624269Speter};
3724269Speter