binutils-gdb.git
12 years ago PR ld/14207
Alan Modra [Tue, 3 Jul 2012 05:47:35 +0000 (05:47 +0000)]
PR ld/14207
* elf.c (assign_file_positions_for_load_sections): Remove assertions
that only PT_LOAD headers include file header and section headers.
(assign_file_positions_for_non_load_sections): Similarly don't
assert PT_GNU_RELRO header does not include file and section headers.
Compare first section vma rather than PT_LOAD p_vaddr against
relro_start when looking for PT_LOAD covering PT_GNU_RELRO.  Replace
abort with assertion.

12 years agodaily update
Alan Modra [Tue, 3 Jul 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Tue, 3 Jul 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years agogdb/
Jan Kratochvil [Mon, 2 Jul 2012 20:39:13 +0000 (20:39 +0000)]
gdb/
* linux-thread-db.c (thread_db_new_objfile): Fix comment typos.

Plus add in an already checked in file:
(thread_db_new_objfile): Exclude debug files.

12 years agogdb/
Jan Kratochvil [Mon, 2 Jul 2012 20:31:09 +0000 (20:31 +0000)]
gdb/
* config.in: Regenerate.
* configure: Regenerate.
* configure.ac: Remove check for gnu/libc-version.h.
* linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
gnu/libc-version.h.
(enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
variables libc_version, libc_major and libc_minor.  Replace sscanf by
inferior_has_bug.  Extend the comment.

12 years agogdb/
Jan Kratochvil [Mon, 2 Jul 2012 20:28:38 +0000 (20:28 +0000)]
gdb/
* linux-thread-db.c (inferior_has_bug): New function.
(thread_db_find_new_threads_silently): Return boolean as checked by
inferior_has_bug, describe it in the comments.
(try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
earlier.  Abort the initialization if it returned non-zero.
(thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
if UNTIL_NO_NEW,

gdb/testsuite/
* gdb.threads/gcore-thread.exp: Remove variable libthread_db_seen.
Wrap the test into loop for corefile and core0file.

12 years agogdb/testsuite/
Jan Kratochvil [Mon, 2 Jul 2012 20:10:48 +0000 (20:10 +0000)]
gdb/testsuite/
* gdb.dwarf2/fission-reread.S: Change # comments to /* */ comments.

12 years agogdb/testsuite/
Jan Kratochvil [Mon, 2 Jul 2012 20:09:26 +0000 (20:09 +0000)]
gdb/testsuite/
* gdb.dwarf2/fission-reread.S: Remove .section attributes.
Change CU pointer size to 4 bytes, adjust .8byte to .4byte.  Remove
.note.GNU-stack.

12 years ago * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
Doug Evans [Mon, 2 Jul 2012 20:02:39 +0000 (20:02 +0000)]
* dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
related to queue management.

12 years agold/testsuite/
Roland McGrath [Mon, 2 Jul 2012 18:20:31 +0000 (18:20 +0000)]
ld/testsuite/
* ld/testsuite/ld-i386/tlsbin-nacl.rd: Update for symbol table changes.
* ld/testsuite/ld-i386/tlsbindesc-nacl.rd: Likewise.
* ld/testsuite/ld-i386/tlsdesc-nacl.rd: Likewise.
* ld/testsuite/ld-i386/tlsgdesc-nacl.rd: Likewise.
* ld/testsuite/ld-i386/tlsnopic-nacl.rd: Likewise.
* ld/testsuite/ld-i386/tlspic-nacl.rd: Likewise.
* ld/testsuite/ld-x86-64/tlsbin-nacl.rd: Likewise.
* ld/testsuite/ld-x86-64/tlsbindesc-nacl.rd: Likewise.
* ld/testsuite/ld-x86-64/tlsdesc-nacl.rd: Likewise.
* ld/testsuite/ld-x86-64/tlsgdesc-nacl.rd: Likewise.
* ld/testsuite/ld-x86-64/tlspic-nacl.rd: Likewise.

12 years ago * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
Doug Evans [Mon, 2 Jul 2012 18:13:41 +0000 (18:13 +0000)]
* dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
instead of "debug dwarf2-die" in debugging printfs.
(create_debug_info_hash_table_reader): Ditto.
(create_debug_info_hash_table): Ditto.
(init_dwo_file): Ditto.
(init_cutu_and_read_dies): Add debugging printf.
(init_cutu_and_read_dies_no_follow): Ditto.
(process_psymtab_comp_unit_reader): Ditto.

12 years agogas/testsuite/
Roland McGrath [Mon, 2 Jul 2012 18:12:28 +0000 (18:12 +0000)]
gas/testsuite/
* gas/i386/rep-suffix.s: Add 'rep nop' case.
* gas/i386/x86-64-rep-suffix.s: Likewise.
* gas/i386/rep-suffix.d: Updated.
* gas/i386/x86-64-rep-suffix.d: Likewise.
* gas/i386/ilp32/x86-64-rep-suffix.d: Likewise.

opcodes/
* i386-opc.tbl: Add RepPrefixOk to nop.
* i386-tbl.h: Regenerate.

12 years agogdb/testsuite:
Sergio Durigan Junior [Mon, 2 Jul 2012 17:53:19 +0000 (17:53 +0000)]
gdb/testsuite:

2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>

* gdb.base/help.exp (help b, help br, help bre, help brea, help
break): Include help message for the new `-probe' and `-probe-stap'
options.

12 years ago(gdb_no_commands_at_breakpoint): Tweak previous patch for win64 where
Doug Evans [Mon, 2 Jul 2012 17:37:35 +0000 (17:37 +0000)]
(gdb_no_commands_at_breakpoint): Tweak previous patch for win64 where
sizeof (long) < sizeof (void*).

12 years ago * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
Doug Evans [Mon, 2 Jul 2012 17:11:36 +0000 (17:11 +0000)]
* mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
pointer to int.

12 years agoFix ChangeLog entry
H.J. Lu [Mon, 2 Jul 2012 17:06:52 +0000 (17:06 +0000)]
Fix ChangeLog entry

12 years agoMove rep tests for bsf/bsr/ret to rep-suffix
H.J. Lu [Mon, 2 Jul 2012 17:04:51 +0000 (17:04 +0000)]
Move rep tests for bsf/bsr/ret to rep-suffix

* gas/i386/i386.exp: Don't run rep-bsf nor rep-ret.

* gas/i386/rep-bsf.d: Removed.
* gas/i386/rep-bsf.s: Likewise.
* gas/i386/rep-ret.d: Likewise.
* gas/i386/rep-ret.s: Likewise.

* gas/i386/rep-suffix.d: Updated.
* gas/i386/x86-64-rep-suffix.d: Likewise.
* gas/i386/ilp32/x86-64-rep-suffix.d: Likewise.

* gas/i386/rep-suffix.s: Add tests for bsf, bsr and ret.
* i386/x86-64-rep-suffix.s: Likewise.

12 years agoReplace __end_SECNAME with __stop_SECNAME
H.J. Lu [Mon, 2 Jul 2012 16:29:07 +0000 (16:29 +0000)]
Replace __end_SECNAME with __stop_SECNAME

* ld.texinfo: Replace __end_SECNAME with __stop_SECNAME.

12 years ago Add target-side support for dynamic printf.
Stan Shebs [Mon, 2 Jul 2012 15:29:39 +0000 (15:29 +0000)]
Add target-side support for dynamic printf.
* NEWS: Mention the additional style.
* breakpoint.h (struct bp_target_info): New fields tcommands, persist.
(struct bp_location): New field cmd_bytecode.
* breakpoint.c: Include format.h.
(disconnected_dprintf): New global.
(parse_cmd_to_aexpr): New function.
(build_target_command_list): New function.
(insert_bp_location): Call it.
(remove_breakpoints_pid): Skip dprintf breakpoints.
(print_one_breakpoint_location): Ditto.
(dprintf_style_agent): New global.
(dprintf_style_enums): Add dprintf_style_agent.
(update_dprintf_command_list): Add agent case.
(agent_printf_command): New function.
(_initialize_breakpoint): Add new commands.
* common/ax.def (printf): New bytecode.
* ax.h (ax_string): Declare.
* ax-gdb.h (gen_printf): Declare.
* ax-gdb.c: Include cli-utils.h, format.h.
(gen_printf): New function.
(maint_agent_print_command): New function.
(_initialize_ax_gdb): Add maint agent-printf command.
* ax-general.c (ax_string): New function.
(ax_print): Add printf disassembly.
* Makefile.in (SFILES): Add format.c
(COMMON_OBS): Add format.o.
* common/format.h: New file.
* common/format.c: New file.
* printcmd.c: Include format.h.
(ui_printf): Call parse_format_string.
* remote.c (remote_state): New field breakpoint_commands.
(PACKET_BreakpointCommands): New enum.
(remote_breakpoint_commands_feature): New function.
(remote_protocol_features): Add new BreakpointCommands entry.
(remote_can_run_breakpoint_commands): New function.
(remote_add_target_side_commands): New function.
(remote_insert_breakpoint): Call it.
(remote_insert_hw_breakpoint): Ditto.
(_initialize_remote): Add new packet configuration for
target-side breakpoint commands.
* target.h (struct target_ops): New field
to_can_run_breakpoint_commands.
(target_can_run_breakpoint_commands): New macro.
* target.c (update_current_target): Handle
to_can_run_breakpoint_commands.

[gdbserver]
* Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
(ax.o): Add it to build rule.
(ax-ipa.o): Ditto.
(OBS): Add format.o.
(IPA_OBS): Add format.o.
* server.c (handle_query): Claim support for breakpoint commands.
(process_point_options): Add command case.
(process_serial_event): Leave running if there are printfs in
effect.
* mem-break.h (any_persistent_commands): Declare.
(add_breakpoint_commands): Declare.
(gdb_no_commands_at_breakpoint): Declare.
(run_breakpoint_commands): Declare.
* mem-break.c (struct point_command_list): New struct.
(struct breakpoint): New field command_list.
(any_persistent_commands): New function.
(add_commands_to_breakpoint): New function.
(add_breakpoint_commands): New function.
(gdb_no_commands_at_breakpoint): New function.
(run_breakpoint_commands): New function.
* linux-low.c (linux_wait_1): Test for and run breakpoint commands
locally.
* ax.c: Include format.h.
(ax_printf): New function.
(gdb_eval_agent_expr): Add printf opcode.

[doc]
* gdb.texinfo (Dynamic Printf): Mention agent style and
disconnected dprintf.
(Maintenance Commands): Describe maint agent-printf.
(General Query Packets): Mention BreakpointCommands feature.
(Packets): Document commands extension to Z0 packet.
* agentexpr.texi (Bytecode Descriptions): Document printf
bytecode.

[testsuite]
* gdb.base/dprintf.exp: Add agent style tests.

12 years agoAdd a test for weak alias
H.J. Lu [Mon, 2 Jul 2012 14:40:19 +0000 (14:40 +0000)]
Add a test for weak alias

* ld-elf/data2.c: New file.
* ld-elf/weakdef1.c: Likewise.

* ld-elf/shared.exp: Add tests for libdata2 and weakdef1.

12 years ago * dwarf.c: Include gdb-index.h.
Tom Tromey [Mon, 2 Jul 2012 14:35:33 +0000 (14:35 +0000)]
* dwarf.c: Include gdb-index.h.
(display_gdb_index): Handle version 7.

12 years agogdb/testsuite/
Jan Kratochvil [Mon, 2 Jul 2012 12:06:56 +0000 (12:06 +0000)]
gdb/testsuite/
* gdb.base/stale-infcall.c (infcall): New label test-next.
(main): New labels test-pass and test-fail.
* gdb.base/stale-infcall.exp: Continue to test-next.  Put breakpoint
$test_fail_bpnum to test-fail.
(test system longjmp tracking support): New test.
Delete $test_fail_bpnum.
* lib/gdb.exp (gdb_continue_to_breakpoint): Accept also Temporary
breakpoint.

12 years agogdb/
Jan Kratochvil [Mon, 2 Jul 2012 12:05:01 +0000 (12:05 +0000)]
gdb/
Execute -ix and -iex only after system and user gdbinit files.
* main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
processing down after gdbinit files.

gdb/doc/
* gdb.texinfo (File Options): Change -ix and -iex commands that apply
only after gdbinit files.
(Startup): Move -iex and -iex commands down after gdbinit files.

12 years agogdb/
Jan Kratochvil [Mon, 2 Jul 2012 11:52:39 +0000 (11:52 +0000)]
gdb/
Add fnmatch-gnu module.
* gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
* gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
* gnulib/aclocal.m4: Regenerate.
* gnulib/config.in: Regenerate.
* gnulib/configure: Regenerate.
* gnulib/import/dummy.c: Remove.
* gnulib/import/Makefile.am: Regenerate.
* gnulib/import/Makefile.in: Likewise.
* gnulib/import/m4/gnulib-cache.m4: Likewise.
* gnulib/import/m4/gnulib-comp.m4: Likewise.
* gnulib/import/alloca.c: New file.
* gnulib/import/alloca.in.h: Likewise.
* gnulib/import/config.charset: Likewise.
* gnulib/import/fnmatch.c: Likewise.
* gnulib/import/fnmatch.in.h: Likewise.
* gnulib/import/fnmatch_loop.c: Likewise.
* gnulib/import/localcharset.c: Likewise.
* gnulib/import/localcharset.h: Likewise.
* gnulib/import/m4/alloca.m4: Likewise.
* gnulib/import/m4/codeset.m4: Likewise.
* gnulib/import/m4/configmake.m4: Likewise.
* gnulib/import/m4/fcntl-o.m4: Likewise.
* gnulib/import/m4/fnmatch.m4: Likewise.
* gnulib/import/m4/glibc21.m4: Likewise.
* gnulib/import/m4/localcharset.m4: Likewise.
* gnulib/import/m4/locale-fr.m4: Likewise.
* gnulib/import/m4/locale-ja.m4: Likewise.
* gnulib/import/m4/locale-zh.m4: Likewise.
* gnulib/import/m4/mbrtowc.m4: Likewise.
* gnulib/import/m4/mbsinit.m4: Likewise.
* gnulib/import/m4/mbsrtowcs.m4: Likewise.
* gnulib/import/m4/mbstate_t.m4: Likewise.
* gnulib/import/m4/stdbool.m4: Likewise.
* gnulib/import/m4/wchar_h.m4: Likewise.
* gnulib/import/m4/wctype_h.m4: Likewise.
* gnulib/import/m4/wint_t.m4: Likewise.
* gnulib/import/mbrtowc.c: Likewise.
* gnulib/import/mbsinit.c: Likewise.
* gnulib/import/mbsrtowcs-impl.h: Likewise.
* gnulib/import/mbsrtowcs-state.c: Likewise.
* gnulib/import/mbsrtowcs.c: Likewise.
* gnulib/import/ref-add.sin: Likewise.
* gnulib/import/ref-del.sin: Likewise.
* gnulib/import/stdbool.in.h: Likewise.
* gnulib/import/streq.h: Likewise.
* gnulib/import/strnlen1.c: Likewise.
* gnulib/import/strnlen1.h: Likewise.
* gnulib/import/verify.h: Likewise.
* gnulib/import/wchar.in.h: Likewise.
* gnulib/import/wctype.in.h: Likewise.

12 years agogdb/
Jan Kratochvil [Mon, 2 Jul 2012 10:57:34 +0000 (10:57 +0000)]
gdb/
Support shell wildcards for 'set auto-load safe-path'.
* auto-load.c: Include fnmatch.h.
(filename_is_in_dir): Rename to ...
(filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
it.  Update function comment.  Rename dir_len to pattern_len.  New
variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
messages.  Use gdb_filename_fnmatch.
(filename_is_in_auto_load_safe_path_vec): Rename variable dir to
pattern.
(_initialize_auto_load): Extend the "set auto-load safe-path" help text.
* defs.h (gdb_filename_fnmatch): New declaration.
* utils.c: Include fnmatch.h.
(gdb_filename_fnmatch): New function.

gdb/doc/
* gdb.texinfo (Auto-loading safe path): Note the shell wildcard
possibility.

12 years ago * write.c (fixup_segment): Only perform the subtraction of an
Nick Clifton [Mon, 2 Jul 2012 07:35:06 +0000 (07:35 +0000)]
* write.c (fixup_segment): Only perform the subtraction of an
fx_subsy symbol if MD_APPLY_SYM_VALUE allows it and the symbol is
properly defined.
* config/tc-msp430.h (MD_APPLY_SYM_VALUE): Define.

12 years ago2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
Sergio Durigan Junior [Mon, 2 Jul 2012 03:36:04 +0000 (03:36 +0000)]
2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>

* breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
`-probe' and `-probe-stap' options.

12 years ago * elf32-m32c.c (m32c_elf_check_relocs): Use bfd_make_section
Alan Modra [Mon, 2 Jul 2012 03:02:45 +0000 (03:02 +0000)]
* elf32-m32c.c (m32c_elf_check_relocs): Use bfd_make_section
"anyway" variant when creating .plt.
(m32c_elf_relax_plt_section): Remove redundant test and unused param.
(m32c_elf_relax_section): Test SEC_LINKER_CREATED before calling
m32c_elf_relax_plt_section.
* elfxx-mips.c (mips_elf_create_got_section): Use make anyway variant
when creating .got and .got.plt.
(_bfd_mips_elf_final_link): Likewise for .rtproc, and use
bfd_get_linker_section.
* sunos.c: Similarly throughout.

12 years ago*** empty log message ***
gdbadmin [Mon, 2 Jul 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Mon, 2 Jul 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years agogdb:
Yao Qi [Sun, 1 Jul 2012 10:37:04 +0000 (10:37 +0000)]
gdb:
* breakpoint.c: Removed always_inserted_auto, always_inserted_on,
always_inserted_off, and always_inserted_enums.
Change always_inserted_mode's type to 'enum auto_boolean'.
(show_always_inserted_mode, breakpoint_always_inserted_mode): Update
callers.
(_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
of add_setshow_enum_cmd.
* infrun.c: Remove can_use_displaced_stepping_auto,
can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
can_use_displaced_stepping_enum.
Change can_use_displaced_stepping's type to 'enum auto_boolean'.
(show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
(_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
add_setshow_enum_cmd.

12 years ago* elf.c (_bfd_elf_make_section_from_shdr): Fix typo in error
Andreas Schwab [Sun, 1 Jul 2012 08:23:13 +0000 (08:23 +0000)]
* elf.c (_bfd_elf_make_section_from_shdr): Fix typo in error
message.

12 years ago * dwarf2read.c (signatured_type): Make "per_cu" member first.
Doug Evans [Sun, 1 Jul 2012 02:05:13 +0000 (02:05 +0000)]
* dwarf2read.c (signatured_type): Make "per_cu" member first.
(init_cutu_and_read_dies): Handle rereading a DWO CU while it's
currently being read.  Propagate DW_AT_comp_dir to DWO DIE.

testsuite/
* gdb.dwarf2/fission-reread.S: New file.
* gdb.dwarf2/fission-reread.exp: New file.

12 years ago*** empty log message ***
gdbadmin [Sun, 1 Jul 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sun, 1 Jul 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years agoAdd testcases for PR gas/14315
H.J. Lu [Sat, 30 Jun 2012 12:35:52 +0000 (12:35 +0000)]
Add testcases for PR gas/14315

PR gas/14315
* gas/elf/common1.d: New file.
* gas/elf/common1.l: Likewise.
* gas/elf/common1.s: Likewise.
* gas/elf/common2.d: Likewise.
* gas/elf/common2.l: Likewise.
* gas/elf/common2.s: Likewise.

* gas/elf/elf.exp: Run common1 and common2.

12 years ago PR gas/14315
Alan Modra [Sat, 30 Jun 2012 06:32:29 +0000 (06:32 +0000)]
PR gas/14315
* config/obj-elf.c (obj_elf_weak): Don't set local.

12 years ago * frags.h (frag_offset_fixed_p): Update prototype.
Alan Modra [Sat, 30 Jun 2012 00:27:31 +0000 (00:27 +0000)]
* frags.h (frag_offset_fixed_p): Update prototype.
* frags.c (frag_offset_fixed_p): Change type of "offset" to offsetT.
* expr.c (expr, resolve_expression): Likewise for frag_off var.

12 years ago*** empty log message ***
gdbadmin [Sat, 30 Jun 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sat, 30 Jun 2012 00:00:05 +0000 (00:00 +0000)]
daily update

12 years ago * linespec.c: #include "stack.h".
Doug Evans [Fri, 29 Jun 2012 22:46:46 +0000 (22:46 +0000)]
* linespec.c: #include "stack.h".
(decode_line_with_current_source): Moved here from symtab.c and
renamed from decode_line_spec.  All callers updated.
(decode_line_with_last_displayed): Moved here from breakpoint.c and
renamed from decode_line_spec_1.  All callers updated.
* linespec.h (decode_line_with_current_source): Move declaration here
from symtab.h and renamed from decode_line_spec.
(decode_line_with_last_displayed): Move declaration here from symtab.h
and renamed from decode_line_spec_1.
* macrocmd.c: #include "linespec.h".
* symtab.c: Remove #include "linespec.h".

12 years agoReturn FALSE on unresolvable relocation
H.J. Lu [Fri, 29 Jun 2012 21:54:44 +0000 (21:54 +0000)]
Return FALSE on unresolvable relocation

* elf64-x86-64.c (elf_x86_64_relocate_section): Return FALSE
on unresolvable relocation.

12 years agoSimplify global symbol handling
H.J. Lu [Fri, 29 Jun 2012 17:36:21 +0000 (17:36 +0000)]
Simplify global symbol handling

* archive.c (_bfd_compute_and_write_armap): Simplify global
symbol handling.

12 years agoSimplify global symbol handling
H.J. Lu [Fri, 29 Jun 2012 16:55:15 +0000 (16:55 +0000)]
Simplify global symbol handling

* nm.c (filter_symbols): Simplify global symbol handling.

12 years ago PR ld/14189
Nick Clifton [Fri, 29 Jun 2012 15:20:30 +0000 (15:20 +0000)]
PR ld/14189
* elf32-arm.c (elf32_arm_check_relocs): Do not increment refcount
for locally bound symbols.

12 years ago PR gas/14263
Nick Clifton [Fri, 29 Jun 2012 15:15:48 +0000 (15:15 +0000)]
PR gas/14263
* config/tc-arm.c (parse_operands): Initialise val.

12 years ago * section.c (bfd_get_linker_section): New function.
Alan Modra [Fri, 29 Jun 2012 14:46:03 +0000 (14:46 +0000)]
* section.c (bfd_get_linker_section): New function.
* elf32-arm.c: When retrieving SEC_LINKER_CREATED sections, use
the above throughout rather than bfd_get_section_by_name.  Use
bfd_make_section_anyway rather than bfd_make_section when creating
them.
* elf32-bfin.c: Likewise.
* elf32-cr16.c: Likewise.
* elf32-cris.c: Likewise.
* elf32-frv.c: Likewise.
* elf32-hppa.c: Likewise.
* elf32-i370.c: Likewise.
* elf32-i386.c: Likewise.
* elf32-lm32.c: Likewise.
* elf32-m32c.c: Likewise.
* elf32-m32r.c: Likewise.
* elf32-m68k.c: Likewise.
* elf32-microblaze.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-rl78.c: Likewise.
* elf32-s390.c: Likewise.
* elf32-score.c: Likewise.
* elf32-score7.c: Likewise.
* elf32-sh.c: Likewise.
* elf32-tic6x.c: Likewise.
* elf32-tilepro.c: Likewise.
* elf32-vax.c: Likewise.
* elf32-xstormy16.c: Likewise.
* elf32-xtensa.c: Likewise.
* elf64-alpha.c: Likewise.
* elf64-hppa.c: Likewise.
* elf64-ia64-vms.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-s390.c: Likewise.
* elf64-sh64.c: Likewise.
* elf64-sparc.c: Likewise.
* elf64-x86-64.c: Likewise.
* elfnn-ia64.c: Likewise.
* elfxx-mips.c: Likewise.
* elfxx-sparc.c: Likewise.
* elfxx-tilegx.c: Likewise.
* elflink.c: Likewise.
* elf-vxworks.c: Likewise.
* elf-m10300.c: Likewise.  Also make use of htab plt, got and
gotplt shortcuts.
* bfd-in2.h: Regenerate.
* elf32-lm32.c (lm32_elf_check_relocs): Use the correct bfd when
calling create_rofixup_section.
* elflink.c (bfd_elf_final_link): Simplify test for .dynstr.

12 years ago * gdb.texinfo (Index Section Format): Update for version 7.
Tom Tromey [Fri, 29 Jun 2012 13:39:02 +0000 (13:39 +0000)]
* gdb.texinfo (Index Section Format): Update for version 7.

12 years ago PR binutils/14302
Nick Clifton [Fri, 29 Jun 2012 12:59:49 +0000 (12:59 +0000)]
PR binutils/14302
* bucomm.c (print_arelt_descr): Correctly report the archive size
field (for 'ar tv').
* ar.c (print_contents): Use correct types for archive element
sizes (for 'ar p').
(extract_file): Likewise (for 'ar x').

12 years agomerge from gcc
DJ Delorie [Fri, 29 Jun 2012 12:10:05 +0000 (12:10 +0000)]
merge from gcc

12 years ago * scripttempl/alphavms.sc: Add .debug_macro section.
Nick Clifton [Fri, 29 Jun 2012 07:58:46 +0000 (07:58 +0000)]
* scripttempl/alphavms.sc: Add .debug_macro section.
* scripttempl/elf.sc: Likewise.
* scripttempl/elf64hppa.sc: Likewise.
* scripttempl/elf_chaos.sc: Likewise.
* scripttempl/elfxtensa.sc: Likewise.
* scripttempl/ia64vms.sc: Likewise.
* scripttempl/armbpabi.sc: Add .debug_pubtypes, .debug_ranges and
.debug_macro sections.
* scripttempl/avr.sc: Likewise.
* scripttempl/elf32cr16.sc: Likewise.
* scripttempl/elf32crx.sc: Likewise.
* scripttempl/elf32msp430.sc: Likewise.
* scripttempl/elf32msp430_3.sc: Likewise.
* scripttempl/elf32sh-symbian.sc: Likewise.
* scripttempl/elfd30v.sc: Likewise.
* scripttempl/elfi370.sc: Likewise.
* scripttempl/elfm68hc11.sc: Likewise.
* scripttempl/elfm68hc12.sc: Likewise.
* scripttempl/elfxgate.sc: Likewise.
* scripttempl/i386beos.sc: Likewise.
* scripttempl/i386go32.sc: Likewise.
* scripttempl/ip2k.sc: Likewise.
* scripttempl/iq2000.sc: Likewise.
* scripttempl/mep.sc: Likewise.
* scripttempl/mmo.sc: Likewise.
* scripttempl/v850.sc: Likewise.
* scripttempl/xstormy16.sc: Likewise.

12 years ago * elf32-sh.c (sh_elf_create_dynamic_sections): Don't create .rela
Alan Modra [Fri, 29 Jun 2012 07:37:50 +0000 (07:37 +0000)]
* elf32-sh.c (sh_elf_create_dynamic_sections): Don't create .rela
section for bss type sections, except for .rela.bss.
* elf-m10300.c (_bfd_mn10300_elf_create_dynamic_sections): Likewise.
* elf32-cr16.c (_bfd_cr16_elf_create_dynamic_sections): Likewise.
* elf32-lm32.c (lm32_elf_create_dynamic_sections): Likewise.
* elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise.
* elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise.

12 years ago * gas/lns/lns.exp (lns-common-1): Add crx to alt target list.
Alan Modra [Fri, 29 Jun 2012 07:04:49 +0000 (07:04 +0000)]
* gas/lns/lns.exp (lns-common-1): Add crx to alt target list.

12 years ago * readelf.c (is_16bit_abs_reloc): Handle mn10200 reloc.
Alan Modra [Fri, 29 Jun 2012 07:02:36 +0000 (07:02 +0000)]
* readelf.c (is_16bit_abs_reloc): Handle mn10200 reloc.

12 years ago * dwarf2read.c (get_cu_length): New function.
Doug Evans [Fri, 29 Jun 2012 00:52:41 +0000 (00:52 +0000)]
* dwarf2read.c (get_cu_length): New function.
(offset_in_cu_p, error_check_comp_unit_head): Call it.
(create_debug_types_hash_table): Ditto.
(init_cutu_and_read_dies): Ditto.
(init_cutu_and_read_dies_no_follow): Ditto.

12 years ago * dwarf2read.c (dwarf2_find_base_address): Move definition.
Doug Evans [Fri, 29 Jun 2012 00:28:23 +0000 (00:28 +0000)]
* dwarf2read.c (dwarf2_find_base_address): Move definition.

12 years agoremove extraneous blank line
Doug Evans [Fri, 29 Jun 2012 00:20:37 +0000 (00:20 +0000)]
remove extraneous blank line

12 years ago * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
Doug Evans [Fri, 29 Jun 2012 00:06:18 +0000 (00:06 +0000)]
* dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
(struct abbrev_table): Define.
(dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
abbrev_table.
(init_cutu_and_read_dies): Update.
(abbrev_table_alloc_abbrev): New function.  Replaces
dwarf_alloc_abbrev.  All callers updated.
(abbrev_table_add_abbrev): New function.
(abbrev_table_lookup_abbrev): New function.  Replaces
dwarf2_lookup_abbrev.  All callers updated.
(abbrev_table_read_table): New function.  Contents moved here from
dwarf2_read_abbrevs.
(dwarf2_read_abbrevs): Call it.
(abbrev_table_free): New function.
(dwarf2_free_abbrev_table): Call it.

12 years agodaily update
Alan Modra [Fri, 29 Jun 2012 00:00:05 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Fri, 29 Jun 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago * osdata.c (info_osdata_command): Filter out "Title" columns
Stan Shebs [Thu, 28 Jun 2012 23:44:26 +0000 (23:44 +0000)]
* osdata.c (info_osdata_command): Filter out "Title" columns
from non-MI uses.
* common/linux-osdata.c (struct osdata_type): Add title field.
(osdata_table): Add titles to each entry.
(linux_command_xfer_osdata): Add a column for title data.

* gdb.texinfo (Miscellaneous GDB/MI Commands): Update -info-os
example, add note about title column.

12 years ago Make logging work for MI.
Stan Shebs [Thu, 28 Jun 2012 22:11:23 +0000 (22:11 +0000)]
Make logging work for MI.
* NEWS: Mention it.
* interps.h (interp_set_logging_ftype): New typedef.
(struct interp_procs): New field set_logging_proc.
(current_interp_set_logging): Declare.
* interps.c (current_interp_set_logging): New function.
* cli/cli-logging.c: Include interps.h.
(set_logging_redirect): Call current_interp_set_logging.
(pop_output_files): Ditto.
(handle_redirections): Ditto, plus skip ui-out redirect if MI.
* mi/mi-console.h (mi_console_set_raw): Declare.
* mi/mi-console.c (mi_console_set_raw): New function.
* mi/mi-interp.c (saved_raw_stdout): New global.
(mi_set_logging): New function.
(_initialize_mi_interp): Add it to interp procs.

* gdb.mi/mi-logging.exp: New file.

12 years agogas/config/
Sean Keys [Thu, 28 Jun 2012 21:36:35 +0000 (21:36 +0000)]
gas/config/
* tc-xgate.h: Defined tc_frob_symbol.
* tc-xgate.c (xgate_frob_symbol): Wrote new function to mark
  symbols as being XGATE by setting st_target_internal value.

bfd/
* elf32-xgate.c (elf32_xgate_add_symbol_hook): Added a temp patch
  that forces st_target_internal to equal 1, since tc_frob_symbol
  seems to need adjusting.

12 years ago * symtab.c (lookup_symbol_aux_objfile): Use
Doug Evans [Thu, 28 Jun 2012 18:56:52 +0000 (18:56 +0000)]
* symtab.c (lookup_symbol_aux_objfile): Use
ALL_OBJFILE_PRIMARY_SYMTABS.

12 years ago * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
Doug Evans [Thu, 28 Jun 2012 17:13:18 +0000 (17:13 +0000)]
* gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".

12 years agogdb/
Jan Kratochvil [Thu, 28 Jun 2012 17:07:34 +0000 (17:07 +0000)]
gdb/
* common/buffer.c: Include inttypes.h and stdint.h.
(buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.

12 years agobfd/
Roland McGrath [Thu, 28 Jun 2012 16:57:24 +0000 (16:57 +0000)]
bfd/
* elf32-arm.c (elf32_arm_populate_plt_entry): Use int32_t for
displacement calculation in nacl_p case.

12 years agogdb/
Pedro Alves [Thu, 28 Jun 2012 16:34:04 +0000 (16:34 +0000)]
gdb/
2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
    Pedro Alves  <palves@redhat.com>

* gdbthread.h (ALL_THREADS): New macro.
(thread_list): Declare.
* infrun.c (handle_inferior_event) <spurious signal>: Don't keep
going, but instead fall through to the stepping handling.
* linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
the passed in signal.  Adjust debug output.
(resume_callback): Rename to ...
(linux_nat_resume_callback): ... this.  Pass the thread's last
stop signal, if in "pass" state.
(linux_nat_resume): Adjust to rename.
(stop_wait_callback): New assertion.  Don't respawn signals;
instead let the LWP remain with SIGNALLED set.
(linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
* remote.c (append_pending_thread_resumptions): New.
(remote_vcont_resume): Call it.
* target.h (target_resume): Extend comment.

gdb/testsuite/
2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
    Pedro Alves  <palves@redhat.com>

* gdb.threads/siginfo-threads.exp: New file.
* gdb.threads/siginfo-threads.c: New file.
* gdb.threads/sigstep-threads.exp: New file.
* gdb.threads/sigstep-threads.c: New file.

12 years agold/testsuite/
Roland McGrath [Thu, 28 Jun 2012 16:31:57 +0000 (16:31 +0000)]
ld/testsuite/
* ld-arm/arm-elf.exp (armelftests_common): Add a test that gets
arm-lib.so built so armeabitests_common can use it.
(unresolved-1-dyn): Exclude this test for [istarget "arm*-*-nacl*"].

12 years ago PR gas/14260
Nick Clifton [Thu, 28 Jun 2012 15:38:15 +0000 (15:38 +0000)]
PR gas/14260
* config/tc-arm.c (encode_arm_addr_mode_common): Generate an error
message if literal pool addressing is used.

* gas/arm/ldr-t-bad.s: Add test of bogus use of literal pool
addressing.
* gas/arm/ldr-t-bad.l: Update expected assembler error message
output.

12 years ago * po/vi.po: Updated Vietnamese translation.
Nick Clifton [Thu, 28 Jun 2012 14:36:01 +0000 (14:36 +0000)]
* po/vi.po: Updated Vietnamese translation.

* po/uk.po: New Ukranian translation.
* configure.in (ALL_LINGUAS): Add uk.
* configure: Regenerate.

12 years ago * gdb.go/package.exp: Partially revert earlier patch; use
Tom Tromey [Thu, 28 Jun 2012 13:52:51 +0000 (13:52 +0000)]
* gdb.go/package.exp: Partially revert earlier patch; use
gdb_compile again.  Use standard_output_file.

12 years agoRemove redundant statement
H.J. Lu [Thu, 28 Jun 2012 12:53:29 +0000 (12:53 +0000)]
Remove redundant statement

* ldlang.c (update_wild_statements): Remove redundant statement.

12 years ago* configure.ac (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Make sure
Alexandre Oliva [Thu, 28 Jun 2012 11:50:52 +0000 (11:50 +0000)]
* configure.ac (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Make sure
they contain -O2.
* configure: Regenerate.

12 years ago * dwarf2dbg.c (DWARF2_USE_FIXED_ADVANCE_PC): Enable when using
Nick Clifton [Thu, 28 Jun 2012 11:31:14 +0000 (11:31 +0000)]
* dwarf2dbg.c (DWARF2_USE_FIXED_ADVANCE_PC): Enable when using
linker relaxation.
(dwarf2_gen_line_info): Generate real, local, labels for line
numbers.
(dwarf2dbg_convert_frag): Do not finalize the computation of the
frag's symbol value when linker relaxation is enabled.
(ADDR_DELTA_LIMIT): Define.
(size_fixed_inc_line_addr): Use ADDR_DELTA_LIMIT.
(emit_fixed_inc_line_addr): Likewise.
* write.c (fixup_segment): If the subtraction of two symbols
cannot be resolved but is valid, then prevent bogus range warnings
by pre-biasing add_number.
* config/tc-h8300.h (DWARF2_USE_FIXED_ADVANCE_PC): Define to 0.

* gas/lns/lns.exp: Use alternate lns-common test for targets
enabling linker relaxation.
* gas/lns/lns-big-delta.d: Allow for output from architectures
with 32-bit addresses.

12 years ago * auxv.c (fprint_target_auxv): Handle extended cache data tags.
Iain Sandoe [Thu, 28 Jun 2012 09:13:22 +0000 (09:13 +0000)]
* auxv.c (fprint_target_auxv): Handle extended cache data tags.

12 years ago * common.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE,
Iain Sandoe [Thu, 28 Jun 2012 09:12:27 +0000 (09:12 +0000)]
* common.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE,
AT_L2_CACHESHAPE, AT_L3_CACHESHAPE): New defines.

12 years ago * dwarf2read.c (dwarf2_cu): Add ranges_base.
Doug Evans [Thu, 28 Jun 2012 01:10:38 +0000 (01:10 +0000)]
* dwarf2read.c (dwarf2_cu): Add ranges_base.
Delete have_addr_base, unused.  All uses updated.
(init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
(dwarf2_get_pc_bounds): Add ranges_base.
(dwarf2_record_block_ranges): Ditto.

testsuite/
* gdb.dwarf2/fission-base.c: New file.
* gdb.dwarf2/fission-base.S: New file.
* gdb.dwarf2/fission-base.exp: New file.

12 years agodaily update
Alan Modra [Thu, 28 Jun 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Thu, 28 Jun 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agogdb/testsuite/
Jan Kratochvil [Wed, 27 Jun 2012 23:37:03 +0000 (23:37 +0000)]
gdb/testsuite/
* gdb.dwarf2/callframecfa.exp: Replace $testname by $testfile.

12 years ago PR macros/7961:
Tom Tromey [Wed, 27 Jun 2012 18:08:41 +0000 (18:08 +0000)]
PR macros/7961:
* varobj.c (varobj_create): Update.
(varobj_set_value): Update.
* tracepoint.c (validate_actionline): Update.
(encode_actions_1): Update.
* parse.c (parse_exp_1): Add 'pc' argument.
(parse_exp_in_context): Add 'pc' argument.  Change how
expression_context_pc is set.
(parse_expression): Update.
(parse_field_expression): Update.
* expression.h (parse_exp_1): Update.
* eval.c (parse_to_comma_and_eval): Update.
* breakpoint.c (set_breakpoint_condition): Update.
(update_watchpoint): Update.
(init_breakpoint_sal): Update
(find_condition_and_thread): Update.
(watch_command_1): Update.
(update_breakpoint_locations): Update.
* ada-lang.c (ada_read_renaming_var_value): Update.
(create_excep_cond_exprs): Update.
testsuite
* gdb.base/macscp1.c (macscp_expr): Add breakpoint comment.
* gdb.base/macscp.exp (maybe_kfail): Add test for macro scope.

12 years ago * gdb.dwarf2/pr10770.exp: Use standard_testfile.
Tom Tromey [Wed, 27 Jun 2012 17:00:09 +0000 (17:00 +0000)]
* gdb.dwarf2/pr10770.exp: Use standard_testfile.
* gdb.dwarf2/dw2-var-zero-addr.exp: Use standard_testfile.
* gdb.dwarf2/dw2-param-error.exp: Use standard_testfile.
* gdb.dwarf2/dw2-op-call.exp: Use standard_testfile.
* gdb.dwarf2/dw2-inline-param.exp: Use standard_testfile,
prepare_for_testing.
* gdb.dwarf2/dw2-inline-break.exp: Use standard_testfile.
* gdb.dwarf2/dw2-ifort-parameter.exp: Use standard_testfile.
* gdb.dwarf2/dw2-cp-infcall-ref-static.exp: Use
standard_testfile.
* gdb.dwarf2/dw2-case-insensitive.exp: Use standard_testfile.
* gdb.dwarf2/dw4-sig-types.exp: Use standard_testfile.
* gdb.dwarf2/dw2-objfile-overlap.exp: Use standard_testfile.
* gdb.dwarf2/callframecfa.exp: Use standard_testfile,
prepare_for_testing.
* gdb.dwarf2/dup-psym.exp: Use standard_testfile.
* gdb.dwarf2/dw2-ada-ffffffff.exp: Use standard_testfile.
* gdb.dwarf2/dw2-anonymous-func.exp: Use standard_testfile.
* gdb.dwarf2/dw2-bad-parameter-type.exp: Use standard_testfile.
* gdb.dwarf2/dw2-basic.exp: Use standard_testfile.
* gdb.dwarf2/dw2-compressed.exp: Use standard_testfile.
* gdb.dwarf2/dw2-const.exp: Use standard_testfile.
* gdb.dwarf2/dw2-cu-size.exp: Use standard_testfile.
* gdb.dwarf2/dw2-double-set-die-type.exp: Use standard_testfile.
* gdb.dwarf2/dw2-empty-namespace.exp: Use standard_testfile.
* gdb.dwarf2/dw2-empty-pc-range.exp: Use standard_testfile.
* gdb.dwarf2/dw2-filename.exp: Use standard_testfile.
* gdb.dwarf2/dw2-icc-opaque.exp: Use standard_testfile.
* gdb.dwarf2/dw2-inheritance.exp: Use standard_testfile.
* gdb.dwarf2/dw2-intercu.exp: Use standard_testfile.
* gdb.dwarf2/dw2-intermix.exp: Use standard_testfile.
* gdb.dwarf2/dw2-linkage-name-trust.exp: Use standard_testfile.
* gdb.dwarf2/dw2-modula2-self-type.exp: Use standard_testfile.
* gdb.dwarf2/dw2-namespaceless-anonymous.exp: Use standard_testfile.
* gdb.dwarf2/dw2-op-stack-value.exp: Use standard_testfile.
* gdb.dwarf2/dw2-producer.exp: Use standard_testfile.
* gdb.dwarf2/dw2-ranges.exp: Use standard_testfile,
standard_output_file.
* gdb.dwarf2/dw2-ref-missing-frame.exp: Use standard_testfile,
standard_output_file.
* gdb.dwarf2/dw2-restore.exp: Use standard_testfile.
* gdb.dwarf2/dw2-simple-locdesc.exp: Use standard_testfile.
* gdb.dwarf2/dw2-skip-prologue.exp: Use standard_testfile.
* gdb.dwarf2/dw2-stack-boundary.exp: Use standard_testfile.
* gdb.dwarf2/dw2-strp.exp: Use standard_testfile.
* gdb.dwarf2/dw4-sig-type-unused.exp: Use standard_testfile.
* gdb.dwarf2/implptr-64bit.exp: Use standard_testfile.
* gdb.dwarf2/implptr-optimized-out.exp: Use standard_testfile.
* gdb.dwarf2/implptr.exp: Use standard_testfile.
* gdb.dwarf2/mac-fileno.exp: Use standard_testfile.
* gdb.dwarf2/member-ptr-forwardref.exp: Use standard_testfile.
* gdb.dwarf2/pieces.exp: Use standard_testfile.
* gdb.dwarf2/pr11465.exp: Use standard_testfile.
* gdb.dwarf2/pr13961.exp: Use standard_testfile.
* gdb.dwarf2/valop.exp: Use standard_testfile,
prepare_for_testing.

12 years ago * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
Doug Evans [Wed, 27 Jun 2012 14:26:09 +0000 (14:26 +0000)]
* dwarf2read.c (per_cu_header_read_in): Simplify, and handle
type units.

12 years ago * gdb.python/python.exp: Fix regexps in pagination tests.
Tom Tromey [Wed, 27 Jun 2012 13:37:26 +0000 (13:37 +0000)]
* gdb.python/python.exp: Fix regexps in pagination tests.

12 years agold-elf/ehdr_start.d (target): Add *-*-nacl*.
Roland McGrath [Wed, 27 Jun 2012 01:26:33 +0000 (01:26 +0000)]
ld-elf/ehdr_start.d (target): Add *-*-nacl*.

12 years ago * ld-elf/ehdr_start.s: Use data rather than rodata.
Alan Modra [Wed, 27 Jun 2012 01:18:09 +0000 (01:18 +0000)]
* ld-elf/ehdr_start.s: Use data rather than rodata.
* ld-elf/ehdr_start.d: Run on linux and gnu targets only.

12 years ago * gas/i386/rep-ret.s: Zero pad section.
Alan Modra [Wed, 27 Jun 2012 01:17:11 +0000 (01:17 +0000)]
* gas/i386/rep-ret.s: Zero pad section.
* gas/i386/rep-ret.d: Update.

12 years ago * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
Doug Evans [Wed, 27 Jun 2012 00:35:33 +0000 (00:35 +0000)]
* dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
prototype.
(error_check_comp_unit_head): New arg abbrev_section.  All callers
updated.
(read_and_check_comp_unit_head): Ditto.
(read_and_check_type_unit_head): Ditto.

12 years ago2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
Siva Chandra Reddy [Wed, 27 Jun 2012 00:21:21 +0000 (00:21 +0000)]
2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>

        New attribute 'last' for gdb.Symtab_and_line.
        * NEWS (Python Scripting): Add entry about the new attribute.
        * python/py-symtab.c (salpy_get_last): New function which
        implements the get method for the 'last' attribute of
        gdb.Symtab_and_line.
        (sal_object_getset): Add entry for the 'last' attribute.

        doc/
        * gdb.texinfo (Symbol Tables In Python): Add description about
        the new 'last' attribute of gdb.Symtab_and line.

        testsuite/
        * gdb.python/py-symtab.exp: Add tests to test the new attribute
        'last' of gdb.Symtab_and_line.
        * gdb.python/py-symbol.c: Move break point comment to enable
        testing of gdb.Symtab_and_line.last.

12 years agodaily update
Alan Modra [Wed, 27 Jun 2012 00:00:05 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Wed, 27 Jun 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
Siva Chandra Reddy [Tue, 26 Jun 2012 23:51:32 +0000 (23:51 +0000)]
2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>

* gdb.texinfo (Symbol Tables In Python): Correct the description
of the 'pc' attribute of gdb.Symtab_and_line.

12 years ago * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
Doug Evans [Tue, 26 Jun 2012 21:56:46 +0000 (21:56 +0000)]
* dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
(dwo_sections): Add macinfo, macro.
(dwarf2_locate_dwo_sections): Watch for macro sections.
(dwarf_decode_macros): Remove args lh, abfd, section, section_name.
All callers updated.  Handle DWO files.

12 years ago * NEWS: Mention new options "set debug dwarf2-read" and
Doug Evans [Tue, 26 Jun 2012 20:14:03 +0000 (20:14 +0000)]
* NEWS: Mention new options "set debug dwarf2-read" and
"set debug symtab-create".
* dwarf2read.c (dwarf2_read_debug): New static global.
(dwarf2_build_psymtabs_hard): Add debugging printfs.
(process_queue): Ditto.
(process_full_comp_unit): Ditto.
(_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
* elfread.c (elf_symfile_read): Add debugging printf.
* minsyms.c (install_minimal_symbols): Ditto.
* psymtab.c (allocate_psymtab): Ditto.
* symfile.c (allocate_symtab): Ditto.
* symtab.c (symtab_create_debug): New global.
(_initialize_symtab): Add new option "set debug symtab-create".
* symtab.h (symtab_create_debug): Declare.

doc/
* gdb.texinfo (Debugging Output): Document debug options dwarf2-read
and symtab-create.

12 years ago * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
Doug Evans [Tue, 26 Jun 2012 19:48:13 +0000 (19:48 +0000)]
* dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
(lookup_dwo_type_unit): Ditto.

12 years ago * gdb.threads/step.c: Remove.
Tom Tromey [Tue, 26 Jun 2012 19:46:30 +0000 (19:46 +0000)]
* gdb.threads/step.c: Remove.
* gdb.threads/step.exp: Remove.
* gdb.threads/step2.exp: Remove.

12 years ago * gdb.threads/watchpoint-fork.exp (test): Use
Tom Tromey [Tue, 26 Jun 2012 19:23:20 +0000 (19:23 +0000)]
* gdb.threads/watchpoint-fork.exp (test): Use
standard_output_file.  Don't declare objdir.
* gdb.threads/attach-into-signal.exp: Use standard_testfile,
standard_output_file.
* gdb.threads/attach-stopped.exp: Use standard_testfile.
* gdb.threads/bp_in_thread.exp: Use standard_testfile,
clean_restart.  Remove incdir.
* gdb.threads/corethreads.exp: Use standard_testfile.
* gdb.threads/execl.exp: Use standard_testfile,
standard_output_file, clean_restart.
* gdb.threads/fork-child-threads.exp: Use standard_testfile,
clean_restart.
* gdb.threads/fork-thread-pending.exp: Use standard_testfile,
clean_restart.
* gdb.threads/gcore-thread.exp: Use standard_testfile.  Remove
incdir.
* gdb.threads/hand-call-in-threads.exp: Use standard_testfile,
clean_restart.  Remove incdir.
* gdb.threads/ia64-sigill.exp: Use standard_testfile.
* gdb.threads/interrupted-hand-call.exp: Use standard_testfile,
clean_restart.  Remove incdir.
* gdb.threads/killed.exp: Use standard_testfile, clean_restart.
Remove incdir.
* gdb.threads/leader-exit.exp: Use standard_testfile.
* gdb.threads/linux-dp.exp: Use standard_testfile, clean_restart.
* gdb.threads/local-watch-wrong-thread.exp: Use standard_testfile,
clean_restart.
* gdb.threads/manythreads.exp: Use standard_testfile,
clean_restart.  Remove incdir.
* gdb.threads/multi-create.exp: Use standard_testfile,
clean_restart.
* gdb.threads/no-unwaited-for-left.exp: Use standard_testfile.
* gdb.threads/non-ldr-exc-1.exp: Use standard_testfile.
* gdb.threads/non-ldr-exc-2.exp: Use standard_testfile.
* gdb.threads/non-ldr-exc-3.exp: Use standard_testfile.
* gdb.threads/non-ldr-exc-4.exp: Use standard_testfile.
* gdb.threads/pending-step.exp: Use standard_testfile,
clean_restart.  Remove incdir.
* gdb.threads/print-threads.exp: Use standard_testfile,
clean_restart.  Remove incdir.
* gdb.threads/pthread_cond_wait.exp: Use standard_testfile,
clean_restart.  Remove incdir.
* gdb.threads/pthreads.exp: Use standard_testfile, clean_restart.
Remove incdir.
* gdb.threads/schedlock.exp: Use standard_testfile.  Remove
incdir.
* gdb.threads/sigthread.exp: Use standard_testfile,
clean_restart.
* gdb.threads/staticthreads.exp: Use standard_testfile,
clean_restart.  Remove incdir.
* gdb.threads/switch-threads.exp: Use standard_testfile,
clean_restart.  Remove incdir.
* gdb.threads/thread-execl.exp: Use standard_testfile,
clean_restart.  Remove incdir.
* gdb.threads/thread-find.exp: Use standard_testfile,
clean_restart.
* gdb.threads/thread-specific.exp: Use standard_testfile,
clean_restart.  Remove incdir.
* gdb.threads/thread-unwindonsignal.exp: Use standard_testfile,
clean_restart.  Remove incdir.
* gdb.threads/thread_check.exp: Use standard_testfile,
clean_restart.  Remove incdir.
* gdb.threads/thread_events.exp: Use standard_testfile.  Remove
incdir.
* gdb.threads/threadapply.exp: Use standard_testfile,
clean_restart.  Remove incdir.
* gdb.threads/threxit-hop-specific.exp: Use standard_testfile,
clean_restart.  Remove incdir.
* gdb.threads/tls-nodebug.exp: Use standard_testfile,
clean_restart.
* gdb.threads/tls-shared.exp: Use standard_testfile,
clean_restart, standard_output_file.
* gdb.threads/tls-var.exp: Use standard_testfile,
standard_output_file.
* gdb.threads/tls.exp: Use standard_testfile, clean_restart.
Remove incdir.
* gdb.threads/watchthreads-reorder.exp: Use standard_testfile.
* gdb.threads/watchthreads.exp: Use standard_testfile.  Remove
incdir.
* gdb.threads/watchthreads2.exp: Use standard_testfile,
clean_restart.  Remove incdir.

12 years ago * gdb.trace/actions.exp: Use standard_testfile.
Tom Tromey [Tue, 26 Jun 2012 18:25:19 +0000 (18:25 +0000)]
* gdb.trace/actions.exp: Use standard_testfile.
* gdb.trace/ax.exp: Use standard_testfile.
* gdb.trace/backtrace.exp: Use standard_testfile.
* gdb.trace/change-loc.exp: Use standard_testfile.
* gdb.trace/circ.exp: Use standard_testfile, prepare_for_testing.
* gdb.trace/collection.exp: Use standard_testfile,
prepare_for_testing.
* gdb.trace/deltrace.exp: Use standard_testfile.
* gdb.trace/disconnected-tracing.exp: Use standard_testfile.
* gdb.trace/ftrace.exp: Use standard_testfile.
* gdb.trace/infotrace.exp: Use standard_testfile.
* gdb.trace/packetlen.exp: Use standard_testfile.
* gdb.trace/passc-dyn.exp: Use standard_testfile.
* gdb.trace/passcount.exp: Use standard_testfile.
* gdb.trace/pending.exp: Use standard_testfile.
* gdb.trace/report.exp: Use standard_testfile.
* gdb.trace/save-trace.exp: Use standard_testfile.
* gdb.trace/stap-trace.exp: Use standard_testfile.
* gdb.trace/status-stop.exp: Use standard_testfile.
* gdb.trace/strace.exp: Use standard_testfile.
* gdb.trace/tfile.exp: Use standard_testfile.
* gdb.trace/tfind.exp: Use standard_testfile.
* gdb.trace/trace-break.exp: Use standard_testfile.
* gdb.trace/trace-mt.exp: Use standard_testfile.
* gdb.trace/tracecmd.exp: Use standard_testfile.
* gdb.trace/tspeed.exp: Use standard_testfile.
* gdb.trace/tstatus.exp: Use standard_testfile.
* gdb.trace/tsv.exp: Use standard_testfile.
* gdb.trace/unavailable.exp: Use standard_testfile,
prepare_for_testing.
* gdb.trace/while-dyn.exp: Use standard_testfile.
* gdb.trace/while-stepping.exp: Use standard_testfile.

12 years ago * gdb.reverse/break-precsave.exp: Use standard_testfile.
Tom Tromey [Tue, 26 Jun 2012 17:54:59 +0000 (17:54 +0000)]
* gdb.reverse/break-precsave.exp: Use standard_testfile.
* gdb.reverse/break-reverse.exp: Use standard_testfile.
* gdb.reverse/consecutive-precsave.exp: Use standard_testfile.
* gdb.reverse/consecutive-reverse.exp: Use standard_testfile.
* gdb.reverse/finish-precsave.exp: Use standard_testfile.
* gdb.reverse/finish-reverse-bkpt.exp: Use standard_testfile.
* gdb.reverse/finish-reverse.exp: Use standard_testfile.
* gdb.reverse/i386-precsave.exp: Use standard_testfile,
prepare_for_testing.
* gdb.reverse/i386-reverse.exp: Use standard_testfile,
prepare_for_testing.
* gdb.reverse/i386-sse-reverse.exp: Use standard_testfile,
prepare_for_testing.
* gdb.reverse/i387-env-reverse.exp: Use standard_testfile,
prepare_for_testing.
* gdb.reverse/i387-stack-reverse.exp: Use standard_testfile,
prepare_for_testing
* gdb.reverse/machinestate-precsave.exp: Use standard_testfile.
* gdb.reverse/machinestate.exp: Use standard_testfile.
* gdb.reverse/next-reverse-bkpt-over-sr.exp: Use standard_testfile.
* gdb.reverse/sigall-precsave.exp: Use standard_testfile,
build_executable.
* gdb.reverse/sigall-reverse.exp: Use standard_testfile,
build_executable.
* gdb.reverse/solib-precsave.exp: Use standard_testfile,
standard_output_file.
* gdb.reverse/solib-reverse.exp: Use standard_testfile,
standard_output_file.
* gdb.reverse/step-precsave.exp: Use standard_testfile.
* gdb.reverse/step-reverse.exp: Use standard_testfile.
* gdb.reverse/until-precsave.exp: Use standard_testfile.
* gdb.reverse/until-reverse.exp: Use standard_testfile.
* gdb.reverse/watch-precsave.exp: Use standard_testfile.
* gdb.reverse/watch-reverse.exp: Use standard_testfile.