public inbox for gdb-testers@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Target FP printing: Simplify and fix ui_printf
@ 2017-10-26 15:54 sergiodj+buildbot
  2017-10-26 15:55 ` Failures on Fedora-s390x-m64, branch master sergiodj+buildbot
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: sergiodj+buildbot @ 2017-10-26 15:54 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 16e812b29e68c4a6fcad73b033716c4f385ce94f ***

Author: Ulrich Weigand <ulrich.weigand@de.ibm.com>
Branch: master
Commit: 16e812b29e68c4a6fcad73b033716c4f385ce94f

Target FP printing: Simplify and fix ui_printf

This patch adds support for handling format strings to both
floatformat_to_string and decimal_to_string, and then uses
those routines to implement ui_printf formatted printing.

There is already a subroutine printf_decfloat that ui_printf uses to
handle decimal FP.  This is renamed to printf_floating and updated
to handle both binary and decimal FP.  This includes the following
set of changes:

- printf_decfloat currently parses the format string again to determine
  the intended target format.  This seems superfluous since the common
  parsing code in parse_format_string already did this, but then did
  not pass the result on to its users.  Fixed by splitting the decfloat_arg
  argument class into three distinct classes, and passing them through.

- Now we can rename printf_decfloat to printf_floating and also call it
  for the argument classes representing binary FP types.

- The code will now use the argclass to detect the type the value should
  be printed at, and converts the input value to this type if necessary.
  To remain compatible with current behavior, for binary FP the code
  instead tries to re-interpret the input value as a FP type of the
  same size if that exists.  (Maybe this behavior is more confusing
  than useful -- but this can be changed later if we want to ...)

- Finally, we can use floatformat_to_string / decimal_to_string passing
  the format string to perform the formatted output using the desired
  target FP type.

Note that we no longer generate different code depending on whether or not
the host supports "long double" -- this check is obsolete anyway since C++11
mandates "long double", and in any case a %lg format string is intended to
refer to the *target* long double type, not the host version.

Note also that formatted printing of DFP numbers may not work correctly,
since it attempts to use the host printf to do so (and makes unwarranted
assumptions about the host ABI while doing so!).  This is no change to
the current behavior -- I simply moved the code from printf_decfloat to
the decimal_to_string routine in dfp.c.  If we want to fix it in the
future, that is a more appropriate place anyway.

ChangeLog:
2017-10-24  Ulrich Weigand  <uweigand@de.ibm.com>

	* common/format.h (enum argclass): Replace decfloat_arg by
	dec32float_arg, dec64float_arg, and dec128float_arg.
	* common/format.c (parse_format_string): Update to return
	new decimal float argument classes.

	* printcmd.c (printf_decfloat): Rename to ...
	(printf_floating): ... this.  Add argclass argument, and use it
	instead of parsing the format string again.  Add support for
	binary floating-point values, using floatformat_to_string.
	Convert value to the target format if it doesn't already match.
	(ui_printf): Call printf_floating instead of printf_decfloat,
	also for double_arg / long_double_arg.  Pass argclass.

	* dfp.c (decimal_to_string): Add format string argument.
	* dfp.h (decimal_to_string): Likewise.

	* doublest.c (floatformat_to_string): Add format string argument.
	* doublest.h (floatformat_to_string): Likewise.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Failures on Fedora-s390x-m64, branch master
  2017-10-26 15:54 [binutils-gdb] Target FP printing: Simplify and fix ui_printf sergiodj+buildbot
@ 2017-10-26 15:55 ` sergiodj+buildbot
  2017-10-27  0:53 ` Failures on Ubuntu-AArch64-m64, " sergiodj+buildbot
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sergiodj+buildbot @ 2017-10-26 15:55 UTC (permalink / raw)
  To: gdb-testers

Buildslave:
	marist-fedora-s390x

Full Build URL:
	<http://gdb-build.sergiodj.net/builders/Fedora-s390x-m64/builds/6780>

Commit(s) tested:
	16e812b29e68c4a6fcad73b033716c4f385ce94f

Author(s) (in the same order as the commits):
	Ulrich Weigand <ulrich.weigand@de.ibm.com>

Subject:
	Target FP printing: Simplify and fix ui_printf

Testsuite log (gdb.sum and gdb.log) URL(s):
	<http://gdb-build.sergiodj.net/results/Fedora-s390x-m64/16/16e812b29e68c4a6fcad73b033716c4f385ce94f/>

*** Diff to previous build ***
============================
PASS -> KFAIL: gdb.threads/process-dies-while-handling-bp.exp: non_stop=on: cond_bp_target=1: inferior 1 exited
PASS -> KFAIL: gdb.threads/process-dies-while-handling-bp.exp: non_stop=off: cond_bp_target=1: inferior 1 exited
============================


*** Complete list of XFAILs for this builder ***

To obtain the list of XFAIL tests for this builder, go to:

	<http://git.sergiodj.net/?p=gdb-xfails.git;a=blob;f=xfails/Fedora-s390x-m64/xfails/master/xfail;hb=f496d89>

You can also see a pretty-printed version of the list, with more information
about each XFAIL, by going to:

	<http://git.sergiodj.net/?p=gdb-xfails.git;a=blob;f=xfails/Fedora-s390x-m64/xfails/master/xfail.table;hb=f496d89>




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Failures on Ubuntu-AArch64-m64, branch master
  2017-10-26 15:54 [binutils-gdb] Target FP printing: Simplify and fix ui_printf sergiodj+buildbot
  2017-10-26 15:55 ` Failures on Fedora-s390x-m64, branch master sergiodj+buildbot
