2005-11-19 Jim Blandy <jimb@redhat.com>

* tracepoint.c (stringify_collection_list): Indicate absolute
	memory ranges by using "-1" as the memory range's base register
	number, not "FFFFFFFF".
This commit is contained in:
Jim Blandy 2005-11-19 18:57:28 +00:00
parent 9c23835799
commit d194871675
2 changed files with 17 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2005-11-19 Jim Blandy <jimb@redhat.com>
* tracepoint.c (stringify_collection_list): Indicate absolute
memory ranges by using "-1" as the memory range's base register
number, not "FFFFFFFF".
2005-11-19 Randolph Chung <tausq@debian.org>
* dwarf2loc.c (dwarf2_tracepoint_var_ref): Remove extra add for

View file

@ -1437,10 +1437,17 @@ stringify_collection_list (struct collection_list *list, char *string)
end = temp_buf;
}
sprintf (end, "M%X,%s,%lX",
list->list[i].type,
tmp2,
(long) (list->list[i].end - list->list[i].start));
{
bfd_signed_vma length = list->list[i].end - list->list[i].start;
/* The "%X" conversion specifier expects an unsigned argument,
so passing -1 to it directly gives you "FFFFFFFF" (or more,
depending on sizeof (unsigned)). Special-case it. */
if (list->list[i].type == -1)
sprintf (end, "M-1,%s,%lX", tmp2, (long) length);
else
sprintf (end, "M%X,%s,%lX", list->list[i].type, tmp2, (long) length);
}
count += strlen (end);
end = temp_buf + count;