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