mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 13:23:00 +08:00
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.
This commit is contained in:
@ -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>
|
2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
* cli/cli-script.c (insert_args): Handle NULL user_args.
|
* cli/cli-script.c (insert_args): Handle NULL user_args.
|
||||||
|
@ -4461,13 +4461,13 @@ watchpoint_to_Z_packet (int type)
|
|||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
case hw_write:
|
case hw_write:
|
||||||
return 2;
|
return Z_PACKET_WRITE_WP;
|
||||||
break;
|
break;
|
||||||
case hw_read:
|
case hw_read:
|
||||||
return 3;
|
return Z_PACKET_READ_WP;
|
||||||
break;
|
break;
|
||||||
case hw_access:
|
case hw_access:
|
||||||
return 4;
|
return Z_PACKET_ACCESS_WP;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
internal_error (__FILE__, __LINE__,
|
internal_error (__FILE__, __LINE__,
|
||||||
|
Reference in New Issue
Block a user