def update_profile_dict_with_reverse_dict(pdict, rdict):
    """
    Updates the profile information in `pdict` with the reverse call
    information in `rdict`.

    :param pdict: profile dictionary
    :param rdict: reverse call dictionary
    :return: updated profile dictionary
    """
    for key, calls_from in rdict.items():
        if key in pdict:
            for line in pdict[key]['lines']:
                if line['line_number'] in calls_from:
                    line['calls_from'] = calls_from[line['line_number']]
    return pdict
