hotspot/src/os/aix/vm/decoder_aix.hpp
changeset 31352 a6ab7217b5cc
parent 22831 1e2ba1d62103
child 35594 cc13089c6327
child 35515 179755aaa4e0
equal deleted inserted replaced
31351:aae7db185576 31352:a6ab7217b5cc
     1 /*
     1 /*
     2  * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * Copyright 2013 SAP AG. All rights reserved.
     3  * Copyright 2013 SAP AG. All rights reserved.
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5  *
     5  *
     6  * This code is free software; you can redistribute it and/or modify it
     6  * This code is free software; you can redistribute it and/or modify it
     7  * under the terms of the GNU General Public License version 2 only, as
     7  * under the terms of the GNU General Public License version 2 only, as
    36 
    36 
    37   virtual bool can_decode_C_frame_in_vm() const { return true; }
    37   virtual bool can_decode_C_frame_in_vm() const { return true; }
    38 
    38 
    39   virtual bool demangle(const char* symbol, char* buf, int buflen) { return false; } // demangled by getFuncName
    39   virtual bool demangle(const char* symbol, char* buf, int buflen) { return false; } // demangled by getFuncName
    40 
    40 
    41   virtual bool decode(address addr, char* buf, int buflen, int* offset, const char* modulepath) {
    41   virtual bool decode(address addr, char* buf, int buflen, int* offset, const char* modulepath, bool demangle) {
    42     return (::getFuncName((codeptr_t)addr, buf, buflen, offset, 0, 0, 0) == 0);
    42     return (::getFuncName((codeptr_t)addr, buf, buflen, offset, 0, 0, 0, demangle) == 0);
    43   }
    43   }
    44   virtual bool decode(address addr, char *buf, int buflen, int* offset, const void *base) {
    44   virtual bool decode(address addr, char *buf, int buflen, int* offset, const void *base) {
    45     ShouldNotReachHere();
    45     ShouldNotReachHere();
    46     return false;
    46     return false;
    47   }
    47   }