nobody [Fri, 7 Dec 2012 02:57:51 +0000 (02:57 +0000)]
This commit was manufactured by cvs2svn to create branch 'gdb_7_5-branch'.
Cherrypick from master 2012-12-07 02:57:50 UTC Joel Brobecker <brobecker@gnat.com> 'Delete the gdb/osf-share directory.':
gdb/contrib/ari/gdb_ari.sh
gdb/contrib/ari/gdb_find.sh
Mike Frysinger [Wed, 28 Nov 2012 20:00:48 +0000 (20:00 +0000)]
libiberty/md5: fix strict alias warnings
Current libiberty md5 code triggers these warnings with gcc-4.7.1 for me:
libiberty/md5.c: In function 'md5_finish_ctx':
libiberty/md5.c:117:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
libiberty/md5.c:118:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
The change below fixes things for me. The optimized output (-O2) is the same
before/after my change on x86_64-linux. I imagine it'll be the same for most
targets. It seems simpler than using a union on the md5_ctx buffer since these
are the only two locations in the code where this occurs.
nobody [Wed, 14 Nov 2012 19:21:02 +0000 (19:21 +0000)]
This commit was manufactured by cvs2svn to create branch 'gdb_7_5-branch'.
Cherrypick from master 2012-11-14 19:21:01 UTC Luis Machado <luisgpm@br.ibm.com> '2012-11-14 Luis Machado <lgustavo@codesourcery.com>':
gdb/contrib/ari/create-web-ari-in-src.sh
gdb/contrib/ari/update-web-ari.sh
gdb/testsuite/gdb.mi/mi-var-create-rtti.c
gdb/testsuite/gdb.mi/mi-var-create-rtti.exp
Doug Evans [Thu, 11 Oct 2012 16:57:44 +0000 (16:57 +0000)]
PR breakpoints/14643.
* linespec.c (struct ls_parser): New member keyword_ok.
(linespec_lexer_lex_string): Add comment.
(linespec_lexer_lex_one): Ignore keywords if it's the wrong place
for one.
(parse_linespec): Set keyword_ok.
testsuite/
* gdb.linespec/ls-errs.exp: Change tests of "b if|task|thread".
* gdb.linespec/thread.c: New file.
* gdb.linespec/thread.exp: New file.
nobody [Sat, 6 Oct 2012 21:10:34 +0000 (21:10 +0000)]
This commit was manufactured by cvs2svn to create branch 'gdb_7_5-branch'.
Cherrypick from master 2012-10-06 21:10:33 UTC Jan Kratochvil <jan.kratochvil@redhat.com> 'gdb/':
gdb/testsuite/gdb.base/step-symless.c
gdb/testsuite/gdb.base/step-symless.exp
Jan Kratochvil [Mon, 17 Sep 2012 18:28:14 +0000 (18:28 +0000)]
gdb/
* common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
(linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
__i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
Extend code also for PaX support. Convert all gdb_assert to warning
calls.
Jan Kratochvil [Mon, 17 Sep 2012 18:27:24 +0000 (18:27 +0000)]
gdb/
Implement auto-load user conveniences suggested by Doug Evans.
* auto-load.c: Include top.h.
(file_is_auto_load_safe): New variable advice_printed. Print advice.
(_initialize_auto_load): New variable scripts_directory_help. Mention
GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
scripts-directory. Document in online help one can use also files for
set auto-load safe-path.
* python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
* python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
Jan Kratochvil [Mon, 17 Sep 2012 07:17:28 +0000 (07:17 +0000)]
gdb/
PR 14119
* frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
(frame_pop): Drop also TAILCALL_FRAME frames.
* infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
gdb/testsuite/
PR 14119
* gdb.arch/amd64-tailcall-ret.S: New file.
* gdb.arch/amd64-tailcall-ret.c: New file.
* gdb.arch/amd64-tailcall-ret.exp: New file.
* gdb.reverse/amd64-tailcall-reverse.S: New file.
* gdb.reverse/amd64-tailcall-reverse.c: New file.
* gdb.reverse/amd64-tailcall-reverse.exp: New file.
Jan Kratochvil [Mon, 17 Sep 2012 07:14:56 +0000 (07:14 +0000)]
gdb/
PR 14548
* infrun.c (handle_inferior_event): Do not reverse-continue back to the
function start if we are already at function start. Both for
reverse-next and for reverse-step into function without line number
info.
gdb/testsuite/
PR 14548
* gdb.reverse/singlejmp-reverse-nodebug.S: New file.
* gdb.reverse/singlejmp-reverse-nodebug.c: New file.
* gdb.reverse/singlejmp-reverse.S: New file.
* gdb.reverse/singlejmp-reverse.c: New file.
* gdb.reverse/singlejmp-reverse.exp: New file.