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