aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2007-07-10 22:59:42 +0000
committerNick Roberts <nickrob@snap.net.nz>2007-07-10 22:59:42 +0000
commitd1aa2f507683539aa40939911fc3485636747d84 (patch)
tree3446ed48545d4cd3390891c1693f986b05baa6f2 /gdb
parentd9f71b56cf6f4e7ddd057ee185152f53b6e4c436 (diff)
downloadgdb-d1aa2f507683539aa40939911fc3485636747d84.zip
gdb-d1aa2f507683539aa40939911fc3485636747d84.tar.gz
gdb-d1aa2f507683539aa40939911fc3485636747d84.tar.bz2
Include "top.h".
(breakpoint_1): Don't set convenience variable $_ if server prefix is used. (_initialize_breakpoint): Describe this behaviour in command help.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/breakpoint.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 4c19dff..2c67b53 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -55,6 +55,7 @@
#include "exceptions.h"
#include "memattr.h"
#include "ada-lang.h"
+#include "top.h"
#include "gdb-events.h"
#include "mi/mi-common.h"
@@ -3828,7 +3829,7 @@ breakpoint_1 (int bnum, int allflag)
{
/* Compare against (CORE_ADDR)-1 in case some compiler decides
that a comparison of an unsigned with -1 is always false. */
- if (last_addr != (CORE_ADDR) -1)
+ if (last_addr != (CORE_ADDR) -1 && !server_command)
set_next_address (last_addr);
}
@@ -8161,7 +8162,8 @@ breakpoint will be disabled. The \"Address\" and \"What\" columns indicate the\
address and file/line number respectively.\n\
\n\
Convenience variable \"$_\" and default examine address for \"x\"\n\
-are set to the address of the last breakpoint listed.\n\n\
+are set to the address of the last breakpoint listed unless the command\n\
+is prefixed with \"server \".\n\n\
Convenience variable \"$bpnum\" contains the number of the last\n\
breakpoint set."));
}
@@ -8177,7 +8179,8 @@ breakpoint will be disabled. The \"Address\" and \"What\" columns indicate the\
address and file/line number respectively.\n\
\n\
Convenience variable \"$_\" and default examine address for \"x\"\n\
-are set to the address of the last breakpoint listed.\n\n\
+are set to the address of the last breakpoint listed unless the command\n\
+is prefixed with \"server \".\n\n\
Convenience variable \"$bpnum\" contains the number of the last\n\
breakpoint set."));
@@ -8193,7 +8196,8 @@ breakpoint will be disabled. The \"Address\" and \"What\" columns indicate the\
address and file/line number respectively.\n\
\n\
Convenience variable \"$_\" and default examine address for \"x\"\n\
-are set to the address of the last breakpoint listed.\n\n\
+are set to the address of the last breakpoint listed unless the command\n\
+is prefixed with \"server \".\n\n\
Convenience variable \"$bpnum\" contains the number of the last\n\
breakpoint set."));
@@ -8212,8 +8216,8 @@ breakpoint will be disabled. The \"Address\" and \"What\" columns indicate the\
address and file/line number respectively.\n\
\n\
Convenience variable \"$_\" and default examine address for \"x\"\n\
-are set to the address of the last breakpoint listed.\n\
-\n\
+are set to the address of the last breakpoint listed unless the command\n\
+is prefixed with \"server \".\n\n\
Convenience variable \"$bpnum\" contains the number of the last\n\
breakpoint set."),
&maintenanceinfolist);