diff options
author | Alan Modra <amodra@gmail.com> | 2001-10-20 13:49:00 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2001-10-20 13:49:00 +0000 |
commit | b47c42085628603e890a783b8d2a612d19f66396 (patch) | |
tree | 8ce3bd00189f2d2b7172db7735c5f7587b9e1fb9 /ld/ldmain.c | |
parent | fd521b4750cb0df1c841700637de89a7b25cccf3 (diff) | |
download | gdb-b47c42085628603e890a783b8d2a612d19f66396.zip gdb-b47c42085628603e890a783b8d2a612d19f66396.tar.gz gdb-b47c42085628603e890a783b8d2a612d19f66396.tar.bz2 |
* ldgram.y (mri_script_command): Surround processing of INCLUDE
with ldlex_script, ldlex_popstate.
(ifile_p1): Likewise.
* ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
correct slot.
(lex_push_file): Save current lineno to lineno_stack. Set lineno
to 1. Don't BEGIN(SCRIPT).
(lex_redirect): Similarly.
* ldmain.c (main): Set yydebug non-zero if YYDEBUG.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r-- | ld/ldmain.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c index 578e34f..462e16a 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -196,6 +196,13 @@ main (argc, argv) xexit (1); } +#if YYDEBUG + { + extern int yydebug; + yydebug = 1; + } +#endif + /* Initialize the data about options. */ trace_files = trace_file_tries = version_printed = false; whole_archive = false; |