@ 2017-10-27  0:53 ` sergiodj+buildbot
  2017-10-27  6:50 ` Failures on Ubuntu-AArch32-native-extended-gdbserver-m32, " sergiodj+buildbot
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sergiodj+buildbot @ 2017-10-27  0:53 UTC (permalink / raw)
  To: gdb-testers

Buildslave:
	ubuntu-aarch64-1

Full Build URL:
	<http://gdb-build.sergiodj.net/builders/Ubuntu-AArch64-m64/builds/3305>

Commit(s) tested:
	16e812b29e68c4a6fcad73b033716c4f385ce94f

Author(s) (in the same order as the commits):
	Ulrich Weigand <ulrich.weigand@de.ibm.com>

Subject:
	Target FP printing: Simplify and fix ui_printf

Testsuite log (gdb.sum and gdb.log) URL(s):
	<http://gdb-build.sergiodj.net/results/Ubuntu-AArch64-m64/16/16e812b29e68c4a6fcad73b033716c4f385ce94f/>

*** Diff to previous build ***
============================
PASS -> KFAIL: gdb.threads/non-ldr-exit.exp: program exits normally
PASS -> KFAIL: gdb.threads/process-dies-while-handling-bp.exp: non_stop=on: cond_bp_target=1: inferior 1 exited
PASS -> KFAIL: gdb.threads/process-dies-while-handling-bp.exp: non_stop=off: cond_bp_target=0: inferior 1 exited
============================


*** Complete list of XFAILs for this builder ***

To obtain the list of XFAIL tests for this builder, go to:

	<http://git.sergiodj.net/?p=gdb-xfails.git;a=blob;f=xfails/Ubuntu-AArch64-m64/xfails/master/xfail;hb=2289e31>

You can also see a pretty-printed version of the list, with more information
about each XFAIL, by going to:

	<http://git.sergiodj.net/?p=gdb-xfails.git;a=blob;f=xfails/Ubuntu-AArch64-m64/xfails/master/xfail.table;hb=2289e31>




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Failures on Ubuntu-AArch32-native-extended-gdbserver-m32, branch master
  2017-10-26 15:54 [binutils-gdb] Target FP printing: Simplify and fix ui_printf sergiodj+buildbot
  2017-10-26 15:55 ` Failures on Fedora-s390x-m64, branch master sergiodj+buildbot
  2017-10-27  0:53 ` Failures on Ubuntu-AArch64-m64, " sergiodj+buildbot
