source insight 4启动后不见窗口

卸载source insight 4(以下简记为SI4)后,删除以下目录

1
2
3
4
5
6
C:\Program Files (x86)\Source Insight 4.0
C:\Users\Euhat\Documents\Source Insight 4.0
C:\Users\Euhat\AppData\Local\Source Insight
C:\Users\Euhat\AppData\Roaming\Source Insight
C:\Users\Public\Documents\Source Insight 4.0 Shared
C:\ProgramData\Source Insight

如果之前到SI4主菜单Preferences/Folders里设置了其它目录的,也把这些目录清空。如果在SI4里重建像linux kernel这样的大项目,这些Folders最好以默认方式设为C盘这样的SSD盘中。

再重建win10 IconCache

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
%进入图标缓存目录%
cd /d %userprofile%\AppData\Local\Microsoft\Windows\Explorer
 
%关闭Windows资源管理器explorer%
taskkill /f /im explorer.exe
 
%延时3s%
ping -n 3 127.0.0.1>nul
 
%删除图标缓存数据库%
attrib -h iconcache_.db
del iconcache_.db /a
 
%延时3s%
ping -n 3 127.0.0.1>nul
 
%重启Windows资源管理器explorer%
start explorer

再重装SI4,我这里再等一会启动SI4时就能看到窗口了。

refer to:
https://blog.csdn.net/nodeman/article/details/94555196

in gdb tui mode scroll the command window

Use cgdb instead.

Let GDBW denote the command window,
let SRCW denote the source window
let TTYW denote the input window.

Cgdb basic usage

1
2
3
4
5
6
ESC key in GDBW: switch to SRCW
i key in SRCW: switch to GDBW
T key in SRCW: switch on/off TTYW
PgUp/PgDn key in GDBW: scroll GDBW
PgUp/PgDn key in SRCW: scroll SRCW
-/= in SRCW: decrease/increase SRCW size

Patch: GDBW output is truncated.
cgdb/scroller.cpp:146
https://github.com/cgdb/cgdb/pull/269

refer to:
https://github.com/cgdb/cgdb/blob/master/doc/cgdb.texi

win32发消息触发窗口拖动

1
2
3
	::ReleaseCapture();
	::SendMessage(m_hWnd, WM_NCLBUTTONDOWN, HTCAPTION, NULL);
	::SendMessage(m_hWnd, WM_LBUTTONUP, NULL, NULL);