aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugin.c
AgeCommit message (Collapse)Author
2010-10-13Get GDB cmd from env script and Set sysroot for GDBHEADmasterliping ke
Since gdb cmd and poky_target_sysroot is now given by by env script, we need to use them and set gdb sysroot accordingly. And also, unfs now switch back to use "poky-qemu" bash cmd instead of "runqemu-unfs". Signed-off-by: Liping Ke<liping.ke@intel.com>
2010-09-01Bug fix: poky root script file path need to add "/tmp"liping ke
This patch is a bug fix for environment script path for poky tree mode. The correct path is input_poky_tree_build_path plus "/tmp". Signed-off-by: Liping Ke <liping.ke@intel.com>
2010-08-27Update according to SDK infrastructure changeliping ke
Since poky SDK infrastructure changes greatly, we need change the plugin implementation accordingly. The major change is that we need to pass the available environment-setup* script files to get the available supported architecture. And we need to set the env variables and gdb/oprofile search path according to the contents of the script files too. Signed-off-by: Liping Ke <liping.ke@intel.com>
2010-07-15Fix poky root build option based on the latest sysroots directory structureJessica Zhang
Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
2010-07-15Remove old conditional buildLiping Ke
From this changeset, we only support anjuta 2.30 and above versions. We will remove old conditional build for easy to maintain. Signed-off-by: Liping Ke <liping.ke@intel.com>
2010-07-15Use IAnjutaEnvironment override interfaceLiping Ke
Before anjuta 2.30, we use Ibuildable interface to pass command and parameters. Now because the changing implementation of anjuta_execute as well the obsolete Ibuildable interface, we have to implement new IAnjutaEnvironment override interface to override build related command and parameters. The patch is tested against anjuta 2.30.2. Signed-off-by: Liping ke<liping.ke@intel.com>
2010-06-28Use return value to judge whether terminal command runs successfully or not.Liping Ke
Currently Anjuta IDE vte plugin did not use error output param to show (anjuta_terminal_execute_command) excection errors. Actually it use return value(child_pid) to indicate the command execution result. If fails, -1 will be returned. Otherwise, child process id will be returned. After this fix, this vte terminal plugin still has other issues, please refer to poky sdk bugzilla, bug number: 2000 Signed-off-by: Liping Ke <liping.ke@intel.com>
2010-06-28Add gnome_vfs_init before first time calling gnomevfs APIsLiping Ke
This is a small bug fixing related to bug 2122. Before calling the first gnome_vfs API, we must first to init gnome_vfs by calling gnome_vfs_init(). Signed-off-by: Liping Ke <liping.ke@intel.com>
2010-02-26Add default value for Run remote and Debug remote entriesJoshua Lock
It's not obvious to all that your just deployed package is in /usr/local/bin so to make it easy pre-populate the entries requesting the binary with the deploy path. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-02-26Try to emphasise when rsync is missing on the target.Joshua Lock
Add a strrstr() call in deploy_launcher_data_cb() for "rsync: not found" so that we can give the user a slightly easier to nitice warning for this case as requested by Richard. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2009-12-04Fix a harmless compiler warningJoshua Lock
2009-12-04Add conditional support for updated interfaces in Anjuta 2.28Joshua Lock
Rebased patch from Haito Feng <haito.feng@intel.com> Signed-off-by: Joshua Lock <josh@linux.intel.com>
2008-10-032008-10-02 Rob Bradford <rob@linux.intel.com>Rob Bradford
* configure.ac: * src/plugin.c (anjuta_plugin_sdk_activate): Make the GDB integration conditional with --enable-gdb-integration.
2008-09-112008-09-11 Rob Bradford <rob@linux.intel.com>Rob Bradford
* anjuta-plugin-sdk/src/beaver-target-qemu.c: * anjuta-plugin-sdk/src/beaver-target.c: * anjuta-plugin-sdk/src/beaver-util.h: * anjuta-plugin-sdk/src/plugin.c: Make the plugin build with Anjuta 2.23.x
2008-04-252008-04-25 Rob Bradford,,, <rob@openedhand.com>Rob Bradford
* src/anjuta-plugin-sdk.ui: * src/beaver-target.c: (beaver_target_class_init), (beaver_target_remote_stop), (_beaver_target_run_remote_v), (_beaver_target_remote_stop): * src/beaver-target.h: * src/plugin.c: (action_remote_stop_activate_cb), (update_state), (anjuta_plugin_sdk_activate): * src/plugin.h: Add support for stopping the remote command.
2008-04-072008-04-07 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/plugin.c: (action_remote_debug_stop_activate_cb), (do_remote_gdb), (action_remote_debug_activate_cb), (update_state): Port over to use new target API.
2008-04-032008-04-03 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/plugin.c: (remote_run_dialog), (action_remote_run_activate_cb): Switch running a remote command over to use the new target based remote run mechanism.
2008-04-032008-04-03 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/plugin.c: (update_environment): Add support for using the new pkgconfig path in toolchain mode.
2008-03-252008-03-25 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/plugin.c: (update_state): Add missing break statement that was causing the shutdown action to be disabled when it should have been enabled.
2008-03-252008-03-25 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/plugin.c: (do_local_gdb): Fix regression where gdb cross failed due to hard coded paths for the full Poky tree case.
2008-03-192008-03-19 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/Makefile.am: * src/beaver-settings-page.c: (radio_toggled_cb), (create_ui): * src/beaver-target-device.c: (beaver_target_device_get_property), (beaver_target_device_set_property), (beaver_target_device_dispose), (beaver_target_device_finalize), (beaver_target_device_set_state), (beaver_target_device_get_state), (beaver_target_device_get_ip_address), (beaver_target_device_class_init), (beaver_target_device_init), (beaver_target_device_new): * src/beaver-target-device.h: * src/beaver.h: * src/plugin.c: (update_state), (setup_target), (rootfs_preference_notify_cb), (kernel_preference_notify_cb), (target_mode_preference_notify_cb), (target_ip_preference_notify_cb), (target_state_changed_cb), (anjuta_plugin_sdk_activate), (anjuta_plugin_sdk_deactivate): * src/plugin.h: Add support for using an external device.
2008-03-182008-03-18 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/Makefile.am: * src/beaver-settings-page.c: (beaver_settings_page_get_property), (beaver_settings_page_set_property), (beaver_settings_page_dispose), (beaver_settings_page_finalize), (beaver_settings_page_constructed), (beaver_settings_page_class_init), (beaver_settings_page_init), (beaver_settings_page_new), (preferences_timeout_cb), (full_radio_toggled_cb), (toolchain_radio_toggled_cb), (create_ui): * src/beaver-settings-page.h: * src/beaver.h: * src/plugin.c: (ipreferences_merge): * src/plugin.h: Separate the preferences UI into it's own component.
2008-03-172008-03-17 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/Makefile.am: * src/beaver-target-qemu.c: (beaver_target_qemu_get_property), (beaver_target_qemu_set_property), (beaver_target_qemu_dispose), (beaver_target_qemu_finalize), (beaver_target_qemu_class_init), (beaver_target_qemu_init), (beaver_target_qemu_new), (beaver_target_qemu_start), (beaver_target_qemu_shutdown), (beaver_target_qemu_get_state), (beaver_target_qemu_get_ip_address), (beaver_target_qemu_set_state), (launcher_data_cb), (launcher_child_exited_cb): * src/beaver-target-qemu.h: * src/beaver-target.c: (beaver_target_get_property), (beaver_target_set_property), (beaver_target_dispose), (beaver_target_finalize), (beaver_target_class_init), (beaver_target_init), (beaver_target_get_state), (beaver_target_set_state), (beaver_target_get_ip_address), (beaver_target_get_message_manager), (beaver_target_run_remote_v), (_beaver_target_run_remote_v), (launcher_child_exited_cb), (launcher_data_cb): * src/beaver-target.h: * src/beaver-util.c: (beaver_util_message_view_buffer_flushed_cb), (beaver_util_strv_concat), (beaver_util_strv_joinv): * src/beaver-util.h: * src/plugin.c: (deploy_do_copy), (action_shutdown_qemu_activate_cb), (action_start_qemu_activate_cb), (action_remote_debug_stop_activate_cb), (do_local_gdb), (do_remote_gdb), (action_remote_run_activate_cb), (action_remote_profile_activate_cb), (remote_gdb_launcher_child_exited_cb), (oprofileui_launcher_child_exited_cb), (rootfs_preference_notify_cb), (kernel_preference_notify_cb), (project_root_uri_value_added), (target_state_changed_cb), (anjuta_plugin_sdk_activate), (anjuta_plugin_sdk_deactivate): * src/plugin.h: Refactor out some operations on the target to allow using a real device as the target (rather than QEMU.)
2008-03-112008-03-11 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/plugin.c: (update_path), (update_environment): * src/plugin.h: Add the old style staging paths to PKG_CONFIG_PATH and the PATH for compatability with older OE/Poky.
2008-03-072008-03-07 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/plugin.c: (get_host_component), (update_path), (update_environment), (poky_mode_preference_notify_cb), (poky_root_preference_notify_cb), (anjuta_plugin_sdk_activate), (anjuta_plugin_sdk_deactivate), (full_radio_toggled_cb), (toolchain_radio_toggled_cb), (ipreferences_merge): * src/plugin.h: Allow using a full Poky tree rather than with an externeral SDK.
2008-02-192008-02-19 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/plugin.c: (anjuta_plugin_sdk_deactivate): Ensure we nullify string pointers after freeing them in the deactivate function and add a comment why we are doing this.
2008-02-152008-02-15 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/plugin.c: (action_remote_profile_activate_cb): Use the command line option to oprofileui to specify the supplementary search path for binaries.
2008-02-112008-02-11 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/plugin.c: Remove the break on main in the gdb script.
2008-02-112008-02-11 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/plugin.c: (remote_debug_dialog), (remote_run_dialog): Fix up the default action behaviour for the Run and Debug dialogs.
2008-02-112008-02-11 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/plugin.c: (do_local_gdb): Switch the prefix that the cross gdb uses to find the symbols to the new location. (Includes the triplet.)
2008-02-042008-02-04 Ross Burton <ross@openedhand.com>Ross Burton
* src/plugin.c: Set the confirm buttons as default in the Run and Debug dialogs.
2008-01-252008-01-25 Ross Burton <ross@openedhand.com>Ross Burton
* src/plugin.c: Fix Run Remote by executing the entered command, not NULL.
2008-01-252008-01-25 Ross Burton <ross@openedhand.com>Ross Burton
* configure.ac: * src/plugin.c: Remove glib 2.14 requirement by #defining g_timeout_add_seconds if it isn't available.
2008-01-242008-01-24 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/anjuta-plugin-sdk.ui: * src/plugin.c: (action_start_qemu_activate_cb), (action_remote_profile_activate_cb), (qemu_launcher_child_exited_cb), (remote_gdb_launcher_child_exited_cb), (oprofileui_launcher_child_exited_cb), (anjuta_plugin_sdk_activate), (anjuta_plugin_sdk_deactivate): * src/plugin.h: Add OProfileUI interaction.
2008-01-232008-01-23 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/plugin.c: (action_shutdown_qemu_activate_cb), (action_remote_debug_stop_activate_cb), (do_remote_gdb), (qemu_launcher_child_exited_cb), (remote_launcher_child_exited_cb), (update_path), (update_environment), (anjuta_plugin_sdk_activate), (anjuta_plugin_sdk_deactivate): * src/plugin.h: Hook up functionality for killing gdbserver over ssh.
2008-01-232008-01-23 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/plugin.c: (remote_debug_dialog), (remote_run_dialog), (do_local_gdb), (do_remote_gdb), (action_remote_debug_activate_cb), (action_remote_run_activate_cb), (shell_session_load_cb), (shell_session_save_cb), (anjuta_plugin_sdk_activate), (anjuta_plugin_sdk_deactivate): * src/plugin.h: Save local path and remote command in the session.
2008-01-232008-01-23 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/plugin.c: (action_start_qemu_activate_cb), (remote_gdb_launcher_child_exited_cb): Only make the "Remote debug..." option available when we have a triplet and sdk_root.
2008-01-222008-01-22 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/anjuta-plugin-sdk.ui: * src/plugin.c: (remote_gdb_launcher_data_cb), (deploy_do_initial_state), (action_start_qemu_activate_cb), (remote_debug_dialog), (remote_run_dialog), (do_local_gdb), (remote_gdb_timeout_cb), (do_remote_gdb), (action_remote_debug_activate_cb), (action_remote_run_activate_cb), (qemu_launcher_child_exited_cb), (remote_gdb_launcher_child_exited_cb), (project_root_uri_value_added), (anjuta_plugin_sdk_activate), (anjuta_plugin_sdk_deactivate): * src/plugin.h: Add preliminary remote/gdb support.
2008-01-182008-01-18 Rob Bradford,,, <rob@openedhand.com>Rob Bradford
* src/plugin.c: (deploy_launcher_child_exited_cb), (deploy_set_state), (deploy_do_delete): * src/plugin.h: Remove the temporary deploy directory when we done.
2008-01-182008-01-18 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/anjuta-plugin-sdk.ui: * src/plugin.c: (deploy_launcher_data_cb), (qemu_launcher_data_cb), (deploy_do_initial_state), (deploy_do_copy), (action_shutdown_qemu_activate_cb), (action_start_qemu_activate_cb), (qemu_launcher_child_exited_cb), (reboot_launcher_child_exited_cb), (anjuta_plugin_sdk_activate), (anjuta_plugin_sdk_deactivate): * src/plugin.h: Add a Shutdown action for QEMU (this actually invokes reboot on the remote device but if we start with -no-reboot this halts it.) Fix problem where the AnjutaMessageManager can be replaced but we don't get told (so instead fetch it each time rather than caching.) Fix some action sensitivity issues.
2008-01-182008-01-18 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/plugin.c: (ipreferences_merge): HIG compliance changes.
2008-01-172008-01-17 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/anjuta-plugin-sdk.plugin.in: * src/plugin.c: (ipreferences_merge), (ipreferences_unmerge): Branding tweaks.
2008-01-172008-01-17 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/plugin.c: (deploy_launcher_data_cb), (qemu_launcher_data_cb), (deploy_do_initial_state), (deploy_do_local_install), (deploy_do_copy), (deploy_do_finished), (deploy_do_error), (action_start_qemu_activate_cb), (anjuta_plugin_sdk_deactivate): * src/plugin.h: Add a message view for messages from QEMU.
2008-01-172008-01-17 Rob Bradford <rob@openedhand.com>Rob Bradford
* configure.ac: Bump up version number. * src/plugin.c: (deploy_do_initial_state), (action_start_qemu_activate_cb), (qemu_launcher_child_exited_cb), (update_path), (cleanup_environment), (update_environment), (setup_buildable), (sdk_root_preference_notify_cb), (triplet_preference_notify_cb), (rootfs_preference_notify_cb), (kernel_preference_notify_cb), (project_root_uri_value_added), (project_root_uri_value_removed), (anjuta_plugin_sdk_activate), (anjuta_plugin_sdk_deactivate), (anjuta_plugin_sdk_finalize), (anjuta_plugin_sdk_dispose), (anjuta_plugin_sdk_instance_init), (anjuta_plugin_sdk_class_init), (preferences_timeout_cb), (ipreferences_merge), (ipreferences_unmerge), (ipreferences_iface_init): * src/plugin.h: Switch over to work against trunk. Tidy up some of the logic.
2008-01-112008-01-11 Rob Bradford <rob@openedhand.com>Rob Bradford
* src/Makefile.am: * src/anjuta-plugin-sdk.ui: * src/plugin.c: (deploy_launcher_child_exited_cb), (deploy_launcher_data_cb), (deploy_set_state), (deploy_do_initial_state), (deploy_do_local_install), (deploy_do_copy), (deploy_do_finished), (deploy_do_error), (action_deploy_activate_cb), (action_start_qemu_activate_cb), (qemu_launcher_child_exited_cb), (plugin_value_added_cb), (plugin_value_removed_cb), (message_view_buffer_flushed_cb), (file_chooser_property_get_cb), (file_chooser_property_set_cb), (sdk_root_file_chooser_changed_cb), (kernel_file_chooser_file_set_cb), (rootfs_file_chooser_file_set_cb), (update_path), (update_environment), (cleanup_environment), (update_configure_opts), (update_environment_idle_cb), (qemu_settings_changed_idle_cb), (sdk_root_preference_notify_cb), (triplet_preference_notify_cb), (rootfs_preference_notify_cb), (kernel_preference_notify_cb), (load_session_cb), (anjuta_plugin_sdk_setup_preferences), (anjuta_plugin_sdk_activate), (anjuta_plugin_sdk_deactivate), (anjuta_plugin_sdk_dispose): * src/plugin.h: Integrate QEMU support into the SDK plugin (was a separate plugin.)
2008-01-032008-01-03 Rob Bradford <rob@openedhand.com>Rob Bradford
* AUTHORS: * Makefile.am: * autogen.sh: * configure.ac: * po/Makefile.in.in: * po/POTFILES.in: * src/Makefile.am: * src/anjuta-plugin-sdk.plugin.in: * src/plugin.c: (file_chooser_property_get_cb), (file_chooser_property_set_cb), (sdk_root_file_chooser_changed_cb), (update_path), (update_environment), (cleanup_environment), (update_configure_opts), (update_environment_idle_cb), (sdk_root_preference_notify_cb), (triplet_preference_notify_cb), (load_session_cb), (anjuta_plugin_sdk_setup_preferences), (anjuta_plugin_sdk_unsetup_preferences), (anjuta_plugin_sdk_activate), (anjuta_plugin_sdk_deactivate), (anjuta_plugin_sdk_finalize), (anjuta_plugin_sdk_dispose), (anjuta_plugin_sdk_instance_init), (anjuta_plugin_sdk_class_init): * src/plugin.h: Initial commit of a working SDK cross-compiling plugin for autotooled projects.