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