Commit f2870fb6 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Merge branch 'gdb' into 'redox'

Fix compilation of GDB for Redox

See merge request !3
parents 5a5f6e16 cf524b11
......@@ -3884,7 +3884,7 @@ case "${target}" in
noconfigdirs="$noconfigdirs ld"
;;
*-*-redox)
noconfigdirs="$noconfigdirs readline gdb"
noconfigdirs="$noconfigdirs"
;;
esac
......
......@@ -732,6 +732,11 @@ x86_64-*-openbsd*)
x86_64-*-rtems*)
gdb_target_obs="${amd64_tobjs} ${i386_tobjs} i386-bsd-tdep.o"
;;
x86_64-*-redox*)
# Target: Redox x86-64
gdb_target_obs="${amd64_tobjs}"
build_gdbserver=no
;;
xtensa*-*-linux*)
# Target: GNU/Linux Xtensa
gdb_target_obs="xtensa-linux-tdep.o symfile-mem.o linux-tdep.o"
......
......@@ -705,7 +705,7 @@ public:
gdb_assert (m_abbrev_table.empty ());
const size_t name_count = m_name_to_value_set.size ();
m_bucket_table.resize
(std::pow (2, std::ceil (std::log2 (name_count * 4 / 3))));
(std::pow (2, std::ceil (log2 (name_count * 4 / 3))));
m_hash_table.reserve (name_count);
m_name_table_string_offs.reserve (name_count);
m_name_table_entry_offs.reserve (name_count);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment