diff options
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 48ced2a..cfe2e9b 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -1623,6 +1623,11 @@ typedef struct { /* Current position in bytes. */ unsigned int argindex; +#ifdef MAKEVA_EXTRA_INFO + /* For host dependent information. */ + MAKEVA_EXTRA_INFO +#endif + char arg_bytes[1]; } makeva_list; @@ -1634,7 +1639,9 @@ makeva_size (nargs, max_arg_size) unsigned int nargs; unsigned int max_arg_size; { - return sizeof (makeva_list) + nargs * max_arg_size; + return sizeof (makeva_list) + nargs * max_arg_size + /* The PA might need up to this much for alignment. */ + + max_arg_size - 1; } /* Start working on LIST with NARGS arguments and whose largest |