|
@@ -527,10 +527,12 @@ static int convert_variable(Dwarf_Die *vr_die, struct probe_finder *pf)
|
|
|
|
|
|
ret = convert_variable_location(vr_die, pf->addr, pf->fb_ops,
|
|
ret = convert_variable_location(vr_die, pf->addr, pf->fb_ops,
|
|
&pf->sp_die, pf->tvar);
|
|
&pf->sp_die, pf->tvar);
|
|
- if (ret == -ENOENT || ret == -EINVAL)
|
|
|
|
- pr_err("Failed to find the location of %s at this address.\n"
|
|
|
|
- " Perhaps, it has been optimized out.\n", pf->pvar->var);
|
|
|
|
- else if (ret == -ENOTSUP)
|
|
|
|
|
|
+ if (ret == -ENOENT || ret == -EINVAL) {
|
|
|
|
+ pr_err("Failed to find the location of the '%s' variable at this address.\n"
|
|
|
|
+ " Perhaps it has been optimized out.\n"
|
|
|
|
+ " Use -V with the --range option to show '%s' location range.\n",
|
|
|
|
+ pf->pvar->var, pf->pvar->var);
|
|
|
|
+ } else if (ret == -ENOTSUP)
|
|
pr_err("Sorry, we don't support this variable location yet.\n");
|
|
pr_err("Sorry, we don't support this variable location yet.\n");
|
|
else if (ret == 0 && pf->pvar->field) {
|
|
else if (ret == 0 && pf->pvar->field) {
|
|
ret = convert_variable_fields(vr_die, pf->pvar->var,
|
|
ret = convert_variable_fields(vr_die, pf->pvar->var,
|