[Bug 618451] Review Request: gdb-heap - Extensions to gdb for debugging dynamic memory allocation

bugzilla at redhat.com bugzilla at redhat.com
Fri Jul 30 20:24:06 UTC 2010


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=618451

--- Comment #12 from Dave Malcolm <dmalcolm at redhat.com> 2010-07-30 16:24:04 EDT ---
(In reply to comment #11)
> Just to make sure I understand:
> This means that the gdb-heap code will never load unless the .debug file is
> present, right?
That was my understanding.

However,
https://bugzilla.redhat.com/show_bug.cgi?id=562980#c3
suggests that it may be possible to install the loader code to 
  /usr/share/gdb/auto-load/lib/ld-%{glibc_version}.so-gdb.py
instead.

We'd still need a:
  Requires: glibc = %{version}
to ensure that we're in sync with glibc.

With this, we could be autoloaded provided that the correct glibc is loaded,
and could issue an error message is glibc-debuginfo not available.

> And since we can't guarantee that the glibc-debuginfo package is installed,
> what happens when glibc-debuginfo isn't installed and someone tries to invoke
> the "heap" command?    
(gdb) heap
Undefined command: "heap".  Try "help".

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the package-review mailing list