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