aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2014-08-04 14:26:25 +0800
committerYao Qi <yao@codesourcery.com>2014-08-15 07:38:19 +0800
commit783cecc8b3b4aeb00b901cdc0883f93839ac222b (patch)
tree310071a41a28a89f9fbc533c9f7f7d69be4af86b /gdb/dwarf2read.c
parent60ac5798c80a8c0e51c34756ade51c6312add573 (diff)
downloadgdb-783cecc8b3b4aeb00b901cdc0883f93839ac222b.zip
gdb-783cecc8b3b4aeb00b901cdc0883f93839ac222b.tar.gz
gdb-783cecc8b3b4aeb00b901cdc0883f93839ac222b.tar.bz2
Remove pst from dwarf_decode_lines_1
Hi, Parameter 'pst' of function dwarf_decode_lines_1 isn't used except to compute decode_for_pst_p, which has been got in the caller dwarf_decode_lines. I wonder it would be good if we just pass 'decode_for_pst_p'. gdb: 2014-08-15 Yao Qi <yao@codesourcery.com> * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'. Add parameter 'decode_for_pst_p'. Callers update.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index abe47d1..cb68a4a 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -17177,7 +17177,7 @@ noop_record_line (struct subfile *subfile, int line, CORE_ADDR pc)
static void
dwarf_decode_lines_1 (struct line_header *lh, const char *comp_dir,
- struct dwarf2_cu *cu, struct partial_symtab *pst)
+ struct dwarf2_cu *cu, const int decode_for_pst_p)
{
const gdb_byte *line_ptr, *extended_end;
const gdb_byte *line_end;
@@ -17187,7 +17187,6 @@ dwarf_decode_lines_1 (struct line_header *lh, const char *comp_dir,
struct objfile *objfile = cu->objfile;
bfd *abfd = objfile->obfd;
struct gdbarch *gdbarch = get_objfile_arch (objfile);
- const int decode_for_pst_p = (pst != NULL);
struct subfile *last_subfile = NULL;
void (*p_record_line) (struct subfile *subfile, int line, CORE_ADDR pc)
= record_line;
@@ -17501,7 +17500,7 @@ dwarf_decode_lines (struct line_header *lh, const char *comp_dir,
struct subfile *first_subfile = current_subfile;
if (want_line_info)
- dwarf_decode_lines_1 (lh, comp_dir, cu, pst);
+ dwarf_decode_lines_1 (lh, comp_dir, cu, decode_for_pst_p);
if (decode_for_pst_p)
{