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