aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>2010-03-30 00:19:43 +0000
committerStan Shebs <shebs@codesourcery.com>2010-03-30 00:19:43 +0000
commit42e08e69836dc2e5fd0d1ae90eccd998e4b5658a (patch)
tree123201f8a51188b3425eca0f415841a1be4c3dd0
parentfe5c95995a97640d8bad1e42928872b8d34e0c84 (diff)
downloadgdb-42e08e69836dc2e5fd0d1ae90eccd998e4b5658a.zip
gdb-42e08e69836dc2e5fd0d1ae90eccd998e4b5658a.tar.gz
gdb-42e08e69836dc2e5fd0d1ae90eccd998e4b5658a.tar.bz2
2010-03-29 Stan Shebs <stan@codesourcery.com>
* tracepoint.c (trace_find_line_command): Remove dead code.
-rw-r--r--gdb/ChangeLog2
-rw-r--r--gdb/tracepoint.c25
2 files changed, 6 insertions, 21 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b7055b7..403210b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,7 @@
2010-03-29 Stan Shebs <stan@codesourcery.com>
+ * tracepoint.c (trace_find_line_command): Remove dead code.
+
* tracepoint.h (struct uploaded_string): New struct.
(struct uploaded_tp): New fields for source strings.
* breakpoint.c (this_utp, next_cmd): New globals.
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index 07e8541..ae0e040 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -2043,33 +2043,16 @@ trace_find_line_command (char *args, int from_tty)
sals.sals[0] = sal;
}
else
- {
+ {
sals = decode_line_spec (args, 1);
sal = sals.sals[0];
}
old_chain = make_cleanup (xfree, sals.sals);
if (sal.symtab == 0)
- {
- printf_filtered ("TFIND: No line number information available");
- if (sal.pc != 0)
- {
- /* This is useful for "info line *0x7f34". If we can't
- tell the user about a source line, at least let them
- have the symbolic address. */
- printf_filtered (" for address ");
- wrap_here (" ");
- print_address (get_current_arch (), sal.pc, gdb_stdout);
- printf_filtered (";\n -- will attempt to find by PC. \n");
- }
- else
- {
- printf_filtered (".\n");
- return; /* No line, no PC; what can we do? */
- }
- }
- else if (sal.line > 0
- && find_line_pc_range (sal, &start_pc, &end_pc))
+ error (_("No line number information available."));
+
+ if (sal.line > 0 && find_line_pc_range (sal, &start_pc, &end_pc))
{
if (start_pc == end_pc)
{