From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from kwanyin.sergiodj.net (kwanyin.sergiodj.net [158.69.185.54]) by server2.sourceware.org (Postfix) with ESMTPS id 6AC13389F4EF for ; Sun, 8 Mar 2020 20:07:13 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [binutils-gdb] Move dwarf2_get_die_type declaration to dwarf2/read.h From: gdb-buildbot@sergiodj.net To: gdb-testers@sourceware.org Message-Id: <8cb5117ccfa578e6c531fcad4851be0f13b53f3b@gdb-build> Date: Sun, 08 Mar 2020 16:07:11 -0400 X-Spam-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-testers@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-testers mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Mar 2020 20:07:14 -0000 *** TEST RESULTS FOR COMMIT 8cb5117ccfa578e6c531fcad4851be0f13b53f3b *** commit 8cb5117ccfa578e6c531fcad4851be0f13b53f3b Author: Simon Marchi AuthorDate: Tue Feb 25 00:13:31 2020 -0500 Commit: Simon Marchi CommitDate: Tue Feb 25 00:13:31 2020 -0500 Move dwarf2_get_die_type declaration to dwarf2/read.h Since its implementation is in dwarf2/read.c, its declaration belongs in dwarf2/read.h. Move the documentation to the .h at the same time. gdb/ChangeLog: * loc.h (dwarf2_get_die_type): Move to... * read.h (dwarf2_get_die_type): ... here. * read.c (dwarf2_get_die_type): Move doc to header. diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 52dfa33aef..01cd38d01a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2020-02-25 Simon Marchi + + * loc.h (dwarf2_get_die_type): Move to... + * read.h (dwarf2_get_die_type): ... here. + * read.c (dwarf2_get_die_type): Move doc to header. + 2020-02-25 Joel Brobecker * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and diff --git a/gdb/dwarf2/loc.h b/gdb/dwarf2/loc.h index 4514fa93c7..ab071c21b3 100644 --- a/gdb/dwarf2/loc.h +++ b/gdb/dwarf2/loc.h @@ -59,9 +59,6 @@ extern const gdb_byte *dwarf2_fetch_constant_bytes (sect_offset, struct type *dwarf2_fetch_die_type_sect_off (sect_offset, struct dwarf2_per_cu_data *); -struct type *dwarf2_get_die_type (cu_offset die_offset, - struct dwarf2_per_cu_data *per_cu); - /* Find the frame base information for FRAMEFUNC at PC. START is an out parameter which is set to point to the DWARF expression to compute. LENGTH is an out parameter which is set to the length of diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index d97956ecb6..8c40ddb727 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -22510,8 +22510,7 @@ dwarf2_fetch_die_type_sect_off (sect_offset sect_off, return die_type (die, cu); } -/* Return the type of the DIE at DIE_OFFSET in the CU named by - PER_CU. */ +/* See read.h. */ struct type * dwarf2_get_die_type (cu_offset die_offset, diff --git a/gdb/dwarf2/read.h b/gdb/dwarf2/read.h index f7e740c3e9..640e19e4a0 100644 --- a/gdb/dwarf2/read.h +++ b/gdb/dwarf2/read.h @@ -523,6 +523,12 @@ struct dwz_file extern struct dwz_file *dwarf2_get_dwz_file (struct dwarf2_per_objfile *dwarf2_per_objfile); +/* Return the type of the DIE at DIE_OFFSET in the CU named by + PER_CU. */ + +struct type *dwarf2_get_die_type (cu_offset die_offset, + struct dwarf2_per_cu_data *per_cu); + /* When non-zero, dump line number entries as they are read in. */ extern unsigned int dwarf_line_debug;