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