udebug: add functions for manipulating entry length