public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [RFC] Looking to fix AIX whatis-ptype-typedefs.exp
@ 2024-01-10  7:21 Aditya Kamath1
  2024-01-10 15:07 ` Tom Tromey
  0 siblings, 1 reply; 2+ messages in thread
From: Aditya Kamath1 @ 2024-01-10  7:21 UTC (permalink / raw)
  To: Ulrich Weigand, Aditya Kamath1 via Gdb-patches; +Cc: Sangamesh Mallayya

[-- Attachment #1: Type: text/plain, Size: 1252 bytes --]

Respected community members,

Hi,

In AIX we currently pass 28362 test cases and fail 2166 test cases while running gdb.base testsuite.

Of all the failures we are fixing one by one Whatis-ptype-typedefs.exp test case has 1062 failures.

The issue:-

When we try to check a type which is type casted then we are getting a syntax error. This looks like a parsing issue at first glance.

For example,
(gdb) whatis (void_typedef) void_typedef
A syntax error in expression, near `'.

Or

(gdb) whatis (func_ftype) int_typedef
A syntax error in expression, near `'.
(gdb) ptype (func_ftype) int_typedef
A syntax error in expression, near `'.

Whenever we typecast, we get this error message.

I am trying to understand why this happened while in other targets it runs smoothly.  To fix the same for GDB community and AIX I need some guidance. Kindly help me with your knowledge and expertise.

Do we need to install any parsing package and need to configure GDB to use the same? Or is it got to with incorrect AIX specific code which is parsing the command. If it is the latter, then let me know the starting point to understand why this happened.

Hoping for a reply,

Have a nice day ahead.

Thanks and regards,
Aditya.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RFC] Looking to fix AIX whatis-ptype-typedefs.exp
  2024-01-10  7:21 [RFC] Looking to fix AIX whatis-ptype-typedefs.exp Aditya Kamath1
@ 2024-01-10 15:07 ` Tom Tromey
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2024-01-10 15:07 UTC (permalink / raw)
  To: Aditya Kamath1
  Cc: Ulrich Weigand, Aditya Kamath1 via Gdb-patches, Sangamesh Mallayya

>>>>> Aditya Kamath1 <Aditya.Kamath1@ibm.com> writes:

> When we try to check a type which is type casted then we are getting a
> syntax error. This looks like a parsing issue at first glance.

> For example,
> (gdb) whatis (void_typedef) void_typedef

> A syntax error in expression, near `'.

> Whenever we typecast, we get this error message. 
 
> I am trying to understand why this happened while in other targets it
> runs smoothly.  To fix the same for GDB community and AIX I need some
> guidance. Kindly help me with your knowledge and expertise.
 
> Do we need to install any parsing package and need to configure GDB to
> use the same? Or is it got to with incorrect AIX specific code which
> is parsing the command. If it is the latter, then let me know the
> starting point to understand why this happened.

There's nothing (well, very little) that is target-dependent about this
code.  You don't need to install anything special.

gdb is very dependent on the compiler's output.  I would probably start
by looking there -- which compiler is it, etc.  Perhaps the compiler is
generating DWARF that gdb doesn't understand, or perhaps it is
generating bad DWARF.  Another possibility that comes to mind is whether
the compiler is emitting stabs instead of DWARF.

There's normally no easy way to figure this out, you pretty much have to
inspect the debug info and then trace from there.

Tom

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-10 15:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-10  7:21 [RFC] Looking to fix AIX whatis-ptype-typedefs.exp Aditya Kamath1
2024-01-10 15:07 ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).