This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] sim: profile: implement --profile-file backend


On Wednesday 21 April 2010 21:49:34 Hans-Peter Nilsson wrote:
> Your change broke at least cris-elf, iq2000-elf and m32r-elf,
> as you didn't adjust calls in sim/common/cgen-scache.c.

i'm build+check testing these sim targets:
	arm avr cr16 frv h8300 m32c mips mn10300 moxie ppc rx sh v850
those all work, but i guess none use cgen-scache

i didnt test cris iq2000 m32r because they werent even building for me in the 
past (independent of my changes).  they seem to now though, so ive added them 
to the above list.

ive added this fix to cvs.
-mike

2010-04-21  Mike Frysinger  <vapier@gentoo.org>

	* profile.c (sim_profile_print_bar): Add cpu argument.

RCS file: /cvs/src/src/sim/common/cgen-scache.c,v
retrieving revision 1.7
diff -u -p -r1.7 cgen-scache.c
--- sim/common/cgen-scache.c	1 Jan 2010 10:03:27 -0000	1.7
+++ sim/common/cgen-scache.c	22 Apr 2010 02:17:08 -0000
@@ -466,7 +466,7 @@ scache_print_profile (SIM_CPU *cpu, int 
 			 i,
 			 max_val < 10000 ? 5 : 10,
 			 sim_add_commas (buf, sizeof (buf), lengths[i]));
-	  sim_profile_print_bar (sd, PROFILE_HISTOGRAM_WIDTH,
+	  sim_profile_print_bar (sd, cpu, PROFILE_HISTOGRAM_WIDTH,
 				 lengths[i], max_val);
 	  sim_io_printf (sd, "\n");
 	}

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]