2014-01-07 19:03:06 +00:00
|
|
|
|
2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
|
|
|
|
|
|
|
|
|
|
* source.c (add_path): Fix check for duplicated paths in the previously
|
|
|
|
|
included paths.
|
|
|
|
|
|
2014-01-07 03:25:10 +00:00
|
|
|
|
2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
|
|
|
|
|
|
|
|
|
|
* ada-lang.c: Remove duplicated include statements.
|
|
|
|
|
* alphabsd-nat.c: Ditto.
|
|
|
|
|
* amd64-darwin-tdep.c: Ditto.
|
|
|
|
|
* amd64fbsd-nat.c: Ditto.
|
|
|
|
|
* auto-load.c: Ditto.
|
|
|
|
|
* ax-gdb.c: Ditto.
|
|
|
|
|
* breakpoint.c: Ditto.
|
|
|
|
|
* dbxread.c: Ditto.
|
|
|
|
|
* fork-child.c: Ditto.
|
|
|
|
|
* gdb_usleep.c: Ditto.
|
|
|
|
|
* i386-darwin-tdep.c: Ditto.
|
|
|
|
|
* i386fbsd-nat.c: Ditto.
|
|
|
|
|
* infcmd.c: Ditto.
|
|
|
|
|
* inferior.c: Ditto.
|
|
|
|
|
* jv-lang.c: Ditto.
|
|
|
|
|
* linux-nat.c: Ditto.
|
|
|
|
|
* linux-tdep.c: Ditto.
|
|
|
|
|
* m68kbsd-nat.c: Ditto.
|
|
|
|
|
* m68klinux-nat.c: Ditto.
|
|
|
|
|
* microblaze-tdep.c: Ditto.
|
|
|
|
|
* mips-linux-tdep.c: Ditto.
|
|
|
|
|
* mn10300-tdep.c: Ditto.
|
|
|
|
|
* nto-tdep.c: Ditto.
|
|
|
|
|
* opencl-lang.c: Ditto.
|
|
|
|
|
* osdata.c: Ditto.
|
|
|
|
|
* printcmd.c: Ditto.
|
|
|
|
|
* regcache.c: Ditto.
|
|
|
|
|
* remote-m32r-sdi.c: Ditto.
|
|
|
|
|
* remote.c: Ditto.
|
|
|
|
|
* symfile.c: Ditto.
|
|
|
|
|
* symtab.c: Ditto.
|
|
|
|
|
* tilegx-linux-nat.c: Ditto.
|
|
|
|
|
* tilegx-tdep.c: Ditto.
|
|
|
|
|
* tracepoint.c: Ditto.
|
|
|
|
|
* valops.c: Ditto.
|
|
|
|
|
* vaxbsd-nat.c: Ditto.
|
|
|
|
|
* windows-nat.c: Ditto.
|
|
|
|
|
* xtensa-tdep.c: Ditto.
|
|
|
|
|
|
2014-01-07 09:28:48 +00:00
|
|
|
|
2014-01-07 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* spu-linux-nat.c (_initialize_spu_nat): Declare.
|
|
|
|
|
|
Ada: Fix missing call to pretty-printer for fields of records.
Consider the following types:
type Time_T is record
Secs : Integer;
end record;
Before : Time_T := (Secs => 1384395743);
In this example, we assume that type Time_T is the number of seconds
since Epoch, and so added a Python pretty-printer, to print this
type in a more human-friendly way. For instance:
(gdb) print before
$1 = Thu Nov 14 02:22:23 2013 (1384395743)
However, we've noticed that things stop working when this type is
embedded inside another record, and we try to print that record.
For instance, with the following declarations:
type Composite is record
Id : Integer;
T : Time_T;
end record;
Afternoon : Composite := (Id => 1, T => (Secs => 1384395865));
(gdb) print afternoon
$2 = (id => 1, t => (secs => 1384395865))
We expected instead:
(gdb) print afternoon
$2 = (id => 1, t => Thu Nov 14 02:24:25 2013 (1384395865))
This patch fixes the problem by making sure that we try to print
each field via a call to val_print, rather than calling ada_val_print
directly. We need to go through val_print, as the val_print
handles all language-independent features such as calling the
pretty-printer, knowing that ada_val_print will get called eventually
if actual Ada-specific printing is required (which should be the
most common scenario).
And because val_print takes the language as parameter, we enhanced
the print_field_values and print_variant_part to also take a language.
As a bonus, this allows us to remove a couple of references to
current_language.
gdb/ChangeLog:
* ada-valprint.c (print_field_values): Add "language" parameter.
Update calls to print_field_values and print_variant_part.
Pass new parameter "language" in call to val_print instead
of "current_language". Replace call to ada_val_print by call
to val_print.
(print_variant_part): Add "language" parameter.
(ada_val_print_struct_union): Update call to print_field_values.
gdb/testsuite/ChangeLog:
* gdb.ada/pp-rec-component.exp, gdb.ada/pp-rec-component.py,
gdb.ada/pp-rec-component/foo.adb, gdb.ada/pp-rec-component/pck.adb,
gdb.ada/pp-rec-component/pck.ads: New files.
2013-12-19 17:26:55 +00:00
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ada-valprint.c (print_field_values): Add "language" parameter.
|
|
|
|
|
Update calls to print_field_values and print_variant_part.
|
|
|
|
|
Pass new parameter "language" in call to val_print instead
|
|
|
|
|
of "current_language". Replace call to ada_val_print by call
|
|
|
|
|
to val_print.
|
|
|
|
|
(print_variant_part): Add "language" parameter.
|
|
|
|
|
(ada_val_print_struct_union): Update call to print_field_values.
|
|
|
|
|
|
2013-12-19 16:19:45 +00:00
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ada-valprint.c (ui_memcpy): Delete.
|
|
|
|
|
(ada_print_floating): Update documentation. Add empty line
|
|
|
|
|
between between function documentation and implementation.
|
|
|
|
|
Delete variable "buffer". Use ui_file_xstrdup in place of
|
|
|
|
|
ui_file_put. Minor adjustments following this change.
|
|
|
|
|
|
2013-12-19 16:06:46 +00:00
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ada-valprint.c (ada_val_print_string): New function,
|
|
|
|
|
extracted from ada_val_print_array.
|
|
|
|
|
(ada_val_print_array): Replace extracted code by call
|
|
|
|
|
to ada_val_print_string followed by a return. Move
|
|
|
|
|
"else" branch to the function's top block.
|
|
|
|
|
|
2013-12-19 15:43:57 +00:00
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ada-valprint.c (ada_val_print_array): Move implementation
|
|
|
|
|
down. Rename parameter "offset" and "val" into "offset_aligned"
|
|
|
|
|
and "original_value" respectively. Add parameter "offset".
|
|
|
|
|
|
2013-12-19 15:26:27 +00:00
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ada-valprint.c (ada_val_print_ref): Rewrite by mostly
|
|
|
|
|
re-organizing the code. Change the "???" message printed
|
|
|
|
|
when target type is a TYPE_CODE_UNDEF into
|
|
|
|
|
"<ref to undefined type>".
|
|
|
|
|
|
2013-12-19 15:11:49 +00:00
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ada-valprint.c (print_record): Delete, implementation inlined...
|
|
|
|
|
(ada_val_print_struct_union): ... here. Remove call to
|
|
|
|
|
ada_check_typedef in inlined implementation.
|
|
|
|
|
|
2013-12-19 12:30:43 +00:00
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ada-valprint.c (ada_val_print_gnat_array): New function,
|
|
|
|
|
extracted from ada_val_print_1;
|
|
|
|
|
(ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
|
|
|
|
|
(ada_val_print_flt, ada_val_print_struct_union)
|
|
|
|
|
(ada_val_print_ref): Likewise.
|
|
|
|
|
(ada_val_print_1): Delete variables i and elttype.
|
|
|
|
|
Replace extracted-out code by call to corresponding
|
|
|
|
|
new functions.
|
|
|
|
|
|
2013-12-19 11:48:39 +00:00
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
|
|
|
|
|
|
2013-12-19 11:27:00 +00:00
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ada-valprint.c (ada_val_print_1): Replace calls to
|
|
|
|
|
ada_val_print_1 by calls to val_print.
|
|
|
|
|
|
2013-12-19 10:33:20 +00:00
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ada-valprint.c (ada_val_print_1): Add parameter "language".
|
|
|
|
|
Update calls to self accordingly. Replace calls to c_val_print
|
|
|
|
|
by calls to val_print.
|
|
|
|
|
|
2013-12-19 10:05:16 +00:00
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ada-valprint.c (print_record): Delete declaration.
|
|
|
|
|
(adjust_type_signedness, ada_val_print_1): Likewise.
|
|
|
|
|
(ada_val_print): Move function implementation down.
|
|
|
|
|
(print_variant_part, print_field_values, print_record):
|
|
|
|
|
Move function implementation up.
|
|
|
|
|
|
2013-12-23 03:18:51 +00:00
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* python/py-type.c (typy_get_name): New function.
|
|
|
|
|
(type_object_getset): Add entry for attribute "name".
|
|
|
|
|
* NEWS: Add entry mentioning this new attribute.
|
|
|
|
|
|
2014-01-05 11:32:51 +00:00
|
|
|
|
2014-01-07 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
|
|
|
|
|
statement.
|
|
|
|
|
|
2014-01-05 11:36:51 +00:00
|
|
|
|
2014-01-07 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* gnu-nat.c (info_port_rights): Add qualifier const to
|
|
|
|
|
argument args.
|
|
|
|
|
|
2014-01-05 11:37:53 +00:00
|
|
|
|
2014-01-07 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* gnu-nat.c (trace_me): Use 'void' for empty argument list.
|
|
|
|
|
|
2014-01-05 11:36:03 +00:00
|
|
|
|
2014-01-07 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* gnu-nat.c (make_inf) Update declaration.
|
|
|
|
|
(make_inf): Make it static.
|
|
|
|
|
(inf_set_traced): Likewise.
|
|
|
|
|
(inf_port_to_thread, inf_task_died_status): Likewise.
|
|
|
|
|
|
2014-01-05 07:38:44 +00:00
|
|
|
|
2014-01-07 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* gnu-nat.c (inf_tid_to_proc): Remove declaration.
|
|
|
|
|
|
2014-01-05 07:05:44 +00:00
|
|
|
|
2014-01-07 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* gnu-nat.c (_initialize_gnu_nat): Declare.
|
|
|
|
|
|
2014-01-02 03:02:56 +00:00
|
|
|
|
2014-01-07 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* gdbarch.sh (byte_order, byte_order_for_code): Change type to
|
|
|
|
|
'enum bfd_endian'.
|
|
|
|
|
(struct gdbarch_info) <byte_order>: Change type to
|
|
|
|
|
'enum bfd_endian'.
|
|
|
|
|
<byte_order_for_code>: Likewise.
|
|
|
|
|
* gdbarch.c, gdbarch.h: Regenerated.
|
|
|
|
|
|
2014-01-06 21:57:59 +00:00
|
|
|
|
2014-01-06 Sasha Smundak <asmundak@google.com>
|
|
|
|
|
|
|
|
|
|
* jit.c: (jit_reader_load_command): Fix JIT reader path creation.
|
|
|
|
|
|
2013-12-29 09:39:28 +00:00
|
|
|
|
2014-01-06 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* doublest.c (convert_doublest_to_floatformat): Use const, not
|
|
|
|
|
CONST.
|
|
|
|
|
* somread.c (som_symtab_read): Likewise.
|
|
|
|
|
|
2014-01-06 16:24:41 +00:00
|
|
|
|
2014-01-07 Hui Zhu <hui@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* gdb_bfd.c (gdb_bfd_stash_filename): Removed.
|
|
|
|
|
(gdb_bfd_open): Removed gdb_bfd_stash_filename.
|
|
|
|
|
(gdb_bfd_fopen): Ditto.
|
|
|
|
|
(gdb_bfd_openr): Ditto.
|
|
|
|
|
(gdb_bfd_openw): Ditto.
|
|
|
|
|
(gdb_bfd_openr_iovec): Ditto.
|
|
|
|
|
(gdb_bfd_fdopenr): Ditto.
|
|
|
|
|
* gdb_bfd.h (gdb_bfd_stash_filename): Removed.
|
|
|
|
|
* solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
|
|
|
|
|
with xstrdup.
|
|
|
|
|
* solib-darwin.c (darwin_bfd_open): Alloc res->filename
|
|
|
|
|
with xstrdup.
|
|
|
|
|
* symfile-mem.c (symbol_file_add_from_memory): Removed
|
|
|
|
|
gdb_bfd_stash_filename.
|
|
|
|
|
|
2014-01-03 22:34:45 +00:00
|
|
|
|
2014-01-03 Doug Evans <dje@google.com>
|
|
|
|
|
|
|
|
|
|
* nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
|
|
|
|
|
output.
|
|
|
|
|
|
2014-01-01 03:57:03 +00:00
|
|
|
|
2014-01-01 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
Update year range in copyright notice of all files.
|
|
|
|
|
|
2014-01-01 03:39:44 +00:00
|
|
|
|
2014-01-01 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* top.c (print_gdb_version): Set copyright year to 2014.
|
|
|
|
|
|
2014-01-01 03:34:22 +00:00
|
|
|
|
2014-01-01 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
|
|
|
|
|
|
2014-01-01 03:31:51 +00:00
|
|
|
|
For older changes see ChangeLog-2013.
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
|
|
Local Variables:
|
|
|
|
|
mode: change-log
|
|
|
|
|
left-margin: 8
|
|
|
|
|
fill-column: 74
|
|
|
|
|
version-control: never
|
2007-08-09 22:44:38 +00:00
|
|
|
|
coding: utf-8
|
1999-04-16 01:35:26 +00:00
|
|
|
|
End:
|