Verb
give what for (third-person singular simple present gives what for, present participle giving what for, simple past gave what for, past participle given what for)
(transitive, idiomatic) To scold; to punish, especially verbally.
When she found out, she really gave him what for.