aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2010-10-13Get GDB cmd from env script and Set sysroot for GDBHEADmasterliping ke2-11/+14
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-07Enable unfs qemu modeliping ke2-3/+5
Since now unfs style qemu is supported, this patch will switch to the new unfs qemu style. Signed-off-by: Liping Ke<liping.ke@intel.com>
2010-09-01Bug fix: Load unset environment vars into old hash for unset purposeliping ke1-0/+2
This patch is a bug fix for restore original environment before activating poky sdk plugin. when deactive poky plugin, we need to unset all set envrionment, otherwise, when deactivating poky plugin, native compile environment will be polluted. So if non-poky environment does not have the env var such as "CC", we still need to save it in the hash table for later unset operation. I save the unset environment value into old hash table as "null" for easy to unified operation (g_free will be automatically called in hash destructor). Signed-off-by: Liping Ke <liping.ke@intel.com>
2010-09-01Bug fix: poky root script file path need to add "/tmp"liping ke1-5/+9
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-09-01Increase script file read buf max lengthliping ke1-1/+1
This is a bug fix for bigger PATH script file. I found latest PATH length in environment-setupXXX files exceeds 1000, so I increase this read buffer max length, making sure that the path is not cut. Signed-off-by: Liping Ke <liping.ke@intel.com>
2010-08-27Update according to SDK infrastructure changeliping ke7-206/+750
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 Zhang2-30/+20
Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
2010-07-15Remove old conditional buildLiping Ke4-218/+0
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 Ke2-54/+64
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 Ke1-3/+11
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 Ke1-0/+7
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 Lock1-1/+6
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 Lock1-1/+14
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>
2010-02-26Make the "Shutdown QEMU" command actually shutdown.Joshua Lock1-1/+1
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2009-12-04Fix a harmless compiler warningJoshua Lock1-2/+2
2009-12-04Add conditional support for updated interfaces in Anjuta 2.28Joshua Lock7-13/+206
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 Bradford1-0/+5
* configure.ac: * src/plugin.c (anjuta_plugin_sdk_activate): Make the GDB integration conditional with --enable-gdb-integration.
2008-09-262008-09-26 Rob Bradford <rob@linux.intel.com>Rob Bradford1-1/+1
* src/beaver-util.h: Change the macro for detecting the Anjuta version due to breakage in Anjuta 2.24.0.1.
2008-09-112008-09-11 Rob Bradford <rob@linux.intel.com>Rob Bradford4-7/+57
* 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 Bradford5-1/+56
* 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-092008-04-09 Rob Bradford <rob@openedhand.com>Rob Bradford1-11/+10
* src/beaver-target.c: (_beaver_target_remote_debug), (debug_launcher_data_cb): Switch to using the same message view for all remote operations.
2008-04-072008-04-07 Rob Bradford <rob@openedhand.com>Rob Bradford1-115/+10
* 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-072008-04-07 Rob Bradford <rob@openedhand.com>Rob Bradford2-1/+61
* src/beaver-target.c: (beaver_target_finalize), (_beaver_target_remote_debug), (debug_launcher_data_cb): * src/beaver-target.h: Add an extra DEBUGGER_READY state which we can use to find out if the gdbserver is ready to start the client side.
2008-04-042008-04-04 Rob Bradford <rob@openedhand.com>Rob Bradford2-1/+19
* src/beaver-target.c: (beaver_target_class_init), (beaver_target_remote_debug_stop), (_beaver_target_remote_debug_stop): * src/beaver-target.h: Add functionality to the target to allow stopping of the remote gdbserver.
2008-04-042008-04-04 Rob Bradford <rob@openedhand.com>Rob Bradford2-6/+142
* src/beaver-target.c: (beaver_target_dispose), (beaver_target_class_init), (beaver_target_init), (beaver_target_remote_debug), (_beaver_target_run_remote), (_beaver_target_run_remote_v), (_beaver_target_remote_debug), (debug_launcher_data_cb): * src/beaver-target.h: Refactor some of the remote debugging infrastructure into the target. Also specify the PATH environment variable so that we can find the versions installed into the the /usr/local directories.
2008-04-042008-04-04 Rob Bradford <rob@openedhand.com>Rob Bradford1-7/+5
* src/beaver-target.c: (beaver_target_init), (_beaver_target_run_remote_v): Move initialisation of launcher from just-in-time to on object initialisation.
2008-04-032008-04-03 Rob Bradford <rob@openedhand.com>Rob Bradford1-39/+22
* 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 Bradford1-25/+9
* src/beaver-target-qemu.c: (beaver_target_qemu_set_state), (launcher_data_cb): Don't blindly transition into the READY state. Check that we are still ready. Remove dead code.
2008-04-032008-04-03 Rob Bradford <rob@openedhand.com>Rob Bradford2-4/+35
* src/beaver-target.c: (beaver_target_class_init), (beaver_target_run_remote), (_beaver_target_run_remote), (launcher_child_exited_cb): * src/beaver-target.h: Add a beaver_target_run_remote function that uses the correct environment to programs on the device *without* needing an extra script. Fix the logic in the launcher_child_exited_cb.
2008-04-032008-04-03 Rob Bradford <rob@openedhand.com>Rob Bradford1-0/+1
* src/beaver-target-device.c: (beaver_target_device_set_state): Emit signal on state change.
2008-04-032008-04-03 Rob Bradford <rob@openedhand.com>Rob Bradford1-8/+15
* 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 Bradford1-0/+1
* 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 Bradford1-2/+2
* 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-202008-03-20 Rob Bradford <rob@openedhand.com>Rob Bradford2-0/+34
* src/beaver-target-device.c: * src/beaver-target-device.h: Append missing copyright headers.
2008-03-192008-03-19 Rob Bradford <rob@openedhand.com>Rob Bradford7-98/+435
* 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 Bradford6-316/+527
* 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-182008-03-18 Rob Bradford <rob@openedhand.com>Rob Bradford1-0/+5
* src/beaver-util.h: Add header guards.
2008-03-172008-03-17 Rob Bradford <rob@openedhand.com>Rob Bradford9-188/+1067
* 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 Bradford2-3/+21
* 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 Bradford2-39/+261
* 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 Bradford1-22/+52
* 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 Bradford1-2/+5
* 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 Bradford1-1/+0
* src/plugin.c: Remove the break on main in the gdb script.
2008-02-112008-02-11 Rob Bradford <rob@openedhand.com>Rob Bradford1-0/+18
* 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 Bradford1-1/+4
* 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 Burton1-0/+2
* 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 Burton1-3/+1
* src/plugin.c: Fix Run Remote by executing the entered command, not NULL.
2008-01-252008-01-25 Ross Burton <ross@openedhand.com>Ross Burton1-1/+4
* src/Makefile.am: Don't version the plugin, and make the linker warn if any symbols are undefined.
2008-01-252008-01-25 Ross Burton <ross@openedhand.com>Ross Burton1-0/+6
* configure.ac: * src/plugin.c: Remove glib 2.14 requirement by #defining g_timeout_add_seconds if it isn't available.
2008-01-24configure.ac: Add glib version check.Richard Purdie1-1/+1
src/anjuta-plugin-sdk.plugin.in: Match plugin name to documentation.