Avoid quadratic behavior when computing the value of a register.
authorJoel Brobecker <brobecker@gnat.com>
Wed, 9 Sep 2009 17:39:21 +0000 (17:39 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 9 Sep 2009 17:39:21 +0000 (17:39 +0000)
commitb83e9eb71cb4a21b31f8f47782da821a5a0ddb32
treeb3b6bb6a825818df86bbd1aea8ce5c306d1c18d9
parent9daa0d29f53b58a9106995a5441cae105d8cb72b
    Avoid quadratic behavior when computing the value of a register.
        * frame.c (frame_stash): New static constant.
        (frame_stash_add, frame_stash_find, frame_stash_invalidate):
        New functions.
        (get_frame_id): Minor reformatting. Add the frame to the frame stash.
        (frame_find_by_id): Search the frame stash first before walking all
        frames starting from te current_frame.
        (reinit_frame_stash): Add call to frame_stash_invalidate ();
gdb/ChangeLog
gdb/frame.c