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