-Wpointer-sign: aarch64-tdep.c.
[binutils-gdb.git] / gdb / ChangeLog
1 2013-04-19 Pedro Alves <palves@redhat.com>
2
3 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
4 'is64' to signed 'int'.
5
6 2013-04-19 Pedro Alves <palves@redhat.com>
7
8 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
9 parameter to int *.
10
11 2013-04-19 Pedro Alves <palves@redhat.com>
12
13 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
14 'insnbuf' buffer type to unsigned int[].
15
16 2013-04-19 Pedro Alves <palves@redhat.com>
17
18 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
19
20 2013-04-19 Pedro Alves <palves@redhat.com>
21
22 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
23 unsigned long *.
24
25 2013-04-19 Pedro Alves <palves@redhat.com>
26
27 * alpha-tdep.c (heuristic_fence_post): Change type to int.
28 (alpha_heuristic_proc_start): Adjust to check -1 instead of
29 UINT_MAX.
30 * mips-tdep.c (heuristic_fence_post): Change type to int.
31 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
32
33 2013-04-19 Pedro Alves <palves@redhat.com>
34
35 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
36 (struct gdbarch_tdep) <cris_version>: Make unsigned.
37 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
38
39 2013-04-19 Pedro Alves <palves@redhat.com>
40
41 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
42 it to get a string view of the byte buffer.
43 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
44 type to gdb_byte *. Adjust.
45 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
46 Change local to char *.
47 * solib-darwin.c (find_program_interpreter): Change return type to
48 char *. Adjust.
49 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
50 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
51 * solib-frv.c (enable_break2): Change local 'buf' to char *.
52 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
53 * solib-svr4.c (find_program_interpreter): Change return type to
54 char *. Adjust.
55 (enable_break): Change local 'interp_name' to char *.
56 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
57 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
58 (spu_pseudo_register_write_spu): Use char for string buffer.
59 Adjust.
60 (info_spu_event_command, info_spu_signal_command): Add casts to
61 'char *'.
62
63 2013-04-19 Pedro Alves <palves@redhat.com>
64
65 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
66 gdb_byte[].
67 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
68 * ada-lang.c (ada_value_assign): Use gdb_byte.
69 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
70 (alphanbsd_sigtramp_offset): Use gdb_byte.
71 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
72 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
73 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
74 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
75 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
76 * arm-tdep.c (arm_stub_unwind_sniffer)
77 (arm_displaced_init_closure): Use gdb_byte.
78 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
79 (arm_default_thumb_le_breakpoint)
80 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
81 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
82 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
83 * arm-wince-tdep.c (arm_wince_le_breakpoint)
84 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
85 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
86 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
87 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
88 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
89 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
90 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
91 (cris_store_return_value, cris_extract_return_value): Use
92 gdb_byte.
93 (constraint): Change type of parameter to char * from signed
94 char*. Use gdb_byte.
95 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
96 of local buffer to gdb_byte *.
97 * dwarf2read.c (read_index_from_section): Use gdb_byte.
98 (create_dwp_hash_table): Change type of locals to gdb_byte *.
99 (add_address_entry): Change type of local buffer to gdb_byte[].
100 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
101 (frv_push_dummy_call): Use gdb_byte.
102 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
103 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
104 (hppa_hpux_supply_save_state): Use gdb_byte.
105 * hppa-tdep.c (hppa32_push_dummy_call)
106 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
107 * ia64-tdep.c (extract_bit_field, replace_bit_field)
108 (slotN_contents, replace_slotN_contents): Change type of parameter
109 to gdb_byte *.
110 (fetch_instruction, ia64_pseudo_register_write)
111 (ia64_register_to_value, ia64_value_to_register)
112 (ia64_extract_return_value, ia64_store_return_value)
113 (ia64_push_dummy_call): Use gdb_byte.
114 * m32c-tdep.c (m32c_return_value): Remove cast.
115 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
116 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
117 gdb_byte.
118 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
119 * mn10300-tdep.c (mn10300_store_return_value)
120 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
121 gdb_byte.
122 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
123 (moxie_process_record): Remove casts.
124 * ppc-ravenscar-thread.c (supply_register_at_address)
125 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
126 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
127 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
128 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
129 * remote.c (compare_sections_command): Use gdb_byte.
130 * score-tdep.c (score7_free_memblock): Change type of parameter to
131 gdb_byte *.
132 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
133 gdb_byte *. Use gdb_byte.
134 (sh_push_dummy_call_fpu): Use gdb_byte.
135 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
136 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
137 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
138 Change parameter type to 'gdb_byte *'. Use gdb_byte.
139 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
140 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
141 (sh64_store_return_value, sh64_register_convert_to_virtual):
142 Change parameter type to 'gdb_byte *'. Use gdb_byte.
143 (sh64_pseudo_register_write): Use gdb_byte.
144 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
145 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
146 buffer.
147 (irix_current_sos): Use gdb_byte.
148 * solib-som.c (som_current_sos): Use gdb_byte.
149 * sparc-ravenscar-thread.c (supply_register_at_address)
150 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
151 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
152 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
153 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
154 'gdb_byte *'.
155 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
156 'gdb_byte *'.
157 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
158 * xstormy16-tdep.c (xstormy16_extract_return_value)
159 (xstormy16_store_return_value): Change parameter type to
160 'gdb_byte *'. Adjust.
161 (xstormy16_push_dummy_call): Use gdb_byte.
162 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
163 (call0_analyze_prologue, execute_code): Use gdb_byte.
164
165 2013-04-19 Vladimir Kargov <kargov@gmail.com>
166 Pedro Alves <palves@redhat.com>
167
168 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
169 value contents.
170
171 2013-04-17 Doug Evans <dje@google.com>
172
173 * dwarf2read.c (struct signatured_type): New member type.
174 (struct attribute): Replace member signatured_type with signature.
175 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
176 (read_call_site_scope): Call follow_die_ref instead of
177 follow_die_ref_or_sig.
178 (read_structure_type): Rewrite handling of signatured types.
179 (read_enumeration_type): Ditto.
180 (read_attribute_value): Update.
181 (build_error_marker_type): New function.
182 (lookup_die_type): Add assert. Rewrite handling of signatured types.
183 Don't call error for bad types, just build an error marker type.
184 (dump_die_shallow): Update.
185 (follow_die_sig_1): Renamed from follow_die_sig.
186 Don't call error for bad types, instead return NULL.
187 (follow_die_sig): New function.
188 (get_signatured_type, get_DW_AT_signature_type): New functions.
189
190 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
191
192 * aarch64-tdep.c (aarch64_write_pc): Removed.
193 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
194 function.
195
196 2013-04-17 Yao Qi <yao@codesourcery.com>
197
198 * top.c (print_gdb_configuration): Print configure-time
199 parameter on using libbabeltrace or not.
200
201 2013-04-16 Pedro Alves <palves@redhat.com>
202
203 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
204
205 2013-04-16 Pedro Alves <palves@redhat.com>
206
207 * common/glibc_thread_db.h: Update from upstream glibc
208 (git 568035b7874a099087b77f7bba3e36a1173787b0).
209
210 2013-04-16 Pedro Alves <palves@redhat.com>
211
212 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
213 * common/glibc_thread_db.h: ... this new file ...
214 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
215
216 2013-04-16 Will Newton <will.newton@gmail.com>
217 Pedro Alves <palves@redhat.com>
218
219 PR build/11881
220
221 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
222 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
223 HAVE_THREAD_DB_H.
224
225 2013-04-16 Pedro Alves <palves@redhat.com>
226 Eli Zaretskii <eliz@gnu.org>
227
228 * NEWS: Mention "set foo unlimited".
229
230 2013-04-15 Doug Evans <dje@google.com>
231
232 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
233 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
234 (create_dwo_cu_reader): Renamed from
235 create_dwo_debug_info_hash_table_reader.
236 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
237 Remove support for multiple CUs in a DWO file.
238 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
239
240 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
241 instead of phex.
242 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
243 (create_dwo_in_dwp): Ditto.
244
245 2013-04-15 Tom Tromey <tromey@redhat.com>
246
247 * NEWS: Move recent entries into "since 7.6" section.
248
249 2013-04-15 Tom Tromey <tromey@redhat.com>
250
251 PR c++/13588:
252 * NEWS: Update.
253 * break-catch-throw.c (struct exception_catchpoint)
254 <exception_rx, pattern>: New fields.
255 (fetch_probe_arguments, dtor_exception_catchpoint)
256 (check_status_exception_catchpoint)
257 (print_one_detail_exception_catchpoint): New functions.
258 (handle_gnu_v3_exceptions): Add "except_rx" argument.
259 Compile regular expression if needed.
260 (extract_exception_regexp): New function.
261 (catch_exception_command_1): Use extract_exception_regexp.
262 (compute_exception): Use fetch_probe_arguments.
263 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
264 and check_status fields.
265 * cp-abi.c (cplus_typename_from_type_info): New function.
266 * cp-abi.h (cplus_typename_from_type_info): Declare.
267 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
268 * gdb_regex.h (compile_rx_or_error): Declare.
269 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
270 comment.
271 (init_gnuv3_ops): Set get_type_from_type_info field.
272 * probe.c (compile_rx_or_error): Move...
273 * utils.c (compile_rx_or_error): ... here.
274
275 2013-04-15 Tom Tromey <tromey@redhat.com>
276
277 PR c++/15176:
278 * NEWS: Update.
279 * break-catch-throw.c (compute_exception): New function.
280 (exception_funcs): New global.
281 (_initialize_break_catch_throw): Create $_exception.
282 * cp-abi.c (cplus_type_from_type_info): New function.
283 * cp-abi.h (cplus_type_from_type_info): Declare.
284 (struct cp_abi_ops) <get_type_from_type_info>: New field.
285 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
286 (gnuv3_get_type_from_type_info): New functions.
287 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
288
289 2013-04-15 Tom Tromey <tromey@redhat.com>
290
291 * break-catch-throw.c (struct exception_names): New.
292 (exception_functions): Change type.
293 (re_set_exception_catchpoint): Look for SDT probes.
294
295 2013-04-15 Tom Tromey <tromey@redhat.com>
296
297 PR c++/10119:
298 * break-catch-throw.c (exception_functions): New global.
299 (gnu_v3_exception_catchpoint_ops): Move earlier.
300 (struct exception_catchpoint): New.
301 (classify_exception_breakpoint): Rewrite.
302 (re_set_exception_catchpoint): New function.
303 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
304 Allocate a struct exception_catchpoint.
305 (catch_exception_command_1): Update.
306 (initialize_throw_catchpoint_ops): Set 're_set' method.
307
308 2013-04-15 Tom Tromey <tromey@redhat.com>
309
310 * Makefile.in (SFILES): Add break-catch-throw.c
311 (COMMON_OBS): Add break-catch-throw.o.
312 * break-catch-throw.c: New file.
313 * breakpoint.c: Move exception-catching code to new file.
314 (ep_parse_optional_if_clause): No longer static.
315 * breakpoint.h (ep_parse_optional_if_clause): Declare.
316
317 2013-04-15 Tom Tromey <tromey@redhat.com>
318
319 PR c++/9065:
320 * NEWS: Update.
321 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
322 * c-exp.y (TYPEID): New token.
323 (exp): Add new TYPEID productions.
324 (ident_tokens): Add "typeid".
325 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
326 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
327 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
328 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
329 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
330 case.
331 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
332 (build_std_type_info_type, gnuv3_get_typeid_type)
333 (gnuv3_get_typeid): New functions.
334 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
335 new fields on ABI object.
336 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
337 * std-operator.def (OP_TYPEID): New.
338
339 2013-04-15 Tom Tromey <tromey@redhat.com>
340
341 * elfread.c (elf_symtab_read): Install versioned symbol under
342 unversioned name as well.
343
344 2013-04-15 Tom Tromey <tromey@redhat.com>
345
346 PR c++/11990:
347 * c-lang.c (cplus_language_defn): Use gdb_demangle.
348 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
349 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
350 (gdb_demangle): New function.
351 * cp-support.h (gdb_demangle): Declare.
352 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
353 (dwarf2_name): Use gdb_demangle.
354 * gdbtypes.c (check_stub_method): Use gdb_demangle.
355 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
356 suffixes from name.
357 (gnuv3_print_method_ptr): Use gdb_demangle.
358 * jv-lang.c (java_demangle): Use gdb_demangle.
359 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
360 * language.c (unk_lang_demangle): Use gdb_demangle.
361 * symtab.c (symbol_find_demangled_name)
362 (demangle_for_lookup): Use gdb_demangle.
363
364 2013-04-15 Tom Tromey <tromey@redhat.com>
365
366 PR c++/12824:
367 * NEWS: Update.
368 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
369 New constant.
370 (classify_exception_breakpoint): New function.
371 (print_it_exception_catchpoint, print_one_exception_catchpoint)
372 (print_mention_exception_catchpoint)
373 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
374 (catch_exception_command_1): Handle "rethrow" catchpoint.
375 (catch_rethrow_command): New function.
376 (_initialize_breakpoint): Add "catch rethrow" command.
377
378 2013-04-15 Pierre Muller <muller@sourceware.org>
379
380 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
381 set_gdbarch_write_pc as deprecated anymore.
382
383 2013-04-15 Joel Brobecker <brobecker@adacore.com>
384
385 * spu-tdep.c (spu_write_pc): Add empty line after local variable
386 declarations.
387
388 2013-04-13 Yao Qi <yao@codesourcery.com>
389
390 * ctf.c (_initialize_ctf): Include "completer.h".
391 Call add_target_with_completer instead of add_target.
392
393 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
394
395 Fix GDB regression related to PR binutils/14813.
396 * jit.c (mem_bfd_iovec_close): Return 0 for success.
397 * minidebug.c (lzma_close): Add return value comment.
398 * remote.c (remote_bfd_iovec_close): Return 0 for success.
399 * solib-spu.c (spu_bfd_iovec_close): Likewise.
400 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
401
402 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
403
404 * config.in: Regenerate.
405
406 2013-04-12 Tom Tromey <tromey@redhat.com>
407
408 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
409 const.
410 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
411 (struct die_reader_specs) <buffer>: Likewise.
412 (die_reader_func_ftype): Make 'info_ptr' const.
413 (struct line_header) <include_dirs, statement_program_start,
414 statement_program_end>: Now const.
415 (struct file_entry) <name>: Likewise.
416 (struct partial_die_info) <sibling>: Likewise.
417 (struct dwarf_block) <data>: Likewise.
418 (dwarf2_read_section): Remove cast.
419 (dwarf2_get_section_info): Make 'bufp' const.
420 (read_index_from_section): Constify.
421 (dw2_get_file_names_reader): Make 'info_ptr' const.
422 (dw2_get_primary_filename_reader): Likewise.
423 (read_comp_unit_head): Make 'info_ptr' and return type const.
424 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
425 Likewise.
426 (read_abbrev_offset): Constify.
427 (dwarf2_create_include_psymtab): Make 'name' const.
428 (create_debug_types_hash_table): Update.
429 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
430 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
431 Constify.
432 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
433 (load_partial_comp_unit_reader): Make 'info_ptr' const.
434 (read_comp_units_from_section): Constify.
435 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
436 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
437 const.
438 (dwarf2_compute_name, setup_type_unit_groups): Constify.
439 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
440 (create_dwp_hash_table, dwarf2_ranges_read)
441 (dwarf2_record_block_ranges): Constify.
442 (read_die_and_children, read_die_and_siblings_1)
443 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
444 const.
445 (read_full_die_1, read_full_die): Make 'info_ptr' const.
446 (abbrev_table_read_table): Constify.
447 (load_partial_dies): Make 'info_ptr' const.
448 (read_partial_die, read_attribute_value, read_attribute): Make
449 'info_ptr' and return type const.
450 (read_address, read_initial_length)
451 (read_checked_initial_length_and_offset, read_offset)
452 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
453 const.
454 (read_direct_string): Make 'buf' and return type const.
455 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
456 (read_indirect_string): Make return type const.
457 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
458 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
459 'info_ptr' const.
460 (read_str_index): Make return type const.
461 (add_include_dir): Make 'include_dir' const.
462 (add_file_name): Make 'name' const.
463 (dwarf_decode_line_header): Constify.
464 (psymtab_include_file_name): Make return type const.
465 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
466 (dwarf2_start_subfile): Make 'filename' const.
467 (dwarf2_const_value_attr): Make 'bytes' const.
468 (read_signatured_type_reader): Make 'info_ptr' const.
469 (decode_locdesc): Constify.
470 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
471 const.
472 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
473 'mac_end', and return type const.
474 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
475 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
476 type const.
477 (per_cu_header_read_in): Constify.
478 * symfile.h (dwarf2_get_section_info): Update.
479
480 2013-04-12 Tom Tromey <tromey@redhat.com>
481
482 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
483
484 2013-04-12 Eli Zaretskii <eliz@gnu.org>
485
486 * NEWS: Mention "show configuration", --configuration.
487 * top.c (print_gdb_configuration): New function, displays the
488 details about GDB configure-time parameters.
489 (print_gdb_version): Mention "show configuration".
490 * cli/cli-cmds.c (show_configuration): New function.
491 (_initialize_cli_cmds): Add the "show configuration" command.
492 * main.c (captured_main) <print_configuration>: New static var.
493 <long_options>: Use it.
494 If --configuration was given, call print_gdb_configuration.
495
496 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
497 Pedro Alves <palves@redhat.com>
498
499 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
500 (generated_files): Add gcore.
501 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
502 HAVE_NATIVE_GCORE_HOST.
503 (gcore): New.
504 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
505 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
506 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
507 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
508 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
509 Add HAVE_NATIVE_GCORE_HOST.
510 * configure: Regenerate.
511 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
512 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
513 AC_CONFIG_FILES for gcore.
514 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
515 gdb_have_gcore.
516 * gdb_gcore.sh: Rename to ...
517 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
518 and GCORE_TRANSFORM_NAME substitutions.
519
520 Fix parsing tabs in ${gdb_target_obs}.
521 * configure.tgt (gdb_have_gcore): Replace case with for and if.
522
523 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
524
525 * remote.c (unpush_and_perror): Add output message final dot.
526
527 2013-04-11 Yao Qi <yao@codesourcery.com>
528
529 * tracepoint.c (tfile_interp_line): Fit parameters line and
530 utpp in one line.
531
532 2013-04-10 Joel Brobecker <brobecker@adacore.com>
533
534 * solib.c (solib_map_sections): Remove code overwriting
535 SO->SO_NAME with the bfd's filename.
536
537 2013-04-10 Pedro Alves <palves@redhat.com>
538
539 * cli/cli-decode.c (integer_unlimited_completer): New function.
540 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
541 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
542 completer.
543 * cli/cli-setshow.c: Include "cli/cli-utils.h".
544 (is_unlimited_literal): New function.
545 (do_set_command): Handle literal "unlimited" arguments.
546 * frame.c (_initialize_frame) <set backtrace limit>: Document
547 "unlimited".
548 * printcmd.c (_initialize_printcmd) <set print
549 max-symbolic-offset>: Add help text.
550 * record-full.c (_initialize_record_full) <set record full
551 insn-number-max>: Likewise.
552 * record.c (_initialize_record) <set record
553 instruction-history-size, set record function-call-history-size>:
554 Add help text.
555 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
556 help text.
557 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
558 Likewise.
559 * source.c (_initialize_source) <set listsize>: Add help text.
560 * utils.c (initialize_utils) <set height, set width>: Likewise.
561 <set pagination>: Mention "set height unlimited".
562 * valprint.c (_initialize_valprint) <set print elements, set print
563 repeats>: Document "unlimited".
564
565 2013-04-10 Pedro Alves <palves@redhat.com>
566
567 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
568 instead of disconnect_tracing.
569 * infcmd.c (detach_command, disconnect_command): Call
570 query_if_trace_running. Adjust.
571 * top.c: Include "tracepoint.h".
572 (quit_target): Delete. Contents moved ...
573 (quit_force): ... here. Wrap each stage of teardown in
574 TRY_CATCH. Call disconnect_tracing before detaching.
575
576 2013-04-10 Hui Zhu <hui@codesourcery.com>
577 Yao Qi <yao@codesourcery.com>
578
579 * configure.ac: Check libbabeltrace is installed.
580 * config.in: Regenerate.
581 * configure: Regenerate.
582 * Makefile.in (LIBBABELTRACE): New.
583 (CLIBS): Add LIBBABELTRACE.
584 * ctf.c: Include "exec.h".
585 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
586 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
587 (ctf_save_metadata_header): Define new type aliases in
588 metadata.
589 (ctf_write_header): Define event type "tsv_def" and "tp_def"
590 in metadata. Start a new faked packet for trace status.
591 (ctf_write_status): Write trace status to CTF.
592 (ctf_write_uploaded_tsv): Write TSV to CTF.
593 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
594 (ctf_write_definition_end): End the faked packet.
595
596 (ctx, ctf_iter, trace_dirname): New.
597 (start_pos): New variable.
598 (ctf_destroy, ctf_open_dir, ctf_open): New.
599 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
600 macros.
601 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
602 (ctf_fetch_registers, ctf_xfer_partial): New.
603 (ctf_get_trace_state_variable_value): New.
604 (ctf_get_tpnum_from_frame_event): New.
605 (ctf_get_traceframe_address): New.
606 (ctf_trace_find, ctf_has_stack): New.
607 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
608 (ctf_get_trace_status, ctf_read_status): New.
609 (_initialize_ctf): New.
610 * tracepoint.c (get_tracepoint_number): New
611 (get_uploaded_tsv): Remove 'static'.
612 (struct traceframe_info, trace_regblock_size): Move it to ...
613 * tracepoint.h: ... here.
614 (get_tracepoint_number): Declare it.
615 (get_uploaded_tsv): Declare it.
616
617 * NEWS: Mention new configure option.
618
619 2013-04-10 Pedro Alves <palves@redhat.com>
620 Hui Zhu <hui@codesourcery.com>
621
622 * breakpoint.c (dprintf_re_set): New.
623 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
624 to dprintf_re_set.
625
626 2013-04-09 Joel Brobecker <brobecker@adacore.com>
627
628 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
629 Remove solib-svr4.o from the list.
630
631 2013-04-09 Joel Brobecker <brobecker@adacore.com>
632
633 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
634 Use gdb_assert_not_reached instead of invalid boolean expression.
635
636 2013-04-09 Pedro Alves <palves@redhat.com>
637
638 * remote.c (unpush_and_perror): New function.
639 (readchar, remote_serial_write): Use it.
640
641 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
642
643 * NEWS: Mention new btrace RSP packets.
644
645 2013-04-08 Tom Tromey <tromey@redhat.com>
646
647 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
648 long.
649
650 2013-04-08 Tom Tromey <tromey@redhat.com>
651
652 * maint.c (print_bfd_section_info): Print the section index.
653 * symmisc.c (dump_msymbols): Print the section index.
654
655 2013-04-08 Tom Tromey <tromey@redhat.com>
656
657 PR symtab/8424:
658 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
659 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
660 * breakpoint.c (resolve_sal_pc): Update.
661 * elfread.c (elf_gnu_ifunc_record_cache): Update.
662 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
663 (minsym_lookup_iterator_cb): Use it.
664 (default_read_var_value): Update.
665 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
666 Update.
667 * infcmd.c (jump_command): Update.
668 * linespec.c (minsym_found): Update.
669 * maint.c (maintenance_translate_address): Update.
670 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
671 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
672 * parse.c (write_exp_msymbol): Update.
673 * printcmd.c (address_info): Update.
674 * psymtab.c (find_pc_sect_psymbol): Update.
675 (fixup_psymbol_section): Check SYMBOL_SECTION, not
676 SYMBOL_OBJ_SECTION.
677 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
678 Don't initialize SYMBOL_OBJ_SECTION.
679 * spu-tdep.c (spu_catch_start): Update.
680 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
681 * symmisc.c (dump_msymbols, print_symbol): Update.
682 * symtab.c (fixup_section): Don't set 'obj_section'. Change
683 how fallback section is computed.
684 (fixup_symbol_section): Update.
685 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
686 Update.
687 (allocate_symbol, initialize_symbol, allocate_template_symbol):
688 Initialize SYMBOL_SECTION.
689 * symtab.h (struct general_symbol_info) <section>: Update comment.
690 <obj_section>: Remove.
691 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
692 (SYMBOL_OBJFILE): New macro.
693
694 2013-04-08 Tom Tromey <tromey@redhat.com>
695
696 * coffread.c (record_minimal_symbol): Update.
697 * dbxread.c (record_minimal_symbol): Update.
698 * elfread.c (record_minimal_symbol): Update.
699 * machoread.c (macho_symtab_add_minsym): Update.
700 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
701 Update.
702 * minsyms.c (prim_record_minimal_symbol): Update.
703 (prim_record_minimal_symbol_full): Remove 'bfd_section'
704 argument.
705 (prim_record_minimal_symbol_and_info): Likewise.
706 * minsyms.h (prim_record_minimal_symbol_full)
707 (prim_record_minimal_symbol_and_info): Update.
708 * symtab.c (allocate_symbol, initialize_symbol)
709 (allocate_template_symbol): Initialize SYMBOL_SECTION.
710 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
711 Update.
712
713 2013-04-08 Tom Tromey <tromey@redhat.com>
714
715 PR symtab/8423:
716 * solib-som.c (som_solib_section_offsets): Use BFD section
717 indices. Set offsets for all sections.
718 * somread.c (som_symtab_read): Compute BFD section for
719 symbol. Use prim_record_minimal_symbol_and_info.
720 (som_symfile_read): Fix comment.
721 (struct find_section_offset_arg): New.
722 (find_section_offset, set_section_index): New functions.
723 (som_symfile_offsets): Use set_section_index to compute
724 section indices.
725
726 2013-04-08 Tom Tromey <tromey@redhat.com>
727
728 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
729 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
730 gdb_bfd_section_index.
731 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
732 New functions.
733 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
734 Declare.
735 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
736 Update.
737 * objfiles.c (add_to_objfile_sections_full): New function.
738 (add_to_objfile_sections): Use it.
739 (build_section_table): Rewrite.
740 (objfile_relocate1): Use gdb_bfd_section_index. Update.
741 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
742 (struct objfile) <sections>: Update comment.
743 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
744 is NULL.
745 (ALL_OBJSECTIONS): Use it.
746 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
747 * solib-frv.c (frv_relocate_main_executable): Update.
748 * solib-target.c (solib_target_relocate_section_addresses):
749 Use gdb_bfd_section_index.
750 * symfile.c (build_section_addr_info_from_section_table):
751 Use gdb_bfd_section_index.
752 (build_section_addr_info_from_bfd, place_section): Likewise.
753 * symtab.c (fixup_section): Update.
754 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
755
756 2013-04-08 Tom Tromey <tromey@redhat.com>
757
758 * minsyms.h (struct bound_minimal_symbol): New.
759 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
760 Remove objfile argument.
761 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
762 Return bound_minimal_symbol.
763 * minsyms.c (lookup_minimal_symbol_by_pc_1)
764 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
765 Return bound_minimal_symbol.
766 (in_gnu_ifunc_stub): Update.
767 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
768 Remove 'objfile_p' argument.
769 (lookup_solib_trampoline_symbol_by_pc): Update.
770 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
771 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
772 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
773 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
774 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
775 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
776 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
777 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
778 stack.c, symtab.c, tui/tui-disasm.c: Update.
779
780 2013-04-08 Tom Tromey <tromey@redhat.com>
781
782 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
783 Use symbol's obstack, not an objfile.
784 * coffread.c (process_coff_symbol): Update.
785 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
786 * jv-lang.c (add_class_symbol): Update.
787 * mdebugread.c (new_symbol): Update.
788 * minsyms.c (prim_record_minimal_symbol_full)
789 (terminate_minimal_symbol_table): Update.
790 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
791 * stabsread.c (define_symbol, read_enum_type): Update.
792 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
793 Handle Ada specially.
794 (symbol_set_language): Add 'obstack' argument.
795 (symbol_set_names): Update.
796 (symbol_natural_name, symbol_demangled_name): Always use
797 ada_decode_symbol.
798 * symtab.h (struct general_symbol_info)
799 <language_specific::obstack>: New field.
800 <ada_mangled>: New field.
801 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
802 (symbol_set_language): Update.
803
804 2013-04-08 Tom Tromey <tromey@redhat.com>
805
806 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
807 Take an obstack, not an objfile.
808 (symbol_set_names): Update.
809 * symtab.h (symbol_set_demangled_name): Update.
810
811 2013-04-08 Tom Tromey <tromey@redhat.com>
812
813 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
814 allocate_symbol.
815 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
816 (read_func_scope): Call allocate_template_symbol.
817 (new_symbol_full): Call allocate_symbol.
818 * jit.c (finalize_symtab): Call allocate_symbol.
819 * jv-lang.c (add_class_symbol): Call allocate_symbol.
820 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
821 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
822 (common_block_end): Call allocate_symbol.
823 * symtab.c (allocate_symbol, initialize_symbol)
824 (allocate_template_symbol): New functions.
825 * symtab.c (allocate_symbol, initialize_symbol)
826 (allocate_template_symbol): Declare.
827 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
828
829 2013-04-08 Pedro Alves <palves@redhat.com>
830 Keith Seitz <keiths@redhat.com>
831
832 * breakpoint.c (create_breakpoint): Rename
833 "parse_condition_and_thread" parameter to "parse_arg". Update
834 describing comment. If !PARSE_ARG, then error out if ARG is not
835 the empty string after extracting the location.
836 * breakpoint.h (create_breakpoint): Rename
837 "parse_condition_and_thread" parameter to "parse_arg".
838
839 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
840
841 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
842
843 2013-04-07 Yao Qi <yao@codesourcery.com>
844
845 * remote.c (remote_trace_find): Change type of parameters 'addr1'
846 and 'addr2' to CORE_ADDR.
847 * target.c (update_current_target): Update.
848 * target.h (struct target_ops) <to_trace_find>: Change parameter
849 type to CORE_ADDR.
850 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
851 'addr2' to CORE_ADDR.
852 (tfile_trace_find): Likewise.
853 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
854 Change local variable 'addr' to type CORE_ADDR.
855 * tracepoint.h (tfind_1): Update declaration.
856
857 2013-04-06 Eli Zaretskii <eliz@gnu.org>
858
859 * windows-nat.c (windows_get_absolute_argv0): Move from here...
860 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
861 Include main.h.
862
863 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
864 here...
865 * main.h (windows_get_absolute_argv0): ...to here.
866
867 2013-04-05 Doug Evans <dje@google.com>
868
869 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
870 (read_cutu_die_from_dwo): Add comments.
871 (read_structure_type): Update comment.
872 (read_enumeration_type, read_namespace_type): Update comment.
873 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
874
875 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
876
877 Convert man pages to texinfo, new gdbinit.5 texinfo page.
878 * Makefile.in (gdb.z): Remove.
879 (install-only): Remove $(man1dir) and gdb.1 installation.
880 * gdb.1: Remove.
881
882 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
883
884 Fix compatibility with Linux kernel 3.8.3.
885 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
886 to more inner block. Remove parsing of NUMBER from outer block.
887 Parse NUMBER only if KEYWORD has been identified.
888
889 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
890
891 Fix variable name shadowing.
892 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
893 filename to mapsfilename and update its uses.
894
895 2013-04-05 Eli Zaretskii <eliz@gnu.org>
896
897 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
898 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
899 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
900 details of the problem.
901
902 2013-04-04 Pedro Alves <palves@redhat.com>
903 Hui Zhu <hui@codesourcery.com>
904
905 * breakpoint.c (validate_commands_for_breakpoint): If validating a
906 tracepoint, reset its STEP_COUNT and call validate_actionline.
907
908 2013-04-03 Doug Evans <dje@google.com>
909
910 * dwarf2read.c (read_die_and_siblings_1): Renamed from
911 read_die_and_siblings.
912 (read_die_and_siblings): New function.
913 (read_cutu_die_from_dwo): Dump die if requested.
914 (read_die_and_children): Call read_full_die_1 and
915 read_die_and_siblings_1.
916 (read_full_die): Dump die if requested.
917
918 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
919
920 * dwarf2read.c (struct dwo_file): New member comp_dir.
921 Rename member name to dwo_name. All uses updated.
922 (hash_dwo_file): Include comp_dir in computation.
923 (eq_dwo_file): Ditto.
924 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
925 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
926
927 * psymtab.c (read_psymtabs_with_fullname): Don't call
928 psymtab_to_fullname if the basenames are different.
929
930 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
931
932 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
933 New entry about "fullname" presence.
934
935 2013-04-03 Pedro Alves <palves@redhat.com>
936
937 * NEWS: Mention x86_64/Cygwin as new native configuration.
938
939 2013-04-02 Doug Evans <dje@google.com>
940
941 * dwarf2read.c (read_structure_type): Fix typo in comment.
942
943 2013-04-02 Pedro Alves <palves@redhat.com>
944
945 * NEWS: Mention "set/show debug aarch64", "set/show debug
946 coff-pe-read" and "set/show debug mach-o".
947
948 2013-04-02 Pedro Alves <palves@redhat.com>
949
950 * NEWS: Mention "set/show remote trace-buffer-size-packet".
951
952 2013-04-02 Eli Zaretskii <eliz@gnu.org>
953
954 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
955 gdb_string.h is now in common/.
956
957 2013-04-02 Pedro Alves <palves@redhat.com>
958
959 * NEWS: Move "set debug notification" and "set trace-buffer-size"
960 under "New options".
961
962 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
963
964 Revert this patch:
965 PR gdb/15275
966 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
967
968 2013-04-02 Pedro Alves <palves@redhat.com>
969
970 PR gdb/15275
971
972 * remote.c (send_interrupt_sequence): Use remote_serial_write.
973 (remote_serial_write): New function.
974 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
975
976 2013-04-01 Jiong Wang <jiwang@tilera.com>
977
978 * NEWS: Mention TILE-Gx in "New native configurations" and
979 "New targets" sections.
980
981 2013-04-01 Doug Evans <dje@google.com>
982
983 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
984 (process_enumeration_scope): Simplify.
985
986 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
987 type_unit_group ...
988 (struct signatured_type): ... to here.
989 (sig_type_ptr): New typedef.
990 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
991 out of union 't'. All uses updated.
992 (dw2_get_file_names_reader): Assert not called for a type unit.
993 (dw2_get_file_names): Assert not called for a type unit or type
994 unit group.
995 (build_type_psymtabs_reader): Assert called for a type unit.
996 (build_type_psymtab_dependencies): Assert called for a type unit group.
997
998 * dwarf2read.c (free_dwo_file): Add comment.
999 (dwarf2_per_objfile_free): Unref dwp bfd.
1000
1001 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
1002
1003 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
1004 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
1005 (read_pe_exported_syms): Remove unused 'exportix'.
1006 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
1007 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
1008 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
1009
1010 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
1011
1012 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
1013 (print_it_watchpoint): Remove unused 'bl'.
1014 (say_where): Remove unused 'uiout'.
1015 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
1016 (bkpt_breakpoint_hit): Remove unused 'b'.
1017 (internal_bkpt_print_it): Remove unused 'uiout'.
1018 * buildsym.c (augment_type_symtab): Remove unused 'i'.
1019
1020 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1021
1022 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
1023 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
1024
1025 2013-03-29 Doug Evans <dje@google.com>
1026
1027 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
1028 Delete arg is_dwp. All callers updated.
1029 (open_dwp_file): New function.
1030 (open_and_init_dwp_file): Call it.
1031 (get_dwp_file): New function.
1032 (lookup_dwo_cutu): Call it.
1033
1034 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
1035 unnecessary, cleanup.
1036
1037 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
1038
1039 * dwarf2read.c (read_cutu_die_from_dwo): New function.
1040 (lookup_dwo_unit): New function.
1041 (init_cutu_and_read_dies): Move DWO handling to new functions.
1042
1043 * dwarf2read.c (struct signatured_type): Tweak comment.
1044 (struct dwo_unit): Tweak comment.
1045 (create_debug_types_hash_table): Tweak comment. Reformat long line.
1046 (create_dwo_debug_info_hash_table): Tweak comment.
1047 (dwarf2_per_cu_offset_and_type): Tweak comment.
1048
1049 * dwarf2read.c (lookup_signatured_type): Remove complaint about
1050 missing .debug_types section.
1051
1052 2013-03-29 Yao Qi <yao@codesourcery.com>
1053
1054 * corelow.c: Include "completer.h".
1055 (_initialize_corelow): Call add_target_with_completer with
1056 argument 'filename_completer'.
1057 * tracepoint.c: Likewise.
1058 * exec.c (_initialize_exec): Likewise.
1059 * target.c (add_target): Rename to ...
1060 (add_target_with_completer): ... this. Call set_cmd_completer
1061 if parameter completer is not NULL.
1062 (add_target): New.
1063 * target.h: Include "command.h".
1064 (add_target_with_completer): Declare it.
1065
1066 2013-03-28 Joel Brobecker <brobecker@adacore.com>
1067
1068 * coffread.c (is_import_fixup_symbol): New function.
1069 (record_minimal_symbol): Use is_import_fixup_symbol to
1070 detect import fixup symbols, and discard them.
1071
1072 2013-03-28 Doug Evans <dje@google.com>
1073
1074 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
1075 types hash table until we know we need it.
1076
1077 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
1078 index numbers.
1079
1080 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
1081 All callers updated.
1082 (dw2_print_stats): Print #read CUs too.
1083 (dump_die_shallow): Print signatured types better.
1084
1085 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
1086 info_or_types_section to section. All uses updated.
1087 (struct dwo_unit): Ditto.
1088
1089 2013-03-28 Pedro Alves <palves@redhat.com>
1090
1091 * NEWS (New options): New section.
1092 (New options): Mention set/show remote trace-status-packet.
1093 * remote.c (PACKET_qTStatus): New enumeration value.
1094 (remote_get_trace_status): Skip sending qTStatus if the packet is
1095 disabled. Use packet_ok.
1096 (_initialize_remote): Register a configuration command for
1097 qTStatus packet.
1098
1099 2013-03-28 Doug Evans <dje@google.com>
1100
1101 * symfile.c (find_separate_debug_file): Add comment.
1102 (terminate_after_last_dir_separator): Tweak comment.
1103
1104 * dwarf2read.c (create_partial_symtab): Add forward decl.
1105 (create_partial_symtab): Move to be closer to other psymtab functions.
1106 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
1107
1108 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
1109 (compute_symtab_includes): Remove unnecessary forward declaration.
1110 (die_needs_namespace): Add comment marking group of functions for
1111 dwarf2 name computation.
1112
1113 * typeprint.c (_initialize_typeprint): Improve type help text.
1114
1115 * python/python.c (finish_python_initialization): Provide suggestion
1116 for how to tell gdb to find its python files.
1117
1118 2013-03-28 Pedro Alves <palves@redhat.com>
1119
1120 PR gdb/15294
1121
1122 * source.c (_initialize_source): Change back "set listsize" to an
1123 integer command.
1124
1125 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
1126
1127 PR gdb/15275
1128 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
1129
1130 2013-03-27 Pedro Alves <palves@redhat.com>
1131
1132 * top.c (history_size): Rename to ...
1133 (history_size_setshow_var): ... this. Add comment.
1134 (show_commands): Use readline's 'history_length' instead of
1135 computing the history length by calling history_get in a loop.
1136 (set_history_size_command): Error out for sizes over INT_MAX.
1137 Restore previous history size on invalid size.
1138 (init_history): If HISTSIZE is negative, leave the history size as
1139 zero. Add comments.
1140 (init_main): Adjust.
1141
1142 2013-03-27 Pedro Alves <palves@redhat.com>
1143
1144 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
1145 coff_pe_read" command to "set debug coff-pe-read".
1146
1147 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
1148
1149 * record.c (command_size_to_target_size): Fix size comparison.
1150 Change parameter type from pointer to integer to integer.
1151 Update all users.
1152
1153 2013-03-27 Pierre Muller <muller@sourceware.org>
1154
1155 * windows-nat.c (handle_output_debug_string): Avoid typecast
1156 from integer of different size warning.
1157
1158 2013-03-26 Joel Brobecker <brobecker@adacore.com>
1159
1160 * windows-nat.c (handle_output_debug_string): Add empty line
1161 after local block variable definition.
1162
1163 2013-03-26 Pedro Alves <palves@redhat.com>
1164
1165 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
1166 (net_open): Make 'polls' local unsigned.
1167
1168 2013-03-26 Pedro Alves <palves@redhat.com>
1169
1170 * remote.c (_initialize_remote): Make "set remoteaddresssize"
1171 a zuinteger command instead of uinteger.
1172
1173 2013-03-26 Pedro Alves <palves@redhat.com>
1174
1175 * record-full.c (record_full_insn_num): Make it unsigned.
1176 (record_full_check_insn_num, record_full_message)
1177 (record_full_registers_change, record_full_xfer_partial): Remove
1178 record_full_insn_max_num check (it's always != 0).
1179 (record_full_info, record_full_restore): Use %u as format string.
1180 (): Use %u as format string.
1181 (set_record_full_insn_max_num): Remove record_full_insn_max_num
1182 check (it's always != 0).
1183
1184 2013-03-26 Pedro Alves <palves@redhat.com>
1185
1186 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
1187 and "set dcache size" commands zuinteger instead of uinteger.
1188
1189 2013-03-26 Pedro Alves <palves@redhat.com>
1190
1191 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
1192 command zuinteger instead of uinteger.
1193
1194 2013-03-26 Pedro Alves <palves@redhat.com>
1195
1196 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
1197 zuinteger instead of uinteger.
1198
1199 2013-03-26 Pedro Alves <palves@redhat.com>
1200
1201 * record.c (record_insn_history_size_setshow_var)
1202 (record_call_history_size_setshow_var): New globals.
1203 (command_size_to_target_size): New function.
1204 (cmd_record_insn_history, cmd_record_call_history): Use
1205 command_size_to_target_size instead of cast.
1206 (validate_history_size, set_record_insn_history_size)
1207 (set_record_call_history_size): New functions.
1208 (_initialize_record): Install set_record_insn_history_size and
1209 set_record_call_history_size as "set" hooks of "set record
1210 instruction-history-size" and "set record
1211 function-call-history-size".
1212
1213 2013-03-26 Pedro Alves <palves@redhat.com>
1214
1215 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
1216 use with history_max_entries use. Remove FIXME note.
1217
1218 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
1219
1220 * record-btrace.c (record_btrace_close): Call
1221 record_btrace_auto_disable.
1222
1223 2013-03-25 Joel Brobecker <brobecker@adacore.com>
1224
1225 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
1226
1227 2013-03-25 Doug Evans <dje@google.com>
1228
1229 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
1230
1231 2013-03-25 Tom Tromey <tromey@redhat.com>
1232
1233 PR symtab/11462:
1234 * c-exp.y (exp): Add new productions for destructors after '.' and
1235 '->'.
1236 (write_destructor_name): New function.
1237
1238 2013-03-25 Tom Tromey <tromey@redhat.com>
1239
1240 PR c++/9197:
1241 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
1242 value_struct_elt, not lookup_struct_elt_type.
1243 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
1244 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
1245 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
1246
1247 2013-03-25 Yao Qi <yao@codesourcery.com>
1248
1249 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
1250 instead of '_mkdir'.
1251
1252 2013-03-23 Eli Zaretskii <eliz@gnu.org>
1253
1254 * windows-nat.c (windows_get_absolute_argv0): New function.
1255 * windows-nat.h: Add its prototype.
1256
1257 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
1258 Use IS_DIR_SEPARATOR instead of looking for a character inside
1259 SLASH_STRING. Include filenames.h.
1260 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
1261 relocate_gdb_directory works when passed gdb_program_name.
1262 Include windows-nat.h.
1263
1264 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1265
1266 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
1267 * remote.c (trace_error): Remove the special handling of '2'.
1268 (readchar) <SERIAL_EOF>
1269 (readchar) <SERIAL_ERROR>
1270 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
1271 (remote_get_trace_status): Call throw_exception if EX is
1272 TARGET_CLOSE_ERROR.
1273 * utils.c (perror_with_name): Rename to ...
1274 (throw_perror_with_name): ... here. New parameter errcode, describe it
1275 in the function comment.
1276 (perror_with_name): New function wrapper.
1277 * utils.h (enum errors): New stub declaration.
1278 (throw_perror_with_name): New declaration.
1279
1280 2013-03-22 Pedro Alves <palves@redhat.com>
1281 Yao Qi <yao@codesourcery.com>
1282 Mark Kettenis <kettenis@gnu.org>
1283
1284 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
1285 Don't let the user set the value to UINT_MAX directly.
1286 <var_integer>: Don't let the user set the value to INT_MAX
1287 directly.
1288
1289 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1290
1291 * remote.c (remote_unpush_target): New function.
1292 (remote_open_1): Remove two pop_target calls, update one comment, add
1293 comment to target_preopen call. Replace pop_target call by
1294 remote_unpush_target call.
1295 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
1296 pop_target calls by remote_unpush_target calls.
1297
1298 2013-03-22 Pedro Alves <palves@redhat.com>
1299
1300 * linux-nat.c (linux_child_follow_fork): Don't call
1301 linux_enable_event_reporting.
1302 (linux_handle_extended_wait): Don't call
1303 linux_enable_event_reporting.
1304
1305 2013-03-22 Pedro Alves <palves@redhat.com>
1306
1307 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
1308 use it to rewrite the trampoline buffers with type gdb_byte[], and
1309 undefine the macro. Remove char* cast.
1310
1311 2013-03-21 Doug Evans <dje@google.com>
1312
1313 New commands "mt set per-command {space,time,symtab} {on,off}".
1314 * NEWS: Add entry.
1315 * event-top.c: #include "maint.h".
1316 * main.c: #include "maint.h".
1317 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
1318 timeval-utils.h, maint.h, cli/cli-setshow.h.
1319 (per_command_time, per_command_space): New static globals.
1320 (per_command_symtab): New static global.
1321 (per_command_setlist, per_command_showlist): New static globals.
1322 (struct cmd_stats): Move here from utils.c.
1323 (set_per_command_time): Renamed from set_display_time in utils.c
1324 and moved here. All callers updated.
1325 (set_per_command_space): Renamed from set_display_space in utils.c
1326 and moved here. All callers updated.
1327 (count_symtabs_and_blocks): New function.
1328 (report_command_stats): Moved here from utils.c. Add support for
1329 printing symtab stats. Only print data if enabled before command
1330 executed.
1331 (make_command_stats_cleanup): Ditto.
1332 (sert_per_command_cmd, show_per_command_cmd): New functions.
1333 (_initialize_maint_cmds): Add new commands
1334 mt set per-command {space,time,symtab} {on,off}.
1335 * maint.h: New file.
1336 * top.c: #include "maint.h".
1337 * utils.c (reset_prompt_for_continue_wait_time): New function.
1338 (get_prompt_for_continue_wait_time): New function.
1339 * utils.h (reset_prompt_for_continue_wait_time): Declare
1340 (get_prompt_for_continue_wait_time): Declare.
1341 (make_command_stats_cleanup): Moved to maint.h.
1342 (set_display_time, set_display_space): Moved to maint.h and renamed
1343 to set_per_command_time, set_per_command_space.
1344 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
1345 parse_binary_operation and made non-static. Don't call error,
1346 just return an error marker. All callers updated.
1347 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
1348
1349 2013-03-21 Tom Tromey <tromey@redhat.com>
1350
1351 * symfile.c (alloc_section_addr_info): Update header. Don't set
1352 'num_sections' field.
1353 (build_section_addr_info_from_section_table): Set 'num_sections'.
1354 (build_section_addr_info_from_bfd): Likewise.
1355 (build_section_addr_info_from_objfile): Remove dead loop
1356 condition.
1357 (free_section_addr_info): Unconditionally call xfree.
1358 (relative_addr_info_to_section_offsets, addrs_section_sort)
1359 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
1360 condition.
1361 (syms_from_objfile_1): Remove dead 'if' condition. Check
1362 'num_sections'.
1363 (add_symbol_file_command): Set 'num_sections'.
1364 * symfile-mem.c (symbol_file_add_from_memory): Set
1365 'num_sections'.
1366 * somread.c (som_symfile_offsets): Remove dead loop condition.
1367 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
1368 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
1369
1370 2013-03-21 Tom Tromey <tromey@redhat.com>
1371
1372 * tracepoint.h (decode_agent_options): Add 'trace_string'
1373 argument.
1374 * tracepoint.c (decode_agent_options): Add 'trace_string'
1375 argument.
1376 (validate_actionline): Update.
1377 (collect_symbol): Add 'trace_string' argument.
1378 (struct add_local_symbols_data) <trace_string>: New field.
1379 (do_collect_symbol): Update.
1380 (add_local_symbols): Add 'trace_string' argument.
1381 (encode_actions_1): Update.
1382 (trace_dump_actions): Update.
1383 * dwarf2loc.c (access_memory): Update.
1384 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
1385 * ax-general.c (new_agent_expr): Update.
1386 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
1387 (gen_trace_for_return_address): Add argument.
1388 (trace_kludge, trace_string_kludge): Remove.
1389 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
1390 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
1391 (gen_trace_for_var): Add 'trace_string' argument.
1392 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
1393 (gen_printf, agent_eval_command_one): Update.
1394
1395 2013-03-21 Tom Tromey <tromey@redhat.com>
1396
1397 PR exp/15109:
1398 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
1399 Handle FILENAME token.
1400
1401 2013-03-21 Tom Tromey <tromey@redhat.com>
1402
1403 * c-exp.y (YYPRINT): Define.
1404 (c_print_token): New function.
1405
1406 2013-03-21 Tom Tromey <tromey@redhat.com>
1407
1408 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
1409
1410 2013-03-21 Yao Qi <yao@codesourcery.com>
1411
1412 * ctf.c: Include "gdb_stat.h".
1413 [USE_WIN32API]: New macro 'mkdir'.
1414 (ctf_start): Use permission bits macros if they are defined.
1415
1416 2013-03-20 Keith Seitz <keiths@redhat.com>
1417
1418 * breakpoint.h (struct breakpoint): Add comment to
1419 extra_string indicating that this member is mallod'd.
1420 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
1421
1422 2013-03-20 Pedro Alves <palves@redhat.com>
1423
1424 PR gdb/15289
1425
1426 * cli/cli-setshow.c (do_set_command)
1427 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
1428 the result of parsing the command argument. Throw error if the
1429 value is greater than UINT_MAX. Print the invalid value with
1430 plongest.
1431 <var_integer, var_zinteger>: Use LONGEST for variable holding the
1432 result of parsing the command argument. Throw error if the value
1433 is greater than INT_MAX, not greater or equal. Also throw error
1434 if the value is less than INT_MIN. Print the invalid value with
1435 plongest.
1436 <var_zuinteger_unlimited>: Throw error if the value is greater
1437 than INT_MAX, not greater or equal.
1438 (do_show_command) <var_integer, var_zinteger,
1439 var_zuinteger_unlimited>: Use %d for printing int, not %u.
1440
1441 2013-03-20 Tom Tromey <tromey@redhat.com>
1442
1443 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
1444 if possible.
1445 * dwarf2read.c (read_func_scope): Remove old FIXME.
1446 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
1447 not LOC_COMPUTED.
1448 * findvar.c (symbol_read_needs_frame, default_read_var_value):
1449 Unconditionally call via computed ops, if possible.
1450 * printcmd.c (address_info): Unconditionally call via computed ops,
1451 if possible.
1452 * stack.c (read_frame_arg): Unconditionally call via computed ops,
1453 if possible.
1454 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
1455 * tracepoint.c (scope_info): Unconditionally call via computed ops,
1456 if possible.
1457
1458 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1459 Tom Tromey <tromey@redhat.com>
1460
1461 PR symtab/8421:
1462 * coffread.c (coff_register_index): New global.
1463 (process_coff_symbol, coff_read_enum_type): Set
1464 SYMBOL_ACLASS_INDEX.
1465 (_initialize_coffread): Initialize new global.
1466 * dwarf2loc.c (locexpr_find_frame_base_location)
1467 (dwarf2_block_frame_base_locexpr_funcs)
1468 (loclist_find_frame_base_location)
1469 (dwarf2_block_frame_base_loclist_funcs): New.
1470 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
1471 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
1472 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
1473 (dwarf2_block_frame_base_loclist_funcs): New.
1474 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
1475 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
1476 globals.
1477 (read_func_scope): Update.
1478 (fixup_go_packaging, mark_common_block_symbol_computed)
1479 (var_decode_location, new_symbol_full, dwarf2_const_value):
1480 Set SYMBOL_ACLASS_INDEX.
1481 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
1482 (_initialize_dwarf2_read): Initialize new globals.
1483 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
1484 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
1485 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
1486 globals.
1487 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
1488 (_initialize_mdebugread): Initialize new globals.
1489 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
1490 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
1491 (stab_register_index, stab_regparm_index): New globals.
1492 (define_symbol, read_enum_type, common_block_end): Set
1493 SYMBOL_ACLASS_INDEX.
1494 (_initialize_stabsread): Initialize new globals.
1495 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
1496 globals.
1497 (MAX_SYMBOL_IMPLS): New define.
1498 (register_symbol_computed_impl, register_symbol_block_impl)
1499 (register_symbol_register_impl)
1500 (initialize_ordinary_address_classes): New functions.
1501 (_initialize_symtab): Call initialize_ordinary_address_classes.
1502 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
1503 (struct symbol_impl): New.
1504 (SYMBOL_ACLASS_BITS): New define.
1505 (struct symbol) <aclass, ops>: Remove fields.
1506 <aclass_index>: New field.
1507 (symbol_impls): Declare.
1508 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
1509 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
1510 (register_symbol_computed_impl, register_symbol_block_impl)
1511 (register_symbol_register_impl): Declare.
1512 (struct symbol_computed_ops): Add location_has_loclist.
1513 (struct symbol_block_ops): New.
1514 (SYMBOL_BLOCK_OPS): New.
1515 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
1516
1517 2013-03-20 Tom Tromey <tromey@redhat.com>
1518
1519 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
1520 (print_partial_symbols, recursively_search_psymtabs): Use
1521 PSYMBOL_CLASS.
1522
1523 2013-03-20 Pierre Muller <muller@sourceware.org>
1524
1525 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
1526 addtion, subtraction, multiplication and division binary operator.
1527
1528 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1529
1530 Code cleanup.
1531 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
1532 * bsd-kvm.c (bsd_kvm_close): Likewise.
1533 * bsd-uthread.c (bsd_uthread_close): Likewise.
1534 * corelow.c (core_close): Likewise.
1535 (core_close_cleanup): Remove parameter quitting from a caller.
1536 * event-top.c (async_disconnect): Likewise.
1537 * exec.c (exec_close_1): Remove parameter quitting.
1538 * go32-nat.c (go32_close): Likewise.
1539 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
1540 parameter quitting from a caller.
1541 * mips-linux-nat.c (super_close): Remove parameter quitting from the
1542 variable.
1543 (mips_linux_close): Remove parameter quitting. Remove parameter
1544 quitting from a caller.
1545 * monitor.c (monitor_close): Remove parameter quitting.
1546 * monitor.h (monitor_close): Likewise.
1547 * record-btrace.c (record_btrace_close): Likewise.
1548 * record-full.c (record_full_close): Likewise.
1549 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
1550 it also from fprintf_unfiltered.
1551 * remote-mips.c (mips_close): Remove parameter quitting.
1552 (mips_detach): Remove parameter quitting from a caller.
1553 * remote-sim.c (gdbsim_close): Remove parameter quitting.
1554 (gdbsim_close): Remove duplicate function comment. Remove parameter
1555 quitting and remove it also from printf_filtered.
1556 * remote.c (remote_close): Remove parameter quitting.
1557 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
1558 * target.c (update_current_target): Remove parameter int from to_close
1559 de_fault.
1560 (push_target, unpush_target, pop_target): Remove parameter quitting from
1561 a caller.
1562 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
1563 Remove parameter quitting from a caller.
1564 (target_preopen): Remove parameter quitting from a caller.
1565 (target_close): Remove parameter quitting. Remove parameter quitting
1566 from a caller two times. Remove parameter quitting also from
1567 fprintf_unfiltered.
1568 * target.h (struct target_ops): Remove parameter quitting and as int
1569 from fields to_xclose and to_close.
1570 (extern struct target_ops current_target):
1571 (target_close, pop_all_targets): Remove parameter quitting. Update the
1572 comment.
1573 (pop_all_targets_above): Remove parameter quitting.
1574 * top.c (quit_target): Remove parameter quitting from a caller.
1575 * tracepoint.c (tfile_close): Remove parameter quitting.
1576 * windows-nat.c (windows_close): Remove parameter quitting.
1577
1578 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
1579
1580 * windows-nat.c (handle_output_debug_string): Replace call
1581 to string_to_core_addr with call to strtoull.
1582
1583 2013-03-20 Yao Qi <yao@codesourcery.com>
1584
1585 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
1586 and write it to CTF metadata.
1587
1588 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
1589
1590 * windows-nat.c (handle_output_debug_string): Change type of n to
1591 SIZE_T to avoid crash on 64 bit systems.
1592
1593 2013-03-17 Eli Zaretskii <eliz@gnu.org>
1594
1595 * python/python-internal.h (HAVE_SNPRINTF)
1596 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
1597 about redefinition of snprintf by pyerrors.h.
1598
1599 2013-03-15 Steve Ellcey <sellcey@mips.com>
1600
1601 * remote-sim.c (sim_command_completer): Make char arguments const.
1602
1603 2013-03-15 Tom Tromey <tromey@redhat.com>
1604
1605 PR c++/15116:
1606 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
1607
1608 2013-03-14 Tom Tromey <tromey@redhat.com>
1609
1610 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
1611 New fields.
1612 (get_file_crc): Move from symfile.c.
1613 (gdb_bfd_crc): New function.
1614 * gdb_bfd.h (gdb_bfd_crc): Declare.
1615 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
1616 * symfile.c (get_file_crc): Move to gdb_bfd.c.
1617 (separate_debug_file_exists): Use gdb_bfd_crc.
1618
1619 2013-03-14 Tom Tromey <tromey@redhat.com>
1620
1621 * symfile.c (get_debug_link_info): Remove.
1622 (find_separate_debug_file_by_debuglink): Use
1623 bfd_get_debug_link_info.
1624
1625 2013-03-14 Tom Tromey <tromey@redhat.com>
1626
1627 * symtab.c (error_in_psymtab_expansion): New function.
1628 (lookup_symbol_aux_quick)
1629 (basic_lookup_transparent_type_quick): Remove "last resort"
1630 code. Use error_in_psymtab_expansion.
1631
1632 2013-03-14 Doug Evans <dje@google.com>
1633 Jan Kratochvil <jan.kratochvil@redhat.com>
1634
1635 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
1636 any successful compare_filenames_for_search or FILENAME_CMP.
1637 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
1638 * symtab.c (iterate_over_some_symtabs): Likewise.
1639
1640 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1641
1642 * source.c (print_source_lines_base): Make a local copy of
1643 symtab_to_fullname.
1644
1645 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
1646 Jan Kratochvil <jan.kratochvil@redhat.com>
1647
1648 * source.c (print_source_lines_base): Suppress "file" for TUI.
1649
1650 2013-03-14 Keith Seitz <keiths@redhat.com>
1651 Alan Matsuoka <alanm@redhat.com>
1652
1653 PR c++/15203
1654 PR c++/15210
1655 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
1656 TYPE_CODE_METHOD.
1657 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
1658 symbols.
1659
1660 2013-03-14 Yao Qi <yao@codesourcery.com>
1661
1662 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
1663 status to tfile if trace is stopped by command 'tstop'.
1664
1665 2013-03-14 Yao Qi <yao@codesourcery.com>
1666
1667 * tracepoint.c (tfile_write_status): Write trace notes and user
1668 name into tfile if they are not NULL.
1669
1670 2013-03-14 Hui Zhu <hui@codesourcery.com>
1671 Yao Qi <yao@codesourcery.com>
1672
1673 * Makefile.in (REMOTE_OBS): Add ctf.o.
1674 (SFILES): Add ctf.c.
1675 (HFILES_NO_SRCDIR): Add ctf.h.
1676 * ctf.c, ctf.h: New files.
1677 * tracepoint.c: Include 'ctf.h'.
1678 (collect_pseudocommand): Remove static.
1679 (trace_save_command): Parse option "-ctf".
1680 Produce different trace file writers per option.
1681 Adjust output message.
1682 (trace_save_tfile, trace_save_ctf): New.
1683 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
1684 * mi/mi-main.c: Include 'ctf.h'.
1685 (mi_cmd_trace_save): Handle option '-ctf'. Call either
1686 trace_save_tfile or trace_save_ctf.
1687 * NEWS: Mention these changes.
1688
1689 2013-03-14 Yao Qi <yao@codesourcery.com>
1690
1691 * tracepoint.c (trace_file_writer_xfree): New.
1692 (struct tfile_writer_data): New.
1693 (tfile_dtor, tfile_can_target_save, tfile_start): New.
1694 (tfile_write_header, tfile_write_regblock_type): New.
1695 (tfile_write_status, tfile_write_uploaded_tsv): New.
1696 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
1697 (tfile_write_raw_data, (tfile_end): New.
1698 (tfile_write_ops): New global variable.
1699 (TRACE_WRITE_R_BLOCK): New macro.
1700 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
1701 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
1702 (TRACE_WRITE_V_BLOCK): New macro.
1703 (trace_save): Add extra one parameter WRITER. Make it static.
1704 Use WRITER to writer trace.
1705 (tfile_trace_file_writer_new): New.
1706 (trace_save_command): Caller update.
1707 (trace_save_tfile): Write trace data in TFILE format.
1708 * tracepoint.h (struct trace_frame_write_ops): New.
1709 (struct trace_file_write_ops): New.
1710 (struct trace_file_writer): New.
1711 (trace_save): Remove its declaration.
1712 (trace_save_tfile): Declare it.
1713 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
1714 instead of trace_save.
1715
1716 2013-03-13 Pedro Alves <palves@redhat.com>
1717
1718 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
1719
1720 2013-03-13 Pedro Alves <palves@redhat.com>
1721
1722 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
1723 commented out code.
1724 * demangle.c (current_demangling_style_string): Make it const.
1725 (set_demangling_command): Assert the demangling style is known.
1726 Remove all handling of unknown styles. Set
1727 'current_demangling_style_string' to an element of the
1728 demangling_style_names array.
1729 (set_demangling_style): Delete.
1730 (_initialize_demangler): Set current_demangling_style_string to the
1731 element of the demangling_style_names array that corresponds to
1732 the default demangling style. Remove FIXME note. Don't call
1733 set_demangling_style.
1734 * gdb-demangle.h (set_demangling_style): Remove declaration.
1735
1736 2013-03-13 Pedro Alves <palves@redhat.com>
1737
1738 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
1739 fields const.
1740 (ada_make_symbol_completion_list): Make "text0" parameter const.
1741 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
1742 * breakpoint.c (condition_completer): Make "text" and "word"
1743 parameters const. Adjust.
1744 (check_tracepoint_command): Adjust to validate_actionline
1745 prototype change.
1746 (catch_syscall_completer): Make "text" and "word" parameters
1747 const.
1748 * cli/cli-cmds.c (show_user): Make "comname" local const.
1749 (valid_command_p): Make "command" parameter const.
1750 (alias_command): Make "alias_prefix" and "command_prefix" locals
1751 const.
1752 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
1753 (add_alias_cmd): Make "name" and "oldname" parameters const.
1754 Adjust. No longer make copy of OLDNAME.
1755 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
1756 (add_setshow_cmd_full, add_setshow_enum_cmd)
1757 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
1758 (add_setshow_filename_cmd, add_setshow_string_cmd)
1759 (add_setshow_string_noescape_cmd)
1760 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
1761 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
1762 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
1763 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
1764 Make "name" parameter const.
1765 (help_cmd): Rename "command" parameter to "arg". New const local
1766 "command".
1767 (find_cmd): Make "command" parameter const.
1768 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
1769 deprecated_cmd_warning prototype change.
1770 (undef_cmd_error): Make "cmdtype" parameter const.
1771 (lookup_cmd): Make "line" parameter const.
1772 (deprecated_cmd_warning): Change type of "text" parameter to
1773 pointer to const char, from pointer to pointer to char. Adjust.
1774 (lookup_cmd_composition): Make "text" parameter const.
1775 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
1776 parameters const.
1777 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
1778 const.
1779 * cli/cli-script.c (validate_comname): Make "tem" local const.
1780 (define_command): New const local "tem_c". Use it in calls to
1781 lookup_cmd.
1782 (document_command): Make "tem" and "comfull" locals const.
1783 (show_user_1): Make "prefix" and "name" parameters const.
1784 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
1785 const.
1786 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
1787 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
1788 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
1789 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
1790 (complete_on_enum, add_setshow_enum_cmd)
1791 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
1792 (add_setshow_filename_cmd, add_setshow_string_cmd)
1793 (add_setshow_string_noescape_cmd)
1794 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
1795 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
1796 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
1797 Change prototypes, constifying strings.
1798 * completer.c (noop_completer, filename_completer): Make "text"
1799 and "prefix" parameters const.
1800 (location_completer, expression_completer)
1801 (complete_line_internal): Make "text" and "prefix" parameters
1802 const and adjust.
1803 (command_completer, signal_completer): Make "text" and "prefix"
1804 parameters const.
1805 * completer.h (noop_completer, filename_completer)
1806 (expression_completer, location_completer, command_completer)
1807 (signal_completer): Change prototypes.
1808 * corefile.c (complete_set_gnutarget): Make "text" and "word"
1809 parameters const.
1810 * cp-abi.c (cp_abi_completer): Likewise.
1811 * expression.h (parse_expression_for_completion): Change
1812 prototype.
1813 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
1814 parameters const.
1815 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
1816 * infrun.c (handle_completer): Make "text" and "word" parameters
1817 const.
1818 * interps.c (interpreter_completer): Make "text" and "word"
1819 parameters const.
1820 * language.h (struct language_defn)
1821 <la_make_symbol_completion_list>: Make "text" and "word"
1822 parameters const.
1823 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
1824 (parse_exp_in_context): Rename to ...
1825 (parse_exp_in_context_1): ... this.
1826 (parse_exp_in_context): Reimplement, with const hack from
1827 parse_exp_1.
1828 (parse_expression_for_completion): Make "string" parameter const.
1829 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
1830 to pointer to const char. Adjust.
1831 (print_command_1): Make "exp" parameter const.
1832 (output_command): Rename to ...
1833 (output_command_const): ... this. Make "exp" parameter const.
1834 (output_command): Reimplement.
1835 (x_command): Adjust.
1836 (display_command): Rename "exp" parameter to "arg". New "exp"
1837 local, const version of "arg".
1838 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
1839 "cmd_name" local const.
1840 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
1841 call.
1842 (cmdpy_completer): Make "text" and "word" parameters const.
1843 (gdbpy_parse_command_name): Make "prefix_text2" local const.
1844 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
1845 const.
1846 * remote.c (_initialize_remote): Make "cmd_name" local const.
1847 * symtab.c (language_search_unquoted_string): Make "text" and "p"
1848 parameters const. Adjust.
1849 (completion_list_add_fields): Make "sym_text", "text" and "word"
1850 parameters const.
1851 (struct add_name_data) <sym_text, text, word>: Make fields const.
1852 (default_make_symbol_completion_list_break_on): Make "text" and
1853 "word" parameters const. Adjust locals.
1854 (default_make_symbol_completion_list)
1855 (make_symbol_completion_list, make_symbol_completion_type)
1856 (make_symbol_completion_list_fn): Make "text" and "word"
1857 parameters const.
1858 (make_file_symbol_completion_list): Make "text", "word" and
1859 "srcfile" parameters const. Adjust locals.
1860 (add_filename_to_list): Make "text" and "word" parameters const.
1861 (struct add_partial_filename_data) <text, word>: Make fields
1862 const.
1863 (make_source_files_completion_list): Make "text" and "word"
1864 parameters const.
1865 * symtab.h (default_make_symbol_completion_list_break_on)
1866 (default_make_symbol_completion_list, make_symbol_completion_list)
1867 (make_symbol_completion_type enum type_code)
1868 (make_symbol_completion_list_fn make_file_symbol_completion_list)
1869 (make_source_files_completion_list): Change prototype.
1870 * top.c (execute_command): Adjust to pass pointer to pointer to
1871 const char to lookup_cmd, and to deprecated_cmd_warning prototype
1872 change.
1873 (set_verbose): Make "cmdname" local const.
1874 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
1875 and adjust.
1876 (validate_actionline): Make "line" parameter a pointer to const
1877 char, and adjust.
1878 (encode_actions_1): Make "action_exp" local const, and adjust.
1879 (encode_actions): Adjust.
1880 (replace_comma): Delete.
1881 (trace_dump_actions): Make "action_exp" and "next_comma" locals
1882 const, and adjust. Don't frob the action string while splitting
1883 it at commas. Instead, make a copy of each split substring in
1884 turn.
1885 (trace_dump_command): Adjust to validate_actionline prototype
1886 change.
1887 * tracepoint.h (decode_agent_options, decode_agent_options)
1888 (encode_actions, validate_actionline): Change prototypes.
1889 * valprint.h (output_command): Delete declaration.
1890 (output_command_const): Declare.
1891 * value.c (function_destroyer): Cast const away in xfree call.
1892
1893 2013-03-13 Pedro Alves <palves@redhat.com>
1894
1895 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
1896 rather than casting 'const char * const *' to 'const char **'.
1897 * ada-lex.l (processInt): Make "trailer" local const. Remove
1898 'const char **' cast.
1899 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
1900 locals, and use those as strtol output pointer, instead than doing
1901 invalid casts to from 'const char **' to 'char **'.
1902 (_initialize_demangle): Remove cast.
1903 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
1904 locals, and use those as strtol output pointer, instead than doing
1905 invalid casts to from 'const char **' to 'char **'.
1906 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
1907 casts.
1908 * stap-probe.c (stap_parse_register_operand)
1909 (stap_parse_single_operand): Likewise.
1910
1911 2013-03-13 Yao Qi <yao@codesourcery.com>
1912
1913 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
1914 the last matched 'V' blcok in trace frame.
1915
1916 2013-03-12 Joel Brobecker <brobecker@adacore.com>
1917
1918 * NEWS: Create a new section for the next release branch.
1919 Rename the section of the current branch, now that it has
1920 been cut.
1921
1922 2013-03-12 Joel Brobecker <brobecker@adacore.com>
1923
1924 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
1925 * version.in: Bump version to 7.6.50.20130312-cvs.
1926
1927 2013-03-12 Keith Seitz <keiths@redhat.com>
1928
1929 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
1930 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
1931 Remove temporary copy of input string.
1932 (mi_execute_command_wrapper): Make "cmd" const.
1933 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
1934 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
1935 Use const strings.
1936 (mi_parse): Make "cmd" const.
1937 Use const strings.
1938 * mi/mi-parse.h (mi_parse): Make "cmd" const.
1939
1940 2013-03-12 Keith Seitz <keiths@redhat.com>
1941
1942 * ada-lang.c (ada_read_renaming_var_value): Pass const
1943 pointer to expression string to parse_exp_1.
1944 (create_excep_cond_exprs): Likewise.
1945 * ax-gdb.c (agent_eval_command_one): Likewise.
1946 (maint_agent_printf_command): Likewise.
1947 Constify much of the string handling/parsing.
1948 * breakpoint.c (set_breakpoint_condition): Pass const
1949 pointer to expression string to parse_exp_1.
1950 (update_watchpoint): Likewise.
1951 (parse_cmd_to_aexpr): Constify string handling.
1952 Pass const pointer to parse_exp_1.
1953 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
1954 (find_condition_and_thread): Likewise.
1955 Make TOK const.
1956 (watch_command_1): Make "arg" const.
1957 Constify string handling.
1958 Copy the expression string instead of changing the input
1959 string.
1960 (update_breakpoint_location): Pass const pointer to
1961 parse_exp_1.
1962 * eval.c (parse_and_eval_address): Make "exp" const.
1963 (parse_to_comma_and_eval): Make "expp" const.
1964 (parse_and_eval): Make "exp" const.
1965 * expression.h (parse_expression): Make argument const.
1966 (parse_exp_1): Make first argument const.
1967 * findcmd.c (parse_find_args): Treat "args" as const.
1968 * linespec.c (parse_linespec): Pass const pointer to
1969 linespec_expression_to_pc.
1970 (linespec_expression_to_pc): Make "exp_ptr" const.
1971 * parse.c (parse_exp_1): Make "stringptr" const.
1972 Make a copy of the expression to pass to parse_exp_in_context until
1973 this whole interface can be constified.
1974 (parse_expression): Make "string" const.
1975 * printcmd.c (ui_printf): Treat "arg" as const.
1976 Handle const strings.
1977 * tracepoint.c (validate_actionline): Pass const pointer to
1978 all calls to parse_exp_1.
1979 (encode_actions_1): Likewise.
1980 * value.h (parse_to_comma_and_eval): Make argument const.
1981 (parse_and_eval_address): Likewise.
1982 (parse_and_eval): Likewise.
1983 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
1984 (varobj_set_value): Likewise.
1985 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
1986 constify string handling.
1987 Pass const pointers to parse_and_eval_address and
1988 parse_to_comman_and_eval.
1989 * cli/cli-utils.c (skip_to_space): Rename to ...
1990 (skip_to_space_const): ... this. Handle const strings.
1991 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
1992 skip_to_space_const.
1993 (skip_to_space_const): Declare.
1994 * common/format.c (parse_format_string): Make "arg" const.
1995 Handle const strings.
1996 * common/format.h (parse_format_string): Make "arg" const.
1997 * gdbserver/ax.c (ax_printf): Make "format" const.
1998 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
1999 of the expression string.
2000
2001 2013-03-12 Hui Zhu <hui@codesourcery.com>
2002
2003 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
2004
2005 2013-03-12 Yao Qi <yao@codesourcery.com>
2006 Hui Zhu <hui@codesourcery.com>
2007
2008 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
2009 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
2010 DW_OP_deref_size.
2011
2012 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
2013
2014 * ada-lex.l (rules): Only recognize 'thread' as a
2015 delimiter when followed by numerals, as for c-exp.y.
2016 Use new rewind_to_char function to rewind the input for
2017 expression-delimiting tokens.
2018 (rewind_to_char): New function.
2019
2020 2013-03-11 Pedro Alves <palves@redhat.com>
2021 Jan Kratochvil <jan.kratochvil@redhat.com>
2022
2023 * configure: Regenerate.
2024 * configure.ac (check dynamic export flag): Link python test with
2025 $PYTHON_LIBS.
2026
2027 2013-03-11 Doug Evans <dje@google.com>
2028 Keith Seitz <keiths@redhat.com>
2029
2030 * linespec.c (find_linespec_symbols): Call find_function_symbols
2031 first, and then call lookup_prefix_sym/find_method.
2032
2033 2013-03-11 Pedro Alves <palves@redhat.com>
2034
2035 * charset.c (convert_between_encodings): Don't cast between
2036 different pointer to pointer types. Instead, make the 'inp' local
2037 be of the type iconv expects.
2038 (wchar_iterate): Don't cast between different pointer to pointer
2039 types. Instead, use new pointer local of the type iconv expects.
2040 * target.c (target_read_stralloc, target_fileio_read_stralloc):
2041 Add new local of type char pointer, and use it to get a
2042 char/string view of the byte buffer, instead of casting between
2043 pointer to pointer types.
2044
2045 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
2046
2047 * remote.c (remote_set_trace_buffer_size): Move != operator
2048 to the start of next line to fix an ARI warning.
2049
2050 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2051
2052 * NEWS: Add record changes.
2053
2054 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2055
2056 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
2057 the instruction history disassembly.
2058 * disasm.c (dump_insns): Omit the pc prefix, if requested.
2059 * disasm.h (DISASSEMBLY_OMIT_PC): New.
2060
2061 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2062
2063 * Makefile.in (SFILES): Add record-btrace.c
2064 (COMMON_OBS): Add record-btrace.o
2065 * record-btrace.c: New.
2066 * objfiles.c: Include btrace.h.
2067 (free_objfile): call btrace_free_objfile.
2068
2069 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2070
2071 * target.c (target_call_history, target_call_history_from,
2072 target_call_history_range): New.
2073 * target.h (target_ops) <to_call_history, to_call_history_from,
2074 to_call_history_range>: New fields.
2075 (target_call_history, target_call_history_from,
2076 target_call_history_range): New declaration.
2077 * record.c (get_call_history_modifiers, cmd_record_call_history,
2078 record_call_history_size): New.
2079 (_initialize_record): Add the "record function-call-history" command.
2080 Add "set/show record function-call-history-size" commands.
2081 * record.h (record_print_flag): New.
2082
2083 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2084
2085 * target.h (target_ops) <to_insn_history, to_insn_history_from,
2086 to_insn_history_range>: New fields.
2087 (target_insn_history): New.
2088 (target_insn_history_from): New.
2089 (target_insn_history_range): New.
2090 * target.c (target_insn_history): New.
2091 (target_insn_history_from): New.
2092 (target_insn_history_range): New.
2093 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
2094 (record_insn_history_size): New.
2095 (get_insn_number): New.
2096 (get_context_size): New.
2097 (no_chunk): New.
2098 (get_insn_history_modifiers): New.
2099 (cmd_record_insn_history): New.
2100 (_initialize_record): Add "set/show record instruction-history-size"
2101 command. Add "record instruction-history" command.
2102
2103 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2104
2105 * record.h (record_disconnect): New.
2106 (record_detach): New.
2107 (record_mourn_inferior): New.
2108 (record_kill): New.
2109 * record-full.c (record_disconnect, record_detach,
2110 record_mourn_inferior, record_kill): Move to...
2111 * record.c: ...here.
2112 (DEBUG): New.
2113 (record_stop): New.
2114 (record_unpush): New.
2115 (cmd_record_stop): Call record_stop. Replace unpush_target
2116 call with record_unpush call.
2117 (record_disconnect, record_detach): Assert that the target
2118 is of record stratum. Call record_unpush, record_stop, and
2119 DEBUG.
2120 (record_mourn_inferior, record_kill): Assert that the target
2121 is of record stratum. Call record_unpush and DEBUG.
2122
2123 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2124
2125 * record-full.h, record-full.c (record_memory_query): Rename
2126 to ...
2127 (record_full_memory_query): ...this. Update all users.
2128 (record_arch_list_add_reg): Rename to ...
2129 (record_full_arch_list_add_reg): ...this. Update all users.
2130 (record_arch_list_add_mem): Rename to ...
2131 (record_full_arch_list_add_mem): ...this. Update all users.
2132 (record_arch_list_add_end): Rename to ...
2133 (record_full_arch_list_add_end): ...this. Update all users.
2134 (record_gdb_operation_disable_set): Rename to ...
2135 (record_full_gdb_operation_disable_set): ...this.
2136 Update all users.
2137
2138 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2139
2140 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
2141 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
2142 (RECORD_IS_REPLAY): Renamed to ...
2143 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
2144 (RECORD_FILE_MAGIC): Renamed to ...
2145 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
2146 (record_mem_entry): Renamed to ...
2147 (record_full_mem_entry): ... this. Updated all users.
2148 (record_reg_entry): Renamed to ...
2149 (record_full_reg_entry): ... this. Updated all users.
2150 (record_end_entry): Renamed to ...
2151 (record_full_end_entry): ... this. Updated all users.
2152 (record_type) <record_end, record_reg, record_mem>: Renamed
2153 to ...
2154 (record_full_type) <record_full_end, record_full_reg,
2155 record_full_mem>: ... this. Updated all users.
2156 (record_entry): Renamed to ...
2157 (record_full_entry): ... this. Updated all users.
2158 (record_core_buf_entry): Renamed to ...
2159 (record_full_core_buf_entry): ... this. Updated all users.
2160 (record_core_regbuf): Renamed to ...
2161 (record_full_core_regbuf): ... this. Updated all users.
2162 (record_core_start): Renamed to ...
2163 (record_full_core_start): ... this. Updated all users.
2164 (record_core_end): Renamed to ...
2165 (record_full_core_end): ... this. Updated all users.
2166 (record_core_buf_list): Renamed to ...
2167 (record_full_core_buf_list): ... this. Updated all users.
2168 (record_first): Renamed to ...
2169 (record_full_first): ... this. Updated all users.
2170 (record_list): Renamed to ...
2171 (record_full_list): ... this. Updated all users.
2172 (record_arch_list_head): Renamed to ...
2173 (record_full_arch_list_head): ... this. Updated all users.
2174 (record_arch_list_tail): Renamed to ...
2175 (record_full_arch_list_tail): ... this. Updated all users.
2176 (record_stop_at_limit): Renamed to ...
2177 (record_full_stop_at_limit): ... this. Updated all users.
2178 (record_insn_max_num): Renamed to ...
2179 (record_full_insn_max_num): ... this. Updated all users.
2180 (record_insn_num): Renamed to ...
2181 (record_full_insn_num): ... this. Updated all users.
2182 (record_insn_count): Renamed to ...
2183 (record_full_insn_count): ... this. Updated all users.
2184 (record_ops): Renamed to ...
2185 (record_full_ops): ... this. Updated all users.
2186 (record_core_ops): Renamed to ...
2187 (record_full_core_ops): ... this. Updated all users.
2188 (set_record_cmdlist): Renamed to ...
2189 (set_record_full_cmdlist): ... this. Updated all users.
2190 (show_record_cmdlist): Renamed to ...
2191 (show_record_full_cmdlist): ... this. Updated all users.
2192 (record_cmdlist): Renamed to ...
2193 (record_full_cmdlist): ... this. Updated all users.
2194 (record_beneath_to_resume_ops): Renamed to ...
2195 (record_full_beneath_to_resume_ops): ... this. Updated all users.
2196 (record_beneath_to_resume): Renamed to ...
2197 (record_full_beneath_to_resume): ... this. Updated all users.
2198 (record_beneath_to_wait_ops): Renamed to ...
2199 (record_full_beneath_to_wait_ops): ... this. Updated all users.
2200 (record_beneath_to_wait): Renamed to ...
2201 (record_full_beneath_to_wait): ... this. Updated all users.
2202 (record_beneath_to_store_registers_ops): Renamed to ...
2203 (record_full_beneath_to_store_registers_ops): ... this.
2204 Updated all users.
2205 (record_beneath_to_store_registers): Renamed to ...
2206 (record_full_beneath_to_store_registers): ... this.
2207 Updated all users.
2208 (record_beneath_to_xfer_partial_ops): Renamed to ...
2209 (record_full_beneath_to_xfer_partial_ops): ... this.
2210 Updated all users.
2211 (record_beneath_to_xfer_partial): Renamed to ...
2212 (record_full_beneath_to_xfer_partial): ... this.
2213 Updated all users.
2214 (record_beneath_to_insert_breakpoint): Renamed to ...
2215 (record_full_beneath_to_insert_breakpoint): ... this.
2216 Updated all users.
2217 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
2218 (record_full_beneath_to_stopped_by_watchpoint): ... this.
2219 Updated all users.
2220 (record_beneath_to_stopped_data_address): Renamed to ...
2221 (record_full_beneath_to_stopped_data_address): ... this.
2222 Updated all users.
2223 (record_beneath_to_async): Renamed to ...
2224 (record_full_beneath_to_async): ... this. Updated all users.
2225 (record_goto_insn): Renamed to ...
2226 (record_full_goto_insn): ... this. Updated all users.
2227 (record_save): Renamed to ...
2228 (record_full_save): ... this. Updated all users.
2229 (record_reg_alloc): Renamed to ...
2230 (record_full_reg_alloc): ... this. Updated all users.
2231 (record_reg_release): Renamed to ...
2232 (record_full_reg_release): ... this. Updated all users.
2233 (record_mem_alloc): Renamed to ...
2234 (record_full_mem_alloc): ... this. Updated all users.
2235 (record_mem_release): Renamed to ...
2236 (record_full_mem_release): ... this. Updated all users.
2237 (record_end_alloc): Renamed to ...
2238 (record_full_end_alloc): ... this. Updated all users.
2239 (record_end_release): Renamed to ...
2240 (record_full_end_release): ... this. Updated all users.
2241 (record_entry_release): Renamed to ...
2242 (record_full_entry_release): ... this. Updated all users.
2243 (record_list_release): Renamed to ...
2244 (record_full_list_release): ... this. Updated all users.
2245 (record_list_release_following): Renamed to ...
2246 (record_full_list_release_following): ... this.
2247 Updated all users.
2248 (record_list_release_first): Renamed to ...
2249 (record_full_list_release_first): ... this. Updated all users.
2250 (record_arch_list_add): Renamed to ...
2251 (record_full_arch_list_add): ... this. Updated all users.
2252 (record_get_loc): Renamed to ...
2253 (record_full_get_loc): ... this. Updated all users.
2254 (record_check_insn_num): Renamed to ...
2255 (record_full_check_insn_num): ... this. Updated all users.
2256 (record_arch_list_cleanups): Renamed to ...
2257 (record_full_arch_list_cleanups): ... this. Updated all users.
2258 (record_message): Renamed to ...
2259 (record_full_message): ... this. Updated all users.
2260 (record_message_wrapper): Renamed to ...
2261 (record_full_message_wrapper): ... this. Updated all users.
2262 (record_message_wrapper_safe): Renamed to ...
2263 (record_full_message_wrapper_safe): ... this. Updated all users.
2264 (record_gdb_operation_disable): Renamed to ...
2265 (record_full_gdb_operation_disable): ... this. Updated all users.
2266 (record_hw_watchpoint): Renamed to ...
2267 (record_full_hw_watchpoint): ... this. Updated all users.
2268 (record_exec_insn): Renamed to ...
2269 (record_full_exec_insn): ... this. Updated all users.
2270 (record_restore): Renamed to ...
2271 (record_full_restore): ... this. Updated all users.
2272 (record_async_inferior_event_token): Renamed to ...
2273 (record_full_async_inferior_event_token): ... this.
2274 Updated all users.
2275 (record_async_inferior_event_handler): Renamed to ...
2276 (record_full_async_inferior_event_handler): ... this.
2277 Updated all users.
2278 (record_core_open_1): Renamed to ...
2279 (record_full_core_open_1): ... this. Updated all users.
2280 (record_open_1): Renamed to ...
2281 (record_full_open_1): ... this. Updated all users.
2282 (record_open): Renamed to ...
2283 (record_full_open): ... this. Updated all users.
2284 (record_close): Renamed to ...
2285 (record_full_close): ... this. Updated all users.
2286 (record_resume_step): Renamed to ...
2287 (record_full_resume_step): ... this. Updated all users.
2288 (record_resumed): Renamed to ...
2289 (record_full_resumed): ... this. Updated all users.
2290 (record_execution_dir): Renamed to ...
2291 (record_full_execution_dir): ... this. Updated all users.
2292 (record_resume): Renamed to ...
2293 (record_full_resume): ... this. Updated all users.
2294 (record_get_sig): Renamed to ...
2295 (record_full_get_sig): ... this. Updated all users.
2296 (record_sig_handler): Renamed to ...
2297 (record_full_sig_handler): ... this. Updated all users.
2298 (record_wait_cleanups): Renamed to ...
2299 (record_full_wait_cleanups): ... this. Updated all users.
2300 (record_wait_1): Renamed to ...
2301 (record_full_wait_1): ... this. Updated all users.
2302 (record_wait): Renamed to ...
2303 (record_full_wait): ... this. Updated all users.
2304 (record_stopped_by_watchpoint): Renamed to ...
2305 (record_full_stopped_by_watchpoint): ... this. Updated all users.
2306 (record_disconnect): Renamed to ...
2307 (record_full_disconnect): ... this. Updated all users.
2308 (record_detach): Renamed to ...
2309 (record_full_detach): ... this. Updated all users.
2310 (record_mourn_inferior): Renamed to ...
2311 (record_full_mourn_inferior): ... this. Updated all users.
2312 (record_kill): Renamed to ...
2313 (record_full_kill): ... this. Updated all users.
2314 (record_stopped_data_address): Renamed to ...
2315 (record_full_stopped_data_address): ... this. Updated all users.
2316 (record_registers_change): Renamed to ...
2317 (record_full_registers_change): ... this. Updated all users.
2318 (record_store_registers): Renamed to ...
2319 (record_full_store_registers): ... this. Updated all users.
2320 (record_xfer_partial): Renamed to ...
2321 (record_full_xfer_partial): ... this. Updated all users.
2322 (record_breakpoint): Renamed to ...
2323 (record_full_breakpoint): ... this. Updated all users.
2324 (record_breakpoint_p): Renamed to ...
2325 (record_full_breakpoint_p): ... this. Updated all users.
2326 (record_breakpoints): Renamed to ...
2327 (record_full_breakpoints): ... this. Updated all users.
2328 (record_sync_record_breakpoints): Renamed to ...
2329 (record_full_sync_record_breakpoints): ... this.
2330 Updated all users.
2331 (record_init_record_breakpoints): Renamed to ...
2332 (record_full_init_record_breakpoints): ... this.
2333 Updated all users.
2334 (record_insert_breakpoint): Renamed to ...
2335 (record_full_insert_breakpoint): ... this. Updated all users.
2336 (record_remove_breakpoint): Renamed to ...
2337 (record_full_remove_breakpoint): ... this. Updated all users.
2338 (record_can_execute_reverse): Renamed to ...
2339 (record_full_can_execute_reverse): ... this. Updated all users.
2340 (record_get_bookmark): Renamed to ...
2341 (record_full_get_bookmark): ... this. Updated all users.
2342 (record_goto_bookmark): Renamed to ...
2343 (record_full_goto_bookmark): ... this. Updated all users.
2344 (record_async): Renamed to ...
2345 (record_full_async): ... this. Updated all users.
2346 (record_can_async_p): Renamed to ...
2347 (record_full_can_async_p): ... this. Updated all users.
2348 (record_is_async_p): Renamed to ...
2349 (record_full_is_async_p): ... this. Updated all users.
2350 (record_execution_direction): Renamed to ...
2351 (record_full_execution_direction): ... this. Updated all users.
2352 (record_info): Renamed to ...
2353 (record_full_info): ... this. Updated all users.
2354 (record_delete): Renamed to ...
2355 (record_full_delete): ... this. Updated all users.
2356 (record_is_replaying): Renamed to ...
2357 (record_full_is_replaying): ... this. Updated all users.
2358 (record_goto_entry): Renamed to ...
2359 (record_full_goto_entry): ... this. Updated all users.
2360 (record_goto_begin): Renamed to ...
2361 (record_full_goto_begin): ... this. Updated all users.
2362 (record_goto_end): Renamed to ...
2363 (record_full_goto_end): ... this. Updated all users.
2364 (record_goto): Renamed to ...
2365 (record_full_goto): ... this. Updated all users.
2366 (init_record_ops): Renamed to ...
2367 (init_record_full_ops): ... this. Updated all users.
2368 (record_core_resume): Renamed to ...
2369 (record_full_core_resume): ... this. Updated all users.
2370 (record_core_kill): Renamed to ...
2371 (record_full_core_kill): ... this. Updated all users.
2372 (record_core_fetch_registers): Renamed to ...
2373 (record_full_core_fetch_registers): ... this. Updated all users.
2374 (record_core_prepare_to_store): Renamed to ...
2375 (record_full_core_prepare_to_store): ... this. Updated all users.
2376 (record_core_store_registers): Renamed to ...
2377 (record_full_core_store_registers): ... this. Updated all users.
2378 (record_core_xfer_partial): Renamed to ...
2379 (record_full_core_xfer_partial): ... this. Updated all users.
2380 (record_core_insert_breakpoint): Renamed to ...
2381 (record_full_core_insert_breakpoint): ... this. Updated all users.
2382 (record_core_remove_breakpoint): Renamed to ...
2383 (record_full_core_remove_breakpoint): ... this. Updated all users.
2384 (record_core_has_execution): Renamed to ...
2385 (record_full_core_has_execution): ... this. Updated all users.
2386 (init_record_core_ops): Renamed to ...
2387 (init_record_full_core_ops): ... this. Updated all users.
2388 (cmd_record_restore): Renamed to ...
2389 (cmd_record_full_restore): ... this. Updated all users.
2390 (record_save_cleanups): Renamed to ...
2391 (record_full_save_cleanups): ... this. Updated all users.
2392 (cmd_record_start): Renamed to ...
2393 (cmd_record_full_start): ... this. Updated all users.
2394 (set_record_insn_max_num): Renamed to ...
2395 (set_record_full_insn_max_num): ... this. Updated all users.
2396 (set_record_command): Renamed to ...
2397 (set_record_full_command): ... this. Updated all users.
2398 (show_record_command): Renamed to ...
2399 (show_record_full_command): ... this. Updated all users.
2400 (_initialize_record): Renamed to ...
2401 (_initialize_record_full): ... this. Updated all users.
2402
2403 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2404
2405 * record.h: Split into this and ...
2406 * record-full.h: ... this.
2407 * record.c: Split into this and ...
2408 * record-full.c: ... this.
2409 * target.h (target_ops): Add new fields to_info_record,
2410 to_save_record, to_delete_record, to_record_is_replaying,
2411 to_goto_record_begin, to_goto_record_end, to_goto_record.
2412 (target_info_record): New.
2413 (target_save_record): New.
2414 (target_supports_delete_record): New.
2415 (target_delete_record): New.
2416 (target_record_is_replaying): New.
2417 (target_goto_record_begin): New.
2418 (target_goto_record_end): New.
2419 (target_goto_record): New.
2420 * target.c (target_info_record): New.
2421 (target_save_record): New.
2422 (target_supports_delete_record): New.
2423 (target_delete_record): New.
2424 (target_record_is_replaying): New.
2425 (target_goto_record_begin): New.
2426 (target_goto_record_end): New.
2427 (target_goto_record): New.
2428 * record.h: Declare struct cmd_list_element.
2429 (record_cmdlist): New declaration.
2430 (set_record_cmdlist): New declaration.
2431 (show_record_cmdlist): New declaration.
2432 (info_record_cmdlist): New declaration.
2433 (cmd_record_goto): New declaration.
2434 * record.c: Remove unnecessary includes.
2435 Include inferior.h.
2436 (cmd_record_goto): Remove declaration.
2437 (record_cmdlist): Now extern. Initialize.
2438 (set_record_cmdlist): Now extern. Initialize.
2439 (show_record_cmdlist): Now extern. Initialize.
2440 (info_record_cmdlist): Now extern. Initialize.
2441 (find_record_target): New.
2442 (require_record_target): New.
2443 (cmd_record_start): Update.
2444 (cmd_record_delete): Remove target-specific code.
2445 Call target_delete_record.
2446 (cmd_record_stop): Unpush any record target.
2447 (set_record_insn_max_num): Move to record-full.c
2448 (set_record_command): Add comment.
2449 (show_record_command): Add comment.
2450 (info_record_command): Update comment.
2451 Remove target-specific code.
2452 Call the record target's to_info_record.
2453 (cmd_record_start): New.
2454 (cmd_record_goto): Now extern.
2455 Remove target-specific code.
2456 Call target_goto_begin, target_goto_end, or target_goto.
2457 (_initialize_record): Move record target ops initialization to
2458 record-full.c.
2459 Change "record" command help text.
2460 Move "record restore", "record set", and "record show" commands to
2461 record-full.c.
2462 * Makefile.in (SFILES): Add record-full.c.
2463 (HFILES_NO_SRCDIR): Add record-full.h.
2464 (COMMON_OBS): Add record-full.o.
2465 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
2466 * arm-tdep.c: Include record-full.h.
2467 * i386-linux-tdep.c: Include record-full.h instead of record.h.
2468 * i386-tdep.c: Include record-full.h.
2469 * infrun.c: Include record-full.h.
2470 * linux-record.c: Include record-full.h.
2471 * moxie-tdep.c: Include record-full.h.
2472 * record-full.c: Include record-full.h.
2473 Change module comment.
2474 (set_record_full_cmdlist): New.
2475 (show_record_full_cmdlist): New.
2476 (record_full_cmdlist): New.
2477 (record_goto_insn): New declaration.
2478 (record_save): New declaration.
2479 (record_check_insn_num): Change query string.
2480 (record_info): New.
2481 (record_delete): New.
2482 (record_is_replaying): New.
2483 (record_goto_entry): New.
2484 (record_goto_begin): New.
2485 (record_goto_end): New.
2486 (record_goto): New.
2487 (init_record_ops): Update.
2488 (init_record_core_ops): Update.
2489 (cmd_record_save): Rename to record_save. Remove target and arg checks.
2490 (cmd_record_start): New.
2491 (set_record_insn_max_num): Moved from record.c
2492 (set_record_full_command): New.
2493 (show_record_full_command): New.
2494 (_initialize_record_full): New.
2495
2496 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2497
2498 * target.h (add_deprecated_target_alias): New.
2499 * target.c (add_deprecated_target_alias): New.
2500
2501 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2502
2503 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
2504 and signal.h.
2505 (linux_supports_btrace): Add kernel and
2506 cpuid check.
2507 (kernel_supports_btrace): New function.
2508 (cpu_supports_btrace): New function.
2509 (intel_supports_btrace): New function.
2510
2511 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2512
2513 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
2514 * remote.c: Include btrace.h.
2515 (struct btrace_target_info): New struct.
2516 (remote_supports_btrace): New function.
2517 (send_Qbtrace): New function.
2518 (remote_enable_btrace): New function.
2519 (remote_disable_btrace): New function.
2520 (remote_teardown_btrace): New function.
2521 (remote_read_btrace): New function.
2522 (init_remote_ops): Add btrace ops.
2523 (enum <unnamed>): Add btrace packets.
2524 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
2525 (_initialize_remote): Add packet configuration for branch tracing.
2526
2527 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2528
2529 * features/btrace.dtd: New file.
2530 * Makefile.in (XMLFILES): Add btrace.dtd.
2531 * btrace.h (parse_xml_btrace): New declaration.
2532 * btrace.c: Include xml-support.h.
2533 (parse_xml_btrace): New function.
2534 (parse_xml_btrace_block): New function.
2535 (block_attributes): New struct.
2536 (btrace_attributes): New struct.
2537 (btrace_children): New struct.
2538 (btrace_elements): New struct.
2539
2540 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2541
2542 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
2543 (amd64_linux_enable_btrace): New.
2544 (amd64_linux_disable_btrace): New.
2545 (amd64_linux_teardown_btrace): New.
2546 (_initialize_amd64_linux_nat): Initialize btrace ops.
2547 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
2548 (i386_linux_enable_btrace): New.
2549 (i386_linux_disable_btrace): New.
2550 (i386_linux_teardown_btrace): New.
2551 (_initialize_i386_linux_nat): Initialize btrace ops.
2552 * config/i386/linux.mh: Add linux-btrace.o.
2553 * config/i386/linux64.mh: Add linux-btrace.o.
2554
2555 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2556
2557 * common/linux_btrace.h: New file.
2558 * common/linux_btrace.c: New file.
2559 * Makefile.in (SFILES): Add btrace.c.
2560 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
2561 (COMMON_OBS): Add btrace.o.
2562 (linux-btrace.o): New rule.
2563
2564 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2565
2566 * target.h: Include btrace.h.
2567 (struct target_ops) <to_supports_btrace, to_enable_btrace,
2568 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
2569 * target.c (target_supports_btrace): New function.
2570 (target_enable_btrace): New function.
2571 (target_disable_btrace): New function.
2572 (target_teardown_btrace): New function.
2573 (target_read_btrace): New function.
2574 * btrace.h: New file.
2575 * btrace.c: New file.
2576 * Makefile.in: Add btrace.c.
2577 * gdbthread.h: Include btrace.h.
2578 (struct thread_info): Add btrace field.
2579 * thread.c: Include btrace.h.
2580 (clear_thread_inferior_resources): Call target_teardown_btrace.
2581 * common/btrace-common.h: New file.
2582
2583 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2584
2585 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
2586 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
2587 kill_status to outer block.
2588
2589 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2590
2591 Fix entry-values if the callee called a noreturn function.
2592 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
2593 get_frame_address_in_block. Add new comment.
2594
2595 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2596
2597 Fix entry-values in C++ across CUs.
2598 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
2599 lookup_minimal_symbol. Add a comment.
2600 * dwarf2read.c
2601 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
2602 DW_AT_linkage_name.
2603
2604 2013-03-08 Yao Qi <yao@codesourcery.com>
2605
2606 * tracepoint.c (_initialize_tracepoint): Indent the code.
2607
2608 2013-03-08 Pedro Alves <palves@redhat.com>
2609
2610 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
2611 (parse_find_args, find_command): Change type of pattern buffer
2612 locals to 'gdb_byte *'.
2613
2614 2013-03-08 Stan Shebs <stan@codesourcery.com>
2615 Hafiz Abid Qadeer <abidh@codesourcery.com>
2616
2617 * NEWS: Mention set and show trace-buffer-size commands.
2618 Mention new packet.
2619 * target.h (struct target_ops): New method
2620 to_set_trace_buffer_size.
2621 (target_set_trace_buffer_size): New macro.
2622 * target.c (update_current_target): Set up new method.
2623 * tracepoint.c (trace_buffer_size): New global.
2624 (start_tracing): Send it to the target.
2625 (set_trace_buffer_size): New function.
2626 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
2627 * remote.c (remote_set_trace_buffer_size): New function.
2628 (_initialize_remote): Use it.
2629 (QTBuffer:size) New remote command.
2630 (PACKET_QTBuffer_size): New enum.
2631 (remote_protocol_features): Add an entry for
2632 PACKET_QTBuffer_size.
2633
2634 2013-03-08 Tom Tromey <tromey@redhat.com>
2635
2636 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
2637 variable.
2638
2639 2013-03-07 Pedro Alves <palves@redhat.com>
2640
2641 * target.c (target_read_stralloc, target_fileio_read_alloc):
2642 *Cast pointer to 'gdb_byte *' in target call.
2643
2644 2013-03-07 Pedro Alves <palves@redhat.com>
2645
2646 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
2647 call.
2648
2649 2013-03-07 Keith Seitz <keiths@redhat.com>
2650
2651 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
2652 (trace_pass_command): Likewise.
2653 * cli/cli-cmds.c: Include cli/cli-utils.h.
2654 (source_command): Use skip-spaces.
2655 (disassemble_command): Likewise.
2656 * findcmd.c: Include cli/cli-utils.h.
2657 (parse_find_args): Use skip_spaces.
2658 * go32-nat.c: Include cli/cli-utils.h.
2659 (go32_sldt): Use skip_spaces.
2660 (go32_sgdt): Likewise.
2661 (go32_sidt): Likewise.
2662 (go32_pde): Likewise.
2663 (go32_pte): Likewise.
2664 (go32_pte_for_address): Likewise.
2665 * infcmd.c: Include cli/cli-utils.h.
2666 (registers_info): Use skip_spaces.
2667 * linux-tdep.c (read_mapping): Use skip_spaces_const.
2668 (linux_info_proc): Likewise.
2669 * linux-thread-db.c: Include cli/cli-utils.h.
2670 (info_auto_load_libthread_db): Use skip_spaces_const.
2671 * m32r-rom.c: Include cli/cli-utils.h.
2672 (m32r_upload_command): Use skip_spaces.
2673 * maint.c: Include cli/cli-utils.h.
2674 (maintenance_translate_address): Use skip_spaces.
2675 * mi/mi-parse.c: Include cli/cli-utils.h.
2676 (mi_parse_argv): Use skip_spaces.
2677 (mi_parse): Likewise.
2678 * minsyms.c: Include cli/cli-utils.h.
2679 (msymbol_hash_iw): Use skip_spaces_const.
2680 * objc-lang.c: Include cli/cli-utils.h.
2681 (parse_selector): Use skip_spaces.
2682 (parse_method): Likewise.
2683 * python/python.c: Include cli/cli-utils.h.
2684 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
2685 (python_command)[HAVE_PYTHON]: Likewise.
2686 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
2687 * remote-m32r-sdi.c: Include cli/cli-utils.h.
2688 (m32r_load): Use skip_spaces.
2689 * serial.c: Include cli/cli-utils.h.
2690 (serial_open): Use skip_spaces_const.
2691 * stack.c: Include cli/cli-utils.h.
2692 (parse_frame_specification_1): Use skip_spaces_const.
2693 * symfile.c: Include cli/cli-utils.h.
2694 (set_ext_lang_command): Use skip_spaces.
2695 * symtab.c: Include cli/cli-utils.h.
2696 (rbreak_command): Use skip_spaces.
2697 * thread.c (thread_name_command): Use skip_spaces.
2698 * tracepoint.c (validate_actionline): Use skip_spaces.
2699 (encode_actions_1): Likewise.
2700 (trace_find_range_command): Likewise.
2701 (trace_find_outside_command): Likewise.
2702 (trace_dump_actions): Likewise.
2703
2704 2013-03-07 Pedro Alves <palves@redhat.com>
2705
2706 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
2707 * expprint.c (print_subexp_standard): Likewise.
2708 * utils.c (host_char_to_target): Likewise.
2709 * valprint.c (generic_emit_char, generic_printstr): Likewise.
2710 * varobj.c (value_get_print_value): Change type of local to char*.
2711 Cast it gdb_byte * in call to language printer.
2712
2713 2013-03-07 Pedro Alves <palves@redhat.com>
2714
2715 * charset.c (struct wchar_iterator) <input>: Change type to 'const
2716 gdb_byte *'.
2717 (make_wchar_iterator): Remove cast to char*.
2718 (wchar_iterate): Change type of local.
2719
2720 2013-03-07 Pedro Alves <palves@redhat.com>
2721
2722 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
2723 for 'regcache->register_status'.
2724
2725 2013-03-07 Pedro Alves <palves@redhat.com>
2726
2727 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
2728 int.
2729
2730 2013-03-07 Pedro Alves <palves@redhat.com>
2731
2732 * stap-probe.c (handle_stap_probe): Add cast to char*.
2733
2734 2013-03-07 Pedro Alves <palves@redhat.com>
2735
2736 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
2737 RECORD_MSGRCV>: Pass a signed variable to
2738 regcache_raw_read_signed, instead of an unsigned one.
2739
2740 2013-03-07 Pedro Alves <palves@redhat.com>
2741
2742 * remote-notif.c (notif_debug): Change type to int.
2743 * remote-notif.h (notif_debug): Likewise.
2744
2745 2013-03-07 Pedro Alves <palves@redhat.com>
2746
2747 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
2748
2749 2013-03-07 Pedro Alves <palves@redhat.com>
2750
2751 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
2752 * remote.h (hex2bin, bin2hex): ... here.
2753 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
2754
2755 2013-03-07 Eli Zaretskii <eliz@gnu.org>
2756
2757 * utils.c (initialize_utils): Improve doc strings of "set/show
2758 width", "set/show height", and "set/show pagination".
2759
2760 2013-03-06 Keith Seitz <keiths@redhat.com>
2761
2762 * ax-gdb.c (gen_printf): Make FORMAT const.
2763 * ax-gdb.h (gen_printf): Likewise.
2764 * ax-general.c (ax_string): Make STR const.
2765 * ax.h (ax_string): Likewise.
2766
2767 2013-03-06 Doug Evans <dje@google.com>
2768
2769 * elfread.c (elf_symfile_read): Move debugging printf to more
2770 logical location.
2771
2772 2013-03-06 Pedro Alves <palves@redhat.com>
2773
2774 * python/py-utils.c (target_string_to_unicode): Delete function.
2775 * python/python-internal.h (target_string_to_unicode): Delete
2776 declaration.
2777
2778 2013-03-06 Pierre Muller <muller@sourceware.org>
2779
2780 * linespec.c (get_current_search_block): ARI fix, use (void)
2781 for empty parameter list.
2782
2783 2013-03-05 Doug Evans <dje@google.com>
2784
2785 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
2786 of old ada_lookup_symbol_list. In !full_search case, don't
2787 search superblocks.
2788 (ada_lookup_symbol_list): Delete arg full_search, all callers
2789 updated. Call ada_lookup_symbol_list_worker.
2790 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
2791 * ada-lang.h (ada_lookup_symbol_list): Update.
2792 * language.h (language_defn): Update comment for
2793 la_iterate_over_symbols.
2794 * linespec.c (iterate_over_file_blocks): New function.
2795 (iterate_over_all_matching_symtabs): Call it.
2796 (lookup_prefix_sym): Ditto.
2797 (get_current_search_block): New function.
2798 (get_search_block): Delete.
2799 (find_label_symbols): Call get_current_search_block.
2800 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
2801 * symtab.c (iterate_over_symbols): Don't search superblocks.
2802
2803 2013-03-05 Yao Qi <yao@codesourcery.com>
2804
2805 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
2806 parameter VAR's type from "unsigned int" to "int".
2807 * command.h (var_zuinteger_unlimited): Update its comments.
2808 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
2809
2810 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
2811
2812 * NEWS: Mention new target x86_64-*-cygwin*.
2813
2814 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
2815
2816 * configure.host: Add x86_64-*-cygwin* as host.
2817 * configure.tgt: Add x86_64-*-cygwin* as target.
2818 * config/i386/cygwin64.mh: New file.
2819
2820 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2821
2822 * linespec.c (decode_line_2): Fix duplicate request off by two message.
2823
2824 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2825
2826 * linespec.c (struct linespec_canonical_name): New.
2827 (struct linespec_state): Change canonical_names type to it.
2828 (add_sal_to_sals): Change variable canonical_name to canonical. Change
2829 xrealloc element size. Initialize the different CANONICAL fields.
2830 (canonical_to_fullform): New.
2831 (filter_results): Use it. Add variables canonical, fullform and
2832 cleanup.
2833 (struct decode_line_2_item, decode_line_2_compare_items): New.
2834 (decode_line_2): Remove variables iter and item_names, add variables
2835 items and items_count. Modify the code for these new variables.
2836
2837 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
2838
2839 * coff-pe-read.c (read_pe_exported_syms): Don't return without
2840 calling do_cleanup.
2841
2842 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
2843
2844 * tracepoint.c (build_traceframe_info): Add code for byte order.
2845
2846 2013-03-02 Kevin Buettner <kevinb@redhat.com>
2847
2848 * v850-tdep.c: (v850e2_register_name): Revise system register
2849 names to match current V850E2M architecture specifications.
2850 Update register number enum comments too.
2851
2852 2013-03-01 Jiong Wang <jiwang@tilera.com>
2853 Pedro Alves <palves@redhat.com>
2854
2855 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
2856 to END_ADDR.
2857 (tilegx_skip_prologue): Limit prologue analysis to section end.
2858
2859 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2860
2861 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
2862 use it.
2863
2864 2013-03-01 Pedro Alves <palves@redhat.com>
2865
2866 Use gdb_byte for bytes from the program being debugged.
2867
2868 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
2869 Change type of local 'buf' to gdb_byte.
2870 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
2871 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2872 * cris-tdep.c (cris_sigcontext_addr)
2873 (cris_sigtramp_frame_unwind_cache): Likewise.
2874 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
2875 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
2876 Likewise.
2877 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
2878 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
2879 (hppa32_hpux_search_dummy_call_sequence)
2880 (hppa_hpux_supply_save_state): Likewise.
2881 * hppa-linux-tdep.c (insns_match_pattern)
2882 (hppa_linux_find_global_pointer): Likewise.
2883 * hppa-tdep.c (hppa_in_function_epilogue_p)
2884 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
2885 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
2886 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
2887 (i386fbsd_collect_uthread): Likewise.
2888 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
2889 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
2890 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
2891 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
2892 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
2893 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
2894 (ia64_libunwind_frame_prev_register)
2895 (ia64_libunwind_sigtramp_frame_this_id)
2896 (ia64_find_global_pointer_from_dynamic_section)
2897 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
2898 (ia64_unwind_pc): Likewise.
2899 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
2900 * m68hc11-tdep.c (m68hc11_push_dummy_call)
2901 (m68hc11_extract_return_value): Likewise.
2902 * m68klinux-nat.c (fetch_register, store_register): Likewise.
2903 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
2904 (mep_get_insn, mep_push_dummy_call): Likewise.
2905 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2906 (mips_linux_in_dynsym_stub): Likewise.
2907 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
2908 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
2909 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
2910 to gdb_byte.
2911 * remote-mips.c (mips_set_register): Likewise.
2912 * remote-sim.c (gdbsim_fetch_register): Likewise.
2913 * score-tdep.c (score7_fetch_inst): Change type of parameter
2914 'memblock' and local 'buf' to gdb_byte.
2915 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
2916 Change type of local 'buf' to gdb_byte. Adjust.
2917 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
2918 to gdb_byte**.
2919 (score7_analyze_prologue): Change type of 'memblock' and
2920 'memblock_ptr' locals to gdb_byte*.
2921 * sh64-tdep.c (sh64_extract_return_value)
2922 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
2923 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
2924 * solib-pa64.c (pa64_solib_create_inferior_hook)
2925 (pa64_open_symbol_file_object): Remove local 'buf'.
2926 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
2927 (som_open_symbol_file_object): Likewise.
2928 * solib-spu.c (spu_current_sos): Likewise.
2929 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
2930 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
2931 (spu_store_registers): Likewise.
2932 * target.c (debug_print_register): Likewise.
2933 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
2934 * xstormy16-tdep.c (xstormy16_store_return_value)
2935 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
2936 (xstormy16_find_jmp_table_entry): Likewise.
2937
2938 2013-03-01 Jiong Wang <jiwang@tilera.com>
2939
2940 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
2941 (tilegx_gdbarch_init): Install it.
2942
2943 2013-02-28 Tom Tromey <tromey@redhat.com>
2944
2945 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
2946 PyLong_Check.
2947
2948 2013-02-28 Doug Evans <dje@google.com>
2949
2950 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
2951 * python/python.c (gdbpy_find_pc_line): Ditto.
2952
2953 2013-02-28 Tom Tromey <tromey@redhat.com>
2954
2955 * contrib/excheck.py: New file.
2956 * contrib/exsummary.py: New file.
2957 * contrib/gcc-with-excheck: New file.
2958
2959 2013-02-28 Tom Tromey <tromey@redhat.com>
2960
2961 * python/python.c (gdbpy_print_stack): Call begin_line and
2962 fprintf_filtered inside TRY_CATCH.
2963
2964 2013-02-28 Tom Tromey <tromey@redhat.com>
2965
2966 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
2967 inside TRY_CATCH.
2968
2969 2013-02-28 Tom Tromey <tromey@redhat.com>
2970
2971 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
2972 frame_object_to_frame_info inside TRY_CATCH.
2973
2974 2013-02-28 Tom Tromey <tromey@redhat.com>
2975
2976 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
2977 TRY_CATCH.
2978
2979 2013-02-28 Tom Tromey <tromey@redhat.com>
2980
2981 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
2982
2983 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
2984
2985 * windows-nat.c: Throughout, fix format strings and casts of
2986 printf-like functions to avoid type related warnings on all
2987 platforms.
2988 (handle_output_debug_string): Fetch context information address
2989 from debug string using string_to_core_addr.
2990
2991 2013-02-27 Jiong Wang <jiwang@tilera.com>
2992
2993 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
2994 * regformats/reg-tilegx32.dat: New.
2995
2996 2013-02-27 Jiong Wang <jiwang@tilera.com>
2997
2998 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
2999
3000 2013-02-27 Jiong Wang <jiwang@tilera.com>
3001
3002 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
3003
3004 2013-02-27 Yao Qi <yao@codesourcery.com>
3005 Pedro Alves <palves@redhat.com>
3006
3007 * tracepoint.c (tfile_trace_find): For tfind
3008 pc/tp/range/outside, look for the next trace frame instead of
3009 always starting from frame 0.
3010
3011 2013-02-26 Anthony Green <green@moxielogic.com>
3012
3013 * configure.tgt: Add support for moxie-*-rtems* target.
3014
3015 2013-02-25 Pedro Alves <palves@redhat.com>
3016
3017 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
3018 warning text.
3019
3020 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
3021
3022 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
3023 if $fp is used as the virtual frame pointer.
3024
3025 2013-02-23 Alan Modra <amodra@gmail.com>
3026
3027 * elfread.c (elf_symtab_read): Do not use udata.p here to find
3028 symbol size.
3029 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
3030 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
3031 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
3032 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
3033
3034 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3035
3036 Code cleanup.
3037 * elfread.c (build_id_bfd_get): Make the return type const.
3038 (build_id_verify): Make the check parameter const.
3039 (build_id_to_debug_filename): Make the build_id parameter and variable
3040 data const.
3041 (find_separate_debug_file_by_buildid): Make the variable build_id const.
3042
3043 2013-02-21 Alan Modra <amodra@gmail.com>
3044
3045 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
3046
3047 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
3048
3049 Add a new method 'disassemble' to gdb.Architecture class.
3050 * python/py-arch.c (archpy_disassmble): Implementation of the
3051 new method gdb.Architecture.disassemble.
3052 (arch_object_methods): Add entry for the new method.
3053
3054 2013-02-20 Jiong Wang <jiwang@tilera.com>
3055
3056 * MAINTAINERS (Write After Approval): Add myself to the list.
3057
3058 2013-02-19 Pedro Alves <palves@redhat.com>
3059
3060 Garbage collect 'struct monitor_ops'::load_routine.
3061
3062 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
3063 * monitor.c (monitor_load): No longer call
3064 current_monitor->load_routine.
3065 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
3066 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
3067 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
3068
3069 2013-02-19 Pedro Alves <palves@redhat.com>
3070
3071 PR gdb/15161
3072
3073 Harmonize with generic_load.
3074
3075 * monitor.c: Include "readline/readline.h".
3076 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
3077 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
3078 long/strtol for the 'load_offset' local. Error out if no argument
3079 is given or if too many arguments are given. Tilde expand the
3080 passed in file name.
3081
3082 2013-02-19 Kai Tietz <ktietz@redhat.com>
3083
3084 PR gdb/15161
3085 * symfile.c (load_section_data): Change type of load_offset
3086 to CORE_ADDR.
3087 (generic_load): User strtoulst instead of strtoul for conversion
3088 of load_offset.
3089
3090 2013-02-19 Jiong Wang <jiwang@tilera.com>
3091
3092 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
3093 for return address, "lr" register, saved on stack.
3094 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
3095 after we invoke tilegx_analyze_prologue.
3096
3097 2013-02-19 Jiong Wang <jiwang@tilera.com>
3098
3099 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
3100
3101 2013-02-19 Jiong Wang <jiwang@tilera.com>
3102
3103 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3104
3105 2013-02-19 Jiong Wang <jiwang@tilera.com>
3106
3107 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
3108 (tilegx_write_pc): New function.
3109 (tilegx_cannot_reference_register): Return zero if REGNO
3110 is TILEGX_FAULTNUM_REGNUM.
3111 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
3112 (tilegx_register_name): Add handling of "faultnum" register.
3113 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
3114 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
3115 handling of TILEGX_FAULTNUM_REGNUM.
3116 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
3117
3118 2013-02-19 Jiong Wang <jiwang@tilera.com>
3119
3120 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
3121 should be aligned to 64bit.
3122
3123 2013-02-19 Kai Tietz <ktietz@redhat.com>
3124
3125 * windows-nat.c (windows_xfer_memory): Fix debug-output
3126 for LLP64.
3127
3128 2013-02-19 Lei Liu <lei.liu2@windriver.com>
3129
3130 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
3131 Don't check DSP register number if HAVE_DSP is not set.
3132
3133 2013-02-19 Alan Modra <amodra@gmail.com>
3134
3135 * elfread.c (struct build_id): Delete. Use struct elf_build_id
3136 throughout file instead.
3137 (build_id_bfd_get): Update to use new elf_tdata build_id field.
3138 Don't xmalloc return value.
3139 (build_id_verify): Similarly. Don't xfree.
3140 (build_id_to_debug_filename): Update.
3141 (find_separate_debug_file_by_buildid): Update, don't xfree.
3142
3143 2013-02-18 Tom Tromey <tromey@redhat.com>
3144
3145 PR gdb/15102:
3146 * dwarf2read.c (read_subrange_type): Use result of
3147 'check_typedef'.
3148
3149 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
3150
3151 * frame.c: Remove one extra white space after #include
3152 directive.
3153
3154 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3155
3156 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
3157
3158 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3159
3160 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
3161 and dir commands into an if block.
3162
3163 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
3164
3165 * python/py-breakpoint (struct pybp_code): Use int instead of
3166 enum type_code.
3167
3168 2013-02-15 Pedro Alves <pedro@codesourcery.com>
3169 Hafiz Abid Qadeer <abidh@codesourcery.com>
3170
3171 * NEWS: Mention new field "trace-file".
3172 * tracepoint.c (trace_status_mi): Output "trace-file" field.
3173 (tfile_open): Record the trace file's filename in the trace
3174 status.
3175 (tfile_files_info): Mention the name of the trace file.
3176 Check the "filename" field explicitely.
3177 (trace_status_command): Explicitely check "filename" field.
3178 (trace_find_command): Ditto.
3179 (trace_find_pc_command): Ditto.
3180 (trace_find_tracepoint_command): Ditto.
3181 (trace_find_line_command): Ditto.
3182 (trace_find_range_command): Ditto.
3183 (trace_find_outside_command): Ditto.
3184 * tracepoint.h (struct trace_status) <from_file>: Rename it
3185 to "filename" and make it hold the trace file's filename
3186 instead of a boolean.
3187 * remote.c (remote_get_trace_status): Initialize "filename"
3188 field with NULL instead of 0.
3189
3190 2013-02-15 Yao Qi <yao@codesourcery.com>
3191
3192 * remote.c: Fix a typo.
3193
3194 2013-02-14 Pierre Muller <muller@sourceware.org>
3195
3196 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
3197
3198 2013-02-14 Pedro Alves <palves@redhat.com>
3199
3200 * utils.c (savestring): Don't #undef it. Move function to
3201 common/common-utils.c.
3202 * common/common-utils.c: Include gdb_string.h.
3203 (savestring): Move here from utils.c.
3204 * common/common-utils.h (savestring): Declare.
3205
3206 2013-02-14 Pedro Alves <palves@redhat.com>
3207
3208 * utils.c (savestring): Rename parameter 'size' to 'len'.
3209
3210 2013-02-14 Pedro Alves <palves@redhat.com>
3211 Yufeng Zhang <yufeng.zhang@arm.com>
3212
3213 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
3214 (aarch64_inferior_data, struct aarch64_inferior_data):
3215 Delete.
3216 (struct aarch64_process_info): New.
3217 (aarch64_process_list): New global.
3218 (aarch64_find_process_pid, aarch64_add_process)
3219 (aarch64_process_info_get): New functions.
3220 (aarch64_inferior_data_get): Delete.
3221 (aarch64_process_info_get): New function.
3222 (aarch64_forget_process): New function.
3223 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
3224 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
3225 aarch64_get_debug_reg_state.
3226 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
3227 instead of linux_nat_iterate_watchpoint_lwps.
3228 (aarch64_linux_new_fork): New function.
3229 (aarch64_linux_child_post_startup_inferior): Use
3230 aarch64_forget_process instead of aarch64_init_debug_reg_state.
3231 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
3232 (aarch64_linux_remove_hw_breakpoint)
3233 (aarch64_handle_aligned_watchpoint)
3234 (aarch64_handle_unaligned_watchpoint)
3235 (aarch64_linux_insert_watchpoint)
3236 (aarch64_linux_remove_watchpoint)
3237 (aarch64_linux_stopped_data_address): Adjust to pass the current
3238 process id to aarch64_debug_reg_state.
3239 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
3240 linux_nat_new_fork hook, and aarch64_forget_process as
3241 linux_nat_forget_process hook; remove the call to
3242 register_inferior_data_with_cleanup.
3243
3244 2013-02-14 Pedro Alves <palves@redhat.com>
3245
3246 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
3247 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
3248 lval_memory.
3249
3250 2013-02-14 Pedro Alves <pedro@codesourcery.com>
3251 Hafiz Abid Qadeer <abidh@codesourcery.com>
3252
3253 * tracepoint.h (validate_trace_state_variable_name): Declare.
3254 * tracepoint.c (validate_trace_state_variable_name): New.
3255 (trace_variable_command): Parse the trace state variable's name
3256 without using parse_expression. Do several validations.
3257 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
3258 trace state variable's name with parse_expression. Validate it.
3259
3260 2013-02-14 Yao Qi <yao@codesourcery.com>
3261
3262 * infcmd.c (breakpoint_proceeded): Remove it.
3263
3264 2013-02-14 Yao Qi <yao@codesourcery.com>
3265
3266 * tracepoint.c (end_actions_pseudocommand): Make it static.
3267 (while_stepping_pseudocommand): Likewise.
3268 * tracepoint.h (end_actions_pseudocommand): Remove the
3269 declaration.
3270 (while_stepping_pseudocommand): Likewise.
3271
3272 2013-02-14 Yao Qi <yao@codesourcery.com>
3273
3274 * cli/cli-decode.c (help_cmd): Remove the declaration of
3275 "cmdlist".
3276 (help_all): Likewise.
3277
3278 2013-02-13 Pedro Alves <palves@redhat.com>
3279
3280 * amd64-linux-nat.c (update_debug_registers_callback):
3281 Update comment.
3282 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
3283 iterate_over_lwps.
3284 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
3285 i386_debug_reg_state.
3286 (amd64_linux_new_fork): New function.
3287 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
3288 linux_nat_new_fork hook, and i386_forget_process as
3289 linux_nat_forget_process hook.
3290 * i386-linux-nat.c (update_debug_registers_callback):
3291 Update comment.
3292 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
3293 iterate_over_lwps.
3294 (i386_linux_prepare_to_resume): Pass the lwp's pid to
3295 i386_debug_reg_state.
3296 (i386_linux_new_fork): New function.
3297 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
3298 linux_nat_new_fork hook, and i386_forget_process as
3299 linux_nat_forget_process hook.
3300 * i386-nat.c (i386_init_dregs): Delete.
3301 (i386_inferior_data, struct i386_inferior_data):
3302 Delete.
3303 (struct i386_process_info): New.
3304 (i386_process_list): New global.
3305 (i386_find_process_pid, i386_add_process, i386_process_info_get):
3306 New functions.
3307 (i386_inferior_data_get): Delete.
3308 (i386_process_info_get): New function.
3309 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
3310 (i386_forget_process): New function.
3311 (i386_cleanup_dregs): Rewrite.
3312 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
3313 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
3314 (i386_stopped_data_address, i386_insert_hw_breakpoint)
3315 (i386_remove_hw_breakpoint): Adjust to pass the current process id
3316 to i386_debug_reg_state.
3317 (i386_use_watchpoints): Don't register inferior data.
3318 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
3319 adjust comment.
3320 (i386_forget_process): Declare.
3321 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
3322 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
3323 New static globals.
3324 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
3325 (add_initial_lwp): New, factored out from ...
3326 (add_lwp): ... this. Don't check the number of lwps before
3327 calling linux_nat_new_thread.
3328 (linux_nat_iterate_watchpoint_lwps): Delete.
3329 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
3330 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
3331 forks and vforks.
3332 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
3333 initial lwp.
3334 (linux_nat_kill, linux_nat_mourn_inferior): Call
3335 linux_nat_forget_process.
3336 (linux_nat_set_new_fork, linux_nat_set_forget_process)
3337 (linux_nat_forget_process): New functions.
3338 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
3339 type.
3340 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
3341 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
3342 types.
3343 (linux_nat_set_new_fork, linux_nat_set_forget_process)
3344 (linux_nat_forget_process): New declarations.
3345
3346 * amd64fbsd-nat.c (super_mourn_inferior): New global.
3347 (amd64fbsd_mourn_inferior): New function.
3348 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
3349 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
3350
3351 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
3352
3353 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
3354 Adding _().
3355
3356 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
3357
3358 * aarch64-linux-nat.c (debug_reg_change_callback)
3359 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
3360 %s and phex().
3361
3362 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
3363
3364 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
3365 with LONGEST.
3366
3367 2013-02-13 Pedro Alves <palves@redhat.com>
3368 Hafiz Abid Qadeer <abidh@codesourcery.com>
3369
3370 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
3371
3372 2013-02-12 Tom Tromey <tromey@redhat.com>
3373
3374 PR symtab/11464:
3375 * c-exp.y (lex_one_token): Initialize other fields of yylval on
3376 NAME return.
3377 (classify_inner_name): Remove 'first_name' argument, add
3378 'context'. Remove unused variable.
3379 (yylex): Explicitly maintain the context type. Exit loop earlier
3380 if NAME result is seen.
3381
3382 2013-02-12 Pedro Alves <palves@redhat.com>
3383
3384 * amd64-darwin-tdep.c: Add (C) after Copyright.
3385 * cli/cli-cmds.h: Ditto.
3386 * cli/cli-decode.c: Ditto.
3387 * cli/cli-decode.h: Ditto.
3388 * cli/cli-dump.c: Ditto.
3389 * cli/cli-dump.h: Ditto.
3390 * cli/cli-interp.c: Ditto.
3391 * cli/cli-logging.c: Ditto.
3392 * cli/cli-script.c: Ditto.
3393 * cli/cli-script.h: Ditto.
3394 * cli/cli-setshow.c: Ditto.
3395 * cli/cli-setshow.h: Ditto.
3396 * cli/cli-utils.c: Ditto.
3397 * cli/cli-utils.h: Ditto.
3398 * config/alpha/nm-osf3.h: Ditto.
3399 * config/djgpp/djconfig.sh: Ditto.
3400 * config/i386/nm-fbsd.h: Ditto.
3401 * config/i386/nm-i386gnu.h: Ditto.
3402 * config/nm-linux.h: Ditto.
3403 * config/nm-nto.h: Ditto.
3404 * config/rs6000/nm-rs6000.h: Ditto.
3405 * config/sparc/nm-sol2.h: Ditto.
3406 * darwin-nat-info.c: Ditto.
3407 * dfp.c: Ditto.
3408 * dfp.h: Ditto.
3409 * gdb-demangle.h: Ditto.
3410 * i386-darwin-nat.c: Ditto.
3411 * i386-darwin-tdep.c: Ditto.
3412 * linux-fork.h: Ditto.
3413 * m32c-tdep.c: Ditto.
3414 * microblaze-linux-tdep.c: Ditto.
3415 * microblaze-rom.c: Ditto.
3416 * microblaze-tdep.c: Ditto.
3417 * microblaze-tdep.h: Ditto.
3418 * mips-linux-tdep.h: Ditto.
3419 * ppc-ravenscar-thread.c: Ditto.
3420 * ppc-ravenscar-thread.h: Ditto.
3421 * prologue-value.c: Ditto.
3422 * prologue-value.h: Ditto.
3423 * ravenscar-thread.c: Ditto.
3424 * ravenscar-thread.h: Ditto.
3425 * sparc-ravenscar-thread.c: Ditto.
3426 * sparc-ravenscar-thread.h: Ditto.
3427 * tilegx-linux-tdep.c: Ditto.
3428 * unwind_stop_reasons.def: Ditto.
3429 * windows-nat.h: Ditto.
3430 * xtensa-linux-tdep.c: Ditto.
3431 * xtensa-xtregs.c: Ditto.
3432 * regformats/regdat.sh: Ditto.
3433 * regformats/regdef.h: Ditto.
3434
3435 2013-02-12 Pedro Alves <palves@redhat.com>
3436
3437 * break-catch-sig.c: Update copyright years.
3438
3439 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
3440
3441 Add support for a destructor for ui_out data and use it to
3442 provide a ui_out destructor.
3443 * ui-out.h: Declare the new ui_out destructor.
3444 (ui_out_impl): Add a field for data destructor in ui_out_impl.
3445 * ui-out.c (default_data_destroy): Add a default data destructor
3446 which does nothing.
3447 (default_ui_out_impl): Set the new data_destroy field to
3448 default_data_destroy
3449 (uo_data_destroy): Local function which invokes the data
3450 destructor if present.
3451 (clear_table): Local function which clears the table data of a
3452 ui_out object.
3453 (ui_out_destroy): Public function which frees a ui_out object.
3454 (ui_out_table_end): Use the new clear_table function.
3455 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
3456 NULL.
3457 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
3458 to NULL.
3459
3460 2013-02-11 Doug Evans <dje@google.com>
3461
3462 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
3463 (printf_decfloat): New function. Broken out from ui_printf.
3464 Remove unnecessary code to shift the entire format string down.
3465 (printf_pointer): New function.
3466 (ui_printf): Code to print C strings, wide C strings, decfloats,
3467 and pointers moved to separate functions.
3468
3469 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
3470
3471 * valops.c (value_assign): Handling bitfield offset in
3472 `lval_internalvar_component' case.
3473
3474 2013-02-08 Doug Evans <dje@google.com>
3475
3476 * common/format.c (parse_format_string): Fix whitespace.
3477
3478 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
3479
3480 * stack.c (return_command): Work around uninitialized variable
3481 warning.
3482
3483 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
3484
3485 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
3486 number of the registers from 36 to 34.
3487
3488 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
3489
3490 * NEWS: Mention new AArch64 native and target support.
3491
3492 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
3493
3494 * MAINTAINERS (Write After Approval): Add myself.
3495
3496 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
3497 Marcus Shawcroft <marcus.shawcroft@arm.com>
3498 Nigel Stephens <nigel.stephens@arm.com>
3499 Yufeng Zhang <yufeng.zhang@arm.com>
3500
3501 * aarch64-linux-nat.c: New file.
3502 * config/aarch64/linux.mh: New file.
3503 * configure.host: Add AArch64.
3504 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
3505
3506 2013-02-07 Doug Evans <dje@google.com>
3507
3508 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
3509 disassemble command.
3510
3511 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
3512
3513 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
3514 set_gdbarch_fetch_tls_load_module_address.
3515
3516 2013-02-06 David S. Miller <davem@davemloft.net>
3517
3518 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
3519 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
3520 * value.c (struct_return_convention): New function.
3521 (using_struct_return): Implement in terms of struct_return_convention.
3522 * value.h (struct_return_convention): Declare.
3523 * stack.c (return_command): Allow successful overriding of the return
3524 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
3525
3526 2013-02-06 Tom Tromey <tromey@redhat.com>
3527
3528 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
3529 outside of TRY_CATCH.
3530
3531 2013-02-06 Yao Qi <yao@codesourcery.com>
3532
3533 * mi/mi-interp.c: Include "tracepoint.h".
3534 (mi_tsv_modified): Declare.
3535 (mi_tsv_created, mi_tsv_deleted): Update declaration.
3536 (mi_interpreter_init): Call observer_attach_tsv_modified.
3537 (mi_tsv_modified): New.
3538 (mi_tsv_created, mi_tsv_deleted): Update.
3539 * tracepoint.c (trace_variable_command): Call
3540 observer_notify_tsv_modified if the initial value of tsv is
3541 changed.
3542 (delete_trace_state_variable): Call
3543 observer_notify_tsv_deleted earlier.
3544 (trace_variable_command): Caller update.
3545 (create_tsv_from_upload): Likewise.
3546 * observer.sh: Declare "struct trace_state_variable".
3547
3548 * NEWS: Mention the new MI notification "=tsv-modified".
3549
3550 2013-02-05 Doug Evans <dje@google.com>
3551
3552 * completer.c (location_completer): Fix typo in comment.
3553
3554 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3555
3556 * breakpoint.c (add_location_to_breakpoint): Insert the location with
3557 ADDRESS sorted.
3558
3559 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
3560
3561 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
3562 Refactor if statement to avoid trailing || operator.
3563
3564 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
3565
3566 * NEWS: Add PowerPC FreeBSD as a new native configuration.
3567
3568 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
3569
3570 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
3571 * configure.host: Add powerpc*-*-freebsd* target.
3572 * configure.tgt: Add target info for powerpc*-*-freebsd*.
3573 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
3574 * config/powerpc/fbsd.mh: New file.
3575
3576 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
3577 Denys Vlasenko <dvlasenk@redhat.com>
3578 Pedro Alves <palves@redhat.com>
3579
3580 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
3581 (struct elf_internal_linux_prpsinfo): Forward declare.
3582 * gdbarch.h, gdbarch.c: Regenerate.
3583 * linux-tdep.c: Include `cli/cli-utils.h'.
3584 (linux_fill_prpsinfo): New function.
3585 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
3586 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
3587 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
3588 depending on gdbarch pointer bitness.
3589 * ppc-linux-tdep.c: Include elf-bfd.h.
3590 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
3591 on 32-bit.
3592
3593 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
3594 Marcus Shawcroft <marcus.shawcroft@arm.com>
3595 Nigel Stephens <nigel.stephens@arm.com>
3596 Yufeng Zhang <yufeng.zhang@arm.com>
3597
3598 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
3599
3600 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
3601 Marcus Shawcroft <marcus.shawcroft@arm.com>
3602 Nigel Stephens <nigel.stephens@arm.com>
3603 Yufeng Zhang <yufeng.zhang@arm.com>
3604
3605 * aarch64-newlib-tdep.c: New file.
3606 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
3607 aarch64*-*-elf.
3608 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
3609 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
3610 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
3611 * osabi.c (gdb_osabi_names): Add "Newlib".
3612
3613 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
3614 Marcus Shawcroft <marcus.shawcroft@arm.com>
3615 Nigel Stephens <nigel.stephens@arm.com>
3616 Yufeng Zhang <yufeng.zhang@arm.com>
3617
3618 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
3619 (ALLDEPFILES): Add aarch64-linux-tdep.c.
3620 * aarch64-linux-tdep.c: New file.
3621 * aarch64-linux-tdep.h: New file.
3622 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
3623 * configure.tgt: Add aarch64-none-linux-gnu.
3624
3625 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
3626 Marcus Shawcroft <marcus.shawcroft@arm.com>
3627 Nigel Stephens <nigel.stephens@arm.com>
3628 Yufeng Zhang <yufeng.zhang@arm.com>
3629
3630 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
3631 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
3632 (ALLDEPFILES): Add aarch64-tdep.c.
3633 * aarch64-tdep.c: New file.
3634 * aarch64-tdep.h: New file.
3635 * configure.tgt: Add AArch64.
3636 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
3637 (aarch64-expedite): New definition.
3638 * features/aarch64-core.xml: New file.
3639 * features/aarch64-fpu.xml: New file.
3640 * features/aarch64-without-fpu.c: New file (generated).
3641 * features/aarch64-without-fpu.xml: New file.
3642 * features/aarch64.c: New file (generated).
3643 * features/aarch64.xml: New file.
3644 * regformats/aarch64-without-fpu.dat: New file (generated).
3645 * regformats/aarch64.dat: New file (generated).
3646
3647 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3648
3649 * contrib/expect-read1.c: New file.
3650 * contrib/expect-read1.sh: New file.
3651
3652 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3653
3654 * dwarf2read.c (file_file_name): New function with code from
3655 file_full_name.
3656 (file_full_name): Move most of the code to file_file_name.
3657 (macro_start_file): Rename variable full_name to file_name and use
3658 file_file_name for it. Add comp_dir parameter to new_macro_table.
3659 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
3660 macro_source_file->filename access by macro_source_fullname call.
3661 * macroscope.c (_initialize_macroscope): Update the new_macro_table
3662 caller.
3663 * macrotab.c (struct macro_table): New field comp_dir.
3664 (macro_include): New variables link_fullname and source_fullname.
3665 Replace any macro_source_file->filename access by macro_source_fullname
3666 call.
3667 (macro_lookup_inclusion): Remove the partial filenames checking code.
3668 (check_for_redefinition): New variables source_fullname and
3669 found_key_fullname. Replace any macro_source_file->filename access by
3670 macro_source_fullname call.
3671 (macro_undef): New variables source_fullname and key_fullname. Replace
3672 any macro_source_file->filename access by macro_source_fullname call.
3673 (macro_lookup_definition): New variables retval and source_fullname.
3674 Replace any macro_source_file->filename access by macro_source_fullname
3675 call.
3676 (foreach_macro): New variable key_fullname. Replace any
3677 macro_source_file->filename access by macro_source_fullname call.
3678 (foreach_macro_in_scope): New variable datum_fullname. Replace any
3679 macro_source_file->filename access by macro_source_fullname call.
3680 (new_macro_table): Add parameter comp_dir. Initialize T with it.
3681 (macro_source_fullname): New function.
3682 * macrotab.h (struct macro_source_file): Extent the filename field
3683 comment.
3684 (new_macro_table): New parameter comp_dir, add a comment for it.
3685 (macro_source_fullname): new declaration.
3686
3687 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3688
3689 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
3690 this_real_name to outer block. Use it also for
3691 compare_filenames_for_search.
3692 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
3693 with dw2_get_real_path for file_matcher, considering also
3694 BASENAMES_MAY_DIFFER.
3695 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
3696
3697 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3698
3699 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
3700 to the file_matcher parameter. Pass 0 to it.
3701 (dwarf2_create_include_psymtab): Copy also DIRNAME.
3702 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
3703 NULL psymtab_to_fullname result.
3704 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
3705 an expected filename instead.
3706 (expand_symtabs_matching_via_partial): Add basenames parameter to the
3707 file_matcher parameter. Call also psymtab_to_fullname, after newly
3708 considering BASENAMES_MAY_DIFFER.
3709 * source.c (rewrite_source_path): Remove static.
3710 * source.h (rewrite_source_path): New declaration.
3711 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
3712 the expand_symtabs_matching field. Comment it.
3713 * symtab.c (file_matches): New function comment. Add parameter
3714 basenames, implement it.
3715 (search_symbols_file_matches): Add basenames parameter. Update the
3716 file_matches caller.
3717 (search_symbols): Match FILES also against symtab_to_fullname.
3718 Optimize it for BASENAMES_MAY_DIFFER.
3719
3720 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3721
3722 * source.c (print_source_lines_base): Print for TUI also "fullname".
3723 * tui/tui-data.c (init_content_element): Change tui_locator_element
3724 field to full_name.
3725 * tui/tui-data.h (struct tui_locator_element): Likewise.
3726 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
3727 tui_update_locator_filename calls to tui_update_locator_fullname.
3728 Replace symtab->filename refererence by symtab_to_fullname call.
3729 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
3730 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
3731 field to full_name. Replace symtab->filename refererence by
3732 symtab_to_fullname call.
3733 (tui_show_symtab_source): Rename parameter to fullname. Change
3734 tui_locator_element field to full_name.
3735 * tui/tui-stack.c: Include source.h.
3736 (tui_set_locator_filename): Rename the declaration to ...
3737 (tui_set_locator_fullname): ... here. Rename its parameter to
3738 fullname, updates its comment.
3739 (tui_set_locator_info): Rename its parameter to fullname.
3740 (tui_set_locator_filename): Rename the definition to ...
3741 (tui_set_locator_fullname): ... here. Rename its parameter to
3742 fullname, updates its comment. Change tui_locator_element field to
3743 full_name.
3744 (tui_set_locator_info): Rename its parameter to fullname.
3745 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
3746 (tui_update_locator_filename): Rename to ...
3747 (tui_update_locator_fullname): ... here. Rename callee to
3748 tui_set_locator_fullname.
3749 (tui_show_frame_info): Replace symtab->filename refererence by
3750 symtab_to_fullname call.
3751 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
3752 (tui_update_locator_fullname): ... here.
3753 * tui/tui-winsource.c (tui_display_main): Rename the callee to
3754 tui_update_locator_fullname. Replace symtab->filename refererence by
3755 symtab_to_fullname call.
3756 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
3757 Rename the callee to tui_update_locator_fullname.
3758 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
3759
3760 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3761
3762 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
3763 by symtab_to_filename_for_display calls.
3764 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
3765 (clear_command): New variable sal_fullname, initialize it. Replace
3766 compare_filenames_for_search by filename_cmp with sal_fullname.
3767 (say_where, update_static_tracepoint): Replace symtab->filename
3768 refererences by symtab_to_filename_for_display calls.
3769 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
3770 Likewise.
3771 * dwarf2read.c: Include source.h.
3772 (fixup_go_packaging): Replace symtab->filename refererences by
3773 symtab_to_filename_for_display calls.
3774 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
3775 Replace symtab->filename refererences by symtab_to_filename_for_display
3776 calls.
3777 (create_sals_line_offset, convert_linespec_to_sals): New variable
3778 fullname, initialize it, replace symtab->filename reference by the
3779 variable.
3780 * linux-fork.c: Include source.h.
3781 (info_checkpoints_command): Replace symtab->filename refererences by
3782 symtab_to_filename_for_display calls.
3783 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
3784 by symtab_to_filename_for_display calls.
3785 * mdebugread.c: Include source.h.
3786 (psymtab_to_symtab_1): Replace symtab->filename refererences by
3787 symtab_to_filename_for_display calls.
3788 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3789 (mi_cmd_file_list_exec_source_files): Likewise.
3790 * printcmd.c: Include source.h.
3791 (build_address_symbolic): Replace symtab->filename refererences by
3792 symtab_to_filename_for_display calls.
3793 * psymtab.c (partial_map_symtabs_matching_filename)
3794 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
3795 with psymtab_to_fullname.
3796 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
3797 by symtab_to_filename_for_display calls.
3798 (stpy_get_filename): New variable filename, initialize it, use instead
3799 of symtab->filename refererences.
3800 (salpy_str): Make variable filename const char *. Replace
3801 symtab->filename refererences by symtab_to_filename_for_display calls.
3802 * skip.c: Include source.h and filenames.h.
3803 (skip_file_command): Remove const from the symtab variable. Replace
3804 symtab->filename refererences by symtab_to_fullname call.
3805 (function_name_is_marked_for_skip): New variables searched_for_fullname
3806 and fullname. Use them to search also with symtab's fullname.
3807 * source.c (find_source_lines): Replace symtab->filename refererences
3808 by symtab_to_filename_for_display calls.
3809 (print_source_lines_base): New variable filename, use it instead of
3810 symtab->filename. Replace symtab->filename refererences by
3811 symtab_to_filename_for_display calls.
3812 (line_info, forward_search_command): Replace symtab->filename
3813 refererences by symtab_to_filename_for_display calls.
3814 (reverse_search_command): Replace symtab->filename refererences by
3815 symtab_to_filename_for_display calls. New variable filename for it.
3816 * stack.c (frame_info): Likewise.
3817 * symmisc.c: Include source.h.
3818 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
3819 (maintenance_info_symtabs): Replace symtab->filename refererences by
3820 symtab_to_filename_for_display calls.
3821 * symtab.c (iterate_over_some_symtabs): Call
3822 compare_filenames_for_search also with symtab_to_fullname.
3823 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
3824 symtab->filename refererences by symtab_to_filename_for_display calls.
3825 (find_line_symtab): Replace symtab->filename refererences by
3826 symtab_to_filename_for_display calls.
3827 (file_matches): Replace filename_cmp by compare_filenames_for_search.
3828 (print_symbol_info): Make the last parameter const char *. New
3829 variable s_filename. Use it in the function.
3830 (symtab_symbol_info): Make the last_filename variable const char *.
3831 Replace symtab->filename refererences by symtab_to_filename_for_display
3832 calls.
3833 (rbreak_command): New variable fullname. Use it. Replace
3834 symtab->filename refererence by symtab_to_filename_for_display call.
3835 * tracepoint.c (set_traceframe_context, trace_find_line_command)
3836 (print_one_static_tracepoint_marker): Replace symtab->filename
3837 refererences by symtab_to_filename_for_display calls.
3838 * tui/tui-source.c (tui_set_source_content): New variables filename and
3839 s_filename. Replace symtab->filename refererences by this variable.
3840 Replace other symtab->filename refererences by
3841 symtab_to_filename_for_display calls.
3842
3843 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
3844 Jan Kratochvil <jan.kratochvil@redhat.com>
3845
3846 Add a new variable that controls a way in which filenames are
3847 displayed.
3848 * NEWS (set filename-display): New entry.
3849 * source.c (filename_display_basename, filename_display_relative)
3850 (filename_display_absolute, filename_display_kind_names)
3851 (filename_display_string, show_filename_display_string)
3852 (symtab_to_filename_for_display): New.
3853 (_initialize_source): Added initialization of 'filename-display'
3854 variable.
3855 * source.h (symtab_to_filename_for_display): Added declaration.
3856 * stack.c (print_frame): Added new variable and calling of a new
3857 function and condition with this variable. Changed third argument of
3858 calling of a function.
3859
3860 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3861
3862 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
3863 Rename field reference filename to fullname.
3864 * tui/tui-data.h (struct tui_source_info): Rename field filename to
3865 fullname. New comment for it.
3866 * tui/tui-source.c (tui_set_source_content): Rename field reference
3867 filename to fullname. Initialize field by symtab_to_fullname now.
3868 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
3869 reference filename to fullname. Use symtab_to_fullname during
3870 comparison.
3871
3872 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3873
3874 Code cleanup.
3875 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
3876 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
3877 filename to fullname. Rename variable this_name to this_fullname.
3878 Lowercase FILENAME_CMP call.
3879 (dw2_find_symbol_file): New comment for the returned string.
3880 (dwarf2_gdb_index_functions): Rename the function to
3881 dw2_expand_symtabs_with_fullname.
3882 * psymtab.c (read_psymtabs_with_filename): Rename to ...
3883 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
3884 fullname.
3885 (psym_functions): Rename the function to read_psymtabs_with_fullname.
3886 * symfile.h (struct quick_symbol_functions): Rename field
3887 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
3888 parameter filename to fullname. Document returned string meaning for
3889 find_symbol_file.
3890 * symtab.c (find_line_symtab): Rename the called function to
3891 expand_symtabs_with_fullname.
3892
3893 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3894
3895 Code cleanup.
3896 * breakpoint.c (clear_command): Remove variable is_abs, unify the
3897 call of filename_cmp with compare_filenames_for_search.
3898 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
3899 is_abs, unify the call of FILENAME_CMP with
3900 compare_filenames_for_search. New gdb_asserts for real_path and name.
3901 Unify the call of compare_filenames_for_search with FILENAME_CMP.
3902 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
3903 * symfile.h (struct quick_symbol_functions): Extend the comment for
3904 map_symtabs_matching_filename.
3905 * symtab.c (compare_filenames_for_search): Remove the function comment
3906 relative path requirement. Handle absolute filenames, with a comment.
3907 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
3908 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
3909 real_path and name. Unify the call of compare_filenames_for_search
3910 with FILENAME_CMP.
3911 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
3912
3913 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3914
3915 Code cleanup.
3916 * breakpoint.c (print_breakpoint_location): Replace bp_location field
3917 source_file references by symtab field references. Remove variables
3918 sal and fullname.
3919 (momentary_breakpoint_from_master, add_location_to_breakpoint):
3920 (clear_command, say_where): Replace bp_location field source_file
3921 references by symtab field references.
3922 (bp_location_dtor): Remove the source_file reference.
3923 (update_static_tracepoint): Replace bp_location field source_file
3924 references by symtab field references.
3925 (breakpoint_free_objfile): New function.
3926 * breakpoint.h (struct bp_location): Extend the comment for line_number.
3927 Replace the field source_file by field symtab, extend its comment.
3928 (breakpoint_free_objfile): New declaration.
3929 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
3930 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
3931 field source_file references by symtab field references.
3932
3933 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3934
3935 Replace xfullpath calls by gdb_realpath calls.
3936 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
3937 function comment.
3938 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
3939 Remove it from the iterate_over_some_symtabs call.
3940 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
3941 Remove it from the dw2_map_expand_apply calls, remove a block handling
3942 it.
3943 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
3944 Remove it from the iterate_over_some_symtabs call.
3945 (partial_map_symtabs_matching_filename): Remove parameter full_path.
3946 Remove it from the partial_map_expand_apply calls, remove a block
3947 handling it. Drop gdb_realpath call and cleanups from the real_path
3948 handling.
3949 * source.c (openp): Drop the comment part about xfullpath. Replace
3950 xfullpath calls by gdb_realpath calls.
3951 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
3952 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
3953 from method map_symtabs_matching_filename and its comment.
3954 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
3955 gdb_realpath call.
3956 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
3957 remove it also from the function comment, remove a block handling it.
3958 Drop gdb_realpath call and cleanups from the real_path handling.
3959 (iterate_over_symtabs): Drop variable full_path and its use.
3960 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
3961 * utils.c (xfullpath): Remove.
3962 * utils.h (xfullpath): Remove.
3963
3964 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
3965
3966 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
3967 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
3968 (ALLDEPFILES): Add ppc64-tdep.c.
3969 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
3970 ppc64-tdep.o to gdb_target_obs.
3971 * ppc64-tdep.h: New file.
3972 * ppc64-tdep.c: New file.
3973 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
3974 ppc-linux-tdep.c to here.
3975 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
3976 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
3977 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
3978 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
3979 from ppc-linux-tdep.c to here.
3980 (ppc64_convert_from_func_ptr_addr): Rename from
3981 ppc64_linux_convert_from_func_ptr_addr to
3982 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
3983 here.
3984 * rs6000-tdep.c:
3985 (read_insn): Move from ppc-linux-tdep.c to here.
3986 (insns_match_pattern, insn_d_field, insn_ds_field): Move
3987 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
3988 * ppc-linux-tdep.c: Include ppc64-tdep.h.
3989 Removed above functions.
3990 (ppc_linux_init_abi): Adjust.
3991
3992 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
3993
3994 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
3995
3996 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
3997
3998 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
3999
4000 2013-02-01 Pedro Alves <palves@redhat.com>
4001
4002 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
4003 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
4004
4005 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4006
4007 * elfread.c (elf_symfile_read): Limit separate debug info additions to
4008 files with no separate debug info.
4009 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
4010 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
4011 only for files with no separate debug info.
4012
4013 2013-01-31 Tom Tromey <tromey@redhat.com>
4014
4015 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
4016 change type.
4017 (struct jit_program_space_data): Rename from jit_inferior_data.
4018 Update comments.
4019 (get_jit_program_space_data): Rename from get_jit_inferior_data.
4020 Change return type. Attach data to program space.
4021 (jit_program_space_data_cleanup): Rename from
4022 jit_inferior_data_cleanup; change argument type.
4023 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
4024 change type.
4025 (jit_register_code): Update.
4026 (jit_update_inferior_cache): Remove.
4027 (jit_breakpoint_deleted): Get jit data from the location's program
4028 space.
4029 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
4030 'ps_data', change type.
4031 (jit_inferior_init, jit_breakpoint_re_set_internal)
4032 (jit_event_handler): Update.
4033 (free_objfile_data): Get data from objfile's program space.
4034 (_initialize_jit): Update.
4035
4036 2013-01-31 Tom Tromey <tromey@redhat.com>
4037
4038 PR gdb/13987:
4039 * jit.c (struct jit_inferior_data) <cached_code_address,
4040 jit_breakpoint>: New fields.
4041 (jit_breakpoint_re_set_internal): Fix logging. Only create
4042 breakpoint if cached address has changed.
4043 (jit_update_inferior_cache, jit_breakpoint_deleted): New
4044 functions.
4045 (_initialize_jit): Register breakpoint deleted observer.
4046
4047 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
4048
4049 * infrun.c (handle_syscall_event): Remove unused gdbarch.
4050 (save_infcall_suspend_state): Ifdef out unused inf.
4051 (restore_infcall_suspend_state): Ifdef out unused inf.
4052 * jit.c (jit_register_code): Remove unused i, b, inf_data.
4053 (jit_frame_sniffer): Remove unused inf_data.
4054
4055 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
4056
4057 * c-exp.y (classify_inner_name): Remove unused type.
4058 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
4059 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
4060 need_escape.
4061 (c_get_string): Remove unused kind.
4062 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
4063
4064 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
4065
4066 * charset.c (intermediate_encoding): Remove unused i.
4067 * completer.c (signal_completer): Remove unused i.
4068 * continuations.c (discard_my_continuations_1): Remove unused
4069 continuation_ptr.
4070 * corelow.c (core_close): Remove unuseD name.
4071 (get_core_siginfo): Remove unused pid.
4072 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
4073 i, cps.
4074 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
4075 (loclist_describe_location): Remove unused first.
4076 * event-top.c (command_line_handler): Remove unused got_eof.
4077 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
4078 (resize_section_table): Remove unused old_value.
4079 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
4080 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
4081 * i386-tdep.c (i386_process_record): Remove unused rex.
4082 * infcmd.c (get_return_value): Remove unused uiout.
4083 * jv-lang.c (type_from_class): Remove unused is_array.
4084 * jv-valprint.c (java_val_print): Remove unused i.
4085 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
4086 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
4087 * m2-typeprint.c (m2_print_type): Remove unused code.
4088 * macroexp.c (get_character_constant): Remove unused body_start.
4089 (macro_stringify): Remove unused result.
4090 * objc-lang.c (find_methods): Remove unused gdbarch.
4091 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
4092 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
4093 * stack.c (print_frame_args): Remove unused summary.
4094 * thread.c (thread_apply_command): Remove unused p.
4095 * valarith.c (value_x_unop): Remove unused mangle_ptr.
4096 * valops.c (search_struct_method): Remove unused skip.
4097 * valprint.c (generic_val_print): Remove unused byte_order.
4098 * varobj.c (varobj_update): Remove unused changed.
4099 * cli/cli-cmds.c (complete_command): Remove unused next_item.
4100 (alias_command): Remove unused c.
4101 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
4102 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
4103 format.
4104 (mi_cmd_data_write_memory): Remove unused word_format.
4105 (mi_cmd_data_write_memory_bytes): Remove unused r.
4106 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
4107 p_start, p_end.
4108 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
4109 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
4110 line_width.
4111
4112 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
4113
4114 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
4115 * symtab.c (iterate_over_symtabs): Remove unused s.
4116 (find_pc_sect_symtab): Remove unused pspAce.
4117 (find_pc_sect_line): Remove unused alt_symtab.
4118 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
4119 (completion_list_add_name): Remove unused newsize.
4120
4121 2013-01-31 Tom Tromey <tromey@redhat.com>
4122
4123 PR c++/14998:
4124 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
4125 TYPE_CODE_FUNC.
4126
4127 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
4128
4129 * target.c (target_read_string): Remove unused origlen.
4130
4131 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
4132
4133 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
4134 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
4135 * ax-general.c (ax_print): Remove unused is_float.
4136 * blockframe.c (block_innermost_frame): Remove unused start, end.
4137 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
4138
4139 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
4140
4141 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
4142 (svr4_read_so_list): Remove unused lmo.
4143 * solib-target.c (solib_target_relocate_section_addresses): Remove
4144 unused flags.
4145
4146 2013-01-30 Tom Tromey <tromey@redhat.com>
4147
4148 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
4149
4150 2013-01-30 Tom Tromey <tromey@redhat.com>
4151
4152 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
4153 * utils.c (gnu_debuglink_crc32): Remove.
4154 * utils.h (gnu_debuglink_crc32): Don't declare.
4155
4156 2013-01-30 Tom Tromey <tromey@redhat.com>
4157
4158 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
4159 (read_structure_type, read_enumeration_type): Remove cast.
4160
4161 2013-01-30 Tom Tromey <tromey@redhat.com>
4162
4163 * dwarf2read.c (read_namespace_type): Remove cast.
4164 (read_typedef): Likewise.
4165
4166 2013-01-29 Tom Tromey <tromey@redhat.com>
4167
4168 * dwarf2read.c (free_dwo_file): Remove assert.
4169
4170 2013-01-29 Tom Tromey <tromey@redhat.com>
4171
4172 * value.c (deprecated_set_value_modifiable): Remove.
4173 * value.h (deprecated_set_value_modifiable): Remove.
4174
4175 2013-01-28 Doug Evans <dje@google.com>
4176
4177 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
4178 to addresses from dwo files.
4179
4180 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
4181
4182 * valops.c (find_overload_match): Remove unused argument 'lax'.
4183 * value.h: Remove unused argument 'lax' from the declaration of
4184 find_overload_match.
4185 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
4186 to find_overload_match.
4187 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
4188 argument to find_overload_match.
4189
4190 2013-01-25 Tom Tromey <tromey@redhat.com>
4191
4192 * dwarf2read.c (processing_has_namespace_info): Remove.
4193 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
4194 (process_die, read_func_scope, dwarf2_start_symtab)
4195 (new_symbol_full): Update.
4196
4197 2013-01-25 Tom Tromey <tromey@redhat.com>
4198
4199 * cp-namespace.c (cp_set_block_scope): Remove.
4200 * cp-support.h (cp_set_block_scope): Remove.
4201 * dbxread.c: Include block.h.
4202 (cp_set_block_scope): New function.
4203 (process_one_symbol): Update.
4204 * dwarf2read.c (read_func_scope): Use block_set_scope.
4205
4206 2013-01-25 Pedro Alves <palves@redhat.com>
4207
4208 * remote.c (add_current_inferior_and_thread): Tweak comment.
4209
4210 2013-01-25 Tom Tromey <tromey@redhat.com>
4211
4212 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4213 (cp_add_using_directive): Add 'copy_names' argument.
4214 * cp-support.h (cp_add_using_directive): Update.
4215 (struct using_direct) <import_src, import_dest, alias,
4216 declaration>: Now const.
4217 * dwarf2read.c (read_import_statement): Use obconcat.
4218 Don't copy names passed to cp_add_using_directive.
4219
4220 2013-01-25 Tom Tromey <tromey@redhat.com>
4221
4222 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
4223
4224 2013-01-25 Pedro Alves <palves@redhat.com>
4225
4226 * remote.c (stop_reply_extract_thread): New.
4227 (add_current_inferior_and_thread): New parameter 'wait_status'.
4228 Handle it.
4229 (remote_start_remote): Pass wait status to
4230 add_current_inferior_and_thread.
4231 (extended_remote_run): Update comment.
4232 (extended_remote_create_inferior_1): Pass wait status to
4233 add_current_inferior_and_thread.
4234
4235 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
4236 Ulrich Weigand <uweigand@de.ibm.com>
4237
4238 * valarith.c (value_vector_widen): New function for replicating a
4239 scalar into a vector.
4240 (value_binop): Use value_vector_widen to widen scalar to vector
4241 rather than casting, this better matches gcc C behaviour.
4242 * valops.c (value_casst): Update logic for casting between vector
4243 types, and for casting from scalar to vector, try to match gcc C
4244 behaviour.
4245 * value.h (value_vector_widen): Declare.
4246 * opencl-lang.c (opencl_value_cast): New opencl specific casting
4247 function, handle special case for casting scalar to vector.
4248 (opencl_relop): Use opencl_value_cast.
4249 (evaluate_subexp_opencl): Use opencl_value_cast instead of
4250 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
4251 in order to use opencl_value_cast.
4252
4253 2013-01-25 Yao Qi <yao@codesourcery.com>
4254
4255 * event-loop.c: Include "queue.h".
4256 (gdb_event_p): New typedef.
4257 (DECLARE_QUEUE_P): Use.
4258 (DEFINE_QUEUE_P): Use.
4259 (async_queue_event): Remove.
4260 (gdb_event_xfree): New.
4261 (initialize_event_loop): New.
4262 (process_event): Use QUEUE macros.
4263 (event_queue): Remove.
4264 (gdb_wait_for_event): Caller update.
4265 (check_async_event_handlers): Likewise.
4266 (poll_timers): Likewise.
4267 * event-loop.h (initialize_event_loop): Declare.
4268 * event-loop.c (gdb_event_xfree): New.
4269 * top.c (gdb_init): Call initialize_event_loop.
4270
4271 2013-01-25 Yao Qi <yao@codesourcery.com>
4272
4273 * event-loop.c (async_queue_event): Remove one parameter
4274 'position'. Remove code handling 'position' == TAIL.
4275 (gdb_wait_for_event): Caller update.
4276 (check_async_event_handlers): Caller update.
4277 (poll_timers): Caller update.
4278 * event-loop.h (enum queue_position): Remove.
4279
4280 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
4281
4282 * MAINTAINERS: Update my email.
4283
4284 2013-01-25 Yao Qi <yao@codesourcery.com>
4285
4286 * main.c (print_gdb_help): Remove "--epoch" from the help
4287 message.
4288
4289 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
4290
4291 * symtab.c (skip_prologue_using_sal): Consider a file
4292 change the same as an increased line number
4293
4294 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
4295
4296 * MAINTAINERS (Write After Approval): Add myself to the list.
4297
4298 2013-01-24 Tom Tromey <tromey@redhat.com>
4299
4300 * ada-lang.h (ada_decode_symbol): Make return type const.
4301 * ada-lang.c (ada_decode_symbol): Likewise.
4302
4303 2013-01-23 Doug Evans <dje@google.com>
4304
4305 * linespec.c (find_linespec_symbols): Make static.
4306
4307 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
4308
4309 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
4310 type on float conversion for complex type.
4311
4312 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
4313
4314 Add a new class gdb.Architecture which exposes GDB's
4315 internal representation of architecture via GDB Python API.
4316 * Makefile.in: Add entries corresponding to the new file
4317 python/py-arch.c.
4318 * NEWS (Python Scripting): Add entries for the new class
4319 gdb.Architecture and the new method gdb.Frame.architecture.
4320 * python/py-arch.c: Implement gdb.Architecture class.
4321 * python/py-frame.c (frapy_arch): Implement the method
4322 gdb.Frame.architecture().
4323 (frame_object_methods): Add 'architecture' to the method table.
4324 * python/python-internal.h: Add declarations of new utility
4325 functions.
4326 * python/python.c (_initialize_python): Initialize
4327 gdb.Architecture class.
4328
4329 2013-01-23 Doug Evans <dje@google.com>
4330
4331 Work around binutils/15021.
4332 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
4333 type_unit_group out of union s. All uses updated.
4334 (read_index_from_section): Watch for index version 8.
4335 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
4336 an imported symtab.
4337 (write_psymtabs_to_index): Increment version number to 8.
4338
4339 2013-01-22 Pedro Alves <palves@redhat.com>
4340
4341 * annotate.c (breakpoint_changed): Skip if breakpoint is not
4342 user-visible.
4343
4344 2013-01-22 Pedro Alves <palves@redhat.com>
4345
4346 * annotate.c (annotate_breakpoints_changed): Rename to ...
4347 (annotate_breakpoints_invalid): ... this. Make static.
4348 (breakpoint_changed): Adjust.
4349 (_initialize_annotate): Always install the observers. Install a
4350 "breakpoint_created" observer.
4351 * annotate.h (annotate_breakpoints_changed): Delete declaration.
4352 * breakpoint.c (set_breakpoint_condition)
4353 (breakpoint_set_commands, do_map_commands_command)
4354 (init_raw_breakpoint, clear_command, set_ignore_count)
4355 (enable_breakpoint_disp): No longer call
4356 annotate_breakpoints_changed.
4357
4358 2013-01-22 Pedro Alves <palves@redhat.com>
4359
4360 * annotate.c: Include "inferior.h".
4361 (frames_invalid_emitted)
4362 (breakpoints_invalid_emitted): New globals.
4363 (async_background_execution_p): New function.
4364 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
4365 emitting the annotation if it has already been emitted.
4366 (annotate_display_prompt): New function.
4367 * annotate.h (annotate_display_prompt): New declaration.
4368 * event-top.c: Include annotate.h.
4369 (display_gdb_prompt): Call annotate_display_prompt.
4370
4371 2013-01-22 Pedro Alves <palves@redhat.com>
4372
4373 * annotate.c (ignore_count_changed): Delete.
4374 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
4375 (annotate_ignore_count_change): Delete.
4376 (annotate_stopped): Don't emit a delayed breakpoints-changed
4377 annotation.
4378 * annotate.h (annotate_ignore_count_change): Delete.
4379 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
4380 annotate_ignore_count_change.
4381
4382 2013-01-22 Tom Tromey <tromey@redhat.com>
4383
4384 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
4385 require_rvalue for a register location.
4386
4387 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
4388
4389 * breakpoint.c (print_one_breakpoint_location): Add MI
4390 field 'thread-groups' when printing a breakpoint.
4391 (output_thread_groups): New function.
4392
4393 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
4394
4395 * python/lib/gdb/commands/explore.py
4396 (CompoundExplorer.explore_expr): Correct the name of a method
4397 being invoked.
4398 (ExploreTypeCommand.invoke): Add a missing 'return'.
4399
4400 2013-01-21 Tom Tromey <tromey@redhat.com>
4401
4402 * gdb_obstack.h (obconcat): Move declaration here, from...
4403 * symfile.h (obconcat): ... here.
4404 * gdb_obstack.c: New file.
4405 (obconcat): Move from...
4406 * symfile.c (obconcat): ... here.
4407 * Makefile.in (SFILES): Add gdb_obstack.c.
4408 (COMMON_OBS): Add gdb_obstack.o.
4409
4410 2013-01-21 Tom Tromey <tromey@redhat.com>
4411
4412 * symfile.h (obsavestring): Don't declare.
4413 * symfile.c (obsavestring): Remove.
4414 * ada-exp.y: Use obstack_copy0, not obsavestring.
4415 * ada-lang.c: Use obstack_copy0, not obsavestring.
4416 * coffread.c: Use obstack_copy0, not obsavestring.
4417 * cp-namespace.c: Use obstack_copy0, not obsavestring.
4418 * dbxread.c: Use obstack_copy0, not obsavestring.
4419 * dwarf2read.c: Use obstack_copy0, not obsavestring.
4420 * jit.c: Use obstack_copy0, not obsavestring.
4421 * mdebugread.c: Use obstack_copy0, not obsavestring.
4422 * psymtab.c: Use obstack_copy0, not obsavestring.
4423 * stabsread.c: Use obstack_copy0, not obsavestring.
4424 * xcoffread.c: Use obstack_copy0, not obsavestring.
4425
4426 2013-01-21 Tom Tromey <tromey@redhat.com>
4427
4428 * dwarf2read.c (fixup_go_packaging): Save package name
4429 on objfile obstack.
4430 * gdbtypes.c (init_type): Don't copy name.
4431
4432 2013-01-21 Tom Tromey <tromey@redhat.com>
4433
4434 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
4435 const.
4436 (struct attribute) <u.str>: Now const.
4437 (struct fnfieldlist) <name>: Now const.
4438 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
4439 (partial_die_parent_scope): Make return type const.
4440 (partial_die_full_name, add_partial_symbol): Update.
4441 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
4442 'name' const.
4443 (find_file_and_directory): Make 'name' and 'comp_dir' const.
4444 (read_file_scope, read_func_scope, dwarf2_add_field)
4445 (dwarf2_add_member_fn, read_structure_type)
4446 (process_enumeration_scope, read_array_type, read_module_type)
4447 (read_base_type, read_subrange_type): Update.
4448 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
4449 (new_symbol_full, guess_full_die_structure_name): Update.
4450 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
4451 (dwarf2_name): Return const type.
4452 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
4453 const.
4454
4455 2013-01-21 Tom Tromey <tromey@redhat.com>
4456
4457 * gdbtypes.c (init_type): Make 'name' const.
4458 * gdbtypes.h (init_type): Update.
4459
4460 2013-01-21 Tom Tromey <tromey@redhat.com>
4461
4462 * buildsym.c (patch_subfile_names): Use set_last_source_file.
4463 (start_symtab): Make 'name' and 'dirname' const. Use
4464 set_last_source_file.
4465 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
4466 (last_source_file): Define. Now static.
4467 (set_last_source_file, get_last_source_file): New functions.
4468 * buildsym.h (last_source_file): Don't declare.
4469 (start_symtab): Update.
4470 (set_last_source_file, get_last_source_file): Declare.
4471 * coffread.c (complete_symtab): Use set_last_source_file.
4472 (coff_end_symtab): Likewise.
4473 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
4474 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
4475 set_last_source_file.
4476 (process_one_symbol): Use get_last_source_file.
4477 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
4478 (psymtab_to_symtab_1): Use get_last_source_file.
4479 * xcoffread.c (process_linenos): Use get_last_source_file.
4480 (complete_symtab): Use set_last_source_file.
4481 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
4482 (scan_xcoff_symtab): Use set_last_source_file.
4483
4484 2013-01-21 Tom Tromey <tromey@redhat.com>
4485
4486 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
4487 (symbol_set_names): Remove casts. Handle field const-ness.
4488
4489 2013-01-21 Tom Tromey <tromey@redhat.com>
4490
4491 * dwarf2read.c (new_symbol_full): Remove cast.
4492 * symtab.c (symbol_set_demangled_name): Make 'name' const.
4493 * symtab.h (symbol_set_demangled_name): Update.
4494
4495 2013-01-21 Tom Tromey <tromey@redhat.com>
4496
4497 * main.c (captured_main): Call bfd_init.
4498
4499 2013-01-21 Tom Tromey <tromey@redhat.com>
4500
4501 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
4502 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
4503 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
4504 * NEWS: Update.
4505
4506 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4507
4508 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
4509
4510 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4511
4512 Fix gdb.fortran/common-block.exp crash in PIE mode.
4513 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
4514 LOC_COMMON_BLOCK.
4515 * f-valprint.c (info_common_command_for_block): Expect
4516 LOC_COMMON_BLOCK in gdb_assert.
4517 * symtab.h (struct general_symbol_info): Update comment for the
4518 common_block member.
4519 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
4520 (enum address_class): New member LOC_COMMON_BLOCK.
4521
4522 2013-01-18 David Blaikie <dblaikie@gmail.com>
4523
4524 * MAINTAINERS (Write After Approval): Add "David Blaikie".
4525
4526 2013-01-18 Tom Tromey <tromey@redhat.com>
4527
4528 PR c++/14999:
4529 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
4530 Call require_rvalue.
4531
4532 2013-01-18 Yao Qi <yao@codesourcery.com>
4533
4534 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
4535 (dbx_read_symtab): New declaration.
4536 (dbx_psymtab_to_symtab): Delete.
4537 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
4538 Rename parameter PST to SELF. Exchanged two parameters.
4539 (start_psymtab): Caller update.
4540 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
4541 (dwarf2_read_symtab): New declaration.
4542 (dwarf2_psymtab_to_symtab): Delete.
4543 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
4544 Rename parameter PST to SELF. Exchanged two parameters.
4545 (create_partial_symtab): Caller update.
4546 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
4547 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
4548 Rename parameter PST to SELF. Exchanged two parameters.
4549 (parse_partial_symbols, new_psymtab): Caller update.
4550 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
4551 two parameters.
4552 * psymtab.c (psymtab_to_symtab): Caller update.
4553 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
4554 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
4555 Rename parameter PST to SELF. Exchanged two parameters.
4556 (xcoff_start_psymtab): Caller update.
4557
4558 2013-01-18 Yao Qi <yao@codesourcery.com>
4559
4560 * infrun.c (proceed): Rename local variable 'oneproc' to
4561 'force_step'.
4562
4563 2013-01-17 Doug Evans <dje@google.com>
4564
4565 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
4566 (dw2_build_type_unit_groups): Delete. All uses updated.
4567
4568 * symtab.h (struct symbol_search): Add comment.
4569
4570 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4571
4572 * symtab.c (compare_filenames_for_search): New comment for
4573 HAS_DRIVE_SPEC.
4574
4575 2013-01-17 Tom Tromey <tromey@redhat.com>
4576
4577 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
4578
4579 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4580
4581 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
4582 initialize it by existing make_cleanup. Call new do_cleanups.
4583
4584 2013-01-17 Tom Tromey <tromey@redhat.com>
4585
4586 * cp-abi.c (cp_abi_completer): New function.
4587 (_initialize_cp_abi): Set completer for "set cp-abi".
4588
4589 2013-01-17 Tom Tromey <tromey@redhat.com>
4590
4591 * mem-break.c: Remove obsolete comment.
4592 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
4593
4594 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
4595
4596 * jit.c (jit_reader_load_command): Interpret the jit reader name
4597 as an absolute path if it begins with a forward slash.
4598
4599 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
4600
4601 PR gdb/14550
4602
4603 * jit.c (finalize_symtab): Ensure that only the global block has a
4604 NULL superblock.
4605
4606 2013-01-17 Pedro Alves <palves@redhat.com>
4607
4608 * acinclude.m4: Include ../config/plugins.m4,
4609 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
4610 * Makefile.in (aclocal_m4_deps): Update.
4611 * aclocal.m4: Renegerate.
4612
4613 2013-01-16 Doug Evans <dje@google.com>
4614
4615 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
4616
4617 2013-01-16 Pedro Alves <palves@redhat.com>
4618 Tom Tromey <tromey@redhat.com>
4619
4620 PR cli/7221:
4621 * NEWS: Add "catch signal".
4622 * breakpoint.c (base_breakpoint_ops): No longer static.
4623 (bpstat_explains_signal): New function.
4624 (init_catchpoint): No longer static.
4625 (base_breakpoint_explains_signal): New function.
4626 (base_breakpoint_ops): Initialize new field.
4627 * breakpoint.h (enum bpstat_signal_value): New.
4628 (struct breakpoint_ops) <explains_signal>: New field.
4629 (bpstat_explains_signal): Remove macro, declare as function.
4630 (base_breakpoint_ops, init_catchpoint): Declare.
4631 * break-catch-sig.c: New file.
4632 * inferior.h (signal_catch_update): Declare.
4633 * infrun.c (signal_catch): New global.
4634 (handle_syscall_event): Update for change to
4635 bpstat_explains_signal.
4636 (handle_inferior_event): Likewise. Always handle random signals
4637 via bpstats.
4638 (signal_cache_update): Check signal_catch.
4639 (signal_catch_update): New function.
4640 (_initialize_infrun): Initialize signal_catch.
4641 * Makefile.in (SFILES): Add break-catch-sig.c.
4642 (COMMON_OBS): Add break-catch-sig.o.
4643
4644 2013-01-16 Tom Tromey <tromey@redhat.com>
4645
4646 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
4647 (print_one_catch_solib, print_one_catch_syscall)
4648 (print_one_catch_exec, print_one_exception_catchpoint): Emit
4649 "catch-type".
4650
4651 2013-01-16 Yao Qi <yao@codesourcery.com>
4652
4653 * printcmd.c (current_display_number): Make it static.
4654
4655 2013-01-16 Yao Qi <yao@codesourcery.com>
4656
4657 * infcmd.c (step_once): Don't check '!single_inst' as it was
4658 checked before.
4659
4660 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4661
4662 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
4663
4664 2013-01-14 Tom Tromey <tromey@redhat.com>
4665
4666 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
4667 set command.
4668 * command.h (add_setshow_string_noescape_cmd): Update.
4669 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
4670 (complete_set_gnutarget): New function.
4671 (_initialize_core): Set the "set gnutarget" completer.
4672
4673 2013-01-14 Tom Tromey <tromey@redhat.com>
4674
4675 PR symtab/14442:
4676 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
4677 (c_type_print_modifier): Likewise.
4678 * dwarf2read.c (read_tag_restrict_type): New function.
4679 (read_type_die_1): Handle DW_TAG_restrict_type.
4680 * gdbtypes.c (make_restrict_type): New function.
4681 (recursive_dump_type): Handle TYPE_RESTRICT.
4682 * gdbtypes.h (enum type_flag_values): Renumber.
4683 (enum type_instance_flag_value): Add
4684 TYPE_INSTANCE_FLAG_RESTRICT.
4685 (TYPE_RESTRICT): New macro.
4686 (make_restrict_type): Declare.
4687
4688 2013-01-14 Tom Tromey <tromey@redhat.com>
4689
4690 PR symtab/14931:
4691 * psymtab.c (struct psymtab_state): New.
4692 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
4693 functions.
4694 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
4695 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
4696
4697 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
4698 Pedro Alves <palves@redhat.com>
4699
4700 PR remote/14786
4701
4702 * remote.c (remote_threads_info): Make a copy of the reply from
4703 qfThreadInfo and use that instead of rs->buf.
4704
4705 2013-01-14 Yao Qi <yao@codesourcery.com>
4706
4707 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
4708 (dbx_psymtab_to_symtab): Likewise.
4709 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
4710 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
4711 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
4712
4713 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4714
4715 * parse.c (parse_exp_in_context): New variable inner_chain. Call
4716 make_cleanup_restore_current_language. Call set_language. Move
4717 OLD_CHAIN and INNER_CHAIN cleanups.
4718 * utils.c (do_restore_current_language)
4719 (make_cleanup_restore_current_language): New functions.
4720 * utils.h (make_cleanup_restore_current_language): New declaration.
4721
4722 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4723
4724 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
4725 non-existing files.
4726
4727 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
4728 non-existing files if FILENAME is already absolute.
4729
4730 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4731
4732 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
4733 fputs_filtered. Append trailing newline.
4734
4735 2013-01-11 Yao Qi <yao@codesourcery.com>
4736 Stan Shebs <stan@codesourcery.com>
4737
4738 * psymtab.c (init_psymbol_list): Clarify the comment.
4739
4740 2013-01-11 Yao Qi <yao@codesourcery.com>
4741
4742 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
4743 (update_dprintf_command_list): Assert that 'printf_line' is
4744 non-null. Remove condition check.
4745
4746 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4747
4748 Code cleanup.
4749 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
4750 type const char *.
4751 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
4752 const char *.
4753 * tui/tui-source.h (tui_source_is_displayed): Likewise.
4754
4755 2013-01-09 Anthony Green <green@moxielogic.com>
4756
4757 * cp-abi.c (cplus_print_vtable): Don't return value from void
4758 function.
4759 * ada-lang.c (re_set_catch_assert): Ditto.
4760
4761 2013-01-09 Doug Evans <dje@google.com>
4762
4763 * symfile.h (quick_symbol_functions): Delete member
4764 pre_expand_symtabs_matching. All uses removed.
4765 * dwarf2read.c (dw2_lookup_symbol): Implement.
4766 (dw2_do_expand_symtabs_matching): Delete.
4767 (dw2_pre_expand_symtabs_matching): Delete.
4768 (struct dw2_symtab_iterator): New type.
4769 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
4770 (dw2_expand_symtabs_for_function): Rewrite.
4771 (dwarf2_gdb_index_functions): Update.
4772 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
4773 (psym_functions): Update.
4774
4775 2013-01-09 Tom Tromey <tromey@redhat.com>
4776
4777 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
4778 * configure: Rebuild.
4779 * configure.ac: Add somread.o to the build if BFD has SOM
4780 support.
4781 * somread.c: Include som/aout.h, not syms.h.
4782 (som_symtab_read): Use som_external_symbol_dictionary_record.
4783 Unpack records manually.
4784 (_initialize_somread): Declare.
4785
4786 2012-01-08 Mike Frysinger <vapier@gentoo.org>
4787
4788 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
4789 Cast return_address to 64bits.
4790
4791 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
4792
4793 * printcmd.c: Remove define of function output_command.
4794 * tracepoint.c: Remove extern of function output_command.
4795 * valprint.h: (output_command): New extern.
4796
4797 2013-01-07 Tom Tromey <tromey@redhat.com>
4798
4799 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
4800 Remove.
4801 (objc_language_defn): Use c_printchar, c_printstr,
4802 c_emit_char.
4803
4804 2013-01-07 Tom Tromey <tromey@redhat.com>
4805
4806 PR cli/7719:
4807 * NEWS: Update.
4808 * ada-valprint.c (printstr, print_field_values): Remove
4809 "inspect_it" code.
4810 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
4811 code.
4812 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
4813 code.
4814 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
4815 * main.c (captured_main): Remove "epoch" argument.
4816 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
4817 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
4818 * p-valprint.c (pascal_object_print_value_fields): Remove
4819 "inspect_it" code.
4820 * printcmd.c (print_command_1): Remove 'inspect' argument.
4821 (print_command, call_command): Update.
4822 (inspect_command): Remove.
4823 (_initialize_printcmd): Make "inspect" an alias for "print".
4824 * top.c (epoch_interface): Remove.
4825 * top.h (epoch_interface): Remove.
4826 * valprint.c (user_print_options): Update.
4827 (print_converted_chars_to_obstack): Remove "inspect_it" code.
4828 * valprint.h (struct value_print_options) <inspect_it>: Remove
4829 field.
4830
4831 2013-01-04 Tom Tromey <tromey@redhat.com>
4832
4833 * valprint.h (read_string): Add 'extern'.
4834
4835 2013-01-07 Joel Brobecker <brobecker@adacore.com>
4836
4837 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
4838 used to decide whether to define darwin_read_dyld_info or not.
4839
4840 2013-01-03 Pierre Muller <muller@sourceware.org>
4841
4842 * main.c (relocate_gdb_directory): Avoid calling stat function
4843 if DIR is empty.
4844
4845 2013-01-03 Yao Qi <yao@codesourcery.com>
4846
4847 * psymtab.c (fixup_psymbol_section): Update declaration.
4848 (fixup_psymbol_section): Remove code returning value.
4849
4850 2013-01-03 Yao Qi <yao@codesourcery.com>
4851
4852 * symtab.h: Remove some out of date comments.
4853 (enum exception_event_kind): Move it ...
4854 * breakpoint.c: ... here.
4855
4856 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
4857
4858 PR gdb/14405
4859 * darwin-nat.c (darwin_read_dyld_info): Only build if
4860 TASK_DYLD_INFO_COUNT is defined.
4861 (darwin_xfer_partial): Call darwin_read_dyld_info only if
4862 TASK_DYLD_INFO_COUNT is defined.
4863
4864 2013-01-02 Tom Tromey <tromey@redhat.com>
4865
4866 * symfile.h (struct ecoff_debug_hack): Remove.
4867 * objfiles.c: Don't include mdebugread.h.
4868
4869 2013-01-02 Tom Tromey <tromey@redhat.com>
4870
4871 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
4872 * configure.ac: Check for Mach-O support in BFD. Update
4873 CONFIG_OBS.
4874 * configure: Rebuild.
4875
4876 2013-01-02 Tom Tromey <tromey@redhat.com>
4877
4878 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
4879 * configure.ac: Use GDB_AC_CHECK_BFD.
4880 * configure: Rebuild.
4881
4882 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
4883
4884 * MAINTAINERS: Update my email.
4885
4886 2013-01-01 Joel Brobecker <brobecker@adacore.com>
4887
4888 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
4889
4890 2013-01-01 Joel Brobecker <brobecker@adacore.com>
4891
4892 * rs6000-nat.c (bss_data_overlap): New function.
4893 (vmap_symtab): Use it to adjust the .bss section's offset.
4894
4895 2013-01-01 Joel Brobecker <brobecker@adacore.com>
4896
4897 Update year range in copyright notice of all files.
4898
4899 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
4900
4901 * top.c (print_gdb_version): Update copyright year.
4902
4903 For older changes see ChangeLog-2012.
4904 \f
4905 Local Variables:
4906 mode: change-log
4907 left-margin: 8
4908 fill-column: 74
4909 version-control: never
4910 coding: utf-8
4911 End: