Alan Modra
2c38724144
* ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type.
...
(ppc_linux_remove_watchpoint): Likewise, and args.
2006-02-26 23:42:59 +00:00
Alan Modra
5533c5e569
daily update
2006-02-26 23:00:06 +00:00
Mark Kettenis
3597fb8298
* i386obsd-tdep.c (i386obsd_trapframe_sniffer): Also recognize
...
"soft" interrupts.
2006-02-26 13:03:33 +00:00
Nathan Sidwell
04ede391a6
missing from 2006-02-07 Nathan Sidwell <nathan@codesourcery.com> commit
2006-02-26 10:00:30 +00:00
gdbadmin
b32d8d93cb
*** empty log message ***
2006-02-26 00:00:04 +00:00
Alan Modra
c3c61f3e2e
daily update
2006-02-25 23:00:06 +00:00
Richard Sandiford
7325306f39
bfd/
...
* elf-bfd.h (elf_link_hash_table): Add hplt field.
* elflink.c (_bfd_elf_create_dynamic_sections): Initialize it.
* elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise.
* elf32-frv.c (_frv_create_got_section): Likewise.
* elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise.
* elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
* elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise.
* elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise.
* elf32-i386.c (elf_i386_link_hash_table): Remove hgot and hplt.
(elf_i386_link_hash_table_create): Don't initialize them.
(elf_i386_size_dynamic_sections): Use the generic ELF hplt and
hgot fields.
(elf_i386_finish_dynamic_symbol): Likewise.
* elf32-ppc.c (ppc_elf_link_hash_table): Remove hplt.
(ppc_elf_size_dynamic_sections): Use the generic ELF hplt fields.
(ppc_elf_finish_dynamic_symbol): Likewise.
2006-02-25 09:23:30 +00:00
Charles Wilson
637d6690a8
* gdb/defs.h: unconditionally include <fcntl.h>, and
...
ensure that O_BINARY is defined.
* gdb/solib.c(solib_open): ensure solib files are opened in
binary mode.
* gdb/corelow.c: Remove O_BINARY macro definition.
* gdb/exec.c: Remove O_BINARY macro definition
* gdb/remote-rdp.c: Remove O_BINARY macro definition
* gdb/source.c: Remove O_BINARY macro definition
* gdb/symfile.c: Remove O_BINARY macro definition
2006-02-25 04:36:39 +00:00
David S. Miller
83d634e3da
2006-02-24 David S. Miller <davem@sunset.davemloft.net>
...
* gas/sparc/rdhpr.s: New test.
* gas/sparc/rdhpr.d: New test.
* gas/sparc/wrhpr.s: New test.
* gas/sparc/wrhpr.d: New test.
* gas/sparc/window.s: New test.
* gas/sparc/window.d: New test.
* gas/sparc/rdpr.s: Add case for reading %gl register.
* gas/sparc/rdpr.d: Likewise.
* gas/sparc/wrpr.s: Add case for writing %gl register.
* gas/sparc/wrpr.d: Likewise.
* gas/sparc/sparc.exp: Update for new tests.
2006-02-25 01:36:12 +00:00
David S. Miller
10156f834a
2006-02-24 David S. Miller <davem@sunset.davemloft.net>
...
* config/tc-sparc.c (priv_reg_table): Add entry for "gl".
(hpriv_reg_table): New table for hyperprivileged registers.
(sparc_ip): New cases '$' and '%' for wrhpr/rdhpr hyperprivileged
register encoding.
2006-02-25 01:34:09 +00:00
David S. Miller
ff3f9d5b2a
2006-02-24 David S. Miller <davem@sunset.davemloft.net>
...
* sparc-dis.c (v9_priv_reg_names): Add "gl" entry.
(v9_hpriv_reg_names): New table.
(print_insn_sparc): Allow values up to 16 for '?' and '!'.
New cases '$' and '%' for read/write hyperprivileged register.
* sparc-opc.c (sparc_opcodes): Add new entries for UA2005
window handling and rdhpr/wrhpr instructions.
2006-02-25 01:33:24 +00:00
gdbadmin
c40c02dcc9
*** empty log message ***
2006-02-25 00:00:03 +00:00
Randolph Chung
9846e5417d
2006-02-24 Randolph Chung <tausq@debian.org>
...
* hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Initialize
argreg.
* solib-som.c (som_solib_remove_inferior_hook): Remove unused
function.
2006-02-24 23:52:04 +00:00
Alan Modra
04f1267984
daily update
2006-02-24 23:00:07 +00:00
DJ Delorie
6772dd07c4
[include/elf]
...
* m32c.h: Add relax relocs.
[cpu]
* m32c.cpu (RL_TYPE): New attribute, with macros.
(Lab-8-24): Add RELAX.
(unary-insn-defn-g, binary-arith-imm-dst-defn,
binary-arith-imm4-dst-defn): Add 1ADDR attribute.
(binary-arith-src-dst-defn): Add 2ADDR attribute.
(jcnd16-5, jcnd16, jcnd32, jmp16.s, jmp16.b, jmp16.w, jmp16.a,
jmp32.s, jmp32.b, jmp32.w, jmp32.a, jsr16.w, jsr16.a): Add JUMP
attribute.
(jsri16, jsri32): Add 1ADDR attribute.
(jsr32.w, jsr32.a): Add JUMP attribute.
[opcodes]
* m32c-desc.c: Regenerate with linker relaxation attributes.
* m32c-desc.h: Likewise.
* m32c-dis.c: Likewise.
* m32c-opc.c: Likewise.
[gas]
* config/tc-m32c.h (md_apply_fix): Define to m32c_apply_fix.
(tc_gen_reloc): Don't define.
* config/tc-m32c.c (rl_for, relaxable): New convenience macros.
(OPTION_LINKRELAX): New.
(md_longopts): Add it.
(m32c_relax): New.
(md_parse_options): Set it.
(md_assemble): Emit relaxation relocs as needed.
(md_convert_frag): Emit relaxation relocs as needed.
(md_cgen_lookup_reloc): Add LAB_8_8 and LAB_8_16.
(m32c_apply_fix): New.
(tc_gen_reloc): New.
(m32c_force_relocation): Force out jump relocs when relaxing.
(m32c_fix_adjustable): Return false if relaxing.
[bfd]
* elf32-m32c.c (m32c_elf_howto_table): Add relaxation relocs.
(m32c_elf_relocate_section): Don't relocate them.
(compare_reloc): New.
(relax_reloc): Remove.
(m32c_offset_for_reloc): New.
(m16c_addr_encodings): New.
(m16c_jmpaddr_encodings): New.
(m32c_addr_encodings): New.
(m32c_elf_relax_section): Relax jumps and address displacements.
(m32c_elf_relax_delete_bytes): Adjust for internal syms. Fix up
short jumps.
* reloc.c: Add m32c relax relocs.
* libbfd.h: Regenerate.
2006-02-24 22:10:36 +00:00
Paul Brook
ebdca51ad9
Check in correct version of previous patch.
2006-02-24 17:09:33 +00:00
H.J. Lu
508c39462a
2006-02-24 H.J. Lu <hongjiu.lu@intel.com>
...
PR ld/2218
* elf-bfd.h (elf_backend_data): Add elf_backend_fixup_symbol.
(_bfd_elf_link_hash_fixup_symbol): New.
* elflink.c (_bfd_elf_link_hash_fixup_symbol): New.
(_bfd_elf_fix_symbol_flags): Call elf_backend_fixup_symbol if
it isn't NULL.
* elfxx-ia64.c (elf_backend_fixup_symbol): Defined.
* elfxx-target.h (elf_backend_fixup_symbol): New.
(elfNN_bed): Initialize elf_backend_fixup_symbol.
2006-02-24 15:47:25 +00:00
Paul Brook
62b3e31101
2006-02-24 Paul Brook <paul@codesourcery.com>
...
gas/
* config/arm/tc-arm.c (arm_ext_v6_notm, arm_ext_div, arm_ext_v7,
arm_ext_v7a, arm_ext_v7r, arm_ext_v7m): New variables.
(struct asm_barrier_opt): Define.
(arm_v7m_psr_hsh, arm_barrier_opt_hsh): New variables.
(parse_psr): Accept V7M psr names.
(parse_barrier): New function.
(enum operand_parse_code): Add OP_oBARRIER.
(parse_operands): Implement OP_oBARRIER.
(do_barrier): New function.
(do_dbg, do_pli, do_t_barrier, do_t_dbg, do_t_div): New functions.
(do_t_cpsi): Add V7M restrictions.
(do_t_mrs, do_t_msr): Validate V7M variants.
(md_assemble): Check for NULL variants.
(v7m_psrs, barrier_opt_names): New tables.
(insns): Add V7 instructions. Mark V6 instructions absent from V7M.
(md_begin): Initialize arm_v7m_psr_hsh and arm_barrier_opt_hsh.
(arm_cpu_option_table): Add Cortex-M3, R4 and A8.
(arm_arch_option_table): Add armv7, armv7a, armv7r and armv7m.
(struct cpu_arch_ver_table): Define.
(cpu_arch_ver): New.
(aeabi_set_public_attributes): Use cpu_arch_ver. Set
Tag_CPU_arch_profile.
* doc/c-arm.texi: Document new cpu and arch options.
gas/testsuite/
* gas/arm/thumb32.d: Fix expected msr and mrs output.
* gas/arm/arch7.d: New test.
* gas/arm/arch7.s: New test.
* gas/arm/arch7m-bad.l: New test.
* gas/arm/arch7m-bad.d: New test.
* gas/arm/arch7m-bad.s: New test.
include/opcode/
* arm.h: Add V7 feature bits.
opcodes/
* arm-dis.c (arm_opcodes): Add V7 instructions.
(thumb32_opcodes): Ditto. Handle V7M MSR/MRS variants.
(print_arm_address): New function.
(print_insn_arm): Use it. Add 'P' and 'U' cases.
(psr_name): New function.
(print_insn_thumb32): Add 'U', 'C' and 'D' cases.
2006-02-24 15:36:36 +00:00
Wu Zhou
15c46491c2
* gdb.fortran/derived-type.f90: New file.
...
* gdb.fortran/derived-type.exp: New testcase.
2006-02-24 07:29:42 +00:00
Wu Zhou
2a5e440cb4
* f-exp.y: Symbol '%' is not used as the modulus operator in
...
Fortran. Delete this from Fortran expression.
It is now used by Fortran 90 and later to access the member
of derived type. Add this into Fortran expression.
* f-valprint.c (f_val_print): Add code to handle TYPE_CODE_STRUCT.
Print each elements in the derived type.
* f-typeprint.c (print_equivalent_f77_float_type): Add a parameter
level into the function definition to do indented printing. And
call fprintfi_filtered instead to do indented printing.
(f_type_print_base): Replace fprintf_filtered with the indented
version (fprintfi_filtered).
(f_type_print_base): Call indented print_equivalent_f77_float_type.
(f_type_print_base): Add code to handle TYPE_CODE_STRUCT. Print
the definition of the derived type.
2006-02-24 07:26:10 +00:00
gdbadmin
4e219700c3
*** empty log message ***
2006-02-24 00:00:02 +00:00
Alan Modra
7f302ef862
daily update
2006-02-23 23:00:08 +00:00
H.J. Lu
7dd61ce72a
2006-02-23 H.J. Lu <hongjiu.lu@intel.com>
...
* ld-pie/weakundef-data.c: Fix the typo.
2006-02-23 22:23:26 +00:00
H.J. Lu
59cf82fe74
bfd/
...
2006-02-23 H.J. Lu <hongjiu.lu@intel.com>
* cpu-ia64-opc.c (ins_immu5b): New.
(ext_immu5b): Likewise.
(elf64_ia64_operands): Add IMMU5b.
gas/
2006-02-23 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-ia64.c (operand_match): Handle IA64_OPND_IMMU5b.
gas/testsuite/
2006-02-23 H.J. Lu <hongjiu.lu@intel.com>
* gas/ia64/opc-i.s: Add tests for tf.
* gas/ia64/pseudo.s: Likewise.
* gas/ia64/opc-i.d: Updated.
* gas/ia64/pseudo.d: Likewise.
include/opcode/
2006-02-23 H.J. Lu <hongjiu.lu@intel.com>
* ia64.h (ia64_opnd): Add IA64_OPND_IMMU5b.
opcodes/
2006-02-23 H.J. Lu <hongjiu.lu@intel.com>
* ia64-opc-i.c (bXc): New.
(mXc): Likewise.
(OpX2TaTbYaXcC): Likewise.
(TF). Likewise.
(TFCM). Likewise.
(ia64_opcodes_i): Add instructions for tf.
* ia64-opc.h (IMMU5b): New.
* ia64-asmtab.c: Regenerated.
2006-02-23 21:36:18 +00:00
Daniel Jacobowitz
921286914f
* gdb_curses.h: Provide a fallback prototype for tgetnum.
2006-02-23 20:53:00 +00:00
Daniel Jacobowitz
a6205f535a
* doublest.h: Conditionalize DOUBLEST on PRINTF_HAS_LONG_DOUBLE
...
also.
(DOUBLEST_FORMAT): Rename to DOUBLEST_PRINT_FORMAT.
(DOUBLEST_SCAN_FORMAT): New.
* ada-lex.l (PRINTF_HAS_LONG_DOUBLE): Remove redefinitions.
(processReal): Use DOUBLEST_SCAN_FORMAT.
* c-exp.y (parse_number): Likewise.
* jv-exp.y (parse_number): Likewise.
* objc-exp.y (parse_number): Likewise.
* p-exp.y (parse_number): Likewise.
2006-02-23 18:43:41 +00:00
Daniel Jacobowitz
0f0b8dcdc3
* event-top.c (async_do_nothing, async_disconnect)
...
(async_stop_sig, async_float_handler): Remove duplicated
prototypes.
(handle_sighup): Guard prototype with SIGHUP.
(async_do_nothing): Guard function and prototype with
SIGQUIT || SIGHUP.
(async_disconnect): Guard prototype with SIGHUP.
(async_stop_sig): Guard prototype with STOP_SIGNAL.
2006-02-23 18:37:42 +00:00
Daniel Jacobowitz
4e91d01c68
* maint.c (maintenance_dump_me): Remove unnecessary prototype.
2006-02-23 18:33:43 +00:00
Daniel Jacobowitz
1e0600be1c
* win32-termcap.c (tputs): Return 0.
2006-02-23 18:28:34 +00:00
Daniel Jacobowitz
5c9f7ded98
* gdb.base/default.exp: Allow ';' as a directory separator.
2006-02-23 18:24:34 +00:00
Daniel Jacobowitz
d4fdc52404
* readline/terminal.c (_rl_get_screen_size): Get console size from
...
the Windows API when compiling with MinGW.
2006-02-23 18:14:43 +00:00
H.J. Lu
19a7219fd1
Update copyright years.
2006-02-23 14:49:32 +00:00
Hans-Peter Nilsson
d022998de5
* cris/traps.c (syscall_map): Remove CB_SYS_time / TARGET_SYS_time
...
mapping.
(cris_break_13_handler) <case TARGET_SYS_time>: New case.
2006-02-23 02:01:51 +00:00
Hans-Peter Nilsson
77dfaed337
* sim/cris/c/time2.c: New test.
2006-02-23 02:01:09 +00:00
H.J. Lu
7f3dfb9cf7
gas/
...
2006-02-22 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-ia64.c (specify_resource): Add the rule 17 from
SDM 2.2.
gas/testsuite/
2006-02-22 H.J. Lu <hongjiu.lu@intel.com>
* gas/ia64/dv-raw-err.s: Add check for vmsw.0.
* gas/ia64/dv-raw-err.l: Updated.
* gas/ia64/opc-b.s: Add vmsw.0 and vmsw.1.
* gas/ia64/opc-b.d: Updated.
opcodes/
2006-02-22 H.J. Lu <hongjiu.lu@intel.com>
* ia64-gen.c (lookup_regindex): Handle ".vm".
(print_dependency_table): Handle '\"'.
* ia64-ic.tbl: Updated from SDM 2.2.
* ia64-raw.tbl: Likewise.
* ia64-waw.tbl: Likewise.
* ia64-asmtab.c: Regenerated.
* ia64-opc-b.c (ia64_opcodes_b): Add vmsw.0 and vmsw.1.
2006-02-23 00:17:24 +00:00
gdbadmin
4ba4b473b9
*** empty log message ***
2006-02-23 00:00:04 +00:00
Alan Modra
c8146b1544
daily update
2006-02-22 23:00:06 +00:00
H.J. Lu
44a260c17d
2006-02-22 H.J. Lu <hongjiu.lu@intel.com>
...
* ld-pie/pie.c: New file.
* ld-pie/pie.exp: Check if compiler supports -pie.
2006-02-22 17:41:04 +00:00
Paul Brook
f40d164325
2005-02-22 Paul Brook <paul@codesourcery.com>
...
gas/
* config/tc-arm.c (do_pld): Remove incorrect write to
inst.instruction.
(encode_thumb32_addr_mode): Use correct operand.
gas/testsuite/
* gas/arm/thumb32.d: Fix expected pld opcode.
2006-02-22 15:03:30 +00:00
gdbadmin
0dd0cb2909
*** empty log message ***
2006-02-22 00:00:02 +00:00
Alan Modra
252e73c68f
daily update
2006-02-21 23:00:07 +00:00
Mark Kettenis
094a342e19
* configure.ac: Introduce ---enable-werror, which adds -Werror to
...
the compiler command line. Enabled by default. Disable with
--disable-werror.
* configure regenerate.
2006-02-21 21:02:25 +00:00
Daniel Jacobowitz
7476373706
* elfread.c (elf_symtab_read): Skip symbols which BFD considers
...
special.
2006-02-21 20:38:48 +00:00
Andrew Stubbs
13d35ae5ce
2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
...
* defs.h (directory_switch): Add prototype.
* main.c (captured_main): Use directory_switch() instead of
directory_command() to add directories from the -d switch.
* source.c (directory_switch): New function.
(add_path): Use buildargv() to parse spaces in filenames properly.
Strip multiple trailing '/' rather than just one.
2006-02-21 19:46:48 +00:00
Andrew Stubbs
5b96932ba3
2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
...
* symfile.c (add_symbol_file_command): Use buildargv(), instead of
hand decoding the command line, to allow use of quotes and spaces.
(_initialize_symfile): Reorganize the help message for add-symbol-file
such that 'help files' shows a better message.
testsuite/
* gdb.base/help.exp (help add-symbol-file): Update.
2006-02-21 19:13:20 +00:00
Andrew Stubbs
1986bccdb5
2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
...
* symfile.c (generic_load): Use buildargv() and tilde_expand()
to parse file names with quoting, spaces and tildes properly.
(load_command): Quote all special characters before calling
target_load() such that buildargv() doesn't break file names.
(_initialize_symfile): Mention the load offset in the help for
the load command.
* remote-sim.c: Include readline.h.
(gdbsim_load): Use buildargv and tilde_expand() to parse file
names with quoting, spaces and tildes properly.
* target.h (target_load): Comment the parameters better.
* Makefile.in (remote_sim.o): Add readline.h dependency.
testsuite/
* gdb.base/help.exp (help load): Update expected results.
2006-02-21 18:22:27 +00:00
Andrew Stubbs
a6b0a3f314
2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
...
* sh-tdep.c (sh_generic_show_regs): Reformat both code and output.
(sh3_show_regs, sh2e_show_regs, sh2a_show_regs): Likewise.
(sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs): Likewise.
(sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs): Likewise.
2006-02-21 16:08:26 +00:00
Paul Brook
216d22bc1d
2006-02-21 Paul Brook <paul@codesourcery.com>
...
* config/tc-arm.c (md_apply_fix): Fix off-by-one errors.
2006-02-21 15:13:54 +00:00
DJ Delorie
96f4851a80
merge from gcc
2006-02-21 02:38:06 +00:00
DJ Delorie
1c7a49d207
merge from gcc
2006-02-21 02:01:56 +00:00