From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16071 invoked by alias); 30 Nov 2009 13:59:01 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 16011 invoked by uid 9674); 30 Nov 2009 13:59:00 -0000 Date: Mon, 30 Nov 2009 13:59:00 -0000 Message-ID: <20091130135900.15996.qmail@sourceware.org> From: jkratoch@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] master: Merge remote branch 'gdb/master' X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 22093269c47f7ead010e08dc64f1a6f5e8050107 X-Git-Newrev: 11509856353904812db40b3b79c006eb1cf9a96e X-SW-Source: 2009-q4/txt/msg00089.txt.bz2 List-Id: The branch, master has been updated via 11509856353904812db40b3b79c006eb1cf9a96e (commit) via a238042dde756b1fb3b48d9e3c34ce55abd17aed (commit) via 2a0ec0ef8651f86bf287cae14d8c54479e66712a (commit) via 2bf340a2b512ce113adfff5896bd1038d5ea3010 (commit) via 4e426a44169aa4bdeb083df41b2c796aa4983d1a (commit) via ed72348da877003a79bfa638c04afed888ce045e (commit) via 68f6d79556b69b7fa29d45def7e1c0698d15b0d8 (commit) via db503edb0afb52d8968e311c899584c360310195 (commit) via 79f1ed6698822a05df34c50f17b6f5a005d36814 (commit) via 283d3048b8104c73aa26c9043f9060e76b4ff76a (commit) via eca44a2f60590f2f3b4f260bdbda3f8a33c63445 (commit) via d6dcd8053a4e62bdaf8a61a09f32e121381a6f9e (commit) via c00272d0efed928c7d50cda09807ac3950398221 (commit) via 4246390fbd284b2e517ed4763f9d45d72c1a0f06 (commit) via cfc9023d2133cce960a6d681bf7723ae8038e2b7 (commit) via 42e4390712b62485ea24731a206383262afa2d6b (commit) via db68a0fa32ddaffadeeb85f95c79946cb7fd377d (commit) via 5e4c906eb6cce993924868d595dc00c33995ad9d (commit) via 9cc1d8196b09ecdc06dba8d9789f8444ce7e11cc (commit) via 1563e18c9a4f8722d29859d93472e8ef0ef027ec (commit) via 46d5c6c7c1e84e848900c48bcefeae63d1069918 (commit) via 8cde78c90e6a3e6414fe6f1d2d571ee31c84323c (commit) via a550e1ac51b0b7b8ef007f1b91c832e42f4fe653 (commit) via c33426511d186177d3e2560a34ef22ae6c661e55 (commit) via da31dd735d1717c9dd27f624b1eb6c4d520172ad (commit) via d4f0e7b2b5be782c12064e999e134803d20f5f17 (commit) via cf374bc0a80aa48c596cfdd4195aa9f16a2ab494 (commit) via f761eed640331f50f36d4abf7fce2d9db7a6a73f (commit) via a27fecec8210aa17ba10d1ac88c095557d4ca747 (commit) via d5365e849582d34d45cc8b1e66dde6c8ff73013f (commit) via 3ab54415dd0f60d361f17b6496a679f358628560 (commit) via b7311588e483130ae4294d614ba4f89125d9986b (commit) via 1acf3d3f05f0ec7d3d387e7044a4f9ba7fcf5c23 (commit) via cf82aa90a05326869c819880c2dd11f80c70223a (commit) from 22093269c47f7ead010e08dc64f1a6f5e8050107 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 11509856353904812db40b3b79c006eb1cf9a96e Merge: 22093269c47f7ead010e08dc64f1a6f5e8050107 a238042dde756b1fb3b48d9e3c34ce55abd17aed Author: Jan Kratochvil Date: Mon Nov 30 14:58:43 2009 +0100 Merge remote branch 'gdb/master' commit a238042dde756b1fb3b48d9e3c34ce55abd17aed Author: gdbadmin Date: Mon Nov 30 00:00:33 2009 +0000 *** empty log message *** commit 2a0ec0ef8651f86bf287cae14d8c54479e66712a Author: Alan Modra Date: Sun Nov 29 23:00:04 2009 +0000 daily update commit 2bf340a2b512ce113adfff5896bd1038d5ea3010 Author: gdbadmin Date: Sun Nov 29 00:00:33 2009 +0000 *** empty log message *** commit 4e426a44169aa4bdeb083df41b2c796aa4983d1a Author: Alan Modra Date: Sat Nov 28 23:00:05 2009 +0000 daily update commit ed72348da877003a79bfa638c04afed888ce045e Author: Vladimir Prus Date: Sat Nov 28 17:00:53 2009 +0000 * target.c (target_terminal_inferior): Use target_can_async_p, not target_is_async_p. commit 68f6d79556b69b7fa29d45def7e1c0698d15b0d8 Author: Joseph Myers Date: Sat Nov 28 03:18:00 2009 +0000 * common.h (ELFOSABI_FENIXOS, EM_TI_C6000, EM_TI_C2000, EM_TI_C5500, EM_CUDA): Define. (EM_res140, EM_res141, EM_res142): Remove. commit db503edb0afb52d8968e311c899584c360310195 Author: gdbadmin Date: Sat Nov 28 00:00:33 2009 +0000 *** empty log message *** commit 79f1ed6698822a05df34c50f17b6f5a005d36814 Author: Alan Modra Date: Fri Nov 27 23:00:04 2009 +0000 daily update commit 283d3048b8104c73aa26c9043f9060e76b4ff76a Author: Ulrich Weigand Date: Fri Nov 27 16:11:56 2009 +0000 gdb/ * s390-nat.c (s390_can_use_hw_breakpoint): Only support breakpoints of type bp_hardware_watchpoint. gdb/testsuite/ * gdb.base/hbreak.exp: Disable for s390*-*-* targets. * gdb.base/watchpoint-hw-hit-once.exp: Likewise. * gdb.threads/watchthreads-reorder.exp: Likewise. commit eca44a2f60590f2f3b4f260bdbda3f8a33c63445 Author: Joel Brobecker Date: Fri Nov 27 15:33:47 2009 +0000 * ada-lang.c: Apply some corrections to the previous comment addition. commit d6dcd8053a4e62bdaf8a61a09f32e121381a6f9e Author: Joel Brobecker Date: Fri Nov 27 01:49:41 2009 +0000 * ada-lang.c: Update the comment explaining how to evaluate Ada expressions. commit c00272d0efed928c7d50cda09807ac3950398221 Author: H.J. Lu Date: Fri Nov 27 01:47:03 2009 +0000 2009-11-26 Per Øyvind Karlsen * plugin.c (bfd_plugin_bfd_copy_link_hash_symbol_type): Define. commit 4246390fbd284b2e517ed4763f9d45d72c1a0f06 Author: gdbadmin Date: Fri Nov 27 00:00:33 2009 +0000 *** empty log message *** commit cfc9023d2133cce960a6d681bf7723ae8038e2b7 Author: Alan Modra Date: Thu Nov 26 23:00:05 2009 +0000 daily update commit 42e4390712b62485ea24731a206383262afa2d6b Author: Pedro Alves Date: Thu Nov 26 22:18:40 2009 +0000 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT events, don't leave current_inferior pointing at null. commit db68a0fa32ddaffadeeb85f95c79946cb7fd377d Author: Pedro Alves Date: Thu Nov 26 22:16:29 2009 +0000 * win32-low.c (LOG): Delete. (OUTMSG): Output to stderr. (OUTMSG2): Conditionalize on `debug_threads' variable, instead of on compile time LOG macro. (win32_wait): Fix debug output. commit 5e4c906eb6cce993924868d595dc00c33995ad9d Author: Pedro Alves Date: Thu Nov 26 22:14:39 2009 +0000 * win32-low.c (win32_add_one_solib): If the dll name is "ntdll.dll", prepend the system directory to the dll path. commit 9cc1d8196b09ecdc06dba8d9789f8444ce7e11cc Author: gdbadmin Date: Thu Nov 26 00:00:34 2009 +0000 *** empty log message *** commit 1563e18c9a4f8722d29859d93472e8ef0ef027ec Author: DJ Delorie Date: Wed Nov 25 23:35:00 2009 +0000 merge from gcc commit 46d5c6c7c1e84e848900c48bcefeae63d1069918 Author: Alan Modra Date: Wed Nov 25 23:00:05 2009 +0000 daily update commit 8cde78c90e6a3e6414fe6f1d2d571ee31c84323c Author: Ben Elliston Date: Wed Nov 25 22:41:09 2009 +0000 * configure.ac (AC_CHECK_FUNCS): Sort into alphabetical order. * configure: Regenerate. commit a550e1ac51b0b7b8ef007f1b91c832e42f4fe653 Author: Daniel Jacobowitz Date: Wed Nov 25 20:43:28 2009 +0000 PR gdb/8704 * breakpoint.c (find_condition_and_thread): Correct task error message. * c-exp.y (yylex): Stop before "thread N", "task N", or abbreviations of those. doc/ * gdb.texinfo (Thread-Specific Breakpoints): Thread specifiers are allowed after the breakpoint condition. testsuite/ * gdb.base/condbreak.exp: Test combinations of "break *EXP", "if", and "thread". Correct matching in the previous test. commit c33426511d186177d3e2560a34ef22ae6c661e55 Author: Daniel Jacobowitz Date: Wed Nov 25 15:31:53 2009 +0000 * gdb.cp/extern-c.cc, gdb.cp/extern-c.exp: New test. commit da31dd735d1717c9dd27f624b1eb6c4d520172ad Author: spop Date: Wed Nov 25 15:15:30 2009 +0000 2009-11-17 Quentin Neill Sebastian Pop gas/testsuite/ * gas/i386/x86-64-fma4.d: Add new patterns. * gas/i386/x86-64-fma4.s: Same. * gas/i386/x86-64-xop.d: Adjusted. opcodes/ * i386-dis.c (get_vex_imm8): Increase bytes_before_imm when decoding the second source operand from the immediate byte. (OP_EX_VexW): Pass an extra integer to identify the second and third source arguments. commit d4f0e7b2b5be782c12064e999e134803d20f5f17 Author: Ben Elliston Date: Wed Nov 25 04:54:32 2009 +0000 * functions.texi: Rebuild. commit cf374bc0a80aa48c596cfdd4195aa9f16a2ab494 Author: Ben Elliston Date: Wed Nov 25 04:35:01 2009 +0000 * README: Mention changes to Makefile.in and functions.texi. * gather-docs: Mention 'make stamp-functions' in the header. commit f761eed640331f50f36d4abf7fce2d9db7a6a73f Author: gdbadmin Date: Wed Nov 25 00:00:03 2009 +0000 *** empty log message *** commit a27fecec8210aa17ba10d1ac88c095557d4ca747 Author: Alan Modra Date: Tue Nov 24 23:00:04 2009 +0000 daily update commit d5365e849582d34d45cc8b1e66dde6c8ff73013f Author: Joel Brobecker Date: Tue Nov 24 22:59:52 2009 +0000 * acinclude.m4: Include ../config/zlib.m4. * configure.ac: Use AM_ZLIB to check for zlib support. * configure: Regenerate. commit 3ab54415dd0f60d361f17b6496a679f358628560 Author: Joel Brobecker Date: Tue Nov 24 22:58:05 2009 +0000 * common/aclocal.m4: Add include of ../../config/zlib.m4. * common/common.m4: Use AM_ZLIB to check for zlib support. * ppc/configure.ac: Likewise. * arm/configure, avr/configure, common/configure, cr16/configure, cris/configure, d10v/configure, erc32/configure, frv/configure, h8300/configure, iq2000/configure, lm32/configure, m32c/configure, m32r/configure, m68hc11/configure, mcore/configure, microblaze/configure, mips/configure, mn10300/configure, moxie/configure, ppc/configure, sh/configure, sh64/configure, v850/configure: Regenerate. commit b7311588e483130ae4294d614ba4f89125d9986b Author: Joel Brobecker Date: Tue Nov 24 22:47:19 2009 +0000 * acinclude.m4: Add include of ../config/zlib.m4. * configure.in: AM_ZLIB to check for zlib support. * configure: Regenerate. commit 1acf3d3f05f0ec7d3d387e7044a4f9ba7fcf5c23 Author: Joel Brobecker Date: Tue Nov 24 22:35:29 2009 +0000 * zlib.m4: New file. commit cf82aa90a05326869c819880c2dd11f80c70223a Author: Joel Brobecker Date: Tue Nov 24 21:37:52 2009 +0000 * breakpoint.c (expand_line_sal_maybe): Adjust adjust the SAL past the function prologue in the case where we were given only one SAL. ----------------------------------------------------------------------- Summary of changes: bfd/ChangeLog | 14 +- bfd/acinclude.m4 | 2 + bfd/configure | 49 +- bfd/configure.in | 2 +- bfd/plugin.c | 1 + bfd/version.h | 2 +- config/ChangeLog | 4 + config/zlib.m4 | 18 + gdb/ChangeLog | 39 + gdb/acinclude.m4 | 2 + gdb/ada-lang.c | 106 +- gdb/breakpoint.c | 7 +- gdb/c-exp.y | 18 + gdb/configure | 21 +- gdb/configure.ac | 2 +- gdb/doc/ChangeLog | 7 + gdb/doc/gdb.texinfo | 4 +- gdb/gdbserver/ChangeLog | 18 + gdb/gdbserver/win32-low.c | 38 +- gdb/s390-nat.c | 2 +- gdb/target.c | 6 +- gdb/testsuite/ChangeLog | 17 + gdb/testsuite/gdb.base/condbreak.exp | 31 +- gdb/testsuite/gdb.base/hbreak.exp | 2 +- gdb/testsuite/gdb.base/watchpoint-hw-hit-once.exp | 2 +- gdb/testsuite/gdb.cp/extern-c.cc | 38 + gdb/testsuite/gdb.cp/extern-c.exp | 47 + gdb/testsuite/gdb.threads/watchthreads-reorder.exp | 2 +- gdb/version.in | 2 +- include/elf/ChangeLog | 6 + include/elf/common.h | 8 +- libiberty/ChangeLog | 15 + libiberty/README | 10 +- libiberty/configure | 25 +- libiberty/configure.ac | 25 +- libiberty/functions.texi | 25 +- libiberty/gather-docs | 2 +- opcodes/ChangeLog | 8 + opcodes/i386-dis.c | 33 +- sim/ChangeLog | 13 + sim/arm/configure | 26 +- sim/avr/configure | 26 +- sim/common/aclocal.m4 | 1 + sim/common/common.m4 | 2 +- sim/common/configure | 21 +- sim/cr16/configure | 26 +- sim/cris/configure | 26 +- sim/d10v/configure | 26 +- sim/erc32/configure | 26 +- sim/frv/configure | 26 +- sim/h8300/configure | 26 +- sim/iq2000/configure | 26 +- sim/lm32/configure | 26 +- sim/m32c/configure | 26 +- sim/m32r/configure | 26 +- sim/m68hc11/configure | 26 +- sim/mcore/configure | 26 +- sim/microblaze/configure | 3748 +++++++------------- sim/mips/configure | 26 +- sim/mn10300/configure | 26 +- sim/moxie/configure | 36 +- sim/ppc/configure | 21 +- sim/ppc/configure.ac | 2 +- sim/sh/configure | 26 +- sim/sh64/configure | 26 +- sim/v850/configure | 26 +- 66 files changed, 2391 insertions(+), 2607 deletions(-) create mode 100644 config/zlib.m4 create mode 100644 gdb/testsuite/gdb.cp/extern-c.cc create mode 100644 gdb/testsuite/gdb.cp/extern-c.exp First 500 lines of diff: diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 2f7a85d..ce9ce06 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,13 @@ +2009-11-26 Per Øyvind Karlsen + + * plugin.c (bfd_plugin_bfd_copy_link_hash_symbol_type): Define. + +2009-11-24 Joel Brobecker + + * acinclude.m4: Add include of ../config/zlib.m4. + * configure.in: AM_ZLIB to check for zlib support. + * configure: Regenerate. + 2009-11-23 Paul Brook * libbfd-in.h (_bfd_generic_copy_link_hash_symbol_type): Add @@ -7,9 +17,9 @@ * elflink.c (_bfd_elf_copy_link_hash_symbol_type): New function. * targets.c (BFD_JUMP_TABLE_LINK, struct bfd_target): Add _copy_link_hash_symbol_type. - * bfd/coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Add + * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Add _bfd_generic_copy_link_hash_symbol_type. - * bfd/coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add + * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add _bfd_generic_copy_link_hash_symbol_type. * aout-adobe.c (aout_32_bfd_copy_link_hash_symbol_type): Define. * aout-target.h (MY_bfd_copy_link_hash_symbol_type): Define. diff --git a/bfd/acinclude.m4 b/bfd/acinclude.m4 index aaa147e..d9813bd 100644 --- a/bfd/acinclude.m4 +++ b/bfd/acinclude.m4 @@ -1,3 +1,5 @@ +sinclude([../config/zlib.m4]) + dnl See whether we need to use fopen-bin.h rather than fopen-same.h. AC_DEFUN([BFD_BINARY_FOPEN], [AC_REQUIRE([AC_CANONICAL_TARGET]) diff --git a/bfd/configure b/bfd/configure index bef4a39..d29e79b 100755 --- a/bfd/configure +++ b/bfd/configure @@ -934,6 +934,7 @@ enable_build_warnings enable_maintainer_mode enable_install_libbfd enable_nls +with_zlib ' ac_precious_vars='build_alias host_alias @@ -1595,6 +1596,7 @@ Optional Packages: --with-pkgversion=PKG Use PKG in the version string in place of "GNU Binutils" --with-bugurl=URL Direct users to URL to report a bug + --with-zlib include zlib support (auto/yes/no) default=auto Some influential environment variables: CC C compiler command @@ -5982,13 +5984,13 @@ if test "${lt_cv_nm_interface+set}" = set; then : else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext - (eval echo "\"\$as_me:5985: $ac_compile\"" >&5) + (eval echo "\"\$as_me:5987: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 - (eval echo "\"\$as_me:5988: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval echo "\"\$as_me:5990: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 - (eval echo "\"\$as_me:5991: output\"" >&5) + (eval echo "\"\$as_me:5993: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" @@ -7193,7 +7195,7 @@ ia64-*-hpux*) ;; *-*-irix6*) # Find out which ABI we are using. - echo '#line 7196 "configure"' > conftest.$ac_ext + echo '#line 7198 "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -8424,11 +8426,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8427: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8429: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:8431: \$? = $ac_status" >&5 + echo "$as_me:8433: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -8763,11 +8765,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8766: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8768: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:8770: \$? = $ac_status" >&5 + echo "$as_me:8772: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -8868,11 +8870,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8871: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8873: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:8875: \$? = $ac_status" >&5 + echo "$as_me:8877: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -8923,11 +8925,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8926: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8928: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:8930: \$? = $ac_status" >&5 + echo "$as_me:8932: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -11305,7 +11307,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11308 "configure" +#line 11310 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11401,7 +11403,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11404 "configure" +#line 11406 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -13588,7 +13590,19 @@ _ACEOF # Link in zlib if we can. This allows us to read compressed debug sections. # This is used only by compress.c. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5 + + # See if the user specified whether he wants zlib support or not. + +# Check whether --with-zlib was given. +if test "${with_zlib+set}" = set; then : + withval=$with_zlib; +else + with_zlib=auto +fi + + + if test "$with_zlib" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5 $as_echo_n "checking for library containing zlibVersion... " >&6; } if test "${ac_cv_search_zlibVersion+set}" = set; then : $as_echo_n "(cached) " >&6 @@ -13655,6 +13669,11 @@ done fi + if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then + as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5 + fi + fi + # If we are configured native, pick a core file support file. COREFILE= diff --git a/bfd/configure.in b/bfd/configure.in index f96128e..d2d12bd 100644 --- a/bfd/configure.in +++ b/bfd/configure.in @@ -206,7 +206,7 @@ AC_CHECK_DECLS(vsnprintf) # Link in zlib if we can. This allows us to read compressed debug sections. # This is used only by compress.c. -AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)]) +AM_ZLIB # If we are configured native, pick a core file support file. COREFILE= diff --git a/bfd/plugin.c b/bfd/plugin.c index 2874fa6..8cdc7ae 100644 --- a/bfd/plugin.c +++ b/bfd/plugin.c @@ -68,6 +68,7 @@ #define bfd_plugin_bfd_discard_group bfd_generic_discard_group #define bfd_plugin_section_already_linked _bfd_generic_section_already_linked #define bfd_plugin_bfd_define_common_symbol bfd_generic_define_common_symbol +#define bfd_plugin_bfd_copy_link_hash_symbol_type _bfd_generic_copy_link_hash_symbol_type static enum ld_plugin_status message (int level ATTRIBUTE_UNUSED, diff --git a/bfd/version.h b/bfd/version.h index 60d9c6e..7acd2db 100644 --- a/bfd/version.h +++ b/bfd/version.h @@ -1,4 +1,4 @@ -#define BFD_VERSION_DATE 20091123 +#define BFD_VERSION_DATE 20091130 #define BFD_VERSION @bfd_version@ #define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@ #define REPORT_BUGS_TO @report_bugs_to@ diff --git a/config/ChangeLog b/config/ChangeLog index 7b6ded0..aa716ea 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,7 @@ +2009-11-24 Joel Brobecker + + * zlib.m4: New file. + 2009-11-09 Jan Kratochvil * largefile.m4 (ACX_LARGEFILE): Call AC_PLUGINS. diff --git a/config/zlib.m4 b/config/zlib.m4 new file mode 100644 index 0000000..b017499 --- /dev/null +++ b/config/zlib.m4 @@ -0,0 +1,18 @@ +dnl A function to check for zlib availability. zlib is used by default +dnl unless the user configured with --disable-nls. + +AC_DEFUN([AM_ZLIB], +[ + # See if the user specified whether he wants zlib support or not. + AC_ARG_WITH(zlib, + [ --with-zlib include zlib support (auto/yes/no) [default=auto]], + [], [with_zlib=auto]) + + if test "$with_zlib" != "no"; then + AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)]) + if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then + AC_MSG_ERROR([zlib (libz) library was explicitly requested but not found]) + fi + fi +]) + diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 71a5bd4..b6c81d1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,42 @@ +2009-11-28 Vladimir Prus + + * target.c (target_terminal_inferior): Use target_can_async_p, not + target_is_async_p. + +2009-11-27 Ulrich Weigand + + * s390-nat.c (s390_can_use_hw_breakpoint): Only support breakpoints + of type bp_hardware_watchpoint. + +2009-11-27 Joel Brobecker + + * ada-lang.c: Apply some corrections to the previous comment addition. + +2009-11-26 Joel Brobecker + + * ada-lang.c: Update the comment explaining how to evaluate + Ada expressions. + +2009-11-24 Daniel Jacobowitz + + PR gdb/8704 + + * breakpoint.c (find_condition_and_thread): Correct task error message. + * c-exp.y (yylex): Stop before "thread N", "task N", or abbreviations + of those. + +2009-11-24 Joel Brobecker + + * acinclude.m4: Include ../config/zlib.m4. + * configure.ac: Use AM_ZLIB to check for zlib support. + * configure: Regenerate. + +2009-11-24 Joel Brobecker + + * breakpoint.c (expand_line_sal_maybe): Adjust adjust the SAL + past the function prologue in the case where we were given only + one SAL. + 2009-11-24 Pedro Alves * record.c (init_record_ops, init_record_core_ops): Actually diff --git a/gdb/acinclude.m4 b/gdb/acinclude.m4 index c32e1ea..af4639b 100644 --- a/gdb/acinclude.m4 +++ b/gdb/acinclude.m4 @@ -32,6 +32,8 @@ sinclude([../config/lcmessage.m4]) dnl For AM_LANGINFO_CODESET. sinclude([../config/codeset.m4]) +sinclude([../config/zlib.m4]) + # # Sometimes the native compiler is a bogus stub for gcc or /usr/ucb/cc. This # makes configure think it's cross compiling. If --target wasn't used, then diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 289c596..9594d6d 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -8389,6 +8389,9 @@ ada_value_cast (struct type *type, struct value *arg2, enum noside noside) /* Evaluating Ada expressions, and printing their result. ------------------------------------------------------ + 1. Introduction: + ---------------- + We usually evaluate an Ada expression in order to print its value. We also evaluate an expression in order to print its type, which happens during the EVAL_AVOID_SIDE_EFFECTS phase of the evaluation, @@ -8417,6 +8420,9 @@ ada_value_cast (struct type *type, struct value *arg2, enum noside noside) cleaned up, this guide might become redundant with the comments inserted in the code, and we might want to remove it. + 2. ``Fixing'' an Entity, the Simple Case: + ----------------------------------------- + When evaluating Ada expressions, the tricky issue is that they may reference entities whose type contents and size are not statically known. Consider for instance a variant record: @@ -8458,34 +8464,60 @@ ada_value_cast (struct type *type, struct value *arg2, enum noside noside) such as an array of variant records, for instance. There are two possible cases: Arrays, and records. - Arrays are a little simpler to handle, because the same amount of - memory is allocated for each element of the array, even if the amount - of space used by each element changes from element to element. - Consider for instance the following array of type Rec: + 3. ``Fixing'' Arrays: + --------------------- + + The type structure in GDB describes an array in terms of its bounds, + and the type of its elements. By design, all elements in the array + have the same type and we cannot represent an array of variant elements + using the current type structure in GDB. When fixing an array, + we cannot fix the array element, as we would potentially need one + fixed type per element of the array. As a result, the best we can do + when fixing an array is to produce an array whose bounds and size + are correct (allowing us to read it from memory), but without having + touched its element type. Fixing each element will be done later, + when (if) necessary. + + Arrays are a little simpler to handle than records, because the same + amount of memory is allocated for each element of the array, even if + the amount of space actually used by each element differs from element + to element. Consider for instance the following array of type Rec: type Rec_Array is array (1 .. 2) of Rec; - The type structure in GDB describes an array in terms of its - bounds, and the type of its elements. By design, all elements - in the array have the same type. So we cannot use a fixed type - for the array elements in this case, since the fixed type depends - on the actual value of each element. - - Fortunately, what happens in practice is that each element of - the array has the same size, which is the maximum size that - might be needed in order to hold an object of the element type. - And the compiler shows it in the debugging information by wrapping - the array element inside a private PAD type. This type should not - be shown to the user, and must be "unwrap"'ed before printing. Note + The actual amount of memory occupied by each element might be different + from element to element, depending on the value of their discriminant. + But the amount of space reserved for each element in the array remains + fixed regardless. So we simply need to compute that size using + the debugging information available, from which we can then determine + the array size (we multiply the number of elements of the array by + the size of each element). + + The simplest case is when we have an array of a constrained element + type. For instance, consider the following type declarations: + + type Bounded_String (Max_Size : Integer) is + Length : Integer; + Buffer : String (1 .. Max_Size); + end record; + type Bounded_String_Array is array (1 ..2) of Bounded_String (80); + + In this case, the compiler describes the array as an array of + variable-size elements (identified by its XVS suffix) for which + the size can be read in the parallel XVZ variable. + + In the case of an array of an unconstrained element type, the compiler + wraps the array element inside a private PAD type. This type should not + be shown to the user, and must be "unwrap"'ed before printing. Note that we also use the adjective "aligner" in our code to designate these wrapper types. - These wrapper types should have a constant size, which is the size - of each element of the array. In the case when the size is statically - known, the PAD type will already have the right size, and the array - element type should remain unfixed. But there are cases when - this size is not statically known. For instance, assuming that - "Five" is an integer variable: + In some cases, the size allocated for each element is statically + known. In that case, the PAD type already has the correct size, + and the array element should remain unfixed. + + But there are cases when this size is not statically known. + For instance, assuming that "Five" is an integer variable: type Dynamic is array (1 .. Five) of Integer; type Wrapper (Has_Length : Boolean := False) is record @@ -8508,7 +8540,10 @@ ada_value_cast (struct type *type, struct value *arg2, enum noside noside) In that case, a copy of the PAD type with the correct size should be used for the fixed array. - However, things are slightly different in the case of dynamic + 3. ``Fixing'' record type objects: + ---------------------------------- + + Things are slightly different from arrays in the case of dynamic record types. In this case, in order to compute the associated fixed type, we need to determine the size and offset of each of its components. This, in turn, requires us to compute the fixed @@ -8524,7 +8559,7 @@ ada_value_cast (struct type *type, struct value *arg2, enum noside noside) In that case, the position of field "Length" depends on the size of field Str, which itself depends on the value of the Max_Size - discriminant. In order to fix the type of variable My_String, + discriminant. In order to fix the type of variable My_String, we need to fix the type of field Str. Therefore, fixing a variant record requires us to fix each of its components. @@ -8552,21 +8587,21 @@ ada_value_cast (struct type *type, struct value *arg2, enum noside noside) The debugger computes the position of each field based on an algorithm that uses, among other things, the actual position and size of the field - preceding it. Let's now imagine that the user is trying to print the - value of My_Container. If the type fixing was recursive, we would + preceding it. Let's now imagine that the user is trying to print + the value of My_Container. If the type fixing was recursive, we would end up computing the offset of field After based on the size of the fixed version of field First. And since in our example First has only one actual field, the size of the fixed type is actually smaller than the amount of space allocated to that field, and thus we would compute the wrong offset of field After. - Unfortunately, we need to watch out for dynamic components of variant - records (identified by the ___XVL suffix in the component name). - Even if the target type is a PAD type, the size of that type might - not be statically known. So the PAD type needs to be unwrapped and - the resulting type needs to be fixed. Otherwise, we might end up - with the wrong size for our component. This can be observed with - the following type declarations: + To make things more complicated, we need to watch out for dynamic + components of variant records (identified by the ___XVL suffix in + the component name). Even if the target type is a PAD type, the size + of that type might not be statically known. So the PAD type needs + to be unwrapped and the resulting type needs to be fixed. Otherwise, + we might end up with the wrong size for our component. This can be + observed with the following type declarations: type Octal is new Integer range 0 .. 7; type Octal_Array is array (Positive range <>) of Octal; @@ -8580,7 +8615,10 @@ ada_value_cast (struct type *type, struct value *arg2, enum noside noside) In that case, Buffer is a PAD type whose size is unset and needs to be computed by fixing the unwrapped type. - Lastly, when should the sub-elements of a type that remained unfixed + 4. When to ``Fix'' un-``Fixed'' sub-elements of an entity: + ---------------------------------------------------------- + + Lastly, when should the sub-elements of an entity that remained unfixed thus far, be actually fixed? The answer is: Only when referencing that element. For instance diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 90d9247..4340c5d 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -6340,13 +6340,14 @@ expand_line_sal_maybe (struct symtab_and_line sal) hooks/post-receive -- Repository for Project Archer.