g-debpoo.ads, [...] (Free_Physically.Free_Blocks): Use the absolute value of Header...
authorVincent Celier <celier@adacore.com>
Wed, 6 Jun 2007 10:29:21 +0000 (12:29 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 6 Jun 2007 10:29:21 +0000 (12:29 +0200)
commitf38df0e11608009b95e0332b9fbab26eb593095c
treed9f4f7e45822978c48f55c3ee87a62b262e05ca4
parentfbe627afbd02f0e151a772f1bbd00ec8dc13c6a8
g-debpoo.ads, [...] (Free_Physically.Free_Blocks): Use the absolute value of Header.Block_Size when...

2007-04-20  Vincent Celier  <celier@adacore.com>
    Emmanuel Briot  <briot@adacore.com>
    Olivier Hainque  <hainque@adacore.com>

* g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
absolute value of Header.Block_Size when displaying the freed physical
memory in traces.
(Allocate): Compute Storage_Address using Integer_Address, not
Storage_Offset, because the range of Storage_Offset may not be large
enough.
(Configure): New parameter Low_Level_Traces
(Allocate, Deallocation, Free_Physically): Added low-level traces
(Configure): new parameter Errors_To_Stdout.
(Output_File): new subprogram
(Deallocate, Dereference): Send error messages to the proper stream
(Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
documented. Previous code would send it to the current output file
defined in GNAT.IO, which might not be stdout
(Is_Valid): Adjust comment to mention that a positive reply means that
Header_Of may be used to retrieve the allocation header associated with
the subprogram Storage address argument. Return False early if this
address argument is misaligned.

From-SVN: r125415
gcc/ada/g-debpoo.adb
gcc/ada/g-debpoo.ads