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