Alan Modra
311b556392
daily update
2008-05-08 00:00:05 +00:00
Bob Wilson
51c8ebc1d0
bfd/
...
* elf32-xtensa.c (xtensa_property_section_name): New.
(xtensa_make_property_section): New.
(xtensa_get_property_section): Make static. Do not create a new
section if it does not exist.
gas/
* config/tc-xtensa.c (xtensa_create_property_segments): Use
xtensa_make_property_section instead of xtensa_get_property_section.
(xtensa_create_xproperty_segments): Likewise.
2008-05-07 23:13:09 +00:00
Joel Brobecker
236369e7e7
* sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
...
sparc64-sol2-tdep.c: Update for unwinder changes.
2008-05-07 19:30:04 +00:00
Alan Modra
8374f9d4b5
bfd/
...
* elf32-spu.c (spu_elf_special_sections): Add "._ea".
(spu_elf_relocate_section): Handle relocations against symbols
defined in ._ea specially.
binutils/
* embedspu.sh: Take note of R_SPU_PPU32/64 relocs without a symbol,
and if present, put image in ".data.speelf". Put program handle
in ".data.spehandle".
ld/emulparams/
* elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
* elf32ppc.sh: If building with spu support, put ".data.spehandle"
sections at the start of ".data" and provide a symbol to locate
the directory of embedded spe programs.
ld/testsuite/
* ld-spu/ear.s: Align various sections.
* ld-spu/embed.rd: Update.
2008-05-07 14:46:44 +00:00
Alan Modra
8c0848b509
* ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K. Correct
...
MAX_K.
(fold_binary <SEGMENT_START>): Set expld.result.section to
current section. Expand comment. Formatting.
(fold_name <DEFINED>): Set expld.result.section to current section.
2008-05-07 14:30:41 +00:00
Daniel Jacobowitz
de237128e5
* cp-support.c (mangled_name_to_comp): Initialize storage.
...
(unqualified_name_from_comp): Likewise.
2008-05-07 12:43:54 +00:00
Jie Zhang
4fff24118a
* remote.c (remote_insert_breakpoint): Call get_remote_state
...
after gdbarch_breakpoint_from_pc is called.
(remote_insert_hw_breakpoint): Likewise.
2008-05-07 11:54:41 +00:00
Ian Lance Taylor
f3e9c5c517
PR 6049
...
* options.h (DEFINE_set): Add VARNAME_begin and VARNAME_end
functions.
(class General_options): Remove existing --undefined, and add
--no-undefined instead. Add new --undefined as synonym for -u.
* archive.cc (Archive::add_symbols): Check whether symbol was
named with -u.
* gold.cc (queue_middle_tasks): Add -u symbols to symbol table.
* symtab.h (class Symbol): Rename CONSTANT to IS_CONSTANT; change
all uses. Add IS_UNDEFINED. Update declarations to split
different versions of init_base. Declare init_base_undefined.
(Symbol::is_defined): Handle IS_UNDEFINED.
(Symbol::is_undefined): Likewise.
(Symbol::is_weak_undefined): Call is_undefined.
(Symbol::is_absolute): Handle IS_CONSTANT.
(class Sized_symbol): Update declarations to split different
versions of init. Declare init_undefined.
(class Symbol_table): Declare new functions.
* symtab.cc (Symbol::init_base_object): Rename from init_base.
Change all callers.
(Symbol::init_base_output_data): Likewise.
(Symbol::init_base_output_segment): Likewise.
(Symbol::init_base_constant): Likewise.
(Symbol::init_base_undefined): New function.
(Sized_symbol::init_object): Rename from init. Change all
callers.
(Sized_symbol::init_output_data): Likewise.
(Sized_symbol::init_output_segment): Likewise.
(Sized_symbol::init_constant): Likewise.
(Sized_symbol::init_undefined): New function.
(Symbol_table::add_undefined_symbols_from_command_line): New
function.
(Symbol_table::do_add_undefined_symbols_from_command_line): New
function.
(Symbol::final_value_is_known): Handle IS_UNDEFINED.
(Symbol::output_section): Likewise.
(Symbol::set_output_section): Likewise.
(Symbol_table::sized_finalize_symbol): Likewise.
(Symbol_table::sized_write_globals): Likewise.
* resolve.cc (Symbol_table::should_override): Likewise.
(Symbol::override_base_with_special): Likewise.
2008-05-07 06:08:01 +00:00
Alan Modra
b26238c07d
missed from last commit
2008-05-07 04:52:35 +00:00
gdbadmin
1e3e12b3b9
*** empty log message ***
2008-05-07 00:00:33 +00:00
Alan Modra
567f807c66
daily update
2008-05-07 00:00:05 +00:00
Ian Lance Taylor
8bdcdf2c77
* symtab.cc (Symbol_table::add_from_dynobj): If we see a protected
...
symbol, change it to have default visibility.
* testsuite/protected_1.cc: New file.
* testsuite/protected_2.cc: New file.
* testsuite/protected_3.cc: New file.
* testsuite/protected_main_1.cc: New file.
* testsuite/protected_main_2.cc: New file.
* testsuite/protected_main_3.cc: New file.
* testsuite/Makefile.am (check_PROGRAMS): Add protected_1.
(protected_1_SOURCES, protected_1_DEPENDENCIES): Define.
(protected_1_LDFLAGS, protected_1_LDADD): Define.
(protected_1.so): New target.
(protected_1_pic.o, protected_2_pic.o): New targets.
(protected_3_pic.o): New target.
(check_PROGRAMS): Add protected_2.
(protected_2_SOURCES, protected_2_DEPENDENCIES): Define.
(protected_2_LDFLAGS, protected_2_LDADD): Define.
* testsuite/Makefile.in: Rebuild.
2008-05-06 22:24:26 +00:00
Joel Brobecker
b5dd68e231
* gdb.ada/lang_switch: New test program.
...
* gdb.ada/lang_switch.exp: New testcase.
2008-05-06 21:37:32 +00:00
Joel Brobecker
d8ca156b0e
* valprint.c (val_print): Add new language parameter and use it
...
instead of using the current_language. Update calls to val_print
throughout.
(common_val_print): Add new langauge parameter and pass it to
val_print.
* value.h (struct language_defn): Add opaque declaration.
(val_print, common_val_print): Update declarations.
* stack.c (print_frame_args): Update call to common_val_print
using the appropriate language.
* mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
* c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
#include "language.h" if necessary.
Update calls to val_print and common_val_print.
* Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
Update dependencies.
2008-05-06 21:35:01 +00:00
Ian Lance Taylor
2b706932ee
* options.h (DEFINE_var): Add set_user_set_##varname__.
...
(DEFINE_bool_alias): New macro.
(class General_options): Define -Bstatic using DEFINE_bool_alias
rather than DEFINE_special. Add --undefined as an alias for -z
defs.
* options.cc (General_options::parse_Bstatic): Remove.
2008-05-06 20:40:33 +00:00
Joel Brobecker
b1e6fd1961
* ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
...
pointing inside a non-executable section as function descriptors.
2008-05-06 20:03:03 +00:00
Pedro Alves
02b19d8463
* inf-loop.c (inferior_event_handler): Run all continuations and
...
print any language change before running the breakpoint commands.
2008-05-06 18:49:19 +00:00
Joel Brobecker
15c1e57ffb
* frame-unwind.c (frame_unwind_got_bytes): New function.
...
* frame-unwind.h (frame_unwind_got_bytes): Add declaration.
* libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
for unwinder changes.
2008-05-06 18:37:46 +00:00
Ian Lance Taylor
d82a5bcc85
* options.h (class General_options): Add --fatal-warnings.
...
* main.cc (main): Implement --fatal-warnings.
* errors.h (Errors::warning_count): New function.
2008-05-06 18:32:38 +00:00
Ian Lance Taylor
f1f70eae28
* options.h (class General_options): Add -Bsymbolic-functions.
...
* symtab.h (Symbol::is_preemptible): Check for
-Bsymbolic-functions.
2008-05-06 17:46:31 +00:00
Ian Lance Taylor
cc28ec6162
Correct last patch.
2008-05-06 05:54:21 +00:00
Ian Lance Taylor
d98bc257cf
2008-05-05 Ian Lance Taylor <iant@google.com>
...
* options.h (DEFINE_bool): For DASH_Z, create the negative option
as noVARNAME rather than no-VARNAME.
(class General_options): Add option -z combreloc.
* output.h (class Output_reloc) [SHT_REL]: Declare compare and
get_address.
(Output_reloc::sort_before) [SHT_REL]: New function.
(Output_reloc::sort_before) [SHT_RELA]: New function.
(class Output_data_reloc_base): Add sort_relocs_ field. Define
Sort_relocs_comparison.
(Output_data_reloc_base::Output_data_reloc_base): Add sort_relocs
parameter. Change all callers.
(Output_data_reloc::Output_data_reloc) [both versions]: Add
sort_relocs parameter. Change all callers.
* output.cc (Output_reloc::get_address): New function, broken out
of write_rel.
(Output_reloc::write_rel): Call it.
(Output_reloc::compare): New function.
(Output_data_reloc_base::do_write): Optionally sort relocs.
2008-05-06 05:03:15 +00:00
Alan Modra
00d1674256
daily update
2008-05-06 00:00:05 +00:00
gdbadmin
118c5f7c6a
*** empty log message ***
2008-05-06 00:00:03 +00:00
Doug Evans
382d13d1ca
* gdb.base/help.exp (disassemble): Update expected help text.
2008-05-05 22:54:49 +00:00
Doug Evans
d14508fea9
* NEWS: Mention new /m modifier for disassemble command.
...
* cli/cli-cmds.c (print_disassembly): New function.
(disassemble_current_function): New function
(disassemble_command): Recognize /m modifier, print mixed
source+assembly.
(init_cli_cmds): Update disassemble help text.
* gdb.texinfo (disassemble): Document /m modifier.
2008-05-05 21:14:37 +00:00
Maxim Grigoriev
5142f611ca
2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
...
* xtensa-tdep.c: Update for unwinder changes.
2008-05-05 20:49:44 +00:00
Andreas Schwab
f36bf22c92
Update m68k port for unwinder changes.
...
* m68k-tdep.c (m68k_frame_cache): Expect this_frame.
(m68k_frame_this_id, m68k_frame_prev_register): Update signature.
(m68k_frame_unwind): Use default_frame_sniffer.
(m68k_frame_sniffer): Remove.
(m68k_frame_base_address): Expect this_frame.
(m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
this_frame.
(m68k_gdbarch_init): Use set_gdbarch_dummy_id,
dwarf2_append_unwinders, and frame_unwind_append_unwinder.
* m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
parameter instead of pc value.
(m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
Expect this_frame.
(m68k_linux_sigtramp_frame_this_id)
(m68k_linux_sigtramp_frame_prev_register)
(m68k_linux_sigtramp_frame_sniffer): Update signature.
(m68k_linux_sigtramp_frame_unwind): Use
m68k_linux_sigtramp_frame_sniffer.
(m68k_linux_init_abi): Use frame_unwind_append_unwinder.
* m68klinux-nat.c (store_register): Fix typo.
2008-05-05 20:47:02 +00:00
Ian Lance Taylor
60b2b4e765
* configure.ac: If targ_extra_obj is set, link it in.
...
* configure.tgt: Initialize all variables.
(x86_64*): Set targ_extra_obj and targ_extra_size.
* configure: Rebuild.
2008-05-05 20:20:21 +00:00
Ian Lance Taylor
8825ac63ef
* object.cc (Sized_relobj::include_section_group): Adjust section
...
indexes read from group data. Build vector to pass to
layout_group.
* layout.cc (Layout::layout_group): Add flags and shndxes
parameters. Remove contents parameter. Change caller. Update
explicit instantiations.
* layout.h (class Layout): Update layout_group declaration.
* output.cc (Output_data_group::Output_data_group): Add flags and
input_shndxes parameters. Remove contents parameter. Change
caller.
(Output_data_group::do_write): Change input_sections_ to
input_shndxes_.
* output.h (class Output_data_group): Update constructor
declaration. Rename input_sections_ to input_shndxes_.
* testsuite/many_sections_test.cc: Add template.
2008-05-05 19:16:43 +00:00
Pedro Alves
b3dc826bc7
* infcmd.c (step_1): Put thread id on the stack to avoid possible
...
NULL dereferencing.
2008-05-05 16:41:42 +00:00
Luis Machado
6528a9eabd
* symfile.c (reread_symbols): Update objfile's entry point.
2008-05-05 16:13:49 +00:00
Aleksandar Ristovski
1f906a60f5
Minor typing error fixes in ChangeLog.
2008-05-05 14:47:09 +00:00
Aleksandar Ristovski
5eeb253942
* ada-lang.c: Update throughout to use symbol_matches_domain
...
instead of matching the symbol domain explictly.
* dwarf2read.c (add_partial_symbol): Do not add new psym for
STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
class as typedefs. See lookup_partial_symbol function.
(new_symbol): Similar to add_partial_symbol, do not create
symbol for the typedef. See lookup_block_symbol.
* symtab.c (symbol_matches_domain): New function, takes care
of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
(lookup_partial_symbol): Use symbol_matches_domain to see if the
found psym domain matches the given domain.
(lookup_block_symbol): Likewise.
2008-05-05 14:37:32 +00:00
M R Swami Reddy
e8db345894
Added 3 miscellaneous testcases like read32.ms uread16.ms hw-trap.ms.
2008-05-05 10:25:20 +00:00
M R Swami Reddy
9c301be69b
These files removed.
2008-05-05 10:00:16 +00:00
M R Swami Reddy
20f55b937b
Add the change for testcases comment update and new testcases addition.
2008-05-05 09:55:36 +00:00
M R Swami Reddy
fae9ec8dca
Update testcase comment.
...
addb.cgs addd.cgs addi.cgs andb.cgs andd.cgs andw.cgs
ashub.cgs ashub_i.cgs ashud.cgs ashud_i.cgs ashuw.cgs
ashuw_i.cgs cmpi.cgs cmpw.cgs jlt.cgs jump.cgs loadd.cgs
loadw.cgs lshb.cgs lshb_i.cgs lshd.cgs lshd_i.cgs lshw.cgs
lshw_i.cgs movb.cgs movd.cgs movw.cgs movxb.cgs movxw.cgs
movzb.cgs movzw.cgs mulb.cgs muluw.cgs mulw.cgs orb.cgs
ord.cgs orw.cgs pop1.cgs pop2.cgs pop3.cgs popret1.cgs
popret2.cgs popret3.cgs push1.cgs push2.cgs push3.cgs
Added BIT operation testcases:
cbitb.cgs cbitw.cgs sbitb.cgs sbitw.cgs tbitb.cgs tbit.cgs and tbitw.cgs
2008-05-05 09:52:46 +00:00
Vladimir Prus
e2b7ddeae3
* top.c (command_line_handler_continuation): Remove.
...
(execute_command): Do not install the above.
2008-05-05 09:47:47 +00:00
M R Swami Reddy
ccd2d1c879
Comment change
2008-05-05 09:41:33 +00:00
M R Swami Reddy
bff92e6613
Updated the sim engine's ecode logic and commit the code changes
2008-05-05 09:35:16 +00:00
M R Swami Reddy
948b4edeea
Update for code standards
2008-05-05 09:33:37 +00:00
M R Swami Reddy
537e4bb9d6
Cleaned up unwanted code and fixed BIT operations simulation.
2008-05-05 09:29:10 +00:00
M R Swami Reddy
8e26b0f4b5
Update simops struct members and PSR bits.
2008-05-05 09:24:26 +00:00
M R Swami Reddy
5da6971689
Fix typo.
2008-05-05 09:21:46 +00:00
M R Swami Reddy
052d9a542f
Update the machine code decode algorithm using hash table.
2008-05-05 09:19:42 +00:00
Vladimir Prus
fcfb8b02aa
* inf-loop.c (inferior_event_handler): Call bpstat_do_action,
...
and catch all exceptions from it.
* top.c (command_line_handler_continuation): Don't
call bpstat_do_action here.
2008-05-05 09:02:59 +00:00
Alan Modra
6766b6945a
PR 6473
...
* ld-elf/lma.s, ld-elf/lma.lnk: New test.
* ld-elf/binutils.exp: Run it.
2008-05-05 01:43:55 +00:00
gdbadmin
f2a4fb999a
*** empty log message ***
2008-05-05 00:00:36 +00:00
Alan Modra
0768d95b23
daily update
2008-05-05 00:00:06 +00:00