gdb: fix tab after space indentation issues
I spotted some indentation issues where we had some spaces followed by tabs at beginning of line, that I wanted to fix. So while at it, I did a quick grep to find and fix all I could find. gdb/ChangeLog: * Fix tab after space indentation issues throughout. Change-Id: I1acb414dd9c593b474ae2b8667496584df4316fd
This commit is contained in:
parent
01add95bed
commit
24b21115f5
46 changed files with 142 additions and 138 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
|
||||||
|
|
||||||
|
* Fix tab after space indentation issues throughout.
|
||||||
|
|
||||||
2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
|
2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
|
||||||
|
|
||||||
* Fix some indentation mistakes throughout.
|
* Fix some indentation mistakes throughout.
|
||||||
|
|
|
@ -2169,9 +2169,9 @@ decode_constrained_packed_array (struct value *arr)
|
||||||
&& ada_is_modular_type (value_type (arr)))
|
&& ada_is_modular_type (value_type (arr)))
|
||||||
{
|
{
|
||||||
/* This is a (right-justified) modular type representing a packed
|
/* This is a (right-justified) modular type representing a packed
|
||||||
array with no wrapper. In order to interpret the value through
|
array with no wrapper. In order to interpret the value through
|
||||||
the (left-justified) packed array type we just built, we must
|
the (left-justified) packed array type we just built, we must
|
||||||
first left-justify it. */
|
first left-justify it. */
|
||||||
int bit_size, bit_pos;
|
int bit_size, bit_pos;
|
||||||
ULONGEST mod;
|
ULONGEST mod;
|
||||||
|
|
||||||
|
|
|
@ -433,13 +433,13 @@ pdc_read_regs (pthdb_user_t user,
|
||||||
if (!ptrace64aix (PTT_READ_SPRS, tid,
|
if (!ptrace64aix (PTT_READ_SPRS, tid,
|
||||||
(unsigned long) &sprs64, 0, NULL))
|
(unsigned long) &sprs64, 0, NULL))
|
||||||
memset (&sprs64, 0, sizeof (sprs64));
|
memset (&sprs64, 0, sizeof (sprs64));
|
||||||
memcpy (&context->msr, &sprs64, sizeof(sprs64));
|
memcpy (&context->msr, &sprs64, sizeof(sprs64));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!ptrace32 (PTT_READ_SPRS, tid, (uintptr_t) &sprs32, 0, NULL))
|
if (!ptrace32 (PTT_READ_SPRS, tid, (uintptr_t) &sprs32, 0, NULL))
|
||||||
memset (&sprs32, 0, sizeof (sprs32));
|
memset (&sprs32, 0, sizeof (sprs32));
|
||||||
memcpy (&context->msr, &sprs32, sizeof(sprs32));
|
memcpy (&context->msr, &sprs32, sizeof(sprs32));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -2018,8 +2018,8 @@ amd64_analyze_stack_align (CORE_ADDR pc, CORE_ADDR current_pc,
|
||||||
|
|
||||||
"andq $-XXX, %rsp" can be either 4 bytes or 7 bytes:
|
"andq $-XXX, %rsp" can be either 4 bytes or 7 bytes:
|
||||||
|
|
||||||
0x48 0x83 0xe4 0xf0 andq $-16, %rsp
|
0x48 0x83 0xe4 0xf0 andq $-16, %rsp
|
||||||
0x48 0x81 0xe4 0x00 0xff 0xff 0xff andq $-256, %rsp
|
0x48 0x81 0xe4 0x00 0xff 0xff 0xff andq $-256, %rsp
|
||||||
*/
|
*/
|
||||||
|
|
||||||
gdb_byte buf[18];
|
gdb_byte buf[18];
|
||||||
|
@ -2182,13 +2182,13 @@ amd64_x32_analyze_stack_align (CORE_ADDR pc, CORE_ADDR current_pc,
|
||||||
|
|
||||||
"andq $-XXX, %rsp" can be either 4 bytes or 7 bytes:
|
"andq $-XXX, %rsp" can be either 4 bytes or 7 bytes:
|
||||||
|
|
||||||
0x48 0x83 0xe4 0xf0 andq $-16, %rsp
|
0x48 0x83 0xe4 0xf0 andq $-16, %rsp
|
||||||
0x48 0x81 0xe4 0x00 0xff 0xff 0xff andq $-256, %rsp
|
0x48 0x81 0xe4 0x00 0xff 0xff 0xff andq $-256, %rsp
|
||||||
|
|
||||||
"andl $-XXX, %esp" can be either 3 bytes or 6 bytes:
|
"andl $-XXX, %esp" can be either 3 bytes or 6 bytes:
|
||||||
|
|
||||||
0x83 0xe4 0xf0 andl $-16, %esp
|
0x83 0xe4 0xf0 andl $-16, %esp
|
||||||
0x81 0xe4 0x00 0xff 0xff 0xff andl $-256, %esp
|
0x81 0xe4 0x00 0xff 0xff 0xff andl $-256, %esp
|
||||||
*/
|
*/
|
||||||
|
|
||||||
gdb_byte buf[19];
|
gdb_byte buf[19];
|
||||||
|
@ -3342,9 +3342,9 @@ void
|
||||||
_initialize_amd64_tdep ()
|
_initialize_amd64_tdep ()
|
||||||
{
|
{
|
||||||
gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64, GDB_OSABI_NONE,
|
gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64, GDB_OSABI_NONE,
|
||||||
amd64_none_init_abi);
|
amd64_none_init_abi);
|
||||||
gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x64_32, GDB_OSABI_NONE,
|
gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x64_32, GDB_OSABI_NONE,
|
||||||
amd64_x32_none_init_abi);
|
amd64_x32_none_init_abi);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -429,17 +429,17 @@ amd64_skip_main_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
|
||||||
gdb_byte buf[4];
|
gdb_byte buf[4];
|
||||||
|
|
||||||
if (target_read_memory (pc + 1, buf, sizeof buf) == 0)
|
if (target_read_memory (pc + 1, buf, sizeof buf) == 0)
|
||||||
{
|
{
|
||||||
struct bound_minimal_symbol s;
|
struct bound_minimal_symbol s;
|
||||||
CORE_ADDR call_dest;
|
CORE_ADDR call_dest;
|
||||||
|
|
||||||
call_dest = pc + 5 + extract_signed_integer (buf, 4, byte_order);
|
call_dest = pc + 5 + extract_signed_integer (buf, 4, byte_order);
|
||||||
s = lookup_minimal_symbol_by_pc (call_dest);
|
s = lookup_minimal_symbol_by_pc (call_dest);
|
||||||
if (s.minsym != NULL
|
if (s.minsym != NULL
|
||||||
&& s.minsym->linkage_name () != NULL
|
&& s.minsym->linkage_name () != NULL
|
||||||
&& strcmp (s.minsym->linkage_name (), "__main") == 0)
|
&& strcmp (s.minsym->linkage_name (), "__main") == 0)
|
||||||
pc += 5;
|
pc += 5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return pc;
|
return pc;
|
||||||
|
|
|
@ -4614,15 +4614,15 @@ displaced_write_reg (regcache *regs, arm_displaced_step_copy_insn_closure *dsc,
|
||||||
|
|
||||||
case BX_WRITE_PC:
|
case BX_WRITE_PC:
|
||||||
bx_write_pc (regs, val);
|
bx_write_pc (regs, val);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LOAD_WRITE_PC:
|
case LOAD_WRITE_PC:
|
||||||
load_write_pc (regs, dsc, val);
|
load_write_pc (regs, dsc, val);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ALU_WRITE_PC:
|
case ALU_WRITE_PC:
|
||||||
alu_write_pc (regs, dsc, val);
|
alu_write_pc (regs, dsc, val);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CANNOT_WRITE_PC:
|
case CANNOT_WRITE_PC:
|
||||||
warning (_("Instruction wrote to PC in an unexpected way when "
|
warning (_("Instruction wrote to PC in an unexpected way when "
|
||||||
|
|
|
@ -785,7 +785,7 @@ set_condition_evaluation_mode (const char *args, int from_tty,
|
||||||
target. */
|
target. */
|
||||||
for (bp_location *loc : all_bp_locations ())
|
for (bp_location *loc : all_bp_locations ())
|
||||||
mark_breakpoint_location_modified (loc);
|
mark_breakpoint_location_modified (loc);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Manually mark non-duplicate locations to synch conditions
|
/* Manually mark non-duplicate locations to synch conditions
|
||||||
|
@ -10712,7 +10712,7 @@ watch_command_1 (const char *arg, int accessflag, int from_tty,
|
||||||
gdbarch *caller_arch = frame_unwind_caller_arch (wp_frame);
|
gdbarch *caller_arch = frame_unwind_caller_arch (wp_frame);
|
||||||
CORE_ADDR caller_pc = frame_unwind_caller_pc (wp_frame);
|
CORE_ADDR caller_pc = frame_unwind_caller_pc (wp_frame);
|
||||||
|
|
||||||
scope_breakpoint
|
scope_breakpoint
|
||||||
= create_internal_breakpoint (caller_arch, caller_pc,
|
= create_internal_breakpoint (caller_arch, caller_pc,
|
||||||
bp_watchpoint_scope,
|
bp_watchpoint_scope,
|
||||||
&momentary_breakpoint_ops);
|
&momentary_breakpoint_ops);
|
||||||
|
|
|
@ -968,25 +968,25 @@ coff_symtab_read (minimal_symbol_reader &reader,
|
||||||
symbol lookup which returned no match. */
|
symbol lookup which returned no match. */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (cs->c_secnum == N_ABS)
|
else if (cs->c_secnum == N_ABS)
|
||||||
{
|
{
|
||||||
/* Use the correct minimal symbol type (and don't
|
/* Use the correct minimal symbol type (and don't
|
||||||
relocate) for absolute values. */
|
relocate) for absolute values. */
|
||||||
ms_type = mst_abs;
|
ms_type = mst_abs;
|
||||||
sec = cs_to_section (cs, objfile);
|
sec = cs_to_section (cs, objfile);
|
||||||
tmpaddr = cs->c_value;
|
tmpaddr = cs->c_value;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
asection *bfd_section = cs_to_bfd_section (cs, objfile);
|
asection *bfd_section = cs_to_bfd_section (cs, objfile);
|
||||||
|
|
||||||
sec = cs_to_section (cs, objfile);
|
sec = cs_to_section (cs, objfile);
|
||||||
tmpaddr = cs->c_value;
|
tmpaddr = cs->c_value;
|
||||||
/* Statics in a PE file also get relocated. */
|
/* Statics in a PE file also get relocated. */
|
||||||
if (cs->c_sclass == C_EXT
|
if (cs->c_sclass == C_EXT
|
||||||
|| cs->c_sclass == C_THUMBEXTFUNC
|
|| cs->c_sclass == C_THUMBEXTFUNC
|
||||||
|| cs->c_sclass == C_THUMBEXT
|
|| cs->c_sclass == C_THUMBEXT
|
||||||
|| (pe_file && (cs->c_sclass == C_STAT)))
|
|| (pe_file && (cs->c_sclass == C_STAT)))
|
||||||
offset = objfile->section_offsets[sec];
|
offset = objfile->section_offsets[sec];
|
||||||
|
|
||||||
if (bfd_section->flags & SEC_CODE)
|
if (bfd_section->flags & SEC_CODE)
|
||||||
|
|
|
@ -1434,10 +1434,10 @@ read_dbx_symtab (minimal_symbol_reader &reader,
|
||||||
if (!p)
|
if (!p)
|
||||||
continue; /* Not a debugging symbol. */
|
continue; /* Not a debugging symbol. */
|
||||||
|
|
||||||
sym_len = 0;
|
sym_len = 0;
|
||||||
sym_name = NULL; /* pacify "gcc -Werror" */
|
sym_name = NULL; /* pacify "gcc -Werror" */
|
||||||
if (psymtab_language == language_cplus)
|
if (psymtab_language == language_cplus)
|
||||||
{
|
{
|
||||||
std::string name (namestring, p - namestring);
|
std::string name (namestring, p - namestring);
|
||||||
gdb::unique_xmalloc_ptr<char> new_name
|
gdb::unique_xmalloc_ptr<char> new_name
|
||||||
= cp_canonicalize_string (name.c_str ());
|
= cp_canonicalize_string (name.c_str ());
|
||||||
|
@ -1449,11 +1449,11 @@ read_dbx_symtab (minimal_symbol_reader &reader,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sym_len == 0)
|
if (sym_len == 0)
|
||||||
{
|
{
|
||||||
sym_name = namestring;
|
sym_name = namestring;
|
||||||
sym_len = p - namestring;
|
sym_len = p - namestring;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Main processing section for debugging symbols which
|
/* Main processing section for debugging symbols which
|
||||||
the initial read through the symbol tables needs to worry
|
the initial read through the symbol tables needs to worry
|
||||||
|
@ -2400,10 +2400,10 @@ process_one_symbol (int type, int desc, CORE_ADDR valu, const char *name,
|
||||||
struct block *block;
|
struct block *block;
|
||||||
|
|
||||||
if (outermost_context_p ())
|
if (outermost_context_p ())
|
||||||
{
|
{
|
||||||
lbrac_mismatch_complaint (symnum);
|
lbrac_mismatch_complaint (symnum);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The following check is added before recording line 0 at
|
/* The following check is added before recording line 0 at
|
||||||
end of function so as to handle hand-generated stabs
|
end of function so as to handle hand-generated stabs
|
||||||
|
|
|
@ -1649,7 +1649,7 @@ struct index_wip_file
|
||||||
const char *suffix)
|
const char *suffix)
|
||||||
{
|
{
|
||||||
filename = (std::string (dir) + SLASH_STRING + basename
|
filename = (std::string (dir) + SLASH_STRING + basename
|
||||||
+ suffix);
|
+ suffix);
|
||||||
|
|
||||||
filename_temp = make_temp_filename (filename);
|
filename_temp = make_temp_filename (filename);
|
||||||
|
|
||||||
|
|
|
@ -200,19 +200,19 @@ frv_linux_sigcontext_reg_addr (struct frame_info *this_frame, int regno,
|
||||||
else if (tramp_type == RT_SIGTRAMP)
|
else if (tramp_type == RT_SIGTRAMP)
|
||||||
{
|
{
|
||||||
/* For a realtime sigtramp frame, SP + 12 contains a pointer
|
/* For a realtime sigtramp frame, SP + 12 contains a pointer
|
||||||
to a ucontext struct. The ucontext struct contains a
|
to a ucontext struct. The ucontext struct contains a
|
||||||
sigcontext struct starting 24 bytes in. (The offset of
|
sigcontext struct starting 24 bytes in. (The offset of
|
||||||
uc_mcontext within struct ucontext is derived as follows:
|
uc_mcontext within struct ucontext is derived as follows:
|
||||||
stack_t is a 12-byte struct and struct sigcontext is
|
stack_t is a 12-byte struct and struct sigcontext is
|
||||||
8-byte aligned. This gives an offset of 8 + 12 + 4 (for
|
8-byte aligned. This gives an offset of 8 + 12 + 4 (for
|
||||||
padding) = 24.) */
|
padding) = 24.) */
|
||||||
if (target_read_memory (sp + 12, buf, sizeof buf) != 0)
|
if (target_read_memory (sp + 12, buf, sizeof buf) != 0)
|
||||||
{
|
{
|
||||||
warning (_("Can't read realtime sigtramp frame."));
|
warning (_("Can't read realtime sigtramp frame."));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
sc_addr = extract_unsigned_integer (buf, sizeof buf, byte_order);
|
sc_addr = extract_unsigned_integer (buf, sizeof buf, byte_order);
|
||||||
sc_addr += 24;
|
sc_addr += 24;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
internal_error (__FILE__, __LINE__, _("not a signal trampoline"));
|
internal_error (__FILE__, __LINE__, _("not a signal trampoline"));
|
||||||
|
|
|
@ -165,8 +165,8 @@ private:
|
||||||
void inf_validate_task_sc (struct inf *inf);
|
void inf_validate_task_sc (struct inf *inf);
|
||||||
void inf_restore_exc_ports (struct inf *inf);
|
void inf_restore_exc_ports (struct inf *inf);
|
||||||
void inf_set_threads_resume_sc (struct inf *inf,
|
void inf_set_threads_resume_sc (struct inf *inf,
|
||||||
struct proc *run_thread,
|
struct proc *run_thread,
|
||||||
int run_others);
|
int run_others);
|
||||||
int inf_set_threads_resume_sc_for_signal_thread (struct inf *inf);
|
int inf_set_threads_resume_sc_for_signal_thread (struct inf *inf);
|
||||||
void inf_resume (struct inf *inf);
|
void inf_resume (struct inf *inf);
|
||||||
void inf_set_step_thread (struct inf *inf, struct proc *proc);
|
void inf_set_step_thread (struct inf *inf, struct proc *proc);
|
||||||
|
|
|
@ -2156,9 +2156,9 @@ hppa_frame_cache (struct frame_info *this_frame, void **this_cache)
|
||||||
if (get_frame_pc (this_frame) >= prologue_end
|
if (get_frame_pc (this_frame) >= prologue_end
|
||||||
&& (u->Save_SP || u->alloca_frame) && fp != 0)
|
&& (u->Save_SP || u->alloca_frame) && fp != 0)
|
||||||
{
|
{
|
||||||
cache->base = fp;
|
cache->base = fp;
|
||||||
|
|
||||||
if (hppa_debug)
|
if (hppa_debug)
|
||||||
fprintf_unfiltered (gdb_stdlog, " (base=%s) [frame pointer]",
|
fprintf_unfiltered (gdb_stdlog, " (base=%s) [frame pointer]",
|
||||||
paddress (gdbarch, cache->base));
|
paddress (gdbarch, cache->base));
|
||||||
}
|
}
|
||||||
|
@ -2976,7 +2976,7 @@ hppa_skip_trampoline_code (struct frame_info *frame, CORE_ADDR pc)
|
||||||
if (in_plt_section (pc))
|
if (in_plt_section (pc))
|
||||||
{
|
{
|
||||||
/* Sanity check: are we pointing to the PLT stub? */
|
/* Sanity check: are we pointing to the PLT stub? */
|
||||||
if (!hppa_match_insns (gdbarch, pc, hppa_plt_stub, insn))
|
if (!hppa_match_insns (gdbarch, pc, hppa_plt_stub, insn))
|
||||||
{
|
{
|
||||||
warning (_("Cannot resolve PLT stub at %s."),
|
warning (_("Cannot resolve PLT stub at %s."),
|
||||||
paddress (gdbarch, pc));
|
paddress (gdbarch, pc));
|
||||||
|
|
|
@ -73,14 +73,14 @@ i386_fbsd_nat_target::resume (ptid_t ptid, int step, enum gdb_signal signal)
|
||||||
ULONGEST eflags;
|
ULONGEST eflags;
|
||||||
|
|
||||||
/* Workaround for a bug in FreeBSD. Make sure that the trace
|
/* Workaround for a bug in FreeBSD. Make sure that the trace
|
||||||
flag is off when doing a continue. There is a code path
|
flag is off when doing a continue. There is a code path
|
||||||
through the kernel which leaves the flag set when it should
|
through the kernel which leaves the flag set when it should
|
||||||
have been cleared. If a process has a signal pending (such
|
have been cleared. If a process has a signal pending (such
|
||||||
as SIGALRM) and we do a PT_STEP, the process never really has
|
as SIGALRM) and we do a PT_STEP, the process never really has
|
||||||
a chance to run because the kernel needs to notify the
|
a chance to run because the kernel needs to notify the
|
||||||
debugger that a signal is being sent. Therefore, the process
|
debugger that a signal is being sent. Therefore, the process
|
||||||
never goes through the kernel's trap() function which would
|
never goes through the kernel's trap() function which would
|
||||||
normally clear it. */
|
normally clear it. */
|
||||||
|
|
||||||
regcache_cooked_read_unsigned (regcache, I386_EFLAGS_REGNUM,
|
regcache_cooked_read_unsigned (regcache, I386_EFLAGS_REGNUM,
|
||||||
&eflags);
|
&eflags);
|
||||||
|
|
|
@ -47,7 +47,7 @@ extern void i386_linux_report_signal_info (struct gdbarch *gdbarch,
|
||||||
extern const struct target_desc *i386_linux_read_description (uint64_t xcr0);
|
extern const struct target_desc *i386_linux_read_description (uint64_t xcr0);
|
||||||
|
|
||||||
/* Format of XSAVE extended state is:
|
/* Format of XSAVE extended state is:
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
fxsave_bytes[0..463]
|
fxsave_bytes[0..463]
|
||||||
sw_usable_bytes[464..511]
|
sw_usable_bytes[464..511]
|
||||||
|
|
|
@ -1276,8 +1276,8 @@ i386_analyze_stack_align (CORE_ADDR pc, CORE_ADDR current_pc,
|
||||||
|
|
||||||
"andl $-XXX, %esp" can be either 3 bytes or 6 bytes:
|
"andl $-XXX, %esp" can be either 3 bytes or 6 bytes:
|
||||||
|
|
||||||
0x83 0xe4 0xf0 andl $-16, %esp
|
0x83 0xe4 0xf0 andl $-16, %esp
|
||||||
0x81 0xe4 0x00 0xff 0xff 0xff andl $-256, %esp
|
0x81 0xe4 0x00 0xff 0xff 0xff andl $-256, %esp
|
||||||
*/
|
*/
|
||||||
|
|
||||||
gdb_byte buf[14];
|
gdb_byte buf[14];
|
||||||
|
@ -1941,20 +1941,20 @@ i386_skip_main_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
|
||||||
gdb_byte buf[4];
|
gdb_byte buf[4];
|
||||||
|
|
||||||
if (target_read_code (pc + 1, buf, sizeof buf) == 0)
|
if (target_read_code (pc + 1, buf, sizeof buf) == 0)
|
||||||
{
|
{
|
||||||
/* Make sure address is computed correctly as a 32bit
|
/* Make sure address is computed correctly as a 32bit
|
||||||
integer even if CORE_ADDR is 64 bit wide. */
|
integer even if CORE_ADDR is 64 bit wide. */
|
||||||
struct bound_minimal_symbol s;
|
struct bound_minimal_symbol s;
|
||||||
CORE_ADDR call_dest;
|
CORE_ADDR call_dest;
|
||||||
|
|
||||||
call_dest = pc + 5 + extract_signed_integer (buf, 4, byte_order);
|
call_dest = pc + 5 + extract_signed_integer (buf, 4, byte_order);
|
||||||
call_dest = call_dest & 0xffffffffU;
|
call_dest = call_dest & 0xffffffffU;
|
||||||
s = lookup_minimal_symbol_by_pc (call_dest);
|
s = lookup_minimal_symbol_by_pc (call_dest);
|
||||||
if (s.minsym != NULL
|
if (s.minsym != NULL
|
||||||
&& s.minsym->linkage_name () != NULL
|
&& s.minsym->linkage_name () != NULL
|
||||||
&& strcmp (s.minsym->linkage_name (), "__main") == 0)
|
&& strcmp (s.minsym->linkage_name (), "__main") == 0)
|
||||||
pc += 5;
|
pc += 5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return pc;
|
return pc;
|
||||||
|
|
|
@ -1472,7 +1472,7 @@ get_return_value (struct value *function, struct type *value_type)
|
||||||
calls are made async, this will likely be made the norm. */
|
calls are made async, this will likely be made the norm. */
|
||||||
|
|
||||||
switch (gdbarch_return_value (gdbarch, function, value_type,
|
switch (gdbarch_return_value (gdbarch, function, value_type,
|
||||||
NULL, NULL, NULL))
|
NULL, NULL, NULL))
|
||||||
{
|
{
|
||||||
case RETURN_VALUE_REGISTER_CONVENTION:
|
case RETURN_VALUE_REGISTER_CONVENTION:
|
||||||
case RETURN_VALUE_ABI_RETURNS_ADDRESS:
|
case RETURN_VALUE_ABI_RETURNS_ADDRESS:
|
||||||
|
|
|
@ -7248,7 +7248,7 @@ process_event_stop_test (struct execution_control_state *ecs)
|
||||||
bool refresh_step_info = true;
|
bool refresh_step_info = true;
|
||||||
if ((ecs->event_thread->suspend.stop_pc == stop_pc_sal.pc)
|
if ((ecs->event_thread->suspend.stop_pc == stop_pc_sal.pc)
|
||||||
&& (ecs->event_thread->current_line != stop_pc_sal.line
|
&& (ecs->event_thread->current_line != stop_pc_sal.line
|
||||||
|| ecs->event_thread->current_symtab != stop_pc_sal.symtab))
|
|| ecs->event_thread->current_symtab != stop_pc_sal.symtab))
|
||||||
{
|
{
|
||||||
/* We are at a different line. */
|
/* We are at a different line. */
|
||||||
|
|
||||||
|
|
|
@ -121,8 +121,8 @@ default_macro_scope (void)
|
||||||
symbol files loaded, then get_current_or_default would raise an
|
symbol files loaded, then get_current_or_default would raise an
|
||||||
error. But `set width' shouldn't raise an error just because
|
error. But `set width' shouldn't raise an error just because
|
||||||
it can't decide which scope to macro-expand its argument in. */
|
it can't decide which scope to macro-expand its argument in. */
|
||||||
struct symtab_and_line cursal =
|
struct symtab_and_line cursal
|
||||||
get_current_source_symtab_and_line ();
|
= get_current_source_symtab_and_line ();
|
||||||
|
|
||||||
sal.symtab = cursal.symtab;
|
sal.symtab = cursal.symtab;
|
||||||
sal.line = cursal.line;
|
sal.line = cursal.line;
|
||||||
|
|
|
@ -202,6 +202,6 @@ mi_cmd_disassemble (const char *command, char **argv, int argc)
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_disassembly (gdbarch, uiout,
|
gdb_disassembly (gdbarch, uiout,
|
||||||
disasm_flags,
|
disasm_flags,
|
||||||
how_many, low, high);
|
how_many, low, high);
|
||||||
}
|
}
|
||||||
|
|
|
@ -701,7 +701,7 @@ varobj_update_one (struct varobj *var, enum print_values print_values,
|
||||||
break;
|
break;
|
||||||
case VAROBJ_INVALID:
|
case VAROBJ_INVALID:
|
||||||
uiout->field_string ("in_scope", "invalid");
|
uiout->field_string ("in_scope", "invalid");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (r.status != VAROBJ_INVALID)
|
if (r.status != VAROBJ_INVALID)
|
||||||
|
|
|
@ -266,7 +266,7 @@ mipsnbsd_get_longjmp_target (struct frame_info *frame, CORE_ADDR *pc)
|
||||||
jb_addr = get_frame_register_unsigned (frame, MIPS_A0_REGNUM);
|
jb_addr = get_frame_register_unsigned (frame, MIPS_A0_REGNUM);
|
||||||
|
|
||||||
if (target_read_memory (jb_addr + NBSD_MIPS_JB_OFFSET (gdbarch), buf,
|
if (target_read_memory (jb_addr + NBSD_MIPS_JB_OFFSET (gdbarch), buf,
|
||||||
NBSD_MIPS_JB_ELEMENT_SIZE (gdbarch)))
|
NBSD_MIPS_JB_ELEMENT_SIZE (gdbarch)))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
*pc = extract_unsigned_integer (buf, NBSD_MIPS_JB_ELEMENT_SIZE (gdbarch),
|
*pc = extract_unsigned_integer (buf, NBSD_MIPS_JB_ELEMENT_SIZE (gdbarch),
|
||||||
|
|
|
@ -4284,7 +4284,7 @@ heuristic-fence-post' command.\n",
|
||||||
|
|
||||||
/* On MIPS16, any one of the following is likely to be the
|
/* On MIPS16, any one of the following is likely to be the
|
||||||
start of a function:
|
start of a function:
|
||||||
extend save
|
extend save
|
||||||
save
|
save
|
||||||
entry
|
entry
|
||||||
addiu sp,-n
|
addiu sp,-n
|
||||||
|
|
|
@ -771,15 +771,15 @@ mnsh_maybe_mourn_peer (void)
|
||||||
|
|
||||||
#define mnsh_send_open(helper, filename, flags, mode) \
|
#define mnsh_send_open(helper, filename, flags, mode) \
|
||||||
mnsh_send_message (helper->sock, MNSH_REQ_OPEN, -1, flags, mode, \
|
mnsh_send_message (helper->sock, MNSH_REQ_OPEN, -1, flags, mode, \
|
||||||
filename, strlen (filename) + 1)
|
filename, strlen (filename) + 1)
|
||||||
|
|
||||||
#define mnsh_send_unlink(helper, filename) \
|
#define mnsh_send_unlink(helper, filename) \
|
||||||
mnsh_send_message (helper->sock, MNSH_REQ_UNLINK, -1, 0, 0, \
|
mnsh_send_message (helper->sock, MNSH_REQ_UNLINK, -1, 0, 0, \
|
||||||
filename, strlen (filename) + 1)
|
filename, strlen (filename) + 1)
|
||||||
|
|
||||||
#define mnsh_send_readlink(helper, filename) \
|
#define mnsh_send_readlink(helper, filename) \
|
||||||
mnsh_send_message (helper->sock, MNSH_REQ_READLINK, -1, 0, 0, \
|
mnsh_send_message (helper->sock, MNSH_REQ_READLINK, -1, 0, 0, \
|
||||||
filename, strlen (filename) + 1)
|
filename, strlen (filename) + 1)
|
||||||
|
|
||||||
/* Receive a message from the helper. Issue an assertion failure if
|
/* Receive a message from the helper. Issue an assertion failure if
|
||||||
the message isn't a correctly-formatted MNSH_RET_INT. Set RESULT
|
the message isn't a correctly-formatted MNSH_RET_INT. Set RESULT
|
||||||
|
|
|
@ -252,7 +252,7 @@ Invalid hardware breakpoint type %d in x86_length_and_rw_bits.\n"),
|
||||||
return (DR_LEN_4 | rw);
|
return (DR_LEN_4 | rw);
|
||||||
case 8:
|
case 8:
|
||||||
if (TARGET_HAS_DR_LEN_8)
|
if (TARGET_HAS_DR_LEN_8)
|
||||||
return (DR_LEN_8 | rw);
|
return (DR_LEN_8 | rw);
|
||||||
/* FALL THROUGH */
|
/* FALL THROUGH */
|
||||||
default:
|
default:
|
||||||
internal_error (__FILE__, __LINE__, _("\
|
internal_error (__FILE__, __LINE__, _("\
|
||||||
|
|
|
@ -1375,7 +1375,7 @@ nios2_analyze_prologue (struct gdbarch *gdbarch, const CORE_ADDR start_pc,
|
||||||
/* ORHI rb, ra, uimm (also used for MOVHI) */
|
/* ORHI rb, ra, uimm (also used for MOVHI) */
|
||||||
if (rb != 0)
|
if (rb != 0)
|
||||||
{
|
{
|
||||||
value[rb].reg = (value[ra].reg == 0) ? 0 : -1;
|
value[rb].reg = (value[ra].reg == 0) ? 0 : -1;
|
||||||
value[rb].offset = value[ra].offset | (uimm << 16);
|
value[rb].offset = value[ra].offset | (uimm << 16);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1142,7 +1142,7 @@ nto_procfs_target::mourn_inferior ()
|
||||||
the string "a b c d", and as output it would fill in argv with
|
the string "a b c d", and as output it would fill in argv with
|
||||||
the four arguments "a", "b", "c", "d". The only additional
|
the four arguments "a", "b", "c", "d". The only additional
|
||||||
functionality is simple quoting. The gdb command:
|
functionality is simple quoting. The gdb command:
|
||||||
run a "b c d" f
|
run a "b c d" f
|
||||||
will fill in argv with the three args "a", "b c d", "e". */
|
will fill in argv with the three args "a", "b c d", "e". */
|
||||||
static void
|
static void
|
||||||
breakup_args (char *scratch, char **argv)
|
breakup_args (char *scratch, char **argv)
|
||||||
|
|
|
@ -109,7 +109,7 @@ pascal_is_string_type (struct type *type,int *length_pos, int *length_size,
|
||||||
*string_pos = TYPE_FIELD_BITPOS (type, 1) / TARGET_CHAR_BIT;
|
*string_pos = TYPE_FIELD_BITPOS (type, 1) / TARGET_CHAR_BIT;
|
||||||
if (char_type)
|
if (char_type)
|
||||||
*char_type = TYPE_TARGET_TYPE (type->field (1).type ());
|
*char_type = TYPE_TARGET_TYPE (type->field (1).type ());
|
||||||
if (arrayname)
|
if (arrayname)
|
||||||
*arrayname = TYPE_FIELD_NAME (type, 1);
|
*arrayname = TYPE_FIELD_NAME (type, 1);
|
||||||
return 2;
|
return 2;
|
||||||
};
|
};
|
||||||
|
@ -135,7 +135,7 @@ pascal_is_string_type (struct type *type,int *length_pos, int *length_size,
|
||||||
if ((*char_type)->code () == TYPE_CODE_ARRAY)
|
if ((*char_type)->code () == TYPE_CODE_ARRAY)
|
||||||
*char_type = TYPE_TARGET_TYPE (*char_type);
|
*char_type = TYPE_TARGET_TYPE (*char_type);
|
||||||
}
|
}
|
||||||
if (arrayname)
|
if (arrayname)
|
||||||
*arrayname = TYPE_FIELD_NAME (type, 2);
|
*arrayname = TYPE_FIELD_NAME (type, 2);
|
||||||
return 3;
|
return 3;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1326,7 +1326,7 @@ ppc64_sysv_abi_push_freg (struct gdbarch *gdbarch,
|
||||||
&& type->code () == TYPE_CODE_FLT)
|
&& type->code () == TYPE_CODE_FLT)
|
||||||
{
|
{
|
||||||
/* Floats and doubles go in f1 .. f13. 32-bit floats are converted
|
/* Floats and doubles go in f1 .. f13. 32-bit floats are converted
|
||||||
to double first. */
|
to double first. */
|
||||||
if (argpos->regcache && argpos->freg <= 13)
|
if (argpos->regcache && argpos->freg <= 13)
|
||||||
{
|
{
|
||||||
int regnum = tdep->ppc_fp0_regnum + argpos->freg;
|
int regnum = tdep->ppc_fp0_regnum + argpos->freg;
|
||||||
|
|
|
@ -508,7 +508,7 @@ print_scalar_formatted (const gdb_byte *valaddr, struct type *type,
|
||||||
opts.format = 0;
|
opts.format = 0;
|
||||||
if (type->is_unsigned ())
|
if (type->is_unsigned ())
|
||||||
type = builtin_type (gdbarch)->builtin_true_unsigned_char;
|
type = builtin_type (gdbarch)->builtin_true_unsigned_char;
|
||||||
else
|
else
|
||||||
type = builtin_type (gdbarch)->builtin_true_char;
|
type = builtin_type (gdbarch)->builtin_true_char;
|
||||||
|
|
||||||
value_print (value_from_longest (type, *val_long), stream, &opts);
|
value_print (value_from_longest (type, *val_long), stream, &opts);
|
||||||
|
|
|
@ -1236,11 +1236,11 @@ record_full_wait_1 (struct target_ops *ops,
|
||||||
|
|
||||||
if (!record_full_message_wrapper_safe (regcache,
|
if (!record_full_message_wrapper_safe (regcache,
|
||||||
GDB_SIGNAL_0))
|
GDB_SIGNAL_0))
|
||||||
{
|
{
|
||||||
status->kind = TARGET_WAITKIND_STOPPED;
|
status->kind = TARGET_WAITKIND_STOPPED;
|
||||||
status->value.sig = GDB_SIGNAL_0;
|
status->value.sig = GDB_SIGNAL_0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
process_stratum_target *proc_target
|
process_stratum_target *proc_target
|
||||||
= current_inferior ()->process_target ();
|
= current_inferior ()->process_target ();
|
||||||
|
|
|
@ -2102,13 +2102,13 @@ _initialize_regcache ()
|
||||||
|
|
||||||
#if GDB_SELF_TEST
|
#if GDB_SELF_TEST
|
||||||
selftests::register_test ("get_thread_arch_aspace_regcache",
|
selftests::register_test ("get_thread_arch_aspace_regcache",
|
||||||
selftests::get_thread_arch_aspace_regcache_test);
|
selftests::get_thread_arch_aspace_regcache_test);
|
||||||
selftests::register_test ("registers_changed_ptid_all",
|
selftests::register_test ("registers_changed_ptid_all",
|
||||||
selftests::registers_changed_ptid_all_test);
|
selftests::registers_changed_ptid_all_test);
|
||||||
selftests::register_test ("registers_changed_ptid_target",
|
selftests::register_test ("registers_changed_ptid_target",
|
||||||
selftests::registers_changed_ptid_target_test);
|
selftests::registers_changed_ptid_target_test);
|
||||||
selftests::register_test ("registers_changed_ptid_target_pid",
|
selftests::register_test ("registers_changed_ptid_target_pid",
|
||||||
selftests::registers_changed_ptid_target_pid_test);
|
selftests::registers_changed_ptid_target_pid_test);
|
||||||
selftests::register_test ("registers_changed_ptid_target_ptid",
|
selftests::register_test ("registers_changed_ptid_target_ptid",
|
||||||
selftests::registers_changed_ptid_target_ptid_test);
|
selftests::registers_changed_ptid_target_ptid_test);
|
||||||
|
|
||||||
|
|
|
@ -9790,7 +9790,7 @@ remote_target::read_frame (gdb::char_vector *buf_p)
|
||||||
{
|
{
|
||||||
int repeat;
|
int repeat;
|
||||||
|
|
||||||
csum += c;
|
csum += c;
|
||||||
c = readchar (remote_timeout);
|
c = readchar (remote_timeout);
|
||||||
csum += c;
|
csum += c;
|
||||||
repeat = c - ' ' + 3; /* Compute repeat count. */
|
repeat = c - ' ' + 3; /* Compute repeat count. */
|
||||||
|
|
|
@ -1872,12 +1872,12 @@ skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, CORE_ADDR lim_pc,
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else if ((op & 0xffff0000) == 0x38210000)
|
else if ((op & 0xffff0000) == 0x38210000)
|
||||||
{ /* addi r1,r1,SIMM */
|
{ /* addi r1,r1,SIMM */
|
||||||
fdata->frameless = 0;
|
fdata->frameless = 0;
|
||||||
fdata->offset += SIGNED_SHORT (op);
|
fdata->offset += SIGNED_SHORT (op);
|
||||||
offset = fdata->offset;
|
offset = fdata->offset;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
/* Load up minimal toc pointer. Do not treat an epilogue restore
|
/* Load up minimal toc pointer. Do not treat an epilogue restore
|
||||||
of r31 as a minimal TOC load. */
|
of r31 as a minimal TOC load. */
|
||||||
else if (((op >> 22) == 0x20f || /* l r31,... or l r30,... */
|
else if (((op >> 22) == 0x20f || /* l r31,... or l r30,... */
|
||||||
|
@ -1890,7 +1890,7 @@ skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, CORE_ADDR lim_pc,
|
||||||
|
|
||||||
/* move parameters from argument registers to local variable
|
/* move parameters from argument registers to local variable
|
||||||
registers */
|
registers */
|
||||||
}
|
}
|
||||||
else if ((op & 0xfc0007fe) == 0x7c000378 && /* mr(.) Rx,Ry */
|
else if ((op & 0xfc0007fe) == 0x7c000378 && /* mr(.) Rx,Ry */
|
||||||
(((op >> 21) & 31) >= 3) && /* R3 >= Ry >= R10 */
|
(((op >> 21) & 31) >= 3) && /* R3 >= Ry >= R10 */
|
||||||
(((op >> 21) & 31) <= 10) &&
|
(((op >> 21) & 31) <= 10) &&
|
||||||
|
@ -2081,7 +2081,7 @@ skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, CORE_ADDR lim_pc,
|
||||||
}
|
}
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
/* Store gen register S at (r31+r0).
|
/* Store gen register S at (r31+r0).
|
||||||
Store param on stack when offset from SP bigger than 4 bytes. */
|
Store param on stack when offset from SP bigger than 4 bytes. */
|
||||||
/* 000100 sssss 11111 00000 01100100000 */
|
/* 000100 sssss 11111 00000 01100100000 */
|
||||||
|
|
|
@ -284,7 +284,7 @@ serial_fdopen_ops (const int fd, const struct serial_ops *ops)
|
||||||
{
|
{
|
||||||
ops = serial_interface_lookup ("terminal");
|
ops = serial_interface_lookup ("terminal");
|
||||||
if (!ops)
|
if (!ops)
|
||||||
ops = serial_interface_lookup ("hardwire");
|
ops = serial_interface_lookup ("hardwire");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ops)
|
if (!ops)
|
||||||
|
|
|
@ -1406,8 +1406,8 @@ sh_return_value_nofpu (struct gdbarch *gdbarch, struct value *function,
|
||||||
{
|
{
|
||||||
struct type *func_type = function ? value_type (function) : NULL;
|
struct type *func_type = function ? value_type (function) : NULL;
|
||||||
|
|
||||||
if (sh_use_struct_convention_nofpu (
|
if (sh_use_struct_convention_nofpu
|
||||||
sh_is_renesas_calling_convention (func_type), type))
|
(sh_is_renesas_calling_convention (func_type), type))
|
||||||
return RETURN_VALUE_STRUCT_CONVENTION;
|
return RETURN_VALUE_STRUCT_CONVENTION;
|
||||||
if (writebuf)
|
if (writebuf)
|
||||||
sh_store_return_value_nofpu (type, regcache, writebuf);
|
sh_store_return_value_nofpu (type, regcache, writebuf);
|
||||||
|
|
|
@ -1322,7 +1322,7 @@ print_source_lines_base (struct symtab *s, int line, int stopline,
|
||||||
uiout->field_string ("file", symtab_to_filename_for_display (s),
|
uiout->field_string ("file", symtab_to_filename_for_display (s),
|
||||||
file_name_style.style ());
|
file_name_style.style ());
|
||||||
if (uiout->is_mi_like_p () || !uiout->test_flags (ui_source_list))
|
if (uiout->is_mi_like_p () || !uiout->test_flags (ui_source_list))
|
||||||
{
|
{
|
||||||
const char *s_fullname = symtab_to_fullname (s);
|
const char *s_fullname = symtab_to_fullname (s);
|
||||||
char *local_fullname;
|
char *local_fullname;
|
||||||
|
|
||||||
|
@ -1333,7 +1333,7 @@ print_source_lines_base (struct symtab *s, int line, int stopline,
|
||||||
strcpy (local_fullname, s_fullname);
|
strcpy (local_fullname, s_fullname);
|
||||||
|
|
||||||
uiout->field_string ("fullname", local_fullname);
|
uiout->field_string ("fullname", local_fullname);
|
||||||
}
|
}
|
||||||
|
|
||||||
uiout->text ("\n");
|
uiout->text ("\n");
|
||||||
}
|
}
|
||||||
|
|
|
@ -3001,7 +3001,7 @@ read_struct_fields (struct stab_field_info *fip, const char **pp,
|
||||||
the type for the base class, and a terminating semicolon.
|
the type for the base class, and a terminating semicolon.
|
||||||
|
|
||||||
A typical example, with two base classes, would be "!2,020,19;0264,21;".
|
A typical example, with two base classes, would be "!2,020,19;0264,21;".
|
||||||
^^ ^ ^ ^ ^ ^ ^
|
^^ ^ ^ ^ ^ ^ ^
|
||||||
Baseclass information marker __________________|| | | | | | |
|
Baseclass information marker __________________|| | | | | | |
|
||||||
Number of baseclasses __________________________| | | | | | |
|
Number of baseclasses __________________________| | | | | | |
|
||||||
Visibility specifiers (2) ________________________| | | | | |
|
Visibility specifiers (2) ________________________| | | | | |
|
||||||
|
|
|
@ -2769,7 +2769,7 @@ return_command (const char *retval_exp, int from_tty)
|
||||||
if (thisfun != NULL)
|
if (thisfun != NULL)
|
||||||
return_type = TYPE_TARGET_TYPE (SYMBOL_TYPE (thisfun));
|
return_type = TYPE_TARGET_TYPE (SYMBOL_TYPE (thisfun));
|
||||||
if (return_type == NULL)
|
if (return_type == NULL)
|
||||||
{
|
{
|
||||||
if (retval_expr->first_opcode () != UNOP_CAST
|
if (retval_expr->first_opcode () != UNOP_CAST
|
||||||
&& retval_expr->first_opcode () != UNOP_CAST_TYPE)
|
&& retval_expr->first_opcode () != UNOP_CAST_TYPE)
|
||||||
error (_("Return value type not available for selected "
|
error (_("Return value type not available for selected "
|
||||||
|
|
|
@ -418,10 +418,10 @@ retry:
|
||||||
|
|
||||||
if (ch == '#')
|
if (ch == '#')
|
||||||
{
|
{
|
||||||
ch = getDebugChar ();
|
ch = getDebugChar ();
|
||||||
xmitcsum = hex (ch) << 4;
|
xmitcsum = hex (ch) << 4;
|
||||||
ch = getDebugChar ();
|
ch = getDebugChar ();
|
||||||
xmitcsum += hex (ch);
|
xmitcsum += hex (ch);
|
||||||
|
|
||||||
if (checksum != xmitcsum)
|
if (checksum != xmitcsum)
|
||||||
{
|
{
|
||||||
|
@ -437,7 +437,7 @@ retry:
|
||||||
putDebugChar (buffer[0]);
|
putDebugChar (buffer[0]);
|
||||||
putDebugChar (buffer[1]);
|
putDebugChar (buffer[1]);
|
||||||
|
|
||||||
return &buffer[3];
|
return &buffer[3];
|
||||||
}
|
}
|
||||||
|
|
||||||
return &buffer[0];
|
return &buffer[0];
|
||||||
|
|
|
@ -204,7 +204,7 @@ window_fine:
|
||||||
recursive_trap:
|
recursive_trap:
|
||||||
st %l5, [%lo(in_trap_handler) + %l4]
|
st %l5, [%lo(in_trap_handler) + %l4]
|
||||||
sub %sp,(16+1+6+1+72)*4,%sp ! Make room for input & locals
|
sub %sp,(16+1+6+1+72)*4,%sp ! Make room for input & locals
|
||||||
! + hidden arg + arg spill
|
! + hidden arg + arg spill
|
||||||
! + doubleword alignment
|
! + doubleword alignment
|
||||||
! + registers[72] local var
|
! + registers[72] local var
|
||||||
|
|
||||||
|
|
|
@ -415,7 +415,7 @@ relative_addr_info_to_section_offsets (section_offsets §ion_offsets,
|
||||||
|
|
||||||
osp = &addrs[i];
|
osp = &addrs[i];
|
||||||
if (osp->sectindex == -1)
|
if (osp->sectindex == -1)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* Record all sections in offsets. */
|
/* Record all sections in offsets. */
|
||||||
/* The section_offsets in the objfile are here filled in using
|
/* The section_offsets in the objfile are here filled in using
|
||||||
|
|
|
@ -1609,7 +1609,7 @@ maintenance_print_symbol_cache_statistics (const char *args, int from_tty)
|
||||||
/* If the cache hasn't been created yet, avoid creating one. */
|
/* If the cache hasn't been created yet, avoid creating one. */
|
||||||
cache = symbol_cache_key.get (pspace);
|
cache = symbol_cache_key.get (pspace);
|
||||||
if (cache == NULL)
|
if (cache == NULL)
|
||||||
printf_filtered (" empty, no stats available\n");
|
printf_filtered (" empty, no stats available\n");
|
||||||
else
|
else
|
||||||
symbol_cache_stats (cache);
|
symbol_cache_stats (cache);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2388,7 +2388,7 @@ tfind_line_command (const char *args, int from_tty)
|
||||||
if (sal.line > 0 && find_line_pc_range (sal, &start_pc, &end_pc))
|
if (sal.line > 0 && find_line_pc_range (sal, &start_pc, &end_pc))
|
||||||
{
|
{
|
||||||
if (start_pc == end_pc)
|
if (start_pc == end_pc)
|
||||||
{
|
{
|
||||||
printf_filtered ("Line %d of \"%s\"",
|
printf_filtered ("Line %d of \"%s\"",
|
||||||
sal.line,
|
sal.line,
|
||||||
symtab_to_filename_for_display (sal.symtab));
|
symtab_to_filename_for_display (sal.symtab));
|
||||||
|
@ -2403,9 +2403,9 @@ tfind_line_command (const char *args, int from_tty)
|
||||||
&& start_pc != end_pc)
|
&& start_pc != end_pc)
|
||||||
printf_filtered ("Attempting to find line %d instead.\n",
|
printf_filtered ("Attempting to find line %d instead.\n",
|
||||||
sal.line);
|
sal.line);
|
||||||
else
|
else
|
||||||
error (_("Cannot find a good line."));
|
error (_("Cannot find a good line."));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -2600,7 +2600,7 @@ windows_nat_target::create_inferior (const char *exec_file,
|
||||||
{
|
{
|
||||||
sh = get_shell ();
|
sh = get_shell ();
|
||||||
if (cygwin_conv_path (CCP_POSIX_TO_WIN_W, sh, shell, __PMAX) < 0)
|
if (cygwin_conv_path (CCP_POSIX_TO_WIN_W, sh, shell, __PMAX) < 0)
|
||||||
error (_("Error starting executable via shell: %d"), errno);
|
error (_("Error starting executable via shell: %d"), errno);
|
||||||
#ifdef __USEWIDE
|
#ifdef __USEWIDE
|
||||||
len = sizeof (L" -c 'exec '") + mbstowcs (NULL, exec_file, 0)
|
len = sizeof (L" -c 'exec '") + mbstowcs (NULL, exec_file, 0)
|
||||||
+ mbstowcs (NULL, allargs, 0) + 2;
|
+ mbstowcs (NULL, allargs, 0) + 2;
|
||||||
|
|
|
@ -768,7 +768,7 @@ xtensa_coprocessor_register_group (struct reggroup *group)
|
||||||
static int
|
static int
|
||||||
xtensa_register_reggroup_p (struct gdbarch *gdbarch,
|
xtensa_register_reggroup_p (struct gdbarch *gdbarch,
|
||||||
int regnum,
|
int regnum,
|
||||||
struct reggroup *group)
|
struct reggroup *group)
|
||||||
{
|
{
|
||||||
xtensa_register_t* reg = &gdbarch_tdep (gdbarch)->regmap[regnum];
|
xtensa_register_t* reg = &gdbarch_tdep (gdbarch)->regmap[regnum];
|
||||||
xtensa_register_type_t type = reg->type;
|
xtensa_register_type_t type = reg->type;
|
||||||
|
@ -2852,7 +2852,7 @@ execute_code (struct gdbarch *gdbarch, CORE_ADDR current_pc, CORE_ADDR wb)
|
||||||
xtensa_write_register (arreg, a7_saved);
|
xtensa_write_register (arreg, a7_saved);
|
||||||
}
|
}
|
||||||
return xtWindowUnderflow;
|
return xtWindowUnderflow;
|
||||||
default: /* Simply skip this insns. */
|
default: /* Simply skip this insns. */
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2965,7 +2965,7 @@ Unable to decode Xtensa Window Interrupt Handler's code."));
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{ int local_var = 1;
|
{ int local_var = 1;
|
||||||
....
|
....
|
||||||
}
|
}
|
||||||
|
|
||||||
because, for this source code, both Xtensa compilers will generate two
|
because, for this source code, both Xtensa compilers will generate two
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue