2006-03-30 Vladimir Prus <ghost@cs.msu.su>
authorDaniel Jacobowitz <drow@false.org>
Thu, 30 Mar 2006 16:56:30 +0000 (16:56 +0000)
committerDaniel Jacobowitz <drow@false.org>
Thu, 30 Mar 2006 16:56:30 +0000 (16:56 +0000)
* remote.c (watchpoint_to_Z_packet): Use values of Z_packet_type enum
instead of hardcoded integer literals.

gdb/ChangeLog
gdb/remote.c

index 45a83e0e56dd9e464bde9ea062b338b3c9e88c61..e581f7043193af93faca780342efddcc98b99d78 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2006-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * cli/cli-script.c (insert_args): Handle NULL user_args.
index bbbf0e10739341a0cb3f3b749f311eb4b69c840f..efff972fbc71e6dc1ac528e4144b18a3d67bfc3c 100644 (file)
@@ -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__,
This page took 0.033324 seconds and 4 git commands to generate.