This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Overflow in transfer-rate
- From: Andrew STUBBS <andrew dot stubbs at st dot com>
- To: Denis PILAT <denis dot pilat at st dot com>
- Cc: gdb-patches <gdb-patches at sourceware dot org>
- Date: Mon, 11 Jun 2007 13:51:59 +0100
- Subject: Re: [rfc] Overflow in transfer-rate
- References: <466D3A7D.9030101@st.com>
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