Add missing function prototypes in KGDB
This fixes the build broken by r298358
This commit is contained in:
parent
7ffae6f2b2
commit
4cde1dac8a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298363
@ -474,9 +474,7 @@ main(int argc, char *argv[])
|
||||
add_arg(&args, NULL);
|
||||
|
||||
init_ui_hook = kgdb_init;
|
||||
#if TARGET_CPUARCH == arm
|
||||
frame_tdep_pc_fixup = kgdb_trgt_pc_fixup;
|
||||
#endif
|
||||
kgdb_sniffer_kluge = kgdb_trgt_trapframe_sniffer;
|
||||
|
||||
return (gdb_main(&args));
|
||||
|
@ -195,3 +195,16 @@ kgdb_trgt_trapframe_sniffer(struct frame_info *next_frame)
|
||||
/* printf("%s: %lx =%s\n", __func__, pc, pname); */
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
* This function ensures, that the PC is inside the
|
||||
* function section which is understood by GDB.
|
||||
*
|
||||
* Return 0 when fixup is necessary, -1 otherwise.
|
||||
*/
|
||||
int
|
||||
kgdb_trgt_pc_fixup(CORE_ADDR *pc __unused)
|
||||
{
|
||||
|
||||
return (-1);
|
||||
}
|
||||
|
@ -385,3 +385,16 @@ kgdb_trgt_trapframe_sniffer(struct frame_info *next_frame)
|
||||
/* printf("%s: %llx =%s\n", __func__, pc, pname); */
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
* This function ensures, that the PC is inside the
|
||||
* function section which is understood by GDB.
|
||||
*
|
||||
* Return 0 when fixup is necessary, -1 otherwise.
|
||||
*/
|
||||
int
|
||||
kgdb_trgt_pc_fixup(CORE_ADDR *pc __unused)
|
||||
{
|
||||
|
||||
return (-1);
|
||||
}
|
||||
|
@ -238,3 +238,16 @@ kgdb_trgt_trapframe_sniffer(struct frame_info *next_frame)
|
||||
#endif
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
* This function ensures, that the PC is inside the
|
||||
* function section which is understood by GDB.
|
||||
*
|
||||
* Return 0 when fixup is necessary, -1 otherwise.
|
||||
*/
|
||||
int
|
||||
kgdb_trgt_pc_fixup(CORE_ADDR *pc __unused)
|
||||
{
|
||||
|
||||
return (-1);
|
||||
}
|
||||
|
@ -199,3 +199,16 @@ kgdb_trgt_trapframe_sniffer(struct frame_info *next_frame)
|
||||
/* printf("%s: %llx =%s\n", __func__, pc, pname); */
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
* This function ensures, that the PC is inside the
|
||||
* function section which is understood by GDB.
|
||||
*
|
||||
* Return 0 when fixup is necessary, -1 otherwise.
|
||||
*/
|
||||
int
|
||||
kgdb_trgt_pc_fixup(CORE_ADDR *pc __unused)
|
||||
{
|
||||
|
||||
return (-1);
|
||||
}
|
||||
|
@ -196,3 +196,16 @@ kgdb_trgt_trapframe_sniffer(struct frame_info *next_frame)
|
||||
/* printf("%s: %llx =%s\n", __func__, pc, pname); */
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
* This function ensures, that the PC is inside the
|
||||
* function section which is understood by GDB.
|
||||
*
|
||||
* Return 0 when fixup is necessary, -1 otherwise.
|
||||
*/
|
||||
int
|
||||
kgdb_trgt_pc_fixup(CORE_ADDR *pc __unused)
|
||||
{
|
||||
|
||||
return (-1);
|
||||
}
|
||||
|
@ -203,3 +203,16 @@ kgdb_trgt_trapframe_sniffer(struct frame_info *next_frame)
|
||||
/* printf("%s: %lx =%s\n", __func__, pc, pname); */
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
* This function ensures, that the PC is inside the
|
||||
* function section which is understood by GDB.
|
||||
*
|
||||
* Return 0 when fixup is necessary, -1 otherwise.
|
||||
*/
|
||||
int
|
||||
kgdb_trgt_pc_fixup(CORE_ADDR *pc __unused)
|
||||
{
|
||||
|
||||
return (-1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user