diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-02-15 20:28:24 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-02-15 20:28:24 +0000 |
commit | edceb2a99afcec306af2d9a50c2ed6ece43cf256 (patch) | |
tree | 0134cc7b00131cc488eff81dbb627b45f5330b41 /gdb | |
parent | 989fbeffb248dde7a9a24ad8ac9f7a76b435a807 (diff) | |
download | gdb-edceb2a99afcec306af2d9a50c2ed6ece43cf256.zip gdb-edceb2a99afcec306af2d9a50c2ed6ece43cf256.tar.gz gdb-edceb2a99afcec306af2d9a50c2ed6ece43cf256.tar.bz2 |
gdb/
* gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
and dir commands into an if block.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdb-gdb.gdb.in | 27 |
2 files changed, 22 insertions, 10 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d5211b5..529b6e0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com> + + * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command + and dir commands into an if block. + 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com> * python/py-breakpoint (struct pybp_code): Use int instead of diff --git a/gdb/gdb-gdb.gdb.in b/gdb/gdb-gdb.gdb.in index ffb7f53..05a38b2 100644 --- a/gdb/gdb-gdb.gdb.in +++ b/gdb/gdb-gdb.gdb.in @@ -1,19 +1,26 @@ echo Setting up the environment for debugging gdb.\n -set complaints 1 +if !$gdb_init_done + set variable $gdb_init_done = 1 -b internal_error + set complaints 1 -b info_command -commands - silent - return + b internal_error + + b info_command + commands + silent + return + end + + dir @srcdir@/../libiberty + dir @srcdir@/../bfd + dir @srcdir@ + dir . + + # Commands below are not fully compatible with wrapping into an 'if' block. end -dir @srcdir@/../libiberty -dir @srcdir@/../bfd -dir @srcdir@ -dir . set prompt (top-gdb) define pdie |