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