ser-tcp.c:tcp_retry_limit: Change type to unsigned int.
[external/binutils.git] / gdb / ChangeLog
1 2013-03-07  Pedro Alves  <palves@redhat.com>
2
3         * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
4
5 2013-03-07  Pedro Alves  <palves@redhat.com>
6
7         * remote.c (hex2bin, bin2hex): Move extern declarations to ...
8         * remote.h (hex2bin, bin2hex): ... here.
9         * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10
11 2013-03-07  Eli Zaretskii  <eliz@gnu.org>
12
13         * utils.c (initialize_utils): Improve doc strings of "set/show
14         width", "set/show height", and "set/show pagination".
15
16 2013-03-06  Keith Seitz  <keiths@redhat.com>
17
18         * ax-gdb.c (gen_printf): Make FORMAT const.
19         * ax-gdb.h (gen_printf): Likewise.
20         * ax-general.c (ax_string): Make STR const.
21         * ax.h (ax_string): Likewise.
22
23 2013-03-06  Doug Evans  <dje@google.com>
24
25         * elfread.c (elf_symfile_read): Move debugging printf to more
26         logical location.
27
28 2013-03-06  Pedro Alves  <palves@redhat.com>
29
30         * python/py-utils.c (target_string_to_unicode): Delete function.
31         * python/python-internal.h (target_string_to_unicode): Delete
32         declaration.
33
34 2013-03-06  Pierre Muller  <muller@sourceware.org>
35
36         * linespec.c (get_current_search_block): ARI fix, use (void)
37         for empty parameter list.
38
39 2013-03-05  Doug Evans  <dje@google.com>
40
41         * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
42         of old ada_lookup_symbol_list.  In !full_search case, don't
43         search superblocks.
44         (ada_lookup_symbol_list): Delete arg full_search, all callers
45         updated.  Call ada_lookup_symbol_list_worker.
46         (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
47         * ada-lang.h (ada_lookup_symbol_list): Update.
48         * language.h (language_defn): Update comment for
49         la_iterate_over_symbols.
50         * linespec.c (iterate_over_file_blocks): New function.
51         (iterate_over_all_matching_symtabs): Call it.
52         (lookup_prefix_sym): Ditto.
53         (get_current_search_block): New function.
54         (get_search_block): Delete.
55         (find_label_symbols): Call get_current_search_block.
56         (add_matching_symbols_to_info): Call iterate_over_file_blocks.
57         * symtab.c (iterate_over_symbols): Don't search superblocks.
58
59 2013-03-05  Yao Qi  <yao@codesourcery.com>
60
61         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
62         parameter VAR's type from "unsigned int" to "int".
63         * command.h (var_zuinteger_unlimited): Update its comments.
64         (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
65
66 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
67
68         * NEWS: Mention new target x86_64-*-cygwin*.
69
70 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
71
72         * configure.host: Add x86_64-*-cygwin* as host.
73         * configure.tgt: Add x86_64-*-cygwin* as target.
74         * config/i386/cygwin64.mh: New file.
75
76 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
77
78         * linespec.c (decode_line_2): Fix duplicate request off by two message.
79
80 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
81
82         * linespec.c (struct linespec_canonical_name): New.
83         (struct linespec_state): Change canonical_names type to it.
84         (add_sal_to_sals): Change variable canonical_name to canonical.  Change
85         xrealloc element size.  Initialize the different CANONICAL fields.
86         (canonical_to_fullform): New.
87         (filter_results): Use it.  Add variables canonical, fullform and
88         cleanup.
89         (struct decode_line_2_item, decode_line_2_compare_items): New.
90         (decode_line_2): Remove variables iter and item_names, add variables
91         items and items_count.  Modify the code for these new variables.
92
93 2013-03-04  Corinna Vinschen  <vinschen@redhat.com>
94
95         * coff-pe-read.c (read_pe_exported_syms): Don't return without
96         calling do_cleanup.
97
98 2013-03-04  Luis Machado  <lgustavo@codesourcery.com>
99
100         * tracepoint.c (build_traceframe_info): Add code for byte order.
101
102 2013-03-02  Kevin Buettner  <kevinb@redhat.com>
103
104         * v850-tdep.c: (v850e2_register_name): Revise system register
105         names to match current V850E2M architecture specifications.
106         Update register number enum comments too.
107         
108 2013-03-01  Jiong Wang  <jiwang@tilera.com>
109             Pedro Alves  <palves@redhat.com>
110
111         * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
112         to END_ADDR.
113         (tilegx_skip_prologue): Limit prologue analysis to section end.
114
115 2013-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
116
117         * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
118         use it.
119
120 2013-03-01  Pedro Alves  <palves@redhat.com>
121
122         Use gdb_byte for bytes from the program being debugged.
123
124         * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
125         Change type of local 'buf' to gdb_byte.
126         * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
127         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
128         * cris-tdep.c (cris_sigcontext_addr)
129         (cris_sigtramp_frame_unwind_cache): Likewise.
130         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
131         (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
132         Likewise.
133         * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
134         * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
135         (hppa32_hpux_search_dummy_call_sequence)
136         (hppa_hpux_supply_save_state): Likewise.
137         * hppa-linux-tdep.c (insns_match_pattern)
138         (hppa_linux_find_global_pointer): Likewise.
139         * hppa-tdep.c (hppa_in_function_epilogue_p)
140         (skip_prologue_hard_way, hppa_frame_cache): Likewise.
141         * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
142         * i386fbsd-tdep.c (i386fbsd_supply_uthread)
143         (i386fbsd_collect_uthread): Likewise.
144         * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
145         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
146         * ia64-tdep.c (examine_prologue, ia64_frame_cache)
147         (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
148         (ia64_sigtramp_frame_prev_register, ia64_access_reg)
149         (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
150         (ia64_libunwind_frame_prev_register)
151         (ia64_libunwind_sigtramp_frame_this_id)
152         (ia64_find_global_pointer_from_dynamic_section)
153         (find_extant_func_descr, find_func_descr, ia64_dummy_id)
154         (ia64_unwind_pc): Likewise.
155         * iq2000-tdep.c (iq2000_store_return_value): Likewise.
156         * m68hc11-tdep.c (m68hc11_push_dummy_call)
157         (m68hc11_extract_return_value): Likewise.
158         * m68klinux-nat.c (fetch_register, store_register): Likewise.
159         * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
160         (mep_get_insn, mep_push_dummy_call): Likewise.
161         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
162         (mips_linux_in_dynsym_stub): Likewise.
163         * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
164         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
165         * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
166         to gdb_byte.
167         * remote-mips.c (mips_set_register): Likewise.
168         * remote-sim.c (gdbsim_fetch_register): Likewise.
169         * score-tdep.c (score7_fetch_inst): Change type of parameter
170         'memblock' and local 'buf' to gdb_byte.
171         (score7_malloc_and_get_memblock): Change return type to gdb_byte.
172         Change type of local 'buf' to gdb_byte.  Adjust.
173         (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
174         to gdb_byte**.
175         (score7_analyze_prologue): Change type of 'memblock' and
176         'memblock_ptr' locals to gdb_byte*.
177         * sh64-tdep.c (sh64_extract_return_value)
178         (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
179         * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
180         * solib-pa64.c (pa64_solib_create_inferior_hook)
181         (pa64_open_symbol_file_object): Remove local 'buf'.
182         * solib-som.c (som_solib_create_inferior_hook, link_map_start)
183         (som_open_symbol_file_object): Likewise.
184         * solib-spu.c (spu_current_sos): Likewise.
185         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
186         * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
187         (spu_store_registers): Likewise.
188         * target.c (debug_print_register): Likewise.
189         * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
190         * xstormy16-tdep.c (xstormy16_store_return_value)
191         (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
192         (xstormy16_find_jmp_table_entry): Likewise.
193
194 2013-03-01  Jiong Wang  <jiwang@tilera.com>
195
196         * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
197         (tilegx_gdbarch_init): Install it.
198
199 2013-02-28  Tom Tromey  <tromey@redhat.com>
200
201         * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
202         PyLong_Check.
203
204 2013-02-28  Doug Evans  <dje@google.com>
205
206         * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
207         * python/python.c (gdbpy_find_pc_line): Ditto.
208
209 2013-02-28  Tom Tromey  <tromey@redhat.com>
210
211         * contrib/excheck.py: New file.
212         * contrib/exsummary.py: New file.
213         * contrib/gcc-with-excheck: New file.
214
215 2013-02-28  Tom Tromey  <tromey@redhat.com>
216
217         * python/python.c (gdbpy_print_stack): Call begin_line and
218         fprintf_filtered inside TRY_CATCH.
219
220 2013-02-28  Tom Tromey  <tromey@redhat.com>
221
222         * python/python.c (gdbpy_find_pc_line): Call find_pc_line
223         inside TRY_CATCH.
224
225 2013-02-28  Tom Tromey  <tromey@redhat.com>
226
227         * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
228         frame_object_to_frame_info inside TRY_CATCH.
229
230 2013-02-28  Tom Tromey  <tromey@redhat.com>
231
232         * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
233         TRY_CATCH.
234
235 2013-02-28  Tom Tromey  <tromey@redhat.com>
236
237         * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
238
239 2013-02-27  Corinna Vinschen  <vinschen@redhat.com>
240
241         * windows-nat.c: Throughout, fix format strings and casts of
242         printf-like functions to avoid type related warnings on all
243         platforms.
244         (handle_output_debug_string): Fetch context information address
245         from debug string using string_to_core_addr.
246
247 2013-02-27  Jiong Wang  <jiwang@tilera.com>
248
249         * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
250         * regformats/reg-tilegx32.dat: New.
251
252 2013-02-27  Jiong Wang  <jiwang@tilera.com>
253
254         * configure.tgt (tilegx-*-linux*): Enable gdbserver.
255
256 2013-02-27  Jiong Wang  <jiwang@tilera.com>
257
258         * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
259
260 2013-02-27  Yao Qi  <yao@codesourcery.com>
261             Pedro Alves  <palves@redhat.com>
262
263         * tracepoint.c (tfile_trace_find): For tfind
264         pc/tp/range/outside, look for the next trace frame instead of
265         always starting from frame 0.
266
267 2013-02-26  Anthony Green  <green@moxielogic.com>
268
269         * configure.tgt: Add support for moxie-*-rtems* target.
270
271 2013-02-25  Pedro Alves  <palves@redhat.com>
272
273         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
274         warning text.
275
276 2013-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
277
278         * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
279         if $fp is used as the virtual frame pointer.
280
281 2013-02-23  Alan Modra  <amodra@gmail.com>
282
283         * elfread.c (elf_symtab_read): Do not use udata.p here to find
284         symbol size.
285         * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
286         * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
287         * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
288         * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
289
290 2013-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
291
292         Code cleanup.
293         * elfread.c (build_id_bfd_get): Make the return type const.
294         (build_id_verify): Make the check parameter const.
295         (build_id_to_debug_filename): Make the build_id parameter and variable
296         data const.
297         (find_separate_debug_file_by_buildid): Make the variable build_id const.
298
299 2013-02-21  Alan Modra  <amodra@gmail.com>
300
301         * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
302
303 2013-02-20  Siva Chandra Reddy  <sivachandra@google.com>
304
305         Add a new method 'disassemble' to gdb.Architecture class.
306         * python/py-arch.c (archpy_disassmble): Implementation of the
307         new method gdb.Architecture.disassemble.
308         (arch_object_methods): Add entry for the new method.
309
310 2013-02-20  Jiong Wang  <jiwang@tilera.com>
311
312         * MAINTAINERS (Write After Approval): Add myself to the list.
313
314 2013-02-19  Pedro Alves  <palves@redhat.com>
315
316         Garbage collect 'struct monitor_ops'::load_routine.
317
318         * monitor.h (struct monitor_ops) <load_routine>: Remove field.
319         * monitor.c (monitor_load): No longer call
320         current_monitor->load_routine.
321         * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
322         * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
323         * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
324
325 2013-02-19  Pedro Alves  <palves@redhat.com>
326
327         PR gdb/15161
328
329         Harmonize with generic_load.
330
331         * monitor.c: Include "readline/readline.h".
332         (monitor_load): Rename parameter 'file' to 'args'.  Use build_argv
333         instead of sscanf.  Use CORE_ADDR/strtoulst instead of unsigned
334         long/strtol for the 'load_offset' local.  Error out if no argument
335         is given or if too many arguments are given.  Tilde expand the
336         passed in file name.
337
338 2013-02-19  Kai Tietz  <ktietz@redhat.com>
339
340         PR gdb/15161
341         * symfile.c (load_section_data): Change type of load_offset
342         to CORE_ADDR.
343         (generic_load): User strtoulst instead of strtoul for conversion
344         of load_offset.
345
346 2013-02-19  Jiong Wang  <jiwang@tilera.com>
347
348         * tilegx-tdep.c (tilegx_analyze_prologue): add check for
349          for return address, "lr" register, saved on stack.
350         * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
351         after we invoke tilegx_analyze_prologue.
352
353 2013-02-19  Jiong Wang  <jiwang@tilera.com>
354
355         * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
356
357 2013-02-19  Jiong Wang  <jiwang@tilera.com>
358
359         * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
360
361 2013-02-19  Jiong Wang  <jiwang@tilera.com>
362
363         * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
364         (tilegx_write_pc): New function.
365         (tilegx_cannot_reference_register): Return zero if REGNO
366         is TILEGX_FAULTNUM_REGNUM.
367         (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
368         (tilegx_register_name): Add handling of "faultnum" register.
369         * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
370         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
371         handling of TILEGX_FAULTNUM_REGNUM.
372         * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
373
374 2013-02-19  Jiong Wang  <jiwang@tilera.com>
375
376         * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
377         should be aligned to 64bit.
378
379 2013-02-19  Kai Tietz  <ktietz@redhat.com>
380
381         * windows-nat.c (windows_xfer_memory): Fix debug-output
382         for LLP64.
383
384 2013-02-19  Lei Liu  <lei.liu2@windriver.com>
385
386         * mips-linux-nat.c (mips64_linux_regsets_store_registers):
387         Don't check DSP register number if HAVE_DSP is not set.
388
389 2013-02-19  Alan Modra  <amodra@gmail.com>
390
391         * elfread.c (struct build_id): Delete.  Use struct elf_build_id
392         throughout file instead.
393         (build_id_bfd_get): Update to use new elf_tdata build_id field.
394         Don't xmalloc return value.
395         (build_id_verify): Similarly.  Don't xfree.
396         (build_id_to_debug_filename): Update.
397         (find_separate_debug_file_by_buildid): Update, don't xfree.
398
399 2013-02-18  Tom Tromey  <tromey@redhat.com>
400
401         PR gdb/15102:
402         * dwarf2read.c (read_subrange_type): Use result of
403         'check_typedef'.
404
405 2013-02-16  Yuanhui Zhang  <asmwarrior@gmail.com>
406
407         * frame.c: Remove one extra white space after #include
408         directive.
409
410 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
411
412         * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
413
414 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
415
416         * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
417         and dir commands into an if block.
418
419 2013-02-15  Sanimir Agovic  <sanimir.agovic@intel.com>
420
421         * python/py-breakpoint (struct pybp_code):  Use int instead of
422         enum type_code.
423
424 2013-02-15  Pedro Alves  <pedro@codesourcery.com>
425             Hafiz Abid Qadeer  <abidh@codesourcery.com>
426
427         * NEWS: Mention new field "trace-file".
428         * tracepoint.c (trace_status_mi): Output "trace-file" field.
429         (tfile_open): Record the trace file's filename in the trace
430         status.
431         (tfile_files_info): Mention the name of the trace file.
432         Check the "filename" field explicitely.
433         (trace_status_command): Explicitely check "filename" field.
434         (trace_find_command): Ditto.
435         (trace_find_pc_command): Ditto.
436         (trace_find_tracepoint_command): Ditto.
437         (trace_find_line_command): Ditto.
438         (trace_find_range_command): Ditto.
439         (trace_find_outside_command): Ditto.
440         * tracepoint.h (struct trace_status) <from_file>: Rename it
441         to "filename" and make it hold the trace file's filename
442         instead of a boolean.
443         * remote.c (remote_get_trace_status): Initialize "filename"
444         field with NULL instead of 0.
445
446 2013-02-15  Yao Qi  <yao@codesourcery.com>
447
448         * remote.c: Fix a typo.
449
450 2013-02-14  Pierre Muller  <muller@sourceware.org>
451
452         * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
453
454 2013-02-14  Pedro Alves  <palves@redhat.com>
455
456         * utils.c (savestring): Don't #undef it.  Move function to
457         common/common-utils.c.
458         * common/common-utils.c: Include gdb_string.h.
459         (savestring): Move here from utils.c.
460         * common/common-utils.h (savestring): Declare.
461
462 2013-02-14  Pedro Alves  <palves@redhat.com>
463
464         * utils.c (savestring): Rename parameter 'size' to 'len'.
465
466 2013-02-14  Pedro Alves  <palves@redhat.com>
467             Yufeng Zhang  <yufeng.zhang@arm.com>
468
469         * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
470         (aarch64_inferior_data, struct aarch64_inferior_data):
471         Delete.
472         (struct aarch64_process_info): New.
473         (aarch64_process_list): New global.
474         (aarch64_find_process_pid, aarch64_add_process)
475         (aarch64_process_info_get): New functions.
476         (aarch64_inferior_data_get): Delete.
477         (aarch64_process_info_get): New function.
478         (aarch64_forget_process): New function.
479         (aarch64_get_debug_reg_state): New parameter 'pid'.  Reimplement.
480         (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
481         aarch64_get_debug_reg_state.
482         (aarch64_notify_debug_reg_change): Use iterate_over_lwps
483         instead of linux_nat_iterate_watchpoint_lwps.
484         (aarch64_linux_new_fork): New function.
485         (aarch64_linux_child_post_startup_inferior): Use
486         aarch64_forget_process instead of aarch64_init_debug_reg_state.
487         (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
488         (aarch64_linux_remove_hw_breakpoint)
489         (aarch64_handle_aligned_watchpoint)
490         (aarch64_handle_unaligned_watchpoint)
491         (aarch64_linux_insert_watchpoint)
492         (aarch64_linux_remove_watchpoint)
493         (aarch64_linux_stopped_data_address): Adjust to pass the current
494         process id to aarch64_debug_reg_state.
495         (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
496         linux_nat_new_fork hook, and aarch64_forget_process as
497         linux_nat_forget_process hook; remove the call to
498         register_inferior_data_with_cleanup.
499
500 2013-02-14  Pedro Alves  <palves@redhat.com>
501
502         * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
503         EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
504         lval_memory.
505
506 2013-02-14  Pedro Alves  <pedro@codesourcery.com>
507             Hafiz Abid Qadeer  <abidh@codesourcery.com>
508
509         * tracepoint.h (validate_trace_state_variable_name): Declare.
510         * tracepoint.c (validate_trace_state_variable_name): New.
511         (trace_variable_command): Parse the trace state variable's name
512         without using parse_expression.  Do several validations.
513         * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
514         trace state variable's name with parse_expression.  Validate it.
515
516 2013-02-14  Yao Qi  <yao@codesourcery.com>
517
518         * infcmd.c (breakpoint_proceeded): Remove it.
519
520 2013-02-14  Yao Qi  <yao@codesourcery.com>
521
522         * tracepoint.c (end_actions_pseudocommand): Make it static.
523         (while_stepping_pseudocommand): Likewise.
524         * tracepoint.h (end_actions_pseudocommand): Remove the
525         declaration.
526         (while_stepping_pseudocommand): Likewise.
527
528 2013-02-14  Yao Qi  <yao@codesourcery.com>
529
530         * cli/cli-decode.c (help_cmd): Remove the declaration of
531         "cmdlist".
532         (help_all): Likewise.
533
534 2013-02-13  Pedro Alves  <palves@redhat.com>
535
536         * amd64-linux-nat.c (update_debug_registers_callback):
537         Update comment.
538         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
539         iterate_over_lwps.
540         (amd64_linux_prepare_to_resume): Pass the lwp's pid to
541         i386_debug_reg_state.
542         (amd64_linux_new_fork): New function.
543         (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
544         linux_nat_new_fork hook, and i386_forget_process as
545         linux_nat_forget_process hook.
546         * i386-linux-nat.c (update_debug_registers_callback):
547         Update comment.
548         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
549         iterate_over_lwps.
550         (i386_linux_prepare_to_resume): Pass the lwp's pid to
551         i386_debug_reg_state.
552         (i386_linux_new_fork): New function.
553         (_initialize_i386_linux_nat): Install i386_linux_new_fork as
554         linux_nat_new_fork hook, and i386_forget_process as
555         linux_nat_forget_process hook.
556         * i386-nat.c (i386_init_dregs): Delete.
557         (i386_inferior_data, struct i386_inferior_data):
558         Delete.
559         (struct i386_process_info): New.
560         (i386_process_list): New global.
561         (i386_find_process_pid, i386_add_process, i386_process_info_get):
562         New functions.
563         (i386_inferior_data_get): Delete.
564         (i386_process_info_get): New function.
565         (i386_debug_reg_state): New parameter 'pid'.  Reimplement.
566         (i386_forget_process): New function.
567         (i386_cleanup_dregs): Rewrite.
568         (i386_update_inferior_debug_regs, i386_insert_watchpoint)
569         (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
570         (i386_stopped_data_address, i386_insert_hw_breakpoint)
571         (i386_remove_hw_breakpoint): Adjust to pass the current process id
572         to i386_debug_reg_state.
573         (i386_use_watchpoints): Don't register inferior data.
574         * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
575         adjust comment.
576         (i386_forget_process): Declare.
577         * linux-fork.c (delete_fork): Call linux_nat_forget_process.
578         * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
579         New static globals.
580         (linux_child_follow_fork): Don't call linux_nat_new_thread here.
581         (add_initial_lwp): New, factored out from ...
582         (add_lwp): ... this.  Don't check the number of lwps before
583         calling linux_nat_new_thread.
584         (linux_nat_iterate_watchpoint_lwps): Delete.
585         (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
586         (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
587         forks and vforks.
588         (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
589         initial lwp.
590         (linux_nat_kill, linux_nat_mourn_inferior): Call
591         linux_nat_forget_process.
592         (linux_nat_set_new_fork, linux_nat_set_forget_process)
593         (linux_nat_forget_process): New functions.
594         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
595         type.
596         (linux_nat_iterate_watchpoint_lwps): Delete declaration.
597         (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
598         types.
599         (linux_nat_set_new_fork, linux_nat_set_forget_process)
600         (linux_nat_forget_process): New declarations.
601
602         * amd64fbsd-nat.c (super_mourn_inferior): New global.
603         (amd64fbsd_mourn_inferior): New function.
604         (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
605         * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
606
607 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
608
609         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
610         Adding _().
611
612 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
613
614         * aarch64-linux-nat.c (debug_reg_change_callback)
615         (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
616         %s and phex().
617
618 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
619
620         * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
621         with LONGEST.
622
623 2013-02-13  Pedro Alves  <palves@redhat.com>
624             Hafiz Abid Qadeer  <abidh@codesourcery.com>
625
626         * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
627
628 2013-02-12  Tom Tromey  <tromey@redhat.com>
629
630         PR symtab/11464:
631         * c-exp.y (lex_one_token): Initialize other fields of yylval on
632         NAME return.
633         (classify_inner_name): Remove 'first_name' argument, add
634         'context'.  Remove unused variable.
635         (yylex): Explicitly maintain the context type.  Exit loop earlier
636         if NAME result is seen.
637
638 2013-02-12  Pedro Alves  <palves@redhat.com>
639
640         * amd64-darwin-tdep.c: Add (C) after Copyright.
641         * cli/cli-cmds.h: Ditto.
642         * cli/cli-decode.c: Ditto.
643         * cli/cli-decode.h: Ditto.
644         * cli/cli-dump.c: Ditto.
645         * cli/cli-dump.h: Ditto.
646         * cli/cli-interp.c: Ditto.
647         * cli/cli-logging.c: Ditto.
648         * cli/cli-script.c: Ditto.
649         * cli/cli-script.h: Ditto.
650         * cli/cli-setshow.c: Ditto.
651         * cli/cli-setshow.h: Ditto.
652         * cli/cli-utils.c: Ditto.
653         * cli/cli-utils.h: Ditto.
654         * config/alpha/nm-osf3.h: Ditto.
655         * config/djgpp/djconfig.sh: Ditto.
656         * config/i386/nm-fbsd.h: Ditto.
657         * config/i386/nm-i386gnu.h: Ditto.
658         * config/nm-linux.h: Ditto.
659         * config/nm-nto.h: Ditto.
660         * config/rs6000/nm-rs6000.h: Ditto.
661         * config/sparc/nm-sol2.h: Ditto.
662         * darwin-nat-info.c: Ditto.
663         * dfp.c: Ditto.
664         * dfp.h: Ditto.
665         * gdb-demangle.h: Ditto.
666         * i386-darwin-nat.c: Ditto.
667         * i386-darwin-tdep.c: Ditto.
668         * linux-fork.h: Ditto.
669         * m32c-tdep.c: Ditto.
670         * microblaze-linux-tdep.c: Ditto.
671         * microblaze-rom.c: Ditto.
672         * microblaze-tdep.c: Ditto.
673         * microblaze-tdep.h: Ditto.
674         * mips-linux-tdep.h: Ditto.
675         * ppc-ravenscar-thread.c: Ditto.
676         * ppc-ravenscar-thread.h: Ditto.
677         * prologue-value.c: Ditto.
678         * prologue-value.h: Ditto.
679         * ravenscar-thread.c: Ditto.
680         * ravenscar-thread.h: Ditto.
681         * sparc-ravenscar-thread.c: Ditto.
682         * sparc-ravenscar-thread.h: Ditto.
683         * tilegx-linux-tdep.c: Ditto.
684         * unwind_stop_reasons.def: Ditto.
685         * windows-nat.h: Ditto.
686         * xtensa-linux-tdep.c: Ditto.
687         * xtensa-xtregs.c: Ditto.
688         * regformats/regdat.sh: Ditto.
689         * regformats/regdef.h: Ditto.
690
691 2013-02-12  Pedro Alves  <palves@redhat.com>
692
693         * break-catch-sig.c: Update copyright years.
694
695 2013-02-11  Siva Chandra Reddy  <sivachandra@google.com>
696
697         Add support for a destructor for ui_out data and use it to
698         provide a ui_out destructor.
699         * ui-out.h: Declare the new ui_out destructor.
700         (ui_out_impl): Add a field for data destructor in ui_out_impl.
701         * ui-out.c (default_data_destroy): Add a default data destructor
702         which does nothing.
703         (default_ui_out_impl): Set the new data_destroy field to
704         default_data_destroy
705         (uo_data_destroy): Local function which invokes the data
706         destructor if present.
707         (clear_table): Local function which clears the table data of a
708         ui_out object.
709         (ui_out_destroy): Public function which frees a ui_out object.
710         (ui_out_table_end): Use the new clear_table function.
711         * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
712         NULL.
713         * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
714         to NULL.
715
716 2013-02-11  Doug Evans  <dje@google.com>
717
718         * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
719         (printf_decfloat): New function.  Broken out from ui_printf.
720         Remove unnecessary code to shift the entire format string down.
721         (printf_pointer): New function.
722         (ui_printf): Code to print C strings, wide C strings, decfloats,
723         and pointers moved to separate functions.
724
725 2013-02-11  Sergio Durigan Junior  <sergiodj@redhat.com>
726
727         * valops.c (value_assign): Handling bitfield offset in
728         `lval_internalvar_component' case.
729
730 2013-02-08  Doug Evans  <dje@google.com>
731
732         * common/format.c (parse_format_string): Fix whitespace.
733
734 2013-02-08  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
735
736         * stack.c (return_command): Work around uninitialized variable
737         warning.
738
739 2013-02-08  Yufeng Zhang  <yufeng.zhang@arm.com>
740
741         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
742         number of the registers from 36 to 34.
743
744 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
745
746         * NEWS: Mention new AArch64 native and target support.
747
748 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
749
750         * MAINTAINERS (Write After Approval): Add myself.
751
752 2013-02-08  Jim MacArthur  <jim.macarthur@arm.com>
753             Marcus Shawcroft  <marcus.shawcroft@arm.com>
754             Nigel Stephens  <nigel.stephens@arm.com>
755             Yufeng Zhang  <yufeng.zhang@arm.com>
756
757         * aarch64-linux-nat.c: New file.
758         * config/aarch64/linux.mh: New file.
759         * configure.host: Add AArch64.
760         * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
761
762 2013-02-07  Doug Evans  <dje@google.com>
763
764         * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
765         disassemble command.
766
767 2013-02-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
768
769         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
770         set_gdbarch_fetch_tls_load_module_address.
771
772 2013-02-06  David S. Miller  <davem@davemloft.net>
773
774         * sparc-tdep.c (sparc32_return_value): Handle writing return value when
775         using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
776         * value.c (struct_return_convention): New function.
777         (using_struct_return): Implement in terms of struct_return_convention.
778         * value.h (struct_return_convention): Declare.
779         * stack.c (return_command): Allow successful overriding of the return
780         value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
781
782 2013-02-06  Tom Tromey  <tromey@redhat.com>
783
784         * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
785         outside of TRY_CATCH.
786
787 2013-02-06  Yao Qi  <yao@codesourcery.com>
788
789         * mi/mi-interp.c: Include "tracepoint.h".
790         (mi_tsv_modified): Declare.
791         (mi_tsv_created, mi_tsv_deleted): Update declaration.
792         (mi_interpreter_init): Call observer_attach_tsv_modified.
793         (mi_tsv_modified): New.
794         (mi_tsv_created, mi_tsv_deleted): Update.
795         * tracepoint.c (trace_variable_command): Call
796         observer_notify_tsv_modified if the initial value of tsv is
797         changed.
798         (delete_trace_state_variable): Call
799         observer_notify_tsv_deleted earlier.
800         (trace_variable_command): Caller update.
801         (create_tsv_from_upload): Likewise.
802         * observer.sh: Declare "struct trace_state_variable".
803
804         * NEWS: Mention the new MI notification "=tsv-modified".
805
806 2013-02-05  Doug Evans  <dje@google.com>
807
808         * completer.c (location_completer): Fix typo in comment.
809
810 2013-02-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
811
812         * breakpoint.c (add_location_to_breakpoint): Insert the location with
813         ADDRESS sorted.
814
815 2013-02-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
816
817         * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
818         Refactor if statement to avoid trailing || operator.
819
820 2013-02-05  Andreas Tobler  <andreast@fgznet.ch>
821
822         * NEWS: Add PowerPC FreeBSD as a new native configuration.
823
824 2013-02-04  Andreas Tobler  <andreast@fgznet.ch>
825
826         * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
827         * configure.host: Add powerpc*-*-freebsd* target.
828         * configure.tgt: Add target info for powerpc*-*-freebsd*.
829         * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
830         * config/powerpc/fbsd.mh: New file.
831
832 2013-02-04  Sergio Durigan Junior  <sergiodj@redhat.com>
833             Denys Vlasenko  <dvlasenk@redhat.com>
834             Pedro Alves  <palves@redhat.com>
835
836         * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
837         (struct elf_internal_linux_prpsinfo): Forward declare.
838         * gdbarch.h, gdbarch.c: Regenerate.
839         * linux-tdep.c: Include `cli/cli-utils.h'.
840         (linux_fill_prpsinfo): New function.
841         (linux_make_corefile_notes): Use linux_fill_prpsinfo.  If there's
842         an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
843         elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
844         depending on gdbarch pointer bitness.
845         * ppc-linux-tdep.c: Include elf-bfd.h.
846         (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
847         on 32-bit.
848
849 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
850             Marcus Shawcroft  <marcus.shawcroft@arm.com>
851             Nigel Stephens  <nigel.stephens@arm.com>
852             Yufeng Zhang  <yufeng.zhang@arm.com>
853
854         * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
855
856 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
857             Marcus Shawcroft  <marcus.shawcroft@arm.com>
858             Nigel Stephens  <nigel.stephens@arm.com>
859             Yufeng Zhang  <yufeng.zhang@arm.com>
860
861         * aarch64-newlib-tdep.c: New file.
862         * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
863         aarch64*-*-elf.
864         * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
865         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
866         (ALLDEPFILES): Add aarch64-newlib-tdep.c.
867         * osabi.c (gdb_osabi_names): Add "Newlib".
868
869 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
870             Marcus Shawcroft  <marcus.shawcroft@arm.com>
871             Nigel Stephens  <nigel.stephens@arm.com>
872             Yufeng Zhang  <yufeng.zhang@arm.com>
873
874         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
875         (ALLDEPFILES): Add aarch64-linux-tdep.c.
876         * aarch64-linux-tdep.c: New file.
877         * aarch64-linux-tdep.h: New file.
878         * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
879         * configure.tgt: Add aarch64-none-linux-gnu.
880
881 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
882             Marcus Shawcroft  <marcus.shawcroft@arm.com>
883             Nigel Stephens  <nigel.stephens@arm.com>
884             Yufeng Zhang  <yufeng.zhang@arm.com>
885
886         * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
887         (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
888         (ALLDEPFILES): Add aarch64-tdep.c.
889         * aarch64-tdep.c: New file.
890         * aarch64-tdep.h: New file.
891         * configure.tgt: Add AArch64.
892         * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
893         (aarch64-expedite): New definition.
894         * features/aarch64-core.xml: New file.
895         * features/aarch64-fpu.xml: New file.
896         * features/aarch64-without-fpu.c: New file (generated).
897         * features/aarch64-without-fpu.xml: New file.
898         * features/aarch64.c: New file (generated).
899         * features/aarch64.xml: New file.
900         * regformats/aarch64-without-fpu.dat: New file (generated).
901         * regformats/aarch64.dat: New file (generated).
902
903 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
904
905         * contrib/expect-read1.c: New file.
906         * contrib/expect-read1.sh: New file.
907
908 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
909
910         * dwarf2read.c (file_file_name): New function with code from
911         file_full_name.
912         (file_full_name): Move most of the code to file_file_name.
913         (macro_start_file): Rename variable full_name to file_name and use
914         file_file_name for it.  Add comp_dir parameter to new_macro_table.
915         * macrocmd.c (show_pp_source_pos): New variable fullname.  Replace any
916         macro_source_file->filename access by macro_source_fullname call.
917         * macroscope.c (_initialize_macroscope): Update the new_macro_table
918         caller.
919         * macrotab.c (struct macro_table): New field comp_dir.
920         (macro_include): New variables link_fullname and source_fullname.
921         Replace any macro_source_file->filename access by macro_source_fullname
922         call.
923         (macro_lookup_inclusion): Remove the partial filenames checking code.
924         (check_for_redefinition): New variables source_fullname and
925         found_key_fullname.  Replace any macro_source_file->filename access by
926         macro_source_fullname call.
927         (macro_undef): New variables source_fullname and key_fullname.  Replace
928         any macro_source_file->filename access by macro_source_fullname call.
929         (macro_lookup_definition): New variables retval and source_fullname.
930         Replace any macro_source_file->filename access by macro_source_fullname
931         call.
932         (foreach_macro): New variable key_fullname.  Replace any
933         macro_source_file->filename access by macro_source_fullname call.
934         (foreach_macro_in_scope): New variable datum_fullname.  Replace any
935         macro_source_file->filename access by macro_source_fullname call.
936         (new_macro_table): Add parameter comp_dir.  Initialize T with it.
937         (macro_source_fullname): New function.
938         * macrotab.h (struct macro_source_file): Extent the filename field
939         comment.
940         (new_macro_table): New parameter comp_dir, add a comment for it.
941         (macro_source_fullname): new declaration.
942
943 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
944
945         * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
946         this_real_name to outer block.  Use it also for
947         compare_filenames_for_search.
948         (dw2_expand_symtabs_matching): New variable this_real_name.  Use it
949         with dw2_get_real_path for file_matcher, considering also
950         BASENAMES_MAY_DIFFER.
951         (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
952
953 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
954
955         * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
956         to the file_matcher parameter.  Pass 0 to it.
957         (dwarf2_create_include_psymtab): Copy also DIRNAME.
958         * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
959         NULL psymtab_to_fullname result.
960         (psymtab_to_fullname): Remove variable r.  Never return NULL, assemble
961         an expected filename instead.
962         (expand_symtabs_matching_via_partial): Add basenames parameter to the
963         file_matcher parameter.  Call also psymtab_to_fullname, after newly
964         considering BASENAMES_MAY_DIFFER.
965         * source.c (rewrite_source_path): Remove static.
966         * source.h (rewrite_source_path): New declaration.
967         * symfile.h (struct quick_symbol_functions): Add basenames parameter to
968         the expand_symtabs_matching field.  Comment it.
969         * symtab.c (file_matches): New function comment.  Add parameter
970         basenames, implement it.
971         (search_symbols_file_matches): Add basenames parameter.  Update the
972         file_matches caller.
973         (search_symbols): Match FILES also against symtab_to_fullname.
974         Optimize it for BASENAMES_MAY_DIFFER.
975
976 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
977
978         * source.c (print_source_lines_base): Print for TUI also "fullname".
979         * tui/tui-data.c (init_content_element): Change tui_locator_element
980         field to full_name.
981         * tui/tui-data.h (struct tui_locator_element): Likewise.
982         * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
983         tui_update_locator_filename calls to tui_update_locator_fullname.
984         Replace symtab->filename refererence by symtab_to_fullname call.
985         * tui/tui-out.c (tui_field_string): Check for "fullname" now.
986         * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
987         field to full_name.  Replace symtab->filename refererence by
988         symtab_to_fullname call.
989         (tui_show_symtab_source): Rename parameter to fullname.  Change
990         tui_locator_element field to full_name.
991         * tui/tui-stack.c: Include source.h.
992         (tui_set_locator_filename): Rename the declaration to ...
993         (tui_set_locator_fullname): ... here.  Rename its parameter to
994         fullname, updates its comment.
995         (tui_set_locator_info): Rename its parameter to fullname.
996         (tui_set_locator_filename): Rename the definition to ...
997         (tui_set_locator_fullname): ... here.  Rename its parameter to
998         fullname, updates its comment.  Change tui_locator_element field to
999         full_name.
1000         (tui_set_locator_info): Rename its parameter to fullname.
1001         (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
1002         (tui_update_locator_filename): Rename to ...
1003         (tui_update_locator_fullname): ... here. Rename callee to
1004         tui_set_locator_fullname.
1005         (tui_show_frame_info): Replace symtab->filename refererence by
1006         symtab_to_fullname call.
1007         * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
1008         (tui_update_locator_fullname): ... here.
1009         * tui/tui-winsource.c (tui_display_main): Rename the callee to
1010         tui_update_locator_fullname.  Replace symtab->filename refererence by
1011         symtab_to_fullname call.
1012         * tui/tui.c (tui_show_source): Rename its parameter to fullname.
1013         Rename the callee to tui_update_locator_fullname.
1014         * tui/tui.h (tui_show_source): Rename its parameter to fullname.
1015
1016 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1017
1018         * ada-lang.c (user_select_syms): Replace symtab->filename refererences
1019         by symtab_to_filename_for_display calls.
1020         * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
1021         (clear_command): New variable sal_fullname, initialize it.  Replace
1022         compare_filenames_for_search by filename_cmp with sal_fullname.
1023         (say_where, update_static_tracepoint): Replace symtab->filename
1024         refererences by symtab_to_filename_for_display calls.
1025         * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
1026         Likewise.
1027         * dwarf2read.c: Include source.h.
1028         (fixup_go_packaging): Replace symtab->filename refererences by
1029         symtab_to_filename_for_display calls.
1030         * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
1031         Replace symtab->filename refererences by symtab_to_filename_for_display
1032         calls.
1033         (create_sals_line_offset, convert_linespec_to_sals): New variable
1034         fullname, initialize it, replace symtab->filename reference by the
1035         variable.
1036         * linux-fork.c: Include source.h.
1037         (info_checkpoints_command): Replace symtab->filename refererences by
1038         symtab_to_filename_for_display calls.
1039         * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
1040         by symtab_to_filename_for_display calls.
1041         * mdebugread.c: Include source.h.
1042         (psymtab_to_symtab_1): Replace symtab->filename refererences by
1043         symtab_to_filename_for_display calls.
1044         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
1045         (mi_cmd_file_list_exec_source_files): Likewise.
1046         * printcmd.c: Include source.h.
1047         (build_address_symbolic): Replace symtab->filename refererences by
1048         symtab_to_filename_for_display calls.
1049         * psymtab.c (partial_map_symtabs_matching_filename)
1050         (read_psymtabs_with_fullname): Call compare_filenames_for_search also
1051         with psymtab_to_fullname.
1052         * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
1053         by symtab_to_filename_for_display calls.
1054         (stpy_get_filename): New variable filename, initialize it, use instead
1055         of symtab->filename refererences.
1056         (salpy_str): Make variable filename const char *.  Replace
1057         symtab->filename refererences by symtab_to_filename_for_display calls.
1058         * skip.c: Include source.h and filenames.h.
1059         (skip_file_command): Remove const from the symtab variable.  Replace
1060         symtab->filename refererences by symtab_to_fullname call.
1061         (function_name_is_marked_for_skip): New variables searched_for_fullname
1062         and fullname.  Use them to search also with symtab's fullname.
1063         * source.c (find_source_lines): Replace symtab->filename refererences
1064         by symtab_to_filename_for_display calls.
1065         (print_source_lines_base): New variable filename, use it instead of
1066         symtab->filename.  Replace symtab->filename refererences by
1067         symtab_to_filename_for_display calls.
1068         (line_info, forward_search_command): Replace symtab->filename
1069         refererences by symtab_to_filename_for_display calls.
1070         (reverse_search_command): Replace symtab->filename refererences by
1071         symtab_to_filename_for_display calls.  New variable filename for it.
1072         * stack.c (frame_info): Likewise.
1073         * symmisc.c: Include source.h.
1074         (dump_objfile, dump_symtab_1, maintenance_print_symbols)
1075         (maintenance_info_symtabs): Replace symtab->filename refererences by
1076         symtab_to_filename_for_display calls.
1077         * symtab.c (iterate_over_some_symtabs): Call
1078         compare_filenames_for_search also with symtab_to_fullname.
1079         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
1080         symtab->filename refererences by symtab_to_filename_for_display calls.
1081         (find_line_symtab): Replace symtab->filename refererences by
1082         symtab_to_filename_for_display calls.
1083         (file_matches): Replace filename_cmp by compare_filenames_for_search.
1084         (print_symbol_info): Make the last parameter const char *.  New
1085         variable s_filename.  Use it in the function.
1086         (symtab_symbol_info): Make the last_filename variable const char *.
1087         Replace symtab->filename refererences by symtab_to_filename_for_display
1088         calls.
1089         (rbreak_command): New variable fullname.  Use it.  Replace
1090         symtab->filename refererence by symtab_to_filename_for_display call.
1091         * tracepoint.c (set_traceframe_context, trace_find_line_command)
1092         (print_one_static_tracepoint_marker): Replace symtab->filename
1093         refererences by symtab_to_filename_for_display calls.
1094         * tui/tui-source.c (tui_set_source_content): New variables filename and
1095         s_filename.  Replace symtab->filename refererences by this variable.
1096         Replace other symtab->filename refererences by
1097         symtab_to_filename_for_display calls.
1098
1099 2013-02-03  Eldar Gaynetdinov <hal9000ed2k@gmail.com>
1100             Jan Kratochvil  <jan.kratochvil@redhat.com>
1101
1102         Add a new variable that controls a way in which filenames are
1103         displayed.
1104         * NEWS (set filename-display): New entry.
1105         * source.c (filename_display_basename, filename_display_relative)
1106         (filename_display_absolute, filename_display_kind_names)
1107         (filename_display_string, show_filename_display_string)
1108         (symtab_to_filename_for_display): New.
1109         (_initialize_source): Added initialization of 'filename-display'
1110         variable.
1111         * source.h (symtab_to_filename_for_display): Added declaration.
1112         * stack.c (print_frame): Added new variable and calling of a new
1113         function and condition with this variable. Changed third argument of
1114         calling of a function.
1115
1116 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1117
1118         * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
1119         Rename field reference filename to fullname.
1120         * tui/tui-data.h (struct tui_source_info): Rename field filename to
1121         fullname.  New comment for it.
1122         * tui/tui-source.c (tui_set_source_content): Rename field reference
1123         filename to fullname.  Initialize field by symtab_to_fullname now.
1124         * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
1125         reference filename to fullname.  Use symtab_to_fullname during
1126         comparison.
1127
1128 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1129
1130         Code cleanup.
1131         * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
1132         (dw2_expand_symtabs_with_fullname): ... here.  Rename parameter
1133         filename to fullname.  Rename variable this_name to this_fullname.
1134         Lowercase FILENAME_CMP call.
1135         (dw2_find_symbol_file): New comment for the returned string.
1136         (dwarf2_gdb_index_functions): Rename the function to
1137         dw2_expand_symtabs_with_fullname.
1138         * psymtab.c (read_psymtabs_with_filename): Rename to ...
1139         (read_psymtabs_with_fullname): ... here.  Rename parameter filename to
1140         fullname.
1141         (psym_functions): Rename the function to read_psymtabs_with_fullname.
1142         * symfile.h (struct quick_symbol_functions): Rename field
1143         expand_symtabs_with_filename to expand_symtabs_with_fullname and its
1144         parameter filename to fullname.  Document returned string meaning for
1145         find_symbol_file.
1146         * symtab.c (find_line_symtab): Rename the called function to
1147         expand_symtabs_with_fullname.
1148
1149 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1150
1151         Code cleanup.
1152         * breakpoint.c (clear_command): Remove variable is_abs, unify the
1153         call of filename_cmp with compare_filenames_for_search.
1154         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
1155         is_abs, unify the call of FILENAME_CMP with
1156         compare_filenames_for_search.  New gdb_asserts for real_path and name.
1157         Unify the call of compare_filenames_for_search with FILENAME_CMP.
1158         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
1159         * symfile.h (struct quick_symbol_functions): Extend the comment for
1160         map_symtabs_matching_filename.
1161         * symtab.c (compare_filenames_for_search): Remove the function comment
1162         relative path requirement.  Handle absolute filenames, with a comment.
1163         (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
1164         FILENAME_CMP with compare_filenames_for_search.  New gdb_asserts for
1165         real_path and name.  Unify the call of compare_filenames_for_search
1166         with FILENAME_CMP.
1167         (iterate_over_symtabs): New gdb_assert on REAL_PATH.
1168
1169 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1170
1171         Code cleanup.
1172         * breakpoint.c (print_breakpoint_location): Replace bp_location field
1173         source_file references by symtab field references.  Remove variables
1174         sal and fullname.
1175         (momentary_breakpoint_from_master, add_location_to_breakpoint):
1176         (clear_command, say_where): Replace bp_location field source_file
1177         references by symtab field references.
1178         (bp_location_dtor): Remove the source_file reference.
1179         (update_static_tracepoint): Replace bp_location field source_file
1180         references by symtab field references.
1181         (breakpoint_free_objfile): New function.
1182         * breakpoint.h (struct bp_location): Extend the comment for line_number.
1183         Replace the field source_file by field symtab, extend its comment.
1184         (breakpoint_free_objfile): New declaration.
1185         * objfiles.c (free_objfile): Call breakpoint_free_objfile.
1186         * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
1187         field source_file references by symtab field references.
1188
1189 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1190
1191         Replace xfullpath calls by gdb_realpath calls.
1192         * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
1193         function comment.
1194         * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
1195         Remove it from the iterate_over_some_symtabs call.
1196         (dw2_map_symtabs_matching_filename): Remove parameter full_path.
1197         Remove it from the dw2_map_expand_apply calls, remove a block handling
1198         it.
1199         * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
1200         Remove it from the iterate_over_some_symtabs call.
1201         (partial_map_symtabs_matching_filename): Remove parameter full_path.
1202         Remove it from the partial_map_expand_apply calls, remove a block
1203         handling it.  Drop gdb_realpath call and cleanups from the real_path
1204         handling.
1205         * source.c (openp): Drop the comment part about xfullpath.  Replace
1206         xfullpath calls by gdb_realpath calls.
1207         (find_and_open_source): Replace xfullpath call by gdb_realpath call.
1208         * symfile.h (struct quick_symbol_functions): Remove parameter full_path
1209         from method map_symtabs_matching_filename and its comment.
1210         * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
1211         gdb_realpath call.
1212         * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
1213         remove it also from the function comment, remove a block handling it.
1214         Drop gdb_realpath call and cleanups from the real_path handling.
1215         (iterate_over_symtabs): Drop variable full_path and its use.
1216         * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
1217         * utils.c (xfullpath): Remove.
1218         * utils.h (xfullpath): Remove.
1219
1220 2013-02-01  Andreas Tobler  <andreast@fgznet.ch>
1221
1222         * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
1223         (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
1224         (ALLDEPFILES): Add ppc64-tdep.c.
1225         * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
1226         ppc64-tdep.o to gdb_target_obs.
1227         * ppc64-tdep.h: New file.
1228         * ppc64-tdep.c: New file.
1229         (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
1230         ppc-linux-tdep.c to here.
1231         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
1232         (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
1233         (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
1234         (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
1235         from ppc-linux-tdep.c to here.
1236         (ppc64_convert_from_func_ptr_addr): Rename from
1237         ppc64_linux_convert_from_func_ptr_addr to
1238         ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
1239         here.
1240         * rs6000-tdep.c:
1241         (read_insn): Move from ppc-linux-tdep.c to here.
1242         (insns_match_pattern, insn_d_field, insn_ds_field): Move
1243         from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
1244         * ppc-linux-tdep.c: Include ppc64-tdep.h.
1245         Removed above functions.
1246         (ppc_linux_init_abi): Adjust.
1247
1248 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
1249
1250         * ada-valprint.c (ada_print_floating): Remove unused 'len'.
1251
1252 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
1253
1254         * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
1255
1256 2013-02-01  Pedro Alves  <palves@redhat.com>
1257
1258         * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
1259         * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
1260
1261 2013-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1262
1263         * elfread.c (elf_symfile_read): Limit separate debug info additions to
1264         files with no separate debug info.
1265         * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
1266         * symfile.c (read_symbols): Call find_separate_debug_file_in_section
1267         only for files with no separate debug info.
1268
1269 2013-01-31  Tom Tromey  <tromey@redhat.com>
1270
1271         * jit.c (jit_program_space_data): Rename from jit_inferior_data;
1272         change type.
1273         (struct jit_program_space_data): Rename from jit_inferior_data.
1274         Update comments.
1275         (get_jit_program_space_data): Rename from get_jit_inferior_data.
1276         Change return type.  Attach data to program space.
1277         (jit_program_space_data_cleanup): Rename from
1278         jit_inferior_data_cleanup; change argument type.
1279         (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
1280         change type.
1281         (jit_register_code): Update.
1282         (jit_update_inferior_cache): Remove.
1283         (jit_breakpoint_deleted): Get jit data from the location's program
1284         space.
1285         (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
1286         'ps_data', change type.
1287         (jit_inferior_init, jit_breakpoint_re_set_internal)
1288         (jit_event_handler): Update.
1289         (free_objfile_data): Get data from objfile's program space.
1290         (_initialize_jit): Update.
1291
1292 2013-01-31  Tom Tromey  <tromey@redhat.com>
1293
1294         PR gdb/13987:
1295         * jit.c (struct jit_inferior_data) <cached_code_address,
1296         jit_breakpoint>: New fields.
1297         (jit_breakpoint_re_set_internal): Fix logging.  Only create
1298         breakpoint if cached address has changed.
1299         (jit_update_inferior_cache, jit_breakpoint_deleted): New
1300         functions.
1301         (_initialize_jit): Register breakpoint deleted observer.
1302
1303 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
1304
1305         * infrun.c (handle_syscall_event): Remove unused gdbarch.
1306         (save_infcall_suspend_state): Ifdef out unused inf.
1307         (restore_infcall_suspend_state): Ifdef out unused inf.
1308         * jit.c (jit_register_code): Remove unused i, b, inf_data.
1309         (jit_frame_sniffer): Remove unused inf_data.
1310
1311 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
1312
1313         * c-exp.y (classify_inner_name): Remove unused type.
1314         * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
1315         in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
1316         need_escape.
1317         (c_get_string): Remove unused kind.
1318         * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
1319
1320 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
1321
1322         * charset.c (intermediate_encoding): Remove unused i.
1323         * completer.c (signal_completer): Remove unused i.
1324         * continuations.c (discard_my_continuations_1): Remove unused
1325         continuation_ptr.
1326         * corelow.c (core_close): Remove unuseD name.
1327         (get_core_siginfo): Remove unused pid.
1328         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
1329         i, cps.
1330         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
1331         (loclist_describe_location): Remove unused first.
1332         * event-top.c (command_line_handler): Remove unused got_eof.
1333         * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
1334         (resize_section_table): Remove unused old_value.
1335         * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
1336         * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
1337         * i386-tdep.c (i386_process_record): Remove unused rex.
1338         * infcmd.c (get_return_value): Remove unused uiout.
1339         * jv-lang.c (type_from_class): Remove unused is_array.
1340         * jv-valprint.c (java_val_print): Remove unused i.
1341         * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
1342         * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
1343         * m2-typeprint.c (m2_print_type): Remove unused code.
1344         * macroexp.c (get_character_constant): Remove unused body_start.
1345         (macro_stringify): Remove unused result.
1346         * objc-lang.c (find_methods): Remove unused gdbarch.
1347         * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
1348         * regcache.c (regcache_cooked_read): Remove unused gdbarch.
1349         * stack.c (print_frame_args): Remove unused summary.
1350         * thread.c (thread_apply_command): Remove unused p.
1351         * valarith.c (value_x_unop): Remove unused mangle_ptr.
1352         * valops.c (search_struct_method): Remove unused skip.
1353         * valprint.c (generic_val_print): Remove unused byte_order.
1354         * varobj.c (varobj_update): Remove unused changed.
1355         * cli/cli-cmds.c (complete_command): Remove unused next_item.
1356         (alias_command): Remove unused c.
1357         * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
1358         * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
1359         format.
1360         (mi_cmd_data_write_memory): Remove unused word_format.
1361         (mi_cmd_data_write_memory_bytes): Remove unused r.
1362         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
1363         p_start, p_end.
1364         * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
1365         * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
1366         line_width.
1367
1368 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
1369
1370         * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
1371         * symtab.c (iterate_over_symtabs): Remove unused s.
1372         (find_pc_sect_symtab): Remove unused pspAce.
1373         (find_pc_sect_line): Remove unused alt_symtab.
1374         (find_pcs_for_symtab_line): Remove unused ix, previous_function.
1375         (completion_list_add_name): Remove unused newsize.
1376
1377 2013-01-31  Tom Tromey  <tromey@redhat.com>
1378
1379         PR c++/14998:
1380         * dwarf2read.c (read_tag_ptr_to_member_type): Handle
1381         TYPE_CODE_FUNC.
1382
1383 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
1384
1385         * target.c (target_read_string): Remove unused origlen.
1386
1387 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
1388
1389         * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
1390         * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
1391         * ax-general.c (ax_print): Remove unused is_float.
1392         * blockframe.c (block_innermost_frame): Remove unused start, end.
1393         * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
1394
1395 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
1396
1397         * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
1398         (svr4_read_so_list): Remove unused lmo.
1399         * solib-target.c (solib_target_relocate_section_addresses): Remove
1400         unused flags.
1401
1402 2013-01-30  Tom Tromey  <tromey@redhat.com>
1403
1404         * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
1405
1406 2013-01-30  Tom Tromey  <tromey@redhat.com>
1407
1408         * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
1409         * utils.c (gnu_debuglink_crc32): Remove.
1410         * utils.h (gnu_debuglink_crc32): Don't declare.
1411
1412 2013-01-30  Tom Tromey  <tromey@redhat.com>
1413
1414         * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
1415         (read_structure_type, read_enumeration_type): Remove cast.
1416
1417 2013-01-30  Tom Tromey  <tromey@redhat.com>
1418
1419         * dwarf2read.c (read_namespace_type): Remove cast.
1420         (read_typedef): Likewise.
1421
1422 2013-01-29  Tom Tromey  <tromey@redhat.com>
1423
1424         * dwarf2read.c (free_dwo_file): Remove assert.
1425
1426 2013-01-29  Tom Tromey  <tromey@redhat.com>
1427
1428         * value.c (deprecated_set_value_modifiable): Remove.
1429         * value.h (deprecated_set_value_modifiable): Remove.
1430
1431 2013-01-28  Doug Evans  <dje@google.com>
1432
1433         * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
1434         to addresses from dwo files.
1435
1436 2013-01-25  Siva Chandra Reddy  <sivachandra@google.com>
1437
1438         * valops.c (find_overload_match): Remove unused argument 'lax'.
1439         * value.h: Remove unused argument 'lax' from the declaration of
1440         find_overload_match.
1441         * eval.c (value_subexp_standard): Do not pass a 'lax' argument
1442         to find_overload_match.
1443         * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
1444         argument to find_overload_match.
1445
1446 2013-01-25  Tom Tromey  <tromey@redhat.com>
1447
1448         * dwarf2read.c (processing_has_namespace_info): Remove.
1449         (struct dwarf2_cu) <processing_has_namespace_info>: New field.
1450         (process_die, read_func_scope, dwarf2_start_symtab)
1451         (new_symbol_full): Update.
1452
1453 2013-01-25  Tom Tromey  <tromey@redhat.com>
1454
1455         * cp-namespace.c (cp_set_block_scope): Remove.
1456         * cp-support.h (cp_set_block_scope): Remove.
1457         * dbxread.c: Include block.h.
1458         (cp_set_block_scope): New function.
1459         (process_one_symbol): Update.
1460         * dwarf2read.c (read_func_scope): Use block_set_scope.
1461
1462 2013-01-25  Pedro Alves  <palves@redhat.com>
1463
1464         * remote.c (add_current_inferior_and_thread): Tweak comment.
1465
1466 2013-01-25  Tom Tromey  <tromey@redhat.com>
1467
1468         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1469         (cp_add_using_directive): Add 'copy_names' argument.
1470         * cp-support.h (cp_add_using_directive): Update.
1471         (struct using_direct) <import_src, import_dest, alias,
1472         declaration>: Now const.
1473         * dwarf2read.c (read_import_statement): Use obconcat.
1474         Don't copy names passed to cp_add_using_directive.
1475
1476 2013-01-25  Tom Tromey  <tromey@redhat.com>
1477
1478         * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
1479
1480 2013-01-25  Pedro Alves  <palves@redhat.com>
1481
1482         * remote.c (stop_reply_extract_thread): New.
1483         (add_current_inferior_and_thread): New parameter 'wait_status'.
1484         Handle it.
1485         (remote_start_remote): Pass wait status to
1486         add_current_inferior_and_thread.
1487         (extended_remote_run): Update comment.
1488         (extended_remote_create_inferior_1): Pass wait status to
1489         add_current_inferior_and_thread.
1490
1491 2013-01-25  Andrew Burgess  <aburgess@broadcom.com>
1492             Ulrich Weigand  <uweigand@de.ibm.com>
1493
1494         * valarith.c (value_vector_widen): New function for replicating a
1495         scalar into a vector.
1496         (value_binop): Use value_vector_widen to widen scalar to vector
1497         rather than casting, this better matches gcc C behaviour.
1498         * valops.c (value_casst): Update logic for casting between vector
1499         types, and for casting from scalar to vector, try to match gcc C
1500         behaviour.
1501         * value.h (value_vector_widen): Declare.
1502         * opencl-lang.c (opencl_value_cast): New opencl specific casting
1503         function, handle special case for casting scalar to vector.
1504         (opencl_relop): Use opencl_value_cast.
1505         (evaluate_subexp_opencl): Use opencl_value_cast instead of
1506         value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
1507         in order to use opencl_value_cast.
1508
1509 2013-01-25  Yao Qi  <yao@codesourcery.com>
1510
1511         * event-loop.c: Include "queue.h".
1512         (gdb_event_p): New typedef.
1513         (DECLARE_QUEUE_P): Use.
1514         (DEFINE_QUEUE_P): Use.
1515         (async_queue_event): Remove.
1516         (gdb_event_xfree): New.
1517         (initialize_event_loop): New.
1518         (process_event): Use QUEUE macros.
1519         (event_queue): Remove.
1520         (gdb_wait_for_event): Caller update.
1521         (check_async_event_handlers): Likewise.
1522         (poll_timers): Likewise.
1523         * event-loop.h (initialize_event_loop): Declare.
1524         * event-loop.c (gdb_event_xfree): New.
1525         * top.c (gdb_init): Call initialize_event_loop.
1526
1527 2013-01-25  Yao Qi  <yao@codesourcery.com>
1528
1529         * event-loop.c (async_queue_event): Remove one parameter
1530         'position'.  Remove code handling 'position' == TAIL.
1531         (gdb_wait_for_event): Caller update.
1532         (check_async_event_handlers): Caller update.
1533         (poll_timers): Caller update.
1534         * event-loop.h (enum queue_position): Remove.
1535
1536 2013-01-25  Maxim Kuvyrkov  <maxim@kugelworks.com>
1537
1538         * MAINTAINERS: Update my email.
1539
1540 2013-01-25  Yao Qi  <yao@codesourcery.com>
1541
1542         * main.c (print_gdb_help): Remove "--epoch" from the help
1543         message.
1544
1545 2013-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
1546
1547         * symtab.c (skip_prologue_using_sal): Consider a file
1548         change the same as an increased line number
1549
1550 2013-01-24  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1551
1552         * MAINTAINERS (Write After Approval): Add myself to the list.
1553
1554 2013-01-24  Tom Tromey  <tromey@redhat.com>
1555
1556         * ada-lang.h (ada_decode_symbol): Make return type const.
1557         * ada-lang.c (ada_decode_symbol): Likewise.
1558
1559 2013-01-23  Doug Evans  <dje@google.com>
1560
1561         * linespec.c (find_linespec_symbols): Make static.
1562
1563 2013-01-23  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1564
1565         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1566         type on float conversion for complex type.
1567
1568 2013-01-23  Siva Chandra Reddy  <sivachandra@google.com>
1569
1570         Add a new class gdb.Architecture which exposes GDB's
1571         internal representation of architecture via GDB Python API.
1572         * Makefile.in: Add entries corresponding to the new file
1573         python/py-arch.c.
1574         * NEWS (Python Scripting): Add entries for the new class
1575         gdb.Architecture and the new method gdb.Frame.architecture.
1576         * python/py-arch.c: Implement gdb.Architecture class.
1577         * python/py-frame.c (frapy_arch): Implement the method
1578         gdb.Frame.architecture().
1579         (frame_object_methods): Add 'architecture' to the method table.
1580         * python/python-internal.h: Add declarations of new utility
1581         functions.
1582         * python/python.c (_initialize_python): Initialize
1583         gdb.Architecture class.
1584
1585 2013-01-23  Doug Evans  <dje@google.com>
1586
1587         Work around binutils/15021.
1588         * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1589         type_unit_group out of union s.  All uses updated.
1590         (read_index_from_section): Watch for index version 8.
1591         (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1592         an imported symtab.
1593         (write_psymtabs_to_index): Increment version number to 8.
1594
1595 2013-01-22  Pedro Alves  <palves@redhat.com>
1596
1597         * annotate.c (breakpoint_changed): Skip if breakpoint is not
1598         user-visible.
1599
1600 2013-01-22  Pedro Alves  <palves@redhat.com>
1601
1602         * annotate.c (annotate_breakpoints_changed): Rename to ...
1603         (annotate_breakpoints_invalid): ... this.  Make static.
1604         (breakpoint_changed): Adjust.
1605         (_initialize_annotate): Always install the observers.  Install a
1606         "breakpoint_created" observer.
1607         * annotate.h (annotate_breakpoints_changed): Delete declaration.
1608         * breakpoint.c (set_breakpoint_condition)
1609         (breakpoint_set_commands, do_map_commands_command)
1610         (init_raw_breakpoint, clear_command, set_ignore_count)
1611         (enable_breakpoint_disp): No longer call
1612         annotate_breakpoints_changed.
1613
1614 2013-01-22  Pedro Alves  <palves@redhat.com>
1615
1616         * annotate.c: Include "inferior.h".
1617         (frames_invalid_emitted)
1618         (breakpoints_invalid_emitted): New globals.
1619         (async_background_execution_p): New function.
1620         (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1621         emitting the annotation if it has already been emitted.
1622         (annotate_display_prompt): New function.
1623         * annotate.h (annotate_display_prompt): New declaration.
1624         * event-top.c: Include annotate.h.
1625         (display_gdb_prompt): Call annotate_display_prompt.
1626
1627 2013-01-22  Pedro Alves  <palves@redhat.com>
1628
1629         * annotate.c (ignore_count_changed): Delete.
1630         (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1631         (annotate_ignore_count_change): Delete.
1632         (annotate_stopped): Don't emit a delayed breakpoints-changed
1633         annotation.
1634         * annotate.h (annotate_ignore_count_change): Delete.
1635         * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1636         annotate_ignore_count_change.
1637
1638 2013-01-22  Tom Tromey  <tromey@redhat.com>
1639
1640         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1641         require_rvalue for a register location.
1642
1643 2013-01-21  Marc Khouzam  <marc.khouzam@ericsson.com>
1644
1645         * breakpoint.c (print_one_breakpoint_location): Add MI
1646         field 'thread-groups' when printing a breakpoint.
1647         (output_thread_groups): New function.
1648
1649 2013-01-21  Siva Chandra Reddy  <sivachandra@google.com>
1650
1651         * python/lib/gdb/commands/explore.py
1652         (CompoundExplorer.explore_expr): Correct the name of a method
1653         being invoked.
1654         (ExploreTypeCommand.invoke): Add a missing 'return'.
1655
1656 2013-01-21  Tom Tromey  <tromey@redhat.com>
1657
1658         * gdb_obstack.h (obconcat): Move declaration here, from...
1659         * symfile.h (obconcat): ... here.
1660         * gdb_obstack.c: New file.
1661         (obconcat): Move from...
1662         * symfile.c (obconcat): ... here.
1663         * Makefile.in (SFILES): Add gdb_obstack.c.
1664         (COMMON_OBS): Add gdb_obstack.o.
1665
1666 2013-01-21  Tom Tromey  <tromey@redhat.com>
1667
1668         * symfile.h (obsavestring): Don't declare.
1669         * symfile.c (obsavestring): Remove.
1670         * ada-exp.y: Use obstack_copy0, not obsavestring.
1671         * ada-lang.c: Use obstack_copy0, not obsavestring.
1672         * coffread.c: Use obstack_copy0, not obsavestring.
1673         * cp-namespace.c: Use obstack_copy0, not obsavestring.
1674         * dbxread.c: Use obstack_copy0, not obsavestring.
1675         * dwarf2read.c: Use obstack_copy0, not obsavestring.
1676         * jit.c: Use obstack_copy0, not obsavestring.
1677         * mdebugread.c: Use obstack_copy0, not obsavestring.
1678         * psymtab.c: Use obstack_copy0, not obsavestring.
1679         * stabsread.c: Use obstack_copy0, not obsavestring.
1680         * xcoffread.c: Use obstack_copy0, not obsavestring.
1681
1682 2013-01-21  Tom Tromey  <tromey@redhat.com>
1683
1684         * dwarf2read.c (fixup_go_packaging): Save package name
1685         on objfile obstack.
1686         * gdbtypes.c (init_type): Don't copy name.
1687
1688 2013-01-21  Tom Tromey  <tromey@redhat.com>
1689
1690         * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1691         const.
1692         (struct attribute) <u.str>: Now const.
1693         (struct fnfieldlist) <name>: Now const.
1694         (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1695         (partial_die_parent_scope): Make return type const.
1696         (partial_die_full_name, add_partial_symbol): Update.
1697         (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1698         'name' const.
1699         (find_file_and_directory): Make 'name' and 'comp_dir' const.
1700         (read_file_scope, read_func_scope, dwarf2_add_field)
1701         (dwarf2_add_member_fn, read_structure_type)
1702         (process_enumeration_scope, read_array_type, read_module_type)
1703         (read_base_type, read_subrange_type): Update.
1704         (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1705         (new_symbol_full, guess_full_die_structure_name): Update.
1706         (dwarf2_canonicalize_name): Return const type.  Make 'name' const.
1707         (dwarf2_name): Return const type.
1708         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1709         const.
1710
1711 2013-01-21  Tom Tromey  <tromey@redhat.com>
1712
1713         * gdbtypes.c (init_type): Make 'name' const.
1714         * gdbtypes.h (init_type): Update.
1715
1716 2013-01-21  Tom Tromey  <tromey@redhat.com>
1717
1718         * buildsym.c (patch_subfile_names): Use set_last_source_file.
1719         (start_symtab): Make 'name' and 'dirname' const.  Use
1720         set_last_source_file.
1721         (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1722         (last_source_file): Define.  Now static.
1723         (set_last_source_file, get_last_source_file): New functions.
1724         * buildsym.h (last_source_file): Don't declare.
1725         (start_symtab): Update.
1726         (set_last_source_file, get_last_source_file): Declare.
1727         * coffread.c (complete_symtab): Use set_last_source_file.
1728         (coff_end_symtab): Likewise.
1729         (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1730         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1731         set_last_source_file.
1732         (process_one_symbol): Use get_last_source_file.
1733         * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1734         (psymtab_to_symtab_1): Use get_last_source_file.
1735         * xcoffread.c (process_linenos): Use get_last_source_file.
1736         (complete_symtab): Use set_last_source_file.
1737         (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1738         (scan_xcoff_symtab): Use set_last_source_file.
1739
1740 2013-01-21  Tom Tromey  <tromey@redhat.com>
1741
1742         * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1743         (symbol_set_names): Remove casts.  Handle field const-ness.
1744
1745 2013-01-21  Tom Tromey  <tromey@redhat.com>
1746
1747         * dwarf2read.c (new_symbol_full): Remove cast.
1748         * symtab.c (symbol_set_demangled_name): Make 'name' const.
1749         * symtab.h (symbol_set_demangled_name): Update.
1750
1751 2013-01-21  Tom Tromey  <tromey@redhat.com>
1752
1753         * main.c (captured_main): Call bfd_init.
1754
1755 2013-01-21  Tom Tromey  <tromey@redhat.com>
1756
1757         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1758         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1759         * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1760         * NEWS: Update.
1761
1762 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1763
1764         * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1765
1766 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1767
1768         Fix gdb.fortran/common-block.exp crash in PIE mode.
1769         * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1770         LOC_COMMON_BLOCK.
1771         * f-valprint.c (info_common_command_for_block): Expect
1772         LOC_COMMON_BLOCK in gdb_assert.
1773         * symtab.h (struct general_symbol_info): Update comment for the
1774         common_block member.
1775         (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1776         (enum address_class): New member LOC_COMMON_BLOCK.
1777
1778 2013-01-18  David Blaikie  <dblaikie@gmail.com>
1779
1780         * MAINTAINERS (Write After Approval): Add "David Blaikie".
1781
1782 2013-01-18  Tom Tromey  <tromey@redhat.com>
1783
1784         PR c++/14999:
1785         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
1786         Call require_rvalue.
1787
1788 2013-01-18  Yao Qi  <yao@codesourcery.com>
1789
1790         * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
1791         (dbx_read_symtab): New declaration.
1792         (dbx_psymtab_to_symtab): Delete.
1793         (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
1794         Rename parameter PST to SELF.  Exchanged two parameters.
1795         (start_psymtab): Caller update.
1796         * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
1797         (dwarf2_read_symtab): New declaration.
1798         (dwarf2_psymtab_to_symtab): Delete.
1799         (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
1800         Rename parameter PST to SELF.  Exchanged two parameters.
1801         (create_partial_symtab): Caller update.
1802         * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
1803         (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
1804         Rename parameter PST to SELF.  Exchanged two parameters.
1805         (parse_partial_symbols, new_psymtab): Caller update.
1806         * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1807         two parameters.
1808         * psymtab.c (psymtab_to_symtab): Caller update.
1809         * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
1810         (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
1811         Rename parameter PST to SELF.  Exchanged two parameters.
1812         (xcoff_start_psymtab): Caller update.
1813
1814 2013-01-18  Yao Qi  <yao@codesourcery.com>
1815
1816         * infrun.c (proceed): Rename local variable 'oneproc' to
1817         'force_step'.
1818
1819 2013-01-17  Doug Evans  <dje@google.com>
1820
1821         * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
1822         (dw2_build_type_unit_groups): Delete.  All uses updated.
1823
1824         * symtab.h (struct symbol_search): Add comment.
1825
1826 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1827
1828         * symtab.c (compare_filenames_for_search): New comment for
1829         HAS_DRIVE_SPEC.
1830
1831 2013-01-17  Tom Tromey  <tromey@redhat.com>
1832
1833         * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1834
1835 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1836
1837         * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1838         initialize it by existing make_cleanup.  Call new do_cleanups.
1839
1840 2013-01-17  Tom Tromey  <tromey@redhat.com>
1841
1842         * cp-abi.c (cp_abi_completer): New function.
1843         (_initialize_cp_abi): Set completer for "set cp-abi".
1844
1845 2013-01-17  Tom Tromey  <tromey@redhat.com>
1846
1847         * mem-break.c: Remove obsolete comment.
1848         * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1849
1850 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
1851
1852         * jit.c (jit_reader_load_command): Interpret the jit reader name
1853         as an absolute path if it begins with a forward slash.
1854
1855 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
1856
1857         PR gdb/14550
1858
1859         * jit.c (finalize_symtab): Ensure that only the global block has a
1860         NULL superblock.
1861
1862 2013-01-17  Pedro Alves  <palves@redhat.com>
1863
1864         * acinclude.m4: Include ../config/plugins.m4,
1865         ../config/largefile.m4 and ../config/lead-dot.m4.  Add comments.
1866         * Makefile.in (aclocal_m4_deps): Update.
1867         * aclocal.m4: Renegerate.
1868
1869 2013-01-16  Doug Evans  <dje@google.com>
1870
1871         * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1872
1873 2013-01-16  Pedro Alves  <palves@redhat.com>
1874             Tom Tromey  <tromey@redhat.com>
1875
1876         PR cli/7221:
1877         * NEWS: Add "catch signal".
1878         * breakpoint.c (base_breakpoint_ops): No longer static.
1879         (bpstat_explains_signal): New function.
1880         (init_catchpoint): No longer static.
1881         (base_breakpoint_explains_signal): New function.
1882         (base_breakpoint_ops): Initialize new field.
1883         * breakpoint.h (enum bpstat_signal_value): New.
1884         (struct breakpoint_ops) <explains_signal>: New field.
1885         (bpstat_explains_signal): Remove macro, declare as function.
1886         (base_breakpoint_ops, init_catchpoint): Declare.
1887         * break-catch-sig.c: New file.
1888         * inferior.h (signal_catch_update): Declare.
1889         * infrun.c (signal_catch): New global.
1890         (handle_syscall_event): Update for change to
1891         bpstat_explains_signal.
1892         (handle_inferior_event): Likewise.  Always handle random signals
1893         via bpstats.
1894         (signal_cache_update): Check signal_catch.
1895         (signal_catch_update): New function.
1896         (_initialize_infrun): Initialize signal_catch.
1897         * Makefile.in (SFILES): Add break-catch-sig.c.
1898         (COMMON_OBS): Add break-catch-sig.o.
1899
1900 2013-01-16  Tom Tromey  <tromey@redhat.com>
1901
1902         * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
1903         (print_one_catch_solib, print_one_catch_syscall)
1904         (print_one_catch_exec, print_one_exception_catchpoint): Emit
1905         "catch-type".
1906
1907 2013-01-16  Yao Qi  <yao@codesourcery.com>
1908
1909         * printcmd.c (current_display_number): Make it static.
1910
1911 2013-01-16  Yao Qi  <yao@codesourcery.com>
1912
1913         * infcmd.c (step_once): Don't check '!single_inst' as it was
1914         checked before.
1915
1916 2013-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1917
1918         * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
1919
1920 2013-01-14  Tom Tromey  <tromey@redhat.com>
1921
1922         * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
1923         set command.
1924         * command.h (add_setshow_string_noescape_cmd): Update.
1925         * corefile.c (set_gnutarget_command): Remove trailing whitespace.
1926         (complete_set_gnutarget): New function.
1927         (_initialize_core): Set the "set gnutarget" completer.
1928
1929 2013-01-14  Tom Tromey  <tromey@redhat.com>
1930
1931         PR symtab/14442:
1932         * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
1933         (c_type_print_modifier): Likewise.
1934         * dwarf2read.c (read_tag_restrict_type): New function.
1935         (read_type_die_1): Handle DW_TAG_restrict_type.
1936         * gdbtypes.c (make_restrict_type): New function.
1937         (recursive_dump_type): Handle TYPE_RESTRICT.
1938         * gdbtypes.h (enum type_flag_values): Renumber.
1939         (enum type_instance_flag_value): Add
1940         TYPE_INSTANCE_FLAG_RESTRICT.
1941         (TYPE_RESTRICT): New macro.
1942         (make_restrict_type): Declare.
1943
1944 2013-01-14  Tom Tromey  <tromey@redhat.com>
1945
1946         PR symtab/14931:
1947         * psymtab.c (struct psymtab_state): New.
1948         (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
1949         functions.
1950         * psympriv.h (make_cleanup_discard_psymtabs): Declare.
1951         * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
1952
1953 2013-01-14  Richard Sharman  <richard_sharman@mitel.com>
1954             Pedro Alves  <palves@redhat.com>
1955
1956         PR remote/14786
1957
1958         * remote.c (remote_threads_info): Make a copy of the reply from
1959         qfThreadInfo and use that instead of rs->buf.
1960
1961 2013-01-14  Yao Qi  <yao@codesourcery.com>
1962
1963         * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
1964         (dbx_psymtab_to_symtab): Likewise.
1965         * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
1966         * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
1967         * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
1968
1969 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1970
1971         * parse.c (parse_exp_in_context): New variable inner_chain.  Call
1972         make_cleanup_restore_current_language.  Call set_language.  Move
1973         OLD_CHAIN and INNER_CHAIN cleanups.
1974         * utils.c (do_restore_current_language)
1975         (make_cleanup_restore_current_language): New functions.
1976         * utils.h (make_cleanup_restore_current_language): New declaration.
1977
1978 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1979
1980         * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1981         non-existing files.
1982
1983         * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1984         non-existing files if FILENAME is already absolute.
1985
1986 2013-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1987
1988         * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1989         fputs_filtered.  Append trailing newline.
1990
1991 2013-01-11  Yao Qi  <yao@codesourcery.com>
1992             Stan Shebs  <stan@codesourcery.com>
1993
1994         * psymtab.c (init_psymbol_list): Clarify the comment.
1995
1996 2013-01-11  Yao Qi  <yao@codesourcery.com>
1997
1998         * breakpoint.c (print_one_breakpoint_location): Remove dead code.
1999         (update_dprintf_command_list): Assert that 'printf_line' is
2000         non-null.  Remove condition check.
2001
2002 2013-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
2003
2004         Code cleanup.
2005         * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
2006         type const char *.
2007         * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
2008         const char *.
2009         * tui/tui-source.h (tui_source_is_displayed): Likewise.
2010
2011 2013-01-09  Anthony Green  <green@moxielogic.com>
2012
2013         * cp-abi.c (cplus_print_vtable): Don't return value from void
2014         function.
2015         * ada-lang.c (re_set_catch_assert): Ditto.
2016
2017 2013-01-09  Doug Evans  <dje@google.com>
2018
2019         * symfile.h (quick_symbol_functions): Delete member
2020         pre_expand_symtabs_matching.  All uses removed.
2021         * dwarf2read.c (dw2_lookup_symbol): Implement.
2022         (dw2_do_expand_symtabs_matching): Delete.
2023         (dw2_pre_expand_symtabs_matching): Delete.
2024         (struct dw2_symtab_iterator): New type.
2025         (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
2026         (dw2_expand_symtabs_for_function): Rewrite.
2027         (dwarf2_gdb_index_functions): Update.
2028         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
2029         (psym_functions): Update.
2030
2031 2013-01-09  Tom Tromey  <tromey@redhat.com>
2032
2033         * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
2034         * configure: Rebuild.
2035         * configure.ac: Add somread.o to the build if BFD has SOM
2036         support.
2037         * somread.c: Include som/aout.h, not syms.h.
2038         (som_symtab_read): Use som_external_symbol_dictionary_record.
2039         Unpack records manually.
2040         (_initialize_somread): Declare.
2041
2042 2012-01-08  Mike Frysinger  <vapier@gentoo.org>
2043
2044         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
2045         Cast return_address to 64bits.
2046
2047 2013-01-08  Hui Zhu  <hui_zhu@mentor.com>
2048
2049         * printcmd.c: Remove define of function output_command.
2050         * tracepoint.c: Remove extern of function output_command.
2051         * valprint.h: (output_command): New extern.
2052
2053 2013-01-07  Tom Tromey  <tromey@redhat.com>
2054
2055         * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
2056         Remove.
2057         (objc_language_defn): Use c_printchar, c_printstr,
2058         c_emit_char.
2059
2060 2013-01-07  Tom Tromey  <tromey@redhat.com>
2061
2062         PR cli/7719:
2063         * NEWS: Update.
2064         * ada-valprint.c (printstr, print_field_values): Remove
2065         "inspect_it" code.
2066         * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
2067         code.
2068         * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
2069         code.
2070         * m2-lang.c (m2_printstr): Remove "inspect_it" code.
2071         * main.c (captured_main): Remove "epoch" argument.
2072         * objc-lang.c (objc_printstr): Remove "inspect_it" code.
2073         * p-lang.c (pascal_printstr): Remove "inspect_it" code.
2074         * p-valprint.c (pascal_object_print_value_fields): Remove
2075         "inspect_it" code.
2076         * printcmd.c (print_command_1): Remove 'inspect' argument.
2077         (print_command, call_command): Update.
2078         (inspect_command): Remove.
2079         (_initialize_printcmd): Make "inspect" an alias for "print".
2080         * top.c (epoch_interface): Remove.
2081         * top.h (epoch_interface): Remove.
2082         * valprint.c (user_print_options): Update.
2083         (print_converted_chars_to_obstack): Remove "inspect_it" code.
2084         * valprint.h (struct value_print_options) <inspect_it>: Remove
2085         field.
2086
2087 2013-01-04  Tom Tromey  <tromey@redhat.com>
2088
2089         * valprint.h (read_string): Add 'extern'.
2090
2091 2013-01-07  Joel Brobecker  <brobecker@adacore.com>
2092
2093         * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
2094         used to decide whether to define darwin_read_dyld_info or not.
2095
2096 2013-01-03  Pierre Muller  <muller@sourceware.org>
2097
2098         * main.c (relocate_gdb_directory): Avoid calling stat function
2099         if DIR is empty.
2100
2101 2013-01-03  Yao Qi  <yao@codesourcery.com>
2102
2103         * psymtab.c (fixup_psymbol_section): Update declaration.
2104         (fixup_psymbol_section): Remove code returning value.
2105
2106 2013-01-03  Yao Qi  <yao@codesourcery.com>
2107
2108         * symtab.h: Remove some out of date comments.
2109          (enum exception_event_kind): Move it ...
2110         * breakpoint.c: ... here.
2111
2112 2013-01-02  Iain Sandoe  <developer@sandoe-acoustics.co.uk>
2113
2114         PR gdb/14405
2115         * darwin-nat.c (darwin_read_dyld_info): Only build if
2116         TASK_DYLD_INFO_COUNT is defined.
2117         (darwin_xfer_partial): Call darwin_read_dyld_info only if
2118         TASK_DYLD_INFO_COUNT is defined.
2119
2120 2013-01-02  Tom Tromey  <tromey@redhat.com>
2121
2122         * symfile.h (struct ecoff_debug_hack): Remove.
2123         * objfiles.c: Don't include mdebugread.h.
2124
2125 2013-01-02  Tom Tromey  <tromey@redhat.com>
2126
2127         * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
2128         * configure.ac: Check for Mach-O support in BFD.  Update
2129         CONFIG_OBS.
2130         * configure: Rebuild.
2131
2132 2013-01-02  Tom Tromey  <tromey@redhat.com>
2133
2134         * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
2135         * configure.ac: Use GDB_AC_CHECK_BFD.
2136         * configure: Rebuild.
2137
2138 2013-01-01  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
2139
2140         * MAINTAINERS: Update my email.
2141
2142 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
2143
2144         * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
2145
2146 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
2147
2148         * rs6000-nat.c (bss_data_overlap): New function.
2149         (vmap_symtab): Use it to adjust the .bss section's offset.
2150
2151 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
2152
2153         Update year range in copyright notice of all files.
2154
2155 2013-01-01, 13  Joel Brobecker  <brobecker@adacore.com>
2156
2157         * top.c (print_gdb_version): Update copyright year.
2158
2159 For older changes see ChangeLog-2012.
2160 \f
2161 Local Variables:
2162 mode: change-log
2163 left-margin: 8
2164 fill-column: 74
2165 version-control: never
2166 coding: utf-8
2167 End: