summaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-09-29 10:28:17 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-09-29 10:28:17 -0700
commitb287c1b1670bec76dec2856a52354be9087fca7c (patch)
treeb398d052275055a27a73b5761afd59035c2611ce /server.c
parentd3e165bc8f24b9fe0f6f8330cb55eed3f30e51ce (diff)
downloadxscope-b287c1b1670bec76dec2856a52354be9087fca7c.tar.gz
Add support for setting breakpoints on extension requests
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'server.c')
-rw-r--r--server.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/server.c b/server.c
index 610a0b3..fa664b8 100644
--- a/server.c
+++ b/server.c
@@ -777,5 +777,10 @@ long
GetXRequestFromName (
const char *name)
{
- return GetEValue (REQUEST, name);
+ long req = GetEValue (REQUEST, name);
+
+ if (req < 0)
+ req = GetEValue (EXTENSION, name);
+
+ return req;
}