]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
* remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2013-03-08 Tom Tromey <tromey@redhat.com>
2
3 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
4 variable.
5
6 2013-03-07 Pedro Alves <palves@redhat.com>
7
8 * target.c (target_read_stralloc, target_fileio_read_alloc):
9 *Cast pointer to 'gdb_byte *' in target call.
10
11 2013-03-07 Pedro Alves <palves@redhat.com>
12
13 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
14 call.
15
16 2013-03-07 Keith Seitz <keiths@redhat.com>
17
18 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
19 (trace_pass_command): Likewise.
20 * cli/cli-cmds.c: Include cli/cli-utils.h.
21 (source_command): Use skip-spaces.
22 (disassemble_command): Likewise.
23 * findcmd.c: Include cli/cli-utils.h.
24 (parse_find_args): Use skip_spaces.
25 * go32-nat.c: Include cli/cli-utils.h.
26 (go32_sldt): Use skip_spaces.
27 (go32_sgdt): Likewise.
28 (go32_sidt): Likewise.
29 (go32_pde): Likewise.
30 (go32_pte): Likewise.
31 (go32_pte_for_address): Likewise.
32 * infcmd.c: Include cli/cli-utils.h.
33 (registers_info): Use skip_spaces.
34 * linux-tdep.c (read_mapping): Use skip_spaces_const.
35 (linux_info_proc): Likewise.
36 * linux-thread-db.c: Include cli/cli-utils.h.
37 (info_auto_load_libthread_db): Use skip_spaces_const.
38 * m32r-rom.c: Include cli/cli-utils.h.
39 (m32r_upload_command): Use skip_spaces.
40 * maint.c: Include cli/cli-utils.h.
41 (maintenance_translate_address): Use skip_spaces.
42 * mi/mi-parse.c: Include cli/cli-utils.h.
43 (mi_parse_argv): Use skip_spaces.
44 (mi_parse): Likewise.
45 * minsyms.c: Include cli/cli-utils.h.
46 (msymbol_hash_iw): Use skip_spaces_const.
47 * objc-lang.c: Include cli/cli-utils.h.
48 (parse_selector): Use skip_spaces.
49 (parse_method): Likewise.
50 * python/python.c: Include cli/cli-utils.h.
51 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
52 (python_command)[HAVE_PYTHON]: Likewise.
53 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
54 * remote-m32r-sdi.c: Include cli/cli-utils.h.
55 (m32r_load): Use skip_spaces.
56 * serial.c: Include cli/cli-utils.h.
57 (serial_open): Use skip_spaces_const.
58 * stack.c: Include cli/cli-utils.h.
59 (parse_frame_specification_1): Use skip_spaces_const.
60 * symfile.c: Include cli/cli-utils.h.
61 (set_ext_lang_command): Use skip_spaces.
62 * symtab.c: Include cli/cli-utils.h.
63 (rbreak_command): Use skip_spaces.
64 * thread.c (thread_name_command): Use skip_spaces.
65 * tracepoint.c (validate_actionline): Use skip_spaces.
66 (encode_actions_1): Likewise.
67 (trace_find_range_command): Likewise.
68 (trace_find_outside_command): Likewise.
69 (trace_dump_actions): Likewise.
70
71 2013-03-07 Pedro Alves <palves@redhat.com>
72
73 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
74 * expprint.c (print_subexp_standard): Likewise.
75 * utils.c (host_char_to_target): Likewise.
76 * valprint.c (generic_emit_char, generic_printstr): Likewise.
77 * varobj.c (value_get_print_value): Change type of local to char*.
78 Cast it gdb_byte * in call to language printer.
79
80 2013-03-07 Pedro Alves <palves@redhat.com>
81
82 * charset.c (struct wchar_iterator) <input>: Change type to 'const
83 gdb_byte *'.
84 (make_wchar_iterator): Remove cast to char*.
85 (wchar_iterate): Change type of local.
86
87 2013-03-07 Pedro Alves <palves@redhat.com>
88
89 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
90 for 'regcache->register_status'.
91
92 2013-03-07 Pedro Alves <palves@redhat.com>
93
94 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
95 int.
96
97 2013-03-07 Pedro Alves <palves@redhat.com>
98
99 * stap-probe.c (handle_stap_probe): Add cast to char*.
100
101 2013-03-07 Pedro Alves <palves@redhat.com>
102
103 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
104 RECORD_MSGRCV>: Pass a signed variable to
105 regcache_raw_read_signed, instead of an unsigned one.
106
107 2013-03-07 Pedro Alves <palves@redhat.com>
108
109 * remote-notif.c (notif_debug): Change type to int.
110 * remote-notif.h (notif_debug): Likewise.
111
112 2013-03-07 Pedro Alves <palves@redhat.com>
113
114 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
115
116 2013-03-07 Pedro Alves <palves@redhat.com>
117
118 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
119 * remote.h (hex2bin, bin2hex): ... here.
120 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
121
122 2013-03-07 Eli Zaretskii <eliz@gnu.org>
123
124 * utils.c (initialize_utils): Improve doc strings of "set/show
125 width", "set/show height", and "set/show pagination".
126
127 2013-03-06 Keith Seitz <keiths@redhat.com>
128
129 * ax-gdb.c (gen_printf): Make FORMAT const.
130 * ax-gdb.h (gen_printf): Likewise.
131 * ax-general.c (ax_string): Make STR const.
132 * ax.h (ax_string): Likewise.
133
134 2013-03-06 Doug Evans <dje@google.com>
135
136 * elfread.c (elf_symfile_read): Move debugging printf to more
137 logical location.
138
139 2013-03-06 Pedro Alves <palves@redhat.com>
140
141 * python/py-utils.c (target_string_to_unicode): Delete function.
142 * python/python-internal.h (target_string_to_unicode): Delete
143 declaration.
144
145 2013-03-06 Pierre Muller <muller@sourceware.org>
146
147 * linespec.c (get_current_search_block): ARI fix, use (void)
148 for empty parameter list.
149
150 2013-03-05 Doug Evans <dje@google.com>
151
152 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
153 of old ada_lookup_symbol_list. In !full_search case, don't
154 search superblocks.
155 (ada_lookup_symbol_list): Delete arg full_search, all callers
156 updated. Call ada_lookup_symbol_list_worker.
157 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
158 * ada-lang.h (ada_lookup_symbol_list): Update.
159 * language.h (language_defn): Update comment for
160 la_iterate_over_symbols.
161 * linespec.c (iterate_over_file_blocks): New function.
162 (iterate_over_all_matching_symtabs): Call it.
163 (lookup_prefix_sym): Ditto.
164 (get_current_search_block): New function.
165 (get_search_block): Delete.
166 (find_label_symbols): Call get_current_search_block.
167 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
168 * symtab.c (iterate_over_symbols): Don't search superblocks.
169
170 2013-03-05 Yao Qi <yao@codesourcery.com>
171
172 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
173 parameter VAR's type from "unsigned int" to "int".
174 * command.h (var_zuinteger_unlimited): Update its comments.
175 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
176
177 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
178
179 * NEWS: Mention new target x86_64-*-cygwin*.
180
181 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
182
183 * configure.host: Add x86_64-*-cygwin* as host.
184 * configure.tgt: Add x86_64-*-cygwin* as target.
185 * config/i386/cygwin64.mh: New file.
186
187 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
188
189 * linespec.c (decode_line_2): Fix duplicate request off by two message.
190
191 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
192
193 * linespec.c (struct linespec_canonical_name): New.
194 (struct linespec_state): Change canonical_names type to it.
195 (add_sal_to_sals): Change variable canonical_name to canonical. Change
196 xrealloc element size. Initialize the different CANONICAL fields.
197 (canonical_to_fullform): New.
198 (filter_results): Use it. Add variables canonical, fullform and
199 cleanup.
200 (struct decode_line_2_item, decode_line_2_compare_items): New.
201 (decode_line_2): Remove variables iter and item_names, add variables
202 items and items_count. Modify the code for these new variables.
203
204 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
205
206 * coff-pe-read.c (read_pe_exported_syms): Don't return without
207 calling do_cleanup.
208
209 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
210
211 * tracepoint.c (build_traceframe_info): Add code for byte order.
212
213 2013-03-02 Kevin Buettner <kevinb@redhat.com>
214
215 * v850-tdep.c: (v850e2_register_name): Revise system register
216 names to match current V850E2M architecture specifications.
217 Update register number enum comments too.
218
219 2013-03-01 Jiong Wang <jiwang@tilera.com>
220 Pedro Alves <palves@redhat.com>
221
222 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
223 to END_ADDR.
224 (tilegx_skip_prologue): Limit prologue analysis to section end.
225
226 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
227
228 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
229 use it.
230
231 2013-03-01 Pedro Alves <palves@redhat.com>
232
233 Use gdb_byte for bytes from the program being debugged.
234
235 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
236 Change type of local 'buf' to gdb_byte.
237 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
238 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
239 * cris-tdep.c (cris_sigcontext_addr)
240 (cris_sigtramp_frame_unwind_cache): Likewise.
241 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
242 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
243 Likewise.
244 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
245 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
246 (hppa32_hpux_search_dummy_call_sequence)
247 (hppa_hpux_supply_save_state): Likewise.
248 * hppa-linux-tdep.c (insns_match_pattern)
249 (hppa_linux_find_global_pointer): Likewise.
250 * hppa-tdep.c (hppa_in_function_epilogue_p)
251 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
252 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
253 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
254 (i386fbsd_collect_uthread): Likewise.
255 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
256 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
257 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
258 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
259 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
260 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
261 (ia64_libunwind_frame_prev_register)
262 (ia64_libunwind_sigtramp_frame_this_id)
263 (ia64_find_global_pointer_from_dynamic_section)
264 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
265 (ia64_unwind_pc): Likewise.
266 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
267 * m68hc11-tdep.c (m68hc11_push_dummy_call)
268 (m68hc11_extract_return_value): Likewise.
269 * m68klinux-nat.c (fetch_register, store_register): Likewise.
270 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
271 (mep_get_insn, mep_push_dummy_call): Likewise.
272 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
273 (mips_linux_in_dynsym_stub): Likewise.
274 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
275 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
276 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
277 to gdb_byte.
278 * remote-mips.c (mips_set_register): Likewise.
279 * remote-sim.c (gdbsim_fetch_register): Likewise.
280 * score-tdep.c (score7_fetch_inst): Change type of parameter
281 'memblock' and local 'buf' to gdb_byte.
282 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
283 Change type of local 'buf' to gdb_byte. Adjust.
284 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
285 to gdb_byte**.
286 (score7_analyze_prologue): Change type of 'memblock' and
287 'memblock_ptr' locals to gdb_byte*.
288 * sh64-tdep.c (sh64_extract_return_value)
289 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
290 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
291 * solib-pa64.c (pa64_solib_create_inferior_hook)
292 (pa64_open_symbol_file_object): Remove local 'buf'.
293 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
294 (som_open_symbol_file_object): Likewise.
295 * solib-spu.c (spu_current_sos): Likewise.
296 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
297 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
298 (spu_store_registers): Likewise.
299 * target.c (debug_print_register): Likewise.
300 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
301 * xstormy16-tdep.c (xstormy16_store_return_value)
302 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
303 (xstormy16_find_jmp_table_entry): Likewise.
304
305 2013-03-01 Jiong Wang <jiwang@tilera.com>
306
307 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
308 (tilegx_gdbarch_init): Install it.
309
310 2013-02-28 Tom Tromey <tromey@redhat.com>
311
312 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
313 PyLong_Check.
314
315 2013-02-28 Doug Evans <dje@google.com>
316
317 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
318 * python/python.c (gdbpy_find_pc_line): Ditto.
319
320 2013-02-28 Tom Tromey <tromey@redhat.com>
321
322 * contrib/excheck.py: New file.
323 * contrib/exsummary.py: New file.
324 * contrib/gcc-with-excheck: New file.
325
326 2013-02-28 Tom Tromey <tromey@redhat.com>
327
328 * python/python.c (gdbpy_print_stack): Call begin_line and
329 fprintf_filtered inside TRY_CATCH.
330
331 2013-02-28 Tom Tromey <tromey@redhat.com>
332
333 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
334 inside TRY_CATCH.
335
336 2013-02-28 Tom Tromey <tromey@redhat.com>
337
338 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
339 frame_object_to_frame_info inside TRY_CATCH.
340
341 2013-02-28 Tom Tromey <tromey@redhat.com>
342
343 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
344 TRY_CATCH.
345
346 2013-02-28 Tom Tromey <tromey@redhat.com>
347
348 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
349
350 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
351
352 * windows-nat.c: Throughout, fix format strings and casts of
353 printf-like functions to avoid type related warnings on all
354 platforms.
355 (handle_output_debug_string): Fetch context information address
356 from debug string using string_to_core_addr.
357
358 2013-02-27 Jiong Wang <jiwang@tilera.com>
359
360 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
361 * regformats/reg-tilegx32.dat: New.
362
363 2013-02-27 Jiong Wang <jiwang@tilera.com>
364
365 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
366
367 2013-02-27 Jiong Wang <jiwang@tilera.com>
368
369 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
370
371 2013-02-27 Yao Qi <yao@codesourcery.com>
372 Pedro Alves <palves@redhat.com>
373
374 * tracepoint.c (tfile_trace_find): For tfind
375 pc/tp/range/outside, look for the next trace frame instead of
376 always starting from frame 0.
377
378 2013-02-26 Anthony Green <green@moxielogic.com>
379
380 * configure.tgt: Add support for moxie-*-rtems* target.
381
382 2013-02-25 Pedro Alves <palves@redhat.com>
383
384 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
385 warning text.
386
387 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
388
389 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
390 if $fp is used as the virtual frame pointer.
391
392 2013-02-23 Alan Modra <amodra@gmail.com>
393
394 * elfread.c (elf_symtab_read): Do not use udata.p here to find
395 symbol size.
396 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
397 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
398 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
399 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
400
401 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
402
403 Code cleanup.
404 * elfread.c (build_id_bfd_get): Make the return type const.
405 (build_id_verify): Make the check parameter const.
406 (build_id_to_debug_filename): Make the build_id parameter and variable
407 data const.
408 (find_separate_debug_file_by_buildid): Make the variable build_id const.
409
410 2013-02-21 Alan Modra <amodra@gmail.com>
411
412 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
413
414 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
415
416 Add a new method 'disassemble' to gdb.Architecture class.
417 * python/py-arch.c (archpy_disassmble): Implementation of the
418 new method gdb.Architecture.disassemble.
419 (arch_object_methods): Add entry for the new method.
420
421 2013-02-20 Jiong Wang <jiwang@tilera.com>
422
423 * MAINTAINERS (Write After Approval): Add myself to the list.
424
425 2013-02-19 Pedro Alves <palves@redhat.com>
426
427 Garbage collect 'struct monitor_ops'::load_routine.
428
429 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
430 * monitor.c (monitor_load): No longer call
431 current_monitor->load_routine.
432 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
433 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
434 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
435
436 2013-02-19 Pedro Alves <palves@redhat.com>
437
438 PR gdb/15161
439
440 Harmonize with generic_load.
441
442 * monitor.c: Include "readline/readline.h".
443 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
444 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
445 long/strtol for the 'load_offset' local. Error out if no argument
446 is given or if too many arguments are given. Tilde expand the
447 passed in file name.
448
449 2013-02-19 Kai Tietz <ktietz@redhat.com>
450
451 PR gdb/15161
452 * symfile.c (load_section_data): Change type of load_offset
453 to CORE_ADDR.
454 (generic_load): User strtoulst instead of strtoul for conversion
455 of load_offset.
456
457 2013-02-19 Jiong Wang <jiwang@tilera.com>
458
459 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
460 for return address, "lr" register, saved on stack.
461 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
462 after we invoke tilegx_analyze_prologue.
463
464 2013-02-19 Jiong Wang <jiwang@tilera.com>
465
466 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
467
468 2013-02-19 Jiong Wang <jiwang@tilera.com>
469
470 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
471
472 2013-02-19 Jiong Wang <jiwang@tilera.com>
473
474 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
475 (tilegx_write_pc): New function.
476 (tilegx_cannot_reference_register): Return zero if REGNO
477 is TILEGX_FAULTNUM_REGNUM.
478 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
479 (tilegx_register_name): Add handling of "faultnum" register.
480 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
481 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
482 handling of TILEGX_FAULTNUM_REGNUM.
483 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
484
485 2013-02-19 Jiong Wang <jiwang@tilera.com>
486
487 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
488 should be aligned to 64bit.
489
490 2013-02-19 Kai Tietz <ktietz@redhat.com>
491
492 * windows-nat.c (windows_xfer_memory): Fix debug-output
493 for LLP64.
494
495 2013-02-19 Lei Liu <lei.liu2@windriver.com>
496
497 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
498 Don't check DSP register number if HAVE_DSP is not set.
499
500 2013-02-19 Alan Modra <amodra@gmail.com>
501
502 * elfread.c (struct build_id): Delete. Use struct elf_build_id
503 throughout file instead.
504 (build_id_bfd_get): Update to use new elf_tdata build_id field.
505 Don't xmalloc return value.
506 (build_id_verify): Similarly. Don't xfree.
507 (build_id_to_debug_filename): Update.
508 (find_separate_debug_file_by_buildid): Update, don't xfree.
509
510 2013-02-18 Tom Tromey <tromey@redhat.com>
511
512 PR gdb/15102:
513 * dwarf2read.c (read_subrange_type): Use result of
514 'check_typedef'.
515
516 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
517
518 * frame.c: Remove one extra white space after #include
519 directive.
520
521 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
522
523 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
524
525 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
526
527 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
528 and dir commands into an if block.
529
530 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
531
532 * python/py-breakpoint (struct pybp_code): Use int instead of
533 enum type_code.
534
535 2013-02-15 Pedro Alves <pedro@codesourcery.com>
536 Hafiz Abid Qadeer <abidh@codesourcery.com>
537
538 * NEWS: Mention new field "trace-file".
539 * tracepoint.c (trace_status_mi): Output "trace-file" field.
540 (tfile_open): Record the trace file's filename in the trace
541 status.
542 (tfile_files_info): Mention the name of the trace file.
543 Check the "filename" field explicitely.
544 (trace_status_command): Explicitely check "filename" field.
545 (trace_find_command): Ditto.
546 (trace_find_pc_command): Ditto.
547 (trace_find_tracepoint_command): Ditto.
548 (trace_find_line_command): Ditto.
549 (trace_find_range_command): Ditto.
550 (trace_find_outside_command): Ditto.
551 * tracepoint.h (struct trace_status) <from_file>: Rename it
552 to "filename" and make it hold the trace file's filename
553 instead of a boolean.
554 * remote.c (remote_get_trace_status): Initialize "filename"
555 field with NULL instead of 0.
556
557 2013-02-15 Yao Qi <yao@codesourcery.com>
558
559 * remote.c: Fix a typo.
560
561 2013-02-14 Pierre Muller <muller@sourceware.org>
562
563 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
564
565 2013-02-14 Pedro Alves <palves@redhat.com>
566
567 * utils.c (savestring): Don't #undef it. Move function to
568 common/common-utils.c.
569 * common/common-utils.c: Include gdb_string.h.
570 (savestring): Move here from utils.c.
571 * common/common-utils.h (savestring): Declare.
572
573 2013-02-14 Pedro Alves <palves@redhat.com>
574
575 * utils.c (savestring): Rename parameter 'size' to 'len'.
576
577 2013-02-14 Pedro Alves <palves@redhat.com>
578 Yufeng Zhang <yufeng.zhang@arm.com>
579
580 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
581 (aarch64_inferior_data, struct aarch64_inferior_data):
582 Delete.
583 (struct aarch64_process_info): New.
584 (aarch64_process_list): New global.
585 (aarch64_find_process_pid, aarch64_add_process)
586 (aarch64_process_info_get): New functions.
587 (aarch64_inferior_data_get): Delete.
588 (aarch64_process_info_get): New function.
589 (aarch64_forget_process): New function.
590 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
591 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
592 aarch64_get_debug_reg_state.
593 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
594 instead of linux_nat_iterate_watchpoint_lwps.
595 (aarch64_linux_new_fork): New function.
596 (aarch64_linux_child_post_startup_inferior): Use
597 aarch64_forget_process instead of aarch64_init_debug_reg_state.
598 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
599 (aarch64_linux_remove_hw_breakpoint)
600 (aarch64_handle_aligned_watchpoint)
601 (aarch64_handle_unaligned_watchpoint)
602 (aarch64_linux_insert_watchpoint)
603 (aarch64_linux_remove_watchpoint)
604 (aarch64_linux_stopped_data_address): Adjust to pass the current
605 process id to aarch64_debug_reg_state.
606 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
607 linux_nat_new_fork hook, and aarch64_forget_process as
608 linux_nat_forget_process hook; remove the call to
609 register_inferior_data_with_cleanup.
610
611 2013-02-14 Pedro Alves <palves@redhat.com>
612
613 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
614 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
615 lval_memory.
616
617 2013-02-14 Pedro Alves <pedro@codesourcery.com>
618 Hafiz Abid Qadeer <abidh@codesourcery.com>
619
620 * tracepoint.h (validate_trace_state_variable_name): Declare.
621 * tracepoint.c (validate_trace_state_variable_name): New.
622 (trace_variable_command): Parse the trace state variable's name
623 without using parse_expression. Do several validations.
624 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
625 trace state variable's name with parse_expression. Validate it.
626
627 2013-02-14 Yao Qi <yao@codesourcery.com>
628
629 * infcmd.c (breakpoint_proceeded): Remove it.
630
631 2013-02-14 Yao Qi <yao@codesourcery.com>
632
633 * tracepoint.c (end_actions_pseudocommand): Make it static.
634 (while_stepping_pseudocommand): Likewise.
635 * tracepoint.h (end_actions_pseudocommand): Remove the
636 declaration.
637 (while_stepping_pseudocommand): Likewise.
638
639 2013-02-14 Yao Qi <yao@codesourcery.com>
640
641 * cli/cli-decode.c (help_cmd): Remove the declaration of
642 "cmdlist".
643 (help_all): Likewise.
644
645 2013-02-13 Pedro Alves <palves@redhat.com>
646
647 * amd64-linux-nat.c (update_debug_registers_callback):
648 Update comment.
649 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
650 iterate_over_lwps.
651 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
652 i386_debug_reg_state.
653 (amd64_linux_new_fork): New function.
654 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
655 linux_nat_new_fork hook, and i386_forget_process as
656 linux_nat_forget_process hook.
657 * i386-linux-nat.c (update_debug_registers_callback):
658 Update comment.
659 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
660 iterate_over_lwps.
661 (i386_linux_prepare_to_resume): Pass the lwp's pid to
662 i386_debug_reg_state.
663 (i386_linux_new_fork): New function.
664 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
665 linux_nat_new_fork hook, and i386_forget_process as
666 linux_nat_forget_process hook.
667 * i386-nat.c (i386_init_dregs): Delete.
668 (i386_inferior_data, struct i386_inferior_data):
669 Delete.
670 (struct i386_process_info): New.
671 (i386_process_list): New global.
672 (i386_find_process_pid, i386_add_process, i386_process_info_get):
673 New functions.
674 (i386_inferior_data_get): Delete.
675 (i386_process_info_get): New function.
676 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
677 (i386_forget_process): New function.
678 (i386_cleanup_dregs): Rewrite.
679 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
680 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
681 (i386_stopped_data_address, i386_insert_hw_breakpoint)
682 (i386_remove_hw_breakpoint): Adjust to pass the current process id
683 to i386_debug_reg_state.
684 (i386_use_watchpoints): Don't register inferior data.
685 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
686 adjust comment.
687 (i386_forget_process): Declare.
688 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
689 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
690 New static globals.
691 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
692 (add_initial_lwp): New, factored out from ...
693 (add_lwp): ... this. Don't check the number of lwps before
694 calling linux_nat_new_thread.
695 (linux_nat_iterate_watchpoint_lwps): Delete.
696 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
697 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
698 forks and vforks.
699 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
700 initial lwp.
701 (linux_nat_kill, linux_nat_mourn_inferior): Call
702 linux_nat_forget_process.
703 (linux_nat_set_new_fork, linux_nat_set_forget_process)
704 (linux_nat_forget_process): New functions.
705 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
706 type.
707 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
708 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
709 types.
710 (linux_nat_set_new_fork, linux_nat_set_forget_process)
711 (linux_nat_forget_process): New declarations.
712
713 * amd64fbsd-nat.c (super_mourn_inferior): New global.
714 (amd64fbsd_mourn_inferior): New function.
715 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
716 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
717
718 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
719
720 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
721 Adding _().
722
723 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
724
725 * aarch64-linux-nat.c (debug_reg_change_callback)
726 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
727 %s and phex().
728
729 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
730
731 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
732 with LONGEST.
733
734 2013-02-13 Pedro Alves <palves@redhat.com>
735 Hafiz Abid Qadeer <abidh@codesourcery.com>
736
737 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
738
739 2013-02-12 Tom Tromey <tromey@redhat.com>
740
741 PR symtab/11464:
742 * c-exp.y (lex_one_token): Initialize other fields of yylval on
743 NAME return.
744 (classify_inner_name): Remove 'first_name' argument, add
745 'context'. Remove unused variable.
746 (yylex): Explicitly maintain the context type. Exit loop earlier
747 if NAME result is seen.
748
749 2013-02-12 Pedro Alves <palves@redhat.com>
750
751 * amd64-darwin-tdep.c: Add (C) after Copyright.
752 * cli/cli-cmds.h: Ditto.
753 * cli/cli-decode.c: Ditto.
754 * cli/cli-decode.h: Ditto.
755 * cli/cli-dump.c: Ditto.
756 * cli/cli-dump.h: Ditto.
757 * cli/cli-interp.c: Ditto.
758 * cli/cli-logging.c: Ditto.
759 * cli/cli-script.c: Ditto.
760 * cli/cli-script.h: Ditto.
761 * cli/cli-setshow.c: Ditto.
762 * cli/cli-setshow.h: Ditto.
763 * cli/cli-utils.c: Ditto.
764 * cli/cli-utils.h: Ditto.
765 * config/alpha/nm-osf3.h: Ditto.
766 * config/djgpp/djconfig.sh: Ditto.
767 * config/i386/nm-fbsd.h: Ditto.
768 * config/i386/nm-i386gnu.h: Ditto.
769 * config/nm-linux.h: Ditto.
770 * config/nm-nto.h: Ditto.
771 * config/rs6000/nm-rs6000.h: Ditto.
772 * config/sparc/nm-sol2.h: Ditto.
773 * darwin-nat-info.c: Ditto.
774 * dfp.c: Ditto.
775 * dfp.h: Ditto.
776 * gdb-demangle.h: Ditto.
777 * i386-darwin-nat.c: Ditto.
778 * i386-darwin-tdep.c: Ditto.
779 * linux-fork.h: Ditto.
780 * m32c-tdep.c: Ditto.
781 * microblaze-linux-tdep.c: Ditto.
782 * microblaze-rom.c: Ditto.
783 * microblaze-tdep.c: Ditto.
784 * microblaze-tdep.h: Ditto.
785 * mips-linux-tdep.h: Ditto.
786 * ppc-ravenscar-thread.c: Ditto.
787 * ppc-ravenscar-thread.h: Ditto.
788 * prologue-value.c: Ditto.
789 * prologue-value.h: Ditto.
790 * ravenscar-thread.c: Ditto.
791 * ravenscar-thread.h: Ditto.
792 * sparc-ravenscar-thread.c: Ditto.
793 * sparc-ravenscar-thread.h: Ditto.
794 * tilegx-linux-tdep.c: Ditto.
795 * unwind_stop_reasons.def: Ditto.
796 * windows-nat.h: Ditto.
797 * xtensa-linux-tdep.c: Ditto.
798 * xtensa-xtregs.c: Ditto.
799 * regformats/regdat.sh: Ditto.
800 * regformats/regdef.h: Ditto.
801
802 2013-02-12 Pedro Alves <palves@redhat.com>
803
804 * break-catch-sig.c: Update copyright years.
805
806 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
807
808 Add support for a destructor for ui_out data and use it to
809 provide a ui_out destructor.
810 * ui-out.h: Declare the new ui_out destructor.
811 (ui_out_impl): Add a field for data destructor in ui_out_impl.
812 * ui-out.c (default_data_destroy): Add a default data destructor
813 which does nothing.
814 (default_ui_out_impl): Set the new data_destroy field to
815 default_data_destroy
816 (uo_data_destroy): Local function which invokes the data
817 destructor if present.
818 (clear_table): Local function which clears the table data of a
819 ui_out object.
820 (ui_out_destroy): Public function which frees a ui_out object.
821 (ui_out_table_end): Use the new clear_table function.
822 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
823 NULL.
824 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
825 to NULL.
826
827 2013-02-11 Doug Evans <dje@google.com>
828
829 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
830 (printf_decfloat): New function. Broken out from ui_printf.
831 Remove unnecessary code to shift the entire format string down.
832 (printf_pointer): New function.
833 (ui_printf): Code to print C strings, wide C strings, decfloats,
834 and pointers moved to separate functions.
835
836 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
837
838 * valops.c (value_assign): Handling bitfield offset in
839 `lval_internalvar_component' case.
840
841 2013-02-08 Doug Evans <dje@google.com>
842
843 * common/format.c (parse_format_string): Fix whitespace.
844
845 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
846
847 * stack.c (return_command): Work around uninitialized variable
848 warning.
849
850 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
851
852 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
853 number of the registers from 36 to 34.
854
855 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
856
857 * NEWS: Mention new AArch64 native and target support.
858
859 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
860
861 * MAINTAINERS (Write After Approval): Add myself.
862
863 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
864 Marcus Shawcroft <marcus.shawcroft@arm.com>
865 Nigel Stephens <nigel.stephens@arm.com>
866 Yufeng Zhang <yufeng.zhang@arm.com>
867
868 * aarch64-linux-nat.c: New file.
869 * config/aarch64/linux.mh: New file.
870 * configure.host: Add AArch64.
871 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
872
873 2013-02-07 Doug Evans <dje@google.com>
874
875 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
876 disassemble command.
877
878 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
879
880 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
881 set_gdbarch_fetch_tls_load_module_address.
882
883 2013-02-06 David S. Miller <davem@davemloft.net>
884
885 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
886 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
887 * value.c (struct_return_convention): New function.
888 (using_struct_return): Implement in terms of struct_return_convention.
889 * value.h (struct_return_convention): Declare.
890 * stack.c (return_command): Allow successful overriding of the return
891 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
892
893 2013-02-06 Tom Tromey <tromey@redhat.com>
894
895 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
896 outside of TRY_CATCH.
897
898 2013-02-06 Yao Qi <yao@codesourcery.com>
899
900 * mi/mi-interp.c: Include "tracepoint.h".
901 (mi_tsv_modified): Declare.
902 (mi_tsv_created, mi_tsv_deleted): Update declaration.
903 (mi_interpreter_init): Call observer_attach_tsv_modified.
904 (mi_tsv_modified): New.
905 (mi_tsv_created, mi_tsv_deleted): Update.
906 * tracepoint.c (trace_variable_command): Call
907 observer_notify_tsv_modified if the initial value of tsv is
908 changed.
909 (delete_trace_state_variable): Call
910 observer_notify_tsv_deleted earlier.
911 (trace_variable_command): Caller update.
912 (create_tsv_from_upload): Likewise.
913 * observer.sh: Declare "struct trace_state_variable".
914
915 * NEWS: Mention the new MI notification "=tsv-modified".
916
917 2013-02-05 Doug Evans <dje@google.com>
918
919 * completer.c (location_completer): Fix typo in comment.
920
921 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
922
923 * breakpoint.c (add_location_to_breakpoint): Insert the location with
924 ADDRESS sorted.
925
926 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
927
928 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
929 Refactor if statement to avoid trailing || operator.
930
931 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
932
933 * NEWS: Add PowerPC FreeBSD as a new native configuration.
934
935 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
936
937 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
938 * configure.host: Add powerpc*-*-freebsd* target.
939 * configure.tgt: Add target info for powerpc*-*-freebsd*.
940 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
941 * config/powerpc/fbsd.mh: New file.
942
943 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
944 Denys Vlasenko <dvlasenk@redhat.com>
945 Pedro Alves <palves@redhat.com>
946
947 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
948 (struct elf_internal_linux_prpsinfo): Forward declare.
949 * gdbarch.h, gdbarch.c: Regenerate.
950 * linux-tdep.c: Include `cli/cli-utils.h'.
951 (linux_fill_prpsinfo): New function.
952 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
953 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
954 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
955 depending on gdbarch pointer bitness.
956 * ppc-linux-tdep.c: Include elf-bfd.h.
957 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
958 on 32-bit.
959
960 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
961 Marcus Shawcroft <marcus.shawcroft@arm.com>
962 Nigel Stephens <nigel.stephens@arm.com>
963 Yufeng Zhang <yufeng.zhang@arm.com>
964
965 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
966
967 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
968 Marcus Shawcroft <marcus.shawcroft@arm.com>
969 Nigel Stephens <nigel.stephens@arm.com>
970 Yufeng Zhang <yufeng.zhang@arm.com>
971
972 * aarch64-newlib-tdep.c: New file.
973 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
974 aarch64*-*-elf.
975 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
976 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
977 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
978 * osabi.c (gdb_osabi_names): Add "Newlib".
979
980 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
981 Marcus Shawcroft <marcus.shawcroft@arm.com>
982 Nigel Stephens <nigel.stephens@arm.com>
983 Yufeng Zhang <yufeng.zhang@arm.com>
984
985 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
986 (ALLDEPFILES): Add aarch64-linux-tdep.c.
987 * aarch64-linux-tdep.c: New file.
988 * aarch64-linux-tdep.h: New file.
989 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
990 * configure.tgt: Add aarch64-none-linux-gnu.
991
992 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
993 Marcus Shawcroft <marcus.shawcroft@arm.com>
994 Nigel Stephens <nigel.stephens@arm.com>
995 Yufeng Zhang <yufeng.zhang@arm.com>
996
997 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
998 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
999 (ALLDEPFILES): Add aarch64-tdep.c.
1000 * aarch64-tdep.c: New file.
1001 * aarch64-tdep.h: New file.
1002 * configure.tgt: Add AArch64.
1003 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
1004 (aarch64-expedite): New definition.
1005 * features/aarch64-core.xml: New file.
1006 * features/aarch64-fpu.xml: New file.
1007 * features/aarch64-without-fpu.c: New file (generated).
1008 * features/aarch64-without-fpu.xml: New file.
1009 * features/aarch64.c: New file (generated).
1010 * features/aarch64.xml: New file.
1011 * regformats/aarch64-without-fpu.dat: New file (generated).
1012 * regformats/aarch64.dat: New file (generated).
1013
1014 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1015
1016 * contrib/expect-read1.c: New file.
1017 * contrib/expect-read1.sh: New file.
1018
1019 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1020
1021 * dwarf2read.c (file_file_name): New function with code from
1022 file_full_name.
1023 (file_full_name): Move most of the code to file_file_name.
1024 (macro_start_file): Rename variable full_name to file_name and use
1025 file_file_name for it. Add comp_dir parameter to new_macro_table.
1026 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
1027 macro_source_file->filename access by macro_source_fullname call.
1028 * macroscope.c (_initialize_macroscope): Update the new_macro_table
1029 caller.
1030 * macrotab.c (struct macro_table): New field comp_dir.
1031 (macro_include): New variables link_fullname and source_fullname.
1032 Replace any macro_source_file->filename access by macro_source_fullname
1033 call.
1034 (macro_lookup_inclusion): Remove the partial filenames checking code.
1035 (check_for_redefinition): New variables source_fullname and
1036 found_key_fullname. Replace any macro_source_file->filename access by
1037 macro_source_fullname call.
1038 (macro_undef): New variables source_fullname and key_fullname. Replace
1039 any macro_source_file->filename access by macro_source_fullname call.
1040 (macro_lookup_definition): New variables retval and source_fullname.
1041 Replace any macro_source_file->filename access by macro_source_fullname
1042 call.
1043 (foreach_macro): New variable key_fullname. Replace any
1044 macro_source_file->filename access by macro_source_fullname call.
1045 (foreach_macro_in_scope): New variable datum_fullname. Replace any
1046 macro_source_file->filename access by macro_source_fullname call.
1047 (new_macro_table): Add parameter comp_dir. Initialize T with it.
1048 (macro_source_fullname): New function.
1049 * macrotab.h (struct macro_source_file): Extent the filename field
1050 comment.
1051 (new_macro_table): New parameter comp_dir, add a comment for it.
1052 (macro_source_fullname): new declaration.
1053
1054 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1055
1056 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
1057 this_real_name to outer block. Use it also for
1058 compare_filenames_for_search.
1059 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
1060 with dw2_get_real_path for file_matcher, considering also
1061 BASENAMES_MAY_DIFFER.
1062 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
1063
1064 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1065
1066 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
1067 to the file_matcher parameter. Pass 0 to it.
1068 (dwarf2_create_include_psymtab): Copy also DIRNAME.
1069 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
1070 NULL psymtab_to_fullname result.
1071 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
1072 an expected filename instead.
1073 (expand_symtabs_matching_via_partial): Add basenames parameter to the
1074 file_matcher parameter. Call also psymtab_to_fullname, after newly
1075 considering BASENAMES_MAY_DIFFER.
1076 * source.c (rewrite_source_path): Remove static.
1077 * source.h (rewrite_source_path): New declaration.
1078 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
1079 the expand_symtabs_matching field. Comment it.
1080 * symtab.c (file_matches): New function comment. Add parameter
1081 basenames, implement it.
1082 (search_symbols_file_matches): Add basenames parameter. Update the
1083 file_matches caller.
1084 (search_symbols): Match FILES also against symtab_to_fullname.
1085 Optimize it for BASENAMES_MAY_DIFFER.
1086
1087 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1088
1089 * source.c (print_source_lines_base): Print for TUI also "fullname".
1090 * tui/tui-data.c (init_content_element): Change tui_locator_element
1091 field to full_name.
1092 * tui/tui-data.h (struct tui_locator_element): Likewise.
1093 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
1094 tui_update_locator_filename calls to tui_update_locator_fullname.
1095 Replace symtab->filename refererence by symtab_to_fullname call.
1096 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
1097 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
1098 field to full_name. Replace symtab->filename refererence by
1099 symtab_to_fullname call.
1100 (tui_show_symtab_source): Rename parameter to fullname. Change
1101 tui_locator_element field to full_name.
1102 * tui/tui-stack.c: Include source.h.
1103 (tui_set_locator_filename): Rename the declaration to ...
1104 (tui_set_locator_fullname): ... here. Rename its parameter to
1105 fullname, updates its comment.
1106 (tui_set_locator_info): Rename its parameter to fullname.
1107 (tui_set_locator_filename): Rename the definition to ...
1108 (tui_set_locator_fullname): ... here. Rename its parameter to
1109 fullname, updates its comment. Change tui_locator_element field to
1110 full_name.
1111 (tui_set_locator_info): Rename its parameter to fullname.
1112 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
1113 (tui_update_locator_filename): Rename to ...
1114 (tui_update_locator_fullname): ... here. Rename callee to
1115 tui_set_locator_fullname.
1116 (tui_show_frame_info): Replace symtab->filename refererence by
1117 symtab_to_fullname call.
1118 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
1119 (tui_update_locator_fullname): ... here.
1120 * tui/tui-winsource.c (tui_display_main): Rename the callee to
1121 tui_update_locator_fullname. Replace symtab->filename refererence by
1122 symtab_to_fullname call.
1123 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
1124 Rename the callee to tui_update_locator_fullname.
1125 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
1126
1127 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1128
1129 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
1130 by symtab_to_filename_for_display calls.
1131 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
1132 (clear_command): New variable sal_fullname, initialize it. Replace
1133 compare_filenames_for_search by filename_cmp with sal_fullname.
1134 (say_where, update_static_tracepoint): Replace symtab->filename
1135 refererences by symtab_to_filename_for_display calls.
1136 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
1137 Likewise.
1138 * dwarf2read.c: Include source.h.
1139 (fixup_go_packaging): Replace symtab->filename refererences by
1140 symtab_to_filename_for_display calls.
1141 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
1142 Replace symtab->filename refererences by symtab_to_filename_for_display
1143 calls.
1144 (create_sals_line_offset, convert_linespec_to_sals): New variable
1145 fullname, initialize it, replace symtab->filename reference by the
1146 variable.
1147 * linux-fork.c: Include source.h.
1148 (info_checkpoints_command): Replace symtab->filename refererences by
1149 symtab_to_filename_for_display calls.
1150 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
1151 by symtab_to_filename_for_display calls.
1152 * mdebugread.c: Include source.h.
1153 (psymtab_to_symtab_1): Replace symtab->filename refererences by
1154 symtab_to_filename_for_display calls.
1155 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
1156 (mi_cmd_file_list_exec_source_files): Likewise.
1157 * printcmd.c: Include source.h.
1158 (build_address_symbolic): Replace symtab->filename refererences by
1159 symtab_to_filename_for_display calls.
1160 * psymtab.c (partial_map_symtabs_matching_filename)
1161 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
1162 with psymtab_to_fullname.
1163 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
1164 by symtab_to_filename_for_display calls.
1165 (stpy_get_filename): New variable filename, initialize it, use instead
1166 of symtab->filename refererences.
1167 (salpy_str): Make variable filename const char *. Replace
1168 symtab->filename refererences by symtab_to_filename_for_display calls.
1169 * skip.c: Include source.h and filenames.h.
1170 (skip_file_command): Remove const from the symtab variable. Replace
1171 symtab->filename refererences by symtab_to_fullname call.
1172 (function_name_is_marked_for_skip): New variables searched_for_fullname
1173 and fullname. Use them to search also with symtab's fullname.
1174 * source.c (find_source_lines): Replace symtab->filename refererences
1175 by symtab_to_filename_for_display calls.
1176 (print_source_lines_base): New variable filename, use it instead of
1177 symtab->filename. Replace symtab->filename refererences by
1178 symtab_to_filename_for_display calls.
1179 (line_info, forward_search_command): Replace symtab->filename
1180 refererences by symtab_to_filename_for_display calls.
1181 (reverse_search_command): Replace symtab->filename refererences by
1182 symtab_to_filename_for_display calls. New variable filename for it.
1183 * stack.c (frame_info): Likewise.
1184 * symmisc.c: Include source.h.
1185 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
1186 (maintenance_info_symtabs): Replace symtab->filename refererences by
1187 symtab_to_filename_for_display calls.
1188 * symtab.c (iterate_over_some_symtabs): Call
1189 compare_filenames_for_search also with symtab_to_fullname.
1190 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
1191 symtab->filename refererences by symtab_to_filename_for_display calls.
1192 (find_line_symtab): Replace symtab->filename refererences by
1193 symtab_to_filename_for_display calls.
1194 (file_matches): Replace filename_cmp by compare_filenames_for_search.
1195 (print_symbol_info): Make the last parameter const char *. New
1196 variable s_filename. Use it in the function.
1197 (symtab_symbol_info): Make the last_filename variable const char *.
1198 Replace symtab->filename refererences by symtab_to_filename_for_display
1199 calls.
1200 (rbreak_command): New variable fullname. Use it. Replace
1201 symtab->filename refererence by symtab_to_filename_for_display call.
1202 * tracepoint.c (set_traceframe_context, trace_find_line_command)
1203 (print_one_static_tracepoint_marker): Replace symtab->filename
1204 refererences by symtab_to_filename_for_display calls.
1205 * tui/tui-source.c (tui_set_source_content): New variables filename and
1206 s_filename. Replace symtab->filename refererences by this variable.
1207 Replace other symtab->filename refererences by
1208 symtab_to_filename_for_display calls.
1209
1210 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
1211 Jan Kratochvil <jan.kratochvil@redhat.com>
1212
1213 Add a new variable that controls a way in which filenames are
1214 displayed.
1215 * NEWS (set filename-display): New entry.
1216 * source.c (filename_display_basename, filename_display_relative)
1217 (filename_display_absolute, filename_display_kind_names)
1218 (filename_display_string, show_filename_display_string)
1219 (symtab_to_filename_for_display): New.
1220 (_initialize_source): Added initialization of 'filename-display'
1221 variable.
1222 * source.h (symtab_to_filename_for_display): Added declaration.
1223 * stack.c (print_frame): Added new variable and calling of a new
1224 function and condition with this variable. Changed third argument of
1225 calling of a function.
1226
1227 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1228
1229 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
1230 Rename field reference filename to fullname.
1231 * tui/tui-data.h (struct tui_source_info): Rename field filename to
1232 fullname. New comment for it.
1233 * tui/tui-source.c (tui_set_source_content): Rename field reference
1234 filename to fullname. Initialize field by symtab_to_fullname now.
1235 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
1236 reference filename to fullname. Use symtab_to_fullname during
1237 comparison.
1238
1239 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1240
1241 Code cleanup.
1242 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
1243 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
1244 filename to fullname. Rename variable this_name to this_fullname.
1245 Lowercase FILENAME_CMP call.
1246 (dw2_find_symbol_file): New comment for the returned string.
1247 (dwarf2_gdb_index_functions): Rename the function to
1248 dw2_expand_symtabs_with_fullname.
1249 * psymtab.c (read_psymtabs_with_filename): Rename to ...
1250 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
1251 fullname.
1252 (psym_functions): Rename the function to read_psymtabs_with_fullname.
1253 * symfile.h (struct quick_symbol_functions): Rename field
1254 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
1255 parameter filename to fullname. Document returned string meaning for
1256 find_symbol_file.
1257 * symtab.c (find_line_symtab): Rename the called function to
1258 expand_symtabs_with_fullname.
1259
1260 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1261
1262 Code cleanup.
1263 * breakpoint.c (clear_command): Remove variable is_abs, unify the
1264 call of filename_cmp with compare_filenames_for_search.
1265 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
1266 is_abs, unify the call of FILENAME_CMP with
1267 compare_filenames_for_search. New gdb_asserts for real_path and name.
1268 Unify the call of compare_filenames_for_search with FILENAME_CMP.
1269 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
1270 * symfile.h (struct quick_symbol_functions): Extend the comment for
1271 map_symtabs_matching_filename.
1272 * symtab.c (compare_filenames_for_search): Remove the function comment
1273 relative path requirement. Handle absolute filenames, with a comment.
1274 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
1275 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
1276 real_path and name. Unify the call of compare_filenames_for_search
1277 with FILENAME_CMP.
1278 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
1279
1280 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1281
1282 Code cleanup.
1283 * breakpoint.c (print_breakpoint_location): Replace bp_location field
1284 source_file references by symtab field references. Remove variables
1285 sal and fullname.
1286 (momentary_breakpoint_from_master, add_location_to_breakpoint):
1287 (clear_command, say_where): Replace bp_location field source_file
1288 references by symtab field references.
1289 (bp_location_dtor): Remove the source_file reference.
1290 (update_static_tracepoint): Replace bp_location field source_file
1291 references by symtab field references.
1292 (breakpoint_free_objfile): New function.
1293 * breakpoint.h (struct bp_location): Extend the comment for line_number.
1294 Replace the field source_file by field symtab, extend its comment.
1295 (breakpoint_free_objfile): New declaration.
1296 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
1297 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
1298 field source_file references by symtab field references.
1299
1300 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1301
1302 Replace xfullpath calls by gdb_realpath calls.
1303 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
1304 function comment.
1305 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
1306 Remove it from the iterate_over_some_symtabs call.
1307 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
1308 Remove it from the dw2_map_expand_apply calls, remove a block handling
1309 it.
1310 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
1311 Remove it from the iterate_over_some_symtabs call.
1312 (partial_map_symtabs_matching_filename): Remove parameter full_path.
1313 Remove it from the partial_map_expand_apply calls, remove a block
1314 handling it. Drop gdb_realpath call and cleanups from the real_path
1315 handling.
1316 * source.c (openp): Drop the comment part about xfullpath. Replace
1317 xfullpath calls by gdb_realpath calls.
1318 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
1319 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
1320 from method map_symtabs_matching_filename and its comment.
1321 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
1322 gdb_realpath call.
1323 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
1324 remove it also from the function comment, remove a block handling it.
1325 Drop gdb_realpath call and cleanups from the real_path handling.
1326 (iterate_over_symtabs): Drop variable full_path and its use.
1327 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
1328 * utils.c (xfullpath): Remove.
1329 * utils.h (xfullpath): Remove.
1330
1331 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
1332
1333 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
1334 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
1335 (ALLDEPFILES): Add ppc64-tdep.c.
1336 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
1337 ppc64-tdep.o to gdb_target_obs.
1338 * ppc64-tdep.h: New file.
1339 * ppc64-tdep.c: New file.
1340 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
1341 ppc-linux-tdep.c to here.
1342 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
1343 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
1344 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
1345 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
1346 from ppc-linux-tdep.c to here.
1347 (ppc64_convert_from_func_ptr_addr): Rename from
1348 ppc64_linux_convert_from_func_ptr_addr to
1349 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
1350 here.
1351 * rs6000-tdep.c:
1352 (read_insn): Move from ppc-linux-tdep.c to here.
1353 (insns_match_pattern, insn_d_field, insn_ds_field): Move
1354 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
1355 * ppc-linux-tdep.c: Include ppc64-tdep.h.
1356 Removed above functions.
1357 (ppc_linux_init_abi): Adjust.
1358
1359 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
1360
1361 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
1362
1363 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
1364
1365 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
1366
1367 2013-02-01 Pedro Alves <palves@redhat.com>
1368
1369 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
1370 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
1371
1372 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1373
1374 * elfread.c (elf_symfile_read): Limit separate debug info additions to
1375 files with no separate debug info.
1376 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
1377 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
1378 only for files with no separate debug info.
1379
1380 2013-01-31 Tom Tromey <tromey@redhat.com>
1381
1382 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
1383 change type.
1384 (struct jit_program_space_data): Rename from jit_inferior_data.
1385 Update comments.
1386 (get_jit_program_space_data): Rename from get_jit_inferior_data.
1387 Change return type. Attach data to program space.
1388 (jit_program_space_data_cleanup): Rename from
1389 jit_inferior_data_cleanup; change argument type.
1390 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
1391 change type.
1392 (jit_register_code): Update.
1393 (jit_update_inferior_cache): Remove.
1394 (jit_breakpoint_deleted): Get jit data from the location's program
1395 space.
1396 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
1397 'ps_data', change type.
1398 (jit_inferior_init, jit_breakpoint_re_set_internal)
1399 (jit_event_handler): Update.
1400 (free_objfile_data): Get data from objfile's program space.
1401 (_initialize_jit): Update.
1402
1403 2013-01-31 Tom Tromey <tromey@redhat.com>
1404
1405 PR gdb/13987:
1406 * jit.c (struct jit_inferior_data) <cached_code_address,
1407 jit_breakpoint>: New fields.
1408 (jit_breakpoint_re_set_internal): Fix logging. Only create
1409 breakpoint if cached address has changed.
1410 (jit_update_inferior_cache, jit_breakpoint_deleted): New
1411 functions.
1412 (_initialize_jit): Register breakpoint deleted observer.
1413
1414 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1415
1416 * infrun.c (handle_syscall_event): Remove unused gdbarch.
1417 (save_infcall_suspend_state): Ifdef out unused inf.
1418 (restore_infcall_suspend_state): Ifdef out unused inf.
1419 * jit.c (jit_register_code): Remove unused i, b, inf_data.
1420 (jit_frame_sniffer): Remove unused inf_data.
1421
1422 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1423
1424 * c-exp.y (classify_inner_name): Remove unused type.
1425 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
1426 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
1427 need_escape.
1428 (c_get_string): Remove unused kind.
1429 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
1430
1431 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1432
1433 * charset.c (intermediate_encoding): Remove unused i.
1434 * completer.c (signal_completer): Remove unused i.
1435 * continuations.c (discard_my_continuations_1): Remove unused
1436 continuation_ptr.
1437 * corelow.c (core_close): Remove unuseD name.
1438 (get_core_siginfo): Remove unused pid.
1439 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
1440 i, cps.
1441 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
1442 (loclist_describe_location): Remove unused first.
1443 * event-top.c (command_line_handler): Remove unused got_eof.
1444 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
1445 (resize_section_table): Remove unused old_value.
1446 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
1447 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
1448 * i386-tdep.c (i386_process_record): Remove unused rex.
1449 * infcmd.c (get_return_value): Remove unused uiout.
1450 * jv-lang.c (type_from_class): Remove unused is_array.
1451 * jv-valprint.c (java_val_print): Remove unused i.
1452 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
1453 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
1454 * m2-typeprint.c (m2_print_type): Remove unused code.
1455 * macroexp.c (get_character_constant): Remove unused body_start.
1456 (macro_stringify): Remove unused result.
1457 * objc-lang.c (find_methods): Remove unused gdbarch.
1458 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
1459 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
1460 * stack.c (print_frame_args): Remove unused summary.
1461 * thread.c (thread_apply_command): Remove unused p.
1462 * valarith.c (value_x_unop): Remove unused mangle_ptr.
1463 * valops.c (search_struct_method): Remove unused skip.
1464 * valprint.c (generic_val_print): Remove unused byte_order.
1465 * varobj.c (varobj_update): Remove unused changed.
1466 * cli/cli-cmds.c (complete_command): Remove unused next_item.
1467 (alias_command): Remove unused c.
1468 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
1469 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
1470 format.
1471 (mi_cmd_data_write_memory): Remove unused word_format.
1472 (mi_cmd_data_write_memory_bytes): Remove unused r.
1473 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
1474 p_start, p_end.
1475 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
1476 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
1477 line_width.
1478
1479 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1480
1481 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
1482 * symtab.c (iterate_over_symtabs): Remove unused s.
1483 (find_pc_sect_symtab): Remove unused pspAce.
1484 (find_pc_sect_line): Remove unused alt_symtab.
1485 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
1486 (completion_list_add_name): Remove unused newsize.
1487
1488 2013-01-31 Tom Tromey <tromey@redhat.com>
1489
1490 PR c++/14998:
1491 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
1492 TYPE_CODE_FUNC.
1493
1494 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1495
1496 * target.c (target_read_string): Remove unused origlen.
1497
1498 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1499
1500 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
1501 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
1502 * ax-general.c (ax_print): Remove unused is_float.
1503 * blockframe.c (block_innermost_frame): Remove unused start, end.
1504 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
1505
1506 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1507
1508 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
1509 (svr4_read_so_list): Remove unused lmo.
1510 * solib-target.c (solib_target_relocate_section_addresses): Remove
1511 unused flags.
1512
1513 2013-01-30 Tom Tromey <tromey@redhat.com>
1514
1515 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
1516
1517 2013-01-30 Tom Tromey <tromey@redhat.com>
1518
1519 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
1520 * utils.c (gnu_debuglink_crc32): Remove.
1521 * utils.h (gnu_debuglink_crc32): Don't declare.
1522
1523 2013-01-30 Tom Tromey <tromey@redhat.com>
1524
1525 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
1526 (read_structure_type, read_enumeration_type): Remove cast.
1527
1528 2013-01-30 Tom Tromey <tromey@redhat.com>
1529
1530 * dwarf2read.c (read_namespace_type): Remove cast.
1531 (read_typedef): Likewise.
1532
1533 2013-01-29 Tom Tromey <tromey@redhat.com>
1534
1535 * dwarf2read.c (free_dwo_file): Remove assert.
1536
1537 2013-01-29 Tom Tromey <tromey@redhat.com>
1538
1539 * value.c (deprecated_set_value_modifiable): Remove.
1540 * value.h (deprecated_set_value_modifiable): Remove.
1541
1542 2013-01-28 Doug Evans <dje@google.com>
1543
1544 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
1545 to addresses from dwo files.
1546
1547 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
1548
1549 * valops.c (find_overload_match): Remove unused argument 'lax'.
1550 * value.h: Remove unused argument 'lax' from the declaration of
1551 find_overload_match.
1552 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
1553 to find_overload_match.
1554 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
1555 argument to find_overload_match.
1556
1557 2013-01-25 Tom Tromey <tromey@redhat.com>
1558
1559 * dwarf2read.c (processing_has_namespace_info): Remove.
1560 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
1561 (process_die, read_func_scope, dwarf2_start_symtab)
1562 (new_symbol_full): Update.
1563
1564 2013-01-25 Tom Tromey <tromey@redhat.com>
1565
1566 * cp-namespace.c (cp_set_block_scope): Remove.
1567 * cp-support.h (cp_set_block_scope): Remove.
1568 * dbxread.c: Include block.h.
1569 (cp_set_block_scope): New function.
1570 (process_one_symbol): Update.
1571 * dwarf2read.c (read_func_scope): Use block_set_scope.
1572
1573 2013-01-25 Pedro Alves <palves@redhat.com>
1574
1575 * remote.c (add_current_inferior_and_thread): Tweak comment.
1576
1577 2013-01-25 Tom Tromey <tromey@redhat.com>
1578
1579 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1580 (cp_add_using_directive): Add 'copy_names' argument.
1581 * cp-support.h (cp_add_using_directive): Update.
1582 (struct using_direct) <import_src, import_dest, alias,
1583 declaration>: Now const.
1584 * dwarf2read.c (read_import_statement): Use obconcat.
1585 Don't copy names passed to cp_add_using_directive.
1586
1587 2013-01-25 Tom Tromey <tromey@redhat.com>
1588
1589 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
1590
1591 2013-01-25 Pedro Alves <palves@redhat.com>
1592
1593 * remote.c (stop_reply_extract_thread): New.
1594 (add_current_inferior_and_thread): New parameter 'wait_status'.
1595 Handle it.
1596 (remote_start_remote): Pass wait status to
1597 add_current_inferior_and_thread.
1598 (extended_remote_run): Update comment.
1599 (extended_remote_create_inferior_1): Pass wait status to
1600 add_current_inferior_and_thread.
1601
1602 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
1603 Ulrich Weigand <uweigand@de.ibm.com>
1604
1605 * valarith.c (value_vector_widen): New function for replicating a
1606 scalar into a vector.
1607 (value_binop): Use value_vector_widen to widen scalar to vector
1608 rather than casting, this better matches gcc C behaviour.
1609 * valops.c (value_casst): Update logic for casting between vector
1610 types, and for casting from scalar to vector, try to match gcc C
1611 behaviour.
1612 * value.h (value_vector_widen): Declare.
1613 * opencl-lang.c (opencl_value_cast): New opencl specific casting
1614 function, handle special case for casting scalar to vector.
1615 (opencl_relop): Use opencl_value_cast.
1616 (evaluate_subexp_opencl): Use opencl_value_cast instead of
1617 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
1618 in order to use opencl_value_cast.
1619
1620 2013-01-25 Yao Qi <yao@codesourcery.com>
1621
1622 * event-loop.c: Include "queue.h".
1623 (gdb_event_p): New typedef.
1624 (DECLARE_QUEUE_P): Use.
1625 (DEFINE_QUEUE_P): Use.
1626 (async_queue_event): Remove.
1627 (gdb_event_xfree): New.
1628 (initialize_event_loop): New.
1629 (process_event): Use QUEUE macros.
1630 (event_queue): Remove.
1631 (gdb_wait_for_event): Caller update.
1632 (check_async_event_handlers): Likewise.
1633 (poll_timers): Likewise.
1634 * event-loop.h (initialize_event_loop): Declare.
1635 * event-loop.c (gdb_event_xfree): New.
1636 * top.c (gdb_init): Call initialize_event_loop.
1637
1638 2013-01-25 Yao Qi <yao@codesourcery.com>
1639
1640 * event-loop.c (async_queue_event): Remove one parameter
1641 'position'. Remove code handling 'position' == TAIL.
1642 (gdb_wait_for_event): Caller update.
1643 (check_async_event_handlers): Caller update.
1644 (poll_timers): Caller update.
1645 * event-loop.h (enum queue_position): Remove.
1646
1647 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
1648
1649 * MAINTAINERS: Update my email.
1650
1651 2013-01-25 Yao Qi <yao@codesourcery.com>
1652
1653 * main.c (print_gdb_help): Remove "--epoch" from the help
1654 message.
1655
1656 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
1657
1658 * symtab.c (skip_prologue_using_sal): Consider a file
1659 change the same as an increased line number
1660
1661 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1662
1663 * MAINTAINERS (Write After Approval): Add myself to the list.
1664
1665 2013-01-24 Tom Tromey <tromey@redhat.com>
1666
1667 * ada-lang.h (ada_decode_symbol): Make return type const.
1668 * ada-lang.c (ada_decode_symbol): Likewise.
1669
1670 2013-01-23 Doug Evans <dje@google.com>
1671
1672 * linespec.c (find_linespec_symbols): Make static.
1673
1674 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1675
1676 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1677 type on float conversion for complex type.
1678
1679 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
1680
1681 Add a new class gdb.Architecture which exposes GDB's
1682 internal representation of architecture via GDB Python API.
1683 * Makefile.in: Add entries corresponding to the new file
1684 python/py-arch.c.
1685 * NEWS (Python Scripting): Add entries for the new class
1686 gdb.Architecture and the new method gdb.Frame.architecture.
1687 * python/py-arch.c: Implement gdb.Architecture class.
1688 * python/py-frame.c (frapy_arch): Implement the method
1689 gdb.Frame.architecture().
1690 (frame_object_methods): Add 'architecture' to the method table.
1691 * python/python-internal.h: Add declarations of new utility
1692 functions.
1693 * python/python.c (_initialize_python): Initialize
1694 gdb.Architecture class.
1695
1696 2013-01-23 Doug Evans <dje@google.com>
1697
1698 Work around binutils/15021.
1699 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1700 type_unit_group out of union s. All uses updated.
1701 (read_index_from_section): Watch for index version 8.
1702 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1703 an imported symtab.
1704 (write_psymtabs_to_index): Increment version number to 8.
1705
1706 2013-01-22 Pedro Alves <palves@redhat.com>
1707
1708 * annotate.c (breakpoint_changed): Skip if breakpoint is not
1709 user-visible.
1710
1711 2013-01-22 Pedro Alves <palves@redhat.com>
1712
1713 * annotate.c (annotate_breakpoints_changed): Rename to ...
1714 (annotate_breakpoints_invalid): ... this. Make static.
1715 (breakpoint_changed): Adjust.
1716 (_initialize_annotate): Always install the observers. Install a
1717 "breakpoint_created" observer.
1718 * annotate.h (annotate_breakpoints_changed): Delete declaration.
1719 * breakpoint.c (set_breakpoint_condition)
1720 (breakpoint_set_commands, do_map_commands_command)
1721 (init_raw_breakpoint, clear_command, set_ignore_count)
1722 (enable_breakpoint_disp): No longer call
1723 annotate_breakpoints_changed.
1724
1725 2013-01-22 Pedro Alves <palves@redhat.com>
1726
1727 * annotate.c: Include "inferior.h".
1728 (frames_invalid_emitted)
1729 (breakpoints_invalid_emitted): New globals.
1730 (async_background_execution_p): New function.
1731 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1732 emitting the annotation if it has already been emitted.
1733 (annotate_display_prompt): New function.
1734 * annotate.h (annotate_display_prompt): New declaration.
1735 * event-top.c: Include annotate.h.
1736 (display_gdb_prompt): Call annotate_display_prompt.
1737
1738 2013-01-22 Pedro Alves <palves@redhat.com>
1739
1740 * annotate.c (ignore_count_changed): Delete.
1741 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1742 (annotate_ignore_count_change): Delete.
1743 (annotate_stopped): Don't emit a delayed breakpoints-changed
1744 annotation.
1745 * annotate.h (annotate_ignore_count_change): Delete.
1746 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1747 annotate_ignore_count_change.
1748
1749 2013-01-22 Tom Tromey <tromey@redhat.com>
1750
1751 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1752 require_rvalue for a register location.
1753
1754 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
1755
1756 * breakpoint.c (print_one_breakpoint_location): Add MI
1757 field 'thread-groups' when printing a breakpoint.
1758 (output_thread_groups): New function.
1759
1760 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
1761
1762 * python/lib/gdb/commands/explore.py
1763 (CompoundExplorer.explore_expr): Correct the name of a method
1764 being invoked.
1765 (ExploreTypeCommand.invoke): Add a missing 'return'.
1766
1767 2013-01-21 Tom Tromey <tromey@redhat.com>
1768
1769 * gdb_obstack.h (obconcat): Move declaration here, from...
1770 * symfile.h (obconcat): ... here.
1771 * gdb_obstack.c: New file.
1772 (obconcat): Move from...
1773 * symfile.c (obconcat): ... here.
1774 * Makefile.in (SFILES): Add gdb_obstack.c.
1775 (COMMON_OBS): Add gdb_obstack.o.
1776
1777 2013-01-21 Tom Tromey <tromey@redhat.com>
1778
1779 * symfile.h (obsavestring): Don't declare.
1780 * symfile.c (obsavestring): Remove.
1781 * ada-exp.y: Use obstack_copy0, not obsavestring.
1782 * ada-lang.c: Use obstack_copy0, not obsavestring.
1783 * coffread.c: Use obstack_copy0, not obsavestring.
1784 * cp-namespace.c: Use obstack_copy0, not obsavestring.
1785 * dbxread.c: Use obstack_copy0, not obsavestring.
1786 * dwarf2read.c: Use obstack_copy0, not obsavestring.
1787 * jit.c: Use obstack_copy0, not obsavestring.
1788 * mdebugread.c: Use obstack_copy0, not obsavestring.
1789 * psymtab.c: Use obstack_copy0, not obsavestring.
1790 * stabsread.c: Use obstack_copy0, not obsavestring.
1791 * xcoffread.c: Use obstack_copy0, not obsavestring.
1792
1793 2013-01-21 Tom Tromey <tromey@redhat.com>
1794
1795 * dwarf2read.c (fixup_go_packaging): Save package name
1796 on objfile obstack.
1797 * gdbtypes.c (init_type): Don't copy name.
1798
1799 2013-01-21 Tom Tromey <tromey@redhat.com>
1800
1801 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1802 const.
1803 (struct attribute) <u.str>: Now const.
1804 (struct fnfieldlist) <name>: Now const.
1805 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1806 (partial_die_parent_scope): Make return type const.
1807 (partial_die_full_name, add_partial_symbol): Update.
1808 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1809 'name' const.
1810 (find_file_and_directory): Make 'name' and 'comp_dir' const.
1811 (read_file_scope, read_func_scope, dwarf2_add_field)
1812 (dwarf2_add_member_fn, read_structure_type)
1813 (process_enumeration_scope, read_array_type, read_module_type)
1814 (read_base_type, read_subrange_type): Update.
1815 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1816 (new_symbol_full, guess_full_die_structure_name): Update.
1817 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
1818 (dwarf2_name): Return const type.
1819 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1820 const.
1821
1822 2013-01-21 Tom Tromey <tromey@redhat.com>
1823
1824 * gdbtypes.c (init_type): Make 'name' const.
1825 * gdbtypes.h (init_type): Update.
1826
1827 2013-01-21 Tom Tromey <tromey@redhat.com>
1828
1829 * buildsym.c (patch_subfile_names): Use set_last_source_file.
1830 (start_symtab): Make 'name' and 'dirname' const. Use
1831 set_last_source_file.
1832 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1833 (last_source_file): Define. Now static.
1834 (set_last_source_file, get_last_source_file): New functions.
1835 * buildsym.h (last_source_file): Don't declare.
1836 (start_symtab): Update.
1837 (set_last_source_file, get_last_source_file): Declare.
1838 * coffread.c (complete_symtab): Use set_last_source_file.
1839 (coff_end_symtab): Likewise.
1840 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1841 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1842 set_last_source_file.
1843 (process_one_symbol): Use get_last_source_file.
1844 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1845 (psymtab_to_symtab_1): Use get_last_source_file.
1846 * xcoffread.c (process_linenos): Use get_last_source_file.
1847 (complete_symtab): Use set_last_source_file.
1848 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1849 (scan_xcoff_symtab): Use set_last_source_file.
1850
1851 2013-01-21 Tom Tromey <tromey@redhat.com>
1852
1853 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1854 (symbol_set_names): Remove casts. Handle field const-ness.
1855
1856 2013-01-21 Tom Tromey <tromey@redhat.com>
1857
1858 * dwarf2read.c (new_symbol_full): Remove cast.
1859 * symtab.c (symbol_set_demangled_name): Make 'name' const.
1860 * symtab.h (symbol_set_demangled_name): Update.
1861
1862 2013-01-21 Tom Tromey <tromey@redhat.com>
1863
1864 * main.c (captured_main): Call bfd_init.
1865
1866 2013-01-21 Tom Tromey <tromey@redhat.com>
1867
1868 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1869 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1870 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1871 * NEWS: Update.
1872
1873 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1874
1875 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1876
1877 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1878
1879 Fix gdb.fortran/common-block.exp crash in PIE mode.
1880 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1881 LOC_COMMON_BLOCK.
1882 * f-valprint.c (info_common_command_for_block): Expect
1883 LOC_COMMON_BLOCK in gdb_assert.
1884 * symtab.h (struct general_symbol_info): Update comment for the
1885 common_block member.
1886 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1887 (enum address_class): New member LOC_COMMON_BLOCK.
1888
1889 2013-01-18 David Blaikie <dblaikie@gmail.com>
1890
1891 * MAINTAINERS (Write After Approval): Add "David Blaikie".
1892
1893 2013-01-18 Tom Tromey <tromey@redhat.com>
1894
1895 PR c++/14999:
1896 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
1897 Call require_rvalue.
1898
1899 2013-01-18 Yao Qi <yao@codesourcery.com>
1900
1901 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
1902 (dbx_read_symtab): New declaration.
1903 (dbx_psymtab_to_symtab): Delete.
1904 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
1905 Rename parameter PST to SELF. Exchanged two parameters.
1906 (start_psymtab): Caller update.
1907 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
1908 (dwarf2_read_symtab): New declaration.
1909 (dwarf2_psymtab_to_symtab): Delete.
1910 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
1911 Rename parameter PST to SELF. Exchanged two parameters.
1912 (create_partial_symtab): Caller update.
1913 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
1914 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
1915 Rename parameter PST to SELF. Exchanged two parameters.
1916 (parse_partial_symbols, new_psymtab): Caller update.
1917 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1918 two parameters.
1919 * psymtab.c (psymtab_to_symtab): Caller update.
1920 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
1921 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
1922 Rename parameter PST to SELF. Exchanged two parameters.
1923 (xcoff_start_psymtab): Caller update.
1924
1925 2013-01-18 Yao Qi <yao@codesourcery.com>
1926
1927 * infrun.c (proceed): Rename local variable 'oneproc' to
1928 'force_step'.
1929
1930 2013-01-17 Doug Evans <dje@google.com>
1931
1932 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
1933 (dw2_build_type_unit_groups): Delete. All uses updated.
1934
1935 * symtab.h (struct symbol_search): Add comment.
1936
1937 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1938
1939 * symtab.c (compare_filenames_for_search): New comment for
1940 HAS_DRIVE_SPEC.
1941
1942 2013-01-17 Tom Tromey <tromey@redhat.com>
1943
1944 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1945
1946 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1947
1948 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1949 initialize it by existing make_cleanup. Call new do_cleanups.
1950
1951 2013-01-17 Tom Tromey <tromey@redhat.com>
1952
1953 * cp-abi.c (cp_abi_completer): New function.
1954 (_initialize_cp_abi): Set completer for "set cp-abi".
1955
1956 2013-01-17 Tom Tromey <tromey@redhat.com>
1957
1958 * mem-break.c: Remove obsolete comment.
1959 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1960
1961 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1962
1963 * jit.c (jit_reader_load_command): Interpret the jit reader name
1964 as an absolute path if it begins with a forward slash.
1965
1966 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1967
1968 PR gdb/14550
1969
1970 * jit.c (finalize_symtab): Ensure that only the global block has a
1971 NULL superblock.
1972
1973 2013-01-17 Pedro Alves <palves@redhat.com>
1974
1975 * acinclude.m4: Include ../config/plugins.m4,
1976 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
1977 * Makefile.in (aclocal_m4_deps): Update.
1978 * aclocal.m4: Renegerate.
1979
1980 2013-01-16 Doug Evans <dje@google.com>
1981
1982 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1983
1984 2013-01-16 Pedro Alves <palves@redhat.com>
1985 Tom Tromey <tromey@redhat.com>
1986
1987 PR cli/7221:
1988 * NEWS: Add "catch signal".
1989 * breakpoint.c (base_breakpoint_ops): No longer static.
1990 (bpstat_explains_signal): New function.
1991 (init_catchpoint): No longer static.
1992 (base_breakpoint_explains_signal): New function.
1993 (base_breakpoint_ops): Initialize new field.
1994 * breakpoint.h (enum bpstat_signal_value): New.
1995 (struct breakpoint_ops) <explains_signal>: New field.
1996 (bpstat_explains_signal): Remove macro, declare as function.
1997 (base_breakpoint_ops, init_catchpoint): Declare.
1998 * break-catch-sig.c: New file.
1999 * inferior.h (signal_catch_update): Declare.
2000 * infrun.c (signal_catch): New global.
2001 (handle_syscall_event): Update for change to
2002 bpstat_explains_signal.
2003 (handle_inferior_event): Likewise. Always handle random signals
2004 via bpstats.
2005 (signal_cache_update): Check signal_catch.
2006 (signal_catch_update): New function.
2007 (_initialize_infrun): Initialize signal_catch.
2008 * Makefile.in (SFILES): Add break-catch-sig.c.
2009 (COMMON_OBS): Add break-catch-sig.o.
2010
2011 2013-01-16 Tom Tromey <tromey@redhat.com>
2012
2013 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
2014 (print_one_catch_solib, print_one_catch_syscall)
2015 (print_one_catch_exec, print_one_exception_catchpoint): Emit
2016 "catch-type".
2017
2018 2013-01-16 Yao Qi <yao@codesourcery.com>
2019
2020 * printcmd.c (current_display_number): Make it static.
2021
2022 2013-01-16 Yao Qi <yao@codesourcery.com>
2023
2024 * infcmd.c (step_once): Don't check '!single_inst' as it was
2025 checked before.
2026
2027 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2028
2029 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
2030
2031 2013-01-14 Tom Tromey <tromey@redhat.com>
2032
2033 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
2034 set command.
2035 * command.h (add_setshow_string_noescape_cmd): Update.
2036 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
2037 (complete_set_gnutarget): New function.
2038 (_initialize_core): Set the "set gnutarget" completer.
2039
2040 2013-01-14 Tom Tromey <tromey@redhat.com>
2041
2042 PR symtab/14442:
2043 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
2044 (c_type_print_modifier): Likewise.
2045 * dwarf2read.c (read_tag_restrict_type): New function.
2046 (read_type_die_1): Handle DW_TAG_restrict_type.
2047 * gdbtypes.c (make_restrict_type): New function.
2048 (recursive_dump_type): Handle TYPE_RESTRICT.
2049 * gdbtypes.h (enum type_flag_values): Renumber.
2050 (enum type_instance_flag_value): Add
2051 TYPE_INSTANCE_FLAG_RESTRICT.
2052 (TYPE_RESTRICT): New macro.
2053 (make_restrict_type): Declare.
2054
2055 2013-01-14 Tom Tromey <tromey@redhat.com>
2056
2057 PR symtab/14931:
2058 * psymtab.c (struct psymtab_state): New.
2059 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
2060 functions.
2061 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
2062 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
2063
2064 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
2065 Pedro Alves <palves@redhat.com>
2066
2067 PR remote/14786
2068
2069 * remote.c (remote_threads_info): Make a copy of the reply from
2070 qfThreadInfo and use that instead of rs->buf.
2071
2072 2013-01-14 Yao Qi <yao@codesourcery.com>
2073
2074 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
2075 (dbx_psymtab_to_symtab): Likewise.
2076 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
2077 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
2078 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
2079
2080 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2081
2082 * parse.c (parse_exp_in_context): New variable inner_chain. Call
2083 make_cleanup_restore_current_language. Call set_language. Move
2084 OLD_CHAIN and INNER_CHAIN cleanups.
2085 * utils.c (do_restore_current_language)
2086 (make_cleanup_restore_current_language): New functions.
2087 * utils.h (make_cleanup_restore_current_language): New declaration.
2088
2089 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2090
2091 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
2092 non-existing files.
2093
2094 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
2095 non-existing files if FILENAME is already absolute.
2096
2097 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2098
2099 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
2100 fputs_filtered. Append trailing newline.
2101
2102 2013-01-11 Yao Qi <yao@codesourcery.com>
2103 Stan Shebs <stan@codesourcery.com>
2104
2105 * psymtab.c (init_psymbol_list): Clarify the comment.
2106
2107 2013-01-11 Yao Qi <yao@codesourcery.com>
2108
2109 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
2110 (update_dprintf_command_list): Assert that 'printf_line' is
2111 non-null. Remove condition check.
2112
2113 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2114
2115 Code cleanup.
2116 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
2117 type const char *.
2118 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
2119 const char *.
2120 * tui/tui-source.h (tui_source_is_displayed): Likewise.
2121
2122 2013-01-09 Anthony Green <green@moxielogic.com>
2123
2124 * cp-abi.c (cplus_print_vtable): Don't return value from void
2125 function.
2126 * ada-lang.c (re_set_catch_assert): Ditto.
2127
2128 2013-01-09 Doug Evans <dje@google.com>
2129
2130 * symfile.h (quick_symbol_functions): Delete member
2131 pre_expand_symtabs_matching. All uses removed.
2132 * dwarf2read.c (dw2_lookup_symbol): Implement.
2133 (dw2_do_expand_symtabs_matching): Delete.
2134 (dw2_pre_expand_symtabs_matching): Delete.
2135 (struct dw2_symtab_iterator): New type.
2136 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
2137 (dw2_expand_symtabs_for_function): Rewrite.
2138 (dwarf2_gdb_index_functions): Update.
2139 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
2140 (psym_functions): Update.
2141
2142 2013-01-09 Tom Tromey <tromey@redhat.com>
2143
2144 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
2145 * configure: Rebuild.
2146 * configure.ac: Add somread.o to the build if BFD has SOM
2147 support.
2148 * somread.c: Include som/aout.h, not syms.h.
2149 (som_symtab_read): Use som_external_symbol_dictionary_record.
2150 Unpack records manually.
2151 (_initialize_somread): Declare.
2152
2153 2012-01-08 Mike Frysinger <vapier@gentoo.org>
2154
2155 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
2156 Cast return_address to 64bits.
2157
2158 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
2159
2160 * printcmd.c: Remove define of function output_command.
2161 * tracepoint.c: Remove extern of function output_command.
2162 * valprint.h: (output_command): New extern.
2163
2164 2013-01-07 Tom Tromey <tromey@redhat.com>
2165
2166 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
2167 Remove.
2168 (objc_language_defn): Use c_printchar, c_printstr,
2169 c_emit_char.
2170
2171 2013-01-07 Tom Tromey <tromey@redhat.com>
2172
2173 PR cli/7719:
2174 * NEWS: Update.
2175 * ada-valprint.c (printstr, print_field_values): Remove
2176 "inspect_it" code.
2177 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
2178 code.
2179 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
2180 code.
2181 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
2182 * main.c (captured_main): Remove "epoch" argument.
2183 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
2184 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
2185 * p-valprint.c (pascal_object_print_value_fields): Remove
2186 "inspect_it" code.
2187 * printcmd.c (print_command_1): Remove 'inspect' argument.
2188 (print_command, call_command): Update.
2189 (inspect_command): Remove.
2190 (_initialize_printcmd): Make "inspect" an alias for "print".
2191 * top.c (epoch_interface): Remove.
2192 * top.h (epoch_interface): Remove.
2193 * valprint.c (user_print_options): Update.
2194 (print_converted_chars_to_obstack): Remove "inspect_it" code.
2195 * valprint.h (struct value_print_options) <inspect_it>: Remove
2196 field.
2197
2198 2013-01-04 Tom Tromey <tromey@redhat.com>
2199
2200 * valprint.h (read_string): Add 'extern'.
2201
2202 2013-01-07 Joel Brobecker <brobecker@adacore.com>
2203
2204 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
2205 used to decide whether to define darwin_read_dyld_info or not.
2206
2207 2013-01-03 Pierre Muller <muller@sourceware.org>
2208
2209 * main.c (relocate_gdb_directory): Avoid calling stat function
2210 if DIR is empty.
2211
2212 2013-01-03 Yao Qi <yao@codesourcery.com>
2213
2214 * psymtab.c (fixup_psymbol_section): Update declaration.
2215 (fixup_psymbol_section): Remove code returning value.
2216
2217 2013-01-03 Yao Qi <yao@codesourcery.com>
2218
2219 * symtab.h: Remove some out of date comments.
2220 (enum exception_event_kind): Move it ...
2221 * breakpoint.c: ... here.
2222
2223 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
2224
2225 PR gdb/14405
2226 * darwin-nat.c (darwin_read_dyld_info): Only build if
2227 TASK_DYLD_INFO_COUNT is defined.
2228 (darwin_xfer_partial): Call darwin_read_dyld_info only if
2229 TASK_DYLD_INFO_COUNT is defined.
2230
2231 2013-01-02 Tom Tromey <tromey@redhat.com>
2232
2233 * symfile.h (struct ecoff_debug_hack): Remove.
2234 * objfiles.c: Don't include mdebugread.h.
2235
2236 2013-01-02 Tom Tromey <tromey@redhat.com>
2237
2238 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
2239 * configure.ac: Check for Mach-O support in BFD. Update
2240 CONFIG_OBS.
2241 * configure: Rebuild.
2242
2243 2013-01-02 Tom Tromey <tromey@redhat.com>
2244
2245 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
2246 * configure.ac: Use GDB_AC_CHECK_BFD.
2247 * configure: Rebuild.
2248
2249 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
2250
2251 * MAINTAINERS: Update my email.
2252
2253 2013-01-01 Joel Brobecker <brobecker@adacore.com>
2254
2255 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
2256
2257 2013-01-01 Joel Brobecker <brobecker@adacore.com>
2258
2259 * rs6000-nat.c (bss_data_overlap): New function.
2260 (vmap_symtab): Use it to adjust the .bss section's offset.
2261
2262 2013-01-01 Joel Brobecker <brobecker@adacore.com>
2263
2264 Update year range in copyright notice of all files.
2265
2266 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
2267
2268 * top.c (print_gdb_version): Update copyright year.
2269
2270 For older changes see ChangeLog-2012.
2271 \f
2272 Local Variables:
2273 mode: change-log
2274 left-margin: 8
2275 fill-column: 74
2276 version-control: never
2277 coding: utf-8
2278 End: