Categories
BLOG

auto loaded

Auto loaded

When a new object file is read (for example, due to the file command, or because the inferior has loaded a shared library), GDB will look for Python support scripts in several ways: objfile -gdb.py and .debug_gdb_scripts section. See Auto-loading extensions.

The auto-loading feature is useful for supplying application-specific debugging commands and scripts.

Auto-loading can be enabled or disabled, and the list of auto-loaded scripts can be printed.

set auto-load python-scripts [on|off]

Enable or disable the auto-loading of Python scripts.

show auto-load python-scripts

Show whether auto-loading of Python scripts is enabled or disabled.

info auto-load python-scripts [ regexp ]

Print the list of all Python scripts that GDB auto-loaded.

Also printed is the list of Python scripts that were mentioned in the .debug_gdb_scripts section and were either not found (see dotdebug_gdb_scripts section) or were not auto-loaded due to auto-load safe-path rejection (see Auto-loading). This is useful because their names are not printed when GDB tries to load them and fails. There may be many of them, and printing an error message for each one is problematic.

If regexp is supplied only Python scripts with matching names are printed.

Python Auto-loading (Debugging with GDB)

Burglars flee with Ludhiana store owner’s auto loaded with furniture, TV, mattresses

CCTV camera footage in the store showed four men in the store. The empty auto was later found parked in a vegetable market.

Burglars made off with a bed, two dressing tables, one LED television screen, an air cooler, and four mattresses from a store in Nanak Nagar at Karabara road early on Tuesday, loading the goods on an auto parked at the premises, police have said.

Store owner Ashok Virmani, 48, of Salem Tabri informed the police after his employee Rinku reported for work in the morning at 9.30 am and called him. Rinku found the locks of the main shutter broken and the tempo missing with other goods.

CCTV camera footage in the store showed four men in the store. The empty auto was later found parked in a vegetable market.

The owner has claimed losses of ₹1.50 lakh in the incident.

Virmani added that two thefts had taken place in the market two days ago at a dhaba and a grocery store.

Sub-inspector Davinder Singh, SHO at the Daresi police station, said investigations had started and attempts were being made to identify the men in the CCTV camera grabs after a case was registered.

Night patrolling in the area would also be increased, he added.

CCTV camera footage in the store showed four men in the store. The empty auto was later found parked in a vegetable market.