curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Fewer mallocs is better, episode #47

From: Timothe Litt <litt_at_acm.org>
Date: Thu, 3 Feb 2022 20:35:13 -0500


On 03-Feb-22 20:09, Henrik Holst via curl-library wrote:
> the traces only shows that strlen was called, not on which string it
> was called so the digging is a bit time consuming).

Doesn't have to be too painful; automate:

Set on-the-fly breakpoints where strlen is called, and display the
arguments.

e.g. with gdb

break <loc>

commands

silent

backtrace 1

print string

cont

end

Similar capabilities are in other debuggers.




-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2022-02-04