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