Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.42 KB | None | 0 0
  1. Breakpoint 1, main (argc=1, argv=0x7fffffffec58) at main.cpp:16
  2. 16 C x;
  3. (gdb) step
  4. C::C (this=0x7fffffffeb6c) at main.cpp:5
  5. 5 C(){}
  6. (gdb) step
  7. main (argc=1, argv=0x7fffffffec58) at main.cpp:17
  8. 17 C y=f(f(x));
  9. (gdb) step
  10. C::C (this=0x7fffffffeb6e) at main.cpp:6
  11. 6 C(const C&){cout<<"*";}//# * =quante volte viene invocato il cost
  12. ruttore di copia
  13. (gdb) step
  14. f (a=...) at main.cpp:10
  15. 10 C b(a);//stampa qui
  16. (gdb) step
  17. C::C (this=0x7fffffffeb3f) at main.cpp:6
  18. 6 C(const C&){cout<<"*";}//# * =quante volte viene invocato il cost
  19. ruttore di copia
  20. (gdb) step
  21. f (a=...) at main.cpp:11
  22. 11 C c=b; //stampa qui
  23. (gdb) step
  24. C::C (this=0x7fffffffeb6f) at main.cpp:6
  25. 6 C(const C&){cout<<"*";}//# * =quante volte viene invocato il cost
  26. ruttore di copia
  27. (gdb) step
  28. f (a=...) at main.cpp:12
  29. 12 return c;
  30. (gdb) step
  31. 13 }
  32. (gdb) step
  33. f (a=...) at main.cpp:10
  34. 10 C b(a);//stampa qui
  35. (gdb) step
  36. C::C (this=0x7fffffffeb3f) at main.cpp:6
  37. 6 C(const C&){cout<<"*";}//# * =quante volte viene invocato il cost
  38. ruttore di copia
  39. (gdb) step
  40. f (a=...) at main.cpp:11
  41. 11 C c=b; //stampa qui
  42. (gdb) step
  43. gdb) step
  44. C::C (this=0x7fffffffeb6f) at main.cpp:6
  45. 6 C(const C&){cout<<"*";}//# * =quante volte viene invocato il cost
  46. ruttore di copia
  47. (gdb) step
  48. f (a=...) at main.cpp:12
  49. 12 return c;
  50. (gdb) step
  51. 13 }
  52. (gdb) step
  53. f (a=...) at main.cpp:10
  54. 10 C b(a);//stampa qui
  55. (gdb) step
  56. C::C (this=0x7fffffffeb3f) at main.cpp:6
  57. 6 C(const C&){cout<<"*";}//# * =quante volte viene invocato il cost
  58. ruttore di copia
  59. (gdb) step
  60. f (a=...) at main.cpp:11
  61. 11 C c=b; //stampa qui
  62. (gdb) step
  63. C::C (this=0x7fffffffeb6d) at main.cpp:6
  64. 6 C(const C&){cout<<"*";}//# * =quante volte viene invocato il cost
  65. ruttore di copia
  66. (gdb) step
  67. f (a=...) at main.cpp:12
  68. 12 return c;
  69. (gdb) step
  70. 13 }
  71. (gdb) step
  72. main (argc=1, argv=0x7fffffffec58) at main.cpp:21
  73. 21 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement