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