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