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