This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] dwarf2read.c: Don't assume uint32_t is unsigned int on all hosts.
- From: Doug Evans <dje at google dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches <gdb-patches at sourceware dot org>
- Date: Wed, 22 May 2013 09:16:18 -0700
- Subject: Re: [PATCH] dwarf2read.c: Don't assume uint32_t is unsigned int on all hosts.
- References: <20130521203421 dot 23721 dot 93618 dot stgit at brno dot lan> <CADPb22TzeQEanUGOMcFBJrStDYkk5zRUE2Fht_c_d5mQAYM7sw at mail dot gmail dot com> <519C932E dot 7000601 at redhat dot com> <CADPb22S0sYeTv+9_gsNO=3axHabLjgtwuyuNpyniLUfwwv9aCQ at mail dot gmail dot com> <519CEDF9 dot 7060000 at redhat dot com>
On Wed, May 22, 2013 at 9:10 AM, Pedro Alves <palves@redhat.com> wrote:
>> Another possibility, mentioned for reference sake, would be adding puint32, etc.
>
> Yeah, though I think those would end up implemented as calls to
> decimal2str(...,ULONGEST,...) internally anyway.
>
> With pulongest, we don't have to care the width of the variable,
> only the sign. I guess I could see that as an advantage, even over
> PRIxxx.
I don't mind much how it's implemented. Remembering that there is
puint32 for the purpose of printing uint32's will stick in my memory
more than having to use pulongest.