diff options
author | Pedro Alves <palves@redhat.com> | 2016-04-12 16:49:31 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2016-04-12 16:57:56 +0100 |
commit | 99bbb428d4412b79e59df321f9e83c13342e4612 (patch) | |
tree | bbd4115320ef01b35ce52283c5b67b0460cbcd37 /gdb/ChangeLog | |
parent | 75ee59252d49dffb017905125cdf826f89a6baf9 (diff) | |
download | gdb-99bbb428d4412b79e59df321f9e83c13342e4612.zip gdb-99bbb428d4412b79e59df321f9e83c13342e4612.tar.gz gdb-99bbb428d4412b79e59df321f9e83c13342e4612.tar.bz2 |
ada-lang.c: Introduce type_as_string and use it
A couple wrong things here
- We should not use target_terminal_ours when all we want is output.
We should use target_terminal_ours_for_output instead, which
preserves raw/cooked terminal modes, and SIGINT forwarding.
- Most importantly, relying on stderr output immediately preceding
the error/exception print isn't correct. The exception could be
caught and handled, for example; MI frontends won't display the
stderr part in an error dialog box. Etc.
This commit introduces a type_as_string helper that allows building a
full error string including type info.
gdb/ChangeLog:
2016-04-12 Pedro Alves <palves@redhat.com>
* ada-lang.c (type_as_string, type_as_string_and_cleanup): New
functions.
(ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8fa4b02..8fd8ea8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2016-04-12 Pedro Alves <palves@redhat.com> + * ada-lang.c (type_as_string, type_as_string_and_cleanup): New + functions. + (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup. + +2016-04-12 Pedro Alves <palves@redhat.com> + * ser-base.c (fd_event): Retry read_prim on EINTR. (do_ser_base_readchar): Retry read_prim on EINTR. (ser_base_write): Retry write_prim on EINTR. |