diff options
author | Alan Modra <amodra@gmail.com> | 2000-05-26 13:11:57 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-05-26 13:11:57 +0000 |
commit | 5af11cab92a8d4ed9b0cd7a46f05cf02a8ba901e (patch) | |
tree | 43c01869523de4ad682493e6674e5e8a9fed1804 /gprof/sym_ids.c | |
parent | 010c70e10fb422ae6151a8808215a122f461fce8 (diff) | |
download | gdb-5af11cab92a8d4ed9b0cd7a46f05cf02a8ba901e.zip gdb-5af11cab92a8d4ed9b0cd7a46f05cf02a8ba901e.tar.gz gdb-5af11cab92a8d4ed9b0cd7a46f05cf02a8ba901e.tar.bz2 |
Eli Zaretskii's DOSish file name patches.
Diffstat (limited to 'gprof/sym_ids.c')
-rw-r--r-- | gprof/sym_ids.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gprof/sym_ids.c b/gprof/sym_ids.c index 412c8d4..1e05914 100644 --- a/gprof/sym_ids.c +++ b/gprof/sym_ids.c @@ -201,7 +201,10 @@ DEFUN (match, (pattern, sym), Sym * pattern AND Sym * sym) { return (pattern->file ? pattern->file == sym->file : TRUE) && (pattern->line_num ? pattern->line_num == sym->line_num : TRUE) - && (pattern->name ? strcmp (pattern->name, sym->name) == 0 : TRUE); + && (pattern->name + ? strcmp (pattern->name, + sym->name+(discard_underscores && sym->name[0] == '_')) == 0 + : TRUE); } |