This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfc] Overflow in transfer-rate


Andrew STUBBS wrote:
Denis PILAT wrote:
In symfile.c/print_transfer_performance (), an overflow can occure when data_count (see below) is a large number.

I propose either the following 1st patch, or to pass to "%llu"into the ui_out_field_fmt functino call, see the next patch proposal.

I might also be worth taking a look at this proposal from some time ago http://www.cygwin.com/ml/gdb-patches/2006-10/msg00184.html


Well, it sounds like an internal ST discussion but I prefer the patch in your link, it avoids overflow *and* prints transfer rate in a much clever way.

Denis


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]