public inbox for archer-commits@sourceware.org help / color / mirror / Atom feed
From: jkratoch@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] master: Merge remote branch 'gdb/master' Date: Sat, 29 Jan 2011 16:44:00 -0000 [thread overview] Message-ID: <20110129164406.10221.qmail@sourceware.org> (raw) The branch, master has been updated via c69ed139ec1eec85094a8ec40a6c17c86e8abe9b (commit) via 45e20c083dd51b6c2be3dfaa3563faf8d1686338 (commit) via b2b6edb30a20dc33473a84a756fffb0b577eee9e (commit) via 09c4808efa5b1afd220d577524ddad1483f85e03 (commit) via 98e6e176de721ed19b7583b2c312dff94808d261 (commit) via b4dcc5dda364c7759cb3a6ec8abbe9ab8f691c7e (commit) via 9a4b75ebfdfb930c477b89e53df31ba4bf9a6054 (commit) via 11d7271d2ab3f498297741d8b17b1d64629c7675 (commit) via 7a7b9ec1affc904a48d557920b6c81a31cb73f5e (commit) via 4f44044e5d621d70c5e82fc909b5fd59ffef8928 (commit) via 9bb94168b34dc266a9e8b253b5f19164a2f5d75c (commit) via 1ab50ed04640393c7a8bb8cf9e7ec85f1624da13 (commit) via 8304f3d125c4f81a2738493322dceeaab885bda8 (commit) via 5da312374e85ee40d05b5e2e819f73eab0004fb4 (commit) via 1e5bbf3b1790d01311bd3f4d214264f5ee6898f3 (commit) via 79237642eef6597134ac80981786cce1e22a53ba (commit) via 5445cfa30be6c748eed315a3d4f8ccf9837dbeda (commit) via c907ddf5a0bb23b61d49433d34f9a4ae13984bcb (commit) via 6036748e86813b227838f980f7f43f3d896ac301 (commit) via 1580ae79702222958e97a7c656b6c55b42356d5b (commit) via 1bfe58a48a4796dc90557daa15980ad432fa202c (commit) via c2ed5aba0c82a5e578071c4c8db2167b56c0647d (commit) via c90ad9012c856f50d8fa34f3aa733933bde15b63 (commit) via 7c29bb2e4cedfa8fcd791dc4b30011eb089b828c (commit) via d17b6ddf92ac5c99ff72803ef69d485a2e1987be (commit) via 4ea65719af9ba2c32d6b2a3d9914a0921da26130 (commit) via e4a1a8c226fdb4dd0333417cd8e3f01f208aa28f (commit) via c74c83004c5caecce726d76cdad661b7c2815d3c (commit) via 9dcf513c5352404803bb7ed31a083693d94f9847 (commit) via 03faa7d4e4e68bd1ae62cb40930019f8947f6f3d (commit) via a5ef5cee8f062d0e83f8763214de964556dd6968 (commit) via 9a764ccdbb08dbff53e357579266bd094cb924d9 (commit) from 916481a3b2b859c4fabd3ffc5005bee15a611d6d (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit c69ed139ec1eec85094a8ec40a6c17c86e8abe9b Merge: 916481a 45e20c0 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Sat Jan 29 17:43:51 2011 +0100 Merge remote branch 'gdb/master' commit 45e20c083dd51b6c2be3dfaa3563faf8d1686338 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Sat Jan 29 10:30:19 2011 +0000 gdb/ Fix crash. * valops.c (compare_parameters): Verify TYPE_NFIELDS before touching TYPE_FIELD_ARTIFICIAL. gdb/testsuite/ * gdb.cp/noparam.exp: New file. * gdb.cp/noparam.cc: New file. commit b2b6edb30a20dc33473a84a756fffb0b577eee9e Author: Joseph Myers <jsm@polyomino.org.uk> Date: Sat Jan 29 00:12:48 2011 +0000 * elf32-ppc.c (ppc_elf_link_hash_newfunc): Initialize has_sda_refs field. commit 09c4808efa5b1afd220d577524ddad1483f85e03 Author: gdbadmin <gdbadmin@sourceware.org> Date: Sat Jan 29 00:00:03 2011 +0000 *** empty log message *** commit 98e6e176de721ed19b7583b2c312dff94808d261 Author: Alan Modra <amodra@bigpond.net.au> Date: Fri Jan 28 23:00:04 2011 +0000 daily update commit b4dcc5dda364c7759cb3a6ec8abbe9ab8f691c7e Author: Richard Earnshaw <richard.earnshaw@arm.com> Date: Fri Jan 28 16:32:26 2011 +0000 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized Committers. commit 9a4b75ebfdfb930c477b89e53df31ba4bf9a6054 Author: Pedro Alves <pedro@codesourcery.com> Date: Fri Jan 28 16:18:53 2011 +0000 gdb/ * tracepoint.c (tfile_xfer_partial): If there's no traceframe selected, don't try iterating over the traceframe's blocks. (tfile_has_stack): If there's no traceframe selected, then there's no stack. (tfile_has_registers): If there's no traceframe selected, then there's no registers. gdb/testsuite/ * gdb.trace/tfile.exp: Test that with no traceframe selected, there's no stack or registers. commit 11d7271d2ab3f498297741d8b17b1d64629c7675 Author: Pedro Alves <pedro@codesourcery.com> Date: Fri Jan 28 16:00:15 2011 +0000 gdb/ * target.c (memory_xfer_partial): No need to restore shadows if we haven't read anything. commit 7a7b9ec1affc904a48d557920b6c81a31cb73f5e Author: Pedro Alves <pedro@codesourcery.com> Date: Fri Jan 28 15:42:00 2011 +0000 gdb/ * mips-tdep.c (mips_print_register): Use get_frame_register_value and val_print_scalar_formatted. commit 4f44044e5d621d70c5e82fc909b5fd59ffef8928 Author: Pedro Alves <pedro@codesourcery.com> Date: Fri Jan 28 13:36:31 2011 +0000 gdb/gdbserver/ * regcache.c (init_register_cache): Initialize regcache->register_status. (free_register_cache): Release regcache->register_status. (regcache_cpy): Copy register_status. (registers_to_string): Print 'x's for unavailable registers. (supply_register): Mark the register's status valid or unavailable, depending on whether a buffer was passed in or not. (supply_register_zeroed): New. (supply_regblock): Mark the registers' status valid or unavailable, depending on whether a buffer was passed in or not. * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines. (struct regcache): New `register_status' field. (supply_register_zeroed): Declare. * i387-fp.c (i387_xsave_to_cache): Zero out registers using supply_register_zeroed, rather than passing a NULL buffer to supply_register. * tracepoint.c (fetch_traceframe_registers): Update comment. commit 9bb94168b34dc266a9e8b253b5f19164a2f5d75c Author: Pedro Alves <pedro@codesourcery.com> Date: Fri Jan 28 12:58:00 2011 +0000 2011-01-28 Pedro Alves <pedro@codesourcery.com> * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register buffer explicit. commit 1ab50ed04640393c7a8bb8cf9e7ec85f1624da13 Author: gdbadmin <gdbadmin@sourceware.org> Date: Fri Jan 28 00:00:33 2011 +0000 *** empty log message *** commit 8304f3d125c4f81a2738493322dceeaab885bda8 Author: Alan Modra <amodra@bigpond.net.au> Date: Thu Jan 27 23:00:05 2011 +0000 daily update commit 5da312374e85ee40d05b5e2e819f73eab0004fb4 Author: Pedro Alves <pedro@codesourcery.com> Date: Thu Jan 27 21:39:23 2011 +0000 gdb/ * tracepoint.c (tfile_read): New. (tfile_open): Use it. (tfile_get_traceframe_address): Use it. (tfile_trace_find): Use it. (walk_blocks_callback_func): New typedef. (match_blocktype): New function. (traceframe_walk_blocks): New function. (traceframe_find_block_type): New function. (tfile_fetch_registers, tfile_xfer_partial) (tfile_get_trace_state_variable_value): Use traceframe_find_block_type and tfile_read. commit 1e5bbf3b1790d01311bd3f4d214264f5ee6898f3 Author: gdbadmin <gdbadmin@sourceware.org> Date: Thu Jan 27 00:00:05 2011 +0000 *** empty log message *** commit 79237642eef6597134ac80981786cce1e22a53ba Author: Kevin Buettner <kevinb@redhat.com> Date: Wed Jan 26 23:13:20 2011 +0000 * remote-mips.c: Add internationalization mark ups. Remove trailing \n from already marked up strings. commit 5445cfa30be6c748eed315a3d4f8ccf9837dbeda Author: Alan Modra <amodra@bigpond.net.au> Date: Wed Jan 26 23:00:06 2011 +0000 daily update commit c907ddf5a0bb23b61d49433d34f9a4ae13984bcb Author: Tom Tromey <tromey@redhat.com> Date: Wed Jan 26 20:58:48 2011 +0000 gdb * python/py-prettyprint.c (print_string_repr): Clear 'addressprint' option when calling val_print_string. (print_children): Handle Val_pretty_default. Clear 'addressprint' option when calling val_print_string. gdb/testsuite * gdb.python/py-prettyprint.exp (run_lang_tests): Ensure no blank space before string output. Add test for "set print pretty off" case. commit 6036748e86813b227838f980f7f43f3d896ac301 Author: Tom Tromey <tromey@redhat.com> Date: Wed Jan 26 20:53:43 2011 +0000 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and GDB_PY_LL_ARG. * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New macros. (gdb_py_longest, gdb_py_ulongest): New typedefs. (gdb_py_long_from_longest, gdb_py_long_from_ulongest) (gdb_py_long_as_ulongest): New defines. (gdb_py_object_from_longest, gdb_py_object_from_ulongest) (gdb_py_int_as_long): Declare. * python/py-value.c (valpy_lazy_string): Use gdb_py_longest, GDB_PY_LL_ARG, gdb_py_object_from_longest. (valpy_long): Add comment. * python/py-utils.c (get_addr_from_python): Use gdb_py_long_as_ulongest. Handle overflow properly. (gdb_py_object_from_longest): New function. (gdb_py_object_from_ulongest): Likewise. (gdb_py_int_as_long): Likewise. * python/py-type.c (typy_array): Use gdb_py_int_as_long. * python/py-symtab.c (salpy_get_pc): Use gdb_py_long_from_ulongest. (salpy_get_line): Use PyInt_FromLong. * python/py-param.c (set_parameter_value): Use gdb_py_int_as_long. * python/py-lazy-string.c (stpy_get_address): Use gdb_py_long_from_ulongest. * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest. * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long. * python/py-breakpoint.c (bppy_set_thread): Use gdb_py_int_as_long. (bppy_set_task): Likewise. (bppy_set_ignore_count): Likewise. (bppy_set_hit_count): Likewise. * python/py-block.c (blpy_get_start): Use gdb_py_object_from_ulongest. (blpy_get_end): Likewise. (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG. commit 1580ae79702222958e97a7c656b6c55b42356d5b Author: Thiago Jung Bauermann <bauerman@br.ibm.com> Date: Wed Jan 26 01:55:18 2011 +0000 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr> PR/symtab 11766: * gdb/objfiles.h (struct objfile) <addr_low>: New field. * gdb/solib.c (solib_read_symbols): Check for addr_low in equality test for objfile, initialize addr_low if needed. commit 1bfe58a48a4796dc90557daa15980ad432fa202c Author: gdbadmin <gdbadmin@sourceware.org> Date: Wed Jan 26 00:00:02 2011 +0000 *** empty log message *** commit c2ed5aba0c82a5e578071c4c8db2167b56c0647d Author: Alan Modra <amodra@bigpond.net.au> Date: Tue Jan 25 23:00:05 2011 +0000 daily update commit c90ad9012c856f50d8fa34f3aa733933bde15b63 Author: Pedro Alves <pedro@codesourcery.com> Date: Tue Jan 25 18:18:12 2011 +0000 * tui/tui-regs.c (tui_register_format): Remove dead code. commit 7c29bb2e4cedfa8fcd791dc4b30011eb089b828c Author: Pedro Alves <pedro@codesourcery.com> Date: Tue Jan 25 17:58:58 2011 +0000 * printcmd.c (print_formatted): Use val_print_scalar_formatted instead of print_scalar_formatted. (print_scalar_formatted): Don't handle 's' format strings here, and add an assertion that we never see such format here. * valprint.h (val_print_scalar_formatted): Declare. * valprint.c (val_print_scalar_formatted): New. * c-valprint.c (c_val_print): Use val_print_scalar_formatted instead of print_scalar_formatted. * jv-valprint.c (java_val_print): Ditto. * p-valprint.c (pascal_val_print): Ditto. * ada-valprint.c (ada_val_print_1): Ditto. * f-valprint.c (f_val_print): Ditto. * infcmd.c (registers_info): Ditto. * m2-valprint.c (m2_val_print): Ditto. commit d17b6ddf92ac5c99ff72803ef69d485a2e1987be Author: Pedro Alves <pedro@codesourcery.com> Date: Tue Jan 25 17:43:28 2011 +0000 * m2-valprint.c (print_unbounded_array): Pass value_contents_for_printing rather than value_contents, to m2_print_array_contents. Also pass in the value. commit 4ea65719af9ba2c32d6b2a3d9914a0921da26130 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Tue Jan 25 17:25:10 2011 +0000 gdb/ * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index) (save_gdb_index_command): Switch to .gdb_index version 4. commit e4a1a8c226fdb4dd0333417cd8e3f01f208aa28f Author: Pedro Alves <pedro@codesourcery.com> Date: Tue Jan 25 17:00:23 2011 +0000 * mi/mi-main.c (get_register): Use get_frame_register_value rather than frame_register, and always pass a valid value to val_print. commit c74c83004c5caecce726d76cdad661b7c2815d3c Author: Pedro Alves <pedro@codesourcery.com> Date: Tue Jan 25 16:26:11 2011 +0000 Centralize printing "<optimized out>". gdb/ * valprint.h (val_print_optimized_out): Declare. * cp-valprint.c (cp_print_value_fields): Use val_print_optimized_out. * jv-valprint.c (java_print_value_fields): Ditto. * p-valprint.c (pascal_object_print_value_fields): Ditto. * printcmd.c (print_formatted): Ditto. * valprint.c (valprint_check_validity): Ditto. (value_check_printable): Ditto. (val_print_optimized_out): New. gdb/doc/ * gdb.texinfo: s/value optimized out/optimized out/g gdb/testsuite/ * gdb.base/frame-args.exp: Adjust. * gdb.dwarf2/dw2-noloc.exp: Adjust. * gdb.dwarf2/dw2-inline-param.exp: Adjust. * gdb.dwarf2/pieces.exp: Adjust. * gdb.opt/clobbered-registers-O2.exp: Adjust. * gdb.opt/inline-locals.exp: Adjust. * gdb.threads/fork-child-threads.exp: Adjust. commit 9dcf513c5352404803bb7ed31a083693d94f9847 Author: kwerner <kwerner> Date: Tue Jan 25 16:10:26 2011 +0000 gdb/testsuite/ChangeLog 2011-01-25 Ken Werner <ken.werner@de.ibm.com> * gdb.opencl/convs_casts.cl: Move program scope variables into the OpenCL kernel function. Add a comment as marker. Add address space qualifiers for the remaining program scope variables. * gdb.opencl/datatypes.cl: Likewise. * gdb.opencl/operators.cl: Likewise. * gdb.opencl/vec_comps.cl: Likewise. * gdb.opencl/convs_casts.exp: Replace gdb_test_multiple by gdb_test. Add breakpoint at the marker comment. * gdb.opencl/datatypes.exp: Likewise. * gdb.opencl/operators.exp: Likewise. * gdb.opencl/vec_comps.exp: Likewise. commit 03faa7d4e4e68bd1ae62cb40930019f8947f6f3d Author: Pedro Alves <pedro@codesourcery.com> Date: Tue Jan 25 15:47:57 2011 +0000 gdb/ * infcmd.c (default_print_registers_info): Allocate values so to never pass a NULL value to val_print. commit a5ef5cee8f062d0e83f8763214de964556dd6968 Author: Pedro Alves <pedro@codesourcery.com> Date: Tue Jan 25 15:18:34 2011 +0000 * cp-valprint.c (cp_print_value): Treat the 'skip' local as boolean. Make sure to always pass a value that matches the contents buffer to callees. Preserve `address' for following iterations. * value.c (value_contents_for_printing_const): New. (value_address): Constify value argument. * value.h (value_contents_for_printing_const): Declare. (value_address): Constify value argument. commit 9a764ccdbb08dbff53e357579266bd094cb924d9 Author: Pedro Alves <pedro@codesourcery.com> Date: Tue Jan 25 12:47:24 2011 +0000 * regcache.c (struct regcache_descr): Rename sizeof_raw_register_valid_p field to sizeof_raw_register_status, and sizeof_cooked_register_valid_p to sizeof_cooked_register_status. (init_regcache_descr): Adjust. (struct regcache): Rename register_valid_p field to register_status. (regcache_xmalloc_1, regcache_xfree, regcache_save) (do_cooked_read): Adjust. (regcache_valid_p): Rename to ... (regcache_register_status): ... this. Adjust. (regcache_invalidate): Adjust. (regcache_raw_read, regcache_cooked_read, regcache_raw_write): Adjust. (regcache_raw_supply): Adjust. If buf i NULL, mark the register as unavailable, not valid. (regcache_dump): Adjust. * regcache.h (enum register_status): New. (regcache_register_status): Declare. (regcache_invalidate): Delete declaration. * corelow.c (get_core_registers): Adjust. * tracepoint.c (tfile_fetch_registers): Adjust. * trad-frame.c (REG_VALUE): Rename to ... (TF_REG_VALUE): ... this. (REG_UNKNOWN): Rename to ... (TF_REG_UNKNOWN): ... this. (trad_frame_set_value, trad_frame_set_unknown): Adjust. * mi/mi-main.c (register_changed_p): Adjust. ----------------------------------------------------------------------- Summary of changes: bfd/ChangeLog | 5 + bfd/elf32-ppc.c | 1 + bfd/version.h | 2 +- gdb/ChangeLog | 200 +++++++++++ gdb/MAINTAINERS | 2 +- gdb/ada-valprint.c | 12 +- gdb/c-valprint.c | 56 ++-- gdb/corelow.c | 4 +- gdb/cp-valprint.c | 39 ++- gdb/doc/ChangeLog | 4 + gdb/doc/gdb.texinfo | 8 +- gdb/dwarf2read.c | 13 +- gdb/f-valprint.c | 24 +- gdb/gdbserver/ChangeLog | 25 ++ gdb/gdbserver/i387-fp.c | 54 ++-- gdb/gdbserver/regcache.c | 87 +++++- gdb/gdbserver/regcache.h | 18 + gdb/gdbserver/tracepoint.c | 3 +- gdb/infcmd.c | 45 ++- gdb/jv-valprint.c | 12 +- gdb/m2-valprint.c | 33 +- gdb/mi/mi-main.c | 21 +- gdb/mips-tdep.c | 20 +- gdb/objfiles.h | 2 + gdb/p-valprint.c | 36 +- gdb/printcmd.c | 28 +- gdb/python/py-block.c | 8 +- gdb/python/py-breakpoint.c | 32 ++- gdb/python/py-cmd.c | 9 +- gdb/python/py-frame.c | 2 +- gdb/python/py-lazy-string.c | 2 +- gdb/python/py-param.c | 4 +- gdb/python/py-prettyprint.c | 18 +- gdb/python/py-symtab.c | 4 +- gdb/python/py-type.c | 8 +- gdb/python/py-utils.c | 86 ++++-- gdb/python/py-value.c | 19 +- gdb/python/python-internal.h | 30 ++ gdb/python/python.c | 13 +- gdb/regcache.c | 89 +++--- gdb/regcache.h | 23 ++- gdb/remote-mips.c | 62 ++-- gdb/solib.c | 4 +- gdb/target.c | 2 +- gdb/testsuite/ChangeLog | 40 +++ gdb/testsuite/gdb.base/frame-args.exp | 2 +- gdb/testsuite/gdb.cp/noparam.cc | 29 ++ gdb/testsuite/gdb.cp/noparam.exp | 21 ++ gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp | 2 +- gdb/testsuite/gdb.dwarf2/dw2-noloc.exp | 26 +- gdb/testsuite/gdb.dwarf2/pieces.exp | 2 +- gdb/testsuite/gdb.opencl/convs_casts.cl | 38 ++- gdb/testsuite/gdb.opencl/convs_casts.exp | 14 +- gdb/testsuite/gdb.opencl/datatypes.cl | 152 +++++----- gdb/testsuite/gdb.opencl/datatypes.exp | 14 +- gdb/testsuite/gdb.opencl/operators.cl | 122 ++++---- gdb/testsuite/gdb.opencl/operators.exp | 14 +- gdb/testsuite/gdb.opencl/vec_comps.cl | 38 ++- gdb/testsuite/gdb.opencl/vec_comps.exp | 14 +- gdb/testsuite/gdb.opt/clobbered-registers-O2.exp | 4 +- gdb/testsuite/gdb.opt/inline-locals.exp | 4 +- gdb/testsuite/gdb.python/py-prettyprint.exp | 7 +- gdb/testsuite/gdb.threads/fork-child-threads.exp | 2 +- gdb/testsuite/gdb.trace/tfile.exp | 8 + gdb/tracepoint.c | 387 ++++++++++------------ gdb/trad-frame.c | 8 +- gdb/tui/tui-regs.c | 18 +- gdb/valops.c | 2 +- gdb/valprint.c | 51 +++- gdb/valprint.h | 9 + gdb/value.c | 9 +- gdb/value.h | 8 +- gdb/version.in | 2 +- 73 files changed, 1409 insertions(+), 807 deletions(-) create mode 100644 gdb/testsuite/gdb.cp/noparam.cc create mode 100644 gdb/testsuite/gdb.cp/noparam.exp First 500 lines of diff: diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 9bbd329..c643fb7 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2011-01-28 Joseph Myers <joseph@codesourcery.com> + + * elf32-ppc.c (ppc_elf_link_hash_newfunc): Initialize has_sda_refs + field. + 2011-01-22 Richard Sandiford <rdsandiford@googlemail.com> * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Ignore diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index 77a9d1e..fcbfa83 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -2785,6 +2785,7 @@ ppc_elf_link_hash_newfunc (struct bfd_hash_entry *entry, ppc_elf_hash_entry (entry)->linker_section_pointer = NULL; ppc_elf_hash_entry (entry)->dyn_relocs = NULL; ppc_elf_hash_entry (entry)->tls_mask = 0; + ppc_elf_hash_entry (entry)->has_sda_refs = 0; } return entry; diff --git a/bfd/version.h b/bfd/version.h index 14ba307..cfc6b61 100644 --- a/bfd/version.h +++ b/bfd/version.h @@ -1,4 +1,4 @@ -#define BFD_VERSION_DATE 20110125 +#define BFD_VERSION_DATE 20110129 #define BFD_VERSION @bfd_version@ #define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@ #define REPORT_BUGS_TO @report_bugs_to@ diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0aeb5b7..a164d82 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,203 @@ +2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com> + + Fix crash. + * valops.c (compare_parameters): Verify TYPE_NFIELDS before + touching TYPE_FIELD_ARTIFICIAL. + +2011-01-28 Richard Earnshaw <rearnsha@arm.com> + + * MAINTAINERS: Move myself from Responsible Maintainers to Authorized + Committers. + +2011-01-28 Pedro Alves <pedro@codesourcery.com> + + * tracepoint.c (tfile_xfer_partial): If there's no traceframe + selected, don't try iterating over the traceframe's blocks. + (tfile_has_stack): If there's no traceframe selected, then there's + no stack. + (tfile_has_registers): If there's no traceframe selected, then + there's no registers. + +2011-01-28 Pedro Alves <pedro@codesourcery.com> + + * target.c (memory_xfer_partial): No need to restore shadows if we + haven't read anything. + +2011-01-28 Pedro Alves <pedro@codesourcery.com> + + * mips-tdep.c (mips_print_register): Use get_frame_register_value + and val_print_scalar_formatted. + +2011-01-27 Pedro Alves <pedro@codesourcery.com> + + * tracepoint.c (tfile_read): New. + (tfile_open): Use it. + (tfile_get_traceframe_address): Use it. + (tfile_trace_find): Use it. + (walk_blocks_callback_func): New typedef. + (match_blocktype): New function. + (traceframe_walk_blocks): New function. + (traceframe_find_block_type): New function. + (tfile_fetch_registers, tfile_xfer_partial) + (tfile_get_trace_state_variable_value): Use + traceframe_find_block_type and tfile_read. + +2011-01-26 Kevin Buettner <kevinb@redhat.com> + + * remote-mips.c: Add internationalization mark ups. Remove + trailing \n from already marked up strings. + +2011-01-26 Tom Tromey <tromey@redhat.com> + + * python/py-prettyprint.c (print_string_repr): Clear + 'addressprint' option when calling val_print_string. + (print_children): Handle Val_pretty_default. Clear 'addressprint' + option when calling val_print_string. + +2011-01-26 Tom Tromey <tromey@redhat.com> + + * python/python.c (gdbpy_solib_name): Use gdb_py_longest and + GDB_PY_LL_ARG. + * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New + macros. + (gdb_py_longest, gdb_py_ulongest): New typedefs. + (gdb_py_long_from_longest, gdb_py_long_from_ulongest) + (gdb_py_long_as_ulongest): New defines. + (gdb_py_object_from_longest, gdb_py_object_from_ulongest) + (gdb_py_int_as_long): Declare. + * python/py-value.c (valpy_lazy_string): Use gdb_py_longest, + GDB_PY_LL_ARG, gdb_py_object_from_longest. + (valpy_long): Add comment. + * python/py-utils.c (get_addr_from_python): Use + gdb_py_long_as_ulongest. Handle overflow properly. + (gdb_py_object_from_longest): New function. + (gdb_py_object_from_ulongest): Likewise. + (gdb_py_int_as_long): Likewise. + * python/py-type.c (typy_array): Use gdb_py_int_as_long. + * python/py-symtab.c (salpy_get_pc): Use + gdb_py_long_from_ulongest. + (salpy_get_line): Use PyInt_FromLong. + * python/py-param.c (set_parameter_value): Use + gdb_py_int_as_long. + * python/py-lazy-string.c (stpy_get_address): Use + gdb_py_long_from_ulongest. + * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest. + * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long. + * python/py-breakpoint.c (bppy_set_thread): Use + gdb_py_int_as_long. + (bppy_set_task): Likewise. + (bppy_set_ignore_count): Likewise. + (bppy_set_hit_count): Likewise. + * python/py-block.c (blpy_get_start): Use + gdb_py_object_from_ulongest. + (blpy_get_end): Likewise. + (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG. + +2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr> + + PR/symtab 11766: + * gdb/objfiles.h (struct objfile) <addr_low>: New field. + * gdb/solib.c (solib_read_symbols): Check for addr_low in + equality test for objfile, initialize addr_low if needed. + +2011-01-25 Pedro Alves <pedro@codesourcery.com> + + * tui/tui-regs.c (tui_register_format): Remove dead code. + +2011-01-25 Pedro Alves <pedro@codesourcery.com> + + * printcmd.c (print_formatted): Use val_print_scalar_formatted + instead of print_scalar_formatted. + (print_scalar_formatted): Don't handle 's' format strings here, + and add an assertion that we never see such format here. + * valprint.h (val_print_scalar_formatted): Declare. + * valprint.c (val_print_scalar_formatted): New. + * c-valprint.c (c_val_print): Use val_print_scalar_formatted + instead of print_scalar_formatted. + * jv-valprint.c (java_val_print): Ditto. + * p-valprint.c (pascal_val_print): Ditto. + * ada-valprint.c (ada_val_print_1): Ditto. + * f-valprint.c (f_val_print): Ditto. + * infcmd.c (registers_info): Ditto. + * m2-valprint.c (m2_val_print): Ditto. + +2011-01-25 Pedro Alves <pedro@codesourcery.com> + + * m2-valprint.c (print_unbounded_array): Pass + value_contents_for_printing rather than value_contents, to + m2_print_array_contents. Also pass in the value. + +2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com> + + * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index) + (save_gdb_index_command): Switch to .gdb_index version 4. + +2011-01-25 Pedro Alves <pedro@codesourcery.com> + + * mi/mi-main.c (get_register): Use get_frame_register_value rather + than frame_register, and always pass a valid value to val_print. + +2011-01-25 Pedro Alves <pedro@codesourcery.com> + + Centralize printing "<optimized out>". + + * valprint.h (val_print_optimized_out): Declare. + * cp-valprint.c (cp_print_value_fields): Use + val_print_optimized_out. + * jv-valprint.c (java_print_value_fields): Ditto. + * p-valprint.c (pascal_object_print_value_fields): Ditto. + * printcmd.c (print_formatted): Ditto. + * valprint.c (valprint_check_validity): Ditto. + (value_check_printable): Ditto. + (val_print_optimized_out): New. + +2011-01-25 Pedro Alves <pedro@codesourcery.com> + + * infcmd.c (default_print_registers_info): Allocate values so to + never pass a NULL value to val_print. + +2011-01-25 Pedro Alves <pedro@codesourcery.com> + + * cp-valprint.c (cp_print_value): Treat the 'skip' local as + boolean. Make sure to always pass a value that matches the + contents buffer to callees. Preserve `address' for following + iterations. + * value.c (value_contents_for_printing_const): New. + (value_address): Constify value argument. + * value.h (value_contents_for_printing_const): Declare. + (value_address): Constify value argument. + +2011-01-25 Pedro Alves <pedro@codesourcery.com> + + * regcache.c (struct regcache_descr): Rename + sizeof_raw_register_valid_p field to sizeof_raw_register_status, + and sizeof_cooked_register_valid_p to + sizeof_cooked_register_status. + (init_regcache_descr): Adjust. + (struct regcache): Rename register_valid_p field to + register_status. + (regcache_xmalloc_1, regcache_xfree, regcache_save) + (do_cooked_read): Adjust. + (regcache_valid_p): Rename to ... + (regcache_register_status): ... this. Adjust. + (regcache_invalidate): Adjust. + (regcache_raw_read, regcache_cooked_read, regcache_raw_write): + Adjust. + (regcache_raw_supply): Adjust. If buf i NULL, mark the register + as unavailable, not valid. + (regcache_dump): Adjust. + * regcache.h (enum register_status): New. + (regcache_register_status): Declare. + (regcache_invalidate): Delete declaration. + * corelow.c (get_core_registers): Adjust. + * tracepoint.c (tfile_fetch_registers): Adjust. + * trad-frame.c (REG_VALUE): Rename to ... + (TF_REG_VALUE): ... this. + (REG_UNKNOWN): Rename to ... + (TF_REG_UNKNOWN): ... this. + (trad_frame_set_value, trad_frame_set_unknown): Adjust. + * mi/mi-main.c (register_changed_p): Adjust. + 2011-01-25 Pedro Alves <pedro@codesourcery.com> * regcache.c (struct regcache_descr): Remove outdated comment. diff --git a/gdb/MAINTAINERS b/gdb/MAINTAINERS index e739838..3f5c696 100644 --- a/gdb/MAINTAINERS +++ b/gdb/MAINTAINERS @@ -255,7 +255,6 @@ the native maintainer when resolving ABI issues. alpha --target=alpha-elf ,-Werror arm --target=arm-elf ,-Werror - Richard Earnshaw rearnsha@arm.com avr --target=avr ,-Werror Tristan Gingold gingold@adacore.com @@ -429,6 +428,7 @@ under no obligation to review posted patches - but, of course, are invited to do so! PowerPC Andrew Cagney cagney@gnu.org +ARM Richard Earnshaw rearnsha@arm.com CRIS Hans-Peter Nilsson hp@axis.com IA64 Jeff Johnston jjohnstn@redhat.com MIPS Joel Brobecker brobecker@adacore.com diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c index d0810c7..bd297c6 100644 --- a/gdb/ada-valprint.c +++ b/gdb/ada-valprint.c @@ -788,8 +788,8 @@ ada_val_print_1 (struct type *type, const gdb_byte *valaddr, struct value_print_options opts = *options; opts.format = format; - print_scalar_formatted (valaddr + offset_aligned, - type, &opts, 0, stream); + val_print_scalar_formatted (type, valaddr, offset_aligned, + original_value, &opts, 0, stream); } else if (ada_is_system_address_type (type)) { @@ -827,8 +827,8 @@ ada_val_print_1 (struct type *type, const gdb_byte *valaddr, case TYPE_CODE_ENUM: if (options->format) { - print_scalar_formatted (valaddr + offset_aligned, - type, options, 0, stream); + val_print_scalar_formatted (type, valaddr, offset_aligned, + original_value, options, 0, stream); break; } len = TYPE_NFIELDS (type); @@ -858,8 +858,8 @@ ada_val_print_1 (struct type *type, const gdb_byte *valaddr, case TYPE_CODE_FLAGS: if (options->format) - print_scalar_formatted (valaddr + offset_aligned, - type, options, 0, stream); + val_print_scalar_formatted (type, valaddr, offset_aligned, + original_value, options, 0, stream); else val_print_type_code_flags (type, valaddr + offset_aligned, stream); break; diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c index bbe5588..3bd4db2 100644 --- a/gdb/c-valprint.c +++ b/gdb/c-valprint.c @@ -248,8 +248,8 @@ c_val_print (struct type *type, const gdb_byte *valaddr, case TYPE_CODE_MEMBERPTR: if (options->format) { - print_scalar_formatted (valaddr + embedded_offset, type, - options, 0, stream); + val_print_scalar_formatted (type, valaddr, embedded_offset, + original_value, options, 0, stream); break; } cp_print_class_member (valaddr + embedded_offset, type, stream, "&"); @@ -262,8 +262,8 @@ c_val_print (struct type *type, const gdb_byte *valaddr, case TYPE_CODE_PTR: if (options->format && options->format != 's') { - print_scalar_formatted (valaddr + embedded_offset, type, - options, 0, stream); + val_print_scalar_formatted (type, valaddr, embedded_offset, + original_value, options, 0, stream); break; } if (options->vtblprint && cp_is_vtbl_ptr_type (type)) @@ -432,8 +432,8 @@ c_val_print (struct type *type, const gdb_byte *valaddr, case TYPE_CODE_ENUM: if (options->format) { - print_scalar_formatted (valaddr + embedded_offset, type, - options, 0, stream); + val_print_scalar_formatted (type, valaddr, embedded_offset, + original_value, options, 0, stream); break; } len = TYPE_NFIELDS (type); @@ -458,8 +458,8 @@ c_val_print (struct type *type, const gdb_byte *valaddr, case TYPE_CODE_FLAGS: if (options->format) - print_scalar_formatted (valaddr + embedded_offset, type, - options, 0, stream); + val_print_scalar_formatted (type, valaddr, embedded_offset, + original_value, options, 0, stream); else val_print_type_code_flags (type, valaddr + embedded_offset, stream); @@ -469,8 +469,8 @@ c_val_print (struct type *type, const gdb_byte *valaddr, case TYPE_CODE_METHOD: if (options->format) { - print_scalar_formatted (valaddr + embedded_offset, type, - options, 0, stream); + val_print_scalar_formatted (type, valaddr, embedded_offset, + original_value, options, 0, stream); break; } /* FIXME, we should consider, at least for ANSI C language, @@ -489,8 +489,8 @@ c_val_print (struct type *type, const gdb_byte *valaddr, struct value_print_options opts = *options; opts.format = (options->format ? options->format : options->output_format); - print_scalar_formatted (valaddr + embedded_offset, type, - &opts, 0, stream); + val_print_scalar_formatted (type, valaddr, embedded_offset, + original_value, &opts, 0, stream); } else { @@ -521,8 +521,8 @@ c_val_print (struct type *type, const gdb_byte *valaddr, opts.format = (options->format ? options->format : options->output_format); - print_scalar_formatted (valaddr + embedded_offset, type, - &opts, 0, stream); + val_print_scalar_formatted (type, valaddr, embedded_offset, + original_value, &opts, 0, stream); } else { @@ -547,8 +547,8 @@ c_val_print (struct type *type, const gdb_byte *valaddr, struct value_print_options opts = *options; opts.format = (options->format ? options->format : options->output_format); - print_scalar_formatted (valaddr + embedded_offset, type, - &opts, 0, stream); + val_print_scalar_formatted (type, valaddr, embedded_offset, + original_value, &opts, 0, stream); } else { @@ -565,8 +565,8 @@ c_val_print (struct type *type, const gdb_byte *valaddr, case TYPE_CODE_FLT: if (options->format) { - print_scalar_formatted (valaddr + embedded_offset, type, - options, 0, stream); + val_print_scalar_formatted (type, valaddr, embedded_offset, + original_value, options, 0, stream); } else { @@ -576,8 +576,8 @@ c_val_print (struct type *type, const gdb_byte *valaddr, case TYPE_CODE_DECFLOAT: if (options->format) - print_scalar_formatted (valaddr + embedded_offset, type, - options, 0, stream); + val_print_scalar_formatted (type, valaddr, embedded_offset, + original_value, options, 0, stream); else print_decimal_floating (valaddr + embedded_offset, type, stream); @@ -601,19 +601,21 @@ c_val_print (struct type *type, const gdb_byte *valaddr, case TYPE_CODE_COMPLEX: if (options->format) - print_scalar_formatted (valaddr + embedded_offset, - TYPE_TARGET_TYPE (type), - options, 0, stream); + val_print_scalar_formatted (TYPE_TARGET_TYPE (type), + valaddr, embedded_offset, + original_value, options, 0, stream); else print_floating (valaddr + embedded_offset, TYPE_TARGET_TYPE (type), stream); fprintf_filtered (stream, " + "); if (options->format) - print_scalar_formatted (valaddr + embedded_offset - + TYPE_LENGTH (TYPE_TARGET_TYPE (type)), - TYPE_TARGET_TYPE (type), - options, 0, stream); + val_print_scalar_formatted (TYPE_TARGET_TYPE (type), + valaddr, + embedded_offset + + TYPE_LENGTH (TYPE_TARGET_TYPE (type)), + original_value, + options, 0, stream); else print_floating (valaddr + embedded_offset + TYPE_LENGTH (TYPE_TARGET_TYPE (type)), diff --git a/gdb/corelow.c b/gdb/corelow.c index bfa2893..f65a89c 100644 --- a/gdb/corelow.c +++ b/gdb/corelow.c @@ -615,9 +615,9 @@ get_core_registers (struct target_ops *ops, ".reg2", 2, "floating-point", 0); } - /* Supply dummy value for all registers not found in the core. */ + /* Mark all registers not found in the core as unavailable. */ for (i = 0; i < gdbarch_num_regs (get_regcache_arch (regcache)); i++) - if (!regcache_valid_p (regcache, i)) + if (regcache_register_status (regcache, i) == REG_UNKNOWN) regcache_raw_supply (regcache, i, NULL); } diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index 23e42c1..fff41d8 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -316,7 +316,7 @@ cp_print_value_fields (struct type *type, struct type *real_type, TYPE_FIELD_BITPOS (type, i), TYPE_FIELD_BITSIZE (type, i))) { - fputs_filtered (_("<value optimized out>"), stream); + val_print_optimized_out (stream); } else { @@ -343,7 +343,7 @@ cp_print_value_fields (struct type *type, struct type *real_type, struct value *v = value_static_field (type, i); if (v == NULL) - fputs_filtered ("<optimized out>", stream); + val_print_optimized_out (stream); else cp_print_static_field (TYPE_FIELD_TYPE (type, i), v, stream, recurse + 1, @@ -488,6 +488,7 @@ cp_print_value (struct type *type, struct type *real_type, struct type *baseclass = check_typedef (TYPE_BASECLASS (type, i)); char *basename = TYPE_NAME (baseclass); const gdb_byte *base_valaddr; + const struct value *base_val; if (BASETYPE_VIA_VIRTUAL (type, i)) { @@ -509,7 +510,7 @@ cp_print_value (struct type *type, struct type *real_type, boffset = baseclass_offset (type, i, valaddr + offset, address + offset); - skip = ((boffset == -1) || (boffset + offset) < 0) ? 1 : -1; + skip = ((boffset == -1) || (boffset + offset) < 0); if (BASETYPE_VIA_VIRTUAL (type, i)) { @@ -525,20 +526,28 @@ cp_print_value (struct type *type, struct type *real_type, large. */ hooks/post-receive -- Repository for Project Archer.
next reply other threads:[~2011-01-29 16:44 UTC|newest] Thread overview: 120+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-01-29 16:44 jkratoch [this message] -- strict thread matches above, loose matches on Subject: below -- 2011-02-01 19:25 jkratoch 2011-01-25 12:53 pmuldoon 2011-01-25 9:10 jkratoch 2011-01-17 13:31 pmuldoon 2011-01-15 11:35 jkratoch 2011-01-14 8:04 jkratoch 2011-01-10 12:00 pmuldoon 2011-01-10 9:10 jkratoch 2011-01-07 5:57 jkratoch 2011-01-06 12:22 pmuldoon 2011-01-04 4:59 jkratoch 2010-12-31 22:30 jkratoch 2010-12-30 7:22 jkratoch 2010-12-22 20:11 swagiaal 2010-12-14 17:13 jkratoch 2010-12-14 8:27 pmuldoon 2010-12-10 17:16 jkratoch 2010-12-08 15:55 pmuldoon 2010-12-06 6:40 jkratoch 2010-12-04 1:03 jkratoch 2010-12-02 15:47 pmuldoon 2010-11-30 0:15 jkratoch 2010-11-28 18:02 jkratoch 2010-11-28 5:41 jkratoch 2010-11-16 5:04 jkratoch 2010-11-12 11:47 pmuldoon 2010-11-11 11:39 pmuldoon 2010-11-10 9:09 pmuldoon 2010-11-08 9:34 pmuldoon 2010-11-07 18:15 jkratoch 2010-10-22 14:28 pmuldoon 2010-10-20 12:48 pmuldoon 2010-10-19 16:01 pmuldoon 2010-10-17 20:27 jkratoch 2010-10-15 17:07 jkratoch 2010-10-14 20:55 jkratoch 2010-10-13 15:06 jkratoch 2010-10-12 16:45 jkratoch 2010-10-11 9:21 jkratoch 2010-10-11 8:47 pmuldoon 2010-10-06 9:00 pmuldoon 2010-09-30 8:56 pmuldoon 2010-09-27 9:48 jkratoch 2010-09-20 12:34 pmuldoon 2010-09-16 20:49 ratmice 2010-09-04 19:59 jkratoch 2010-09-03 7:26 jkratoch 2010-09-02 15:04 jkratoch 2010-09-01 15:29 swagiaal 2010-08-23 13:54 jkratoch 2010-08-20 17:49 jkratoch 2010-08-12 15:19 swagiaal 2010-08-06 15:32 jkratoch 2010-07-29 19:17 swagiaal 2010-07-22 16:57 jkratoch 2010-07-22 16:26 jkratoch 2010-07-20 18:51 jkratoch 2010-07-09 8:09 jkratoch 2010-06-24 8:55 jkratoch 2010-06-23 20:56 jkratoch 2010-06-17 12:53 jkratoch 2010-06-07 8:14 jkratoch 2010-06-02 19:03 jkratoch 2010-05-28 21:27 jkratoch 2010-05-26 18:36 swagiaal 2010-05-17 18:02 jkratoch 2010-05-17 1:04 jkratoch 2010-05-10 19:30 swagiaal 2010-05-05 14:24 swagiaal 2010-05-03 13:49 jkratoch 2010-05-03 8:48 jkratoch 2010-05-02 23:10 jkratoch 2010-05-02 15:54 jkratoch 2010-04-30 7:11 jkratoch 2010-04-28 11:44 jkratoch 2010-04-25 20:22 jkratoch 2010-04-09 20:37 jkratoch 2010-04-07 1:41 jkratoch 2010-04-05 10:11 jkratoch 2010-04-04 11:58 jkratoch 2010-03-22 23:58 jkratoch 2010-03-20 17:23 jkratoch 2010-03-18 10:01 jkratoch 2010-03-17 18:04 jkratoch 2010-03-12 18:35 jkratoch 2010-03-04 22:28 jkratoch 2010-03-01 22:16 jkratoch 2010-02-26 22:16 jkratoch 2010-02-26 17:50 jkratoch 2010-02-17 16:01 swagiaal 2010-02-13 22:51 jkratoch 2010-02-11 12:51 jkratoch 2010-02-09 19:01 jkratoch 2010-02-08 21:46 jkratoch 2010-02-03 4:38 jkratoch 2010-01-31 17:25 jkratoch 2010-01-28 19:17 swagiaal 2010-01-28 10:56 jkratoch 2010-01-27 19:21 swagiaal 2010-01-27 8:08 jkratoch 2010-01-26 18:58 swagiaal 2010-01-20 21:48 jkratoch 2010-01-15 2:09 jkratoch 2010-01-15 0:52 jkratoch 2010-01-14 22:23 jkratoch 2010-01-13 20:53 jkratoch 2010-01-10 20:47 jkratoch 2010-01-09 10:03 jkratoch 2010-01-09 8:41 jkratoch 2010-01-08 19:16 jkratoch 2009-12-06 17:43 jkratoch 2009-12-03 16:32 jkratoch 2009-11-30 13:59 jkratoch 2009-11-24 21:21 jkratoch 2009-11-21 9:24 jkratoch 2009-11-20 21:06 jkratoch 2009-11-20 15:57 jkratoch 2009-11-17 19:59 jkratoch 2009-11-16 2:22 jkratoch
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20110129164406.10221.qmail@sourceware.org \ --to=jkratoch@sourceware.org \ --cc=archer-commits@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).