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