OSDN Git Service

Avoid quadratic behavior when computing the value of a register.
authorbrobecke <brobecke>
Wed, 9 Sep 2009 17:39:20 +0000 (17:39 +0000)
committerbrobecke <brobecke>
Wed, 9 Sep 2009 17:39:20 +0000 (17:39 +0000)
commit824713e73dca2189307428428b9937294da17849
tree0da5e33d9ede20dd8e686fcd2cd7fd93aeb456f5
parentddbc08befd203d2f047cd65e4b54f7265510ce10
    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