OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
16 years ago * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
Kevin Buettner [Thu, 10 Jul 2008 19:40:43 +0000 (19:40 +0000)]
* rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
`current_pc' from CORE_ADDR to ULONGEST.

16 years ago * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
Kevin Buettner [Thu, 10 Jul 2008 19:34:00 +0000 (19:34 +0000)]
* remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
gdbsim_stop().

16 years agobfd/
Richard Sandiford [Thu, 10 Jul 2008 19:06:53 +0000 (19:06 +0000)]
bfd/
* elfxx-mips.c (mips_elf_calculate_relocation): Calculate GP and GP0
for all relocation types.  Allow any type of relocation to refer to
__gnu_local_gp.

ld/testsuite/
* ld-mips-elf/no-shared-1-o32.s,
ld-mips-elf/no-shared-1-o32.d,
ld-mips-elf/no-shared-1-n32.d,
ld-mips-elf/no-shared-1-n64.s,
ld-mips-elf/no-shared-1-n64.d,
ld-mips-elf/no-shared-1.ld: New tests.
* ld-mips-elf/mips-elf.exp: Run them.

16 years agoinclude/elf/
Richard Sandiford [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 agofix typo in "set debug timetstamp"
Doug Evans [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
Andreas Schwab [Thu, 10 Jul 2008 16:24:03 +0000 (16:24 +0000)]
(_bfd_mips_elf_section_from_shdr): Add missing
paren.

16 years agogdb/
Jan Kratochvil [Thu, 10 Jul 2008 09:31:00 +0000 (09:31 +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/
Craig Silverstein [Thu, 10 Jul 2008 01:32:22 +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
Alan Modra [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.
Pedro Alves [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.
Pedro Alves [Wed, 9 Jul 2008 22:42:43 +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.
Pedro Alves [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.
Pedro Alves [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.
Pedro Alves [Wed, 9 Jul 2008 22:30:46 +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.
Pedro Alves [Wed, 9 Jul 2008 22:27:13 +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.
Pedro Alves [Wed, 9 Jul 2008 22:23:05 +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.
Pedro Alves [Wed, 9 Jul 2008 22:16:15 +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 agogdb/
Pedro Alves [Wed, 9 Jul 2008 11:16:49 +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.
Pedro Alves [Wed, 9 Jul 2008 11:02:56 +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.
Pedro Alves [Wed, 9 Jul 2008 10:58:41 +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.
Pedro Alves [Wed, 9 Jul 2008 10:50:52 +0000 (10:50 +0000)]
* gdb.base/fullname.exp: Restore pwd if compiling failed.

16 years agodaily update
Alan Modra [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 ago * breakpoint.c (update_global_location_list): Add boolean
Pedro Alves [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.
Pedro Alves [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
Pedro Alves [Tue, 8 Jul 2008 10:31:16 +0000 (10:31 +0000)]
* infrun.c (follow_exec): Reset shared libraries before adding the
main exec file.

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
Alan Modra [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.
Pedro Alves [Mon, 7 Jul 2008 23:00:11 +0000 (23:00 +0000)]
* server.c (handle_v_attach): Inhibit reporting dll changes.

16 years agogdb/
Jan Kratochvil [Mon, 7 Jul 2008 22:39:59 +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".
Pedro Alves [Mon, 7 Jul 2008 22:05:45 +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 * mips-opc.c (CP): New macro.
Adam 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 ago2008-07-07 Stan Shebs <stan@codesourcery.com>
Stan Shebs [Mon, 7 Jul 2008 18:40:13 +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>
Stan Shebs [Mon, 7 Jul 2008 18:35:24 +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.
Joel Brobecker [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
Joel Brobecker [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 * elf32-arm.c (arm_type_of_stub): Don't crash on local symbols in
Nick Clifton [Mon, 7 Jul 2008 16:02:32 +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 ago(GDB/MI Target Manipulation): Fix last change.
Andreas 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.
Alan Modra [Mon, 7 Jul 2008 11:48:27 +0000 (11:48 +0000)]
* bfd.c (bfd_demangle): Always trim off bfd_get_symbol_leading_char.

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
Alan Modra [Mon, 7 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * gdb.texinfo (GDB/MI Target Manipulation): Add
Vladimir Prus [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
Alan Modra [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
Vladimir Prus [Sat, 5 Jul 2008 17:57:24 +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.
Daniel Jacobowitz [Sat, 5 Jul 2008 13:48:21 +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
Alan Modra [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
Pierre Muller [Fri, 4 Jul 2008 22:30:19 +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
Joel Brobecker [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 Implement -target-attach.
Vladimir Prus [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*** empty log message ***
gdbadmin [Fri, 4 Jul 2008 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

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

16 years ago2008-06-21 Hui Zhu <teawater@gmail.com>
Michael Snyder [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.
Pedro Alves [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
Pedro Alves [Thu, 3 Jul 2008 00:19:58 +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
Alan Modra [Thu, 3 Jul 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years ago * elf32-ppc.c (is_pic_glink_stub): New function.
Alan Modra [Wed, 2 Jul 2008 13:31:53 +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
Alan Modra [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 agodaily update
Alan Modra [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 agobfd/
Richard Sandiford [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/
Richard Sandiford [Mon, 30 Jun 2008 20:51:58 +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 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
Daniel Jacobowitz [Mon, 30 Jun 2008 17:59:03 +0000 (17:59 +0000)]
* frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
directly instead of get_frame_id.

16 years ago * elf32-arm.c (record_arm_to_thumb_glue, record_thumb_to_arm_glue):
Daniel Jacobowitz [Mon, 30 Jun 2008 15:32:51 +0000 (15:32 +0000)]
* elf32-arm.c (record_arm_to_thumb_glue, record_thumb_to_arm_glue):
Expand comments.
(arm_map_one_stub): Use | 1 when setting the low bit.

16 years ago * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
Luis Machado [Mon, 30 Jun 2008 14:11:48 +0000 (14:11 +0000)]
* rs6000-tdep.c (ppc_displaced_step_fixup): New function.
(deal_with_atomic_sequence): Update BC masks.
(rs6000_gdbarch_init): Init displaced stepping infra-structure.
Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.

16 years ago * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
Daniel Jacobowitz [Mon, 30 Jun 2008 14:00:38 +0000 (14:00 +0000)]
* cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
register, not the previous frame's.

16 years ago * source.c (select_source_symtab): Make sure we skip namespace
Luis Machado [Mon, 30 Jun 2008 13:52:07 +0000 (13:52 +0000)]
    * source.c (select_source_symtab): Make sure we skip namespace
        symtabs when showing cpp source code.

16 years ago * MAINTAINERS (Authorized committers): Fix my email address.
Hans-Peter Nilsson [Mon, 30 Jun 2008 08:38:18 +0000 (08:38 +0000)]
* MAINTAINERS (Authorized committers): Fix my email address.

16 years agodaily update
Alan Modra [Mon, 30 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago*** empty log message ***
gdbadmin [Mon, 30 Jun 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
Vladimir Prus [Sun, 29 Jun 2008 17:36:36 +0000 (17:36 +0000)]
* mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
-target-download and -target-select via CLI, so that
the quoting rules are the same as they were (unfortunately)
in all prior gdb releases.
* mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
(mi_cmd_target_download, mi_cmd_target_select): Remove.
* mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
(mi_cmd_target_download, mi_cmd_target_select): Remove.
(mi_cmd_execute): Set current_token even for commands
routed via CLI.

16 years ago * elf32-m68k.c (elf_m68k_relocate_section): Don't ignore existing
Andreas Schwab [Sun, 29 Jun 2008 12:56:40 +0000 (12:56 +0000)]
* elf32-m68k.c (elf_m68k_relocate_section): Don't ignore existing
addend on _GLOBAL_OFFSET_TABLE_.

ld/testsuite/:
* ld-m68k/got-1.s: New file.
* ld-m68k/got-1.d: New dump test.
* ld-m68k/m68k.exp: Run it.

16 years agodaily update
Alan Modra [Sun, 29 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago*** empty log message ***
gdbadmin [Sun, 29 Jun 2008 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago * alphafbsd-tdep.c: Update for unwinder changes.
Ulrich Weigand [Sat, 28 Jun 2008 17:29:04 +0000 (17:29 +0000)]
* alphafbsd-tdep.c: Update for unwinder changes.
* alpha-linux-tdep.c: Likewise.
* alphanbsd-tdep.c: Likewise.
* alphaobsd-tdep.c: Likewise.
* avr-tdep.c: Likewise.
* cris-tdep.c: Likewise.
* frv-linux-tdep.c: Likewise.
* frv-tdep.c: Likewise.
* h8300-tdep.c: Likewise.
* hppa-linux-tdep.c: Likewise.
* iq2000-tdep.c: Likewise.
* m32c-tdep.c: Likewise.
* m32r-linux-tdep.c: Likewise.
* m32r-tdep.c: Likewise.
* m68hc11-tdep.c: Likewise.
* mep-tdep.c: Likewise.
* mn10300-tdep.c: Likewise.
* mt-tdep.c: Likewise.
* score-tdep.c: Likewise.
* sh64-tdep.c: Likewise.
* sh-tdep.c: Likewise.
* sparc64fbsd-tdep.c: Likewise.
* sparc64nbsd-tdep.c: Likewise.
* sparc64obsd-tdep.c: Likewise.
* v850-tdep.c: Likewise.
* vaxobsd-tdep.c: Likewise.
* vax-tdep.c: Likewise.
* xstormy16-tdep.c: Likewise.

16 years ago * mi/mi-main.c (enum captured_mi_execute_command_actions)
Vladimir Prus [Sat, 28 Jun 2008 11:53:34 +0000 (11:53 +0000)]
* mi/mi-main.c (enum captured_mi_execute_command_actions)
(captured_mi_execute_command_args): Remove.
(captured_mi_execute_command): Cast the closure to mi_parse
pointer, not to captured_mi_execute_command_args, and don't
set the action field thereof.
(mi_execute_command): Pass struct mi_parse, not
captured_mi_execute_command_args to captured_mi_execute_command.
(mi_execute_command): Remove (dead) code for suppressing
printing prompt.

16 years ago * lib/mi-support.exp (mi_send_resuming_command_raw): Revert
Vladimir Prus [Sat, 28 Jun 2008 11:31:02 +0000 (11:31 +0000)]
* lib/mi-support.exp (mi_send_resuming_command_raw): Revert
previous commit.  Add a comment.

16 years agogdb/
Pedro Alves [Sat, 28 Jun 2008 11:15:34 +0000 (11:15 +0000)]
gdb/
2008-06-28  Pedro Alves  <pedro@codesourcery.com>

* linux-nat.c (enum sigchld_state): New.
(linux_nat_async_events_state): Renamed from
linux_nat_async_events_enabled.
(linux_nat_event_pipe_push, my_waitpid): Adjust.
(sigchld_default_action): New.
(lin_lwp_attach_lwp): Adjust.  Call linux_nat_async_events
unconditionally.
(linux_nat_create_inferior): Set events state to sigchld_default
state.
(linux_nat_resume): Adjust.
(linux_nat_wait): Call linux_nat_async_events unconditionally.
(sigchld_handler): Adjust.
(linux_nat_async_mask): Don't set SIGCHLD actions here.
(get_pending_events): Adjust.
(linux_nat_async_events): Rewrite to handle enum sigchld_state
instead of a boolean.
(linux_nat_async): Adjust.
(_initialize_linux_nat): Capture default SIGCHLD action into
sigchld_default_action.

gdb/testsuite/
2008-06-28  Pedro Alves  <pedro@codesourcery.com>

* gdb.base/sigchld.c, gdb.base/sigchld.exp: New test.

16 years ago * lib/mi-support.exp (mi_send_resuming_command_raw): Report pass.
Vladimir Prus [Sat, 28 Jun 2008 10:14:34 +0000 (10:14 +0000)]
* lib/mi-support.exp (mi_send_resuming_command_raw): Report pass.

16 years agoRevert accidental commit
Vladimir Prus [Sat, 28 Jun 2008 10:03:42 +0000 (10:03 +0000)]
Revert accidental commit

16 years ago * breakpoint.c (moribund_locations): New.
Vladimir Prus [Sat, 28 Jun 2008 09:42:15 +0000 (09:42 +0000)]
    * breakpoint.c (moribund_locations): New.
        (bpstat_stop_status): Process moribund locations.
        (update_global_location_list): Add removed
        locations to moribund_locations.
        (breakpoint_retire_moribund): New.
        * breakpoint.h (struct bp_location): New field
        events_till_retirement.
        (breakpoint_retire_moribund): Declare.
        * thread.c (thread_count): New.
        * infrun.c (handle_inferior_event): Call
        breakpoint_retire_moribund.
        * gdbthread.h (thread_count): Declare.

16 years ago*** empty log message ***
gdbadmin [Sat, 28 Jun 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Sat, 28 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * dfp.c (decimal_convert): Call match_endianness before and after
Joseph Myers [Fri, 27 Jun 2008 20:15:01 +0000 (20:15 +0000)]
* dfp.c (decimal_convert): Call match_endianness before and after
conversion.

16 years ago * remote.c (remote_insert_breakpoint): Ensure that if Z0
Jonathan Larmour [Fri, 27 Jun 2008 18:56:34 +0000 (18:56 +0000)]
    * remote.c (remote_insert_breakpoint): Ensure that if Z0
        unsupported and we fall back to memory_insert_breakpoint, we
        use the unmodified requested address.

16 years ago * dwarf2read.c (read_attribute_value): Issue a complaint when
Joel Brobecker [Fri, 27 Jun 2008 17:56:47 +0000 (17:56 +0000)]
    * dwarf2read.c (read_attribute_value): Issue a complaint when
        adjusting size attribute values of 0xffffffff as zero.

16 years ago * lib/gdb.exp (gdb_saved_set_unbuffered_mode_obj): New global.
Pedro Alves [Fri, 27 Jun 2008 16:42:19 +0000 (16:42 +0000)]
* lib/gdb.exp (gdb_saved_set_unbuffered_mode_obj): New global.
(gdb_compile): If target is *-*-cygwin* or *-*-mingw*, and we're
compiling an executable, link in an object that forces unbuffered
output.
* lib/set_unbuffered_mode.c: New file.

16 years ago * i386-tdep.c (i386_16_byte_align_p): New.
Joseph Myers [Fri, 27 Jun 2008 16:22:56 +0000 (16:22 +0000)]
* i386-tdep.c (i386_16_byte_align_p): New.
(i386_push_dummy_call): Determine stack space required for
arguments going forwards allowing for 16-byte alignment, then push
arguments going forwards.

16 years ago * remote-utils.c (prepare_resume_reply): If requested, don't
Pedro Alves [Fri, 27 Jun 2008 13:22:15 +0000 (13:22 +0000)]
* remote-utils.c (prepare_resume_reply): If requested, don't
output "thread:TID" in the T stop reply.

* server.c (disable_packet_vCont, disable_packet_Tthread)
(disable_packet_qC, disable_packet_qfThreadInfo): New globals.
(handle_query): If requested, disable support for qC, qfThreadInfo
and qsThreadInfo.
(handle_v_requests): If requested, disable support for vCont.
(gdbserver_show_disableable): New.
(main): Handle --disable-packet and --disable-packet=LIST.

* server.h (disable_packet_vCont, disable_packet_Tthread)
(disable_packet_qC, disable_packet_qfThreadInfo): Declare.

16 years ago * infrun.c (start_remote): Don't clear thread list here.
Pedro Alves [Fri, 27 Jun 2008 11:54:21 +0000 (11:54 +0000)]
* infrun.c (start_remote): Don't clear thread list here.
* monitor.c (monitor_open): Include "gdbthread.h".  Clear thread
list here.
* remote.c (record_currthread): Upgrade the main thread and its
entry in the thread list if this is the first time we hear about
threads.
(remote_thread_alive): Consider magic_null_ptid or a ptid without
a tid member always alive.
(remote_find_new_threads): Don't update the main thread here.
(remote_start_remote): Clear thread list here.  Always add the
main thread.
(extended_remote_attach_1): Add the main thread here.
(extended_remote_mourn_1): Re-add the main thread here.
(extended_remote_create_inferior_1): Add a main thread.

* Makefile.in (monitor.o): Depend on $(gdbthread_h).

16 years agoFix date.
Pedro Alves [Fri, 27 Jun 2008 11:32:17 +0000 (11:32 +0000)]
Fix date.

16 years ago Use ptid_t.tid to store thread ids instead of ptid_t.pid.
Pedro Alves [Fri, 27 Jun 2008 11:31:40 +0000 (11:31 +0000)]
Use ptid_t.tid to store thread ids instead of ptid_t.pid.

* remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
globals.
(general_thread, continue_thread): Change type to ptid_t.
(record_currthread): Take a ptid_t parameter instead of an
integer.
(MAGIC_NULL_PID): Delete.
(set_thread): Take a ptid_t parameter and adjust.
(set_general_thread, set_continue_thread): New.
(remote_thread_alive, remote_newthread_step)
(remote_current_thread, remote_find_new_threads)
(remote_threads_info, remote_start_remote, remote_vcont_resume)
(remote_resume_1, remote_wait, extended_remote_create_inferior_1)
(threadalive_test, remote_pid_to_str)
(remote_get_thread_local_address): Adjust.
(_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
and any_thread_ptid.

16 years ago*** empty log message ***
gdbadmin [Fri, 27 Jun 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Fri, 27 Jun 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years ago * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
Jan Kratochvil [Thu, 26 Jun 2008 19:20:42 +0000 (19:20 +0000)]
* configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
* configure: Regenerated.

16 years ago * dwarf2read.c (read_attribute_value): Treat size attribute
Joel Brobecker [Thu, 26 Jun 2008 19:08:10 +0000 (19:08 +0000)]
    * dwarf2read.c (read_attribute_value): Treat size attribute
        values of 0xffffffff as if the attribute value was zero.