mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-24 03:14:08 +08:00
*** empty log message ***
From-SVN: r194
This commit is contained in:
parent
ab835497c9
commit
dd3c3a97a5
@ -3,3 +3,41 @@
|
||||
/* BSD UN*X systems use BSD STABS debugging info. */
|
||||
|
||||
#define DBX_DEBUGGING_INFO
|
||||
|
||||
#define ASCII_DATA_ASM_OP ".byte"
|
||||
#define ASM_OUTPUT_ASCII(f, p, size) \
|
||||
{ register unsigned i; \
|
||||
int inside; \
|
||||
inside = FALSE; \
|
||||
for (i = 0; i < (size); i++) { \
|
||||
if (i % 64 == 0) { \
|
||||
if (i != 0) { \
|
||||
if (inside) \
|
||||
putc('"', (f)); \
|
||||
putc('\n', (f)); \
|
||||
inside = FALSE; \
|
||||
} \
|
||||
fprintf((f), "%s ", ASCII_DATA_ASM_OP); \
|
||||
} \
|
||||
if ((p)[i] < 32 || (p)[i] == '\\' || (p)[i] == '"' || (p)[i] >= 127) { \
|
||||
if (inside) { \
|
||||
putc('"', (f)); \
|
||||
inside = FALSE; \
|
||||
} \
|
||||
if (i % 64 != 0) \
|
||||
putc(',', (f)); \
|
||||
fprintf((f), "%d", (p)[i]); \
|
||||
} else { \
|
||||
if (!inside) { \
|
||||
if (i % 64 != 0) \
|
||||
putc(',', (f)); \
|
||||
putc('"', (f)); \
|
||||
inside = TRUE; \
|
||||
} \
|
||||
putc((p)[i], (f)); \
|
||||
} \
|
||||
} \
|
||||
if (inside) \
|
||||
putc('"', (f)); \
|
||||
putc('\n', (f)); \
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user