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