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