1 2012-10-18 Tom Tromey <tromey@redhat.com>
3 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
4 * symtab.c (iterate_over_some_symtabs): Constify.
5 * source.h (symtab_to_fullname): Return 'const char *'.
6 * source.c (symtab_to_fullname): Return 'const char *'.
7 * python/py-symtab.c (stpy_fullname): Constify.
8 * cli/cli-cmds.c (edit_command): Constify.
9 * breakpoint.c (print_breakpoint_location)
10 (update_static_tracepoint): Constify.
12 2012-10-18 Tom Tromey <tromey@redhat.com>
14 * breakpoint.c (compare_breakpoints): Fix comparison.
16 2012-10-18 Tom Tromey <tromey@redhat.com>
18 * valprint.c (generic_emit_char, generic_printstr): Pass size of
19 gdb_wchar_t to convert_between_encodings.
21 2012-10-17 Yao Qi <yao@codesourcery.com>
23 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
24 more parameter 'inferior'.
25 * corefile.c (write_memory_with_notification): Caller update.
27 * mi/mi-cmd-var.c: Include "mi-main.h".
28 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
29 to 1 and restore it later.
30 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
31 and "data-write-memory-bytes.
32 * mi/mi-interp.c: Include objfiles.h.
33 (mi_interpreter_init): Call observer_attach_memory_changed.
34 (mi_memory_changed): New.
35 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
38 * NEWS: Mention new MI notification "memory-changed".
40 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
42 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
44 2012-10-15 Doug Evans <dje@google.com>
46 New option -nh: inhibit loading of ~/.gdbinit.
48 * main.c (captured_main): Recognize and process -nh.
49 (print_gdb_help): Mention -nh.
50 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
52 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
56 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
58 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
59 nor pc_regnum_from_eax.
60 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
61 nor pc_regnum_from_eax.
63 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
65 Fix entry values resolving in inlined frames.
66 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
67 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
70 2012-10-15 Joel Brobecker <brobecker@adacore.com>
72 * configure.ac: Build with -DMS_WIN64 if building with Python
73 enabled using GCC on amd64-windows.
74 * configure: Regenerate.
76 2012-10-15 Tom Tromey <tromey@redhat.com>
79 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
82 2012-10-15 Tom Tromey <tromey@redhat.com>
85 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
87 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
89 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
90 reset thread numbering back to 1.
92 2012-10-11 Doug Evans <dje@google.com>
95 * linespec.c (struct ls_parser): New member keyword_ok.
96 (linespec_lexer_lex_string): Add comment.
97 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
99 (parse_linespec): Set keyword_ok.
101 2012-10-10 Doug Evans <dje@google.com>
103 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
104 "0x" prefix on address in log message.
106 * dwarf2read.c (read_1_byte): Add const to buf parameter.
107 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
108 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
109 (lookup_dwo_file): Add const to dwo_name parameter.
110 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
112 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
114 Fix crash during stepping on ppc32.
115 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
118 2012-10-03 Doug Evans <dje@google.com>
121 * buildsym.c (buildsym_init): Reset using_directives to NULL.
123 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
125 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
126 output and use uint32_t not long to ensure 4 byte size.
128 2012-10-02 Joel Brobecker <brobecker@adacore.com>
130 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
133 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
135 * target.c (simple_search_memory): Include access length in
138 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
139 Edjunior Machado <emachado@linux.vnet.ibm.com>
142 * solib.c (solib_find): Prevent GDB from loading native libraries when
143 debugging a cross-target corefile.
145 2012-09-28 selven <pcthegreat@gmail.com>
147 Make definition match declaration.
149 * regcache.c (regcache_register_status): Change return type to
150 enum register_status.
152 2012-09-28 Yao Qi <yao@codesourcery.com>
154 * mi/mi-main.c (mi_cmd_data_write_memory): Call
155 write_memory_with_notification instead of write_memory.
156 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
157 instead of target_write_memory.
159 2012-09-28 Yao Qi <yao@codesourcery.com>
161 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
162 when the length of content is not an even number.
164 2012-09-27 Tom Tromey <tromey@redhat.com>
166 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
167 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
169 2012-09-27 Joel Brobecker <brobecker@adacore.com>
171 * sol-thread.c (sol_thread_fetch_registers)
172 (sol_thread_store_registers): Delete commented out code.
174 2012-09-27 Joel Brobecker <brobecker@adacore.com>
176 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
177 Move these functions to sparc-sol-thread.c.
178 * sparc-sol-thread.c: New file.
179 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
180 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
182 * configure: Regenerate.
184 2012-09-27 Joel Brobecker <brobecker@adacore.com>
186 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
187 Remove commented-out code.
189 2012-09-27 Joel Brobecker <brobecker@adacore.com>
191 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
192 Enable this code for sparc hosts only.
194 2012-09-27 Joel Brobecker <brobecker@adacore.com>
196 * procfs.h (procfs_find_LDT_entry): Add declaration.
197 * sol-thread.c (ps_lgetLDT): Delete local declaration of
198 function procfs_find_LDT_entry.
200 2012-09-27 Joel Brobecker <brobecker@adacore.com>
202 * procfs.c (proc_get_LDT_entry): Make static.
204 2012-09-27 Joel Brobecker <brobecker@adacore.com>
206 * procfs.c (proc_find_memory_regions): Fix declaration.
208 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
210 * amd64-tdep.c (amd64_return_value): Revert previous change
211 that used TYPE_LENGTH directly.
212 * bfin-tdep.c (bfin_extract_return_value): Likewise.
213 (bfin_store_return_value): Likewise.
214 * cris-tdep.c (cris_store_return_value): Likewise.
215 (cris_extract_return_value): Likewise.
216 * h8300-tdep.c (h8300_extract_return_value): Likewise.
217 * hppa-tdep.c (hppa64_return_value): Likewise.
218 * lm32-tdep.c (lm32_store_return_value): Likewise.
219 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
220 * spu-tdep.c (spu_value_from_register): Likewise.
221 * vax-tdep.c (vax_return_value): Likewise.
223 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
225 * gdbtypes.c (lookup_array_range_type): Expand parameters
226 LOW_BOUND and HIGH_BOUND to LONGEST.
227 (lookup_string_range_type): Likewise.
228 * gdbtypes.h (lookup_array_range_type): Likewise.
229 (lookup_string_range_type): Likewise.
230 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
231 Expand HIGHBOUND to ssize_t.
232 (value_string): Likewise.
233 * value.h (value_cstring): Expand parameter LEN to ssize_t.
234 (value_string): Likewise.
236 2012-09-27 Yao Qi <yao@codesourcery.com>
239 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
240 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
243 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
245 * procfs.c: Add gdb_bfd header.
246 * rs6000-nat.c: Likewise.
247 * solib-pa64.c: Likewise.
248 * spu-linux-nat.c: Likewise.
249 * windows-nat.c: Likewise.
251 2012-09-26 Tom Tromey <tromey@redhat.com>
253 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
255 2012-09-26 Tom Tromey <tromey@redhat.com>
257 * dwarf2read.c (mark_common_block_symbol_computed): New function.
258 (read_common_block): Handle child DIEs with
259 DW_AT_data_member_location.
260 (new_symbol_full): Add special case for common blocks.
262 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
263 Tom Tromey <tromey@redhat.com>
265 * dwarf2read.c (read_common_block): Rewrite.
266 (new_symbol_full): Handle DW_TAG_common_block.
267 * f-lang.c (head_common_list, find_common_for_function):
269 * f-lang.h (struct common_entry, struct saved_f77_common,
270 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
271 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
272 BLANK_COMMON_NAME_LOCAL): Remove.
273 (struct common_block): New.
274 * f-valprint.c (list_all_visible_commons): Remove.
275 (info_common_command_for_block): New function.
276 (info_common_command): Use it.
277 * stack.c (iterate_over_block_locals): Special case for
279 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
281 (struct general_symbol_info) <value.common_block>: New field.
282 (SYMBOL_VALUE_COMMON_BLOCK): New define.
284 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
285 Tom Tromey <tromey@redhat.com>
287 * f-lang.c (allocate_saved_bf_node,
288 allocate_saved_function_node, allocate_saved_f77_common_node,
289 allocate_common_entry_node, tail_common_list, current_common,
290 saved_bf_list, saved_bf_list_end, current_head_bf_list,
291 tmp_bf_ptr, add_common_block, add_common_entry,
292 find_first_common_named, patch_common_entries,
293 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
294 global_remote_debug, get_bf_for_fcn, saved_function_list,
295 saved_function_list_end, clear_function_list, struct saved_fcn,
296 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
297 SAVED_BF, SAVED_BF_PTR): Remove.
298 * f-lang.h (tail_common_list, current_common,
299 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
300 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
301 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
302 real_main_c_value): Remove.
303 * f-valprint.c (there_is_a_visible_common_named): Remove.
305 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
307 * breakpoint.c (update_global_location_list): Ignore previous
308 duplicate status of a breakpoint when starting a new scan for
309 duplicate breakpoints.
311 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
313 * arm-tdep.c (arm_skip_prologue): Extending producer check to
314 support LLVM compiler.
316 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
318 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
319 * bfin-tdep.c (bfin_extract_return_value): Likewise.
320 (bfin_store_return_value): Likewise.
321 * cris-tdep.c (cris_store_return_value): Likewise.
322 (cris_extract_return_value): Likewise.
323 * h8300-tdep.c (h8300_extract_return_value): Likewise.
324 * hppa-tdep.c (hppa64_return_value): Likewise.
325 * lm32-tdep.c (lm32_store_return_value): Likewise.
326 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
327 * spu-tdep.c (spu_value_from_register): Likewise.
328 * vax-tdep.c (vax_return_value): Likewise.
330 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
332 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
333 parameter LEN to ssize_t.
335 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
337 * ada-valprint.c (ada_val_print_1): Eliminate single-use
339 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
341 (alpha_store_return_value): Likewise.
342 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
343 (amd64_push_arguments): Likewise.
344 * ax-gdb.c (gen_trace_static_fields): Likewise.
345 (gen_traced_pop): Likewise.
346 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
347 * breakpoint.c (update_watchpoint): Likewise.
348 * findcmd.c (parse_find_args): Use local variable for type
350 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
351 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
352 (h8300_store_return_value): Likewise.
353 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
354 Use i386_darwin_arg_type_alignment directly.
355 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
356 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
357 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
358 (m68hc11_extract_return_value): Likewise.
359 * mep-tdep.c (mep_push_dummy_call): Likewise.
360 * printcmd.c (float_type_from_length): Likewise.
361 * s390-tdep.c (s390_value_from_register): Likewise.
362 * stack.c (read_frame_arg): Likewise.
363 * tracepoint.c (encode_actions_1): Likewise.
364 * valops.c (value_fetch_lazy): Use local variable for type
365 instead of length. Use TYPE_LENGTH directly.
366 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
368 2012-09-25 Joel Brobecker <brobecker@adacore.com>
370 * symtab.c (skip_prologue_sal): Fix typo in comment.
372 2012-09-25 Joel Brobecker <brobecker@adacore.com>
374 * linespec.c (create_sals_line_offset): Fix typo in comment.
376 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
378 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
379 use plongest to print the array size.
381 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
383 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
384 * p-valprint.c (pascal_type_print_base): Likewise.
386 2012-09-22 Yao Qi <yao@codesourcery.com>
388 * remote.c (remote_get_trace_status): Remove setting default
389 values of fields of 'ts'.
391 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
393 Fix internal error on canonicalization of clang types.
394 * cp-name-parser.y (operator): New comment at make_operator call for
395 new, delete, new[] and delete[].
396 (exp): Use "sizeof ". Add new comment at make_operator call.
398 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
400 Fix disassemble without parameters in tailcall frame.
401 * cli/cli-cmds.c (disassemble_current_function): Use
402 get_frame_address_in_block.
404 2012-09-21 Tom Tromey <tromey@redhat.com>
406 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
407 TYPE_CODE_UNION>: Unify, removing a goto.
409 2012-09-21 Tom Tromey <tromey@redhat.com>
411 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
413 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
415 * findvar.c (read_frame_register_value): Mark the result value as
416 optimized out if any of the input registers have been optimized out.
418 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
420 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
422 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
424 * eval.c (evaluate_subexp_standard): Eliminate single-use
427 2012-09-21 Yao Qi <yao@codesourcery.com>
429 * mi/mi-interp.c: Declare mi_record_changed.
430 (mi_interpreter_init): Call observer_attach_record_changed.
431 (mi_record_changed): New.
432 * record.c (record_open): Call observer_notify_record_changed.
433 (cmd_record_stop): Call observer_notify_record_changed.
436 2012-09-20 Tom Tromey <tromey@redhat.com>
439 * python/python.c (finalize_python): New function.
440 (_initialize_python): Make a final cleanup.
442 2012-09-19 Doug Evans <dje@google.com>
444 * buildsym.h (param_symbols): Delete, unused.
445 (context_stack): Delete member "params", unused.
446 * buildsym.c (push_context): Update.
447 * dwarf2read.c (read_func_scope): Update.
449 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
451 * sh-tdep.c (sh_register_convert_to_virtual)
452 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
453 all callers. Just do a memcpy if not the little-endian case.
455 * h8300-tdep.c (h8300_gdbarch_init): Invoke
456 set_gdbarch_double_format and set_gdbarch_long_double_format.
457 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
458 set_gdbarch_double_format.
459 * sh-tdep.c (sh_gdbarch_init): Likewise.
461 * NEWS: Document the removal of SH's 'regs' command.
462 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
465 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
467 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
470 2012-09-18 Joel Brobecker <brobecker@adacore.com>
472 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
473 language when iterating over symbols.
475 2012-09-18 Yao Qi <yao@codesourcery.com>
477 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
478 (mi_interpreter_init): Call observer_attach_tsv_created and
479 observer_attach_tsv_deleted.
480 (mi_tsv_created, mi_tsv_deleted): New.
481 * tracepoint.c (delete_trace_state_variable): Call
482 observer_notify_tsv_deleted.
483 (trace_variable_command): Call observer_notify_tsv_created.
484 (delete_trace_variable_command): Call
485 observer_notify_tsv_deleted.
486 (create_tsv_from_upload): Call observer_notify_tsv_created.
489 2012-09-18 Yao Qi <yao@codesourcery.com>
491 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
492 if traceframe changed.
493 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
495 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
496 (mi_interpreter_init): Hook mi_traceframe_changed to observer
497 'traceframe_changed'.
498 (mi_traceframe_changed): New.
499 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
501 * NEWS: Mention the new MI notification.
503 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
505 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
507 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
509 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
510 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
511 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
512 Extend code also for PaX support. Convert all gdb_assert to warning
515 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
517 Implement auto-load user conveniences suggested by Doug Evans.
518 * auto-load.c: Include top.h.
519 (file_is_auto_load_safe): New variable advice_printed. Print advice.
520 (_initialize_auto_load): New variable scripts_directory_help. Mention
521 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
522 scripts-directory. Document in online help one can use also files for
523 set auto-load safe-path.
524 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
525 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
527 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
529 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
532 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
534 * m2-valprint.c (m2_print_array_contents): Eliminate variable
535 ELTLEN and use TYPE_LENGTH directly.
536 (m2_val_print): Likewise.
537 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
538 variable LEN and use TYPE_LENGTH directly.
539 (m68k_svr4_store_return_value): Likewise.
540 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
541 ARGLEN and use TYPE_LENGTH directly.
542 (mips_o64_push_dummy_call): Likewise.
543 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
544 variable LENGTH and use TYPE_LENGTH directly.
545 (s390_function_arg_float): Likewise.
546 (s390_function_arg_integer): Likewise.
547 (s390_push_dummy_call): Likewise.
548 (s390_return_value_convention): Likewise.
549 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
550 TYPE_LENGTH directly.
552 2012-09-17 Yao Qi <yao@codesourcery.com>
554 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
555 Update comment to add_setshow_integer_cmd.
556 * cli/cli-setshow.c (do_set_command): Handle case
557 'var_zuinteger_unlimited'.
558 (do_show_command): Likewise.
559 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
560 for command 'remotetimeout'.
561 * command.h (enum var_types): New zuinteger_unlimited. Update comment
563 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
564 for command 'set listsize'.
566 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
568 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
571 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
574 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
575 (frame_pop): Drop also TAILCALL_FRAME frames.
576 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
578 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
579 Pedro Alves <palves@redhat.com>
582 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
583 function start if we are already at function start. Both for
584 reverse-next and for reverse-step into function without line number
587 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
589 Code cleanup - rename 'inline' depth to 'artificial' depth.
590 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
591 frame_id_artificial_p, extend the comment.
592 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
593 * frame.c (fprint_frame_id): Rename at a user, change debug output
594 text to "artificial=".
595 (skip_inlined_frames): Rename to ...
596 (skip_artificial_frames): ... here. Extend the comment.
597 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
598 (frame_id_inlined_p): Rename to ...
599 (frame_id_artificial_p): ... here. Rename at a user.
600 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
601 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
603 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
605 (frame_id_inlined_p): Rename to ...
606 (frame_id_artificial_p): ... here.
607 * inline-frame.c (inline_frame_this_id): Rename at a user.
609 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
611 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
612 vector variables using vector_size syntax rather than array
615 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
617 * valarith.c (value_concat): Replace unsafe ALLOCA with
620 2012-09-14 Pedro Alves <palves@redhat.com>
622 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
624 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
626 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
627 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
628 data-directory as appropriate.
630 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
632 * printcmd.c (ui_printf): Eliminate single-use variable
635 2012-09-14 Yao Qi <yao@codesourcery.com>
636 Pedro Alves <palves@redhat.com>
638 * valops.c (value_assign): Move observer_notify_target_changed
639 below to replace reinit_frame_cache.
641 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
643 Refactor Python "gdb" module into a proper Python package, by
644 introducing a new "_gdb" module for code implemented in C, and
645 using reload/__import__ instead of exec.
646 * python/lib/gdb/__init__.py: Import * from _gdb.
647 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
648 prompt_hook, sys.argv): Moved from finish_python_initialization.
649 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
650 (packages, auto_load_packages): New list and function replacing
651 module_dict and auto-loading code, using __file__ instead of
652 gdb.PYTHONDIR and reload/__import__ instead of exec.
653 (GdbSetPythonDirectory): Replacing function of the same name
654 from finish_python_initialization, using reload/__import__ instead
655 of exec, as well as call auto_load_packages.
656 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
657 gdb_python_module and not gdb_module.
658 * python/python-internal.h (gdb_python_module): Declare.
659 * python/python.c (gdb_python_module): New global.
660 (before_prompt_hook): Check gdb_python_module and not gdb_module.
661 (_initialize_python): Rename gdb module to _gdb.
662 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
663 (finish_python_initialization): Move Python code to
664 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
667 2012-09-13 Pedro Alves <palves@redhat.com>
669 * Makefile.in (COMMON_OBS): Add registry.o.
670 * registry.c: New file.
671 * registry.h (struct registry_container): Declare.
672 (registry_data_callback): New typedef.
673 (struct registry_data, struct registry_data_registration, struct
674 registry_data_registry): New type.
675 (register_data_with_cleanup, registry_alloc_data)
676 (registry_callback_adaptor, registry_clear_data)
677 (registry_container_free_data, registry_set_data, registry_data):
679 (DEFINE_REGISTRY): Refactor structures and functions as shims over
680 the new common structures and functions.
681 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
684 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
686 * remote.c (remote_insert_hw_breakpoint): Throw exception if
687 there is an error inserting hardware breakpoints and use the
688 error message from the target.
690 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
691 Catch this exception and print the error message contained within. Do not
692 print the default hardware error breakpoint message in this case.
694 2012-09-12 Doug Evans <dje@google.com>
696 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
699 2012-09-11 Doug Evans <dje@google.com>
701 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
702 .gdb_index symbol attributes if there are none.
704 2012-09-11 Joel Brobecker <brobecker@adacore.com>
706 * symtab.h (struct minimal_symbol) [has_size]: New field.
707 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
708 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
709 * printcmd.c (build_address_symbolic): Only filter out zero-sized
710 minimal symbols if the symbol's size is actually known.
711 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
712 of msymbol's size field. Add comment.
713 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
714 SET_MSYMBOL_SIZE to set the minimal symbol size.
716 2012-09-11 Joel Brobecker <brobecker@adacore.com>
718 * minsyms.c (install_minimal_symbols): Use memset to fill entire
719 minimal_symbol struct object, rather than setting some of its
722 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
724 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
725 passed_a_ptr flag when displaying typedef types.
727 2012-09-10 Joel Brobecker <brobecker@adacore.com>
729 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
730 the optimized_out flag is preserved.
732 2012-09-10 Anthony Green <green@moxielogic.com>
734 * moxie-tdep.c (moxie_analyze_prologue): Update for function
735 prologue changes in GCC.
737 2012-09-10 Keith Seitz <keiths@redhat.com>
740 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
741 (BOOL_CONVERSION_BADNESS): ... this.
742 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
743 (rank_one_type): Allow all boolean conversions
744 permitted by the standard.
746 2012-09-06 Tom Tromey <tromey@redhat.com>
748 * python/py-newobjfileevent.c (create_new_objfile_event_object):
749 Don't decref py_objfile.
751 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
753 Do not enable -lmcheck by default when Python is enabled with
755 * configure.ac: (python_has_threads) New variable, by testing
756 if WITH_THREAD is defined in Python.h.
757 Move --enable-lmcheck after --with-python.
758 Do not enable -lmcheck by default if python_has_threads=yes.
759 Warn if --enable-lmcheck and python_has_threads=yes.
760 * configure: Regenerate.
762 2012-08-31 Yao Qi <yao@codesourcery.com>
764 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
765 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
766 Update some commands.
767 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
768 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
771 2012-08-31 Yao Qi <yao@codesourcery.com>
773 * mi/mi-cmds.c (mi_cmds): Add 'static'.
775 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
777 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
779 2012-08-29 Doug Evans <dje@google.com>
781 * main.c (print_gdb_help): Remove reference to
782 --use-deprecated-index-sections.
784 2012-08-28 Yao Qi <yao@codesourcery.com>
786 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
787 (init_cmds): Call add_setshow_uinteger_cmd for command
788 'max-user-call-depth'.
789 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
790 declaration of 'max_user_call_depth'.
791 * frame.c (backtrace_limit): Add 'unsigned'.
792 (_initialize_frame): Call add_setshow_uinteger_cmd for command
794 * remote.c (remoteaddresssize): Add 'unsigned'.
795 (remote_address_masked): Change local var 'address_size' to
797 (_initialize_remote): Call add_setshow_uinteger_cmd for
799 * top.c (history_size): Add 'unsigned'.
800 (show_commands): Change local variables to 'unsigned'.
801 (set_history_size_command): Don't check history_size is negative.
802 Adjust the condition to call unstifle_history and set history_size
805 2012-08-28 Pedro Alves <palves@redhat.com>
809 * infcmd.c (default_print_one_register_info): New, factored out
810 from default_print_registers_info.
811 (default_print_registers_info): Use it. Mark value unavailable if
813 (registers_info): Print user registers with
814 default_print_one_register_info.
816 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
819 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
820 is not NULL before referencing it.
822 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
824 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
825 variable pc. Call find_pc_line instead of find_pc_overlay, restore
828 2012-08-27 Eli Zaretskii <eliz@gnu.org>
829 Jan Kratochvil <jan.kratochvil@redhat.com>
831 * auto-load.c (auto_load_objfile_script): Rename to ...
832 (auto_load_objfile_script_1): ... here, change variable realname to
833 parameter realname, document it, add return value, add variable retval.
834 (auto_load_objfile_script): New function.
836 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
838 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
839 followed by a whitespace.
841 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
844 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
845 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
846 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
849 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
851 * memattr.c (create_mem_region): Fix memory region overlapping
854 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
856 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
857 with xmalloc/cleanup.
858 * mt-tdep.c (mt_push_dummy_call): Likewise.
859 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
860 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
862 2012-08-24 Yao Qi <yao@codesourcery.com>
864 * jv-exp.y (push_expression_name): Add "." at the end of error
867 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
869 Document how to return from "python-interactive" to GDB.
870 * python/python.c (_initialize_python): Update documentation.
872 2012-08-23 Pedro Alves <palves@redhat.com>
874 * infrun.c (_initialize_infrun) <handle command help text>:
875 Mention that multiple signals are supported.
877 2012-08-23 Pedro Alves <palves@redhat.com>
879 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
882 2012-08-23 Yao Qi <yao@codesourcery.com>
884 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
885 (tfind_1): Don't call registers_changed, set_traceframe_num,
886 and clear_traceframe_info.
887 Call set_current_traceframe.
888 (set_current_traceframe): call set_traceframe_num.
890 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
892 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
893 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
895 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
897 Enable readline in Python in a GDB-specific way and block the
898 standard Python readline module to prevent conflicts with GDB.
899 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
900 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
901 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
902 * python/py-gdb-readline.c: New file.
903 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
905 * python/python.c (_initialize_python): Call
906 gdbpy_initialize_gdb_readline.
908 2012-08-22 Keith Seitz <keiths@redhat.com>
910 * defs.h: Include build-gnulib/config.h
912 2012-08-22 Joseph Myers <joseph@codesourcery.com>
914 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
917 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
919 Add a new "python-interactive" command that starts a standard
920 Python interactive prompt with "pi" as alias, and add "py" as
921 an alias to "python".
922 * NEWS: Mention the new commands.
923 * python/python.c (eval_python_command): New function.
924 (python_interactive_command): For "python-interactive" with
925 arguments, call eval_python_command. For "python-interactive"
926 without arguments, call PyRun_InteractiveLoop.
927 (_initialize_python): Add "python-interactive" command with
928 "pi" as alias, and add "py" as an alias to "python".
930 2012-08-22 Tom Tromey <tromey@redhat.com>
932 * defs.h (quit_flag): Don't declare.
933 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
934 (QUIT): Use new functions.
935 * event-top.c (command_handler): Use clear_quit_flag.
936 (handle_sigint): Use set_quit_flag.
937 (async_request_quit): Use check_quit_flag. Don't check
939 * exceptions.c (throw_exception): Use clear_quit_flag.
940 * main.c (captured_main): Use clear_quit_flag.
941 * python/python.c (clear_quit_flag, set_quit_flag)
942 (check_quit_flag): New functions.
943 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
945 * remote.c (remote_wait_as): Use check_quit_flag,
947 (remote_start_remote): Call QUIT.
948 * symfile.c (load_progress): Use check_quit_flag.
949 * top.c (command_loop): Use clear_quit_flag.
950 (command_line_input): Call QUIT.
951 * utils.c (quit_flag): Conditionally define.
952 (clear_quit_flag, check_quit_flag, set_quit_flag): New
954 (prompt_for_continue): Call QUIT. Use quit, not
956 * remote-mips.c (mips_expect_timeout): Call QUIT.
957 * monitor.c (monitor_expect): Call QUIT.
959 2012-08-22 Tom Tromey <tromey@redhat.com>
961 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
962 (async_init_signals): Update.
963 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
964 (SIGWINCH_HANDLER_BODY): Remove.
966 2012-08-22 Tom Tromey <tromey@redhat.com>
968 * jit.c (jit_object_close_impl): Don't malloc the objfile
970 * objfiles.c (allocate_objfile): Don't malloc the objfile
972 (free_objfile): Don't free the objfile name.
973 * objfiles.h (struct objfile) <name>: Update comment.
974 * symfile.c (reread_symbols): Fix reference counting. Don't
977 2012-08-22 Tom Tromey <tromey@redhat.com>
979 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
980 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
981 (symfile_bfd_open): Likewise.
982 (generic_load): Likewise.
983 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
984 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
986 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
988 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
989 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
990 (pmon_load_fast): Likewise.
991 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
992 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
993 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
994 (macho_check_dsym): Likewise.
995 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
996 (m32r_upload_command): Likewise.
997 * gdb_bfd.h (gdb_bfd_cache): Declare.
998 * gdb_bfd.c (struct gdb_bfd_data): New.
999 (gdb_bfd_cache): New global.
1000 (struct gdb_bfd_cache_search): New.
1001 (hash_bfd): New function.
1003 (gdb_bfd_open): Likewise.
1004 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1005 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1007 * exec.c (exec_file_attach): Use gdb_bfd_open.
1008 * dsrec.c (load_srec): Use gdb_bfd_open.
1010 2012-08-22 Tom Tromey <tromey@redhat.com>
1012 * dwarf2read.c (macro_start_file): Update.
1013 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1014 (free_objfile_per_bfd_storage): Destroy macro_cache.
1015 (allocate_objfile, free_objfile): Update.
1016 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1018 (struct objfile) <macro_cache>: Remove.
1019 * symfile.c (reread_symbols): Update.
1020 * symmisc.c (print_symbol_bcache_statistics): Update.
1021 (print_objfile_statistics): Update.
1023 2012-08-22 Tom Tromey <tromey@redhat.com>
1025 * elfread.c (elf_symtab_read): Update.
1026 * objfiles.c (objfiles_bfd_data): New global.
1027 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1028 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1029 (allocate_objfile, free_objfile): Update.
1030 (_initialize_objfiles): Initialize objfiles_bfd_data.
1031 * objfiles.h (struct objfile_per_bfd_storage): New.
1032 (struct objfile) <per_bfd>: New field.
1033 <filename_cache>: Remove.
1034 (set_objfile_per_bfd): Declare.
1035 * symfile.c (reread_symbols): Update. Call
1036 set_objfile_per_bfd.
1037 (allocate_symtab): Update.
1038 * symmisc.c (print_symbol_bcache_statistics): Update.
1039 (print_objfile_statistics): Print the size of the BFD obstack.
1041 2012-08-22 Tom Tromey <tromey@redhat.com>
1043 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1044 * gdb_bfd.c: Use DEFINE_REGISTRY.
1045 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1046 (gdb_bfd_ref): Call bfd_alloc_data.
1047 (gdb_bfd_unref): Call bfd_free_data.
1049 2012-08-22 Tom Tromey <tromey@redhat.com>
1051 * registry.h (struct registry_fields): New.
1052 (REGISTRY_FIELDS): Redefine.
1053 (REGISTRY_ACCESS_FIELD): New macro.
1054 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1057 2012-08-22 Tom Tromey <tromey@redhat.com>
1059 * auto-load.c (_initialize_auto_load): Update.
1060 * solib-svr4.c (_initialize_svr4_solib): Update
1061 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1062 * solib-darwin.c (_initialize_darwin_solib): Update.
1063 * registry.h: New file.
1064 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1065 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1066 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1067 (register_program_space_data_with_cleanup)
1068 (register_program_space_data, program_space_alloc_data)
1069 (clear_program_space_data, set_program_space_data)
1070 (program_space_data): Don't declare.
1071 * progspace.c: Use DEFINE_REGISTRY.
1072 (struct program_space_data, struct
1073 program_space_data_registration, struct
1074 program_space_data_registry, program_space_data_registry)
1075 (register_program_space_data_with_cleanup)
1076 (register_program_space_data, program_space_alloc_data)
1077 (program_space_free_data, clear_program_space_data)
1078 (set_program_space_data, program_space_data): Remove.
1079 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1080 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1081 (register_objfile_data_with_cleanup, register_objfile_data)
1082 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1084 * objfiles.c: Use DEFINE_REGISTRY.
1085 (struct objfile_data, struct objfile_data_registration, struct
1086 objfile_data_registry, objfile_data_registry)
1087 (register_objfile_data_with_cleanup, register_objfile_data)
1088 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1089 (set_objfile_data, objfile_data): Remove.
1090 (_initialize_objfiles): Update.
1091 * jit.c (_initialize_jit): Update.
1092 * inflow.c (_initialize_inflow): Update.
1093 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1094 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1095 (register_inferior_data_with_cleanup, register_inferior_data)
1096 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1098 * inferior.c: Use DEFINE_REGISTRY.
1099 (struct inferior_data, struct inferior_data_registration, struct
1100 inferior_data_registry, inferior_data_registry)
1101 (register_inferior_data_with_cleanup, register_inferior_data)
1102 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1103 (set_inferior_data, inferior_data): Remove.
1104 * auxv.c (_initialize_auxv): Update.
1105 * ada-lang.c (_initialize_ada_language): Update.
1106 * breakpoint.c (_initialize_breakpoint): Update.
1107 * i386-nat.c (i386_use_watchpoints): Update.
1109 2012-08-22 Tom Tromey <tromey@redhat.com>
1111 * exec.c (exec_close, exec_file_attach): Update.
1112 (add_to_section_table): Initialize 'key' field.
1113 (add_target_sections, remove_target_sections): Add 'key' argument.
1114 * exec.h (add_target_sections, remove_target_sections): Add
1116 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1117 (reload_shared_libraries_1): Update.
1118 * target.h (struct target_section) <key>: New field.
1120 2012-08-22 Tom Tromey <tromey@redhat.com>
1122 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1124 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1126 * symfile.c (allocate_symtab): Use host_address_to_string
1127 function instead of cast of pointer to long which is not
1128 compatible with x86_64-w64-mingw32 build.
1130 2012-08-19 Andrew Pinski <apinski@cavium.com>
1132 * mips-tdep.c (is_octeon): New function.
1133 (is_octeon_bbit_op): New function.
1134 (mips32_next_pc): Handle Octeon's bbit instructions.
1135 (mips32_instruction_has_delay_slot): Likewise.
1137 2012-08-19 Andrew Pinski <apinski@cavium.com>
1139 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1140 before the function.
1142 2012-08-19 Andrew Pinski <apinski@cavium.com>
1144 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1146 2012-08-19 Keith Seitz <keiths@redhat.com>
1149 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1150 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1152 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1154 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1155 The typo broke "make TAGS".
1157 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1161 2012-08-17 Keith Seitz <keiths@redhat.com>
1164 * gdbtypes.c (strict_type_checking): New variable.
1165 (show_strict_type_checking): New function.
1166 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1167 if strict type checking is disabled.
1168 (_initialize_gdbtypes): Add "check type" subcommand.
1169 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1171 2012-08-17 Keith Seitz <keiths@redhat.com>
1173 * language.h (type_mode): Remove.
1174 (type_check): Remove.
1175 (struct language_defn): Remove la_type_check.
1176 (STRICT_TYPE): Remove unused macro.
1177 (type_error): Remove.
1178 * language.c (set_type_range_case): Renamed to ...
1179 (set_range_case): ... this. Update all callers.
1180 Remove type_mode/type_check.
1181 (type_mode): Remove.
1182 (type_check): Remove.
1183 (show_type_command): Remove.
1184 (set_type_command): Remove.
1185 (language_info): Remove type checking output.
1186 (type_error): Remove unused function.
1187 (range_error): Update comment.
1188 (unknown_language_defn): Remove la_type_check.
1189 (auto_language_defn): Likewise.
1190 (local_language_defn): Likewise.
1191 (_initialize_language): Remove "check type" subcommand.
1192 * ada-lang.c (ada_language_defn): Remove la_type_check.
1193 * c-lang.c (c_language_defn): Likewise.
1194 (cplus_language_defn): Likewise.
1195 (asm_language_defn): Likewise.
1196 (minimal_language_defn): Likewise.
1197 * d-lang.c (d_language_defn): Likewise.
1198 * f-lang.c (f_language_defn): Likewise.
1199 * go-lang.c (go_language_defn): Likewise.
1200 * jv-lang.c (java_language_defn): Likewise.
1201 * m2-lang.c (m2_language_defn): Likewise.
1202 * objc-lang.c (objc_language_defn): Likewise.
1203 * opencl-lang.c (opencl_language_defn): Likewise.
1204 * p-lang.c (pascal_language_defn): Likewise.
1206 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1208 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1210 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1212 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1214 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1215 using the regache. Use ia64_hpux_get_register_from_save_state_t
1216 to access the bsp and bspstore registers if not.
1218 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1220 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1221 * breakpoint.c (detach_breakpoints): Change pid parameter into
1222 a ptid. Adjust code accordingly.
1223 * infrun.c (handle_inferior_event): Delete variable child_pid.
1224 Update call to detach_breakpoints to pass the child ptid for
1226 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1227 assert that inferior_ptid's lwp is zero.
1228 (linux_handle_extended_wait): Update call to detach_breakpoints.
1229 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1232 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1234 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1235 parent, only call detach_breakpoints if tts.tts_event ==
1238 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1240 * dwarf2-frame.c (dwarf2_frame_cache): Use
1241 get_frame_address_in_block instead of get_frame_pc as
1242 the bound for executing the frame's FDE.
1244 2012-08-16 Yao Qi <yao@codesourcery.com>
1246 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1247 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1248 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1249 (c_type_print_varspec_suffix): Likewise.
1250 * eval.c (evaluate_subexp_standard): Likewise.
1251 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1252 (f_type_print_varspec_suffix): Likewise.
1253 * gdbtypes.c (is_scalar_type): Likewise.
1254 (recursive_dump_type): Likewise.
1255 * infcall.c (value_arg_coerce): Likewise.
1256 * m2-valprint.c (m2_val_print): Likewise.
1257 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1258 (pascal_type_print_varspec_suffix): Likewise.
1259 (pascal_type_print_base): Likewise.
1260 * p-valprint.c (pascal_val_print): Likewise.
1261 (pascal_val_print): Likewise.
1262 * valops.c (value_slice): Likewise.
1263 * valprint.c (scalar_type_p): Likewise.
1264 * valarith.c (value_bitstring_subscript): Remove.
1265 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1266 Remove comment on TYPE_CODE_BITSTRING.
1268 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1269 TYPE_CODE_BITSTRING.
1271 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1274 2012-08-16 Yao Qi <yao@codesourcery.com>
1276 * tracepoint.c (trace_find_none_command): Remove.
1277 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1279 2012-08-16 Yao Qi <yao@codesourcery.com>
1281 * remote.c (handle_notification): Remove parameter 'length'.
1282 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1284 2012-08-15 Keith Seitz <keiths@redhat.com>
1286 * gdbtypes.c (opaque_type_resolution): Make static.
1287 Add missing comment.
1288 (overload_debug): Add missing comment.
1289 (show_opaque_type_resolution): Likewise.
1290 (show_overload_debug): Likewise.
1291 (print_bit_vector): Remove unnecessary forward declaration.
1292 (print_arg_types): Likewise.
1293 (dump_fn_fieldlists): Likewise.
1294 (print_cplus_stuff): Likewise.
1296 2012-08-15 Tom Tromey <tromey@redhat.com>
1298 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1299 (gdb_bfd_ref): Initialize new field.
1300 (gdb_bfd_unref): Unref the archive BFD.
1301 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1304 2012-08-15 Tom Tromey <tromey@redhat.com>
1307 * python/py-bpevent.c (create_breakpoint_event_object): Update
1309 * python/py-event.c (evpy_add_attribute): Update comment.
1310 * python/py-exitedevent.c (create_exited_event_object): Fix
1311 reference counting and error handling.
1312 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1313 Fix reference counting.
1314 * python/py-signalevent.c (create_signal_event_object): Fix
1315 reference counting and error handling.
1316 * python/py-stopevent.c (emit_stop_event): Fix reference
1318 * python/py-threadevent.c (get_event_thread): Return a
1320 * python/py-type.c (convert_field): Fix reference counting.
1322 2012-08-15 Tom Tromey <tromey@redhat.com>
1324 * dwarf2read.c (dwarf_decode_macro_bytes)
1325 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1328 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1330 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1331 stepi, nexti, finish, next, step, jump, and continue commands.
1332 * infrun.c (_initialize_infrun): Update help text for the handle
1335 2012-08-14 Doug Evans <dje@google.com>
1337 * gdbtypes.c (struct extra): Delete, unused.
1339 * gdbtypes.c: Whitespace cleanup.
1340 (address_space_name_to_int): Remove "extern" from definition.
1341 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1343 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1344 TYPE_POINTER_TYPE (type).
1346 2012-08-14 Gary Benson <gbenson@redhat.com>
1348 * solib-svr4.c (svr4_free_library_list): Use free_so.
1350 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1352 * .gitignore: Add go-exp.c.
1354 2012-08-13 Doug Evans <dje@google.com>
1356 * value.c (show_convenience): Tweak comment.
1357 (_initialize_values): Mention convenience functions in the help text
1358 for "show convenience".
1360 2012-08-13 Yao Qi <yao@codesourcery.com>
1362 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1363 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1365 * eval.c (evaluate_subexp_standard): Likewise.
1366 * expprint.c (print_subexp_standard): Likewise.
1367 (dump_subexp_body_standard): Likewise.
1368 * parse.c (operator_length_standard): Likewise.
1370 2012-08-13 Yao Qi <yao@codesourcery.com>
1372 * std-operator.def: Remove OP_BITSTRING.
1373 * breakpoint.c (watchpoint_exp_is_const): Update.
1374 * eval.c (evaluate_subexp_standard): Remove handling to
1376 * expprint.c (print_subexp_standard): Likewise.
1377 (dump_subexp_body_standard): Likewise.
1378 * parse.c (operator_length_standard): Likewise.
1379 * valops.c (value_bitstring): Remove.
1380 * value.h: Remove the declaration of 'value_bitstring'.
1382 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1384 * linespec.c (find_methods): Remove unused variables `i1' and
1386 (decode_line_full): Likewise for `arg_start'.
1388 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1390 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1391 (zlib_decompress_section): Likewise for `section_data'.
1392 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1394 2012-08-10 Doug Evans <dje@google.com>
1396 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1397 * NEWS: Document them.
1398 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1400 * python/py-type.c (typy_array_1): New function.
1401 (typy_array): Call it.
1402 (typy_vector): New function.
1403 (type_object_methods): Add "vector".
1404 * python/lib/gdb/function/__init__.py: New file.
1405 * python/lib/gdb/function/strfns.py: New file.
1407 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1409 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1410 for TYPE_FIELD_BITPOS.
1411 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1413 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1416 * common/vec.h (VEC_merge): Define.
1417 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1418 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1419 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1420 * completer.c: Include gdb_signals.h.
1421 (signal_completer): Define.
1422 * completer.h (signal_completer): Add prototype.
1423 * infcmd.c (_initialize_infcmd): Assign the command
1424 completer for "signal" to handle_completer.
1425 * infrun.c: Include completer.h.
1426 (handle_completer): Define.
1427 (_initialize_infrun): Declare a new local variable c. Store the
1428 result of add_com("handle") to it. Assign the command
1429 completer for "handle" to handle_completer.
1431 2012-08-09 Yao Qi <yao@codesourcery.com>
1433 * cli/cli-decode.c (set_cmd_prefix): New.
1434 (lookup_cmd_for_prefixlist): New.
1435 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1436 of each cmd_list_element in *prefixlist.
1437 (add_setshow_cmd_full): set_cmd_prefix.
1438 (add_alias_cmd): Likewise.
1439 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1440 Declare 'auto_boolean_enums'.
1441 * cli/cli-setshow.c: Include "observer.h".
1442 (notify_command_param_changed_p): New.
1443 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1445 (do_setshow_command): Split it to ...
1446 (do_set_command, do_show_command): ... them. New.
1447 (do_set_command): Call observer_notify_command_param_changed if
1448 notify_command_param_changed_p returns true.
1449 (cmd_show_list): Caller update.
1450 * auto-load.c (set_auto_load_cmd): Likewise.
1451 * remote.c (show_remote_cmd): Likewise.
1452 * cli/cli-setshow.h: Update declarations.
1453 * top.c (execute_command): Call do_set_command and do_show_command.
1455 * NEWS: Mention new MI notification.
1456 * mi/mi-interp.c: Declare mi_command_param_changed.
1457 (mi_interpreter_init): Attach mi_command_param_changed to
1458 observer command_param_changed.
1459 (mi_command_param_changed): New.
1460 Remove mi_suppress_breakpoint_notifications.
1461 Define global variable mi_suppress_notification.
1462 (mi_breakpoint_created): Update.
1463 (mi_breakpoint_deleted): Likewise.
1464 (mi_breakpoint_modified): Likewise.
1465 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1466 'gdb-set' and set mi_suppress_notification.
1467 * mi/mi-main.h: (mi_suppress_notification): New struct.
1469 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1470 Jan Kratochvil <jan.kratochvil@redhat.com>
1472 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1474 2012-08-09 Yao Qi <yao@codesourcery.com>
1476 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1477 (skiplist): Move it to skip.c.
1478 (init_cmd_lists): Remove code setting enablebreaklist and
1480 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1481 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1483 * gdbcmd.h: Likewise.
1484 * skip.c (_initialize_step_skip): Move 'skiplist' from
1487 2012-08-09 Yao Qi <yao@codesourcery.com>
1489 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1490 * gnu-nat.c, symfile.c: Likewise.
1492 2012-08-08 Aaron Gamble <agamble@google.com>
1494 * utils.c (prompt_for_continue_wait_time): New static global.
1495 (make_command_stats_cleanup): Initialize it.
1496 (report_command_stats): Subtract time waiting for user.
1497 (prompt_for_continue): Track time waiting for user.
1498 (defaulted_query): Track time waiting for user.
1500 2012-08-08 Doug Evans <dje@google.com>
1502 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1504 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1505 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1506 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1507 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1508 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1509 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1511 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1512 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1513 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1514 (dump_prefix_expression): Handle OP_TYPE.
1516 2012-08-08 Keith Seitz <keiths@redhat.com>
1518 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1521 2012-08-08 Doug Evans <dje@google.com>
1523 * linux-thread-db.c: #include "gdb_vecs.h".
1524 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1526 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1527 (thread_db_load_search): Use a vector to iterate over path elements.
1528 Handle text appearing after "$pdir".
1530 * gdb_string.h: Moved to ...
1531 * common/gdb_string.h: ... here.
1532 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1533 gdb_string.h and gdb_assert.h.
1535 2012-08-08 Yao Qi <yao@codesourcery.com>
1537 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1538 (tic6x_value_to_register): Likewise.
1539 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1540 and set_gdbarch_value_to_register.
1542 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1543 Jean-Marc Saffroy <saffroy@gmail.com>
1546 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1547 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1548 * gcore.c (gcore_create_callback): New function comment. Add modified
1549 parameter. Only write modified regions. Set SEC_READONLY exactly
1550 according to MODIFIED.
1551 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1552 the passed modified value to FUNC.
1553 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1554 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1555 first. New variables modified and has_anonymous. Parse the lines of
1556 smaps file. Add the passed MODIFIED value to FUNC.
1557 * procfs.c (find_memory_regions_callback): Add the passed modified
1560 2012-08-06 Tom Tromey <tromey@redhat.com>
1562 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1563 (dwarf2_frame_cache): Use it.
1564 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1565 cache initialization constraint.
1567 2012-08-06 Tom Tromey <tromey@redhat.com>
1570 * varobj.c (update_dynamic_varobj_children): Don't call
1573 2012-08-06 Tom Tromey <tromey@redhat.com>
1576 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1578 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1580 * NEWS: New entry for 'cd' default parameters.
1581 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1583 2012-08-03 Tom Tromey <tromey@redhat.com>
1585 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1588 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1590 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1591 to attempting lseek/write.
1592 (inf_child_fileio_pread): Likewise for pread.
1594 2012-08-02 Yao Qi <yao@codesourcery.com>
1596 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1597 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1598 add_setshow_zinteger_cmd.
1599 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1600 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1601 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1602 instead of add_setshow_zinteger_cmd.
1603 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1604 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1605 instead of add_setshow_zinteger_cmd.
1606 * frame.c (frame_debug): Add 'unsigned'.
1607 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1608 add_setshow_zinteger_cmd.
1609 * frame.h: Update the declaration of 'frame_debug'.
1610 * gdbtypes.c (overload_debug): Add 'unsigned'.
1611 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1612 add_setshow_zinteger_cmd.
1613 * inferior.h: Update declaration of 'debug_infrun'.
1614 * infrun.c (debug_infrun): Add 'unsigned'.
1615 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1616 add_setshow_zinteger_cmd.
1617 * jit.c (jit_debug): Add 'unsigned'.
1618 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1619 add_setshow_zinteger_cmd.
1620 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1621 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1622 instead of add_setshow_zinteger_cmd.
1623 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1624 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1625 add_setshow_zinteger_cmd.
1626 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1627 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1628 instead of add_setshow_zinteger_cmd.
1629 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1630 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1631 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1632 intead of add_setshow_zinteger_cmd.
1633 * mips-tdep.c (mips_debug): Add 'unsigned'.
1634 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1635 instead of add_setshow_zinteger_cmd.
1636 * monitor.c (monitor_debug): Add 'unsigned'.
1637 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1638 add_setshow_zinteger_cmd.
1639 * observer.c (observer_debug): Add 'unsigned'.
1640 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1641 add_setshow_zinteger_cmd.
1642 * parse.c (expressiondebug): Add 'unsigned'.
1643 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1644 add_setshow_zinteger_cmd.
1645 * record.c (record_debug): Add 'unsigned'.
1646 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1647 add_setshow_zinteger_cmd.
1648 * record.h: Update the declaration of 'record_debug'.
1649 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1650 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1651 add_setshow_zinteger_cmd.
1652 * serial.c (global_serial_debug_p): Add 'unsigned'.
1653 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1654 add_setshow_zinteger_cmd.
1655 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1656 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1657 add_setshow_zinteger_cmd.
1658 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1659 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1660 add_setshow_zinteger_cmd.
1661 * target.c (targetdebug): Add 'unsigned'.
1662 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1663 add_setshow_zinteger_cmd.
1664 * valops.c (overload_debug): Add 'unsigned'.
1665 * varobj.c (varobjdebug): Add 'unsigned'.
1666 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1667 add_setshow_zinteger_cmd.
1668 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1669 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1670 instead of add_setshow_zinteger_cmd.
1672 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1673 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1674 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1675 instead of add_setshow_zinteger_cmd.
1676 * gdbarch.c, gdbarch.h: Re-generated.
1678 2012-08-02 Yao Qi <yao@codesourcery.com>
1680 * nto-tdep.c: Don't include cli/cli-decode.h and
1682 (_initialize_nto_tdep): Remove.
1683 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1685 Remove macro nto_internal_debugging.
1687 2012-08-01 Richard Henderson <rth@redhat.com>
1689 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1690 (mep-*-*) [gdb_target_obs]: Likewise.
1692 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1694 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1695 linux_get_siginfo_type.
1697 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1699 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1701 (call_function_by_hand) <ON_STACK>: Call write_memory with
1702 gdbarch_breakpoint_from_pc, if possible.
1703 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1706 2012-07-31 Yao Qi <yao@codesourcery.com>
1708 * tracepoint.c: Add 'static' for some variables.
1710 2012-07-31 Yao Qi <yao@codesourcery.com>
1712 * go32-nat.c: Declare _initialize_go32_nat.
1713 * ser-go32.c: Declare _initialize_ser_dos.
1714 * top.c (do_chdir_cleanup): Add 'static'.
1716 2012-07-30 Keith Seitz <keiths@redhat.com>
1718 * linespec.c (linespec_lex_number): A number followed
1719 by quotes is a valid number, too.
1721 2012-07-30 Tom Tromey <tromey@redhat.com>
1723 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1725 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1727 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1728 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1730 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1732 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1733 invalid or reevaluated to prevent prevent references to possibly
1734 delete'd type objects being left in the varobj.
1736 2012-07-27 Tom Tromey <tromey@redhat.com>
1737 Jan Kratochvil <jan.kratochvil@redhat.com>
1739 * copying.awk: Print buffer-read-only and vi ro markers.
1740 * copying.c: Rebuild.
1741 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1742 * gdbarch.c, gdbarch.h: Rebuild.
1743 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1744 buffer-read-only and vi ro markers.
1745 * features/arm-with-iwmmxt.c: Rebuild.
1746 * features/arm-with-m-fpa-layout.c: Rebuild.
1747 * features/arm-with-m-vfp-d16.c: Rebuild.
1748 * features/arm-with-m.c: Rebuild.
1749 * features/arm-with-neon.c: Rebuild.
1750 * features/arm-with-vfpv2.c: Rebuild.
1751 * features/arm-with-vfpv3.c: Rebuild.
1752 * features/i386/amd64-avx-linux.c: Rebuild.
1753 * features/i386/amd64-avx.c: Rebuild.
1754 * features/i386/amd64-linux.c: Rebuild.
1755 * features/i386/amd64.c: Rebuild.
1756 * features/i386/i386-avx-linux.c: Rebuild.
1757 * features/i386/i386-avx.c: Rebuild.
1758 * features/i386/i386-linux.c: Rebuild.
1759 * features/i386/i386-mmx-linux.c: Rebuild.
1760 * features/i386/i386-mmx.c: Rebuild.
1761 * features/i386/i386.c: Rebuild.
1762 * features/i386/x32-avx-linux.c: Rebuild.
1763 * features/i386/x32-avx.c: Rebuild.
1764 * features/i386/x32-linux.c: Rebuild.
1765 * features/i386/x32.c: Rebuild.
1766 * features/mips-dsp-linux.c: Rebuild.
1767 * features/mips-linux.c: Rebuild.
1768 * features/mips64-dsp-linux.c: Rebuild.
1769 * features/mips64-linux.c: Rebuild.
1770 * features/rs6000/powerpc-32.c: Rebuild.
1771 * features/rs6000/powerpc-32l.c: Rebuild.
1772 * features/rs6000/powerpc-403.c: Rebuild.
1773 * features/rs6000/powerpc-403gc.c: Rebuild.
1774 * features/rs6000/powerpc-405.c: Rebuild.
1775 * features/rs6000/powerpc-505.c: Rebuild.
1776 * features/rs6000/powerpc-601.c: Rebuild.
1777 * features/rs6000/powerpc-602.c: Rebuild.
1778 * features/rs6000/powerpc-603.c: Rebuild.
1779 * features/rs6000/powerpc-604.c: Rebuild.
1780 * features/rs6000/powerpc-64.c: Rebuild.
1781 * features/rs6000/powerpc-64l.c: Rebuild.
1782 * features/rs6000/powerpc-7400.c: Rebuild.
1783 * features/rs6000/powerpc-750.c: Rebuild.
1784 * features/rs6000/powerpc-860.c: Rebuild.
1785 * features/rs6000/powerpc-altivec32.c: Rebuild.
1786 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1787 * features/rs6000/powerpc-altivec64.c: Rebuild.
1788 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1789 * features/rs6000/powerpc-cell32l.c: Rebuild.
1790 * features/rs6000/powerpc-cell64l.c: Rebuild.
1791 * features/rs6000/powerpc-e500.c: Rebuild.
1792 * features/rs6000/powerpc-e500l.c: Rebuild.
1793 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1794 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1795 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1796 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1797 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1798 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1799 * features/rs6000/powerpc-vsx32.c: Rebuild.
1800 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1801 * features/rs6000/powerpc-vsx64.c: Rebuild.
1802 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1803 * features/rs6000/rs6000.c: Rebuild.
1804 * features/s390-linux32.c: Rebuild.
1805 * features/s390-linux32v1.c: Rebuild.
1806 * features/s390-linux32v2.c: Rebuild.
1807 * features/s390-linux64.c: Rebuild.
1808 * features/s390-linux64v1.c: Rebuild.
1809 * features/s390-linux64v2.c: Rebuild.
1810 * features/s390x-linux64.c: Rebuild.
1811 * features/s390x-linux64v1.c: Rebuild.
1812 * features/s390x-linux64v2.c: Rebuild.
1813 * features/tic6x-c62x-linux.c: Rebuild.
1814 * features/tic6x-c62x.c: Rebuild.
1815 * features/tic6x-c64x-linux.c: Rebuild.
1816 * features/tic6x-c64x.c: Rebuild.
1817 * features/tic6x-c64xp-linux.c: Rebuild.
1818 * features/tic6x-c64xp.c: Rebuild.
1820 2012-07-27 Tom Tromey <tromey@redhat.com>
1822 * c-exp.y (classify_name): Avoid assignment in condition.
1824 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1826 * amd64-windows-tdep.c: Include "frame.h".
1827 (amd64_windows_skip_trampoline_code): New function.
1828 (amd64_windows_init_abi): Add trampoline registration.
1830 2012-07-27 Yao Qi <yao@codesourcery.com>
1832 * tracepoint.c (cur_traceframe_number): Remove.
1833 (set_tfile_traceframe): Remove.
1834 (tfile_trace_find, tfile_fetch_registers): Update callers.
1835 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1836 (tfile_open, tfile_trace_find): Likewise.
1838 2012-07-27 Yao Qi <yao@codesourcery.com>
1840 * thread.c (switch_to_thread): Don't call registers_changed.
1842 2012-07-26 Tom Tromey <tromey@redhat.com>
1844 * Makefile.in (SFILES): Remove objc-exp.y.
1845 (YYFILES): Remove objc-exp.c.
1846 (YYOBJ): Remove objc-exp.o.
1847 (local-maintainer-clean): Don't mention objc-exp.c.
1848 * c-exp.y: Include objc-lang.h.
1849 (%union) <class>: New field.
1850 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1851 (exp): Clone subscript production for OBJC_LBRAC. Add various
1852 Objective C productions.
1853 (msglist, msgarglist, msgarg): New productions.
1854 (array_mod, func_mod, operator): Clone productions for
1856 (parse_string_or_char): Handle '@' strings.
1857 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1858 (classify_name): Check la_name_of_this. Recognize ObjC class
1860 * objc-exp.y: Remove.
1861 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1862 * objc-lang.h (objc_parse, objc_error): Don't declare.
1864 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1866 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1868 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1870 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1873 2012-07-26 Tom Tromey <tromey@redhat.com>
1875 * copying.c: Rebuild.
1876 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1879 2012-07-26 Tom Tromey <tromey@redhat.com>
1881 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1883 (print_objfile_statistics): Likewise.
1884 (maintenance_print_symbols): Likewise.
1885 (maintenance_print_msymbols): Likewise.
1886 (maintenance_print_objfiles): Likewise.
1887 * psymtab.c (print_partial_symbols): Call QUIT.
1888 (maintenance_print_psymbols): Likewise. Don't modify
1890 * copying.c (show_copying_command): Don't modify immediate_quit.
1891 (show_warranty_command): Likewise.
1892 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1894 2012-07-26 Keith Seitz <keiths@redhat.com>
1896 * linespec.c (linespec_lexer_lex_number): The input
1897 is also a valid number if the next character is a comma
1900 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1902 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1905 2012-07-26 Tristan Gingold <gingold@adacore.com>
1907 * machoread.c: Include gdb_bfd.h.
1909 2012-07-26 Tristan Gingold <gingold@adacore.com>
1911 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1914 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1916 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1918 (dwarf2_evaluate_loc_desc): Likewise.
1919 (dwarf2_loc_desc_needs_frame): Likewise.
1920 (locexpr_describe_location_1): Likewise.
1921 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1923 (struct dwarf2_loclist_baton): Likewise.
1924 * dwarf2read.c (struct dwarf_block): Likewise.
1925 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1926 (decode_locdesc): Expand SIZE and I to size_t.
1928 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1930 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1932 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1934 * doublest.c (convert_doublest_to_floatformat): If the exponent
1935 is too small, treat the value as zero. If the exponent is too
1936 large, treat the value as infinity.
1938 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1940 * configure.ac: Add --enable-lmcheck configure option.
1941 * configure: Regenerate.
1943 2012-07-25 Tom Tromey <tromey@redhat.com>
1945 * NEWS: Mention maint info bfds.
1946 * gdb_bfd.c (all_bfds): New global.
1947 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1948 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1951 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1953 * configure.tgt: Add v850*-*-rtems*.
1955 2012-07-25 Tom Tromey <tromey@redhat.com>
1957 * macrotab.c (macro_bcache_str): Remove cast.
1959 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
1961 * linespec.c (linespec_lexer_lex_number): Update comments,
1962 change the return and add check to make sure the input is
1963 the decimal numbers.
1964 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1965 false, call linespec_lexer_lex_string.
1967 2012-07-24 Tom Tromey <tromey@redhat.com>
1969 * symfile.c (symbol_file_add): Don't open BFD twice.
1971 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
1973 * breakpoint.c (create_breakpoint): Store condition for pending
1976 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1978 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1979 (m68k_return_value): Handle complex types like structures.
1980 (m68k_svr4_return_value): Likewise.
1982 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1984 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1985 parameters to bfd_get_section_name.
1987 2012-07-24 Yao Qi <yao@codesourcery.com>
1989 * cli/cli-setshow.c: Handle case 'var_uinteger'
1990 and 'var_zuninteger' together. Handle case 'var_integer' and
1991 'var_zinteger' together.
1993 2012-07-23 Keith Seitz <keiths@redhat.com>
1995 * linespec.c (convert_linespec_to_sal): Don't add
1996 any symbols to the result vector if symbol_to_sal
1999 2012-07-23 Keith Seitz <keiths@redhat.com>
2001 * linespec.c (decode_objc): Record the function name
2004 2012-07-23 Tom Tromey <tromey@redhat.com>
2006 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2008 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2009 (map_vmap): Acquire a reference to the BFD.
2011 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2013 * p-valprint.c (pascal_object_print_value): Replace potentially
2014 unsafe alloca with xmalloc/xfree.
2015 * valops.c (search_struct_method): Likewise.
2017 2012-07-23 Tom Tromey <tromey@redhat.com>
2019 * solib-svr4.c (enable_break): Update.
2020 * bfd-target.h (target_bfd_reopen): Update documentation.
2022 2012-07-23 Tom Tromey <tromey@redhat.com>
2024 * symfile.c (separate_debug_file_exists): Update.
2025 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2026 (reread_symbols): Update.
2027 * elfread.c (build_id_verify): Update.
2028 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2029 bfd_open_maybe_remote.
2031 2012-07-23 Tom Tromey <tromey@redhat.com>
2033 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2035 2012-07-23 Tom Tromey <tromey@redhat.com>
2037 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2039 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2041 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2042 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2044 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2045 * objfiles.c (allocate_objfile): Acquire a new reference.
2046 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2047 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2048 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2049 a cleanup for 'nbfd'.
2050 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2052 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2053 make a cleanup for 'abfd'.
2054 (symbol_file_add): Make a BFD cleanup.
2056 2012-07-23 Tom Tromey <tromey@redhat.com>
2058 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2059 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2060 * corelow.c (core_open): Use gdb_bfd_fopen.
2061 * dsrec.c (load_srec): Use gdb_bfd_openr.
2062 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2063 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2064 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2065 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2066 (gdb_bfd_fdopenr): New functions.
2067 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2068 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2069 (gdb_bfd_fdopenr): Declare.
2070 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2071 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2072 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2073 gdb_bfd_openr_next_archived_file.
2074 (macho_check_dsym): Use gdb_bfd_openr.
2075 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2076 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2077 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2078 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2080 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2081 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2082 gdb_bfd_openr_next_archived_file.
2083 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2085 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2087 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2088 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2089 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2090 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2091 (symfile_bfd_open): Use gdb_bfd_fopen.
2092 (generic_load): Use gdb_bfd_openr.
2093 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2095 2012-07-23 Tom Tromey <tromey@redhat.com>
2097 * bfd-target.c (target_bfd_reopen): Update.
2098 * cli/cli-dump.c (bfd_openr_with_cleanup)
2099 (bfd_openw_with_cleanup): Update.
2100 * corelow.c (core_open): Update.
2101 * dsrec.c (load_srec): Update.
2102 * exec.c (exec_file_attach): Update.
2103 * gcore.c (create_gcore_bfd): Update.
2104 * gdb_bfd.c (gdb_bfd_ref): Return void.
2105 (gdb_bfd_open): Update.
2106 * gdb_bfd.h (gdb_bfd_ref): Return void.
2108 * jit.c (jit_bfd_try_read_symtab): Update.
2109 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2110 * machoread.c (macho_symfile_read_all_oso): Update.
2111 (macho_check_dsym): Update.
2112 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2113 * remote-m32r-sdi.c (m32r_load): Update.
2114 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2115 * rs6000-nat.c (add_vmap): Update.
2116 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2118 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2119 * solib-spu.c (spu_bfd_open): Update.
2120 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2121 * spu-linux-nat.c (spu_bfd_open): Update.
2122 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2123 (generic_load): Update.
2124 * windows-nat.c (windows_make_so): Update.
2126 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2128 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2130 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2132 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2133 SIGTRAMP_FRAME unwinding.
2135 2012-07-20 Doug Evans <dje@google.com>
2137 * NEWS: Document new options "set/show use-deprecated-index-sections",
2138 and delete reference to --use-deprecated-index-sections.
2139 * symfile.h (use_deprecated_index_sections): Delete.
2140 * dwarf2read.c (use_deprecated_index_sections): Make static.
2141 (read_index_from_section): Update wording of how to load
2142 deprecated index sections.
2143 (_initialize_dwarf2_read): New options
2144 "set/show use-deprecated-index-sections".
2145 * main.c (captured_main): Delete --use-deprecated-index-sections.
2147 2012-07-20 Pedro Alves <palves@redhat.com>
2152 * infrun.c (handle_inferior_event) <new thread>: Don't special
2153 case minus_one_ptid.
2154 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2155 * linux-thread-db.c (thread_get_info_callback): Don't return early
2156 if the thread is zombie.
2157 (thread_from_lwp): Change return type to void. Rewrite stale
2159 (attach_thread): Don't return early if the thread is zombie,
2160 instead set its "dying" flag.
2161 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2162 (find_new_threads_callback): Don't return early if the thread is
2165 2012-07-20 Pedro Alves <palves@redhat.com>
2167 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2168 * target.c (target_wait): Likewise.
2169 (str_comma_list_concat_elem, do_option, target_options_to_string):
2171 * target.h (target_options_to_string): Declare.
2173 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2174 Tom Tromey <tromey@redhat.com>
2176 * dwarf2read.c (dwarf_decode_macros)
2177 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2178 DW_MACRO_GNU_transparent_include_alt>: New cases.
2179 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2180 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2182 2012-07-20 Tom Tromey <tromey@redhat.com>
2184 * dwarf2read.c (try_open_dwo_file): Don't call
2185 gdb_bfd_stash_filename.
2187 2012-07-20 Pedro Alves <palves@redhat.com>
2189 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2190 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2191 (i386_process_record): Tweak description comments.
2193 2012-07-20 Pedro Alves <palves@redhat.com>
2195 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2196 (i386_process_record): Use record_read_memory.
2197 * record.c (record_read_memory): New function.
2198 (record_arch_list_add_mem, record_exec_insn): Use
2200 * record.h (record_read_memory): Declare.
2202 2012-07-20 Yao Qi <yao@codesourcery.com>
2204 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2207 2012-07-19 Pedro Alves <palves@redhat.com>
2209 * record.c (record_resume): Ask the target beneath to report all
2212 2012-07-19 Doug Evans <dje@google.com>
2214 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2215 there's no section at address zero.
2216 (dwarf2_record_block_ranges): Ditto.
2218 2012-07-19 Yao Qi <yao@codesourcery.com>
2220 * command.h, remote.c: Fix a typo in comment.
2222 2012-07-19 Tom Tromey <tromey@redhat.com>
2225 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2226 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2227 OP_DECLTYPE>: New cases.
2228 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2229 (type_exp): Add new productions.
2230 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2232 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2234 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2235 OP_DECLTYPE>: New case.
2236 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2238 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2239 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2241 2012-07-19 Tom Tromey <tromey@redhat.com>
2243 * c-exp.y (enum token_flags): New.
2244 (struct token) <cxx_only>: Remove.
2246 (tokentab3, tokentab2, ident_tokens): Update.
2247 (lex_one_token): Update. Handle FLAG_SHADOW.
2249 2012-07-19 Tom Tromey <tromey@redhat.com>
2251 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2252 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2253 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2254 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2255 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2256 type_exp production where appropriate.
2257 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2258 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2259 <UNOP_MEMVAL_TYPE>: New case.
2260 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2261 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2262 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2263 <UNOP_MEMVAL_TYPE>: New case.
2264 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2265 UNOP_REINTERPRET_CAST>: Update.
2266 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2267 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2268 UNOP_REINTERPRET_CAST>: Update.
2269 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2270 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2271 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2274 2012-07-19 Yao Qi <yao@codesourcery.com>
2275 Jan Kratochvil <jan.kratochvil@redhat.com>
2277 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2278 and case 'var_optional_filename' together.
2279 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2280 instead of add_setshow_optional_filename_cmd for setshow command
2281 'args'. Set completer for 'set args'.
2283 2012-07-18 Doug Evans <dje@google.com>
2285 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2286 * common/gdb_vecs.c: New file, contents from utils.c.
2287 * common/host-defs.h: New file, contents from defs.h.
2288 * utils.h: New file, contents from defs.h.
2289 * defs.h: Move all declarations of objects defined in utils.c
2290 to utils.h (except QUIT() and related).
2291 #include "utils.h", "host-defs.h".
2292 * probe.h (probe_p): Move here from gdb_vecs.h.
2293 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2294 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2295 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2296 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2297 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2298 (COMMON_OBS): Add gdb_vecs.o.
2299 (gdb_vecs.o): New rule.
2301 2012-07-18 Keith Seitz <keiths@redhat.com>
2303 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2304 parameter. If non-zero, use SYMNAME as the canonical name
2307 (convert_linespec_to_sals): Use add_sal_to_sals for
2309 (decode_line_full): No need to "fill in missing canonical names"
2310 anymore. Simply make cleanups for the allocated names.
2312 2012-07-18 Keith Seitz <keiths@redhat.com>
2314 * linespec.c (struct linespec): Constify expression,
2315 source_filename, function_name, and label_name.
2316 (symbol_not_found_error): Make all parameters const.
2317 (linespec_parser_delete): No need to check for NULL
2318 when using xfree. Cast const char * to char * for xfree.
2320 2012-07-18 Keith Seitz <keiths@redhat.com>
2322 * breakpoint.c (invalid_thread_id_error): New function.
2323 (find_condition_and_thread): Use invalid_thread_id_error.
2324 (watch_command_1): Likewise.
2326 2012-07-18 Tom Tromey <tromey@redhat.com>
2328 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2329 * contrib/cc-with-tweaks.sh: New file.
2331 2012-07-18 Tom Tromey <tromey@redhat.com>
2333 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2334 (locate_dwz_sections): Recognize .gdb_index.
2335 (create_cus_from_index_list): New function.
2336 (create_cus_from_index): Use it. Handle .dwz data.
2337 (read_index_from_section): New function, extracted from
2339 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2342 2012-07-18 Tom Tromey <tromey@redhat.com>
2344 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2345 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2346 <is_dwz>: New field.
2347 (struct dwz_file): New.
2348 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2349 (locate_dwz_sections, dwarf2_get_dwz_file)
2350 (get_abbrev_section_for_cu): New functions.
2351 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2352 (read_and_check_type_unit_head): Add abbrev_section argument.
2353 (create_debug_types_hash_table): Update.
2354 (init_cutu_and_read_dies): Use proper abbrev section.
2355 (init_cutu_and_read_dies_no_follow): Likewise.
2356 (set_partial_user): Do nothing if PST==NULL.
2357 (read_comp_units_from_section): New function.
2358 (create_all_comp_units): Use it.
2359 (scan_partial_symbols, partial_die_parent_scope): Update.
2360 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2361 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2362 (find_partial_die): Add offset_in_dwz argument. Update.
2363 (guess_partial_die_structure_name, fixup_partial_die): Update.
2364 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2365 DW_FORM_GNU_strp_alt.
2366 (read_indirect_string_from_dwz): New function.
2367 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2368 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2369 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2370 (follow_die_offset): Add offset_in_dwz argument.
2371 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2372 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2373 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2374 Handle new macro forms.
2375 (dwarf_decode_macros): Update.
2376 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2377 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2378 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2379 (create_debug_types_hash_table): Use correct abbrev section.
2380 (get_debug_line_section): New function.
2381 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2382 (process_full_comp_unit): Pass 'required' argument to
2383 end_symtab_get_static_block.
2384 * buildsym.h (end_symtab_get_static_block): Update.
2385 * buildsym.c (end_symtab_get_static_block): Add 'required'
2387 (end_symtab, end_expandable_symtab): Update.
2389 2012-07-18 Tom Tromey <tromey@redhat.com>
2391 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2393 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2394 (zlib_decompress_section): Remove.
2395 (dwarf2_read_section): Use gdb_bfd_map_section.
2396 (munmap_section_buffer): Remove.
2397 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2398 munmap_section_buffer.
2399 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2400 (struct gdb_bfd_section_data): New.
2401 (free_one_bfd_section): New function.
2402 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2403 (get_section_descriptor, zlib_decompress_section)
2404 (gdb_bfd_map_section): New functions.
2405 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2407 2012-07-18 Tom Tromey <tromey@redhat.com>
2409 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2411 2012-07-18 Tom Tromey <tromey@redhat.com>
2413 * gdb_bfd.c (struct gdb_bfd_data): New.
2414 (gdb_bfd_cache): New global.
2415 (struct gdb_bfd_cache_search): New.
2416 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2417 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2418 * gdb_bfd.h (gdb_bfd_open): Declare.
2420 2012-07-18 Tom Tromey <tromey@redhat.com>
2422 * utils.c (make_cleanup_bfd_unref): Rename from
2423 make_cleanup_bfd_close.
2424 * defs.h (make_cleanup_bfd_unref): Rename from
2425 make_cleanup_bfd_close.
2426 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2427 (bfd_openw_with_cleanup): Update.
2428 * corelow.c (core_open): Update.
2429 * dsrec.c (load_srec): Update.
2430 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2431 * remote-m32r-sdi.c (m32r_load): Update.
2432 * remote-mips.c (mips_load_srec): Update.
2433 (pmon_load_fast): Update.
2434 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2436 (darwin_bfd_open): Update.
2437 * solib.c (solib_bfd_fopen): Update.
2438 * symfile-mem.c (symbol_file_add_from_memory): Update.
2439 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2440 (symfile_bfd_open): Update.
2441 (generic_load): Update.
2443 2012-07-18 Tom Tromey <tromey@redhat.com>
2445 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2446 (pmon_load_fast): Likewise.
2447 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2448 (m32r_upload_command): Likewise.
2449 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2450 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2451 Use make_cleanup_bfd_close.
2453 2012-07-18 Tom Tromey <tromey@redhat.com>
2455 * symfile.c (symfile_bfd_open): Don't copy name. Call
2456 gdb_bfd_stash_filename.
2457 (load_command): Open the new BFD before freeing the old.
2458 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2459 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2460 Call gdb_bfd_stash_filename.
2461 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2462 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2463 gdb_bfd_stash_filename.
2464 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2465 Free found_pathname.
2466 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2467 gdb_bfd_stash_filename.
2468 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2469 * machoread.c (macho_add_oso_symfile): Call
2470 gdb_bfd_stash_filename.
2471 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2472 gdb_bfd_stash_filename.
2473 (macho_check_dsym): Don't copy filename. Call
2474 gdb_bfd_stash_filename.
2475 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2476 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2477 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2478 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2479 * exec.c (exec_close): Don't free the BFD's filename.
2480 (exec_file_attach): Don't copy the filename. Call
2481 gdb_bfd_stash_filename.
2482 * corelow.c (core_close): Don't free the BFD's filename.
2483 (core_open): Call gdb_bfd_stash_filename.
2484 * corefile.c (reopen_exec_file): Remove #if 0 code.
2485 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2487 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2489 2012-07-18 Tom Tromey <tromey@redhat.com>
2491 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2493 (free_dwo_file): Use gdb_bfd_unref.
2494 * cli/cli-dump.c: Include gdb_bfd.h.
2495 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2496 (bfd_openr_with_cleanup): Likewise.
2497 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2499 * utils.c: Include gdb_bfd.h.
2500 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2501 * symfile.c: Include gdb_bfd.h.
2502 (separate_debug_file_exists): Use gdb_bfd_unref.
2503 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2504 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2505 (generic_load): Use gdb_bfd_ref.
2506 (reread_symbols): Use gdb_bfd_unref.
2507 * symfile-mem.c: Include gdb_bfd.h.
2508 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2509 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2510 * solib.c: Include gdb_bfd.h.
2511 (solib_bfd_fopen): Use gdb_bfd_ref.
2512 (solib_bfd_open): Use gdb_bfd_unref.
2513 (free_so_symbols): Use gdb_bfd_unref.
2514 (reload_shared_libraries_1): Use gdb_bfd_unref.
2515 * solib-spu.c: Include gdb_bfd.h.
2516 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2517 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2519 * solib-frv.c: Include gdb_bfd.h.
2520 (enable_break2): Use gdb_bfd_unref.
2521 * solib-dsbt.c: Include gdb_bfd.h.
2522 (enable_break2): Use gdb_bfd_unref.
2523 * solib-darwin.c: Include gdb_bfd.h.
2524 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2526 (darwin_bfd_open): Use gdb_bfd_unref.
2527 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2528 * remote-mips.c: Include gdb_bfd.h.
2529 (mips_load_srec): Use gdb_bfd_ref.
2530 (pmon_load_fast): Use gdb_bfd_ref.
2531 * remote-m32r-sdi.c: Include gdb_bfd.h.
2532 (m32r_load): Use gdb_bfd_ref.
2533 * record.c: Include gdb_bfd.h.
2534 (record_save_cleanups): Use gdb_bfd_unref.
2535 (cmd_record_save): Use gdb_bfd_unref.
2536 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2538 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2539 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2540 * objfiles.c: Include gdb_bfd.h.
2541 (free_objfile): Use gdb_bfd_unref.
2542 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2544 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2545 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2546 (macho_check_dsym): Likewise.
2547 * m32r-rom.c: Include gdb_bfd.h.
2548 (m32r_load): Use gdb_bfd_ref.
2549 (m32r_upload_command): Use gdb_bfd_ref.
2550 * jit.c: Include gdb_bfd.h.
2551 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2552 * gdb_bfd.h: New file.
2553 * gdb_bfd.c: New file.
2554 * gcore.c: Include gdb_bfd.h.
2555 (create_gcore_bfd): Use gdb_bfd_ref.
2556 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2557 (gcore_command): Use gdb_bfd_unref.
2558 * exec.c: Include gdb_bfd.h.
2559 (exec_close): Use gdb_bfd_unref.
2560 (exec_close_1): Use gdb_bfd_unref.
2561 (exec_file_attach): Use gdb_bfd_ref.
2562 * elfread.c: Include gdb_bfd.h.
2563 (build_id_verify): Use gdb_bfd_unref.
2564 * dsrec.c: Include gdb_bfd.h.
2565 (load_srec): Use gdb_bfd_ref.
2566 * corelow.c: Include gdb_bfd.h.
2567 (core_close): Use gdb_bfd_unref.
2568 (core_open): Use gdb_bfd_ref.
2569 * bfd-target.c: Include gdb_bfd.h.
2570 (target_bfd_xclose): Use gdb_bfd_unref.
2571 (target_bfd_reopen): Use gdb_bfd_ref.
2572 * Makefile.in (SFILES): Add gdb_bfd.c.
2573 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2574 (COMMON_OBS): Add gdb_bfd.o.
2576 2012-07-18 Keith Seitz <keiths@redhat.com>
2578 * breakpoint.c (find_condition_and_thread): Initialize
2580 (create_breakpiont): find_condition_and_thread will now
2581 initialize COND_STRING, THREAD, and REST (and TASK).
2582 (addr_string_to_sals): Likewise.
2584 2012-07-18 Pedro Alves <palves@redhat.com>
2586 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2587 Pull the single step breakpoints out of the target.
2589 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2591 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2592 * stap-probe.c (compile_probe_arg): Likewise.
2594 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2596 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2597 (elf_compile_to_ax): Likewise.
2598 * infrun.c (insert_exception_resume_from_probe): Likewise.
2599 (check_exception_resume): Remove `objfile' variable.
2600 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2601 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2602 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2603 (compare_entries): Rename to...
2604 (compare_probes): ...this. Adjust function to work with
2605 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2607 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2609 (print_ui_out_info): Adjust argument to be `struct probe *'.
2610 (info_probes_for_ops): Adjust internal computations to use
2612 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2613 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2614 gen_info_probes_table_values>: Remove `objfile' argument.
2615 (struct probe) <objfile>: New field.
2616 (find_probe_by_pc): Remove `objfile' argument.
2617 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2618 (stap_get_probe_argument_count): Likewise.
2619 (stap_get_arg): Likewise.
2620 (stap_evaluate_probe_argument): Likewise.
2621 (stap_compile_to_ax): Likewise.
2622 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2623 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2624 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2625 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2626 sym_compile_to_ax>: Likewise.
2628 2012-07-18 Terry Guo <terry.guo@arm.com>
2631 * defs.h (GDB_MI_MSG_WIDTH): New.
2632 * ser_base (ser_base_read_error_fd): New function.
2633 (do_ser_base_readchar): Poll error file descriptor as well as
2635 (generic_readchar): Refactor error handling.
2637 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2639 * NEWS: Create a new section for the next release branch.
2640 Rename the section of the current branch, now that it has
2643 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2645 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2646 * version.in: Bump version to 7.5.50.20120718-cvs.
2648 2012-07-17 Keith Seitz <keiths@redhat.com>
2650 * linespec.c (linespec_parse_line_offset): Make parameter
2653 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2656 * f-valprint.c (info_common_command): New variable frame_id.
2657 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2658 * printcmd.c (print_variable_and_value): Extend function comment.
2659 Add comment for invalidated FRAME.
2660 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2661 FI form FRAME_ID after each print_frame_local_vars.
2662 (struct print_variable_and_value_data): Change frame to frame_id.
2663 (do_print_variable_and_value): New variable frame, initialize it from
2664 p->frame_id. Add comment for invalidated FRAME.
2665 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2666 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2667 for invalidated FRAME.
2669 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2670 Pedro Alves <palves@redhat.com>
2672 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2675 2012-07-16 Tom Tromey <tromey@redhat.com>
2677 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2679 2012-07-15 Doug Evans <dje@google.com>
2681 * dwarf2read.c (stmt_list_hash): New struct.
2682 (type_unit_group): Embed "per_cu" member, remove pointer.
2683 New union member "t", move member "tus" into it, all uses updated.
2684 New member "hash", replaces member "line_offset, all uses updated.
2685 (quick_file_names): Replace member "offset" with "hash", all uses
2687 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2688 (hash_file_name_entry, eq_file_name_entry): Call them.
2689 (hash_type_unit_group, eq_type_unit_group): Ditto.
2690 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2691 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2692 (dw2_get_file_names): Update.
2693 (create_type_unit_group): Replace "per_cu" arg with "cu".
2694 All callers updated. Fix "quick" (.gdb_index) handling.
2695 (get_type_unit_group): Replace "per_cu" arg with "cu".
2696 All callers updated.
2697 (build_type_unit_groups): Don't reset tu_stats.
2699 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2700 "tab_cur_size". Change member "tab" to be a htab_t.
2701 (create_filename_seen_cache): Update.
2702 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2703 (filename_seen): Update.
2705 2012-07-13 Doug Evans <dje@google.com>
2707 * symtab.c (filename_seen): Update comment.
2709 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2710 Doug Evans <dje@google.com>
2712 * buildsym.c (end_symtab_1): Split it to ...
2713 (end_symtab_get_static_block): ... this ...
2714 (end_symtab_from_static_block): ... and this function.
2715 (end_symtab, end_expandable_symtab): Call them.
2716 * buildsym.h (end_symtab_get_static_block)
2717 (end_symtab_from_static_block): New declarations.
2718 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2719 Set its valid CU ranges.
2721 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2723 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2724 DW_OP_GNU_parameter_ref.
2726 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2728 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2729 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2731 2012-07-13 Doug Evans <dje@google.com>
2733 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2734 (filename_seen_cache): New struct.
2735 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2736 (create_filename_seen_cache): New function.
2737 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2738 (filename_seen): Delete arg "first". New arg "cache". All callers
2740 (output_source_filename_data): New struct.
2741 (output_source_filename): Delete arg "first". New arg "data".
2742 All callers updated.
2743 (sources_info): Delete local "first". New locals "data", "cleanups".
2744 Rewrite to use filename_seen_cache.
2745 (add_partial_filename_data): Delete member "first". New member
2746 "filename_seen_cache". All uses updated.
2747 (make_source_files_completion_list): Rewrite to use
2748 filename_seen_cache.
2750 2012-07-12 Doug Evans <dje@google.com>
2752 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2754 2012-07-10 Doug Evans <dje@google.com>
2757 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2758 all_type_unit_groups, type_unit_groups, tu_stats.
2759 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2760 All uses updated. Add type_unit_group to union "s".
2761 (type_unit_group): New struct.
2762 (IS_TYPE_UNIT_GROUP): New macro.
2763 (abbrev_table): Delete unused member "section".
2764 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2765 (dw2_get_cu): Assert not used with type_unit_group.
2766 (dw2_get_primary_cu): New function.
2767 (dw2_build_type_unit_groups_reader): New function.
2768 (dw2_build_type_unit_groups): New function.
2769 (dw2_get_file_names): Assert not called on type units.
2770 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2771 Redo loop to iterate over type unit groups instead of type units.
2772 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2773 (read_abbrev_offset): New function.
2774 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2776 (create_partial_symtab): New function.
2777 (process_psymtab_comp_unit_reader): Assert not used with type units.
2778 Call create_partial_symtab.
2779 (process_psymtab_type_unit): Delete.
2780 (hash_type_unit_group, eq_type_unit_group): New functions.
2781 (allocate_type_unit_groups_table): New function.
2782 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2783 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2784 (create_type_unit_group, get_type_unit_group): New functions.
2785 (tu_abbrev_offset): New struct.
2786 (sort_tu_by_abbrev_offset): New function.
2787 (add_type_unit_group_to_table): New function.
2788 (build_type_unit_groups): New function.
2789 (build_type_psymtabs_reader): New function.
2790 (build_type_psymtab_dependencies): New function.
2791 (build_type_psymtabs): Rewrite.
2792 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2793 is seen in a type unit.
2794 (process_queue): Move symtab expansion debugging printfs here.
2795 Call process_full_type_unit for type units.
2796 (compute_symtab_includes): Assert not called for type units.
2797 (process_cu_includes): Don't call compute_symtab_includes for
2799 (process_full_type_unit): New function.
2800 (process_imported_unit_die): Flag an error if called for type units.
2801 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2802 updated. Assert not called for type units.
2803 (read_file_scope): Call dwarf2_start_symtab.
2804 (setup_type_unit_groups): New function.
2805 (read_type_unit_scope): Rewrite.
2806 (abbrev_table_read_table): Initialize abbrev_table->offset.
2807 (abbrev_table_free_cleanup): New function.
2808 (dwarf2_start_symtab): New function.
2809 (load_full_type_unit): Assert not called for type unit groups.
2810 * buildsym.c (finish_block_internal): New arg "expandable".
2811 All callers updated.
2812 (start_symtab): Move most contents to ...
2813 (restart_symtab): ... here. New function.
2814 (reset_symtab_globals): New function.
2815 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2816 Call reset_symtab_globals.
2817 (end_symtab, end_expandable_symtab): New functions.
2818 (set_missing_symtab, augment_type_symtab): New functions.
2819 * buildsym.h (end_expandable_symtab): Declare.
2820 (augment_type_symtab, restart_symtab): Declare.
2821 * psympriv.h (struct partial_symtab): New member "anonymous".
2822 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2824 (read_psymtabs_with_filename): Ditto.
2825 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2826 (expand_symtabs_matching_via_partial): Ditto.
2827 (dump_psymtab): Update.
2828 * dictionary.c (dict_add_pending): New function.
2829 * dictionary.h (dict_add_pending): Declare.
2831 2012-07-09 Doug Evans <dje@google.com>
2833 * buildsym.c (start_subfile): Remove unnecessary check for
2836 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2838 * dwarf2read.c (load_full_type_unit): Simplify.
2840 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2841 to struct signatured_type **. All uses updated.
2843 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2844 All callers updated.
2846 2012-07-09 Tom Tromey <tromey@redhat.com>
2848 * c-exp.y (check_parameter_typelist): New function.
2849 (parameter_typelist): Call it.
2850 * eval.c (make_params): Handle '(void)' case.
2851 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2854 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2856 * common/linux-ptrace.c: Include gdb_assert.h.
2857 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2858 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2860 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2862 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2863 * linux-nat.c (linux_child_post_attach)
2864 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2866 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2868 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2869 nptl <2.7 bug workaround for core files.
2871 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2873 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2875 (save_siginfo): Remove.
2876 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2878 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2879 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2880 * linux-nat.h (struct lwp_info): Remove field siginfo.
2882 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2884 Code cleanup for the next patch.
2885 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2886 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2888 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2889 (ia64_linux_stopped_data_address):
2890 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2892 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2893 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2894 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2897 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2900 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2901 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2903 2012-07-06 Tom Tromey <tromey@redhat.com>
2905 * c-exp.y (DOTDOTDOT): New token.
2906 (func_mod, exp): Use parameter_typelist.
2907 (parameter_typelist): New production.
2908 (tokentab3): Add "..." token.
2909 * eval.c (make_params): Handle varargs.
2910 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2913 2012-07-06 Tom Tromey <tromey@redhat.com>
2916 * c-exp.y (%union) <tvec>: Change type.
2917 (func_mod): Now uses <tvec> type.
2918 (exp): Update for tvec change.
2919 (direct_abs_decl): Push the typelist.
2920 (func_mod): Return a typelist.
2921 (nonempty_typelist): Update for tvec change.
2922 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2923 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2924 * parse.c (pop_type_list): New function.
2925 (push_typelist): New function.
2926 (follow_types): Handle tp_function_with_arguments.
2927 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2928 (enum type_pieces) <tp_function_with_arguments>: New constant.
2929 (union type_stack_elt) <typelist_val>: New field.
2930 (push_typelist): Declare.
2932 2012-07-06 Tom Tromey <tromey@redhat.com>
2934 * c-exp.y (%union) <type_stack>: New field.
2935 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2936 (ptr_operator_ts): New production.
2938 * parse.c (type_stack_reserve): New function.
2939 (check_type_stack_depth): Use it.
2940 (pop_type_stack, append_type_stack, push_type_stack)
2941 (get_type_stack, type_stack_cleanup): New functions.
2942 (follow_types): Handle tp_type_stack.
2943 (_initialize_parse): Simplify initialization.
2944 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2946 (union type_stack_elt) <stack_val>: New field.
2947 (get_type_stack, append_type_stack, push_type_stack)
2948 (type_stack_cleanup): Declare.
2950 2012-07-06 Tom Tromey <tromey@redhat.com>
2952 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2954 (struct type_stack): New.
2955 * parse.c (type_stack, type_stack_size, type_stack_depth):
2957 (type_stack): New global.
2958 (parse_exp_in_context, check_type_stack_depth)
2959 (insert_into_type_stack, insert_type, push_type, push_type_int)
2960 (insert_type_address_space, pop_type, pop_type_int)
2961 (_initialize_parse): Update.
2963 2012-07-06 Tom Tromey <tromey@redhat.com>
2965 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2968 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2970 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2972 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2973 Jan Kratochvil <jan.kratochvil@redhat.com>
2975 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2976 alloca with xmalloc/xfree.
2978 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2980 * MAINTAINERS (Write After Approval): Add myself to the list.
2982 2012-07-05 Doug Evans <dje@google.com>
2984 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2986 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2988 * ax-gdb.c (cli/cli-utils.h): New include.
2989 (linespec.h): Ditto.
2990 (agent_eval_command_one): New function.
2991 (agent_command_1): Ditto.
2992 (agent_command): Call function agent_command_1.
2993 (agent_eval_command): Ditto.
2994 (_initialize_ax_gdb): Change help for "maint agent"
2995 and "maint agent-eval".
2997 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2999 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3000 * cli/cli-utils.c (check_for_argument): New function.
3001 * cli/cli-utils.h (check_for_argument): Ditto.
3003 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3005 * NEWS: Mention x32 ABI support.
3007 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3009 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3010 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3012 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3013 and pc_regnum_from_eax to -1. Update SP regnum from
3014 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3017 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3020 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3022 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3023 * dwarf2expr.h: Include gdbtypes.h.
3024 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3025 these forward declarations.
3026 (cu_offset, sect_offset): Move these ...
3027 * gdbtypes.h: Remove include dwarf2expr.h.
3028 (cu_offset, sect_offset): ... here.
3030 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3032 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3033 (amd64_linux_sigtramp_code): This.
3034 (amd64_x32_linux_sigtramp_code): New.
3035 (LINUX_SIGTRAMP_LEN): Updated.
3036 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3038 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3040 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3042 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3044 * config.in: Regenerate.
3045 * configure: Regenerate.
3046 * configure.ac: Remove check for gnu/libc-version.h.
3047 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3049 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3050 variables libc_version, libc_major and libc_minor. Replace sscanf by
3051 inferior_has_bug. Extend the comment.
3053 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3055 * linux-thread-db.c (inferior_has_bug): New function.
3056 (thread_db_find_new_threads_silently): Return boolean as checked by
3057 inferior_has_bug, describe it in the comments.
3058 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3059 earlier. Abort the initialization if it returned non-zero.
3060 (thread_db_new_objfile): Exclude debug files.
3061 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3064 2012-07-02 Doug Evans <dje@google.com>
3066 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3067 related to queue management.
3069 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3070 instead of "debug dwarf2-die" in debugging printfs.
3071 (create_debug_info_hash_table_reader): Ditto.
3072 (create_debug_info_hash_table): Ditto.
3073 (init_dwo_file): Ditto.
3074 (init_cutu_and_read_dies): Add debugging printf.
3075 (init_cutu_and_read_dies_no_follow): Ditto.
3076 (process_psymtab_comp_unit_reader): Ditto.
3078 2012-07-02 Stan Shebs <stan@codesourcery.com>
3080 Add target-side support for dynamic printf.
3081 * NEWS: Mention the additional style.
3082 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3083 (struct bp_location): New field cmd_bytecode.
3084 * breakpoint.c: Include format.h.
3085 (disconnected_dprintf): New global.
3086 (parse_cmd_to_aexpr): New function.
3087 (build_target_command_list): New function.
3088 (insert_bp_location): Call it.
3089 (remove_breakpoints_pid): Skip dprintf breakpoints.
3090 (print_one_breakpoint_location): Ditto.
3091 (dprintf_style_agent): New global.
3092 (dprintf_style_enums): Add dprintf_style_agent.
3093 (update_dprintf_command_list): Add agent case.
3094 (agent_printf_command): New function.
3095 (_initialize_breakpoint): Add new commands.
3096 * common/ax.def (printf): New bytecode.
3097 * ax.h (ax_string): Declare.
3098 * ax-gdb.h (gen_printf): Declare.
3099 * ax-gdb.c: Include cli-utils.h, format.h.
3100 (gen_printf): New function.
3101 (maint_agent_print_command): New function.
3102 (_initialize_ax_gdb): Add maint agent-printf command.
3103 * ax-general.c (ax_string): New function.
3104 (ax_print): Add printf disassembly.
3105 * Makefile.in (SFILES): Add format.c
3106 (COMMON_OBS): Add format.o.
3107 * common/format.h: New file.
3108 * common/format.c: New file.
3109 * printcmd.c: Include format.h.
3110 (ui_printf): Call parse_format_string.
3111 * remote.c (remote_state): New field breakpoint_commands.
3112 (PACKET_BreakpointCommands): New enum.
3113 (remote_breakpoint_commands_feature): New function.
3114 (remote_protocol_features): Add new BreakpointCommands entry.
3115 (remote_can_run_breakpoint_commands): New function.
3116 (remote_add_target_side_commands): New function.
3117 (remote_insert_breakpoint): Call it.
3118 (remote_insert_hw_breakpoint): Ditto.
3119 (_initialize_remote): Add new packet configuration for
3120 target-side breakpoint commands.
3121 * target.h (struct target_ops): New field
3122 to_can_run_breakpoint_commands.
3123 (target_can_run_breakpoint_commands): New macro.
3124 * target.c (update_current_target): Handle
3125 to_can_run_breakpoint_commands.
3127 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3129 Execute -ix and -iex only after system and user gdbinit files.
3130 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3131 processing down after gdbinit files.
3133 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3135 Add fnmatch-gnu module.
3136 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3137 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3138 * gnulib/aclocal.m4: Regenerate.
3139 * gnulib/config.in: Regenerate.
3140 * gnulib/configure: Regenerate.
3141 * gnulib/import/dummy.c: Remove.
3142 * gnulib/import/Makefile.am: Regenerate.
3143 * gnulib/import/Makefile.in: Likewise.
3144 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3145 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3146 * gnulib/import/alloca.c: New file.
3147 * gnulib/import/alloca.in.h: Likewise.
3148 * gnulib/import/config.charset: Likewise.
3149 * gnulib/import/fnmatch.c: Likewise.
3150 * gnulib/import/fnmatch.in.h: Likewise.
3151 * gnulib/import/fnmatch_loop.c: Likewise.
3152 * gnulib/import/localcharset.c: Likewise.
3153 * gnulib/import/localcharset.h: Likewise.
3154 * gnulib/import/m4/alloca.m4: Likewise.
3155 * gnulib/import/m4/codeset.m4: Likewise.
3156 * gnulib/import/m4/configmake.m4: Likewise.
3157 * gnulib/import/m4/fcntl-o.m4: Likewise.
3158 * gnulib/import/m4/fnmatch.m4: Likewise.
3159 * gnulib/import/m4/glibc21.m4: Likewise.
3160 * gnulib/import/m4/localcharset.m4: Likewise.
3161 * gnulib/import/m4/locale-fr.m4: Likewise.
3162 * gnulib/import/m4/locale-ja.m4: Likewise.
3163 * gnulib/import/m4/locale-zh.m4: Likewise.
3164 * gnulib/import/m4/mbrtowc.m4: Likewise.
3165 * gnulib/import/m4/mbsinit.m4: Likewise.
3166 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3167 * gnulib/import/m4/mbstate_t.m4: Likewise.
3168 * gnulib/import/m4/stdbool.m4: Likewise.
3169 * gnulib/import/m4/wchar_h.m4: Likewise.
3170 * gnulib/import/m4/wctype_h.m4: Likewise.
3171 * gnulib/import/m4/wint_t.m4: Likewise.
3172 * gnulib/import/mbrtowc.c: Likewise.
3173 * gnulib/import/mbsinit.c: Likewise.
3174 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3175 * gnulib/import/mbsrtowcs-state.c: Likewise.
3176 * gnulib/import/mbsrtowcs.c: Likewise.
3177 * gnulib/import/ref-add.sin: Likewise.
3178 * gnulib/import/ref-del.sin: Likewise.
3179 * gnulib/import/stdbool.in.h: Likewise.
3180 * gnulib/import/streq.h: Likewise.
3181 * gnulib/import/strnlen1.c: Likewise.
3182 * gnulib/import/strnlen1.h: Likewise.
3183 * gnulib/import/verify.h: Likewise.
3184 * gnulib/import/wchar.in.h: Likewise.
3185 * gnulib/import/wctype.in.h: Likewise.
3187 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3189 Support shell wildcards for 'set auto-load safe-path'.
3190 * auto-load.c: Include fnmatch.h.
3191 (filename_is_in_dir): Rename to ...
3192 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3193 it. Update function comment. Rename dir_len to pattern_len. New
3194 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3195 messages. Use gdb_filename_fnmatch.
3196 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3198 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3199 * defs.h (gdb_filename_fnmatch): New declaration.
3200 * utils.c: Include fnmatch.h.
3201 (gdb_filename_fnmatch): New function.
3203 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3205 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3206 `-probe' and `-probe-stap' options.
3208 2012-07-01 Yao Qi <yao@codesourcery.com>
3210 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3211 always_inserted_off, and always_inserted_enums.
3212 Change always_inserted_mode's type to 'enum auto_boolean'.
3213 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3215 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3216 of add_setshow_enum_cmd.
3217 * infrun.c: Remove can_use_displaced_stepping_auto,
3218 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3219 can_use_displaced_stepping_enum.
3220 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3221 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3222 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3223 add_setshow_enum_cmd.
3225 2012-06-30 Doug Evans <dje@google.com>
3227 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3228 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3229 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3231 2012-06-29 Doug Evans <dje@google.com>
3233 * linespec.c: #include "stack.h".
3234 (decode_line_with_current_source): Moved here from symtab.c and
3235 renamed from decode_line_spec. All callers updated.
3236 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3237 renamed from decode_line_spec_1. All callers updated.
3238 * linespec.h (decode_line_with_current_source): Move declaration here
3239 from symtab.h and renamed from decode_line_spec.
3240 (decode_line_with_last_displayed): Move declaration here from symtab.h
3241 and renamed from decode_line_spec_1.
3242 * macrocmd.c: #include "linespec.h".
3243 * symtab.c: Remove #include "linespec.h".
3245 2012-06-28 Doug Evans <dje@google.com>
3247 * dwarf2read.c (get_cu_length): New function.
3248 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3249 (create_debug_types_hash_table): Ditto.
3250 (init_cutu_and_read_dies): Ditto.
3251 (init_cutu_and_read_dies_no_follow): Ditto.
3253 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3255 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3256 (struct abbrev_table): Define.
3257 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3259 (init_cutu_and_read_dies): Update.
3260 (abbrev_table_alloc_abbrev): New function. Replaces
3261 dwarf_alloc_abbrev. All callers updated.
3262 (abbrev_table_add_abbrev): New function.
3263 (abbrev_table_lookup_abbrev): New function. Replaces
3264 dwarf2_lookup_abbrev. All callers updated.
3265 (abbrev_table_read_table): New function. Contents moved here from
3266 dwarf2_read_abbrevs.
3267 (dwarf2_read_abbrevs): Call it.
3268 (abbrev_table_free): New function.
3269 (dwarf2_free_abbrev_table): Call it.
3271 2012-06-28 Stan Shebs <stan@codesourcery.com>
3273 * osdata.c (info_osdata_command): Filter out "Title" columns
3275 * common/linux-osdata.c (struct osdata_type): Add title field.
3276 (osdata_table): Add titles to each entry.
3277 (linux_command_xfer_osdata): Add a column for title data.
3279 2012-06-28 Stan Shebs <stan@codesourcery.com>
3281 Make logging work for MI.
3283 * interps.h (interp_set_logging_ftype): New typedef.
3284 (struct interp_procs): New field set_logging_proc.
3285 (current_interp_set_logging): Declare.
3286 * interps.c (current_interp_set_logging): New function.
3287 * cli/cli-logging.c: Include interps.h.
3288 (set_logging_redirect): Call current_interp_set_logging.
3289 (pop_output_files): Ditto.
3290 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3291 * mi/mi-console.h (mi_console_set_raw): Declare.
3292 * mi/mi-console.c (mi_console_set_raw): New function.
3293 * mi/mi-interp.c (saved_raw_stdout): New global.
3294 (mi_set_logging): New function.
3295 (_initialize_mi_interp): Add it to interp procs.
3297 2012-06-28 Doug Evans <dje@google.com>
3299 * symtab.c (lookup_symbol_aux_objfile): Use
3300 ALL_OBJFILE_PRIMARY_SYMTABS.
3302 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3304 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3306 * common/buffer.c: Include inttypes.h and stdint.h.
3307 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3309 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3310 Pedro Alves <palves@redhat.com>
3312 * gdbthread.h (ALL_THREADS): New macro.
3313 (thread_list): Declare.
3314 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3315 going, but instead fall through to the stepping handling.
3316 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3317 the passed in signal. Adjust debug output.
3318 (resume_callback): Rename to ...
3319 (linux_nat_resume_callback): ... this. Pass the thread's last
3320 stop signal, if in "pass" state.
3321 (linux_nat_resume): Adjust to rename.
3322 (stop_wait_callback): New assertion. Don't respawn signals;
3323 instead let the LWP remain with SIGNALLED set.
3324 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3325 * remote.c (append_pending_thread_resumptions): New.
3326 (remote_vcont_resume): Call it.
3327 * target.h (target_resume): Extend comment.
3329 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3331 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3333 2012-06-27 Doug Evans <dje@google.com>
3335 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3336 Delete have_addr_base, unused. All uses updated.
3337 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3338 (dwarf2_get_pc_bounds): Add ranges_base.
3339 (dwarf2_record_block_ranges): Ditto.
3341 2012-06-27 Tom Tromey <tromey@redhat.com>
3344 * varobj.c (varobj_create): Update.
3345 (varobj_set_value): Update.
3346 * tracepoint.c (validate_actionline): Update.
3347 (encode_actions_1): Update.
3348 * parse.c (parse_exp_1): Add 'pc' argument.
3349 (parse_exp_in_context): Add 'pc' argument. Change how
3350 expression_context_pc is set.
3351 (parse_expression): Update.
3352 (parse_field_expression): Update.
3353 * expression.h (parse_exp_1): Update.
3354 * eval.c (parse_to_comma_and_eval): Update.
3355 * breakpoint.c (set_breakpoint_condition): Update.
3356 (update_watchpoint): Update.
3357 (init_breakpoint_sal): Update
3358 (find_condition_and_thread): Update.
3359 (watch_command_1): Update.
3360 (update_breakpoint_locations): Update.
3361 * ada-lang.c (ada_read_renaming_var_value): Update.
3362 (create_excep_cond_exprs): Update.
3364 2012-06-27 Doug Evans <dje@google.com>
3366 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3369 2012-06-26 Doug Evans <dje@google.com>
3371 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3373 (error_check_comp_unit_head): New arg abbrev_section. All callers
3375 (read_and_check_comp_unit_head): Ditto.
3376 (read_and_check_type_unit_head): Ditto.
3378 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3380 New attribute 'last' for gdb.Symtab_and_line.
3381 * NEWS (Python Scripting): Add entry about the new attribute.
3382 * python/py-symtab.c (salpy_get_last): New function which
3383 implements the get method for the 'last' attribute of
3384 gdb.Symtab_and_line.
3385 (sal_object_getset): Add entry for the 'last' attribute.
3387 2012-06-26 Doug Evans <dje@google.com>
3389 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3390 (dwo_sections): Add macinfo, macro.
3391 (dwarf2_locate_dwo_sections): Watch for macro sections.
3392 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3393 All callers updated. Handle DWO files.
3395 * NEWS: Mention new options "set debug dwarf2-read" and
3396 "set debug symtab-create".
3397 * dwarf2read.c (dwarf2_read_debug): New static global.
3398 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3399 (process_queue): Ditto.
3400 (process_full_comp_unit): Ditto.
3401 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3402 * elfread.c (elf_symfile_read): Add debugging printf.
3403 * minsyms.c (install_minimal_symbols): Ditto.
3404 * psymtab.c (allocate_psymtab): Ditto.
3405 * symfile.c (allocate_symtab): Ditto.
3406 * symtab.c (symtab_create_debug): New global.
3407 (_initialize_symtab): Add new option "set debug symtab-create".
3408 * symtab.h (symtab_create_debug): Declare.
3410 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3411 (lookup_dwo_type_unit): Ditto.
3413 2012-06-26 Roland McGrath <roland@hack.frob.com>
3414 H.J. Lu <hongjiu.lu@intel.com>
3416 * amd64-linux-nat.c: Include <sys/user.h>.
3417 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3418 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3419 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3421 * configure.ac: Check if the fs_base and gs_base members of
3422 `struct user_regs_struct' exist.
3423 * config.in: Regenerated.
3424 * configure: Likewise.
3426 2012-06-25 Michael Eager <eager@eagercon.com>
3429 * python/python.c (gdbpy_write): Check for interrupted output.
3431 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3433 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3434 register as a stack alignment in ARM mode.
3436 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3438 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3439 * gnulib/config.in: Regenerate.
3440 * gnulib/configure: Likewise.
3441 * gnulib/import/m4/extensions.m4: Update it.
3442 * gnulib/import/m4/gnulib-common.m4: Likewise.
3443 * gnulib/import/m4/memmem.m4: Likewise.
3444 * gnulib/import/m4/mmap-anon.m4: Likewise.
3445 * gnulib/import/m4/multiarch.m4: Likewise.
3446 * gnulib/import/stdint.in.h: Likewise.
3448 2012-06-24 Yao Qi <yao@codesourcery.com>
3450 * corefile.c (write_memory_with_notification): New.
3451 * gdbcore.h: Declare write_memory_with_notification.
3452 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3453 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3454 * valops.c (value_assign): Likewise.
3455 * python/py-inferior.c (infpy_write_memory): Call
3456 'write_memory_with_notification'.
3458 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3460 * cc-with-index.sh: Use also -ex "set auto-load no".
3462 2012-06-23 Doug Evans <dje@google.com>
3465 * NEWS: Document additions to .gdb_index.
3466 * dwarf2read.c: #include "gdb/gdb-index.h".
3467 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3468 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3469 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3470 (dwarf2_read_index): Recognize version 7.
3471 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3472 block_kind, domain): All callers updated.
3473 (dw2_find_symbol_file): Handle new index CU values.
3474 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3475 (add_index_entry): New args is_static, kind. All callers updated.
3476 (offset_type_compare, uniquify_cu_indices): New functions
3477 (symbol_kind): New function.
3478 (write_psymtabs_to_index): Remove duplicate CU values.
3479 (write_psymtabs_to_index): Write .gdb_index version 7.
3481 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3483 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3484 * configure: Regenerate.
3486 2012-06-20 Yao Qi <yao@codesourcery.com>
3488 * python/py-inferior.c: Update comments of infpy_read_memory
3489 and infpy_write_memory.
3491 2012-06-19 Tom Tromey <tromey@redhat.com>
3494 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3495 (push_type_address_space): Remove.
3496 * parse.c (insert_into_type_stack): New function.
3497 (insert_type): Likewise.
3498 (insert_type_address_space): Rename from push_type_address_space.
3499 Insert tp_space_identifier.
3500 * c-exp.y (ptr_operator): New production.
3501 (abs_decl): Use ptr_operator.
3502 (space_identifier): Call insert_type_address_space.
3503 (ptype): Don't use const_or_volatile_or_space_identifier.
3504 (const_or_volatile_noopt): Call insert_type.
3505 (conversion_type_id, conversion_declarator): New productions.
3506 (operator): Use conversion_type_id.
3508 2012-06-18 Doug Evans <dje@google.com>
3510 * symtab.h (minimal_symbol): New member created_by_gdb.
3511 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3513 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3514 (search_symbols): Call it instead of lookup_symbol.
3515 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3517 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3518 Adjust address for DW_OP_GNU_addr_index.
3519 * dwarf2expr.h (dwarf_expr_context): Update comment.
3520 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3521 all callers updated. Handle TLS vars described with
3522 DW_OP_GNU_const_index.
3523 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3524 and DW_OP_GNU_const_index.
3525 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3527 * block.c (find_block_in_blockvector): Make explicit the fact that we
3528 ignore GLOBAL_BLOCK.
3530 2012-06-18 Tom Tromey <tromey@redhat.com>
3532 * c-exp.y (operator): Remove trailing space after "delete" and
3535 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3536 Jan Kratochvil <jan.kratochvil@redhat.com>
3538 Switch i386 and derived targets to ON_STACK.
3539 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3540 (amd64_dicos_init_abi): Remove its installment.
3541 * dicos-tdep.c (dicos_init_abi): Remove the
3542 set_gdbarch_call_dummy_location call. Update the comment here.
3543 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3544 (i386_dicos_init_abi): Remove its installment.
3545 * i386-tdep.c (i386_push_dummy_code): New function.
3546 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3547 i386_push_dummy_code.
3549 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3551 Remove stale dummy frames.
3552 * breakpoint.c: Include dummy-frame.h.
3553 (longjmp_breakpoint_ops): New variable.
3554 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3555 bp_longjmp_call_dummy.
3556 (bpstat_what, bptype_string, print_one_breakpoint_location)
3557 (init_bp_location): Support bp_longjmp_call_dummy.
3558 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3559 (set_longjmp_breakpoint_for_call_dummy)
3560 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3562 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3563 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3564 FIXME comment and extend the other comment for bp_call_dummy.
3565 (set_longjmp_breakpoint_for_call_dummy)
3566 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3567 * dummy-frame.c: Include gdbthread.h.
3568 (pop_dummy_frame_bpt): New function.
3569 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3570 (dummy_frame_discard): New function.
3571 (cleanup_dummy_frames): Update the comment about longjmps.
3572 * dummy-frame.h (dummy_frame_discard): New declaration.
3573 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3574 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3575 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3576 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3577 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3578 keep_going if IS_LONGJMP and there is no other reason to stop.
3580 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3582 * remote-sim.c (sim_command_completer): Initialize
3585 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3587 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3588 * dwarf2loc.c (call_site_parameter_matches): Support
3589 CALL_SITE_PARAMETER_PARAM_OFFSET.
3590 (needs_dwarf_reg_entry_value): Push stub value.
3591 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3592 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3593 * gdbtypes.h (enum call_site_parameter_kind): New item
3594 CALL_SITE_PARAMETER_PARAM_OFFSET.
3595 (struct call_site.parameter.u): New field param_offset.
3597 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3599 Code cleanup: Generalize call_site.parameter key.
3600 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3601 variable dwarf_reg. New variable kind_u. Update parameters to
3602 push_dwarf_reg_entry_value.
3603 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3604 * dwarf2expr.h (enum call_site_parameter_kind)
3605 (union call_site_parameter_u): Forward declarations.
3606 (struct dwarf_expr_context_funcs): Update parameters and their
3607 description for push_dwarf_reg_entry_value.
3608 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3609 * dwarf2loc.c (call_site_parameter_matches): New function.
3610 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3611 description. Use call_site_parameter_matches.
3612 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3613 Update parameters and their description.
3614 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3615 New variable kind_u. Adjust the caller for updated parameters.
3616 (needs_dwarf_reg_entry_value): Update parameters.
3617 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3618 instead of attr. Update for the changed fields of struct
3619 call_site_parameter.
3620 * gdbtypes.h: Include dwarf2expr.h.
3621 (enum call_site_parameter_kind): New.
3622 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3623 fb_offset into new union u.
3625 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3627 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3628 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3631 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3633 * amd64-linux-nat.c (compat_x32_clock_t): New.
3634 (compat_x32_siginfo_t): Likewise.
3635 (compat_x32_siginfo_from_siginfo): Likewise.
3636 (siginfo_from_compat_x32_siginfo): Likewise.
3637 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3638 and siginfo_from_compat_x32_siginfo for x32.
3640 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3642 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3644 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3646 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3647 instead of gdbarch_ptr_bit.
3648 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3649 (amd64_supply_native_gregset): Likewise.
3650 (amd64_collect_native_gregset): Likewise.
3651 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3652 (amd64_supply_xsave): Likewise.
3653 (amd64_collect_fxsave): Likewise.
3654 (amd64_collect_xsave): Likewise.
3656 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3658 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3659 (amd64_linux_read_description): Check DS segment register for
3662 2012-06-15 Tom Tromey <tromey@redhat.com>
3664 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3665 init_cutu_and_read_dies.
3667 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3669 * MAINTAINERS (Write After Approval): Add myself to the list.
3671 2012-06-15 Tom Tromey <tromey@redhat.com>
3673 * valops.c (value_find_oload_method_list): Now static.
3674 * value.h (value_find_oload_method_list): Don't declare.
3676 2012-06-15 Tom Tromey <tromey@redhat.com>
3678 * valops.c (find_overload_match): Use value_ind.
3680 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3682 * infrun.c (handle_inferior_event): Correct indentation.
3684 2012-06-14 Doug Evans <dje@google.com>
3686 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3687 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3689 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3690 updated. Handle DEBUG_LOC_START_LENGTH.
3691 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3692 (loclist_describe_location): Ditto.
3694 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3697 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3698 after hiding inline functions.
3700 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3702 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3703 _initialize_inf_ttrace.
3705 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3707 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3708 _initialize_hppa_hpux_nat.
3710 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3712 * remote-sim.c (sim_command_completer): Change type of return
3713 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3715 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3716 Jan Kratochvil <jan.kratochvil@redhat.com>
3719 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3720 stack on a 16-byte boundary.
3722 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3724 * jit.c (finalize_symtab): Set function's return type to 'void' by
3727 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3728 H.J. Lu <hongjiu.lu@intel.com>
3730 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3731 Move bits common to both the classic LP64 and the new x32 ILP32
3733 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3734 (amd64_x32_linux_init_abi): New function.
3735 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3738 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3739 * i386-tdep.c (i386_pseudo_register_name): Make public.
3740 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3741 * amd64-tdep.c (amd64_dword_names): Add "eip".
3742 (amd64_x32_pseudo_register_type): New function
3743 (amd64_x32_init_abi): New function.
3745 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3748 * inferior.h (struct inferior_suspend_state): Comment out.
3749 (struct inferior): Comment out the field suspend.
3750 * infrun.c (struct infcall_suspend_state): Comment out the field
3752 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3755 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3757 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3758 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3759 function comment. Return ERROR for unresolved cases. Implement
3760 returning proper NAME.
3761 (yylex): Accept also NAME from classify_inner_name.
3762 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3763 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3765 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3767 2012-06-13 Tom Tromey <tromey@redhat.com>
3769 * breakpoint.c (condition_completer): New function.
3770 (_initialize_breakpoint): Use it.
3771 * value.c (complete_internalvar): New function.
3772 * value.h (complete_internalvar): Declare.
3774 2012-06-13 Tom Tromey <tromey@redhat.com>
3776 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3777 * breakpoint.c (catch_syscall_completer): Return a VEC.
3778 * cli/cli-cmds.c (complete_command): Update.
3779 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3780 (complete_on_enum): Likewise.
3781 * command.h: Include gdb_vecs.h.
3782 (completer_ftype): Change return type.
3783 (complete_on_cmdlist, complete_on_enum): Likewise.
3784 * completer.c (noop_completer, filename_completer)
3785 (location_completer): Return a VEC.
3786 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3788 (expression_completer, complete_line_internal, complete_line)
3789 (command_completer): Return a VEC.
3790 (gdb_completion_word_break_characters, line_completion_function):
3792 * completer.h: Include gdb_vecs.h.
3793 (complete_line, noop_completer, filename_completer)
3794 (expression_completer, location_completer, command_completer):
3796 * f-lang.c (f_word_break_characters): Return a VEC.
3797 * interps.c (interpreter_completer): Return a VEC.
3798 * language.h (struct language_defn)
3799 <la_make_symbol_completion_list>: Return a VEC.
3800 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3801 * symtab.c (free_completion_list): Take a VEC.
3802 (return_val_size, return_val_index): Remove.
3803 (return_val): Now a VEC.
3804 (completion_list_add_name): Update.
3805 (default_make_symbol_completion_list_break_on)
3806 (default_make_symbol_completion_list, make_symbol_completion_list)
3807 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3809 (add_filename_to_list): Update.
3810 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3812 (maybe_add_partial_symtab_filename): Update.
3813 (make_source_files_completion_list): Return a VEC.
3814 * symtab.h (default_make_symbol_completion_list_break_on)
3815 (default_make_symbol_completion_list, make_symbol_completion_list)
3816 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3817 (make_source_files_completion_list): Update.
3819 2012-06-13 Tom Tromey <tromey@redhat.com>
3821 * breakpoint.c (add_catch_command): Use completer_ftype.
3822 * breakpoint.h: Include command.h.
3823 (add_catch_command): Use completer_ftype.
3824 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3825 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3826 Use completer_ftype.
3827 * command.h (completer_ftype): New typedef.
3828 (set_cmd_completer): Use it.
3829 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3832 2012-06-13 Pedro Alves <palves@redhat.com>
3834 Partial revert of previous change.
3836 * serial.c (scb_base): New global.
3837 (serial_for_fd): New.
3838 (serial_open, serial_fdopen_ops): Link new serial in open serials
3840 (do_serial_close): Unlink serial from the open serials chain.
3842 2012-06-12 Pedro Alves <palves@redhat.com>
3844 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3846 (prepare_for_detach): No longer context switch here in non-stop
3848 (fetch_inferior_event): Ditto.
3849 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3850 to the event thread before removing breakpoints. Switch to the
3851 event thread before inserting breakpoints and resuming.
3852 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3853 event thread before resuming.
3854 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3855 Switch to the event thread before removing breakpoints.
3857 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3859 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3860 special characters correctly for the Windows shells. See
3861 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3863 [!__MINGW32__]: Remove extra double quote character from special
3866 2012-06-11 Stan Shebs <stan@codesourcery.com>
3868 * ui-out.h: Remove #if 0 declarations.
3869 * ui-out.c: Remove #if 0 functions.
3871 2012-06-11 Pedro Alves <palves@redhat.com>
3873 * ser-base.c (run_async_handler_and_reschedule): New.
3874 (fd_event, push_event): Use it.
3875 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3876 reference count to 1.
3877 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3879 (serial_is_open, serial_ref, serial_unref): New.
3880 * serial.h (serial_open): Adjust comment.
3881 (serial_is_open): Declare.
3882 (serial_close): Adjust comment.
3883 (serial_ref, serial_unref) Declare.
3884 (struct serial): New field 'refcnt'.
3886 2012-06-11 Pedro Alves <palves@redhat.com>
3888 Remove #if 0'd "connect" command, and unnecessary associated
3889 refcounting and serial reuse bits.
3891 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3892 * serial.c (last_serial_opened): Delete.
3894 (serial_open): Adjust.
3895 (serial_for_fd): Delete.
3896 (serial_fdopen_ops, do_serial_close): Adjust.
3897 (serial_fdopen_ops): Adjust.
3899 2012-06-11 Pedro Alves <palves@redhat.com>
3901 * serial.c (do_serial_close): Remove early return when SCB is
3904 2012-06-11 Tom Tromey <tromey@redhat.com>
3906 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3908 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3910 Fix regression by the "ambiguous linespec" series.
3911 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3912 get_last_displayed_symtab and get_last_displayed_line and depending
3915 2012-06-11 Tom Tromey <tromey@redhat.com>
3917 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3918 (dw2_find_symbol_file): Use it.
3920 2012-06-11 Michael Eager <eager@eagercon.com>
3922 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3923 * mips-linux-tdep.h (mips_signals): New
3925 2012-06-11 Tom Tromey <tromey@redhat.com>
3927 * infrun.c (handle_inferior_event)
3928 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3930 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3931 exception logic in all cases. Update comments.
3932 (insert_longjmp_resume_breakpoint): Set the exception resume
3935 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3937 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3939 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3941 * valarith.c (binop_types_user_defined_p): Fix a typo.
3943 2012-06-08 Yao Qi <yao@codesourcery.com>
3944 Chung-Lin Tang <cltang@codesourcery.com>
3946 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3947 * arch-utils.h: Declare.
3948 * gdbarch.sh: Add return_in_first_hidden_param_p.
3949 * gdbarch.c, gdbarch.h: Regenerated.
3950 * infcall.c (call_function_by_hand): Call
3951 gdbarch_return_in_first_hidden_param_p instead of
3952 language_pass_by_reference.
3954 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3955 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3956 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3957 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3958 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3959 `cplus_return_struct_by_reference'.
3960 (tic6x_return_value): Handle language cplusplus.
3961 (tic6x_return_in_first_hidden_param_p): New.
3962 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3964 2012-06-07 Doug Evans <dje@google.com>
3966 * dwarf2read.c (dwarf2_cu): Add comment.
3968 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3970 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3972 (mips_eabi_push_dummy_call): Likewise.
3973 (mips_n32n64_push_dummy_call): Likewise.
3974 (mips_o32_push_dummy_call): Likewise.
3975 (mips_o64_push_dummy_call): Likewise.
3977 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3979 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3981 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3983 * mips-tdep.c (mips_pseudo_register_type): Use
3984 mips_float_register_p.
3986 2012-06-06 Pedro Alves <palves@redhat.com>
3988 * infrun.c (handle_inferior_event): Remove calls to
3989 reinit_frame_cache that follow a context_switch call.
3991 2012-06-06 Pedro Alves <palves@redhat.com>
3993 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3994 context_switch and remove stale comment.
3996 2012-06-06 Pedro Alves <palves@redhat.com>
3998 * infrun.c (struct execution_control_state): Remove
3999 `new_thread_event' field.
4000 (handle_inferior_event): Simplify new threads handling; don't
4001 resume the inferior if we find a new thread.
4003 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4005 * NEWS: Document the deprecation of SH's 'regs' command.
4006 * inferior.h (all_registers_info): Add function declaration.
4007 * sh-tdep.c (sh_show_regs): Remove variable.
4008 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4009 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4010 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4011 (sh_show_regs_command): Remove functions.
4012 (sh_gdbarch_init): Don't set sh_show_regs.
4013 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4014 'info all-registers'.
4015 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4016 (sh64_show_regs): Remove functions.
4017 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4019 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4021 * configure.ac: Move development=true below AC_INIT.
4022 * configure: Regenerate.
4024 2012-06-05 Stan Shebs <stan@codesourcery.com>
4026 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4029 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4031 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4032 argument as ssize_t.
4033 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4034 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4035 * target.c (target_read_stack, target_write_memory)
4036 (target_write_raw_memory): Likewise.
4037 * target.h (target_read_stack, target_write_memory)
4038 (target_write_raw_memory): Likewise.
4040 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4042 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4043 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4044 * target.c (target_read_memory): Change LEN to ssize_t.
4045 * target.h (target_read_memory): Change LEN to ssize_t.
4047 2012-06-05 Pedro Alves <palves@redhat.com>
4051 * breakpoint.c (until_break_command): Only fetch the selected
4052 frame after decode_line_1.
4054 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4056 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4057 event breakpoint at _start, __start or main if a program
4058 interpreter is not found.
4060 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4062 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4064 * windows-tdep.c: #include "objfiles.h".
4065 (windows_iterate_over_objfiles_in_search_order): New function.
4066 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4067 iterate_over_objfiles_in_search_order gdbarch method to
4068 windows_iterate_over_objfiles_in_search_order.
4069 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4071 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4073 * gdbarch.sh: Add generation of
4074 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4075 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4076 (iterate_over_objfiles_in_search_order): New gdbarch method.
4077 * gdbarch.h, gdbarch.c: Regenerate.
4078 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4080 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4082 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4083 out of lookup_symbol_aux_symtabs.
4084 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4085 call to lookup_symbol_aux_objfile.
4086 (struct global_sym_lookup_data): New type.
4087 (lookup_symbol_global_iterator_cb): New function.
4088 (lookup_symbol_global): Search for symbol using
4089 gdbarch_iterate_over_objfiles_in_search_order and
4090 lookup_symbol_global_iterator_cb.
4091 * findvar.c (struct minsym_lookup_data): New type.
4092 (minsym_lookup_iterator_cb): New function.
4093 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4094 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4095 and minsym_lookup_iterator_cb.
4097 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4099 Revert the following patch:
4100 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4101 try locating the symbol in the symbol's own objfile first, before
4102 extending the search to all objfiles.
4103 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4104 out of lookup_symbol_aux_symtabs.
4105 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4106 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4107 Do not search EXCLUDE_OBJFILE.
4108 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4109 (lookup_symbol_global): Search for matches in the block's objfile
4110 first, before searching all other objfiles.
4112 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4114 * breakpoint.c (find_condition_and_thread): Stop parsing
4115 as soon as the first invalid keyword is found.
4117 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4119 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4121 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4123 * config/djgpp/djcheck.sh: Add copyright header.
4125 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4127 * copyright.py (update_files, main): Fix path to update-copyright
4130 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4132 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4133 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4134 for which a reminder to update by hand is printed.
4136 2012-06-04 Doug Evans <dje@google.com>
4138 * buildsym.c (make_blockvector): Add comment.
4140 2012-06-04 Pedro Alves <palves@redhat.com>
4142 * arch-utils.c (default_gdb_signal_from_target): Delete.
4143 * arch-utils.h (default_gdb_signal_from_target): Delete.
4144 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4145 gdbarch_gdb_signal_from_target_p.
4146 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4148 * gdbarch.h: Regenerate.
4149 * gdbarch.c: Regenerate.
4151 2012-06-04 Pedro Alves <palves@redhat.com>
4153 * gdbarch.sh (gdb_signal_from_target): Mention that the
4154 implementation of the method must be host independent.
4155 * gdbarch.h: Regenerate.
4157 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4159 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4161 (target_read_memory_bfd): New function.
4162 (symbol_file_add_from_memory): Use it.
4164 2012-06-03 Doug Evans <dje@google.com>
4166 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4168 (basic_lookup_transparent_type): Ditto.
4170 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4171 (ALL_PRIMARY_SYMTABS): Use it.
4172 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4173 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4174 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4175 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4176 (basic_lookup_transparent_type): Ditto.
4178 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4180 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4181 it to optimize resolution of demangled name.
4183 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4185 * configure.ac (development): Define new variable.
4186 Call AC_CHECK_LIB for mcheck if $development.
4187 (ERROR_ON_WARNING): Enable it by default only if $development.
4188 * config.in: Regenerate.
4189 * configure: Regenerate.
4191 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4193 * target.c (target_read_memory): Make LEN argument as size_t.
4194 * target.h (target_read_memory): Likewise.
4196 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4198 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4200 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4202 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4203 BookE interface for PowerPC server processors if not available
4204 in the Linux Kernel.
4206 2012-05-31 Keith Seitz <keiths@redhat.com>
4208 * linespec.c (decode_objc): Add cleanup to free
4210 (find_linespec_symbols): Add cleanup to free CLASSES.
4211 * symfile.c (find_separate_debug_file_by_debuglink): Add
4212 cleanup to free DEBUGLINK.
4213 * ui-out.c (clear_header_list): No need to check if
4214 HEADER_NEXT.COLHDR is NULL.
4215 Free HEADER_NEXT.COL_NAME.
4217 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4219 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4222 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4224 * configure.host (gdb_host_cpu): Handle tilegx*.
4225 (gdb_host): Handle tilegx-*-linux*.
4226 * tilegx-linux-nat.c: New file.
4227 * config/tilegx/linux.mh: New file.
4229 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4231 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4232 tilegx-linux-tdep.o.
4233 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4234 tilegx-linux-tdep.c.
4235 * configure.tgt: Handle tilegx-*-linux*.
4236 * tilegx-tdep.h: New file.
4237 * tilegx-tdep.c: New file.
4238 * tilegx-linux-tdep.c: New file.
4239 * regformats/reg-tilegx.dat: New file.
4241 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4243 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4244 accounting of hw watchpoints on ppc.
4246 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4248 * source.c (openp): Expand tilde in path entries.
4250 2012-05-29 Doug Evans <dje@google.com>
4252 * buildsym.c (block_compar): Fix comment.
4253 (end_symtab): Fix and clarify some comments.
4255 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4256 cleanup_undefined_types.
4257 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4258 All callers updated.
4260 2012-05-29 Tom Tromey <tromey@redhat.com>
4262 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4264 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4265 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4267 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4270 2012-05-29 Tristan Gingold <gingold@adacore.com>
4272 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4273 (struct darwin_info): ... New struct.
4274 (solib_darwin_pspace_data): New variable.
4275 (darwin_pspace_data_cleanup): New function.
4276 (get_darwin_info): Likewise.
4277 (darwin_dyld_version_ok, darwin_load_image_infos)
4278 (darwin_solib_get_all_image_info_addr_at_init)
4279 (darwin_solib_read_all_image_info_addr): Add info argument.
4281 (darwin_current_sos): Use per pspace structure.
4282 (darwin_solib_create_inferior_hook): Likewise.
4283 (darwin_clear_solib): Likewise.
4284 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4286 2012-05-28 Pedro Alves <palves@redhat.com>
4288 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4289 block that uses them. Clear ecss before handling each event.
4291 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4293 * solib-svr4.c (svr4_current_sos): New comment on
4294 svr4_current_sos_via_xfer_libraries fall back.
4296 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4298 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4299 it as a fallback for TYPE_IS_OPAQUE.
4300 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4301 symbols for lookup_symbol.
4303 2012-05-24 John Steele Scott <toojays@toojays.net>
4305 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4306 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4307 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4308 (check_producer): ... this new function, which also checks for ICC
4309 and caches the result.
4310 (producer_is_icc): New function.
4311 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4314 2012-05-24 Pedro Alves <palves@redhat.com>
4318 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4319 (default_gdb_signal_to_target): ... this. Add comment.
4320 (default_gdb_signal_from_host): Rename to ...
4321 (default_gdb_signal_from_target): ... this. Add comment.
4322 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4323 (default_gdb_signal_to_target): ... this.
4324 (default_gdb_signal_from_host): Rename to ...
4325 (default_gdb_signal_from_target): ... this.
4326 * corelow.c (core_open): Adjust to naming change. Replace comment.
4327 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4328 (gdb_signal_from_target): ... this. Adjust to
4329 default_gdb_signal_from_host naming change. Extend comment.
4330 (gdb_signal_to_host): Rename to ...
4331 (gdb_signal_to_target): ... this. Adjust to
4332 default_gdb_signal_to_host naming change.
4333 * gdbarch.h, gdbarch.c: Renegerate.
4335 2012-05-24 Pedro Alves <palves@redhat.com>
4339 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4341 2012-05-24 Pedro Alves <palves@redhat.com>
4345 Replace target_signal with gdb_signal throughout.
4347 2012-05-24 Pedro Alves <palves@redhat.com>
4351 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4352 string, instead of reusing the va_list argument.
4354 2012-05-24 Tom Tromey <tromey@redhat.com>
4356 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4359 2012-05-23 Doug Evans <dje@google.com>
4361 * symtab.c (search_symbols): Formatting fixes.
4362 (print_symbol_info): Formatting fixes.
4364 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4365 int64_t change to leb128 API.
4366 (read_encoded_value, decode_frame_entry_1): Ditto.
4367 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4368 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4369 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4370 (execute_stack_op): Ditto.
4371 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4372 (safe_read_uleb128, safe_read_sleb128): Ditto.
4373 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4374 (dwarf2_compile_expr_to_ax): Ditto.
4375 (locexpr_describe_location_piece): Ditto.
4376 (disassemble_dwarf_expression): Ditto.
4377 (locexpr_describe_location_1): Ditto.
4379 2012-05-23 Stan Shebs <stan@codesourcery.com>
4380 Kwok Cheung Yeung <kcy@codesourcery.com>
4382 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4383 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4384 (mi-cmd-info.o): New rule.
4385 * osdata.h (info_osdata_command): New declaration.
4386 * osdata.c (info_osdata_command): Change to non-static.
4387 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4388 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4389 * mi/mi-cmd-info.c: New file.
4391 2012-05-23 Doug Evans <dje@google.com>
4393 * symtab.c (search_symbols): Pass NULL for file_matcher to
4394 expand_symtabs_matching if there are no files to match.
4396 * gdbtypes.c (lookup_typename): Simplify.
4398 2012-05-23 Pedro Alves <palves@redhat.com>
4400 * arch-utils.h (default_target_signal_to_host): Delete.
4401 * arch-utils.c (default_target_signal_to_host): Delete.
4402 * gdbarch.sh (target_signal_to_host): Remove.
4403 * gdbarch.h, gdbarch.c: Regenerate.
4405 2012-05-22 Doug Evans <dje@google.com>
4407 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4409 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4410 (execute_cfa_program): Update to match API of leb128 functions.
4411 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4413 (read_unsigned_leb128, read_signed_leb128): Delete.
4414 (read_initial_length): Change type of buf argument to
4416 (read_encoded_value): Update to match API of leb128 functions.
4417 (decode_frame_entry): Change result to "const gdb_byte *", and
4418 similarly for "start" parameter.
4419 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4420 (dwarf2_build_frame_info): Change local frame_ptr to
4422 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4423 read_uleb128, read_sleb128. All callers updated.
4424 (safe_skip_leb128): New function.
4425 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4426 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4427 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4428 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4429 read_uleb128, read_sleb128.
4430 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4431 (execute_stack_op): Update to match API of leb128 functions.
4432 * dwarf2expr.h: #include "leb128.h".
4433 (read_uleb128, read_sleb128): Delete.
4434 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4435 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4436 * dwarf2loc.c (debug_loc_kind): New enum.
4437 (decode_debug_loc_addresses): New function.
4438 (decode_debug_loc_dwo_addresses): New function.
4439 (dwarf2_find_location_expression): Rewrite.
4440 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4441 (locexpr_describe_location_piece): Ditto.
4442 (disassemble_dwarf_expression): Ditto.
4443 (locexpr_describe_location_1): Ditto.
4444 (loclist_describe_location): Rewrite.
4445 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4446 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4447 (dwarf2_section_buffer_overflow_complaint): Renamed from
4448 dwarf2_macros_too_long_complaint. All callers updated.
4449 (skip_leb128): Delete.
4450 (init_cu_die_reader): Initialize reader->buffer_end.
4451 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4452 (skip_form_bytes): New arg buffer_end. All callers updated.
4453 Replace call to skip_leb128 with gdb_skip_leb128.
4454 (skip_unknown_opcode): New arg mac_end. All callers updated.
4455 (fill_in_loclist_baton): Initialize baton->from_dwo.
4457 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4459 * mips-linux-nat.c (mips_linux_read_description): Use a more
4460 verbose error message.
4462 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4464 * NEWS: Add MIPS/Linux DSP support.
4465 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4466 (SIGCONTEXT_DSPCTL): New macro.
4467 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4468 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4469 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4470 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4471 (N64_SIGCONTEXT_HI3): Likewise.
4472 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4473 (N64_SIGCONTEXT_LO3): Likewise.
4474 (N64_SIGCONTEXT_DSPCTL): Likewise.
4475 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4476 (mips_linux_o32_sigframe_init): Handle DSP registers.
4477 (mips_linux_n32n64_sigframe_init): Likewise.
4479 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4481 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4484 2012-05-22 Pedro Alves <palves@redhat.com>
4486 * target.h (store_waitstatus): Move declaration ...
4487 * inf-child.h (store_waitstatus): ... here.
4488 * target.c: Move inclusion of gdb_wait.h, and ...
4489 (store_waitstatus): ... this ...
4490 * inf-child.c: ... here.
4491 * linux-nat.c: Include inf-child.h.
4492 * rs6000-nat.c: Include inf-child.h.
4493 * spu-linux-nat.c: Include inf-child.h.
4495 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4497 * tracepoint.c (start_tracing): Add missing i18n markup.
4498 (stop_tracing, set_trace_user): Ditto.
4499 (set_trace_notes, set_trace_stop_notes): Ditto.
4501 2012-05-21 Tom Tromey <tromey@redhat.com>
4504 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4506 * value.h (value_cast_pointers): Update.
4507 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4508 (value_cast): Update.
4509 (update_search_result): New function.
4510 (do_search_struct_field): New, from search_struct_field. Check
4511 for ambiguous results.
4512 (search_struct_field): Rewrite.
4513 * infcall.c (value_arg_coerce): Update.
4514 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4515 value_cast_pointers.
4516 * ada-lang.c (ada_convert_actual): Update.
4518 2012-05-21 Tom Tromey <tromey@redhat.com>
4520 * macroexp.c (macro_stringify): Terminate the string.
4522 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4524 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4526 * auto-load.c (auto_load_expand_dir_vars): New function.
4527 (auto_load_safe_path_vec_update): Use it, remove the
4528 substitute_path_component call thanks to it.
4529 (auto_load_objfile_script): Remove the debug_file_directory processing.
4530 Use auto_load_expand_dir_vars, remove the substitute_path_component
4532 * configure: Regenerate.
4533 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4534 path. Escape $ also for $debugdir.
4535 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4536 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4538 2012-05-20 Doug Evans <dje@google.com>
4540 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4541 before use. Check for symtab->includes == NULL before scanning it.
4543 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4545 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4547 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4549 * NEWS: Add microMIPS support and "set mips compression",
4550 "show mips compression" commands.
4551 * mips-tdep.h (mips_isa): New enum.
4552 (gdbarch_tdep): Add mips_isa.
4553 (mips_pc_is_mips16): Update prototype.
4554 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4555 * mips-tdep.c (mips_compression_mips16): New variable.
4556 (mips_compression_micromips): Likewise.
4557 (mips_compression_strings): Likewise.
4558 (mips_compression_string): Likewise.
4559 (is_mips16_isa, is_micromips_isa): New functions.
4560 (is_mips16_addr): Rename to...
4561 (is_compact_addr): ... this.
4562 (unmake_mips16_addr): Likewise to...
4563 (unmake_compact_addr): ... this.
4564 (make_mips16_addr): Likewise to...
4565 (make_compact_addr): ... this.
4566 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4568 (mips_elf_make_msymbol_special): Handle microMIPS code.
4569 (msymbol_is_special): Rename to...
4570 (msymbol_is_mips16): ... this.
4571 (mips_make_symbol_special, mips_pc_is_mips16): Update
4573 (msymbol_is_mips, msymbol_is_micromips): New functions.
4574 (mips16_to_32_reg): Rename to...
4575 (mips_reg3_to_reg): ... this.
4576 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4577 (mips_pc_isa): Likewise.
4578 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4580 (mips_fetch_instruction): Pass return status instead of printing
4581 an error message if requested. Handle microMIPS code. Bail out
4583 (micromips_op): New macro.
4584 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4585 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4586 (b6s4_op, b7s3_reg): Likewise.
4587 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4588 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4589 (mips_insn_size): New function.
4590 (mips32_next_pc): Update mips_fetch_instruction call.
4591 (micromips_relative_offset7): New function.
4592 (micromips_relative_offset10): Likewise.
4593 (micromips_relative_offset16): Likewise.
4594 (micromips_pc_insn_size): Likewise.
4595 (micromips_bc1_pc): Likewise.
4596 (micromips_next_pc): Likewise.
4597 (unpack_mips16): Update mips_fetch_instruction call.
4598 (extended_mips16_next_pc): Update according to change to
4600 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4602 (mips16_scan_prologue): Update mips_fetch_instruction call.
4603 Update according to change to mips16_to_32_reg.
4604 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4605 (mips_insn16_frame_base_sniffer): Likewise.
4606 (micromips_decode_imm9): New function.
4607 (micromips_scan_prologue): Likewise.
4608 (mips_micro_frame_cache): Likewise.
4609 (mips_micro_frame_this_id): Likewise.
4610 (mips_micro_frame_prev_register): Likewise.
4611 (mips_micro_frame_sniffer): Likewise.
4612 (mips_micro_frame_unwind): New variable.
4613 (mips_micro_frame_base_address): New function.
4614 (mips_micro_frame_base): New variable.
4615 (mips_micro_frame_base_sniffer): New function.
4616 (mips32_scan_prologue): Update mips_fetch_instruction call.
4617 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4618 rather than for MIPS16.
4619 (mips_insn32_frame_base_sniffer): Likewise.
4620 (mips_addr_bits_remove): Handle microMIPS code.
4621 (deal_with_atomic_sequence): Rename to...
4622 (mips_deal_with_atomic_sequence): ... this. Update the type
4623 of the variable used to hold an instruction. Remove the ISA bit
4624 check. Update mips_fetch_instruction call.
4625 (micromips_deal_with_atomic_sequence): New function.
4626 (deal_with_atomic_sequence): Likewise.
4627 (mips_about_to_return): Handle microMIPS code. Update
4628 mips_fetch_instruction call.
4629 (heuristic_proc_start): Check for the standard MIPS ISA rather
4630 than for MIPS16. Update mips_pc_is_mips16 and
4631 mips_fetch_instruction calls. Handle microMIPS code.
4632 (mips_push_dummy_code): Handle microMIPS code.
4633 (mips_eabi_push_dummy_call): Likewise.
4634 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4635 (mips_o64_push_dummy_call): Handle microMIPS code.
4636 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4637 (is_delayed): Remove function.
4638 (mips_single_step_through_delay): Replace the call to is_delayed
4639 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4640 Handle microMIPS code.
4641 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4643 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4645 (micromips_in_function_epilogue_p): New function.
4646 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4648 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4650 (gdb_print_insn_mips): Likewise.
4651 (mips_breakpoint_from_pc): Likewise.
4652 (mips_remote_breakpoint_from_pc): New function.
4653 (mips32_instruction_has_delay_slot): Simplify making use of the
4654 updated mips_fetch_instruction interface.
4655 (micromips_instruction_has_delay_slot): New function.
4656 (mips16_instruction_has_delay_slot): Simplify making use of the
4657 updated mips_fetch_instruction interface.
4658 (mips_adjust_breakpoint_address): Check for the standard MIPS
4659 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4660 calls. Handle microMIPS code.
4661 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4662 (mips_skip_trampoline_code): Handle microMIPS code.
4663 (global_mips_compression): New function.
4664 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4665 file flags. Register the microMIPS remote breakpoint handler
4666 and heuristic frame unwinder.
4667 (show_mips_compression): New function.
4668 (_initialize_mips_tdep): Add the "set mips compression" and
4669 "show mips compression" commands.
4671 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4676 * amd64-darwin-tdep.c:
4677 * arm-symbian-tdep.c:
4681 * bfin-linux-tdep.c:
4688 * dwarf2-frame-tailcall.c:
4717 * microblaze-tdep.c:
4718 * mips-linux-tdep.c:
4726 * python/py-finishbreakpoint.c:
4727 * python/py-inferior.c:
4728 * python/py-infthread.c:
4732 * remote-m32r-sdi.c:
4736 * rs6000-aix-tdep.c:
4762 * amd64-darwin-tdep.c:
4763 * arm-symbian-tdep.c:
4764 * arm-tdep.c: Delete unused variables.
4766 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4768 Rename $ddir to $datadir.
4769 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4770 * auto-load.c (auto_load_safe_path_vec_update)
4771 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4772 * configure: Regenerate.
4773 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4774 Likewise. Remove the 'use $ddir' help string.
4776 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4778 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4779 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4781 2012-05-18 Tom Tromey <tromey@redhat.com>
4784 * valprint.h (struct value_print_options) <symbol_print>: New
4786 * valprint.c (user_print_options): Add default for symbol_print.
4787 (show_symbol_print): New function.
4788 (generic_val_print): Respect symbol_print.
4789 (_initialize_valprint): Add "print symbol" setting.
4790 * f-valprint.c (f_val_print): Respect symbol_print.
4791 * c-valprint.c (c_val_print): Respect symbol_print.
4793 * printcmd.c (print_address_symbolic): Return int. Ignore some
4795 (print_address_demangle): Return int.
4796 * defs.h: (print_address_symbolic): Return int.
4797 * value.h (print_address_demangle): Return int.
4799 2012-05-18 Tom Tromey <tromey@redhat.com>
4801 * valprint.c (val_print_string): Don't print leading space.
4802 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4803 print space before string or vtbl.
4804 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4806 * jv-valprint.c (java_value_print): Print space before string.
4807 * go-valprint.c (print_go_string): Print space before string.
4808 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4809 space before string.
4810 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4811 space before string or vtbl.
4812 * auxv.c (fprint_target_auxv): Print space after address.
4814 2012-05-18 Tom Tromey <tromey@redhat.com>
4816 * printcmd.c (print_address_demangle): Remove special case for 0.
4818 2012-05-18 Tom Tromey <tromey@redhat.com>
4820 * printcmd.c (print_address_demangle): Add 'opts' argument.
4821 * p-valprint.c (pascal_val_print): Update.
4822 * jv-valprint.c (java_val_print): Update.
4824 * valprint.c (generic_val_print): Update.
4825 (print_function_pointer_address): Add 'options' argument. Remove
4826 'addressprint' argument. Update.
4827 * m2-valprint.c (print_unpacked_pointer): Update.
4828 * gnu-v3-abi.c (print_one_vtable): Update.
4829 (gnuv3_print_method_ptr): Update.
4830 * f-valprint.c (f_val_print): Update.
4831 * cp-valprint.c (cp_print_value_fields): Update.
4832 * valprint.h (print_function_pointer_address): Update.
4833 * c-valprint.c (c_val_print): Update.
4835 2012-05-18 Tom Tromey <tromey@redhat.com>
4837 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4838 directly corresponding to the found psymtab.
4839 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4840 (dw2_find_pc_sect_symtab): Use it.
4841 * block.h (blockvector_contains_pc): Declare.
4842 * block.c (find_block_in_blockvector): New function.
4843 (blockvector_for_pc_sect): Use it.
4844 (blockvector_contains_pc): New function.
4846 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4848 * mips-tdep.h (mips_write_pc): New prototype.
4849 * mips-tdep.c (mips_write_pc): Make external, add description.
4850 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4853 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4855 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4857 (mips_unwind_pc, mips_write_pc): Likewise.
4858 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4861 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4863 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4864 proc_warn, proc_error, proc_get_status, proc_flags,
4865 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4866 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4867 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4868 proc_stop_process, proc_wait_for_stop, proc_run_process,
4869 proc_set_traced_signals, proc_set_traced_faults,
4870 proc_set_traced_sysentry, proc_set_traced_sysexit,
4871 proc_set_held_signals, proc_get_held_signals,
4872 proc_get_traced_signals, proc_get_traced_faults,
4873 proc_get_traced_sysentry, proc_get_traced_sysexit,
4874 proc_clear_current_fault, proc_set_current_signal,
4875 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4876 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4877 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4878 proc_get_current_thread, proc_get_current_thread,
4879 proc_get_current_thread, proc_update_threads,
4880 proc_update_threads, proc_update_threads, proc_update_threads,
4881 proc_iterate_over_threads, procfs_find_new_threads,
4882 procfs_pid_to_str): Make static. Remove advance declaration.
4883 (proc_cursig): Make static. Conditionalized defintion on
4884 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4885 (proc_syscall, proc_set_kill_on_last_close,
4886 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4887 proc_get_pending_signals, proc_get_signal_actions,
4888 proc_trace_signal, proc_ignore_signal): Delete.
4890 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4892 * coffread.c (cs_section_address): Passing proper argument for
4893 `bfd_get_section_vma'.
4894 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4895 `bfd_get_section_flags'.
4896 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4897 `bfd_get_section_vma'.
4899 2012-05-16 Tom Tromey <tromey@redhat.com>
4902 * macrotab.h: (macro_define_special): Declare.
4903 (enum macro_special_kind): New.
4904 (struct macro_definition) <argc, replacement>: Update comments.
4905 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4906 (macro_define_object_internal): New function.
4907 (macro_define_object): Use it.
4908 (macro_define_special): New function.
4909 (fixup_definition): New function.
4910 (macro_lookup_definition, foreach_macro_in_scope)
4911 (foreach_macro): Use fixup_definition.
4912 * macroexp.h (macro_stringify): Declare.
4913 * macroexp.c (free_buffer_return_text): New function.
4914 (stringify): Constify "arg".
4915 (macro_stringify): New function.
4916 * dwarf2read.c (macro_start_file): Call macro_define_special.
4918 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
4919 Maciej W. Rozycki <macro@mips.com>
4921 * breakpoint.h (bp_location): Add related_address member.
4922 * inferior.h (get_return_value): Take a pointer to struct value
4923 instead of struct type for the function requested.
4924 * value.h (using_struct_return): Likewise.
4925 * gdbarch.sh (return_value): Take a pointer to struct value
4926 instead of struct type for the function requested.
4927 * breakpoint.c (set_breakpoint_location_function): Initialize
4928 related_address for bp_gnu_ifunc_resolver breakpoints.
4929 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4930 requested function's address to gdbarch_return_value.
4931 * eval.c (evaluate_subexp_standard): Pass the requested
4932 function's address to using_struct_return.
4933 * infcall.c (call_function_by_hand): Pass the requested
4934 function's address to using_struct_return and
4935 gdbarch_return_value.
4936 * infcmd.c (get_return_value): Take a pointer to struct value
4937 instead of struct type for the function requested.
4938 (print_return_value): Update accordingly.
4939 (finish_command_continuation): Likewise.
4940 * stack.c (return_command): Pass the requested function's
4941 address to using_struct_return and gdbarch_return_value.
4942 * value.c (using_struct_return): Take a pointer to struct value
4943 instead of struct type for the function requested. Pass the
4944 requested function's address to gdbarch_return_value.
4945 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4946 New function_value member, replacing function_type.
4947 (bpfinishpy_dealloc): Update accordingly.
4948 (bpfinishpy_pre_stop_hook): Likewise.
4949 (bpfinishpy_init): Likewise. Record the requested function's
4951 * mips-tdep.c (mips_fval_reg): New enum.
4952 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4953 words put in GP registers.
4954 (mips_o64_push_dummy_call): Update a comment.
4955 (mips_o32_return_value): Take a pointer to struct value instead
4956 of struct type for the function requested and use it to check if
4957 using the MIPS16 calling convention. Return the designated
4958 general purpose registers for floating-point values returned in
4960 (mips_o64_return_value): Likewise.
4961 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4962 (ppc_sysv_abi_broken_return_value): Likewise.
4963 (ppc64_sysv_abi_return_value): Likewise.
4964 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4965 value instead of struct type for the function requested.
4966 * amd64-tdep.c (amd64_return_value): Likewise.
4967 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4968 * arm-tdep.c (arm_return_value): Likewise.
4969 * avr-tdep.c (avr_return_value): Likewise.
4970 * bfin-tdep.c (bfin_return_value): Likewise.
4971 * cris-tdep.c (cris_return_value): Likewise.
4972 * frv-tdep.c (frv_return_value): Likewise.
4973 * h8300-tdep.c (h8300_return_value): Likewise.
4974 (h8300h_return_value): Likewise.
4975 * hppa-tdep.c (hppa32_return_value): Likewise.
4976 (hppa64_return_value): Likewise.
4977 * i386-tdep.c (i386_return_value): Likewise.
4978 * ia64-tdep.c (ia64_return_value): Likewise.
4979 * iq2000-tdep.c (iq2000_return_value): Likewise.
4980 * lm32-tdep.c (lm32_return_value): Likewise.
4981 * m32c-tdep.c (m32c_return_value): Likewise.
4982 * m32r-tdep.c (m32r_return_value): Likewise.
4983 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4984 * m68k-tdep.c (m68k_return_value): Likewise.
4985 (m68k_svr4_return_value): Likewise.
4986 * m88k-tdep.c (m88k_return_value): Likewise.
4987 * mep-tdep.c (mep_return_value): Likewise.
4988 * microblaze-tdep.c (microblaze_return_value): Likewise.
4989 * mn10300-tdep.c (mn10300_return_value): Likewise.
4990 * moxie-tdep.c (moxie_return_value): Likewise.
4991 * mt-tdep.c (mt_return_value): Likewise.
4992 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4993 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4994 (ppc_sysv_abi_broken_return_value): Likewise.
4995 (ppc64_sysv_abi_return_value): Likewise.
4996 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4997 * rl78-tdep.c (rl78_return_value): Likewise.
4998 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4999 * rx-tdep.c (rx_return_value): Likewise.
5000 * s390-tdep.c (s390_return_value): Likewise.
5001 * score-tdep.c (score_return_value): Likewise.
5002 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5003 (sh_return_value_fpu): Likewise.
5004 * sh64-tdep.c (sh64_return_value): Likewise.
5005 * sparc-tdep.c (sparc32_return_value): Likewise.
5006 * sparc64-tdep.c (sparc64_return_value): Likewise.
5007 * spu-tdep.c (spu_return_value): Likewise.
5008 * tic6x-tdep.c (tic6x_return_value): Likewise.
5009 * v850-tdep.c (v850_return_value): Likewise.
5010 * vax-tdep.c (vax_return_value): Likewise.
5011 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5012 * xtensa-tdep.c (xtensa_return_value): Likewise.
5013 * gdbarch.c: Regenerate.
5014 * gdbarch.h: Regenerate.
5016 2012-05-15 Tom Tromey <tromey@redhat.com>
5018 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5020 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5022 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5023 of command in two error message.
5025 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5027 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5029 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5031 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5033 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5035 * NEWS (show auto-load scripts-directory): Add forgotten command.
5037 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5039 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5042 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5044 * amd64-tdep.c: Include features/i386/x32.c and
5045 features/i386/x32-avx.c.
5046 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5047 initialize_tdesc_x32_avx.
5049 2012-05-14 Stan Shebs <stan@codesourcery.com>
5052 * breakpoint.h (enum bptype): New type bp_dprintf.
5053 (struct breakpoint): New field extra_string.
5054 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5055 (create_breakpoint): Add extra_string arg.
5056 * breakpoint.c (dprintf_breakpoint_ops): New.
5057 (is_breakpoint): Add bp_dprintf.
5058 (bpstat_what): Add dprintf case.
5059 (bptype_string): Ditto.
5060 (print_one_breakpoint_location): Ditto.
5061 (init_bp_location): Ditto.
5062 (bkpt_print_mention): Ditto.
5063 (dprintf_style_enums): New array.
5064 (dprintf_style): New global.
5065 (dprintf_function): New global.
5066 (dprintf_channel): New global.
5067 (update_dprintf_command_list): New function.
5068 (update_dprintf_commands): New function.
5069 (init_breakpoint_sal): Add extra_string argument, handle it.
5070 (create_breakpoint_sal): Add extra_string argument.
5071 (create_breakpoints_sal): Add extra_string argument, update callers.
5072 (find_condition_and_thread): Add extra argument.
5073 (create_breakpoint): Add extra_string argument, record it.
5074 (dprintf_command): New function.
5075 (break_command_1): Add arg to create_breakpoint call.
5076 (handle_gnu_v3_exceptions): Ditto.
5077 (trace_command): Ditto.
5078 (ftrace_command): Ditto.
5079 (strace_command): Ditto.
5080 (bkpt_print_mention): Add dprintf case.
5081 (create_breakpoint_sal_default): Add extra_string argument.
5082 (_initialize_breakpoint): Add new commands.
5083 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5084 * python/py-breakpoint.c (bppy_init): Ditto.
5085 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5087 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5089 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5091 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5093 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5096 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5098 Add a new function gdb.find_pc_line to the Python API.
5099 * NEWS (Python Scripting): Add entry about the new function.
5100 * python/python.c (gdbpy_find_pc_line): New function which
5101 implements gdb.find_pc_line.
5102 (GdbMethods): Add entry for the new function.
5104 2012-05-12 Pedro Alves <palves@redhat.com>
5106 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5107 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5109 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5111 * inferior.c: Include completer.h
5112 (initialize_inferiors): Set completer of add-inferior to
5115 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5117 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5118 gdbarch_ptr_bit for x32 core dump.
5120 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5122 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5123 and features/i386/x32-avx-linux.c.
5125 2012-05-11 Stan Shebs <stan@codesourcery.com>
5126 Kwok Cheung Yeung <kcy@codesourcery.com>
5128 * NEWS: Describe new info os commands.
5129 * common/linux-osdata.c (PID_T, TIME_T): Define.
5130 (MAX_PID_T_STRLEN): New.
5131 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5133 (command_from_pid): Add comment. Change to use PID_T.
5134 (commandline_from_pid): Change to use PID_T.
5135 (user_from_pid): Add comment.
5136 (get_process_owner): Add comment. Change to use PID_T and
5138 (get_number_of_cpu_cores): Add comment.
5139 (get_cores_used_by_process): Add comment. Change to use PID_T and
5141 (linux_xfer_osdata_processes): Change to use PID_T and
5143 (compare_processes): New function.
5144 (linux_xfer_osdata_processgroups): New function.
5145 (linux_xfer_osdata_threads): Change to use PID_T.
5146 (linux_xfer_osdata_fds): New function.
5147 (format_socket_state, print_sockets): New functions.
5148 (union socket_addr): New union.
5149 (linux_xfer_osdata_isockets): New function.
5150 (time_from_time_t, group_from_gid): New functions.
5151 (linux_xfer_osdata_shm): New function.
5152 (linux_xfer_osdata_sem): New function.
5153 (linux_xfer_osdata_msg): New function.
5154 (linux_xfer_osdata_modules): New function.
5155 (osdata_table): Add new entries.
5156 * common/buffer.c (buffer_xml_printf): Add support for long and
5157 long long format specifiers.
5159 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5161 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5162 (tdesc_x32_avx_linux): Likewise.
5164 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5166 Implement multi-component --with-auto-load-dir.
5167 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5169 (--with-auto-load-safe-path): Update the default value description.
5170 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5172 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5173 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5174 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5175 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5176 "set auto-load scripts-directory".
5177 * config.in: Regenerate.
5178 * configure: Regenerate.
5179 * configure.ac (--with-auto-load-dir): New configure option.
5180 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5182 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5184 Provide $ddir substitution for --with-auto-load-safe-path.
5185 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5187 * auto-load.c: Include observer.h.
5188 (auto_load_safe_path_vec_update): Call substitute_path_component for
5189 each component. New variable ddir_subst.
5190 (auto_load_gdb_datadir_changed): New function.
5191 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5192 AUTO_LOAD_SAFE_PATH. New comment.
5193 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5194 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5195 * config.in: Regenerate.
5196 * configure: Regenerate.
5197 * configure.ac (--auto-load-safe-path): Rename
5198 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5199 GDB_DATADIR/auto-load.
5200 * defs.h (substitute_path_component): New declaration.
5201 * top.c: Include observer.h.
5202 (set_gdb_datadir): New function.
5203 (init_main): Install it for "set data-directory".
5204 * utils.c (substitute_path_component): New function.
5206 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5208 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5209 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5210 DEBUG_FILE_DIRECTORY. Handle multiple components of
5211 DEBUG_FILE_DIRECTORY.
5213 2012-05-10 Tom Tromey <tromey@redhat.com>
5215 * dwarf2read.c (recursively_write_psymbols): New function.
5216 (write_psymtabs_to_index): Use it.
5218 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5220 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5221 (load_partial_comp_unit): Update.
5222 (queue_comp_unit): Add argument 'pretend_language'.
5223 (process_queue): Update.
5224 (psymtab_to_symtab_1): Skip dependencies that have a user.
5225 (load_partial_comp_unit_reader): Give meaning to the 'data'
5227 (load_full_comp_unit): Add 'pretend_language' argument.
5228 (process_full_comp_unit): Add 'pretend_language' argument. Set
5230 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5232 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5233 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5235 (prepare_one_comp_unit): Add 'pretend_language' argument.
5237 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5238 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5239 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5240 (dw2_do_instantiate_symtab): Check whether symtab was read in
5242 (dw2_instantiate_symtab): Add assertion. Call
5243 process_cu_includes.
5244 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5245 (partial_symtab_p): New typedef.
5246 (set_partial_user): New function.
5247 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5248 (scan_partial_symbols): Add imported CU to imported_symtabs.
5249 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5250 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5251 (get_symtab, recursively_compute_inclusions)
5252 (compute_symtab_includes, process_cu_includes)
5253 (process_imported_unit_die): New functions.
5254 (process_die) <DW_TAG_imported_unit>: New case.
5255 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5257 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5259 (struct partial_die_info) <locdesc>: Remove.
5261 (process_psymtab_comp_unit): Add 'read_partial' argument.
5263 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5264 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5265 (add_partial_symbol): Update.
5266 (process_die): Handle DW_TAG_partial_unit.
5267 (read_file_scope): Update comment.
5268 (load_partial_dies): Handle DW_TAG_imported_unit.
5269 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5270 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5272 2012-05-10 Tom Tromey <tromey@redhat.com>
5274 * cc-with-dwz.sh: New file.
5276 2012-05-10 Tom Tromey <tromey@redhat.com>
5278 * symtab.h (struct symtab) <includes, user>: New fields.
5279 * block.h (struct block_iterator) <d, idx, which>: New fields.
5280 * block.c (initialize_block_iterator, find_iterator_symtab)
5281 (block_iterator_step, block_iter_name_step)
5282 (block_iter_match_step): New functions.
5283 (block_iterator_first, block_iterator_next)
5284 (block_iter_name_first, block_iter_name_next)
5285 (block_iter_match_first, block_iter_match_next): Rewrite.
5286 (get_block_symtab): New function.
5288 2012-05-10 Tom Tromey <tromey@redhat.com>
5290 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5292 * jit.c (finalize_symtab): Use allocate_global_block,
5294 * buildsym.c (finish_block_internal): New function, from old
5296 (finish_block): Rewrite.
5297 (end_symtab): Use finish_block_internal, set_block_symtab.
5298 * block.h (struct global_block): New.
5299 (allocate_global_block, set_block_symtab): Declare.
5300 * block.c (allocate_global_block, set_block_symtab): New
5303 2012-05-10 Tom Tromey <tromey@redhat.com>
5305 * psymtab.c (partial_map_expand_apply): Add assertion.
5306 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5307 (psymtab_to_symtab): Find unshared psymtab.
5308 (dump_psymtab): Print including psymtabs.
5309 (recursively_search_psymtabs): New function.
5310 (expand_symtabs_matching_via_partial): Use it.
5311 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5313 (enum psymtab_search_status): New.
5315 2012-05-10 Tom Tromey <tromey@redhat.com>
5317 * tracepoint.c (scope_info): Update.
5318 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5319 (find_pc_sect_symtab, search_symbols)
5320 (default_make_symbol_completion_list_break_on)
5321 (make_file_symbol_completion_list): Update.
5322 * symmisc.c (dump_symtab_1): Update.
5323 * stack.c (print_frame_args, iterate_over_block_locals)
5324 (print_frame_labels, iterate_over_block_arg_vars): Update.
5325 * python/py-block.c (block_object) <dict>: Remove.
5327 <iter>: Change type.
5328 (blpy_iter): Update.
5329 (blpy_block_syms_iternext): Update.
5330 * psymtab.c (map_block): Use block iterators.
5331 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5332 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5333 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5334 * infrun.c (check_exception_resume): Update.
5335 * cp-support.c (make_symbol_overload_list_block): Update.
5336 * coffread.c (patch_opaque_types): Update.
5337 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5338 * block.h (struct block_iterator): New.
5339 (block_iterator_first, block_iterator_next, block_iter_name_first)
5340 (block_iter_name_next, block_iter_match_first)
5341 (block_iter_match_next): Declare.
5342 (ALL_BLOCK_SYMBOLS): Redefine.
5343 * block.c (block_iterator_first, block_iterator_next)
5344 (block_iter_name_first, block_iter_name_next)
5345 (block_iter_match_first, block_iter_match_next): New functions.
5346 * ada-lang.c (ada_add_block_symbols)
5347 (ada_make_symbol_completion_list): Use block iterator.
5349 2012-05-10 Tom Tromey <tromey@redhat.com>
5351 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5352 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5353 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5354 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5355 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5358 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5360 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5361 print-file-var-lib2.c, print-file-var-main.c and
5362 print-file-var.exp (located in gdb/testsuite/gdb.base).
5364 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5366 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5367 try locating the symbol in the symbol's own objfile first, before
5368 extending the search to all objfiles.
5369 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5370 out of lookup_symbol_aux_symtabs.
5371 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5372 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5373 Do not search EXCLUDE_OBJFILE.
5374 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5375 (lookup_symbol_global): Search for matches in the block's objfile
5376 first, before searching all other objfiles.
5378 2012-05-10 Tristan Gingold <gingold@adacore.com>
5380 * printcmd.c (set_command): Add pre/post inc/dec.
5382 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5384 * gdb.1: Document -ex option.
5386 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5388 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5389 * inferior.h (AT_SYMBOL): Delete.
5391 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5393 * mips-tdep.c (mips_push_dummy_code): New function.
5394 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5395 ON_STACK and install mips_push_dummy_code as our gdbarch
5396 push_dummy_code routine.
5398 2012-05-09 Pedro Alves <palves@redhat.com>
5400 * target.c (set_maintenance_target_async_permitted): Rename to ...
5401 (set_target_async_command): ... this.
5402 (show_maintenance_target_async_permitted): Rename to ...
5403 (show_target_async_command): ... this.
5404 (initialize_targets): Adjust.
5406 2012-05-08 Doug Evans <dje@google.com>
5408 * go-exp.y (classify_name): Add missing assignment of fields of
5411 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5413 Display the ">" prompt in interactive mode while reading canned
5414 commands, even when the current interpreter is MI.
5416 * interps.c (interp_set_temp): New function.
5418 * interps.h (interp_set_temp): Add prototype.
5420 * cli/cli-script.c (restore_interp): New cleanup function.
5421 (read_command_lines): Temporarily override the current interpreter
5422 with CLI and arrange for restoring the original one.
5424 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5426 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5428 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5430 * probe.c (parse_probes): Move conditional to check for
5431 debuginfo files from here...
5432 * stap-probe.c (stap_get_probes): ... to here.
5434 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5435 H.J. Lu <hongjiu.lu@intel.com>
5437 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5438 `movl %esp, %ebp' for the X32 ABI.
5440 2012-05-07 Tom Tromey <tromey@redhat.com>
5442 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5444 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5445 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5446 (dwarf_stack_op_name): Remove.
5447 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5448 (decode_locdesc): Use get_DW_OP_name.
5449 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5450 (dwarf2_compile_expr_to_ax): Likewise.
5451 (disassemble_dwarf_expression): Likewise.
5452 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5454 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5456 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5457 (sh_linux_sigtramp_cache): New function.
5458 (sh_linux_sigreturn_init): New function.
5459 (sh_linux_rt_sigreturn_init): New function.
5460 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5462 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5464 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5465 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5466 (sh_linux_init_abi): Add init calls to register new tramp_frame
5467 definitions under 32-bit SH, update comments.
5469 2012-05-07 Pedro Alves <palves@redhat.com>
5473 * amd64-linux-tdep.c: Include glibc-tdep.h.
5474 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5475 gdbarch_skip_solib_resolver callback.
5477 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5479 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5480 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5481 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5482 (add_auto_load_safe_path): Change the error message.
5483 (_initialize_auto_load): Change the "safe-path" help text.
5484 * configure: Regenerate
5485 * configure.ac (--without-auto-load-safe-path): Set
5486 WITH_AUTO_LOAD_SAFE_PATH to /.
5488 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5490 * stap-probe.h: Do not include unecessary `probe.h'.
5492 2012-05-05 Alan Modra <amodra@gmail.com>
5494 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5495 bfd_und_section_ptr.
5496 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5497 and bfd_com_section_ptr.
5499 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5501 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5503 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5505 * windows-nat.h (segment_register_p_ftype): New typedef.
5506 (windows_set_segment_register_p): Add declaration.
5507 * windows-nat.c (segment_register_p): New static global.
5508 (windows_set_segment_register_p): New function.
5509 (do_windows_fetch_inferior_registers): Add special handling
5510 for segment registers.
5511 * amd64-windows-nat.c: #include "amd64-tdep.h".
5512 (amd64_windows_segment_register_p): New function.
5513 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5514 * i386-windows-nat.c: #include "i386-tdep.h".
5515 (i386_windows_segment_register_p): New function.
5516 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5518 2012-05-04 Tristan Gingold <gingold@adacore.com>
5520 * printcmd.c (set_command): Emit a warning if the expression is not
5523 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5525 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5528 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5530 * stap-probe.c (stap_is_operator): Change declaration.
5531 (stap_get_opcode): Change return value.
5532 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5533 `stap_parse_argument_1'.
5535 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5537 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5540 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5542 Add two new methods global_block and static_block to gdb.Symtab
5544 * NEWS (Python scripting): Add entry about the new methods.
5545 * python/py-symtab.c (stpy_global_block): New function which
5546 implements the gdb.Symtab.global_block() method.
5547 (stpy_static_block): New function which implements the
5548 gdb.Symtab.static_block() method.
5549 (symtab_object_methods): Add entries for the two new methods.
5551 2012-05-03 Doug Evans <dje@google.com>
5553 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5556 2012-05-03 Yao Qi <yao@codesourcery.com>
5558 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5560 (i386_process_record): Ditto.
5562 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5564 * infcall.c (unwind_on_signal_p): Make static.
5566 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5568 * sol-thread.c (solaris_pid_to_str): Make static.
5569 (_initialize_sol_thread): Add prototype.
5571 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5573 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5575 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5577 * MAINTAINERS: Remove myself.
5579 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5581 Fix --without-auto-load-safe-path for MS-Windows host platform.
5582 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5584 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5586 * gdb_curses.h: Undefine KEY_EVENT before including curses
5587 headers. Move "#undef MOUSE_MOVED" before any curses header
5590 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5592 * features/i386/i386-mmx-linux.c: Regenerate.
5593 * features/rs6000/powerpc-32.c: Likewise.
5594 * features/rs6000/powerpc-32l.c: Likewise.
5595 * features/rs6000/powerpc-403.c: Likewise.
5596 * features/rs6000/powerpc-403gc.c: Likewise.
5597 * features/rs6000/powerpc-405.c: Likewise.
5598 * features/rs6000/powerpc-505.c: Likewise.
5599 * features/rs6000/powerpc-601.c: Likewise.
5600 * features/rs6000/powerpc-602.c: Likewise.
5601 * features/rs6000/powerpc-603.c: Likewise.
5602 * features/rs6000/powerpc-604.c: Likewise.
5603 * features/rs6000/powerpc-64.c: Likewise.
5604 * features/rs6000/powerpc-64l.c: Likewise.
5605 * features/rs6000/powerpc-750.c: Likewise.
5606 * features/rs6000/powerpc-860.c: Likewise.
5607 * features/rs6000/powerpc-e500.c: Likewise.
5608 * features/rs6000/powerpc-e500l.c: Likewise.
5609 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5610 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5611 * features/rs6000/rs6000.c: Likewise.
5613 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5615 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5617 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5618 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5619 (stap_parse_argument) <e>: Likewise.
5620 (handle_stap_probe) <byte_order>: Likewise.
5622 2012-04-30 Doug Evans <dje@google.com>
5624 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5625 init_and_read_dies_worker. All callers updated.
5626 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5627 replaced with init_cutu_and_read_dies.
5628 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5629 (find_partial_die): Remove FIXME. Don't free current CU.
5631 2012-04-30 Sterling Augustine <saugustine@google.com>
5633 * contrib: New directory.
5634 * contrib/test_pubnames_and_indexes.py: New file.
5636 2012-04-30 Doug Evans <dje@google.com>
5638 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5639 All callers updated.
5640 (init_cu_die_reader): Verify the section is non-empty.
5641 (dwarf_decode_line_header): Don't dereference section->asection
5642 until we know the section is present.
5644 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5646 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5649 2012-04-29 Yao Qi <yao@codesourcery.com>
5651 * gdb-code-style.el: New hook gdb-markup-hook
5652 and gdb-comment-hook.
5654 2012-04-28 Doug Evans <dje@google.com>
5656 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5657 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5659 * symfile.h (dwarf2_debug_sections): New member addr.
5660 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5661 (ctx_no_get_addr_index): New function.
5662 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5663 (ctx_no_get_addr_index): Declare.
5664 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5665 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5666 (dwarf_expr_ctx_funcs): Update.
5667 (needs_get_addr_index): New function.
5668 (needs_frame_ctx_funcs): Update.
5669 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5670 * dwarf2read.c: #include "gdbcore.h".
5671 (dwarf2_per_objfile): New members addr, dwo_files.
5672 (dwarf2_elf_names): Add entry for addr.
5673 (struct dwo_section_names): New type.
5674 (dwo_section_names): New static global.
5675 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5676 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5677 old debug_types_section member updated to use this.
5678 Rename member debug_types_section to info_or_types_section,
5680 (signatured_type): Rename member type_offset to type_offset_in_tu,
5681 all uses updated. New member type_offset_in_section.
5682 (struct dwo_sections): New type.
5683 (struct dwo_unit): New type.
5684 (struct dwo_file): New type.
5685 (die_reader_specs): New member dwo_file.
5686 (dwarf2_locate_sections): Watch for .debug_addr.
5687 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5688 (dwarf2_read_section): Get bfd of section from bfd's asection,
5690 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5691 (create_signatured_type_table_from_index): Initialize
5692 sig_type->info_or_types_section.
5693 (dw2_get_file_names): Statement lists for type units with DWO files
5694 live in the DWO file.
5695 (create_debug_types_hash_table): New function.
5696 (create_all_type_units): Rewrite.
5697 (init_cu_die_reader): New arg dwo_file, all callers updated.
5698 (init_and_read_dies_worker): Get section from
5699 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5700 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5701 continue reading the CU/TU from there.
5702 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5703 updated. Get section from this_cu->info_or_types_section.
5704 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5705 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5706 DW_FORM_GNU_str_index.
5707 (hash_dwo_file, eq_dwo_file): New functions.
5708 (allocate_dwo_file_hash_table): New function.
5709 (hash_dwo_unit, eq_dwo_unit): New functions.
5710 (allocate_dwo_unit_table): New function.
5711 (dwarf2_locate_dwo_sections): New function.
5712 (struct create_dwo_info_table_data): New type.
5713 (create_debug_info_hash_table_reader): New function.
5714 (create_debug_info_hash_table): New function.
5715 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5716 (lookup_dwo_file): New function.
5717 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5718 (free_dwo_file, free_dwo_file_cleanup): New functions.
5719 (free_dwo_file_from_slot, free_dwo_files): New functions.
5720 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5721 (dwarf2_record_block_ranges): Ditto.
5722 (read_partial_die): Ditto.
5723 (process_enumeration_scope): Update to use type_offset_in_section.
5724 (read_full_die_1): New function.
5725 (read_full_die): Rewrite.
5726 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5727 DW_FORM_GNU_str_index.
5728 (read_addr_index_1, read_addr_index): New functions.
5729 (read_addr_index_from_leb128): New function.
5730 (struct dwarf2_read_addr_index_data): New type.
5731 (dwarf2_read_addr_index_reader): New function.
5732 (dwarf2_read_addr_index): New function.
5733 (read_str_index): New function.
5734 (leb128_size): New function.
5735 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5736 If processing a type unit from a DWO file, get the line section
5738 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5739 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5740 DW_FORM_GNU_str_index.
5741 (lookup_die_type): Check whether section offset of type's die is
5742 known before looking it up. Remove assert. Condition can
5743 legimately happen for inter-cu type references.
5744 (dwarf_attr_name): Handle Fission attributes.
5745 (dwarf_form_name): Handle Fission forms.
5746 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5747 DW_FORM_GNU_str_index.
5748 (follow_die_sig): Update to use type_offset_in_section.
5749 (decode_locdesc): New case DW_OP_GNU_addr_index.
5750 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5751 DW_FORM_GNU_str_index.
5752 (cu_debug_loc_section): New function.
5753 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5754 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5755 Free DWO files if present.
5756 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5758 Refactor DIE reading.
5759 * dwarf2read.c (dwarf2_per_objfile): Replace members
5760 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5761 (die_reader_specs): New member "die_section". Temporarily make
5762 member "buffer" non-const, pending constifying all info_ptr uses.
5763 (die_reader_func_ftype): New typedef.
5764 (dw2_get_file_names_reader): New function.
5765 (dw2_get_file_names): Rewrite.
5766 (read_and_check_type_unit_head): Rename arg type_offset to
5768 (create_all_type_units): Improve debugging message.
5769 Improve dummy type unit check.
5770 (init_cu_die_reader): New arg "section". All callers updated.
5771 (init_and_read_dies_worker): New function.
5772 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5773 (init_cutu_and_read_dies_no_follow): New function.
5774 (init_cutu_and_read_dies_simple): New function.
5775 (process_psymtab_comp_unit_reader): New function.
5776 (process_psymtab_comp_unit): Delete args section,
5777 is_debug_types_section. Rewrite. All callers updated.
5778 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5779 All callers updated. Rewrite.
5780 (load_partial_comp_unit_reader): New function.
5781 (load_partial_comp_unit): Rewrite.
5782 (skip_children): New arg reader. Delete args buffer, cu.
5783 All callers updated.
5784 (skip_one_die): New arg reader. Delete args buffer, cu.
5785 All callers updated.
5786 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5787 All callers updated.
5788 (load_full_comp_unit_reader): New function.
5789 (load_full_comp_unit): Rewrite.
5790 (read_comp_unit): Delete.
5791 (read_die_and_children_1): Delete, contents moved ...
5792 (read_die_and_children): ... here.
5793 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5794 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5795 All callers updated.
5796 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5797 All callers updated.
5798 (find_partial_die): Rewrite load_all_dies support.
5799 (read_attribute_value): New arg reader. Delete args abfd, cu.
5800 All callers updated.
5801 (read_attribute): New arg reader. Delete args abfd, cu.
5802 All callers updated.
5803 (load_full_type_unit): Add assert.
5804 (read_signatured_type_reader): New function.
5805 (read_signatured_type): Rewrite.
5806 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5807 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5808 All callers updated. Set per_cu->cu = NULL after freeing it.
5809 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5810 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5811 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5812 (set_die_type): Update.
5813 (get_die_type_at_offset): Update.
5814 (read_file_scope): Call prepare_one_comp_unit.
5815 (read_type_unit_scope): Ditto.
5816 (prepare_one_comp_unit): Set producer if present.
5818 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5820 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5821 gettext function on `error'.
5823 2012-04-27 Doug Evans <dje@google.com>
5825 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5828 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5829 Tom Tromey <tromey@redhat.com>
5831 * breakpoint.c (struct breakpoint_objfile_data)
5832 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5833 <exception_probes>: New fields.
5834 (free_breakpoint_probes): New function.
5835 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5836 `_Unwind_DebugHook'.
5837 (create_exception_master_breakpoint): Likewise.
5838 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5839 * infrun.c: Including necessary header files for handling SystemTap
5841 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5842 via SystemTap probes.
5843 (check_exception_resume): Remove `func' argument. Handle exception
5844 unwinding breakpoint set via a SystemTap probe.
5845 (insert_exception_resume_from_probe): New function.
5847 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5848 Tom Tromey <tromey@redhat.com>
5849 Jan Kratochvil <jan.kratochvil@redhat.com>
5851 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5852 (COMMON_OBS): Likewise.
5853 (HFILES_NO_SRCDIR): Add `probe'.
5854 * NEWS: Mention support for static and SystemTap probes.
5855 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5856 SystemTap probes' arguments parser.
5857 * arm-linux-tdep.c: Including headers needed to perform the parsing
5858 of SystemTap probes' arguments.
5859 (arm_stap_is_single_operand): New function.
5860 (arm_stap_parse_special_token): Likewise.
5861 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5862 probes' arguments parser.
5863 * ax-gdb.c (require_rvalue): Removing static declaration.
5864 (gen_expr): Likewise.
5865 * ax-gdb.h (gen_expr): Declaring function.
5866 (require_rvalue): Likewise.
5867 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5868 (bkpt_probe_breakpoint_ops): New variable.
5869 (momentary_breakpoint_from_master): Set the `probe' value.
5870 (add_location_to_breakpoint): Likewise.
5871 (break_command_1): Using proper breakpoint_ops according to the
5872 argument passed by the user in the command line.
5873 (bkpt_probe_insert_location): New function.
5874 (bkpt_probe_remove_location): Likewise.
5875 (bkpt_probe_create_sals_from_address): Likewise.
5876 (bkpt_probe_decode_linespec): Likewise.
5877 (tracepoint_probe_create_sals_from_address): Likewise.
5878 (tracepoint_probe_decode_linespec): Likewise.
5879 (tracepoint_probe_breakpoint_ops): New variable.
5880 (trace_command): Using proper breakpoint_ops according to the
5881 argument passed by the user in the command line.
5882 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5883 static probes on breakpoints and tracepoints.
5884 * breakpoint.h (struct bp_location) <probe>: New field.
5885 * cli-utils.c (skip_spaces_const): New function.
5886 (extract_arg): Likewise.
5887 * cli-utils.h (skip_spaces_const): Likewise.
5888 (extract_arg): Likewise.
5889 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5890 * configure.ac: Append `stap-probe.o' to be generated when ELF
5892 * configure: Regenerate.
5893 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5894 * elfread.c: Include `probe.h' and `arch-utils.h'.
5895 (probe_key): New variable.
5896 (elf_get_probes): New function.
5897 (elf_get_probe_argument_count): Likewise.
5898 (elf_evaluate_probe_argument): Likewise.
5899 (elf_compile_to_ax): Likewise.
5900 (elf_symfile_relocate_probe): Likewise.
5901 (stap_probe_key_free): Likewise.
5902 (elf_probe_fns): New variable.
5903 (elf_sym_fns): Add `sym_probe_fns' value.
5904 (elf_sym_fns_lazy_psyms): Likewise.
5905 (elf_sym_fns_gdb_index): Likewise.
5906 (_initialize_elfread): Initialize objfile cache for static
5908 * gdb_vecs.h (struct probe): New forward declaration.
5909 (probe_p): New VEC declaration.
5910 * gdbarch.c: Regenerate.
5911 * gdbarch.h: Regenerate.
5912 * gdbarch.sh (stap_integer_prefix): New variable.
5913 (stap_integer_suffix): Likewise.
5914 (stap_register_prefix): Likewise.
5915 (stap_register_suffix): Likewise.
5916 (stap_register_indirection_prefix): Likewise.
5917 (stap_register_indirection_suffix): Likewise.
5918 (stap_gdb_register_prefix): Likewise.
5919 (stap_gdb_register_suffix): Likewise.
5920 (stap_is_single_operand): New function.
5921 (stap_parse_special_token): Likewise.
5922 (struct stap_parse_info): Forward declaration.
5923 * i386-tdep.c: Including headers needed to perform the parsing
5924 of SystemTap probes' arguments.
5925 (i386_stap_is_single_operand): New function.
5926 (i386_stap_parse_special_token): Likewise.
5927 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5928 probes' arguments parser.
5929 * i386-tdep.h (i386_stap_is_single_operand): New function.
5930 (i386_stap_parse_special_token): Likewise.
5931 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5932 * mipsread.c (ecoff_sym_fns): Likewise.
5933 * objfiles.c (objfile_relocate1): Support relocation for static
5935 * parse.c (prefixify_expression): Remove static declaration.
5936 (initialize_expout): Likewise.
5937 (reallocate_expout): Likewise.
5938 * parser-defs.h (initialize_expout): Declare function.
5939 (reallocate_expout): Likewise.
5940 (prefixify_expression): Likewise.
5941 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5942 of SystemTap probes' arguments.
5943 (ppc_stap_is_single_operand): New function.
5944 (ppc_stap_parse_special_token): Likewise.
5945 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5946 probes' arguments parser.
5947 * probe.c: New file, for generic statically defined probe support.
5948 * probe.h: Likewise.
5949 * s390-tdep.c: Including headers needed to perform the parsing of
5950 SystemTap probes' arguments.
5951 (s390_stap_is_single_operand): New function.
5952 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5953 probes' arguments parser.
5954 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5955 * stap-probe.c: New file, for SystemTap probe support.
5956 * stap-probe.h: Likewise.
5957 * symfile.h: Include `gdb_vecs.h'.
5958 (struct sym_probe_fns): New struct.
5959 (struct sym_fns) <sym_probe_fns>: New field.
5960 * symtab.c (init_sal): Initialize `probe' field.
5961 * symtab.h (struct probe): Forward declaration.
5962 (struct symtab_and_line) <probe>: New field.
5963 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5965 (stop_tracing): Likewise.
5966 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5968 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5969 Tom Tromey <tromey@redhat.com>
5971 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5972 and to compile agent expressions.
5973 * infrun.c (siginfo_make_value): New argument `ignore'.
5974 (siginfo_funcs): New struct.
5975 (_initialize_infrun): New argument when calling
5976 `create_internalvar_type_lazy'.
5977 * thread.c (thread_id_make_value): New argument `ignore'.
5978 (thread_funcs): New struct.
5979 (_initialize_thread): New argument when calling
5980 `create_internalvar_type_lazy'.
5981 * tracepoint.c (sdata_make_value): New argument `ignore'.
5982 (sdata_funcs): New struct.
5983 (_initialize_tracepoint): New argument when calling
5984 `create_internalvar_type_lazy'.
5985 * value.c (make_value): New struct.
5986 (create_internalvar_type_lazy): New argument `data'.
5987 (compile_internalvar_to_ax): New function.
5988 (value_of_internalvar): Properly handling `make_value' case.
5989 (clear_internalvar): Likewise.
5990 (show_convenience): Adding `TRY_CATCH' block.
5991 * value.h (internalvar_make_value): Delete, replace by...
5992 (struct internalvar_funcs): ... this.
5993 (create_internalvar_type_lazy) <fun>: Delete argument.
5994 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5995 (compile_internalvar_to_ax): New function.
5996 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5997 (tlb_funcs): New struct.
5998 (_initialize_windows_tdep): New argument when calling
5999 `create_internalvar_type_lazy'.
6001 2012-04-27 Mark Wielaard <mjw@redhat.com>
6003 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6004 see whether it is an address or a constant offset from DW_AT_low_pc.
6005 (dwarf2_record_block_ranges): Likewise.
6006 (read_partial_die): Likewise.
6008 2012-04-26 Mark Wielaard <mjw@redhat.com>
6010 * MAINTAINERS (Write After Approval): Add myself to the list.
6012 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6014 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6015 (proc_prettyprint_signal): Likewise.
6016 (proc_prettyprint_faultset): Likewise.
6017 (proc_prettyprint_fault): Likewise.
6018 (proc_prettyprint_actionset): Likewise.
6019 (proc_prettyprint_flags): Move to new proc-flags.c section.
6020 (proc_prettyfprint_flags): New prototype.
6021 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6022 (proc_syscall, proc_cursig): Likewise.
6023 (proc_set_kill_on_last_close): Likewise.
6024 (proc_unset_kill_on_last_close): Likewise.
6025 (proc_set_watchpoint): Make static.
6026 (proc_delete_dead_threads): Likewise.
6027 (procfs_set_watchpoint): Likewise.
6028 (_initialize_procfs): Add prototype.
6029 * proc-events.c: Include proc-utils.h.
6030 (init_syscall_table): Make static.
6031 * proc-api.c (_initialize_proc_api): Add prototype.
6032 * proc-flags.c: Include proc-utils.h.
6034 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6036 * configure.ac: Add AC_ARG_PROGRAM.
6037 * configure: Regenerate.
6039 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6041 Fix DW_AT_lower_bound defaults for DWARF-4+.
6042 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6043 high. New variable low_default_is_valid. Implement DWARF-4+
6044 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6045 no default by the DWARF standard.
6047 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6048 Maciej W. Rozycki <macro@codesourcery.com>
6050 * infrun.c (handle_inferior_event): Move the check for return
6051 trampolines ahead of the check for function trampolines.
6052 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6053 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6054 (mips_str_mips16_ret_stub): Likewise.
6055 (mips_str_call_fp_stub): Likewise.
6056 (mips_str_call_stub): Likewise.
6057 (mips_str_fn_stub): Likewise.
6058 (mips_str_pic): Likewise.
6059 (mips_in_frame_stub): New function.
6060 (mips_unwind_pc): Return the return address rather than the PC
6061 if the PC of an intermediate frame is inside a call thunk.
6062 (mips_is_stub_suffix): New function.
6063 (mips_is_stub_mode): Likewise.
6064 (mips_get_mips16_fn_stub_pc): Likewise.
6065 (mips_skip_mips16_trampoline_code): Update to handle all the
6066 currently generated stub types. Don't recurse into __fn_stub
6067 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6068 Use cooked register accesses.
6069 (mips_in_return_stub): Reintroduce function.
6070 (mips_skip_trampoline_code): Traverse trampolines recursively.
6071 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6073 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6077 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6079 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6080 * features/arm-with-m-vfp-d16.xml: New file. Describes
6081 Cortex-M with VFPv4-sp-d16 FPU register layout.
6082 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6083 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6084 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6085 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6086 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6088 2012-04-25 Doug Evans <dje@google.com>
6090 * cli/cli-decode.c (print_doc_line): Use stream instead of
6093 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6095 * features/arm-with-iwmmxt.c: Regenerate.
6096 * features/arm-with-m-fpa-layout.c: Likewise.
6097 * features/arm-with-m.c: Likewise.
6098 * features/arm-with-neon.c: Likewise.
6099 * features/arm-with-vfpv2.c: Likewise.
6100 * features/arm-with-vfpv3.c: Likewise.
6101 * features/mips-dsp-linux.c: Likewise.
6102 * features/mips-linux.c: Likewise.
6103 * features/mips64-dsp-linux.c: Likewise.
6104 * features/mips64-linux.c: Likewise.
6105 * features/s390-linux32.c: Likewise.
6106 * features/s390-linux32v1.c: Likewise.
6107 * features/s390-linux32v2.c: Likewise.
6108 * features/s390-linux64.c: Likewise.
6109 * features/s390-linux64v1.c: Likewise.
6110 * features/s390-linux64v2.c: Likewise.
6111 * features/s390x-linux64.c: Likewise.
6112 * features/s390x-linux64v1.c: Likewise.
6113 * features/s390x-linux64v2.c: Likewise.
6114 * features/tic6x-c62x-linux.c: Likewise.
6115 * features/tic6x-c62x.c: Likewise.
6116 * features/tic6x-c64x-linux.c: Likewise.
6117 * features/tic6x-c64x.c: Likewise.
6118 * features/tic6x-c64xp-linux.c: Likewise.
6119 * features/tic6x-c64xp.c: Likewise.
6120 * target-descriptions.c: Only generate `field_type' and `type'
6121 variables when needed.
6123 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6125 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6127 2012-04-25 Doug Evans <dje@google.com>
6129 Initial pass at Go language support.
6131 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6133 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6134 (YYFILES): Add go-exp.c.
6135 (YYOBJ): Add go-exp.o.
6136 (local-maintainer-clean): Delete go-exp.c.
6137 * defs.h (enum language): Add language_go.
6138 * dwarf2read.c: #include "go-lang.h".
6139 (fixup_go_packaging): New function.
6140 (process_full_comp_unit): Call it when processing Go CUs.
6141 (dwarf2_physname): Add Go support.
6142 (read_file_scope): Handle missing language spec for GNU Go.
6143 (set_cu_language): Handle DW_LANG_Go.
6144 * go-exp.y: New file.
6145 * go-lang.h: New file.
6146 * go-lang.c: New file.
6147 * go-typeprint.c: New file.
6148 * go-valprint.c: New file.
6149 * symtab.c: #include "go-lang.h".
6150 (symbol_set_language): Handle language_go.
6151 (symbol_find_demangled_name, symbol_set_names): Ditto.
6152 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6154 2012-04-24 Jim Meyering <meyering@redhat.com>
6156 avoid a few strncpy-induced buffer overruns
6157 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6158 fname and psargs before trying to concatenate.
6159 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6160 "name" before applying strchr.
6162 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6164 * CONTRIBUTE: Use unified diff instead of context diff when
6167 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6169 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6170 code. Handle JR.HB correctly.
6172 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6175 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6176 with the other MIPS16 helpers.
6178 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6180 * observer.sh: Conditionally declare `args', thus cleaning up
6181 unused instances of this variable.
6183 2012-04-24 Yao Qi <yao@codesourcery.com>
6185 Revert this patch to allow breakpoint always-inserted
6187 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6188 * breakpoint.c: Include record.h.
6189 (breakpoints_always_inserted_mode): Return false when the record
6192 * breakpoint.c (iterate_over_bp_locations): New.
6193 * breakpoint.h: Declare.
6194 New typedef walk_bp_location_callback.
6195 * record.c (record_open): Call record_init_record_breakpoints.
6196 (record_sync_record_breakpoints): New.
6197 (record_init_record_breakpoints): New.
6198 * NEWS: Mention supporting breakpoint always-inserted mode in
6201 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6203 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6206 2012-04-24 Yao Qi <yao@codesourcery.com>
6208 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6209 (is_catchpoint): ... it.
6210 (print_one_breakpoint_location): Caller update.
6211 * breakpoint.h: Update declaration.
6213 2012-04-23 David S. Miller <davem@davemloft.net>
6215 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6217 2012-04-23 Tom Tromey <tromey@redhat.com>
6219 * buildsym.c (add_free_pendings): Remove.
6220 * buildsym.h (add_free_pendings): Remove.
6222 2012-04-23 Doug Evans <dje@google.com>
6224 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6225 attr.u.unsnd instead of attr.u.addr.
6226 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6227 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6229 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6230 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6232 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6234 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6236 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6237 (mips_o32_return_value): Likewise.
6238 (mips_o64_return_value): Likewise.
6240 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6242 * ada-lang.c (ada_evaluate_subexp): Add cases for
6243 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6244 their treatment in eval.c.
6246 2012-04-21 David S. Miller <davem@davemloft.net>
6248 * sparc-tdep.c (X_DISP10): Define.
6249 (sparc_analyze_control_transfer): Handle compare-and-branch.
6251 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6253 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6254 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6256 2012-04-20 Nigel Stephens <nigel@mips.com>
6257 Maciej W. Rozycki <macro@codesourcery.com>
6259 * mips-tdep.c (mips_float_register_p): New function.
6260 (mips_convert_register_float_case_p): Use mips_float_register_p.
6261 (mips_register_type): Likewise.
6262 (mips_print_register): Likewise.
6263 (print_gp_register_row): Likewise.
6264 (mips_print_registers_info): Likewise.
6266 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6268 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6271 2012-04-20 Andrew Pinski <apinski@cavium.com>
6273 * MAINTAINERS (Write After Approval): Add myself to the list.
6275 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6277 * MAINTAINERS: Update my e-mail address.
6279 2012-04-20 Pedro Alves <palves@redhat.com>
6281 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6283 * configure: Regenerate.
6285 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6287 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6289 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6291 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6293 Fix compilation compatibility with python-2.4
6294 * python/py-type.c (convert_field): Cast ADDRSTRING for
6295 PyObject_SetAttrString as non-const. New comment.
6297 2012-04-19 Tom Tromey <tromey@redhat.com>
6299 * top.c (quit_target): Use all_cleanups.
6300 * main.c (captured_command_loop): Use all_cleanups.
6301 * exceptions.c (throw_exception): Use all_cleanups.
6303 2012-04-19 Pedro Alves <palves@redhat.com>
6305 * Makefile.in (GNULIB_BUILDDIR): New.
6306 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6307 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6308 (CLEANDIRS). Remove gnulib/import.
6309 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6311 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6312 (gnulib/import/Makefile): Replace gnulib/import with
6313 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6314 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6315 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6316 acx_configure_dir.m4.
6317 * acinclude.m4: Include acx_configure_dir.m4.
6318 * acx_configure_dir.m4: New file.
6319 * aclocal.m4: Regenerate.
6320 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6321 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6322 (GNULIB): New variable.
6323 (GNULIB_STDINT_H): Adjust.
6324 (AC_OUTPUT): Don't output gnulib/Makefile.
6325 * gdb/defs.h: Include build-gnulib/config.h.
6326 * aclocal.m4: Regenerate.
6327 * config.in: Regenerate.
6328 * configure: Regenerate.
6330 * gnulib/Makefile.in: New file.
6331 * gnulib/configure.ac: New file.
6332 * gnulib/aclocal.m4: New file.
6333 * gnulib/config.in: New file.
6334 * gnulib/configure: New file.
6335 * gnulib/: Re-run gnulib-tool to adjust.
6337 2012-04-19 Doug Evans <dje@google.com>
6339 * cleanups.h (struct cleanup): Move to cleanups.c.
6340 (make_cleanup_dtor_ftype): New typedef.
6341 (make_cleanup_dtor): Use it.
6342 (ALL_CLEANUPS): Replace with ...
6343 (all_cleanups): ... this. Declare. All uses updated.
6344 * cleanups.c: #include "gdb_assert.h".
6345 (sentinel_cleanup): New static global.
6346 (SENTINEL_CLEANUP): Define.
6347 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6348 (make_my_cleanup2): Assert result is non-NULL.
6349 (all_cleanups): New function.
6350 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6353 2012-04-19 Pedro Alves <palves@redhat.com>
6355 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6356 Adjust paths to gnulib imported files.
6358 2012-04-19 Pedro Alves <palves@redhat.com>
6360 * gnulib/: Move whole directory ...
6361 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6362 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6363 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6364 (aclocal_m4_deps): Adjust.
6365 * aclocal.m4: Regenerate.
6366 * configure: Regenerate.
6367 * configure.ac: Adjust AC_OUTPUT output.
6369 2012-04-19 Yao Qi <yao@codesourcery.com>
6371 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6373 * vec.c: Move it ...
6374 * common/vec.c: ... here.
6375 * vec.h: Move it ...
6376 * common/vec.h: ... here.
6378 2012-04-19 Yao Qi <yao@codesourcery.com>
6380 * gdb-code-style.el: New.
6382 2012-04-18 Pedro Alves <palves@redhat.com>
6384 Update gnulib from latest git.
6385 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6387 * gnulib/Makefile.am: Update.
6388 * gnulib/dummy.c: Update.
6389 * gnulib/extra/arg-nonnull.h: Update.
6390 * gnulib/extra/c++defs.h: Update.
6391 * gnulib/extra/update-copyright: Update.
6392 * gnulib/extra/warn-on-use.h: Update.
6393 * gnulib/inttypes.in.h: Update.
6394 * gnulib/m4/00gnulib.m4: Update.
6395 * gnulib/m4/extensions.m4: Update.
6396 * gnulib/m4/gnulib-cache.m4: Update.
6397 * gnulib/m4/gnulib-common.m4: Update.
6398 * gnulib/m4/gnulib-comp.m4: Update.
6399 * gnulib/m4/gnulib-tool.m4: Update.
6400 * gnulib/m4/include_next.m4: Update.
6401 * gnulib/m4/inttypes-pri.m4: Update.
6402 * gnulib/m4/inttypes.m4: Update.
6403 * gnulib/m4/longlong.m4: Update.
6404 * gnulib/m4/memchr.m4: Update.
6405 * gnulib/m4/memmem.m4: Update.
6406 * gnulib/m4/mmap-anon.m4: Update.
6407 * gnulib/m4/multiarch.m4: Update.
6408 * gnulib/m4/onceonly.m4: Update.
6409 * gnulib/m4/stddef_h.m4: Update.
6410 * gnulib/m4/stdint.m4: Update.
6411 * gnulib/m4/string_h.m4: Update.
6412 * gnulib/m4/warn-on-use.m4: Update.
6413 * gnulib/m4/wchar_h.m4: Update.
6414 * gnulib/m4/wchar_t.m4: Update.
6415 * gnulib/m4/wint_t.m4: Update.
6416 * gnulib/memchr.c: Update.
6417 * gnulib/memmem.c: Update.
6418 * gnulib/stddef.in.h: Update.
6419 * gnulib/stdint.in.h: Update.
6420 * gnulib/str-two-way.h: Update.
6421 * gnulib/string.in.h: Update.
6422 * gnulib/wchar.in.h: Update.
6424 * gnulib/extra/arg-nonnull.h: Delete.
6425 * gnulib/extra/c++defs.h: Delete.
6426 * gnulib/extra/warn-on-use.h: Delete.
6427 * gnulib/m4/wchar_h.m4: Delete.
6428 * gnulib/m4/wint_t.m4: Delete.
6429 * gnulib/wchar.in.h: Delete.
6431 * gnulib/extra/snippets/arg-nonnull.h: New.
6432 * gnulib/extra/snippets/c++defs.h: New.
6433 * gnulib/extra/snippets/warn-on-use.h: New.
6435 * aclocal.m4: Regenerate.
6436 * config.in: Regenerate.
6437 * configure: Regenerate.
6438 * gnulib/Makefile.in: Regenerate.
6440 2012-04-18 Pedro Alves <palves@redhat.com>
6442 Reimport the update-copyright module from gnulib
6443 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6445 * configure: Regenerate.
6446 * gnulib/Makefile.am: Update.
6447 * gnulib/Makefile.in: Regenerate.
6448 * gnulib/extra/update-copyright: Update.
6449 * gnulib/m4/gnulib-cache.m4: Update.
6450 * gnulib/m4/gnulib-comp.m4: Update.
6452 2012-04-18 Tristan Gingold <gingold@adacore.com>
6454 * configure.ac (aix): Put -lpthread into libs.
6455 * configure: Regenerate.
6457 2012-04-18 Tom Tromey <tromey@redhat.com>
6459 * linespec.c (convert_linespec_to_sals): Don't use
6461 (compare_msymbols): Arguments are minsym_and_objfile, not
6462 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6464 2012-04-18 Pedro Alves <palves@redhat.com>
6466 Revert gnulib/ part of:
6467 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6468 Copyright year update in most files (performed by copyright.sh).
6470 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6472 Fix 64-bit constants on 32-bit hosts.
6473 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6474 from unsigned long to ULONGEST.
6475 (read_signed_leb128): Change declaration return type from long to
6477 (dwarf2_const_value_attr): Change declaration parameter value from long
6479 (dwarf2_compute_name): Change variable value from long to LONGEST.
6480 (read_unsigned_leb128): Change return type, variable result and some
6481 casts from unsigned long to ULONGEST.
6482 (read_signed_leb128): Change return type, variable result and some
6483 casts from long to LONGEST.
6484 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6485 value from long to LONGEST.
6486 (dwarf2_const_value): Change variable value from long to LONGEST.
6487 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6488 plongest and hex_string.
6489 * symtab.h (struct general_symbol_info): Change ivalue from long to
6490 LONGEST, remove the comment.
6491 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6492 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6494 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6497 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6498 * ada-lang.c (ada_discrete_type_high_bound)
6499 (ada_discrete_type_low_bound): Fix function comment. Use
6500 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6501 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6502 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6503 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6504 Use TYPE_FIELD_ENUMVAL.
6505 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6506 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6507 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6508 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6510 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6511 * dwarf2read.c (process_enumeration_scope): Likewise.
6512 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6514 (class StructMainTypePrettyPrinter): Support also
6515 FIELD_LOC_KIND_ENUMVAL.
6516 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6518 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6519 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6520 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6521 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6523 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6524 accommodate enumval.
6525 (struct call_site): Adjust loc_kind to accommodate enumval.
6526 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6527 (TYPE_FIELD_ENUMVAL): New macros.
6528 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6529 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6531 * p-typeprint.c (pascal_type_print_base): Likewise.
6532 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6534 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6535 * python/py-type.c (convert_field): New variable addrstring. Use
6536 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6537 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6538 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6539 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6541 * valprint.c (generic_val_print): Likewise.
6543 2012-04-17 Doug Evans <dje@google.com>
6545 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6547 * dwarf2read.c: Whitespace fixes.
6548 (lookup_signatured_type): Tweak comment.
6549 (get_die_type_at_offset): Fix comment.
6551 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6553 * xcoffread.c (xcoff_secnum_to_sections): New function.
6554 (secnum_to_section, secnum_to_bfd_section): Reimplement
6555 using xcoff_secnum_to_sections. Rename "secnum" parameter
6557 (RECORD_MINIMAL_SYMBOL): Delete.
6558 (record_minimal_symbol): New function.
6559 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6560 by call to record_minimal_symbol and set misc_func_recorded
6561 to 1. Set last_csect_sec to the XCOFF section index instead
6562 of GDB's section_offset index. Update calls to
6563 prim_record_minimal_symbol_and_info to pass the BFD section
6566 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6568 * xcoffread.c (read_xcoff_symtab): Delete variables
6569 last_csect_val and last_csect_sec and associated code.
6571 2012-04-17 Doug Evans <dje@google.com>
6573 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6574 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6575 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6576 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6578 * cleanups.h: New file.
6579 * cleanups.c: New file.
6580 * Makefile.in (SFILES): Add cleanups.c.
6581 (HFILES_NO_SRCDIR): Add cleanups.h.
6582 (COMMON_OBS): Add cleanups.o.
6583 * defs.h (struct cleanup): Moved to cleanups.h.
6584 (do_cleanups,do_final_cleanups): Ditto.
6585 (discard_cleanups,discard_final_cleanups): Ditto
6586 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6587 (save_cleanups,save_final_cleanups): Ditto.
6588 (restore_cleanups,restore_final_cleanups): Ditto.
6589 (null_cleanup): Ditto.
6590 (make_my_cleanup,make_my_cleanup2): Ditto.
6591 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6592 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6593 (do_cleanups,do_final_cleanups): Ditto.
6594 (discard_cleanups,discard_final_cleanups): Ditto
6595 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6596 (save_cleanups,save_final_cleanups): Ditto.
6597 (restore_cleanups,restore_final_cleanups): Ditto.
6598 (null_cleanup): Ditto.
6599 (make_my_cleanup,make_my_cleanup2): Ditto.
6600 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6602 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6604 (make_cleanup_dyn_string_delete): Ditto.
6605 (make_cleanup_ui_file_delete): Ditto.
6606 (make_cleanup_ui_out_redirect_pop): Ditto.
6607 (make_cleanup_free_section_addr_info): Ditto.
6608 (make_cleanup_restore_integer): Ditto.
6609 (make_cleanup_unpush_target): Ditto.
6610 (make_cleanup_value_free_to_mark): Ditto.
6611 (make_cleanup_value_free): Ditto.
6612 (make_cleanup_free_so): Ditto.
6614 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6616 New option "set debug auto-load".
6617 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6618 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6619 (auto_load_safe_path_vec_update)
6620 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6622 (file_is_auto_load_safe): New parameters debug_fmt and ....
6623 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6624 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6625 caller by explanatory string.
6626 (_initialize_auto_load): Register "set debug auto-load".
6627 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6629 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6630 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6631 by explanatory string.
6632 * main.c (captured_main): Likewise.
6633 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6634 (source_section_scripts): Likewise.
6636 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6638 New option "set auto-load safe-path".
6639 * NEWS: New commands "set auto-load safe-path"
6640 and "show auto-load safe-path".
6641 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6642 (auto_load_safe_path, auto_load_safe_path_vec)
6643 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6644 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6645 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6646 (source_gdb_script_for_objfile): New variable is_safe. Call
6647 file_is_auto_load_safe. Return if it is not.
6648 (struct loaded_script): New field loaded.
6649 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6650 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6651 output "Missing" to "No".
6652 (_initialize_auto_load): New variable cmd. Initialize
6653 auto_load_safe_path. Register "set auto-load safe-path",
6654 "show auto-load safe-path" and "add-auto-load-safe-path".
6655 * auto-load.h (maybe_add_script): Add parameter loaded.
6656 (file_is_auto_load_safe): New declaration.
6657 * config.in: Regenerate.
6658 * configure: Regenerate.
6659 * configure.ac: New parameters --with-auto-load-safe-path
6660 and --without-auto-load-safe-path.
6661 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6662 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6663 * main.c (captured_main): Check file_is_auto_load_safe for
6665 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6666 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6667 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6670 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6672 auto-load: Implementation.
6673 * NEWS: New descriptions for "info auto-load",
6674 "info auto-load gdb-scripts", "info auto-load python-scripts",
6675 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6676 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6677 and "show auto-load-scripts". New description for "set auto-load",
6678 "show auto-load", "set auto-load gdb-scripts",
6679 "show auto-load gdb-scripts", "set auto-load python-scripts",
6680 "show auto-load python-scripts", "set auto-load local-gdbinit",
6681 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6682 "show auto-load libthread-db".
6683 * auto-load.c: Remove include python/python-internal.h. Add includes
6684 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6686 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6687 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6688 (gdbpy_global_auto_load): Rename to ...
6689 (global_auto_load): ... here.
6690 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6691 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6692 (script_language_gdb, source_gdb_script_for_objfile): New.
6693 (struct loaded_script): New field language.
6694 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6696 (maybe_add_script): Add parameter language. Drop redundant
6697 entry.full_path initialization. Initialize entry.language and
6699 (auto_load_objfile_script): Change parameter suffix to language.
6700 Remove the call of maybe_add_script.
6701 Call language->source_script_for_objfile.
6702 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6704 (collect_matching_scripts): Adjust it for
6705 struct collect_matching_scripts_data.
6706 (auto_load_info_scripts_pattern_nl): New variable.
6707 (info_auto_load_scripts): Rename to ...
6708 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6709 for struct collect_matching_scripts_data.
6710 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6711 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6712 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6713 (auto_load_info_cmdlist_get): New.
6714 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6715 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6716 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6717 "info auto-load local-gdbinit".
6718 * auto-load.h (struct script_language): New.
6719 (gdbpy_global_auto_load): Rename to ...
6720 (global_auto_load): ... here.
6721 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6722 (auto_load_local_gdbinit_loaded): New declarations.
6723 (maybe_add_script): New parameter language.
6724 (auto_load_objfile_script): Change parameter suffix to language.
6725 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6726 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6727 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6729 * linux-thread-db.c: Include auto-load.h and ctype.h.
6730 (auto_load_thread_db, show_auto_load_thread_db): New.
6731 (struct thread_db_info): New field filename.
6732 (delete_thread_db_info): Call xfree for FILENAME.
6733 (try_thread_db_load): Initialize FILENAME.
6734 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6735 if !AUTO_LOAD_THREAD_DB.
6736 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6737 (_initialize_thread_db): Install auto_load_thread_db
6738 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6739 as "info auto-load libthread-db".
6740 * main.c (captured_main): Rename gdbpy_global_auto_load to
6741 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6742 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6743 (print_gdb_help): Extend the help for 'local init file'.
6744 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6745 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6746 (auto_load_scripts): Rename to ...
6747 (auto_load_python_scripts): ... here, update the comment.
6748 (gdbpy_load_auto_script_for_objfile): New declaration.
6749 (show_auto_load_python_scripts, script_language_python)
6750 (gdbpy_load_auto_script_for_objfile): New.
6751 (source_section_scripts): Refactor the code.
6752 (load_auto_scripts_for_objfile): Rename to ...
6753 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6754 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6755 (info_auto_load_python_scripts): New.
6756 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6757 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6758 Register "set auto-load-scripts" as its deprecated alias. Register
6759 "info auto-load python-scripts". Register "info auto-load-scripts" as
6760 its deprecated alias.
6761 (load_auto_scripts_for_objfile): Rename to ...
6762 (gdbpy_load_auto_scripts_for_objfile): ... here.
6763 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6764 (gdbpy_load_auto_scripts_for_objfile): ... here.
6766 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6768 auto-load: Move files.
6769 * Makefile.in (SFILES): Add auto-load.c.
6770 (HFILES_NO_SRCDIR): Add auto-load.h.
6771 (COMMON_OBS): Add auto-load.o.
6772 (distclean): Change .gdbinit for gdb-gdb.gdb.
6773 * auto-load.c: New file, with parts from python/py-auto-load.c.
6774 * auto-load.h: New file, with parts from python/python.h.
6775 * configure: Regenerate.
6776 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6777 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6778 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6779 * main.c: Include auto-load.h.
6780 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6781 command.h, observer.h and progspace.h to auto-load.c. Add include
6783 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6784 (struct loaded_script, auto_load_pspace_data)
6785 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6786 (hash_loaded_script_entry, eq_loaded_script_entry)
6787 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6788 (maybe_add_script): Move to auto-load.c.
6789 (source_section_scripts): Change maybe_add_script parameters passing,
6790 use script_not_found_warning_print.
6791 (clear_section_scripts, auto_load_objfile_script)
6792 (auto_load_new_objfile, loaded_script_ptr)
6793 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6794 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6795 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6796 auto_load_new_objfile and info_auto_load_scripts initizations to
6798 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6800 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6803 * charset.c (find_charset_names): Remove variables ix and elt.
6804 Use free_char_ptr_vec.
6805 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6806 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6807 debugdir_end. New variable debugdir_len.
6808 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6809 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6811 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6812 and elt. Use free_char_ptr_vec.
6813 * source.c (add_path): Remove variables argv, arg and argv_index.
6814 New variables dir_vec, back_to, ix and name.
6815 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6816 make_cleanup_freeargv. Remove variable separator. Simplify the code
6817 no longer expecting DIRNAME_SEPARATOR.
6818 (openp): Remove variable p, p1 and len. New variables dir_vec,
6819 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6820 no longer expecting DIRNAME_SEPARATOR.
6821 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6822 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6824 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6825 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6826 (dirnames_to_char_ptr_vec): New functions.
6828 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6831 * source.c (add_path): Remove always true conditional 'p == 0' and
6832 unindent its code block.
6834 2012-04-17 Pedro Alves <palves@redhat.com>
6836 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6837 (FIELD_BITPOS_LVAL): ... this.
6838 (FIELD_BITPOS): New.
6839 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6840 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6841 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6843 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6845 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6846 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6847 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6850 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6852 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6853 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6854 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6855 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6856 * jv-lang.c (java_link_class_type): Likewise, once.
6857 * stabsread.c (read_enum_type): Likewise.
6859 2012-04-16 Yao Qi <yao@codesourcery.com>
6861 * common/agent.c (agent_run_command): Add one more parameter `len'.
6863 * common/agent.h: Update declaration.
6864 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6866 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6868 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6871 * value.c (value_actual_type): New function.
6872 * value.h (value_actual_type): New declaration.
6873 * varobj.c (update_type_if_necessary): New function.
6874 (varobj_create): Call value_actual_type instead of
6876 (install_dynamic_child): distinct changed and type changed MI variable
6878 (update_dynamic_varobj_children): Updated for install_dynamic_child
6879 change. All callers updated.
6880 (varobj_update): Support for MI variable object type change if
6881 the value changed and RTTI is used to determine the type.
6882 (create_child_with_value): Call value_actual_type instead of
6884 (adjust_value_for_child_access): Extended with a new parameter which
6885 specify whether the given value should be casted to enclosing type.
6886 All callers updated.
6888 2012-04-14 Yao Qi <yao@codesourcery.com>
6890 Import gnulib module inttypes from git
6891 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6892 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6893 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6894 gnulib/m4/inttypes-pri.m4
6895 * aclocal.m4, config.in, configure: Regenerated.
6896 * gnulib/Makefile.am: Update.
6897 * gnulib/Makefile.in: Update.
6898 * gnulib/m4/gnulib-cache.m4: Update.
6899 * gnulib/m4/gnulib-comp.m4: Update.
6900 * gnulib/inttypes.in.h: New.
6901 * gnulib/m4/inttypes-pri.m4: New.
6902 * gnulib/m4/inttypes.m4: New.
6904 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6906 * infrun.c (resume): Update PC address to the real PC after
6907 preparing to do displaced stepping.
6909 2012-04-12 Doug Evans <dje@google.com>
6911 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6912 All callers updated.
6914 2012-04-12 Mark Kettenis <kettenis@gnu.org>
6916 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6918 2012-04-12 Doug Evans <dje@google.com>
6920 * dwarf2read.c (create_all_type_units): Renamed from
6921 create_debug_types_hash_table. All callers updated.
6923 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6924 local type_sig to sig_type, type_offset to type_offset_in_tu.
6925 (hash_signatured_type): Renamed from hash_type_signature,
6926 all callers updated.
6927 (eq_signatured_type): Renamed from eq_type_signature,
6928 all callers updated.
6929 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6930 (process_enumeration_scope): Ditto.
6931 (lookup_signatured_type_at_offset): Ditto.
6932 (load_full_type_unit, read_signatured_type): Ditto.
6934 2012-04-12 Yao Qi <yao@codesourcery.com>
6936 * remote.c (async_remote_interrupt): Correct function name in
6938 (async_remote_interrupt_twice): Ditto.
6940 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6942 * source.c (find_and_open_source): Consistently pass resulting
6943 full path through xfullpath.
6945 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6947 Provide more specific displaced-stepping memory error message.
6948 * infrun.c (displaced_step_prepare): New variable status. Call
6949 target_read_memory instead of read_memory, provide more specific
6952 2012-04-11 Tristan Gingold <gingold@adacore.com>
6955 * darwin-nat.c (darwin_execvp): Revert previous patch.
6957 2012-04-11 Tristan Gingold <gingold@adacore.com>
6960 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6963 2012-04-11 Tristan Gingold <gingold@adacore.com>
6965 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6968 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6970 New command 'explore' which helps explore values and types in
6972 * NEWS: Add an entry about the new 'explore' command.
6973 * data-directory/Makefile.in: Add gdb/command/explore.py
6974 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
6975 command using the GDB Python API.
6977 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6979 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6980 extension in jump target calculation.
6982 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6984 * mips-tdep.c (mips32_next_pc): Handle JALX.
6986 2012-04-10 Yao Qi <yao@codesourcery.com>
6988 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6990 2012-04-10 Yao Qi <yao@codesourcery.com>
6992 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6993 and gnulib/m4/gnulib-tool.m4.
6995 2012-04-10 Doug Evans <dje@google.com>
6997 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6998 (load_partial_dies): Clarify comment.
6999 (find_partial_die): Support rereading type units.
7000 Clarify CU handling, if we know offset is in CU, don't search for the
7001 containing CU. Add comment regarding memory waste.
7003 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7005 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7006 i386/x32-avx and i386/x32-avx-linux.
7007 (i386/x32-expedite): New.
7008 (i386/x32-linux-expedite): Likewise.
7009 (i386/x32-avx-expedite): Likewise.
7010 (i386/x32-avx-linux-expedite): Likewise.
7011 ($(outdir)/i386/x32.dat): Likewise.
7012 ($(outdir)/i386/x32-linux.dat): Likewise.
7013 ($(outdir)/i386/x32-avx.dat): Likewise.
7014 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7016 * features/i386/x32-avx-linux.xml: New file.
7017 * features/i386/x32-avx.xml: Likewise.
7018 * features/i386/x32-core.xml: Likewise.
7019 * features/i386/x32-linux.xml: Likewise.
7020 * features/i386/x32.xml: Likewise.
7022 * features/i386/x32-avx-linux.c: New. Generated.
7023 * features/i386/x32-avx.c: Likewise.
7024 * features/i386/x32-linux.c: Likewise.
7025 * features/i386/x32.c: Likewise.
7026 * regformats/i386/x32-avx-linux.dat: Likewise.
7027 * regformats/i386/x32-avx.dat: Likewise.
7028 * regformats/i386/x32-linux.dat: Likewise.
7029 * regformats/i386/x32.dat: Likewise.
7031 2012-04-10 Tristan Gingold <gingold@adacore.com>
7033 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7034 code to kill the inferior.
7036 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7038 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7040 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7042 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7043 (yyvsp): New defines.
7044 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7046 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7048 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7050 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7052 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7055 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7057 * sparc64-tdep.c (sparc64_store_arguments)
7058 (sparc64_store_arguments): Fix coding style.
7060 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7062 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7063 complex floats, adjust some related comments and tighten a related
7065 (sparc64_extract_return_value): Handle complex floats.
7067 2012-04-07 Doug Evans <dje@google.com>
7069 * dwarf2read.c (load_partial_dies): Change condition to assert.
7071 2012-04-06 Doug Evans <dje@google.com>
7073 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7076 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7078 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7080 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7081 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7084 2012-04-05 Keith Seitz <keiths@redhat.com>
7086 * linespec.c (decode_compound): Remove.
7087 (enum offset_relative_sign): New enum.
7088 (struct line_offset): New struct.
7089 (struct linespec): New struct.
7090 (struct linespec_state): Move file_symtabs,
7091 user_filename, and user_function into struct linespec.
7092 Make result an anonymous struct holding vectors of
7093 symbolp and minsym_and_objfile_d.
7094 Add language member.
7095 (enum ls_token_type): New enum.
7096 (linespec_keywords): New array.
7097 (struct ls_token): New struct.
7098 (struct ls_parser): New struct.
7099 (linespec_lexer_lex_number): New function.
7100 (linespec_lexer_lex_keyword): New function.
7101 (is_ada_operator): New function.
7102 (skip_quote_char): New function.
7103 (copy_token_string): New function.
7104 (is_closing_quote_enclosed): New function.
7105 (find_parameter_list_end): New function.
7106 (linespec_lexer_lex_string): New function.
7107 (linespec_lexer_lex_one): New function.
7108 (linespec_lexer_consume_token): New function.
7109 (linespec_lexer_peek_token): New function.
7110 (cplusplus_error): Remove unused function.
7111 (find_methods): Update comment.
7112 (find_toplevel_char): Return const.
7113 (is_objc_method_format): Remove unused function.
7114 (find_toplevel_string): New function.
7115 (is_linespec_boundary): Remove.
7116 (symbol_not_found_error): New function.
7117 (find_method_overload_end): Remove function.
7118 (unexpected_linespec_error): New function.
7119 (keep_name_info): Remove.
7120 (linespec_parse_line_offset): New function.
7121 (linespec_parse_basic): New function.
7122 (canonicalize_linespec): New function.
7123 (decode_line_internal): Remove.
7124 (create_sals_line_offset): New function adapted from
7126 (convert_linespec_to_sals): New function.
7127 (parse_linespec): New function.
7128 (linespec_parser_new): New function.
7129 (linespec_state_destructor): Change parameter type to
7130 struct linespec_state *.
7131 Add language parameter.
7132 Remove freeing of moved members.
7133 (linespec_parser_delete): New function.
7134 (decode_line_full): Use parse_linespec and linespec_parser_new.
7135 (decode_line_1): Likewise.
7136 (decode_indirect): Rename to ...
7137 (linespec_expression_to_pc): ... this and rewrite
7138 to simply find CORE_ADDR, storing this result for later
7140 (locate_first_half): Remove.
7141 (deocde_objc): Add parameter LS.
7142 Initialize new struct collect_info members.
7143 Handle minimal symbols, too.
7144 (decode_compound): Delete.
7145 (lookup_prefix_sym): Rewrite.
7146 (compare_msymbols): New function.
7147 (find_method): Rewrite.
7148 Do not call cplusplus_error.
7149 (symtabs_from_filename): Rewrite.
7150 (collect_function_symbols): Delete.
7151 (find_function_symbols): Rewrite without ARGPTR-style
7153 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7154 (decode_dollar): Adapted and renamed to ...
7155 (linespec_parse_variable): ... this.
7156 (find_linespec_symbols): New function.
7157 (decode_label): Adapted and renamed to ...
7158 (find_label_symbols): ... this.
7159 (decode_digits_list_mode): Add and use LS argument.
7160 (decode_digits_ordinary): Likewise.
7161 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7162 If in list mode, allow any symbol class. Otherwise, only
7163 permit LOC_BLOCK symbols.
7164 (minsym_found): Update comments.
7165 (search_minsyms_for_name): Do not convert the matching symbol
7166 into a SAL. Simply push the symbol and objfile into the
7168 (decode_variable): Delete. Contents adapted into
7169 find_linespec_symbols.
7171 * cp-support.c (SKIP_SPACE): Remove.
7172 (operator_tokens): Remove unused global.
7173 (cp_validate_operator): Remove.
7174 * cp-support.h (cp_validate_operator): Remove declaration.
7176 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7178 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7179 for TYPE_VPTR_FIELDNO.
7180 * valprint.c (valprint_check_validity): Make it global, move the
7181 function comment ...
7182 * value.h (valprint_check_validity): ... to this new declaration.
7184 2012-04-02 Tristan Gingold <gingold@adacore.com>
7186 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7187 the STATE32 api for i386 state.
7188 (i386_darwin_store_inferior_registers): Likewise.
7190 2012-04-02 Tristan Gingold <gingold@adacore.com>
7192 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7194 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7197 2012-04-02 Tristan Gingold <gingold@adacore.com>
7200 * darwin-nat.c (darwin_execvp): Set binary preference.
7202 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7204 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7206 2012-03-30 Tom Tromey <tromey@redhat.com>
7208 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7209 of TRY_CATCH. Fix error handling.
7210 * python/py-value.c (convert_value_from_python): Move 'old'
7211 declaration to innermost scope.
7213 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7214 Andrey Smirnov <andrew.smirnov@gmail.com>
7216 -Wshadow warning fix.
7217 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7218 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7219 Adjust code accordingly.
7221 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7223 * ada-lang.c (symbol_completion_add): Rename parameter
7224 "encoded" into "encoded_p". Ajust code and documentation
7227 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7228 Andrey Smirnov <andrew.smirnov@gmail.com>
7230 -Wshadow warning fix.
7231 * ada-lang.c (symbol_completion_add): Rename parameter
7232 "wild_match" into wild_match_p. Update code and documentation
7235 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7237 * ada-lang.c (symbol_completion_match): Rename parameter
7238 "encoded" into "encoded_p". Ajust code and documentation
7241 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7242 Andrey Smirnov <andrew.smirnov@gmail.com>
7244 -Wshadow warning fix.
7245 * ada-lang.c (symbol_completion_match): Rename parameter
7246 "wild_match" into "wild_match_p". Adjust code and function
7247 documentation accordingly.
7249 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7250 Andrey Smirnov <andrew.smirnov@gmail.com>
7252 -Wshadow warning fix.
7253 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7254 "symbol_info" into "info". Adjust code accordingly.
7255 (ada_lookup_symbol): Likewise.
7257 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7259 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7260 of this function's documentation.
7262 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7263 Andrey Smirnov <andrew.smirnov@gmail.com>
7265 -Wshadow warning fix.
7266 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7267 variable into "wild_match_p". Adjust code accordingly.
7269 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7270 Andrey Smirnov <andrew.smirnov@gmail.com>
7272 -Wshadow warning fix.
7273 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7274 parameter into "wild_match_p". Adjust code accordingly.
7275 Document this parameter in the function description.
7277 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7278 Andrey Smirnov <andrew.smirnov@gmail.com>
7280 -Wshadow warning fix.
7281 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7282 "wild_match" parameter to "wild_match_p" (-Wshadow).
7284 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7286 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7287 in function documentation.
7289 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7290 Andrey Smirnov <andrew.smirnov@gmail.com>
7292 -Wshadow warning fix.
7293 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7294 variable into wild_match_p. Adjust code accordingly.
7296 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7297 Andrey Smirnov <andrew.smirnov@gmail.com>
7299 * ada-valprint.c (ada_val_print_1): Move the code handling
7300 TYPE_CODE_ENUM inside its own lexical block. Declare
7301 variables len and val there, instead of in the function's
7302 top level block. Avoid declaring deref_val again in a way
7303 that shadows another variable of the same name declared
7304 in one of the up-level blocks. Just re-use the up-level
7307 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7309 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7310 Replace block_found argument by symbol_info. Adjust
7311 implementation accordingly. Add function documentation.
7312 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7314 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7315 * ada-exp.y (write_object_renaming): Adjust to new
7316 ada_lookup_encoded_symbol API.
7318 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7320 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7323 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7325 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7326 (v850_register_name): Add the mpu and fpu register names.
7327 (v850e_register_name): Add the mpu and fpu register names.
7328 (v850e2_register_name): New function.
7329 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7332 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7334 * NEWS: Add entry for Ada varobj support.
7336 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7338 * varobj.c (default_value_is_changeable_p): New function,
7339 extracted from varobj_value_is_changeable_p. Add declaration.
7340 (ada_value_is_changeable_p): New function, extracted from
7341 varobj_value_is_changeable_p. Add declaration.
7342 (struct language_specific): New field "value_is_changeable_p".
7343 (languages): Add entries for new field.
7344 (varobj_create): Set language before calling install_new_value.
7345 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7346 "value_is_changeable_p" language callback.
7348 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7350 * ada-varobj.h, ada-varobj.c: New files.
7351 * Makefile.in (SFILES): Add ada-varobj.c.
7352 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7353 (COMMON_OBS): Add ada-varobj.o.
7355 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7357 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7358 (struct language_specific): New field "value_has_mutated".
7359 (languages): Set field "value_has_mutated" in each entry of array.
7360 (varobj_value_has_mutated): New function.
7361 (varobj_udpdate): Add handling of type mutation.
7362 (value_of_root): Add handling of type mutation.
7363 (ada_value_has_mutated): New function.
7365 2012-03-28 Pedro Alves <palves@redhat.com>
7367 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7368 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7370 2012-03-28 Tom Tromey <tromey@redhat.com>
7372 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7373 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7376 2012-03-28 Tom Tromey <tromey@redhat.com>
7378 * .dir-locals.el: New file.
7380 2012-03-28 Pedro Alves <palves@redhat.com>
7382 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7384 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7386 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7389 2012-03-27 Pedro Alves <palves@redhat.com>
7391 Eliminate struct ui_stream.
7393 * ui-out.h (struct ui_stream): Delete.
7394 (ui_out_field_stream): Adjust prototype.
7395 (ui_out_stream_new, ui_out_stream_delete)
7396 (make_cleanup_ui_out_stream_delete): Delete declarations.
7397 * ui-out.c (ui_out_field_stream): Change prototype to take a
7398 ui_file instead of a ui_stream. Adjust.
7399 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7400 (make_cleanup_ui_out_stream_delete): Delete.
7401 * breakpoint.c (print_breakpoint_location)
7402 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7403 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7404 * disasm.c (dump_insns): Ditto.
7405 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7407 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7408 ui_stream/ui_out_stream_new.
7409 * infcmd.c (print_return_value): Ditto.
7410 * osdata.c (info_osdata_command): Don't allocate a local
7412 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7413 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7414 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7415 allocate a local ui_stream.
7416 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7417 instead of ui_stream/ui_out_stream_new.
7418 (list_args_or_locals): Don't allocate a local ui_stream.
7419 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7420 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7421 ui_stream/ui_out_stream_new.
7422 * cli/cli-setshow.c (do_setshow_command): Ditto.
7424 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7426 * arm-linux-tdep.c (arm_linux_init_abi): Call
7427 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7428 * arm-tdep.c (arm_process_record): New function.
7429 (deallocate_reg_mem): New function.
7430 (decode_insn): New function.
7431 (thumb_record_branch): New function.
7432 (thumb_record_ldm_stm_swi(): New function.
7433 (thumb_record_misc): New function.
7434 (thumb_record_ld_st_stack): New function.
7435 (thumb_record_ld_st_imm_offset): New function.
7436 (thumb_record_ld_st_reg_offset(): New function.
7437 (thumb_record_add_sub_cmp_mov): New function.
7438 (thumb_record_shift_add_sub): New function.
7439 (arm_record_coproc_data_proc): New function.
7440 (arm_record_coproc): New function.
7441 (arm_record_b_bl): New function.
7442 (arm_record_ld_st_multiple): New function.
7443 (arm_record_ld_st_reg_offset): New function.
7444 (arm_record_ld_st_imm_offset): New function.
7445 (arm_record_data_proc_imm): New function.
7446 (arm_record_data_proc_misc_ld_str): New function.
7447 (arm_record_extension_space): New function.
7448 (arm_record_strx): New function.
7449 (sbo_sbz): New function.
7450 (struct insn_decode_record): New structure for arm insn record.
7451 (REG_ALLOC): New macro for reg allocations.
7452 (MEM_ALLOC): New macro for memory allocations.
7453 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7455 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7457 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7458 (store_register): Likewise.
7460 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7462 * MAINTAINERS (Write After Approval): Add myself to the list.
7464 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7466 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7467 Describe also the option "auto".
7469 2012-03-22 Richard Henderson <rth@redhat.com>
7471 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7472 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7474 2012-03-22 Richard Henderson <rth@redhat.com>
7476 * jit.c (jit_read_code_entry): Compute alignment and offset of
7477 int64_t member before computing entry_size.
7479 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7481 Python scripting: Add new method Value.referenced_value to
7482 gdb.Value which can dereference pointer as well as reference
7484 * NEWS: Add entry under 'Python scripting' about the new method
7485 Value.referenced_value on gdb.Value objects.
7486 * python/py-value.c (valpy_referenced_value): New function
7487 defining a new method on gdb.Value objects which can dereference
7488 pointer and reference values.
7490 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7492 * MAINTAINERS (Write After Approval): Add myself to the list.
7494 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7496 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7497 in addition to "main".
7499 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7501 * expression.h (op_name): Add declaration.
7502 * expprint.c (op_name): Remove declaration. Make non-static.
7503 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7505 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7507 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7509 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7510 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7511 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7512 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7513 (linux_nat_get_siginfo): Likewise.
7514 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7515 (linux_nat_get_siginfo): Likewise.
7516 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7517 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7518 * procfs.c (gdb_siginfo_t): Likewise.
7520 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7522 * .gitignore: Ignore more files.
7524 2012-03-20 Pedro Alves <palves@redhat.com>
7526 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7529 2012-03-20 Yao Qi <yao@codesourcery.com>
7531 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7534 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7536 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7537 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7538 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7540 * dwarf2expr.h (cu_offset, sect_offset): New types.
7541 (struct dwarf_expr_context_funcs) <dwarf_call>
7542 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7544 (struct dwarf_expr_context) <len>: Improve the comment.
7545 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7546 cu_offset and sect_offset.
7547 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7548 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7549 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7550 * dwarf2loc.h: Include dwarf2expr.h.
7551 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7553 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7554 Improve the comment.
7555 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7556 (struct signatured_type, struct line_header, struct partial_die_info)
7557 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7558 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7559 (get_die_type_at_offset, create_cus_from_index)
7560 (create_signatured_type_table_from_index, dw2_get_file_names)
7561 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7562 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7563 (create_debug_types_hash_table, process_psymtab_comp_unit)
7564 (load_partial_comp_unit, create_all_comp_units)
7565 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7566 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7567 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7568 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7569 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7570 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7571 (find_partial_die, read_attribute_value, lookup_die_type)
7572 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7573 (is_ref_attr): New function comment.
7574 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7575 Use cu_offset and sect_offset.
7576 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7577 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7578 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7579 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7580 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7581 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7582 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7585 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7588 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7589 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7591 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7593 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7595 * NEWS: Describe new options --init-command=FILE, -ix and
7596 --init-eval-command=COMMAND, -iex.
7597 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7598 CMDARG_INIT_COMMAND.
7599 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7600 "init-command", "init-eval-command", "ix" and "iex" to the variable
7601 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7602 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7603 (print_gdb_help): Describe --init-command=FILE, -ix and
7604 --init-eval-command=COMMAND, -iex.
7606 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7609 * main.c (struct cmdarg): Move it here from main. Add more comments.
7610 (cmdarg_s, VEC (cmdarg_s)): New.
7611 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7612 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7613 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7614 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7617 2012-03-19 Tom Tromey <tromey@redhat.com>
7619 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7621 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7624 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7627 2012-03-16 Chris January <chris.january@allinea.com>
7629 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7632 2012-03-16 Chris January <chris.january@allinea.com>
7634 * source.c (add_path): Use memmove instead of strcpy because the
7637 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7639 * value.h (set_value_parent): Add declaration.
7640 * value.c (set_value_parent): New function.
7641 (value_address): If VALUE->PARENT is not NULL, then use it as
7642 the base address instead of VALUE->LOCATION.address.
7643 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7644 the same as OBJ's address. Adjust V's offset accordingly.
7647 2012-03-16 Gary Benson <gbenson@redhat.com>
7649 PR breakpoints/10738
7650 * dwarf2read.c (use_deprecated_index_sections): New global.
7651 (struct partial_die_info): New member may_be_inlined.
7652 (read_partial_die): Set may_be_inlined where appropriate.
7653 (add_partial_subprogram): Add partial symbols for partial
7654 DIEs that may be inlined.
7655 (new_symbol_full): Add inlined subroutines to the current
7657 (write_psymtabs_to_index): Bump version number.
7658 (dwarf2_read_index): Read only version 6 indices unless
7659 use_deprecated_index_sections is set.
7660 * linespec.c (symbol_and_data_callback): New structure.
7661 (iterate_inline_only): New function.
7662 (iterate_over_all_matching_symtabs): New argument
7663 "include_inline". If nonzero, also call the callback for
7664 symbols representing inlined subroutines.
7665 (lookup_prefix_sym): Pass extra argument to the above.
7666 (find_function_symbols): Likewise.
7667 (add_matching_symbols_to_info): Likewise.
7668 * NEWS: Mention that GDB can now set breakpoints on inlined
7671 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7673 * p-typeprint.c (pascal_type_print_method_args):
7674 Fix display of parameter of methods.
7676 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7678 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7679 Add missing prototype.
7681 2012-03-16 Yao Qi <yao@codesourcery.com>
7682 Jan Kratochvil <jan.kratochvil@redhat.com>
7684 Fix false compilation warning.
7685 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7687 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7688 Pedro Alves <pedro@codesourcery.com>
7690 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7691 (arm_register_g_packet_guesses): New function.
7692 (arm_gdbarch_init): Don't force a target description with
7693 registers when the executable is detected as M-profile. Instead
7694 set gdbarch->tdep->is_m. Register `g' packet guesses.
7695 (_initialize_arm_tdep): Initialize the new target description.
7696 * features/arm-with-m-fpa-layout.xml: New description.
7697 * features/arm-with-m-fpa-layout.c: New, generated.
7699 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7701 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7702 Update function description.
7703 (insert_bp_location): Do not wipe bl->target_info out.
7704 * mem-break.c: #include "gdb_string.h".
7705 (default_memory_insert_breakpoint): Do not call target_read_memory
7706 with a pointer to the breakpoint's shadow_contents buffer. Use
7707 a local buffer instead.
7708 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7710 2012-03-15 Tom Tromey <tromey@redhat.com>
7712 * NEWS: Mention "info vtbl", not "info vtable".
7713 * cp-support.c (info_vtbl_command): Fix comment.
7714 (_initialize_cp_support): Fix text.
7716 2012-03-15 Tom Tromey <tromey@redhat.com>
7718 * cp-valprint.c (cp_print_value_fields): Use
7719 print_function_pointer_address for vtable slot.
7721 2012-03-15 Tom Tromey <tromey@redhat.com>
7723 * gnu-v3-abi.c (struct value_and_voffset): New.
7724 (hash_value_and_voffset, eq_value_and_voffset)
7725 (compare_value_and_voffset, compute_vtable_size)
7726 (print_one_vtable, gnuv3_print_vtable): New functions.
7727 (init_gnuv3_ops): Initialize 'print_vtable' field.
7728 * cp-support.c (info_vtbl_command): New function.
7729 (_initialize_cp_support): Add "info vtbl".
7730 * cp-abi.h (cplus_print_vtable): Declare.
7731 (struct cp_abi_ops) <print_vtable>: New field.
7732 * cp-abi.c (cplus_print_vtable): New function.
7735 2012-03-15 Tom Tromey <tromey@redhat.com>
7737 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7738 iterate_over_symbols.
7740 2012-03-14 Doug Evans <dje@google.com>
7742 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7743 DW_OP_GNU_parameter_ref.
7745 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7747 Fix double prompt of 'interpreter-exec mi'.
7748 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7749 (mi_interpreter_resume): use it.
7750 (mi_execute_command_input_handler): New function.
7751 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7752 mi_execute_command_input_handler.
7754 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7756 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7758 (darwin_debug_port_info): Make static.
7759 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7760 * machoread.c (_initialize_machoread): Add prototype.
7761 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7762 (i386_darwin_set_control, i386_darwin_get_control)
7763 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7764 i386_darwin_get_status, i386_darwin_get_control):
7765 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7767 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7769 * ax-gdb.c (gen_usual_unary): Remove special handling of
7770 enum and bool types.
7772 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7774 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7776 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7778 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7780 2012-03-13 Chris January <chris.january@allinea.com>
7782 * aix-thread.c (fill_sprs): Store the floating point registers
7783 at the correct offsets into vals.
7785 2012-03-13 Doug Evans <dje@google.com>
7787 * NEWS: Mention symbol-reloading has been deleted.
7788 * symfile.c (symbol_reloading): Delete.
7789 (show_symbol_reloading): Delete.
7790 (_initialize_symfile): Delete set/show symbol-reloading.
7792 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7793 read_in_chain until we have successfully read it in.
7794 (load_full_comp_unit): Ditto.
7795 (read_signatured_type): Add comment.
7797 2012-03-13 Chris January <chris.january@allinea.com>
7799 * stabsread.c (fix_common_block): Change type of valu argument
7802 2012-03-13 Chris January <chris.january@allinea.com>
7804 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7807 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7809 * common/linux-procfs.c (linux_proc_get_int): New, from
7810 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7812 (linux_proc_get_tgid): Only call linux_proc_get_int.
7813 (linux_proc_get_tracerpid): New.
7814 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7815 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7816 linux_proc_pid_has_state.
7817 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7818 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7819 (linux_ptrace_attach_warnings): New.
7820 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7822 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7823 (linux_nat_attach): New variables ex, buffer, message and message_s.
7824 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7826 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7828 * Makefile.in (linux-ptrace.o): New.
7829 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7831 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7832 * common/linux-ptrace.c: New file.
7833 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7834 * config/arm/linux.mh: Likewise.
7835 * config/i386/linux.mh: Likewise.
7836 * config/i386/linux64.mh: Likewise.
7837 * config/ia64/linux.mh: Likewise.
7838 * config/m32r/linux.mh: Likewise.
7839 * config/m68k/linux.mh: Likewise.
7840 * config/mips/linux.mh: Likewise.
7841 * config/pa/linux.mh: Likewise.
7842 * config/powerpc/linux.mh: Likewise.
7843 * config/powerpc/ppc64-linux.mh: Likewise.
7844 * config/powerpc/spu-linux.mh: Likewise.
7845 * config/s390/s390.mh: Likewise.
7846 * config/sparc/linux.mh: Likewise.
7847 * config/sparc/linux64.mh: Likewise.
7848 * config/xtensa/linux.mh: Likewise.
7849 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7850 common/linux-procfs.c.
7851 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7853 2012-03-13 Hui Zhu <teawater@gmail.com>
7854 Pedro Alves <palves@redhat.com>
7856 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7857 CREATE_BREAKPOINT_FLAGS_INSERTED.
7858 (create_breakpoint_sal, create_breakpoints_sal)
7859 (base_breakpoint_create_breakpoints_sal)
7860 (tracepoint_create_breakpoints_sal)
7861 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7863 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7864 (ftrace_command, strace_command): Adjust.
7865 (create_tracepoint_from_upload): Pass
7866 CREATE_BREAKPOINT_FLAGS_INSERTED.
7867 * breakpoint.h (enum breakpoint_create_flags): New.
7868 (create_breakpoint): New flags parameter.
7869 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7870 * python/py-breakpoint.c (bppy_init): Adjust.
7871 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7872 * spu-tdep.c (spu_catch_start): Adjust.
7874 2012-03-13 Pedro Alves <palves@redhat.com>
7875 Hui Zhu <teawater@gmail.com>
7876 Yao Qi <yao@codesourcery.com>
7878 * remote.c (struct remote_state): New field `starting_up'.
7879 (remote_start_remote): Set and clear it.
7880 (remote_can_download_tracepoint): If starting up, return false.
7882 2012-03-13 Yao Qi <yao@codesourcery.com>
7884 * inferior.h (struct inferior): Remove fields any_syscall_count,
7885 syscalls_counts and total_syscalls_count. Move them to new
7886 struct catch_syscall_inferior_data in breakpoint.c.
7887 * breakpoint.c: Call DEF_VEC_I(int).
7888 (struct catch_syscall_inferior_data): New.
7889 (get_catch_syscall_inferior_data): New.
7890 (catch_syscall_inferior_data_cleanup): New.
7891 (insert_catch_syscall): Update to access data in
7892 struct catch_syscall_inferior_data.
7893 (insert_catch_syscall): Likewise.
7894 (remove_catch_syscall): Likewise.
7895 (remove_catch_syscall): Likewise.
7896 (is_syscall_catchpoint_enabled): Likewise.
7897 (add_catch_command): Likewise.
7898 (_initialize_breakpoint): Register cleanup.
7899 * breakpoint.h: Removed DEF_VEC_I(int).
7900 * dwarf2loc.c: Call DEF_VEC_I(int).
7901 * mi/mi-main.c: Likewise.
7903 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7905 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7907 2012-03-12 Chris January <chris.january@allinea.com>
7909 * aix-thread.c (_initialize_aix_thread): Add prototype.
7910 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7911 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7913 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7915 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7916 include of "amd64-nat.h".
7918 2012-03-12 Tom Tromey <tromey@redhat.com>
7920 * buildsym.c (record_pending_block): Now static.
7921 * buildsym.h: (record_pending_block): Remove.
7923 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
7925 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7927 2012-03-09 Tom Tromey <tromey@redhat.com>
7929 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7930 producer_is_gxx_lt_4_6>: New fields.
7931 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7933 2012-03-09 Tom Tromey <tromey@redhat.com>
7935 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7937 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7939 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7942 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7944 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7946 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7948 Fix -Wmissing-prototypes build.
7949 * arm-linux-nat.c (get_thread_id): Make it static.
7950 * xtensa-linux-nat.c (get_thread_id): Likewise.
7952 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7954 * server.c (process_point_options): If a conditional expression
7955 is found, only print a message if remote_debug is nonzero.
7957 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
7959 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7960 of internal error for unknown/unsupported types.
7962 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7964 Fix CU relative vs. absolute DIE offsets.
7965 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7966 offset to offset_in_cu.
7967 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7969 (dwarf2_fetch_die_location_block): Rename parameter offset to
7970 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7972 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7974 * libunwind-frame.c: Rename to ...
7975 * ia64-libunwind-tdep.c: ... here.
7976 * libunwind-frame.h: Rename to ...
7977 * ia64-libunwind-tdep.h: ... here.
7978 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7979 ia64-libunwind-tdep.h.
7980 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7981 * README (--with-libunwind): Rename to ...
7982 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7983 * config.in: Regenerate.
7984 * configure: Regenerate.
7985 * configure.ac: New option --with-libunwind-ia64, make the
7986 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7987 Remove AC_DEFINE for HAVE_LIBUNWIND.
7988 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7989 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7990 Rename libunwind-frame in the general comment.
7991 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7992 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7993 Move forward declarations inside #ifndef. Rename libunwind-frame in
7994 the general comment.
7995 * ia64-tdep.c: Rename libunwind-frame.h #include to
7996 ia64-libunwind-tdep.h.
7997 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7998 (ia64_libunwind_descr): Rename libunwind-frame to
7999 ia64-libunwind-tdep in these function comments.
8000 * ia64-tdep.h: Rename libunwind-frame.h #include to
8001 ia64-libunwind-tdep.h.
8002 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8003 ia64-libunwind-tdep in that data comment.
8005 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8007 * libunwind-frame.h (struct frame_unwind): New declaration.
8009 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8011 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8012 "set breakpoint condition-evaluation" command.
8014 2012-03-08 Tristan Gingold <gingold@adacore.com>
8016 * sparc-stub.c: Move to stubs/
8017 * sh-stub.c: Likewise.
8018 * m68k-stub.c: Likewise.
8019 * m32r-stub.c: Likewise.
8020 * i386-stub.c: Likewise.
8022 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8024 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8025 linux_get_siginfo_type.
8027 * m68klinux-nat.c: Include "gdb_proc_service.h".
8028 (PTRACE_GET_THREAD_AREA): Define.
8029 (ps_get_thread_area): New function.
8031 2012-03-08 Yao Qi <yao@codesourcery.com>
8033 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8035 (remote_query_attached): Likewise.
8036 (remote_static_tracepoint_marker_at): Likewise.
8037 (remote_set_permissions): Likewise.
8038 (remote_detach_1, extended_remote_attach_1): Likewise.
8039 (send_g_packet, remote_vkill): Likewise.
8040 (extended_remote_disable_randomization): Likewise.
8041 (remote_add_target_side_condition): Likewise.
8042 (remote_insert_breakpoint): Likewise.
8043 (remote_remove_breakpoint): Likewise.
8044 (remote_insert_watchpoint): Likewise.
8045 (remote_remove_watchpoint): Likewise.
8046 (remote_insert_hw_breakpoint): Likewise.
8047 (remote_insert_hw_breakpoint): Likewise.
8048 (remote_remove_hw_breakpoint): Likewise.
8049 (remote_download_command_source): Likewise.
8050 (remote_download_tracepoint): Likewise.
8051 (remote_download_trace_state_variable): Likewise.
8052 (remote_disable_tracepoint): Likewise.
8053 (remote_trace_set_readonly_regions): Likewise.
8054 (remote_get_tracepoint_status): Likewise.
8055 (remote_trace_find): Likewise.
8056 (remote_get_trace_state_variable_value): Likewise.
8057 (remote_set_disconnected_tracing): Likewise.
8058 (remote_set_circular_trace_buffer): Likewise.
8059 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8060 (remote_use_agent): Likewise.
8061 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8064 2012-03-07 Pedro Alves <palves@redhat.com>
8066 * NEWS: Mention QProgramSignals.
8067 * inferior.h (update_signals_program_target): Declare.
8068 * infrun.c: (update_signals_program_target): New.
8069 (handle_command): Update the target of the new program signals
8071 * remote.c (PACKET_QProgramSignals): New enum.
8072 (last_program_signals_packet): New global.
8073 (remote_program_signals): New.
8074 (remote_start_remote): Update the target with the program signals
8076 (remote_protocol_features): Add entry for QPassSignals.
8077 (remote_open_1): Free anc clear last_program_signals_packet.
8078 (init_remote_ops): Install remote_program_signals.
8079 * target.c (update_current_target): Adjust.
8080 (target_program_signals): New.
8081 * target.h (struct target_ops) <to_program_signals>: New field.
8082 (target_program_signals): Declare.
8084 2012-03-07 Pedro Alves <palves@redhat.com>
8086 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8089 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8091 * m68klinux-nat.c (getregs_supplies): Make static.
8092 (getfpregs_supplies): Likewise.
8093 (have_ptrace_getregs): Likewise.
8095 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8097 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8098 in call to get_die_type_at_offset.
8100 2012-03-06 Stan Shebs <stan@codesourcery.com>
8102 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8103 * mi/mi-cmd-disas.c: Ditto.
8104 * mi/mi-cmd-env.c: Ditto.
8105 * mi/mi-cmd-file.c: Ditto.
8106 * mi/mi-cmd-stack.c: Ditto.
8107 * mi/mi-cmd-target.c: Ditto.
8108 * mi/mi-cmd-var.c: Ditto.
8109 * mi/mi-cmds.c: Ditto.
8110 * mi/mi-cmds.h: Ditto.
8111 * mi/mi-console.c: Ditto.
8112 * mi/mi-getopt.c: Ditto.
8113 * mi/mi-getopt.h: Ditto.
8114 * mi/mi-interp.c: Ditto.
8115 * mi/mi-main.c: Ditto.
8116 * mi/mi-out.c: Ditto.
8117 * mi/mi-parse.c: Ditto.
8118 * mi/mi-parse.h: Ditto.
8119 * mi/mi-symbol-cmds.c: Ditto.
8121 * mi/mi-getopt.h: Move mi_opt struct up.
8122 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8124 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8126 2012-03-06 Tom Tromey <tromey@redhat.com>
8128 * proc-service.c (ps_pglobal_lookup): Set the current program
8131 2012-03-06 Pedro Alves <palves@redhat.com>
8133 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8135 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8137 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8139 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8142 * common/linux-osdata.c (linux_common_core_of_thread): New function
8144 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8145 call by linux_common_core_of_thread.
8146 (linux_nat_core_of_thread_1): Remove.
8147 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8148 * linux-thread-db.c: Include linux-osdata.h.
8149 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8150 linux_common_core_of_thread.
8152 2012-03-05 Tom Tromey <tromey@redhat.com>
8154 * value.c (value_primitive_field): Don't fetch contents for
8157 2012-03-05 Tom Tromey <tromey@redhat.com>
8159 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8161 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8163 * s390-nat.c: Include "gregset.h".
8165 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8167 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8168 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8169 (libunwind_load): New variable so_error, use it for dlerror. Try to
8170 load also LIBUNWIND_SO_7.
8172 2012-03-05 Pedro Alves <palves@redhat.com>
8174 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8175 is not NULL, and remove resulting dead code.
8177 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8179 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8180 prologue to sh_analyze_prologue.
8181 (sh_analyze_prologue): Make better use of such an upper limit, and
8182 generally be more cautious about accessing memory.
8184 2012-03-05 Tom Tromey <tromey@redhat.com>
8186 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8187 _initialize_ia64_hpux_tdep.
8189 2012-03-05 Pedro Alves <palves@redhat.com>
8193 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8194 the register state is clear, supply explicit zero, instead of
8195 marking the register unavailable.
8197 2012-03-05 Tristan Gingold <gingold@adacore.com>
8199 * NEWS: Mention OpenVMS ia64 new target.
8201 2012-03-05 Tristan Gingold <gingold@adacore.com>
8203 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8204 (ia64_unw_accessors, ia64_unw_rse_accessors)
8205 (ia64_libunwind_descr): Declare.
8206 * ia64-vms-tdep.c: New file.
8207 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8208 (ia64_libunwind_descr): Make them public.
8209 * configure.tgt: Add ia64-*-*vms*.
8210 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8211 (ALLDEPFILES): Add ia64-vms-tdep.c
8213 2012-03-05 Tristan Gingold <gingold@adacore.com>
8215 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8216 * remote.c (PACKET_qXfer_uib): New enum value.
8217 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8218 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8219 (_initialize_remote): Call add_packet_config_cmd for
8222 2012-03-05 Tristan Gingold <gingold@adacore.com>
8224 * osabi.c (gdb_osabi_names): Add OpenVMS.
8225 (generic_elf_osabi_sniffer): Likewise.
8226 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8228 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8230 Removed unused code.
8231 * libunwind-frame.c (libunwind_frame_unwind)
8232 (libunwind_frame_base_address): Remove.
8233 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8235 2012-03-04 Yao Qi <yao@codesourcery.com>
8237 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8238 remove trailing new line.
8239 (agent_run_command, agent_run_command): Add _ markup.
8240 (agent_capability_check): Likewise.
8242 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8244 * breakpoint.c (set_condition_evaluation_mode): Set
8245 CONDITION_EVALUATION_MODE unconditionally.
8247 2012-03-03 Yao Qi <yao@codesourcery.com>
8249 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8250 * common/agent.h: Update declaration.
8251 * inf-child.c (inf_child_use_agent): New.
8252 (inf_child_can_use_agent): New.
8253 (inf_child_target): Initialize fields `to_use_agent'
8254 and `to_can_use_agent'.
8255 * agent.c (agent_new_objfile): New.
8256 (_initialize_agent): Add agent_new_objfile to new_objfile
8259 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8261 (linux_target_install_ops): Initialize field
8262 `to_static_tracepoint_markers_by_strid'.
8263 * remote.c (free_current_marker): Move it to ...
8264 * tracepoint.c (free_current_marker): ... here. New.
8265 (cleanup_target_stop): New.
8266 * tracepoint.h: Declare free_current_marker.
8267 * NEWS: Add one entry about `info static-tracepoint-marker'.
8269 2012-03-03 Yao Qi <yao@codesourcery.com>
8271 * common/agent.c (agent_loaded_p): New.
8272 (agent_look_up_symbols): New global.
8273 * common/agent.h: Declare agent_loaded_p.
8275 2012-03-03 Yao Qi <yao@codesourcery.com>
8277 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8278 (agent_capability_check, agent_capability_invalidate): New.
8279 (symbol_list): New array element.
8280 * common/agent.h (enum agent_capa): New.
8281 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8283 2012-03-03 Yao Qi <yao@codesourcery.com>
8285 * target.h (struct target_ops) <to_use_agent>: New field.
8286 (struct target_ops) <to_can_use_agent>: New field.
8287 (target_use_agent, target_can_use_agent): New macro.
8288 * target.c (update_current_target): Update.
8289 * remote.c: New enum `PACKET_QAgent'.
8290 (remote_protocol_features): Add a new element.
8291 (remote_use_agent, remote_can_use_agent): New.
8292 (init_remote_ops): Initialize field `can_use_agent' with
8293 remote_can_use_agent. Intiailize field `use_agent' with
8295 * common/agent.c (use_agent): New global.
8296 * common/agent.h: Declare it.
8297 * tracepoint.c (info_static_tracepoint_markers_command): Add
8299 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8300 (COMMON_OBS): Add common/agent.o and agent.o
8301 (common-agent.o): New rule.
8304 2012-03-03 Yao Qi <yao@codesourcery.com>
8306 * common/agent.c: New.
8307 * common/agent.h: New.
8308 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8310 * configure, configh.in: Regenerated.
8312 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8314 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8315 unless it exists for this architecture.
8317 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8319 * language.h (struct language_defn): New "method" la_read_var_value.
8320 * findvar.c: #include "language.h".
8321 (default_read_var_value): Renames read_var_value. Rewrite
8322 function description.
8323 (read_var_value): New function.
8324 * value.h (default_read_var_value): Add prototype.
8325 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8327 (ada_language_defn): Add entry for la_read_var_value.
8328 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8329 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8330 language_defn structures to add entry for new la_read_var_value
8333 2012-03-02 Tom Tromey <tromey@redhat.com>
8334 Pedro Alves <palves@redhat.com>
8336 PR breakpoints/13776:
8337 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8339 (delete_longjmp_breakpoint_at_next_stop): New.
8340 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8341 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8342 before deleting the inferior. Add comments.
8343 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8344 breakpoints immediately, but only on next stop. Move that code
8345 next to where we mark other breakpoints for deletion.
8347 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8349 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8351 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8354 2012-03-02 Pedro Alves <palves@redhat.com>
8356 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8358 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8360 Fix -Wmissing-prototypes build.
8361 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8362 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8363 (gdbsim_has_memory): Likewise.
8365 2012-03-02 Yao Qi <yao@codesourcery.com>
8367 Fix -Wmissing-prototypes build.
8368 * charset.c (phony_iconv_open): Make static.
8369 (phony_iconv_close, phony_iconv): Likewise.
8370 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8371 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8373 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8374 * ser-mingw.c (create_select_thread): Make static.
8375 * windows-termcap.c (tgetent): New prototype.
8376 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8378 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8380 Fix -Wmissing-prototypes build.
8381 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8382 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8383 (_initialize_loadable): New prototypes.
8385 2012-03-02 Doug Evans <dje@google.com>
8387 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8388 abbrev table, read_comp_unit will do it.
8390 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8392 Fix -Wmissing-prototypes build.
8393 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8394 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8395 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8396 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8397 (_initialize_arm_symbian_tdep): New prototype.
8398 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8399 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8400 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8402 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8403 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8405 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8406 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8407 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8409 * moxie-tdep.c (moxie_process_record): Likewise.
8410 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8411 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8412 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8413 (_initialize_rl78_tdep): New prototype.
8414 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8415 (_initialize_rx_tdep): New prototype.
8416 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8417 (_initialize_darwin_solib): New prototype.
8418 * solib-spu.c: Include solib-spu.h.
8419 (_initialize_spu_solib): New prototype.
8420 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8421 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8422 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8423 (tic6x_software_single_step): Make it static.
8424 (_initialize_tic6x_tdep): New prototype.
8426 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8428 Fix -Wmissing-prototypes build.
8429 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8430 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8432 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8434 Fix -Wmissing-prototypes build.
8435 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8436 (frv_have_stopped_data_address): Remove.
8438 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8440 Fix -Wmissing-prototypes build.
8441 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8442 * sh-tdep.c: Include sh64-tdep.h.
8443 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8444 * sh64-tdep.c: Include sh64-tdep.h.
8445 * sh64-tdep.h: New file.
8447 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8449 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8451 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8453 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8454 sp_regnum once the gdbarch_init_osabi hook has been called.
8456 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8458 * mips-tdep.c (mips32_bc1_pc): New function.
8459 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8460 BPOSGE32 and BPOSGE64 instructions.
8461 (deal_with_atomic_sequence): Likewise.
8462 (mips32_instruction_has_delay_slot): Likewise.
8464 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8465 Chris Dearman <chris@mips.com>
8466 Maciej W. Rozycki <macro@codesourcery.com>
8467 Joseph Myers <joseph@codesourcery.com>
8469 * features/mips-dsp.xml: New file.
8470 * features/mips64-dsp.xml: New file.
8471 * features/mips-dsp-linux.xml: New file.
8472 * features/mips64-dsp-linux.xml: New file.
8473 * features/Makefile (WHICH): Add mips-dsp-linux and
8475 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8476 * features/mips-dsp-linux.c: New file.
8477 * features/mips64-dsp-linux.c: New file.
8478 * regformats/mips-dsp-linux.dat: New file.
8479 * regformats/mips64-dsp-linux.dat: New file.
8480 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8482 (mips64_linux_register_addr): Likewise.
8483 (mips64_linux_regsets_fetch_registers): Likewise.
8484 (mips64_linux_regsets_store_registers): Likewise.
8485 (mips64_linux_fetch_registers): Update call to
8486 mips64_linux_regsets_fetch_registers.
8487 (mips64_linux_store_registers): Update call to
8488 mips64_linux_regsets_store_registers.
8489 (mips_linux_read_description): Probe for DSP registers.
8490 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8491 and initialize_tdesc_mips64_dsp_linux.
8492 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8493 Remove padding of no longer used embedded register slots.
8494 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8495 (MIPS_RESTART_REGNUM): Redefine enum value.
8496 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8498 (mips_tx39_reg_names): Likewise.
8499 (mips_linux_reg_names): New array of register names for Linux
8501 (mips_register_name): Check for a null pointer in
8502 mips_processor_reg_names and return an empty string.
8503 (mips_register_type): Exclude embedded registers for the IRIX
8505 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8506 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8508 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8509 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8510 (mips_gdbarch_init): Likewise. Initialize internal register
8511 indices for the Linux ABI. Use dynamic numbers to refer to
8512 registers, as applicable, while parsing the target description.
8513 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8515 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8517 * frame.h (read_frame_register_unsigned): Fix typo in function
8520 2012-03-01 Pedro Alves <palves@redhat.com>
8522 * jit-reader.in [!__cplusplus]
8523 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8525 2012-03-01 Pedro Alves <palves@redhat.com>
8527 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8528 * configure: Regenerate.
8530 2012-03-01 Pedro Alves <palves@redhat.com>
8532 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8533 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8534 (ftrace_command, strace_command): Make static.
8535 * d-lang.c (_initialize_d_language): Declare.
8536 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8537 * dwarf2loc.c (_initialize_dwarf2loc):
8538 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8539 * exec.c (exec_get_section_table): Make static.
8540 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8541 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8542 * inferior.c (remove_inferior_command, add_inferior_command)
8543 (clone_inferior_command): Make static.
8544 * linux-nat.c (linux_nat_thread_address_space)
8545 (linux_nat_core_of_thread): Make static.
8546 * linux-tdep.c (_initialize_linux_tdep): Declare.
8547 * objc-lang.c (_initialize_objc_lang): Declare.
8548 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8550 (_initialize_opencl_language): Declare.
8551 * record.c (_initialize_record): Declare.
8552 * remote.c (demand_private_info, remote_get_tib_address)
8553 (remote_supports_cond_tracepoints)
8554 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8556 * skip.c (_initialize_step_skip): Declare.
8557 * symtab.c (skip_prologue_using_lineinfo): Make static.
8558 * tracepoint.c (delete_trace_state_variable)
8559 (trace_variable_command, delete_trace_variable_command)
8560 (get_uploaded_tsv, find_matching_tracepoint_location)
8561 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8563 * value.c (pack_unsigned_long): Make static.
8564 * varobj.c (varobj_ensure_python_env): Make static.
8565 * windows-tdep.c (_initialize_windows_tdep): Declare.
8566 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8568 2012-03-01 Pedro Alves <palves@redhat.com>
8570 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8572 (linux_init_abi): Install it as has_shared_address_space gdbarch
8575 2012-03-01 Pedro Alves <palves@redhat.com>
8577 * observer.c (observer_test_first_notification_function)
8578 (observer_test_second_notification_function)
8579 (observer_test_third_notification_function): Add declarations.
8581 2012-03-01 Pedro Alves <palves@redhat.com>
8583 * common/signals.c (default_target_signal_to_host)
8584 (default_target_signal_from_host): Move ...
8585 * arch-utils.c: ... here.
8586 * arch-utils.h (default_target_signal_to_host)
8587 (default_target_signal_from_host): Declare.
8589 * common/signals.c (target_signal_from_command): Move ...
8590 * infrun.c: ... here.
8591 * inferior.h (target_signal_from_command): Declare.
8592 * target.h (target_signal_from_command)
8593 (default_target_signal_from_host, default_target_signal_to_host):
8594 Delete declarations.
8596 * common/signals.c (_initialize_signals): Delete.
8598 2012-03-01 Pedro Alves <palves@redhat.com>
8600 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8601 both __cplusplus and !__cplusplus.
8603 2012-03-01 Pedro Alves <palves@redhat.com>
8605 * psymtab.c (find_and_open_source): Delete declaration.
8606 * source.c (find_and_open_source): Move comment ...
8607 * source.h (find_and_open_source): ... to this new declaration.
8609 2012-03-01 Pedro Alves <palves@redhat.com>
8611 * inline-frame.c: Include inline-frame.h.
8613 2012-03-01 Pedro Alves <palves@redhat.com>
8615 * tui/tui-data.c (set_gen_win_origin): Delete.
8616 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8617 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8619 2012-03-01 Pedro Alves <palves@redhat.com>
8621 * remote.c (encode_actions): Delete declaration.
8622 * tracepoint.c (encode_actions): Make extern.
8623 * tracepoint.h (encode_actions): Declare.
8625 2012-03-01 Pedro Alves <palves@redhat.com>
8627 * python/py-breakpoint.c: Include python.h.
8628 * python/py-continueevent.c (create_continue_event_object): Make
8630 * python/py-lazy-string.c (stpy_get_type): Make static.
8631 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8633 * python/py-utils.c (unicode_to_target_python_string): Make
8635 * python/py-value.c: Include python.h.
8637 2012-03-01 Pedro Alves <palves@redhat.com>
8639 * inferior.c (delete_threads_of_inferior): Delete.
8641 2012-03-01 Pedro Alves <palves@redhat.com>
8643 Import fallback definitions from glibc.
8645 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8646 ps_prochandle): Forward declare.
8647 (ps_err_e): Use glibc's comments.
8648 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8649 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8650 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8651 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8652 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8653 (struct ps_prochandle): Adjust comment.
8655 2012-03-01 Pedro Alves <palves@redhat.com>
8657 * ada-lang.c (ada_modulus_from_name): Delete.
8658 * ada-lex.l (lexer_init): Make static.
8660 2012-03-01 Pedro Alves <palves@redhat.com>
8664 * frame.c (read_frame_register_unsigned): New.
8665 * frame.h (read_frame_register_unsigned): Declare.
8666 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8668 (print_i387_control_word): New parameter `control_p'. Handle it.
8669 (i387_print_float_info): Handle unavailable float registers.
8671 2012-03-01 Keith Seitz <keiths@redhat.com>
8673 * linespec.c (decode_line_2): Sort the list of methods
8674 alphabetically before presenting the user with a selection
8677 2012-03-01 Doug Evans <dje@google.com>
8679 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8681 (dwarf2_read_abbrevs): Remove corresponding initialization.
8683 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8685 * NEWS: Mention new python command class gdb.COMMAND_USER.
8686 * cli/cli-cmds.c (show_user): Print error when used on a python
8688 (init_cli_cmds): Update documentation strings for "show user" and
8689 "set/show max-user-call-depth" to clarify that it does not apply to
8691 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8693 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8695 * top.c (execute_command): Only execute a user-defined command as a
8696 legacy macro if c->user_commands is set.
8698 2012-03-01 Tom Tromey <tromey@redhat.com>
8700 * valprint.h (struct generic_val_print_decorations): New.
8701 (generic_val_print): Declare.
8702 * valprint.c (generic_val_print): New function.
8703 * p-valprint.c (p_decorations): New global.
8704 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8705 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8706 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8707 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8708 * m2-valprint.c (m2_decorations): New global.
8709 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8710 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8711 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8712 TYPE_CODE_ERROR>: Call generic_val_print.
8713 * f-valprint.c (f_decorations): New global.
8714 (f_val_print): Use print_function_pointer_address.
8715 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8716 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8717 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8719 * c-valprint.c (c_decorations): New global.
8720 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8721 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8722 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8723 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8724 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8725 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8728 2012-03-01 Tom Tromey <tromey@redhat.com>
8730 * valprint.c (val_print): Update.
8731 * p-valprint (pascal_val_print): Return void.
8732 * p-lang.h (pascal_val_print): Return void.
8733 * m2-valprint.c (m2_val_print): Return void.
8734 * m2-lang.h (m2_val_print): Return void.
8735 * language.h (struct language_defn) <la_val_print>: Return void.
8736 * language.c (unk_lang_val_print): Return void.
8737 * jv-valprint.c (java_val_print): Return void.
8738 * jv-lang.h (java_val_print): Return void.
8739 * f-valprint.c (f_val_print): Return void.
8740 * f-lang.h (f_val_print): Return void.
8741 * d-valprint.c (d_val_print): Return void.
8742 (dynamic_array_type): Update.
8743 * d-lang.h (d_val_print): Return void.
8744 * c-valprint.c (c_val_print): Return void.
8745 * c-lang.h (c_val_print): Return void.
8746 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8748 * ada-lang.h (ada_val_print): Return void.
8750 2012-03-01 Tom Tromey <tromey@redhat.com>
8752 * value.h (val_print): Return void.
8753 * valprint.c (val_print): Return void.
8755 2012-03-01 Tom Tromey <tromey@redhat.com>
8757 * value.h (common_val_print): Return void.
8758 * valprint.c (common_val_print): Return void.
8760 2012-03-01 Tom Tromey <tromey@redhat.com>
8762 * value.h (value_print): Return void.
8763 * valprint.c (value_print): Return void.
8764 * p-valprint.c (pascal_value_print): Return void.
8765 * p-lang.h (pascal_value_print): Return void.
8766 * language.h (struct language_defn) <la_value_print>: Return
8768 * language.c (unk_lang_value_print): Return void.
8769 * jv-valprint.c (java_value_print): Return void.
8770 * jv-lang.h (java_value_print): Return void.
8771 * f-valprint.c (c_value_print): Don't declare.
8773 * c-valprint.c (c_value_print): Return void.
8774 * c-lang.h (c_value_print): Return void.
8775 * ada-valprint.c (ada_value_print): Return void.
8776 * ada-lang.h (ada_value_print): Return void.
8778 2012-03-01 Tom Tromey <tromey@redhat.com>
8780 * value.c (value_primitive_field): Handle virtual base classes.
8782 2012-03-01 Tom Tromey <tromey@redhat.com>
8784 * gdbtypes.h (struct vbase): Remove.
8786 2012-03-01 Tom Tromey <tromey@redhat.com>
8788 * c-valprint.c (print_function_pointer_address): Move...
8789 * valprint.c: ... here. Make non-static.
8790 * m2-valprint.c (print_function_pointer_address): Remove.
8791 * valprint.h (print_function_pointer_address): Declare.
8793 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8795 * NEWS: Document the fact that one can provide a condition when
8796 creating an Ada exception catchpoint.
8798 2012-03-01 Tom Tromey <tromey@redhat.com>
8800 * valprint.c (val_print_type_code_flags): Fix placement of
8803 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8805 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8806 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8807 environment variable before calling update-copyright.
8809 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8811 * gnulib/extra/update-copyright: Update to the latest from
8812 gnulib's git repository.
8813 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8814 variable to 2 instead of 1.
8816 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8818 * varobj.c (c_value_of_variable): Remove dead code.
8820 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8822 * ada-lex.p (processId): Do not modify already encoded IDs.
8823 Update function documentation.
8825 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8827 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8828 "name" with "struct symbol *name_sym".
8829 * ada-exp.y (write_var_or_type): Update call to
8830 ada_find_renaming_symbol.
8831 "name" with "struct symbol *name_sym". Adjust Implementation
8832 accordingly. Adjust the function documentation.
8834 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8836 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8837 * ada-lang.c (ada_find_any_type): Add advance declaration.
8838 Make static. Replace ada_find_any_symbol by
8839 ada_find_any_type_symbol.
8840 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8841 Improve function description. Make static.
8842 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8843 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8845 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8847 * ada-lang.c (struct tag_args): Delete.
8848 (ada_get_tsd_type): Function body moved up in source file.
8849 (ada_tag_name_1, ada_tag_name_2): Delete.
8850 (ada_get_tsd_from_tag): New function.
8851 (ada_tag_name_from_tsd): New function.
8852 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8853 to determine the tag name.
8855 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8857 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8859 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8862 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8864 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8866 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8868 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8871 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8873 * ada-lang.c (constrained_packed_array_type): If there is a
8874 parallel XA type, use it to determine the array index type.
8876 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8878 * ada-valprint.c (ada_val_print_1): If our value is a reference
8879 to an array descriptor, dereference it before converting it
8882 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8884 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8885 creating fixed value.
8886 (ada_value_ind, ada_coerce_ref, assign_component)
8887 (ada_evaluate_subexp): Remove call to unwrap_value before
8888 call to ada_to_fixed_value.
8890 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8892 * ada-lang.c (to_fixed_array_type): Set result's type name.
8894 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8896 * ada-lang.c (catch_ada_exception_command_split): Add new
8897 argument cond_string. Add support for condition at end of
8898 "catch exception" commands.
8899 (ada_decode_exception_location): Add new argument cond_string.
8900 Update call to catch_ada_exception_command_split.
8901 (create_ada_exception_catchpoint): Add new argument cond_string.
8902 Set the breakpoint condition if needed.
8903 (catch_ada_exception_command): Update call to
8904 ada_decode_exception_location.
8905 (ada_decode_assert_location): Add function documentation.
8906 Add support for condition at end of "catch assert" command.
8907 (catch_assert_command): Update calls to ada_decode_assert_location
8908 and create_ada_exception_catchpoint.
8910 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8912 Fix disp-step-syscall.exp: fork: single step over fork.
8913 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8914 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8915 comment, change parameters gdbarch and ptid to regcache. Remove
8916 parameter regcache, initialize gdbarch from regcache here.
8917 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8919 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8921 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8922 'syscall'. Make the 'int' check more strict.
8924 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8926 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8927 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8928 (i386_linux_intx80_sysenter_syscall_record): ... here.
8929 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8930 Use the renamed function name.
8932 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8934 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8935 * breakpoint.c (until_break_command): Likewise.
8936 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8937 * infcall.c (call_function_by_hand): Likewise.
8938 * infcmd.c (finish_forward): Likewise.
8939 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8941 2012-02-28 Tristan Gingold <gingold@adacore.com>
8943 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8944 avoid variable assignments inside condition.
8946 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8948 Fix static analysis issue found by cppcheck.
8949 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8950 uninitialized BUF for size 2.
8952 2012-02-27 Chris Dearman <chris@mips.com>
8953 Nathan Froyd <froydnj@codesourcery.com>
8954 Maciej W. Rozycki <macro@codesourcery.com>
8956 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8957 (mips16_instruction_has_delay_slot): Likewise.
8958 (mips_segment_boundary): Likewise.
8959 (mips_adjust_breakpoint_address): Likewise.
8960 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8962 2012-02-27 Maciej W. Rozycki <macro@mips.com>
8963 Maciej W. Rozycki <macro@codesourcery.com>
8965 * infrun.c (handle_inferior_event): Don't proceed through
8966 shared library trampolines if stepping at the machine
8969 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8971 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8974 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8976 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8977 (sh_stub_unwind_sniffer): New functions.
8978 (sh_stub_unwind): New variable.
8979 (sh_gdbarch_init): Wire everything.
8981 2012-02-27 Pedro Alves <palves@redhat.com>
8983 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8984 (linux_nat_post_attach_wait): Adjust to use
8985 linux_proc_pid_is_stopped.
8986 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8987 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8988 based on pid_is_stopped from both linux-nat.c and
8989 gdbserver/linux-low.c, and renamed.
8991 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8993 * remote.c (remote_watchpoint_addr_within_range): New function.
8994 (init_remote_ops): Use it.
8996 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8998 * target.h (target_watchpoint_addr_within_range): Document macro.
9000 2012-02-24 Pedro Alves <palves@redhat.com>
9002 * stack.c (set_last_displayed_sal): Issue internal_error instead
9003 of warning, and issue it after clearing the last displayed sal.
9005 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9006 Pedro Alves <palves@redhat.com>
9008 * breakpoint.c (until_break_command): Install breakpoints after
9009 all frame manipulations.
9011 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9013 * remote.c (remote_supports_cond_breakpoints): New forward
9015 (remote_add_target_side_condition): New function.
9016 (remote_insert_breakpoint): Add target-side breakpoint
9017 conditional if supported.
9018 (remote_insert_hw_breakpoint): Likewise.
9019 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9022 * target.c (update_current_target): Inherit
9023 to_supports_evaluation_of_breakpoint_conditions.
9024 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9026 * target.h (struct target_ops)
9027 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9028 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9030 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9031 (condition_evaluation_both, condition_evaluation_auto,
9032 condition_evaluation_host, condition_evaluation_target,
9033 condition_evaluation_enums, condition_evaluation_mode_1,
9034 condition_evaluation_mode): New static globals.
9035 (translate_condition_evaluation_mode): New function.
9036 (breakpoint_condition_evaluation_mode): New function.
9037 (gdb_evaluates_breakpoint_condition_p): New function.
9038 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9039 (mark_breakpoint_modified): New function.
9040 (mark_breakpoint_location_modified): New function.
9041 (set_condition_evaluation_mode): New function.
9042 (show_condition_evaluation_mode): New function.
9043 (bp_location_compare_addrs): New function.
9044 (get_first_location_gte_addr): New helper function.
9045 (set_breakpoint_condition): Free condition bytecode if locations
9046 has become unconditional. Call mark_breakpoint_modified (...).
9047 (condition_command): Call update_global_location_list (1) for
9049 (breakpoint_xfer_memory): Use is_breakpoint (...).
9050 (is_breakpoint): New function.
9051 (parse_cond_to_aexpr): New function.
9052 (build_target_condition_list): New function.
9053 (insert_bp_location): Handle target-side conditional
9054 breakpoints and call build_target_condition_list (...).
9055 (update_inserted_breakpoint_locations): New function.
9056 (insert_breakpoint_locations): Handle target-side conditional
9058 (bpstat_check_breakpoint_conditions): Add comment.
9059 (bp_condition_evaluator): New function.
9060 (bp_location_condition_evaluator): New function.
9061 (print_breakpoint_location): Print information on where the condition
9063 (print_one_breakpoint_location): Likewise.
9064 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9065 breakpoint location.
9066 (force_breakpoint_reinsertion): New functions.
9067 (update_global_location_list): Handle target-side breakpoint
9069 Reinsert locations that are already inserted if conditions have
9071 (bp_location_dtor): Free agent expression bytecode.
9072 (disable_breakpoint): Call mark_breakpoint_modified (...).
9073 Call update_global_location_list (...) with parameter 1 for breakpoints.
9074 (disable_command): Call mark_breakpoint_location_modified (...).
9075 Call update_global_location_list (...) with parameter 1 for breakpoints.
9076 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9077 (enable_command): mark_breakpoint_location_modified (...).
9078 (_initialize_breakpoint): Update documentation and add
9079 condition-evaluation breakpoint subcommand.
9081 * breakpoint.h: Include ax.h.
9082 (condition_list): New data structure.
9083 (condition_status): New enum.
9084 (bp_target_info) <cond_list>: New field.
9085 (bp_location) <condition_changed, cond_bytecode>: New fields.
9086 (is_breakpoint): New prototype.
9088 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9090 * remote.c (remote_state) <cond_breakpoints>: New field.
9091 (PACKET_ConditionalBreakpoints): New enum.
9092 (remote_cond_breakpoint_feature): New function.
9093 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9094 (remote_supports_cond_breakpoints): New function.
9095 (_initialize_remote): Add new packet configuration for
9096 target-side conditional breakpoints.
9098 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9100 * NEWS: Mention target-side conditional breakpoint support,
9101 new condition-evaluation breakpoint subcommand and remote
9104 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9106 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9109 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9111 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9112 (after_prologue): Remove.
9114 2012-02-23 Tom Tromey <tromey@redhat.com>
9116 * jv-valprint.c (java_val_print): Remove dead code.
9118 2012-02-23 Tristan Gingold <gingold@adacore.com>
9120 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9121 known_tasks_element and known_tasks_length fields.
9122 (read_known_tasks_array): Change argument type. Use pointer type
9123 and number of elements from DATA. Adjust.
9124 (read_known_tasks_list): Likewise.
9125 (get_known_tasks_addr): Remove.
9126 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9127 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9128 type and array length. Merge former get_known_tasks_addr code.
9130 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9133 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9134 it after set_momentary_breakpoint.
9136 2012-02-22 Sterling Augustine <saugustine@google.com>
9139 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9141 2012-02-22 Gary Benson <gbenson@redhat.com>
9143 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9144 (find_slot_in_mapped_hash): Likewise.
9146 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9149 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9150 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9151 * configure: Regenerate.
9153 2012-02-21 Tristan Gingold <gingold@adacore.com>
9154 Pedro Alves <palves@redhat.com>
9156 * ia64-tdep.c: Do not include libunwind-ia64.h.
9157 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9158 Include libunwind-ia64.h instead of libunwind.h.
9159 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9160 for libunwind.h existence.
9161 * configure, config.in: Regenerate.
9163 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9165 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9166 instead of value_rtti_target_type.
9167 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9168 instead of value_rtti_target_type.
9169 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9170 value_rtti_target_type.
9171 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9172 (value_rtti_target_type): Rename to ...
9173 (value_rtti_indirect_type): ... here and make it indirect. Update
9175 * value.c (readjust_indirect_value_type): New function.
9176 (coerce_ref): Support for enclosing type setting for references
9177 with readjust_indirect_value_type.
9178 * value.h (readjust_value_type): New declaration.
9179 (value_rtti_target_type): Rename to ...
9180 (value_rtti_indirect_type): ... here.
9182 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9184 * MAINTAINERS (Write After Approval): Add myself to the list.
9186 2012-02-20 Doug Evans <dje@google.com>
9188 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9189 Rename objfile_p_char parameter to objfilep.
9190 (build_objfile_section_table): Result is now void. All callers
9192 * objfiles.h (struct objfile): Tweak comments, whitespace.
9193 (build_objfile_section_table): Update.
9195 * elfread.c (elf_symfile_segments): Fix warning text.
9197 2012-02-20 Tom Tromey <tromey@redhat.com>
9200 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9201 particular set of file names once.
9202 (dw2_map_symbol_filenames): Likewise.
9204 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9207 * main.c (write_files): Remove the declaration.
9208 (external_editor_command): Move the declaration ...
9209 [GDBTK] (external_editor_command): ... here. Fix the comment.
9211 2012-02-20 Tom Tromey <tromey@redhat.com>
9213 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9216 2012-02-20 Tristan Gingold <gingold@adacore.com>
9218 * darwin-nat.h (enum darwin_msg_state): Add comments.
9220 2012-02-20 Tristan Gingold <gingold@adacore.com>
9222 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9225 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9227 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9228 between function description and implementation.
9230 2012-02-17 Tom Tromey <tromey@redhat.com>
9233 * python/py-event.c (event_object_getset): New global.
9234 (event_object_type): Reference it.
9235 * python/py-type.c (field_object_getset): New global.
9236 (field_object_type): Reference it.
9237 * python/python-internal.h (gdb_py_generic_dict): Declare.
9238 * python/py-utils.c (gdb_py_generic_dict): New function.
9240 2012-02-17 Tristan Gingold <gingold@adacore.com>
9242 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9244 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9246 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9247 TYPE_CALLING_CONVENTION annotation.
9249 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9251 * MAINTAINERS: Add rx to target ISA section.
9252 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9253 (ALLDEPFILES): Add rx-tdep.c.
9255 2012-02-16 Tom Tromey <tromey@redhat.com>
9257 * symfile.c (symbol_file_add_main_1): Use inferior's
9259 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9260 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9262 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9264 (follow_exec): Use inferior's symfile_flags.
9265 * inferior.h (struct inferior) <symfile_flags>: New field.
9267 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9270 * remote-sim.c (gdbsim_create_inferior): Call error() when
9271 sim_create_inferior() fails.
9273 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9275 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9277 2012-02-16 Tom Tromey <tromey@redhat.com>
9280 * thread.c (struct current_thread_cleanup) <was_removable>: New
9282 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9283 (make_cleanup_restore_current_thread): Initialize new field.
9285 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9287 * MAINTAINERS: Add rl78 to target ISA section.
9288 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9289 (ALLDEPFILES): Add rl78-tdep.c.
9290 * NEWS: Mention rl78 as a new target.
9292 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9294 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9296 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9298 2012-02-15 Tom Tromey <tromey@redhat.com>
9301 * infcmd.c (registers_info): Print just the current register's
9304 2012-02-15 Tom Tromey <tromey@redhat.com>
9306 * python/py-symbol.c (sympy_value): Use _().
9308 2012-02-15 Pedro Alves <palves@redhat.com>
9310 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9311 output to be like native targets'.
9312 (remote_pid_to_str): Special case the null ptid.
9314 2012-02-14 Stan Shebs <stan@codesourcery.com>
9316 * NEWS: Mention enable count command.
9317 * breakpoint.h (struct breakpoint): New field enable_count.
9318 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9319 (enable_breakpoint): Add arg to call.
9320 (struct disp_data): New struct.
9321 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9322 (do_map_enable_once_breakpoint): Create a struct and pass it.
9323 (do_map_enable_delete_breakpoint): Ditto.
9324 (do_map_enable_count_breakpoint): New function.
9325 (enable_count_command): New function.
9326 (bpstat_stop_status): Decrement enable_count.
9327 (print_one_breakpoint_location): Report enable count.
9328 (_initialize_breakpoint): Add enable count command.
9330 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9332 * rl78-tdep.c (reggroups.h): Include.
9333 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9334 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9335 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9336 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9337 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9338 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9339 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9340 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9341 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9342 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9343 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9344 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9345 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9346 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9347 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9348 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9349 beginning of register list.
9350 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9351 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9352 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9353 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9354 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9355 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9356 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9357 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9358 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9359 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9360 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9361 the pseudo registers. Rearrange other pseudo registers too so
9362 that the bank registers appear at the end.
9363 (rl78_register_type): Account for the fact that the byte sized
9364 bank registers are now pseudo-registers.
9365 (rl78_register_name): Rearrange the register name array. Make
9366 initial set of raw banked registers inaccessible.
9367 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9368 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9369 case for copying bytes back and forth between raw and pseudo
9370 versions of the banked registers. Update other cases to reflect
9372 (rl78_return_value): Update to account for changed names of
9374 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9375 rl78_register_sim_regno().
9377 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9379 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9380 the name parameter being passed to find_pc_partial_function().
9382 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9384 * MAINTAINERS: Step down from being ia64 target maintainer.
9386 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9388 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9389 compilation warning.
9391 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9393 Fix crash on loaded shlibs without loaded exec_bfd.
9394 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9395 (set_section_command): Replace exec_bfd by p->bfd.
9397 2012-02-10 Tom Tromey <tromey@redhat.com>
9399 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9400 when we have a C++ qualified name.
9402 2012-02-10 Pedro Alves <palves@redhat.com>
9404 * inferior.c (inferior_pid_to_str): New.
9405 (print_inferior, inferior_command): Use it.
9407 2012-02-10 Pedro Alves <palves@redhat.com>
9409 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9411 * configure: Regenerate.
9413 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9415 * linespec.c (decode_line_internal): Fix comment correctness.
9417 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9420 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9421 * amd64bsd-nat.c: Add support for debug registers (adapted from
9423 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9424 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9425 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9426 (amd64bsd_dr_get_control): New functions.
9427 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9428 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9429 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9430 watchpoints initialization.
9431 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9433 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9435 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9437 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9439 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9441 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9443 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9445 * language.h (symbol_name_cmp_ftype): Renames
9446 symbol_name_match_p_ftype.
9447 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9448 la_get_symbol_name_match_p.
9449 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9450 ada_get_symbol_name_match_p. Update comment.
9451 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9452 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9453 Renames symbol_name_match_p. Update field type.
9454 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9455 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9456 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9457 "la_get_symbol_name_cmp" in comments.
9458 * language.c: Likewise.
9460 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9462 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9464 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9465 (amd64_sol2_gregset32_reg_offs): Likewise.
9467 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9469 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9470 of the returned BFD is allocated by GDB.
9472 2012-02-07 Tom Tromey <tromey@redhat.com>
9475 * python/python-internal.h (frame_object_type): Declare.
9476 * python/py-symbol.c (sympy_needs_frame): New function.
9477 (sympy_value): New function.
9478 (symbol_object_getset): Add "needs_frame".
9479 (symbol_object_methods): Add "value".
9480 * python/py-frame.c (frame_object_type): No longer static.
9482 2012-02-07 Tom Tromey <tromey@redhat.com>
9485 * python/py-symbol.c (sympy_line): New function.
9486 (symbol_object_getset): Add "line".
9488 2012-02-07 Tom Tromey <tromey@redhat.com>
9490 * charset.c (find_charset_names): Check 'in' against NULL.
9492 2012-02-06 Doug Evans <dje@google.com>
9494 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9495 and fields.name members from char * to const char *. All uses updated.
9496 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9497 from char * to const char *. All uses updated.
9498 (type_name_no_tag): Update.
9499 (lookup_unsigned_typename, lookup_signed_typename): Update.
9500 * gdbtypes.c (type_name_no_tag): Change result type
9501 from char * to const char *. All callers updated.
9502 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9503 name parameter from char * to const char *.
9504 * symtab.h (struct cplus_specific): Change type of demangled_name
9505 member from char * to const char *. All uses updated.
9506 (struct general_symbol_info): Change type of name and
9507 mangled_lang.demangled_name members from char * to const char *.
9509 (symbol_get_demangled_name, symbol_natural_name): Update.
9510 (symbol_demangled_name, symbol_search_name): Update.
9511 * symtab.c (symbol_get_demangled_name): Change result type
9512 from char * to const char *. All callers updated.
9513 (symbol_natural_name, symbol_demangled_name): Ditto.
9514 (symbol_search_name): Ditto.
9515 (completion_list_add_name): Change type of symname,sym_text,
9516 text,word parameters from char * to const char *.
9517 (completion_list_objc_symbol): Change type of sym_text,
9518 text,word parameters from char * to const char *.
9519 * ada-lang.c (find_struct_field): Change type of name parameter
9520 from char * to const char *.
9521 (encoded_ordered_before): Similarly for N0,N1 parameters.
9522 (old_renaming_is_invisible): Similarly for function_name parameter.
9523 (ada_type_name): Change result type from char * to const char *.
9524 All callers updated.
9525 * ada-lang.h (ada_type_name): Update.
9526 * buildsym.c (hashname): Change type of name parameter
9527 from char * to const char *.
9528 * buildsym.h (hashname): Update.
9529 * dbxread.c (end_psymtab): Change type of include_list parameter
9530 from char ** to const char **.
9531 * dwarf2read.c (determine_prefix): Change result type
9532 from char * to const char *. All callers updated.
9533 * f-lang.c (find_common_for_function): Change type of name, funcname
9534 parameters from char * to const char *.
9535 * f-lang.c (find_common_for_function): Update.
9536 * f-valprint.c (list_all_visible_commons): Change type of funcname
9537 parameters from char * to const char *.
9538 * gdbarch.sh (static_transform_name): Change type of name parameter
9539 and result from char * to const char *.
9540 * gdbarch.c: Regenerate.
9541 * gdbarch.h: Regenerate.
9542 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9543 of name parameter from char * to const char *.
9544 * jv-lang.c (java_primitive_type_from_name): Ditto.
9545 (java_demangled_signature_length): Similarly for signature parameter.
9546 (java_demangled_signature_copy): Ditto.
9547 (java_demangle_type_signature): Ditto.
9548 * jv-lang.h (java_primitive_type_from_name): Update.
9549 (java_demangle_type_signature): Update.
9550 * objc-lang.c (specialcmp): Change type of a,b parameters
9551 from char * to const char *.
9552 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9553 from char * to const char *. All callers updated.
9554 * p-lang.h (is_pascal_string_type): Update.
9555 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9556 of name parameter from char * to const char *.
9557 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9558 * utils.c (fprintf_symbol_filtered): Ditto.
9559 * defs.h (fprintf_symbol_filtered): Update.
9560 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9561 * stabsread.h (end_psymtab): Update.
9562 * stack.c (find_frame_funname): Change type of funname parameter
9563 from char ** to const char **.
9564 * stack.h (find_frame_funname): Update.
9565 * typeprint.c (type_print): Change type of varstring parameter
9566 from char * to const char *.
9567 * value.h (type_print): Update.
9568 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9569 from char * to const char *. All callers updated.
9570 (xcoff_end_psymtab): Change type of include_list parameter
9571 from char ** to const char **. All callers updated.
9572 (swap_sym): Similarly for name parameter. All callers updated.
9573 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9575 (process_coff_symbol): Use xstrdup.
9576 * stabsread.c (stabs_method_name_from_physname): Renamed from
9577 update_method_name_from_physname. Change result type from void
9578 to char *. All callers updated.
9579 (read_member_functions): In has_destructor case, store name in objfile
9580 obstack instead of malloc space. In !has_stub case, fix mem leak.
9582 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9584 * configure: Rebuild.
9585 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9588 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9590 * configure.tgt (rl78-*-elf): New target.
9591 * rl78-tdep.c: New file.
9593 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9595 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9596 and continue the loop. Add QUIT statement.
9598 2012-02-03 Tom Tromey <tromey@redhat.com>
9601 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9602 bfd_lookup_symbol_from_symtab.
9603 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9604 gdb_bfd_lookup_symbol_from_symtab.
9606 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9608 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9609 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9610 symbol. Add assertion that sym2 is never NULL.
9612 2012-02-02 Doug Evans <dje@google.com>
9614 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9615 "name" parameter to const char ** from char **. All callers updated.
9616 (find_pc_partial_function): Ditto.
9617 (cache_pc_function_name): Change type to const char * from char *.
9618 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9619 (find_pc_partial_function): Update.
9620 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9621 type of "name" parameter to const char * from char *.
9623 * arch-utils.c (generic_in_solib_return_trampoline): Change
9624 type of "name" parameter to const char * from char *.
9625 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9626 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9627 type of "name" parameter to const char * from char *.
9628 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9629 * gdbarch.c: Regenerate.
9630 * gdbarch.h: Regenerate.
9631 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9632 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9633 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9634 type of "name" parameter to const char * from char *.
9635 * skip.c (skip_function_pc): Ditto.
9636 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9637 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9638 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9639 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9640 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9641 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9642 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9643 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9644 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9646 2012-02-02 Pedro Alves <palves@redhat.com>
9648 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9649 the current inferior has no execution. Make sure the current
9650 remote process matches gdb's current inferior.
9652 2012-02-02 Tom Tromey <tromey@redhat.com>
9655 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9658 2012-02-02 Tom Tromey <tromey@redhat.com>
9661 * symtab.c (lookup_language_this): Set block_found.
9663 2012-02-01 Tom Tromey <tromey@redhat.com>
9666 * jit.c (struct jit_inferior_data): Rewrite.
9667 (struct jit_objfile_data): New.
9668 (get_jit_objfile_data): New function.
9669 (add_objfile_entry): Update.
9670 (jit_read_descriptor): Return int. Replace descriptor_addr
9671 argument with inf_data. Update. Don't call error.
9672 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9674 (jit_inferior_init): Don't look up descriptor. Don't call error.
9675 (jit_reset_inferior_data_and_breakpoints)
9676 (jit_inferior_created_observer): Remove.
9677 (jit_inferior_exit_hook): Update.
9678 (jit_executable_changed_observer): Remove.
9679 (jit_event_handler): Update.
9680 (free_objfile_data): Reset inferior data if needed.
9681 (_initialize_jit): Update.
9683 2012-02-01 Tom Tromey <tromey@redhat.com>
9685 * jit.c (bfd_open_from_target_memory): Move higher in file.
9687 2012-02-01 Tristan Gingold <gingold@adacore.com>
9689 * libunwind-frame.c (libunwind_load): Display message if dlopen
9692 2012-02-01 Gary Benson <gbenson@redhat.com>
9694 * symtab.h (symbol_found_callback_ftype): New typedef.
9695 (iterate_over_symbols): Use the above.
9696 * symtab.c (iterate_over_symbols): Likewise.
9697 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9698 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9699 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9700 (iterate_name_matcher): Document return values.
9701 (collect_one_symbol): Likewise.
9702 (collect_function_symbols): Likewise.
9703 (collect_symbols): Likewise.
9705 2012-02-01 Tom Tromey <tromey@redhat.com>
9707 * ada-lang.c (resolve_subexp): Update.
9708 (ada_lookup_symbol_list): Add 'full_search' argument.
9709 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9710 ada_lookup_symbol_list.
9711 (ada_lookup_encoded_symbol): Update.
9712 (get_var_value): Update.
9713 * ada-exp.y (block_lookup): Update.
9714 (write_var_or_type): Update.
9715 (write_name_assoc): Update.
9716 * ada-lang.h (ada_lookup_symbol_list): Update.
9718 2012-01-31 Tom Tromey <tromey@redhat.com>
9720 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9723 2012-01-31 Doug Evans <dje@google.com>
9725 * symtab.h: Remove outdated comment.
9726 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9728 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9730 Fix build error in Darwin port.
9731 * i386-darwin-nat.c: Include i386-nat.h.
9733 2012-01-30 Tom Tromey <tromey@redhat.com>
9735 PR breakpoints/13568:
9736 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9737 argument. Check for recursive includes.
9738 (dwarf_decode_macros): Create an include hash.
9740 2012-01-30 Michael Eager <eager@eagercon.com>
9742 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9743 * ppc-linux-tdep.c: Include glibc-tdep.h.
9744 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9745 (powerpc_linux_in_plt_stub): New function.
9746 (powerpc_linux_in_dynsym_resolve_code): New function.
9747 (ppc_skip_trampoline_code): New function.
9748 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9749 Use glibc_skip_solib_resolver.
9751 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9753 Code cleanup: Make 1440 bytes of data segment read-only.
9754 * arch-utils.c (endian_enum): Make it const char *const [].
9755 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9757 * breakpoint.c (always_inserted_enums): Likewise.
9758 * cli/cli-cmds.c (script_ext_enums): Likewise.
9759 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9760 enumlist parameter const char *const *.
9761 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9762 const char *const *.
9763 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9764 parameter const char *const *.
9765 * cris-tdep.c (cris_modes): Make it const char *const [].
9766 * filesystem.c (target_file_system_kinds): Likewise.
9767 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9768 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9769 (can_use_displaced_stepping_enum, scheduler_enums)
9770 (exec_direction_names): Likewise.
9771 * language.c (_initialize_language): Make the type_or_range_names and
9772 case_sensitive_names variables const char *const [].
9773 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9774 * python/python.c (python_excp_enums): Likewise.
9775 * remote.c (interrupt_sequence_modes): Likewise.
9776 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9777 * serial.c (logbase_enums): Likewise.
9778 * sh-tdep.c (sh_cc_enum): Likewise.
9779 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9781 * symtab.c (multiple_symbols_modes): Likewise.
9782 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9784 * utils.c (internal_problem_modes): Likewise.
9786 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9788 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9789 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9792 2012-01-27 Doug Evans <dje@google.com>
9794 * configure.ac (with_python): Fix absolute path handling for win32.
9795 * configure: Regenerate.
9797 2012-01-26 Doug Evans <dje@google.com>
9799 * symtab.c: Whitespace cleanup, no code changes.
9801 * symtab.c (lookup_symbol_in_language): Improve comment.
9802 (lookup_symbol_aux): Fix comment.
9804 * psymtab.c (add_psymbol_to_list): Result is now "void".
9805 * psympriv.h (add_psymbol_to_list): Update.
9807 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9809 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9811 Do not open script filenames twice.
9812 * cli/cli-cmds.c (source_script_from_stream): Pass to
9813 source_python_script also STREAM.
9814 * python/py-auto-load.c (source_section_scripts): Pass to
9815 source_python_script_for_objfile also STREAM.
9816 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9818 * python/python-internal.h (source_python_script_for_objfile): New
9819 parameter file, rename parameter file to filename.
9820 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9821 instead if !_WIN32. Update the function comment.
9822 (source_python_script, source_python_script_for_objfile)
9823 (source_python_script): New parameter file, rename parameter file to
9824 filename. Pass FILENAME to python_run_simple_file.
9825 * python/python.h (source_python_script): New parameter file, rename
9826 parameter file to filename.
9828 2012-01-26 Pedro Alves <palves@redhat.com>
9830 * corelow.c (core_has_fake_pid): Delete.
9831 (core_close): Delete references to `core_has_fake_pid'.
9832 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9833 (core_open): Delete references to `core_has_fake_pid'.
9834 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9837 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9839 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9840 Remove language parameter from name_matcher. Adjust the comment.
9841 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9842 Remove language parameter.
9843 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9844 * linespec.c (iterate_name_matcher): Likewise.
9845 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9846 name_matcher. Adjust call accordingly.
9847 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9848 (maintenance_check_symtabs): Adjust type of parameter "fun".
9849 * psymtab.h (maintenance_check_symtabs): Likewise.
9851 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9853 * language.h (symbol_name_match_p_ftype): New typedef.
9854 (struct language_defn): Replace field la_symbol_name_compare
9855 by la_get_symbol_name_match_p.
9856 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9857 (ada_language_defn): Use it.
9858 * linespec.c (struct symbol_matcher_data): New type.
9859 (iterate_name_matcher): Rewrite.
9860 (iterate_over_all_matching_symtabs): Pass a pointer to
9861 a symbol_matcher_data struct to expand_symtabs_matching
9862 instead of just the lookup name.
9863 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9864 opencl-lang.c, p-lang.c, language.c: Delete field
9865 la_symbol_name_compare, and replace by NULL for new field
9866 la_get_symbol_name_match_p.
9867 * symfile.h (struct quick_symbol_functions): Update comment.
9869 2012-01-25 Tom Tromey <tromey@redhat.com>
9871 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9874 2012-01-24 Tom Tromey <tromey@redhat.com>
9877 * solib.c (update_solib_list): Update the program space's
9878 added_solibs and deleted_solibs fields.
9879 * progspace.h (struct program_space) <added_solibs,
9880 deleted_solibs>: New fields.
9881 (clear_program_space_solib_cache): Declare.
9882 * progspace.c (release_program_space): Call
9883 clear_program_space_solib_cache.
9884 (clear_program_space_solib_cache): New function.
9885 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9886 bpstat_stop_status. Use handle_solib_event.
9887 * breakpoint.c: Include gdb_regex.h.
9888 (print_solib_event): New function.
9889 (bpstat_print): Use print_solib_event.
9890 (bpstat_stop_status): Add special case for bp_shlib_event.
9891 (handle_solib_event): New function.
9892 (bpstat_what): Use handle_solib_event.
9893 (struct solib_catchpoint): New.
9894 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9895 (breakpoint_hit_catch_solib, check_status_catch_solib)
9896 (print_it_catch_solib, print_one_catch_solib)
9897 (print_mention_catch_solib, print_recreate_catch_solib): New
9899 (catch_solib_breakpoint_ops): New global.
9900 (catch_load_or_unload, catch_load_command_1)
9901 (catch_unload_command_1): New functions.
9902 (internal_bkpt_check_status): Add special case for
9904 (internal_bkpt_print_it): Use print_solib_event.
9905 (initialize_breakpoint_ops): Initialize
9906 catch_solib_breakpoint_ops.
9907 (_initialize_breakpoint): Register "catch load" and "catch
9909 * breakpoint.h (handle_solib_event): Declare.
9910 * NEWS: Add entry for "catch load" and "catch unload".
9912 2012-01-24 Tom Tromey <tromey@redhat.com>
9914 * ada-lang.c: Include gdb_vecs.h.
9915 * charset.c: Include gdb_vecs.h.
9916 * tracepoint.h: Include gdb_vecs.h.
9917 * gdb_vecs.h: New file.
9919 2012-01-24 Pedro Alves <pedro@codesourcery.com>
9921 * breakpoint.c (breakpoint_hit_catch_fork)
9922 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9923 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9924 * infrun.c (inferior_has_forked, inferior_has_vforked)
9925 (inferior_has_execd, inferior_has_called_syscall): Delete.
9926 (handle_syscall_event): Get syscall_number from the execution
9927 control state's wait status.
9928 (wait_for_inferior): Don't clear syscall_number.
9930 2012-01-24 Pedro Alves <palves@redhat.com>
9932 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9933 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9934 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9935 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9937 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9938 false for events other than TARGET_SIGNAL_TRAP.
9939 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9941 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9942 events other than TARGET_SIGNAL_TRAP.
9943 (tracepoint_breakpoint_hit): Add `ws' parameter.
9944 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9946 (bpstat_stop_status): Same.
9947 (pc_at_non_inline_function): Same.
9948 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9949 to pass the current event's waitstatus to bpstat_stop_status
9950 and pc_at_non_inline_function.
9952 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9955 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9956 Update the function comment for it.
9957 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9958 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9961 2012-01-24 Pedro Alves <palves@redhat.com>
9963 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9964 outside `bs->stop' block.
9965 (bpstat_what): Rework bp_shlib_event handling.
9966 (internal_bkpt_check_status): If the breakpoint is a
9967 bp_shlib_event, then set bs->stop and bs->print if
9968 stop_on_solib_events is set.
9970 2012-01-24 Gary Benson <gbenson@redhat.com>
9972 Delete #if 0'd out code.
9973 * stack.c (print_frame_label_vars): Remove.
9974 (catch_info): Likewise.
9975 (_initialize_stack): Remove "info catch" command.
9976 * NEWS: Mention the above.
9978 2012-01-24 Pedro Alves <palves@redhat.com>
9980 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9982 (remote_notice_new_inferior): If the remote end doesn't support
9983 the multiprocess extensions, then the PID is fake.
9984 (add_current_inferior_and_thread): New.
9985 (remote_start_remote): Use it.
9986 (extended_remote_attach_1): Adjust.
9987 (extended_remote_create_inferior_1): Use
9988 add_current_inferior_and_thread.
9990 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9992 Fix watchpoints to be specific for each inferior.
9993 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9994 current_program_space.
9995 * i386-nat.c (i386_inferior_data_cleanup): New.
9996 (i386_inferior_data_get): Replace variable inf_data_local by an
9998 (i386_use_watchpoints): Initialize i386_inferior_data.
9999 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10000 specific iterate_over_lwps.
10002 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10004 Fix watchpoints across inferior fork.
10005 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10006 comment for linux_nat_iterate_watchpoint_lwps.
10007 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10008 linux_nat_iterate_watchpoint_lwps.
10009 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10010 * i386-linux-nat.c (update_debug_registers_callback): Update the
10011 comment for linux_nat_iterate_watchpoint_lwps.
10012 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10013 linux_nat_iterate_watchpoint_lwps.
10014 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10015 * i386-nat.c: Include inferior.h.
10016 (dr_mirror): Remove.
10017 (i386_inferior_data, struct i386_inferior_data)
10018 (i386_inferior_data_get): New.
10019 (i386_debug_reg_state): Use i386_inferior_data_get.
10020 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10021 (i386_insert_watchpoint, i386_remove_watchpoint)
10022 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10023 (i386_remove_hw_breakpoint): New variable state, use
10024 i386_debug_reg_state instead of DR_MIRROR.
10025 * linux-nat.c (delete_lwp): New declaration.
10026 (num_lwps): Move here from downwards.
10027 (delete_lwp_cleanup): New.
10028 (linux_child_follow_fork): Create new child_lp, call
10029 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10031 (num_lwps): Move upwards.
10032 (linux_nat_iterate_watchpoint_lwps): New.
10033 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10034 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10036 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10040 2012-01-23 Pedro Alves <palves@redhat.com>
10042 * top.c (caution): Rename to ...
10043 (confirm): ... this.
10044 (show_caution): Rename to ...
10045 (show_confirm): ... this.
10046 (quit_cover): Adjust.
10047 (init_main): Adjust.
10048 * top.h (caution): Rename to ...
10049 (confirm): ... this.
10050 * utils.c (internal_vproblem, defaulted_query): Adjust.
10052 2012-01-23 Pedro Alves <palves@redhat.com>
10054 * top.c (caution): Update comment.
10055 (execute_command): Don't consider the current value of `caution'.
10057 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10059 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10061 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10063 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10064 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10065 * target.c (target_fileio_pwrite): Remove buffer address from
10067 (target_fileio_pread): Likewise.
10069 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10071 * NEWS: Document remote "info proc" and "generate-core-file".
10073 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10075 * gdbarch.sh (find_memory_regions): New callback.
10076 * gdbarch.c, gdbarch.h: Regenerate.
10078 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10079 callback before falling back to target method.
10081 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10082 (linux_target_install_ops): No longer install it.
10084 * linux-tdep.c (linux_find_memory_regions): New function.
10085 (linux_init_abi): Install it.
10087 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10089 * gdbarch.sh (make_corefile_notes): New architecture callback.
10090 * gdbarch.c: Regenerate.
10091 * gdbarch.h: Likewise.
10093 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10094 before target_make_corefile_notes. If NULL is returned, the
10095 target does not support core file generation.
10097 * linux-nat.c: Include "linux-tdep.h".
10098 (find_signalled_thread, find_stop_signal): Remove.
10099 (linux_nat_do_thread_registers): Likewise.
10100 (struct linux_nat_corefile_thread_data): Likewise.
10101 (linux_nat_corefile_thread_callback): Likewise.
10102 (iterate_over_spus): Likewise.
10103 (struct linux_spu_corefile_data): Likewise.
10104 (linux_spu_corefile_callback): Likewise.
10105 (linux_spu_make_corefile_notes): Likewise.
10106 (linux_nat_collect_thread_registers): New function.
10107 (linux_nat_make_corefile_notes): Replace contents by call to
10108 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10109 as native-only callback.
10111 * linux-tdep.h: Include "bfd.h".
10112 (struct regcache): Add forward declaration.
10113 (linux_collect_thread_registers_ftype): New typedef.
10114 (linux_make_corefile_notes): Add prototype.
10115 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10116 "regset.h", and "elf-bfd.h".
10117 (find_signalled_thread, find_stop_signal): New functions.
10118 (linux_spu_make_corefile_notes): Likewise.
10119 (linux_collect_thread_registers): Likewise.
10120 (struct linux_corefile_thread_data): New data structure.
10121 (linux_corefile_thread_callback): New funcion.
10122 (linux_make_corefile_notes): Likewise.
10123 (linux_make_corefile_notes_1): Likewise.
10124 (linux_init_abi): Install it.
10126 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10128 * gdbarch.sh (info_proc): New callback.
10129 * gdbarch.c, gdbarch.h: Regenerate.
10131 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10132 before falling back to the target info_proc callback.
10134 * linux-nat.c: Do not include "cli/cli-utils.h".
10135 (linux_nat_info_proc): Remove.
10136 (linux_target_install_ops): No longer install it.
10138 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10139 (read_mapping): New function.
10140 (linux_info_proc): Likewise.
10141 (linux_init_abi): Install it.
10143 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10145 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10146 * infcmd.c: (info_proc_cmd_1): New function.
10147 (info_proc_cmd): New function, moved here from equivalent routine
10148 orignally in linux-nat.c.
10149 (info_proc_cmd_mappings): Likewise.
10150 (info_proc_cmd_stat): Likewise.
10151 (info_proc_cmd_status): Likewise.
10152 (info_proc_cmd_cwd): Likewise.
10153 (info_proc_cmd_cmdline): Likewise.
10154 (info_proc_cmd_exe): Likewise.
10155 (info_proc_cmd_all): Likewise.
10156 (_initialize_infcmd): Install "info proc" command and subcommands.
10158 * target.h (struct target_ops): Add to_info_proc.
10159 (target_info_proc): Add prototype.
10160 * target.c (target_info_proc): New function.
10162 * procfs.c (procfs_info_proc): Add prototype.
10163 (info_proc_cmd): Rename into ...
10164 (procfs_info_proc): ... this. Update argument types as appropriate
10165 for a to_info_proc implementation. Handle "what" argument.
10166 (procfs_target): Install procfs_info_proc.
10167 (_initialize_procfs): No longer install "info proc" command.
10169 * linux-nat.c: (enum info_proc_what): Remove.
10170 (linux_nat_info_proc_cmd_1): Rename into ...
10171 (linux_nat_info_proc): ... this. Update argument types as appropriate
10172 for a to_info_proc implementation.
10173 (linux_nat_info_proc_cmd): Remove.
10174 (linux_nat_info_proc_cmd_mappings): Likewise.
10175 (linux_nat_info_proc_cmd_stat): Likewise.
10176 (linux_nat_info_proc_cmd_status): Likewise.
10177 (linux_nat_info_proc_cmd_cwd): Likewise.
10178 (linux_nat_info_proc_cmd_cmdline): Likewise.
10179 (linux_nat_info_proc_cmd_exe): Likewise.
10180 (linux_nat_info_proc_cmd_all): Likewise.
10181 (linux_target_install_ops): Install linux_nat_info_proc.
10182 (_initialize_linux_nat): No longer install "info proc" command
10185 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10187 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10188 * config.in, configure: Regenerate.
10190 * target.h (struct target_ops): Add to_fileio_readlink.
10191 (target_fileio_readlink): Add prototype.
10192 * target.c (target_fileio_readlink): New function.
10194 * inf-child.c: Conditionally include <sys/param.h>.
10195 (inf_child_fileio_readlink): New function.
10196 (inf_child_target): Install it.
10198 * remote.c (PACKET_vFile_readlink): New enum value.
10199 (remote_hostio_readlink): New function.
10200 (init_remote_ops): Install it.
10201 (_initialize_remote): Handle vFile:readlink packet type.
10203 2012-01-20 Pedro Alves <palves@redhat.com>
10204 Ulrich Weigand <ulrich.weigand@linaro.org>
10206 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10207 * config.in, configure: Regenerate.
10209 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10210 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10211 (target_fileio_open): Add prototype.
10212 (target_fileio_pwrite): Likewise.
10213 (target_fileio_pread): Likewise.
10214 (target_fileio_close): Likewise.
10215 (target_fileio_unlink): Likewise.
10216 (target_fileio_read_alloc): Likewise.
10217 (target_fileio_read_stralloc): Likewise.
10219 * target.c: Include "gdb/fileio.h".
10220 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10221 (default_fileio_target): New function.
10222 (target_fileio_open): Likewise.
10223 (target_fileio_pwrite): Likewise.
10224 (target_fileio_pread): Likewise.
10225 (target_fileio_close): Likewise.
10226 (target_fileio_unlink): Likewise.
10227 (target_fileio_close_cleanup): Likewise.
10228 (target_fileio_read_alloc_1): Likewise.
10229 (target_fileio_read_alloc): Likewise.
10230 (target_fileio_read_stralloc): Likewise.
10232 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10233 <fcntl.h>, and <unistd.h>.
10234 (inf_child_fileio_open_flags_to_host): New function.
10235 (inf_child_errno_to_fileio_error): Likewise.
10236 (inf_child_fileio_open): Likewise.
10237 (inf_child_fileio_pwrite): Likewise.
10238 (inf_child_fileio_pread): Likewise.
10239 (inf_child_fileio_close): Likewise.
10240 (inf_child_fileio_unlink): Likewise.
10241 (inf_child_target): Install to_fileio routines.
10243 * remote.c (init_remote_ops): Install to_fileio routines.
10245 2012-01-20 Pedro Alves <palves@redhat.com>
10246 Ulrich Weigand <ulrich.weigand@linaro.org>
10248 * remote.c (remote_multi_process_p): Only check for multi-process
10249 protocol feature, do not check for extended protocol.
10250 (remote_supports_multi_process): Check for extended protocol here.
10251 (set_general_process): Likewise.
10252 (extended_remote_kill): Likewise.
10253 (remote_pid_to_str): Likewise.
10254 (remote_query_supported): Always query multiprocess mode.
10256 2012-01-20 Pedro Alves <palves@redhat.com>
10257 Ulrich Weigand <ulrich.weigand@linaro.org>
10259 * inferior.h (struct inferior): Add fake_pid_p.
10260 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10261 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10262 magic_null_ptid since the remote side doesn't provide a real PID.
10264 2012-01-19 Tom Tromey <tromey@redhat.com>
10266 * NEWS: Combine the two Python sections.
10268 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10270 * target.h (target_close): Update comment on the target's unpush state.
10272 2012-01-19 Pedro Alves <palves@redhat.com>
10274 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10275 linux_nat_async directly instead of going through the target
10277 * target.c (unpush_target): Close target after unpushing it, not
10280 2012-01-19 Gary Benson <gbenson@redhat.com>
10282 * mdebugread.c (sort_blocks): Replace integer constants with ones
10283 derived from FIRST_LOCAL_BLOCK.
10285 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10286 Jan Kratochvil <jan.kratochvil@redhat.com>
10289 * symfile.c (find_separate_debug_file): New function.
10290 (terminate_after_last_dir_separator): Likewise.
10291 (find_separate_debug_file_by_debuglink): Also try realpath.
10292 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10293 * configure: Regenerate.
10294 * config.in: Regenerate.
10296 2012-01-18 Doug Evans <dje@google.com>
10298 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10299 (main.o): Remove rule.
10300 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10301 (--with-sysroot): Rewrite.
10302 * configure: Regenerate.
10303 * config.in: Regenerate.
10305 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10307 * parse.c (initialize_expout): New function.
10308 (reallocate_expout): Likewise.
10309 (parse_exp_in_context): Use `initialize_expout' and
10310 `reallocate_expout' when appropriate.
10312 2012-01-18 Pedro Alves <palves@redhat.com>
10314 * record.c (struct record_breakpoint, record_breakpoint_p)
10315 (record_breakpoints): New.
10316 (record_insert_breakpoint, record_remove_breakpoint): Manage
10317 record breakpoints list. Only remove breakpoints from the
10318 inferior if they had been inserted there in the first place.
10320 2012-01-17 Doug Evans <dje@google.com>
10322 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10323 if we know we don't have a file name to look for.
10325 2012-01-17 Pedro Alves <palves@redhat.com>
10327 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10328 the frame's stop reason is UNWIND_UNAVAILABLE.
10330 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10332 Fix compilation error.
10333 * m2-exp.y (yyerror): Use ANSI C prototype.
10335 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10337 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10338 (growbuf_by_size): Likewise.
10339 (yyerror): Likewise.
10340 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10341 (modblock): Remove variable (was #if 0'ed).
10342 (parse_number): Convert prototype from K&R to ANSI C.
10343 (yyerror): Likewise.
10344 * objc-exp.y (parse_number): Likewise.
10345 (yyerror): Likewise.
10346 (yylex): Remove #if 0'ed code.
10347 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10348 (yyerror): Likewise.
10350 2012-01-16 Tom Tromey <tromey@redhat.com>
10353 * symtab.h (compare_filenames_for_search): Declare.
10354 * symtab.c (compare_filenames_for_search): New function.
10355 (iterate_over_some_symtabs): Use it.
10356 * symfile.h (struct quick_symbol_functions)
10357 <map_symtabs_matching_filename>: Change spec.
10358 * psymtab.c (partial_map_symtabs_matching_filename): Use
10359 compare_filenames_for_search. Update for new spec.
10360 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10361 compare_filenames_for_search. Update for new spec.
10362 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10364 2012-01-16 Tom Tromey <tromey@redhat.com>
10367 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10368 (struct main_type) <flag_flag_enum>: New field.
10369 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10370 * NEWS: Add entries.
10371 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10373 * python/lib/gdb/printing.py (_EnumInstance): New class.
10374 (FlagEnumerationPrinter): Likewise.
10376 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10378 * breakpoint.c (create_sals_from_address_default): New function.
10379 (create_breakpoints_sal_default): Likewise.
10380 (decode_linespec_default): Likewise.
10381 (is_marker_spec): Removed.
10382 (strace_marker_p): New function.
10383 (init_breakpoint_sal): Using `strace_marker_p' instead of
10385 (create_breakpoint): Call method `create_sals_from_address' from
10386 breakpoint_ops, replacing code that created SALs conditionally
10387 on the type of the breakpoint. Call method `create_breakpoints_sal',
10388 replacing code that created breakpoints conditionally on the type
10390 (base_breakpoint_create_sals_from_address): New function.
10391 (base_breakpoint_create_breakpoints_sal): Likewise.
10392 (base_breakpoint_decode_linespec): Likewise.
10393 (base_breakpoint_ops): Add methods
10394 `base_breakpoint_create_sals_from_address',
10395 `base_breakpoint_create_breakpoints_sal' and
10396 `base_breakpoint_decode_linespec'.
10397 (bkpt_create_sals_from_address): New function.
10398 (bkpt_create_breakpoints_sal): Likewise.
10399 (bkpt_decode_linespec): Likewise.
10400 (tracepoint_create_sals_from_address): Likewise.
10401 (tracepoint_create_breakpoints_sal): Likewise.
10402 (tracepoint_decode_linespec): Likewise.
10403 (strace_marker_create_sals_from_address): Likewise.
10404 (strace_marker_create_breakpoints_sal): Likewise.
10405 (strace_marker_decode_linespec): Likewise.
10406 (strace_marker_breakpoint_ops): New variable.
10407 (addr_string_to_sals): Remove `marker_spec'. Call method
10408 `decode_linespec' from breakpoint_ops, replacing code that decoded
10409 an address string into a SAL. Use `strace_marker_p' instead of
10411 (strace_command): Decide whether we are dealing with a static
10412 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10413 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10414 * breakpoint.h (linespec_result, linespec_sals): New forward
10416 (breakpoint_ops) <create_sals_from_address>,
10417 <create_breakpoints_sal>, <decode_linespec>: New methods.
10419 2012-01-14 Doug Evans <dje@google.com>
10421 * NEWS: Update text for "maint set python print-stack".
10422 It is deprecated in gdb 7.4 and deleted in 7.5.
10424 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10426 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10427 including curses.h.
10429 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10431 * configure: Regenerate.
10432 * config.in: Regenerate.
10434 2012-01-12 Keith Seitz <keiths@redhat.com>
10437 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10438 (ANONYMOUS_UNION_NAME): Define.
10439 (is_path_expr_parent): New function.
10440 (get_path_expr_parent): New function.
10441 (is_anonymous_child): New function.
10442 (create_child_with_value): If the child is anonymous and without
10443 a name, assign an object name to it.
10444 (c_describe_child): Use get_path_expr_parent to determine
10445 the parent expression.
10446 If there field represents an anonymous struct or union and
10447 has no name, set an appropriate display name and expression.
10448 (cplus_describe_child): Likewise.
10450 2012-01-12 Pedro Alves <palves@redhat.com>
10452 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10453 available when %ebp is found to be zero (outermost).
10455 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10457 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10458 an internal gdb_static_assert.
10459 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10461 2012-01-11 Tom Tromey <tromey@redhat.com>
10464 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10465 catch" and "catch throw".
10467 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10469 * blockframe.c (block_innermost_frame): Start search from selected
10470 frame, if present, or otherwise the current frame.
10472 * c-exp.y (variable): Update innermost_block for
10473 'block COLONCOLON NAME' clause.
10474 * m2-exp.y (variable): Ditto.
10475 * objc-exp.y (variable): Ditto.
10477 2012-01-10 Tom Tromey <tromey@redhat.com>
10480 * python/python.c (finish_python_initialization): Set sys.argv.
10482 2012-01-10 Doug Evans <dje@google.com>
10484 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10485 "want_line_info". All callers updated.
10486 (dwarf_decode_lines_1): New function.
10487 (handle_DW_AT_stmt_list): Add function comment.
10488 New arg "want_line_info". All callers updated.
10489 (read_file_scope,read_type_unit_scope): Move comment from
10490 handle_DW_AT_stmt_list to here.
10492 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10494 Fix regression after libiberty/ update for GCC PR 6057 and others.
10495 * c-exp.y (operator) <OPERATOR DELETE>
10496 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10497 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10498 (make_builtin_type, make_name): New variable i, add gdb_assert.
10499 (operator) <OPERATOR NEW>: Update ARGS to 3.
10500 (operator) <OPERATOR DELETE>: Add trailing space.
10501 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10502 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10503 * cp-support.c (cp_canonicalize_string): Check NULL from
10504 cp_comp_to_string, call warning and return.
10506 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10508 Fix duplicate .o files after omitting libbfd.a.
10509 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10510 (SFILES): Add corelow.c.
10511 (COMMON_OBS): Add corelow.o.
10512 (ALLDEPFILES): Remove corelow.c.
10513 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10514 * config/alpha/alpha-osf3.mh: Likewise.
10515 * config/alpha/fbsd.mh: Likewise.
10516 * config/arm/nbsdaout.mh: Likewise.
10517 * config/arm/nbsdelf.mh: Likewise.
10518 * config/i386/i386gnu.mh: Likewise.
10519 * config/ia64/hpux.mh: Likewise.
10520 * config/ia64/linux.mh: Likewise.
10521 * config/m32r/linux.mh: Likewise.
10522 * config/m68k/linux.mh: Likewise.
10523 * config/mips/irix5.mh: Likewise.
10524 * config/mips/irix6.mh: Likewise.
10525 * config/pa/hpux.mh: Likewise.
10526 * config/pa/linux.mh: Likewise.
10527 * config/powerpc/aix.mh: Likewise.
10528 * config/sparc/linux.mh: Likewise.
10529 * config/sparc/linux64.mh: Likewise.
10530 * config/sparc/sol2.mh: Likewise.
10531 * config/vax/vax.mh: Likewise.
10532 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10533 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10534 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10535 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10536 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10537 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10538 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10539 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10540 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10541 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10542 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10543 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10544 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10545 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10546 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10547 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10548 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10549 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10550 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10551 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10552 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10553 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10554 corelow.o from gdb_target_obs.
10555 * corefile.c (core_target): Update the comment on NULL value.
10556 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10557 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10558 MATCHES. Drop YUMMY set on NULL.
10559 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10560 reclaim CORE_DATA if it is already NULL.
10562 2012-01-09 Doug Evans <dje@google.com>
10564 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10565 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10567 2012-01-09 Keith Seitz <keiths@redhat.com>
10569 * breakpoint.c (wrapper.h): Don't include.
10571 2012-01-09 Keith Seitz <keiths@redhat.com>
10573 * Makefile.in (SFILES): Remove wrapper.c.
10574 (HFILES_NO_SRCDIR): Remove wrapper.h.
10575 (COMMON_OBS): Remove wrapper.o.
10576 * cli/cli-interp.c: Don't inlude wrapper.h.
10577 * corelow.c: Likewise.
10578 (core_open): Replace gdb_target_find_new_threads with
10579 TRY_CATCH around target_find_new_threads.
10580 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10581 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10582 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10583 evaluate_expression.
10584 (varobj_set_value): Likewise for evaluate_expression and
10586 (install_new_variable): Likewise for value_fetch_lazy.
10587 (adjust_value_for_child_access): Likewise for value_ind.
10588 (c_describe_child): Likewise for value_subscript and
10590 (c_value_of_root): Likewise for evaluate_expression.
10591 * wrapper.c: Remove.
10592 * wrapper.h: Remove.
10594 2012-01-09 Doug Evans <dje@google.com>
10596 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10597 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10598 "abfd" args with "section". All callers updated.
10599 Error checking code moved ...
10600 (error_check_comp_unit_head): ... here. New function.
10601 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10602 Delete arg "abfd". New arg "type_offset". All callers updated.
10603 (create_debug_types_hash_table): Simplify by using
10604 read_and_check_type_unit_head.
10606 * parser-defs.h (namecopy): Delete.
10607 * parse.c (namecopy, namecopy_size): Move into copy_name.
10609 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10611 Partially fix duplicate .o files after omitting libbfd.a.
10612 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10613 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10614 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10615 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10616 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10617 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10618 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10620 2012-01-09 Pedro Alves <palves@redhat.com>
10622 * MAINTAINERS: Update my email address.
10624 2012-01-08 Doug Evans <dje@google.com>
10626 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10627 n_type_units. Rename type_comp_units to all_type_units.
10629 (add_signatured_type_cu_to_table): Renamed from
10630 add_signatured_type_cu_to_list. All callers updated.
10632 * gdbtypes.h (struct cplus_struct_type): Delete member
10633 nfn_fields_total. All uses removed.
10635 2012-01-06 Doug Evans <dje@google.com>
10637 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10639 (dwarf2_find_comp_unit): Delete.
10640 (process_psymtab_comp_unit): Make result "void".
10641 Delete args buffer, info_ptr, buffer_size, and replace with
10642 "section". All callers updated.
10643 (dwarf2_build_psymtabs_hard): Simplify.
10645 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10646 Thiago Jung Bauermann <bauerman@br.ibm.com>
10648 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10649 before `struct gdb_exception'.
10650 * breakpoint.c (update_global_location_list_nothrow)
10651 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10652 * cp-abi.c (value_rtti_type): Likewise.
10653 * cp-support.c (cp_validate_operator): Likewise.
10654 * infrun.c (insert_exception_resume_breakpoint)
10655 (check_exception_resume, keep_going): Likewise.
10656 * mi-interp.c (mi_breakpoint_created)
10657 (mi_breakpoint_modified): Likewise.
10658 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10659 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10660 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10662 2012-01-05 Doug Evans <dje@google.com>
10664 * dwarf2read.c (statement_prologue): Delete, unused.
10666 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10667 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10669 * dwarf2read.c (comp_unit_header): Delete, unused.
10671 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10673 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10674 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10676 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10678 * infrun.c (normal_stop): Don't skip calling the normal_stop
10679 observers if the thread was doing a multi-step, but stopped for
10680 some reason other than stepping.
10682 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10684 * cli/cli-decode.h: Add comments.
10685 (CMD_LIST_AMBIGUOUS): Moved to command.h
10686 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10687 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10688 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10689 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10690 (add_com, add_com_alias, add_info, add_info_alias)
10691 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10693 * command.h: Add and adjust comments.
10694 (CMD_LIST_AMBIGUOUS): Moved here.
10695 (help_cmd, help_cmd_list): Delete declarations.
10697 2012-01-04 Doug Evans <dje@google.com>
10699 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10700 All callers updated.
10701 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10702 Replace all arguments with "per_cu". All callers updated.
10704 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10706 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10707 New arg "per_cu". All callers updated.
10709 Delete #if 0'd out code.
10710 * language.c (binop_result_type): Delete.
10711 (simple_type, ordered_type, same_type, integral_type): Delete.
10712 (numeric_type, character_type, string_type, boolean_type): Delete.
10713 (float_type, structured_type): Delete.
10714 * language.h: Update.
10716 2012-01-04 Tom Tromey <tromey@redhat.com>
10718 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10720 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10722 * corefile.c (close_exec_file): Delete.
10723 (reopen_exec_file): Remove commented out code that seems related
10724 to close_exec_file, which is being deleted here.
10725 * inferior.h (close_exec_file): Delete.
10726 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10728 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10730 * ada-lang.c: #include "cli/cli-utils.h".
10731 (get_selections): Use skip_spaces.
10732 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10733 (catch_ada_exception_command_split): Use skip_spaces.
10734 (ada_decode_assert_location): Likewise.
10736 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10738 * linespec.c (decode_line_internal): Check for C++ or Java
10739 compound constructs only if the current language is C, C++
10742 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10745 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10746 Joel Brobecker <brobecker@adacore.com>
10747 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10748 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10750 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10751 fall through into AT_ENTRY_POINT.
10752 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10753 DUMMY_ADDR with it.
10754 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10755 PPC_INSN_SIZE skip to 3 times.
10757 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10759 * linespec.c (add_minsym): Preserve function descriptors.
10761 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10763 * breakpoint.c (all_locations_are_pending): Consider locations
10764 in program spaces executing during startup pending as well.
10766 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10768 Copyright year update in most files of the GDB Project.
10770 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10772 * copyright.sh: Delete.
10773 * copyright.py: Rewrite.
10775 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10777 * gnulib/extra/update-copyright: New file, imported from gnulib.
10779 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10781 * README (Copyright and License Notices): New section.
10783 2012-01-03 Tom Tromey <tromey@redhat.com>
10786 * python/py-value.c (valpy_dereference, valpy_get_address
10787 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10788 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10789 (valpy_absolute, valpy_richcompare): Free intermediate values.
10791 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10793 * ada-lang.c: Reformat the copyright notice.
10795 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10797 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10798 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10799 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10800 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10801 Revert this part of:
10802 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10803 Build gdb directly from *.o files not using libgdb.a.
10804 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10806 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10808 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10809 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10810 Reformat the copyright header.
10812 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10814 Revert this part of:
10815 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10816 Remove the gdbtui binary.
10817 * gdb.c (main): Remove args.interpreter_p initialization.
10818 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10819 * main.h (struct captured_main_args): Remove interpreter_p.
10821 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10823 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10825 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10827 * top.c (print_gdb_version): Update copyright year.
10829 2012-01-02 Yao Qi <yao@codesourcery.com>
10831 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10833 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10834 Joel Brobecker <brobecker@adacore.com>
10836 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10837 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10839 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10840 fall through into AT_ENTRY_POINT.
10841 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10842 DUMMY_ADDR with it.
10843 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10844 PPC_INSN_SIZE skip to 3 times.
10846 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10848 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10850 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10852 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10854 Build gdb directly from *.o files not using libgdb.a.
10855 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10856 (COMMON_OBS): Remove solib-target.o.
10857 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10858 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10859 (LIBGDB_OBS, libgdb.a): Move it above.
10860 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10861 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10862 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10863 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10864 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10865 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10866 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10867 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10868 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10869 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10870 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10871 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10872 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10873 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10874 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10875 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10876 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10877 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10878 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10879 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10880 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10881 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10882 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10883 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10884 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10885 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10886 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10888 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10890 Remove the gdbtui binary.
10891 * .gitignore (/gdbtui): Remove.
10892 * Makefile.in (TUI): Remove.
10893 (SUBDIR_TUI_OBS): Remove tui-main.o.
10894 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10895 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10896 (tui-main.o): Remove.
10897 (all_object_files): Remove tui-main.o.
10898 * NEWS: New note for the gdbtui removal.
10899 * configure: Rebuilt.
10900 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10901 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10902 CONFIG_UNINSTALL respectively.
10903 * gdb.c (main): Remove args.interpreter_p initialization.
10904 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10905 * main.h (struct captured_main_args): Remove interpreter_p.
10906 * tui/tui-main.c: Remove.
10908 2012-01-01 Doug Evans <dje@google.com>
10910 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10911 (dwarf2_physname, read_import_statement): Ditto.
10912 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10913 (process_structure_scope read_subroutine_type): Ditto.
10914 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10915 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10916 (dwarf2_fetch_die_location_block): Ditto.
10917 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10919 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10920 All callers updated.
10921 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10922 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10923 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10925 * dwarf2read.c (load_cu): Move assert to more useful location.
10927 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10928 All callers updated.
10930 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10931 (dwarf2_elf_names): Minor reformat.
10932 (dwarf2_per_cu_data): Tweak comment.
10933 (dwarf2_read_section): Fix comment.
10934 (create_all_comp_units): Fix comment.
10935 (load_full_comp_unit): Fix comment.
10936 (process_full_comp_unit): Fix comment.
10937 (read_signatured_type): Fix comment.
10939 For older changes see ChangeLog-2011.
10945 version-control: never