block.c (3456a8d1852e970688b73d03fdc44dde851759e1) | block.c (938789ea92b3073ad1113b3e1bdf90d469ea4bf4) |
---|---|
1/* 2 * QEMU System Emulator block driver 3 * 4 * Copyright (c) 2003 Fabrice Bellard 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 4041 unchanged lines hidden (view full) --- 4050 return bs->drv->bdrv_debug_remove_breakpoint(bs, tag); 4051 } 4052 4053 return -ENOTSUP; 4054} 4055 4056int bdrv_debug_resume(BlockDriverState *bs, const char *tag) 4057{ | 1/* 2 * QEMU System Emulator block driver 3 * 4 * Copyright (c) 2003 Fabrice Bellard 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 4041 unchanged lines hidden (view full) --- 4050 return bs->drv->bdrv_debug_remove_breakpoint(bs, tag); 4051 } 4052 4053 return -ENOTSUP; 4054} 4055 4056int bdrv_debug_resume(BlockDriverState *bs, const char *tag) 4057{ |
4058 while (bs && bs->drv && !bs->drv->bdrv_debug_resume) { | 4058 while (bs && (!bs->drv || !bs->drv->bdrv_debug_resume)) { |
4059 bs = bs->file; 4060 } 4061 4062 if (bs && bs->drv && bs->drv->bdrv_debug_resume) { 4063 return bs->drv->bdrv_debug_resume(bs, tag); 4064 } 4065 4066 return -ENOTSUP; --- 1395 unchanged lines hidden --- | 4059 bs = bs->file; 4060 } 4061 4062 if (bs && bs->drv && bs->drv->bdrv_debug_resume) { 4063 return bs->drv->bdrv_debug_resume(bs, tag); 4064 } 4065 4066 return -ENOTSUP; --- 1395 unchanged lines hidden --- |