Skip to content
  • Marcin Kościelnicki's avatar
    gdbserver: Fix C++ build errors in tracepoint.c · 252db07e
    Marcin Kościelnicki authored
    These were introduced by 1cda1512
    and a13c4696 .  One is a simple
    missing cast, the other is const usage on global function pointers
    exported from IPA: in C++, consts are static, and thus won't be
    exported from the DSO (the build error was because of non-applicable
    visibility("default")).
    
    gdb/gdbserver/ChangeLog:
    
    	* tracepoint.c (gdb_collect_ptr): Remove const qualifier.
    	(get_raw_reg_ptr): Likewise.
    	(get_trace_state_variable_value_ptr): Likewise.
    	(set_trace_state_variable_value_ptr): Likewise.
    	(initialize_tracepoint): Cast alloc_jump_pad_buffer result to
    	char *.
    252db07e