Add missing function prototypes in KGDB

This fixes the build broken by r298358
This commit is contained in:
Wojciech Macek 2016-04-20 20:22:48 +00:00
parent 7ffae6f2b2
commit 4cde1dac8a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298363
7 changed files with 78 additions and 2 deletions

View File

@ -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));

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}