2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
2
3 * c-exp.y (classify_inner_name): Remove unused type.
4 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
5 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
6 need_escape.
7 (c_get_string): Remove unused kind.
8 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
9
10 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11
12 * charset.c (intermediate_encoding): Remove unused i.
13 * completer.c (signal_completer): Remove unused i.
14 * continuations.c (discard_my_continuations_1): Remove unused
15 continuation_ptr.
16 * corelow.c (core_close): Remove unuseD name.
17 (get_core_siginfo): Remove unused pid.
18 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
19 i, cps.
20 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
21 (loclist_describe_location): Remove unused first.
22 * event-top.c (command_line_handler): Remove unused got_eof.
23 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
24 (resize_section_table): Remove unused old_value.
25 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
26 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
27 * i386-tdep.c (i386_process_record): Remove unused rex.
28 * infcmd.c (get_return_value): Remove unused uiout.
29 * jv-lang.c (type_from_class): Remove unused is_array.
30 * jv-valprint.c (java_val_print): Remove unused i.
31 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
32 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
33 * m2-typeprint.c (m2_print_type): Remove unused code.
34 * macroexp.c (get_character_constant): Remove unused body_start.
35 (macro_stringify): Remove unused result.
36 * objc-lang.c (find_methods): Remove unused gdbarch.
37 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
38 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
39 * stack.c (print_frame_args): Remove unused summary.
40 * thread.c (thread_apply_command): Remove unused p.
41 * valarith.c (value_x_unop): Remove unused mangle_ptr.
42 * valops.c (search_struct_method): Remove unused skip.
43 * valprint.c (generic_val_print): Remove unused byte_order.
44 * varobj.c (varobj_update): Remove unused changed.
45 * cli/cli-cmds.c (complete_command): Remove unused next_item.
46 (alias_command): Remove unused c.
47 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
48 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
49 format.
50 (mi_cmd_data_write_memory): Remove unused word_format.
51 (mi_cmd_data_write_memory_bytes): Remove unused r.
52 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
53 p_start, p_end.
54 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
55 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
56 line_width.
57
58 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
59
60 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
61 * symtab.c (iterate_over_symtabs): Remove unused s.
62 (find_pc_sect_symtab): Remove unused pspAce.
63 (find_pc_sect_line): Remove unused alt_symtab.
64 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
65 (completion_list_add_name): Remove unused newsize.
66
67 2013-01-31 Tom Tromey <tromey@redhat.com>
68
69 PR c++/14998:
70 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
71 TYPE_CODE_FUNC.
72
73 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
74
75 * target.c (target_read_string): Remove unused origlen.
76
77 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
78
79 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
80 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
81 * ax-general.c (ax_print): Remove unused is_float.
82 * blockframe.c (block_innermost_frame): Remove unused start, end.
83 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
84
85 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
86
87 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
88 (svr4_read_so_list): Remove unused lmo.
89 * solib-target.c (solib_target_relocate_section_addresses): Remove
90 unused flags.
91
92 2013-01-30 Tom Tromey <tromey@redhat.com>
93
94 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
95
96 2013-01-30 Tom Tromey <tromey@redhat.com>
97
98 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
99 * utils.c (gnu_debuglink_crc32): Remove.
100 * utils.h (gnu_debuglink_crc32): Don't declare.
101
102 2013-01-30 Tom Tromey <tromey@redhat.com>
103
104 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
105 (read_structure_type, read_enumeration_type): Remove cast.
106
107 2013-01-30 Tom Tromey <tromey@redhat.com>
108
109 * dwarf2read.c (read_namespace_type): Remove cast.
110 (read_typedef): Likewise.
111
112 2013-01-29 Tom Tromey <tromey@redhat.com>
113
114 * dwarf2read.c (free_dwo_file): Remove assert.
115
116 2013-01-29 Tom Tromey <tromey@redhat.com>
117
118 * value.c (deprecated_set_value_modifiable): Remove.
119 * value.h (deprecated_set_value_modifiable): Remove.
120
121 2013-01-28 Doug Evans <dje@google.com>
122
123 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
124 to addresses from dwo files.
125
126 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
127
128 * valops.c (find_overload_match): Remove unused argument 'lax'.
129 * value.h: Remove unused argument 'lax' from the declaration of
130 find_overload_match.
131 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
132 to find_overload_match.
133 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
134 argument to find_overload_match.
135
136 2013-01-25 Tom Tromey <tromey@redhat.com>
137
138 * dwarf2read.c (processing_has_namespace_info): Remove.
139 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
140 (process_die, read_func_scope, dwarf2_start_symtab)
141 (new_symbol_full): Update.
142
143 2013-01-25 Tom Tromey <tromey@redhat.com>
144
145 * cp-namespace.c (cp_set_block_scope): Remove.
146 * cp-support.h (cp_set_block_scope): Remove.
147 * dbxread.c: Include block.h.
148 (cp_set_block_scope): New function.
149 (process_one_symbol): Update.
150 * dwarf2read.c (read_func_scope): Use block_set_scope.
151
152 2013-01-25 Pedro Alves <palves@redhat.com>
153
154 * remote.c (add_current_inferior_and_thread): Tweak comment.
155
156 2013-01-25 Tom Tromey <tromey@redhat.com>
157
158 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
159 (cp_add_using_directive): Add 'copy_names' argument.
160 * cp-support.h (cp_add_using_directive): Update.
161 (struct using_direct) <import_src, import_dest, alias,
162 declaration>: Now const.
163 * dwarf2read.c (read_import_statement): Use obconcat.
164 Don't copy names passed to cp_add_using_directive.
165
166 2013-01-25 Tom Tromey <tromey@redhat.com>
167
168 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
169
170 2013-01-25 Pedro Alves <palves@redhat.com>
171
172 * remote.c (stop_reply_extract_thread): New.
173 (add_current_inferior_and_thread): New parameter 'wait_status'.
174 Handle it.
175 (remote_start_remote): Pass wait status to
176 add_current_inferior_and_thread.
177 (extended_remote_run): Update comment.
178 (extended_remote_create_inferior_1): Pass wait status to
179 add_current_inferior_and_thread.
180
181 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
182 Ulrich Weigand <uweigand@de.ibm.com>
183
184 * valarith.c (value_vector_widen): New function for replicating a
185 scalar into a vector.
186 (value_binop): Use value_vector_widen to widen scalar to vector
187 rather than casting, this better matches gcc C behaviour.
188 * valops.c (value_casst): Update logic for casting between vector
189 types, and for casting from scalar to vector, try to match gcc C
190 behaviour.
191 * value.h (value_vector_widen): Declare.
192 * opencl-lang.c (opencl_value_cast): New opencl specific casting
193 function, handle special case for casting scalar to vector.
194 (opencl_relop): Use opencl_value_cast.
195 (evaluate_subexp_opencl): Use opencl_value_cast instead of
196 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
197 in order to use opencl_value_cast.
198
199 2013-01-25 Yao Qi <yao@codesourcery.com>
200
201 * event-loop.c: Include "queue.h".
202 (gdb_event_p): New typedef.
203 (DECLARE_QUEUE_P): Use.
204 (DEFINE_QUEUE_P): Use.
205 (async_queue_event): Remove.
206 (gdb_event_xfree): New.
207 (initialize_event_loop): New.
208 (process_event): Use QUEUE macros.
209 (event_queue): Remove.
210 (gdb_wait_for_event): Caller update.
211 (check_async_event_handlers): Likewise.
212 (poll_timers): Likewise.
213 * event-loop.h (initialize_event_loop): Declare.
214 * event-loop.c (gdb_event_xfree): New.
215 * top.c (gdb_init): Call initialize_event_loop.
216
217 2013-01-25 Yao Qi <yao@codesourcery.com>
218
219 * event-loop.c (async_queue_event): Remove one parameter
220 'position'. Remove code handling 'position' == TAIL.
221 (gdb_wait_for_event): Caller update.
222 (check_async_event_handlers): Caller update.
223 (poll_timers): Caller update.
224 * event-loop.h (enum queue_position): Remove.
225
226 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
227
228 * MAINTAINERS: Update my email.
229
230 2013-01-25 Yao Qi <yao@codesourcery.com>
231
232 * main.c (print_gdb_help): Remove "--epoch" from the help
233 message.
234
235 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
236
237 * symtab.c (skip_prologue_using_sal): Consider a file
238 change the same as an increased line number
239
240 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
241
242 * MAINTAINERS (Write After Approval): Add myself to the list.
243
244 2013-01-24 Tom Tromey <tromey@redhat.com>
245
246 * ada-lang.h (ada_decode_symbol): Make return type const.
247 * ada-lang.c (ada_decode_symbol): Likewise.
248
249 2013-01-23 Doug Evans <dje@google.com>
250
251 * linespec.c (find_linespec_symbols): Make static.
252
253 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
254
255 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
256 type on float conversion for complex type.
257
258 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
259
260 Add a new class gdb.Architecture which exposes GDB's
261 internal representation of architecture via GDB Python API.
262 * Makefile.in: Add entries corresponding to the new file
263 python/py-arch.c.
264 * NEWS (Python Scripting): Add entries for the new class
265 gdb.Architecture and the new method gdb.Frame.architecture.
266 * python/py-arch.c: Implement gdb.Architecture class.
267 * python/py-frame.c (frapy_arch): Implement the method
268 gdb.Frame.architecture().
269 (frame_object_methods): Add 'architecture' to the method table.
270 * python/python-internal.h: Add declarations of new utility
271 functions.
272 * python/python.c (_initialize_python): Initialize
273 gdb.Architecture class.
274
275 2013-01-23 Doug Evans <dje@google.com>
276
277 Work around binutils/15021.
278 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
279 type_unit_group out of union s. All uses updated.
280 (read_index_from_section): Watch for index version 8.
281 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
282 an imported symtab.
283 (write_psymtabs_to_index): Increment version number to 8.
284
285 2013-01-22 Pedro Alves <palves@redhat.com>
286
287 * annotate.c (breakpoint_changed): Skip if breakpoint is not
288 user-visible.
289
290 2013-01-22 Pedro Alves <palves@redhat.com>
291
292 * annotate.c (annotate_breakpoints_changed): Rename to ...
293 (annotate_breakpoints_invalid): ... this. Make static.
294 (breakpoint_changed): Adjust.
295 (_initialize_annotate): Always install the observers. Install a
296 "breakpoint_created" observer.
297 * annotate.h (annotate_breakpoints_changed): Delete declaration.
298 * breakpoint.c (set_breakpoint_condition)
299 (breakpoint_set_commands, do_map_commands_command)
300 (init_raw_breakpoint, clear_command, set_ignore_count)
301 (enable_breakpoint_disp): No longer call
302 annotate_breakpoints_changed.
303
304 2013-01-22 Pedro Alves <palves@redhat.com>
305
306 * annotate.c: Include "inferior.h".
307 (frames_invalid_emitted)
308 (breakpoints_invalid_emitted): New globals.
309 (async_background_execution_p): New function.
310 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
311 emitting the annotation if it has already been emitted.
312 (annotate_display_prompt): New function.
313 * annotate.h (annotate_display_prompt): New declaration.
314 * event-top.c: Include annotate.h.
315 (display_gdb_prompt): Call annotate_display_prompt.
316
317 2013-01-22 Pedro Alves <palves@redhat.com>
318
319 * annotate.c (ignore_count_changed): Delete.
320 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
321 (annotate_ignore_count_change): Delete.
322 (annotate_stopped): Don't emit a delayed breakpoints-changed
323 annotation.
324 * annotate.h (annotate_ignore_count_change): Delete.
325 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
326 annotate_ignore_count_change.
327
328 2013-01-22 Tom Tromey <tromey@redhat.com>
329
330 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
331 require_rvalue for a register location.
332
333 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
334
335 * breakpoint.c (print_one_breakpoint_location): Add MI
336 field 'thread-groups' when printing a breakpoint.
337 (output_thread_groups): New function.
338
339 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
340
341 * python/lib/gdb/commands/explore.py
342 (CompoundExplorer.explore_expr): Correct the name of a method
343 being invoked.
344 (ExploreTypeCommand.invoke): Add a missing 'return'.
345
346 2013-01-21 Tom Tromey <tromey@redhat.com>
347
348 * gdb_obstack.h (obconcat): Move declaration here, from...
349 * symfile.h (obconcat): ... here.
350 * gdb_obstack.c: New file.
351 (obconcat): Move from...
352 * symfile.c (obconcat): ... here.
353 * Makefile.in (SFILES): Add gdb_obstack.c.
354 (COMMON_OBS): Add gdb_obstack.o.
355
356 2013-01-21 Tom Tromey <tromey@redhat.com>
357
358 * symfile.h (obsavestring): Don't declare.
359 * symfile.c (obsavestring): Remove.
360 * ada-exp.y: Use obstack_copy0, not obsavestring.
361 * ada-lang.c: Use obstack_copy0, not obsavestring.
362 * coffread.c: Use obstack_copy0, not obsavestring.
363 * cp-namespace.c: Use obstack_copy0, not obsavestring.
364 * dbxread.c: Use obstack_copy0, not obsavestring.
365 * dwarf2read.c: Use obstack_copy0, not obsavestring.
366 * jit.c: Use obstack_copy0, not obsavestring.
367 * mdebugread.c: Use obstack_copy0, not obsavestring.
368 * psymtab.c: Use obstack_copy0, not obsavestring.
369 * stabsread.c: Use obstack_copy0, not obsavestring.
370 * xcoffread.c: Use obstack_copy0, not obsavestring.
371
372 2013-01-21 Tom Tromey <tromey@redhat.com>
373
374 * dwarf2read.c (fixup_go_packaging): Save package name
375 on objfile obstack.
376 * gdbtypes.c (init_type): Don't copy name.
377
378 2013-01-21 Tom Tromey <tromey@redhat.com>
379
380 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
381 const.
382 (struct attribute) <u.str>: Now const.
383 (struct fnfieldlist) <name>: Now const.
384 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
385 (partial_die_parent_scope): Make return type const.
386 (partial_die_full_name, add_partial_symbol): Update.
387 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
388 'name' const.
389 (find_file_and_directory): Make 'name' and 'comp_dir' const.
390 (read_file_scope, read_func_scope, dwarf2_add_field)
391 (dwarf2_add_member_fn, read_structure_type)
392 (process_enumeration_scope, read_array_type, read_module_type)
393 (read_base_type, read_subrange_type): Update.
394 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
395 (new_symbol_full, guess_full_die_structure_name): Update.
396 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
397 (dwarf2_name): Return const type.
398 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
399 const.
400
401 2013-01-21 Tom Tromey <tromey@redhat.com>
402
403 * gdbtypes.c (init_type): Make 'name' const.
404 * gdbtypes.h (init_type): Update.
405
406 2013-01-21 Tom Tromey <tromey@redhat.com>
407
408 * buildsym.c (patch_subfile_names): Use set_last_source_file.
409 (start_symtab): Make 'name' and 'dirname' const. Use
410 set_last_source_file.
411 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
412 (last_source_file): Define. Now static.
413 (set_last_source_file, get_last_source_file): New functions.
414 * buildsym.h (last_source_file): Don't declare.
415 (start_symtab): Update.
416 (set_last_source_file, get_last_source_file): Declare.
417 * coffread.c (complete_symtab): Use set_last_source_file.
418 (coff_end_symtab): Likewise.
419 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
420 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
421 set_last_source_file.
422 (process_one_symbol): Use get_last_source_file.
423 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
424 (psymtab_to_symtab_1): Use get_last_source_file.
425 * xcoffread.c (process_linenos): Use get_last_source_file.
426 (complete_symtab): Use set_last_source_file.
427 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
428 (scan_xcoff_symtab): Use set_last_source_file.
429
430 2013-01-21 Tom Tromey <tromey@redhat.com>
431
432 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
433 (symbol_set_names): Remove casts. Handle field const-ness.
434
435 2013-01-21 Tom Tromey <tromey@redhat.com>
436
437 * dwarf2read.c (new_symbol_full): Remove cast.
438 * symtab.c (symbol_set_demangled_name): Make 'name' const.
439 * symtab.h (symbol_set_demangled_name): Update.
440
441 2013-01-21 Tom Tromey <tromey@redhat.com>
442
443 * main.c (captured_main): Call bfd_init.
444
445 2013-01-21 Tom Tromey <tromey@redhat.com>
446
447 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
448 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
449 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
450 * NEWS: Update.
451
452 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
453
454 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
455
456 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
457
458 Fix gdb.fortran/common-block.exp crash in PIE mode.
459 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
460 LOC_COMMON_BLOCK.
461 * f-valprint.c (info_common_command_for_block): Expect
462 LOC_COMMON_BLOCK in gdb_assert.
463 * symtab.h (struct general_symbol_info): Update comment for the
464 common_block member.
465 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
466 (enum address_class): New member LOC_COMMON_BLOCK.
467
468 2013-01-18 David Blaikie <dblaikie@gmail.com>
469
470 * MAINTAINERS (Write After Approval): Add "David Blaikie".
471
472 2013-01-18 Tom Tromey <tromey@redhat.com>
473
474 PR c++/14999:
475 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
476 Call require_rvalue.
477
478 2013-01-18 Yao Qi <yao@codesourcery.com>
479
480 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
481 (dbx_read_symtab): New declaration.
482 (dbx_psymtab_to_symtab): Delete.
483 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
484 Rename parameter PST to SELF. Exchanged two parameters.
485 (start_psymtab): Caller update.
486 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
487 (dwarf2_read_symtab): New declaration.
488 (dwarf2_psymtab_to_symtab): Delete.
489 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
490 Rename parameter PST to SELF. Exchanged two parameters.
491 (create_partial_symtab): Caller update.
492 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
493 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
494 Rename parameter PST to SELF. Exchanged two parameters.
495 (parse_partial_symbols, new_psymtab): Caller update.
496 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
497 two parameters.
498 * psymtab.c (psymtab_to_symtab): Caller update.
499 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
500 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
501 Rename parameter PST to SELF. Exchanged two parameters.
502 (xcoff_start_psymtab): Caller update.
503
504 2013-01-18 Yao Qi <yao@codesourcery.com>
505
506 * infrun.c (proceed): Rename local variable 'oneproc' to
507 'force_step'.
508
509 2013-01-17 Doug Evans <dje@google.com>
510
511 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
512 (dw2_build_type_unit_groups): Delete. All uses updated.
513
514 * symtab.h (struct symbol_search): Add comment.
515
516 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
517
518 * symtab.c (compare_filenames_for_search): New comment for
519 HAS_DRIVE_SPEC.
520
521 2013-01-17 Tom Tromey <tromey@redhat.com>
522
523 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
524
525 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
526
527 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
528 initialize it by existing make_cleanup. Call new do_cleanups.
529
530 2013-01-17 Tom Tromey <tromey@redhat.com>
531
532 * cp-abi.c (cp_abi_completer): New function.
533 (_initialize_cp_abi): Set completer for "set cp-abi".
534
535 2013-01-17 Tom Tromey <tromey@redhat.com>
536
537 * mem-break.c: Remove obsolete comment.
538 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
539
540 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
541
542 * jit.c (jit_reader_load_command): Interpret the jit reader name
543 as an absolute path if it begins with a forward slash.
544
545 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
546
547 PR gdb/14550
548
549 * jit.c (finalize_symtab): Ensure that only the global block has a
550 NULL superblock.
551
552 2013-01-17 Pedro Alves <palves@redhat.com>
553
554 * acinclude.m4: Include ../config/plugins.m4,
555 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
556 * Makefile.in (aclocal_m4_deps): Update.
557 * aclocal.m4: Renegerate.
558
559 2013-01-16 Doug Evans <dje@google.com>
560
561 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
562
563 2013-01-16 Pedro Alves <palves@redhat.com>
564 Tom Tromey <tromey@redhat.com>
565
566 PR cli/7221:
567 * NEWS: Add "catch signal".
568 * breakpoint.c (base_breakpoint_ops): No longer static.
569 (bpstat_explains_signal): New function.
570 (init_catchpoint): No longer static.
571 (base_breakpoint_explains_signal): New function.
572 (base_breakpoint_ops): Initialize new field.
573 * breakpoint.h (enum bpstat_signal_value): New.
574 (struct breakpoint_ops) <explains_signal>: New field.
575 (bpstat_explains_signal): Remove macro, declare as function.
576 (base_breakpoint_ops, init_catchpoint): Declare.
577 * break-catch-sig.c: New file.
578 * inferior.h (signal_catch_update): Declare.
579 * infrun.c (signal_catch): New global.
580 (handle_syscall_event): Update for change to
581 bpstat_explains_signal.
582 (handle_inferior_event): Likewise. Always handle random signals
583 via bpstats.
584 (signal_cache_update): Check signal_catch.
585 (signal_catch_update): New function.
586 (_initialize_infrun): Initialize signal_catch.
587 * Makefile.in (SFILES): Add break-catch-sig.c.
588 (COMMON_OBS): Add break-catch-sig.o.
589
590 2013-01-16 Tom Tromey <tromey@redhat.com>
591
592 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
593 (print_one_catch_solib, print_one_catch_syscall)
594 (print_one_catch_exec, print_one_exception_catchpoint): Emit
595 "catch-type".
596
597 2013-01-16 Yao Qi <yao@codesourcery.com>
598
599 * printcmd.c (current_display_number): Make it static.
600
601 2013-01-16 Yao Qi <yao@codesourcery.com>
602
603 * infcmd.c (step_once): Don't check '!single_inst' as it was
604 checked before.
605
606 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
607
608 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
609
610 2013-01-14 Tom Tromey <tromey@redhat.com>
611
612 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
613 set command.
614 * command.h (add_setshow_string_noescape_cmd): Update.
615 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
616 (complete_set_gnutarget): New function.
617 (_initialize_core): Set the "set gnutarget" completer.
618
619 2013-01-14 Tom Tromey <tromey@redhat.com>
620
621 PR symtab/14442:
622 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
623 (c_type_print_modifier): Likewise.
624 * dwarf2read.c (read_tag_restrict_type): New function.
625 (read_type_die_1): Handle DW_TAG_restrict_type.
626 * gdbtypes.c (make_restrict_type): New function.
627 (recursive_dump_type): Handle TYPE_RESTRICT.
628 * gdbtypes.h (enum type_flag_values): Renumber.
629 (enum type_instance_flag_value): Add
630 TYPE_INSTANCE_FLAG_RESTRICT.
631 (TYPE_RESTRICT): New macro.
632 (make_restrict_type): Declare.
633
634 2013-01-14 Tom Tromey <tromey@redhat.com>
635
636 PR symtab/14931:
637 * psymtab.c (struct psymtab_state): New.
638 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
639 functions.
640 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
641 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
642
643 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
644 Pedro Alves <palves@redhat.com>
645
646 PR remote/14786
647
648 * remote.c (remote_threads_info): Make a copy of the reply from
649 qfThreadInfo and use that instead of rs->buf.
650
651 2013-01-14 Yao Qi <yao@codesourcery.com>
652
653 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
654 (dbx_psymtab_to_symtab): Likewise.
655 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
656 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
657 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
658
659 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
660
661 * parse.c (parse_exp_in_context): New variable inner_chain. Call
662 make_cleanup_restore_current_language. Call set_language. Move
663 OLD_CHAIN and INNER_CHAIN cleanups.
664 * utils.c (do_restore_current_language)
665 (make_cleanup_restore_current_language): New functions.
666 * utils.h (make_cleanup_restore_current_language): New declaration.
667
668 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
669
670 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
671 non-existing files.
672
673 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
674 non-existing files if FILENAME is already absolute.
675
676 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
677
678 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
679 fputs_filtered. Append trailing newline.
680
681 2013-01-11 Yao Qi <yao@codesourcery.com>
682 Stan Shebs <stan@codesourcery.com>
683
684 * psymtab.c (init_psymbol_list): Clarify the comment.
685
686 2013-01-11 Yao Qi <yao@codesourcery.com>
687
688 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
689 (update_dprintf_command_list): Assert that 'printf_line' is
690 non-null. Remove condition check.
691
692 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
693
694 Code cleanup.
695 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
696 type const char *.
697 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
698 const char *.
699 * tui/tui-source.h (tui_source_is_displayed): Likewise.
700
701 2013-01-09 Anthony Green <green@moxielogic.com>
702
703 * cp-abi.c (cplus_print_vtable): Don't return value from void
704 function.
705 * ada-lang.c (re_set_catch_assert): Ditto.
706
707 2013-01-09 Doug Evans <dje@google.com>
708
709 * symfile.h (quick_symbol_functions): Delete member
710 pre_expand_symtabs_matching. All uses removed.
711 * dwarf2read.c (dw2_lookup_symbol): Implement.
712 (dw2_do_expand_symtabs_matching): Delete.
713 (dw2_pre_expand_symtabs_matching): Delete.
714 (struct dw2_symtab_iterator): New type.
715 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
716 (dw2_expand_symtabs_for_function): Rewrite.
717 (dwarf2_gdb_index_functions): Update.
718 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
719 (psym_functions): Update.
720
721 2013-01-09 Tom Tromey <tromey@redhat.com>
722
723 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
724 * configure: Rebuild.
725 * configure.ac: Add somread.o to the build if BFD has SOM
726 support.
727 * somread.c: Include som/aout.h, not syms.h.
728 (som_symtab_read): Use som_external_symbol_dictionary_record.
729 Unpack records manually.
730 (_initialize_somread): Declare.
731
732 2012-01-08 Mike Frysinger <vapier@gentoo.org>
733
734 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
735 Cast return_address to 64bits.
736
737 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
738
739 * printcmd.c: Remove define of function output_command.
740 * tracepoint.c: Remove extern of function output_command.
741 * valprint.h: (output_command): New extern.
742
743 2013-01-07 Tom Tromey <tromey@redhat.com>
744
745 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
746 Remove.
747 (objc_language_defn): Use c_printchar, c_printstr,
748 c_emit_char.
749
750 2013-01-07 Tom Tromey <tromey@redhat.com>
751
752 PR cli/7719:
753 * NEWS: Update.
754 * ada-valprint.c (printstr, print_field_values): Remove
755 "inspect_it" code.
756 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
757 code.
758 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
759 code.
760 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
761 * main.c (captured_main): Remove "epoch" argument.
762 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
763 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
764 * p-valprint.c (pascal_object_print_value_fields): Remove
765 "inspect_it" code.
766 * printcmd.c (print_command_1): Remove 'inspect' argument.
767 (print_command, call_command): Update.
768 (inspect_command): Remove.
769 (_initialize_printcmd): Make "inspect" an alias for "print".
770 * top.c (epoch_interface): Remove.
771 * top.h (epoch_interface): Remove.
772 * valprint.c (user_print_options): Update.
773 (print_converted_chars_to_obstack): Remove "inspect_it" code.
774 * valprint.h (struct value_print_options) <inspect_it>: Remove
775 field.
776
777 2013-01-04 Tom Tromey <tromey@redhat.com>
778
779 * valprint.h (read_string): Add 'extern'.
780
781 2013-01-07 Joel Brobecker <brobecker@adacore.com>
782
783 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
784 used to decide whether to define darwin_read_dyld_info or not.
785
786 2013-01-03 Pierre Muller <muller@sourceware.org>
787
788 * main.c (relocate_gdb_directory): Avoid calling stat function
789 if DIR is empty.
790
791 2013-01-03 Yao Qi <yao@codesourcery.com>
792
793 * psymtab.c (fixup_psymbol_section): Update declaration.
794 (fixup_psymbol_section): Remove code returning value.
795
796 2013-01-03 Yao Qi <yao@codesourcery.com>
797
798 * symtab.h: Remove some out of date comments.
799 (enum exception_event_kind): Move it ...
800 * breakpoint.c: ... here.
801
802 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
803
804 PR gdb/14405
805 * darwin-nat.c (darwin_read_dyld_info): Only build if
806 TASK_DYLD_INFO_COUNT is defined.
807 (darwin_xfer_partial): Call darwin_read_dyld_info only if
808 TASK_DYLD_INFO_COUNT is defined.
809
810 2013-01-02 Tom Tromey <tromey@redhat.com>
811
812 * symfile.h (struct ecoff_debug_hack): Remove.
813 * objfiles.c: Don't include mdebugread.h.
814
815 2013-01-02 Tom Tromey <tromey@redhat.com>
816
817 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
818 * configure.ac: Check for Mach-O support in BFD. Update
819 CONFIG_OBS.
820 * configure: Rebuild.
821
822 2013-01-02 Tom Tromey <tromey@redhat.com>
823
824 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
825 * configure.ac: Use GDB_AC_CHECK_BFD.
826 * configure: Rebuild.
827
828 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
829
830 * MAINTAINERS: Update my email.
831
832 2013-01-01 Joel Brobecker <brobecker@adacore.com>
833
834 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
835
836 2013-01-01 Joel Brobecker <brobecker@adacore.com>
837
838 * rs6000-nat.c (bss_data_overlap): New function.
839 (vmap_symtab): Use it to adjust the .bss section's offset.
840
841 2013-01-01 Joel Brobecker <brobecker@adacore.com>
842
843 Update year range in copyright notice of all files.
844
845 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
846
847 * top.c (print_gdb_version): Update copyright year.
848
849 For older changes see ChangeLog-2012.
850 \f
851 Local Variables:
852 mode: change-log
853 left-margin: 8
854 fill-column: 74
855 version-control: never
856 coding: utf-8
857 End: