From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16443 invoked by alias); 19 Mar 2012 20:15:27 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 16271 invoked by uid 9674); 19 Mar 2012 20:15:20 -0000 Date: Mon, 19 Mar 2012 20:15:00 -0000 Message-ID: <20120319201520.16256.qmail@sourceware.org> From: jkratoch@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-jankratochvil-autoload: Merge branch 'secmove-misc2-warn-safepath-debug' into secmove-misc2-warn-safepath-debug-warnlocal X-Git-Refname: refs/heads/archer-jankratochvil-autoload X-Git-Reftype: branch X-Git-Oldrev: 64ecd11610152afda6e30f9f4d20929bb0c3e225 X-Git-Newrev: fe4236cb1e811443bf11f862a1a4ad8a5da0439f X-SW-Source: 2012-q1/txt/msg00074.txt.bz2 List-Id: The branch, archer-jankratochvil-autoload has been updated via fe4236cb1e811443bf11f862a1a4ad8a5da0439f (commit) via a3613cf236596d32ba4d759f2c6833fa5a696053 (commit) via 15a5243fe71d3306376ec980a1e241f4fd54ca02 (commit) via 90ffcbdd2c68c448820d0fa1cf87e6262df832bf (commit) via f86f6c7cae6527786598132d62d07ef17c1ee9f0 (commit) via b14ef7c5b2649c4f4c3bb1c68321aae28390dffb (commit) via 824b64104edaa089071b8205dcf1575eedc58e73 (commit) via 24d203495b3f6538bee59c3eb3fd63b708262c63 (commit) via 3bc5163e02e63d2a932df1fd068a6281926c5feb (commit) via 22d5ad2ba53e3860f819c12091c560665fd63186 (commit) via 0d05975cee149b03f975b4e6081d3ea2360f98b3 (commit) via 9da9d078d284391547e446d1e95d4a616ed954ff (commit) via 4faff13661d7a52e1701abba8e826eb9606f62b8 (commit) via 2835eadf9c1c04c0612aa4957392819477f1bca3 (commit) via c9cff93189fa413d52c148cbdc0ac14688f0fdf6 (commit) via ab600614d553cd616fdbc3ebc77e43f30dd301e2 (commit) via 23f3d45fa5cccdb7bb331f23484555e662a2ae4a (commit) via 03ae95e867a4c94f0bdf7a2358cedc39a19a1fdb (commit) via 35d2e24b5a91d04403d10514e896f68df8b40dea (commit) via dff5a25c1f0ade13d791de1864948696381debeb (commit) via 2670804f2294d8162c2ccd92bb64a9bc49fef99b (commit) via bc876d3117a40a012734653d9c058e410e8ee246 (commit) via 6c837efc3afd7a12a8f494363ed9cafd7dd9c132 (commit) via 7304a03f7079c1836cac33c2acd9a5972cf96b8e (commit) via cbb969a6e8088260e66114ee74a8b4901b33c9c6 (commit) via c25a770c8d4a1337257048a72cd6bef1779c7114 (commit) via 7cfcf6754084bdbf29f599d13d675ae3b74a371d (commit) via fd41f12fe85a1b677b8c83bee9b2df20c792b615 (commit) via f0a040c143cbcec1244eebc0970b32013fb98a8a (commit) from 64ecd11610152afda6e30f9f4d20929bb0c3e225 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit fe4236cb1e811443bf11f862a1a4ad8a5da0439f Merge: 824b641 a3613cf Author: Jan Kratochvil Date: Mon Mar 19 21:14:39 2012 +0100 Merge branch 'secmove-misc2-warn-safepath-debug' into secmove-misc2-warn-safepath-debug-warnlocal commit a3613cf236596d32ba4d759f2c6833fa5a696053 Merge: 24d2034 15a5243 Author: Jan Kratochvil Date: Mon Mar 19 21:14:39 2012 +0100 Merge branch 'secmove-misc2-warn-safepath' into secmove-misc2-warn-safepath-debug commit 15a5243fe71d3306376ec980a1e241f4fd54ca02 Merge: 3bc5163 90ffcbd Author: Jan Kratochvil Date: Mon Mar 19 21:14:38 2012 +0100 Merge branch 'secmove-misc2-warn' into secmove-misc2-warn-safepath commit 90ffcbdd2c68c448820d0fa1cf87e6262df832bf Merge: 22d5ad2b f86f6c7 Author: Jan Kratochvil Date: Mon Mar 19 21:14:38 2012 +0100 Merge branch 'secmove-misc2' into secmove-misc2-warn commit f86f6c7cae6527786598132d62d07ef17c1ee9f0 Merge: 0d05975 b14ef7c Author: Jan Kratochvil Date: Mon Mar 19 21:14:38 2012 +0100 Merge branch 'secmove' into secmove-misc2 commit b14ef7c5b2649c4f4c3bb1c68321aae28390dffb Merge: 9da9d07 23f3d45 Author: Jan Kratochvil Date: Mon Mar 19 21:14:38 2012 +0100 Merge remote-tracking branch 'gdb/master' into secmove commit 824b64104edaa089071b8205dcf1575eedc58e73 Merge: 2670804 24d2034 Author: Jan Kratochvil Date: Mon Mar 19 19:53:27 2012 +0100 Merge branch 'initclean-initx-gdbinitb-move-misc2-warn-safepath-debug' into initclean-initx-gdbinitb-move-misc2-warn-safepath-debug-warnlocal commit 24d203495b3f6538bee59c3eb3fd63b708262c63 Merge: bc876d3 3bc5163 Author: Jan Kratochvil Date: Mon Mar 19 19:53:27 2012 +0100 Merge branch 'initclean-initx-gdbinitb-move-misc2-warn-safepath' into initclean-initx-gdbinitb-move-misc2-warn-safepath-debug commit 3bc5163e02e63d2a932df1fd068a6281926c5feb Merge: 6c837ef 22d5ad2b Author: Jan Kratochvil Date: Mon Mar 19 19:53:27 2012 +0100 Merge branch 'initclean-initx-gdbinitb-move-misc2-warn' into initclean-initx-gdbinitb-move-misc2-warn-safepath commit 22d5ad2ba53e3860f819c12091c560665fd63186 Merge: 7304a03 0d05975 Author: Jan Kratochvil Date: Mon Mar 19 19:53:26 2012 +0100 Merge branch 'initclean-initx-gdbinitb-move-misc2' into initclean-initx-gdbinitb-move-misc2-warn commit 0d05975cee149b03f975b4e6081d3ea2360f98b3 Merge: cbb969a 9da9d07 Author: Jan Kratochvil Date: Mon Mar 19 19:53:26 2012 +0100 Merge branch 'initclean-initx-gdbinitb-move' into initclean-initx-gdbinitb-move-misc2 commit 9da9d078d284391547e446d1e95d4a616ed954ff Merge: c25a770 4faff13 Author: Jan Kratochvil Date: Mon Mar 19 19:53:26 2012 +0100 Merge branch 'initclean-initx-gdbinitb' into initclean-initx-gdbinitb-move commit 4faff13661d7a52e1701abba8e826eb9606f62b8 Merge: 7cfcf67 2835ead Author: Jan Kratochvil Date: Mon Mar 19 19:53:26 2012 +0100 Merge branch 'initclean-initx' into initclean-initx-gdbinitb commit 2835eadf9c1c04c0612aa4957392819477f1bca3 Merge: fd41f12 c9cff93 Author: Jan Kratochvil Date: Mon Mar 19 19:53:26 2012 +0100 Merge branch 'initclean' into initclean-initx commit c9cff93189fa413d52c148cbdc0ac14688f0fdf6 Merge: ab60061 03ae95e Author: Jan Kratochvil Date: Mon Mar 19 19:53:25 2012 +0100 Merge remote-tracking branch 'gdb/master' into initclean commit ab600614d553cd616fdbc3ebc77e43f30dd301e2 Merge: 20ded24 dff5a25 Author: Jan Kratochvil Date: Mon Mar 19 19:53:23 2012 +0100 Merge commit 'dff5a25c1f0ade13d791de1864948696381debeb' into initclean commit 23f3d45fa5cccdb7bb331f23484555e662a2ae4a Author: Jan Kratochvil Date: Mon Mar 19 18:38:55 2012 +0000 gdb/testsuite/ * gdb.base/auxv.c (func2): setrlimit to infinity to enable core dumps. * gdb.base/auxv.exp: Try to compile it with -DUSE_RLIMIT first. (generate native core dump): Make the test unsupported if core cannot be generated. commit 2670804f2294d8162c2ccd92bb64a9bc49fef99b Merge: 64ecd11 bc876d3 Author: Jan Kratochvil Date: Mon Mar 19 19:14:30 2012 +0100 Merge branch 'initclean-initx-gdbinitb-move-misc2-warn-safepath-debug' into initclean-initx-gdbinitb-move-misc2-warn-safepath-debug-warnlocal commit bc876d3117a40a012734653d9c058e410e8ee246 Merge: b4c159b 6c837ef Author: Jan Kratochvil Date: Mon Mar 19 19:14:30 2012 +0100 Merge branch 'initclean-initx-gdbinitb-move-misc2-warn-safepath' into initclean-initx-gdbinitb-move-misc2-warn-safepath-debug commit 6c837efc3afd7a12a8f494363ed9cafd7dd9c132 Merge: 673ec47 7304a03 Author: Jan Kratochvil Date: Mon Mar 19 19:14:29 2012 +0100 Merge branch 'initclean-initx-gdbinitb-move-misc2-warn' into initclean-initx-gdbinitb-move-misc2-warn-safepath commit 7304a03f7079c1836cac33c2acd9a5972cf96b8e Merge: 1cac12d cbb969a Author: Jan Kratochvil Date: Mon Mar 19 19:14:29 2012 +0100 Merge branch 'initclean-initx-gdbinitb-move-misc2' into initclean-initx-gdbinitb-move-misc2-warn commit cbb969a6e8088260e66114ee74a8b4901b33c9c6 Merge: 81eb095 c25a770 Author: Jan Kratochvil Date: Mon Mar 19 19:14:29 2012 +0100 Merge branch 'initclean-initx-gdbinitb-move' into initclean-initx-gdbinitb-move-misc2 commit c25a770c8d4a1337257048a72cd6bef1779c7114 Merge: 606ad59 7cfcf67 Author: Jan Kratochvil Date: Mon Mar 19 19:14:29 2012 +0100 Merge branch 'initclean-initx-gdbinitb' into initclean-initx-gdbinitb-move commit 7cfcf6754084bdbf29f599d13d675ae3b74a371d Merge: 925a2ef fd41f12 Author: Jan Kratochvil Date: Mon Mar 19 19:14:29 2012 +0100 Merge branch 'initclean-initx' into initclean-initx-gdbinitb commit fd41f12fe85a1b677b8c83bee9b2df20c792b615 Author: Jan Kratochvil Date: Mon Mar 19 19:14:25 2012 +0100 . ----------------------------------------------------------------------- Summary of changes: gdb/ChangeLog | 36 ++++++++++++++++++++++++++++++++++++ gdb/NEWS | 2 +- gdb/doc/ChangeLog | 7 +++++++ gdb/doc/gdb.texinfo | 8 +++++--- gdb/gnu-v3-abi.c | 2 +- gdb/testsuite/ChangeLog | 14 ++++++++++++++ gdb/testsuite/gdb.base/auxv.c | 15 +++++++++++++++ gdb/testsuite/gdb.base/auxv.exp | 7 +++++-- 8 files changed, 84 insertions(+), 7 deletions(-) First 500 lines of diff: diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7325047..3059d69 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,39 @@ +2012-03-19 Jan Kratochvil + + Code cleanup. + * python/py-auto-load.c (source_section_scripts): New variable back_to. + Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup + with xfree. + (auto_load_objfile_script): Turn fclose into make_cleanup_fclose. + +2012-03-19 Jan Kratochvil + + * NEWS: Describe new options --init-command=FILE, -ix and + --init-eval-command=COMMAND, -iex. + * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and + CMDARG_INIT_COMMAND. + (captured_main): New enum items OPT_IX and OPT_IEX. Add + "init-command", "init-eval-command", "ix" and "iex" to the variable + long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC. + New comment for CMDARG_FILE and CMDARG_COMMAND processing. + (print_gdb_help): Describe --init-command=FILE, -ix and + --init-eval-command=COMMAND, -iex. + +2012-03-19 Jan Kratochvil + + Code cleanup. + * main.c (struct cmdarg): Move it here from main. Add more comments. + (cmdarg_s, VEC (cmdarg_s)): New. + (main): Move struct cmdarg from here. New variables cmdarg_vec and + cmdarg_p. Remove variables cmdsize and ncmd and their initialization. + Install cleanup for cmdarg_vec. Update filling for options 'x' and + 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree + of CMDARG. + +2012-03-19 Tom Tromey + + * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'. + 2012-03-16 Jan Kratochvil PR symtab/13777 diff --git a/gdb/NEWS b/gdb/NEWS index 1f7a69a..890c761 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -142,7 +142,7 @@ QProgramSignals: * New command line options ---init-command=FILE, -ix Like --init-command, -x but execute it +--init-command=FILE, -ix Like --command, -x but execute it before loading inferior. --init-eval-command=COMMAND, -iex Like --eval-command=COMMAND, -ex but execute it before loading inferior. diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index cb6d0e9..92e3e1b 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,10 @@ +2012-03-19 Jan Kratochvil + + * gdb.texinfo (File Options): Describe --init-command=FILE, -ix and + --init-eval-command=COMMAND, -iex. + (Startup): Describe -iex and -ix. Simplify the example + for "set auto-load-scripts off". + 2012-03-16 Gary Benson PR breakpoints/10738 diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index b37215b..86b2493 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -994,14 +994,16 @@ also be interleaved with @samp{-command} as required. @itemx -ix @var{file} @cindex @code{--init-command} @cindex @code{-ix} -Execute commands from file @var{file} before gdbinit files or inferior loading. +Execute commands from file @var{file} before loading gdbinit files or the +inferior. @xref{Startup}. @item -init-eval-command @var{command} @itemx -iex @var{command} @cindex @code{--init-eval-command} @cindex @code{-iex} -Execute a single @value{GDBN} command before gdbinit files or inferior loading. +Execute a single @value{GDBN} command before loading gdbinit files or the +inferior. @xref{Startup}. @item -directory @var{directory} @@ -1258,7 +1260,7 @@ Sets up the command interpreter as specified by the command line @item Executes commands and command files specified by the @samp{-iex} and @samp{-ix} options in their specified order. Usually you should use the -@samp{-ex} and @samp{-x} options instead but this way you can apply +@samp{-ex} and @samp{-x} options instead, but this way you can apply settings before @value{GDBN} init files get executed and before inferior gets loaded. diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c index 72ca2a1..1095c60 100644 --- a/gdb/gnu-v3-abi.c +++ b/gdb/gnu-v3-abi.c @@ -907,7 +907,7 @@ gnuv3_print_vtable (struct value *value) struct value_print_options opts; htab_t offset_hash; struct cleanup *cleanup; - VEC (value_and_voffset_p) *result_vec; + VEC (value_and_voffset_p) *result_vec = NULL; struct value_and_voffset *iter; int i, count; diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index f2ea686..0c05576 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,17 @@ +2012-03-19 Jan Kratochvil + Siddhesh Poyarekar + + * gdb.base/auxv.c (func2): setrlimit to infinity to enable core dumps. + * gdb.base/auxv.exp: Try to compile it with -DUSE_RLIMIT first. + (generate native core dump): Make the test unsupported if core cannot + be generated. + +2012-03-19 Jan Kratochvil + + * gdb.gdb/selftest.exp (do_steps_and_nexts): New entry + for cmdarg_vec = NULL. Remove entries for cmdsize = 1, cmdarg = and + ncmd = 0. New entry for VEC_cleanup cmdarg_s. + 2012-03-19 Siddhesh Poyarekar * gdb.base/cond-eval-mode.exp: Fix the anticipated warning string. diff --git a/gdb/testsuite/gdb.base/auxv.c b/gdb/testsuite/gdb.base/auxv.c index ed5f2b6..c87d0f7 100644 --- a/gdb/testsuite/gdb.base/auxv.c +++ b/gdb/testsuite/gdb.base/auxv.c @@ -35,6 +35,13 @@ #define ABORT {char *invalid = 0; *invalid = 0xFF;} #endif +#ifdef USE_RLIMIT +# include +# ifndef RLIM_INFINITY +# define RLIM_INFINITY -1 +# endif +#endif /* USE_RLIMIT */ + /* Don't make these automatic vars or we will have to walk back up the stack to access them. */ @@ -53,6 +60,14 @@ func2 (int x) int i; static int y; +#ifdef USE_RLIMIT + { + struct rlimit rlim = { RLIM_INFINITY, RLIM_INFINITY }; + + setrlimit (RLIMIT_CORE, &rlim); + } +#endif + /* Make sure that coremaker_local doesn't get optimized away. */ for (i = 0; i < 5; i++) coremaker_local[i] = i; diff --git a/gdb/testsuite/gdb.base/auxv.exp b/gdb/testsuite/gdb.base/auxv.exp index da10f05..16f12c7 100644 --- a/gdb/testsuite/gdb.base/auxv.exp +++ b/gdb/testsuite/gdb.base/auxv.exp @@ -31,7 +31,10 @@ set binfile ${objdir}/${subdir}/${testfile} set corefile ${objdir}/${subdir}/${testfile}.corefile set gcorefile ${objdir}/${subdir}/${testfile}.gcore -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \ + {debug additional_flags=-DUSE_RLIMIT}] != "" + && [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \ + {debug}] != "" } { untested "couldn't compile ${srcdir}/${subdir}/${srcfile}" return -1 } @@ -155,7 +158,7 @@ if {$core_works} { } else { set core_works 0 warning "can't generate a core file - core tests suppressed - check ulimit -c" - fail $test + unsupported $test } } else { unsupported $test hooks/post-receive -- Repository for Project Archer.