mirror of
https://github.com/cs01/gdbgui
synced 2024-11-16 07:47:46 +01:00
modify component initialization order so that store updates are better sequenced
This commit is contained in:
parent
f1f3441718
commit
2b7836d4aa
9 changed files with 19 additions and 14 deletions
|
@ -3,8 +3,11 @@
|
|||
## dev
|
||||
Changes that are in master but have not yet been pushed to PyPI.
|
||||
|
||||
## 0.8.0.3
|
||||
* modify component initialization order so that store updates are better sequenced
|
||||
|
||||
## 0.8.0.2
|
||||
* display bracket instead of `<`
|
||||
* display bracket instead of `<` when exploring gdb variables
|
||||
|
||||
## 0.8.0.1
|
||||
* fix bug when restoring old settings
|
||||
|
|
|
@ -7,7 +7,7 @@ A browser-based frontend for GDB
|
|||
.. image:: https://travis-ci.org/cs01/gdbgui.svg?branch=master
|
||||
:target: https://travis-ci.org/cs01/gdbgui
|
||||
|
||||
.. image:: https://img.shields.io/badge/pypi-0.8.0.2-blue.svg
|
||||
.. image:: https://img.shields.io/badge/pypi-0.8.0.3-blue.svg
|
||||
:target: https://pypi.python.org/pypi/gdbgui/
|
||||
|
||||
.. image:: https://img.shields.io/badge/python-2.7,3.4,3.5,3.6,pypy-blue.svg
|
||||
|
@ -54,7 +54,7 @@ Python versions: 2.7, 3.4, 3.5, 3.6, 3.6-dev, 3.7-dev, pypy
|
|||
|
||||
Operating systems: Ubuntu 14.04+, macOS, Windows (in cygwin)
|
||||
|
||||
Browsers: Chrome, Firefox
|
||||
Browsers: Tested with Chrome, Firefox. Should work with any modern, standards-compliant browser.
|
||||
|
||||
gdb: 7.7+
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
0.8.0.2
|
||||
0.8.0.3
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
__title__ = 'gdbgui'
|
||||
__version__ = '0.8.0.2'
|
||||
__version__ = '0.8.0.3'
|
||||
__author__ = 'Chad Smith'
|
||||
__copyright__ = 'Copyright Chad Smith'
|
||||
|
|
|
@ -14,7 +14,6 @@ const FileOps = {
|
|||
document.getElementById('refresh_cached_source_files').onclick = FileOps.refresh_cached_source_files
|
||||
},
|
||||
user_select_file_to_view: function(fullname, line){
|
||||
store.set('source_code_state', constants.source_code_states.FETCHING_SOURCE)
|
||||
store.set('render_paused_frame_or_user_selection', 'user_selection')
|
||||
store.set('fullname_to_render',fullname)
|
||||
store.set('line_of_source_to_flash', line)
|
||||
|
|
|
@ -55,8 +55,12 @@ Split(['#middle', '#bottom'], {
|
|||
})
|
||||
|
||||
GdbApi.init()
|
||||
GlobalEvents.init()
|
||||
Modal.init()
|
||||
FileOps.init() // this should be initialized before components that use store key 'source_code_state'
|
||||
|
||||
void(React) // ReactDOM secretly depends on React; avoid "'React' is defined but never used no-unused-vars"
|
||||
void(React) // ReactDOM secretly depends on React; avoid "'React' is defined but never used no-unused-vars" error
|
||||
//
|
||||
// top section
|
||||
ReactDOM.render(<StatusBar/>, document.getElementById('status'))
|
||||
ReactDOM.render(<SourceCodeHeading/>, document.getElementById('source_code_heading'))
|
||||
|
@ -65,7 +69,7 @@ ShutdownGdbgui.init()
|
|||
SourceFileAutocomplete.init()
|
||||
|
||||
// middle left
|
||||
ReactDOM.render(<MiddleLeft />, document.getElementById('middle_left'))
|
||||
ReactDOM.render(<MiddleLeft />, document.getElementById('middle_left')) // uses store key 'source_code_state'
|
||||
|
||||
// middle right
|
||||
ReactDOM.render(<RightSidebar signals={initial_data.signals} debug={debug} />, document.getElementById('middle_right'))
|
||||
|
@ -77,9 +81,6 @@ GdbCommandInput.init()
|
|||
// full page/javascript objects
|
||||
ReactDOM.render(<HoverVar />, document.getElementById('hovervar_container'))
|
||||
ReactDOM.render(<Settings />, document.getElementById('settings_container'))
|
||||
GlobalEvents.init()
|
||||
Modal.init()
|
||||
FileOps.init()
|
||||
|
||||
// make this visible in the console
|
||||
window.store = store
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -57,6 +57,8 @@ html
|
|||
a.pointer(title='donate', href='/donate') Donate
|
||||
li
|
||||
a.pointer(href='https://github.com/cs01/gdbgui') Homepage / github
|
||||
li
|
||||
a.pointer(href='https://gitter.im/gdbgui/Lobby') gdbgui Chat Room
|
||||
li
|
||||
a.pointer(title='Help', href='https://github.com/cs01/gdbgui/blob/master/HELP.md') Help
|
||||
li.divider(role='separator')
|
||||
|
|
2
setup.py
2
setup.py
|
@ -27,7 +27,7 @@ class TestCommand (Command):
|
|||
|
||||
setup(
|
||||
name='gdbgui',
|
||||
version='0.8.0.2',
|
||||
version='0.8.0.3',
|
||||
author='Chad Smith',
|
||||
author_email='grassfedcode@gmail.com',
|
||||
description=('browser-based gdb frontend using Flask and JavaScript to visually debug C, C++, Go, or Rust'),
|
||||
|
|
Loading…
Reference in a new issue