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