* jv-lang.c (get_java_class_symtab): Use allocate_global_block,
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-05-10 Tom Tromey <tromey@redhat.com>
2
3 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
4 set_block_symtab.
5 * jit.c (finalize_symtab): Use allocate_global_block,
6 set_block_symtab.
7 * buildsym.c (finish_block_internal): New function, from old
8 finish_block.
9 (finish_block): Rewrite.
10 (end_symtab): Use finish_block_internal, set_block_symtab.
11 * block.h (struct global_block): New.
12 (allocate_global_block, set_block_symtab): Declare.
13 * block.c (allocate_global_block, set_block_symtab): New
14 functions.
15
16 2012-05-10 Tom Tromey <tromey@redhat.com>
17
18 * psymtab.c (partial_map_expand_apply): Add assertion.
19 (partial_map_symtabs_matching_filename): Skip included psymtabs.
20 (psymtab_to_symtab): Find unshared psymtab.
21 (dump_psymtab): Print including psymtabs.
22 (recursively_search_psymtabs): New function.
23 (expand_symtabs_matching_via_partial): Use it.
24 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
25 fields.
26 (enum psymtab_search_status): New.
27
28 2012-05-10 Tom Tromey <tromey@redhat.com>
29
30 * tracepoint.c (scope_info): Update.
31 * symtab.c (lookup_block_symbol, iterate_over_symbols)
32 (find_pc_sect_symtab, search_symbols)
33 (default_make_symbol_completion_list_break_on)
34 (make_file_symbol_completion_list): Update.
35 * symmisc.c (dump_symtab_1): Update.
36 * stack.c (print_frame_args, iterate_over_block_locals)
37 (print_frame_labels, iterate_over_block_arg_vars): Update.
38 * python/py-block.c (block_object) <dict>: Remove.
39 <block>: New field.
40 <iter>: Change type.
41 (blpy_iter): Update.
42 (blpy_block_syms_iternext): Update.
43 * psymtab.c (map_block): Use block iterators.
44 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
45 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
46 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
47 * infrun.c (check_exception_resume): Update.
48 * cp-support.c (make_symbol_overload_list_block): Update.
49 * coffread.c (patch_opaque_types): Update.
50 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
51 * block.h (struct block_iterator): New.
52 (block_iterator_first, block_iterator_next, block_iter_name_first)
53 (block_iter_name_next, block_iter_match_first)
54 (block_iter_match_next): Declare.
55 (ALL_BLOCK_SYMBOLS): Redefine.
56 * block.c (block_iterator_first, block_iterator_next)
57 (block_iter_name_first, block_iter_name_next)
58 (block_iter_match_first, block_iter_match_next): New functions.
59 * ada-lang.c (ada_add_block_symbols)
60 (ada_make_symbol_completion_list): Use block iterator.
61
62 2012-05-10 Tom Tromey <tromey@redhat.com>
63
64 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
65 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
66 (lookup_partial_symbol, find_last_source_symtab_from_partial)
67 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
68 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
69 Update.
70
71 2012-05-10 Joel Brobecker <brobecker@adacore.com>
72
73 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
74 print-file-var-lib2.c, print-file-var-main.c and
75 print-file-var.exp (located in gdb/testsuite/gdb.base).
76
77 2012-05-10 Joel Brobecker <brobecker@adacore.com>
78
79 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
80 try locating the symbol in the symbol's own objfile first, before
81 extending the search to all objfiles.
82 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
83 out of lookup_symbol_aux_symtabs.
84 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
85 Replace extracted-out code by call to lookup_symbol_aux_objfile.
86 Do not search EXCLUDE_OBJFILE.
87 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
88 (lookup_symbol_global): Search for matches in the block's objfile
89 first, before searching all other objfiles.
90
91 2012-05-10 Tristan Gingold <gingold@adacore.com>
92
93 * printcmd.c (set_command): Add pre/post inc/dec.
94
95 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
96
97 * gdb.1: Document -ex option.
98
99 2012-05-09 Joel Brobecker <brobecker@adacore.com>
100
101 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
102 * inferior.h (AT_SYMBOL): Delete.
103
104 2012-05-09 Joel Brobecker <brobecker@adacore.com>
105
106 * mips-tdep.c (mips_push_dummy_code): New function.
107 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
108 ON_STACK and install mips_push_dummy_code as our gdbarch
109 push_dummy_code routine.
110
111 2012-05-09 Pedro Alves <palves@redhat.com>
112
113 * target.c (set_maintenance_target_async_permitted): Rename to ...
114 (set_target_async_command): ... this.
115 (show_maintenance_target_async_permitted): Rename to ...
116 (show_target_async_command): ... this.
117 (initialize_targets): Adjust.
118
119 2012-05-08 Doug Evans <dje@google.com>
120
121 * go-exp.y (classify_name): Add missing assignment of fields of
122 yylval.ssym.
123
124 2012-05-08 Eli Zaretskii <eliz@gnu.org>
125
126 Display the ">" prompt in interactive mode while reading canned
127 commands, even when the current interpreter is MI.
128
129 * interps.c (interp_set_temp): New function.
130
131 * interps.h (interp_set_temp): Add prototype.
132
133 * cli/cli-script.c (restore_interp): New cleanup function.
134 (read_command_lines): Temporarily override the current interpreter
135 with CLI and arrange for restoring the original one.
136
137 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
138
139 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
140
141 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
142
143 * probe.c (parse_probes): Move conditional to check for
144 debuginfo files from here...
145 * stap-probe.c (stap_get_probes): ... to here.
146
147 2012-05-07 Mark Kettenis <kettenis@gnu.org>
148 H.J. Lu <hongjiu.lu@intel.com>
149
150 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
151 `movl %esp, %ebp' for the X32 ABI.
152
153 2012-05-07 Tom Tromey <tromey@redhat.com>
154
155 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
156 get_DW_TAG_name.
157 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
158 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
159 (dwarf_stack_op_name): Remove.
160 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
161 (decode_locdesc): Use get_DW_OP_name.
162 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
163 (dwarf2_compile_expr_to_ax): Likewise.
164 (disassemble_dwarf_expression): Likewise.
165 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
166
167 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
168
169 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
170 (sh_linux_sigtramp_cache): New function.
171 (sh_linux_sigreturn_init): New function.
172 (sh_linux_rt_sigreturn_init): New function.
173 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
174 patterns.
175 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
176 syscall codes.
177 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
178 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
179 (sh_linux_init_abi): Add init calls to register new tramp_frame
180 definitions under 32-bit SH, update comments.
181
182 2012-05-07 Pedro Alves <palves@redhat.com>
183
184 PR gdb/10952
185
186 * amd64-linux-tdep.c: Include glibc-tdep.h.
187 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
188 gdbarch_skip_solib_resolver callback.
189
190 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
191
192 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
193 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
194 (show_auto_load_safe_path): Check any-directory by comparison with "/".
195 (add_auto_load_safe_path): Change the error message.
196 (_initialize_auto_load): Change the "safe-path" help text.
197 * configure: Regenerate
198 * configure.ac (--without-auto-load-safe-path): Set
199 WITH_AUTO_LOAD_SAFE_PATH to /.
200
201 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
202
203 * stap-probe.h: Do not include unecessary `probe.h'.
204
205 2012-05-05 Alan Modra <amodra@gmail.com>
206
207 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
208 bfd_und_section_ptr.
209 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
210 and bfd_com_section_ptr.
211
212 2012-05-04 Joel Brobecker <brobecker@adacore.com>
213
214 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
215
216 2012-05-04 Joel Brobecker <brobecker@adacore.com>
217
218 * windows-nat.h (segment_register_p_ftype): New typedef.
219 (windows_set_segment_register_p): Add declaration.
220 * windows-nat.c (segment_register_p): New static global.
221 (windows_set_segment_register_p): New function.
222 (do_windows_fetch_inferior_registers): Add special handling
223 for segment registers.
224 * amd64-windows-nat.c: #include "amd64-tdep.h".
225 (amd64_windows_segment_register_p): New function.
226 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
227 * i386-windows-nat.c: #include "i386-tdep.h".
228 (i386_windows_segment_register_p): New function.
229 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
230
231 2012-05-04 Tristan Gingold <gingold@adacore.com>
232
233 * printcmd.c (set_command): Emit a warning if the expression is not
234 an assignment.
235
236 2012-05-03 Joel Brobecker <brobecker@adacore.com>
237
238 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
239 Make static.
240
241 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
242
243 * stap-probe.c (stap_is_operator): Change declaration.
244 (stap_get_opcode): Change return value.
245 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
246 `stap_parse_argument_1'.
247
248 2012-05-03 Pedro Alves <pedro@codesourcery.com>
249
250 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
251 debug log.
252
253 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
254
255 Add two new methods global_block and static_block to gdb.Symtab
256 objects.
257 * NEWS (Python scripting): Add entry about the new methods.
258 * python/py-symtab.c (stpy_global_block): New function which
259 implements the gdb.Symtab.global_block() method.
260 (stpy_static_block): New function which implements the
261 gdb.Symtab.static_block() method.
262 (symtab_object_methods): Add entries for the two new methods.
263
264 2012-05-03 Doug Evans <dje@google.com>
265
266 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
267 files.
268
269 2012-05-03 Yao Qi <yao@codesourcery.com>
270
271 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
272 space.
273 (i386_process_record): Ditto.
274
275 2012-05-02 Joel Brobecker <brobecker@adacore.com>
276
277 * infcall.c (unwind_on_signal_p): Make static.
278
279 2012-05-02 Joel Brobecker <brobecker@adacore.com>
280
281 * sol-thread.c (solaris_pid_to_str): Make static.
282 (_initialize_sol_thread): Add prototype.
283
284 2012-05-02 Joel Brobecker <brobecker@adacore.com>
285
286 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
287
288 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
289
290 * MAINTAINERS: Remove myself.
291
292 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
293
294 Fix --without-auto-load-safe-path for MS-Windows host platform.
295 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
296
297 2012-05-02 Eli Zaretskii <eliz@gnu.org>
298
299 * gdb_curses.h: Undefine KEY_EVENT before including curses
300 headers. Move "#undef MOUSE_MOVED" before any curses header
301 inclusion.
302
303 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
304
305 * features/i386/i386-mmx-linux.c: Regenerate.
306 * features/rs6000/powerpc-32.c: Likewise.
307 * features/rs6000/powerpc-32l.c: Likewise.
308 * features/rs6000/powerpc-403.c: Likewise.
309 * features/rs6000/powerpc-403gc.c: Likewise.
310 * features/rs6000/powerpc-405.c: Likewise.
311 * features/rs6000/powerpc-505.c: Likewise.
312 * features/rs6000/powerpc-601.c: Likewise.
313 * features/rs6000/powerpc-602.c: Likewise.
314 * features/rs6000/powerpc-603.c: Likewise.
315 * features/rs6000/powerpc-604.c: Likewise.
316 * features/rs6000/powerpc-64.c: Likewise.
317 * features/rs6000/powerpc-64l.c: Likewise.
318 * features/rs6000/powerpc-750.c: Likewise.
319 * features/rs6000/powerpc-860.c: Likewise.
320 * features/rs6000/powerpc-e500.c: Likewise.
321 * features/rs6000/powerpc-e500l.c: Likewise.
322 * features/rs6000/powerpc-isa205-32l.c: Likewise.
323 * features/rs6000/powerpc-isa205-64l.c: Likewise.
324 * features/rs6000/rs6000.c: Likewise.
325
326 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
327
328 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
329 variable.
330 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
331 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
332 (stap_parse_argument) <e>: Likewise.
333 (handle_stap_probe) <byte_order>: Likewise.
334
335 2012-04-30 Doug Evans <dje@google.com>
336
337 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
338 init_and_read_dies_worker. All callers updated.
339 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
340 replaced with init_cutu_and_read_dies.
341 (load_partial_comp_unit): Pass 1 for use_existing_cu.
342 (find_partial_die): Remove FIXME. Don't free current CU.
343
344 2012-04-30 Sterling Augustine <saugustine@google.com>
345
346 * contrib: New directory.
347 * contrib/test_pubnames_and_indexes.py: New file.
348
349 2012-04-30 Doug Evans <dje@google.com>
350
351 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
352 All callers updated.
353 (init_cu_die_reader): Verify the section is non-empty.
354 (dwarf_decode_line_header): Don't dereference section->asection
355 until we know the section is present.
356
357 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
358
359 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
360 probes.
361
362 2012-04-29 Yao Qi <yao@codesourcery.com>
363
364 * gdb-code-style.el: New hook gdb-markup-hook
365 and gdb-comment-hook.
366
367 2012-04-28 Doug Evans <dje@google.com>
368
369 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
370 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
371 objfile->obfd.
372 * symfile.h (dwarf2_debug_sections): New member addr.
373 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
374 (ctx_no_get_addr_index): New function.
375 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
376 (ctx_no_get_addr_index): Declare.
377 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
378 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
379 (dwarf_expr_ctx_funcs): Update.
380 (needs_get_addr_index): New function.
381 (needs_frame_ctx_funcs): Update.
382 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
383 * dwarf2read.c: #include "gdbcore.h".
384 (dwarf2_per_objfile): New members addr, dwo_files.
385 (dwarf2_elf_names): Add entry for addr.
386 (struct dwo_section_names): New type.
387 (dwo_section_names): New static global.
388 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
389 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
390 old debug_types_section member updated to use this.
391 Rename member debug_types_section to info_or_types_section,
392 all uses updated.
393 (signatured_type): Rename member type_offset to type_offset_in_tu,
394 all uses updated. New member type_offset_in_section.
395 (struct dwo_sections): New type.
396 (struct dwo_unit): New type.
397 (struct dwo_file): New type.
398 (die_reader_specs): New member dwo_file.
399 (dwarf2_locate_sections): Watch for .debug_addr.
400 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
401 (dwarf2_read_section): Get bfd of section from bfd's asection,
402 instead of objfile.
403 (create_cus_from_index): Initialize the_cu->info_or_types_section.
404 (create_signatured_type_table_from_index): Initialize
405 sig_type->info_or_types_section.
406 (dw2_get_file_names): Statement lists for type units with DWO files
407 live in the DWO file.
408 (create_debug_types_hash_table): New function.
409 (create_all_type_units): Rewrite.
410 (init_cu_die_reader): New arg dwo_file, all callers updated.
411 (init_and_read_dies_worker): Get section from
412 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
413 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
414 continue reading the CU/TU from there.
415 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
416 updated. Get section from this_cu->info_or_types_section.
417 (create_all_comp_units): Initialize this_cu->info_or_types_section.
418 (skip_one_die): New cases DW_FORM_GNU_addr_index,
419 DW_FORM_GNU_str_index.
420 (hash_dwo_file, eq_dwo_file): New functions.
421 (allocate_dwo_file_hash_table): New function.
422 (hash_dwo_unit, eq_dwo_unit): New functions.
423 (allocate_dwo_unit_table): New function.
424 (dwarf2_locate_dwo_sections): New function.
425 (struct create_dwo_info_table_data): New type.
426 (create_debug_info_hash_table_reader): New function.
427 (create_debug_info_hash_table): New function.
428 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
429 (lookup_dwo_file): New function.
430 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
431 (free_dwo_file, free_dwo_file_cleanup): New functions.
432 (free_dwo_file_from_slot, free_dwo_files): New functions.
433 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
434 (dwarf2_record_block_ranges): Ditto.
435 (read_partial_die): Ditto.
436 (process_enumeration_scope): Update to use type_offset_in_section.
437 (read_full_die_1): New function.
438 (read_full_die): Rewrite.
439 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
440 DW_FORM_GNU_str_index.
441 (read_addr_index_1, read_addr_index): New functions.
442 (read_addr_index_from_leb128): New function.
443 (struct dwarf2_read_addr_index_data): New type.
444 (dwarf2_read_addr_index_reader): New function.
445 (dwarf2_read_addr_index): New function.
446 (read_str_index): New function.
447 (leb128_size): New function.
448 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
449 If processing a type unit from a DWO file, get the line section
450 from the DWO file.
451 (var_decode_location): Watch for DW_OP_GNU_addr_index.
452 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
453 DW_FORM_GNU_str_index.
454 (lookup_die_type): Check whether section offset of type's die is
455 known before looking it up. Remove assert. Condition can
456 legimately happen for inter-cu type references.
457 (dwarf_attr_name): Handle Fission attributes.
458 (dwarf_form_name): Handle Fission forms.
459 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
460 DW_FORM_GNU_str_index.
461 (follow_die_sig): Update to use type_offset_in_section.
462 (decode_locdesc): New case DW_OP_GNU_addr_index.
463 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
464 DW_FORM_GNU_str_index.
465 (cu_debug_loc_section): New function.
466 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
467 (dwarf2_per_objfile_free): Unmap .debug_addr section.
468 Free DWO files if present.
469 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
470
471 Refactor DIE reading.
472 * dwarf2read.c (dwarf2_per_objfile): Replace members
473 debug_info_type_hash and debug_types_type_hash with die_type_hash.
474 (die_reader_specs): New member "die_section". Temporarily make
475 member "buffer" non-const, pending constifying all info_ptr uses.
476 (die_reader_func_ftype): New typedef.
477 (dw2_get_file_names_reader): New function.
478 (dw2_get_file_names): Rewrite.
479 (read_and_check_type_unit_head): Rename arg type_offset to
480 type_offset_in_tu.
481 (create_all_type_units): Improve debugging message.
482 Improve dummy type unit check.
483 (init_cu_die_reader): New arg "section". All callers updated.
484 (init_and_read_dies_worker): New function.
485 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
486 (init_cutu_and_read_dies_no_follow): New function.
487 (init_cutu_and_read_dies_simple): New function.
488 (process_psymtab_comp_unit_reader): New function.
489 (process_psymtab_comp_unit): Delete args section,
490 is_debug_types_section. Rewrite. All callers updated.
491 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
492 All callers updated. Rewrite.
493 (load_partial_comp_unit_reader): New function.
494 (load_partial_comp_unit): Rewrite.
495 (skip_children): New arg reader. Delete args buffer, cu.
496 All callers updated.
497 (skip_one_die): New arg reader. Delete args buffer, cu.
498 All callers updated.
499 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
500 All callers updated.
501 (load_full_comp_unit_reader): New function.
502 (load_full_comp_unit): Rewrite.
503 (read_comp_unit): Delete.
504 (read_die_and_children_1): Delete, contents moved ...
505 (read_die_and_children): ... here.
506 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
507 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
508 All callers updated.
509 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
510 All callers updated.
511 (find_partial_die): Rewrite load_all_dies support.
512 (read_attribute_value): New arg reader. Delete args abfd, cu.
513 All callers updated.
514 (read_attribute): New arg reader. Delete args abfd, cu.
515 All callers updated.
516 (load_full_type_unit): Add assert.
517 (read_signatured_type_reader): New function.
518 (read_signatured_type): Rewrite.
519 (free_stack_comp_unit): Remove call to age_cached_comp_units.
520 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
521 All callers updated. Set per_cu->cu = NULL after freeing it.
522 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
523 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
524 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
525 (set_die_type): Update.
526 (get_die_type_at_offset): Update.
527 (read_file_scope): Call prepare_one_comp_unit.
528 (read_type_unit_scope): Ditto.
529 (prepare_one_comp_unit): Set producer if present.
530
531 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
532
533 * probe.c (compile_rx_or_error): Silence ARI warning about missing
534 gettext function on `error'.
535
536 2012-04-27 Doug Evans <dje@google.com>
537
538 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
539 is empty.
540
541 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
542 Tom Tromey <tromey@redhat.com>
543
544 * breakpoint.c (struct breakpoint_objfile_data)
545 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
546 <exception_probes>: New fields.
547 (free_breakpoint_probes): New function.
548 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
549 `_Unwind_DebugHook'.
550 (create_exception_master_breakpoint): Likewise.
551 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
552 * infrun.c: Including necessary header files for handling SystemTap
553 probes.
554 (handle_inferior_event): Handling longjmp breakpoint and exceptions
555 via SystemTap probes.
556 (check_exception_resume): Remove `func' argument. Handle exception
557 unwinding breakpoint set via a SystemTap probe.
558 (insert_exception_resume_from_probe): New function.
559
560 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
561 Tom Tromey <tromey@redhat.com>
562 Jan Kratochvil <jan.kratochvil@redhat.com>
563
564 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
565 (COMMON_OBS): Likewise.
566 (HFILES_NO_SRCDIR): Add `probe'.
567 * NEWS: Mention support for static and SystemTap probes.
568 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
569 SystemTap probes' arguments parser.
570 * arm-linux-tdep.c: Including headers needed to perform the parsing
571 of SystemTap probes' arguments.
572 (arm_stap_is_single_operand): New function.
573 (arm_stap_parse_special_token): Likewise.
574 (arm_linux_init_abi): Initializing proper fields used by SystemTap
575 probes' arguments parser.
576 * ax-gdb.c (require_rvalue): Removing static declaration.
577 (gen_expr): Likewise.
578 * ax-gdb.h (gen_expr): Declaring function.
579 (require_rvalue): Likewise.
580 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
581 (bkpt_probe_breakpoint_ops): New variable.
582 (momentary_breakpoint_from_master): Set the `probe' value.
583 (add_location_to_breakpoint): Likewise.
584 (break_command_1): Using proper breakpoint_ops according to the
585 argument passed by the user in the command line.
586 (bkpt_probe_insert_location): New function.
587 (bkpt_probe_remove_location): Likewise.
588 (bkpt_probe_create_sals_from_address): Likewise.
589 (bkpt_probe_decode_linespec): Likewise.
590 (tracepoint_probe_create_sals_from_address): Likewise.
591 (tracepoint_probe_decode_linespec): Likewise.
592 (tracepoint_probe_breakpoint_ops): New variable.
593 (trace_command): Using proper breakpoint_ops according to the
594 argument passed by the user in the command line.
595 (initialize_breakpoint_ops): Initializing breakpoint_ops for
596 static probes on breakpoints and tracepoints.
597 * breakpoint.h (struct bp_location) <probe>: New field.
598 * cli-utils.c (skip_spaces_const): New function.
599 (extract_arg): Likewise.
600 * cli-utils.h (skip_spaces_const): Likewise.
601 (extract_arg): Likewise.
602 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
603 * configure.ac: Append `stap-probe.o' to be generated when ELF
604 support is present.
605 * configure: Regenerate.
606 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
607 * elfread.c: Include `probe.h' and `arch-utils.h'.
608 (probe_key): New variable.
609 (elf_get_probes): New function.
610 (elf_get_probe_argument_count): Likewise.
611 (elf_evaluate_probe_argument): Likewise.
612 (elf_compile_to_ax): Likewise.
613 (elf_symfile_relocate_probe): Likewise.
614 (stap_probe_key_free): Likewise.
615 (elf_probe_fns): New variable.
616 (elf_sym_fns): Add `sym_probe_fns' value.
617 (elf_sym_fns_lazy_psyms): Likewise.
618 (elf_sym_fns_gdb_index): Likewise.
619 (_initialize_elfread): Initialize objfile cache for static
620 probes.
621 * gdb_vecs.h (struct probe): New forward declaration.
622 (probe_p): New VEC declaration.
623 * gdbarch.c: Regenerate.
624 * gdbarch.h: Regenerate.
625 * gdbarch.sh (stap_integer_prefix): New variable.
626 (stap_integer_suffix): Likewise.
627 (stap_register_prefix): Likewise.
628 (stap_register_suffix): Likewise.
629 (stap_register_indirection_prefix): Likewise.
630 (stap_register_indirection_suffix): Likewise.
631 (stap_gdb_register_prefix): Likewise.
632 (stap_gdb_register_suffix): Likewise.
633 (stap_is_single_operand): New function.
634 (stap_parse_special_token): Likewise.
635 (struct stap_parse_info): Forward declaration.
636 * i386-tdep.c: Including headers needed to perform the parsing
637 of SystemTap probes' arguments.
638 (i386_stap_is_single_operand): New function.
639 (i386_stap_parse_special_token): Likewise.
640 (i386_elf_init_abi): Initializing proper fields used by SystemTap
641 probes' arguments parser.
642 * i386-tdep.h (i386_stap_is_single_operand): New function.
643 (i386_stap_parse_special_token): Likewise.
644 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
645 * mipsread.c (ecoff_sym_fns): Likewise.
646 * objfiles.c (objfile_relocate1): Support relocation for static
647 probes.
648 * parse.c (prefixify_expression): Remove static declaration.
649 (initialize_expout): Likewise.
650 (reallocate_expout): Likewise.
651 * parser-defs.h (initialize_expout): Declare function.
652 (reallocate_expout): Likewise.
653 (prefixify_expression): Likewise.
654 * ppc-linux-tdep.c: Including headers needed to perform the parsing
655 of SystemTap probes' arguments.
656 (ppc_stap_is_single_operand): New function.
657 (ppc_stap_parse_special_token): Likewise.
658 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
659 probes' arguments parser.
660 * probe.c: New file, for generic statically defined probe support.
661 * probe.h: Likewise.
662 * s390-tdep.c: Including headers needed to perform the parsing of
663 SystemTap probes' arguments.
664 (s390_stap_is_single_operand): New function.
665 (s390_gdbarch_init): Initializing proper fields used by SystemTap
666 probes' arguments parser.
667 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
668 * stap-probe.c: New file, for SystemTap probe support.
669 * stap-probe.h: Likewise.
670 * symfile.h: Include `gdb_vecs.h'.
671 (struct sym_probe_fns): New struct.
672 (struct sym_fns) <sym_probe_fns>: New field.
673 * symtab.c (init_sal): Initialize `probe' field.
674 * symtab.h (struct probe): Forward declaration.
675 (struct symtab_and_line) <probe>: New field.
676 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
677 locations.
678 (stop_tracing): Likewise.
679 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
680
681 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
682 Tom Tromey <tromey@redhat.com>
683
684 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
685 and to compile agent expressions.
686 * infrun.c (siginfo_make_value): New argument `ignore'.
687 (siginfo_funcs): New struct.
688 (_initialize_infrun): New argument when calling
689 `create_internalvar_type_lazy'.
690 * thread.c (thread_id_make_value): New argument `ignore'.
691 (thread_funcs): New struct.
692 (_initialize_thread): New argument when calling
693 `create_internalvar_type_lazy'.
694 * tracepoint.c (sdata_make_value): New argument `ignore'.
695 (sdata_funcs): New struct.
696 (_initialize_tracepoint): New argument when calling
697 `create_internalvar_type_lazy'.
698 * value.c (make_value): New struct.
699 (create_internalvar_type_lazy): New argument `data'.
700 (compile_internalvar_to_ax): New function.
701 (value_of_internalvar): Properly handling `make_value' case.
702 (clear_internalvar): Likewise.
703 (show_convenience): Adding `TRY_CATCH' block.
704 * value.h (internalvar_make_value): Delete, replace by...
705 (struct internalvar_funcs): ... this.
706 (create_internalvar_type_lazy) <fun>: Delete argument.
707 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
708 (compile_internalvar_to_ax): New function.
709 * windows-tdep.c (tlb_make_value): New argument `ignore'.
710 (tlb_funcs): New struct.
711 (_initialize_windows_tdep): New argument when calling
712 `create_internalvar_type_lazy'.
713
714 2012-04-27 Mark Wielaard <mjw@redhat.com>
715
716 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
717 see whether it is an address or a constant offset from DW_AT_low_pc.
718 (dwarf2_record_block_ranges): Likewise.
719 (read_partial_die): Likewise.
720
721 2012-04-26 Mark Wielaard <mjw@redhat.com>
722
723 * MAINTAINERS (Write After Approval): Add myself to the list.
724
725 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
726
727 * proc-utils.h (proc_prettyprint_signalset): New prototype.
728 (proc_prettyprint_signal): Likewise.
729 (proc_prettyprint_faultset): Likewise.
730 (proc_prettyprint_fault): Likewise.
731 (proc_prettyprint_actionset): Likewise.
732 (proc_prettyprint_flags): Move to new proc-flags.c section.
733 (proc_prettyfprint_flags): New prototype.
734 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
735 (proc_syscall, proc_cursig): Likewise.
736 (proc_set_kill_on_last_close): Likewise.
737 (proc_unset_kill_on_last_close): Likewise.
738 (proc_set_watchpoint): Make static.
739 (proc_delete_dead_threads): Likewise.
740 (procfs_set_watchpoint): Likewise.
741 (_initialize_procfs): Add prototype.
742 * proc-events.c: Include proc-utils.h.
743 (init_syscall_table): Make static.
744 * proc-api.c (_initialize_proc_api): Add prototype.
745 * proc-flags.c: Include proc-utils.h.
746
747 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
748
749 * configure.ac: Add AC_ARG_PROGRAM.
750 * configure: Regenerate.
751
752 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
753
754 Fix DW_AT_lower_bound defaults for DWARF-4+.
755 * dwarf2read.c (read_subrange_type): Remove initialization of low and
756 high. New variable low_default_is_valid. Implement DWARF-4+
757 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
758 no default by the DWARF standard.
759
760 2012-04-26 Maciej W. Rozycki <macro@mips.com>
761 Maciej W. Rozycki <macro@codesourcery.com>
762
763 * infrun.c (handle_inferior_event): Move the check for return
764 trampolines ahead of the check for function trampolines.
765 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
766 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
767 (mips_str_mips16_ret_stub): Likewise.
768 (mips_str_call_fp_stub): Likewise.
769 (mips_str_call_stub): Likewise.
770 (mips_str_fn_stub): Likewise.
771 (mips_str_pic): Likewise.
772 (mips_in_frame_stub): New function.
773 (mips_unwind_pc): Return the return address rather than the PC
774 if the PC of an intermediate frame is inside a call thunk.
775 (mips_is_stub_suffix): New function.
776 (mips_is_stub_mode): Likewise.
777 (mips_get_mips16_fn_stub_pc): Likewise.
778 (mips_skip_mips16_trampoline_code): Update to handle all the
779 currently generated stub types. Don't recurse into __fn_stub
780 thunks. Remove heuristics to handle stubs beyond etext/_etext.
781 Use cooked register accesses.
782 (mips_in_return_stub): Reintroduce function.
783 (mips_skip_trampoline_code): Traverse trampolines recursively.
784 (mips_gdbarch_init): Handle MIPS16 return trampolines.
785
786 2012-04-26 Joel Brobecker <brobecker@adacore.com>
787
788 GDB 7.4.1 released.
789
790 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
791
792 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
793 * features/arm-with-m-vfp-d16.xml: New file. Describes
794 Cortex-M with VFPv4-sp-d16 FPU register layout.
795 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
796 * features/arm-with-m-vfp-d16.c: New. Generated from above.
797 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
798 (arm-register_g_packet_guesses): Add vfp-d16 guess.
799 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
800
801 2012-04-25 Doug Evans <dje@google.com>
802
803 * cli/cli-decode.c (print_doc_line): Use stream instead of
804 current_uiout.
805
806 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
807
808 * features/arm-with-iwmmxt.c: Regenerate.
809 * features/arm-with-m-fpa-layout.c: Likewise.
810 * features/arm-with-m.c: Likewise.
811 * features/arm-with-neon.c: Likewise.
812 * features/arm-with-vfpv2.c: Likewise.
813 * features/arm-with-vfpv3.c: Likewise.
814 * features/mips-dsp-linux.c: Likewise.
815 * features/mips-linux.c: Likewise.
816 * features/mips64-dsp-linux.c: Likewise.
817 * features/mips64-linux.c: Likewise.
818 * features/s390-linux32.c: Likewise.
819 * features/s390-linux32v1.c: Likewise.
820 * features/s390-linux32v2.c: Likewise.
821 * features/s390-linux64.c: Likewise.
822 * features/s390-linux64v1.c: Likewise.
823 * features/s390-linux64v2.c: Likewise.
824 * features/s390x-linux64.c: Likewise.
825 * features/s390x-linux64v1.c: Likewise.
826 * features/s390x-linux64v2.c: Likewise.
827 * features/tic6x-c62x-linux.c: Likewise.
828 * features/tic6x-c62x.c: Likewise.
829 * features/tic6x-c64x-linux.c: Likewise.
830 * features/tic6x-c64x.c: Likewise.
831 * features/tic6x-c64xp-linux.c: Likewise.
832 * features/tic6x-c64xp.c: Likewise.
833 * target-descriptions.c: Only generate `field_type' and `type'
834 variables when needed.
835
836 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
837
838 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
839
840 2012-04-25 Doug Evans <dje@google.com>
841
842 Initial pass at Go language support.
843 * NEWS: Mention Go.
844 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
845 go-valprint.c.
846 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
847 (YYFILES): Add go-exp.c.
848 (YYOBJ): Add go-exp.o.
849 (local-maintainer-clean): Delete go-exp.c.
850 * defs.h (enum language): Add language_go.
851 * dwarf2read.c: #include "go-lang.h".
852 (fixup_go_packaging): New function.
853 (process_full_comp_unit): Call it when processing Go CUs.
854 (dwarf2_physname): Add Go support.
855 (read_file_scope): Handle missing language spec for GNU Go.
856 (set_cu_language): Handle DW_LANG_Go.
857 * go-exp.y: New file.
858 * go-lang.h: New file.
859 * go-lang.c: New file.
860 * go-typeprint.c: New file.
861 * go-valprint.c: New file.
862 * symtab.c: #include "go-lang.h".
863 (symbol_set_language): Handle language_go.
864 (symbol_find_demangled_name, symbol_set_names): Ditto.
865 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
866
867 2012-04-24 Jim Meyering <meyering@redhat.com>
868
869 avoid a few strncpy-induced buffer overruns
870 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
871 fname and psargs before trying to concatenate.
872 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
873 "name" before applying strchr.
874
875 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
876
877 * CONTRIBUTE: Use unified diff instead of context diff when
878 generating patches.
879
880 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
881
882 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
883 code. Handle JR.HB correctly.
884
885 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
886
887 * mips-tdep.c
888 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
889 with the other MIPS16 helpers.
890
891 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
892
893 * observer.sh: Conditionally declare `args', thus cleaning up
894 unused instances of this variable.
895
896 2012-04-24 Yao Qi <yao@codesourcery.com>
897
898 Revert this patch to allow breakpoint always-inserted
899 in record target.
900 2011-12-05 Pedro Alves <pedro@codesourcery.com>
901 * breakpoint.c: Include record.h.
902 (breakpoints_always_inserted_mode): Return false when the record
903 target is in use.
904
905 * breakpoint.c (iterate_over_bp_locations): New.
906 * breakpoint.h: Declare.
907 New typedef walk_bp_location_callback.
908 * record.c (record_open): Call record_init_record_breakpoints.
909 (record_sync_record_breakpoints): New.
910 (record_init_record_breakpoints): New.
911 * NEWS: Mention supporting breakpoint always-inserted mode in
912 record target.
913
914 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
915
916 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
917 any thread.
918
919 2012-04-24 Yao Qi <yao@codesourcery.com>
920
921 * breakpoint.c (ep_is_catchpoint): Renamed to ...
922 (is_catchpoint): ... it.
923 (print_one_breakpoint_location): Caller update.
924 * breakpoint.h: Update declaration.
925
926 2012-04-23 David S. Miller <davem@davemloft.net>
927
928 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
929
930 2012-04-23 Tom Tromey <tromey@redhat.com>
931
932 * buildsym.c (add_free_pendings): Remove.
933 * buildsym.h (add_free_pendings): Remove.
934
935 2012-04-23 Doug Evans <dje@google.com>
936
937 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
938 attr.u.unsnd instead of attr.u.addr.
939 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
940 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
941 DW_FORM_ref_udata.
942 (dump_die_shallow): Update cases DW_FORM_ref_addr,
943 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
944 DW_FORM_ref_udata.
945 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
946
947 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
948
949 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
950 (mips_o32_return_value): Likewise.
951 (mips_o64_return_value): Likewise.
952
953 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
954
955 * ada-lang.c (ada_evaluate_subexp): Add cases for
956 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
957 their treatment in eval.c.
958
959 2012-04-21 David S. Miller <davem@davemloft.net>
960
961 * sparc-tdep.c (X_DISP10): Define.
962 (sparc_analyze_control_transfer): Handle compare-and-branch.
963
964 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
965
966 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
967 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
968
969 2012-04-20 Nigel Stephens <nigel@mips.com>
970 Maciej W. Rozycki <macro@codesourcery.com>
971
972 * mips-tdep.c (mips_float_register_p): New function.
973 (mips_convert_register_float_case_p): Use mips_float_register_p.
974 (mips_register_type): Likewise.
975 (mips_print_register): Likewise.
976 (print_gp_register_row): Likewise.
977 (mips_print_registers_info): Likewise.
978
979 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
980
981 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
982 of mips16 symbols.
983
984 2012-04-20 Andrew Pinski <apinski@cavium.com>
985
986 * MAINTAINERS (Write After Approval): Add myself to the list.
987
988 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
989
990 * MAINTAINERS: Update my e-mail address.
991
992 2012-04-20 Pedro Alves <palves@redhat.com>
993
994 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
995 $srcdir.
996 * configure: Regenerate.
997
998 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
999
1000 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
1001 declaration.
1002 * gdb_vecs.h: Declare `const_char_ptr' VEC.
1003
1004 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1005
1006 Fix compilation compatibility with python-2.4
1007 * python/py-type.c (convert_field): Cast ADDRSTRING for
1008 PyObject_SetAttrString as non-const. New comment.
1009
1010 2012-04-19 Tom Tromey <tromey@redhat.com>
1011
1012 * top.c (quit_target): Use all_cleanups.
1013 * main.c (captured_command_loop): Use all_cleanups.
1014 * exceptions.c (throw_exception): Use all_cleanups.
1015
1016 2012-04-19 Pedro Alves <palves@redhat.com>
1017
1018 * Makefile.in (GNULIB_BUILDDIR): New.
1019 (LIBGNU, INCGNU, GNULIB_H): Adjust.
1020 (SUBDIRS): Add $(GNULIB_BUILDDIR).
1021 (CLEANDIRS). Remove gnulib/import.
1022 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
1023 (all-lib): Ditto.
1024 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
1025 (gnulib/import/Makefile): Replace gnulib/import with
1026 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
1027 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
1028 (aclocal_m4_deps): Remove the gnulib dependencies. Add
1029 acx_configure_dir.m4.
1030 * acinclude.m4: Include acx_configure_dir.m4.
1031 * acx_configure_dir.m4: New file.
1032 * aclocal.m4: Regenerate.
1033 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
1034 calls. Configure gnulib using ACX_CONFIGURE_DIR.
1035 (GNULIB): New variable.
1036 (GNULIB_STDINT_H): Adjust.
1037 (AC_OUTPUT): Don't output gnulib/Makefile.
1038 * gdb/defs.h: Include build-gnulib/config.h.
1039 * aclocal.m4: Regenerate.
1040 * config.in: Regenerate.
1041 * configure: Regenerate.
1042
1043 * gnulib/Makefile.in: New file.
1044 * gnulib/configure.ac: New file.
1045 * gnulib/aclocal.m4: New file.
1046 * gnulib/config.in: New file.
1047 * gnulib/configure: New file.
1048 * gnulib/: Re-run gnulib-tool to adjust.
1049
1050 2012-04-19 Doug Evans <dje@google.com>
1051
1052 * cleanups.h (struct cleanup): Move to cleanups.c.
1053 (make_cleanup_dtor_ftype): New typedef.
1054 (make_cleanup_dtor): Use it.
1055 (ALL_CLEANUPS): Replace with ...
1056 (all_cleanups): ... this. Declare. All uses updated.
1057 * cleanups.c: #include "gdb_assert.h".
1058 (sentinel_cleanup): New static global.
1059 (SENTINEL_CLEANUP): Define.
1060 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
1061 (make_my_cleanup2): Assert result is non-NULL.
1062 (all_cleanups): New function.
1063 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
1064 of NULL.
1065
1066 2012-04-19 Pedro Alves <palves@redhat.com>
1067
1068 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
1069 Adjust paths to gnulib imported files.
1070
1071 2012-04-19 Pedro Alves <palves@redhat.com>
1072
1073 * gnulib/: Move whole directory ...
1074 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
1075 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
1076 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
1077 (aclocal_m4_deps): Adjust.
1078 * aclocal.m4: Regenerate.
1079 * configure: Regenerate.
1080 * configure.ac: Adjust AC_OUTPUT output.
1081
1082 2012-04-19 Yao Qi <yao@codesourcery.com>
1083
1084 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
1085 (vec.o): New rule.
1086 * vec.c: Move it ...
1087 * common/vec.c: ... here.
1088 * vec.h: Move it ...
1089 * common/vec.h: ... here.
1090
1091 2012-04-19 Yao Qi <yao@codesourcery.com>
1092
1093 * gdb-code-style.el: New.
1094
1095 2012-04-18 Pedro Alves <palves@redhat.com>
1096
1097 Update gnulib from latest git.
1098 (639ea5ae15e39fe48d43e04864b2997301e4b969)
1099
1100 * gnulib/Makefile.am: Update.
1101 * gnulib/dummy.c: Update.
1102 * gnulib/extra/arg-nonnull.h: Update.
1103 * gnulib/extra/c++defs.h: Update.
1104 * gnulib/extra/update-copyright: Update.
1105 * gnulib/extra/warn-on-use.h: Update.
1106 * gnulib/inttypes.in.h: Update.
1107 * gnulib/m4/00gnulib.m4: Update.
1108 * gnulib/m4/extensions.m4: Update.
1109 * gnulib/m4/gnulib-cache.m4: Update.
1110 * gnulib/m4/gnulib-common.m4: Update.
1111 * gnulib/m4/gnulib-comp.m4: Update.
1112 * gnulib/m4/gnulib-tool.m4: Update.
1113 * gnulib/m4/include_next.m4: Update.
1114 * gnulib/m4/inttypes-pri.m4: Update.
1115 * gnulib/m4/inttypes.m4: Update.
1116 * gnulib/m4/longlong.m4: Update.
1117 * gnulib/m4/memchr.m4: Update.
1118 * gnulib/m4/memmem.m4: Update.
1119 * gnulib/m4/mmap-anon.m4: Update.
1120 * gnulib/m4/multiarch.m4: Update.
1121 * gnulib/m4/onceonly.m4: Update.
1122 * gnulib/m4/stddef_h.m4: Update.
1123 * gnulib/m4/stdint.m4: Update.
1124 * gnulib/m4/string_h.m4: Update.
1125 * gnulib/m4/warn-on-use.m4: Update.
1126 * gnulib/m4/wchar_h.m4: Update.
1127 * gnulib/m4/wchar_t.m4: Update.
1128 * gnulib/m4/wint_t.m4: Update.
1129 * gnulib/memchr.c: Update.
1130 * gnulib/memmem.c: Update.
1131 * gnulib/stddef.in.h: Update.
1132 * gnulib/stdint.in.h: Update.
1133 * gnulib/str-two-way.h: Update.
1134 * gnulib/string.in.h: Update.
1135 * gnulib/wchar.in.h: Update.
1136
1137 * gnulib/extra/arg-nonnull.h: Delete.
1138 * gnulib/extra/c++defs.h: Delete.
1139 * gnulib/extra/warn-on-use.h: Delete.
1140 * gnulib/m4/wchar_h.m4: Delete.
1141 * gnulib/m4/wint_t.m4: Delete.
1142 * gnulib/wchar.in.h: Delete.
1143
1144 * gnulib/extra/snippets/arg-nonnull.h: New.
1145 * gnulib/extra/snippets/c++defs.h: New.
1146 * gnulib/extra/snippets/warn-on-use.h: New.
1147
1148 * aclocal.m4: Regenerate.
1149 * config.in: Regenerate.
1150 * configure: Regenerate.
1151 * gnulib/Makefile.in: Regenerate.
1152
1153 2012-04-18 Pedro Alves <palves@redhat.com>
1154
1155 Reimport the update-copyright module from gnulib
1156 (250b80067c1e1d8faa0c42fb572f721975b929c5).
1157
1158 * configure: Regenerate.
1159 * gnulib/Makefile.am: Update.
1160 * gnulib/Makefile.in: Regenerate.
1161 * gnulib/extra/update-copyright: Update.
1162 * gnulib/m4/gnulib-cache.m4: Update.
1163 * gnulib/m4/gnulib-comp.m4: Update.
1164
1165 2012-04-18 Tristan Gingold <gingold@adacore.com>
1166
1167 * configure.ac (aix): Put -lpthread into libs.
1168 * configure: Regenerate.
1169
1170 2012-04-18 Tom Tromey <tromey@redhat.com>
1171
1172 * linespec.c (convert_linespec_to_sals): Don't use
1173 SYMBOL_OBJ_SECTION.
1174 (compare_msymbols): Arguments are minsym_and_objfile, not
1175 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
1176
1177 2012-04-18 Pedro Alves <palves@redhat.com>
1178
1179 Revert gnulib/ part of:
1180 2011-01-01 Joel Brobecker <brobecker@adacore.com>
1181 Copyright year update in most files (performed by copyright.sh).
1182
1183 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1184
1185 Fix 64-bit constants on 32-bit hosts.
1186 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
1187 from unsigned long to ULONGEST.
1188 (read_signed_leb128): Change declaration return type from long to
1189 LONGEST.
1190 (dwarf2_const_value_attr): Change declaration parameter value from long
1191 to LONGEST.
1192 (dwarf2_compute_name): Change variable value from long to LONGEST.
1193 (read_unsigned_leb128): Change return type, variable result and some
1194 casts from unsigned long to ULONGEST.
1195 (read_signed_leb128): Change return type, variable result and some
1196 casts from long to LONGEST.
1197 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
1198 value from long to LONGEST.
1199 (dwarf2_const_value): Change variable value from long to LONGEST.
1200 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
1201 plongest and hex_string.
1202 * symtab.h (struct general_symbol_info): Change ivalue from long to
1203 LONGEST, remove the comment.
1204 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
1205 Change SYMBOL_VALUE format strings to use plongest and hex_string.
1206
1207 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
1208
1209 PR symtab/7259:
1210 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
1211 * ada-lang.c (ada_discrete_type_high_bound)
1212 (ada_discrete_type_low_bound): Fix function comment. Use
1213 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1214 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
1215 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1216 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
1217 Use TYPE_FIELD_ENUMVAL.
1218 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
1219 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1220 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
1221 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
1222 TYPE_CODE_ENUM.
1223 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
1224 * dwarf2read.c (process_enumeration_scope): Likewise.
1225 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
1226 field.bitpos.
1227 (class StructMainTypePrettyPrinter): Support also
1228 FIELD_LOC_KIND_ENUMVAL.
1229 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
1230 TYPE_CODE_ENUM.
1231 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1232 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
1233 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
1234 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
1235 field enumval.
1236 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
1237 accommodate enumval.
1238 (struct call_site): Adjust loc_kind to accommodate enumval.
1239 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
1240 (TYPE_FIELD_ENUMVAL): New macros.
1241 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
1242 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
1243 TYPE_CODE_ENUM.
1244 * p-typeprint.c (pascal_type_print_base): Likewise.
1245 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
1246 enumval.
1247 * python/lib/gdb/types.py (make_enum_dict): Likewise.
1248 * python/py-type.c (convert_field): New variable addrstring. Use
1249 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1250 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
1251 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
1252 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
1253 TYPE_CODE_ENUM.
1254 * valprint.c (generic_val_print): Likewise.
1255
1256 2012-04-17 Doug Evans <dje@google.com>
1257
1258 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
1259
1260 * dwarf2read.c: Whitespace fixes.
1261 (lookup_signatured_type): Tweak comment.
1262 (get_die_type_at_offset): Fix comment.
1263
1264 2012-04-17 Joel Brobecker <brobecker@adacore.com>
1265
1266 * xcoffread.c (xcoff_secnum_to_sections): New function.
1267 (secnum_to_section, secnum_to_bfd_section): Reimplement
1268 using xcoff_secnum_to_sections. Rename "secnum" parameter
1269 into "n_scnum".
1270 (RECORD_MINIMAL_SYMBOL): Delete.
1271 (record_minimal_symbol): New function.
1272 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
1273 by call to record_minimal_symbol and set misc_func_recorded
1274 to 1. Set last_csect_sec to the XCOFF section index instead
1275 of GDB's section_offset index. Update calls to
1276 prim_record_minimal_symbol_and_info to pass the BFD section
1277 as well.
1278
1279 2012-04-17 Joel Brobecker <brobecker@adacore.com>
1280
1281 * xcoffread.c (read_xcoff_symtab): Delete variables
1282 last_csect_val and last_csect_sec and associated code.
1283
1284 2012-04-17 Doug Evans <dje@google.com>
1285
1286 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
1287 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
1288 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
1289 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
1290
1291 * cleanups.h: New file.
1292 * cleanups.c: New file.
1293 * Makefile.in (SFILES): Add cleanups.c.
1294 (HFILES_NO_SRCDIR): Add cleanups.h.
1295 (COMMON_OBS): Add cleanups.o.
1296 * defs.h (struct cleanup): Moved to cleanups.h.
1297 (do_cleanups,do_final_cleanups): Ditto.
1298 (discard_cleanups,discard_final_cleanups): Ditto
1299 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
1300 (save_cleanups,save_final_cleanups): Ditto.
1301 (restore_cleanups,restore_final_cleanups): Ditto.
1302 (null_cleanup): Ditto.
1303 (make_my_cleanup,make_my_cleanup2): Ditto.
1304 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
1305 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
1306 (do_cleanups,do_final_cleanups): Ditto.
1307 (discard_cleanups,discard_final_cleanups): Ditto
1308 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
1309 (save_cleanups,save_final_cleanups): Ditto.
1310 (restore_cleanups,restore_final_cleanups): Ditto.
1311 (null_cleanup): Ditto.
1312 (make_my_cleanup,make_my_cleanup2): Ditto.
1313 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
1314
1315 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
1316 make_my_cleanup.
1317 (make_cleanup_dyn_string_delete): Ditto.
1318 (make_cleanup_ui_file_delete): Ditto.
1319 (make_cleanup_ui_out_redirect_pop): Ditto.
1320 (make_cleanup_free_section_addr_info): Ditto.
1321 (make_cleanup_restore_integer): Ditto.
1322 (make_cleanup_unpush_target): Ditto.
1323 (make_cleanup_value_free_to_mark): Ditto.
1324 (make_cleanup_value_free): Ditto.
1325 (make_cleanup_free_so): Ditto.
1326
1327 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1328
1329 New option "set debug auto-load".
1330 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
1331 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
1332 (auto_load_safe_path_vec_update)
1333 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
1334 if DEBUG_AUTO_LOAD.
1335 (file_is_auto_load_safe): New parameters debug_fmt and ....
1336 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
1337 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
1338 caller by explanatory string.
1339 (_initialize_auto_load): Register "set debug auto-load".
1340 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
1341 and ....
1342 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
1343 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
1344 by explanatory string.
1345 * main.c (captured_main): Likewise.
1346 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1347 (source_section_scripts): Likewise.
1348
1349 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1350
1351 New option "set auto-load safe-path".
1352 * NEWS: New commands "set auto-load safe-path"
1353 and "show auto-load safe-path".
1354 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
1355 (auto_load_safe_path, auto_load_safe_path_vec)
1356 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
1357 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
1358 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
1359 (source_gdb_script_for_objfile): New variable is_safe. Call
1360 file_is_auto_load_safe. Return if it is not.
1361 (struct loaded_script): New field loaded.
1362 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
1363 (print_script): Use LOADED indicator instead of FULL_PATH. Change
1364 output "Missing" to "No".
1365 (_initialize_auto_load): New variable cmd. Initialize
1366 auto_load_safe_path. Register "set auto-load safe-path",
1367 "show auto-load safe-path" and "add-auto-load-safe-path".
1368 * auto-load.h (maybe_add_script): Add parameter loaded.
1369 (file_is_auto_load_safe): New declaration.
1370 * config.in: Regenerate.
1371 * configure: Regenerate.
1372 * configure.ac: New parameters --with-auto-load-safe-path
1373 and --without-auto-load-safe-path.
1374 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
1375 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
1376 * main.c (captured_main): Check file_is_auto_load_safe for
1377 LOCAL_GDBINIT.
1378 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
1379 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
1380 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
1381 not.
1382
1383 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1384
1385 auto-load: Implementation.
1386 * NEWS: New descriptions for "info auto-load",
1387 "info auto-load gdb-scripts", "info auto-load python-scripts",
1388 "info auto-load local-gdbinit" and "info auto-load libthread-db".
1389 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
1390 and "show auto-load-scripts". New description for "set auto-load",
1391 "show auto-load", "set auto-load gdb-scripts",
1392 "show auto-load gdb-scripts", "set auto-load python-scripts",
1393 "show auto-load python-scripts", "set auto-load local-gdbinit",
1394 "show auto-load local-gdbinit", "set auto-load libthread-db" and
1395 "show auto-load libthread-db".
1396 * auto-load.c: Remove include python/python-internal.h. Add includes
1397 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
1398 cli/cli-setshow.h.
1399 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
1400 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
1401 (gdbpy_global_auto_load): Rename to ...
1402 (global_auto_load): ... here.
1403 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
1404 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
1405 (script_language_gdb, source_gdb_script_for_objfile): New.
1406 (struct loaded_script): New field language.
1407 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
1408 LANGUAGE.
1409 (maybe_add_script): Add parameter language. Drop redundant
1410 entry.full_path initialization. Initialize entry.language and
1411 (*slot)->language.
1412 (auto_load_objfile_script): Change parameter suffix to language.
1413 Remove the call of maybe_add_script.
1414 Call language->source_script_for_objfile.
1415 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
1416 New.
1417 (collect_matching_scripts): Adjust it for
1418 struct collect_matching_scripts_data.
1419 (auto_load_info_scripts_pattern_nl): New variable.
1420 (info_auto_load_scripts): Rename to ...
1421 (auto_load_info_scripts): ... here, add parameter language. Adjust it
1422 for struct collect_matching_scripts_data.
1423 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
1424 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
1425 (auto_load_show_cmdlist_get, info_auto_load_cmd)
1426 (auto_load_info_cmdlist_get): New.
1427 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
1428 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
1429 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
1430 "info auto-load local-gdbinit".
1431 * auto-load.h (struct script_language): New.
1432 (gdbpy_global_auto_load): Rename to ...
1433 (global_auto_load): ... here.
1434 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
1435 (auto_load_local_gdbinit_loaded): New declarations.
1436 (maybe_add_script): New parameter language.
1437 (auto_load_objfile_script): Change parameter suffix to language.
1438 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
1439 (auto_load_info_scripts, auto_load_set_cmdlist_get)
1440 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
1441 declarations.
1442 * linux-thread-db.c: Include auto-load.h and ctype.h.
1443 (auto_load_thread_db, show_auto_load_thread_db): New.
1444 (struct thread_db_info): New field filename.
1445 (delete_thread_db_info): Call xfree for FILENAME.
1446 (try_thread_db_load): Initialize FILENAME.
1447 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
1448 if !AUTO_LOAD_THREAD_DB.
1449 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
1450 (_initialize_thread_db): Install auto_load_thread_db
1451 as "set auto-load libthread-db" and install info_auto_load_libthread_db
1452 as "info auto-load libthread-db".
1453 * main.c (captured_main): Rename gdbpy_global_auto_load to
1454 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
1455 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
1456 (print_gdb_help): Extend the help for 'local init file'.
1457 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
1458 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
1459 (auto_load_scripts): Rename to ...
1460 (auto_load_python_scripts): ... here, update the comment.
1461 (gdbpy_load_auto_script_for_objfile): New declaration.
1462 (show_auto_load_python_scripts, script_language_python)
1463 (gdbpy_load_auto_script_for_objfile): New.
1464 (source_section_scripts): Refactor the code.
1465 (load_auto_scripts_for_objfile): Rename to ...
1466 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
1467 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
1468 (info_auto_load_python_scripts): New.
1469 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
1470 Rename "set auto-load-scripts" to "set auto-load python-scripts".
1471 Register "set auto-load-scripts" as its deprecated alias. Register
1472 "info auto-load python-scripts". Register "info auto-load-scripts" as
1473 its deprecated alias.
1474 (load_auto_scripts_for_objfile): Rename to ...
1475 (gdbpy_load_auto_scripts_for_objfile): ... here.
1476 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
1477 (gdbpy_load_auto_scripts_for_objfile): ... here.
1478
1479 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1480
1481 auto-load: Move files.
1482 * Makefile.in (SFILES): Add auto-load.c.
1483 (HFILES_NO_SRCDIR): Add auto-load.h.
1484 (COMMON_OBS): Add auto-load.o.
1485 (distclean): Change .gdbinit for gdb-gdb.gdb.
1486 * auto-load.c: New file, with parts from python/py-auto-load.c.
1487 * auto-load.h: New file, with parts from python/python.h.
1488 * configure: Regenerate.
1489 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
1490 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
1491 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
1492 * main.c: Include auto-load.h.
1493 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
1494 command.h, observer.h and progspace.h to auto-load.c. Add include
1495 auto-load.h.
1496 (gdbpy_global_auto_load, struct auto_load_pspace_info)
1497 (struct loaded_script, auto_load_pspace_data)
1498 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
1499 (hash_loaded_script_entry, eq_loaded_script_entry)
1500 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
1501 (maybe_add_script): Move to auto-load.c.
1502 (source_section_scripts): Change maybe_add_script parameters passing,
1503 use script_not_found_warning_print.
1504 (clear_section_scripts, auto_load_objfile_script)
1505 (auto_load_new_objfile, loaded_script_ptr)
1506 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
1507 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
1508 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
1509 auto_load_new_objfile and info_auto_load_scripts initizations to
1510 auto-load.c.
1511 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
1512
1513 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1514
1515 Code cleanup.
1516 * charset.c (find_charset_names): Remove variables ix and elt.
1517 Use free_char_ptr_vec.
1518 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
1519 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
1520 debugdir_end. New variable debugdir_len.
1521 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
1522 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
1523 declarations.
1524 * progspace.c (clear_program_space_solib_cache): Remove variables ix
1525 and elt. Use free_char_ptr_vec.
1526 * source.c (add_path): Remove variables argv, arg and argv_index.
1527 New variables dir_vec, back_to, ix and name.
1528 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
1529 make_cleanup_freeargv. Remove variable separator. Simplify the code
1530 no longer expecting DIRNAME_SEPARATOR.
1531 (openp): Remove variable p, p1 and len. New variables dir_vec,
1532 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
1533 no longer expecting DIRNAME_SEPARATOR.
1534 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
1535 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
1536 debugdir_end.
1537 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
1538 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
1539 (dirnames_to_char_ptr_vec): New functions.
1540
1541 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1542
1543 Code cleanup.
1544 * source.c (add_path): Remove always true conditional 'p == 0' and
1545 unindent its code block.
1546
1547 2012-04-17 Pedro Alves <palves@redhat.com>
1548
1549 * gdbtypes.h (FIELD_BITPOS): Rename to ...
1550 (FIELD_BITPOS_LVAL): ... this.
1551 (FIELD_BITPOS): New.
1552 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
1553 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
1554 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
1555 SET_FIELD_BITPOS.
1556 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
1557 SET_FIELD_BITPOS.
1558 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
1559 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
1560 * target-descriptions.c (tdesc_gdb_type): Adjust to use
1561 SET_FIELD_BITPOS.
1562
1563 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1564
1565 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
1566 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
1567 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
1568 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
1569 * jv-lang.c (java_link_class_type): Likewise, once.
1570 * stabsread.c (read_enum_type): Likewise.
1571
1572 2012-04-16 Yao Qi <yao@codesourcery.com>
1573
1574 * common/agent.c (agent_run_command): Add one more parameter `len'.
1575 Update callers.
1576 * common/agent.h: Update declaration.
1577 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
1578 Update.
1579 (linux_child_static_tracepoint_markers_by_strid): Ditto.
1580
1581 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
1582
1583 PR mi/13393
1584 * value.c (value_actual_type): New function.
1585 * value.h (value_actual_type): New declaration.
1586 * varobj.c (update_type_if_necessary): New function.
1587 (varobj_create): Call value_actual_type instead of
1588 value_type.
1589 (install_dynamic_child): distinct changed and type changed MI variable
1590 objects.
1591 (update_dynamic_varobj_children): Updated for install_dynamic_child
1592 change. All callers updated.
1593 (varobj_update): Support for MI variable object type change if
1594 the value changed and RTTI is used to determine the type.
1595 (create_child_with_value): Call value_actual_type instead of
1596 value_type.
1597 (adjust_value_for_child_access): Extended with a new parameter which
1598 specify whether the given value should be casted to enclosing type.
1599 All callers updated.
1600
1601 2012-04-14 Yao Qi <yao@codesourcery.com>
1602
1603 Import gnulib module inttypes from git
1604 (250b80067c1e1d8faa0c42fb572f721975b929c5)
1605 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
1606 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
1607 gnulib/m4/inttypes-pri.m4
1608 * aclocal.m4, config.in, configure: Regenerated.
1609 * gnulib/Makefile.am: Update.
1610 * gnulib/Makefile.in: Update.
1611 * gnulib/m4/gnulib-cache.m4: Update.
1612 * gnulib/m4/gnulib-comp.m4: Update.
1613 * gnulib/inttypes.in.h: New.
1614 * gnulib/m4/inttypes-pri.m4: New.
1615 * gnulib/m4/inttypes.m4: New.
1616
1617 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
1618
1619 * infrun.c (resume): Update PC address to the real PC after
1620 preparing to do displaced stepping.
1621
1622 2012-04-12 Doug Evans <dje@google.com>
1623
1624 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
1625 All callers updated.
1626
1627 2012-04-12 Mark Kettenis <kettenis@gnu.org>
1628
1629 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
1630
1631 2012-04-12 Doug Evans <dje@google.com>
1632
1633 * dwarf2read.c (create_all_type_units): Renamed from
1634 create_debug_types_hash_table. All callers updated.
1635
1636 * dwarf2read.c (create_signatured_type_table_from_index): Rename
1637 local type_sig to sig_type, type_offset to type_offset_in_tu.
1638 (hash_signatured_type): Renamed from hash_type_signature,
1639 all callers updated.
1640 (eq_signatured_type): Renamed from eq_type_signature,
1641 all callers updated.
1642 (create_debug_types_hash_table): Rename local type_sig to sig_type.
1643 (process_enumeration_scope): Ditto.
1644 (lookup_signatured_type_at_offset): Ditto.
1645 (load_full_type_unit, read_signatured_type): Ditto.
1646
1647 2012-04-12 Yao Qi <yao@codesourcery.com>
1648
1649 * remote.c (async_remote_interrupt): Correct function name in
1650 debug message.
1651 (async_remote_interrupt_twice): Ditto.
1652
1653 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
1654
1655 * source.c (find_and_open_source): Consistently pass resulting
1656 full path through xfullpath.
1657
1658 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1659
1660 Provide more specific displaced-stepping memory error message.
1661 * infrun.c (displaced_step_prepare): New variable status. Call
1662 target_read_memory instead of read_memory, provide more specific
1663 error message.
1664
1665 2012-04-11 Tristan Gingold <gingold@adacore.com>
1666
1667 PR gdb/13901
1668 * darwin-nat.c (darwin_execvp): Revert previous patch.
1669
1670 2012-04-11 Tristan Gingold <gingold@adacore.com>
1671
1672 PR gdb/13901
1673 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
1674 in case of change.
1675
1676 2012-04-11 Tristan Gingold <gingold@adacore.com>
1677
1678 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
1679 warning.
1680
1681 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
1682
1683 New command 'explore' which helps explore values and types in
1684 scope.
1685 * NEWS: Add an entry about the new 'explore' command.
1686 * data-directory/Makefile.in: Add gdb/command/explore.py
1687 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
1688 command using the GDB Python API.
1689
1690 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
1691
1692 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
1693 extension in jump target calculation.
1694
1695 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
1696
1697 * mips-tdep.c (mips32_next_pc): Handle JALX.
1698
1699 2012-04-10 Yao Qi <yao@codesourcery.com>
1700
1701 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
1702
1703 2012-04-10 Yao Qi <yao@codesourcery.com>
1704
1705 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
1706 and gnulib/m4/gnulib-tool.m4.
1707
1708 2012-04-10 Doug Evans <dje@google.com>
1709
1710 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
1711 (load_partial_dies): Clarify comment.
1712 (find_partial_die): Support rereading type units.
1713 Clarify CU handling, if we know offset is in CU, don't search for the
1714 containing CU. Add comment regarding memory waste.
1715
1716 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
1717
1718 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
1719 i386/x32-avx and i386/x32-avx-linux.
1720 (i386/x32-expedite): New.
1721 (i386/x32-linux-expedite): Likewise.
1722 (i386/x32-avx-expedite): Likewise.
1723 (i386/x32-avx-linux-expedite): Likewise.
1724 ($(outdir)/i386/x32.dat): Likewise.
1725 ($(outdir)/i386/x32-linux.dat): Likewise.
1726 ($(outdir)/i386/x32-avx.dat): Likewise.
1727 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
1728
1729 * features/i386/x32-avx-linux.xml: New file.
1730 * features/i386/x32-avx.xml: Likewise.
1731 * features/i386/x32-core.xml: Likewise.
1732 * features/i386/x32-linux.xml: Likewise.
1733 * features/i386/x32.xml: Likewise.
1734
1735 * features/i386/x32-avx-linux.c: New. Generated.
1736 * features/i386/x32-avx.c: Likewise.
1737 * features/i386/x32-linux.c: Likewise.
1738 * features/i386/x32.c: Likewise.
1739 * regformats/i386/x32-avx-linux.dat: Likewise.
1740 * regformats/i386/x32-avx.dat: Likewise.
1741 * regformats/i386/x32-linux.dat: Likewise.
1742 * regformats/i386/x32.dat: Likewise.
1743
1744 2012-04-10 Tristan Gingold <gingold@adacore.com>
1745
1746 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
1747 code to kill the inferior.
1748
1749 2012-04-09 Mark Kettenis <kettenis@gnu.org>
1750
1751 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1752 defines.
1753 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1754 defines.
1755 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
1756 (yyvsp): New defines.
1757 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1758 defines.
1759 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1760 defines.
1761 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1762 defines.
1763 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1764 defines.
1765 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1766 defines.
1767
1768 2012-04-09 Mark Kettenis <kettenis@gnu.org>
1769
1770 * sparc64-tdep.c (sparc64_store_arguments)
1771 (sparc64_store_arguments): Fix coding style.
1772
1773 2012-04-07 Mark Kettenis <kettenis@gnu.org>
1774
1775 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
1776 complex floats, adjust some related comments and tighten a related
1777 assertion.
1778 (sparc64_extract_return_value): Handle complex floats.
1779
1780 2012-04-07 Doug Evans <dje@google.com>
1781
1782 * dwarf2read.c (load_partial_dies): Change condition to assert.
1783
1784 2012-04-06 Doug Evans <dje@google.com>
1785
1786 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
1787 "mov %rsp,%rbp".
1788
1789 2012-04-05 Kevin Buettner <kevinb@redhat.com>
1790
1791 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
1792 fencepost error.
1793 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
1794 (v850_gdbarch_init): Set `num_regs' as appropriate for the
1795 architecture.
1796
1797 2012-04-05 Keith Seitz <keiths@redhat.com>
1798
1799 * linespec.c (decode_compound): Remove.
1800 (enum offset_relative_sign): New enum.
1801 (struct line_offset): New struct.
1802 (struct linespec): New struct.
1803 (struct linespec_state): Move file_symtabs,
1804 user_filename, and user_function into struct linespec.
1805 Make result an anonymous struct holding vectors of
1806 symbolp and minsym_and_objfile_d.
1807 Add language member.
1808 (enum ls_token_type): New enum.
1809 (linespec_keywords): New array.
1810 (struct ls_token): New struct.
1811 (struct ls_parser): New struct.
1812 (linespec_lexer_lex_number): New function.
1813 (linespec_lexer_lex_keyword): New function.
1814 (is_ada_operator): New function.
1815 (skip_quote_char): New function.
1816 (copy_token_string): New function.
1817 (is_closing_quote_enclosed): New function.
1818 (find_parameter_list_end): New function.
1819 (linespec_lexer_lex_string): New function.
1820 (linespec_lexer_lex_one): New function.
1821 (linespec_lexer_consume_token): New function.
1822 (linespec_lexer_peek_token): New function.
1823 (cplusplus_error): Remove unused function.
1824 (find_methods): Update comment.
1825 (find_toplevel_char): Return const.
1826 (is_objc_method_format): Remove unused function.
1827 (find_toplevel_string): New function.
1828 (is_linespec_boundary): Remove.
1829 (symbol_not_found_error): New function.
1830 (find_method_overload_end): Remove function.
1831 (unexpected_linespec_error): New function.
1832 (keep_name_info): Remove.
1833 (linespec_parse_line_offset): New function.
1834 (linespec_parse_basic): New function.
1835 (canonicalize_linespec): New function.
1836 (decode_line_internal): Remove.
1837 (create_sals_line_offset): New function adapted from
1838 decode_all_digits.
1839 (convert_linespec_to_sals): New function.
1840 (parse_linespec): New function.
1841 (linespec_parser_new): New function.
1842 (linespec_state_destructor): Change parameter type to
1843 struct linespec_state *.
1844 Add language parameter.
1845 Remove freeing of moved members.
1846 (linespec_parser_delete): New function.
1847 (decode_line_full): Use parse_linespec and linespec_parser_new.
1848 (decode_line_1): Likewise.
1849 (decode_indirect): Rename to ...
1850 (linespec_expression_to_pc): ... this and rewrite
1851 to simply find CORE_ADDR, storing this result for later
1852 conversion to SALs.
1853 (locate_first_half): Remove.
1854 (deocde_objc): Add parameter LS.
1855 Initialize new struct collect_info members.
1856 Handle minimal symbols, too.
1857 (decode_compound): Delete.
1858 (lookup_prefix_sym): Rewrite.
1859 (compare_msymbols): New function.
1860 (find_method): Rewrite.
1861 Do not call cplusplus_error.
1862 (symtabs_from_filename): Rewrite.
1863 (collect_function_symbols): Delete.
1864 (find_function_symbols): Rewrite without ARGPTR-style
1865 processing.
1866 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
1867 (decode_dollar): Adapted and renamed to ...
1868 (linespec_parse_variable): ... this.
1869 (find_linespec_symbols): New function.
1870 (decode_label): Adapted and renamed to ...
1871 (find_label_symbols): ... this.
1872 (decode_digits_list_mode): Add and use LS argument.
1873 (decode_digits_ordinary): Likewise.
1874 (collect_symbols): Do not collect SALs, just symbols and msymbols.
1875 If in list mode, allow any symbol class. Otherwise, only
1876 permit LOC_BLOCK symbols.
1877 (minsym_found): Update comments.
1878 (search_minsyms_for_name): Do not convert the matching symbol
1879 into a SAL. Simply push the symbol and objfile into the
1880 result vector.
1881 (decode_variable): Delete. Contents adapted into
1882 find_linespec_symbols.
1883
1884 * cp-support.c (SKIP_SPACE): Remove.
1885 (operator_tokens): Remove unused global.
1886 (cp_validate_operator): Remove.
1887 * cp-support.h (cp_validate_operator): Remove declaration.
1888
1889 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1890
1891 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
1892 for TYPE_VPTR_FIELDNO.
1893 * valprint.c (valprint_check_validity): Make it global, move the
1894 function comment ...
1895 * value.h (valprint_check_validity): ... to this new declaration.
1896
1897 2012-04-02 Tristan Gingold <gingold@adacore.com>
1898
1899 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
1900 the STATE32 api for i386 state.
1901 (i386_darwin_store_inferior_registers): Likewise.
1902
1903 2012-04-02 Tristan Gingold <gingold@adacore.com>
1904
1905 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
1906 SS offset.
1907 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
1908 format_string.
1909
1910 2012-04-02 Tristan Gingold <gingold@adacore.com>
1911
1912 PR gdb/13901
1913 * darwin-nat.c (darwin_execvp): Set binary preference.
1914
1915 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1916
1917 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
1918
1919 2012-03-30 Tom Tromey <tromey@redhat.com>
1920
1921 * python/python.c (gdbpy_decode_line): Move cleanup creation out
1922 of TRY_CATCH. Fix error handling.
1923 * python/py-value.c (convert_value_from_python): Move 'old'
1924 declaration to innermost scope.
1925
1926 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1927 Andrey Smirnov <andrew.smirnov@gmail.com>
1928
1929 -Wshadow warning fix.
1930 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
1931 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
1932 Adjust code accordingly.
1933
1934 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1935
1936 * ada-lang.c (symbol_completion_add): Rename parameter
1937 "encoded" into "encoded_p". Ajust code and documentation
1938 accordingly.
1939
1940 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1941 Andrey Smirnov <andrew.smirnov@gmail.com>
1942
1943 -Wshadow warning fix.
1944 * ada-lang.c (symbol_completion_add): Rename parameter
1945 "wild_match" into wild_match_p. Update code and documentation
1946 accordingly.
1947
1948 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1949
1950 * ada-lang.c (symbol_completion_match): Rename parameter
1951 "encoded" into "encoded_p". Ajust code and documentation
1952 accordingly.
1953
1954 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1955 Andrey Smirnov <andrew.smirnov@gmail.com>
1956
1957 -Wshadow warning fix.
1958 * ada-lang.c (symbol_completion_match): Rename parameter
1959 "wild_match" into "wild_match_p". Adjust code and function
1960 documentation accordingly.
1961
1962 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1963 Andrey Smirnov <andrew.smirnov@gmail.com>
1964
1965 -Wshadow warning fix.
1966 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
1967 "symbol_info" into "info". Adjust code accordingly.
1968 (ada_lookup_symbol): Likewise.
1969
1970 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1971
1972 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
1973 of this function's documentation.
1974
1975 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1976 Andrey Smirnov <andrew.smirnov@gmail.com>
1977
1978 -Wshadow warning fix.
1979 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
1980 variable into "wild_match_p". Adjust code accordingly.
1981
1982 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1983 Andrey Smirnov <andrew.smirnov@gmail.com>
1984
1985 -Wshadow warning fix.
1986 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
1987 parameter into "wild_match_p". Adjust code accordingly.
1988 Document this parameter in the function description.
1989
1990 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1991 Andrey Smirnov <andrew.smirnov@gmail.com>
1992
1993 -Wshadow warning fix.
1994 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
1995 "wild_match" parameter to "wild_match_p" (-Wshadow).
1996
1997 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1998
1999 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
2000 in function documentation.
2001
2002 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2003 Andrey Smirnov <andrew.smirnov@gmail.com>
2004
2005 -Wshadow warning fix.
2006 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
2007 variable into wild_match_p. Adjust code accordingly.
2008
2009 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2010 Andrey Smirnov <andrew.smirnov@gmail.com>
2011
2012 * ada-valprint.c (ada_val_print_1): Move the code handling
2013 TYPE_CODE_ENUM inside its own lexical block. Declare
2014 variables len and val there, instead of in the function's
2015 top level block. Avoid declaring deref_val again in a way
2016 that shadows another variable of the same name declared
2017 in one of the up-level blocks. Just re-use the up-level
2018 variable instead.
2019
2020 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2021
2022 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
2023 Replace block_found argument by symbol_info. Adjust
2024 implementation accordingly. Add function documentation.
2025 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
2026 Fix documentation.
2027 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
2028 * ada-exp.y (write_object_renaming): Adjust to new
2029 ada_lookup_encoded_symbol API.
2030
2031 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2032
2033 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
2034 documentation.
2035
2036 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
2037
2038 * v850-tdep.c: Add the enum values for mpu and fpu registers.
2039 (v850_register_name): Add the mpu and fpu register names.
2040 (v850e_register_name): Add the mpu and fpu register names.
2041 (v850e2_register_name): New function.
2042 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2043 bfd_mach_v850e2v3.
2044
2045 2012-03-28 Joel Brobecker <brobecker@adacore.com>
2046
2047 * NEWS: Add entry for Ada varobj support.
2048
2049 2012-03-28 Joel Brobecker <brobecker@adacore.com>
2050
2051 * varobj.c (default_value_is_changeable_p): New function,
2052 extracted from varobj_value_is_changeable_p. Add declaration.
2053 (ada_value_is_changeable_p): New function, extracted from
2054 varobj_value_is_changeable_p. Add declaration.
2055 (struct language_specific): New field "value_is_changeable_p".
2056 (languages): Add entries for new field.
2057 (varobj_create): Set language before calling install_new_value.
2058 (varobj_value_is_changeable_p): Reimplement to call the varobj's
2059 "value_is_changeable_p" language callback.
2060
2061 2012-03-28 Joel Brobecker <brobecker@adacore.com>
2062
2063 * ada-varobj.h, ada-varobj.c: New files.
2064 * Makefile.in (SFILES): Add ada-varobj.c.
2065 (HFILES_NO_SRCDIR): Add ada-varobj.h.
2066 (COMMON_OBS): Add ada-varobj.o.
2067
2068 2012-03-28 Joel Brobecker <brobecker@adacore.com>
2069
2070 * varobj.c (ada_value_has_mutated): Add declaration. New function.
2071 (struct language_specific): New field "value_has_mutated".
2072 (languages): Set field "value_has_mutated" in each entry of array.
2073 (varobj_value_has_mutated): New function.
2074 (varobj_udpdate): Add handling of type mutation.
2075 (value_of_root): Add handling of type mutation.
2076 (ada_value_has_mutated): New function.
2077
2078 2012-03-28 Pedro Alves <palves@redhat.com>
2079
2080 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
2081 Always supply $fr0 as 0.0 and $fr1 as 1.0.
2082
2083 2012-03-28 Tom Tromey <tromey@redhat.com>
2084
2085 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
2086 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
2087 before returning.
2088
2089 2012-03-28 Tom Tromey <tromey@redhat.com>
2090
2091 * .dir-locals.el: New file.
2092
2093 2012-03-28 Pedro Alves <palves@redhat.com>
2094
2095 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
2096
2097 2012-03-28 Joel Brobecker <brobecker@adacore.com>
2098
2099 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
2100 handling for r0.
2101
2102 2012-03-27 Pedro Alves <palves@redhat.com>
2103
2104 Eliminate struct ui_stream.
2105
2106 * ui-out.h (struct ui_stream): Delete.
2107 (ui_out_field_stream): Adjust prototype.
2108 (ui_out_stream_new, ui_out_stream_delete)
2109 (make_cleanup_ui_out_stream_delete): Delete declarations.
2110 * ui-out.c (ui_out_field_stream): Change prototype to take a
2111 ui_file instead of a ui_stream. Adjust.
2112 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
2113 (make_cleanup_ui_out_stream_delete): Delete.
2114 * breakpoint.c (print_breakpoint_location)
2115 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
2116 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
2117 * disasm.c (dump_insns): Ditto.
2118 (do_mixed_source_and_assembly, do_assembly_only): Adjust
2119 prototype.
2120 (gdb_disassembly): Use ui_file/mem_fileopen instead of
2121 ui_stream/ui_out_stream_new.
2122 * infcmd.c (print_return_value): Ditto.
2123 * osdata.c (info_osdata_command): Don't allocate a local
2124 ui_stream.
2125 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
2126 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
2127 * tracepoint.c (print_one_static_tracepoint_marker): Don't
2128 allocate a local ui_stream.
2129 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
2130 instead of ui_stream/ui_out_stream_new.
2131 (list_args_or_locals): Don't allocate a local ui_stream.
2132 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
2133 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
2134 ui_stream/ui_out_stream_new.
2135 * cli/cli-setshow.c (do_setshow_command): Ditto.
2136
2137 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
2138
2139 * arm-linux-tdep.c (arm_linux_init_abi): Call
2140 set_gdbarch_process_record. Initialize `arm_swi_record' field.
2141 * arm-tdep.c (arm_process_record): New function.
2142 (deallocate_reg_mem): New function.
2143 (decode_insn): New function.
2144 (thumb_record_branch): New function.
2145 (thumb_record_ldm_stm_swi(): New function.
2146 (thumb_record_misc): New function.
2147 (thumb_record_ld_st_stack): New function.
2148 (thumb_record_ld_st_imm_offset): New function.
2149 (thumb_record_ld_st_reg_offset(): New function.
2150 (thumb_record_add_sub_cmp_mov): New function.
2151 (thumb_record_shift_add_sub): New function.
2152 (arm_record_coproc_data_proc): New function.
2153 (arm_record_coproc): New function.
2154 (arm_record_b_bl): New function.
2155 (arm_record_ld_st_multiple): New function.
2156 (arm_record_ld_st_reg_offset): New function.
2157 (arm_record_ld_st_imm_offset): New function.
2158 (arm_record_data_proc_imm): New function.
2159 (arm_record_data_proc_misc_ld_str): New function.
2160 (arm_record_extension_space): New function.
2161 (arm_record_strx): New function.
2162 (sbo_sbz): New function.
2163 (struct insn_decode_record): New structure for arm insn record.
2164 (REG_ALLOC): New macro for reg allocations.
2165 (MEM_ALLOC): New macro for memory allocations.
2166 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
2167
2168 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
2169
2170 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
2171 (store_register): Likewise.
2172
2173 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
2174
2175 * MAINTAINERS (Write After Approval): Add myself to the list.
2176
2177 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2178
2179 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
2180 Describe also the option "auto".
2181
2182 2012-03-22 Richard Henderson <rth@redhat.com>
2183
2184 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
2185 * sparc-nat.c (sparc_xfer_wcookie): Make static.
2186
2187 2012-03-22 Richard Henderson <rth@redhat.com>
2188
2189 * jit.c (jit_read_code_entry): Compute alignment and offset of
2190 int64_t member before computing entry_size.
2191
2192 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
2193
2194 Python scripting: Add new method Value.referenced_value to
2195 gdb.Value which can dereference pointer as well as reference
2196 values.
2197 * NEWS: Add entry under 'Python scripting' about the new method
2198 Value.referenced_value on gdb.Value objects.
2199 * python/py-value.c (valpy_referenced_value): New function
2200 defining a new method on gdb.Value objects which can dereference
2201 pointer and reference values.
2202
2203 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
2204
2205 * MAINTAINERS (Write After Approval): Add myself to the list.
2206
2207 2012-03-21 Kevin Buettner <kevinb@redhat.com>
2208
2209 * symtab.c (skip_prologue_sal): Change test to check for "main()"
2210 in addition to "main".
2211
2212 2012-03-21 Joel Brobecker <brobecker@adacore.com>
2213
2214 * expression.h (op_name): Add declaration.
2215 * expprint.c (op_name): Remove declaration. Make non-static.
2216 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
2217
2218 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
2219
2220 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
2221 of struct siginfo.
2222 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
2223 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2224 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
2225 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
2226 (linux_nat_get_siginfo): Likewise.
2227 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
2228 (linux_nat_get_siginfo): Likewise.
2229 * linux-tdep.c (linux_get_siginfo_type): Likewise.
2230 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
2231 * procfs.c (gdb_siginfo_t): Likewise.
2232
2233 2012-03-21 Mike Frysinger <vapier@gentoo.org>
2234
2235 * .gitignore: Ignore more files.
2236
2237 2012-03-20 Pedro Alves <palves@redhat.com>
2238
2239 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
2240 returns.
2241
2242 2012-03-20 Yao Qi <yao@codesourcery.com>
2243
2244 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
2245 comment.
2246
2247 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2248
2249 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
2250 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
2251 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
2252 sect_offset.
2253 * dwarf2expr.h (cu_offset, sect_offset): New types.
2254 (struct dwarf_expr_context_funcs) <dwarf_call>
2255 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
2256 sect_offset.
2257 (struct dwarf_expr_context) <len>: Improve the comment.
2258 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
2259 cu_offset and sect_offset.
2260 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
2261 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
2262 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
2263 * dwarf2loc.h: Include dwarf2expr.h.
2264 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
2265 and sect_offset.
2266 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
2267 Improve the comment.
2268 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
2269 (struct signatured_type, struct line_header, struct partial_die_info)
2270 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
2271 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
2272 (get_die_type_at_offset, create_cus_from_index)
2273 (create_signatured_type_table_from_index, dw2_get_file_names)
2274 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
2275 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
2276 (create_debug_types_hash_table, process_psymtab_comp_unit)
2277 (load_partial_comp_unit, create_all_comp_units)
2278 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
2279 (load_full_comp_unit, dwarf2_physname, read_import_statement)
2280 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
2281 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
2282 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
2283 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
2284 (find_partial_die, read_attribute_value, lookup_die_type)
2285 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
2286 (is_ref_attr): New function comment.
2287 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
2288 Use cu_offset and sect_offset.
2289 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
2290 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
2291 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
2292 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
2293 (offset_and_type_hash, offset_and_type_eq, set_die_type)
2294 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
2295 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
2296 sect_offset.
2297
2298 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2299
2300 Code cleanup.
2301 * python/py-auto-load.c (source_section_scripts): New variable back_to.
2302 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
2303 with xfree.
2304 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
2305
2306 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2307
2308 * NEWS: Describe new options --init-command=FILE, -ix and
2309 --init-eval-command=COMMAND, -iex.
2310 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
2311 CMDARG_INIT_COMMAND.
2312 (captured_main): New enum items OPT_IX and OPT_IEX. Add
2313 "init-command", "init-eval-command", "ix" and "iex" to the variable
2314 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
2315 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
2316 (print_gdb_help): Describe --init-command=FILE, -ix and
2317 --init-eval-command=COMMAND, -iex.
2318
2319 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2320
2321 Code cleanup.
2322 * main.c (struct cmdarg): Move it here from main. Add more comments.
2323 (cmdarg_s, VEC (cmdarg_s)): New.
2324 (main): Move struct cmdarg from here. New variables cmdarg_vec and
2325 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
2326 Install cleanup for cmdarg_vec. Update filling for options 'x' and
2327 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
2328 of CMDARG.
2329
2330 2012-03-19 Tom Tromey <tromey@redhat.com>
2331
2332 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
2333
2334 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2335
2336 PR symtab/13777
2337 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
2338 GCC >=4.5.
2339
2340 2012-03-16 Chris January <chris.january@allinea.com>
2341
2342 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
2343 of clear.
2344
2345 2012-03-16 Chris January <chris.january@allinea.com>
2346
2347 * source.c (add_path): Use memmove instead of strcpy because the
2348 strings overlap.
2349
2350 2012-03-16 Joel Brobecker <brobecker@adacore.com>
2351
2352 * value.h (set_value_parent): Add declaration.
2353 * value.c (set_value_parent): New function.
2354 (value_address): If VALUE->PARENT is not NULL, then use it as
2355 the base address instead of VALUE->LOCATION.address.
2356 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
2357 the same as OBJ's address. Adjust V's offset accordingly.
2358 Set V's parent.
2359
2360 2012-03-16 Gary Benson <gbenson@redhat.com>
2361
2362 PR breakpoints/10738
2363 * dwarf2read.c (use_deprecated_index_sections): New global.
2364 (struct partial_die_info): New member may_be_inlined.
2365 (read_partial_die): Set may_be_inlined where appropriate.
2366 (add_partial_subprogram): Add partial symbols for partial
2367 DIEs that may be inlined.
2368 (new_symbol_full): Add inlined subroutines to the current
2369 scope.
2370 (write_psymtabs_to_index): Bump version number.
2371 (dwarf2_read_index): Read only version 6 indices unless
2372 use_deprecated_index_sections is set.
2373 * linespec.c (symbol_and_data_callback): New structure.
2374 (iterate_inline_only): New function.
2375 (iterate_over_all_matching_symtabs): New argument
2376 "include_inline". If nonzero, also call the callback for
2377 symbols representing inlined subroutines.
2378 (lookup_prefix_sym): Pass extra argument to the above.
2379 (find_function_symbols): Likewise.
2380 (add_matching_symbols_to_info): Likewise.
2381 * NEWS: Mention that GDB can now set breakpoints on inlined
2382 functions.
2383
2384 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2385
2386 * p-typeprint.c (pascal_type_print_method_args):
2387 Fix display of parameter of methods.
2388
2389 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2390
2391 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
2392 Add missing prototype.
2393
2394 2012-03-16 Yao Qi <yao@codesourcery.com>
2395 Jan Kratochvil <jan.kratochvil@redhat.com>
2396
2397 Fix false compilation warning.
2398 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
2399
2400 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
2401 Pedro Alves <pedro@codesourcery.com>
2402
2403 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
2404 (arm_register_g_packet_guesses): New function.
2405 (arm_gdbarch_init): Don't force a target description with
2406 registers when the executable is detected as M-profile. Instead
2407 set gdbarch->tdep->is_m. Register `g' packet guesses.
2408 (_initialize_arm_tdep): Initialize the new target description.
2409 * features/arm-with-m-fpa-layout.xml: New description.
2410 * features/arm-with-m-fpa-layout.c: New, generated.
2411
2412 2012-03-15 Joel Brobecker <brobecker@adacore.com>
2413
2414 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
2415 Update function description.
2416 (insert_bp_location): Do not wipe bl->target_info out.
2417 * mem-break.c: #include "gdb_string.h".
2418 (default_memory_insert_breakpoint): Do not call target_read_memory
2419 with a pointer to the breakpoint's shadow_contents buffer. Use
2420 a local buffer instead.
2421 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
2422
2423 2012-03-15 Tom Tromey <tromey@redhat.com>
2424
2425 * NEWS: Mention "info vtbl", not "info vtable".
2426 * cp-support.c (info_vtbl_command): Fix comment.
2427 (_initialize_cp_support): Fix text.
2428
2429 2012-03-15 Tom Tromey <tromey@redhat.com>
2430
2431 * cp-valprint.c (cp_print_value_fields): Use
2432 print_function_pointer_address for vtable slot.
2433
2434 2012-03-15 Tom Tromey <tromey@redhat.com>
2435
2436 * gnu-v3-abi.c (struct value_and_voffset): New.
2437 (hash_value_and_voffset, eq_value_and_voffset)
2438 (compare_value_and_voffset, compute_vtable_size)
2439 (print_one_vtable, gnuv3_print_vtable): New functions.
2440 (init_gnuv3_ops): Initialize 'print_vtable' field.
2441 * cp-support.c (info_vtbl_command): New function.
2442 (_initialize_cp_support): Add "info vtbl".
2443 * cp-abi.h (cplus_print_vtable): Declare.
2444 (struct cp_abi_ops) <print_vtable>: New field.
2445 * cp-abi.c (cplus_print_vtable): New function.
2446 * NEWS: Update.
2447
2448 2012-03-15 Tom Tromey <tromey@redhat.com>
2449
2450 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
2451 iterate_over_symbols.
2452
2453 2012-03-14 Doug Evans <dje@google.com>
2454
2455 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
2456 DW_OP_GNU_parameter_ref.
2457
2458 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2459
2460 Fix double prompt of 'interpreter-exec mi'.
2461 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
2462 (mi_interpreter_resume): use it.
2463 (mi_execute_command_input_handler): New function.
2464 * mi/mi-main.c (mi_execute_command): Move prompt printing to
2465 mi_execute_command_input_handler.
2466
2467 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
2468
2469 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
2470 prototype.
2471 (darwin_debug_port_info): Make static.
2472 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
2473 * machoread.c (_initialize_machoread): Add prototype.
2474 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
2475 (i386_darwin_set_control, i386_darwin_get_control)
2476 i386_darwin_dr_set_addr, i386_darwin_get_addr)
2477 i386_darwin_get_status, i386_darwin_get_control):
2478 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
2479
2480 2012-03-13 Joel Brobecker <brobecker@adacore.com>
2481
2482 * ax-gdb.c (gen_usual_unary): Remove special handling of
2483 enum and bool types.
2484
2485 2012-03-13 Joel Brobecker <brobecker@adacore.com>
2486
2487 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
2488
2489 2012-03-13 Joel Brobecker <brobecker@adacore.com>
2490
2491 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
2492
2493 2012-03-13 Chris January <chris.january@allinea.com>
2494
2495 * aix-thread.c (fill_sprs): Store the floating point registers
2496 at the correct offsets into vals.
2497
2498 2012-03-13 Doug Evans <dje@google.com>
2499
2500 * NEWS: Mention symbol-reloading has been deleted.
2501 * symfile.c (symbol_reloading): Delete.
2502 (show_symbol_reloading): Delete.
2503 (_initialize_symfile): Delete set/show symbol-reloading.
2504
2505 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
2506 read_in_chain until we have successfully read it in.
2507 (load_full_comp_unit): Ditto.
2508 (read_signatured_type): Add comment.
2509
2510 2012-03-13 Chris January <chris.january@allinea.com>
2511
2512 * stabsread.c (fix_common_block): Change type of valu argument
2513 to CORE_ADDR.
2514
2515 2012-03-13 Chris January <chris.january@allinea.com>
2516
2517 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
2518 instruction.
2519
2520 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2521
2522 * common/linux-procfs.c (linux_proc_get_int): New, from
2523 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
2524 field.
2525 (linux_proc_get_tgid): Only call linux_proc_get_int.
2526 (linux_proc_get_tracerpid): New.
2527 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
2528 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
2529 linux_proc_pid_has_state.
2530 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
2531 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
2532 (linux_ptrace_attach_warnings): New.
2533 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
2534 New declaration.
2535 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
2536 (linux_nat_attach): New variables ex, buffer, message and message_s.
2537 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
2538
2539 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2540
2541 * Makefile.in (linux-ptrace.o): New.
2542 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
2543 from linux-nat.c.
2544 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
2545 * common/linux-ptrace.c: New file.
2546 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
2547 * config/arm/linux.mh: Likewise.
2548 * config/i386/linux.mh: Likewise.
2549 * config/i386/linux64.mh: Likewise.
2550 * config/ia64/linux.mh: Likewise.
2551 * config/m32r/linux.mh: Likewise.
2552 * config/m68k/linux.mh: Likewise.
2553 * config/mips/linux.mh: Likewise.
2554 * config/pa/linux.mh: Likewise.
2555 * config/powerpc/linux.mh: Likewise.
2556 * config/powerpc/ppc64-linux.mh: Likewise.
2557 * config/powerpc/spu-linux.mh: Likewise.
2558 * config/s390/s390.mh: Likewise.
2559 * config/sparc/linux.mh: Likewise.
2560 * config/sparc/linux64.mh: Likewise.
2561 * config/xtensa/linux.mh: Likewise.
2562 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
2563 common/linux-procfs.c.
2564 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
2565
2566 2012-03-13 Hui Zhu <teawater@gmail.com>
2567 Pedro Alves <palves@redhat.com>
2568
2569 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
2570 CREATE_BREAKPOINT_FLAGS_INSERTED.
2571 (create_breakpoint_sal, create_breakpoints_sal)
2572 (base_breakpoint_create_breakpoints_sal)
2573 (tracepoint_create_breakpoints_sal)
2574 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
2575 down.
2576 (break_command_1, handle_gnu_v3_exceptions, trace_command)
2577 (ftrace_command, strace_command): Adjust.
2578 (create_tracepoint_from_upload): Pass
2579 CREATE_BREAKPOINT_FLAGS_INSERTED.
2580 * breakpoint.h (enum breakpoint_create_flags): New.
2581 (create_breakpoint): New flags parameter.
2582 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
2583 * python/py-breakpoint.c (bppy_init): Adjust.
2584 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
2585 * spu-tdep.c (spu_catch_start): Adjust.
2586
2587 2012-03-13 Pedro Alves <palves@redhat.com>
2588 Hui Zhu <teawater@gmail.com>
2589 Yao Qi <yao@codesourcery.com>
2590
2591 * remote.c (struct remote_state): New field `starting_up'.
2592 (remote_start_remote): Set and clear it.
2593 (remote_can_download_tracepoint): If starting up, return false.
2594
2595 2012-03-13 Yao Qi <yao@codesourcery.com>
2596
2597 * inferior.h (struct inferior): Remove fields any_syscall_count,
2598 syscalls_counts and total_syscalls_count. Move them to new
2599 struct catch_syscall_inferior_data in breakpoint.c.
2600 * breakpoint.c: Call DEF_VEC_I(int).
2601 (struct catch_syscall_inferior_data): New.
2602 (get_catch_syscall_inferior_data): New.
2603 (catch_syscall_inferior_data_cleanup): New.
2604 (insert_catch_syscall): Update to access data in
2605 struct catch_syscall_inferior_data.
2606 (insert_catch_syscall): Likewise.
2607 (remove_catch_syscall): Likewise.
2608 (remove_catch_syscall): Likewise.
2609 (is_syscall_catchpoint_enabled): Likewise.
2610 (add_catch_command): Likewise.
2611 (_initialize_breakpoint): Register cleanup.
2612 * breakpoint.h: Removed DEF_VEC_I(int).
2613 * dwarf2loc.c: Call DEF_VEC_I(int).
2614 * mi/mi-main.c: Likewise.
2615
2616 2012-03-12 Mark Kettenis <kettenis@gnu.org>
2617
2618 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
2619
2620 2012-03-12 Chris January <chris.january@allinea.com>
2621
2622 * aix-thread.c (_initialize_aix_thread): Add prototype.
2623 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
2624 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
2625
2626 2012-03-12 Joel Brobecker <brobecker@adacore.com>
2627
2628 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
2629 include of "amd64-nat.h".
2630
2631 2012-03-12 Tom Tromey <tromey@redhat.com>
2632
2633 * buildsym.c (record_pending_block): Now static.
2634 * buildsym.h: (record_pending_block): Remove.
2635
2636 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
2637
2638 * amd64bsd-nat.c: Include amd64bsd-nat.h.
2639
2640 2012-03-09 Tom Tromey <tromey@redhat.com>
2641
2642 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
2643 producer_is_gxx_lt_4_6>: New fields.
2644 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
2645
2646 2012-03-09 Tom Tromey <tromey@redhat.com>
2647
2648 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
2649
2650 2012-03-08 Joel Brobecker <brobecker@adacore.com>
2651
2652 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
2653 prototype.
2654
2655 2012-03-08 Joel Brobecker <brobecker@adacore.com>
2656
2657 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
2658
2659 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2660
2661 Fix -Wmissing-prototypes build.
2662 * arm-linux-nat.c (get_thread_id): Make it static.
2663 * xtensa-linux-nat.c (get_thread_id): Likewise.
2664
2665 2012-03-08 Joel Brobecker <brobecker@adacore.com>
2666
2667 * server.c (process_point_options): If a conditional expression
2668 is found, only print a message if remote_debug is nonzero.
2669
2670 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
2671
2672 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
2673 of internal error for unknown/unsupported types.
2674
2675 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2676
2677 Fix CU relative vs. absolute DIE offsets.
2678 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
2679 offset to offset_in_cu.
2680 * dwarf2read.c (process_enumeration_scope): Add CU offset to
2681 TYPE_OFFSET.
2682 (dwarf2_fetch_die_location_block): Rename parameter offset to
2683 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
2684
2685 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2686
2687 * libunwind-frame.c: Rename to ...
2688 * ia64-libunwind-tdep.c: ... here.
2689 * libunwind-frame.h: Rename to ...
2690 * ia64-libunwind-tdep.h: ... here.
2691 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
2692 ia64-libunwind-tdep.h.
2693 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
2694 * README (--with-libunwind): Rename to ...
2695 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
2696 * config.in: Regenerate.
2697 * configure: Regenerate.
2698 * configure.ac: New option --with-libunwind-ia64, make the
2699 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
2700 Remove AC_DEFINE for HAVE_LIBUNWIND.
2701 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
2702 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
2703 Rename libunwind-frame in the general comment.
2704 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
2705 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
2706 Move forward declarations inside #ifndef. Rename libunwind-frame in
2707 the general comment.
2708 * ia64-tdep.c: Rename libunwind-frame.h #include to
2709 ia64-libunwind-tdep.h.
2710 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
2711 (ia64_libunwind_descr): Rename libunwind-frame to
2712 ia64-libunwind-tdep in these function comments.
2713 * ia64-tdep.h: Rename libunwind-frame.h #include to
2714 ia64-libunwind-tdep.h.
2715 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
2716 ia64-libunwind-tdep in that data comment.
2717
2718 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2719
2720 * libunwind-frame.h (struct frame_unwind): New declaration.
2721
2722 2012-03-08 Joel Brobecker <brobecker@adacore.com>
2723
2724 * breakpoint.c (_initialize_breakpoint): Fix error in help of
2725 "set breakpoint condition-evaluation" command.
2726
2727 2012-03-08 Tristan Gingold <gingold@adacore.com>
2728
2729 * sparc-stub.c: Move to stubs/
2730 * sh-stub.c: Likewise.
2731 * m68k-stub.c: Likewise.
2732 * m32r-stub.c: Likewise.
2733 * i386-stub.c: Likewise.
2734
2735 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
2736
2737 * m68klinux-tdep.c (m68k_linux_init_abi): Register
2738 linux_get_siginfo_type.
2739
2740 * m68klinux-nat.c: Include "gdb_proc_service.h".
2741 (PTRACE_GET_THREAD_AREA): Define.
2742 (ps_get_thread_area): New function.
2743
2744 2012-03-08 Yao Qi <yao@codesourcery.com>
2745
2746 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
2747 `xsnprintf'.
2748 (remote_query_attached): Likewise.
2749 (remote_static_tracepoint_marker_at): Likewise.
2750 (remote_set_permissions): Likewise.
2751 (remote_detach_1, extended_remote_attach_1): Likewise.
2752 (send_g_packet, remote_vkill): Likewise.
2753 (extended_remote_disable_randomization): Likewise.
2754 (remote_add_target_side_condition): Likewise.
2755 (remote_insert_breakpoint): Likewise.
2756 (remote_remove_breakpoint): Likewise.
2757 (remote_insert_watchpoint): Likewise.
2758 (remote_remove_watchpoint): Likewise.
2759 (remote_insert_hw_breakpoint): Likewise.
2760 (remote_insert_hw_breakpoint): Likewise.
2761 (remote_remove_hw_breakpoint): Likewise.
2762 (remote_download_command_source): Likewise.
2763 (remote_download_tracepoint): Likewise.
2764 (remote_download_trace_state_variable): Likewise.
2765 (remote_disable_tracepoint): Likewise.
2766 (remote_trace_set_readonly_regions): Likewise.
2767 (remote_get_tracepoint_status): Likewise.
2768 (remote_trace_find): Likewise.
2769 (remote_get_trace_state_variable_value): Likewise.
2770 (remote_set_disconnected_tracing): Likewise.
2771 (remote_set_circular_trace_buffer): Likewise.
2772 (remote_get_min_fast_tracepoint_insn_len): Likewise.
2773 (remote_use_agent): Likewise.
2774 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
2775 Update callers.
2776
2777 2012-03-07 Pedro Alves <palves@redhat.com>
2778
2779 * NEWS: Mention QProgramSignals.
2780 * inferior.h (update_signals_program_target): Declare.
2781 * infrun.c: (update_signals_program_target): New.
2782 (handle_command): Update the target of the new program signals
2783 array changes.
2784 * remote.c (PACKET_QProgramSignals): New enum.
2785 (last_program_signals_packet): New global.
2786 (remote_program_signals): New.
2787 (remote_start_remote): Update the target with the program signals
2788 list.
2789 (remote_protocol_features): Add entry for QPassSignals.
2790 (remote_open_1): Free anc clear last_program_signals_packet.
2791 (init_remote_ops): Install remote_program_signals.
2792 * target.c (update_current_target): Adjust.
2793 (target_program_signals): New.
2794 * target.h (struct target_ops) <to_program_signals>: New field.
2795 (target_program_signals): Declare.
2796
2797 2012-03-07 Pedro Alves <palves@redhat.com>
2798
2799 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
2800 extensions.
2801
2802 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
2803
2804 * m68klinux-nat.c (getregs_supplies): Make static.
2805 (getfpregs_supplies): Likewise.
2806 (have_ptrace_getregs): Likewise.
2807
2808 2012-03-06 Joel Brobecker <brobecker@adacore.com>
2809
2810 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
2811 in call to get_die_type_at_offset.
2812
2813 2012-03-06 Stan Shebs <stan@codesourcery.com>
2814
2815 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
2816 * mi/mi-cmd-disas.c: Ditto.
2817 * mi/mi-cmd-env.c: Ditto.
2818 * mi/mi-cmd-file.c: Ditto.
2819 * mi/mi-cmd-stack.c: Ditto.
2820 * mi/mi-cmd-target.c: Ditto.
2821 * mi/mi-cmd-var.c: Ditto.
2822 * mi/mi-cmds.c: Ditto.
2823 * mi/mi-cmds.h: Ditto.
2824 * mi/mi-console.c: Ditto.
2825 * mi/mi-getopt.c: Ditto.
2826 * mi/mi-getopt.h: Ditto.
2827 * mi/mi-interp.c: Ditto.
2828 * mi/mi-main.c: Ditto.
2829 * mi/mi-out.c: Ditto.
2830 * mi/mi-parse.c: Ditto.
2831 * mi/mi-parse.h: Ditto.
2832 * mi/mi-symbol-cmds.c: Ditto.
2833
2834 * mi/mi-getopt.h: Move mi_opt struct up.
2835 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
2836 return.
2837 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
2838
2839 2012-03-06 Tom Tromey <tromey@redhat.com>
2840
2841 * proc-service.c (ps_pglobal_lookup): Set the current program
2842 space.
2843
2844 2012-03-06 Pedro Alves <palves@redhat.com>
2845
2846 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
2847
2848 2012-03-05 Joel Brobecker <brobecker@adacore.com>
2849
2850 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
2851
2852 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2853
2854 Code cleanup.
2855 * common/linux-osdata.c (linux_common_core_of_thread): New function
2856 comment.
2857 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
2858 call by linux_common_core_of_thread.
2859 (linux_nat_core_of_thread_1): Remove.
2860 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
2861 * linux-thread-db.c: Include linux-osdata.h.
2862 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
2863 linux_common_core_of_thread.
2864
2865 2012-03-05 Tom Tromey <tromey@redhat.com>
2866
2867 * value.c (value_primitive_field): Don't fetch contents for
2868 non-virtual bases.
2869
2870 2012-03-05 Tom Tromey <tromey@redhat.com>
2871
2872 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
2873
2874 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
2875
2876 * s390-nat.c: Include "gregset.h".
2877
2878 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2879
2880 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
2881 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
2882 (libunwind_load): New variable so_error, use it for dlerror. Try to
2883 load also LIBUNWIND_SO_7.
2884
2885 2012-03-05 Pedro Alves <palves@redhat.com>
2886
2887 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
2888 is not NULL, and remove resulting dead code.
2889
2890 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
2891
2892 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
2893 prologue to sh_analyze_prologue.
2894 (sh_analyze_prologue): Make better use of such an upper limit, and
2895 generally be more cautious about accessing memory.
2896
2897 2012-03-05 Tom Tromey <tromey@redhat.com>
2898
2899 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
2900 _initialize_ia64_hpux_tdep.
2901
2902 2012-03-05 Pedro Alves <palves@redhat.com>
2903
2904 PR gdb/13766
2905
2906 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
2907 the register state is clear, supply explicit zero, instead of
2908 marking the register unavailable.
2909
2910 2012-03-05 Tristan Gingold <gingold@adacore.com>
2911
2912 * NEWS: Mention OpenVMS ia64 new target.
2913
2914 2012-03-05 Tristan Gingold <gingold@adacore.com>
2915
2916 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
2917 (ia64_unw_accessors, ia64_unw_rse_accessors)
2918 (ia64_libunwind_descr): Declare.
2919 * ia64-vms-tdep.c: New file.
2920 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
2921 (ia64_libunwind_descr): Make them public.
2922 * configure.tgt: Add ia64-*-*vms*.
2923 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
2924 (ALLDEPFILES): Add ia64-vms-tdep.c
2925
2926 2012-03-05 Tristan Gingold <gingold@adacore.com>
2927
2928 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
2929 * remote.c (PACKET_qXfer_uib): New enum value.
2930 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
2931 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
2932 (_initialize_remote): Call add_packet_config_cmd for
2933 xfer:uib packet.
2934
2935 2012-03-05 Tristan Gingold <gingold@adacore.com>
2936
2937 * osabi.c (gdb_osabi_names): Add OpenVMS.
2938 (generic_elf_osabi_sniffer): Likewise.
2939 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
2940
2941 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2942
2943 Removed unused code.
2944 * libunwind-frame.c (libunwind_frame_unwind)
2945 (libunwind_frame_base_address): Remove.
2946 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
2947
2948 2012-03-04 Yao Qi <yao@codesourcery.com>
2949
2950 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
2951 remove trailing new line.
2952 (agent_run_command, agent_run_command): Add _ markup.
2953 (agent_capability_check): Likewise.
2954
2955 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2956
2957 * breakpoint.c (set_condition_evaluation_mode): Set
2958 CONDITION_EVALUATION_MODE unconditionally.
2959
2960 2012-03-03 Yao Qi <yao@codesourcery.com>
2961
2962 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
2963 * common/agent.h: Update declaration.
2964 * inf-child.c (inf_child_use_agent): New.
2965 (inf_child_can_use_agent): New.
2966 (inf_child_target): Initialize fields `to_use_agent'
2967 and `to_can_use_agent'.
2968 * agent.c (agent_new_objfile): New.
2969 (_initialize_agent): Add agent_new_objfile to new_objfile
2970 observer.
2971
2972 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2973 New.
2974 (linux_target_install_ops): Initialize field
2975 `to_static_tracepoint_markers_by_strid'.
2976 * remote.c (free_current_marker): Move it to ...
2977 * tracepoint.c (free_current_marker): ... here. New.
2978 (cleanup_target_stop): New.
2979 * tracepoint.h: Declare free_current_marker.
2980 * NEWS: Add one entry about `info static-tracepoint-marker'.
2981
2982 2012-03-03 Yao Qi <yao@codesourcery.com>
2983
2984 * common/agent.c (agent_loaded_p): New.
2985 (agent_look_up_symbols): New global.
2986 * common/agent.h: Declare agent_loaded_p.
2987
2988 2012-03-03 Yao Qi <yao@codesourcery.com>
2989
2990 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
2991 (agent_capability_check, agent_capability_invalidate): New.
2992 (symbol_list): New array element.
2993 * common/agent.h (enum agent_capa): New.
2994 * target.c (target_pre_inferior): Call agent_capability_invalidate.
2995
2996 2012-03-03 Yao Qi <yao@codesourcery.com>
2997
2998 * target.h (struct target_ops) <to_use_agent>: New field.
2999 (struct target_ops) <to_can_use_agent>: New field.
3000 (target_use_agent, target_can_use_agent): New macro.
3001 * target.c (update_current_target): Update.
3002 * remote.c: New enum `PACKET_QAgent'.
3003 (remote_protocol_features): Add a new element.
3004 (remote_use_agent, remote_can_use_agent): New.
3005 (init_remote_ops): Initialize field `can_use_agent' with
3006 remote_can_use_agent. Intiailize field `use_agent' with
3007 remote_use_agent.
3008 * common/agent.c (use_agent): New global.
3009 * common/agent.h: Declare it.
3010 * tracepoint.c (info_static_tracepoint_markers_command): Add
3011 comment.
3012 * Makefile.in (SFILES): Add common/agent.c and agent.c.
3013 (COMMON_OBS): Add common/agent.o and agent.o
3014 (common-agent.o): New rule.
3015 * agent.c: New.
3016
3017 2012-03-03 Yao Qi <yao@codesourcery.com>
3018
3019 * common/agent.c: New.
3020 * common/agent.h: New.
3021 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
3022 AC_CHECK_HEADERS.
3023 * configure, configh.in: Regenerated.
3024
3025 2012-03-02 Kevin Buettner <kevinb@redhat.com>
3026
3027 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
3028 unless it exists for this architecture.
3029
3030 2012-03-02 Joel Brobecker <brobecker@adacore.com>
3031
3032 * language.h (struct language_defn): New "method" la_read_var_value.
3033 * findvar.c: #include "language.h".
3034 (default_read_var_value): Renames read_var_value. Rewrite
3035 function description.
3036 (read_var_value): New function.
3037 * value.h (default_read_var_value): Add prototype.
3038 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
3039 New functions.
3040 (ada_language_defn): Add entry for la_read_var_value.
3041 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
3042 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
3043 language_defn structures to add entry for new la_read_var_value
3044 field.
3045
3046 2012-03-02 Tom Tromey <tromey@redhat.com>
3047 Pedro Alves <palves@redhat.com>
3048
3049 PR breakpoints/13776:
3050 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
3051 breakpoints.
3052 (delete_longjmp_breakpoint_at_next_stop): New.
3053 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
3054 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
3055 before deleting the inferior. Add comments.
3056 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
3057 breakpoints immediately, but only on next stop. Move that code
3058 next to where we mark other breakpoints for deletion.
3059
3060 2012-03-02 Joel Brobecker <brobecker@adacore.com>
3061
3062 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
3063 marker.
3064 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
3065 violation.
3066
3067 2012-03-02 Pedro Alves <palves@redhat.com>
3068
3069 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
3070
3071 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
3072
3073 Fix -Wmissing-prototypes build.
3074 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
3075 * remote-sim.c (gdbsim_has_all_memory): Likewise.
3076 (gdbsim_has_memory): Likewise.
3077
3078 2012-03-02 Yao Qi <yao@codesourcery.com>
3079
3080 Fix -Wmissing-prototypes build.
3081 * charset.c (phony_iconv_open): Make static.
3082 (phony_iconv_close, phony_iconv): Likewise.
3083 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
3084 * i386-windows-nat.c (_initialize_i386_windows_nat): New
3085 prototype.
3086 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
3087 * ser-mingw.c (create_select_thread): Make static.
3088 * windows-termcap.c (tgetent): New prototype.
3089 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
3090
3091 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
3092
3093 Fix -Wmissing-prototypes build.
3094 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
3095 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
3096 (_initialize_loadable): New prototypes.
3097
3098 2012-03-02 Doug Evans <dje@google.com>
3099
3100 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
3101 abbrev table, read_comp_unit will do it.
3102
3103 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3104
3105 Fix -Wmissing-prototypes build.
3106 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
3107 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
3108 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
3109 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
3110 (_initialize_arm_symbian_tdep): New prototype.
3111 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
3112 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
3113 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
3114 static.
3115 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
3116 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
3117 prototype.
3118 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
3119 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
3120 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
3121 static.
3122 * moxie-tdep.c (moxie_process_record): Likewise.
3123 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
3124 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
3125 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
3126 (_initialize_rl78_tdep): New prototype.
3127 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
3128 (_initialize_rx_tdep): New prototype.
3129 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
3130 (_initialize_darwin_solib): New prototype.
3131 * solib-spu.c: Include solib-spu.h.
3132 (_initialize_spu_solib): New prototype.
3133 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
3134 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
3135 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
3136 (tic6x_software_single_step): Make it static.
3137 (_initialize_tic6x_tdep): New prototype.
3138
3139 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3140
3141 Fix -Wmissing-prototypes build.
3142 * cris-tdep.c (cris_can_use_hardware_watchpoint)
3143 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
3144
3145 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3146
3147 Fix -Wmissing-prototypes build.
3148 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
3149 (frv_have_stopped_data_address): Remove.
3150
3151 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3152
3153 Fix -Wmissing-prototypes build.
3154 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
3155 * sh-tdep.c: Include sh64-tdep.h.
3156 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
3157 * sh64-tdep.c: Include sh64-tdep.h.
3158 * sh64-tdep.h: New file.
3159
3160 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
3161
3162 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
3163
3164 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
3165
3166 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
3167 sp_regnum once the gdbarch_init_osabi hook has been called.
3168
3169 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
3170
3171 * mips-tdep.c (mips32_bc1_pc): New function.
3172 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
3173 BPOSGE32 and BPOSGE64 instructions.
3174 (deal_with_atomic_sequence): Likewise.
3175 (mips32_instruction_has_delay_slot): Likewise.
3176
3177 2012-03-01 Maciej W. Rozycki <macro@mips.com>
3178 Chris Dearman <chris@mips.com>
3179 Maciej W. Rozycki <macro@codesourcery.com>
3180 Joseph Myers <joseph@codesourcery.com>
3181
3182 * features/mips-dsp.xml: New file.
3183 * features/mips64-dsp.xml: New file.
3184 * features/mips-dsp-linux.xml: New file.
3185 * features/mips64-dsp-linux.xml: New file.
3186 * features/Makefile (WHICH): Add mips-dsp-linux and
3187 mips64-dsp-linux.
3188 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
3189 * features/mips-dsp-linux.c: New file.
3190 * features/mips64-dsp-linux.c: New file.
3191 * regformats/mips-dsp-linux.dat: New file.
3192 * regformats/mips64-dsp-linux.dat: New file.
3193 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
3194 registers.
3195 (mips64_linux_register_addr): Likewise.
3196 (mips64_linux_regsets_fetch_registers): Likewise.
3197 (mips64_linux_regsets_store_registers): Likewise.
3198 (mips64_linux_fetch_registers): Update call to
3199 mips64_linux_regsets_fetch_registers.
3200 (mips64_linux_store_registers): Update call to
3201 mips64_linux_regsets_store_registers.
3202 (mips_linux_read_description): Probe for DSP registers.
3203 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
3204 and initialize_tdesc_mips64_dsp_linux.
3205 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
3206 Remove padding of no longer used embedded register slots.
3207 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
3208 (MIPS_RESTART_REGNUM): Redefine enum value.
3209 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
3210 strings.
3211 (mips_tx39_reg_names): Likewise.
3212 (mips_linux_reg_names): New array of register names for Linux
3213 targets.
3214 (mips_register_name): Check for a null pointer in
3215 mips_processor_reg_names and return an empty string.
3216 (mips_register_type): Exclude embedded registers for the IRIX
3217 and Linux ABIs.
3218 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
3219 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
3220 DSP registers.
3221 (mips_stab_reg_to_regnum): Handle DSP accumulators.
3222 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
3223 (mips_gdbarch_init): Likewise. Initialize internal register
3224 indices for the Linux ABI. Use dynamic numbers to refer to
3225 registers, as applicable, while parsing the target description.
3226 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
3227
3228 2012-03-01 Joel Brobecker <brobecker@adacore.com>
3229
3230 * frame.h (read_frame_register_unsigned): Fix typo in function
3231 description.
3232
3233 2012-03-01 Pedro Alves <palves@redhat.com>
3234
3235 * jit-reader.in [!__cplusplus]
3236 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
3237
3238 2012-03-01 Pedro Alves <palves@redhat.com>
3239
3240 * configure.ac (build_warnings): Add -Wmissing-prototypes.
3241 * configure: Regenerate.
3242
3243 2012-03-01 Pedro Alves <palves@redhat.com>
3244
3245 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
3246 * breakpoint.c (create_exception_master_breakpoint, trace_command)
3247 (ftrace_command, strace_command): Make static.
3248 * d-lang.c (_initialize_d_language): Declare.
3249 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
3250 * dwarf2loc.c (_initialize_dwarf2loc):
3251 * dwarf2read.c (process_psymtab_comp_unit): Make static.
3252 * exec.c (exec_get_section_table): Make static.
3253 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
3254 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
3255 * inferior.c (remove_inferior_command, add_inferior_command)
3256 (clone_inferior_command): Make static.
3257 * linux-nat.c (linux_nat_thread_address_space)
3258 (linux_nat_core_of_thread): Make static.
3259 * linux-tdep.c (_initialize_linux_tdep): Declare.
3260 * objc-lang.c (_initialize_objc_lang): Declare.
3261 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
3262 Make static.
3263 (_initialize_opencl_language): Declare.
3264 * record.c (_initialize_record): Declare.
3265 * remote.c (demand_private_info, remote_get_tib_address)
3266 (remote_supports_cond_tracepoints)
3267 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
3268 Make static.
3269 * skip.c (_initialize_step_skip): Declare.
3270 * symtab.c (skip_prologue_using_lineinfo): Make static.
3271 * tracepoint.c (delete_trace_state_variable)
3272 (trace_variable_command, delete_trace_variable_command)
3273 (get_uploaded_tsv, find_matching_tracepoint_location)
3274 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
3275 Make static.
3276 * value.c (pack_unsigned_long): Make static.
3277 * varobj.c (varobj_ensure_python_env): Make static.
3278 * windows-tdep.c (_initialize_windows_tdep): Declare.
3279 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
3280
3281 2012-03-01 Pedro Alves <palves@redhat.com>
3282
3283 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
3284 gdbarch parameter.
3285 (linux_init_abi): Install it as has_shared_address_space gdbarch
3286 callback.
3287
3288 2012-03-01 Pedro Alves <palves@redhat.com>
3289
3290 * observer.c (observer_test_first_notification_function)
3291 (observer_test_second_notification_function)
3292 (observer_test_third_notification_function): Add declarations.
3293
3294 2012-03-01 Pedro Alves <palves@redhat.com>
3295
3296 * common/signals.c (default_target_signal_to_host)
3297 (default_target_signal_from_host): Move ...
3298 * arch-utils.c: ... here.
3299 * arch-utils.h (default_target_signal_to_host)
3300 (default_target_signal_from_host): Declare.
3301
3302 * common/signals.c (target_signal_from_command): Move ...
3303 * infrun.c: ... here.
3304 * inferior.h (target_signal_from_command): Declare.
3305 * target.h (target_signal_from_command)
3306 (default_target_signal_from_host, default_target_signal_to_host):
3307 Delete declarations.
3308
3309 * common/signals.c (_initialize_signals): Delete.
3310
3311 2012-03-01 Pedro Alves <palves@redhat.com>
3312
3313 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
3314 both __cplusplus and !__cplusplus.
3315
3316 2012-03-01 Pedro Alves <palves@redhat.com>
3317
3318 * psymtab.c (find_and_open_source): Delete declaration.
3319 * source.c (find_and_open_source): Move comment ...
3320 * source.h (find_and_open_source): ... to this new declaration.
3321
3322 2012-03-01 Pedro Alves <palves@redhat.com>
3323
3324 * inline-frame.c: Include inline-frame.h.
3325
3326 2012-03-01 Pedro Alves <palves@redhat.com>
3327
3328 * tui/tui-data.c (set_gen_win_origin): Delete.
3329 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
3330 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
3331
3332 2012-03-01 Pedro Alves <palves@redhat.com>
3333
3334 * remote.c (encode_actions): Delete declaration.
3335 * tracepoint.c (encode_actions): Make extern.
3336 * tracepoint.h (encode_actions): Declare.
3337
3338 2012-03-01 Pedro Alves <palves@redhat.com>
3339
3340 * python/py-breakpoint.c: Include python.h.
3341 * python/py-continueevent.c (create_continue_event_object): Make
3342 static.
3343 * python/py-lazy-string.c (stpy_get_type): Make static.
3344 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3345 Make static.
3346 * python/py-utils.c (unicode_to_target_python_string): Make
3347 static.
3348 * python/py-value.c: Include python.h.
3349
3350 2012-03-01 Pedro Alves <palves@redhat.com>
3351
3352 * inferior.c (delete_threads_of_inferior): Delete.
3353
3354 2012-03-01 Pedro Alves <palves@redhat.com>
3355
3356 Import fallback definitions from glibc.
3357
3358 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
3359 ps_prochandle): Forward declare.
3360 (ps_err_e): Use glibc's comments.
3361 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
3362 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
3363 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
3364 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
3365 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
3366 (struct ps_prochandle): Adjust comment.
3367
3368 2012-03-01 Pedro Alves <palves@redhat.com>
3369
3370 * ada-lang.c (ada_modulus_from_name): Delete.
3371 * ada-lex.l (lexer_init): Make static.
3372
3373 2012-03-01 Pedro Alves <palves@redhat.com>
3374
3375 PR gdb/13767
3376
3377 * frame.c (read_frame_register_unsigned): New.
3378 * frame.h (read_frame_register_unsigned): Declare.
3379 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
3380 Handle it.
3381 (print_i387_control_word): New parameter `control_p'. Handle it.
3382 (i387_print_float_info): Handle unavailable float registers.
3383
3384 2012-03-01 Keith Seitz <keiths@redhat.com>
3385
3386 * linespec.c (decode_line_2): Sort the list of methods
3387 alphabetically before presenting the user with a selection
3388 menu.
3389
3390 2012-03-01 Doug Evans <dje@google.com>
3391
3392 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
3393 has_namespace_info.
3394 (dwarf2_read_abbrevs): Remove corresponding initialization.
3395
3396 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
3397
3398 * NEWS: Mention new python command class gdb.COMMAND_USER.
3399 * cli/cli-cmds.c (show_user): Print error when used on a python
3400 command.
3401 (init_cli_cmds): Update documentation strings for "show user" and
3402 "set/show max-user-call-depth" to clarify that it does not apply to
3403 python commands.
3404 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
3405 error check.
3406 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
3407 gdb python api.
3408 * top.c (execute_command): Only execute a user-defined command as a
3409 legacy macro if c->user_commands is set.
3410
3411 2012-03-01 Tom Tromey <tromey@redhat.com>
3412
3413 * valprint.h (struct generic_val_print_decorations): New.
3414 (generic_val_print): Declare.
3415 * valprint.c (generic_val_print): New function.
3416 * p-valprint.c (p_decorations): New global.
3417 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
3418 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
3419 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
3420 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
3421 * m2-valprint.c (m2_decorations): New global.
3422 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
3423 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
3424 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
3425 TYPE_CODE_ERROR>: Call generic_val_print.
3426 * f-valprint.c (f_decorations): New global.
3427 (f_val_print): Use print_function_pointer_address.
3428 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
3429 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
3430 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
3431 generic_val_print.
3432 * c-valprint.c (c_decorations): New global.
3433 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
3434 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
3435 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
3436 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
3437 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
3438 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
3439 case.
3440
3441 2012-03-01 Tom Tromey <tromey@redhat.com>
3442
3443 * valprint.c (val_print): Update.
3444 * p-valprint (pascal_val_print): Return void.
3445 * p-lang.h (pascal_val_print): Return void.
3446 * m2-valprint.c (m2_val_print): Return void.
3447 * m2-lang.h (m2_val_print): Return void.
3448 * language.h (struct language_defn) <la_val_print>: Return void.
3449 * language.c (unk_lang_val_print): Return void.
3450 * jv-valprint.c (java_val_print): Return void.
3451 * jv-lang.h (java_val_print): Return void.
3452 * f-valprint.c (f_val_print): Return void.
3453 * f-lang.h (f_val_print): Return void.
3454 * d-valprint.c (d_val_print): Return void.
3455 (dynamic_array_type): Update.
3456 * d-lang.h (d_val_print): Return void.
3457 * c-valprint.c (c_val_print): Return void.
3458 * c-lang.h (c_val_print): Return void.
3459 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
3460 void.
3461 * ada-lang.h (ada_val_print): Return void.
3462
3463 2012-03-01 Tom Tromey <tromey@redhat.com>
3464
3465 * value.h (val_print): Return void.
3466 * valprint.c (val_print): Return void.
3467
3468 2012-03-01 Tom Tromey <tromey@redhat.com>
3469
3470 * value.h (common_val_print): Return void.
3471 * valprint.c (common_val_print): Return void.
3472
3473 2012-03-01 Tom Tromey <tromey@redhat.com>
3474
3475 * value.h (value_print): Return void.
3476 * valprint.c (value_print): Return void.
3477 * p-valprint.c (pascal_value_print): Return void.
3478 * p-lang.h (pascal_value_print): Return void.
3479 * language.h (struct language_defn) <la_value_print>: Return
3480 void.
3481 * language.c (unk_lang_value_print): Return void.
3482 * jv-valprint.c (java_value_print): Return void.
3483 * jv-lang.h (java_value_print): Return void.
3484 * f-valprint.c (c_value_print): Don't declare.
3485 Include c-lang.h.
3486 * c-valprint.c (c_value_print): Return void.
3487 * c-lang.h (c_value_print): Return void.
3488 * ada-valprint.c (ada_value_print): Return void.
3489 * ada-lang.h (ada_value_print): Return void.
3490
3491 2012-03-01 Tom Tromey <tromey@redhat.com>
3492
3493 * value.c (value_primitive_field): Handle virtual base classes.
3494
3495 2012-03-01 Tom Tromey <tromey@redhat.com>
3496
3497 * gdbtypes.h (struct vbase): Remove.
3498
3499 2012-03-01 Tom Tromey <tromey@redhat.com>
3500
3501 * c-valprint.c (print_function_pointer_address): Move...
3502 * valprint.c: ... here. Make non-static.
3503 * m2-valprint.c (print_function_pointer_address): Remove.
3504 * valprint.h (print_function_pointer_address): Declare.
3505
3506 2012-03-01 Joel Brobecker <brobecker@adacore.com>
3507
3508 * NEWS: Document the fact that one can provide a condition when
3509 creating an Ada exception catchpoint.
3510
3511 2012-03-01 Tom Tromey <tromey@redhat.com>
3512
3513 * valprint.c (val_print_type_code_flags): Fix placement of
3514 trailing brace.
3515
3516 2012-03-01 Joel Brobecker <brobecker@adacore.com>
3517
3518 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
3519 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
3520 environment variable before calling update-copyright.
3521
3522 2012-03-01 Joel Brobecker <brobecker@adacore.com>
3523
3524 * gnulib/extra/update-copyright: Update to the latest from
3525 gnulib's git repository.
3526 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
3527 variable to 2 instead of 1.
3528
3529 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3530
3531 * varobj.c (c_value_of_variable): Remove dead code.
3532
3533 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3534
3535 * ada-lex.p (processId): Do not modify already encoded IDs.
3536 Update function documentation.
3537
3538 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3539
3540 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
3541 "name" with "struct symbol *name_sym".
3542 * ada-exp.y (write_var_or_type): Update call to
3543 ada_find_renaming_symbol.
3544 "name" with "struct symbol *name_sym". Adjust Implementation
3545 accordingly. Adjust the function documentation.
3546
3547 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3548
3549 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
3550 * ada-lang.c (ada_find_any_type): Add advance declaration.
3551 Make static. Replace ada_find_any_symbol by
3552 ada_find_any_type_symbol.
3553 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
3554 Improve function description. Make static.
3555 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
3556 Replace ada_find_any_symbol by ada_find_any_type_symbol.
3557
3558 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3559
3560 * ada-lang.c (struct tag_args): Delete.
3561 (ada_get_tsd_type): Function body moved up in source file.
3562 (ada_tag_name_1, ada_tag_name_2): Delete.
3563 (ada_get_tsd_from_tag): New function.
3564 (ada_tag_name_from_tsd): New function.
3565 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
3566 to determine the tag name.
3567
3568 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3569
3570 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
3571 declaration.
3572 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
3573 function.
3574
3575 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3576
3577 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
3578
3579 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3580
3581 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
3582 full searches.
3583
3584 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3585
3586 * ada-lang.c (constrained_packed_array_type): If there is a
3587 parallel XA type, use it to determine the array index type.
3588
3589 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3590
3591 * ada-valprint.c (ada_val_print_1): If our value is a reference
3592 to an array descriptor, dereference it before converting it
3593 to a simple array.
3594
3595 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3596
3597 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
3598 creating fixed value.
3599 (ada_value_ind, ada_coerce_ref, assign_component)
3600 (ada_evaluate_subexp): Remove call to unwrap_value before
3601 call to ada_to_fixed_value.
3602
3603 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3604
3605 * ada-lang.c (to_fixed_array_type): Set result's type name.
3606
3607 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3608
3609 * ada-lang.c (catch_ada_exception_command_split): Add new
3610 argument cond_string. Add support for condition at end of
3611 "catch exception" commands.
3612 (ada_decode_exception_location): Add new argument cond_string.
3613 Update call to catch_ada_exception_command_split.
3614 (create_ada_exception_catchpoint): Add new argument cond_string.
3615 Set the breakpoint condition if needed.
3616 (catch_ada_exception_command): Update call to
3617 ada_decode_exception_location.
3618 (ada_decode_assert_location): Add function documentation.
3619 Add support for condition at end of "catch assert" command.
3620 (catch_assert_command): Update calls to ada_decode_assert_location
3621 and create_ada_exception_catchpoint.
3622
3623 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3624
3625 Fix disp-step-syscall.exp: fork: single step over fork.
3626 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
3627 (i386_linux_get_syscall_number_from_regcache): ... here, new function
3628 comment, change parameters gdbarch and ptid to regcache. Remove
3629 parameter regcache, initialize gdbarch from regcache here.
3630 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
3631 New functions.
3632 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
3633 instead.
3634 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
3635 'syscall'. Make the 'int' check more strict.
3636
3637 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3638
3639 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
3640 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
3641 (i386_linux_intx80_sysenter_syscall_record): ... here.
3642 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
3643 Use the renamed function name.
3644
3645 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3646
3647 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
3648 * breakpoint.c (until_break_command): Likewise.
3649 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
3650 * infcall.c (call_function_by_hand): Likewise.
3651 * infcmd.c (finish_forward): Likewise.
3652 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3653
3654 2012-02-28 Tristan Gingold <gingold@adacore.com>
3655
3656 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
3657 avoid variable assignments inside condition.
3658
3659 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3660
3661 Fix static analysis issue found by cppcheck.
3662 * microblaze-tdep.c (microblaze_extract_return_value): Fix
3663 uninitialized BUF for size 2.
3664
3665 2012-02-27 Chris Dearman <chris@mips.com>
3666 Nathan Froyd <froydnj@codesourcery.com>
3667 Maciej W. Rozycki <macro@codesourcery.com>
3668
3669 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
3670 (mips16_instruction_has_delay_slot): Likewise.
3671 (mips_segment_boundary): Likewise.
3672 (mips_adjust_breakpoint_address): Likewise.
3673 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
3674
3675 2012-02-27 Maciej W. Rozycki <macro@mips.com>
3676 Maciej W. Rozycki <macro@codesourcery.com>
3677
3678 * infrun.c (handle_inferior_event): Don't proceed through
3679 shared library trampolines if stepping at the machine
3680 instruction level.
3681
3682 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
3683
3684 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
3685 too.
3686
3687 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
3688
3689 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
3690 (sh_stub_unwind_sniffer): New functions.
3691 (sh_stub_unwind): New variable.
3692 (sh_gdbarch_init): Wire everything.
3693
3694 2012-02-27 Pedro Alves <palves@redhat.com>
3695
3696 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
3697 (linux_nat_post_attach_wait): Adjust to use
3698 linux_proc_pid_is_stopped.
3699 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
3700 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
3701 based on pid_is_stopped from both linux-nat.c and
3702 gdbserver/linux-low.c, and renamed.
3703
3704 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
3705
3706 * remote.c (remote_watchpoint_addr_within_range): New function.
3707 (init_remote_ops): Use it.
3708
3709 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
3710
3711 * target.h (target_watchpoint_addr_within_range): Document macro.
3712
3713 2012-02-24 Pedro Alves <palves@redhat.com>
3714
3715 * stack.c (set_last_displayed_sal): Issue internal_error instead
3716 of warning, and issue it after clearing the last displayed sal.
3717
3718 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3719 Pedro Alves <palves@redhat.com>
3720
3721 * breakpoint.c (until_break_command): Install breakpoints after
3722 all frame manipulations.
3723
3724 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
3725
3726 * remote.c (remote_supports_cond_breakpoints): New forward
3727 declaration.
3728 (remote_add_target_side_condition): New function.
3729 (remote_insert_breakpoint): Add target-side breakpoint
3730 conditional if supported.
3731 (remote_insert_hw_breakpoint): Likewise.
3732 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
3733 hook.
3734
3735 * target.c (update_current_target): Inherit
3736 to_supports_evaluation_of_breakpoint_conditions.
3737 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
3738
3739 * target.h (struct target_ops)
3740 <to_supports_evaluation_of_breakpoint_conditions>: New field.
3741 (target_supports_evaluation_of_breakpoint_conditions): New #define.
3742
3743 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
3744 (condition_evaluation_both, condition_evaluation_auto,
3745 condition_evaluation_host, condition_evaluation_target,
3746 condition_evaluation_enums, condition_evaluation_mode_1,
3747 condition_evaluation_mode): New static globals.
3748 (translate_condition_evaluation_mode): New function.
3749 (breakpoint_condition_evaluation_mode): New function.
3750 (gdb_evaluates_breakpoint_condition_p): New function.
3751 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
3752 (mark_breakpoint_modified): New function.
3753 (mark_breakpoint_location_modified): New function.
3754 (set_condition_evaluation_mode): New function.
3755 (show_condition_evaluation_mode): New function.
3756 (bp_location_compare_addrs): New function.
3757 (get_first_location_gte_addr): New helper function.
3758 (set_breakpoint_condition): Free condition bytecode if locations
3759 has become unconditional. Call mark_breakpoint_modified (...).
3760 (condition_command): Call update_global_location_list (1) for
3761 breakpoints.
3762 (breakpoint_xfer_memory): Use is_breakpoint (...).
3763 (is_breakpoint): New function.
3764 (parse_cond_to_aexpr): New function.
3765 (build_target_condition_list): New function.
3766 (insert_bp_location): Handle target-side conditional
3767 breakpoints and call build_target_condition_list (...).
3768 (update_inserted_breakpoint_locations): New function.
3769 (insert_breakpoint_locations): Handle target-side conditional
3770 breakpoints.
3771 (bpstat_check_breakpoint_conditions): Add comment.
3772 (bp_condition_evaluator): New function.
3773 (bp_location_condition_evaluator): New function.
3774 (print_breakpoint_location): Print information on where the condition
3775 will be evaluated.
3776 (print_one_breakpoint_location): Likewise.
3777 (init_bp_location): Call mark_breakpoint_location_modified (...) for
3778 breakpoint location.
3779 (force_breakpoint_reinsertion): New functions.
3780 (update_global_location_list): Handle target-side breakpoint
3781 conditions.
3782 Reinsert locations that are already inserted if conditions have
3783 changed.
3784 (bp_location_dtor): Free agent expression bytecode.
3785 (disable_breakpoint): Call mark_breakpoint_modified (...).
3786 Call update_global_location_list (...) with parameter 1 for breakpoints.
3787 (disable_command): Call mark_breakpoint_location_modified (...).
3788 Call update_global_location_list (...) with parameter 1 for breakpoints.
3789 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
3790 (enable_command): mark_breakpoint_location_modified (...).
3791 (_initialize_breakpoint): Update documentation and add
3792 condition-evaluation breakpoint subcommand.
3793
3794 * breakpoint.h: Include ax.h.
3795 (condition_list): New data structure.
3796 (condition_status): New enum.
3797 (bp_target_info) <cond_list>: New field.
3798 (bp_location) <condition_changed, cond_bytecode>: New fields.
3799 (is_breakpoint): New prototype.
3800
3801 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
3802
3803 * remote.c (remote_state) <cond_breakpoints>: New field.
3804 (PACKET_ConditionalBreakpoints): New enum.
3805 (remote_cond_breakpoint_feature): New function.
3806 (remote_protocol_features): Add new ConditionalBreakpoints entry.
3807 (remote_supports_cond_breakpoints): New function.
3808 (_initialize_remote): Add new packet configuration for
3809 target-side conditional breakpoints.
3810
3811 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
3812
3813 * NEWS: Mention target-side conditional breakpoint support,
3814 new condition-evaluation breakpoint subcommand and remote
3815 packet extensions.
3816
3817 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
3818
3819 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
3820 number.
3821
3822 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
3823
3824 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
3825 (after_prologue): Remove.
3826
3827 2012-02-23 Tom Tromey <tromey@redhat.com>
3828
3829 * jv-valprint.c (java_val_print): Remove dead code.
3830
3831 2012-02-23 Tristan Gingold <gingold@adacore.com>
3832
3833 * ada-tasks.c (struct ada_tasks_inferior_data): Add
3834 known_tasks_element and known_tasks_length fields.
3835 (read_known_tasks_array): Change argument type. Use pointer type
3836 and number of elements from DATA. Adjust.
3837 (read_known_tasks_list): Likewise.
3838 (get_known_tasks_addr): Remove.
3839 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
3840 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
3841 type and array length. Merge former get_known_tasks_addr code.
3842
3843 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3844
3845 PR backtrace/13716
3846 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
3847 it after set_momentary_breakpoint.
3848
3849 2012-02-22 Sterling Augustine <saugustine@google.com>
3850
3851 PR 13689:
3852 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
3853
3854 2012-02-22 Gary Benson <gbenson@redhat.com>
3855
3856 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
3857 (find_slot_in_mapped_hash): Likewise.
3858
3859 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3860
3861 PR build/13638
3862 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
3863 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
3864 * configure: Regenerate.
3865
3866 2012-02-21 Tristan Gingold <gingold@adacore.com>
3867 Pedro Alves <palves@redhat.com>
3868
3869 * ia64-tdep.c: Do not include libunwind-ia64.h.
3870 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
3871 Include libunwind-ia64.h instead of libunwind.h.
3872 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
3873 for libunwind.h existence.
3874 * configure, config.in: Regenerate.
3875
3876 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
3877
3878 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
3879 instead of value_rtti_target_type.
3880 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
3881 instead of value_rtti_target_type.
3882 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
3883 value_rtti_target_type.
3884 * valops.c (value_ind): Extract function readjust_indirect_value_type.
3885 (value_rtti_target_type): Rename to ...
3886 (value_rtti_indirect_type): ... here and make it indirect. Update
3887 function comment.
3888 * value.c (readjust_indirect_value_type): New function.
3889 (coerce_ref): Support for enclosing type setting for references
3890 with readjust_indirect_value_type.
3891 * value.h (readjust_value_type): New declaration.
3892 (value_rtti_target_type): Rename to ...
3893 (value_rtti_indirect_type): ... here.
3894
3895 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
3896
3897 * MAINTAINERS (Write After Approval): Add myself to the list.
3898
3899 2012-02-20 Doug Evans <dje@google.com>
3900
3901 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
3902 Rename objfile_p_char parameter to objfilep.
3903 (build_objfile_section_table): Result is now void. All callers
3904 updated.
3905 * objfiles.h (struct objfile): Tweak comments, whitespace.
3906 (build_objfile_section_table): Update.
3907
3908 * elfread.c (elf_symfile_segments): Fix warning text.
3909
3910 2012-02-20 Tom Tromey <tromey@redhat.com>
3911
3912 PR gdb/13498:
3913 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
3914 particular set of file names once.
3915 (dw2_map_symbol_filenames): Likewise.
3916
3917 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3918
3919 Code cleanup.
3920 * main.c (write_files): Remove the declaration.
3921 (external_editor_command): Move the declaration ...
3922 [GDBTK] (external_editor_command): ... here. Fix the comment.
3923
3924 2012-02-20 Tom Tromey <tromey@redhat.com>
3925
3926 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
3927 extraneous block.
3928
3929 2012-02-20 Tristan Gingold <gingold@adacore.com>
3930
3931 * darwin-nat.h (enum darwin_msg_state): Add comments.
3932
3933 2012-02-20 Tristan Gingold <gingold@adacore.com>
3934
3935 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
3936 value.
3937
3938 2012-20-18 Joel Brobecker <brobecker@adacore.com>
3939
3940 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
3941 between function description and implementation.
3942
3943 2012-02-17 Tom Tromey <tromey@redhat.com>
3944
3945 PR python/12070:
3946 * python/py-event.c (event_object_getset): New global.
3947 (event_object_type): Reference it.
3948 * python/py-type.c (field_object_getset): New global.
3949 (field_object_type): Reference it.
3950 * python/python-internal.h (gdb_py_generic_dict): Declare.
3951 * python/py-utils.c (gdb_py_generic_dict): New function.
3952
3953 2012-02-17 Tristan Gingold <gingold@adacore.com>
3954
3955 * solib-darwin.c (darwin_current_sos): Check magic and filetype
3956
3957 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
3958
3959 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
3960 TYPE_CALLING_CONVENTION annotation.
3961
3962 2012-02-16 Kevin Buettner <kevinb@redhat.com>
3963
3964 * MAINTAINERS: Add rx to target ISA section.
3965 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
3966 (ALLDEPFILES): Add rx-tdep.c.
3967
3968 2012-02-16 Tom Tromey <tromey@redhat.com>
3969
3970 * symfile.c (symbol_file_add_main_1): Use inferior's
3971 symfile_flags.
3972 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
3973 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
3974 inferior.
3975 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
3976 inferior.
3977 (follow_exec): Use inferior's symfile_flags.
3978 * inferior.h (struct inferior) <symfile_flags>: New field.
3979
3980 2012-02-16 Mike Frysinger <vapier@gentoo.org>
3981
3982 PR gdb/9734:
3983 * remote-sim.c (gdbsim_create_inferior): Call error() when
3984 sim_create_inferior() fails.
3985
3986 2012-02-16 Josh Matthews <josh@joshmatthews.net>
3987
3988 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
3989
3990 2012-02-16 Tom Tromey <tromey@redhat.com>
3991
3992 PR c++/13653:
3993 * thread.c (struct current_thread_cleanup) <was_removable>: New
3994 field.
3995 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
3996 (make_cleanup_restore_current_thread): Initialize new field.
3997
3998 2012-02-15 Kevin Buettner <kevinb@redhat.com>
3999
4000 * MAINTAINERS: Add rl78 to target ISA section.
4001 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
4002 (ALLDEPFILES): Add rl78-tdep.c.
4003 * NEWS: Mention rl78 as a new target.
4004
4005 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
4006
4007 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
4008 data.
4009 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
4010
4011 2012-02-15 Tom Tromey <tromey@redhat.com>
4012
4013 PR gdb/12659:
4014 * infcmd.c (registers_info): Print just the current register's
4015 name.
4016
4017 2012-02-15 Tom Tromey <tromey@redhat.com>
4018
4019 * python/py-symbol.c (sympy_value): Use _().
4020
4021 2012-02-15 Pedro Alves <palves@redhat.com>
4022
4023 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
4024 output to be like native targets'.
4025 (remote_pid_to_str): Special case the null ptid.
4026
4027 2012-02-14 Stan Shebs <stan@codesourcery.com>
4028
4029 * NEWS: Mention enable count command.
4030 * breakpoint.h (struct breakpoint): New field enable_count.
4031 * breakpoint.c (enable_breakpoint_disp): Add count argument.
4032 (enable_breakpoint): Add arg to call.
4033 (struct disp_data): New struct.
4034 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
4035 (do_map_enable_once_breakpoint): Create a struct and pass it.
4036 (do_map_enable_delete_breakpoint): Ditto.
4037 (do_map_enable_count_breakpoint): New function.
4038 (enable_count_command): New function.
4039 (bpstat_stop_status): Decrement enable_count.
4040 (print_one_breakpoint_location): Report enable count.
4041 (_initialize_breakpoint): Add enable count command.
4042
4043 2012-02-14 Kevin Buettner <kevinb@redhat.com>
4044
4045 * rl78-tdep.c (reggroups.h): Include.
4046 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
4047 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
4048 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
4049 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
4050 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
4051 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
4052 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
4053 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
4054 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
4055 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
4056 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
4057 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
4058 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
4059 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
4060 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
4061 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
4062 beginning of register list.
4063 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
4064 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
4065 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
4066 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
4067 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
4068 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
4069 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
4070 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
4071 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
4072 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
4073 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
4074 the pseudo registers. Rearrange other pseudo registers too so
4075 that the bank registers appear at the end.
4076 (rl78_register_type): Account for the fact that the byte sized
4077 bank registers are now pseudo-registers.
4078 (rl78_register_name): Rearrange the register name array. Make
4079 initial set of raw banked registers inaccessible.
4080 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
4081 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
4082 case for copying bytes back and forth between raw and pseudo
4083 versions of the banked registers. Update other cases to reflect
4084 the changed names.
4085 (rl78_return_value): Update to account for changed names of
4086 raw registers.
4087 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
4088 rl78_register_sim_regno().
4089
4090 2012-02-14 Kevin Buettner <kevinb@redhat.com>
4091
4092 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
4093 the name parameter being passed to find_pc_partial_function().
4094
4095 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4096
4097 * MAINTAINERS: Step down from being ia64 target maintainer.
4098
4099 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4100
4101 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
4102 compilation warning.
4103
4104 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4105
4106 Fix crash on loaded shlibs without loaded exec_bfd.
4107 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
4108 (set_section_command): Replace exec_bfd by p->bfd.
4109
4110 2012-02-10 Tom Tromey <tromey@redhat.com>
4111
4112 * linespec.c (decode_line_internal): Skip symtabs_from_filename
4113 when we have a C++ qualified name.
4114
4115 2012-02-10 Pedro Alves <palves@redhat.com>
4116
4117 * inferior.c (inferior_pid_to_str): New.
4118 (print_inferior, inferior_command): Use it.
4119
4120 2012-02-10 Pedro Alves <palves@redhat.com>
4121
4122 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
4123 the test CFLAGS.
4124 * configure: Regenerate.
4125
4126 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4127
4128 * linespec.c (decode_line_internal): Fix comment correctness.
4129
4130 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
4131
4132 PR gdb/12953
4133 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
4134 * amd64bsd-nat.c: Add support for debug registers (adapted from
4135 i386bsd-nat.c).
4136 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
4137 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
4138 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
4139 (amd64bsd_dr_get_control): New functions.
4140 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
4141 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
4142 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
4143 watchpoints initialization.
4144 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
4145
4146 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4147
4148 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
4149 flds_bnds.fields.
4150 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
4151
4152 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4153
4154 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
4155
4156 2012-02-08 Joel Brobecker <brobecker@adacore.com>
4157
4158 * language.h (symbol_name_cmp_ftype): Renames
4159 symbol_name_match_p_ftype.
4160 (struct language_defn)[la_get_symbol_name_cmp]: Renames
4161 la_get_symbol_name_match_p.
4162 * ada-lang.c (ada_get_symbol_name_cmp): Renames
4163 ada_get_symbol_name_match_p. Update comment.
4164 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
4165 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
4166 Renames symbol_name_match_p. Update field type.
4167 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
4168 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
4169 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
4170 "la_get_symbol_name_cmp" in comments.
4171 * language.c: Likewise.
4172
4173 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4174
4175 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
4176 %eflags offset.
4177 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
4178 (amd64_sol2_gregset32_reg_offs): Likewise.
4179
4180 2012-02-08 Joel Brobecker <brobecker@adacore.com>
4181
4182 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
4183 of the returned BFD is allocated by GDB.
4184
4185 2012-02-07 Tom Tromey <tromey@redhat.com>
4186
4187 PR python/12027:
4188 * python/python-internal.h (frame_object_type): Declare.
4189 * python/py-symbol.c (sympy_needs_frame): New function.
4190 (sympy_value): New function.
4191 (symbol_object_getset): Add "needs_frame".
4192 (symbol_object_methods): Add "value".
4193 * python/py-frame.c (frame_object_type): No longer static.
4194
4195 2012-02-07 Tom Tromey <tromey@redhat.com>
4196
4197 PR python/13599:
4198 * python/py-symbol.c (sympy_line): New function.
4199 (symbol_object_getset): Add "line".
4200
4201 2012-02-07 Tom Tromey <tromey@redhat.com>
4202
4203 * charset.c (find_charset_names): Check 'in' against NULL.
4204
4205 2012-02-06 Doug Evans <dje@google.com>
4206
4207 * gdbtypes.h (struct main_type): Change type of name,tag_name,
4208 and fields.name members from char * to const char *. All uses updated.
4209 (struct cplus_struct_type): Change type of fn_fieldlists.name member
4210 from char * to const char *. All uses updated.
4211 (type_name_no_tag): Update.
4212 (lookup_unsigned_typename, lookup_signed_typename): Update.
4213 * gdbtypes.c (type_name_no_tag): Change result type
4214 from char * to const char *. All callers updated.
4215 (lookup_unsigned_typename, lookup_signed_typename): Change type of
4216 name parameter from char * to const char *.
4217 * symtab.h (struct cplus_specific): Change type of demangled_name
4218 member from char * to const char *. All uses updated.
4219 (struct general_symbol_info): Change type of name and
4220 mangled_lang.demangled_name members from char * to const char *.
4221 All uses updated.
4222 (symbol_get_demangled_name, symbol_natural_name): Update.
4223 (symbol_demangled_name, symbol_search_name): Update.
4224 * symtab.c (symbol_get_demangled_name): Change result type
4225 from char * to const char *. All callers updated.
4226 (symbol_natural_name, symbol_demangled_name): Ditto.
4227 (symbol_search_name): Ditto.
4228 (completion_list_add_name): Change type of symname,sym_text,
4229 text,word parameters from char * to const char *.
4230 (completion_list_objc_symbol): Change type of sym_text,
4231 text,word parameters from char * to const char *.
4232 * ada-lang.c (find_struct_field): Change type of name parameter
4233 from char * to const char *.
4234 (encoded_ordered_before): Similarly for N0,N1 parameters.
4235 (old_renaming_is_invisible): Similarly for function_name parameter.
4236 (ada_type_name): Change result type from char * to const char *.
4237 All callers updated.
4238 * ada-lang.h (ada_type_name): Update.
4239 * buildsym.c (hashname): Change type of name parameter
4240 from char * to const char *.
4241 * buildsym.h (hashname): Update.
4242 * dbxread.c (end_psymtab): Change type of include_list parameter
4243 from char ** to const char **.
4244 * dwarf2read.c (determine_prefix): Change result type
4245 from char * to const char *. All callers updated.
4246 * f-lang.c (find_common_for_function): Change type of name, funcname
4247 parameters from char * to const char *.
4248 * f-lang.c (find_common_for_function): Update.
4249 * f-valprint.c (list_all_visible_commons): Change type of funcname
4250 parameters from char * to const char *.
4251 * gdbarch.sh (static_transform_name): Change type of name parameter
4252 and result from char * to const char *.
4253 * gdbarch.c: Regenerate.
4254 * gdbarch.h: Regenerate.
4255 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
4256 of name parameter from char * to const char *.
4257 * jv-lang.c (java_primitive_type_from_name): Ditto.
4258 (java_demangled_signature_length): Similarly for signature parameter.
4259 (java_demangled_signature_copy): Ditto.
4260 (java_demangle_type_signature): Ditto.
4261 * jv-lang.h (java_primitive_type_from_name): Update.
4262 (java_demangle_type_signature): Update.
4263 * objc-lang.c (specialcmp): Change type of a,b parameters
4264 from char * to const char *.
4265 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
4266 from char * to const char *. All callers updated.
4267 * p-lang.h (is_pascal_string_type): Update.
4268 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
4269 of name parameter from char * to const char *.
4270 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
4271 * utils.c (fprintf_symbol_filtered): Ditto.
4272 * defs.h (fprintf_symbol_filtered): Update.
4273 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
4274 * stabsread.h (end_psymtab): Update.
4275 * stack.c (find_frame_funname): Change type of funname parameter
4276 from char ** to const char **.
4277 * stack.h (find_frame_funname): Update.
4278 * typeprint.c (type_print): Change type of varstring parameter
4279 from char * to const char *.
4280 * value.h (type_print): Update.
4281 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
4282 from char * to const char *. All callers updated.
4283 (xcoff_end_psymtab): Change type of include_list parameter
4284 from char ** to const char **. All callers updated.
4285 (swap_sym): Similarly for name parameter. All callers updated.
4286 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
4287 Use xstrdup.
4288 (process_coff_symbol): Use xstrdup.
4289 * stabsread.c (stabs_method_name_from_physname): Renamed from
4290 update_method_name_from_physname. Change result type from void
4291 to char *. All callers updated.
4292 (read_member_functions): In has_destructor case, store name in objfile
4293 obstack instead of malloc space. In !has_stub case, fix mem leak.
4294
4295 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
4296
4297 * configure: Rebuild.
4298 * configure.ac: Put -L../bfd and -L../libiberty at the front of
4299 LDFLAGS.
4300
4301 2012-02-03 Kevin Buettner <kevinb@redhat.com>
4302
4303 * configure.tgt (rl78-*-elf): New target.
4304 * rl78-tdep.c: New file.
4305
4306 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4307
4308 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
4309 and continue the loop. Add QUIT statement.
4310
4311 2012-02-03 Tom Tromey <tromey@redhat.com>
4312
4313 PR gdb/13596:
4314 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
4315 bfd_lookup_symbol_from_symtab.
4316 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
4317 gdb_bfd_lookup_symbol_from_symtab.
4318
4319 2012-02-03 Joel Brobecker <brobecker@adacore.com>
4320
4321 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
4322 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
4323 symbol. Add assertion that sym2 is never NULL.
4324
4325 2012-02-02 Doug Evans <dje@google.com>
4326
4327 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
4328 "name" parameter to const char ** from char **. All callers updated.
4329 (find_pc_partial_function): Ditto.
4330 (cache_pc_function_name): Change type to const char * from char *.
4331 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
4332 (find_pc_partial_function): Update.
4333 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
4334 type of "name" parameter to const char * from char *.
4335 All uses updated.
4336 * arch-utils.c (generic_in_solib_return_trampoline): Change
4337 type of "name" parameter to const char * from char *.
4338 * arch-utils.h (generic_in_solib_return_trampoline): Update.
4339 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
4340 type of "name" parameter to const char * from char *.
4341 * gdbarch.sh (in_solib_return_trampoline): Ditto.
4342 * gdbarch.c: Regenerate.
4343 * gdbarch.h: Regenerate.
4344 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
4345 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
4346 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
4347 type of "name" parameter to const char * from char *.
4348 * skip.c (skip_function_pc): Ditto.
4349 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
4350 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
4351 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
4352 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
4353 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
4354 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
4355 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
4356 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
4357 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
4358
4359 2012-02-02 Pedro Alves <palves@redhat.com>
4360
4361 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
4362 the current inferior has no execution. Make sure the current
4363 remote process matches gdb's current inferior.
4364
4365 2012-02-02 Tom Tromey <tromey@redhat.com>
4366
4367 PR gdb/13405:
4368 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
4369 read-only memory.
4370
4371 2012-02-02 Tom Tromey <tromey@redhat.com>
4372
4373 PR gdb/9307:
4374 * symtab.c (lookup_language_this): Set block_found.
4375
4376 2012-02-01 Tom Tromey <tromey@redhat.com>
4377
4378 PR gdb/13431:
4379 * jit.c (struct jit_inferior_data): Rewrite.
4380 (struct jit_objfile_data): New.
4381 (get_jit_objfile_data): New function.
4382 (add_objfile_entry): Update.
4383 (jit_read_descriptor): Return int. Replace descriptor_addr
4384 argument with inf_data. Update. Don't call error.
4385 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
4386 descriptor here.
4387 (jit_inferior_init): Don't look up descriptor. Don't call error.
4388 (jit_reset_inferior_data_and_breakpoints)
4389 (jit_inferior_created_observer): Remove.
4390 (jit_inferior_exit_hook): Update.
4391 (jit_executable_changed_observer): Remove.
4392 (jit_event_handler): Update.
4393 (free_objfile_data): Reset inferior data if needed.
4394 (_initialize_jit): Update.
4395
4396 2012-02-01 Tom Tromey <tromey@redhat.com>
4397
4398 * jit.c (bfd_open_from_target_memory): Move higher in file.
4399
4400 2012-02-01 Tristan Gingold <gingold@adacore.com>
4401
4402 * libunwind-frame.c (libunwind_load): Display message if dlopen
4403 failed.
4404
4405 2012-02-01 Gary Benson <gbenson@redhat.com>
4406
4407 * symtab.h (symbol_found_callback_ftype): New typedef.
4408 (iterate_over_symbols): Use the above.
4409 * symtab.c (iterate_over_symbols): Likewise.
4410 * language.h (language_defn->la_iterate_over_symbols): Likewise.
4411 * ada-lang.c (ada_iterate_over_symbols): Likewise.
4412 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
4413 (iterate_name_matcher): Document return values.
4414 (collect_one_symbol): Likewise.
4415 (collect_function_symbols): Likewise.
4416 (collect_symbols): Likewise.
4417
4418 2012-02-01 Tom Tromey <tromey@redhat.com>
4419
4420 * ada-lang.c (resolve_subexp): Update.
4421 (ada_lookup_symbol_list): Add 'full_search' argument.
4422 (ada_iterate_over_symbols): Pass 0 as full_search argument to
4423 ada_lookup_symbol_list.
4424 (ada_lookup_encoded_symbol): Update.
4425 (get_var_value): Update.
4426 * ada-exp.y (block_lookup): Update.
4427 (write_var_or_type): Update.
4428 (write_name_assoc): Update.
4429 * ada-lang.h (ada_lookup_symbol_list): Update.
4430
4431 2012-01-31 Tom Tromey <tromey@redhat.com>
4432
4433 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
4434 comment.
4435
4436 2012-01-31 Doug Evans <dje@google.com>
4437
4438 * symtab.h: Remove outdated comment.
4439 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
4440
4441 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
4442
4443 Fix build error in Darwin port.
4444 * i386-darwin-nat.c: Include i386-nat.h.
4445
4446 2012-01-30 Tom Tromey <tromey@redhat.com>
4447
4448 PR breakpoints/13568:
4449 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
4450 argument. Check for recursive includes.
4451 (dwarf_decode_macros): Create an include hash.
4452
4453 2012-01-30 Michael Eager <eager@eagercon.com>
4454
4455 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
4456 * ppc-linux-tdep.c: Include glibc-tdep.h.
4457 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
4458 (powerpc_linux_in_plt_stub): New function.
4459 (powerpc_linux_in_dynsym_resolve_code): New function.
4460 (ppc_skip_trampoline_code): New function.
4461 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
4462 Use glibc_skip_solib_resolver.
4463
4464 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4465
4466 Code cleanup: Make 1440 bytes of data segment read-only.
4467 * arch-utils.c (endian_enum): Make it const char *const [].
4468 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
4469 Likewise.
4470 * breakpoint.c (always_inserted_enums): Likewise.
4471 * cli/cli-cmds.c (script_ext_enums): Likewise.
4472 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
4473 enumlist parameter const char *const *.
4474 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
4475 const char *const *.
4476 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
4477 parameter const char *const *.
4478 * cris-tdep.c (cris_modes): Make it const char *const [].
4479 * filesystem.c (target_file_system_kinds): Likewise.
4480 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
4481 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
4482 (can_use_displaced_stepping_enum, scheduler_enums)
4483 (exec_direction_names): Likewise.
4484 * language.c (_initialize_language): Make the type_or_range_names and
4485 case_sensitive_names variables const char *const [].
4486 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
4487 * python/python.c (python_excp_enums): Likewise.
4488 * remote.c (interrupt_sequence_modes): Likewise.
4489 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
4490 * serial.c (logbase_enums): Likewise.
4491 * sh-tdep.c (sh_cc_enum): Likewise.
4492 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
4493 Likewise.
4494 * symtab.c (multiple_symbols_modes): Likewise.
4495 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
4496 Likewise.
4497 * utils.c (internal_problem_modes): Likewise.
4498
4499 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4500
4501 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
4502 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
4503 result.
4504
4505 2012-01-27 Doug Evans <dje@google.com>
4506
4507 * configure.ac (with_python): Fix absolute path handling for win32.
4508 * configure: Regenerate.
4509
4510 2012-01-26 Doug Evans <dje@google.com>
4511
4512 * symtab.c: Whitespace cleanup, no code changes.
4513
4514 * symtab.c (lookup_symbol_in_language): Improve comment.
4515 (lookup_symbol_aux): Fix comment.
4516
4517 * psymtab.c (add_psymbol_to_list): Result is now "void".
4518 * psympriv.h (add_psymbol_to_list): Update.
4519
4520 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
4521
4522 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4523
4524 Do not open script filenames twice.
4525 * cli/cli-cmds.c (source_script_from_stream): Pass to
4526 source_python_script also STREAM.
4527 * python/py-auto-load.c (source_section_scripts): Pass to
4528 source_python_script_for_objfile also STREAM.
4529 (auto_load_objfile_script): Pass to source_python_script_for_objfile
4530 also INPUT.
4531 * python/python-internal.h (source_python_script_for_objfile): New
4532 parameter file, rename parameter file to filename.
4533 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
4534 instead if !_WIN32. Update the function comment.
4535 (source_python_script, source_python_script_for_objfile)
4536 (source_python_script): New parameter file, rename parameter file to
4537 filename. Pass FILENAME to python_run_simple_file.
4538 * python/python.h (source_python_script): New parameter file, rename
4539 parameter file to filename.
4540
4541 2012-01-26 Pedro Alves <palves@redhat.com>
4542
4543 * corelow.c (core_has_fake_pid): Delete.
4544 (core_close): Delete references to `core_has_fake_pid'.
4545 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
4546 (core_open): Delete references to `core_has_fake_pid'.
4547 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
4548 the removed global.
4549
4550 2012-01-26 Joel Brobecker <brobecker@adacore.com>
4551
4552 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
4553 Remove language parameter from name_matcher. Adjust the comment.
4554 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
4555 Remove language parameter.
4556 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
4557 * linespec.c (iterate_name_matcher): Likewise.
4558 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
4559 name_matcher. Adjust call accordingly.
4560 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
4561 (maintenance_check_symtabs): Adjust type of parameter "fun".
4562 * psymtab.h (maintenance_check_symtabs): Likewise.
4563
4564 2012-01-26 Joel Brobecker <brobecker@adacore.com>
4565
4566 * language.h (symbol_name_match_p_ftype): New typedef.
4567 (struct language_defn): Replace field la_symbol_name_compare
4568 by la_get_symbol_name_match_p.
4569 * ada-lang.c (ada_get_symbol_name_match_p): New function.
4570 (ada_language_defn): Use it.
4571 * linespec.c (struct symbol_matcher_data): New type.
4572 (iterate_name_matcher): Rewrite.
4573 (iterate_over_all_matching_symtabs): Pass a pointer to
4574 a symbol_matcher_data struct to expand_symtabs_matching
4575 instead of just the lookup name.
4576 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
4577 opencl-lang.c, p-lang.c, language.c: Delete field
4578 la_symbol_name_compare, and replace by NULL for new field
4579 la_get_symbol_name_match_p.
4580 * symfile.h (struct quick_symbol_functions): Update comment.
4581
4582 2012-01-25 Tom Tromey <tromey@redhat.com>
4583
4584 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
4585 dereferencing.
4586
4587 2012-01-24 Tom Tromey <tromey@redhat.com>
4588
4589 PR symtab/12406:
4590 * solib.c (update_solib_list): Update the program space's
4591 added_solibs and deleted_solibs fields.
4592 * progspace.h (struct program_space) <added_solibs,
4593 deleted_solibs>: New fields.
4594 (clear_program_space_solib_cache): Declare.
4595 * progspace.c (release_program_space): Call
4596 clear_program_space_solib_cache.
4597 (clear_program_space_solib_cache): New function.
4598 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
4599 bpstat_stop_status. Use handle_solib_event.
4600 * breakpoint.c: Include gdb_regex.h.
4601 (print_solib_event): New function.
4602 (bpstat_print): Use print_solib_event.
4603 (bpstat_stop_status): Add special case for bp_shlib_event.
4604 (handle_solib_event): New function.
4605 (bpstat_what): Use handle_solib_event.
4606 (struct solib_catchpoint): New.
4607 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
4608 (breakpoint_hit_catch_solib, check_status_catch_solib)
4609 (print_it_catch_solib, print_one_catch_solib)
4610 (print_mention_catch_solib, print_recreate_catch_solib): New
4611 functions.
4612 (catch_solib_breakpoint_ops): New global.
4613 (catch_load_or_unload, catch_load_command_1)
4614 (catch_unload_command_1): New functions.
4615 (internal_bkpt_check_status): Add special case for
4616 bp_shlib_event.
4617 (internal_bkpt_print_it): Use print_solib_event.
4618 (initialize_breakpoint_ops): Initialize
4619 catch_solib_breakpoint_ops.
4620 (_initialize_breakpoint): Register "catch load" and "catch
4621 unload".
4622 * breakpoint.h (handle_solib_event): Declare.
4623 * NEWS: Add entry for "catch load" and "catch unload".
4624
4625 2012-01-24 Tom Tromey <tromey@redhat.com>
4626
4627 * ada-lang.c: Include gdb_vecs.h.
4628 * charset.c: Include gdb_vecs.h.
4629 * tracepoint.h: Include gdb_vecs.h.
4630 * gdb_vecs.h: New file.
4631
4632 2012-01-24 Pedro Alves <pedro@codesourcery.com>
4633
4634 * breakpoint.c (breakpoint_hit_catch_fork)
4635 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
4636 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
4637 * infrun.c (inferior_has_forked, inferior_has_vforked)
4638 (inferior_has_execd, inferior_has_called_syscall): Delete.
4639 (handle_syscall_event): Get syscall_number from the execution
4640 control state's wait status.
4641 (wait_for_inferior): Don't clear syscall_number.
4642
4643 2012-01-24 Pedro Alves <palves@redhat.com>
4644
4645 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
4646 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
4647 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
4648 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
4649 `ws' parameter.
4650 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
4651 false for events other than TARGET_SIGNAL_TRAP.
4652 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
4653 Add `ws' parameter.
4654 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
4655 events other than TARGET_SIGNAL_TRAP.
4656 (tracepoint_breakpoint_hit): Add `ws' parameter.
4657 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
4658 parameter.
4659 (bpstat_stop_status): Same.
4660 (pc_at_non_inline_function): Same.
4661 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
4662 to pass the current event's waitstatus to bpstat_stop_status
4663 and pc_at_non_inline_function.
4664
4665 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4666
4667 Code cleanup.
4668 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
4669 Update the function comment for it.
4670 (source_script_with_search): Call make_cleanup_fclose for STREAM.
4671 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
4672 for STREAM.
4673
4674 2012-01-24 Pedro Alves <palves@redhat.com>
4675
4676 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
4677 outside `bs->stop' block.
4678 (bpstat_what): Rework bp_shlib_event handling.
4679 (internal_bkpt_check_status): If the breakpoint is a
4680 bp_shlib_event, then set bs->stop and bs->print if
4681 stop_on_solib_events is set.
4682
4683 2012-01-24 Gary Benson <gbenson@redhat.com>
4684
4685 Delete #if 0'd out code.
4686 * stack.c (print_frame_label_vars): Remove.
4687 (catch_info): Likewise.
4688 (_initialize_stack): Remove "info catch" command.
4689 * NEWS: Mention the above.
4690
4691 2012-01-24 Pedro Alves <palves@redhat.com>
4692
4693 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
4694 it.
4695 (remote_notice_new_inferior): If the remote end doesn't support
4696 the multiprocess extensions, then the PID is fake.
4697 (add_current_inferior_and_thread): New.
4698 (remote_start_remote): Use it.
4699 (extended_remote_attach_1): Adjust.
4700 (extended_remote_create_inferior_1): Use
4701 add_current_inferior_and_thread.
4702
4703 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4704
4705 Fix watchpoints to be specific for each inferior.
4706 * breakpoint.c (watchpoint_in_thread_scope): Verify also
4707 current_program_space.
4708 * i386-nat.c (i386_inferior_data_cleanup): New.
4709 (i386_inferior_data_get): Replace variable inf_data_local by an
4710 inferior_data call.
4711 (i386_use_watchpoints): Initialize i386_inferior_data.
4712 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
4713 specific iterate_over_lwps.
4714
4715 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4716
4717 Fix watchpoints across inferior fork.
4718 * amd64-linux-nat.c (update_debug_registers_callback): Update the
4719 comment for linux_nat_iterate_watchpoint_lwps.
4720 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
4721 linux_nat_iterate_watchpoint_lwps.
4722 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
4723 * i386-linux-nat.c (update_debug_registers_callback): Update the
4724 comment for linux_nat_iterate_watchpoint_lwps.
4725 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
4726 linux_nat_iterate_watchpoint_lwps.
4727 (i386_linux_prepare_to_resume): New comment on Linux kernel.
4728 * i386-nat.c: Include inferior.h.
4729 (dr_mirror): Remove.
4730 (i386_inferior_data, struct i386_inferior_data)
4731 (i386_inferior_data_get): New.
4732 (i386_debug_reg_state): Use i386_inferior_data_get.
4733 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
4734 (i386_insert_watchpoint, i386_remove_watchpoint)
4735 (i386_stopped_data_address, i386_insert_hw_breakpoint)
4736 (i386_remove_hw_breakpoint): New variable state, use
4737 i386_debug_reg_state instead of DR_MIRROR.
4738 * linux-nat.c (delete_lwp): New declaration.
4739 (num_lwps): Move here from downwards.
4740 (delete_lwp_cleanup): New.
4741 (linux_child_follow_fork): Create new child_lp, call
4742 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
4743 PTRACE_DETACH.
4744 (num_lwps): Move upwards.
4745 (linux_nat_iterate_watchpoint_lwps): New.
4746 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
4747 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
4748
4749 2012-01-24 Joel Brobecker <brobecker@adacore.com>
4750
4751 GDB 7.4 released.
4752
4753 2012-01-23 Pedro Alves <palves@redhat.com>
4754
4755 * top.c (caution): Rename to ...
4756 (confirm): ... this.
4757 (show_caution): Rename to ...
4758 (show_confirm): ... this.
4759 (quit_cover): Adjust.
4760 (init_main): Adjust.
4761 * top.h (caution): Rename to ...
4762 (confirm): ... this.
4763 * utils.c (internal_vproblem, defaulted_query): Adjust.
4764
4765 2012-01-23 Pedro Alves <palves@redhat.com>
4766
4767 * top.c (caution): Update comment.
4768 (execute_command): Don't consider the current value of `caution'.
4769
4770 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4771
4772 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
4773
4774 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
4775
4776 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
4777 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
4778 * target.c (target_fileio_pwrite): Remove buffer address from
4779 debug output.
4780 (target_fileio_pread): Likewise.
4781
4782 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4783
4784 * NEWS: Document remote "info proc" and "generate-core-file".
4785
4786 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4787
4788 * gdbarch.sh (find_memory_regions): New callback.
4789 * gdbarch.c, gdbarch.h: Regenerate.
4790
4791 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
4792 callback before falling back to target method.
4793
4794 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
4795 (linux_target_install_ops): No longer install it.
4796
4797 * linux-tdep.c (linux_find_memory_regions): New function.
4798 (linux_init_abi): Install it.
4799
4800 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4801
4802 * gdbarch.sh (make_corefile_notes): New architecture callback.
4803 * gdbarch.c: Regenerate.
4804 * gdbarch.h: Likewise.
4805
4806 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
4807 before target_make_corefile_notes. If NULL is returned, the
4808 target does not support core file generation.
4809
4810 * linux-nat.c: Include "linux-tdep.h".
4811 (find_signalled_thread, find_stop_signal): Remove.
4812 (linux_nat_do_thread_registers): Likewise.
4813 (struct linux_nat_corefile_thread_data): Likewise.
4814 (linux_nat_corefile_thread_callback): Likewise.
4815 (iterate_over_spus): Likewise.
4816 (struct linux_spu_corefile_data): Likewise.
4817 (linux_spu_corefile_callback): Likewise.
4818 (linux_spu_make_corefile_notes): Likewise.
4819 (linux_nat_collect_thread_registers): New function.
4820 (linux_nat_make_corefile_notes): Replace contents by call to
4821 linux_make_corefile_notes passing linux_nat_collect_thread_registers
4822 as native-only callback.
4823
4824 * linux-tdep.h: Include "bfd.h".
4825 (struct regcache): Add forward declaration.
4826 (linux_collect_thread_registers_ftype): New typedef.
4827 (linux_make_corefile_notes): Add prototype.
4828 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
4829 "regset.h", and "elf-bfd.h".
4830 (find_signalled_thread, find_stop_signal): New functions.
4831 (linux_spu_make_corefile_notes): Likewise.
4832 (linux_collect_thread_registers): Likewise.
4833 (struct linux_corefile_thread_data): New data structure.
4834 (linux_corefile_thread_callback): New funcion.
4835 (linux_make_corefile_notes): Likewise.
4836 (linux_make_corefile_notes_1): Likewise.
4837 (linux_init_abi): Install it.
4838
4839 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4840
4841 * gdbarch.sh (info_proc): New callback.
4842 * gdbarch.c, gdbarch.h: Regenerate.
4843
4844 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
4845 before falling back to the target info_proc callback.
4846
4847 * linux-nat.c: Do not include "cli/cli-utils.h".
4848 (linux_nat_info_proc): Remove.
4849 (linux_target_install_ops): No longer install it.
4850
4851 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
4852 (read_mapping): New function.
4853 (linux_info_proc): Likewise.
4854 (linux_init_abi): Install it.
4855
4856 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4857
4858 * defs.h (enum info_proc_what): Moved here from linux-nat.c
4859 * infcmd.c: (info_proc_cmd_1): New function.
4860 (info_proc_cmd): New function, moved here from equivalent routine
4861 orignally in linux-nat.c.
4862 (info_proc_cmd_mappings): Likewise.
4863 (info_proc_cmd_stat): Likewise.
4864 (info_proc_cmd_status): Likewise.
4865 (info_proc_cmd_cwd): Likewise.
4866 (info_proc_cmd_cmdline): Likewise.
4867 (info_proc_cmd_exe): Likewise.
4868 (info_proc_cmd_all): Likewise.
4869 (_initialize_infcmd): Install "info proc" command and subcommands.
4870
4871 * target.h (struct target_ops): Add to_info_proc.
4872 (target_info_proc): Add prototype.
4873 * target.c (target_info_proc): New function.
4874
4875 * procfs.c (procfs_info_proc): Add prototype.
4876 (info_proc_cmd): Rename into ...
4877 (procfs_info_proc): ... this. Update argument types as appropriate
4878 for a to_info_proc implementation. Handle "what" argument.
4879 (procfs_target): Install procfs_info_proc.
4880 (_initialize_procfs): No longer install "info proc" command.
4881
4882 * linux-nat.c: (enum info_proc_what): Remove.
4883 (linux_nat_info_proc_cmd_1): Rename into ...
4884 (linux_nat_info_proc): ... this. Update argument types as appropriate
4885 for a to_info_proc implementation.
4886 (linux_nat_info_proc_cmd): Remove.
4887 (linux_nat_info_proc_cmd_mappings): Likewise.
4888 (linux_nat_info_proc_cmd_stat): Likewise.
4889 (linux_nat_info_proc_cmd_status): Likewise.
4890 (linux_nat_info_proc_cmd_cwd): Likewise.
4891 (linux_nat_info_proc_cmd_cmdline): Likewise.
4892 (linux_nat_info_proc_cmd_exe): Likewise.
4893 (linux_nat_info_proc_cmd_all): Likewise.
4894 (linux_target_install_ops): Install linux_nat_info_proc.
4895 (_initialize_linux_nat): No longer install "info proc" command
4896 and subcommands.
4897
4898 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4899
4900 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
4901 * config.in, configure: Regenerate.
4902
4903 * target.h (struct target_ops): Add to_fileio_readlink.
4904 (target_fileio_readlink): Add prototype.
4905 * target.c (target_fileio_readlink): New function.
4906
4907 * inf-child.c: Conditionally include <sys/param.h>.
4908 (inf_child_fileio_readlink): New function.
4909 (inf_child_target): Install it.
4910
4911 * remote.c (PACKET_vFile_readlink): New enum value.
4912 (remote_hostio_readlink): New function.
4913 (init_remote_ops): Install it.
4914 (_initialize_remote): Handle vFile:readlink packet type.
4915
4916 2012-01-20 Pedro Alves <palves@redhat.com>
4917 Ulrich Weigand <ulrich.weigand@linaro.org>
4918
4919 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
4920 * config.in, configure: Regenerate.
4921
4922 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
4923 to_fileio_pread, to_fileio_close, to_fileio_unlink.
4924 (target_fileio_open): Add prototype.
4925 (target_fileio_pwrite): Likewise.
4926 (target_fileio_pread): Likewise.
4927 (target_fileio_close): Likewise.
4928 (target_fileio_unlink): Likewise.
4929 (target_fileio_read_alloc): Likewise.
4930 (target_fileio_read_stralloc): Likewise.
4931
4932 * target.c: Include "gdb/fileio.h".
4933 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
4934 (default_fileio_target): New function.
4935 (target_fileio_open): Likewise.
4936 (target_fileio_pwrite): Likewise.
4937 (target_fileio_pread): Likewise.
4938 (target_fileio_close): Likewise.
4939 (target_fileio_unlink): Likewise.
4940 (target_fileio_close_cleanup): Likewise.
4941 (target_fileio_read_alloc_1): Likewise.
4942 (target_fileio_read_alloc): Likewise.
4943 (target_fileio_read_stralloc): Likewise.
4944
4945 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
4946 <fcntl.h>, and <unistd.h>.
4947 (inf_child_fileio_open_flags_to_host): New function.
4948 (inf_child_errno_to_fileio_error): Likewise.
4949 (inf_child_fileio_open): Likewise.
4950 (inf_child_fileio_pwrite): Likewise.
4951 (inf_child_fileio_pread): Likewise.
4952 (inf_child_fileio_close): Likewise.
4953 (inf_child_fileio_unlink): Likewise.
4954 (inf_child_target): Install to_fileio routines.
4955
4956 * remote.c (init_remote_ops): Install to_fileio routines.
4957
4958 2012-01-20 Pedro Alves <palves@redhat.com>
4959 Ulrich Weigand <ulrich.weigand@linaro.org>
4960
4961 * remote.c (remote_multi_process_p): Only check for multi-process
4962 protocol feature, do not check for extended protocol.
4963 (remote_supports_multi_process): Check for extended protocol here.
4964 (set_general_process): Likewise.
4965 (extended_remote_kill): Likewise.
4966 (remote_pid_to_str): Likewise.
4967 (remote_query_supported): Always query multiprocess mode.
4968
4969 2012-01-20 Pedro Alves <palves@redhat.com>
4970 Ulrich Weigand <ulrich.weigand@linaro.org>
4971
4972 * inferior.h (struct inferior): Add fake_pid_p.
4973 * inferior.c (exit_inferior_1): Clear fake_pid_p.
4974 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
4975 magic_null_ptid since the remote side doesn't provide a real PID.
4976
4977 2012-01-19 Tom Tromey <tromey@redhat.com>
4978
4979 * NEWS: Combine the two Python sections.
4980
4981 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4982
4983 * target.h (target_close): Update comment on the target's unpush state.
4984
4985 2012-01-19 Pedro Alves <palves@redhat.com>
4986
4987 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
4988 linux_nat_async directly instead of going through the target
4989 vector.
4990 * target.c (unpush_target): Close target after unpushing it, not
4991 before.
4992
4993 2012-01-19 Gary Benson <gbenson@redhat.com>
4994
4995 * mdebugread.c (sort_blocks): Replace integer constants with ones
4996 derived from FIRST_LOCAL_BLOCK.
4997
4998 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
4999 Jan Kratochvil <jan.kratochvil@redhat.com>
5000
5001 PR gdb/9538
5002 * symfile.c (find_separate_debug_file): New function.
5003 (terminate_after_last_dir_separator): Likewise.
5004 (find_separate_debug_file_by_debuglink): Also try realpath.
5005 * configure.ac (AC_CHECK_FUNCS): Add lstat.
5006 * configure: Regenerate.
5007 * config.in: Regenerate.
5008
5009 2012-01-18 Doug Evans <dje@google.com>
5010
5011 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
5012 (main.o): Remove rule.
5013 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
5014 (--with-sysroot): Rewrite.
5015 * configure: Regenerate.
5016 * config.in: Regenerate.
5017
5018 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
5019
5020 * parse.c (initialize_expout): New function.
5021 (reallocate_expout): Likewise.
5022 (parse_exp_in_context): Use `initialize_expout' and
5023 `reallocate_expout' when appropriate.
5024
5025 2012-01-18 Pedro Alves <palves@redhat.com>
5026
5027 * record.c (struct record_breakpoint, record_breakpoint_p)
5028 (record_breakpoints): New.
5029 (record_insert_breakpoint, record_remove_breakpoint): Manage
5030 record breakpoints list. Only remove breakpoints from the
5031 inferior if they had been inserted there in the first place.
5032
5033 2012-01-17 Doug Evans <dje@google.com>
5034
5035 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
5036 if we know we don't have a file name to look for.
5037
5038 2012-01-17 Pedro Alves <palves@redhat.com>
5039
5040 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
5041 the frame's stop reason is UNWIND_UNAVAILABLE.
5042
5043 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5044
5045 Fix compilation error.
5046 * m2-exp.y (yyerror): Use ANSI C prototype.
5047
5048 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
5049
5050 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
5051 (growbuf_by_size): Likewise.
5052 (yyerror): Likewise.
5053 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
5054 (modblock): Remove variable (was #if 0'ed).
5055 (parse_number): Convert prototype from K&R to ANSI C.
5056 (yyerror): Likewise.
5057 * objc-exp.y (parse_number): Likewise.
5058 (yyerror): Likewise.
5059 (yylex): Remove #if 0'ed code.
5060 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
5061 (yyerror): Likewise.
5062
5063 2012-01-16 Tom Tromey <tromey@redhat.com>
5064
5065 * NEWS: Add item.
5066 * symtab.h (compare_filenames_for_search): Declare.
5067 * symtab.c (compare_filenames_for_search): New function.
5068 (iterate_over_some_symtabs): Use it.
5069 * symfile.h (struct quick_symbol_functions)
5070 <map_symtabs_matching_filename>: Change spec.
5071 * psymtab.c (partial_map_symtabs_matching_filename): Use
5072 compare_filenames_for_search. Update for new spec.
5073 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
5074 compare_filenames_for_search. Update for new spec.
5075 * breakpoint.c (clear_command): Use compare_filenames_for_search.
5076
5077 2012-01-16 Tom Tromey <tromey@redhat.com>
5078
5079 PR python/13281:
5080 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
5081 (struct main_type) <flag_flag_enum>: New field.
5082 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
5083 * NEWS: Add entries.
5084 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
5085 enums.
5086 * python/lib/gdb/printing.py (_EnumInstance): New class.
5087 (FlagEnumerationPrinter): Likewise.
5088
5089 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
5090
5091 * breakpoint.c (create_sals_from_address_default): New function.
5092 (create_breakpoints_sal_default): Likewise.
5093 (decode_linespec_default): Likewise.
5094 (is_marker_spec): Removed.
5095 (strace_marker_p): New function.
5096 (init_breakpoint_sal): Using `strace_marker_p' instead of
5097 `is_marker_spec'.
5098 (create_breakpoint): Call method `create_sals_from_address' from
5099 breakpoint_ops, replacing code that created SALs conditionally
5100 on the type of the breakpoint. Call method `create_breakpoints_sal',
5101 replacing code that created breakpoints conditionally on the type
5102 wanted.
5103 (base_breakpoint_create_sals_from_address): New function.
5104 (base_breakpoint_create_breakpoints_sal): Likewise.
5105 (base_breakpoint_decode_linespec): Likewise.
5106 (base_breakpoint_ops): Add methods
5107 `base_breakpoint_create_sals_from_address',
5108 `base_breakpoint_create_breakpoints_sal' and
5109 `base_breakpoint_decode_linespec'.
5110 (bkpt_create_sals_from_address): New function.
5111 (bkpt_create_breakpoints_sal): Likewise.
5112 (bkpt_decode_linespec): Likewise.
5113 (tracepoint_create_sals_from_address): Likewise.
5114 (tracepoint_create_breakpoints_sal): Likewise.
5115 (tracepoint_decode_linespec): Likewise.
5116 (strace_marker_create_sals_from_address): Likewise.
5117 (strace_marker_create_breakpoints_sal): Likewise.
5118 (strace_marker_decode_linespec): Likewise.
5119 (strace_marker_breakpoint_ops): New variable.
5120 (addr_string_to_sals): Remove `marker_spec'. Call method
5121 `decode_linespec' from breakpoint_ops, replacing code that decoded
5122 an address string into a SAL. Use `strace_marker_p' instead of
5123 `marker_spec'.
5124 (strace_command): Decide whether we are dealing with a static
5125 tracepoint with marker or not. Use the appropriate breakpoint_ops.
5126 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
5127 * breakpoint.h (linespec_result, linespec_sals): New forward
5128 declarations.
5129 (breakpoint_ops) <create_sals_from_address>,
5130 <create_breakpoints_sal>, <decode_linespec>: New methods.
5131
5132 2012-01-14 Doug Evans <dje@google.com>
5133
5134 * NEWS: Update text for "maint set python print-stack".
5135 It is deprecated in gdb 7.4 and deleted in 7.5.
5136
5137 2012-01-13 Eli Zaretskii <eliz@gnu.org>
5138
5139 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
5140 including curses.h.
5141
5142 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5143
5144 * configure: Regenerate.
5145 * config.in: Regenerate.
5146
5147 2012-01-12 Keith Seitz <keiths@redhat.com>
5148
5149 PR mi/10586
5150 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
5151 (ANONYMOUS_UNION_NAME): Define.
5152 (is_path_expr_parent): New function.
5153 (get_path_expr_parent): New function.
5154 (is_anonymous_child): New function.
5155 (create_child_with_value): If the child is anonymous and without
5156 a name, assign an object name to it.
5157 (c_describe_child): Use get_path_expr_parent to determine
5158 the parent expression.
5159 If there field represents an anonymous struct or union and
5160 has no name, set an appropriate display name and expression.
5161 (cplus_describe_child): Likewise.
5162
5163 2012-01-12 Pedro Alves <palves@redhat.com>
5164
5165 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
5166 available when %ebp is found to be zero (outermost).
5167
5168 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
5169
5170 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
5171 an internal gdb_static_assert.
5172 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
5173
5174 2012-01-11 Tom Tromey <tromey@redhat.com>
5175
5176 PR gdb/9598:
5177 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
5178 catch" and "catch throw".
5179
5180 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
5181
5182 * blockframe.c (block_innermost_frame): Start search from selected
5183 frame, if present, or otherwise the current frame.
5184
5185 * c-exp.y (variable): Update innermost_block for
5186 'block COLONCOLON NAME' clause.
5187 * m2-exp.y (variable): Ditto.
5188 * objc-exp.y (variable): Ditto.
5189
5190 2012-01-10 Tom Tromey <tromey@redhat.com>
5191
5192 PR python/13199:
5193 * python/python.c (finish_python_initialization): Set sys.argv.
5194
5195 2012-01-10 Doug Evans <dje@google.com>
5196
5197 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
5198 "want_line_info". All callers updated.
5199 (dwarf_decode_lines_1): New function.
5200 (handle_DW_AT_stmt_list): Add function comment.
5201 New arg "want_line_info". All callers updated.
5202 (read_file_scope,read_type_unit_scope): Move comment from
5203 handle_DW_AT_stmt_list to here.
5204
5205 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5206
5207 Fix regression after libiberty/ update for GCC PR 6057 and others.
5208 * c-exp.y (operator) <OPERATOR DELETE>
5209 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
5210 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
5211 (make_builtin_type, make_name): New variable i, add gdb_assert.
5212 (operator) <OPERATOR NEW>: Update ARGS to 3.
5213 (operator) <OPERATOR DELETE>: Add trailing space.
5214 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
5215 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
5216 * cp-support.c (cp_canonicalize_string): Check NULL from
5217 cp_comp_to_string, call warning and return.
5218
5219 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5220
5221 Fix duplicate .o files after omitting libbfd.a.
5222 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
5223 (SFILES): Add corelow.c.
5224 (COMMON_OBS): Add corelow.o.
5225 (ALLDEPFILES): Remove corelow.c.
5226 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
5227 * config/alpha/alpha-osf3.mh: Likewise.
5228 * config/alpha/fbsd.mh: Likewise.
5229 * config/arm/nbsdaout.mh: Likewise.
5230 * config/arm/nbsdelf.mh: Likewise.
5231 * config/i386/i386gnu.mh: Likewise.
5232 * config/ia64/hpux.mh: Likewise.
5233 * config/ia64/linux.mh: Likewise.
5234 * config/m32r/linux.mh: Likewise.
5235 * config/m68k/linux.mh: Likewise.
5236 * config/mips/irix5.mh: Likewise.
5237 * config/mips/irix6.mh: Likewise.
5238 * config/pa/hpux.mh: Likewise.
5239 * config/pa/linux.mh: Likewise.
5240 * config/powerpc/aix.mh: Likewise.
5241 * config/sparc/linux.mh: Likewise.
5242 * config/sparc/linux64.mh: Likewise.
5243 * config/sparc/sol2.mh: Likewise.
5244 * config/vax/vax.mh: Likewise.
5245 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
5246 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
5247 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
5248 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
5249 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
5250 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
5251 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
5252 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
5253 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
5254 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
5255 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
5256 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
5257 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
5258 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
5259 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
5260 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
5261 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
5262 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
5263 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
5264 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
5265 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
5266 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
5267 corelow.o from gdb_target_obs.
5268 * corefile.c (core_target): Update the comment on NULL value.
5269 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
5270 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
5271 MATCHES. Drop YUMMY set on NULL.
5272 (core_close): Do not call exit_inferior_silent on zero PID. Do not
5273 reclaim CORE_DATA if it is already NULL.
5274
5275 2012-01-09 Doug Evans <dje@google.com>
5276
5277 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
5278 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
5279
5280 2012-01-09 Keith Seitz <keiths@redhat.com>
5281
5282 * breakpoint.c (wrapper.h): Don't include.
5283
5284 2012-01-09 Keith Seitz <keiths@redhat.com>
5285
5286 * Makefile.in (SFILES): Remove wrapper.c.
5287 (HFILES_NO_SRCDIR): Remove wrapper.h.
5288 (COMMON_OBS): Remove wrapper.o.
5289 * cli/cli-interp.c: Don't inlude wrapper.h.
5290 * corelow.c: Likewise.
5291 (core_open): Replace gdb_target_find_new_threads with
5292 TRY_CATCH around target_find_new_threads.
5293 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
5294 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
5295 * varobj.c (varobj_create): Likewise for parse_exp_1 and
5296 evaluate_expression.
5297 (varobj_set_value): Likewise for evaluate_expression and
5298 value_assign.
5299 (install_new_variable): Likewise for value_fetch_lazy.
5300 (adjust_value_for_child_access): Likewise for value_ind.
5301 (c_describe_child): Likewise for value_subscript and
5302 value_ind.
5303 (c_value_of_root): Likewise for evaluate_expression.
5304 * wrapper.c: Remove.
5305 * wrapper.h: Remove.
5306
5307 2012-01-09 Doug Evans <dje@google.com>
5308
5309 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
5310 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
5311 "abfd" args with "section". All callers updated.
5312 Error checking code moved ...
5313 (error_check_comp_unit_head): ... here. New function.
5314 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
5315 Delete arg "abfd". New arg "type_offset". All callers updated.
5316 (create_debug_types_hash_table): Simplify by using
5317 read_and_check_type_unit_head.
5318
5319 * parser-defs.h (namecopy): Delete.
5320 * parse.c (namecopy, namecopy_size): Move into copy_name.
5321
5322 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5323
5324 Partially fix duplicate .o files after omitting libbfd.a.
5325 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
5326 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
5327 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
5328 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
5329 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
5330 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
5331 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
5332
5333 2012-01-09 Pedro Alves <palves@redhat.com>
5334
5335 * MAINTAINERS: Update my email address.
5336
5337 2012-01-08 Doug Evans <dje@google.com>
5338
5339 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
5340 n_type_units. Rename type_comp_units to all_type_units.
5341 All uses updated.
5342 (add_signatured_type_cu_to_table): Renamed from
5343 add_signatured_type_cu_to_list. All callers updated.
5344
5345 * gdbtypes.h (struct cplus_struct_type): Delete member
5346 nfn_fields_total. All uses removed.
5347
5348 2012-01-06 Doug Evans <dje@google.com>
5349
5350 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
5351 to top of file.
5352 (dwarf2_find_comp_unit): Delete.
5353 (process_psymtab_comp_unit): Make result "void".
5354 Delete args buffer, info_ptr, buffer_size, and replace with
5355 "section". All callers updated.
5356 (dwarf2_build_psymtabs_hard): Simplify.
5357
5358 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
5359 Thiago Jung Bauermann <bauerman@br.ibm.com>
5360
5361 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
5362 before `struct gdb_exception'.
5363 * breakpoint.c (update_global_location_list_nothrow)
5364 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
5365 * cp-abi.c (value_rtti_type): Likewise.
5366 * cp-support.c (cp_validate_operator): Likewise.
5367 * infrun.c (insert_exception_resume_breakpoint)
5368 (check_exception_resume, keep_going): Likewise.
5369 * mi-interp.c (mi_breakpoint_created)
5370 (mi_breakpoint_modified): Likewise.
5371 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
5372 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
5373 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
5374
5375 2012-01-05 Doug Evans <dje@google.com>
5376
5377 * dwarf2read.c (statement_prologue): Delete, unused.
5378
5379 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
5380 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
5381
5382 * dwarf2read.c (comp_unit_header): Delete, unused.
5383
5384 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
5385
5386 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
5387 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
5388
5389 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
5390
5391 * infrun.c (normal_stop): Don't skip calling the normal_stop
5392 observers if the thread was doing a multi-step, but stopped for
5393 some reason other than stepping.
5394
5395 2012-01-05 Pedro Alves <alves.ped@gmail.com>
5396
5397 * cli/cli-decode.h: Add comments.
5398 (CMD_LIST_AMBIGUOUS): Moved to command.h
5399 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5400 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
5401 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
5402 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
5403 (add_com, add_com_alias, add_info, add_info_alias)
5404 (complete_on_cmdlist, complete_on_enum, help_list): Remove
5405 declarations.
5406 * command.h: Add and adjust comments.
5407 (CMD_LIST_AMBIGUOUS): Moved here.
5408 (help_cmd, help_cmd_list): Delete declarations.
5409
5410 2012-01-04 Doug Evans <dje@google.com>
5411
5412 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
5413 All callers updated.
5414 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
5415 Replace all arguments with "per_cu". All callers updated.
5416
5417 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
5418
5419 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
5420 New arg "per_cu". All callers updated.
5421
5422 Delete #if 0'd out code.
5423 * language.c (binop_result_type): Delete.
5424 (simple_type, ordered_type, same_type, integral_type): Delete.
5425 (numeric_type, character_type, string_type, boolean_type): Delete.
5426 (float_type, structured_type): Delete.
5427 * language.h: Update.
5428
5429 2012-01-04 Tom Tromey <tromey@redhat.com>
5430
5431 * python/py-value.c (valpy_binop): Initialize 'res_val'.
5432
5433 2012-01-04 Joel Brobecker <brobecker@adacore.com>
5434
5435 * corefile.c (close_exec_file): Delete.
5436 (reopen_exec_file): Remove commented out code that seems related
5437 to close_exec_file, which is being deleted here.
5438 * inferior.h (close_exec_file): Delete.
5439 * fork-child.c (fork_inferior): Remove call to fork_inferior.
5440
5441 2012-01-04 Joel Brobecker <brobecker@adacore.com>
5442
5443 * ada-lang.c: #include "cli/cli-utils.h".
5444 (get_selections): Use skip_spaces.
5445 (ada_get_next_arg): Use skip_spaces and skip_to_space.
5446 (catch_ada_exception_command_split): Use skip_spaces.
5447 (ada_decode_assert_location): Likewise.
5448
5449 2012-01-04 Joel Brobecker <brobecker@adacore.com>
5450
5451 * linespec.c (decode_line_internal): Check for C++ or Java
5452 compound constructs only if the current language is C, C++
5453 or Java.
5454
5455 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5456
5457 Revert:
5458 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5459 Joel Brobecker <brobecker@adacore.com>
5460 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
5461 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
5462 3 times.
5463 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
5464 fall through into AT_ENTRY_POINT.
5465 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
5466 DUMMY_ADDR with it.
5467 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
5468 PPC_INSN_SIZE skip to 3 times.
5469
5470 2012-01-04 Joel Brobecker <brobecker@adacore.com>
5471
5472 * linespec.c (add_minsym): Preserve function descriptors.
5473
5474 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
5475
5476 * breakpoint.c (all_locations_are_pending): Consider locations
5477 in program spaces executing during startup pending as well.
5478
5479 2012-01-04 Joel Brobecker <brobecker@adacore.com>
5480
5481 Copyright year update in most files of the GDB Project.
5482
5483 2012-01-04 Joel Brobecker <brobecker@adacore.com>
5484
5485 * copyright.sh: Delete.
5486 * copyright.py: Rewrite.
5487
5488 2012-01-04 Joel Brobecker <brobecker@adacore.com>
5489
5490 * gnulib/extra/update-copyright: New file, imported from gnulib.
5491
5492 2012-01-04 Joel Brobecker <brobecker@adacore.com>
5493
5494 * README (Copyright and License Notices): New section.
5495
5496 2012-01-03 Tom Tromey <tromey@redhat.com>
5497
5498 PR python/12533:
5499 * python/py-value.c (valpy_dereference, valpy_get_address
5500 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
5501 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
5502 (valpy_absolute, valpy_richcompare): Free intermediate values.
5503
5504 2011-01-03 Joel Brobecker <brobecker@adacore.com>
5505
5506 * ada-lang.c: Reformat the copyright notice.
5507
5508 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5509
5510 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
5511 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
5512 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
5513 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
5514 Revert this part of:
5515 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5516 Build gdb directly from *.o files not using libgdb.a.
5517 * Makefile.in (COMMON_OBS): Remove solib-target.o.
5518
5519 2012-01-02 Joel Brobecker <brobecker@adacore.com>
5520
5521 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
5522 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
5523 Reformat the copyright header.
5524
5525 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5526
5527 Revert this part of:
5528 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5529 Remove the gdbtui binary.
5530 * gdb.c (main): Remove args.interpreter_p initialization.
5531 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
5532 * main.h (struct captured_main_args): Remove interpreter_p.
5533
5534 2012-01-02 Joel Brobecker <brobecker@adacore.com>
5535
5536 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
5537
5538 2012-01-02 Joel Brobecker <brobecker@adacore.com>
5539
5540 * top.c (print_gdb_version): Update copyright year.
5541
5542 2012-01-02 Yao Qi <yao@codesourcery.com>
5543
5544 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
5545
5546 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5547 Joel Brobecker <brobecker@adacore.com>
5548
5549 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
5550 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
5551 3 times.
5552 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
5553 fall through into AT_ENTRY_POINT.
5554 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
5555 DUMMY_ADDR with it.
5556 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
5557 PPC_INSN_SIZE skip to 3 times.
5558
5559 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5560
5561 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
5562 the return value.
5563 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
5564
5565 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5566
5567 Build gdb directly from *.o files not using libgdb.a.
5568 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
5569 (COMMON_OBS): Remove solib-target.o.
5570 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
5571 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
5572 (LIBGDB_OBS, libgdb.a): Move it above.
5573 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
5574 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
5575 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
5576 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
5577 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
5578 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
5579 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
5580 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
5581 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
5582 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
5583 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
5584 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
5585 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
5586 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
5587 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
5588 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
5589 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
5590 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
5591 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
5592 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
5593 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
5594 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
5595 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
5596 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
5597 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
5598 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
5599 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
5600
5601 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5602
5603 Remove the gdbtui binary.
5604 * .gitignore (/gdbtui): Remove.
5605 * Makefile.in (TUI): Remove.
5606 (SUBDIR_TUI_OBS): Remove tui-main.o.
5607 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
5608 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
5609 (tui-main.o): Remove.
5610 (all_object_files): Remove tui-main.o.
5611 * NEWS: New note for the gdbtui removal.
5612 * configure: Rebuilt.
5613 * configure.ac: No longer add all-tui, clean-tui, install-tui and
5614 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
5615 CONFIG_UNINSTALL respectively.
5616 * gdb.c (main): Remove args.interpreter_p initialization.
5617 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
5618 * main.h (struct captured_main_args): Remove interpreter_p.
5619 * tui/tui-main.c: Remove.
5620
5621 2012-01-01 Doug Evans <dje@google.com>
5622
5623 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
5624 (dwarf2_physname, read_import_statement): Ditto.
5625 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
5626 (process_structure_scope read_subroutine_type): Ditto.
5627 (read_typedef, load_partial_dies, read_partial_die): Ditto.
5628 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
5629 (dwarf2_fetch_die_location_block): Ditto.
5630 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
5631
5632 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
5633 All callers updated.
5634 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
5635 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
5636 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
5637
5638 * dwarf2read.c (load_cu): Move assert to more useful location.
5639
5640 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
5641 All callers updated.
5642
5643 * dwarf2read.c (dwarf2_per_objfile): Add comment.
5644 (dwarf2_elf_names): Minor reformat.
5645 (dwarf2_per_cu_data): Tweak comment.
5646 (dwarf2_read_section): Fix comment.
5647 (create_all_comp_units): Fix comment.
5648 (load_full_comp_unit): Fix comment.
5649 (process_full_comp_unit): Fix comment.
5650 (read_signatured_type): Fix comment.
5651
5652 For older changes see ChangeLog-2011.
5653 \f
5654 Local Variables:
5655 mode: change-log
5656 left-margin: 8
5657 fill-column: 74
5658 version-control: never
5659 coding: utf-8
5660 End:
This page took 0.1441 seconds and 4 git commands to generate.