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