summaryrefslogtreecommitdiff
path: root/gdb/disasm.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-04-10 21:33:55 +0000
committerAndrew Cagney <cagney@redhat.com>2003-04-10 21:33:55 +0000
commit3d7c72cfff6c8f180d75b4d4c6331043696d2ed7 (patch)
tree224450d91ec9c11beeb44f4bdb846674fe278581 /gdb/disasm.c
parent56bd178a9001e428aea25d972ee7996270e6ef53 (diff)
downloadgdb-3d7c72cfff6c8f180d75b4d4c6331043696d2ed7.tar.gz
Diffstat (limited to 'gdb/disasm.c')
-rw-r--r--gdb/disasm.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/disasm.c b/gdb/disasm.c
index e9aabc88ac7..511855b5901 100644
--- a/gdb/disasm.c
+++ b/gdb/disasm.c
@@ -93,14 +93,15 @@ dump_insns (struct ui_out *uiout, disassemble_info * di,
/* parts of the symbolic representation of the address */
int unmapped;
- char *filename = NULL;
- char *name = NULL;
int offset;
int line;
struct cleanup *ui_out_chain;
for (pc = low; pc < high;)
{
+ char *filename = NULL;
+ char *name = NULL;
+
QUIT;
if (how_many >= 0)
{
@@ -358,7 +359,8 @@ gdb_disassembly (struct ui_out *uiout,
if (strcmp (target_shortname, "child") == 0
|| strcmp (target_shortname, "procfs") == 0
|| strcmp (target_shortname, "vxprocess") == 0
- || strstr (target_shortname, "-threads") != NULL)
+ || strcmp (target_shortname, "core") == 0
+ || strstr (target_shortname, "-thread") != NULL)
gdb_disassemble_from_exec = 0; /* It's a child process, read inferior mem */
else
gdb_disassemble_from_exec = 1; /* It's remote, read the exec file */