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