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