gdb problem (gdb 4.8, gcc 2.6.2)

gdb problem (gdb 4.8, gcc 2.6.2)

Post by Duncan P Simps » Fri, 20 Jan 1995 05:51:50



gdb 4.8 refuses to debug gcc 2.6.2 generated binaries and finds no symbols
in them (even when compiled with -g). Do I need a newer version and if so
were can I find one?

Duncan (-:

 
 
 

1. Interfacing with gdb: How to set a gdb watch point from C++ code?

I have the following code in a third party library:

// GeneralXEventHandler gets called for each event of the types we requested
// in RegisterObject().  We send the event to the Event() routine of the
// object the event belongs to.
void GeneralXEventHandler(Widget, XtPointer object, XEvent *xEvent,
Boolean *)
{
        UI_WINDOW_OBJECT *uObject = (UI_WINDOW_OBJECT *)object;
        // for debug
^^^^^^^^^^^^^^ need a watchpoint right after assignment.
        UI_WINDOW_OBJECT *uObjectDup = (UI_WINDOW_OBJECT *)object;
        if (!uObject->screenID)
                return;
        UI_EVENT event(E_MOTIF, *xEvent);
        if (xEvent->type == KeyPress && event.rawCode == XK_Tab)
                _lastFocusEvent = KeyPress;
        else if (xEvent->type == ButtonPress)
                _lastFocusEvent = ButtonPress;

        if(uObject != uObjectDup) {
                l_fatal("object %p objectdup %p !!!!", uObject, uObjectDup);
        }
        uObject->Event(event);

I want to set a watchpoint on the contents of uObject after
initialization. The function is called quite a bit and I don't want to
do it manually on every call.
Is there a gcc directive to automate this?

2. No incoming mail

3. please HELP with GDB output redirect to GDB variable !!!

4. Graphics Card - Dual DVI

5. binutils, bugs in gdb, & "fixes" to gdb

6. vi seems not to support French accents in text file body

7. Problems with gcc and gdb

8. palmpilot IIIx and Linux:

9. Problem with gcc/gdb and debug symbols

10. Problems with 2.1 gcc/gdb

11. gcc 2.7.2.1 problems with gdb

12. gdb with gcc and core files problems

13. Problems with gcc-2.7.2/gdb-4.16 on Linux 2.0.30