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