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