I rather much doubt this is a good idea. cscope has no idea what to do with assembly source files, so there's really not much of a point in trying to add them to do the index. People who really think they need to abuse the tool can always make this kind of change locally.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
-
2011-08-19
status: pending-remind --> open-remind
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
-
2011-08-19
When working on kernel/embedded code, I've found it useful to have cscope take me to the definitions of assembly functions. The cscope website actually encourages users to index assembly files for the Linux kernel: http://cscope.sourceforge.net/large_projects.html. And, in fact, the Linux kernel's own script/tags.sh (used by 'make cscope') indexes .S files.
That said, I'm happy keeping this a local change.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
> useful to have cscope take me to the definitions of assembly functions
That might be a usefule idea --- if cscope had any chance of actually doing that. Which it doesn't.
Cscope has no way of distinguishing a function definition from any other piece of text in assembly source. It doesn't recognize comments, it doesn't recognize _anything_ in there. You'll just be poisoning your index with hundreds of thousands of what cscope believes are globally defined things called "movl", "sub", ".section" and whatever else. That makes no sense at all.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I rather much doubt this is a good idea. cscope has no idea what to do with assembly source files, so there's really not much of a point in trying to add them to do the index. People who really think they need to abuse the tool can always make this kind of change locally.
When working on kernel/embedded code, I've found it useful to have cscope take me to the definitions of assembly functions. The cscope website actually encourages users to index assembly files for the Linux kernel: http://cscope.sourceforge.net/large_projects.html. And, in fact, the Linux kernel's own script/tags.sh (used by 'make cscope') indexes .S files.
That said, I'm happy keeping this a local change.
> useful to have cscope take me to the definitions of assembly functions
That might be a usefule idea --- if cscope had any chance of actually doing that. Which it doesn't.
Cscope has no way of distinguishing a function definition from any other piece of text in assembly source. It doesn't recognize comments, it doesn't recognize _anything_ in there. You'll just be poisoning your index with hundreds of thousands of what cscope believes are globally defined things called "movl", "sub", ".section" and whatever else. That makes no sense at all.