gdb/
Fix TUI stepi on code without symbols. * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for current PC instead.
This commit is contained in:
parent
b2a1944f3c
commit
c04b3e8fc5
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
|
Fix TUI stepi on code without symbols.
|
||||||
|
* tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
|
||||||
|
current PC instead.
|
||||||
|
|
||||||
2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
|
2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
Code cleanup.
|
Code cleanup.
|
||||||
|
|
|
@ -380,8 +380,11 @@ tui_show_frame_info (struct frame_info *fi)
|
||||||
{
|
{
|
||||||
if (find_pc_partial_function (get_frame_pc (fi), (char **) NULL,
|
if (find_pc_partial_function (get_frame_pc (fi), (char **) NULL,
|
||||||
&low, (CORE_ADDR) 0) == 0)
|
&low, (CORE_ADDR) 0) == 0)
|
||||||
error (_("No function contains program "
|
{
|
||||||
"counter for selected frame."));
|
/* There is no symbol available for current PC. There is no
|
||||||
|
safe way how to "disassemble backwards". */
|
||||||
|
low = get_frame_pc (fi);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
low = tui_get_low_disassembly_address (get_frame_arch (fi),
|
low = tui_get_low_disassembly_address (get_frame_arch (fi),
|
||||||
low, get_frame_pc (fi));
|
low, get_frame_pc (fi));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue