Implement branch tracing on Linux based on perf_event such that it can be shared
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7c97f91e
MM
12013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2
3 * common/linux_btrace.h: New file.
4 * common/linux_btrace.c: New file.
5 * Makefile.in (SFILES): Add btrace.c.
6 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
7 (COMMON_OBS): Add btrace.o.
8 (linux-btrace.o): New rule.
9
1999790b 102013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
11
12 * target.h: Include btrace.h.
13 (struct target_ops) <to_supports_btrace, to_enable_btrace,
14 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
15 * target.c (target_supports_btrace): New function.
16 (target_enable_btrace): New function.
17 (target_disable_btrace): New function.
18 (target_teardown_btrace): New function.
19 (target_read_btrace): New function.
20 * btrace.h: New file.
21 * btrace.c: New file.
22 * Makefile.in: Add btrace.c.
23 * gdbthread.h: Include btrace.h.
24 (struct thread_info): Add btrace field.
25 * thread.c: Include btrace.h.
26 (clear_thread_inferior_resources): Call target_teardown_btrace.
27 * common/btrace-common.h: New file.
28
61a31a67
JK
292013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
30
31 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
32 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
33 kill_status to outer block.
34
05c56a9d
JK
352013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
36
37 Fix entry-values if the callee called a noreturn function.
38 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
39 get_frame_address_in_block. Add new comment.
40
9112db09
JK
412013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
42
43 Fix entry-values in C++ across CUs.
44 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
45 lookup_minimal_symbol. Add a comment.
46 * dwarf2read.c
47 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
48 DW_AT_linkage_name.
49
9b67fcec
YQ
502013-03-08 Yao Qi <yao@codesourcery.com>
51
52 * tracepoint.c (_initialize_tracepoint): Indent the code.
53
6221be90
PA
542013-03-08 Pedro Alves <palves@redhat.com>
55
56 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
57 (parse_find_args, find_command): Change type of pattern buffer
58 locals to 'gdb_byte *'.
59
be9a119c 602013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
61 Hafiz Abid Qadeer <abidh@codesourcery.com>
62
63 * NEWS: Mention set and show trace-buffer-size commands.
64 Mention new packet.
65 * target.h (struct target_ops): New method
66 to_set_trace_buffer_size.
67 (target_set_trace_buffer_size): New macro.
68 * target.c (update_current_target): Set up new method.
69 * tracepoint.c (trace_buffer_size): New global.
70 (start_tracing): Send it to the target.
71 (set_trace_buffer_size): New function.
72 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
73 * remote.c (remote_set_trace_buffer_size): New function.
74 (_initialize_remote): Use it.
75 (QTBuffer:size) New remote command.
76 (PACKET_QTBuffer_size): New enum.
77 (remote_protocol_features): Add an entry for
78 PACKET_QTBuffer_size.
79
7da3ab79
TT
802013-03-08 Tom Tromey <tromey@redhat.com>
81
82 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
83 variable.
84
0c1f71e7
PA
852013-03-07 Pedro Alves <palves@redhat.com>
86
87 * target.c (target_read_stralloc, target_fileio_read_alloc):
88 *Cast pointer to 'gdb_byte *' in target call.
89
c8af03a2
PA
902013-03-07 Pedro Alves <palves@redhat.com>
91
92 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
93 call.
94
529480d0
KS
952013-03-07 Keith Seitz <keiths@redhat.com>
96
97 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
98 (trace_pass_command): Likewise.
99 * cli/cli-cmds.c: Include cli/cli-utils.h.
100 (source_command): Use skip-spaces.
101 (disassemble_command): Likewise.
102 * findcmd.c: Include cli/cli-utils.h.
103 (parse_find_args): Use skip_spaces.
104 * go32-nat.c: Include cli/cli-utils.h.
105 (go32_sldt): Use skip_spaces.
106 (go32_sgdt): Likewise.
107 (go32_sidt): Likewise.
108 (go32_pde): Likewise.
109 (go32_pte): Likewise.
110 (go32_pte_for_address): Likewise.
111 * infcmd.c: Include cli/cli-utils.h.
112 (registers_info): Use skip_spaces.
113 * linux-tdep.c (read_mapping): Use skip_spaces_const.
114 (linux_info_proc): Likewise.
115 * linux-thread-db.c: Include cli/cli-utils.h.
116 (info_auto_load_libthread_db): Use skip_spaces_const.
117 * m32r-rom.c: Include cli/cli-utils.h.
118 (m32r_upload_command): Use skip_spaces.
119 * maint.c: Include cli/cli-utils.h.
120 (maintenance_translate_address): Use skip_spaces.
121 * mi/mi-parse.c: Include cli/cli-utils.h.
122 (mi_parse_argv): Use skip_spaces.
123 (mi_parse): Likewise.
124 * minsyms.c: Include cli/cli-utils.h.
125 (msymbol_hash_iw): Use skip_spaces_const.
126 * objc-lang.c: Include cli/cli-utils.h.
127 (parse_selector): Use skip_spaces.
128 (parse_method): Likewise.
129 * python/python.c: Include cli/cli-utils.h.
130 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
131 (python_command)[HAVE_PYTHON]: Likewise.
132 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
133 * remote-m32r-sdi.c: Include cli/cli-utils.h.
134 (m32r_load): Use skip_spaces.
135 * serial.c: Include cli/cli-utils.h.
136 (serial_open): Use skip_spaces_const.
137 * stack.c: Include cli/cli-utils.h.
138 (parse_frame_specification_1): Use skip_spaces_const.
139 * symfile.c: Include cli/cli-utils.h.
140 (set_ext_lang_command): Use skip_spaces.
141 * symtab.c: Include cli/cli-utils.h.
142 (rbreak_command): Use skip_spaces.
143 * thread.c (thread_name_command): Use skip_spaces.
144 * tracepoint.c (validate_actionline): Use skip_spaces.
145 (encode_actions_1): Likewise.
146 (trace_find_range_command): Likewise.
147 (trace_find_outside_command): Likewise.
148 (trace_dump_actions): Likewise.
149
ac91cd70
PA
1502013-03-07 Pedro Alves <palves@redhat.com>
151
152 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
153 * expprint.c (print_subexp_standard): Likewise.
154 * utils.c (host_char_to_target): Likewise.
155 * valprint.c (generic_emit_char, generic_printstr): Likewise.
156 * varobj.c (value_get_print_value): Change type of local to char*.
157 Cast it gdb_byte * in call to language printer.
158
2898e560
PA
1592013-03-07 Pedro Alves <palves@redhat.com>
160
161 * charset.c (struct wchar_iterator) <input>: Change type to 'const
162 gdb_byte *'.
163 (make_wchar_iterator): Remove cast to char*.
164 (wchar_iterate): Change type of local.
165
a09b4448
PA
1662013-03-07 Pedro Alves <palves@redhat.com>
167
168 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
169 for 'regcache->register_status'.
170
20ced3e4
PA
1712013-03-07 Pedro Alves <palves@redhat.com>
172
c2d6a675 173 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
174 int.
175
fe106009
PA
1762013-03-07 Pedro Alves <palves@redhat.com>
177
178 * stap-probe.c (handle_stap_probe): Add cast to char*.
179
8ac2c12b
PA
1802013-03-07 Pedro Alves <palves@redhat.com>
181
182 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
183 RECORD_MSGRCV>: Pass a signed variable to
184 regcache_raw_read_signed, instead of an unsigned one.
185
99f0a309
PA
1862013-03-07 Pedro Alves <palves@redhat.com>
187
188 * remote-notif.c (notif_debug): Change type to int.
189 * remote-notif.h (notif_debug): Likewise.
190
964b8317
PA
1912013-03-07 Pedro Alves <palves@redhat.com>
192
193 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
194
f0cc8ad4
PA
1952013-03-07 Pedro Alves <palves@redhat.com>
196
197 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
198 * remote.h (hex2bin, bin2hex): ... here.
199 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
200
77dec115
EZ
2012013-03-07 Eli Zaretskii <eliz@gnu.org>
202
203 * utils.c (initialize_utils): Improve doc strings of "set/show
204 width", "set/show height", and "set/show pagination".
205
741d92cf
KS
2062013-03-06 Keith Seitz <keiths@redhat.com>
207
208 * ax-gdb.c (gen_printf): Make FORMAT const.
209 * ax-gdb.h (gen_printf): Likewise.
210 * ax-general.c (ax_string): Make STR const.
211 * ax.h (ax_string): Likewise.
212
7b6c814e
DE
2132013-03-06 Doug Evans <dje@google.com>
214
215 * elfread.c (elf_symfile_read): Move debugging printf to more
216 logical location.
217
634334ab
PA
2182013-03-06 Pedro Alves <palves@redhat.com>
219
220 * python/py-utils.c (target_string_to_unicode): Delete function.
221 * python/python-internal.h (target_string_to_unicode): Delete
222 declaration.
223
e482a1a7
PM
2242013-03-06 Pierre Muller <muller@sourceware.org>
225
226 * linespec.c (get_current_search_block): ARI fix, use (void)
227 for empty parameter list.
228
4eeaa230
DE
2292013-03-05 Doug Evans <dje@google.com>
230
231 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
232 of old ada_lookup_symbol_list. In !full_search case, don't
233 search superblocks.
234 (ada_lookup_symbol_list): Delete arg full_search, all callers
235 updated. Call ada_lookup_symbol_list_worker.
236 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
237 * ada-lang.h (ada_lookup_symbol_list): Update.
238 * language.h (language_defn): Update comment for
239 la_iterate_over_symbols.
240 * linespec.c (iterate_over_file_blocks): New function.
241 (iterate_over_all_matching_symtabs): Call it.
242 (lookup_prefix_sym): Ditto.
243 (get_current_search_block): New function.
244 (get_search_block): Delete.
245 (find_label_symbols): Call get_current_search_block.
246 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
247 * symtab.c (iterate_over_symbols): Don't search superblocks.
248
b69b1fb1
YQ
2492013-03-05 Yao Qi <yao@codesourcery.com>
250
251 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
252 parameter VAR's type from "unsigned int" to "int".
253 * command.h (var_zuinteger_unlimited): Update its comments.
254 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
255
3c095f49
CV
2562013-03-05 Corinna Vinschen <vinschen@redhat.de>
257
258 * NEWS: Mention new target x86_64-*-cygwin*.
259
b5b0b0af
CV
2602013-03-05 Corinna Vinschen <vinschen@redhat.de>
261
262 * configure.host: Add x86_64-*-cygwin* as host.
263 * configure.tgt: Add x86_64-*-cygwin* as target.
264 * config/i386/cygwin64.mh: New file.
265
f6f99966
JK
2662013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
267
268 * linespec.c (decode_line_2): Fix duplicate request off by two message.
269
33f448b1
JK
2702013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
271
272 * linespec.c (struct linespec_canonical_name): New.
273 (struct linespec_state): Change canonical_names type to it.
274 (add_sal_to_sals): Change variable canonical_name to canonical. Change
275 xrealloc element size. Initialize the different CANONICAL fields.
276 (canonical_to_fullform): New.
277 (filter_results): Use it. Add variables canonical, fullform and
278 cleanup.
279 (struct decode_line_2_item, decode_line_2_compare_items): New.
280 (decode_line_2): Remove variables iter and item_names, add variables
281 items and items_count. Modify the code for these new variables.
282
feb14725
CV
2832013-03-04 Corinna Vinschen <vinschen@redhat.com>
284
285 * coff-pe-read.c (read_pe_exported_syms): Don't return without
286 calling do_cleanup.
287
e83b17ba
HZ
2882013-03-04 Luis Machado <lgustavo@codesourcery.com>
289
290 * tracepoint.c (build_traceframe_info): Add code for byte order.
291
a2d13a0d
KB
2922013-03-02 Kevin Buettner <kevinb@redhat.com>
293
8dddcae8
KB
294 * v850-tdep.c: (v850e2_register_name): Revise system register
295 names to match current V850E2M architecture specifications.
296 Update register number enum comments too.
a2d13a0d 297
d79e58d8
JW
2982013-03-01 Jiong Wang <jiwang@tilera.com>
299 Pedro Alves <palves@redhat.com>
300
301 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
302 to END_ADDR.
303 (tilegx_skip_prologue): Limit prologue analysis to section end.
304
c4be5165
JK
3052013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
306
307 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
308 use it.
309
e362b510
PA
3102013-03-01 Pedro Alves <palves@redhat.com>
311
312 Use gdb_byte for bytes from the program being debugged.
313
314 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
315 Change type of local 'buf' to gdb_byte.
316 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
317 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
318 * cris-tdep.c (cris_sigcontext_addr)
319 (cris_sigtramp_frame_unwind_cache): Likewise.
320 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
321 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
322 Likewise.
323 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
324 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
325 (hppa32_hpux_search_dummy_call_sequence)
326 (hppa_hpux_supply_save_state): Likewise.
327 * hppa-linux-tdep.c (insns_match_pattern)
328 (hppa_linux_find_global_pointer): Likewise.
329 * hppa-tdep.c (hppa_in_function_epilogue_p)
330 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
331 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
332 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
333 (i386fbsd_collect_uthread): Likewise.
334 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
335 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
336 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
337 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
338 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
339 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
340 (ia64_libunwind_frame_prev_register)
341 (ia64_libunwind_sigtramp_frame_this_id)
342 (ia64_find_global_pointer_from_dynamic_section)
343 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
344 (ia64_unwind_pc): Likewise.
345 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
346 * m68hc11-tdep.c (m68hc11_push_dummy_call)
347 (m68hc11_extract_return_value): Likewise.
348 * m68klinux-nat.c (fetch_register, store_register): Likewise.
349 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
350 (mep_get_insn, mep_push_dummy_call): Likewise.
351 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
352 (mips_linux_in_dynsym_stub): Likewise.
353 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
354 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
355 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
356 to gdb_byte.
357 * remote-mips.c (mips_set_register): Likewise.
358 * remote-sim.c (gdbsim_fetch_register): Likewise.
359 * score-tdep.c (score7_fetch_inst): Change type of parameter
360 'memblock' and local 'buf' to gdb_byte.
361 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
362 Change type of local 'buf' to gdb_byte. Adjust.
363 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
364 to gdb_byte**.
365 (score7_analyze_prologue): Change type of 'memblock' and
366 'memblock_ptr' locals to gdb_byte*.
367 * sh64-tdep.c (sh64_extract_return_value)
368 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
369 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
370 * solib-pa64.c (pa64_solib_create_inferior_hook)
371 (pa64_open_symbol_file_object): Remove local 'buf'.
372 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
373 (som_open_symbol_file_object): Likewise.
374 * solib-spu.c (spu_current_sos): Likewise.
375 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
376 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
377 (spu_store_registers): Likewise.
378 * target.c (debug_print_register): Likewise.
379 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
380 * xstormy16-tdep.c (xstormy16_store_return_value)
381 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
382 (xstormy16_find_jmp_table_entry): Likewise.
383
75cc61ca 3842013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
385
386 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
387 (tilegx_gdbarch_init): Install it.
388
ddb08e9c
TT
3892013-02-28 Tom Tromey <tromey@redhat.com>
390
391 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
392 PyLong_Check.
393
62d7fb51
DE
3942013-02-28 Doug Evans <dje@google.com>
395
396 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
397 * python/python.c (gdbpy_find_pc_line): Ditto.
398
c4a9e8b4
TT
3992013-02-28 Tom Tromey <tromey@redhat.com>
400
401 * contrib/excheck.py: New file.
402 * contrib/exsummary.py: New file.
403 * contrib/gcc-with-excheck: New file.
404
7f6a5dde
TT
4052013-02-28 Tom Tromey <tromey@redhat.com>
406
407 * python/python.c (gdbpy_print_stack): Call begin_line and
408 fprintf_filtered inside TRY_CATCH.
409
9e974e55
TT
4102013-02-28 Tom Tromey <tromey@redhat.com>
411
412 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
413 inside TRY_CATCH.
414
dd5fa3e7
TT
4152013-02-28 Tom Tromey <tromey@redhat.com>
416
417 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
418 frame_object_to_frame_info inside TRY_CATCH.
419
86a3263f
TT
4202013-02-28 Tom Tromey <tromey@redhat.com>
421
422 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
423 TRY_CATCH.
424
81b52a3a
TT
4252013-02-28 Tom Tromey <tromey@redhat.com>
426
427 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
428
d50a0ce2
CV
4292013-02-27 Corinna Vinschen <vinschen@redhat.com>
430
431 * windows-nat.c: Throughout, fix format strings and casts of
432 printf-like functions to avoid type related warnings on all
433 platforms.
434 (handle_output_debug_string): Fetch context information address
435 from debug string using string_to_core_addr.
436
e1f58301
JW
4372013-02-27 Jiong Wang <jiwang@tilera.com>
438
439 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
440 * regformats/reg-tilegx32.dat: New.
441
4fcd89fc
JW
4422013-02-27 Jiong Wang <jiwang@tilera.com>
443
444 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
445
748d24e6
JW
4462013-02-27 Jiong Wang <jiwang@tilera.com>
447
448 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
449
6c8e944d
YQ
4502013-02-27 Yao Qi <yao@codesourcery.com>
451 Pedro Alves <palves@redhat.com>
452
453 * tracepoint.c (tfile_trace_find): For tfind
454 pc/tp/range/outside, look for the next trace frame instead of
455 always starting from frame 0.
456
acd7db30
AG
4572013-02-26 Anthony Green <green@moxielogic.com>
458
459 * configure.tgt: Add support for moxie-*-rtems* target.
460
025e6dce
PA
4612013-02-25 Pedro Alves <palves@redhat.com>
462
463 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
464 warning text.
465
ca9c94ef
MR
4662013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
467
468 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
469 if $fp is used as the virtual frame pointer.
470
24c274a1
AM
4712013-02-23 Alan Modra <amodra@gmail.com>
472
473 * elfread.c (elf_symtab_read): Do not use udata.p here to find
474 symbol size.
475 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
476 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
477 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
478 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
479
bfada189
JK
4802013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
481
482 Code cleanup.
483 * elfread.c (build_id_bfd_get): Make the return type const.
484 (build_id_verify): Make the check parameter const.
485 (build_id_to_debug_filename): Make the build_id parameter and variable
486 data const.
487 (find_separate_debug_file_by_buildid): Make the variable build_id const.
488
c0355132
AM
4892013-02-21 Alan Modra <amodra@gmail.com>
490
491 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
492
9f44fbc0
SCR
4932013-02-20 Siva Chandra Reddy <sivachandra@google.com>
494
495 Add a new method 'disassemble' to gdb.Architecture class.
496 * python/py-arch.c (archpy_disassmble): Implementation of the
497 new method gdb.Architecture.disassemble.
498 (arch_object_methods): Add entry for the new method.
499
b74ea3eb
JW
5002013-02-20 Jiong Wang <jiwang@tilera.com>
501
502 * MAINTAINERS (Write After Approval): Add myself to the list.
503
61a672f1
PA
5042013-02-19 Pedro Alves <palves@redhat.com>
505
506 Garbage collect 'struct monitor_ops'::load_routine.
507
508 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
509 * monitor.c (monitor_load): No longer call
510 current_monitor->load_routine.
511 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
512 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
513 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
514
40e397df
PA
5152013-02-19 Pedro Alves <palves@redhat.com>
516
517 PR gdb/15161
518
519 Harmonize with generic_load.
520
521 * monitor.c: Include "readline/readline.h".
522 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
523 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
524 long/strtol for the 'load_offset' local. Error out if no argument
525 is given or if too many arguments are given. Tilde expand the
526 passed in file name.
527
f698ca8e
KT
5282013-02-19 Kai Tietz <ktietz@redhat.com>
529
530 PR gdb/15161
531 * symfile.c (load_section_data): Change type of load_offset
532 to CORE_ADDR.
533 (generic_load): User strtoulst instead of strtoul for conversion
534 of load_offset.
535
3361b059
WL
5362013-02-19 Jiong Wang <jiwang@tilera.com>
537
538 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
539 for return address, "lr" register, saved on stack.
540 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
541 after we invoke tilegx_analyze_prologue.
542
3e9d5130
WL
5432013-02-19 Jiong Wang <jiwang@tilera.com>
544
bb1bcd86
WL
545 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
546
3361b059 5472013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 548
b74ea3eb 549 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 550
4aaf2503
WL
5512013-02-19 Jiong Wang <jiwang@tilera.com>
552
b74ea3eb 553 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
554 (tilegx_write_pc): New function.
555 (tilegx_cannot_reference_register): Return zero if REGNO
556 is TILEGX_FAULTNUM_REGNUM.
557 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
558 (tilegx_register_name): Add handling of "faultnum" register.
559 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
560 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
561 handling of TILEGX_FAULTNUM_REGNUM.
562 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
563
bc23a956
WL
5642013-02-19 Jiong Wang <jiwang@tilera.com>
565
566 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 567 should be aligned to 64bit.
bc23a956 568
42f45f1a
KT
5692013-02-19 Kai Tietz <ktietz@redhat.com>
570
571 * windows-nat.c (windows_xfer_memory): Fix debug-output
572 for LLP64.
573
6ce4c112
LL
5742013-02-19 Lei Liu <lei.liu2@windriver.com>
575
576 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
577 Don't check DSP register number if HAVE_DSP is not set.
578
30e8ee25
AM
5792013-02-19 Alan Modra <amodra@gmail.com>
580
581 * elfread.c (struct build_id): Delete. Use struct elf_build_id
582 throughout file instead.
583 (build_id_bfd_get): Update to use new elf_tdata build_id field.
584 Don't xmalloc return value.
585 (build_id_verify): Similarly. Don't xfree.
586 (build_id_to_debug_filename): Update.
587 (find_separate_debug_file_by_buildid): Update, don't xfree.
588
4c9ad8c2
TT
5892013-02-18 Tom Tromey <tromey@redhat.com>
590
591 PR gdb/15102:
592 * dwarf2read.c (read_subrange_type): Use result of
593 'check_typedef'.
594
983dc440
YQ
5952013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
596
597 * frame.c: Remove one extra white space after #include
598 directive.
599
7fb2b84a
JK
6002013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
601
602 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
603
edceb2a9
JK
6042013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
605
606 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
607 and dir commands into an if block.
608
e81b7af8
TT
6092013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
610
611 * python/py-breakpoint (struct pybp_code): Use int instead of
612 enum type_code.
613
f5911ea1
HAQ
6142013-02-15 Pedro Alves <pedro@codesourcery.com>
615 Hafiz Abid Qadeer <abidh@codesourcery.com>
616
617 * NEWS: Mention new field "trace-file".
618 * tracepoint.c (trace_status_mi): Output "trace-file" field.
619 (tfile_open): Record the trace file's filename in the trace
620 status.
621 (tfile_files_info): Mention the name of the trace file.
622 Check the "filename" field explicitely.
623 (trace_status_command): Explicitely check "filename" field.
624 (trace_find_command): Ditto.
625 (trace_find_pc_command): Ditto.
626 (trace_find_tracepoint_command): Ditto.
627 (trace_find_line_command): Ditto.
628 (trace_find_range_command): Ditto.
629 (trace_find_outside_command): Ditto.
630 * tracepoint.h (struct trace_status) <from_file>: Rename it
631 to "filename" and make it hold the trace file's filename
632 instead of a boolean.
633 * remote.c (remote_get_trace_status): Initialize "filename"
634 field with NULL instead of 0.
635
796cb314
YQ
6362013-02-15 Yao Qi <yao@codesourcery.com>
637
638 * remote.c: Fix a typo.
639
42e79b1d
PM
6402013-02-14 Pierre Muller <muller@sourceware.org>
641
642 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
643
baea0dae
PA
6442013-02-14 Pedro Alves <palves@redhat.com>
645
646 * utils.c (savestring): Don't #undef it. Move function to
647 common/common-utils.c.
648 * common/common-utils.c: Include gdb_string.h.
649 (savestring): Move here from utils.c.
650 * common/common-utils.h (savestring): Declare.
651
57c3b6ed
PA
6522013-02-14 Pedro Alves <palves@redhat.com>
653
654 * utils.c (savestring): Rename parameter 'size' to 'len'.
655
d6c44983
YZ
6562013-02-14 Pedro Alves <palves@redhat.com>
657 Yufeng Zhang <yufeng.zhang@arm.com>
658
659 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
660 (aarch64_inferior_data, struct aarch64_inferior_data):
661 Delete.
662 (struct aarch64_process_info): New.
663 (aarch64_process_list): New global.
664 (aarch64_find_process_pid, aarch64_add_process)
665 (aarch64_process_info_get): New functions.
666 (aarch64_inferior_data_get): Delete.
667 (aarch64_process_info_get): New function.
668 (aarch64_forget_process): New function.
669 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
670 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
671 aarch64_get_debug_reg_state.
672 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
673 instead of linux_nat_iterate_watchpoint_lwps.
674 (aarch64_linux_new_fork): New function.
675 (aarch64_linux_child_post_startup_inferior): Use
676 aarch64_forget_process instead of aarch64_init_debug_reg_state.
677 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
678 (aarch64_linux_remove_hw_breakpoint)
679 (aarch64_handle_aligned_watchpoint)
680 (aarch64_handle_unaligned_watchpoint)
681 (aarch64_linux_insert_watchpoint)
682 (aarch64_linux_remove_watchpoint)
683 (aarch64_linux_stopped_data_address): Adjust to pass the current
684 process id to aarch64_debug_reg_state.
685 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
686 linux_nat_new_fork hook, and aarch64_forget_process as
687 linux_nat_forget_process hook; remove the call to
688 register_inferior_data_with_cleanup.
689
4819b3f8
PA
6902013-02-14 Pedro Alves <palves@redhat.com>
691
692 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
693 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
694 lval_memory.
695
1773c82c
HAQ
6962013-02-14 Pedro Alves <pedro@codesourcery.com>
697 Hafiz Abid Qadeer <abidh@codesourcery.com>
698
699 * tracepoint.h (validate_trace_state_variable_name): Declare.
700 * tracepoint.c (validate_trace_state_variable_name): New.
701 (trace_variable_command): Parse the trace state variable's name
702 without using parse_expression. Do several validations.
703 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
704 trace state variable's name with parse_expression. Validate it.
705
53778a97
YQ
7062013-02-14 Yao Qi <yao@codesourcery.com>
707
708 * infcmd.c (breakpoint_proceeded): Remove it.
709
7b3ae3a6
YQ
7102013-02-14 Yao Qi <yao@codesourcery.com>
711
712 * tracepoint.c (end_actions_pseudocommand): Make it static.
713 (while_stepping_pseudocommand): Likewise.
714 * tracepoint.h (end_actions_pseudocommand): Remove the
715 declaration.
716 (while_stepping_pseudocommand): Likewise.
717
64580925
YQ
7182013-02-14 Yao Qi <yao@codesourcery.com>
719
720 * cli/cli-decode.c (help_cmd): Remove the declaration of
721 "cmdlist".
722 (help_all): Likewise.
723
26cb8b7c
PA
7242013-02-13 Pedro Alves <palves@redhat.com>
725
726 * amd64-linux-nat.c (update_debug_registers_callback):
727 Update comment.
728 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
729 iterate_over_lwps.
730 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
731 i386_debug_reg_state.
732 (amd64_linux_new_fork): New function.
733 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
734 linux_nat_new_fork hook, and i386_forget_process as
735 linux_nat_forget_process hook.
736 * i386-linux-nat.c (update_debug_registers_callback):
737 Update comment.
a8256ea1 738 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
739 iterate_over_lwps.
740 (i386_linux_prepare_to_resume): Pass the lwp's pid to
741 i386_debug_reg_state.
742 (i386_linux_new_fork): New function.
743 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
744 linux_nat_new_fork hook, and i386_forget_process as
745 linux_nat_forget_process hook.
746 * i386-nat.c (i386_init_dregs): Delete.
747 (i386_inferior_data, struct i386_inferior_data):
748 Delete.
749 (struct i386_process_info): New.
750 (i386_process_list): New global.
751 (i386_find_process_pid, i386_add_process, i386_process_info_get):
752 New functions.
753 (i386_inferior_data_get): Delete.
754 (i386_process_info_get): New function.
755 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
756 (i386_forget_process): New function.
757 (i386_cleanup_dregs): Rewrite.
758 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
759 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
760 (i386_stopped_data_address, i386_insert_hw_breakpoint)
761 (i386_remove_hw_breakpoint): Adjust to pass the current process id
762 to i386_debug_reg_state.
763 (i386_use_watchpoints): Don't register inferior data.
764 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
765 adjust comment.
766 (i386_forget_process): Declare.
767 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
768 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
769 New static globals.
770 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
771 (add_initial_lwp): New, factored out from ...
772 (add_lwp): ... this. Don't check the number of lwps before
773 calling linux_nat_new_thread.
774 (linux_nat_iterate_watchpoint_lwps): Delete.
775 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
776 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
777 forks and vforks.
778 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
779 initial lwp.
780 (linux_nat_kill, linux_nat_mourn_inferior): Call
781 linux_nat_forget_process.
782 (linux_nat_set_new_fork, linux_nat_set_forget_process)
783 (linux_nat_forget_process): New functions.
784 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
785 type.
786 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
787 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
788 types.
789 (linux_nat_set_new_fork, linux_nat_set_forget_process)
790 (linux_nat_forget_process): New declarations.
791
792 * amd64fbsd-nat.c (super_mourn_inferior): New global.
793 (amd64fbsd_mourn_inferior): New function.
794 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
795 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
796
5befea72
MS
7972013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
798
55015247
YQ
799 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
800 Adding _().
5befea72 801
1d3ffd6b
MS
8022013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
803
804 * aarch64-linux-nat.c (debug_reg_change_callback)
805 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
806 %s and phex().
807
6eb04473
MS
8082013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
809
810 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
811 with LONGEST.
812
a016fc87
HAQ
8132013-02-13 Pedro Alves <palves@redhat.com>
814 Hafiz Abid Qadeer <abidh@codesourcery.com>
815
816 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
817
e234dfaf
TT
8182013-02-12 Tom Tromey <tromey@redhat.com>
819
820 PR symtab/11464:
821 * c-exp.y (lex_one_token): Initialize other fields of yylval on
822 NAME return.
823 (classify_inner_name): Remove 'first_name' argument, add
824 'context'. Remove unused variable.
825 (yylex): Explicitly maintain the context type. Exit loop earlier
826 if NAME result is seen.
827
0b1afbb3
PA
8282013-02-12 Pedro Alves <palves@redhat.com>
829
830 * amd64-darwin-tdep.c: Add (C) after Copyright.
831 * cli/cli-cmds.h: Ditto.
832 * cli/cli-decode.c: Ditto.
833 * cli/cli-decode.h: Ditto.
834 * cli/cli-dump.c: Ditto.
835 * cli/cli-dump.h: Ditto.
836 * cli/cli-interp.c: Ditto.
837 * cli/cli-logging.c: Ditto.
838 * cli/cli-script.c: Ditto.
839 * cli/cli-script.h: Ditto.
840 * cli/cli-setshow.c: Ditto.
841 * cli/cli-setshow.h: Ditto.
842 * cli/cli-utils.c: Ditto.
843 * cli/cli-utils.h: Ditto.
844 * config/alpha/nm-osf3.h: Ditto.
845 * config/djgpp/djconfig.sh: Ditto.
846 * config/i386/nm-fbsd.h: Ditto.
847 * config/i386/nm-i386gnu.h: Ditto.
848 * config/nm-linux.h: Ditto.
849 * config/nm-nto.h: Ditto.
850 * config/rs6000/nm-rs6000.h: Ditto.
851 * config/sparc/nm-sol2.h: Ditto.
852 * darwin-nat-info.c: Ditto.
853 * dfp.c: Ditto.
854 * dfp.h: Ditto.
855 * gdb-demangle.h: Ditto.
856 * i386-darwin-nat.c: Ditto.
857 * i386-darwin-tdep.c: Ditto.
858 * linux-fork.h: Ditto.
859 * m32c-tdep.c: Ditto.
860 * microblaze-linux-tdep.c: Ditto.
861 * microblaze-rom.c: Ditto.
862 * microblaze-tdep.c: Ditto.
863 * microblaze-tdep.h: Ditto.
864 * mips-linux-tdep.h: Ditto.
865 * ppc-ravenscar-thread.c: Ditto.
866 * ppc-ravenscar-thread.h: Ditto.
867 * prologue-value.c: Ditto.
868 * prologue-value.h: Ditto.
869 * ravenscar-thread.c: Ditto.
870 * ravenscar-thread.h: Ditto.
871 * sparc-ravenscar-thread.c: Ditto.
872 * sparc-ravenscar-thread.h: Ditto.
873 * tilegx-linux-tdep.c: Ditto.
874 * unwind_stop_reasons.def: Ditto.
875 * windows-nat.h: Ditto.
876 * xtensa-linux-tdep.c: Ditto.
877 * xtensa-xtregs.c: Ditto.
878 * regformats/regdat.sh: Ditto.
879 * regformats/regdef.h: Ditto.
880
6c01dd94
PA
8812013-02-12 Pedro Alves <palves@redhat.com>
882
883 * break-catch-sig.c: Update copyright years.
884
b65a2bd9
SCR
8852013-02-11 Siva Chandra Reddy <sivachandra@google.com>
886
887 Add support for a destructor for ui_out data and use it to
888 provide a ui_out destructor.
889 * ui-out.h: Declare the new ui_out destructor.
890 (ui_out_impl): Add a field for data destructor in ui_out_impl.
891 * ui-out.c (default_data_destroy): Add a default data destructor
892 which does nothing.
893 (default_ui_out_impl): Set the new data_destroy field to
894 default_data_destroy
895 (uo_data_destroy): Local function which invokes the data
896 destructor if present.
897 (clear_table): Local function which clears the table data of a
898 ui_out object.
899 (ui_out_destroy): Public function which frees a ui_out object.
900 (ui_out_table_end): Use the new clear_table function.
901 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
902 NULL.
903 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
904 to NULL.
905
c2792f5a
DE
9062013-02-11 Doug Evans <dje@google.com>
907
908 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
909 (printf_decfloat): New function. Broken out from ui_printf.
910 Remove unnecessary code to shift the entire format string down.
911 (printf_pointer): New function.
912 (ui_printf): Code to print C strings, wide C strings, decfloats,
913 and pointers moved to separate functions.
914
d9e98382
SDJ
9152013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
916
917 * valops.c (value_assign): Handling bitfield offset in
918 `lval_internalvar_component' case.
919
4ff3ce77
DE
9202013-02-08 Doug Evans <dje@google.com>
921
922 * common/format.c (parse_format_string): Fix whitespace.
923
901900c4
MGD
9242013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
925
926 * stack.c (return_command): Work around uninitialized variable
927 warning.
928
b5dbc8d4
YZ
9292013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
930
931 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
932 number of the registers from 36 to 34.
933
51d66578
MS
9342013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
935
936 * NEWS: Mention new AArch64 native and target support.
937
176b1c95
MS
9382013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
939
940 * MAINTAINERS (Write After Approval): Add myself.
941
9d19df75
MS
9422013-02-08 Jim MacArthur <jim.macarthur@arm.com>
943 Marcus Shawcroft <marcus.shawcroft@arm.com>
944 Nigel Stephens <nigel.stephens@arm.com>
945 Yufeng Zhang <yufeng.zhang@arm.com>
946
947 * aarch64-linux-nat.c: New file.
948 * config/aarch64/linux.mh: New file.
949 * configure.host: Add AArch64.
950 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
951
7e1e0340
DE
9522013-02-07 Doug Evans <dje@google.com>
953
954 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
955 disassemble command.
956
45e25a36
MS
9572013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
958
959 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
960 set_gdbarch_fetch_tls_load_module_address.
961
bbfdfe1c
DM
9622013-02-06 David S. Miller <davem@davemloft.net>
963
964 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
965 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
966 * value.c (struct_return_convention): New function.
967 (using_struct_return): Implement in terms of struct_return_convention.
968 * value.h (struct_return_convention): Declare.
969 * stack.c (return_command): Allow successful overriding of the return
970 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
971
bc9abe4a
TT
9722013-02-06 Tom Tromey <tromey@redhat.com>
973
974 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
975 outside of TRY_CATCH.
976
134a2066
YQ
9772013-02-06 Yao Qi <yao@codesourcery.com>
978
979 * mi/mi-interp.c: Include "tracepoint.h".
980 (mi_tsv_modified): Declare.
981 (mi_tsv_created, mi_tsv_deleted): Update declaration.
982 (mi_interpreter_init): Call observer_attach_tsv_modified.
983 (mi_tsv_modified): New.
984 (mi_tsv_created, mi_tsv_deleted): Update.
985 * tracepoint.c (trace_variable_command): Call
986 observer_notify_tsv_modified if the initial value of tsv is
987 changed.
988 (delete_trace_state_variable): Call
989 observer_notify_tsv_deleted earlier.
990 (trace_variable_command): Caller update.
991 (create_tsv_from_upload): Likewise.
992 * observer.sh: Declare "struct trace_state_variable".
993
994 * NEWS: Mention the new MI notification "=tsv-modified".
995
59be2b6a
DE
9962013-02-05 Doug Evans <dje@google.com>
997
998 * completer.c (location_completer): Fix typo in comment.
999
d30113d4
JK
10002013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1001
1002 * breakpoint.c (add_location_to_breakpoint): Insert the location with
1003 ADDRESS sorted.
1004
14ac654f
MS
10052013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
1006
1007 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
1008 Refactor if statement to avoid trailing || operator.
1009
543bf33d
AT
10102013-02-05 Andreas Tobler <andreast@fgznet.ch>
1011
1012 * NEWS: Add PowerPC FreeBSD as a new native configuration.
1013
dc18f110
AT
10142013-02-04 Andreas Tobler <andreast@fgznet.ch>
1015
1016 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
1017 * configure.host: Add powerpc*-*-freebsd* target.
1018 * configure.tgt: Add target info for powerpc*-*-freebsd*.
1019 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
1020 * config/powerpc/fbsd.mh: New file.
1021
b3ac9c77
SDJ
10222013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
1023 Denys Vlasenko <dvlasenk@redhat.com>
1024 Pedro Alves <palves@redhat.com>
1025
1026 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
1027 (struct elf_internal_linux_prpsinfo): Forward declare.
1028 * gdbarch.h, gdbarch.c: Regenerate.
1029 * linux-tdep.c: Include `cli/cli-utils.h'.
1030 (linux_fill_prpsinfo): New function.
1031 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
1032 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
1033 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
1034 depending on gdbarch pointer bitness.
1035 * ppc-linux-tdep.c: Include elf-bfd.h.
1036 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
1037 on 32-bit.
1038
176eb98c
MS
10392013-02-04 Jim MacArthur <jim.macarthur@arm.com>
1040 Marcus Shawcroft <marcus.shawcroft@arm.com>
1041 Nigel Stephens <nigel.stephens@arm.com>
1042 Yufeng Zhang <yufeng.zhang@arm.com>
1043
1044 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
1045
cf0dbd6f
MS
10462013-02-04 Jim MacArthur <jim.macarthur@arm.com>
1047 Marcus Shawcroft <marcus.shawcroft@arm.com>
1048 Nigel Stephens <nigel.stephens@arm.com>
1049 Yufeng Zhang <yufeng.zhang@arm.com>
1050
1051 * aarch64-newlib-tdep.c: New file.
1052 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
1053 aarch64*-*-elf.
1054 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
1055 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
1056 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
1057 * osabi.c (gdb_osabi_names): Add "Newlib".
1058
1ae3db19
MS
10592013-02-04 Jim MacArthur <jim.macarthur@arm.com>
1060 Marcus Shawcroft <marcus.shawcroft@arm.com>
1061 Nigel Stephens <nigel.stephens@arm.com>
1062 Yufeng Zhang <yufeng.zhang@arm.com>
1063
1064 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
1065 (ALLDEPFILES): Add aarch64-linux-tdep.c.
1066 * aarch64-linux-tdep.c: New file.
1067 * aarch64-linux-tdep.h: New file.
1068 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
1069 * configure.tgt: Add aarch64-none-linux-gnu.
1070
07b287a0
MS
10712013-02-04 Jim MacArthur <jim.macarthur@arm.com>
1072 Marcus Shawcroft <marcus.shawcroft@arm.com>
1073 Nigel Stephens <nigel.stephens@arm.com>
1074 Yufeng Zhang <yufeng.zhang@arm.com>
1075
1076 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
1077 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
1078 (ALLDEPFILES): Add aarch64-tdep.c.
1079 * aarch64-tdep.c: New file.
1080 * aarch64-tdep.h: New file.
1081 * configure.tgt: Add AArch64.
1082 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
1083 (aarch64-expedite): New definition.
1084 * features/aarch64-core.xml: New file.
1085 * features/aarch64-fpu.xml: New file.
1086 * features/aarch64-without-fpu.c: New file (generated).
1087 * features/aarch64-without-fpu.xml: New file.
1088 * features/aarch64.c: New file (generated).
1089 * features/aarch64.xml: New file.
1090 * regformats/aarch64-without-fpu.dat: New file (generated).
1091 * regformats/aarch64.dat: New file (generated).
1092
0f1b18ab
JK
10932013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1094
1095 * contrib/expect-read1.c: New file.
1096 * contrib/expect-read1.sh: New file.
1097
233d95b5
JK
10982013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1099
1100 * dwarf2read.c (file_file_name): New function with code from
1101 file_full_name.
1102 (file_full_name): Move most of the code to file_file_name.
1103 (macro_start_file): Rename variable full_name to file_name and use
1104 file_file_name for it. Add comp_dir parameter to new_macro_table.
1105 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
1106 macro_source_file->filename access by macro_source_fullname call.
1107 * macroscope.c (_initialize_macroscope): Update the new_macro_table
1108 caller.
1109 * macrotab.c (struct macro_table): New field comp_dir.
1110 (macro_include): New variables link_fullname and source_fullname.
1111 Replace any macro_source_file->filename access by macro_source_fullname
1112 call.
1113 (macro_lookup_inclusion): Remove the partial filenames checking code.
1114 (check_for_redefinition): New variables source_fullname and
1115 found_key_fullname. Replace any macro_source_file->filename access by
1116 macro_source_fullname call.
1117 (macro_undef): New variables source_fullname and key_fullname. Replace
1118 any macro_source_file->filename access by macro_source_fullname call.
1119 (macro_lookup_definition): New variables retval and source_fullname.
1120 Replace any macro_source_file->filename access by macro_source_fullname
1121 call.
1122 (foreach_macro): New variable key_fullname. Replace any
1123 macro_source_file->filename access by macro_source_fullname call.
1124 (foreach_macro_in_scope): New variable datum_fullname. Replace any
1125 macro_source_file->filename access by macro_source_fullname call.
1126 (new_macro_table): Add parameter comp_dir. Initialize T with it.
1127 (macro_source_fullname): New function.
1128 * macrotab.h (struct macro_source_file): Extent the filename field
1129 comment.
1130 (new_macro_table): New parameter comp_dir, add a comment for it.
1131 (macro_source_fullname): new declaration.
1132
da235a7c
JK
11332013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1134
1135 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
1136 this_real_name to outer block. Use it also for
1137 compare_filenames_for_search.
1138 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
1139 with dw2_get_real_path for file_matcher, considering also
1140 BASENAMES_MAY_DIFFER.
1141 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
1142
fbd9ab74
JK
11432013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1144
1145 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
1146 to the file_matcher parameter. Pass 0 to it.
1147 (dwarf2_create_include_psymtab): Copy also DIRNAME.
1148 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
1149 NULL psymtab_to_fullname result.
1150 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
1151 an expected filename instead.
1152 (expand_symtabs_matching_via_partial): Add basenames parameter to the
1153 file_matcher parameter. Call also psymtab_to_fullname, after newly
1154 considering BASENAMES_MAY_DIFFER.
1155 * source.c (rewrite_source_path): Remove static.
1156 * source.h (rewrite_source_path): New declaration.
1157 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
1158 the expand_symtabs_matching field. Comment it.
1159 * symtab.c (file_matches): New function comment. Add parameter
1160 basenames, implement it.
1161 (search_symbols_file_matches): Add basenames parameter. Update the
1162 file_matches caller.
1163 (search_symbols): Match FILES also against symtab_to_fullname.
1164 Optimize it for BASENAMES_MAY_DIFFER.
1165
56d397a3
JK
11662013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1167
1168 * source.c (print_source_lines_base): Print for TUI also "fullname".
1169 * tui/tui-data.c (init_content_element): Change tui_locator_element
1170 field to full_name.
1171 * tui/tui-data.h (struct tui_locator_element): Likewise.
1172 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
1173 tui_update_locator_filename calls to tui_update_locator_fullname.
1174 Replace symtab->filename refererence by symtab_to_fullname call.
1175 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
1176 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
1177 field to full_name. Replace symtab->filename refererence by
1178 symtab_to_fullname call.
1179 (tui_show_symtab_source): Rename parameter to fullname. Change
1180 tui_locator_element field to full_name.
1181 * tui/tui-stack.c: Include source.h.
1182 (tui_set_locator_filename): Rename the declaration to ...
1183 (tui_set_locator_fullname): ... here. Rename its parameter to
1184 fullname, updates its comment.
1185 (tui_set_locator_info): Rename its parameter to fullname.
1186 (tui_set_locator_filename): Rename the definition to ...
1187 (tui_set_locator_fullname): ... here. Rename its parameter to
1188 fullname, updates its comment. Change tui_locator_element field to
1189 full_name.
1190 (tui_set_locator_info): Rename its parameter to fullname.
1191 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
1192 (tui_update_locator_filename): Rename to ...
1193 (tui_update_locator_fullname): ... here. Rename callee to
1194 tui_set_locator_fullname.
1195 (tui_show_frame_info): Replace symtab->filename refererence by
1196 symtab_to_fullname call.
1197 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
1198 (tui_update_locator_fullname): ... here.
1199 * tui/tui-winsource.c (tui_display_main): Rename the callee to
1200 tui_update_locator_fullname. Replace symtab->filename refererence by
1201 symtab_to_fullname call.
1202 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
1203 Rename the callee to tui_update_locator_fullname.
1204 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
1205
05cba821
JK
12062013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1207
1208 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
1209 by symtab_to_filename_for_display calls.
1210 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
1211 (clear_command): New variable sal_fullname, initialize it. Replace
1212 compare_filenames_for_search by filename_cmp with sal_fullname.
1213 (say_where, update_static_tracepoint): Replace symtab->filename
1214 refererences by symtab_to_filename_for_display calls.
1215 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
1216 Likewise.
1217 * dwarf2read.c: Include source.h.
1218 (fixup_go_packaging): Replace symtab->filename refererences by
1219 symtab_to_filename_for_display calls.
1220 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
1221 Replace symtab->filename refererences by symtab_to_filename_for_display
1222 calls.
1223 (create_sals_line_offset, convert_linespec_to_sals): New variable
1224 fullname, initialize it, replace symtab->filename reference by the
1225 variable.
1226 * linux-fork.c: Include source.h.
1227 (info_checkpoints_command): Replace symtab->filename refererences by
1228 symtab_to_filename_for_display calls.
1229 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
1230 by symtab_to_filename_for_display calls.
1231 * mdebugread.c: Include source.h.
1232 (psymtab_to_symtab_1): Replace symtab->filename refererences by
1233 symtab_to_filename_for_display calls.
1234 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
1235 (mi_cmd_file_list_exec_source_files): Likewise.
1236 * printcmd.c: Include source.h.
1237 (build_address_symbolic): Replace symtab->filename refererences by
1238 symtab_to_filename_for_display calls.
1239 * psymtab.c (partial_map_symtabs_matching_filename)
1240 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
1241 with psymtab_to_fullname.
1242 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
1243 by symtab_to_filename_for_display calls.
1244 (stpy_get_filename): New variable filename, initialize it, use instead
1245 of symtab->filename refererences.
1246 (salpy_str): Make variable filename const char *. Replace
1247 symtab->filename refererences by symtab_to_filename_for_display calls.
1248 * skip.c: Include source.h and filenames.h.
1249 (skip_file_command): Remove const from the symtab variable. Replace
1250 symtab->filename refererences by symtab_to_fullname call.
1251 (function_name_is_marked_for_skip): New variables searched_for_fullname
1252 and fullname. Use them to search also with symtab's fullname.
1253 * source.c (find_source_lines): Replace symtab->filename refererences
1254 by symtab_to_filename_for_display calls.
1255 (print_source_lines_base): New variable filename, use it instead of
1256 symtab->filename. Replace symtab->filename refererences by
1257 symtab_to_filename_for_display calls.
1258 (line_info, forward_search_command): Replace symtab->filename
1259 refererences by symtab_to_filename_for_display calls.
1260 (reverse_search_command): Replace symtab->filename refererences by
1261 symtab_to_filename_for_display calls. New variable filename for it.
1262 * stack.c (frame_info): Likewise.
1263 * symmisc.c: Include source.h.
1264 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
1265 (maintenance_info_symtabs): Replace symtab->filename refererences by
1266 symtab_to_filename_for_display calls.
1267 * symtab.c (iterate_over_some_symtabs): Call
1268 compare_filenames_for_search also with symtab_to_fullname.
1269 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
1270 symtab->filename refererences by symtab_to_filename_for_display calls.
1271 (find_line_symtab): Replace symtab->filename refererences by
1272 symtab_to_filename_for_display calls.
1273 (file_matches): Replace filename_cmp by compare_filenames_for_search.
1274 (print_symbol_info): Make the last parameter const char *. New
1275 variable s_filename. Use it in the function.
1276 (symtab_symbol_info): Make the last_filename variable const char *.
1277 Replace symtab->filename refererences by symtab_to_filename_for_display
1278 calls.
1279 (rbreak_command): New variable fullname. Use it. Replace
1280 symtab->filename refererence by symtab_to_filename_for_display call.
1281 * tracepoint.c (set_traceframe_context, trace_find_line_command)
1282 (print_one_static_tracepoint_marker): Replace symtab->filename
1283 refererences by symtab_to_filename_for_display calls.
1284 * tui/tui-source.c (tui_set_source_content): New variables filename and
1285 s_filename. Replace symtab->filename refererences by this variable.
1286 Replace other symtab->filename refererences by
1287 symtab_to_filename_for_display calls.
1288
1b56eb55
JK
12892013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
1290 Jan Kratochvil <jan.kratochvil@redhat.com>
1291
1292 Add a new variable that controls a way in which filenames are
1293 displayed.
1294 * NEWS (set filename-display): New entry.
1295 * source.c (filename_display_basename, filename_display_relative)
1296 (filename_display_absolute, filename_display_kind_names)
1297 (filename_display_string, show_filename_display_string)
1298 (symtab_to_filename_for_display): New.
1299 (_initialize_source): Added initialization of 'filename-display'
1300 variable.
1301 * source.h (symtab_to_filename_for_display): Added declaration.
1302 * stack.c (print_frame): Added new variable and calling of a new
1303 function and condition with this variable. Changed third argument of
1304 calling of a function.
1305
aa079c93
JK
13062013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1307
1308 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
1309 Rename field reference filename to fullname.
1310 * tui/tui-data.h (struct tui_source_info): Rename field filename to
1311 fullname. New comment for it.
1312 * tui/tui-source.c (tui_set_source_content): Rename field reference
1313 filename to fullname. Initialize field by symtab_to_fullname now.
1314 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
1315 reference filename to fullname. Use symtab_to_fullname during
1316 comparison.
1317
652a8996
JK
13182013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1319
1320 Code cleanup.
1321 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
1322 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
1323 filename to fullname. Rename variable this_name to this_fullname.
1324 Lowercase FILENAME_CMP call.
1325 (dw2_find_symbol_file): New comment for the returned string.
1326 (dwarf2_gdb_index_functions): Rename the function to
1327 dw2_expand_symtabs_with_fullname.
1328 * psymtab.c (read_psymtabs_with_filename): Rename to ...
1329 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
1330 fullname.
1331 (psym_functions): Rename the function to read_psymtabs_with_fullname.
1332 * symfile.h (struct quick_symbol_functions): Rename field
1333 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
1334 parameter filename to fullname. Document returned string meaning for
1335 find_symbol_file.
1336 * symtab.c (find_line_symtab): Rename the called function to
1337 expand_symtabs_with_fullname.
1338
af529f8f
JK
13392013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1340
1341 Code cleanup.
1342 * breakpoint.c (clear_command): Remove variable is_abs, unify the
1343 call of filename_cmp with compare_filenames_for_search.
1344 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
1345 is_abs, unify the call of FILENAME_CMP with
1346 compare_filenames_for_search. New gdb_asserts for real_path and name.
1347 Unify the call of compare_filenames_for_search with FILENAME_CMP.
1348 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
1349 * symfile.h (struct quick_symbol_functions): Extend the comment for
1350 map_symtabs_matching_filename.
1351 * symtab.c (compare_filenames_for_search): Remove the function comment
1352 relative path requirement. Handle absolute filenames, with a comment.
1353 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
1354 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
1355 real_path and name. Unify the call of compare_filenames_for_search
1356 with FILENAME_CMP.
1357 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
1358
2f202fde
JK
13592013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1360
1361 Code cleanup.
1362 * breakpoint.c (print_breakpoint_location): Replace bp_location field
1363 source_file references by symtab field references. Remove variables
1364 sal and fullname.
1365 (momentary_breakpoint_from_master, add_location_to_breakpoint):
1366 (clear_command, say_where): Replace bp_location field source_file
1367 references by symtab field references.
1368 (bp_location_dtor): Remove the source_file reference.
1369 (update_static_tracepoint): Replace bp_location field source_file
1370 references by symtab field references.
1371 (breakpoint_free_objfile): New function.
1372 * breakpoint.h (struct bp_location): Extend the comment for line_number.
1373 Replace the field source_file by field symtab, extend its comment.
1374 (breakpoint_free_objfile): New declaration.
1375 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
1376 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
1377 field source_file references by symtab field references.
1378
f5b95b50
JK
13792013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1380
1381 Replace xfullpath calls by gdb_realpath calls.
1382 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
1383 function comment.
1384 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
1385 Remove it from the iterate_over_some_symtabs call.
1386 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
1387 Remove it from the dw2_map_expand_apply calls, remove a block handling
1388 it.
1389 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
1390 Remove it from the iterate_over_some_symtabs call.
1391 (partial_map_symtabs_matching_filename): Remove parameter full_path.
1392 Remove it from the partial_map_expand_apply calls, remove a block
1393 handling it. Drop gdb_realpath call and cleanups from the real_path
1394 handling.
1395 * source.c (openp): Drop the comment part about xfullpath. Replace
1396 xfullpath calls by gdb_realpath calls.
1397 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
1398 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
1399 from method map_symtabs_matching_filename and its comment.
1400 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
1401 gdb_realpath call.
1402 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
1403 remove it also from the function comment, remove a block handling it.
1404 Drop gdb_realpath call and cleanups from the real_path handling.
1405 (iterate_over_symtabs): Drop variable full_path and its use.
1406 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
1407 * utils.c (xfullpath): Remove.
1408 * utils.h (xfullpath): Remove.
1409
d78489bf
AT
14102013-02-01 Andreas Tobler <andreast@fgznet.ch>
1411
1412 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
1413 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
1414 (ALLDEPFILES): Add ppc64-tdep.c.
1415 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
1416 ppc64-tdep.o to gdb_target_obs.
1417 * ppc64-tdep.h: New file.
1418 * ppc64-tdep.c: New file.
1419 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
1420 ppc-linux-tdep.c to here.
1421 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
1422 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
1423 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
1424 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
1425 from ppc-linux-tdep.c to here.
1426 (ppc64_convert_from_func_ptr_addr): Rename from
1427 ppc64_linux_convert_from_func_ptr_addr to
1428 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
1429 here.
1430 * rs6000-tdep.c:
1431 (read_insn): Move from ppc-linux-tdep.c to here.
1432 (insns_match_pattern, insn_d_field, insn_ds_field): Move
1433 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
1434 * ppc-linux-tdep.c: Include ppc64-tdep.h.
1435 Removed above functions.
1436 (ppc_linux_init_abi): Adjust.
1437
8db60374
AR
14382013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
1439
1440 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
1441
f2e5f4ce
AR
14422013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
1443
1444 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
1445
c1f7d745
PA
14462013-02-01 Pedro Alves <palves@redhat.com>
1447
1448 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
1449 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
1450
8a92335b
JK
14512013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1452
1453 * elfread.c (elf_symfile_read): Limit separate debug info additions to
1454 files with no separate debug info.
1455 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
1456 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
1457 only for files with no separate debug info.
1458
8eacb197
TT
14592013-01-31 Tom Tromey <tromey@redhat.com>
1460
1461 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
1462 change type.
1463 (struct jit_program_space_data): Rename from jit_inferior_data.
1464 Update comments.
1465 (get_jit_program_space_data): Rename from get_jit_inferior_data.
1466 Change return type. Attach data to program space.
1467 (jit_program_space_data_cleanup): Rename from
1468 jit_inferior_data_cleanup; change argument type.
1469 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
1470 change type.
1471 (jit_register_code): Update.
1472 (jit_update_inferior_cache): Remove.
1473 (jit_breakpoint_deleted): Get jit data from the location's program
1474 space.
1475 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
1476 'ps_data', change type.
1477 (jit_inferior_init, jit_breakpoint_re_set_internal)
1478 (jit_event_handler): Update.
1479 (free_objfile_data): Get data from objfile's program space.
1480 (_initialize_jit): Update.
1481
f25c0135
TT
14822013-01-31 Tom Tromey <tromey@redhat.com>
1483
1484 PR gdb/13987:
1485 * jit.c (struct jit_inferior_data) <cached_code_address,
1486 jit_breakpoint>: New fields.
1487 (jit_breakpoint_re_set_internal): Fix logging. Only create
1488 breakpoint if cached address has changed.
1489 (jit_update_inferior_cache, jit_breakpoint_deleted): New
1490 functions.
1491 (_initialize_jit): Register breakpoint deleted observer.
1492
974a734b
AR
14932013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1494
1495 * infrun.c (handle_syscall_event): Remove unused gdbarch.
1496 (save_infcall_suspend_state): Ifdef out unused inf.
1497 (restore_infcall_suspend_state): Ifdef out unused inf.
1498 * jit.c (jit_register_code): Remove unused i, b, inf_data.
1499 (jit_frame_sniffer): Remove unused inf_data.
1500
df54f8eb
AR
15012013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1502
1503 * c-exp.y (classify_inner_name): Remove unused type.
1504 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
1505 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
1506 need_escape.
1507 (c_get_string): Remove unused kind.
1508 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
1509
5799c0b9
AR
15102013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1511
1512 * charset.c (intermediate_encoding): Remove unused i.
1513 * completer.c (signal_completer): Remove unused i.
1514 * continuations.c (discard_my_continuations_1): Remove unused
1515 continuation_ptr.
1516 * corelow.c (core_close): Remove unuseD name.
1517 (get_core_siginfo): Remove unused pid.
1518 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
1519 i, cps.
1520 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
1521 (loclist_describe_location): Remove unused first.
1522 * event-top.c (command_line_handler): Remove unused got_eof.
1523 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
1524 (resize_section_table): Remove unused old_value.
1525 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
1526 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
1527 * i386-tdep.c (i386_process_record): Remove unused rex.
1528 * infcmd.c (get_return_value): Remove unused uiout.
1529 * jv-lang.c (type_from_class): Remove unused is_array.
1530 * jv-valprint.c (java_val_print): Remove unused i.
1531 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
1532 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
1533 * m2-typeprint.c (m2_print_type): Remove unused code.
1534 * macroexp.c (get_character_constant): Remove unused body_start.
1535 (macro_stringify): Remove unused result.
1536 * objc-lang.c (find_methods): Remove unused gdbarch.
1537 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
1538 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
1539 * stack.c (print_frame_args): Remove unused summary.
1540 * thread.c (thread_apply_command): Remove unused p.
1541 * valarith.c (value_x_unop): Remove unused mangle_ptr.
1542 * valops.c (search_struct_method): Remove unused skip.
1543 * valprint.c (generic_val_print): Remove unused byte_order.
1544 * varobj.c (varobj_update): Remove unused changed.
1545 * cli/cli-cmds.c (complete_command): Remove unused next_item.
1546 (alias_command): Remove unused c.
1547 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
1548 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
1549 format.
1550 (mi_cmd_data_write_memory): Remove unused word_format.
1551 (mi_cmd_data_write_memory_bytes): Remove unused r.
1552 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
1553 p_start, p_end.
1554 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
1555 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
1556 line_width.
1557
c656bca5
AR
15582013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1559
1560 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
1561 * symtab.c (iterate_over_symtabs): Remove unused s.
1562 (find_pc_sect_symtab): Remove unused pspAce.
1563 (find_pc_sect_line): Remove unused alt_symtab.
1564 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
1565 (completion_list_add_name): Remove unused newsize.
1566
7078baeb
TT
15672013-01-31 Tom Tromey <tromey@redhat.com>
1568
1569 PR c++/14998:
1570 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
1571 TYPE_CODE_FUNC.
1572
c2e8b827
AR
15732013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1574
1575 * target.c (target_read_string): Remove unused origlen.
1576
0e43993a
AR
15772013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1578
1579 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
1580 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
1581 * ax-general.c (ax_print): Remove unused is_float.
1582 * blockframe.c (block_innermost_frame): Remove unused start, end.
1583 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
1584
765a97ab
AR
15852013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1586
1587 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
1588 (svr4_read_so_list): Remove unused lmo.
1589 * solib-target.c (solib_target_relocate_section_addresses): Remove
1590 unused flags.
1591
a99dad3d
TT
15922013-01-30 Tom Tromey <tromey@redhat.com>
1593
1594 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
1595
3bff1ecd
TT
15962013-01-30 Tom Tromey <tromey@redhat.com>
1597
1598 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
1599 * utils.c (gnu_debuglink_crc32): Remove.
1600 * utils.h (gnu_debuglink_crc32): Don't declare.
1601
7d455152
TT
16022013-01-30 Tom Tromey <tromey@redhat.com>
1603
1604 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
1605 (read_structure_type, read_enumeration_type): Remove cast.
1606
abee88f2
TT
16072013-01-30 Tom Tromey <tromey@redhat.com>
1608
1609 * dwarf2read.c (read_namespace_type): Remove cast.
1610 (read_typedef): Likewise.
1611
8d9878a4
TT
16122013-01-29 Tom Tromey <tromey@redhat.com>
1613
1614 * dwarf2read.c (free_dwo_file): Remove assert.
1615
a543d2a9
TT
16162013-01-29 Tom Tromey <tromey@redhat.com>
1617
1618 * value.c (deprecated_set_value_modifiable): Remove.
1619 * value.h (deprecated_set_value_modifiable): Remove.
1620
bed911e5
DE
16212013-01-28 Doug Evans <dje@google.com>
1622
1623 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
1624 to addresses from dwo files.
1625
28c64fc2
SCR
16262013-01-25 Siva Chandra Reddy <sivachandra@google.com>
1627
1628 * valops.c (find_overload_match): Remove unused argument 'lax'.
1629 * value.h: Remove unused argument 'lax' from the declaration of
1630 find_overload_match.
1631 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
1632 to find_overload_match.
1633 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
1634 argument to find_overload_match.
1635
4d4ec4e5
TT
16362013-01-25 Tom Tromey <tromey@redhat.com>
1637
1638 * dwarf2read.c (processing_has_namespace_info): Remove.
1639 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
1640 (process_die, read_func_scope, dwarf2_start_symtab)
1641 (new_symbol_full): Update.
1642
195a3f6c
TT
16432013-01-25 Tom Tromey <tromey@redhat.com>
1644
1645 * cp-namespace.c (cp_set_block_scope): Remove.
1646 * cp-support.h (cp_set_block_scope): Remove.
1647 * dbxread.c: Include block.h.
1648 (cp_set_block_scope): New function.
1649 (process_one_symbol): Update.
1650 * dwarf2read.c (read_func_scope): Use block_set_scope.
1651
8ba0730a
PA
16522013-01-25 Pedro Alves <palves@redhat.com>
1653
1654 * remote.c (add_current_inferior_and_thread): Tweak comment.
1655
12aaed36
TT
16562013-01-25 Tom Tromey <tromey@redhat.com>
1657
1658 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1659 (cp_add_using_directive): Add 'copy_names' argument.
1660 * cp-support.h (cp_add_using_directive): Update.
1661 (struct using_direct) <import_src, import_dest, alias,
1662 declaration>: Now const.
1663 * dwarf2read.c (read_import_statement): Use obconcat.
1664 Don't copy names passed to cp_add_using_directive.
1665
7fc75ca7
TT
16662013-01-25 Tom Tromey <tromey@redhat.com>
1667
1668 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
1669
3405876a
PA
16702013-01-25 Pedro Alves <palves@redhat.com>
1671
1672 * remote.c (stop_reply_extract_thread): New.
1673 (add_current_inferior_and_thread): New parameter 'wait_status'.
1674 Handle it.
1675 (remote_start_remote): Pass wait status to
1676 add_current_inferior_and_thread.
1677 (extended_remote_run): Update comment.
1678 (extended_remote_create_inferior_1): Pass wait status to
1679 add_current_inferior_and_thread.
1680
8954db33
AB
16812013-01-25 Andrew Burgess <aburgess@broadcom.com>
1682 Ulrich Weigand <uweigand@de.ibm.com>
1683
1684 * valarith.c (value_vector_widen): New function for replicating a
1685 scalar into a vector.
1686 (value_binop): Use value_vector_widen to widen scalar to vector
1687 rather than casting, this better matches gcc C behaviour.
1688 * valops.c (value_casst): Update logic for casting between vector
1689 types, and for casting from scalar to vector, try to match gcc C
1690 behaviour.
1691 * value.h (value_vector_widen): Declare.
1692 * opencl-lang.c (opencl_value_cast): New opencl specific casting
1693 function, handle special case for casting scalar to vector.
1694 (opencl_relop): Use opencl_value_cast.
1695 (evaluate_subexp_opencl): Use opencl_value_cast instead of
1696 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
1697 in order to use opencl_value_cast.
1698
843b20dc
YQ
16992013-01-25 Yao Qi <yao@codesourcery.com>
1700
1701 * event-loop.c: Include "queue.h".
1702 (gdb_event_p): New typedef.
1703 (DECLARE_QUEUE_P): Use.
1704 (DEFINE_QUEUE_P): Use.
1705 (async_queue_event): Remove.
1706 (gdb_event_xfree): New.
1707 (initialize_event_loop): New.
1708 (process_event): Use QUEUE macros.
1709 (event_queue): Remove.
1710 (gdb_wait_for_event): Caller update.
1711 (check_async_event_handlers): Likewise.
1712 (poll_timers): Likewise.
1713 * event-loop.h (initialize_event_loop): Declare.
1714 * event-loop.c (gdb_event_xfree): New.
1715 * top.c (gdb_init): Call initialize_event_loop.
1716
20ad8856
YQ
17172013-01-25 Yao Qi <yao@codesourcery.com>
1718
1719 * event-loop.c (async_queue_event): Remove one parameter
1720 'position'. Remove code handling 'position' == TAIL.
1721 (gdb_wait_for_event): Caller update.
1722 (check_async_event_handlers): Caller update.
1723 (poll_timers): Caller update.
1724 * event-loop.h (enum queue_position): Remove.
1725
3bbbe775
MK
17262013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
1727
1728 * MAINTAINERS: Update my email.
1729
a87d9ac4
YQ
17302013-01-25 Yao Qi <yao@codesourcery.com>
1731
1732 * main.c (print_gdb_help): Remove "--epoch" from the help
1733 message.
1734
2077afdd
TD
17352013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
1736
1737 * symtab.c (skip_prologue_using_sal): Consider a file
1738 change the same as an increased line number
1739
63da4037
TD
17402013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1741
30e8ee25 1742 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 1743
45e6c716
TT
17442013-01-24 Tom Tromey <tromey@redhat.com>
1745
1746 * ada-lang.h (ada_decode_symbol): Make return type const.
1747 * ada-lang.c (ada_decode_symbol): Likewise.
1748
b1ae631a
DE
17492013-01-23 Doug Evans <dje@google.com>
1750
1751 * linespec.c (find_linespec_symbols): Make static.
1752
55a78401
SDJ
17532013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1754
1755 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1756 type on float conversion for complex type.
1757
bea883fd
SCR
17582013-01-23 Siva Chandra Reddy <sivachandra@google.com>
1759
1760 Add a new class gdb.Architecture which exposes GDB's
1761 internal representation of architecture via GDB Python API.
1762 * Makefile.in: Add entries corresponding to the new file
1763 python/py-arch.c.
1764 * NEWS (Python Scripting): Add entries for the new class
1765 gdb.Architecture and the new method gdb.Frame.architecture.
1766 * python/py-arch.c: Implement gdb.Architecture class.
1767 * python/py-frame.c (frapy_arch): Implement the method
1768 gdb.Frame.architecture().
1769 (frame_object_methods): Add 'architecture' to the method table.
1770 * python/python-internal.h: Add declarations of new utility
1771 functions.
1772 * python/python.c (_initialize_python): Initialize
1773 gdb.Architecture class.
1774
796a7ff8
DE
17752013-01-23 Doug Evans <dje@google.com>
1776
1777 Work around binutils/15021.
1778 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1779 type_unit_group out of union s. All uses updated.
1780 (read_index_from_section): Watch for index version 8.
1781 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1782 an imported symtab.
1783 (write_psymtabs_to_index): Increment version number to 8.
1784
0928e93d
PA
17852013-01-22 Pedro Alves <palves@redhat.com>
1786
1787 * annotate.c (breakpoint_changed): Skip if breakpoint is not
1788 user-visible.
1789
9c97429f
PA
17902013-01-22 Pedro Alves <palves@redhat.com>
1791
1792 * annotate.c (annotate_breakpoints_changed): Rename to ...
1793 (annotate_breakpoints_invalid): ... this. Make static.
1794 (breakpoint_changed): Adjust.
1795 (_initialize_annotate): Always install the observers. Install a
1796 "breakpoint_created" observer.
1797 * annotate.h (annotate_breakpoints_changed): Delete declaration.
1798 * breakpoint.c (set_breakpoint_condition)
1799 (breakpoint_set_commands, do_map_commands_command)
1800 (init_raw_breakpoint, clear_command, set_ignore_count)
1801 (enable_breakpoint_disp): No longer call
1802 annotate_breakpoints_changed.
1803
bd00c694
PA
18042013-01-22 Pedro Alves <palves@redhat.com>
1805
1806 * annotate.c: Include "inferior.h".
1807 (frames_invalid_emitted)
1808 (breakpoints_invalid_emitted): New globals.
1809 (async_background_execution_p): New function.
1810 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1811 emitting the annotation if it has already been emitted.
1812 (annotate_display_prompt): New function.
1813 * annotate.h (annotate_display_prompt): New declaration.
1814 * event-top.c: Include annotate.h.
1815 (display_gdb_prompt): Call annotate_display_prompt.
1816
187d10dd
PA
18172013-01-22 Pedro Alves <palves@redhat.com>
1818
1819 * annotate.c (ignore_count_changed): Delete.
1820 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1821 (annotate_ignore_count_change): Delete.
1822 (annotate_stopped): Don't emit a delayed breakpoints-changed
1823 annotation.
1824 * annotate.h (annotate_ignore_count_change): Delete.
1825 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1826 annotate_ignore_count_change.
1827
d84cf7eb
TT
18282013-01-22 Tom Tromey <tromey@redhat.com>
1829
1830 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1831 require_rvalue for a register location.
1832
8f1d5693
MK
18332013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
1834
1835 * breakpoint.c (print_one_breakpoint_location): Add MI
1836 field 'thread-groups' when printing a breakpoint.
1837 (output_thread_groups): New function.
1838
aa6199c6
SCR
18392013-01-21 Siva Chandra Reddy <sivachandra@google.com>
1840
1841 * python/lib/gdb/commands/explore.py
1842 (CompoundExplorer.explore_expr): Correct the name of a method
1843 being invoked.
1844 (ExploreTypeCommand.invoke): Add a missing 'return'.
1845
d2afef13
TT
18462013-01-21 Tom Tromey <tromey@redhat.com>
1847
1848 * gdb_obstack.h (obconcat): Move declaration here, from...
1849 * symfile.h (obconcat): ... here.
1850 * gdb_obstack.c: New file.
1851 (obconcat): Move from...
1852 * symfile.c (obconcat): ... here.
1853 * Makefile.in (SFILES): Add gdb_obstack.c.
1854 (COMMON_OBS): Add gdb_obstack.o.
1855
10f0c4bb
TT
18562013-01-21 Tom Tromey <tromey@redhat.com>
1857
1858 * symfile.h (obsavestring): Don't declare.
1859 * symfile.c (obsavestring): Remove.
1860 * ada-exp.y: Use obstack_copy0, not obsavestring.
1861 * ada-lang.c: Use obstack_copy0, not obsavestring.
1862 * coffread.c: Use obstack_copy0, not obsavestring.
1863 * cp-namespace.c: Use obstack_copy0, not obsavestring.
1864 * dbxread.c: Use obstack_copy0, not obsavestring.
1865 * dwarf2read.c: Use obstack_copy0, not obsavestring.
1866 * jit.c: Use obstack_copy0, not obsavestring.
1867 * mdebugread.c: Use obstack_copy0, not obsavestring.
1868 * psymtab.c: Use obstack_copy0, not obsavestring.
1869 * stabsread.c: Use obstack_copy0, not obsavestring.
1870 * xcoffread.c: Use obstack_copy0, not obsavestring.
1871
86f62fd7
TT
18722013-01-21 Tom Tromey <tromey@redhat.com>
1873
1874 * dwarf2read.c (fixup_go_packaging): Save package name
1875 on objfile obstack.
1876 * gdbtypes.c (init_type): Don't copy name.
1877
15d034d0
TT
18782013-01-21 Tom Tromey <tromey@redhat.com>
1879
1880 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1881 const.
1882 (struct attribute) <u.str>: Now const.
1883 (struct fnfieldlist) <name>: Now const.
1884 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1885 (partial_die_parent_scope): Make return type const.
1886 (partial_die_full_name, add_partial_symbol): Update.
1887 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1888 'name' const.
1889 (find_file_and_directory): Make 'name' and 'comp_dir' const.
1890 (read_file_scope, read_func_scope, dwarf2_add_field)
1891 (dwarf2_add_member_fn, read_structure_type)
1892 (process_enumeration_scope, read_array_type, read_module_type)
1893 (read_base_type, read_subrange_type): Update.
1894 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1895 (new_symbol_full, guess_full_die_structure_name): Update.
1896 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
1897 (dwarf2_name): Return const type.
1898 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1899 const.
1900
748e18ae
TT
19012013-01-21 Tom Tromey <tromey@redhat.com>
1902
1903 * gdbtypes.c (init_type): Make 'name' const.
1904 * gdbtypes.h (init_type): Update.
1905
46212e0b
TT
19062013-01-21 Tom Tromey <tromey@redhat.com>
1907
1908 * buildsym.c (patch_subfile_names): Use set_last_source_file.
1909 (start_symtab): Make 'name' and 'dirname' const. Use
1910 set_last_source_file.
1911 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1912 (last_source_file): Define. Now static.
1913 (set_last_source_file, get_last_source_file): New functions.
1914 * buildsym.h (last_source_file): Don't declare.
1915 (start_symtab): Update.
1916 (set_last_source_file, get_last_source_file): Declare.
1917 * coffread.c (complete_symtab): Use set_last_source_file.
1918 (coff_end_symtab): Likewise.
1919 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1920 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1921 set_last_source_file.
1922 (process_one_symbol): Use get_last_source_file.
1923 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1924 (psymtab_to_symtab_1): Use get_last_source_file.
1925 * xcoffread.c (process_linenos): Use get_last_source_file.
1926 (complete_symtab): Use set_last_source_file.
1927 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1928 (scan_xcoff_symtab): Use set_last_source_file.
1929
9d2ceabe
TT
19302013-01-21 Tom Tromey <tromey@redhat.com>
1931
1932 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1933 (symbol_set_names): Remove casts. Handle field const-ness.
1934
cfc594ee
TT
19352013-01-21 Tom Tromey <tromey@redhat.com>
1936
1937 * dwarf2read.c (new_symbol_full): Remove cast.
1938 * symtab.c (symbol_set_demangled_name): Make 'name' const.
1939 * symtab.h (symbol_set_demangled_name): Update.
1940
5484b13a
TT
19412013-01-21 Tom Tromey <tromey@redhat.com>
1942
1943 * main.c (captured_main): Call bfd_init.
1944
1605ef26
TT
19452013-01-21 Tom Tromey <tromey@redhat.com>
1946
1947 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1948 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1949 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1950 * NEWS: Update.
1951
3b74cdc3
JK
19522013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1953
1954 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1955
5a352474
JK
19562013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1957
1958 Fix gdb.fortran/common-block.exp crash in PIE mode.
1959 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1960 LOC_COMMON_BLOCK.
1961 * f-valprint.c (info_common_command_for_block): Expect
1962 LOC_COMMON_BLOCK in gdb_assert.
1963 * symtab.h (struct general_symbol_info): Update comment for the
1964 common_block member.
1965 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1966 (enum address_class): New member LOC_COMMON_BLOCK.
1967
c60797fd
DB
19682013-01-18 David Blaikie <dblaikie@gmail.com>
1969
1970 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 1971
46f35228
TT
19722013-01-18 Tom Tromey <tromey@redhat.com>
1973
1974 PR c++/14999:
1975 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
1976 Call require_rvalue.
1977
257e7a09
YQ
19782013-01-18 Yao Qi <yao@codesourcery.com>
1979
1980 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
1981 (dbx_read_symtab): New declaration.
1982 (dbx_psymtab_to_symtab): Delete.
1983 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
1984 Rename parameter PST to SELF. Exchanged two parameters.
1985 (start_psymtab): Caller update.
1986 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
1987 (dwarf2_read_symtab): New declaration.
1988 (dwarf2_psymtab_to_symtab): Delete.
1989 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
1990 Rename parameter PST to SELF. Exchanged two parameters.
1991 (create_partial_symtab): Caller update.
1992 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
1993 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
1994 Rename parameter PST to SELF. Exchanged two parameters.
1995 (parse_partial_symbols, new_psymtab): Caller update.
1996 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1997 two parameters.
1998 * psymtab.c (psymtab_to_symtab): Caller update.
1999 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
2000 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
2001 Rename parameter PST to SELF. Exchanged two parameters.
2002 (xcoff_start_psymtab): Caller update.
2003
0de5618e
YQ
20042013-01-18 Yao Qi <yao@codesourcery.com>
2005
2006 * infrun.c (proceed): Rename local variable 'oneproc' to
2007 'force_step'.
2008
5c04624b
DE
20092013-01-17 Doug Evans <dje@google.com>
2010
848e3e78
DE
2011 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
2012 (dw2_build_type_unit_groups): Delete. All uses updated.
2013
5c04624b
DE
2014 * symtab.h (struct symbol_search): Add comment.
2015
d84fca2c
JK
20162013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2017
2018 * symtab.c (compare_filenames_for_search): New comment for
2019 HAS_DRIVE_SPEC.
2020
6108433d
TT
20212013-01-17 Tom Tromey <tromey@redhat.com>
2022
2023 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
2024
c89ffd86
JK
20252013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2026
2027 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
2028 initialize it by existing make_cleanup. Call new do_cleanups.
2029
db2b2972
TT
20302013-01-17 Tom Tromey <tromey@redhat.com>
2031
2032 * cp-abi.c (cp_abi_completer): New function.
2033 (_initialize_cp_abi): Set completer for "set cp-abi".
2034
be7d37a2
TT
20352013-01-17 Tom Tromey <tromey@redhat.com>
2036
2037 * mem-break.c: Remove obsolete comment.
2038 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
2039
c9fb1240
SD
20402012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
2041
2042 * jit.c (jit_reader_load_command): Interpret the jit reader name
2043 as an absolute path if it begins with a forward slash.
2044
db334a01
SD
20452012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
2046
2047 PR gdb/14550
2048
2049 * jit.c (finalize_symtab): Ensure that only the global block has a
2050 NULL superblock.
2051
7d928dac
PA
20522013-01-17 Pedro Alves <palves@redhat.com>
2053
2054 * acinclude.m4: Include ../config/plugins.m4,
2055 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
2056 * Makefile.in (aclocal_m4_deps): Update.
2057 * aclocal.m4: Renegerate.
2058
fb8cf7c5
DE
20592013-01-16 Doug Evans <dje@google.com>
2060
2061 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
2062
ab04a2af
TT
20632013-01-16 Pedro Alves <palves@redhat.com>
2064 Tom Tromey <tromey@redhat.com>
2065
2066 PR cli/7221:
2067 * NEWS: Add "catch signal".
2068 * breakpoint.c (base_breakpoint_ops): No longer static.
2069 (bpstat_explains_signal): New function.
2070 (init_catchpoint): No longer static.
2071 (base_breakpoint_explains_signal): New function.
2072 (base_breakpoint_ops): Initialize new field.
2073 * breakpoint.h (enum bpstat_signal_value): New.
2074 (struct breakpoint_ops) <explains_signal>: New field.
2075 (bpstat_explains_signal): Remove macro, declare as function.
2076 (base_breakpoint_ops, init_catchpoint): Declare.
2077 * break-catch-sig.c: New file.
2078 * inferior.h (signal_catch_update): Declare.
2079 * infrun.c (signal_catch): New global.
2080 (handle_syscall_event): Update for change to
2081 bpstat_explains_signal.
2082 (handle_inferior_event): Likewise. Always handle random signals
2083 via bpstats.
2084 (signal_cache_update): Check signal_catch.
2085 (signal_catch_update): New function.
2086 (_initialize_infrun): Initialize signal_catch.
2087 * Makefile.in (SFILES): Add break-catch-sig.c.
2088 (COMMON_OBS): Add break-catch-sig.o.
2089
8ac3646f
TT
20902013-01-16 Tom Tromey <tromey@redhat.com>
2091
2092 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
2093 (print_one_catch_solib, print_one_catch_syscall)
2094 (print_one_catch_exec, print_one_exception_catchpoint): Emit
2095 "catch-type".
2096
5a18e302
YQ
20972013-01-16 Yao Qi <yao@codesourcery.com>
2098
2099 * printcmd.c (current_display_number): Make it static.
2100
3f01d0d0
YQ
21012013-01-16 Yao Qi <yao@codesourcery.com>
2102
2103 * infcmd.c (step_once): Don't check '!single_inst' as it was
2104 checked before.
2105
1ed59174
JK
21062013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2107
2108 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
2109
44478ab3
TT
21102013-01-14 Tom Tromey <tromey@redhat.com>
2111
2112 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
2113 set command.
2114 * command.h (add_setshow_string_noescape_cmd): Update.
2115 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
2116 (complete_set_gnutarget): New function.
2117 (_initialize_core): Set the "set gnutarget" completer.
2118
06d66ee9
TT
21192013-01-14 Tom Tromey <tromey@redhat.com>
2120
2121 PR symtab/14442:
2122 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
2123 (c_type_print_modifier): Likewise.
2124 * dwarf2read.c (read_tag_restrict_type): New function.
2125 (read_type_die_1): Handle DW_TAG_restrict_type.
2126 * gdbtypes.c (make_restrict_type): New function.
2127 (recursive_dump_type): Handle TYPE_RESTRICT.
2128 * gdbtypes.h (enum type_flag_values): Renumber.
2129 (enum type_instance_flag_value): Add
2130 TYPE_INSTANCE_FLAG_RESTRICT.
2131 (TYPE_RESTRICT): New macro.
2132 (make_restrict_type): Declare.
2133
c9bf0622
TT
21342013-01-14 Tom Tromey <tromey@redhat.com>
2135
2136 PR symtab/14931:
2137 * psymtab.c (struct psymtab_state): New.
2138 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
2139 functions.
2140 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
2141 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
2142
44d594fd
PA
21432013-01-14 Richard Sharman <richard_sharman@mitel.com>
2144 Pedro Alves <palves@redhat.com>
2145
2146 PR remote/14786
2147
2148 * remote.c (remote_threads_info): Make a copy of the reply from
2149 qfThreadInfo and use that instead of rs->buf.
2150
442e4d9c
YQ
21512013-01-14 Yao Qi <yao@codesourcery.com>
2152
2153 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
2154 (dbx_psymtab_to_symtab): Likewise.
2155 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
2156 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
2157 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
2158
5b12a61c
JK
21592013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2160
2161 * parse.c (parse_exp_in_context): New variable inner_chain. Call
2162 make_cleanup_restore_current_language. Call set_language. Move
2163 OLD_CHAIN and INNER_CHAIN cleanups.
2164 * utils.c (do_restore_current_language)
2165 (make_cleanup_restore_current_language): New functions.
2166 * utils.h (make_cleanup_restore_current_language): New declaration.
2167
f0a4b570
JK
21682013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2169
2170 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
2171 non-existing files.
2172
57b3c00c
JK
2173 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
2174 non-existing files if FILENAME is already absolute.
2175
daefa854
JK
21762013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2177
2178 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
2179 fputs_filtered. Append trailing newline.
2180
ca9c6ee2
YQ
21812013-01-11 Yao Qi <yao@codesourcery.com>
2182 Stan Shebs <stan@codesourcery.com>
2183
2184 * psymtab.c (init_psymbol_list): Clarify the comment.
2185
f28045c2
YQ
21862013-01-11 Yao Qi <yao@codesourcery.com>
2187
2188 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
2189 (update_dprintf_command_list): Assert that 'printf_line' is
2190 non-null. Remove condition check.
2191
da5132d3
JK
21922013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2193
2194 Code cleanup.
2195 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
2196 type const char *.
2197 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
2198 const char *.
2199 * tui/tui-source.h (tui_source_is_displayed): Likewise.
2200
843e694d
AG
22012013-01-09 Anthony Green <green@moxielogic.com>
2202
2203 * cp-abi.c (cplus_print_vtable): Don't return value from void
2204 function.
2205 * ada-lang.c (re_set_catch_assert): Ditto.
2206
da51c347
DE
22072013-01-09 Doug Evans <dje@google.com>
2208
2209 * symfile.h (quick_symbol_functions): Delete member
2210 pre_expand_symtabs_matching. All uses removed.
2211 * dwarf2read.c (dw2_lookup_symbol): Implement.
2212 (dw2_do_expand_symtabs_matching): Delete.
2213 (dw2_pre_expand_symtabs_matching): Delete.
2214 (struct dw2_symtab_iterator): New type.
2215 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
2216 (dw2_expand_symtabs_for_function): Rewrite.
2217 (dwarf2_gdb_index_functions): Update.
2218 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
2219 (psym_functions): Update.
2220
b2259038
TT
22212013-01-09 Tom Tromey <tromey@redhat.com>
2222
2223 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
2224 * configure: Rebuild.
2225 * configure.ac: Add somread.o to the build if BFD has SOM
2226 support.
2227 * somread.c: Include som/aout.h, not syms.h.
2228 (som_symtab_read): Use som_external_symbol_dictionary_record.
2229 Unpack records manually.
2230 (_initialize_somread): Declare.
2231
bdad4180
MF
22322012-01-08 Mike Frysinger <vapier@gentoo.org>
2233
2234 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
2235 Cast return_address to 64bits.
2236
03cdf680
HZ
22372013-01-08 Hui Zhu <hui_zhu@mentor.com>
2238
2239 * printcmd.c: Remove define of function output_command.
2240 * tracepoint.c: Remove extern of function output_command.
2241 * valprint.h: (output_command): New extern.
2242
8a808554
TT
22432013-01-07 Tom Tromey <tromey@redhat.com>
2244
2245 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
2246 Remove.
2247 (objc_language_defn): Use c_printchar, c_printstr,
2248 c_emit_char.
2249
e93a8774
TT
22502013-01-07 Tom Tromey <tromey@redhat.com>
2251
2252 PR cli/7719:
2253 * NEWS: Update.
2254 * ada-valprint.c (printstr, print_field_values): Remove
2255 "inspect_it" code.
2256 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
2257 code.
2258 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
2259 code.
2260 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
2261 * main.c (captured_main): Remove "epoch" argument.
2262 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
2263 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
2264 * p-valprint.c (pascal_object_print_value_fields): Remove
2265 "inspect_it" code.
2266 * printcmd.c (print_command_1): Remove 'inspect' argument.
2267 (print_command, call_command): Update.
2268 (inspect_command): Remove.
2269 (_initialize_printcmd): Make "inspect" an alias for "print".
2270 * top.c (epoch_interface): Remove.
2271 * top.h (epoch_interface): Remove.
2272 * valprint.c (user_print_options): Update.
2273 (print_converted_chars_to_obstack): Remove "inspect_it" code.
2274 * valprint.h (struct value_print_options) <inspect_it>: Remove
2275 field.
2276
22772013-01-04 Tom Tromey <tromey@redhat.com>
2278
2279 * valprint.h (read_string): Add 'extern'.
2280
b967eb24
JB
22812013-01-07 Joel Brobecker <brobecker@adacore.com>
2282
2283 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
2284 used to decide whether to define darwin_read_dyld_info or not.
2285
78a8b30e
PM
22862013-01-03 Pierre Muller <muller@sourceware.org>
2287
2288 * main.c (relocate_gdb_directory): Avoid calling stat function
2289 if DIR is empty.
2290
50da2f25
YQ
22912013-01-03 Yao Qi <yao@codesourcery.com>
2292
2293 * psymtab.c (fixup_psymbol_section): Update declaration.
2294 (fixup_psymbol_section): Remove code returning value.
2295
e7e8980f
YQ
22962013-01-03 Yao Qi <yao@codesourcery.com>
2297
2298 * symtab.h: Remove some out of date comments.
2299 (enum exception_event_kind): Move it ...
2300 * breakpoint.c: ... here.
2301
569283d4
MF
23022013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
2303
9f9d9a96 2304 PR gdb/14405
569283d4
MF
2305 * darwin-nat.c (darwin_read_dyld_info): Only build if
2306 TASK_DYLD_INFO_COUNT is defined.
2307 (darwin_xfer_partial): Call darwin_read_dyld_info only if
2308 TASK_DYLD_INFO_COUNT is defined.
2309
2e36fbea
TT
23102013-01-02 Tom Tromey <tromey@redhat.com>
2311
2312 * symfile.h (struct ecoff_debug_hack): Remove.
2313 * objfiles.c: Don't include mdebugread.h.
2314
4f05add4
TT
23152013-01-02 Tom Tromey <tromey@redhat.com>
2316
2317 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
2318 * configure.ac: Check for Mach-O support in BFD. Update
2319 CONFIG_OBS.
2320 * configure: Rebuild.
2321
def63ff0
TT
23222013-01-02 Tom Tromey <tromey@redhat.com>
2323
2324 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
2325 * configure.ac: Use GDB_AC_CHECK_BFD.
2326 * configure: Rebuild.
2327
60c5dd93
MK
23282013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
2329
2330 * MAINTAINERS: Update my email.
2331
6e58437e
JB
23322013-01-01 Joel Brobecker <brobecker@adacore.com>
2333
2334 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
2335
627fe805
JB
23362013-01-01 Joel Brobecker <brobecker@adacore.com>
2337
2338 * rs6000-nat.c (bss_data_overlap): New function.
2339 (vmap_symtab): Use it to adjust the .bss section's offset.
2340
28e7fd62
JB
23412013-01-01 Joel Brobecker <brobecker@adacore.com>
2342
2343 Update year range in copyright notice of all files.
2344
e93a8774 23452013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
2346
2347 * top.c (print_gdb_version): Update copyright year.
2348
72b20e9c 2349For older changes see ChangeLog-2012.
c906108c
SS
2350\f
2351Local Variables:
2352mode: change-log
2353left-margin: 8
2354fill-column: 74
2355version-control: never
57da7796 2356coding: utf-8
c906108c 2357End:
This page took 1.634514 seconds and 4 git commands to generate.