aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-03-31Catch exception on solib_svr4_r_ldsomapSergio Durigan Junior2-6/+20
When loading a corefile that has some inaccessible memory region(s), GDB complains about it: (gdb) core /my/corefile [New LWP 28468] Cannot access memory at address 0x355fc21148 Cannot access memory at address 0x355fc21140 (gdb) However, despite not seeing the message "Core was generated by...", it is still possible to inspect the corefile using regular GDB commands. The reason for that is because read_memory_unsigned_integer throws an exception when it cannot read the memory region, but solib_svr4_r_ldsomap was not catching it. The fix is to catch the exception and act accordingly. Tested on Fedora 20 x86_64, no regressions found. gdb/ChangeLog: 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com> * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by read_memory_unsigned_integer.
2015-03-31Add missing ChangeLog entryH.J. Lu1-0/+5
2015-03-31Add missing ChangeLog entryH.J. Lu1-0/+6
2015-03-31Remove --with-target-subdir=. --disable-multilibH.J. Lu1-3/+1
zlib/configure is updated to properly handle in-tree build for host. * src-release.sh: Don't configure with --with-target-subdir=. --disable-multilib.
2015-03-31Use AM_ENABLE_MULTILIB only if with_target_subdir isn't emptyH.J. Lu2-4/+8
* configure.ac (AM_ENABLE_MULTILIB): Use only if ${with_target_subdir} isn't empty. * configure: Regenerated.
2015-03-31Replace src-release with src-release.shH.J. Lu2-1/+6
* src-release.sh (DEVO_SUPPORT): Replace src-release with src-release.sh.
2015-03-31Add --with-system-zlib in gdbH.J. Lu7-101/+39
This patch adds --with-system-zlib and removes --with-zlib in gdb. * Makefile.in (ZLIB): New. (ZLIBINC): Likewise. (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC). (CLIBS): Add $(ZLIB). * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS. Add -lz to LIBS. * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>. * top.c (print_gdb_configuration): Remove --with-zlib and --without-zlib. * config.in: Regenerated. * configure: Likewise.
2015-03-31Remove the last change on dw2-compress-1.dH.J. Lu2-5/+1
The compressed .debug_info section is bigger than the original in 32-bit.
2015-03-31Add support for Nuxi CloudABI on x86-64Ed Schouten13-0/+65
bfd/ * config.bfd (targ_defvec): Set to x86_64_elf64_cloudabi_vec for x86_64-*-cloudabi*. * configure.ac: Handle x86_64_elf64_cloudabi_vec. * configure: Regenerated. * elf64-x86-64.c (TARGET_LITTLE_SYM): Support x86_64-*-cloudabi*. (TARGET_LITTLE_NAME): Likewise. (ELF_OSABI): Likewise. (elf64_bed): Likewise. * targets.c (x86_64_elf64_cloudabi_vec): New. (_bfd_target_vector): Add x86_64_elf64_cloudabi_vec. gas/ * configure.tgt (fmt): Set to elf for *-*-cloudabi*. ld/ * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf_x86_64_cloudabi.c. (eelf_x86_64_cloudabi.c): New. * configure.tgt (targ_emul): Set to elf_x86_64_cloudabi for x86_64-*-cloudabi*. * Makefile.in: Regenerated. * emulparams/elf_x86_64_cloudabi.sh: New file.
2015-03-31dwarf.exp: Allow generating a stub .debug_line sectionPetr Machata2-1/+150
Example of use: Dwarf::assemble "foo.s" { build_id 0102030405060708 declare_labels L; cu {is_64 0 version 4 addr_size 8} { DW_TAG_compile_unit { {DW_AT_stmt_list $L DW_FORM_sec_offset} } { DW_TAG_subprogram { # We can now reference the source file. {DW_AT_decl_file 1 DW_FORM_data1} } } } lines {is_64 0 version 2 addr_size 8} L { include_dir "foo" include_dir "bar" file_name "foo.c" 1 file_name "bar.c" 1 file_name "baz.c" 2 } } Signed-off-by: Petr Machata <pmachata@redhat.com>
2015-03-31Revert the AM_ZLIB change in gasH.J. Lu6-20/+34
* configure.ac: Revert the AM_ZLIB change. * Makefile.in: Regenerated. * aclocal.m4: Likewise. * configure: Likewise.
2015-03-31Revert the AM_ZLIB change in binutilsH.J. Lu5-17/+24
* configure.ac: Revert the AM_ZLIB change. * Makefile.in: Regenerated. * aclocal.m4: Likewise. * configure: Likewise.
2015-03-31Revert the AM_ZLIB change in bfdH.J. Lu6-16/+24
* configure.ac: Revert the AM_ZLIB change. * Makefile.in: Regenerated. * aclocal.m4: Likewise. * configure: Likewise. * doc/Makefile.in: Likewise.
2015-03-31Replace --with-zlib with --with-system-zlibH.J. Lu2-14/+17
* zlib.m4 (AM_ZLIB): Replace --with-zlib with --with-system-zlib.
2015-03-31Add cpu information to the info os command on linux.Antoine Tremblay5-73/+199
This patch adds cpu information on linux based on /proc/cpuinfo as : cpus Listing of all cpus/cores on the system This patch also reorders the info os commands so that they are listed in alphabetical order. gdb/ChangeLog: * NEWS: Mention info os cpus support. * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function. (struct osdata_type): Add cpus entry, reorder the entries in alphabetical order. gdb/doc/ChangeLog: * gdb.texinfo (Operating System Auxiliary Information): Add info os cpus documentation, reorder the info os entries in alphabetical order.
2015-03-31Fix the triplet regexp to recognize triplets, not only quadrupletsMatthias Klose2-1/+8
This allows triplets where the vendor is not set. gdb/ChangeLog: 2015-03-31 Matthias Klose <doko@ubuntu.com> * compile/compile.c (compile_to_object): Allow triplets with or without vendor set.
2015-03-31Remove --with-zlib from ldH.J. Lu7-99/+20
This patch removes --with-zlib from ld. ld/ * configure.ac (AM_ZLIB): Removed. * Makefile.in: Regenerated. * config.in: Likewise. * configure: Likewise. ld/testsuite/ * ld-bootstrap/bootstrap.exp (extralibs): Add -lz.
2015-03-31Add --with-system-zlib in gasH.J. Lu11-125/+59
This patch adds --with-system-zlib and remove --with-zlib in gas. gas/ * Makefile.am (ZLIBINC): New. (AM_CFLAGS): Add $(ZLIBINC). * as.c: (show_usage): Don't check HAVE_ZLIB_H. (parse_args): Likewise. * compress-debug.c: Don't check HAVE_ZLIB_H to include <zlib.h>. (compress_init): Don't check HAVE_ZLIB_H. (compress_data): Likewise. (compress_finish): Likewise. * configure.ac (AM_ZLIB): Removed. (zlibinc): New. AC_SUBST. Add --with-system-zlib. * Makefile.in: Regenerated. * config.in: Likewise. * configure: Likewise. * doc/Makefile.in: Likewise. gas/testsuite/ * gas/i386/dw2-compress-1.d: Expect .zdebug_info.
2015-03-31Add --with-system-zlib in binutilsH.J. Lu8-106/+59
This patch adds --with-system-zlib and remove --with-zlib in binutils. * Makefile.am (ZLIB): New. (ZLIBINC): Likewise. (AM_CFLAGS): Add $(ZLIBINC). (readelf_LDADD): Add $(ZLIB). * configure.ac (AM_ZLIB): Removed. (zlibdir): New. AC_SUBST. (zlibinc): Likewise. Add --with-system-zlib. * readelf.c: Don't check HAVE_ZLIB_H to include <zlib.h>. (uncompress_section_contents): Don't check HAVE_ZLIB_H. * Makefile.in: Regenerated. * config.in: Likewise. * configure: Likewise.
2015-03-31sim: cr16/d10v: restore generated headers depMike Frysinger4-0/+12
While cleaning up stale make rules, one too many were deleted. The build system autogenerates static rules, but not generated files.
2015-03-31common: cgen-mem/cgen-ops: fix extern inline handlingMike Frysinger3-2/+9
With newer versions of gcc (5.x), the extern inline we're using with the cgen-{mem,ops} modules no longer work. Since this code really wants the gnu inline semantics, use that attribute explicitly.
2015-03-31sim: m68hc11: fix gcc-5 build error w/restrict keywordMike Frysinger3-8/+15
2015-03-31Automatic date update in version.inGDB Administrator1-1/+1
2015-03-30PR c++/18141Doug Evans2-2/+11
gdb/ChangeLog: PR c++/18141 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for klass in VAR_DOMAIN.
2015-03-30Support AARCH64_TLSLD_ADD_DTPREL_* relocations.Jing Yu3-9/+34
Also Change _TLS_MODULE_BASE_. Always let it point to the start of TLS segment. 2015-03-28 Jing Yu <jingyu@google.com> * aarch64-reloc.def: New TLSLD_ADD_DTPREL_HI12, TLSLD_ADD_DTPREL_LO12_NC. * aarch64.cc (Target_aarch64::define_tls_base_symbol): Always let _TLS_MODULE_BASE_ point to the start of tls segment. (Target_aarch64::optimize_tls_reloc): Add cases for R_AARCH64_TLSLD_ADD_DTPREL_HI12 and R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC. (Target_aarch64::Scan::local): Likewise. (Target_aarch64::Scan::global): Likewise. (Target_aarch64::Relocate::relocate): Likewise. (Target_aarch64::Relocate::relocate_tls): Likewise. And remove subtracting tls segment size from symbol value for TLSLD_*_DTPREL relocations.
2015-03-30Update config.guess and config.sub to the latest upstream versionEd Schouten3-10/+35
This version adds support for a platform I'd like to add support for, namely CloudABI.
2015-03-30Make all-bfd depend on all-zlibH.J. Lu3-0/+14
* Makefile.def (dependencies): Add all-zlib to all-bfd. * Makefile.in: Regenerated.
2015-03-30sim: arm: convert to nrunMike Frysinger4-153/+160
A lot of cpu state is stored in global variables, as is memory handling. The sim_size support needs unwinding at some point. But at least this is an improvement on the status quo.
2015-03-30sim: arm: delete NEED_UI_LOOP_HOOK handlingMike Frysinger3-20/+8
2015-03-30sim: arm: clean up misc warningsMike Frysinger7-97/+54
Also delete a few unused funcs.
2015-03-30sim: arm: use common configure optionsMike Frysinger4-2/+555
In preparation for converting to nrun, call the common functions that are needed. This doesn't produce any new warnings, and the generated code should be the same.
2015-03-30Remove three redundant wrapper functions in remote.cGary Benson2-27/+15
gdb/ChangeLog: * remote.c (remote_mourn_1): Remove function. Update all callers to use remote_mourn. (extended_remote_mourn_1): Remove function. Update all callers to use extended_remote_mourn. (extended_remote_attach_1): Remove function. Update all callers to use extended_remote_attach.
2015-03-30Properly set sh_info for .rela.plt/rel.plt sectionH.J. Lu7-10/+69
Since .rela.plt/rel.plt section may contain relocations against .got.plt section, we set sh_info for .rela.plt/rel.plt section to .got.plt section index if target has .got.plt section. bfd/ PR ld/18169 * elf-bfd.h (elf_backend_data): Add get_reloc_section. (_bfd_elf_get_reloc_section): New. * elf.c (_bfd_elf_get_reloc_section): Likewise. (assign_section_numbers): Call get_reloc_section to look up the section the relocs apply. * elfxx-target.h (elf_backend_get_reloc_section): Likewise. (elfNN_bed): Initialize get_reloc_section with elf_backend_get_reloc_section. ld/testsuite/ PR ld/18169 * ld-elf/linkinfo1a.d: Updated. * ld-elf/linkinfo1b.d: Likewise.
2015-03-30sim: arm: move COPRO settings to the makefileMike Frysinger4-29/+12
These values are the same all the time, so just list them directly in the Makefile.
2015-03-30sim: d10v: add missing sim-main.hMike Frysinger1-0/+55
2015-03-30sim: d10v: convert to nrunMike Frysinger7-130/+121
A lot of cpu state is stored in global variables, as is memory handling. The sim_size support needs unwinding at some point. But at least this is an improvement on the status quo.
2015-03-30sim: d10v: delete NEED_UI_LOOP_HOOK handlingMike Frysinger3-21/+8
This hook is used only when linked into gdb, and d10v doesn't have a gdb port anymore. Punt it.
2015-03-30sim: d10v: clean up misc warningsMike Frysinger6-285/+240
2015-03-30sim: d10v: use common configure optionsMike Frysinger6-7/+452
In preparation for converting to nrun, call the common functions that are needed. This doesn't produce any new warnings, and the generated code should be the same.
2015-03-30opcodes: d10v: fix old style prototypeMike Frysinger2-1/+5
2015-03-30sim: d10v: link in missing testsuiteMike Frysinger3-3/+16
Looks like historical restructuring in this dir lost the d10v-elf subdir and no one noticed in the meantime. Re-add it to the testsuite. There are some failures, but better some tests get run than none at all.
2015-03-30sim: cr16: convert to nrunMike Frysinger6-147/+188
A lot of cpu state is stored in global variables, as is memory handling. The sim_size support needs unwinding at some point. But at least this is an improvement on the status quo.
2015-03-30sim: cr16: delete NEED_UI_LOOP_HOOK handlingMike Frysinger3-20/+8
This hook is used only when linked into gdb, and cr16 doesn't have a gdb port anymore. Punt it.
2015-03-30sim: cr16: delete dead codeMike Frysinger2-238/+10
This code is getting in the way of porting to nrun, so just drop it. If anyone actually cares about this cpu, they can revive it.
2015-03-29sim: cr16: clean up misc warningsMike Frysinger6-488/+509
2015-03-29sim: cr16: use common configure optionsMike Frysinger6-9/+454
In preparation for converting to nrun, call the common functions that are needed. This doesn't produce any new warnings, and the generated code should be the same.
2015-03-29sim: cr16: add _start symbol to tests [BZ #12385]Mike Frysinger2-0/+7
The current cr16 testsuite sets up _START, but the linker looks for the _start symbol. Add the latter as an alias to the former.
2015-03-30Automatic date update in version.inGDB Administrator1-1/+1
2015-03-29sim: microblaze: convert to nrunMike Frysinger5-193/+176
This port already was storing its cpu state in the sim_cpu structure, so converting it over was pretty easy. It is allocating memory itself still, but we'll fix that up in the future at some point.
2015-03-29sim: mcore/microblaze: delete dead codeMike Frysinger4-115/+15
The mcore port had a few structs/defines that were never used. Similarly, the microblaze port, because it was copied from mcore, has that same dead code, and more. The watchpoint logic was never actually used. Punt it all.