OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
16 years agoinclude/elf/
rsandifo [Thu, 10 Jul 2008 19:05:28 +0000 (19:05 +0000)]
include/elf/
* mips.h (ELF_ST_IS_MIPS16, ELF_ST_SET_MIPS16): New macros.

bfd/
* elfxx-mips.c (mips_elf_check_mips16_stubs): Use ELF_ST_IS_MIPS16.
(mips_elf_calculate_relocation): Likewise.
(_bfd_mips_elf_add_symbol_hook): Likewise.
(_bfd_mips_elf_finish_dynamic_symbol): Likewise.
(_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.

opcodes/
* mips-dis.c (_print_insn_mips): Use ELF_ST_IS_MIPS16.

gas/
* config/tc-mips.c (mips16_mark_labels): Use ELF_ST_SET_MIPS16.
(mips_fix_adjustable): Likewise.
(mips_frob_file_after_relocs): Likewise.

gas/testsuite/
* gas/mips/mips16-vis-1.d, gas/mips/mips16-vis-1.s: New tests.
* gas/mips/mips.exp: Run them.

16 years ago * cyglsa.c: Revamp debugging output.
corinna [Thu, 10 Jul 2008 18:05:03 +0000 (18:05 +0000)]
* cyglsa.c: Revamp debugging output.
(LsaApInitializePackage): Open debugging output file here.
(LsaApLogonUserEx): Replace LsaApLogonUser.  Add debugging output.
Create machine name for accounting.  Add (disabled) code to fetch
a token from GetAuthDataForUser/ConvertAuthDataToToken.
* cyglsa.din: Relace LsaApLogonUser with LsaApLogonUserEx.

16 years ago * cyglsa.h (SECURITY_STRING): Define.
corinna [Thu, 10 Jul 2008 18:01:24 +0000 (18:01 +0000)]
* cyglsa.h (SECURITY_STRING): Define.
(enum _SECPKG_NAME_TYPE): Define.
(struct _SECPKG_CALL_INFO): Define.
(struct _LSA_SECPKG_FUNCS): Extend to full size.  Define unused
functions lazily.
(cygprf_t): Define.
* sec_auth.cc (lsaauth): Use actual primary group if no admins group.
Add (disabled) code to fetch token from profil data.

16 years agofix typo in "set debug timetstamp"
devans [Thu, 10 Jul 2008 16:44:47 +0000 (16:44 +0000)]
fix typo in "set debug timetstamp"

16 years ago(_bfd_mips_elf_section_from_shdr): Add missing
schwab [Thu, 10 Jul 2008 16:24:02 +0000 (16:24 +0000)]
(_bfd_mips_elf_section_from_shdr): Add missing
paren.

16 years agogdb/
jkratoch [Thu, 10 Jul 2008 09:30:56 +0000 (09:30 +0000)]
gdb/
* NEWS (New commands): Mention "set disable-randomization".
* configure.ac: Add check for HAVE_PERSONALITY and
HAVE_DECL_ADDR_NO_RANDOMIZE.
* configure, config.in: Regenerate.
* linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
[HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
ADDR_NO_RANDOMIZE.
(disable_randomization, show_disable_randomization)
(set_disable_randomization): New.
(linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
PERSONALITY_ORIG and PERSONALITY_SET.  Disable randomization upon the
variable DISABLE_RANDOMIZATION.
(_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
DISABLE_RANDOMIZATION.

gdb/doc/
* gdb.texinfo (Starting): Document "set disable-randomization".

gdb/testsuite/
* gdb.base/randomize.exp, gdb.base/randomize.c: New files.

16 years agobfd/
csilvers [Thu, 10 Jul 2008 01:32:20 +0000 (01:32 +0000)]
bfd/
* Makefile.am (BFD32_LIBS): Add compress.lo.
(BFD32_LIBS_CFILES): Add compress.c.
(BFD_H_FILES): Likewise.
* Makefile.in: Regenerate.
* bfd-in2.h: Regenerate.
* config.in: Add HAVE_ZLIB_H
* configure.in: Add test for libz and zlib.h
* configure: Regenerate.
* dwarf2.c (read_section): New function.
(read_indirect_string): Call new function read_section.
(read_abbrevs): Likewise.
(decode_line_info): Likewise.
(read_debug_ranges): Likewise.
(find_line): Call new function read_section when just one
.zdebug_info section is found, otherwise read and compress
multiple sections.
(_bfd_dwarf2_cleanup_debug_info): Free sec_info_ptr.
* elf.c (_bfd_elf_make_section_from_shdr): Add zdebug prefix.
(special_sections_z): New struct.
(special_sections): Refer to special_sections_z.
* elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Recognize
sections named .zdebug_*.
(_bfd_mips_elf_fake_sections): Likewise.
* compress.c: New file.
(bfd_uncompress_section_contents): New function.
bfd/doc/
* Makefile.am (BFD_H_DEP): Add ../compress.c.
* Makefile.in: Regenerate.
binutils/
* config.in: Add HAVE_ZLIB_H
* configure.in: Add test for libz and zlib.h
* configure: Regenerate.
* dwarf.c (debug_displays): Add .zdebug_* strings.
* dwarf.h (struct dwarf_section): Add fields uncompressed_namd
and compressed_name.
* objdump.c (load_debug_section): Call
bfd_uncompress_section_contents when loading a compressed
section.
(dump_dwarf_section): Recognize compressed section name.
(mach_o_dwarf_sections): Rename as
mach_o_uncompressed_dwarf_sections.
(mach_o_compressed_dwarf_sections): New variable.
(generic_dwarf_section): Rename as
generic_uncompressed_dwarf_sections.
(generic_compressed_dwarf_sections): New variable.
(check_mach_o_dwarf): Save and restore
mach_o_compressed_dwarf_sections.
* readelf.c: Add #include for config.h and zlib.h
(process_section_headers): Recognize compressed section name.
(uncompress_section_contents): New function.
(load_debug_section): Call uncompress_section_contents when
loading a compressed section.
(display_debug_section): Recognize compressed section name.
binutils/testsuite:
* binutils-all/objdump.exp: Add test for objdump -s on a file
with a compressed debug section.  Add test for objdump -W on a
file that contains a compressed debug section.
* binutils-all/readelf.exp: Call readelf_compressed_wa_test.
(readelf_compressed_wa_test): New function.
* binutils-all/dw2-compressed.S: New file.
* binutils-all/objdump.W: New file.
* binutils-all/objdump.s: New file.
* binutils-all/readelf.wa: New file.

16 years agodaily update
amodra [Thu, 10 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago*** empty log message ***
gdbadmin [Thu, 10 Jul 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago Adjust all targets to new target_stop interface.
palves [Wed, 9 Jul 2008 22:49:56 +0000 (22:49 +0000)]
Adjust all targets to new target_stop interface.

* gnu-nat.c (gnu_stop): Add ptid argument.
* go32-nat.c (go32_stop): Add ptid argument.
(go32_create_inferior): Pass inferior_ptid to go32_stop.
* hpux-thread.c (hpux_thread_stop): Add ptid argument.
* monitor.c (monitor_stop): Add ptid argument.
(monitor_open): Pass inferior_ptid to monitor_stop.
(monitor_interrupt): Pass inferior_ptid to target_stop.
(monitor_stop): Add ptid argument.
* nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
(procfs_create_inferior): Add ptid argument.
* procfs.c (procfs_stop): Add ptid argument.
* remote-m32r-sdi.c (m32r_stop): Add ptid argument.
* remote-sim.c (gdbsim_stop): Add ptid argument.
* sol-thread.c (sol_thread_stop): Add ptid argument.
* win32-nat.c (win32_stop): Add ptid argument.

16 years ago Non-stop inferior control.
palves [Wed, 9 Jul 2008 22:42:42 +0000 (22:42 +0000)]
Non-stop inferior control.

* infrun.c (resume): In non-stop mode, always resume just one
thread.
(proceed): Don't call prepare_to_proceed in non-stop mode.
(fetch_inferior_event): In non-stop mode, switch context before
handling the event.
(error_is_running, ensure_not_running): New.
(handle_inferior_event): In non-stop mode: Mark only the event
thread as stopped.  Require that the target module manages adding
threads to the thread list.  Assert that there isn't a
deferred_step_ptid set.  Don't switch to infwait_thread_hop_state.
(normal_stop): Only mark not-running if inferior hasn't exited.
In non-stop mode, only mark the event thread.

* thread.c:Include "cli/cli-decode.h".
(print_thread_info): Don't read from a running thread.
Output "(running)" if thread is running.
(switch_to_thread): Don't read stop_pc if thread is executing.
(do_restore_current_thread_cleanup): Don't write to a running
thread.
(thread_apply_all_command): Don't read from a running thread.  In
non-stop mode, do a full context-switch instead of just switching
threads.
(thread_apply_command): In non-stop mode, do a full context-switch
instead of just switching threads.
(do_captured_thread_select): Likewise.  Inform user if selected
thread is running.
(_initialize_thread): Mark "info threads" and "thread" and
async_ok.

* inf-loop.c (inferior_event_handler): In non-stop mode, don't
unregister the target from the event loop.

* infcmd.c (continue_command, step_1, jump_command)
(signal_command): Ensure the selected thread isn't running.
(interrupt_target_command): In non-stop mode, interrupt only the
selected thread.

* inferior.h (error_is_running, ensure_not_running): Declare.

* target.h (struct target_ops): Add ptid argument to the to_stop
member.
(target_stop): Add ptid_t argument.

* target.c (update_current_target): Add ptid argument to to_stop's
type.
(debug_to_stop): Add ptid_t argument.
(debug_to_rcmd): Set to_stop_ptid.

* remote.c (remote_stop): Add ptid_t argument.
(async_remote_interrupt): Add inferior_ptid to target_stop.
* inf-ptrace.c (inf_ptrace_stop): Add ptid argument.

* Makefile.in (thread.o): Depend on $(cli_decode_h).

16 years ago Don't rely on ecs->wait_for_more.
palves [Wed, 9 Jul 2008 22:36:51 +0000 (22:36 +0000)]
Don't rely on ecs->wait_for_more.

* infrun.c (proceed): Clear the stepping state, set
previous_inferior_ptid and clear infwait state.
(wait_for_inferior): Don't clear the stepping state, set
previous_inferior_ptid, or clear the infwait state here.
(fetch_inferior_event): Don't clear the stepping state, set
previous_inferior_ptid, or clear the infwait state here.  Don't
condition on wait_for_more.

16 years ago Refactor infrun a bit.
palves [Wed, 9 Jul 2008 22:33:16 +0000 (22:33 +0000)]
Refactor infrun a bit.

* infrun.c (currently_stepping): Take a struct
thread_stepping_state instead of an execution_control_state.
(struct thread_stepping_state): New, split from
execution_control_state.
(gtss, tss): New globals.
(proceed): Clear the stepping state, set previous_inferior_ptid
and clear infwait state.
(init_wait_for_inferior): Clear the stepping state,
previous_inferior_ptid and infwait state.
(waiton_ptid, infwait_state): New, split from
execution_control_state.
(struct execution_control_state): Members that persist through
events moved out to either struct thred_stepping_state or made
global.  Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
(wait_for_inferior, fetch_inferior_event): Use local
execution_control_state.  Update to execution_control_state split.
(init_execution_control_state): Adjust.
(init_thread_stepping_state): New, extracted from
init_execution_control_state.
(context_switch): Take a ptid instead of an
execution_control_state.
(context_switch_to): Adjust.
(adjust_pc_after_break): Adjust.
(init_infwait_state): New.
(handle_inferior_event): Adjust.

16 years ago Per-thread commands.
palves [Wed, 9 Jul 2008 22:30:45 +0000 (22:30 +0000)]
Per-thread commands.

* gdbthread.h: Remove unneeded forward declarations.
Include "inferior.h".
(struct thread_info): Add continuations,
intermediate_continuations, proceed_to_finish, step_over_calls,
stop_step, step_multi and stop_signal members.
(save_infrun_state): Add continuations,
intermediate_continuations, proceed_to_finish, step_over_calls,
stop_step, step_multi, stop_signal and stop_bpstat parameters.
(load_infrun_state): Add continuations,
intermediate_continuations, proceed_to_finish, step_over_calls,
stop_step, step_multi, stop_signal and stop_bpstat parameters.

* thread.c (load_infrun_state): In non-stop mode, load
continuations, intermediate_continuations, proceed_to_finish,
step_over_calls, stop_step, step_multi and stop_signal.
(save_infrun_state): Store continuations,
intermediate_continuations, proceed_to_finish, step_over_calls,
stop_step, step_multi, stop_signal and stop_bpstat.
(save_infrun_state): Store continuations,
intermediate_continuations, proceed_to_finish, step_over_calls,
stop_step, step_multi, stop_signal and stop_bpstat.
(free_thread): Clear The thread's stop_bpstat.

* inferior.h (context_switch_to): Declare.

* infrun.c (ecss): New global.
(context_switch): Context switch continuations,
intermediate_continuations, proceed_to_finish, step_over_calls,
stop_step, step_multi, stop_signal and stop_bpstat.
(wait_for_inferior): Use global ecss.
(async_ecss, async_ecs): Delete.
(fetch_inferior_event): Use global ecss.
(context_switch_to): New.

* top.c (execute_command): In non-stop, only check if the current
thread is running, in all-stop, check if there's any thread
running.

* breakpoint.c (bpstat_remove_breakpoint): New.
(bpstat_remove_breakpoint_callback): New.
(delete_breakpoint): Clear the stop_bpstats of all threads.

* mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
current thread is running, in all-stop, check if there's any
thread running.

* Makefile.in (gdbthread_h): Depend on $(inferior_h).

16 years ago Add non_stop global.
palves [Wed, 9 Jul 2008 22:27:12 +0000 (22:27 +0000)]
Add non_stop global.

* inferior.h (non_stop): Declare.
* infrun.c (non_stop, non_stop_1): New.
(set_non_stop, show_non_stop): New.
(_initialize_infrun): Add "set/show non-stop" command.

16 years ago Adjust fork/vfork/exec to pass ptids around.
palves [Wed, 9 Jul 2008 22:23:04 +0000 (22:23 +0000)]
Adjust fork/vfork/exec to pass ptids around.

* target.h (struct target_waitstatus): Store related_pid as a ptid.
(inferior_has_forked, inferior_has_vforked, inferior_has_execd):
Take a ptid_t.
* breakpoint.h (struct breakpoint): Change forked_inferior_pid
type to ptid.
* breakpoint.c (print_it_typical, bpstat_check_location)
(print_one_breakpoint_location, set_raw_breakpoint_without_location)
(create_fork_vfork_event_catchpoint): Adjust.
* infrun.c (fork_event): Change parent_pid and child_pid types to
ptid.
(follow_exec, inferior_has_forked, inferior_has_vforked)
(inferior_has_execd): Take a ptid_t and don't trim it.
* linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
* linux-nat.c (linux_child_follow_fork): Adjust.
* inf-ptrace.c (inf_ptrace_wait): Adjust.
* inf-ttrace.c (inf_ttrace_wait): Adjust.
* win32-nat.c (get_win32_debug_event): Don't set related_pid.

16 years ago Add "executing" property to threads.
palves [Wed, 9 Jul 2008 22:16:14 +0000 (22:16 +0000)]
Add "executing" property to threads.

* inferior.h (target_executing): Delete.
* gdbthread.h (struct thread_info): Add executing_ field.
(set_executing, is_executing): New.
* thread.c (main_thread_executing): New.
(init_thread_list): Clear it and also main_thread_running.
(is_running): Return false if target has no execution.
(any_running, is_executing, set_executing): New.

* top.c: Include "gdbthread.h".
(target_executing): Delete.
(execute_command): Replace target_executing check by any_running.
* event-top.c: Include "gdbthread.h".
(display_gdb_prompt, command_handler): Replace target_executing by
is_running.
* inf-loop.c: Include "gdbthread.h".  Don't mark as not executing
here.  Replace target_executing by is_running.
* infrun.c (handle_inferior_event): Mark all threads as
not-executing.
* linux-nat.c (linux_nat_resume): Don't mark thread as executing
here.
* stack.c (get_selected_block): Return null if inferior is
executing.
* target.c (target_resume): Mark resumed ptid as executing.
* breakpoint.c (until_break_command): Replace target_executing
check by is_executing.
* remote.c (remote_async_resume): Don't mark inferior as executing
here.
* mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
by any_running.

* mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
(mi_execute_async_cli_command): Replace target_executing by
is_running.

* frame.c (get_current_frame): Error out if the current thread is
executing.
(has_stack_frames): New.
(get_selected_frame, deprecated_safe_get_selected_frame): Check
has_stack_frames.

* Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
$(gdbthread_h).

16 years ago * sec_auth.cc (verify_token): Allow builtin groups missing in a token
corinna [Wed, 9 Jul 2008 15:45:08 +0000 (15:45 +0000)]
* sec_auth.cc (verify_token): Allow builtin groups missing in a token
and it's still valid.  Explain why.

16 years ago * mkgroup.c: Use statically linked functions throughout, except for
corinna [Wed, 9 Jul 2008 14:32:29 +0000 (14:32 +0000)]
* mkgroup.c: Use statically linked functions throughout, except for
DsGetDcNameW.  Reformat.  Convert to use WCHAR for names throughout.
Use defines instead of constants throughout.
(MAX_SID_LEN): Define.
(load_netapi): Just load DsGetDcNameW pointer.
(psx_dir): Remove.
(uni2ansi): Remove.
(enum_local_users): Take server name and use in Net... call.
(DBGSID): Define datastructure.
(MAX_BUILTIN_SIDS): Define.
(builtin_sid_list): Define global sid list.
(builtin_sid_cnt): Define counter for global sid list.
(enum_local_groups): Take server name and use in Net... and Lookup...
calls.  Take offset argument.  Use MAX_PREFERRED_LENGTH in call to
NetLocalGroupEnum.  Check for duplicate builtin groups.
(enum_users): Take server name and use in Net... call.
(usage): Change text slightly.
(print_version): Fix copyright.
(main): Call enum_local_groups for domains as well.
* mkpasswd.c: Use statically linked functions throughout, except for
DsGetDcNameW.  Reformat.  Convert to use WCHAR for names throughout.
Use defines instead of constants throughout.
(MAX_SID_LEN): Define.
(load_netapi): Just load DsGetDcNameW pointer.
(uni2ansi): Use wcstombs.
(current_user): Replace "unused_by_nt/2000/xp" by
just "unused".
(enum_users): Ditto.
(print_version): Fix copyright.

16 years ago * autoload.cc (DsGetDcNameW): Replace DsGetDcNameA.
corinna [Wed, 9 Jul 2008 11:58:38 +0000 (11:58 +0000)]
* autoload.cc (DsGetDcNameW): Replace DsGetDcNameA.
* dcrt0.cc (child_info_spawn::handle_spawn): Drop artificial
supplementary group list from calling setgroups in parent.
* grp.cc (internal_getgroups): Drop 9x-only code.  Reformat.
* sec_auth.cc (get_logon_server): Do everything in WCHAR only.
(get_user_groups): Ditto.  Use wlogonserver in LookupAccountNameW
calls, too.
(is_group_member): Get logon server as first argument and use in call
to NetLocalGroupGetMembers.
(get_user_local_groups): Get logon server as first argument and use in
calls to NetLocalGroupEnum and LookupAccountNameW.  Revamp to work
more correctly in domain environments.
(get_server_groups): Accommodate aforementioned changed function calls.
* security.h (get_logon_server): Change prototype accordingly.
* uinfo.cc (cygheap_user::env_logsrv): Accommodate changed
get_logon_server call.

16 years agogdb/
palves [Wed, 9 Jul 2008 11:16:48 +0000 (11:16 +0000)]
gdb/
2008-07-09  Pedro Alves  <pedro@codesourcery.com>

* symfile.c (load_command): Reopen the exec file and reread
symbols before anything else.

gdb/testsuite/
2008-07-09  Pedro Alves  <pedro@codesourcery.com>

* gdb.base/chng-syms.exp: Don't expect "No symbol ...".

16 years ago * remote-sim.c: Include gdbthread.h.
palves [Wed, 9 Jul 2008 11:02:55 +0000 (11:02 +0000)]
* remote-sim.c: Include gdbthread.h.
(remote_sim_ptid): New global.
(gdbsim_create_inferior): Silently add the main task to GDB's
thread list.
(gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
task from GDB's thread list.
(gdbsim_resume): Adjust to use remote_sim_ptid.
(gdbsim_thread_alive, gdbsim_pid_to_str): New.
(init_gdbsim_ops): Register gdbsim_thread_alive and
gdbsim_pid_to_str.
(_initialize_remote_sim): Initialize remote_sim_ptid.
* Makefile.in (remote-sim.o): Depend on $(gdbthread_h).

16 years ago * monitor (monitor_ptid): New global.
palves [Wed, 9 Jul 2008 10:58:40 +0000 (10:58 +0000)]
* monitor (monitor_ptid): New global.
(monitor_open): Silently add the main task to GDB's thread list.
(monitor_close, monitor_mourn_inferior): Silently delete the main
task from GDB's thread list.
(monitor_thread_alive, monitor_pid_to_str): New.
(init_base_monitor_ops): Register monitor_thread_alive and
monitor_pid_to_str.
(_initialize_remote_monitors): Initialize monitor_ptid.

* gdbthread.h (delete_thread_silent): Declare.
* thread.c (delete_thread): Rename to ...
(delete_thread_1): ... this.  Add "silent" parameter.  If silent,
don't do exit notifications.
(delete_thread, delete_thread_silent): New, as wrappers to
delete_thread_1.

16 years ago * gdb.base/fullname.exp: Restore pwd if compiling failed.
palves [Wed, 9 Jul 2008 10:50:52 +0000 (10:50 +0000)]
* gdb.base/fullname.exp: Restore pwd if compiling failed.

16 years ago2008-07-09 Kai Tietz <kai.tietz@onevision.com>
ktietz [Wed, 9 Jul 2008 10:28:11 +0000 (10:28 +0000)]
2008-07-09  Kai Tietz  <kai.tietz@onevision.com>

* gas/i386/i386.exp (x86-64-pcrel): Disable for w64.
(x86-64-sse5): Likewise.
(x86-64-opcode-inval): Likewise.
(x86-64-opcode-inval-intel): Likewise.
(x86-64-w64-pcrel): New.
* gas/i386/x86-64-w64-pcrel.d: New.

16 years ago * grp.cc (internal_getgroups): Also add integrity-enabled groups.
corinna [Wed, 9 Jul 2008 09:14:12 +0000 (09:14 +0000)]
* grp.cc (internal_getgroups): Also add integrity-enabled groups.

16 years ago * sec_auth.cc (verify_token): Disable code which returns false if
corinna [Wed, 9 Jul 2008 08:10:24 +0000 (08:10 +0000)]
* sec_auth.cc (verify_token): Disable code which returns false if
the token contains additional groups not requested by setgroups.
Explain why.

16 years ago *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
dannysmith [Wed, 9 Jul 2008 03:18:15 +0000 (03:18 +0000)]
       *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
           starting with ".".
           Exclude "_IMPORT_DESCRIPTOR_".
           (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA".
           (autofilter_symbollist_generic): Don't check for ".text".
           Exclude "_NULL_IMPORT_DESCRIPTOR".
           (autofilter_symbollist_i386): Likewise.

16 years agodaily update
amodra [Wed, 9 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago*** empty log message ***
gdbadmin [Wed, 9 Jul 2008 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago2008-07-08 Kenji Tanaka <tanaka.ken2@jp.panasonic.com>
jjohnstn [Tue, 8 Jul 2008 20:36:26 +0000 (20:36 +0000)]
2008-07-08  Kenji Tanaka  <tanaka.ken2@jp.panasonic.com>

        * libc/machine/mn10300/memset.S: Fix bug where return value is
        incorrectly set if number of bytes set is a multiple of 4.

16 years ago * fhandler_socket.cc (fhandler_socket::bind): Don't run explicit
corinna [Tue, 8 Jul 2008 20:12:46 +0000 (20:12 +0000)]
* fhandler_socket.cc (fhandler_socket::bind): Don't run explicit
local socket test in SO_REUSEADDR case on systems supporting
enhanced socket security.  Explain why.  Only call address_in_use
for AF_INET sockets.
* net.cc (cygwin_setsockopt): Don't call setsockopt to set SO_REUSEADDR
on systems supporting enhanced socket security.  Add comment.
* wincap.h (wincaps::has_enhanced_socket_security): New element.
* wincap.cc: Implement above element throughout.

16 years ago * net.cc (ipv6_inited): Make NO_COPY.
corinna [Tue, 8 Jul 2008 12:37:44 +0000 (12:37 +0000)]
* net.cc (ipv6_inited): Make NO_COPY.

16 years ago * breakpoint.c (update_global_location_list): Add boolean
palves [Tue, 8 Jul 2008 11:09:40 +0000 (11:09 +0000)]
* breakpoint.c (update_global_location_list): Add boolean
"should_insert" argument.  Only insert locations if caller told it
too.
(update_global_location_list_nothrow): Add boolean "should_insert"
argument.  Pass it to update_global_location_list.
(insert_breakpoints, create_longjmp_breakpoint)
(create_overlay_event_breakpoint, enable_overlay_breakpoints)
(create_thread_event_breakpoint, create_solib_event_breakpoint)
(create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
(enable_watchpoints_after_interactive_call_stop)
(set_momentary_breakpoint, create_breakpoints)
(break_command_really, watch_command_1)
(create_ada_exception_breakpoint, update_breakpoint_locations)
(do_enable_breakpoint, enable_command): Pass true to
update_global_location_list.
(bpstat_stop_status, disable_overlay_breakpoints)
(disable_watchpoints_before_interactive_call_start)
(delete_breakpoint, disable_breakpoint, disable_command): Pass
false to update_global_location_list.
(update_breakpoints_after_exec): Don't temporarily disable
always-inserted mode.

16 years ago * breakpoint.c (mark_breakpoints_out): Make public.
palves [Tue, 8 Jul 2008 10:59:57 +0000 (10:59 +0000)]
* breakpoint.c (mark_breakpoints_out): Make public.
(update_breakpoints_after_exec): Don't call mark_breakpoints_out
here.  Update comment.
* breakpoint.h (mark_breakpoints_out): Declare.

* linux-nat.c (linux_handle_extended_wait): On
TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
* inf-ttrace.c (inf_ttrace_wait): Likewise.

16 years ago * infrun.c (follow_exec): Reset shared libraries before adding the
palves [Tue, 8 Jul 2008 10:31:15 +0000 (10:31 +0000)]
* infrun.c (follow_exec): Reset shared libraries before adding the
main exec file.

16 years ago2008-07-08 Kai Tietz <kai.tietz@onevision.com>
ktietz [Tue, 8 Jul 2008 08:15:09 +0000 (08:15 +0000)]
2008-07-08  Kai Tietz  <kai.tietz@onevision.com>

* binutils-all/objcopy.exp (copy_setup): Check if host-triplet
is target-triplet for execution tests.
(copy_executable): Likewise.
(strip_executable): Likewise.
(strip_executable_with_saving_a_symbol): Likewise.

16 years ago * config/tc-m68k.c (m68k_set_cpu, m68k_set_arch): Don't complain
nathan [Tue, 8 Jul 2008 06:33:40 +0000 (06:33 +0000)]
* config/tc-m68k.c (m68k_set_cpu, m68k_set_arch): Don't complain
about overriding an earlier setting.

16 years ago*** empty log message ***
gdbadmin [Tue, 8 Jul 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
amodra [Tue, 8 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * server.c (handle_v_attach): Inhibit reporting dll changes.
palves [Mon, 7 Jul 2008 23:00:11 +0000 (23:00 +0000)]
* server.c (handle_v_attach): Inhibit reporting dll changes.

16 years agogdb/
jkratoch [Mon, 7 Jul 2008 22:39:57 +0000 (22:39 +0000)]
gdb/
* breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.

gdb/testsuite/
* gdb.base/value-double-free.exp, gdb.base/value-double-free.c: New.

16 years ago * i386-dicos-tdep.c: Include "inferior.h".
palves [Mon, 7 Jul 2008 22:05:44 +0000 (22:05 +0000)]
* i386-dicos-tdep.c: Include "inferior.h".
(i386_dicos_frame_align): New.
(i386_dicos_init_abi): Register i386_dicos_frame_align.  Set call
dummy location ON_STACK.
* Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).

16 years ago * gas/mips/mips32.s: Move out coprocessor2 insns from here ...
nemet [Mon, 7 Jul 2008 19:28:02 +0000 (19:28 +0000)]
* gas/mips/mips32.s: Move out coprocessor2 insns from here ...
* gas/mips/mips32-cp2.s: ... to here.
* gas/mips/mips32.d: Update.
* gas/mips/mips32-cp2.d: New file.
* gas/mips/mips32r2.s: Move out coprocessor2 insns from here ...
* gas/mips/mips32r2-cp2.s: ... to here.
* gas/mips/mips32r2.d: Update.
* gas/mips/mips32r2-cp2.d: New file.
* gas/mips/mips64.s: Move out coprocessor2 insns from here ...
* gas/mips/mips64-cp2.s: ... to here.
* gas/mips/mips64.d: Update.
* gas/mips/mips64-cp2.d: New file.
* gas/mips/mips.exp: Run mips32-cp2, mips32r2-cp2 and mips64-cp
except for Octeon.
* gas/mips/octeon.s: Add supported coprocessor insns.  Move pop
down to keep alphabetical order.
* gas/mips/octeon.d: Update.
* gas/mips/octeon-ill.s: Add unsupported coprocessor insns.
* gas/mips/octeon-ill.l: Update.

16 years ago * config/tc-mips.c (NO_ISA_COP): New macro.
nemet [Mon, 7 Jul 2008 19:16:23 +0000 (19:16 +0000)]
* config/tc-mips.c (NO_ISA_COP): New macro.
(COP_INSN): New macro.
(is_opcode_valid): Use them.
(macro) <ld_st>: Use them.  Don't accept coprocessor load store
insns based on the ISA if CPU is NO_ISA_COP.
<copz>: Likewise for coprocessor operations.

16 years agogas/
carlos [Mon, 7 Jul 2008 19:12:56 +0000 (19:12 +0000)]
gas/

2008-07-07  Paul Brook  <paul@codesourcery.com>

* config/tc-arm.c (arm_fix_adjustable): Don't adjust MOVW/MOVT
relocations.

gas/testsuite/

2008-07-07  Paul Brook  <paul@codesourcery.com>

* gas/arm/movw-local.d: New test.
* gas/arm/movw-local.s: New test.

16 years ago * mips-opc.c (CP): New macro.
nemet [Mon, 7 Jul 2008 19:11:15 +0000 (19:11 +0000)]
* mips-opc.c (CP): New macro.
(mips_builtin_opcodes): Mark c0, c2 and c3 as CP.  Add Octeon to the
membership of di, dmfc0, dmtc0, ei, mfc0 and mtc0.  Add dmfc2 and
dmtc2 Octeon instructions.

16 years ago * ld-arm/arm-elf.exp: Use objdump -d for arm-be8 test.
shebs [Mon, 7 Jul 2008 19:00:21 +0000 (19:00 +0000)]
    * ld-arm/arm-elf.exp: Use objdump -d for arm-be8 test.
    * ld-arm/arm-be8.d: Change to test disassembly.

16 years ago2008-07-07 Stan Shebs <stan@codesourcery.com>
shebs [Mon, 7 Jul 2008 18:40:12 +0000 (18:40 +0000)]
2008-07-07  Stan Shebs  <stan@codesourcery.com>

    * dis-asm.h (struct disassemble_info): Add endian_code field.

16 years ago2008-07-07 Stan Shebs <stan@codesourcery.com>
shebs [Mon, 7 Jul 2008 18:35:23 +0000 (18:35 +0000)]
2008-07-07  Stan Shebs  <stan@codesourcery.com>

    * dis-init.c (init_disassemble_info): Init endian_code field.
    * arm-dis.c (print_insn): Disassemble code according to
    setting of endian_code.
    (print_insn_big_arm): Detect when BE8 extension flag has been set.

16 years ago * gstdint.h: New file.
brobecke [Mon, 7 Jul 2008 17:11:56 +0000 (17:11 +0000)]
    * gstdint.h: New file.

16 years ago * safe-ctype.h: Add #include of ctype.h before redefining
brobecke [Mon, 7 Jul 2008 17:09:31 +0000 (17:09 +0000)]
    * safe-ctype.h: Add #include of ctype.h before redefining
        the ctype.h macros.

16 years ago * configure.tgt: Add bfin-*-rtems*.
nickc [Mon, 7 Jul 2008 16:43:06 +0000 (16:43 +0000)]
    * configure.tgt: Add bfin-*-rtems*.

16 years ago * elf32-arm.c (arm_type_of_stub): Don't crash on local symbols in
nickc [Mon, 7 Jul 2008 16:02:31 +0000 (16:02 +0000)]
    * elf32-arm.c (arm_type_of_stub): Don't crash on local symbols in
        the presence of a PLT.

16 years ago2008-07-07 Hans-Peter Nilsson <hp@axis.com>
jjohnstn [Mon, 7 Jul 2008 15:51:53 +0000 (15:51 +0000)]
2008-07-07  Hans-Peter Nilsson  <hp@axis.com>

        * libc/machine/mips/strncpy.c: Include stdint.h to get uintptr_t.
        (strncpy): Cast src to uintptr_t before checking alignment with "&".

16 years ago(GDB/MI Target Manipulation): Fix last change.
schwab [Mon, 7 Jul 2008 12:05:30 +0000 (12:05 +0000)]
(GDB/MI Target Manipulation): Fix last change.

16 years ago * bfd.c (bfd_demangle): Always trim off bfd_get_symbol_leading_char.
amodra [Mon, 7 Jul 2008 11:48:26 +0000 (11:48 +0000)]
* bfd.c (bfd_demangle): Always trim off bfd_get_symbol_leading_char.

16 years ago2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
dannysmith [Mon, 7 Jul 2008 07:58:33 +0000 (07:58 +0000)]
2008-07-06  Gregory McGarry   <gregorymcgarry@users.sourceforge.net>

        * include/ctype.h (_imp____mb_cur_max): Correct spelling.
(_imp____mb_cur_max_dll): Likewise.

16 years ago * objdump.c (find_symbol_for_address): Prefer symbols in current
amodra [Mon, 7 Jul 2008 04:37:53 +0000 (04:37 +0000)]
* objdump.c (find_symbol_for_address): Prefer symbols in current
section.

16 years ago * emultempl/armelf.em (elf32_arm_add_stub_section): Use
amodra [Mon, 7 Jul 2008 00:46:51 +0000 (00:46 +0000)]
* emultempl/armelf.em (elf32_arm_add_stub_section): Use
bfd_make_section_with_flags.
* emultempl/avrelf.em (avr_elf_create_output_section_statements):
Likewise.
* emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
* emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
* emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise.
* emultempl/m68kelf.em (m68k_elf_after_open): Likewise.
* emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
* emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation):
Likewise.

16 years ago * ieee.c (write_ieee_debugging_info): Use bfd_make_section_with_flags.
amodra [Mon, 7 Jul 2008 00:44:41 +0000 (00:44 +0000)]
* ieee.c (write_ieee_debugging_info): Use bfd_make_section_with_flags.
* nlmconv.c (main, powerpc_build_stubs): Likewise.
* rescoff.c (write_coff_file): Likewise.
* resres.c (write_res_file): Likewise.
* windmc.c (windmc_write_bin): Likewise.

16 years ago*** empty log message ***
gdbadmin [Mon, 7 Jul 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
amodra [Mon, 7 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * ld.texinfo (File Commands): Document that INCLUDE can be used in
nathan [Sun, 6 Jul 2008 13:38:36 +0000 (13:38 +0000)]
* ld.texinfo (File Commands): Document that INCLUDE can be used in
several different places.
* ldgram.y (statement, memory_spec, section): Allow INCLUDE.
(memory, memory_spec_list): Simplify BNF
(memory_spec_list_opt): New rule.
* ldlex.l (INCLUDE): Recognize in EXPRESSION.
testsuite/
* ld-scripts/include-1.d: New.
* ld-scripts/include-1.t: New.
* ld-scripts/include-data.t: New.
* ld-scripts/include-mem.t: New.
* ld-scripts/include-ram.t: New.
* ld-scripts/include-sections.t: New.
* ld-scripts/include-subdata.t: New.
* ld-scripts/include.exp: New.
* ld-scripts/include.s: New.

16 years ago * gdb.texinfo (GDB/MI Target Manipulation): Add
vprus [Sun, 6 Jul 2008 13:21:19 +0000 (13:21 +0000)]
* gdb.texinfo (GDB/MI Target Manipulation): Add
example of -target-attach.

16 years agodaily update
amodra [Sun, 6 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago*** empty log message ***
gdbadmin [Sun, 6 Jul 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago * mi/mi-interp.c (mi_on_resume): Don't try to report
vprus [Sat, 5 Jul 2008 17:57:23 +0000 (17:57 +0000)]
* mi/mi-interp.c (mi_on_resume): Don't try to report
resumed thread it the thread list is empty.

16 years agoAdd missed changelog entry.
drow [Sat, 5 Jul 2008 13:48:20 +0000 (13:48 +0000)]
Add missed changelog entry.

16 years ago*** empty log message ***
gdbadmin [Sat, 5 Jul 2008 00:00:36 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
amodra [Sat, 5 Jul 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years ago * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
muller [Fri, 4 Jul 2008 22:30:14 +0000 (22:30 +0000)]
* cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
completer for set to filename_completer.
NEWS: Mention it.

16 years ago * safe-ctype.h: Remove #error when detecting that ctype.h has been
brobecke [Fri, 4 Jul 2008 17:11:29 +0000 (17:11 +0000)]
    * safe-ctype.h: Remove #error when detecting that ctype.h has been
        included. Redefine the various macros provided by ctype.h as
        undefined variables.

16 years ago * config/tc-spu.c (md_apply_fix): Handle fully resolved
amodra [Fri, 4 Jul 2008 13:04:03 +0000 (13:04 +0000)]
* config/tc-spu.c (md_apply_fix): Handle fully resolved
BFD_RELOC_32_PCREL, BFD_RELOC_SPU_HI16 and BFD_RELOC_SPU_LO16.

16 years ago Implement -target-attach.
vprus [Fri, 4 Jul 2008 09:04:36 +0000 (09:04 +0000)]
Implement -target-attach.
        * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.

16 years ago * include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
dannysmith [Fri, 4 Jul 2008 03:55:50 +0000 (03:55 +0000)]
    * include/stdio.h (swprintf, vswprintf): Guard with  #ifndef __STRICT_ANSI__
        * include/wchar.h (swprintf, vswprintf): Likewise.

16 years ago * layout.cc (Layout::include_section): Do not discard unrecognized
ian [Fri, 4 Jul 2008 03:34:01 +0000 (03:34 +0000)]
* layout.cc (Layout::include_section): Do not discard unrecognized
SHT_STRTAB sections.

16 years ago*** empty log message ***
gdbadmin [Fri, 4 Jul 2008 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
amodra [Fri, 4 Jul 2008 00:00:04 +0000 (00:00 +0000)]
daily update

16 years ago * HOWTO, HOWTO.old: Preserve old HOWTO document as HOWTO.old. It
kevinb [Thu, 3 Jul 2008 23:24:11 +0000 (23:24 +0000)]
* HOWTO, HOWTO.old: Preserve old HOWTO document as HOWTO.old.  It
may still contain some useful information about the library
internals.  Revise HOWTO, providing significantly more detail
about how to create a new RDA application than was found in the
original document.

16 years ago2008-06-21 Hui Zhu <teawater@gmail.com>
msnyder [Thu, 3 Jul 2008 23:14:35 +0000 (23:14 +0000)]
2008-06-21  Hui Zhu  <teawater@gmail.com>

* target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.

16 years ago * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
palves [Thu, 3 Jul 2008 17:38:08 +0000 (17:38 +0000)]
* config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
* config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.

* target.h (struct target_ops): Add to_attach_no_wait member.
(target_attach_no_wait): New.
* target.c (update_current_target): Inherit to_attach_no_wait.

* infcmd.c: Replace ATTACH_NO_WAIT compile time check by
target_attach_no_wait runtime check.

* gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
* win32-nat.c (init_win32_ops): Set to_attach_no_wait in
win32_ops.

16 years ago * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
palves [Thu, 3 Jul 2008 00:19:57 +0000 (00:19 +0000)]
* i386-tdep.c (i386_displaced_step_fixup): Condition log printing
on debug_displaced being set.

16 years ago*** empty log message ***
gdbadmin [Thu, 3 Jul 2008 00:00:35 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
amodra [Thu, 3 Jul 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years ago2008-07-02 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Wed, 2 Jul 2008 18:38:45 +0000 (18:38 +0000)]
2008-07-02  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/argz/argz_count.c: Include stddef.h to get size_t.
        * libc/argz/argz_extract.c: Ditto.
        * libc/argz/argz_stringify.c: Ditto.
        * libc/search/hash.h: Ditto.
        * libc/sys/linux/include/sched.h: Ditto.
        * libc/sys/linux/sys/types.h: Ditto.

16 years ago2008-07-02 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Wed, 2 Jul 2008 18:17:47 +0000 (18:17 +0000)]
2008-07-02  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/machine/mips/strncpy.c (strncpy): Fix logic so unaligned
        source data is taken care of before loop unrolling.

16 years ago * path.cc (path_conv::is_binary): Fix test. Add comment.
corinna [Wed, 2 Jul 2008 14:00:26 +0000 (14:00 +0000)]
* path.cc (path_conv::is_binary): Fix test.  Add comment.

16 years ago * elf32-ppc.c (is_pic_glink_stub): New function.
amodra [Wed, 2 Jul 2008 13:31:52 +0000 (13:31 +0000)]
* elf32-ppc.c (is_pic_glink_stub): New function.
(ppc_elf_get_synthetic_symtab): Don't generate symbols when
multiple shared/pie stubs per plt entry.

16 years agodaily update
amodra [Wed, 2 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago*** empty log message ***
gdbadmin [Wed, 2 Jul 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years agoAdd _get_output_format(), _set_output_format() for MSVCRT >= MSVCR80
keithmarshall [Tue, 1 Jul 2008 22:57:24 +0000 (22:57 +0000)]
Add _get_output_format(), _set_output_format() for MSVCRT >= MSVCR80

16 years ago* Makefile.in: Temporarily add ability to generate pdfs.
cgf [Tue, 1 Jul 2008 17:17:31 +0000 (17:17 +0000)]
* Makefile.in: Temporarily add ability to generate pdfs.

16 years agodaily update
amodra [Tue, 1 Jul 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years ago*** empty log message ***
gdbadmin [Tue, 1 Jul 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago2008-06-30 Craig Silverstein <csilvers@cs.stanford.edu>
csilvers [Mon, 30 Jun 2008 20:59:54 +0000 (20:59 +0000)]
2008-06-30  Craig Silverstein  <csilvers@cs.stanford.edu>

        * script.cc (Lex::can_continue_name): Make '?' allowable in
        version-script names.
        * testsuite/version_script.map: Change glob pattern to use '?'

16 years agobfd/
rsandifo [Mon, 30 Jun 2008 20:53:06 +0000 (20:53 +0000)]
bfd/
* elf.c (_bfd_elf_get_synthetic_symtab): Increment p by
bed->s->int_rels_per_ext_rel.

16 years agobfd/
rsandifo [Mon, 30 Jun 2008 20:51:57 +0000 (20:51 +0000)]
bfd/
* syms.c (BSF_SYNTHETIC): New flag.
* elf.c (_bfd_elf_get_synthetic_symtab): Set it.
* elf32-ppc.c (ppc_elf_get_synthetic_symtab): Likewise.
* elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Likewise.
* bfd-in.h (bfd_asymbol_flavour): Return bfd_target_unknown_flavour
for synthetic symbols.
* bfd-in2.h: Regenerate.

opcodes/
* mips-dis.c (_print_insn_mips): Use bfd_asymbol_flavour to check
for ELF symbols.

16 years ago PR 6585
ian [Mon, 30 Jun 2008 18:16:31 +0000 (18:16 +0000)]
PR 6585
* symtab.cc (Symbol_table::add_undefined_symbols_from_command_line):
Correct typo.

16 years ago * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
drow [Mon, 30 Jun 2008 17:59:02 +0000 (17:59 +0000)]
* frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
directly instead of get_frame_id.