Vladimir Prus
92e28119da
* gdb.mi/mi-var-display.exp: Remove obsolete xfail.
...
* gdb.mi/mi2-var-display.exp: Likewise.
2008-03-26 13:36:51 +00:00
Vladimir Prus
9e8e3afe37
* lib/mi-support.exp (mi_create_varobj_checked): New.
...
(mi_list_varobj_children): Allow to check for a
value.
(mi_list_array_varobj_children): New.
* gdb.mi/mi-var-child.exp: Use mi_create_varobj
and mi_list_varobj_children, as opposed to hardcoding
expected strings.
* gdb.mi/gdb701.exp: Likewise.
* gdb.mi/gdb792.exp: Likewise.
* gdb.mi/mi-var-block.exp: Likewise.
* gdb.mi/mi-var-cmd.exp: Likewise.
* gdb.mi/mi-var-invalidate.exp: Likewise.
* gdb.mi/mi2-var-block.exp: Likewise.
* gdb.mi/mi2-var-child.exp: Likewise.
* gdb.mi/mi2-var-cmd.exp: Likewise.
* gdb.mi/mi2-var-display.exp: Likewise.
2008-03-26 13:24:22 +00:00
Bernd Schmidt
c35e54f424
* elf32-bfin.c (bfin_final_link_relocate): New function, wrapper around
...
_bfd_final_link_relocate that also handles R_pcrel24 relocs.
(bfinfdpic_relocate_section, bfin_relocate_section): Use it.
2008-03-26 13:04:23 +00:00
Ben Elliston
53fcba31ae
Fix a ChangeLog formatting problem.
2008-03-26 02:00:39 +00:00
gdbadmin
e8df11ae40
*** empty log message ***
2008-03-26 00:00:04 +00:00
Ian Lance Taylor
819d6c3aea
* options.cc: Include "../bfd/bfdver.h".
...
(options::help): Print bug reporting address.
2008-03-25 23:48:25 +00:00
Ian Lance Taylor
f4b2c6f5d1
* version.cc (print_version): Adjust output for current value of
...
BFD_VERSION_STRING.
2008-03-25 23:30:48 +00:00
Alan Modra
b896398099
daily update
2008-03-25 23:00:04 +00:00
Ian Lance Taylor
4e740ec80c
* NEWS: New file.
2008-03-25 21:55:29 +00:00
Ian Lance Taylor
e96caa7910
* options.cc (options::help): Print list of supported targets.
...
* target-select.h: Include <vector>.
(class Target_selector): Make machine_, size_, and is_big_endian_
fields const. Add bfd_name_ and instantiated_target_ fields.
(Target_selector::Target_selector): Add bfd_name parameter.
(Target_selector::recognize): Make non-virtual, call
do_recognize.
(Target_selector::recognize_by_name): Make non-virtual, call
do_recognize_by_name.
(Target_selector::supported_names): New function.
(Target_selector::bfd_name): New function.
(Target_selector::do_instantiate_target): New pure virtual
function.
(Target_selector::do_recognize): New virtual function.
(Target_selector::do_recognize_by_name): New virtual function.
(Target_selector::instantiate_target): New private function.
(supported_target_names): Declare.
* target-select.cc (Target_selector::Target_selector): Update for
new parameter and fields.
(select_target_by_name): Check that the name matches before
calling recognize_by_name.
(supported_target_names): New function.
* i386.cc (class Target_selector_i386): Update Target_selector
constructor call. Remove recognize and recognize_by_name. Add
do_instantiate_target.
* x86_64.cc (class Target_selector_x86_64): Likewise.
* testsuite/testfile.cc (class Target_selector_test): Update for
changes to Target_selector.
2008-03-25 21:39:01 +00:00
Ian Lance Taylor
874c5b289f
* README: Rewrite, with some notes on unsupported features.
2008-03-25 21:14:45 +00:00
Nathan Sidwell
3348747a87
bfd/
...
* elf32-arm.c (elf32_arm_final_link_relocate): Skip dynamic relocs
in vxworks tls_vars sections.
(allocate_dynrelocs, elf32_arm_size_dynamic_sections): Likewise.
* elf32-i386.c (allocate_dynrelocs,
elf_i386_size_dynamic_sections, elf_i386_relocate_section): Likewise.
* elf32-ppc.c (allocate_dynrelocs, ppc_elf_size_dynamic_sections,
ppc_elf_relocate_section): Likewise.
* elf32-sh.c (allocate_dynrelocs, sh_elf_size_dynamic_sections,
sh_elf_relocate_section): Likewise.
* elfxx-sparc.c (allocate_dynrelocs,
_bfd_sparc_elf_size_dynamic_sections,
_bfd_sparc_elf_relocate_section): Likewise.
ld/testsuite/
* ld-vxworks/tls-3.s: New.
* ld-vxworks/tls-3.d: New.
2008-03-25 18:56:02 +00:00
Cary Coutant
0a65a3a740
* i386.cc (Target_i386::Got_type): New enum declaration.
...
(Target_i386::Scan::local): Updated callers of Output_data_got
member functions.
(Target_i386::Scan::global): Likewise.
(Target_i386::Relocate::relocate): Likewise.
(Target_i386::Relocate::relocate_tls): Likewise.
* object.h (Got_offset_list): New class.
(Sized_relobj::local_has_got_offset): Added got_type parameter.
(Sized_relobj::local_got_offset): Likewise.
(Sized_relobj::set_local_got_offset): Likewise.
(Sized_relobj::local_has_tls_got_offset): Removed.
(Sized_relobj::local_tls_got_offset): Removed.
(Sized_relobj::set_local_tls_got_offset): Removed.
(Sized_relobj::Local_got_offsets): Changed to store a list of offsets.
* output.cc (Output_data_got::add_global): Added got_type parameter.
(Output_data_got::add_global_with_rel): Likewise.
(Output_data_got::add_global_with_rela): Likewise.
(Output_data_got::add_global_pair_with_rel): New function.
(Output_data_got::add_global_pair_with_rela): New function.
(Output_data_got::add_local): Added got_type parameter.
(Output_data_got::add_local_with_rel): Likewise.
(Output_data_got::add_local_with_rela): Likewise.
(Output_data_got::add_local_pair_with_rel): New function.
(Output_data_got::add_local_pair_with_rela): New function.
(Output_data_got::add_global_tls): Removed.
(Output_data_got::add_global_tls_with_rel): Removed.
(Output_data_got::add_global_tls_with_rela): Removed.
(Output_data_got::add_local_tls): Removed.
(Output_data_got::add_local_tls_with_rel): Removed.
(Output_data_got::add_local_tls_with_rela): Removed.
* output.h (Output_data_got::add_global): Added got_type parameter.
(Output_data_got::add_global_with_rel): Likewise.
(Output_data_got::add_global_with_rela): Likewise.
(Output_data_got::add_global_pair_with_rel): New function.
(Output_data_got::add_global_pair_with_rela): New function.
(Output_data_got::add_local): Added got_type parameter.
(Output_data_got::add_local_with_rel): Likewise.
(Output_data_got::add_local_with_rela): Likewise.
(Output_data_got::add_local_pair_with_rel): New function.
(Output_data_got::add_local_pair_with_rela): New function.
(Output_data_got::add_global_tls): Removed.
(Output_data_got::add_global_tls_with_rel): Removed.
(Output_data_got::add_global_tls_with_rela): Removed.
(Output_data_got::add_local_tls): Removed.
(Output_data_got::add_local_tls_with_rel): Removed.
(Output_data_got::add_local_tls_with_rela): Removed.
* resolve.cc (Symbol::override_base_with_special): Removed
reference to has_got_offset_ field.
* symtab.cc (Symbol::init_fields): Replaced initialization
of got_offset_ with got_offsets_. Removed initialization
of has_got_offset_
*symtab.h (Symbol::has_got_offset): Aded got_type parameter.
(Symbol::got_offset): Likewise.
(Symbol::set_got_offset): Likewise.
(Symbol::has_tls_got_offset): Removed.
(Symbol::tls_got_offset): Removed.
(Symbol::set_tls_got_offset): Removed.
(Symbol::got_offset_): Removed.
(Symbol::tls_mod_got_offset_): Removed.
(Symbol::tls_pair_got_offset_): Removed.
(Symbol::got_offsets_): New field.
(Symbol::has_got_offset): Removed.
(Symbol::has_tls_mod_got_offset): Removed.
(Symbol::has_tls_pair_got_offset): Removed.
* x86_64.cc (Target_x86_64::Got_type): New enum declaration.
(Target_x86_64::Scan::local): Updated callers of Output_data_got
member functions.
(Target_x86_64::Scan::global): Likewise.
(Target_x86_64::Relocate::relocate): Likewise.
(Target_x86_64::Relocate::relocate_tls): Likewise.
2008-03-25 18:37:16 +00:00
Pedro Alves
403fe1979f
* linux-nat.c (linux_nat_attach): Add the pid we attached to, to
...
gdb's thread list.
(linux_nat_wait): Add main lwp to gdb's thread list.
* linux-thread-db.c (find_new_threads_callback): Also attach to
already listed threads which thread_db didn't know about yet.
2008-03-25 12:26:21 +00:00
Pedro Alves
710151dda5
2008-03-25 Pedro Alves <pedro@codesourcery.com>
...
* linux-nat.c (drain_queued_events): Fix comment typo.
(linux_nat_attach): In async mode, don't rely on storing a pending
status. Instead place the wait status on the pipe.
(linux_nat_resume): Remove unreacheable shortcut code in async
mode.
(stop_wait_callback): In async mode, don't store pending status.
Instead, cancel breakpoints or resend the signal appropriatelly.
(cancel_breakpoint): New, refactored from
cancel_breakpoints_callback.
(cancel_breakpoints_callback): Call cancel_breakpoint.
(pipe_to_local_event_queue): Remove special token processing.
(linux_nat_wait): Issue an internal error if a pending status is
found in async mode.
2008-03-25 12:20:10 +00:00
Ben Elliston
bd52eafbd6
* yyscript.y: Fix spelling error in comment.
2008-03-25 07:50:21 +00:00
Ian Lance Taylor
8ed814a99c
* options.h (class General_options): Define build_id option.
...
* layout.h (class Layout): Declare write_build_id, create_note,
create_build_id. Add build_id_note_ member.
* layout.cc: Include <cerrno>, <fcntl.h>, <unistd.h>,
"libiberty.h", "md5.h", "sha1.h".
(Layout::Layout): Initialize eh_frame_data_,
eh_frame_hdr_section_, and build_id_note_.
(Layout::finalize): Call create_build_id.
(Layout::create_note): New function, broken out of
Layout::create_gold_note.
(Layout::create_gold_note): Call create_note.
(Layout::create_build_id): New function.
(Layout::write_build_id): New function.
(Close_task_runner::run): Call write_build_id.
2008-03-25 05:11:41 +00:00
Ian Lance Taylor
baf4901374
* elfcpp.h (NT_VERSION, NT_ARCH): Define as enum constants.
...
(NT_GNU_ABI_TAG, NT_GNU_HWCAP): Likewise.
(NT_GNU_BUILD_ID, NT_GNU_GOLD_VERSION): Likewise.
(ELF_NOTE_OS_LINUX, ELF_NOTE_OS_GNU): Likewise.
(ELF_NOTE_OS_SOLARIS2, ELF_NOTE_OS_NETBSD): Likewise.
(ELF_NOTE_OS_SYLLABLE): Likewise.
2008-03-25 05:00:01 +00:00
Ian Lance Taylor
15397d0b24
* common.h (NT_GNU_GOLD_VERSION): Define.
2008-03-25 04:58:21 +00:00
Ian Lance Taylor
f36d5d5539
The sha1 code is now in libiberty.
...
* sha1.c: Remove.
* sha1.h: Remove.
* Makefile.am (CFILES): Remove sha1.c.
(HFILES): Remove sha1.h.
(OFILES): Remove sha1.o.
(ld_new_SOURCES): Remove sha1.c.
(sha1.o): Remove target.
* Makefile.in: Rebuild.
2008-03-25 04:54:03 +00:00
DJ Delorie
b68965a0fa
merge from gcc
2008-03-25 01:02:13 +00:00
Ian Lance Taylor
72c15ffa84
Bring patch correction over from gcc repository.
2008-03-25 00:21:18 +00:00
gdbadmin
d49bd40868
*** empty log message ***
2008-03-25 00:00:03 +00:00
Ian Lance Taylor
66ce843946
* md5.h: Add extern "C" when compiled with C++.
2008-03-24 23:43:26 +00:00
Alan Modra
11f8f16916
daily update
2008-03-24 23:00:05 +00:00
Ian Lance Taylor
8b105e34ed
* x86_64.cc: Correct license to GPLv3.
2008-03-24 21:42:22 +00:00
Ben Elliston
29ce65ec6f
Add elfcpp, gold directories.
2008-03-24 20:19:41 +00:00
Daniel Jacobowitz
807bddf3a9
* inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
2008-03-24 18:10:00 +00:00
DJ Delorie
daddbc6edd
merge from gcc
2008-03-24 18:06:37 +00:00
Vladimir Prus
c5b48eacfa
* varobj.c (struct varobj_root): New component thread_id.
...
(varobj_get_thread_id, check_scope): New functions.
(c_value_of_root): Use check_scope. Switch to the
proper thread if necessary.
* varobj.h (varobj_get_thread_id): New extern.
* mi/mi-cmd-var.c (print_varobj): Add thread-id field.
2008-03-24 17:33:30 +00:00
Jan Kratochvil
9df503519c
Fix random false FAILs on i386.
...
* gdb.base/prelink.exp: Use `--no-exec-shield' for prelink.
2008-03-24 15:16:12 +00:00
Daniel Jacobowitz
31e5d73a44
PR gdb/544
...
* gdb.cp/annota2.exp, gdb.cp/annota3.exp: Reapply 2008-03-21 changes.
2008-03-24 13:27:07 +00:00
Jan Kratochvil
87adec2ec1
PR gdb/544
...
* rltty.c (block_sigint, release_sigint): Rename to...
(_rl_block_sigint, _rl_release_sigint): ...these and make them global.
* rltty.h (_rl_block_sigint, _rl_release_sigint): New prototypes.
* display.c (rl_redisplay): Wrap the function by the calls to
_RL_BLOCK_SIGINT and _RL_RELEASE_SIGINT.
2008-03-24 12:59:51 +00:00
Ian Lance Taylor
086a18414a
* options.cc: Include "demangle.h".
...
(parse_optional_string): New function.
(parse_long_option): Handle takes_optional_argument.
(parse_short_option): Update dash_z initializer. Handle
takes_optional_argument.
(General_options::General_options): Initialize do_demangle_.
(General_options::finalize): Set do_demangle_. Handle demangling
style.
* options.h (parse_optional_string): Declare.
(struct One_option): Add optional_arg field. Update constructor.
Update call constructor calls. Add takes_optional_argument
function.
(DEFINE_var): Add optional_arg__ parameter. Change all callers.
(DEFINE_optional_string): Define.
(General_options::demangle): Change from DEFINE_bool to
DEFINE_optional_string.
(General_options::no_demangle): New function.
(General_options::do_demangle): New function.
(General_options::set_do_demangle): New function.
(General_options::execstack_status_): Move definition to end of
class definition.
(General_options::static_): Likewise.
(General_options::do_demangle_): New field.
* object.cc (big_endian>::get_symbol_location_info): Call
Options::do_demangle, not Options::demangle.
* symtab.cc (demangle): Likewise.
2008-03-24 03:48:29 +00:00
gdbadmin
b5615ead1b
*** empty log message ***
2008-03-24 00:00:33 +00:00
Alan Modra
274466de1d
daily update
2008-03-23 23:00:05 +00:00
Daniel Jacobowitz
12f4afab79
Revert 2008-03-21 changes.
2008-03-23 17:29:34 +00:00
Vladimir Prus
6208b47d6c
* thread.c (make_cleanup_restore_current_thread): Make it
...
globally visible.
* gdbthread.h (make_cleanup_restore_current_thread): Declare.
* varobj.c (varobj_update): Don't save/restore frame.
(c_value_of_root): Save/restore thread and frame here,
using make_cleanup_restore_current_thread.
* Makefile.in: Update dependecies.
2008-03-23 09:53:52 +00:00
Vladimir Prus
44a67aa79a
* varobj.c (struct varobj_root): Clarify
...
comment on the frame field.
(varobj_create): Don't set frame if we have no
block.
2008-03-23 08:59:19 +00:00
gdbadmin
1dfc30766e
*** empty log message ***
2008-03-23 00:00:33 +00:00
Alan Modra
a4acfff7de
daily update
2008-03-22 23:00:05 +00:00
Ian Lance Taylor
cbb93e6310
* gold.h: Include <cstddef> and <sys/types.h>
...
* options.h: Include <cstring>.
2008-03-22 18:51:35 +00:00
Hans-Peter Nilsson
c427c3100c
* ld-cris/libdso-10.d: Adjust for change in objdump output.
2008-03-22 12:23:54 +00:00
Ian Lance Taylor
747aa1e396
Add ChangeLog file.
2008-03-22 00:02:52 +00:00
gdbadmin
126347d5cf
*** empty log message ***
2008-03-22 00:00:03 +00:00
Ian Lance Taylor
91edef2df1
* filenames.h: Add extern "C" when compiled with C++.
2008-03-21 23:40:18 +00:00
Ian Lance Taylor
ec531623a8
Add ChangeLog file now that the sources are part of the GNU binutils.
2008-03-21 23:25:13 +00:00
Alan Modra
6d6a162364
daily update
2008-03-21 23:00:05 +00:00
Daniel Jacobowitz
b562a0cb2a
PR gdb/544
...
Suggested by Jan Kratochvil:
* top.c (gdb_rl_operate_and_get_next_completion): Call
rl_redisplay_function.
(gdb_rl_redisplay): New.
(init_main): Set rl_redisplay_function.
* gdb.cp/annota2.exp, gdb.cp/annota3.exp: Remove KFAIL for
fixed PR gdb/544.
2008-03-21 21:44:30 +00:00
Joel Brobecker
ed1bd5f57f
* aix-thread.c (pdc_read_regs): Fix compiler warning.
...
(pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
(store_regs_kernel_thread): Likewise.
2008-03-21 20:06:58 +00:00