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