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: [RFC] rx sim: Print load statistics


On Thursday 01 March 2012 19:38:42 Kevin Buettner wrote:
> The patch below updates the rx sim to print load statistics.  I.e.
> instead of printing nothing when the gdb "load" command is invoked,
> it'll now do something like this:

blah, just re-implementing more and more of common :/

> --- sim/rx/gdb-if.c	4 Jan 2012 08:28:24 -0000	1.13
> +++ sim/rx/gdb-if.c	2 Mar 2012 00:30:36 -0000
> 
>    if (abfd)
>      {
> -      rx_load (abfd);
> +      rx_load (abfd, 0);

these should be NULL rather than 0 for pointers

> --- sim/rx/load.c	4 Jan 2012 08:28:24 -0000	1.6
> +++ sim/rx/load.c	2 Mar 2012 00:30:36 -0000
>
> +/* Given a file offset, look up the section name.  */
> +static char *
> +find_section_name_by_offset (bfd *abfd, file_ptr filepos)

should return const char *
-mike

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]