Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(738)

Unified Diff: gdb/tui/tui-stack.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/tui/tui-regs.c ('k') | gdb/tui/tui-win.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/tui/tui-stack.c
diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c
index 8722058f29b7117c85012e43cea3f52f914672b2..262a6bf3143de6d8c71970e4e530945617ced2cb 100644
--- a/gdb/tui/tui-stack.c
+++ b/gdb/tui/tui-stack.c
@@ -228,6 +228,7 @@ tui_get_function_from_frame (struct frame_info *fi)
if (*p == '<')
p++;
strncpy (name, p, sizeof (name) - 1);
+ name[sizeof (name) - 1] = 0;
p = strchr (name, '(');
if (!p)
p = strchr (name, '>');
@@ -378,7 +379,8 @@ tui_show_frame_info (struct frame_info *fi)
}
else
{
- if (find_pc_partial_function (get_frame_pc (fi), (char **) NULL,
+ if (find_pc_partial_function (get_frame_pc (fi),
+ (const char **) NULL,
&low, (CORE_ADDR) 0) == 0)
{
/* There is no symbol available for current PC. There is no
« no previous file with comments | « gdb/tui/tui-regs.c ('k') | gdb/tui/tui-win.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698