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