diff options
author | Tom Tromey <tom@tromey.com> | 2020-10-12 15:53:16 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-10-12 20:18:47 -0600 |
commit | 2d128614d4101354d8125449539dc3255c37d345 (patch) | |
tree | 4d07bd7567401171c8ea9edd5cee5170b0a0f3b9 /gdb/corelow.c | |
parent | bb2a67773c5e06545c39a6373be720c7d3d9eeb5 (diff) | |
download | binutils-2d128614d4101354d8125449539dc3255c37d345.zip binutils-2d128614d4101354d8125449539dc3255c37d345.tar.gz binutils-2d128614d4101354d8125449539dc3255c37d345.tar.bz2 |
build_section_table cannot fail
I noticed that build_section_table cannot fail. This patch changes it
to return a target_section_table and then removes the dead code.
gdb/ChangeLog
2020-10-12 Tom Tromey <tom@tromey.com>
* solib.c (solib_map_sections): Update.
* record-full.c (record_full_core_open_1): Update.
* exec.h (build_section_table): Return a target_section_table.
* exec.c (exec_file_attach): Update.
(build_section_table): Return a target_section_table.
* corelow.c (core_target::core_target): Update.
* bfd-target.c (target_bfd::target_bfd): Update.
Diffstat (limited to 'gdb/corelow.c')
-rw-r--r-- | gdb/corelow.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/corelow.c b/gdb/corelow.c index 554561d..193dccb 100644 --- a/gdb/corelow.c +++ b/gdb/corelow.c @@ -161,9 +161,7 @@ core_target::core_target () bfd_get_filename (core_bfd)); /* Find the data section */ - if (build_section_table (core_bfd, &m_core_section_table)) - error (_("\"%s\": Can't find sections: %s"), - bfd_get_filename (core_bfd), bfd_errmsg (bfd_get_error ())); + m_core_section_table = build_section_table (core_bfd); build_file_mappings (); } |