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