# HG changeset patch # User John W. Eaton # Date 1220455225 14400 # Node ID 163d20e4d39c450943e56e3b366ce671e384c232 # Parent b1634dd9ebe7a21c78ed9cf2341d81a9efbef569 symtab.cc (out_of_date_check_internal): check for method, then regular function diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-09-03 John W. Eaton + + * symtab.cc (out_of_date_check_internal): If dispatch type is set, + check for method. If that fails, check for regular function. + 2008-09-02 Michael Goffioul * graphics.cc (hggroup::update_axis_limits): Also reacts on diff --git a/src/symtab.cc b/src/symtab.cc --- a/src/symtab.cc +++ b/src/symtab.cc @@ -193,11 +193,12 @@ // because load_fcn_file looks at the name to // decide whether it came from a relative lookup. - if (dispatch_type.empty ()) - file = load_path::find_fcn (nm, dir_name); - else + if (! dispatch_type.empty ()) file = load_path::find_method (nm, dispatch_type, dir_name); + + if (file.empty ()) + file = load_path::find_fcn (nm, dir_name); } if (file.empty ())