Fix various GCC warnings.
This commit is contained in:
parent
692590c19f
commit
80ce1ecb70
|
@ -1,3 +1,10 @@
|
||||||
|
Wed Mar 29 10:16:35 2000 Andrew Cagney <cagney@b1.cygnus.com>
|
||||||
|
|
||||||
|
* breakpoint.h (remove_hw_watchpoints): Add declaration.
|
||||||
|
* breakpoints.c (remove_hw_watchpoints): Update.
|
||||||
|
* maint.c (maintenance_do_deprecate): Avoid assignment within IF
|
||||||
|
condition.
|
||||||
|
|
||||||
2000-03-28 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
|
2000-03-28 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
|
||||||
|
|
||||||
breakpoint.c, breakpoint.h (remove_hw_watchpoints): New function.
|
breakpoint.c, breakpoint.h (remove_hw_watchpoints): New function.
|
||||||
|
|
|
@ -1096,7 +1096,7 @@ remove_breakpoints ()
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
remove_hw_watchpoints ()
|
remove_hw_watchpoints (void)
|
||||||
{
|
{
|
||||||
register struct breakpoint *b;
|
register struct breakpoint *b;
|
||||||
int val;
|
int val;
|
||||||
|
|
|
@ -693,4 +693,8 @@ extern struct breakpoint *set_breakpoint_sal PARAMS ((struct symtab_and_line));
|
||||||
deletes all breakpoints. */
|
deletes all breakpoints. */
|
||||||
extern void delete_command (char *arg, int from_tty);
|
extern void delete_command (char *arg, int from_tty);
|
||||||
|
|
||||||
|
/* Pull all H/W watchpoints from the target. Return non-zero if the
|
||||||
|
remove fails. */
|
||||||
|
extern int remove_hw_watchpoints (void);
|
||||||
|
|
||||||
#endif /* !defined (BREAKPOINT_H) */
|
#endif /* !defined (BREAKPOINT_H) */
|
||||||
|
|
|
@ -425,10 +425,12 @@ maintenance_do_deprecate (char *text, int deprecate)
|
||||||
if (deprecate)
|
if (deprecate)
|
||||||
{
|
{
|
||||||
/* look for a replacement command */
|
/* look for a replacement command */
|
||||||
if (start_ptr = strchr (text, '\"'))
|
start_ptr = strchr (text, '\"');
|
||||||
|
if (start_ptr != NULL)
|
||||||
{
|
{
|
||||||
start_ptr++;
|
start_ptr++;
|
||||||
if (end_ptr = strrchr (start_ptr, '\"'))
|
end_ptr = strrchr (start_ptr, '\"');
|
||||||
|
if (end_ptr != NULL)
|
||||||
{
|
{
|
||||||
len = end_ptr - start_ptr;
|
len = end_ptr - start_ptr;
|
||||||
start_ptr[len] = '\0';
|
start_ptr[len] = '\0';
|
||||||
|
|
Loading…
Reference in New Issue