8f0ee2eb7c
gdb_bfd_unref failed assertion on AIX.
...
Trying to run any program on AIX triggers a failed assertion:
(gdb) run
Starting program: /[...]/simple_main
/[...]/gdb_bfd.c:288: internal-error: gdb_bfd_unref: Assertion `gdata->refc >= 1' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n)
What happens is that we have a loop where we forgot to update
the value of "last", resulting in the loop unref'ing the same
BFD over and over again. We bomb the second time around, when
triggering an assertion on the ref counter.
gdb/ChangeLog:
* rs6000-nat.c (add_vmap): Set "last" to "next" after having
unref'ed it.
2012-10-02 15:05:42 +00:00
547c8182c5
*** empty log message ***
2012-10-02 00:00:33 +00:00
38981e1608
daily update
2012-10-02 00:00:04 +00:00
b3dc46ff7c
http://sourceware.org/ml/gdb-patches/2012-09/msg00568.html
...
gdb/ChangeLog
* target.c (simple_search_memory): Include access length in
warning message.
gdb/gdbserver/ChangeLog
* server.c (handle_search_memory_1): Include access length in
warning message.
gdb/testsuite/ChangeLog
Test find command on unmapped memory.
* gdb.base/find-unmapped.c: New file.
* gdb.base/find-unmapped.exp: New file.
2012-10-01 12:02:13 +00:00
4fc0b46e62
* write.c (chain_frchains_together_1): Reorder assertion to avoid
...
uninit warning.
2012-10-01 06:46:16 +00:00
ed8960ecbc
daily update
2012-10-01 00:00:04 +00:00
f7b660e280
*** empty log message ***
2012-10-01 00:00:02 +00:00
0b9b36904a
daily update
2012-09-30 00:00:04 +00:00
09f503ee78
*** empty log message ***
2012-09-30 00:00:03 +00:00
8e71395b07
Sync toplevel files with GCC tree
...
2012-09-28 Ian Lance Taylor <iant@google.com>
* Makefile.def: Make all-target-libgo depend on
all-target-libbacktrace.
* Makefile.in: Rebuild.
2012-09-26 Ian Lance Taylor <iant@google.com>
* Makefile.def: Make all-gcc depend on all-libbacktrace.
* Makefile.in: Rebuild.
2012-09-06 Diego Novillo <dnovillo@google.com>
* configure.ac: Bump minimum GMP version to 4.2.3.
* configure: Re-generate.
2012-09-05 Georg-Johann Lay <avr@gjlay.de>
PR target/54461
* configure.ac (noconfigdirs,target=avr-*-*): Add target-newlib,
target-libgloss if not configured --with-avrlibc=no.
* configure: Regenerate.
2012-09-04 Jason Merrill <jason@redhat.com>
* configure.ac: Fix --enable-languages=all.
2012-09-03 Richard Guenther <rguenther@suse.de>
PR bootstrap/54138
* configure.ac: Re-organize ISL / CLOOG checks to allow
disabling with either --without-isl or --without-cloog.
* configure: Regenerated.
2012-09-03 Georg-Johann Lay <avr@gjlay.de>
* configure.ac (noconfigdirs,target=avr): Add target-libquadmath.
* configure: Regenerate.
2012-09-29 15:35:53 +00:00
0dab2e31e5
Sync config with GCC
...
2012-09-03 Richard Guenther <rguenther@suse.de>
PR bootstrap/54138
* config/cloog.m4: Adjust for toplevel reorg.
* config/isl.m4: Adjust.
2012-09-29 15:22:16 +00:00
e5d5f5ed43
* powerpc.cc (Target_powerpc::iplt_): New output section.
...
(Target_powerpc::iplt_section, make_iplt_section,
reloc_needs_plt_for_ifunc, make_local_ifunc_plt_entry): New functions.
(Target_powerpc::make_plt_entry): Handle ifunc syms.
Target_powerpc::plt_entry_count): Count iplt entries too.
(Output_data_plt_powerpc::Output_data_plt_powerpc): Don't create
reloc section in constructor. New params.
(Target_powerpc::make_plt_section): Create reloc section here instead.
(Output_data_plt_powerpc::add_ifunc_entry, add_local_ifunc_entry): New
functions.
(Output_data_plt_powerpc::initial_plt_entry_size_, name_): New vars.
(Output_data_glink::add_entry, find_entry): New functions to
deal with local syms.
(Glink_sym_ent): Add support for local syms.
(Output_data_glink::do_write): Handle ifunc plt entries.
(Target_powerpc::Scan::get_reference_flags): Handle more relocs.
(Target_powerpc::Scan::local, global): Handle ifunc syms.
(Target_powerpc::Relocate::relocate): Likewise.
(Target_powerpc::do_dynsym_value): Use glink stub, not plt entry.
2012-09-29 10:29:05 +00:00
45814d4572
gdb/testsuite/
...
* gdb.trace/mi-tracepoint-changed.exp: New.
* gdb.mi/mi-breakpoint-changed.exp: New.
* gdb.mi/pending.c, gdb.mi/pendshr1.c: New
* gdb.mi/pendshr2.c: New.
2012-09-29 00:03:56 +00:00
2d8066705f
*** empty log message ***
2012-09-29 00:00:05 +00:00
f49004d3f0
daily update
2012-09-29 00:00:04 +00:00
f712f01fdf
2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
...
Edjunior Machado <emachado@linux.vnet.ibm.com>
PR gdb/13989
* solib.c (solib_find): Prevent GDB from loading native libraries when
debugging a cross-target corefile.
2012-09-28 20:20:08 +00:00
39181896f1
2012-09-28 selven <pcthegreat@gmail.com>
...
Make definition match declaration.
* regcache.c (regcache_register_status): Change return type to
enum register_status.
2012-09-28 12:04:28 +00:00
1415a2a767
Don't abort() when disassembling bad moxie instructions.
2012-09-28 03:53:39 +00:00
4c2786ba1e
gdb/
...
* mi/mi-main.c (mi_cmd_data_write_memory): Call
write_memory_with_notification instead of write_memory.
(mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
instead of target_write_memory.
gdb/testsuite/
* gdb.mi/pr11022.exp: New.
* gdb.mi/pr11022.c: New. Copied from gdb.base/.
2012-09-28 00:39:18 +00:00
1ae0c35e7e
gdb/
...
* mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
when the length of content is not an even number.
2012-09-28 00:25:24 +00:00
9782f08bbd
daily update
2012-09-28 00:00:04 +00:00
8b1a6dc45d
*** empty log message ***
2012-09-28 00:00:02 +00:00
7977e5d2a6
Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
...
* cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
gdb/testsuite
* gdb.cp/derivation.exp: Add regression test.
* gdb.cp/derivation.cc (class V_base, class V_inter, class
V_derived): New.
(vderived): New global.
2012-09-27 16:04:23 +00:00
807160da3c
sol-thread.c: Remove commented-out code.
...
gdb/ChangeLog:
* sol-thread.c (sol_thread_fetch_registers)
(sol_thread_store_registers): Delete commented out code.
2012-09-27 12:53:57 +00:00
43c75337b6
New unit sparc-sol-thread.c extracted from sol-thread.c
...
Moving some sparc-specific routines out of sol-thread.c into their
own (new) file.
gdb/ChangeLog:
* sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
Move these functions to sparc-sol-thread.c.
* sparc-sol-thread.c: New file.
* configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
configurations.
* configure: Regenerate.
2012-09-27 12:53:44 +00:00
d292a9723d
sol-thread.c: Remove #if 0-ed code.
...
gdb/ChangeLog:
* sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
Remove commented-out code.
2012-09-27 12:53:13 +00:00
8c3da00317
sol-thread.c: conditionalize some sparc-specific libthread_db functions.
...
gdb/ChangeLog:
* sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
Enable this code for sparc hosts only.
2012-09-27 12:52:53 +00:00
f00482b603
Add procfs_find_LDT_entry declaration (procfs.h).
...
Add a declaration for procfs_find_LDT_entry in order to prevent
a compiler warning about this function missing one. This also
helps making sure that declaration and definition remain consistent.
gdb/ChangeLog:
* procfs.h (procfs_find_LDT_entry): Add declaration.
* sol-thread.c (ps_lgetLDT): Delete local declaration of
function procfs_find_LDT_entry.
2012-09-27 12:52:10 +00:00
337c776f02
Make procfs.c:proc_get_LDT_entry static
...
This function is not used outside of procfs.c.
gdb/ChangeLog:
* procfs.c (proc_get_LDT_entry): Make static.
2012-09-27 12:51:57 +00:00
1a04d88fbc
Fix declaration of proc_find_memory_regions
...
This function is used as a target_ops callback. The function
implemention was recently changed, but the declaration wasn't
updated accordingly.
This fixes a build failure on Solaris.
gdb/ChangeLog:
* procfs.c (proc_find_memory_regions): Fix declaration.
2012-09-27 12:51:40 +00:00
bad43aa52e
* amd64-tdep.c (amd64_return_value): Revert previous change
...
that used TYPE_LENGTH directly.
* bfin-tdep.c (bfin_extract_return_value): Likewise.
(bfin_store_return_value): Likewise.
* cris-tdep.c (cris_store_return_value): Likewise.
(cris_extract_return_value): Likewise.
* h8300-tdep.c (h8300_extract_return_value): Likewise.
* hppa-tdep.c (hppa64_return_value): Likewise.
* lm32-tdep.c (lm32_store_return_value): Likewise.
* microblaze-tdep.c (microblaze_store_return_value): Likewise.
* spu-tdep.c (spu_value_from_register): Likewise.
* vax-tdep.c (vax_return_value): Likewise.
2012-09-27 10:40:01 +00:00
63375b7438
* gdbtypes.c (lookup_array_range_type): Expand parameters
...
LOW_BOUND and HIGH_BOUND to LONGEST.
(lookup_string_range_type): Likewise.
* gdbtypes.h (lookup_array_range_type): Likewise.
(lookup_string_range_type): Likewise.
* valops.c (value_cstring): Expand parameter LEN to ssize_t.
Expand HIGHBOUND to ssize_t.
(value_string): Likewise.
* value.h (value_cstring): Expand parameter LEN to ssize_t.
(value_string): Likewise.
2012-09-27 08:57:16 +00:00
ce14842f78
daily update
2012-09-27 00:00:04 +00:00
8b627ae9fa
*** empty log message ***
2012-09-27 00:00:02 +00:00
19ca11c580
gdb/
...
PR breakpoints/13898
* breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
* mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
per breakpoint type.
2012-09-26 23:53:53 +00:00
9210735600
* procfs.c: Add gdb_bfd header.
...
* rs6000-nat.c: Likewise.
* solib-pa64.c: Likewise.
* spu-linux-nat.c: Likewise.
* windows-nat.c: Likewise.
2012-09-26 21:23:11 +00:00
9742094a45
* f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
2012-09-26 19:58:18 +00:00
0971de02d5
* dwarf2read.c (mark_common_block_symbol_computed): New function.
...
(read_common_block): Handle child DIEs with
DW_AT_data_member_location.
(new_symbol_full): Add special case for common blocks.
gdb/testsuite
* gdb.dwarf2/dw2-common-block.S: New file.
* gdb.dwarf2/dw2-common-block.exp: New file.
2012-09-26 19:50:13 +00:00
4357ac6c6f
2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
...
Tom Tromey <tromey@redhat.com>
* dwarf2read.c (read_common_block): Rewrite.
(new_symbol_full): Handle DW_TAG_common_block.
* f-lang.c (head_common_list, find_common_for_function):
Remove.
* f-lang.h (struct common_entry, struct saved_f77_common,
SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
BLANK_COMMON_NAME_LOCAL): Remove.
(struct common_block): New.
* f-valprint.c (list_all_visible_commons): Remove.
(info_common_command_for_block): New function.
(info_common_command): Use it.
* stack.c (iterate_over_block_locals): Special case for
COMMON_BLOCK_DOMAIN.
* symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
constant.
(struct general_symbol_info) <value.common_block>: New field.
(SYMBOL_VALUE_COMMON_BLOCK): New define.
gdb/testsuite
2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.fortran/common-block.exp: New file.
* gdb.fortran/common-block.f90: New file.
2012-09-26 19:38:32 +00:00
965f07a88d
2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
...
Tom Tromey <tromey@redhat.com>
* f-lang.c (allocate_saved_bf_node,
allocate_saved_function_node, allocate_saved_f77_common_node,
allocate_common_entry_node, tail_common_list, current_common,
saved_bf_list, saved_bf_list_end, current_head_bf_list,
tmp_bf_ptr, add_common_block, add_common_entry,
find_first_common_named, patch_common_entries,
patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
global_remote_debug, get_bf_for_fcn, saved_function_list,
saved_function_list_end, clear_function_list, struct saved_fcn,
struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
SAVED_BF, SAVED_BF_PTR): Remove.
* f-lang.h (tail_common_list, current_common,
UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
real_main_c_value): Remove.
* f-valprint.c (there_is_a_visible_common_named): Remove.
2012-09-26 19:05:09 +00:00
6f380991ba
http://sourceware.org/ml/gdb-patches/2012-09/msg00403.html
...
gdb/ChangeLog
* breakpoint.c (update_global_location_list): Ignore previous
duplicate status of a breakpoint when starting a new scan for
duplicate breakpoints.
gdb/testsuite/ChangeLog
* gdb.base/duplicate-bp.c: New file.
* gdb.base/duplicate-bp.exp: New file.
2012-09-26 16:36:00 +00:00
8b3d5494ef
Adding PR number tp ChangeLog
2012-09-26 14:15:53 +00:00
2536b51cfc
Fix changelog format.
2012-09-26 13:45:46 +00:00
9ead7ae4a2
* arm-tdep.c (arm_skip_prologue): Extending producer check to support LLVM compiler.
2012-09-26 12:14:30 +00:00
8f8a23a2c3
* amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
...
* bfin-tdep.c (bfin_extract_return_value): Likewise.
(bfin_store_return_value): Likewise.
* cris-tdep.c (cris_store_return_value): Likewise.
(cris_extract_return_value): Likewise.
* h8300-tdep.c (h8300_extract_return_value): Likewise.
* hppa-tdep.c (hppa64_return_value): Likewise.
* lm32-tdep.c (lm32_store_return_value): Likewise.
* microblaze-tdep.c (microblaze_store_return_value): Likewise.
* spu-tdep.c (spu_value_from_register): Likewise.
* vax-tdep.c (vax_return_value): Likewise.
2012-09-26 07:52:48 +00:00
8ae551cf47
gdb/testsuite:
...
* gdb.mi/mi2-cli.exp: Avoid line number in test summary.
Revert:
2012-09-21 Yao Qi <yao@codesourcery.com>
* gdb.mi/mi2-cli.exp: Remove redundant '\'.
2012-09-26 06:53:46 +00:00
d701958995
gdb/ChangeLog:
...
* breakpoint.c (invalidate_bp_value_on_memory_change): Expand
parameter LEN to ssize_t.
gdb/doc/ChangeLog:
observer.texi (memory_changed): Expand parameter LEN to ssize_t.
2012-09-26 02:06:55 +00:00
5e5d3f22e4
*** empty log message ***
2012-09-26 00:00:33 +00:00
60958081ea
daily update
2012-09-26 00:00:04 +00:00
160a30bb92
Add missing Cpu flags in bd and bt cores
...
gas/testsuite/
2012-09-25 Saravanan Ekanathan <saravanan.ekanathan@amd.com>
* gas/i386/arch-10-bdver1.d: New file to test bdver1 core.
* gas/i386/x86-64-arch-2-bdver1.d: Likewise.
* gas/i386/i386.exp: Run bdver1 testcases.
* gas/i386/arch-10-bdver2.d: Updated -march flags.
* gas/i386/arch-10-btver1.d: Likewise.
* gas/i386/arch-10-btver2.d: Likewise.
* gas/i386/x86-64-arch-2-bdver2.d: Likewise.
* gas/i386/x86-64-arch-2-btver1.d: Likewise.
* gas/i386/x86-64-arch-2-btver2.d: Likewise.
opcodes/
2012-09-25 Saravanan Ekanathan <saravanan.ekanathan@amd.com>
* gas/i386/arch-10-bdver1.d: New file to test bdver1 core.
* gas/i386/x86-64-arch-2-bdver1.d: Likewise.
* gas/i386/i386.exp: Run bdver1 testcases.
* gas/i386/arch-10-bdver2.d: Updated -march flags.
* gas/i386/arch-10-btver1.d: Likewise.
* gas/i386/arch-10-btver2.d: Likewise.
* gas/i386/x86-64-arch-2-bdver2.d: Likewise.
* gas/i386/x86-64-arch-2-btver1.d: Likewise.
* gas/i386/x86-64-arch-2-btver2.d: Likewise.
2012-09-25 13:12:34 +00:00