Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: vijay nag <vijunag@gmail.com>
To: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: RE: Built-in type handling in gdb
Date: Thu, 15 May 2014 08:35:00 -0000	[thread overview]
Message-ID: <CAKhyrx8PRG_OkZtAN=r-1=f9oFm21ZHcC=yO1eyJQXqxZOJFiw@mail.gmail.com> (raw)

Hello GDB,

I have a simple GDB script to walk through the heap given a core file.
The data types used in the scripts are all primitive C data types and
any non primitive user defined data types have been avoided to speed
up the execution. In the older version of GDB(say gdb-7.0) this script
finished execution in a jiffy, the new gdb is way too slow in
execution. I built gdb-7.0/7.6 from source and observed the difference
in execution.

As part of this commit "NEWS: Mention OpenCL C language support
2010-11-05  Ken Werner
<ken.werner@de.ibm.com>(https://github.com/dov/gdb/commit/100d4cd4f6f42014c07e6acd0d9b6187d1259b2e)
* c-exp.y: Lookup the primitive types instead of referring to the
builtins.", parse_type macro(get from builtin) has been changed to a
function call lookup_signed_typename(). This function seems to be
doing an exhaustive global/static symbols search even for a C
primitive data type(say int) there by consuming plenty of CPU cycles.
Should we be doing this exhaustive search of data types from the
binary file even for basic C primitive data types ?


             reply	other threads:[~2014-05-15  8:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-15  8:35 vijay nag [this message]
2014-05-16 17:24 ` Doug Evans
2014-05-19 11:00   ` vijay nag
2014-05-21 20:00     ` Doug Evans
2014-05-22  5:01       ` vijay nag

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='CAKhyrx8PRG_OkZtAN=r-1=f9oFm21ZHcC=yO1eyJQXqxZOJFiw@mail.gmail.com' \
    --to=vijunag@gmail.com \
    --cc=gdb@sourceware.org \
    /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