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] Use mmap instead of obstack_alloc for dwarf debug sections.


>>>>> "Paul" == Paul Pluzhnikov <ppluzhnikov@google.com> writes:

I like this patch quite a bit.

It has a number of minor formatting problems, mostly missing spaces
before open parens.

Paul> +      caddr_t retbuf = mmap (0, map_length, PROT_READ, MAP_PRIVATE,
Paul> +			     fileno ((FILE *)abfd->iostream),
Paul> +			     pg_offset);

I don't know for sure, but I assume that it is not valid in general to
cast iostream like this.

Tom


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