2004-09-24 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Fri, 24 Sep 2004 18:44:56 +0000 (18:44 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 24 Sep 2004 18:44:56 +0000 (18:44 +0000)
commit3c0edcdc64f67867b4a2692d92564f7f2867ac7b
treee33086ab9a24e237bd3f154cc1ecae2cdd4cdecb
parent1f362c96c335d3dd6bf9baee8b5e672fcbba1814
2004-09-24  Andrew Cagney  <cagney@redhat.com>
    David Anderson <anderson@redhat.com>

* gdb.base/bigcore.exp (extract_heap): If the expect "file size"
command fails, assume things will work.
* gdb.base/bigcore.c: Include <sys/stat.h> and <fcntl.h>.
(_GNU_SOURCE): Define.
(print_unsigned, print_hex): Change parameter to "long long".
(print_byte_count): New function, use to print byte counts.
(large_off_t, large_lseek, O_LARGEFILE): Define dependant on
O_LARGEFILE.
(main): Compute an upper bound on a corefile in max_core_size.
Limit memory chunk size to max_core_size.  Limit total memory
allocated to max_core_size.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/bigcore.c
gdb/testsuite/gdb.base/bigcore.exp