mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-24 20:49:43 +00:00
* Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
dependencies. * scm-lang.c (gdb_string.h): Include. * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow call to correct type (char *). * cp-valprint.c (cp_print_static_field): Ditto. * somsolib.c (som_solib_create_inferior_hook): Add a declaration for external find_unwind_entry function (from hppa-tdep.c). * remote-pa.c (remote_write_bytes, remote_read_bytes): Change type of second arg to "char *" to be type compatible with dcache. (remote_wait): Cast second arg to strtol to correct type. * hppa-tdep.c (compare_unwind_entries): Change argument types to "const void *" to be type compatible with qsort, and then assign to local args prior to use.
This commit is contained in:
parent
50d45d1b2f
commit
5579919f7d
@ -1,3 +1,21 @@
|
|||||||
|
Mon Apr 8 12:53:56 1996 Fred Fish <fnf@phydeaux.cygnus.com>
|
||||||
|
|
||||||
|
* Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
|
||||||
|
dependencies.
|
||||||
|
* scm-lang.c (gdb_string.h): Include.
|
||||||
|
* objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow
|
||||||
|
call to correct type (char *).
|
||||||
|
* cp-valprint.c (cp_print_static_field): Ditto.
|
||||||
|
* somsolib.c (som_solib_create_inferior_hook): Add a declaration
|
||||||
|
for external find_unwind_entry function (from hppa-tdep.c).
|
||||||
|
* remote-pa.c (remote_write_bytes, remote_read_bytes): Change
|
||||||
|
type of second arg to "char *" to be type compatible with
|
||||||
|
dcache.
|
||||||
|
(remote_wait): Cast second arg to strtol to correct type.
|
||||||
|
* hppa-tdep.c (compare_unwind_entries): Change argument types to
|
||||||
|
"const void *" to be type compatible with qsort, and then
|
||||||
|
assign to local args prior to use.
|
||||||
|
|
||||||
Mon Apr 8 15:35:52 1996 Jeffrey A Law (law@cygnus.com)
|
Mon Apr 8 15:35:52 1996 Jeffrey A Law (law@cygnus.com)
|
||||||
|
|
||||||
* infptrace.c (kill_inferior): Remove call to "kill"; update
|
* infptrace.c (kill_inferior): Remove call to "kill"; update
|
||||||
|
@ -1408,6 +1408,15 @@ rs6000-nat.o: rs6000-nat.c $(bfd_h) $(defs_h) $(inferior_h) target.h
|
|||||||
rs6000-tdep.o: rs6000-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h) \
|
rs6000-tdep.o: rs6000-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h) \
|
||||||
target.h xcoffsolib.h
|
target.h xcoffsolib.h
|
||||||
|
|
||||||
|
scm-exp.o: $(defs_h) $(value_h) parser-defs.h language.h c-lang.h \
|
||||||
|
scm-lang.h scm-tags.h
|
||||||
|
|
||||||
|
scm-lang.o: $(defs_h) $(value_h) parser-defs.h language.h c-lang.h \
|
||||||
|
scm-lang.h scm-tags.h gdb_string.h
|
||||||
|
|
||||||
|
scm-valprint.o: $(defs_h) $(value_h) parser-defs.h language.h \
|
||||||
|
scm-lang.h valprint.h
|
||||||
|
|
||||||
ser-go32.o: ser-go32.c $(defs_h) serial.h
|
ser-go32.o: ser-go32.c $(defs_h) serial.h
|
||||||
|
|
||||||
ser-mac.o: ser-mac.c $(defs_h) serial.h signals.h
|
ser-mac.o: ser-mac.c $(defs_h) serial.h signals.h
|
||||||
|
@ -499,7 +499,7 @@ cp_print_static_field (type, val, stream, format, recurse, pretty)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
obstack_grow (&dont_print_statmem_obstack, &VALUE_ADDRESS (val),
|
obstack_grow (&dont_print_statmem_obstack, (char *) &VALUE_ADDRESS (val),
|
||||||
sizeof (CORE_ADDR));
|
sizeof (CORE_ADDR));
|
||||||
|
|
||||||
CHECK_TYPEDEF (type);
|
CHECK_TYPEDEF (type);
|
||||||
|
@ -73,8 +73,7 @@ static int pc_in_interrupt_handler PARAMS ((CORE_ADDR));
|
|||||||
|
|
||||||
static int pc_in_linker_stub PARAMS ((CORE_ADDR));
|
static int pc_in_linker_stub PARAMS ((CORE_ADDR));
|
||||||
|
|
||||||
static int compare_unwind_entries PARAMS ((const struct unwind_table_entry *,
|
static int compare_unwind_entries PARAMS ((const void *, const void *));
|
||||||
const struct unwind_table_entry *));
|
|
||||||
|
|
||||||
static void read_unwind_info PARAMS ((struct objfile *));
|
static void read_unwind_info PARAMS ((struct objfile *));
|
||||||
|
|
||||||
@ -284,10 +283,13 @@ extract_17 (word)
|
|||||||
larger than the first, and zero if they are equal. */
|
larger than the first, and zero if they are equal. */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
compare_unwind_entries (a, b)
|
compare_unwind_entries (arg1, arg2)
|
||||||
const struct unwind_table_entry *a;
|
const void *arg1;
|
||||||
const struct unwind_table_entry *b;
|
const void *arg2;
|
||||||
{
|
{
|
||||||
|
const struct unwind_table_entry *a = arg1;
|
||||||
|
const struct unwind_table_entry *b = arg2;
|
||||||
|
|
||||||
if (a->region_start > b->region_start)
|
if (a->region_start > b->region_start)
|
||||||
return 1;
|
return 1;
|
||||||
else if (a->region_start < b->region_start)
|
else if (a->region_start < b->region_start)
|
||||||
|
@ -84,7 +84,7 @@ add_to_objfile_sections (abfd, asect, objfile_p_char)
|
|||||||
section.the_bfd_section = asect;
|
section.the_bfd_section = asect;
|
||||||
section.addr = bfd_section_vma (abfd, asect);
|
section.addr = bfd_section_vma (abfd, asect);
|
||||||
section.endaddr = section.addr + bfd_section_size (abfd, asect);
|
section.endaddr = section.addr + bfd_section_size (abfd, asect);
|
||||||
obstack_grow (&objfile->psymbol_obstack, §ion, sizeof(section));
|
obstack_grow (&objfile->psymbol_obstack, (char *) §ion, sizeof(section));
|
||||||
objfile->sections_end = (struct obj_section *) (((unsigned long) objfile->sections_end) + 1);
|
objfile->sections_end = (struct obj_section *) (((unsigned long) objfile->sections_end) + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -160,10 +160,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|||||||
/* Prototypes for local functions */
|
/* Prototypes for local functions */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
remote_write_bytes PARAMS ((CORE_ADDR memaddr, unsigned char *myaddr, int len));
|
remote_write_bytes PARAMS ((CORE_ADDR memaddr, char *myaddr, int len));
|
||||||
|
|
||||||
static int
|
static int
|
||||||
remote_read_bytes PARAMS ((CORE_ADDR memaddr, unsigned char *myaddr, int len));
|
remote_read_bytes PARAMS ((CORE_ADDR memaddr, char *myaddr, int len));
|
||||||
|
|
||||||
static void
|
static void
|
||||||
remote_files_info PARAMS ((struct target_ops *ignore));
|
remote_files_info PARAMS ((struct target_ops *ignore));
|
||||||
@ -650,7 +650,7 @@ remote_wait (pid, status)
|
|||||||
{
|
{
|
||||||
unsigned char *p1;
|
unsigned char *p1;
|
||||||
|
|
||||||
regno = strtol (p, &p1, 16); /* Read the register number */
|
regno = strtol (p, (char **) &p1, 16); /* Read the register number */
|
||||||
|
|
||||||
if (p1 == p)
|
if (p1 == p)
|
||||||
warning ("Remote sent badly formed register number: %s\nPacket: '%s'\n",
|
warning ("Remote sent badly formed register number: %s\nPacket: '%s'\n",
|
||||||
@ -880,7 +880,7 @@ remote_store_word (addr, word)
|
|||||||
static int
|
static int
|
||||||
remote_write_bytes (memaddr, myaddr, len)
|
remote_write_bytes (memaddr, myaddr, len)
|
||||||
CORE_ADDR memaddr;
|
CORE_ADDR memaddr;
|
||||||
unsigned char *myaddr;
|
char *myaddr;
|
||||||
int len;
|
int len;
|
||||||
{
|
{
|
||||||
char buf[PBUFSIZ];
|
char buf[PBUFSIZ];
|
||||||
@ -928,7 +928,7 @@ remote_write_bytes (memaddr, myaddr, len)
|
|||||||
static int
|
static int
|
||||||
remote_read_bytes (memaddr, myaddr, len)
|
remote_read_bytes (memaddr, myaddr, len)
|
||||||
CORE_ADDR memaddr;
|
CORE_ADDR memaddr;
|
||||||
unsigned char *myaddr;
|
char *myaddr;
|
||||||
int len;
|
int len;
|
||||||
{
|
{
|
||||||
char buf[PBUFSIZ];
|
char buf[PBUFSIZ];
|
||||||
@ -995,11 +995,9 @@ remote_xfer_memory(memaddr, myaddr, len, should_write, target)
|
|||||||
xfersize = len;
|
xfersize = len;
|
||||||
|
|
||||||
if (should_write)
|
if (should_write)
|
||||||
bytes_xferred = remote_write_bytes (memaddr,
|
bytes_xferred = remote_write_bytes (memaddr, myaddr, xfersize);
|
||||||
(unsigned char *)myaddr, xfersize);
|
|
||||||
else
|
else
|
||||||
bytes_xferred = remote_read_bytes (memaddr,
|
bytes_xferred = remote_read_bytes (memaddr, myaddr, xfersize);
|
||||||
(unsigned char *)myaddr, xfersize);
|
|
||||||
|
|
||||||
/* If we get an error, we are done xferring. */
|
/* If we get an error, we are done xferring. */
|
||||||
if (bytes_xferred == 0)
|
if (bytes_xferred == 0)
|
||||||
|
@ -27,6 +27,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|||||||
#include "c-lang.h"
|
#include "c-lang.h"
|
||||||
#include "scm-lang.h"
|
#include "scm-lang.h"
|
||||||
#include "scm-tags.h"
|
#include "scm-tags.h"
|
||||||
|
#include "gdb_string.h"
|
||||||
|
|
||||||
extern struct type ** const (c_builtin_types[]);
|
extern struct type ** const (c_builtin_types[]);
|
||||||
extern value_ptr value_allocate_space_in_inferior PARAMS ((int));
|
extern value_ptr value_allocate_space_in_inferior PARAMS ((int));
|
||||||
|
@ -557,6 +557,7 @@ som_solib_create_inferior_hook()
|
|||||||
ALL_OBJFILES (objfile)
|
ALL_OBJFILES (objfile)
|
||||||
{
|
{
|
||||||
struct unwind_table_entry *u;
|
struct unwind_table_entry *u;
|
||||||
|
extern struct unwind_table_entry *find_unwind_entry PARAMS ((CORE_ADDR pc));
|
||||||
|
|
||||||
/* What a crock. */
|
/* What a crock. */
|
||||||
msymbol = lookup_minimal_symbol_solib_trampoline (SYMBOL_NAME (msymbol),
|
msymbol = lookup_minimal_symbol_solib_trampoline (SYMBOL_NAME (msymbol),
|
||||||
|
Loading…
Reference in New Issue
Block a user