gdbadmin [Wed, 19 Sep 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 19 Sep 2012 00:00:06 +0000 (00:00 +0000)]
daily update
Sergio Durigan Junior [Tue, 18 Sep 2012 20:14:56 +0000 (20:14 +0000)]
gdb/ChangeLog:
2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
* infcmd.c (_initialize_infcmd): Register `j' as an alias for
`jump'.
gdb/doc/ChangeLog:
2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
* gdb.texinfo (jump): Mention new alias `j' for `jump'.
Joel Brobecker [Tue, 18 Sep 2012 16:52:19 +0000 (16:52 +0000)]
wrong language used when re-setting breakpoint
The debugger sometimes fails to re-set a breakpoint as follow,
causing it to become disabled:
(gdb) b nested_sub
Breakpoint 1 at 0x401cec: file foo.adb, line 7.
(gdb) b do_nothing
Breakpoint 2 at 0x401cdc: file pck.adb, line 4.
(gdb) run
Starting program: /[...]/foo
Error in re-setting breakpoint 1: Function "nested_sub" not defined.
Breakpoint 2, pck.do_nothing () at pck.adb:4
4 null;
This only happens on machines where the debug-file-directory is
a valid directory name.
The reason behind the error is that the linespec code that re-sets
the breakpoints uses the current_language global when iterating
over a symtab's symbols. However, the that global gets switched from
Ada to C during the startup phase, probably as a side-effect of stopping
in some system code for which debugging info is available. The fix
is to make sure that we use the correct language.
gdb/ChangeLog:
* linespec.c (iterate_over_all_matching_symtabs): Use the correct
language when iterating over symbols.
gdb/testsuite/ChangeLog:
* gdb.ada/bp_reset: New testcase.
Richard Earnshaw [Tue, 18 Sep 2012 14:52:43 +0000 (14:52 +0000)]
2012-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
opcodes:
* arm-dis.c: Changed ldra and strl-form mnemonics
to lda and stl-form.
gas:
* config/tc-arm.c: Changed ldra and strl-form mnemonics
to lda and stl-form for armv8.
gas/testsuite:
* gas/arm/armv8-a-bad.l: Updated for changed mnemonics.
* gas/arm/armv8-a-bad.s: Likewise.
* gas/arm/armv8-a.d: Likewise.
* gas/arm/armv8-a.s: Likewise.
* gas/arm/inst.s: Added test for ldrt encoding compatibly with ldralt.
* gas/arm/inst.d: Updated.
Maciej W. Rozycki [Tue, 18 Sep 2012 14:19:04 +0000 (14:19 +0000)]
opcodes/
* micromips-opc.c (micromips_opcodes): Correct the encoding of
the "swxc1" instruction.
gas/testsuite/
* gas/mips/micromips.d: Correct the disassembly of SWXC1.
* gas/mips/micromips-trap.d: Likewise.
* gas/mips/micromips@24k-triple-stores-1.d: Likewise.
* gas/mips/micromips@mips4-fp.d: Likewise.
Yao Qi [Tue, 18 Sep 2012 12:09:28 +0000 (12:09 +0000)]
gdb/doc:
* gdb.texinfo (GDB/MI Async Records): Document new MI
notifications '=tsv-created' and '=tsv-deleted'.
* observer.texi (GDB Observers): New observer tsv_created and
tsv_deleted.
gdb:
* mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
(mi_interpreter_init): Call observer_attach_tsv_created and
observer_attach_tsv_deleted.
(mi_tsv_created, mi_tsv_deleted): New.
* tracepoint.c (delete_trace_state_variable): Call
observer_notify_tsv_deleted.
(trace_variable_command): Call observer_notify_tsv_created.
(delete_trace_variable_command): Call
observer_notify_tsv_deleted.
(create_tsv_from_upload): Call observer_notify_tsv_created.
* NEWS: Mention it.
gdb/testsuite:
gdb.trace/mi-tsv-changed.exp: New.
Yao Qi [Tue, 18 Sep 2012 11:33:43 +0000 (11:33 +0000)]
gdb/doc:
* observer.texi (GDB Observers): New observer 'traceframe_changed'.
* gdb.texinfo (GDB/MI Async Records): Mention new MI notification
'=traceframe-changed'.
gdb:
* tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
if traceframe changed.
* mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
"trace-find".
* mi/mi-interp.c: Declare 'mi_traceframe_changed'.
(mi_interpreter_init): Hook mi_traceframe_changed to observer
'traceframe_changed'.
(mi_traceframe_changed): New.
* mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
New field.
* NEWS: Mention the new MI notification.
gdb/testsuite:
* gdb.trace/mi-traceframe-changed.exp: New.
H.J. Lu [Tue, 18 Sep 2012 00:41:59 +0000 (00:41 +0000)]
Ignore discarded section when converting mov to lea
* elf32-i386.c (elf_i386_convert_mov_to_lea): Ignore discarded
section.
* elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Likewise.
gdbadmin [Tue, 18 Sep 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 18 Sep 2012 00:00:04 +0000 (00:00 +0000)]
daily update
Mike Wrighton [Mon, 17 Sep 2012 20:39:13 +0000 (20:39 +0000)]
Moved the Changelog entries for breakpoint.c and remote.c out of Changelog
and into gdb/Changelog.
H.J. Lu [Mon, 17 Sep 2012 19:51:25 +0000 (19:51 +0000)]
Assemble all sources files in each test
* ld-elf/shared.exp (build_cxx_tests): Move out the commented out
test.
* lib/ld-lib.exp (run_ld_link_exec_tests): Assemble all sources
files in each test.
Mike Wrighton [Mon, 17 Sep 2012 19:29:52 +0000 (19:29 +0000)]
Correcting error in gdb/Changelog from previous commit.
Mike Wrighton [Mon, 17 Sep 2012 19:16:48 +0000 (19:16 +0000)]
Updated gdb/Changelog:
* MAINTAINERS (Write After Approval): Add "Mike Wrighton".
H.J. Lu [Mon, 17 Sep 2012 18:31:15 +0000 (18:31 +0000)]
Replace return FALSE with abort in x86 finish_dynamic_symbol
* elf32-i386.c (elf_i386_finish_dynamic_symbol): Replace return
FALSE with abort.
* elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
Jan Kratochvil [Mon, 17 Sep 2012 18:27:58 +0000 (18:27 +0000)]
gdb/
* common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
(linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
__i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
Extend code also for PaX support. Convert all gdb_assert to warning
calls.
Jan Kratochvil [Mon, 17 Sep 2012 18:26:06 +0000 (18:26 +0000)]
gdb/
Implement auto-load user conveniences suggested by Doug Evans.
* auto-load.c: Include top.h.
(file_is_auto_load_safe): New variable advice_printed. Print advice.
(_initialize_auto_load): New variable scripts_directory_help. Mention
GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
scripts-directory. Document in online help one can use also files for
set auto-load safe-path.
* python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
* python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
Walter Lee [Mon, 17 Sep 2012 18:01:18 +0000 (18:01 +0000)]
Remove unused got_base variable.
* elf32-tilepro.c (tilepro_elf_relocate_section): Remove unused
got_base variable.
* elfxx-tilegx.c (tilegx_elf_relocate_section): Ditto.
Richard Earnshaw [Mon, 17 Sep 2012 17:48:51 +0000 (17:48 +0000)]
2012-09-17 Yufeng Zhang <yufeng.zhang@arm.com>
gas:
* config/tc-aarch64.c (aarch64_archs): Rename 'armv8' to 'armv8-a'.
gas/testsuite:
* gas/aarch64/crypto.d (#as): Update for v8->v8-A change.
* gas/aarch64/int-insns.d (#as): Likewise.
* gas/aarch64/legacy_reg_names.s (.arch): Likewise.
* gas/aarch64/neon-not.s (.arch): Likewise.
* gas/aarch64/neon-vfp-reglist-post.s (.arch): Likewise.
* gas/aarch64/neon-vfp-reglist.s (.arch): Likewise.
Richard Earnshaw [Mon, 17 Sep 2012 17:43:42 +0000 (17:43 +0000)]
2012-09-17 Yufeng Zhang <yufeng.zhang@arm.com>
* aarch64-asm.c (aarch64_ins_imm_half): Remove ATTRIBUTE_UNUSED from
the parameter 'inst'.
(aarch64_ins_addr_simm): Add ATTRIBUTE_UNUSED to the parameter 'inst'.
(convert_mov_to_movewide): Change to assert (0) when
aarch64_wide_constant_p returns FALSE.
Mike Wrighton [Mon, 17 Sep 2012 14:26:29 +0000 (14:26 +0000)]
Adding Mike Wrighton to gdb/MAINTAINERS.
Walter Lee [Mon, 17 Sep 2012 10:53:38 +0000 (10:53 +0000)]
Fix computation of got relocations for when .got.plt section is merged
with .got.
* elf32-tilepro.c (tilepro_elf_relocate_section): Fix computation
of got relocations for when .got.plt section is merged with .got.
* elfxx-tilegx.c (tilegx_elf_relocate_section): Ditto.
Siddhesh Poyarekar [Mon, 17 Sep 2012 09:41:12 +0000 (09:41 +0000)]
* tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
of LEN.
Siddhesh Poyarekar [Mon, 17 Sep 2012 08:52:18 +0000 (08:52 +0000)]
* m2-valprint.c (m2_print_array_contents): Eliminate variable
ELTLEN and use TYPE_LENGTH directly.
(m2_val_print): Likewise.
* m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
variable LEN and use TYPE_LENGTH directly.
(m68k_svr4_store_return_value): Likewise.
* mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
ARGLEN and use TYPE_LENGTH directly.
(mips_o64_push_dummy_call): Likewise.
* s390-tdep (s390_function_arg_pass_by_reference): Eliminate
variable LENGTH and use TYPE_LENGTH directly.
(s390_function_arg_float): Likewise.
(s390_function_arg_integer): Likewise.
(s390_push_dummy_call): Likewise.
(s390_return_value_convention): Likewise.
* spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
TYPE_LENGTH directly.
Yao Qi [Mon, 17 Sep 2012 08:42:14 +0000 (08:42 +0000)]
gdb/
* cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
Update comment to add_setshow_integer_cmd.
* cli/cli-setshow.c (do_set_command): Handle case
'var_zuinteger_unlimited'.
(do_show_command): Likewise.
* cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
for command 'remotetimeout'.
* command.h (enum var_types): New zuinteger_unlimited. Update comment
to var_integer.
* source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
for command 'set listsize'.
gdb/doc/
* gdb.texinfo (List): Describe the meaning of 0 and -1 in
'set listsize'.
gdb/testsuite/
* gdb.base/list.exp (set_listsize): Don't set arg to "unlimited"
when it is less than 0.
Siddhesh Poyarekar [Mon, 17 Sep 2012 07:26:55 +0000 (07:26 +0000)]
* infrun.c (restore_infcall_suspend_state): Eliminate single-use
variable LEN.
Jan Kratochvil [Mon, 17 Sep 2012 07:15:48 +0000 (07:15 +0000)]
gdb/
PR 14119
* frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
(frame_pop): Drop also TAILCALL_FRAME frames.
* infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
gdb/testsuite/
PR 14119
* gdb.arch/amd64-tailcall-ret.S: New file.
* gdb.arch/amd64-tailcall-ret.c: New file.
* gdb.arch/amd64-tailcall-ret.exp: New file.
* gdb.reverse/amd64-tailcall-reverse.S: New file.
* gdb.reverse/amd64-tailcall-reverse.c: New file.
* gdb.reverse/amd64-tailcall-reverse.exp: New file.
Jan Kratochvil [Mon, 17 Sep 2012 07:09:35 +0000 (07:09 +0000)]
gdb/
PR 14548
* infrun.c (handle_inferior_event): Do not reverse-continue back to the
function start if we are already at function start. Both for
reverse-next and for reverse-step into function without line number
info.
gdb/testsuite/
PR 14548
* gdb.reverse/singlejmp-reverse-nodebug.S: New file.
* gdb.reverse/singlejmp-reverse-nodebug.c: New file.
* gdb.reverse/singlejmp-reverse.S: New file.
* gdb.reverse/singlejmp-reverse.c: New file.
* gdb.reverse/singlejmp-reverse.exp: New file.
Jan Kratochvil [Mon, 17 Sep 2012 07:03:14 +0000 (07:03 +0000)]
gdb/
Code cleanup - rename 'inline' depth to 'artificial' depth.
* breakpoint.c (set_momentary_breakpoint): Rename at a caller to
frame_id_artificial_p, extend the comment.
* dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
* frame.c (fprint_frame_id): Rename at a user, change debug output
text to "artificial=".
(skip_inlined_frames): Rename to ...
(skip_artificial_frames): ... here. Extend the comment.
(get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
(frame_id_inlined_p): Rename to ...
(frame_id_artificial_p): ... here. Rename at a user.
(frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
(frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
at a user.
* frame.h (struct frame_id): Rename inline_depth to artificial_depth.
Extend the comment.
(frame_id_inlined_p): Rename to ...
(frame_id_artificial_p): ... here.
* inline-frame.c (inline_frame_this_id): Rename at a user.
Alan Modra [Mon, 17 Sep 2012 00:00:04 +0000 (00:00 +0000)]
daily update
gdbadmin [Mon, 17 Sep 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 16 Sep 2012 22:21:00 +0000 (22:21 +0000)]
* ld.texinfo (Expression Section): Correct description of
conversions for a binary operation involving an absolute symbol
and a number.
Jan Kratochvil [Sun, 16 Sep 2012 17:30:48 +0000 (17:30 +0000)]
gdb/testsuite/
Fix compatibility with old GCC (~4.1).
* gdb.cp/converts.cc (my_enum_var): New variable.
gdbadmin [Sun, 16 Sep 2012 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 16 Sep 2012 00:00:03 +0000 (00:00 +0000)]
daily update
Walter Lee [Sat, 15 Sep 2012 17:11:28 +0000 (17:11 +0000)]
Add support for tilegx in gold.
* configure.ac (ENABLE_GOLD): support tilegx*
* configure: rebuild
elfcpp:
* tilegx.h: New file.
* elfcpp.h: add EM_TILEGX.
gold:
* tilegx.cc: New file.
* Makefile.am (TARGETSOURCES): Add tilegx.cc
(ALL_TARGETOBJS): Add tilegx.$(OBJEXT)
* configure.tgt: Add entries for tilegx*.
* configure.ac: Likewise.
* Makefile.in: Rebuild.
* configure: Likewise.
* testsuite/icf_safe_test.sh (arch_specific_safe_fold): Handle
tilegx.
David Edelsohn [Sat, 15 Sep 2012 00:07:05 +0000 (00:07 +0000)]
* configure: Regenerate.
David Edelsohn [Sat, 15 Sep 2012 00:04:44 +0000 (00:04 +0000)]
* configure: Regenerate.
David Edelsohn [Sat, 15 Sep 2012 00:03:06 +0000 (00:03 +0000)]
* configure: Regenerate.
Alan Modra [Sat, 15 Sep 2012 00:00:04 +0000 (00:00 +0000)]
daily update
gdbadmin [Sat, 15 Sep 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
David Edelsohn [Fri, 14 Sep 2012 23:55:22 +0000 (23:55 +0000)]
PR target/38607
Merge upstream change.
* libtool.m4 (_LT_COMPILER_PIC): Add -fPIC to GCC and GXX for AIX.
* configure.ac: Add target-libquadmath to noconfigdirs for AIX.
Add libgomp*.o to compare_exclusions for AIX.
* configure: Regenerate.
Andrew Burgess [Fri, 14 Sep 2012 21:23:45 +0000 (21:23 +0000)]
sourceware.org/ml/gdb-patches/2012-09/msg00015.html
gdb/ChangeLog
* c-typeprint.c (c_type_print_varspec_suffix): Display the size of
vector variables using vector_size syntax rather than array
syntax.
gdb/testsuite/ChangeLog
* gdb.xml/tdesc-regs.exp: Update expected output for new
vector_size syntax of vector types.
Siddhesh Poyarekar [Fri, 14 Sep 2012 12:46:55 +0000 (12:46 +0000)]
* valarith.c (value_concat): Replace unsafe ALLOCA with
XMALLOC/XFREE.
Pedro Alves [Fri, 14 Sep 2012 12:10:23 +0000 (12:10 +0000)]
2012-09-14 Pedro Alves <palves@redhat.com>
* gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
Anthony Green [Fri, 14 Sep 2012 10:49:03 +0000 (10:49 +0000)]
Fix moxie disassembly for new branch semantics
Yit Phang Khoo [Fri, 14 Sep 2012 08:03:34 +0000 (08:03 +0000)]
Point contrib/cc-with-tweaks.sh to the build-local data-directory.
gdb/
* contrib/cc-with-tweaks.sh (GDB): Add -data-directory
data-directory as appropriate.
Siddhesh Poyarekar [Fri, 14 Sep 2012 07:00:42 +0000 (07:00 +0000)]
* printcmd.c (ui_printf): Eliminate single-use variable
PARAM_LEN.
Yao Qi [Fri, 14 Sep 2012 00:54:58 +0000 (00:54 +0000)]
gdb/
* valops.c (value_assign): Move observer_notify_target_changed
below to replace reinit_frame_cache.
Alan Modra [Fri, 14 Sep 2012 00:00:04 +0000 (00:00 +0000)]
daily update
gdbadmin [Fri, 14 Sep 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Anthony Green [Thu, 13 Sep 2012 22:24:51 +0000 (22:24 +0000)]
Bi-endian patches for moxie
Yit Phang Khoo [Thu, 13 Sep 2012 21:49:32 +0000 (21:49 +0000)]
Refactor Python "gdb" module into a proper Python package, by introducing
a new "_gdb" module for code implemented in C, and using reload/__import__
instead of exec.
gdb/
* python/lib/gdb/__init__.py: Import * from _gdb.
(GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
prompt_hook, sys.argv): Moved from finish_python_initialization.
(pretty_printers, PYTHONDIR): Moved from _initialize_python.
(packages, auto_load_packages): New list and function replacing
module_dict and auto-loading code, using __file__ instead of
gdb.PYTHONDIR and reload/__import__ instead of exec.
(GdbSetPythonDirectory): Replacing function of the same name
from finish_python_initialization, using reload/__import__ instead
of exec, as well as call auto_load_packages.
* python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
gdb_python_module and not gdb_module.
* python/python-internal.h (gdb_python_module): Declare.
* python/python.c (gdb_python_module): New global.
(before_prompt_hook): Check gdb_python_module and not gdb_module.
(_initialize_python): Rename gdb module to _gdb.
Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
(finish_python_initialization): Move Python code to
lib/gdb/__init__.py; instead, set up sys.path and import gdb into
__main__.
gdb/testsuite/
* gdb.python/python.exp (Test stderr location): Update module
location of GDB-specific sys.stderr.
(Test stdout location): Ditto for sys.stdout.
Jan Kratochvil [Thu, 13 Sep 2012 17:35:35 +0000 (17:35 +0000)]
gdb/doc/
* gdbint.texinfo (Defining Other Architecture Features): Clarify *pcptr
encoding for gdbarch_breakpoint_from_pc, bp_addr for
gdbarch_push_dummy_call and bp_addr for gdbarch_push_dummy_code.
Pedro Alves [Thu, 13 Sep 2012 14:35:16 +0000 (14:35 +0000)]
2012-09-13 Pedro Alves <palves@redhat.com>
* Makefile.in (COMMON_OBS): Add registry.o.
* registry.c: New file.
* registry.h (struct registry_container): Declare.
(registry_data_callback): New typedef.
(struct registry_data, struct registry_data_registration, struct
registry_data_registry): New type.
(register_data_with_cleanup, registry_alloc_data)
(registry_callback_adaptor, registry_clear_data)
(registry_container_free_data, registry_set_data, registry_data):
Declare.
(DEFINE_REGISTRY): Refactor structures and functions as shims over
the new common structures and functions.
(DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
callback typedefs.
Richard Earnshaw [Thu, 13 Sep 2012 11:09:02 +0000 (11:09 +0000)]
Really commit regenerated files.
Nick Clifton [Thu, 13 Sep 2012 08:09:26 +0000 (08:09 +0000)]
* v850.igen (W,WWWW): Correct computation of register number.
(JR32): Remove unnecessary comma.
(cmovf.s): Register 0 is an invalid source register.
(maddf.s): Remove bogus intermediary rounding.
(nmaddf.s): Likewise.
(trncf.sl): Remove bogus initial rounding.
(trncf.dw): Likewise.
(trncf.sl): Likewise.
(trncf.sw): Likewise.
Jan Kratochvil [Thu, 13 Sep 2012 05:32:09 +0000 (05:32 +0000)]
gdb/testsuite/
* gdb.base/valgrind-infcall.exp: Remove comment about Ubuntu.
gdbadmin [Thu, 13 Sep 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Thu, 13 Sep 2012 00:00:04 +0000 (00:00 +0000)]
daily update
Keith Seitz [Wed, 12 Sep 2012 23:29:05 +0000 (23:29 +0000)]
* gdb.cp/converts.cc (main): Comment out the pointer to boolean
conversion statement.
Doug Kwan [Wed, 12 Sep 2012 22:56:05 +0000 (22:56 +0000)]
2012-09-12 Doug Kwan <dougkwan@google.com>
* elf64-ppc.c (ppc64_elf_relocate_section): Use pre-adjusted
relocation for stub lookup.
Alan Modra [Wed, 12 Sep 2012 22:43:54 +0000 (22:43 +0000)]
* target-reloc.h (scan_relocs): Call scan.local for relocs
against symbols in discarded sections. Pass is_discarded
param.
* arm.cc, * i386.cc, * sparc.cc, * x86_64.cc (Target_*::Scan::local):
Add is_discarded param.
* powerpc (Target_powerpc::Scan::local): Likewise. Use
is_discarded to flag opd entry as discarded. Don't emit dyn
relocs on such entries.
(Target_powerpc::Scan::global): Similarly detect and handle
such opd entries.
(Powerpc_relobj): Replace opd_ent_shndx_ and opd_ent_off_ with
opd_ent_. Update all uses.
(Powerpc_relobj::get_opd_discard, set_opd_discard): New functions.
(Target_powerpc::relocate_section): Zero out discarded opd
entry relocs.
DJ Delorie [Wed, 12 Sep 2012 21:28:04 +0000 (21:28 +0000)]
* emulparams/elf32rx.sh (OTHER_READONLY_SECTIONS): Add W_* sections.
Mike Wrighton [Wed, 12 Sep 2012 20:01:10 +0000 (20:01 +0000)]
* gdb/remote.c (remote_insert_hw_breakpoint): Throw exception if
there is an error inserting hardware breakpoints and use the
error message from the target.
* gdb/breakpoint.c (insert_bp_location, insert_breakpoint_locations):
Catch this exception and print the error message contained within. Do not
print the default hardware error breakpoint message in this case.
Doug Evans [Wed, 12 Sep 2012 18:57:40 +0000 (18:57 +0000)]
* dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
cu == NULL.
Doug Evans [Wed, 12 Sep 2012 18:55:49 +0000 (18:55 +0000)]
* gdb.base/help.exp: Remove testing of individual command help text,
too much of a maintenance burden. Instead, test the functionality
of "help" itself.
Ian Lance Taylor [Wed, 12 Sep 2012 18:29:18 +0000 (18:29 +0000)]
PR gold/14570
* output.cc: Rename Output_data_got template parameter from size
to got_size for all functions. Compile all variants of
Output_data_got.
(Output_data_got::Got_entry::write): Correct use of size for
symbol value. Use local_is_tls rather than casting to
Sized_relobj_file.
* object.h (class Object): Add local_is_tls and do_local_is_tls.
(class Sized_relobj_file): Add do_local_is_tls.
* incremental.h (class Sized_relobj_incr): Add do_local_is_tls.
Richard Earnshaw [Wed, 12 Sep 2012 16:25:51 +0000 (16:25 +0000)]
2012-09-11 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
bfd/
* bfd-in2.h: Regenerated.
* elf64-aarch64.c
(elf64_aarch64_howto_table): Add R_AARCH64_GOT_LD_PREL19 reloc to HOWTO.
(elf64_aarch64_reloc_map): Add reloc entry.
(aarch64_resolve_relocation): Likewise.
(bfd_elf_aarch64_put_addend): Likewise.
(aarch64_reloc_got_type): Likewise.
(elf64_aarch64_final_link_relocate): Likewise.
(lf64_aarch64_check_relocs): Likewise.
(elf64_aarch64_check_relocs): New case for R_AARCH64_ADR_PREL_LO21
reloc.
* libbfd.h: Regenerated.
* reloc.c (R_AARCH64_GOT_LD_PREL19): New reloc.
gas/
* config/tc-aarch64.c
(reloc_table): Add reloc to table entry.
(parse_address_main): Add support for #:<reloc_op>:<symbol>.
(parse_operands): Check for unused reloc.
(md_apply_fix): New case for reloc.
(aarch64_force_relocation): Likewise.
gas/testsuite
* gas/aarch64/reloc-insn.d
(BFD_RELOC_AARCH64_GOT_LD_PREL19): Add expected asm for new reloc test.
* gas/aarch64/reloc-insn.s
(BFD_RELOC_AARCH64_GOT_LD_PREL19): Add test for reloc.
include/
* elf/aarch64.h (R_AARCH64_GOT_LD_PREL19): New reloc.
ld/testsuite
* ld-aarch64/aarch64-elf.exp: New reloc tests.
* ld-aarch64/emit-relocs-309-low-bad.d: New file. Expected asm for test
failure (lower bound overflow).
* ld-aarch64/emit-relocs-309-low.d: New file. Expected asm for test
success (lower bound).
* ld-aarch64/emit-relocs-309-up-bad.d: New file. Expected asm for test
failure (upper bound overflow).
* ld-aarch64/emit-relocs-309-up.d: New file. Expected asm for test
success (upper bound).
* ld-aarch64/emit-relocs-309.s: New file. Asm for new reloc tests.
gdbadmin [Wed, 12 Sep 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 12 Sep 2012 00:00:05 +0000 (00:00 +0000)]
daily update
Doug Evans [Tue, 11 Sep 2012 22:42:22 +0000 (22:42 +0000)]
* dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
.gdb_index symbol attributes if there are none.
Doug Evans [Tue, 11 Sep 2012 21:37:04 +0000 (21:37 +0000)]
* gdb.cp/mb-inline.exp: Do "info break" after setting multi-location
breakpoint.
Joel Brobecker [Tue, 11 Sep 2012 21:26:16 +0000 (21:26 +0000)]
Name of symbol missing when printing global variable's address
The build_address_symbolic funnction filters out data symbols if
their size is set to zero. But the problem is that the COFF symbol
table (for instance) does not provide any size information, leaving
the size to its default value of zero, thus always triggering
the filter.
This shows up when trying to print the address of a global variable
when debugging a Windows executable, for instance.
gdb/ChangeLog:
* symtab.h (struct minimal_symbol) [has_size]: New field.
(MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
(SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
* printcmd.c (build_address_symbolic): Only filter out zero-sized
minimal symbols if the symbol's size is actually known.
* minsyms.c (prim_record_minimal_symbol_full): Adjust setting
of msymbol's size field. Add comment.
* elfread.c (elf_symtab_read, elf_rel_plt_read): Use
SET_MSYMBOL_SIZE to set the minimal symbol size.
Joel Brobecker [Tue, 11 Sep 2012 21:26:04 +0000 (21:26 +0000)]
install_minimal_symbols: use memset instead of setting each field.
gdb/ChangeLog:
* minsyms.c (install_minimal_symbols): Use memset to fill entire
minimal_symbol struct object, rather than setting some of its
fields one by one.
Denis Chertykov [Tue, 11 Sep 2012 17:01:00 +0000 (17:01 +0000)]
PR gas/13503
* config/tc-avr.h (TC_VALIDATE_FIX): Skip: BFD_RELOC_AVR_8_LO,
BFD_RELOC_AVR_8_HI, BFD_RELOC_AVR_8_HLO.
Doug Evans [Tue, 11 Sep 2012 16:42:09 +0000 (16:42 +0000)]
* gdb.dwarf2/fission-base.S: Include gdb.dwarf2/ in dwo_name.
* gdb.dwarf2/fission-reread.S: Ditto.
* gdb.dwarf2/fission-base.exp: Remove setting of debug-file-directory.
* gdb.dwarf2/fission-reread.exp: Ditto.
Andrew Burgess [Tue, 11 Sep 2012 09:03:08 +0000 (09:03 +0000)]
sourceware.org/ml/gdb-patches/2012-09/msg00013.html
gdb/ChangeLog:
* c-typeprint.c (c_type_print_varspec_prefix): Pass through the
passed_a_ptr flag when displaying typedef types.
gdb/testsuite/ChangeLog:
* gdb.base/ptype.exp: Test ptype on a pointer to a typedef.
Alan Modra [Tue, 11 Sep 2012 00:39:02 +0000 (00:39 +0000)]
* Makefile.am (bootstrap): Add $EXEEXT to dependency.
* Makefile.in: Regenerate.
Alan Modra [Tue, 11 Sep 2012 00:03:43 +0000 (00:03 +0000)]
PR gprof/13836
* fsf_callg_bl.m: Fix typo.
gdbadmin [Tue, 11 Sep 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 11 Sep 2012 00:00:04 +0000 (00:00 +0000)]
daily update
Alan Modra [Mon, 10 Sep 2012 23:57:09 +0000 (23:57 +0000)]
missed from 2012-08-15 change
Alan Modra [Mon, 10 Sep 2012 23:10:41 +0000 (23:10 +0000)]
PR gold/14566
* layout.cc (Layout::set_segment_offsets): When using
common-page-size alignment, ensure we are on a new max-page-size
page.
* output.cc (Output_segment::set_section_addresses): Use
abi_pagesize, not common_pagesize for relro boundary.
(Output_segment::set_offset): Likewise.
Alan Modra [Mon, 10 Sep 2012 23:05:54 +0000 (23:05 +0000)]
* output.h (Output_data_got::add_global_tls, add_local_tls,
add_local_tls_pair): New functions.
(Output_data_got::add_local_pair_with_rel): Remove second
reloc param. Expand comment.
(Output_data_got::Got_entry): Rename use_plt_offset_ to
use_plt_or_tls_offset_, similarly for constructor param.
(Output_data_got::Got_entry::write): Add got_index param.
* output.cc (Output_data_got::add_global_tls, add_local_tls,
add_local_tls_pair): New functions.
(Output_data_got::Got_entry::write): Handle tls symbols
with use_plt_or_tls_offset_ set specially.
(Output_data_got::add_local_pair_with_rel): Only one reloc.
(Output_data_got::do_write): Replace iterator with index, pass
index to entry write function.
* target.h (Target::tls_offset_for_local, tls_offset_for_global,
do_tls_offset_for_local, do_tls_offset_for_global): New functions.
* arm.cc (Target_arm::Scan::local): Update add_local_pair_with_rel
call.
* i386.cc (Target_i386::Scan::local): Likewise.
* sparc.cc (Target_sparc::Scan::local): Likewise.
* x86_64.cc (Target_x86_64::Scan::local): Likewise.
* powerpc.cc (Target_powerpc::do_tls_offset_for_local,
do_tls_offset_for_global): New functions.
(Target_powerpc::Scan::local): Correct TLS relocations and got
entry values.
(Target_powerpc::Scan::global): Don't emit unnecessary
dynamic relocations on TLS GOT entries.
Alan Modra [Mon, 10 Sep 2012 22:30:57 +0000 (22:30 +0000)]
* config.in: Disable sanity check for kfreebsd.
Joel Brobecker [Mon, 10 Sep 2012 22:18:24 +0000 (22:18 +0000)]
crash printing optimized out variant type
Assuming the following declarations:
type Discriminants_Record (A : Integer; B : Boolean) is record
C : Float;
end record;
Z : Discriminants_Record := (A => 1, B => False, C => 2.0);
If variable Z is not used, and the compiler optimizes it out,
GDB would crash as follow:
(gdb) print Z
/[...]/gdb/valops.c:1121: internal-error: Unexpected lazy value type.
This is because the ada-lang module forgot to set the optimized_out
flag in the value returned by ada_evaluate_subexp during the value's
"fixing" process. Later on, when trying to print the resulting value,
GDB finds that the value is still lazily allocated, and thus tries to
fetch it. But this is not allowed for not_lval values, hence the internal
error.
gdb/ChangeLog:
* ada-lang.c (coerce_unspec_val_to_type): Make sure that
the optimized_out flag is preserved.
gdb/testsuite/ChangeLog:
* gdb.ada/optim_drec: New testcase.
Anthony Green [Mon, 10 Sep 2012 21:16:43 +0000 (21:16 +0000)]
Fix function prologue analyzer for moxie.
Sterling Augustine [Mon, 10 Sep 2012 19:16:33 +0000 (19:16 +0000)]
2012-09-10 Sterling Augustine <saugustine@google.com>
* gdb-index.cc (Gdb_index::pubnames_read): New parameter.
(Gdb_index::pubtypes_read): New parameter.
(Gdb_index_info_reader::read_pubnames_and_pubtypes): Add parameters
to calls.
* gdb-index.h (Gdb_index): New fields pubnames_object_ and
pubtypes_object_.
Doug Evans [Mon, 10 Sep 2012 17:48:11 +0000 (17:48 +0000)]
* boards/fission.exp: Explicitly mark "board" as not remote.
Keith Seitz [Mon, 10 Sep 2012 17:12:53 +0000 (17:12 +0000)]
PR gdb/13483
* gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
(BOOL_CONVERSION_BADNESS): ... this.
* gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
(rank_one_type): Allow all boolean conversions
permitted by the standard.
* gdb.cp/converts.cc (A::A): Add ctor.
(A::member_): Add member.
(enum my_enum): New enumeration.
(main): Add calls to foo1_7 with various
permitted arguments.
* gdb.cp/converts.exp: Add tests for boolean
conversions permitted by the standard.
H.J. Lu [Mon, 10 Sep 2012 17:00:44 +0000 (17:00 +0000)]
Regenerate binutils configure
bfd/
2012-09-10 H.J. Lu <hongjiu.lu@intel.com>
* configure: Regenerated.
binutils/
2012-09-10 H.J. Lu <hongjiu.lu@intel.com>
* configure: Regenerated.
etc/
2010-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* Makefile.in (install-strip): New target.
gas/
2012-09-10 H.J. Lu <hongjiu.lu@intel.com>
* configure: Regenerated.
gold/
2012-09-09 Alan Modra <amodra@gmail.com>
* target.h (Target::gc_mark_symbol, do_gc_mark_symbol): New functions.
gprof/
2012-09-10 H.J. Lu <hongjiu.lu@intel.com>
* configure: Regenerated.
intl/
2010-06-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
PR bootstrap/44621
ld/
2012-09-10 H.J. Lu <hongjiu.lu@intel.com>
* configure: Regenerated.
libiberty/
2011-08-28 H.J. Lu <hongjiu.lu@intel.com>
* argv.c (dupargv): Replace malloc with xmalloc. Don't check
opcodes/
2012-09-10 H.J. Lu <hongjiu.lu@intel.com>
* configure: Regenerated.
Alan Modra [Mon, 10 Sep 2012 14:35:07 +0000 (14:35 +0000)]
* configure.tgt (powerpc-*-elf, et al): Define targ_extra_libpath.
Correct whitespace.
(powerpcle-*-elf, et al): Likewise. Correct targ_extra_emuls.
Iain Sandoe [Mon, 10 Sep 2012 09:59:07 +0000 (09:59 +0000)]
* configure.tgt (powerpc-*-elf, et al): Define targ64_extra_emuls
and targ64_extra_libpath.
(powerpcle-*-elf, et al): Likewise.
Alan Modra [Mon, 10 Sep 2012 00:00:04 +0000 (00:00 +0000)]
daily update
gdbadmin [Mon, 10 Sep 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Hans-Peter Nilsson [Sun, 9 Sep 2012 16:31:12 +0000 (16:31 +0000)]
* ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols
to be emitted and checked.
* ld-mmix/data-1.s, ld-mmix/orph-.d, ld-mmix/orph-awp.d,
ld-mmix/orph-d-a.d, ld-mmix/orph-d-awn.d, ld-mmix/orph-d-awp.d,
ld-mmix/orph-d-awpe.d, ld-mmix/orph-d.d, ld-mmix/orph-dc-ap.d,
ld-mmix/orph-dc-awp.d, ld-mmix/orph-dc.d, ld-mmix/tm-ae.s,
ld-mmix/tm-ape.s, ld-mmix/tm-awne.s, ld-mmix/tm-awpe.s,
ld-mmix/tm-d-ap.s, ld-mmix/tm-d-awp.s, ld-mmix/tm-d.s,
ld-mmix/tm-e.s, ld-mmix/tm-orph1.s: New test files.
Hans-Peter Nilsson [Sun, 9 Sep 2012 16:30:40 +0000 (16:30 +0000)]
* emultempl/mmo.em (mmo_place_orphan): Rewrite to also attach
orphan sections to .data and .bss output sections, not just .text.
When giving up on finding a suitable output section, attach to any
output section other than .MMIX.reg_contents, if it exists.
* scripttempl/mmo.sc: Move output debug sections to just before
.MMIX.reg_contents. Add .gnu.attributes. Add new . = . NOP
assignments and move end-of-section provide-symbols after them
to force the end-of-section symbols to the address after orphan
placement. Add SORT_NONE to .init and .fini sections.
Alan Modra [Sun, 9 Sep 2012 03:43:51 +0000 (03:43 +0000)]
* target.h (Target::gc_mark_symbol, do_gc_mark_symbol): New functions.
(Sized_target::gc_add_reference, do_gc_add_reference): New functions.
* gc.h (gc_process_relocs): Call target gc_add_reference.
* gold.cc (queue_middle_tasks): Use gc_mark_symbol on start sym.
* symtab.cc (Symbol_table::gc_mark_undef_symbols): Use gc_mark_symbol.
(Symbol_table::gc_mark_symbol): Call target gc_mark_symbol. Remove
unnecessary cast.
* powerpc.cc (Powerpc_relobj::get_opd_ent): Rearrange parameters
to cater for when we don't need code offset. Update use.
(Powerpc_relobj::access_from_map_, opd_valid_): New vars.
(Powerpc_relobj::access_from_map, add_reference, opd_valid,
set_opd_valid): New functions.
(Target_powerpc::do_gc_add_reference): New function.
(Target_powerpc::gc_process_relocs): Call gc()->add_reference on
stashed refs.
(Target_powerpc::do_gc_mark_symbol): New function.