Commit 9f27ca8b by Jim Wilson

(sdbout_begin_block): Don't output block for function level scope unless…

(sdbout_begin_block): Don't output block for function level scope unless MIPS_DEBUGGING_INFO is defined.

(sdbout_begin_block): Don't output block for function
level scope unless MIPS_DEBUGGING_INFO is defined.
(sdbout_end_block): Likewise.  Add new parameter n for the block
number.

From-SVN: r6966
parent bdbc824c
...@@ -1397,7 +1397,15 @@ sdbout_begin_block (file, line, n) ...@@ -1397,7 +1397,15 @@ sdbout_begin_block (file, line, n)
{ {
tree decl = current_function_decl; tree decl = current_function_decl;
MAKE_LINE_SAFE (line); MAKE_LINE_SAFE (line);
PUT_SDB_BLOCK_START (line - sdb_begin_function_line);
/* The SCO compiler does not emit a separate block for the function level
scope, so we avoid it here also. However, mips ECOFF compilers do emit
a separate block, so we retain it when MIPS_DEBUGGING_INFO is defined. */
#ifndef MIPS_DEBUGGING_INFO
if (n != 1)
#endif
PUT_SDB_BLOCK_START (line - sdb_begin_function_line);
if (n == 1) if (n == 1)
{ {
/* Include the outermost BLOCK's variables in block 1. */ /* Include the outermost BLOCK's variables in block 1. */
...@@ -1422,11 +1430,19 @@ sdbout_begin_block (file, line, n) ...@@ -1422,11 +1430,19 @@ sdbout_begin_block (file, line, n)
/* Describe the end line-number of an internal block within a function. */ /* Describe the end line-number of an internal block within a function. */
void void
sdbout_end_block (file, line) sdbout_end_block (file, line, n)
FILE *file; FILE *file;
int line; int line;
int n;
{ {
MAKE_LINE_SAFE (line); MAKE_LINE_SAFE (line);
/* The SCO compiler does not emit a separate block for the function level
scope, so we avoid it here also. However, mips ECOFF compilers do emit
a separate block, so we retain it when MIPS_DEBUGGING_INFO is defined. */
#ifndef MIPS_DEBUGGING_INFO
if (n != 1)
#endif
PUT_SDB_BLOCK_END (line - sdb_begin_function_line); PUT_SDB_BLOCK_END (line - sdb_begin_function_line);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment