RE: Getting core estimate for "gcore" command and conversely gcore/generate-core-file in GDB
SCOTT FIELDS via Gdb <[email protected]> Fri, 8 Sep 2023 17:29:05 +0000
| Newsgroups | gmane.comp.gdb.devel,gmane.comp.gdb.general |
|---|---|
| Message-ID | <CY8PR14MB59319D6069766E1F5E5A95BD8AEDA@CY8PR14MB5931.namprd14.prod.outlook.com> |
Where would I need to make a feature request for this? -----Original Message----- From: Tom Tromey <[email protected]>=20 Sent: Friday, September 8, 2023 11:56 AM To: SCOTT FIELDS via Gdb <[email protected]> Cc: [email protected]; SCOTT FIELDS <[email protected]> Subject: [EXTERNAL] Re: Getting core estimate for "gcore" command and conve= rsely gcore/generate-core-file in GDB >>>>> SCOTT FIELDS via Gdb <[email protected]> writes: > Are there other commands that will estimate the current space required=20 > for a successful run of "gcore"? Neither "gcore" command or=20 > gcore/generate-core-file command in GDB provide any option to get such=20 > an estimate. > Has there been a request to get this kind of information from "gcore" > as a future enhancement, since it can be difficult to know just how=20 > much space a large running process actually needs. I've never heard such a request. Looking at gcore.c, it seems reasonably possible to implement this. Look at gcore_create_callback to see how it decides how to size the various= sections. Without trying, it is hard to say if there is some hidden gotch= a. Tom