From bb858e6a2ca8ad83c14c69d6f70f14517f32875c Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Thu, 30 Mar 2006 16:56:30 +0000 Subject: [PATCH] 2006-03-30 Vladimir Prus * remote.c (watchpoint_to_Z_packet): Use values of Z_packet_type enum instead of hardcoded integer literals. --- gdb/ChangeLog | 5 +++++ gdb/remote.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 45a83e0e56d..e581f704319 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2006-03-30 Vladimir Prus + + * remote.c (watchpoint_to_Z_packet): Use values of Z_packet_type enum + instead of hardcoded integer literals. + 2006-03-30 Daniel Jacobowitz * cli/cli-script.c (insert_args): Handle NULL user_args. diff --git a/gdb/remote.c b/gdb/remote.c index bbbf0e10739..efff972fbc7 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__, -- 2.30.2