Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] catchpoint support in GDB

Thanks, Tom. I see that the list I provided (that I got from the online docs) matches what gdb 7.0 'help catch' says.

However, I see that 'help catch' in 6.8 reveals a much longer list, and pretty much matches the list supported in CDT right now. Is that delta the list of events that were documented but never implemented? Anyway, since they're part of what gdb < 7.0 says it supports, then I guess it makes sense for them to appear in CDT--regardless of whether they actually have code behind them in gdb or not. After all, who is CDT to question gdb ;-) Not to mention, a gdb vendor may have implemented the whole set, even if the base code doesn't.

So, this issue is closed as far as I'm concerned. I'm going to leave the no-longer-in-7.0 catch event types in CDT, and I'm going to add support for any in 6.8 and 7.0 that are currently not in CDT.

John

At 08:30 PM 3/16/2010, Tom Tromey wrote:
Marc> Until then, before making modifications, I suggest trying to
Marc> confirm that the GDB docs reflect reality; it is possible that the
Marc> docs are incomplete (it's happened before).  You could either try
Marc> it out, or simply post a question to the GDB mailing list.

Marc> It may be safer also to check the CVS logs to see who added the
Marc> extra catchpoints and see with that person what they based their
Marc> implementation on.  Or maybe there's a bugzilla bug that wouldn't
Marc> be too hard to find.

NEWS is a decent source for this.

And, "help catch" is reasonably authoritative, as it will only list
commands which actually exist.

I think before 7.0 we removed a bunch of catch subcommands that were
documented but never implemented.  The current list:

    (gdb) help catch
    Set catchpoints to catch events.

    List of catch subcommands:

    catch assert -- Catch failed Ada assertions
    catch catch -- Catch an exception
    catch exception -- Catch Ada exceptions
    catch exec -- Catch calls to exec
    catch fork -- Catch calls to fork
    catch syscall -- Catch system calls by their names and/or numbers
    catch throw -- Catch an exception
    catch vfork -- Catch calls to vfork

AFAIK these all work, though some may only work for certain targets.

Tom
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev

Back to the top