diff options
author | Guinevere Larsen <guinevere@redhat.com> | 2025-02-21 10:06:03 -0300 |
---|---|---|
committer | Guinevere Larsen <guinevere@redhat.com> | 2025-03-05 17:37:28 -0300 |
commit | 18b66eb58729a0eb61ff46f32bf4127d28b800aa (patch) | |
tree | 0e01b54726031d1ea28723897d770b7502cb9dd7 /gdb/ada-lang.c | |
parent | 6594ca4a99dabbebd70c0748dee61d8b3a373336 (diff) | |
download | binutils-18b66eb58729a0eb61ff46f32bf4127d28b800aa.zip binutils-18b66eb58729a0eb61ff46f32bf4127d28b800aa.tar.gz binutils-18b66eb58729a0eb61ff46f32bf4127d28b800aa.tar.bz2 |
gdb/testsuite: add test for memory requirements of gcore
For a long time, Fedora has been carrying an out-of-tree patch with a
similar test to the one proposed in this patch, that ensures that the
memory requirements don't grow with the inferior's memory. It's been
so long that the context for why this test exists has been lost, but
it looked like it could be interesting for upstream.
The test runs twice, once with the inferior allocating 4Mb of memory,
and the other allocating 64Mb. My plan was to find the rate at which
things increase based on inferior size, and have that tested to ensure
we're not growing that requirement accidentally, but my testing
actually showed memory requirements going down as the inferior increases,
so instead I just hardcoded that we need less than 2Mb for the command,
and it can be tweaked later if necessary.
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/ada-lang.c')
0 files changed, 0 insertions, 0 deletions