aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-04-20 17:01:11 +0000
committerPedro Alves <palves@redhat.com>2011-04-20 17:01:11 +0000
commitb78974c3b4cea6c98cb8dfd9c0bee59efd45d311 (patch)
treef469d8b9134b15398d79696f3c16c0135b8d4318 /gdb/infrun.c
parent15be625dff82153e4e05018a22c6cd66ba160f70 (diff)
downloadgdb-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.c5
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)