Daniel Jacobowitz
4c42eaff63
gdb/
...
* corefile.c (reopen_exec_file): Only check for an open exec file.
Use exec_file_attach.
* exec.c (exec_open): Make static.
(exec_file_command): Don't use target_preopen. Query directly about
changing the file.
* gdbcore.h (exec_open): Remove prototype.
gdb/testsuite/
* gdb.base/completion.exp: Update for change in "file" behavior.
* gdb.stabs/weird.exp: Likewise.
* lib/mi-support.exp (mi_gdb_file_cmd): Likewise.
* lib/gdb.exp (gdb_file_cmd): Likewise. Kill the program explicitly.
2006-07-24 20:38:08 +00:00
Frederic Riss
b05e64e5fe
2006-07-21 Frederic Riss <frederic.riss@st.com>
...
* regcache.c (struct regcache): Make register_valid_p a signed
char
array.
2006-07-24 20:10:48 +00:00
Daniel Jacobowitz
3f64f7b1c7
* linux-thread-db.c (thread_db_wait): Remove libthread_db
...
after exec events.
2006-07-24 18:57:32 +00:00
Daniel Jacobowitz
6aec2e11e5
* NEWS: Mention Windows cross debugging support.
2006-07-24 18:20:58 +00:00
Nick Clifton
ff15b24025
* emulparams/elf_x86_64.sh (LIBPATH_SUFFIX, ELF_INTERPRETER_NAME): Set for *-*-solaris2*.
...
* elf.c (bfd_section_from_shdr): Reject unrecognised OS-specific sections
only if the SHF_OS_NONCONFORMING flag is present.
2006-07-24 18:18:19 +00:00
Nick Clifton
4e22f78d85
PR ld/2729
...
* peXXigen.c (_bfd_XXi_final_link_postscript): Check for the existance of
output sections before putting their entries into the DataDictionary.
2006-07-24 16:51:26 +00:00
Nick Clifton
601e61cdeb
PR/2756
...
* read.c (read_a_source_file): Ignore unknown text after line comment
character. Fix misleading comment.
2006-07-24 16:30:55 +00:00
Nathan Sidwell
0155cc767d
* gdb.base/auxv.exp: Skip on non-linux, non-solaris targets.
...
* gdb.base/cursal.exp: Use gdb_file_cmd first, then separate gdb_load.
2006-07-24 14:20:50 +00:00
Nick Clifton
b45619c047
Fix spelling typos
2006-07-24 13:49:50 +00:00
gdbadmin
2f9c733339
*** empty log message ***
2006-07-24 00:00:33 +00:00
Alan Modra
5bbb12dfe3
daily update
2006-07-24 00:00:05 +00:00
Daniel Jacobowitz
83eba059ff
* linux-nat.c (linux_nat_add_target): Remove extern.
...
* linux-nat.h (thread_db_init): New prototype.
2006-07-23 21:21:01 +00:00
Nick Clifton
50c77e5dcb
* ldlang.c (lang_section_bst): New structure for sorting sections by name.
...
(wild_sort_fast): New function: Insert a section into a binary search tree.
(output_section_callback_fast): New function: Store a section in BST.
(output_section_callback_tree_to_list): New function: Convert a BST into a list.
(analyze_walk_wild_section_handler): Initialize handler_data elements.
(wild): If the data is sorted by name use the BST method to sort the names.
2006-07-23 15:32:08 +00:00
Daniel Jacobowitz
b80864fbe5
gdb/
...
* configure.tgt: Build gdbserver for Cygwin and mingw32.
gdb/gdbserver/
* configure.ac: Check for more headers which are missing on
Windows. Automatically supply -lwsock32 and USE_WIN32API.
* configure.srv: Add Cygwin and mingw32.
* remote-utils.c: Don't include headers unconditionally which
are missing on mingw32. Include <winsock.h> for mingw32.
(remote_open): Adjust for mingw32 support. Flush
standard error after writing to it.
(remote_close, putpkt_binary, input_interrupt, block_async_io)
(unblock_async_io, enable_async_io, disable_async_io)
(readchar, getpkt): Update for Winsock support.
(prepare_resume_reply): Expect a protocol signal number.
* server.c: Disable <sys/wait.h> on mingw32.
(start_inferior): Adjust for mingw32 support. Flush
standard error after writing to it.
(attach_inferior): Likewise. Use protocol signal
numbers.
(main): Skip 'D' packet on mingw32. Use protocol signal numbers
and names.
* win32-i386-low.c: New file.
* Makefile.in (XM_CLIBS): Set.
(gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
(win32-i386-low.o): New dependency rule.
* linux-low.c (linux_wait): Use target signal numbers.
* target.h (struct target_ops): Doc fix.
* server.h (target_signal_to_name): New prototype.
* gdbreplay.c: Don't include headers unconditionally which
are missing on mingw32. Include <winsock.h> for mingw32.
(remote_close, remote_open): Adjust for Winsock support.
* configure, config.in: Regenerated.
2006-07-23 03:52:15 +00:00
Daniel Jacobowitz
66a79c16a6
* configure.in: Allow mingw32 and cygwin targets to build cross-gdb.
...
* configure: Regenerated.
gdb/
* config/i386/cygwin.mt (DEPRECATED_TM_FILE): Delete.
* config/i386/nm-cygwin.h: Add contents of tm-cygwin.h.
* config/i386/tm-cygwin.h: Delete file.
2006-07-23 03:47:44 +00:00
Alan Modra
bdccea594e
daily update
2006-07-23 00:00:06 +00:00
gdbadmin
990b869d9b
*** empty log message ***
2006-07-23 00:00:03 +00:00
Mark Kettenis
fc5261f2f3
* infrun.c (handle_inferior_event): Typo.
2006-07-22 14:48:03 +00:00
Alan Modra
da6d0c5be1
daily update
2006-07-22 00:00:06 +00:00
gdbadmin
f55b8bc24b
*** empty log message ***
2006-07-22 00:00:04 +00:00
Andrew Stubbs
16026cd75d
2006-07-21 Andrew Stubbs <andrew.stubbs@st.com>
...
* cli/cli-cmds.c (source_verbose, trace_commands): New variables.
(source_script): New function.
(source_verbose_cleanup): New function.
(source_command): Move old contents to source_script.
Make function static. Parse -v option and call source_script.
(init_cli_cmds): Update source command help.
Add 'set trace-commands' command.
* cli/cli-script.c (command_next_depth): New static variable.
(suppress_next_print_command_trace): New static variable.
(reset_command_nest_depth): New function.
(print_command_trace): New function.
(execute_control_command): Split the continue_control and break_control
cases, add calls to print_command_trace and count the nest depth.
(while_command): Set suppress_next_print_command_trace.
(if_command): Likewise.
* top.c (execute_command): Call print_command_trace.
* cli/cli-cmds.h (source_verbose, trace_commands): New extern variables.
(source_command): Change to source_script.
* main.c (captued_main): Use source_script instead of source_command.
* top.h (source_command): Change to source_script.
* event-top.c (display_gdb_prompt): Call reset_command_nest_depth.
* cli/cli-script.h (print_command_trace): Export.
(reset_command_nest_depth): Likewise.
docs/
* gdb.texinfo (Optional warnings and messages): Add
'set/show trace-commands'.
(Command files): Add '-v' to source command.
testsuite/
* gdb.base/default.exp: Update source command error message.
* gdb.base/help.exp: Update 'help source' message.
2006-07-21 14:46:56 +00:00
Nick Clifton
3e4cf9243a
* ld-sh/arch/arch.exp (test_arch): Set the endian flag to suit the multilib
...
being tested.
2006-07-21 09:56:40 +00:00
Nick Clifton
784906c5f1
* config/tc-sh.c (md_longopts): Add -EL and -EB for use by the linker testsuite.
2006-07-21 09:46:15 +00:00
gdbadmin
4c6dbf3a9b
*** empty log message ***
2006-07-21 00:00:34 +00:00
Alan Modra
f805a26ad0
daily update
2006-07-21 00:00:09 +00:00
Michael Meissner
46e742443d
Update amd family 10 instructions to add appropriate alignment for cygwin
2006-07-20 23:09:32 +00:00
Daniel Jacobowitz
16963cb64b
gdb/
...
* eval.c (evaluate_struct_tuple): Skip static fields.
gdb/testsuite/
* gdb.cp/bs15503.exp: Update comment for no longer crashing
test.
2006-07-20 22:50:07 +00:00
Thiemo Seufer
d5f010e93b
* config/tc-mips.c (md_parse_option): Don't infer optimisation
...
options from debug options.
2006-07-20 16:51:38 +00:00
Thiemo Seufer
35d3d567cc
[ bfd/ChangeLog ]
...
* elf32-mips.c (mips16_jump_reloc): Remove function.
(elf_mips16_howto_table_rel): Use _bfd_mips_elf_generic_reloc
instead of mips16_jump_reloc.
* elf64_mips.c, wlfn32-mips.c (mips16_jump_reloc): Remove function.
(elf_mips16_howto_table_rel, elf_mips16_howto_table_rela): Use
_bfd_mips_elf_generic_reloc instead of mips16_jump_reloc.
[ gas/ChangeLog ]
* config/tc-mips.c (mips_fix_adjustable): Handle BFD_RELOC_MIPS16_JMP.
(tc_gen_reloc): Handle mips16 jumps to section symbol offsets.
[ ld/testsuite/ChangeLog ]
* ld-mips-elf/mips16-call-global-1.s,
ld-mips-elf/mips16-call-global-2.s,
ld-mips-elf/mips16-call-global-3.s, ld-mips-elf/mips16-call-global.d:
Test linking of external mips16 jumps.
* ld-mips-elf/mips-elf.exp: Run new test.
2006-07-20 16:46:30 +00:00
gdbadmin
5fa2b1af8c
*** empty log message ***
2006-07-20 00:00:06 +00:00
Alan Modra
99f2378d67
daily update
2006-07-20 00:00:05 +00:00
Mark Kettenis
6ea0ec3fe4
* alphaobsd-tdep.c: Include "obsd-tdep.h".
...
(alphaobsd_init_abi): Set skip_solib_resolver.
* Makefile.in (alphaobsd-tdep.o): Update dependencies.
* config/alpha/obsd.mt (TDEPFILES): Add obsd-tdep.o.
2006-07-19 23:23:35 +00:00
Mark Kettenis
6b26d61a05
* arm-tdep.c (arm_gdbarch_init): Get default floating-point model
...
from ELF flags for binaries produced by the GNU toolchain.
2006-07-19 18:21:36 +00:00
Paolo Bonzini
c1cb7e0238
2006-07-19 Paolo Bonzini <bonzini@gnu.org>
...
* Makefile.tpl (configure-stageN-MODULE): Pass --with-build-libsubdir
for stages after the first.
* Makefile.in: Regenerate.
config:
2006-07-19 Paolo Bonzini <bonzini@gnu.org>
* acx.m4: Support --with-build-libsubdir and AC_SUBST
build_libsubdir.
2006-07-19 17:06:06 +00:00
Andrew Stubbs
6d7fd486d7
2006-07-19 Andrew Stubbs <andrew.stubbs@st.com>
...
* gdb.base/ifelse.exp: Remove troublesome 'got here' messages.
2006-07-19 13:05:21 +00:00
Paul Brook
401a54cf6e
2006-07-19 Paul Brook <paul@codesourcery.com>
...
gas/
* config/tc-arm.c (insns): Fix rbit Arm opcode.
gas/testsuite/
* gas/arm/archv6t2.d: Adjust expected output for rbit.
opcodes/
* armd-dis.c (arm_opcodes): Fix rbit opcode.
2006-07-19 12:53:33 +00:00
Thiemo Seufer
8c991f1883
* ld-selective/selective.exp: Fix selective testcases for MIPS.
2006-07-19 11:49:32 +00:00
Yoshinori Sato
b86015eaa5
compile.c (OBITOP): Bit address mask low three bit.
...
compile.c (decode): Fix warning.
2006-07-19 06:27:04 +00:00
Nathan Sidwell
86cc68a8de
* remote-fileio.c (remote_fileio_func_rename): Reorder to process
...
input buffer before reading memory.
(remote_fileio_func_stat): Likewise.
2006-07-19 06:21:23 +00:00
Daniel Jacobowitz
29e8a84408
* blockframe.c (find_pc_partial_function): Use the minimal symbol
...
size to control the cache entry, if available.
* minsyms.c (lookup_minimal_symbol_by_pc_section): Handle minimal
symbols with zero and non-zero sizes differently.
* gdb.arch/i386-size.c, gdb.arch/i386-size.exp: New files.
2006-07-19 02:17:23 +00:00
Alan Modra
5061a8853b
bfd/
...
* bfd-in.h (enum notice_asneeded_action): Define.
* bfd-in2.h: Regenerate.
* elflink.c (elf_link_add_object_symbols): Call linker "notice"
function with NULL name for as-needed handling.
ld/
* ld.h (handle_asneeded_cref): Declare.
* ldcref.c: Include objalloc.h.
(old_table, old_count, old_tab, alloc_mark): New variables.
(tabsize, entsize, refsize, old_symcount): Likewise.
(add_cref): Use bfd_hash_allocate for refs.
(handle_asneeded_cref): New function.
* ldmain.c (notice): Call handle_asneeded_cref for NULL name.
2006-07-19 01:50:23 +00:00
Alan Modra
9148c4581c
daily update
2006-07-19 00:00:07 +00:00
gdbadmin
d6979f386c
*** empty log message ***
2006-07-19 00:00:03 +00:00
Daniel Jacobowitz
28b1733311
* linux-thread-db.c (td_thr_getfpregs_p, td_thr_getgregs_p)
...
(td_thr_setfpregs_p, td_thr_setgregs_p, thread_db_get_info)
(thread_db_fetch_registers, thread_db_store_registers)
(thread_db_thread_alive, thread_db_state_str): Delete.
(thread_db_load): Don't look up regset functions.
(thread_db_pid_to_str): Simplify.
(thread_db_extra_thread_info): New.
(init_thread_db_ops): Do not set to_fetch_registers,
to_store_registers, or to_thread_alive. Set to_extra_thread_info.
* Makefile.in: Remove linux-thread-db.o rule.
2006-07-18 22:53:20 +00:00
Mark Kettenis
e3ac4a1e11
* armobsd-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
...
(armobsd_sigframe_init): New function.
(armobsd_sigframe): New variable.
(armobsd_init_abi): Prepend armobsd_sigframe unwinder.
* Makefile.in (armobsd-tdep.o): Update dependencies.
2006-07-18 21:10:28 +00:00
Daniel Jacobowitz
08ae6d950d
* monitor.c: Remove unused prototypes.
2006-07-18 20:45:01 +00:00
H.J. Lu
2b516b7297
gas/testsuite/
...
2006-07-18 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/opcode.s: Add sldt, smsw and str.
* gas/i386/x86-64-opcode.s: Likewise.
* gas/i386/opcode.d: Updated.
* gas/i386/x86-64-opcode.d: Likewise.
opcodes/
2006-07-18 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (grps): Change "sldtQ", "strQ" and "smswQ" to
"sldt", "str" and "smsw".
2006-07-18 20:25:41 +00:00
Daniel Jacobowitz
6afcfa399a
* gdb.threads/print-threads.exp: Use gdb_breakpoint.
2006-07-18 19:37:23 +00:00
Paul Brook
16805f35a3
2006-07-18 Paul Brook <paul@codesourcery.com>
...
bfd/
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
* reloc.c: Add BFD_RELOC_ARM_T32_ADD_IMM.
gas/
* tc-arm.c (do_t_add_sub): Use addw/subw when source is PC.
(md_convert_frag): Use correct reloc for add_pc. Use
BFD_RELOC_ARM_T32_ADD_IMM for normal add/sum.
(md_apply_fix): Handle BFD_RELOC_ARM_T32_ADD_IMM.
(arm_force_relocation): Handle BFD_RELOC_ARM_T32_ADD_IMM.
gas/testsuite/
* gas/arm/thumb2_add.d: New test.
* gas/arm/thumb2_add.s: New test.
2006-07-18 16:44:47 +00:00
Thiemo Seufer
2f2760a39d
* gas/mips/mips4.s, gas/mips/mips4.d: Enable the "pref" test. Change
...
arguments for "madd.s" so that the instruction is correct for mips1
and still matches "bc3*".
2006-07-18 14:06:10 +00:00