This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hello all,
Attached is a patch implementing the GDB/MI command '-symbol-info-symbol',
but a few words are to be said about it:
- I'm not sure if I did all the memory management right (aka, the gdb way)
- If no symbol is found by that address, an error is thrown (but it could
return an empty result list otherwise, as you wish, although I've used
the same behaviour that the "info symbol" command has)
- I've turned a pair of "special" conditions from the original "info
symbol" command to errors, as I'm not sure of what should they output
("load address range of" & "{mapped,unmapped} overlay")
- The output is first precalculated, saving it on xrealloc'ed memory, to be
able to first output a counter of the number of results (followed by a
list of the results, as you can see on the doc example), if this counter
is not found to be usefull, it can be thrown away and the command should
be a little faster
- I'm not sure if, in case of error, I have to use the error() function, or
the mi_error_message + return form (this is the one I've taken, like in
mi-main.c)
- I'm not sure if the error messages should be translatable or not
Well, I think that's all I had to say, if you have any comments or
corrections, please send a mail directly to me, as I'm not subscribed to
this list.
Thanks,
Lluis
--
"And it's much the same thing with knowledge, for whenever you learn
something new, the whole world becomes that much richer."
-- The Princess of Pure Reason, as told by Norton Juster in The Phantom
Tollbooth
Attachment:
symbol-info-symbol.patch
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |