Skip to content

Tag: linux

How to catch new thread in gdb console mode?

I am running my Qt app from gdb, and i want to stop when new threads creates. (when gdb prints message [New Thread address (LPW number)]. I have set breakpoint b __pthread_create_2_1. That allows me to catch most of new threads prints. but i still got few new threads that are not catched. What else can i do t…

How to install hook in server?

I use Bitnami for local webserver I want try this system. But I have no experience with this script, I want understand how I can install it on my localhost. The documentation describe: how I should execute this command? Someone could explain me? Answer Bitnami developer here If you have installed an AMP Stack…

sed substitute with partial string

Is it possible to replace the last 5 characters of the line with the last 4 characters of the line in sed? My filenames can be any length but the end is always predictable i.e. the part I want to substitute is always 5 characters from the end Answer Just match them separately, and omit the undesired character…