OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 // Create the new break info. | 487 // Create the new break info. |
488 Top::new_break(it_.frame()->id()); | 488 Top::new_break(it_.frame()->id()); |
489 } | 489 } |
490 | 490 |
491 // Make sure that debugger is loaded and enter the debugger context. | 491 // Make sure that debugger is loaded and enter the debugger context. |
492 load_failed_ = !Debug::Load(); | 492 load_failed_ = !Debug::Load(); |
493 if (!load_failed_) { | 493 if (!load_failed_) { |
494 // NOTE the member variable save which saves the previous context before | 494 // NOTE the member variable save which saves the previous context before |
495 // this change. | 495 // this change. |
496 Top::set_context(*Debug::debug_context()); | 496 Top::set_context(*Debug::debug_context()); |
497 Top::set_security_context(*Debug::debug_context()); | |
498 } | 497 } |
499 } | 498 } |
500 | 499 |
501 ~EnterDebugger() { | 500 ~EnterDebugger() { |
502 if (set_) { | 501 if (set_) { |
503 // Restore to the previous break state. | 502 // Restore to the previous break state. |
504 Top::set_break(break_frame_id_, break_id_); | 503 Top::set_break(break_frame_id_, break_id_); |
505 } | 504 } |
506 } | 505 } |
507 | 506 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 } | 573 } |
575 private: | 574 private: |
576 Debug::AddressId id_; | 575 Debug::AddressId id_; |
577 int reg_; | 576 int reg_; |
578 }; | 577 }; |
579 | 578 |
580 | 579 |
581 } } // namespace v8::internal | 580 } } // namespace v8::internal |
582 | 581 |
583 #endif // V8_V8_DEBUG_H_ | 582 #endif // V8_V8_DEBUG_H_ |
OLD | NEW |