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