alpha-tdep.c/mips-tdep.c: "set heuristic-fence-post" is signed/zinteger.
These commands are currently var_zinteger, hence their control variable is signed. gdb/ 2013-04-19 Pedro Alves <palves@redhat.com> * alpha-tdep.c (heuristic_fence_post): Change type to int. (alpha_heuristic_proc_start): Adjust to check -1 instead of UINT_MAX. * mips-tdep.c (heuristic_fence_post): Change type to int. (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
This commit is contained in:
parent
e4286e57c5
commit
44096aee2e
|
@ -1,3 +1,11 @@
|
||||||
|
2013-04-19 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
|
* alpha-tdep.c (heuristic_fence_post): Change type to int.
|
||||||
|
(alpha_heuristic_proc_start): Adjust to check -1 instead of
|
||||||
|
UINT_MAX.
|
||||||
|
* mips-tdep.c (heuristic_fence_post): Change type to int.
|
||||||
|
(heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
|
||||||
|
|
||||||
2013-04-19 Pedro Alves <palves@redhat.com>
|
2013-04-19 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
* cris-tdep.c (usr_cmd_cris_version): Make unsigned.
|
* cris-tdep.c (usr_cmd_cris_version): Make unsigned.
|
||||||
|
|
|
@ -1032,7 +1032,7 @@ static const struct frame_unwind alpha_sigtramp_frame_unwind = {
|
||||||
/* Heuristic_proc_start may hunt through the text section for a long
|
/* Heuristic_proc_start may hunt through the text section for a long
|
||||||
time across a 2400 baud serial line. Allows the user to limit this
|
time across a 2400 baud serial line. Allows the user to limit this
|
||||||
search. */
|
search. */
|
||||||
static unsigned int heuristic_fence_post = 0;
|
static int heuristic_fence_post = 0;
|
||||||
|
|
||||||
/* Attempt to locate the start of the function containing PC. We assume that
|
/* Attempt to locate the start of the function containing PC. We assume that
|
||||||
the previous function ends with an about_to_return insn. Not foolproof by
|
the previous function ends with an about_to_return insn. Not foolproof by
|
||||||
|
@ -1059,7 +1059,7 @@ alpha_heuristic_proc_start (struct gdbarch *gdbarch, CORE_ADDR pc)
|
||||||
if (func)
|
if (func)
|
||||||
return func;
|
return func;
|
||||||
|
|
||||||
if (heuristic_fence_post == UINT_MAX
|
if (heuristic_fence_post == -1
|
||||||
|| fence < tdep->vm_min_address)
|
|| fence < tdep->vm_min_address)
|
||||||
fence = tdep->vm_min_address;
|
fence = tdep->vm_min_address;
|
||||||
|
|
||||||
|
|
|
@ -787,7 +787,7 @@ static const signed char mips_reg3_to_reg[8] = { 16, 17, 2, 3, 4, 5, 6, 7 };
|
||||||
time across a 2400 baud serial line. Allows the user to limit this
|
time across a 2400 baud serial line. Allows the user to limit this
|
||||||
search. */
|
search. */
|
||||||
|
|
||||||
static unsigned int heuristic_fence_post = 0;
|
static int heuristic_fence_post = 0;
|
||||||
|
|
||||||
/* Number of bytes of storage in the actual machine representation for
|
/* Number of bytes of storage in the actual machine representation for
|
||||||
register N. NOTE: This defines the pseudo register type so need to
|
register N. NOTE: This defines the pseudo register type so need to
|
||||||
|
@ -4021,7 +4021,7 @@ heuristic_proc_start (struct gdbarch *gdbarch, CORE_ADDR pc)
|
||||||
if (start_pc == 0)
|
if (start_pc == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (heuristic_fence_post == UINT_MAX || fence < VM_MIN_ADDRESS)
|
if (heuristic_fence_post == -1 || fence < VM_MIN_ADDRESS)
|
||||||
fence = VM_MIN_ADDRESS;
|
fence = VM_MIN_ADDRESS;
|
||||||
|
|
||||||
instlen = mips_pc_is_mips (pc) ? MIPS_INSN32_SIZE : MIPS_INSN16_SIZE;
|
instlen = mips_pc_is_mips (pc) ? MIPS_INSN32_SIZE : MIPS_INSN16_SIZE;
|
||||||
|
|
Loading…
Reference in New Issue