+2016-09-18 Pedro Alves <palves@redhat.com>
+
+ * breakpoint.c (hardware_watchpoint_inserted_in_range): Explicitly
+ specify the std:min/std::max specialization.
+ * exec.c (section_table_read_available_memory): Likewise.
+ * remote.c (remote_read_qxfer): Likewise.
+ * target.c (simple_verify_memory): Likewise.
+
2016-09-16 Simon Marchi <simark@simark.ca>
* infrun.c (restore_current_uiout_cleanup): Move to ui-out.c.
CORE_ADDR l, h;
/* Check for intersection. */
- l = std::max (loc->address, addr);
- h = std::min (loc->address + loc->length, addr + len);
+ l = std::max<CORE_ADDR> (loc->address, addr);
+ h = std::min<CORE_ADDR> (loc->address + loc->length, addr + len);
if (l < h)
return 1;
}
enum target_xfer_status status;
/* Get the intersection window. */
- end = std::min (offset + len, r->start + r->length);
+ end = std::min<CORE_ADDR> (offset + len, r->start + r->length);
gdb_assert (end - offset <= len);
may not, since we don't know how much of it will need to be escaped;
the target is free to respond with slightly less data. We subtract
five to account for the response type and the protocol frame. */
- n = std::min (get_remote_packet_size () - 5, len);
+ n = std::min<LONGEST> (get_remote_packet_size () - 5, len);
snprintf (rs->buf, get_remote_packet_size () - 4, "qXfer:%s:read:%s:%s,%s",
object_name, annex ? annex : "",
phex_nz (offset, sizeof offset),
ULONGEST xfered_len;
enum target_xfer_status status;
gdb_byte buf[1024];
- ULONGEST howmuch = std::min (sizeof (buf), size - total_xfered);
+ ULONGEST howmuch = std::min<ULONGEST> (sizeof (buf), size - total_xfered);
status = target_xfer_partial (ops, TARGET_OBJECT_MEMORY, NULL,
buf, NULL, lma + total_xfered, howmuch,