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