diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2005-03-08 10:03:47 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2005-03-08 10:03:47 +0000 |
commit | 549678dac212a054bd13d400abef7d67348c036b (patch) | |
tree | a21ca23b302098338fce0fe97f40df9c683372a5 | |
parent | 20be272bd75c6191cb06fab3122d8a29d7d53bcf (diff) | |
download | gdb-549678dac212a054bd13d400abef7d67348c036b.zip gdb-549678dac212a054bd13d400abef7d67348c036b.tar.gz gdb-549678dac212a054bd13d400abef7d67348c036b.tar.bz2 |
* tracepoint.c (target_is_remote): Allow extended-remote.
(struct collection_list): Allow 256 registers, like the comment
said.
(add_memrange): Fix comment.
(read_actions): Turn EOF into 'end'.
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/tracepoint.c | 10 |
2 files changed, 15 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ded4453..b352ce4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2005-03-08 Nathan Sidwell <nathan@codesourcery.com> + + * tracepoint.c (target_is_remote): Allow extended-remote. + (struct collection_list): Allow 256 registers, like the comment + said. + (add_memrange): Fix comment. + (read_actions): Turn EOF into 'end'. + 2005-03-08 Corinna Vinschen <vinschen@redhat.com> * Makefile.in: Add dependencies for iq2000-tdep.o. diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index a01a3ed..ec3c53f 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -164,7 +164,8 @@ static int target_is_remote (void) { if (current_target.to_shortname && - strcmp (current_target.to_shortname, "remote") == 0) + (strcmp (current_target.to_shortname, "remote") == 0 + || strcmp (current_target.to_shortname, "extended-remote") == 0)) return 1; else return 0; @@ -860,6 +861,9 @@ read_actions (struct tracepoint *t) else line = gdb_readline (0); + if (!line) + line = "end"; + linetype = validate_actionline (&line, t); if (linetype == BADLINE) continue; /* already warned -- collect another line */ @@ -1074,7 +1078,7 @@ struct memrange struct collection_list { - unsigned char regs_mask[8]; /* room for up to 256 regs */ + unsigned char regs_mask[32]; /* room for up to 256 regs */ long listsize; long next_memrange; struct memrange *list; @@ -1171,7 +1175,7 @@ add_memrange (struct collection_list *memranges, printf_filtered (",%ld)\n", len); } - /* type: 0 == memory, n == basereg */ + /* type: -1 == memory, n == basereg */ memranges->list[memranges->next_memrange].type = type; /* base: addr if memory, offset if reg relative. */ memranges->list[memranges->next_memrange].start = base; |