From 0428b8f567d7966cd47efe0cc99eb8b5072c625e Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Fri, 2 May 2008 16:00:36 +0000 Subject: * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string) (arm_force_mode_string, arm_show_fallback_mode) (arm_show_force_mode): New. (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use arm_frame_is_thumb. (_initialize_arm_tdep): Add "set arm fallback-mode" and "set arm force-mode". * NEWS: Document new commands. * gdb.texinfo (ARM): Document set/show arm fallback-mode and set/show arm force-mode. --- gdb/doc/ChangeLog | 5 +++++ gdb/doc/gdb.texinfo | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+) (limited to 'gdb/doc') diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 2b5b662..15d51f4 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2008-05-02 Daniel Jacobowitz + + * gdb.texinfo (ARM): Document set/show arm fallback-mode + and set/show arm force-mode. + 2008-05-02 Andreas Schwab * gdbint.texinfo (Algorithms): Describe diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 46d5904..17c5b11 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -14894,6 +14894,26 @@ This command forces @value{GDBN} to use the specified ABI. @item show arm abi Show the currently used ABI. +@item set arm fallback-mode (arm|thumb|auto) +@value{GDBN} uses the symbol table, when available, to determine +whether instructions are ARM or Thumb. This command controls +@value{GDBN}'s default behavior when the symbol table is not +available. The default is @samp{auto}, which causes @value{GDBN} to +use the current execution mode (from the @code{T} bit in the @code{CPSR} +register). + +@item show arm fallback-mode +Show the current fallback instruction mode. + +@item set arm force-mode (arm|thumb|auto) +This command overrides use of the symbol table to determine whether +instructions are ARM or Thumb. The default is @samp{auto}, which +causes @value{GDBN} to use the symbol table and then the setting +of @samp{set arm fallback-mode}. + +@item show arm force-mode +Show the current forced instruction mode. + @item set debug arm Toggle whether to display ARM-specific debugging messages from the ARM target support subsystem. -- cgit v1.1