ChangeLog:
* mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch instead of selected frame architecture. testsuite/ChangeLog: * gdb.mi/gdb680.exp: Revert 2009-06-17 change.
This commit is contained in:
parent
4247603be5
commit
441b986a3d
|
@ -1,3 +1,8 @@
|
||||||
|
2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
|
||||||
|
|
||||||
|
* mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
|
||||||
|
instead of selected frame architecture.
|
||||||
|
|
||||||
2010-03-18 Pedro Alves <pedro@codesourcery.com>
|
2010-03-18 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
|
* infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
|
||||||
|
|
|
@ -852,7 +852,6 @@ mi_cmd_list_thread_groups (char *command, char **argv, int argc)
|
||||||
void
|
void
|
||||||
mi_cmd_data_list_register_names (char *command, char **argv, int argc)
|
mi_cmd_data_list_register_names (char *command, char **argv, int argc)
|
||||||
{
|
{
|
||||||
struct frame_info *frame;
|
|
||||||
struct gdbarch *gdbarch;
|
struct gdbarch *gdbarch;
|
||||||
int regnum, numregs;
|
int regnum, numregs;
|
||||||
int i;
|
int i;
|
||||||
|
@ -864,8 +863,7 @@ mi_cmd_data_list_register_names (char *command, char **argv, int argc)
|
||||||
In this case, some entries of gdbarch_register_name will change depending
|
In this case, some entries of gdbarch_register_name will change depending
|
||||||
upon the particular processor being debugged. */
|
upon the particular processor being debugged. */
|
||||||
|
|
||||||
frame = get_selected_frame (NULL);
|
gdbarch = get_current_arch ();
|
||||||
gdbarch = get_frame_arch (frame);
|
|
||||||
numregs = gdbarch_num_regs (gdbarch) + gdbarch_num_pseudo_regs (gdbarch);
|
numregs = gdbarch_num_regs (gdbarch) + gdbarch_num_pseudo_regs (gdbarch);
|
||||||
|
|
||||||
cleanup = make_cleanup_ui_out_list_begin_end (uiout, "register-names");
|
cleanup = make_cleanup_ui_out_list_begin_end (uiout, "register-names");
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
2010-03-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
|
||||||
|
|
||||||
|
* gdb.mi/gdb680.exp: Revert 2009-06-17 change.
|
||||||
|
|
||||||
2010-03-18 Pedro Alves <pedro@codesourcery.com>
|
2010-03-18 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* gdb.base/default.exp: Adjust the expected output of the finish
|
* gdb.base/default.exp: Adjust the expected output of the finish
|
||||||
|
|
|
@ -27,7 +27,7 @@ if [mi_gdb_start] {
|
||||||
|
|
||||||
proc do_test {count} {
|
proc do_test {count} {
|
||||||
mi_gdb_test "-data-list-register-names -1" \
|
mi_gdb_test "-data-list-register-names -1" \
|
||||||
{\^error,msg=\"No registers.\"} \
|
{\^error,msg=\"bad register number\"} \
|
||||||
"-data-list-register-names -1, try $count"
|
"-data-list-register-names -1, try $count"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue