Skip to content

Intended behavior of Variables window? #9

Open

Description

@chrstphrchvz

There's a few things I notice about the Variables window:

  • The list variables (i.e. which labels) is only updated automatically when loading a source file in a new/empty session or when opening another session, not when recompiling, opening another source file, or when opening a new session.
  • Every label or #define is selected, rather than just those corresponding to certain pseudo-opcodes (e.g. ds, rmb, fcc), so it's a long list by default for any programs using e.g. Reg9s12.h; although I can see how it's necessary to include labels for other cases--given the nature of labels, it might be hard to tell exactly what is data (variable or array), instructions, or in cases such as self-modifying code, both.

I'm not sure how much of this is intentional; I have yet to look closely at how this is implemented in auto_select_variables(). So at a minimum this might be an undocumented feature.

Since one might edit the Variables window by hand, it's fine to leave it as it is where it doesn't reselect, but it may be useful to add a button that allows the user to invoke variable reselection.

Activity

  1. hotwolf commented on Apr 8, 2015

    @hotwolf
    Owner

    The automatic generation of a variable list is just an attempt to display something useful by default. It is intended to be replaced by a user defined variable list. Maybe it would even be better to leave the variable list empty by default.
    As for the types of symbols to display, HSW12 symbols only have a name and a value. HSW12 does provide any further information to distinguish labels from register definitions. So it's not easy to remove useless symbols from the auto-generated variable list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions