# 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 -r b1634dd9ebe7 -r 163d20e4d39c src/ChangeLog --- a/src/ChangeLog Tue Sep 02 20:31:28 2008 -0400 +++ b/src/ChangeLog Wed Sep 03 11:20:25 2008 -0400 @@ -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 -r b1634dd9ebe7 -r 163d20e4d39c src/symtab.cc --- a/src/symtab.cc Tue Sep 02 20:31:28 2008 -0400 +++ b/src/symtab.cc Wed Sep 03 11:20:25 2008 -0400 @@ -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 ())