diff options
author | Pedro Alves <palves@redhat.com> | 2011-04-20 17:01:11 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-04-20 17:01:11 +0000 |
commit | b78974c3b4cea6c98cb8dfd9c0bee59efd45d311 (patch) | |
tree | f469d8b9134b15398d79696f3c16c0135b8d4318 /gdb/infrun.c | |
parent | 15be625dff82153e4e05018a22c6cd66ba160f70 (diff) | |
download | gdb-b78974c3b4cea6c98cb8dfd9c0bee59efd45d311.zip gdb-b78974c3b4cea6c98cb8dfd9c0bee59efd45d311.tar.gz gdb-b78974c3b4cea6c98cb8dfd9c0bee59efd45d311.tar.bz2 |
2011-04-20 Pedro Alves <pedro@codesourcery.com>
gdb/
* regcache.c (get_thread_arch_regcache): If creating a regcache for
null_ptid, assume and allow a NULL address space, instead of
asking the target for the ptid's address space.
* infrun.c (ptid_is_pid): Remove assertion.
gdb/testsuite/
* gdb.base/maint.exp: Test that "maint print registers" works
without a running program.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 52a1c15..8eccb60 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -6696,11 +6696,6 @@ ptid_is_pid (ptid_t ptid) int ptid_match (ptid_t ptid, ptid_t filter) { - /* Since both parameters have the same type, prevent easy mistakes - from happening. */ - gdb_assert (!ptid_equal (ptid, minus_one_ptid) - && !ptid_equal (ptid, null_ptid)); - if (ptid_equal (filter, minus_one_ptid)) return 1; if (ptid_is_pid (filter) |