mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 16:53:50 +08:00
Use bool for dwarf2_has_info
This changes dwarf2_has_info to return bool.
This commit is contained in:
@ -20,7 +20,7 @@
|
|||||||
#ifndef DWARF2_PUBLIC_H
|
#ifndef DWARF2_PUBLIC_H
|
||||||
#define DWARF2_PUBLIC_H
|
#define DWARF2_PUBLIC_H
|
||||||
|
|
||||||
extern int dwarf2_has_info (struct objfile *,
|
extern bool dwarf2_has_info (struct objfile *,
|
||||||
const struct dwarf2_debug_sections *,
|
const struct dwarf2_debug_sections *,
|
||||||
bool = false);
|
bool = false);
|
||||||
|
|
||||||
|
@ -1549,13 +1549,13 @@ dwarf2_per_objfile::set_symtab (const dwarf2_per_cu_data *per_cu,
|
|||||||
interposition is possible and so symbol values must follow copy
|
interposition is possible and so symbol values must follow copy
|
||||||
relocation rules. */
|
relocation rules. */
|
||||||
|
|
||||||
int
|
bool
|
||||||
dwarf2_has_info (struct objfile *objfile,
|
dwarf2_has_info (struct objfile *objfile,
|
||||||
const struct dwarf2_debug_sections *names,
|
const struct dwarf2_debug_sections *names,
|
||||||
bool can_copy)
|
bool can_copy)
|
||||||
{
|
{
|
||||||
if (objfile->flags & OBJF_READNEVER)
|
if (objfile->flags & OBJF_READNEVER)
|
||||||
return 0;
|
return false;
|
||||||
|
|
||||||
dwarf2_per_objfile *per_objfile = get_dwarf2_per_objfile (objfile);
|
dwarf2_per_objfile *per_objfile = get_dwarf2_per_objfile (objfile);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user