forked from Imagelibrary/binutils-gdb
Remove gdb_print_host_address
gdb_print_host_address is just a simple wrapper around fprintf_filtered. However, it is readily replaced in all callers by a combination of %s and call to host_address_to_string. This also simplifies the code, so I think it's worthwhile to remove this function. Regression tested on x86-64 Fedora 64.
This commit is contained in:
@@ -405,14 +405,10 @@ fprint_dummy_frames (struct ui_file *file)
|
||||
struct dummy_frame *s;
|
||||
|
||||
for (s = dummy_frame_stack; s != NULL; s = s->next)
|
||||
{
|
||||
gdb_print_host_address (s, file);
|
||||
fprintf_unfiltered (file, ":");
|
||||
fprintf_unfiltered (file, " id=%s", s->id.id.to_string ().c_str ());
|
||||
fprintf_unfiltered (file, ", ptid=%s",
|
||||
target_pid_to_str (s->id.thread->ptid).c_str ());
|
||||
fprintf_unfiltered (file, "\n");
|
||||
}
|
||||
fprintf_unfiltered (file, "%s: id=%s, ptid=%s\n",
|
||||
host_address_to_string (s),
|
||||
s->id.id.to_string ().c_str (),
|
||||
target_pid_to_str (s->id.thread->ptid).c_str ());
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user