mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-18 21:34:13 +08:00
* frame.c (frame_debug_got_null_frame): Remove file arg.
All callers updated.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2008-11-20 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
|
* frame.c (frame_debug_got_null_frame): Remove file arg.
|
||||||
|
All callers updated.
|
||||||
|
|
||||||
2008-11-20 Pedro Alves <pedro@codesourcery.com>
|
2008-11-20 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* infrun.c (resume): If following a fork, also reset regcache,
|
* infrun.c (resume): If following a fork, also reset regcache,
|
||||||
|
14
gdb/frame.c
14
gdb/frame.c
@ -1392,8 +1392,7 @@ get_prev_frame_1 (struct frame_info *this_frame)
|
|||||||
/* Debug routine to print a NULL frame being returned. */
|
/* Debug routine to print a NULL frame being returned. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
frame_debug_got_null_frame (struct ui_file *file,
|
frame_debug_got_null_frame (struct frame_info *this_frame,
|
||||||
struct frame_info *this_frame,
|
|
||||||
const char *reason)
|
const char *reason)
|
||||||
{
|
{
|
||||||
if (frame_debug)
|
if (frame_debug)
|
||||||
@ -1482,7 +1481,7 @@ get_prev_frame (struct frame_info *this_frame)
|
|||||||
|
|
||||||
Per the above, this code shouldn't even be called with a NULL
|
Per the above, this code shouldn't even be called with a NULL
|
||||||
THIS_FRAME. */
|
THIS_FRAME. */
|
||||||
frame_debug_got_null_frame (gdb_stdlog, this_frame, "this_frame NULL");
|
frame_debug_got_null_frame (this_frame, "this_frame NULL");
|
||||||
return current_frame;
|
return current_frame;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1510,7 +1509,7 @@ get_prev_frame (struct frame_info *this_frame)
|
|||||||
user later decides to enable unwinds past main(), that will
|
user later decides to enable unwinds past main(), that will
|
||||||
automatically happen. */
|
automatically happen. */
|
||||||
{
|
{
|
||||||
frame_debug_got_null_frame (gdb_stdlog, this_frame, "inside main func");
|
frame_debug_got_null_frame (this_frame, "inside main func");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1521,8 +1520,7 @@ get_prev_frame (struct frame_info *this_frame)
|
|||||||
frame. */
|
frame. */
|
||||||
if (this_frame->level + 2 > backtrace_limit)
|
if (this_frame->level + 2 > backtrace_limit)
|
||||||
{
|
{
|
||||||
frame_debug_got_null_frame (gdb_stdlog, this_frame,
|
frame_debug_got_null_frame (this_frame, "backtrace limit exceeded");
|
||||||
"backtrace limit exceeded");
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1552,7 +1550,7 @@ get_prev_frame (struct frame_info *this_frame)
|
|||||||
&& get_frame_type (this_frame) != DUMMY_FRAME && this_frame->level >= 0
|
&& get_frame_type (this_frame) != DUMMY_FRAME && this_frame->level >= 0
|
||||||
&& inside_entry_func (this_frame))
|
&& inside_entry_func (this_frame))
|
||||||
{
|
{
|
||||||
frame_debug_got_null_frame (gdb_stdlog, this_frame, "inside entry func");
|
frame_debug_got_null_frame (this_frame, "inside entry func");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1564,7 +1562,7 @@ get_prev_frame (struct frame_info *this_frame)
|
|||||||
&& get_frame_type (get_next_frame (this_frame)) == NORMAL_FRAME
|
&& get_frame_type (get_next_frame (this_frame)) == NORMAL_FRAME
|
||||||
&& get_frame_pc (this_frame) == 0)
|
&& get_frame_pc (this_frame) == 0)
|
||||||
{
|
{
|
||||||
frame_debug_got_null_frame (gdb_stdlog, this_frame, "zero PC");
|
frame_debug_got_null_frame (this_frame, "zero PC");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user