• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X PCB Editor
  3. Override or hook read-only function - how?

Stats

  • Replies 3
  • Subscribers 158
  • Views 2571
  • Members are here 0
More Content

Override or hook read-only function - how?

archive
archive over 19 years ago

This is more in the nature of a general Skill question, but this topic seems to be the most active, so forgive the intrusion.

Does anyone know if there's a means to hook or override native code function objects? For example, if I wanted to log all invocations of the various ipc* functions it would be handy to be able to place a routine of my own in the control flow, grab and log the args and then pass control to the "real" ipc routine.

All the ipc* functions show up as being read-only and any attempt at assigning a new function to the symbol results in an error.

Any input or insight will be appreciated.

Steve


Originally posted in cdnusers.org by shirsch
  • Sign in to reply
  • Cancel
Parents
  • archive
    archive over 19 years ago

    I think the function you are after is clearFnWriteProtect

    However, this will not work with system functions, such as ipcBeginProcess. I doubt that you can (or would want to) hijack these commands directly.


    Originally posted in cdnusers.org by Dave Elder
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • archive
    archive over 19 years ago

    I think the function you are after is clearFnWriteProtect

    However, this will not work with system functions, such as ipcBeginProcess. I doubt that you can (or would want to) hijack these commands directly.


    Originally posted in cdnusers.org by Dave Elder
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information