* GDB 17.1 / Linux setting limits for the debugged process?
@ 2026-01-26 14:08 Basile Starynkevitch
2026-01-26 15:49 ` Simon Marchi via Gdb
0 siblings, 1 reply; 2+ messages in thread
From: Basile Starynkevitch @ 2026-01-26 14:08 UTC (permalink / raw)
To: gdb
Hello all,
(this is motivated by https://github.com/RefPerSys/RefPerSys/issues/30 - a bug in a GPL licensed inference engine project coded in C++)
Using GDB 17.1 on an open source software compiled by GCC 16 snapshot (or latest GCC 15) on a Debian/Linux desktop (or laptop),
how can I set limits (in the https://man7.org/linux/man-pages/man2/getrlimit.2.html sense, for elapsed CPU time limit)
on the debugged process, but not on the GDB 17.1 debugging process?
Regards
PS. Maybe such hint might be useful in the documentation. I am French so not at ease in writing English
--
Basile STARYNKEVITCH basile AT starynkevitch DOT net
8 rue de la Faïencerie http://starynkevitch.net/Basile/
92340 Bourg-la-Reine https://github.com/bstarynk
France https://github.com/RefPerSys/RefPerSys
https://orcid.org/0000-0003-0908-5250
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: GDB 17.1 / Linux setting limits for the debugged process?
2026-01-26 14:08 GDB 17.1 / Linux setting limits for the debugged process? Basile Starynkevitch
@ 2026-01-26 15:49 ` Simon Marchi via Gdb
0 siblings, 0 replies; 2+ messages in thread
From: Simon Marchi via Gdb @ 2026-01-26 15:49 UTC (permalink / raw)
To: Basile Starynkevitch, gdb
On 1/26/26 9:08 AM, Basile Starynkevitch wrote:
> Hello all,
>
> (this is motivated by https://github.com/RefPerSys/RefPerSys/issues/30 - a bug in a GPL licensed inference engine project coded in C++)
>
> Using GDB 17.1 on an open source software compiled by GCC 16 snapshot (or latest GCC 15) on a Debian/Linux desktop (or laptop),
> how can I set limits (in the https://man7.org/linux/man-pages/man2/getrlimit.2.html sense, for elapsed CPU time limit)
> on the debugged process, but not on the GDB 17.1 debugging process?
Try to set "prlimit" as the exec-wrapper:
(gdb) set exec-wrapper prlimit --cpu=1234
(gdb) run
Simon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-01-26 15:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-26 14:08 GDB 17.1 / Linux setting limits for the debugged process? Basile Starynkevitch
2026-01-26 15:49 ` Simon Marchi via Gdb
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox