From: Pedro Alves <palves@redhat.com>
To: Simon Marchi <simon.marchi@polymtl.ca>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 1/4] Change field separator in gdbarch.sh
Date: Wed, 19 Apr 2017 10:31:00 -0000 [thread overview]
Message-ID: <c9cf33e6-6da8-1155-1033-b76be48b09eb@redhat.com> (raw)
In-Reply-To: <c5376a499a1173219ef4494551d61d72@polymtl.ca>
On 04/19/2017 05:03 AM, Simon Marchi wrote:
> On 2017-04-18 16:20, Pedro Alves wrote:
>> On 04/16/2017 03:14 PM, Simon Marchi wrote:
>>> --- a/gdb/gdbarch.h
>>> +++ b/gdb/gdbarch.h
>>> @@ -129,7 +129,7 @@ extern void set_gdbarch_bits_big_endian (struct
>>> gdbarch *gdbarch, int bits_big_e
>>>
>>> /* Number of bits in a char or unsigned char for the target machine.
>>> Just like CHAR_BIT in <limits.h> but describes the target machine.
>>> - v:TARGET_CHAR_BIT:int:char_bit::::8 * sizeof (char):8::0:
>>> + v;TARGET_CHAR_BIT;int;char_bit;;;;8 * sizeof (char);8;;0;
>>
>> BTW, do you know why does this bit appear in the .h file in the
>> first place?
>
> It's in gdbarch.h because gdbarch.sh thinks it's part of the comment
> above short_bit, so it gets copied verbatim to the .h.
Ah, it's commented out in gdbarch.sh. I hadn't looked, and confused it
with the gdbarch hook you had added before. But this is something much
older than that.
> I don't know why
> it's there though. It seems like it's been there for a really long
> time, but has always been commented out. I had not seen it before doing
> this patch, and didn't worry too much about it.
>
> Perhaps it was seen as a possible extension in case someone would bother
> adding support for targets with non-8-bit-bytes?
Yeah, that looks like it.
> If so, the addressable_memory_unit_size method kind of took that place.
Guess we should just delete that commented out hook.
>
> Any better guess?
No.
Thanks,
Pedro Alves
next prev parent reply other threads:[~2017-04-19 10:31 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-16 14:14 [PATCH 0/4] Remove VEC (CORE_ADDR) Simon Marchi
2017-04-16 14:14 ` [PATCH 1/4] Change field separator in gdbarch.sh Simon Marchi
2017-04-18 20:17 ` Pedro Alves
2017-04-18 20:20 ` Pedro Alves
2017-04-19 4:03 ` Simon Marchi
2017-04-19 10:31 ` Pedro Alves [this message]
2017-04-16 14:14 ` [PATCH 3/4] Use std::vector in solib-target lm_info Simon Marchi
2017-04-18 20:18 ` Pedro Alves
2017-04-19 4:18 ` Simon Marchi
2017-04-19 4:30 ` [PATCH v2] " Simon Marchi
2017-04-30 0:35 ` [PATCH v3] Use std::vector in lm_info_target Simon Marchi
2017-04-30 0:42 ` Simon Marchi
2017-05-02 16:06 ` Pedro Alves
2017-05-02 16:12 ` Pedro Alves
2017-05-02 17:25 ` Simon Marchi
2017-05-02 17:37 ` Pedro Alves
2017-05-02 17:50 ` Simon Marchi
2017-04-16 14:14 ` [PATCH 4/4] Remove definition of VEC (CORE_ADDR) Simon Marchi
2017-04-18 20:18 ` Pedro Alves
2017-04-16 14:15 ` [PATCH 2/4] Change return type of gdbarch_software_single_step to vector<CORE_ADDR> Simon Marchi
2017-04-18 20:17 ` Pedro Alves
2017-04-19 4:08 ` Simon Marchi
2017-04-19 10:32 ` Pedro Alves
2017-05-02 17:35 ` [PATCH 0/4] Remove VEC (CORE_ADDR) Simon Marchi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c9cf33e6-6da8-1155-1033-b76be48b09eb@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@polymtl.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox