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