@ 2017-10-27  6:50 ` sergiodj+buildbot
  2017-10-27  7:35 ` Failures on Fedora-x86_64-native-gdbserver-m32, " sergiodj+buildbot
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sergiodj+buildbot @ 2017-10-27  6:50 UTC (permalink / raw)
  To: gdb-testers

Buildslave:
	ubuntu-trusty-aarch32-1

Full Build URL:
	<http://gdb-build.sergiodj.net/builders/Ubuntu-AArch32-native-extended-gdbserver-m32/builds/1903>

Commit(s) tested:
	16e812b29e68c4a6fcad73b033716c4f385ce94f

Author(s) (in the same order as the commits):
	Ulrich Weigand <ulrich.weigand@de.ibm.com>

Subject:
	Target FP printing: Simplify and fix ui_printf

Testsuite log (gdb.sum and gdb.log) URL(s):
	<http://gdb-build.sergiodj.net/results/Ubuntu-AArch32-native-extended-gdbserver-m32/16/16e812b29e68c4a6fcad73b033716c4f385ce94f/>

*** Diff to previous build ***
============================
new FAIL: gdb.threads/interrupt-while-step-over.exp: displaced-stepping=off: iter=1: wait for stops
new FAIL: gdb.threads/interrupt-while-step-over.exp: displaced-stepping=off: iter=2: wait for stops
new FAIL: gdb.threads/interrupt-while-step-over.exp: displaced-stepping=off: iter=3: wait for stops
new FAIL: gdb.threads/interrupt-while-step-over.exp: displaced-stepping=off: iter=4: wait for stops
new FAIL: gdb.threads/interrupt-while-step-over.exp: displaced-stepping=off: iter=13: wait for stops
new FAIL: gdb.threads/interrupt-while-step-over.exp: displaced-stepping=off: iter=18: wait for stops
PASS -> KFAIL: gdb.threads/process-dies-while-handling-bp.exp: non_stop=on: cond_bp_target=1: inferior 1 exited
new FAIL: gdb.threads/queue-signal.exp: determine thread functions
============================


*** Complete list of XFAILs for this builder ***

FAILURE TO OBTAIN THE COMMIT FOR THE XFAIL LIST.  PLEASE CONTACT THE BUILDBOT ADMIN.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Failures on Fedora-x86_64-native-gdbserver-m32, branch master
  2017-10-26 15:54 [binutils-gdb] Target FP printing: Simplify and fix ui_printf sergiodj+buildbot
                   ` (2 preceding siblings ...)
  2017-10-27  6:50 ` Failures on Ubuntu-AArch32-native-extended-gdbserver-m32, " sergiodj+buildbot
@ 2017-10-27  7:35 ` sergiodj+buildbot
  2017-10-27  7:55 ` Failures on Fedora-x86_64-native-gdbserver-m64, " sergiodj+buildbot
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sergiodj+buildbot @ 2017-10-27  7:35 UTC (permalink / raw)
  To: gdb-testers

Buildslave:
	fedora-x86-64-4

Full Build URL:
	<http://gdb-build.sergiodj.net/builders/Fedora-x86_64-native-gdbserver-m32/builds/7735>

Commit(s) tested:
	16e812b29e68c4a6fcad73b033716c4f385ce94f

Author(s) (in the same order as the commits):
	Ulrich Weigand <ulrich.weigand@de.ibm.com>

Subject:
	Target FP printing: Simplify and fix ui_printf

Testsuite log (gdb.sum and gdb.log) URL(s):
	<http://gdb-build.sergiodj.net/results/Fedora-x86_64-native-gdbserver-m32/16/16e812b29e68c4a6fcad73b033716c4f385ce94f/>

*** Diff to previous build ***
============================
PASS -> KFAIL: gdb.threads/process-dies-while-handling-bp.exp: non_stop=on: cond_bp_target=0: inferior 1 exited
PASS -> KFAIL: gdb.threads/process-dies-while-handling-bp.exp: non_stop=off: cond_bp_target=0: inferior 1 exited
============================


*** Complete list of XFAILs for this builder ***

To obtain the list of XFAIL tests for this builder, go to:

	<http://git.sergiodj.net/?p=gdb-xfails.git;a=blob;f=xfails/Fedora-x86_64-native-gdbserver-m32/xfails/master/xfail;hb=aefceec>

