COREINJECT(1)
π COREINJECT(1) π
okay bestie, welcome to the coreinject page from the minicoredumper manual π
β yes the whole thing is in section 1, she's a user command, she's iconic, let's go π«Ά
πΈ NAME πΈ
coreinject β inject binary dumps from minicoredumper(8) into a core file β¨
π SYNOPSIS π
coreinject [OPTION]... core symbol.map binary-dump...
π¦ DESCRIPTION π¦
okay so picture this π β an application is using libminicoredumper(7) and it registers a binary dump and is like "do NOT put this in the core file babes". so minicoredumper(8) is like say less, and makes a separate dump file holding the contents of that variable πΎ. it also makes a symbol map file, symbol.map, because of course it does, she's thorough π
and that's where our girl coreinject comes in β using these files, coreinject can inject that binary data into the stripped core file so you can actually use it with gdb(1) π (no cap, this is the whole point).
now the options, bestie π
--data=IDENT:SIZE@SRCFILE+SRCOFFβ injectSIZEbytes of data from offsetSRCOFFof fileSRCFILEinto thecore(5). it drops that data at the location of theIDENTas stored in the symbol map. this one is lowkey the flex option: it's useful for injecting data other than the stuff thatminicoredumper(8)actually dumped πβ¨
β NOTES β
listen, this part matters, don't skip it π
- if the binary dump used
MCD_DATA_PTR_DIRECT, then the separate binary file contains exactly that data. simple. clean. gorgeous π - if
MCD_DATA_PTR_INDIRECTwas used, then the separate binary file contains first the pointer value, followed by the data pointed to by the pointer. so like, pointer first, data second, that's the order, fr fr π
π₯ EXAMPLE π₯
insert the binary data in bdump.bin into core π«
coreinject core symbol.map bdump.bin
π SEE ALSO π
The DiaMon Workgroup: <http://www.diamon.org> π
and that's the page bestie, we ate, no crumbs π
this beauty is from the minicoredumper manual, dated 2016-07-19, and the source line at the bottom said minicoredumper too π
bye mwah ππ β¨
π¦ where this page comes from
- ubuntu stonking: minicoredumper-utils 2.0.8-1 Β· BSD-2-Clause
- π the page's license: BSD-2-Clause
- Copyright (c) 2015-2026 Linutronix GmbH. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms