platform/upstream/binutils.git
15 years ago* gdb.base/foll-fork.exp (catch_fork_child_follow): Fix patterns
Andreas Schwab [Thu, 20 Nov 2008 17:17:59 +0000 (17:17 +0000)]
* gdb.base/foll-fork.exp (catch_fork_child_follow): Fix patterns
matching syscall entry point.
* gdb.base/foll-vfork.exp (tcatch_vfork_then_parent_follow)
(tcatch_vfork_then_child_follow): Likewise.  Finish through
vfork even if we stopped at the syscall trampoline.

15 years ago * infrun.c (resume): If following a fork, also reset regcache,
Pedro Alves [Thu, 20 Nov 2008 17:06:05 +0000 (17:06 +0000)]
* infrun.c (resume): If following a fork, also reset regcache,
gdbarch and pc.

15 years ago * printcmd.c (sym_info): Don't print the offset if it's zero.
Doug Evans [Thu, 20 Nov 2008 16:13:11 +0000 (16:13 +0000)]
* printcmd.c (sym_info): Don't print the offset if it's zero.

* gdb.base/sepsymtab.exp: Update, old "info sym" format restored.

15 years ago * infrun.c (resume): If following a fork, reread the current
Pedro Alves [Thu, 20 Nov 2008 13:23:26 +0000 (13:23 +0000)]
* infrun.c (resume): If following a fork, reread the current
thread.  Avoid dereferencing a possibly dangling pointer.

15 years ago2008-11-20 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 20 Nov 2008 09:49:00 +0000 (09:49 +0000)]
2008-11-20  Tristan Gingold  <gingold@adacore.com>

* bfdwin.c: Fix comment.

15 years ago2008-11-20 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 20 Nov 2008 09:28:06 +0000 (09:28 +0000)]
2008-11-20  Tristan Gingold  <gingold@adacore.com>

* bfd.c (is32bit): Use architecture information for non-ELF
targets.

15 years ago * elf32-ppc.c (allocate_dynrelocs): Always use tlsld_got for
Alan Modra [Thu, 20 Nov 2008 08:47:10 +0000 (08:47 +0000)]
* elf32-ppc.c (allocate_dynrelocs): Always use tlsld_got for
TLS_LD even when symbol is used with other TLS reloc types.
(ppc_elf_relocate_section): Bypass symbol checks when using tlsld_got.
Leave addend zero on LD DTPMOD dynamic reloc.

15 years agoForgot to save entry before commit:
Hans-Peter Nilsson [Thu, 20 Nov 2008 02:48:28 +0000 (02:48 +0000)]
Forgot to save entry before commit:
* config/tc-cris.c (cris_number_to_imm): Apply S_SET_THREAD_LOCAL
on symbols in TLS relocs.

15 years ago * inferior.h (proceed_to_finish): Delete, unused.
Doug Evans [Thu, 20 Nov 2008 00:35:23 +0000 (00:35 +0000)]
* inferior.h (proceed_to_finish): Delete, unused.
(stop_registers): Tweak comment.
* infrun.c (stop_registers): Tweak comment.

15 years agodaily update
Alan Modra [Thu, 20 Nov 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Thu, 20 Nov 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * frv-tdep.c (frv_skip_main_prologue): New function.
Kevin Buettner [Wed, 19 Nov 2008 21:17:07 +0000 (21:17 +0000)]
* frv-tdep.c (frv_skip_main_prologue): New function.
(frv_gdbarch_init): Register frv_skip_main_prologue.
* solib-frv.c (fetch_loadmap): Return early when no segments are
found.
(frv_relocate_main_executable): Return early when both interpreter
and executable loadmap addresses are zero.

15 years agogdb/
Bob Wilson [Wed, 19 Nov 2008 18:29:47 +0000 (18:29 +0000)]
gdb/
* xtensa-config.c (rmap): Remove entries for ar32 through ar63.  Add
threadptr, scompare1, mmid, epc5, epc6, epc7, eps5, eps6, eps7,
excsave5, excsave6, excsave7, cpenable, and vecbase registers.
(xtensa_submask0, xtensa_submask1, xtensa_submask2)
(xtensa_submask3, xtensa_submask4, xtensa_submask5, xtensa_submask6)
(xtensa_submask7, xtensa_submask8, xtensa_submask9, xtensa_submask10)
(xtensa_submask11, xtensa_submask12, xtensa_submask13, xtensa_submask14)
(xtensa_submask15): Adjust register numbers.
* xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
(xtensa_regmap_table): Add entry for scompare1.
* regformats/reg-xtensa.dat: Remove ar32 through ar63.  Add threadptr
and scompare1.
gdb/gdbserver/
* xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
(xtensa_regmap_table): Add entry for scompare1.

15 years agoinclude/
Bob Wilson [Wed, 19 Nov 2008 18:25:20 +0000 (18:25 +0000)]
include/
* xtensa-config.h (XCHAL_HAVE_MUL16, XCHAL_HAVE_MUL32, XCHAL_HAVE_DIV32)
(XCHAL_HAVE_MINMAX, XCHAL_HAVE_SEXT, XCHAL_HAVE_THREADPTR)
(XCHAL_HAVE_RELEASE_SYNC, XCHAL_HAVE_S32C1I): Change to 1.
(XCHAL_NUM_AREGS): Change to 32.
(XCHAL_ICACHE_SIZE, XCHAL_DCACHE_SIZE): Change to 16K.
(XCHAL_ICACHE_LINESIZE, XCHAL_DCACHE_LINESIZE): Change to 32.
(XCHAL_ICACHE_LINEWIDTH, XCHAL_DCACHE_LINEWIDTH): Change to 5.
(XCHAL_DCACHE_IS_WRITEBACK): Change to 1.
(XCHAL_DEBUGLEVEL): Change to 6.
bfd/
* xtensa-modules.c (sysregs): Add MMID, VECBASE, EPC5, EPC6, EPC7,
EXCSAVE5, EXCSAVE6, EXCSAVE7, EPS5, EPS6, EPS7, CPENABLE,
SCOMPARE1, and THREADPTR registers.
(NUM_SYSREGS, MAX_USER_REG): Update.
(states): Change width of INTERRUPT, WindowBase, WindowStart, and
INTENABLE.  Add VECBASE, EPC5, EPC6, EPC7, EXCSAVE5, EXCSAVE6,
EXCSAVE7, EPS6, EPS6, EPS7, THREADPTR, CPENABLE, and SCOMPARE1 states.
(NUM_STATES): Update.
(enum xtensa_state_id): Add entries for new states.
(enum xtensa_field_id): Add entries for xt_wbr15_imm and xt_wbr18_imm
fields, along with functions to extract and set them.
(regfiles): Change number of AR registers to 32.
(Operand_ar0_encode, Operand_ar4_encode, Operand_ar8_encode,
Operand_ar12_encode, Operand_ars_entry_encode): Update register mask.
(operands): Add entries for tp7, xt_wbr15_label, xt_wbr18_label,
xt_wbr15_imm, and xt_wbr18_imm operands, along with functions to
encode and decode them.
(enum xtensa_operand_id): Add entries for new operands.
(Iclass_xt_iclass_rfi_stateArgs): Add EPC5, EPC6, EPC7, EPS5, EPS6, and
EPC7 states.
(Iclass_xt_iclass_rfdo_stateArgs): Replace EPC4 and EPS4 by EPC6 and
EPS6, respectively.
(iclasses): Add entries for rur_threadptr, wur_threadptr,
xt_iclass_wsr_176, xt_iclass_rsr_epc5, xt_iclass_wsr_epc5,
xt_iclass_xsr_epc5, xt_iclass_rsr_excsave5, xt_iclass_wsr_excsave5,
xt_iclass_xsr_excsave5, xt_iclass_rsr_epc6, xt_iclass_wsr_epc6,
xt_iclass_xsr_epc6, xt_iclass_rsr_excsave6, xt_iclass_wsr_excsave6,
xt_iclass_xsr_excsave6, xt_iclass_rsr_epc7, xt_iclass_wsr_epc7,
xt_iclass_xsr_epc7, xt_iclass_rsr_excsave7, xt_iclass_wsr_excsave7,
xt_iclass_xsr_excsave7, xt_iclass_rsr_eps5, xt_iclass_wsr_eps5,
xt_iclass_xsr_eps5, xt_iclass_rsr_eps6, xt_iclass_wsr_eps6,
xt_iclass_xsr_eps6, xt_iclass_rsr_eps7, xt_iclass_wsr_eps7,
xt_iclass_xsr_eps7, xt_iclass_rsr_vecbase, xt_iclass_wsr_vecbase,
xt_iclass_xsr_vecbase, xt_iclass_mul16, xt_iclass_wsr_mmid,
xt_iclass_icache_lock, xt_iclass_dcache_lock, xt_iclass_rsr_cpenable,
xt_iclass_wsr_cpenable, xt_iclass_xsr_cpenable, xt_iclass_clamp,
xt_iclass_minmax, xt_iclass_sx, xt_iclass_l32ai, xt_iclass_s32ri,
xt_iclass_s32c1i, xt_iclass_rsr_scompare1, xt_iclass_wsr_scompare1,
xt_iclass_xsr_scompare1, xt_iclass_div, and xt_iclass_mul32, along
with corresponding argument and state argument arrays.  Change
number of state arguments for xt_iclass_rfi.  Add arguments for
xt_iclass_rfdo.
(enum xtensa_iclass_id): Add entries for new iclasses.
(opcodes): Add entries for RUR_THREADPTR, WUR_THREADPTR, WSR_176,
RSR_EPC5, WSR_EPC5, XSR_EPC5, RSR_EXCSAVE5, WSR_EXCSAVE5, XSR_EXCSAVE5,
RSR_EPC6, WSR_EPC6, XSR_EPC6, RSR_EXCSAVE6, WSR_EXCSAVE6, XSR_EXCSAVE6,
RSR_EPC7, WSR_EPC7, XSR_EPC7, RSR_EXCSAVE7, WSR_EXCSAVE7, XSR_EXCSAVE7,
RSR_EPS5, WSR_EPS5, XSR_EPS5, RSR_EPS6, WSR_EPS6, XSR_EPS6, RSR_EPS7,
WSR_EPS7, XSR_EPS7, RSR_VECBASE, WSR_VECBASE, XSR_VECBASE, MUL16U,
MUL16S, WSR_MMID, IPFL, IHU, IIU, DPFL, DHU, DIU, RSR_CPENABLE,
WSR_CPENABLE, XSR_CPENABLE, CLAMPS, MIN, MAX, MINU, MAXU, SEXT, L32AI,
S32RI, S32C1I, RSR_SCOMPARE1, WSR_SCOMPARE1, XSR_SCOMPARE1, QUOU, QUOS,
REMU, REMS, and MULL opcodes, along with the corresponding functions
to encode them.
(enum xtensa_opcode_id): Add entries for new opcodes.
(Slot_inst_decode): Handle new opcodes.
(Slot_inst_get_field_fns, Slot_inst_set_field_fns): Add entries for
xt_wbr15_imm and xt_wbr18_imm fields.
(Slot_inst16a_get_field_fns, Slot_inst16a_set_field_fns): Likewise.
(Slot_inst16b_get_field_fns, Slot_inst16b_set_field_fns): Likewise.
(xtensa_modules): Update number of fields, operands, iclasses and
opcodes.

15 years agoChange documentation license to FDL v1.3
Nick Clifton [Wed, 19 Nov 2008 16:22:48 +0000 (16:22 +0000)]
Change documentation license to FDL v1.3

15 years ago * remote.c (escape_buffer): New.
Pedro Alves [Wed, 19 Nov 2008 14:45:09 +0000 (14:45 +0000)]
* remote.c (escape_buffer): New.
(putpkt_binary, read_frame, getpkt_or_notif_sane_1): Use it.  Make
sure debug output printing a packet buffer goes through a single
fprintf_unfiltered call.
* utils.c (vfprintf_unfiltered): If outputting timestamps, end
output with a newline if it wasn't going to already.

15 years ago * elf.c (swap_out_syms) [USE_STT_COMMON]: Fix syntax error.
Nick Clifton [Wed, 19 Nov 2008 10:09:21 +0000 (10:09 +0000)]
    * elf.c (swap_out_syms) [USE_STT_COMMON]: Fix syntax error.

15 years ago PR 7027
Nick Clifton [Wed, 19 Nov 2008 09:25:56 +0000 (09:25 +0000)]
    PR 7027
        * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Treat WPLT30 relocs
        against local symbols in 64-bit binaries as if they were WDISP30
        relocs.
        (_bfd_sparc_elf_relocate_section): Likewise.

15 years ago * gas/cris/rd-tls-1.d, gas/cris/rd-tls-1.s: Use a local thread
Hans-Peter Nilsson [Wed, 19 Nov 2008 06:16:54 +0000 (06:16 +0000)]
* gas/cris/rd-tls-1.d, gas/cris/rd-tls-1.s: Use a local thread
variable instead of .text location for :GD decoration test.

15 years ago * config/tc-cris.c (cris_number_to_imm): Apply S_SET_THREAD_LOCAL
Hans-Peter Nilsson [Wed, 19 Nov 2008 06:16:04 +0000 (06:16 +0000)]
* config/tc-cris.c (cris_number_to_imm): Apply S_SET_THREAD_LOCAL
on symbols in TLS relocs.

15 years agodaily update
Alan Modra [Wed, 19 Nov 2008 00:00:09 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Wed, 19 Nov 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago2008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>
Paul Pluzhnikov [Tue, 18 Nov 2008 22:46:27 +0000 (22:46 +0000)]
2008-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>

* maint.c (maintenance_translate_address): Fix a buglet.

15 years agogdb/
Thiago Jung Bauermann [Tue, 18 Nov 2008 21:48:48 +0000 (21:48 +0000)]
gdb/
* features/Makefile (rs6000/powerpc-isa205-32l-expedite,
rs6000/powerpc-isa205-altivec32l-expedite,
powerpc-isa205-vsx32l-expedite, rs6000/powerpc-isa205-64l-expedite,
rs6000/powerpc-isa205-altivec64l-expedite,
powerpc-isa205-vsx64l-expedite): New variables.
* regformats/rs6000/powerpc-isa205-32l.dat: Generate.
* regformats/rs6000/powerpc-isa205-altivec32l.dat: Generate.
* regformats/rs6000/powerpc-isa205-vsx32l.dat: Generate.
* regformats/rs6000/powerpc-isa205-64l.dat: Generate.
* regformats/rs6000/powerpc-isa205-altivec64l.dat: Generate.
* regformats/rs6000/powerpc-isa205-vsx64l.dat: Generate.

gdbserver/
* Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
powerpc-isa205-64l.o, powerpc-isa205-64l.c,
powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
* configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
XML target descriptions.
* linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
when inferior is running on an ISA 2.05 or later processor.  Add
special case to return offset for full 64-bit slot of FPSCR when
in 32-bits.

15 years agogdb/
Thiago Jung Bauermann [Tue, 18 Nov 2008 21:39:47 +0000 (21:39 +0000)]
gdb/
* ppc-linux-nat.c (ppc_register_u_addr): Add special case to return
offset for full 64-bit slot of FPSCR when in 32-bits.
(ppc_linux_read_description): Return target description with 64-bit
FPSCR when inferior is running on an ISA 2.05 or later processor.
* ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Call
initialize_tdec_powerpc_isa205_32l,
initialize_tdec_powerpc_isa205_altivec32l,
initialize_tdec_powerpc_isa205_vsx32l,
initialize_tdec_powerpc_isa205_64l,
initialize_tdec_powerpc_isa205_altivec64l and
initialize_tdec_powerpc_isa205_vsx64l.
* ppc-linux-tdep.h: Add external declaration for
tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l,
tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_64l,
tdesc_powerpc_isa205_altivec64l and tdesc_powerpc_isa205_vsx64l.
* features/rs600/powerpc-fpu-isa205.xml: New file.
* features/rs600/powerpc-isa205-32l.xml: New file.
* features/rs600/powerpc-isa205-64l.xml: New file.
* features/rs600/powerpc-isa205-altivec32l.xml: New file.
* features/rs600/powerpc-isa205-altivec64l.xml: New file.
* features/rs600/powerpc-isa205-vsx32l.xml: New file.
* features/rs600/powerpc-isa205-vsx64l.xml: New file.
* features/rs600/powerpc-isa205-32l.c: Generate.
* features/rs600/powerpc-isa205-64l.c: Generate.
* features/rs600/powerpc-isa205-altivec32l.c: Generate.
* features/rs600/powerpc-isa205-altivec64l.c: Generate.
* features/rs600/powerpc-isa205-vsx32l.c: Generate.
* features/rs600/powerpc-isa205-vsx64l.c: Generate.

gdb/testsuite/
* gdb.arch/ppc-dfp.exp: New file.
* gdb.arch/ppc-dfp.c: New file.

15 years ago2008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>
Paul Pluzhnikov [Tue, 18 Nov 2008 21:31:27 +0000 (21:31 +0000)]
2008-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>

* objfiles.h: New MULTI_OBJFILE_P macro.
* printcmd.c (sym_info): Print object name.
* maint.c (maintenance_translate_address): Likewise.

15 years ago2008-11-18 Joel Sherrill <joel.sherrill@oarcorp.com>
Joel Sherrill [Tue, 18 Nov 2008 21:30:37 +0000 (21:30 +0000)]
2008-11-18  Joel Sherrill <joel.sherrill@oarcorp.com>

* configure: Regenerated.
* configure.ac: Add test for System V shared memory and semaphore.
* debug.c, debug.h: Add trace support for new devices.
* hw_sem.c, hw_shm.c: New files.
* Makefile.in: Add hw_sem.c and hw_shm.c.

15 years ago * gdb.texinfo (Set Catchpoints): Remove the documentation of
Joel Brobecker [Tue, 18 Nov 2008 20:43:12 +0000 (20:43 +0000)]
    * gdb.texinfo (Set Catchpoints): Remove the documentation of
        commands "catch load" and "catch unload".

15 years ago * NEWS: Document the removal of "catch load" and "catch unload".
Joel Brobecker [Tue, 18 Nov 2008 20:41:42 +0000 (20:41 +0000)]
    * NEWS: Document the removal of "catch load" and "catch unload".

15 years agoAdd support for ARM half-precision conversion instructions.
Catherine Moore [Tue, 18 Nov 2008 15:45:05 +0000 (15:45 +0000)]
Add support for ARM half-precision conversion instructions.

15 years ago * dwarf2.c (read_section): Fix formatting.
Nick Clifton [Tue, 18 Nov 2008 14:05:00 +0000 (14:05 +0000)]
    * dwarf2.c (read_section): Fix formatting.
        (read_n_bytes): Remove unhelpful comment.
        (read_indirect_string): Pass symbol table to read_section in case
        the .debug_str section needs relocating.

        PR 7037
        * elf32-cr16.c (cr16_elf_howto_table): Zero the src_mask field of
        the reloc descriptions.

15 years ago * infcall.c (call_function_by_hand): Fix punctuation and capitalization
Doug Evans [Tue, 18 Nov 2008 00:13:04 +0000 (00:13 +0000)]
* infcall.c (call_function_by_hand): Fix punctuation and capitalization
on error messages.

* gdb.mi/mi-syn-frame.exp: Update expected output.
* gdb.mi/mi2-syn-frame.exp: Update expected output.

15 years ago*** empty log message ***
gdbadmin [Tue, 18 Nov 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Tue, 18 Nov 2008 00:00:08 +0000 (00:00 +0000)]
daily update

15 years ago * configure.tgt [spu-*-elf*]: Set NATIVE_LIB_DIRS to '/lib'.
Ulrich Weigand [Mon, 17 Nov 2008 20:11:48 +0000 (20:11 +0000)]
* configure.tgt [spu-*-elf*]: Set NATIVE_LIB_DIRS to '/lib'.

15 years ago PR gdb/2250
Ulrich Weigand [Mon, 17 Nov 2008 18:50:22 +0000 (18:50 +0000)]
PR gdb/2250
* infrun.c (clear_proceed_status_thread): New function.
(clear_proceed_status_callback): New function.
(clear_proceed_status): In all-stop mode, clear per-thread
proceed status of *all* threads, not only the current.
(handle_inferior_event): In all-stop mode, if we're stepping
one thread, but got some inferior event in another thread
that does not cause GDB to break to the user interface,
ensure the interrupted stepping operation continues in the
original thread.
(currently_stepping): Move thread-related tests to ...
(currently_stepping_thread): ... this new function.
(currently_stepping_callback): New function.

15 years agoUpdate copyright year in --version messages.
Nick Clifton [Mon, 17 Nov 2008 17:44:32 +0000 (17:44 +0000)]
Update copyright year in --version messages.

15 years ago Implement =thread-selected notification.
Vladimir Prus [Mon, 17 Nov 2008 16:43:34 +0000 (16:43 +0000)]
Implement =thread-selected notification.

        * mi/mi-common.h (struct mi_interp): New, moved from ...
        * mi/mi-interp.c: ...here.
        * mi/mi-main.c (mi_execute_command): If the thread changed
        as result of command, report that.

15 years ago Implement continue/interrupt of thread groups.
Vladimir Prus [Mon, 17 Nov 2008 16:39:51 +0000 (16:39 +0000)]
Implement continue/interrupt of thread groups.

        * mi/mi-main.c (proceed_thread_callback): New.
        (mi_cmd_exec_continue): If --thread-group is specified, resume all
        threads in that group.
        (interrupt_thread_callback): New.
        (mi_cmd_exec_interrupt): If --thread-group is specified, interrupt
        all threads in that group.

15 years ago Implement '-target-detach pid'.
Vladimir Prus [Mon, 17 Nov 2008 16:37:35 +0000 (16:37 +0000)]
Implement '-target-detach pid'.

        * infcmd.c (detach_command): Make nonstatic.
        * inferior.h (detach_command): Declare.
        * mi/mi-cmds.c (mi_cmds): Don't route -target-detach via CLI.
        * mi/mi-cmds.h (mi_cmd_target_detach): Declare.
        * mi/mi-main.c (find_thread_of_process, mi_cmd_target_detach): New.

15 years ago Include group-id in thread-created notification.
Vladimir Prus [Mon, 17 Nov 2008 12:34:19 +0000 (12:34 +0000)]
Include group-id in thread-created notification.

        * mi/mi-interp.c (mi_new_thread, mi_thread_exit): Include
        group id in the output.

15 years ago Notification for attach/detach.
Vladimir Prus [Mon, 17 Nov 2008 12:28:05 +0000 (12:28 +0000)]
Notification for attach/detach.

        * inferior.c: Call the process observers.
        * mi/mi-interp.c (mi_new_inferior, mi_inferior_exit): New.
        (mi_interpreter_init): Register the above.

15 years ago Implement -list-thread-groups.
Vladimir Prus [Mon, 17 Nov 2008 12:13:49 +0000 (12:13 +0000)]
Implement -list-thread-groups.

        * thread.c (print_thread_info): New parameter pid, to print
        threads of specific process.
        * gdbthread.h (print_thread_info): New parameter pid.
        * mi/mi-cmds.c (mi_cmds): Register -list-thread-groups.
        * mi/mi-cmds.h (mi_cmd_list_thread_groups): New.
        * mi/mi-main.c (mi_cmd_thread_info): Adjust.
        (print_one_process, mi_cmd_list_thread_groups): New.

15 years ago*** empty log message ***
gdbadmin [Mon, 17 Nov 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Mon, 17 Nov 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago Remove some unused macros related to the old load/unload catchpoints.
Joel Brobecker [Sun, 16 Nov 2008 18:05:26 +0000 (18:05 +0000)]
    Remove some unused macros related to the old load/unload catchpoints.

        * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME)
        (SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK)
        (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Delete. No longer used.

15 years ago * gdb.base/help.exp: Remove the "catch load" and "catch unload"
Joel Brobecker [Sun, 16 Nov 2008 18:03:25 +0000 (18:03 +0000)]
    * gdb.base/help.exp: Remove the "catch load" and "catch unload"
        commands from the expected output for "help catch".

15 years ago Remove support for catch load and catch unload commands.
Joel Brobecker [Sun, 16 Nov 2008 18:01:46 +0000 (18:01 +0000)]
    Remove support for catch load and catch unload commands.

        * breakpoint.h (enum bptype): Remove bp_catch_load and bp_catch_unload.
        (struct breakpoint): Remove fields dll_pathname and
        triggered_dll_pathname.
        (bpstat_get_triggered_catchpoints, ep_is_shlib_catchpoint): Delete.
        * breakpoint.c (ep_is_catchpoint): Remove handling of
        bp_catch_load and bp_catch_unload.
        (print_it_typical, bpstat_check_location, bpstat_what)
        (print_one_breakpoint_location, print_one_breakpoint_location)
        (user_settable_breakpoint, allocate_bp_location)
        (set_raw_breakpoint_without_location, mention, delete_breakpoint,
        (breakpoint_re_set_one, disable_command, enable_command): Likewise.
        (ep_is_shlib_catchpoint, bpstat_get_triggered_catchpoints)
        (catch_load_command_1, catch_unload_command_1): Delete.
        (_initialize_breakpoint): Remove the "catch load" and "catch unload"
        command creation.
        * infrun.c (handle_inferior_event): Remove the handling of
        load/unload catchpoint events.

15 years ago * dlltool.c (identify_search_section): Cast argument, not return
Danny Smith [Sun, 16 Nov 2008 06:00:41 +0000 (06:00 +0000)]
* dlltool.c (identify_search_section): Cast argument, not return
value, of xstrdup to 'char*'.

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

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

15 years ago From Jerome Guitton <guitton@adacore.com>
Joel Brobecker [Sat, 15 Nov 2008 18:49:50 +0000 (18:49 +0000)]
    From  Jerome Guitton  <guitton@adacore.com>
        * dwarf2read.c (dwarf2_debug_line_missing_end_sequence_complaint):
        New function.
        (dwarf_decode_lines): Detect null file numbers. Detect the end of
        the line program sequence when no end sequence is emitted.

15 years ago * gdb.ada/int_deref.exp: New testcase.
Joel Brobecker [Sat, 15 Nov 2008 18:30:38 +0000 (18:30 +0000)]
    * gdb.ada/int_deref.exp: New testcase.

15 years ago * ada-lang.c (ada_evaluate_subexp): Improve handling of integer
Joel Brobecker [Sat, 15 Nov 2008 18:27:27 +0000 (18:27 +0000)]
* ada-lang.c (ada_evaluate_subexp): Improve handling of integer
type dereferencing.

15 years agoAdded --identify option to dlltool.
Charles Wilson [Sat, 15 Nov 2008 18:15:18 +0000 (18:15 +0000)]
Added --identify option to dlltool.

15 years ago * NEWS: Mention sparc64-linux-gnu gdbserver support.
Daniel Jacobowitz [Sat, 15 Nov 2008 16:09:51 +0000 (16:09 +0000)]
* NEWS: Mention sparc64-linux-gnu gdbserver support.

15 years ago * reloc.cc (Sized_relobj::do_read_relocs): Use constant invalid_address
Cary Coutant [Sat, 15 Nov 2008 01:40:23 +0000 (01:40 +0000)]
* reloc.cc (Sized_relobj::do_read_relocs): Use constant invalid_address
instead of -1U.

15 years agodaily update
Alan Modra [Sat, 15 Nov 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Sat, 15 Nov 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
Daniel Jacobowitz [Fri, 14 Nov 2008 22:06:41 +0000 (22:06 +0000)]
2008-11-14  Daniel Gutson  <dgutson@codesourcery.com>

* configure.tgt (sparc64-*-linux*): Added gdbserver support.
* regformats/reg-sparc64.dat: New file.

gdbserver/
2008-11-14  Daniel Gutson  <dgutson@codesourcery.com>

* Makefile.in (SFILES, clean): Added sparc64 files.
(reg-sparc64.o, reg-sparc64.c): New.
* configure.srv (sparc*-*-linux*): New configuration.
* linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
syscall arguments for SPARC.
(regsets_store_inferior_registers): Likewise.
* linux-sparc-low.c: New file.

15 years ago/bfd:
Eric B. Weddington [Fri, 14 Nov 2008 21:37:52 +0000 (21:37 +0000)]
/bfd:
2008-11-14  Eric B. Weddington  <eric.weddington@atmel.com>

PR 7022
* elf32-avr.c (bfd_elf_avr_final_write_processing):
Add missing break statements.

15 years agogdb
Tom Tromey [Fri, 14 Nov 2008 18:38:32 +0000 (18:38 +0000)]
gdb

PR mi/2549:
* mi/mi-main.c (get_register): Use get_formatted_print_options.

gdb/testsuite

2008-11-14  Nick Roberts  <nickrob@snap.net.nz>

* gdb.mi/gdb2549.exp: New file.

15 years ago * xtensa-modules.c (xtensa_state_id): New enum, replacing STATE macros.
Bob Wilson [Fri, 14 Nov 2008 17:37:29 +0000 (17:37 +0000)]
* xtensa-modules.c (xtensa_state_id): New enum, replacing STATE macros.
(xtensa_field_id, xtensa_regfile_id, xtensa_operand_id)
(xtensa_iclass_id, xtensa_opcode_id): New enums.
Replace hardcoded constants throughout this file with enum values.

15 years agomerge from gcc
DJ Delorie [Fri, 14 Nov 2008 16:02:56 +0000 (16:02 +0000)]
merge from gcc

15 years ago2008-11-14 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Fri, 14 Nov 2008 15:13:05 +0000 (15:13 +0000)]
2008-11-14  Kai Tietz  <kai.tietz@onevision.com>

* emultempl/pep.em (..._before_parse): initialize
pei386_runtime_pseudo_reloc by version 2.
(OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V1): New option.
(OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V2): New option.
(make_import_fixup): Use relocation size to read addend.
* emultempl/pe.em (..._before_parse): initialize
pei386_runtime_pseudo_reloc by version 1.
(OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V1): New option.
(OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V2): New option.
* pe-dll.c (pe-dll.h): Remove useless include.
(make_runtime_pseudo_reloc): Change addend to use bfd_vma.
Handle the two variants of pseudo-relocation.
(pe_create_import_fixup): Change addend to type bfd_vma.
Modify for the two pseudo_relocation variants.
(runtime_pseudp_reloc_v2_init): New static variable.
* pe-dll.h (pe_create_import_fixup): Change addend argument type
to bfd_vma.
* pep-dll.h (pep_create_import_fixup): Likewise.
* NEWS: Add comment.

15 years ago Revert:
Daniel Jacobowitz [Fri, 14 Nov 2008 15:10:50 +0000 (15:10 +0000)]
Revert:

2008-10-24  Daniel Jacobowitz  <dan@codesourcery.com>

* Makefile.tpl (HOST_EXPORTS): Correct CPPFLAGS typo.
* Makefile.in: Regenerated.

2008-10-22  Daniel Jacobowitz  <dan@codesourcery.com>

* Makefile.def (flags_to_pass): Add CPPFLAGS_FOR_BUILD and CPPFLAGS.
* Makefile.tpl (BUILD_EXPORTS): Set CPPFLAGS.
(EXTRA_BUILD_FLAGS): Correct typo.  Pass CPPFLAGS.
(HOST_EXPORTS): Pass CPPFLAGS.
(CPPFLAGS_FOR_BUILD, CPPFLAGS, CPPFLAGS_FOR_TARGET): Define.
(LDFLAGS_FOR_TARGET): Initialize from configure script.
(EXTRA_TARGET_FLAGS): Set CPPFLAGS.
* Makefile.in, configure: Regenerated.
* configure.ac: Set CPPFLAGS_FOR_TARGET, LDFLAGS_FOR_TARGET,
and CPPFLAGS_FOR_BUILD.

15 years ago2008-11-14 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 14 Nov 2008 14:56:51 +0000 (14:56 +0000)]
2008-11-14  Tristan Gingold  <gingold@adacore.com>

Remove outdated mach-o specific tests.
* objdump.c (load_debug_section): Remove mach-o specific test.
(mach_o_uncompressed_dwarf_sections): Removed.
(mach_o_compressed_dwarf_sections): Removed.
(generic_uncompressed_dwarf_sections): Removed.
(generic_compressed_dwarf_sections): Removed.
(check_mach_o_dwarf): Removed.
(dump_dwarf): Remove call to check_mach_o_dwarf.

15 years ago bfd/
Nick Clifton [Fri, 14 Nov 2008 14:44:09 +0000 (14:44 +0000)]
    bfd/
        * elf.c (assign_file_positions_for_load_sections): Use header_size
        to avoid moving the load address of file headers.
        (assign_file_positions_for_load_sections): Set header_size for
        segments containing the file header.

        include/elf/
        * internal.h (struct elf_segment_map): Add header_size field.

15 years ago * read.c (emit_expr): Grow frag before filling it so that
Nick Clifton [Fri, 14 Nov 2008 13:03:25 +0000 (13:03 +0000)]
    * read.c (emit_expr): Grow frag before filling it so that
        dot_value remains valid.

15 years agobfd/
Tristan Gingold [Fri, 14 Nov 2008 09:57:35 +0000 (09:57 +0000)]
bfd/
2008-11-14  Tristan Gingold  <gingold@adacore.com>

* configure.com: Handle bfd_default_target_size, BFD_HOST_LONG_LONG,
BFD_HOST_64BIT_LONG_LONG, BFD_HOSTPTR_T, bfd_file_ptr.
Generate bfdver.h.
* vms-hdr.c (_bfd_vms_write_hdr): Use strdup/free instead of alloca.
* hosts/alphavms.h: Defines macros to bypass i18n.
* makefile.vms (OBJS): Update file list.
(DEFS): Remove VMS_DEBUG, const, add DEBUGDIR.
(CFLAGS): Update flags.
* bfdio.c (real_fopen): Add code specific to VMS: extract attributes
from modes.

binutils/
2008-11-14  Tristan Gingold  <gingold@adacore.com>

* configure.com: Get version from configure.in of bfd.
* makefile.vms-in (DEBUG_OBJS): Add dwarf.obj.
(CFLAGS): Update flags.

include/
2008-11-14  Tristan Gingold  <gingold@adacore.com>

* fopen-vms.h (FOPEN_RB): Use a single string to match the
standard prototype.
(FOPEN_WB): Ditto.
(FOPEN_AB): Ditto.
(FOPEN_RUB): Ditto.
(FOPEN_WUB): Ditto.
(FOPEN_AUB): Ditto.

libiberty/
2008-11-14  Tristan Gingold  <gingold@adacore.com>

* makefile.vms (OBJS): Update objects list.
(CFLAGS): Update.
(libiberty.olb): Remove alloca-conf.h dependency.
* config.h-vms: Use new macro sets, use builtin alloca.

opcodes/
2008-11-14  Tristan Gingold  <gingold@adacore.com>

* makefile.vms (OBJS): Update list of objects.
(DEFS): Update
(CFLAGS): Update.

15 years ago PR 7026
Nick Clifton [Fri, 14 Nov 2008 09:02:38 +0000 (09:02 +0000)]
    PR 7026
        * config/tc-arm.c: Ensure that all uses of as_bad have a
        formatting string.

15 years ago(set_lang_c): Delete.
Doug Evans [Fri, 14 Nov 2008 06:55:40 +0000 (06:55 +0000)]
(set_lang_c): Delete.
(runto_main): If it fails, call fail instead of gdb_suppress_tests.

15 years ago * Makefile.am (spu_ovl.o_c): Add missing line continuations.
Alan Modra [Fri, 14 Nov 2008 06:54:40 +0000 (06:54 +0000)]
* Makefile.am (spu_ovl.o_c): Add missing line continuations.
* Makefile.in: Regenerate.

15 years agodaily update
Alan Modra [Fri, 14 Nov 2008 00:00:09 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Fri, 14 Nov 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * configure.in: Deactivate large-file support on native 32bit
Joel Brobecker [Thu, 13 Nov 2008 23:09:47 +0000 (23:09 +0000)]
    * configure.in: Deactivate large-file support on native 32bit
        sparc-solaris unless the user explicitly requested it.
        * configure: Regenerate.

15 years ago * printcmd.c: define PRINTF_HAS_LONG_LONG only if not yet defined.
Joel Brobecker [Thu, 13 Nov 2008 22:26:15 +0000 (22:26 +0000)]
    * printcmd.c: define PRINTF_HAS_LONG_LONG only if not yet defined.

15 years agogdb/ChangeLog:
Ulrich Weigand [Thu, 13 Nov 2008 15:07:54 +0000 (15:07 +0000)]
gdb/ChangeLog:

* auxv.c (fprint_target_auxv): Handle AT_BASE_PLATFORM and
AT_EXECFN.  Re-sort AT_SECURE.

include/elf/ChangeLog:

* common.h (AT_BASE_PLATFORM, AT_EXECFN): Define.

15 years ago * monitor.c (monitor_insert_breakpoint): Remove unused variable `bp'.
Jan Kratochvil [Thu, 13 Nov 2008 15:02:15 +0000 (15:02 +0000)]
* monitor.c (monitor_insert_breakpoint): Remove unused variable `bp'.

15 years ago * nm.c (filter_symbols): Only call memcpy when from != to.
Hans-Peter Nilsson [Thu, 13 Nov 2008 10:57:00 +0000 (10:57 +0000)]
* nm.c (filter_symbols): Only call memcpy when from != to.

15 years ago * ia64-tdep.c: Remove commented out #define.
Joel Brobecker [Thu, 13 Nov 2008 05:05:07 +0000 (05:05 +0000)]
    * ia64-tdep.c: Remove commented out #define.

15 years ago PR ld/7028
Hans-Peter Nilsson [Thu, 13 Nov 2008 03:01:15 +0000 (03:01 +0000)]
PR ld/7028
* elf.c (assign_file_positions_for_load_sections): Allocate phrds
with bfd_zalloc2 instead of bfd_alloc2.  For the amount, use
the possibly-preset header-size, not the computed one.

15 years ago * remote-sim.c (gdbsim_mourn_inferior): Use "target" parameter
Joel Brobecker [Thu, 13 Nov 2008 01:26:44 +0000 (01:26 +0000)]
* remote-sim.c (gdbsim_mourn_inferior): Use "target" parameter
instead of the "gdbsim_ops" global.

15 years agodaily update
Alan Modra [Thu, 13 Nov 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Thu, 13 Nov 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago2008-11-12 Joel Sherrill <joel.sherrill@oarcorp.com>
Joel Sherrill [Wed, 12 Nov 2008 22:05:18 +0000 (22:05 +0000)]
2008-11-12  Joel Sherrill <joel.sherrill@oarcorp.com>

* aclocal.m4:  Fix underquoting of function names.

15 years ago PR 7023
Alan Modra [Wed, 12 Nov 2008 22:04:04 +0000 (22:04 +0000)]
PR 7023
* elf.c (bfd_section_from_shdr <SHT_SYMTAB>): Fail on invalid sh_info.

15 years ago2008-11-12 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 12 Nov 2008 10:27:57 +0000 (10:27 +0000)]
2008-11-12  Tristan Gingold  <gingold@adacore.com>

* bfd.c (bfd_get_sign_extend_vma): Return 0 for mach-o.

15 years ago * config/tc-cris.c (cris_number_to_imm): Except for
Hans-Peter Nilsson [Wed, 12 Nov 2008 03:09:31 +0000 (03:09 +0000)]
* config/tc-cris.c (cris_number_to_imm): Except for
BFD_RELOC_NONE, always set contents.  Where previously this was
skipped, set contents to 0.

15 years ago PR gas/7025
Hans-Peter Nilsson [Wed, 12 Nov 2008 02:42:46 +0000 (02:42 +0000)]
PR gas/7025
* input-scrub.c (input_scrub_include_sb): Make the position
after the input have defined contents, a 0 character.

15 years ago * gas/cris/rd-bcnst2-pic.d, gas/cris/rd-bcnst2.d,
Hans-Peter Nilsson [Wed, 12 Nov 2008 02:36:55 +0000 (02:36 +0000)]
* gas/cris/rd-bcnst2-pic.d, gas/cris/rd-bcnst2.d,
gas/cris/rd-bcnst2.s: New tests.

15 years ago * config/tc-cris.c (cris_relax_frag): Add missing case for
Hans-Peter Nilsson [Wed, 12 Nov 2008 02:35:28 +0000 (02:35 +0000)]
* config/tc-cris.c (cris_relax_frag): Add missing case for
ENCODE_RELAX (STATE_COND_BRANCH_PIC, STATE_DWORD).

15 years ago PR gas/7020
Hans-Peter Nilsson [Wed, 12 Nov 2008 02:04:39 +0000 (02:04 +0000)]
PR gas/7020
* read.c (read_a_source_file): Rearrange evaluation order when
looking for '=' to avoid conditional on undefined contents of
input_line_pointer[1].

15 years ago * read.c (read_a_source_file): Rearrange evaluation order when
Hans-Peter Nilsson [Wed, 12 Nov 2008 01:41:12 +0000 (01:41 +0000)]
* read.c (read_a_source_file): Rearrange evaluation order when
looking for '=' to avoid conditional on undefined contents of
input_line_pointer[1].

15 years ago * infcall.c (call_function_by_hand): Handle inferior exit.
Doug Evans [Wed, 12 Nov 2008 00:39:28 +0000 (00:39 +0000)]
* infcall.c (call_function_by_hand): Handle inferior exit.

* gdb.base/callexit.exp: New file.
* gdb.base/callexit.c: New file.

15 years ago*** empty log message ***
gdbadmin [Wed, 12 Nov 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Tue, 11 Nov 2008 23:58:59 +0000 (23:58 +0000)]
daily update

15 years ago2008-11-10 Joel Sherrill <joel.sherrill@oarcorp.com>
Joel Sherrill [Tue, 11 Nov 2008 22:20:54 +0000 (22:20 +0000)]
2008-11-10  Joel Sherrill <joel.sherrill@oarcorp.com>

* erc32.c, exec.c: Fix warnings.

15 years ago * remote-sim.c (gdbsim_create_inferior, gdbsim_mourn_inferior): Add
Thiago Jung Bauermann [Tue, 11 Nov 2008 22:07:40 +0000 (22:07 +0000)]
* remote-sim.c (gdbsim_create_inferior, gdbsim_mourn_inferior): Add
missing struct target_ops argument.

15 years ago2008-11-11 Joel Sherrill <joel.sherrilL@oarcorp.com>
Joel Sherrill [Tue, 11 Nov 2008 22:05:45 +0000 (22:05 +0000)]
2008-11-11  Joel Sherrill <joel.sherrilL@oarcorp.com>

* MAINTAINERS: Add myself for write after approval privileges.