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 09/15] PIE: symbol-less (exec-file only) executables


>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:

Jan> I do not find it so important but at least exec_bfd should be
Jan> displayed to the user according to the current displacement IMO.

Sounds reasonable.

Jan> +	  if (bfd_get_section_vma (abfd, asect) <= abfd->start_address
Jan> +	      && abfd->start_address < bfd_get_section_vma (abfd, asect)
Jan> +				       + bfd_get_section_size (asect))

The RHS of the "<" needs parens if it is going to be split.

Jan> +      printf_filtered (_("\tEntry point: %s\n"),
Jan> +		       paddress (gdbarch, bfd_get_start_address (abfd)
Jan> +					  + displacement));

Likewise, parens around the second argument to paddress, or different
splitting.

This is ok with the formatting nits fixed.
Thanks.

Tom


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