Sorry, but no, this is not something gdb can do.
Create simple event handler like inotify in GDB
-
26-06-2023 - |
Question
I am facing situation where I have no ability to install systemtap inotify lsof and another fancy stuff. What I am trying to achieve is to monitor particular directory for changes. When some change will occur (file created, deleted ...) then I get some kind of report logged to file. Is this kind of event handling even possible to achieve using GDB?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow