--- Comment #7 from tromey at gcc dot gnu dot org 2010-03-23 16:11 ---
In the case where the default value is an expression,
would it be possible to just emit the expression as a string?
I believe that would be sufficient for gdb's purposes.
--
http://gcc.gnu.org/bugzilla/show_bug.c
--- Comment #6 from dodji at gcc dot gnu dot org 2010-03-23 09:33 ---
Created an attachment (id=20167)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20167&action=view)
Draft patch
This draft patch emits a DW_AT_GNU_default_value_unrepresentable attribute flag
when the default argu
--- Comment #5 from dodji at gcc dot gnu dot org 2010-03-18 14:38 ---
(In reply to comment #4)
As we discussed on IRC, it seems we'd need a way to express that we'd want the
debugger to create a temporary, initialize it and later destroy it. DWARF can't
express as of now. So we'll proba
--- Comment #4 from jakub at gcc dot gnu dot org 2010-03-15 11:19 ---
As for the arbitrary expressions, can't you just add an artificial, nameless,
DW_TAG_variable (not sure if DW_TAG_dwarf_procedure would be tollerable
instead), probably as child of the DW_TAG_subprogram whose
DW_TAG_fo
--- Comment #3 from dodji at gcc dot gnu dot org 2010-03-15 10:45 ---
Created an attachment (id=20107)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20107&action=view)
Draf patch
Thanks Jakub for the review. This updated patch should address your comments.
--
dodji at gcc dot
--- Comment #2 from jakub at gcc dot gnu dot org 2010-03-11 20:01 ---
I think instead of creating the _1 functions you should just add the attr
argument to those 2 functions and modify callers to pass DW_AT_const_value.
There aren't so many callers, and
add_location_or_const_value_attrib
--- Comment #1 from dodji at gcc dot gnu dot org 2010-03-11 16:17 ---
Created an attachment (id=20085)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20085&action=view)
Draft patch
Please find below a copy/paste of the introductory comment of the attached
patch.
Basically the valu
--
dodji at gcc dot gnu dot org changed:
What|Removed |Added
AssignedTo|unassigned at gcc dot gnu |dodji at gcc dot gnu dot org
|dot org