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 v2 1/7] Add breakpoint_from_pc target_ops for software breakpoints in GDBServer.


On 10/05/2015 05:44 PM, Antoine Tremblay wrote:
> +static const unsigned char *

gdb_byte?

> +aarch64_breakpoint_from_pc (CORE_ADDR *pcptr, int *len)
> +{
> +  *len = aarch64_breakpoint_len;
> +  return (const unsigned char *) &aarch64_breakpoint;

... and then this cast goes away.

> +}
> +

> +static const unsigned char *
> +arm_breakpoint_from_pc (CORE_ADDR *pcptr, int *len)
> +{

Missing '/* Implementation of ... */' comment.

> +}
>  struct linux_target_ops the_low_target = {

Missing empty line.


> +
> +  /* Return the raw breakpoint for this target based on PC.  The PCPTR is
> +     ajusted to the real memory location in case a flag was present in the

"adjusted".  Suggest an example, like "a flag (e.g., the Thumb bit on ARM) was"

> +     PC.  */
> +  const unsigned char *(*breakpoint_from_pc) (CORE_ADDR *pcptr, int *lenptr);

Thanks,
Pedro Alves


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