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