aboutsummaryrefslogtreecommitdiff
path: root/gas/macro.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2024-05-13 09:56:09 +0100
committerNick Clifton <nickc@redhat.com>2024-05-13 09:56:09 +0100
commit83b972fc272db31ab48aa5cde84f47c98868d7c8 (patch)
tree535c22f6be9bf53b1475e9490681ed04987d4ae6 /gas/macro.h
parent7143ed12051c7e432d93f83b387a26ded3d8ddae (diff)
downloadgdb-83b972fc272db31ab48aa5cde84f47c98868d7c8.zip
gdb-83b972fc272db31ab48aa5cde84f47c98868d7c8.tar.gz
gdb-83b972fc272db31ab48aa5cde84f47c98868d7c8.tar.bz2
Add new assembler macro pseudo-variable \+ which counts the number of times a macro has been invoked.
Diffstat (limited to 'gas/macro.h')
-rw-r--r--gas/macro.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/gas/macro.h b/gas/macro.h
index a12fb89..e87f64e 100644
--- a/gas/macro.h
+++ b/gas/macro.h
@@ -60,13 +60,14 @@ typedef struct formal_struct {
typedef struct macro_struct
{
- sb sub; /* Substitution text. */
- int formal_count; /* Number of formal args. */
- formal_entry *formals; /* List of formal_structs. */
- htab_t formal_hash; /* Hash table of formals. */
- const char *name; /* Macro name. */
- const char *file; /* File the macro was defined in. */
- unsigned int line; /* Line number of definition. */
+ sb sub; /* Substitution text. */
+ int formal_count; /* Number of formal args. */
+ formal_entry * formals; /* List of formal_structs. */
+ htab_t formal_hash; /* Hash table of formals. */
+ const char * name; /* Macro name. */
+ const char * file; /* File the macro was defined in. */
+ unsigned int line; /* Line number of definition. */
+ unsigned int count; /* Invocation count. */
} macro_entry;
/* Whether any macros have been defined. */