diff options
author | Pierre Muller <muller@sourceware.org> | 2009-03-25 22:38:46 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2009-03-25 22:38:46 +0000 |
commit | 549ba0f80ae5ecc99d6862ca8e8b2b7f610b3608 (patch) | |
tree | ff59128a63a81cbd120f78f5801b16e2bada865a /gdb/printcmd.c | |
parent | 68c976001a2ec6b2cd4a53e0ef3714e5f38045d5 (diff) | |
download | gdb-549ba0f80ae5ecc99d6862ca8e8b2b7f610b3608.zip gdb-549ba0f80ae5ecc99d6862ca8e8b2b7f610b3608.tar.gz gdb-549ba0f80ae5ecc99d6862ca8e8b2b7f610b3608.tar.bz2 |
ARI fix: "xasprintf" rule.
* printcmd.c (sym_info): Replace xasprintf by xstrprintf.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 750244e..8403d5f 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -1036,9 +1036,9 @@ sym_info (char *arg, int from_tty) /* Don't print the offset if it is zero. We assume there's no need to handle i18n of "sym + offset". */ if (offset) - xasprintf (&loc_string, "%s + %u", msym_name, offset); + loc_string = xstrprintf ("%s + %u", msym_name, offset); else - xasprintf (&loc_string, "%s", msym_name); + loc_string = xstrprintf ("%s", msym_name); /* Use a cleanup to free loc_string in case the user quits a pagination request inside printf_filtered. */ |