This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug python/16281] New: python frame comparison should take inferior into account (including restarted inferior)


https://sourceware.org/bugzilla/show_bug.cgi?id=16281

            Bug ID: 16281
           Summary: python frame comparison should take inferior into
                    account (including restarted inferior)
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
          Assignee: unassigned at sourceware dot org
          Reporter: xdje42 at gmail dot com

python's frame comparison support just calls frame_id_eq, but that can return
true for the "same" frame in different inferiors.

repro:
bash$ gdb hello
(gdb) start
(gdb) py f1 = gdb.selected_frame ()
(gdb) add-infer -exec hello
(gdb) infer 2
(gdb) start
(gdb) py f2 = gdb.selected_frame ()
(gdb) py print f1 == f2
True

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]