garlandfoster
Programmer
I have a structure containing a pointer, foo->prt is say, X then I pass the pointer to a function and the function receives not X but other value. What can be wrong?
This is a trace of the gdb session (short and simple)
Any help would be greatly appreaciated
Breakpoint 1, report_start_element (rdf_parser=0x81f9a58, name=0x81fa714 "html", attributes=0x81f9ce0) at rdfparse.c:1292
1292 if( rdf_parser->start_element_handler )
(gdb) s
1294 ( *rdf_parser->start_element_handler )(
(gdb) p rdf_parser->user_data
$12 = (void *) 0x81f970c
(gdb) s
Breakpoint 2, parser_my_start_element_handler (user_data=0x1cd, name=0x81fa714 "html", attributes=0x81f9ce0) at repat.c:653
653 parser = (rdf_parser *)user_data;
(gdb)
This is a trace of the gdb session (short and simple)
Any help would be greatly appreaciated
Breakpoint 1, report_start_element (rdf_parser=0x81f9a58, name=0x81fa714 "html", attributes=0x81f9ce0) at rdfparse.c:1292
1292 if( rdf_parser->start_element_handler )
(gdb) s
1294 ( *rdf_parser->start_element_handler )(
(gdb) p rdf_parser->user_data
$12 = (void *) 0x81f970c
(gdb) s
Breakpoint 2, parser_my_start_element_handler (user_data=0x1cd, name=0x81fa714 "html", attributes=0x81f9ce0) at repat.c:653
653 parser = (rdf_parser *)user_data;
(gdb)