You can also see a pretty-printed version of the list, with more information
about each XFAIL, by going to:

	<http://git.sergiodj.net/?p=gdb-xfails.git;a=blob;f=xfails/Fedora-x86_64-native-gdbserver-m32/xfails/master/xfail.table;hb=aefceec>




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Failures on Fedora-x86_64-native-gdbserver-m64, branch master
  2017-10-26 15:54 [binutils-gdb] Target FP printing: Simplify and fix ui_printf sergiodj+buildbot
                   ` (3 preceding siblings ...)
  2017-10-27  7:35 ` Failures on Fedora-x86_64-native-gdbserver-m32, " sergiodj+buildbot
@ 2017-10-27  7:55 ` sergiodj+buildbot
  2017-10-27  8:11 ` Failures on Fedora-x86_64-cc-with-index, " sergiodj+buildbot
  2017-10-27  8:32 ` Failures on Fedora-x86_64-native-extended-gdbserver-m32, " sergiodj+buildbot
  6 siblings, 0 replies; 8+ messages in thread
From: sergiodj+buildbot @ 2017-10-27  7:55 UTC (permalink / raw)
  To: gdb-testers

Buildslave:
	fedora-x86-64-4

Full Build URL:
	<http://gdb-build.sergiodj.net/builders/Fedora-x86_64-native-gdbserver-m64/builds/7732>

Commit(s) tested:
	16e812b29e68c4a6fcad73b033716c4f385ce94f

Author(s) (in the same order as the commits):
	Ulrich Weigand <ulrich.weigand@de.ibm.com>

Subject:
	Target FP printing: Simplify and fix ui_printf

Testsuite log (gdb.sum and gdb.log) URL(s):
	<http://gdb-build.sergiodj.net/results/Fedora-x86_64-native-gdbserver-m64/16/16e812b29e68c4a6fcad73b033716c4f385ce94f/>

*** Diff to previous build ***
============================
PASS -> KFAIL: gdb.threads/process-dies-while-handling-bp.exp: non_stop=on: cond_bp_target=0: inferior 1 exited
PASS -> KFAIL: gdb.threads/process-dies-while-handling-bp.exp: non_stop=off: cond_bp_target=1: inferior 1 exited
============================


*** Complete list of XFAILs for this builder ***

To obtain the list of XFAIL tests for this builder, go to:

	<http://git.sergiodj.net/?p=gdb-xfails.git;a=blob;f=xfails/Fedora-x86_64-native-gdbserver-m64/xfails/master/xfail;hb=7356283>

You can also see a pretty-printed version of the list, with more information
about each XFAIL, by going to:

	<http://git.sergiodj.net/?p=gdb-xfails.git;a=blob;f=xfails/Fedora-x86_64-native-gdbserver-m64/xfails/master/xfail.table;hb=7356283>




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Failures on Fedora-x86_64-cc-with-index, branch master
  2017-10-26 15:54 [binutils-gdb] Target FP printing: Simplify and fix ui_printf sergiodj+buildbot
                   ` (4 preceding siblings ...)
  2017-10-27  7:55 ` Failures on Fedora-x86_64-native-gdbserver-m64, " sergiodj+buildbot
@ 2017-10-27  8:11 ` sergiodj+buildbot
  2017-10-27  8:32 ` Failures on Fedora-x86_64-native-extended-gdbserver-m32, " sergiodj+buildbot
  6 siblings, 0 replies; 8+ messages in thread
From: sergiodj+buildbot @ 2017-10-27  8:11 UTC (permalink / raw)
  To: gdb-testers

Buildslave:
	fedora-x86-64-4

Full Build URL:
	<http://gdb-build.sergiodj.net/builders/Fedora-x86_64-cc-with-index/builds/7703>

Commit(s) tested:
	16e812b29e68c4a6fcad73b033716c4f385ce94f

Author(s) (in the same order as the commits):
	Ulrich Weigand <ulrich.weigand@de.ibm.com>

Subject:
	Target FP printing: Simplify and fix ui_printf

Testsuite log (gdb.sum and gdb.log) URL(s):
	<http://gdb-build.sergiodj.net/results/Fedora-x86_64-cc-with-index/16/16e812b29e68c4a6fcad73b033716c4f385ce94f/>

*** Diff to previous build ***
============================
PASS -> KFAIL: gdb.threads/process-dies-while-handling-bp.exp: non_stop=on: cond_bp_target=0: inferior 1 exited
============================


*** Complete list of XFAILs for this builder ***

To obtain the list of XFAIL tests for this builder, go to:

	<http://git.sergiodj.net/?p=gdb-xfails.git;a=blob;f=xfails/Fedora-x86_64-cc-with-index/xfails/master/xfail;hb=50f8da9>

You can also see a pretty-printed version of the list, with more information
about each XFAIL, by going to:

	<http://git.sergiodj.net/?p=gdb-xfails.git;a=blob;f=xfails/Fedora-x86_64-cc-with-index/xfails/master/xfail.table;hb=50f8da9>




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Failures on Fedora-x86_64-native-extended-gdbserver-m32, branch master
  2017-10-26 15:54 [binutils-gdb] Target FP printing: Simplify and fix ui_printf sergiodj+buildbot
                   ` (5 preceding siblings ...)
  2017-10-27  8:11 ` Failures on Fedora-x86_64-cc-with-index, " sergiodj+buildbot
@ 2017-10-27  8:32 ` sergiodj+buildbot
  6 siblings, 0 replies; 8+ messages in thread
From: sergiodj+buildbot @ 2017-10-27  8:32 UTC (permalink / raw)
  To: gdb-testers

Buildslave:
	fedora-x86-64-3

Full Build URL:
	<http://gdb-build.sergiodj.net/builders/Fedora-x86_64-native-extended-gdbserver-m32/builds/7739>

Commit(s) tested:
	16e812b29e68c4a6fcad73b033716c4f385ce94f

Author(s) (in the same order as the commits):
	Ulrich Weigand <ulrich.weigand@de.ibm.com>

Subject:
	Target FP printing: Simplify and fix ui_printf

Testsuite log (gdb.sum and gdb.log) URL(s):
	<http://gdb-build.sergiodj.net/results/Fedora-x86_64-native-extended-gdbserver-m32/16/16e812b29e68c4a6fcad73b033716c4f385ce94f/>

*** Diff to previous build ***
============================
new FAIL: gdb.threads/attach-into-signal.exp: threaded: thread apply 2 print $_siginfo.si_signo
============================


*** Complete list of XFAILs for this builder ***

To obtain the list of XFAIL tests for this builder, go to:

	<http://git.sergiodj.net/?p=gdb-xfails.git;a=blob;f=xfails/Fedora-x86_64-native-extended-gdbserver-m32/xfails/master/xfail;hb=6adac21>

You can also see a pretty-printed version of the list, with more information
about each XFAIL, by going to:

	<http://git.sergiodj.net/?p=gdb-xfails.git;a=blob;f=xfails/Fedora-x86_64-native-extended-gdbserver-m32/xfails/master/xfail.table;hb=6adac21>




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-10-27  8:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-26 15:54 [binutils-gdb] Target FP printing: Simplify and fix ui_printf sergiodj+buildbot
2017-10-26 15:55 ` Failures on Fedora-s390x-m64, branch master sergiodj+buildbot
2017-10-27  0:53 ` Failures on Ubuntu-AArch64-m64, " sergiodj+buildbot
2017-10-27  6:50 ` Failures on Ubuntu-AArch32-native-extended-gdbserver-m32, " sergiodj+buildbot
2017-10-27  7:35 ` Failures on Fedora-x86_64-native-gdbserver-m32, " sergiodj+buildbot
2017-10-27  7:55 ` Failures on Fedora-x86_64-native-gdbserver-m64, " sergiodj+buildbot
2017-10-27  8:11 ` Failures on Fedora-x86_64-cc-with-index, " sergiodj+buildbot
2017-10-27  8:32 ` Failures on Fedora-x86_64-native-extended-gdbserver-m32, " sergiodj+buildbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).