GDB console and watchpoints

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

GDB console and watchpoints

678件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by briand on Mon Sep 13 16:09:36 MST 2010
Is it possible to get a gdb console while debugging in LPCXpresso, so I can use my own gdb commands/scripts?  I tried unchecking "launch in background" but that didn't help.

I see documentation in the LPCXpresso help about watchpoints (break on access to memory) but I don't see the menu options anywhere in the IDE.  Is this feature not included?
0 件の賞賛
返信
1 返信

640件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Sep 14 01:26:49 MST 2010

Quote: briand
Is it possible to get a gdb console while debugging in LPCXpresso, so I can use my own gdb commands/scripts?  I tried unchecking "launch in background" but that didn't help.


You can access gdb directly through the console view of the IDE.

Switch to "MCU Debug log" using the terminal-like "Display selected  console" icon in to the right of the view to see what gdb commands are  being issued.

Switch to the "arm-none-eabi-gdb" console using the "terminal" icon to enter gdb commands yourself.

If you want to have one or both of these visible constantly, then use  the "Open console" icon, then switch the new console to the console type  that you want.


Quote:

I see documentation in the LPCXpresso help about watchpoints (break on access to memory) but I don't see the menu options anywhere in the IDE.  Is this feature not included?

Couple of simple ways to set a watchpoint are as follows.


[LIST=1]
[*]Select the Breakpoint view (normally a tab next to the Quickstart panel), right click, then select "Add watchpoint" and enter the address or expression.
[*]Select the Variables view, select a global variable that you have previously added to the view, right click and select "Add watchpoint".
[/LIST]
Regards,
CodeRedSupport
0 件の賞賛
返信