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 v4 4/6] Support software single step on ARM in GDBServer.


Antoine Tremblay <antoine.tremblay@ericsson.com> writes:

> byte_order fields seemed like a good idea at first and I liked your
> suggested change for read_memory_unsigned_integer.
>
> However GDB is using 2 byte orders : byte_order (for data) and
> byte_order_for_code to support BE8 endianness.
>
> This complicates things a bit since in common code I can't call:
>
> self->ops->read_memory_unsigned_integer (self, loc, 2)
>
> I would have no way to specify if it should read with byte_order or
> with byte_order_for_code.

We can use two methods for reading data and reading instructions
respectively, and we can hide byte_order and byte_order_for_code still.
Anyway, I strong opinion on this, either way is OK to me.

> const gdb_byte *arm_thumb2_breakpoint: This one needs to stay, since
> while on GDB's side it could be computed through regcache/gdbarch, on
> GDBServer's side it's directly a variable.

OK.

-- 
Yao (éå)


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