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