aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-03-30 16:56:30 +0000
committerDaniel Jacobowitz <drow@false.org>2006-03-30 16:56:30 +0000
commitbb858e6a2ca8ad83c14c69d6f70f14517f32875c (patch)
treed877b466c69e35b3850ebd3e6a978523a2daacb1 /gdb/remote.c
parent61d9b92fc1a084d43c328afbd9f9177013b226c6 (diff)
downloadgdb-bb858e6a2ca8ad83c14c69d6f70f14517f32875c.zip
gdb-bb858e6a2ca8ad83c14c69d6f70f14517f32875c.tar.gz
gdb-bb858e6a2ca8ad83c14c69d6f70f14517f32875c.tar.bz2
2006-03-30 Vladimir Prus <ghost@cs.msu.su>
* remote.c (watchpoint_to_Z_packet): Use values of Z_packet_type enum instead of hardcoded integer literals.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index bbbf0e1..efff972 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -4461,13 +4461,13 @@ watchpoint_to_Z_packet (int type)
switch (type)
{
case hw_write:
- return 2;
+ return Z_PACKET_WRITE_WP;
break;
case hw_read:
- return 3;
+ return Z_PACKET_READ_WP;
break;
case hw_access:
- return 4;
+ return Z_PACKET_ACCESS_WP;
break;
default:
internal_error (__FILE__, __LINE__,