UNWIND_NULL_ID is no longer used anywhere. Update comments.
authorPedro Alves <palves@redhat.com>
Fri, 29 Nov 2013 15:25:46 +0000 (15:25 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 29 Nov 2013 15:25:46 +0000 (15:25 +0000)
Unfortunately, UNWIND_NULL_ID is exported to Python as
gdb.FRAME_UNWIND_NULL_ID so we can't really eliminate it.

(I'd assume scripts just check the result of Frame.unwind_stop_reason,
and compare it to gdb.FRAME_UNWIND_NO_REASON.  That at most, they'll
pass the result of Frame.unwind_stop_reason to
gdb.frame_stop_reason_string.  I'd prefer to just get rid of it, but
because we make an API promise, we get to keep this around for
compatibility, in case a script does refer to gdb.FRAME_UNWIND_NULL_ID
directly.)

gdb/
2013-11-29  Pedro Alves  <palves@redhat.com>

* unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.

gdb/doc/
2013-11-29  Pedro Alves  <palves@redhat.com>

* gdb.texinfo (Frames In Python) <gdb.FRAME_UNWIND_NULL_ID>:
Update comment.

gdb/ChangeLog
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/unwind_stop_reasons.def

index 5f0626c..3e02284 100644 (file)
@@ -1,5 +1,9 @@
 2013-11-29  Pedro Alves  <palves@redhat.com>
 
+       * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
+
+2013-11-29  Pedro Alves  <palves@redhat.com>
+
        * breakpoint.c (build_target_condition_list): Release previous
        conditions.
        (build_target_command_list): Release previous commands.
index 141d47f..87d28c0 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-29  Pedro Alves  <palves@redhat.com>
+
+       * gdb.texinfo (Frames In Python) <gdb.FRAME_UNWIND_NULL_ID>:
+       Update comment.
+
 2013-11-24  Yao Qi  <yao@codesourcery.com>
 
        * gdb.texinfo (Caching Remote Data): Document new
index 004c376..ddb4b38 100644 (file)
@@ -26556,7 +26556,9 @@ function to a string. The value can be one of:
 No particular reason (older frames should be available).
 
 @item gdb.FRAME_UNWIND_NULL_ID
-The previous frame's analyzer returns an invalid result.
+The previous frame's analyzer returns an invalid result.  This is no
+longer used by @value{GDBN}, and is kept only for backward
+compatibility.
 
 @item gdb.FRAME_UNWIND_OUTERMOST
 This frame is the outermost.
index ca5a74a..2c3d341 100644 (file)
    or we didn't fail.  */
 SET (UNWIND_NO_REASON, "no reason")
 
-/* The previous frame's analyzer returns an invalid result
-   from this_id.
-
-   FIXME drow/2006-08-16: This is how GDB used to indicate end of
-   stack.  We should migrate to a model where frames always have a
-   valid ID, and this becomes not just an error but an internal
-   error.  But that's a project for another day.  */
+/* This is no longer used anywhere, but it's kept because it's exposed
+   to Python.  This is how GDB used to indicate end of stack.  We've
+   now migrated to a model where frames always have a valid ID.  */
 SET (UNWIND_NULL_ID, "unwinder did not report frame ID")
 
 /* This frame is the outermost.  */