gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 Remove the gdbtui binary.
4 * .gitignore (/gdbtui): Remove.
5 * Makefile.in (TUI): Remove.
6 (SUBDIR_TUI_OBS): Remove tui-main.o.
7 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
8 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
9 (tui-main.o): Remove.
10 (all_object_files): Remove tui-main.o.
11 * NEWS: New note for the gdbtui removal.
12 * configure: Rebuilt.
13 * configure.ac: No longer add all-tui, clean-tui, install-tui and
14 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
15 CONFIG_UNINSTALL respectively.
16 * gdb.c (main): Remove args.interpreter_p initialization.
17 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
18 * main.h (struct captured_main_args): Remove interpreter_p.
19 * tui/tui-main.c: Remove.
20
21 2012-01-01 Doug Evans <dje@google.com>
22
23 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
24 (dwarf2_physname, read_import_statement): Ditto.
25 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
26 (process_structure_scope read_subroutine_type): Ditto.
27 (read_typedef, load_partial_dies, read_partial_die): Ditto.
28 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
29 (dwarf2_fetch_die_location_block): Ditto.
30 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
31
32 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
33 All callers updated.
34 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
35 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
36 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
37
38 * dwarf2read.c (load_cu): Move assert to more useful location.
39
40 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
41 All callers updated.
42
43 * dwarf2read.c (dwarf2_per_objfile): Add comment.
44 (dwarf2_elf_names): Minor reformat.
45 (dwarf2_per_cu_data): Tweak comment.
46 (dwarf2_read_section): Fix comment.
47 (create_all_comp_units): Fix comment.
48 (load_full_comp_unit): Fix comment.
49 (process_full_comp_unit): Fix comment.
50 (read_signatured_type): Fix comment.
51
52 2011-12-30 Doug Evans <dje@google.com>
53
54 * dwarf2read.c (read_typedef): Guard against self-referential typedefs.
55
56 2011-12-28 Jan Kratochvil <jan.kratochvil@redhat.com>
57
58 * gdbarch.sh (max_insn_length): Extend the comment by unit.
59 * gdbarch.h: Regenerate.
60
61 2011-12-28 Joel Brobecker <brobecker@adacore.com>
62
63 * varobj.c (varobj_update): Minor reformatting, putting the function
64 name at the start of the next line.
65
66 2011-12-27 Doug Evans <dje@google.com>
67
68 * dwarf2read.c (struct dwarf2_cu): Delete members first_fn, last_fn,
69 cached_fn.
70 (struct function_range): Delete.
71 (initialize_cu_func_list, add_to_cu_func_list): Delete. All callers
72 updated.
73 (check_cu_functions): Ditto.
74
75 2011-12-27 Mark Kettenis <kettenis@gnu.org>
76
77 * inf-ptrace.c [PT_IO && PIOD_READ_AUXV]
78 (inf_ptrace_xfer_partial): Implement TARGET_OBJECT_AUXV.
79 (inf_ptrace_auxv_parse): New function.
80 (inf_ptrace_target): Initialize to_auxv_parse field.
81
82 2011-12-27 Joel Brobecker <brobecker@adacore.com>
83
84 * ada-lang.c (should_use_wild_match): New function.
85 (ada_lookup_simple_minsym): Use should_use_wild_match.
86 Minor simplification. Add comment.
87 (ada_lookup_symbol_list): Use should_use_wild_match.
88 Minor simplification.
89
90 2011-12-27 Joel Brobecker <brobecker@adacore.com>
91
92 * py-finishbreakpoint.c (bpfinishpy_init): Replace call to
93 sprintf by call to xsnprintf.
94
95 2011-12-27 Joel Brobecker <brobecker@adacore.com>
96
97 * linespec.c (struct collect_minsyms) [list_mode]: New field.
98 (add_minsym): Ignore data symbols if not in list mode.
99 (search_minsyms_for_name): Set local.list_mode.
100
101 2011-12-27 Joel Brobecker <brobecker@adacore.com>
102
103 * utils.c (gdb_realpath): Add better support for Windows hosts.
104
105 2011-12-23 Kevin Pouget <kevin.pouget@st.com>
106
107 Introduce gdb.FinishBreakpoint in Python.
108 * NEWS: Add entry for FinishBreakpoint.
109 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-finishbreakpoint.o.
110 (SUBDIR_PYTHON_SRCS): Add python/py-finishbreakpoint.c.
111 Add build rule for this file.
112 * infcmd.c (print_return_value): Split to create get_return_value.
113 (get_return_value): New function based on print_return_value. Handle
114 case where stop_registers are not set.
115 * inferior.h (get_return_value): New prototype.
116 * python/py-breakpoint.c (bppy_pending_object): Make non-static.
117 (gdbpy_breakpoint_created): Set is_py_finish_bp is necessary.
118 (struct breakpoint_object): Move to python-internal.h
119 (BPPY_REQUIRE_VALID): Likewise.
120 (BPPY_SET_REQUIRE_VALID): Likewise.
121 (gdbpy_breakpoint_created): Initialize is_finish_bp.
122 (gdbpy_should_stop): Add pre/post hooks before/after calling stop
123 method.
124 * python/python-internal.h (breakpoint_object_type): Add as extern.
125 (bppy_pending_object): Likewise.
126 (typedef struct breakpoint_object) Removed.
127 (struct breakpoint_object): Moved from py-breakpoint.c.
128 Add field is_finish_bp.
129 (BPPY_REQUIRE_VALID): Moved from py-breakpoint.c.
130 (BPPY_SET_REQUIRE_VALID): Likewise.
131 (frame_object_to_frame_info): New prototype.
132 (gdbpy_initialize_finishbreakpoints): New prototype.
133 (bpfinishpy_is_finish_bp): Likewise.
134 (bpfinishpy_pre_stop_hook): Likewise.
135 (bpfinishpy_post_stop_hook): Likewise.
136 * python/py-finishbreakpoint.c: New file.
137 * python/py-frame.c(frame_object_to_frame_info): Make non-static and
138 accept PyObject instead of frame_object.
139 (frapy_is_valid): Don't cast to frame_object.
140 (frapy_name): Likewise.
141 (frapy_type): Likewise.
142 (frapy_unwind_stop_reason): Likewise.
143 (frapy_pc): Likewise.
144 (frapy_block): Likewise.
145 (frapy_function): Likewise.
146 (frapy_older): Likewise.
147 (frapy_newer): Likewise.
148 (frapy_find_sal): Likewise.
149 (frapy_read_var): Likewise.
150 (frapy_select): Likewise.
151 * python/python.c (gdbpy_is_stopped_at_finish_bp): New noop function.
152 (_initialize_python): Add gdbpy_initialize_finishbreakpoints.
153 * python/python.h: Include breakpoint.h
154 (gdbpy_is_stopped_at_finish_bp): New prototype.
155
156 2011-12-22 Tom Tromey <tromey@redhat.com>
157
158 PR python/12533:
159 * value.h (release_value_or_incref): Declare.
160 * value.c (struct value) <released>: New field.
161 (free_all_values, release_value, value_release_to_mark): Update
162 'released'.
163 (release_value_or_incref): New function.
164 * python/py-value.c (valpy_new): Use release_value_or_incref.
165 (value_to_value_object): Likewise.
166 * varobj.c (install_new_value): Move value_incref earlier.
167
168 2011-12-22 Tom Tromey <tromey@redhat.com>
169
170 * value.c (struct value) <modifiable, lazy, optimized_out,
171 initialized, stack>: Now bitfields. Move to top.
172 <reference_count>: Move earlier.
173
174 2011-12-21 Tom Tromey <tromey@redhat.com>
175
176 * minsyms.h: Rearrange. Document header and all functions.
177 * minsyms.c: Move some comments to minsyms.h.
178
179 2011-12-21 Tom Tromey <tromey@redhat.com>
180
181 * symtab.h: Include minsyms.h.
182 (prim_record_minimal_symbol, prim_record_minimal_symbol_full)
183 (prim_record_minimal_symbol_and_info, msymbol_hash_iw)
184 (msymbol_hash, SYMBOL_HASH_NEXT, msymbol_objfile)
185 (lookup_minimal_symbol, lookup_minimal_symbol_text)
186 (lookup_minimal_symbol_solib_trampoline)
187 (lookup_minimal_symbol_by_pc_name, lookup_minimal_symbol_by_pc)
188 (iterate_over_minimal_symbols, lookup_minimal_symbol_and_objfile)
189 (lookup_minimal_symbol_by_pc_section)
190 (lookup_solib_trampoline_symbol_by_pc)
191 (init_minimal_symbol_collection)
192 (make_cleanup_discard_minimal_symbols, install_minimal_symbols)
193 (msymbols_sort): Move to minsyms.h.
194 * objfiles.c (terminate_minimal_symbol_table): Move to minsyms.c.
195 * minsyms.c (terminate_minimal_symbol_table): Move from
196 objfiles.c.
197 * minsyms.h: New file.
198
199 2011-12-21 Tom Tromey <tromey@redhat.com>
200
201 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): Use
202 ALL_OBJFILE_MSYMBOLS.
203 (hppa_hpux_find_dummy_bpaddr): Likewise.
204 * jit.c (jit_object_close_impl): Use
205 terminate_minimal_symbol_table.
206
207 2011-12-21 Tom Tromey <tromey@redhat.com>
208
209 * elfread.c (elf_symtab_read): Put the filename in the filename
210 bcache.
211
212 2011-12-21 Tom Tromey <tromey@redhat.com>
213
214 * symtab.h (struct minimal_symbol) <filename>: Now const.
215
216 2011-12-21 Ulrich Weigand <ulrich.weigand@linaro.org>
217
218 PR tdep/12797
219 * arm-tdep.c (arm_return_value): Handle complex types.
220
221 2011-12-21 Andreas Schwab <schwab@linux-m68k.org>
222
223 * ppc-linux-nat.c (create_watchpoint_request): Only use ranged
224 watchpoints when supported.
225
226 2011-12-21 Jan Kratochvil <jan.kratochvil@redhat.com>
227
228 * symfile.c (objfilep): New typedef and new DEF_VEC_P.
229 (reread_symbols): Remove variable reread_one, new variables
230 new_objfiles, all_cleanups and ix. Use new_objfiles instead of
231 reread_one. Push changed objfiles to new_objfiles, call
232 observer_notify_new_objfile for them later.
233
234 2011-12-21 Joel Brobecker <brobecker@adacore.com>
235
236 * psymtab.c (expand_symtabs_matching_via_partial): Match
237 the partial symbols using their SYMBOL_SEARCH_NAME.
238 * symfile.h (struct quick_symbol_functions): Udate the
239 documentation of expand_symtabs_matching.
240 * dwarf2read.c (write_psymbols): Use SYMBOL_SEARCH_NAME instead
241 of SYMBOL_NATURAL_NAME in index entry.
242
243 2011-12-21 Joel Brobecker <brobecker@adacore.com>
244
245 * linespec.c (locate_first_half): Add handling of Ada operators
246 when the current language is Ada.
247
248 2011-12-21 Joel Brobecker <brobecker@adacore.com>
249
250 * objfiles.c (insert_section_p): Do not detect overlay sections
251 if overlay debugging is off.
252
253 2011-12-21 Joel Brobecker <brobecker@adacore.com>
254
255 * ada-lang.c (is_name_suffix): Add handling of "TKB" suffixes.
256 Update function documentation.
257 * dictionary.c (dict_hash): Ignore "TKB" suffixes in hash
258 computation.
259
260 2011-12-20 Pedro Alves <alves.ped@gmail.com>
261 Jan Kratochvil <jan.kratochvil@redhat.com>
262
263 * linux-nat.c (add_lwp): Don't call linux_nat_new_thread on the
264 first LWP.
265 * amd64-linux-nat.c (update_debug_registers_callback): Instantiate
266 `lwp->arch_private' if NULL.
267 (amd64_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
268 is NULL.
269 * i386-linux-nat.c (update_debug_registers_callback): Instantiate
270 `lwp->arch_private' if NULL.
271 (i386_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
272 is NULL.
273
274 2011-12-19 Doug Evans <dje@google.com>
275
276 * python/py-auto-load.c (info_auto_load_scripts): Pass address of
277 scripts vector to collect_matching_scripts.
278 (collect_matching_scripts): Update.
279
280 2011-12-19 Jan Kratochvil <jan.kratochvil@redhat.com>
281
282 * symfile.c (reread_symbols): Move free_objfile_separate_debug,
283 preserve_values, sym_finish and clear_objfile_data calls before BFD
284 close. Move free_objfile_separate_debug as the very first call. New
285 comment on the ordering.
286
287 2011-12-19 Ulrich Weigand <uweigand@de.ibm.com>
288
289 * s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
290 in return PSWA.
291
292 2011-12-19 Tom Tromey <tromey@redhat.com>
293
294 * symtab.h (add_minsym_to_hash_table): Don't declare.
295 * minsyms.c (add_minsym_to_hash_table): Now static.
296
297 2011-12-19 Joel Brobecker <brobecker@adacore.com>
298
299 * elfread.c (elf_symtab_read): Ignore undefined symbols with
300 nonzero addresses if they do not correspond to a .plt section
301 when one is available in the objfile.
302
303 2011-12-17 Andreas Schwab <schwab@linux-m68k.org>
304
305 * cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
306 obstack_empty_p.
307
308 2011-12-17 Mark Kettenis <kettenis@gnu.org>
309
310 * amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
311 regset_from_core_section.
312 (amd64obsd_core_init_abi): New function that sets
313 regset_from_core_section.
314 (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
315 traditional core dumps.
316
317 2011-12-17 Mark Kettenis <kettenis@gnu.org>
318
319 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
320 trampoline to be introduced in OpenBSD 5.0.
321
322 2011-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
323
324 Fix build regression from the PR threads/10729 fix.
325 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP,
326 not LP->PTID.
327
328 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
329
330 * mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
331 `optarg' to `oind' and `oarg', respectively(-Wshadow).
332 (mi_cmd_data_read_memory): Ditto.
333 (mi_cmd_data_read_memory_bytes): Ditto.
334 (mi_cmd_data_write_memory): Ditto.
335
336 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
337
338 * mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
339 `oind' and `oarg', respectively(-Wshadow).
340 (mi_valid_noargs): Ditto.
341
342 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
343
344 * mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
345 `oind' and `oarg', respectively(-Wshadow).
346
347 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
348
349 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
350 `optarg' to `oind' and `oarg', respectively(-Wshadow).
351 (mi_cmd_target_file_put): Ditto.
352 (mi_cmd_target_file_delete): Ditto.
353
354 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
355
356 * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
357 `optarg' to `oind' and `oarg', respectively(-Wshadow).
358 (mi_cmd_env_dir): Ditto.
359
360 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
361
362 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
363 `optarg' to `oind' and `oarg', respectively(-Wshadow).
364
365 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
366
367 * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
368 `optparg' to `oind' and `oarg', respectively(-Wshadow).
369 (mi_cmd_break_watch): Ditto.
370
371 2011-12-16 Tom Tromey <tromey@redhat.com>
372
373 * linespec.c (collect_symbols): Call maybe_add_address after
374 calling symbol_to_sal.
375 (minsym_found): Call maybe_add_address here.
376 (search_minsyms_for_name): Don't call maybe_add_address.
377
378 2011-12-16 Tom Tromey <tromey@redhat.com>
379
380 * linespec.c (struct collect_info) <objfile>: Remove field.
381 (decode_objc): Update.
382 (find_method): Update.
383 (decode_variable): Update.
384 (struct minsym_and_objfile): New.
385 (struct collect_minsyms): New.
386 (classify_mtype): New function.
387 (compare_msyms): Likewise.
388 (add_minsym): Likewise.
389 (check_minsym): Remove.
390 (search_minsyms_for_name): Sort minsyms and apply only those with
391 top priority.
392
393 2011-12-16 Tom Tromey <tromey@redhat.com>
394
395 * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
396
397 2011-12-16 Pedro Alves <pedro@codesourcery.com>
398
399 * inf-loop.c: Include top.h.
400 (inferior_event_handler): Call check_frame_language.
401 * top.c (check_frame_language_change): New, factored out from ...
402 (execute_command): ... this. Use check_frame_language_change.
403 * top.h (check_frame_language_change): Declare.
404
405 2011-12-16 asmwarrior <asmwarrior@gmail.com> (obvious fix)
406
407 * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
408 prototypes.
409
410 2011-12-16 Doug Evans <dje@google.com>
411
412 * NEWS: Add entry for stdio gdbserver.
413
414 2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
415
416 * python/python.c: Define python_excp_enums.
417 (eval_python_from_control_command): Do not call gdbpy_print_stack.
418 (python_command): Ditto.
419 (gdbpy_print_stack): Rewrite to use new enum constants.
420 (maint_set_python): Remove function.
421 (maint_show_python): Ditto.
422 (_initialize_python): Do not add "maint" commands. Add "set/show
423 python print-stack commands".
424 * NEWS: Update to reflect removal for "maint set/show
425 print-stack"
426
427 2011-12-15 Doug Evans <dje@google.com>
428
429 * exceptions.c (catcher_list_size): New function.
430 (last_message): Delete.
431 (exception_messages, exception_messages_size): New static globals.
432 (throw_it): Use exception_messages array to handle nested calls.
433
434 2011-12-15 Tom Tromey <tromey@redhat.com>
435
436 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
437 do_cleanups call.
438
439 2011-12-14 Doug Evans <dje@google.com>
440
441 * defs.h (wait_to_die_with_timeout): Declare.
442 * utils.c: #include "gdb_wait.h".
443 (sigalrm_handler, wait_to_die_with_timeout): New functions.
444 * ser-pipe.c: Don't #include "gdb_wait.h".
445 (pipe_close): Give child a chance to die on its own after closing
446 its stdin before SIGTERM'ing it.
447
448 2011-12-14 Joel Brobecker <brobecker@adacore.com>
449 Tom Tromey <tromey@redhat.com>
450
451 * ada-lang.c (add_nonlocal_symbols): Initialize data to
452 all zeros. Remove setting of data.arg_sym to NULL.
453
454 2011-12-14 Pedro Alves <pedro@codesourcery.com>
455
456 PR threads/10729
457
458 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
459 pointer.
460 (linux_nat_prepare_to_resume): New global.
461 (lwp_free): New.
462 (purge_lwp_list): Use it.
463 (add_lwp): Call linux_nat_new_thread even on the first LWP.
464 Adjust to interface change.
465 (delete_lwp): Call lwp_free instead of xfree.
466 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
467 (linux_handle_syscall_trap, linux_handle_extended_wait)
468 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
469 linux_nat_prepare_to_resume before resuming.
470 (linux_stop_lwp): New.
471 (linux_nat_set_new_thread): Adjust.
472 (linux_nat_set_prepare_to_resume): New.
473 * linux-nat.h (struct arch_lwp_info): Forward declare.
474 (struct lwp_info) <arch_private>: New field.
475 (linux_stop_lwp): Declare.
476 (linux_nat_set_new_thread): Adjust.
477 (linux_nat_set_prepare_to_resume): New.
478
479 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
480 (struct i386_debug_reg_state): Move to i386-nat.h.
481 (dr_mirror): Comment.
482 (i386_debug_reg_state): New.
483 (i386_update_inferior_debug_regs): Simplify.
484 (i386_stopped_data_address): Use the debug register state from the
485 inferior, not from the local cache.
486 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
487 unset_status fields. New get_addr and get_control fields.
488 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
489 (DR_NADDR, DR_STATUS): New.
490 (struct i386_debug_reg_state): Moved from i386-nat.c.
491
492 * amd64-linux-nat.c (struct arch_lwp_info): New.
493 (amd64_linux_dr): Delete global.
494 (amd64_linux_dr_get_addr): New.
495 (amd64_linux_dr_get_control): New.
496 (amd64_linux_dr_unset_status): Delete.
497 (amd64_linux_dr_set_addr): Reimplement.
498 (amd64_linux_dr_reset_addr): Delete.
499 (update_debug_registers_callback): New.
500 (amd64_linux_dr_set_control): Reimplement.
501 (amd64_linux_dr_set_addr): Reimplement.
502 (amd64_linux_prepare_to_resume): New.
503 (amd64_linux_new_thread): Change parameter to an lwp pointer.
504 Reimplement.
505 (_initialize_amd64_linux_nat): No longer install
506 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
507 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
508 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
509 amd64_linux_prepare_to_resume.
510 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
511 (DR_CONTROL): Delete.
512 (struct arch_lwp_info): New.
513 (i386_linux_dr): Delete global.
514 (i386_linux_dr_set_control): Reimplement.
515 (i386_linux_dr_get_addr): New.
516 (i386_linux_dr_set_addr): Reimplement.
517 (i386_linux_dr_get_control): New.
518 (update_debug_registers_callback): New.
519 (i386_linux_dr_unset_status): Delete.
520 (i386_linux_dr_set_addr): Reimplement.
521 (i386_linux_prepare_to_resume): New.
522 (i386_linux_new_thread): Change parameter to an lwp pointer.
523 Reimplement.
524 (_initialize_i386_linux_nat): No longer install
525 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
526 i386_linux_dr_get_control as i386_dr_low.get_control. Install
527 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
528 i386_linux_prepare_to_resume.
529
530 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
531 lwp pointer. Adjust.
532 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
533 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
534 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
535 * s390-nat.c (s390_fix_watch_points): Likewise.
536
537 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
538 (DR_CONTROL): Delete.
539 (i386_darwin_dr_reset_addr): Delete.
540 (i386_darwin_dr_get_addr): New.
541 (i386_darwin_dr_get_control): New.
542 * go32-nat.c
543 (go32_get_dr7, go32_get_dr): New.
544 (init_go32_ops): No longer install i386_dr_low.reset_addr.
545 Install go32_get_dr7 as i386_dr_low.get_control. Install
546 go32_get_dr as i386_dr_low.get_addr.
547 * i386bsd-nat.c (i386bsd_dr_get): New.
548 (i386bsd_dr_reset_addr): Delete.
549 (i386bsd_dr_get_addr): New.
550 (i386bsd_dr_get_status): Use i386bsd_dr_get.
551 (i386bsd_dr_get_control): New.
552 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
553 (i386bsd_dr_get_addr): New.
554 (i386bsd_dr_get_control): New.
555 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
556 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
557 i386bsd_dr_get_control as i386_dr_low.get_control. Install
558 i386bsd_dr_get_addr as i386_dr_low.get_addr.
559 * windows-nat.c (init_windows_ops): No longer install
560 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
561 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
562 as i386_dr_low.get_addr.
563 (cygwin_get_dr): New.
564 (cygwin_get_dr7): New.
565
566 2011-12-14 Pedro Alves <pedro@codesourcery.com>
567
568 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
569 target_write_raw_memory.
570 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
571 target_write_raw_memory.
572 * microblaze-linux-tdep.c
573 (microblaze_linux_memory_remove_breakpoint): Use
574 target_write_raw_memory.
575 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
576 target_write_raw_memory.
577
578 2011-12-14 Joel Brobecker <brobecker@adacore.com>
579
580 * linespec.c (decode_line_internal): Make static.
581
582 2011-12-14 Yao Qi <yao@codesourcery.com>
583
584 * breakpoint.c (create_breakpoint): Set canonical.addr_string
585 for static tracepoint.
586
587 2011-12-13 Joel Brobecker <brobecker@adacore.com>
588
589 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
590 * version.in: Bump version to 7.4.50.20111213-cvs.
591
592 2011-12-13 Joel Brobecker <brobecker@adacore.com>
593
594 * NEWS: Create a new section for the next release branch.
595 Rename the section of the current branch, now that it has
596 been cut.
597
598 2011-12-11 Joel Brobecker <brobecker@adacore.com>
599
600 * ada-lang.c (ada_exception_support_info_sniffer): Improve
601 error message.
602
603 2011-12-11 Joel Brobecker <brobecker@adacore.com>
604
605 * ada-lang.c (struct ada_inferior_data) [exception_info]:
606 New field.
607 (exception_info): Delete.
608 (ada_exception_support_info_sniffer): Get exception_support_info
609 data from our per-inferior data. Adjust code accordingly.
610 (ada_unhandled_exception_name_addr_from_raise): Likewise.
611 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
612 (ada_executable_changed_observer): Delete.
613 (_initialize_ada_language): Remove call to
614 observer_attach_executable_changed.
615
616 2011-12-11 Joel Brobecker <brobecker@adacore.com>
617
618 * ada-lang.c (ada_has_this_exception_support): Raise an error
619 if we could find the Ada exception hook in the Ada runtime,
620 but no debugging info for that hook.
621
622 2011-12-11 Joel Brobecker <brobecker@adacore.com>
623
624 * ada-lang.c (ada_has_this_exception_support): New function,
625 extracted out of ada_exception_sal and ada_exception_sal.
626 (ada_exception_support_info_sniffer): Simplify by using
627 ada_has_this_exception_support.
628 (ada_exception_sal): Replace unnecessary checks by assertions.
629 Minor simplifications.
630
631 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
632
633 * breakpoint.c (update_global_location_list): Remove nested
634 definition of `b'(-Wshadow).
635
636 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
637
638 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
639 `error_flag'(-Wshadow).
640
641 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
642
643 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
644 `abfd'(-Wshadow).
645
646 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
647
648 * annotate.c (annotate_array_section_begin): Rename `index' to
649 `idx'(-Wshadow).
650
651 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
652
653 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
654 `idx'(-Wshadow).
655
656 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
657
658 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
659 `syscall' to `syscall_number'(-Wshadow).
660
661 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
662
663 * ada-lang.c (remove_extra_symbols): Rename `remove' to
664 `remove_p'(-Wshadow).
665
666 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
667
668 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
669 `ren_sym'(-Wshadow).
670
671 2011-12-10 Doug Evans <dje@google.com>
672
673 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
674 debug_types_section. All uses updated.
675 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
676 to is_debug_types_section.
677
678 * python/py-auto-load.c (source_section_scripts): Call xfree
679 instead of free.
680
681 2011-12-10 Hui Zhu <teawater@gmail.com>
682 Yao Qi <yao@codesourcery.com>
683
684 * tracepoint.c (start_tracing): Clear `inserted' flag.
685
686 2011-12-10 Hui Zhu <teawater@gmail.com>
687
688 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
689
690 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
691
692 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
693 `bpoint'(-Wshadow).
694
695 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
696
697 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
698 `marker' variables to `sal2' and `tpmarker' respectively
699 (-Wshadow).
700
701 2011-12-09 Andrew Pinski <apinski@cavium.com>
702
703 * linespec.c (hash_address_entry): Use iterative_hash_object on each
704 field rather than the struct itself.
705
706 2011-12-09 Tom Tromey <tromey@redhat.com>
707
708 * breakpoint.c (compare_breakpoints): New function.
709 (clear_command): Remove duplicate breakpoints. Properly clean
710 up.
711
712 2011-12-08 Maciej W. Rozycki <macro@mips.com>
713 Maciej W. Rozycki <macro@codesourcery.com>
714
715 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
716 address chunks retrieved from decoded lui/addiu pairs.
717
718 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
719
720 * mips-tdep.c (extended_offset): Correct calculation.
721 (unpack_mips16): Correct bitfield positions used for extraction
722 of the immediate argument; fix sign-extension of same.
723 (extended_mips16_next_pc): Correct B instruction's offset
724 calculation. Correct register decoding of the BEQZ and BNEZ
725 as well as jump-register instructions. Handle compact jumps.
726
727 2011-12-08 Tom Tromey <tromey@redhat.com>
728
729 * objfiles.h (struct objfile): Remove obsolete comment.
730 * objfiles.c (build_objfile_section_table): Remove obsolete
731 comment.
732
733 2011-12-07 Stan Shebs <stan@codesourcery.com>
734
735 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
736 maintainer of the tic6x target.
737
738 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
739
740 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
741 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
742 (arm_deal_with_atomic_sequence_raw): Likewise.
743 (arm_deal_with_atomic_sequence): Likewise.
744 (arm_software_single_step): Call it.
745 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
746
747 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
748
749 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
750 where appropriate.
751 * s390-tdep.h: Likewise.
752
753 2011-12-07 Tristan Gingold <gingold@adacore.com>
754
755 * machoread.c (macho_symtab_read): Do not consider N_OPT as
756 a debugging stab. Improve complaint message.
757
758 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
759
760 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
761 load adjustment if still within the prologue.
762
763 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
764
765 * mips-tdep.c (mips32_next_pc): Fix floating point condition
766 code mask.
767
768 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
769
770 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
771 of BLTZ* and BGEZ* instructions.
772
773 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
774
775 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
776 performed to determine whether an address refers to standard
777 MIPS or MIPS16 code.
778 (mips16_next_pc): Use mips_pc_is_mips16 instead of
779 is_mips16_addr.
780
781 2011-12-06 Pedro Alves <pedro@codesourcery.com>
782
783 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
784 (breakpoint_xfer_memory): ... this. Change prototype. Handle
785 memory writes too.
786 * breakpoint.h (breakpoint_restore_shadows): Delete.
787 (breakpoint_xfer_memory): Declare.
788 * mem-break.c (default_memory_insert_breakpoint)
789 (default_memory_remove_breakpoint): Use target_write_raw_memory.
790 (memory_xfer_partial): Rename to ...
791 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
792 here.
793 (memory_xfer_partial): New.
794 (target_write_raw_memory): New.
795 * target.h (target_write_raw_memory): New.
796
797 2011-12-06 Doug Evans <dje@google.com>
798
799 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
800
801 2011-12-06 Joel Brobecker <brobecker@acacore.com>
802
803 * language.h (struct language_defn): Add new component
804 la_symbol_name_compare.
805 * symfile.h (struct quick_symbol_functions): Update the profile
806 of parameter "name_matcher" for the expand_symtabs_matching
807 method. Update the documentation accordingly.
808 * ada-lang.h (ada_name_for_lookup): Add declaration.
809 * ada-lang.c (ada_name_for_lookup): New function, extracted out
810 from ada_iterate_over_symbols.
811 (ada_iterate_over_symbols): Do not encode symbol name anymore.
812 (ada_expand_partial_symbol_name): Adjust profile.
813 (ada_language_defn): Add value for la_symbol_name_compare field.
814 * linespec.c: #include "ada-lang.h".
815 (iterate_name_matcher): Add language parameter. Replace call
816 to strcmp_iw by call to language->la_symbol_name_compare.
817 (decode_variable): Encode COPY if current language is Ada.
818 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
819 of name_matcher parameter. Adjust call to name_matcher.
820 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
821 (expand_partial_symbol_names): Update profile of parameter "fun".
822 * psymtab.h (expand_partial_symbol_names): Update profile of
823 parameter "fun".
824 * symtab.c (demangle_for_lookup): Update function documentation.
825 (search_symbols_name_matches): Add language parameter.
826 (expand_partial_symbol_name): Likewise.
827 * c-lang.c (c_language_defn, cplus_language_defn)
828 (asm_language_defn, minimal_language_defn): Add value for
829 la_symbol_name_compare field.
830 * d-lang.c (d_language_defn): Likewise.
831 * f-lang.c (f_language_defn): Ditto.
832 * jv-lang.c (java_language_defn): Ditto.
833 * m2-lang.c (m2_language_defn): Ditto.
834 * objc-lang.c (objc_language_defn): Ditto.
835 * opencl-lang.c (opencl_language_defn): Ditto.
836 * p-lang.c (pascal_language_defn): Ditto.
837 * language.c (unknown_language_defn, auto_language_defn)
838 (local_language_defn): Ditto.
839
840 2011-12-06 Tom Tromey <tromey@redhat.com>
841
842 * linespec.c (iterate_over_all_matching_symtabs): Use
843 LA_ITERATE_OVER_SYMBOLS.
844 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
845 (find_function_symbols, decode_variable): Remove Ada special
846 case.
847 * language.h (struct language_defn) <la_iterate_over_symbols>: New
848 field.
849 (LA_ITERATE_OVER_SYMBOLS): New macro.
850 * language.c (unknown_language_defn, auto_language_defn)
851 (local_language_defn): Update.
852 * c-lang.c (c_language_defn, cplus_language_defn)
853 (asm_language_defn, minimal_language_defn): Update.
854 * d-lang.c (d_language_defn): Update.
855 * f-lang.c (f_language_defn): Update.
856 * jv-lang.c (java_language_defn): Update.
857 * m2-lang.c (m2_language_defn): Update.
858 * objc-lang.c (objc_language_defn): Update.
859 * opencl-lang.c (opencl_language_defn): Update.
860 * p-lang.c (pascal_language_defn): Update.
861 * ada-lang.c (ada_iterate_over_symbols): New function.
862 (ada_language_defn): Update.
863
864 2011-12-06 Tom Tromey <tromey@redhat.com>
865 Joel Brobecker <brobecker@acacore.com>
866
867 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
868 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
869 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
870 PR shlibs/8929, PR shlibs/7393:
871 * python/py-type.c (compare_maybe_null_strings): Rename from
872 compare_strings.
873 (check_types_equal): Update.
874 * utils.c (compare_strings): New function.
875 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
876 location changes.
877 * tracepoint.c (scope_info): Update.
878 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
879 * symtab.h (iterate_over_minimal_symbols)
880 (iterate_over_some_symtabs, iterate_over_symtabs)
881 (find_pcs_for_symtab_line, iterate_over_symbols)
882 (demangle_for_lookup): Declare.
883 (expand_line_sal): Remove.
884 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
885 (lookup_symtab_callback): New functions.
886 (lookup_symtab): Rewrite.
887 (demangle_for_lookup): New function, extract from
888 lookup_symbol_in_language.
889 (lookup_symbol_in_language): Use it.
890 (iterate_over_symbols): New function.
891 (find_line_symtab): Update.
892 (find_pcs_for_symtab_line): New functions.
893 (find_line_common): Add 'start' argument.
894 (decode_line_spec): Update. Change argument to 'flags', change
895 interpretation.
896 (append_expanded_sal): Remove.
897 (append_exact_match_to_sals): Remove.
898 (expand_line_sal): Remove.
899 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
900 Remove.
901 <map_symtabs_matching_filename>: New field.
902 * stack.c (func_command): Only look in the current program space.
903 Use DECODE_LINE_FUNFIRSTLINE.
904 * source.c (line_info): Set pspace on sal. Check program space in
905 the loop. Use DECODE_LINE_LIST_MODE.
906 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
907 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
908 * python/python.c (gdbpy_decode_line): Update.
909 * psymtab.c (partial_map_expand_apply): New function.
910 (partial_map_symtabs_matching_filename): Rename from
911 lookup_partial_symbol. Update arguments.
912 (lookup_symtab_via_partial_symtab): Remove.
913 (psym_functions): Update.
914 * objc-lang.h (parse_selector, parse_method): Don't declare.
915 (find_imps): Update.
916 * objc-lang.c (parse_selector, parse_method): Now static.
917 (find_methods): Change arguments. Fill in a vector of symbol
918 names.
919 (uniquify_strings): New function.
920 (find_imps): Change arguments.
921 * minsyms.c (iterate_over_minimal_symbols): New function.
922 * linespec.h (enum decode_line_flags): New.
923 (struct linespec_sals): New.
924 (struct linespec_result) <canonical>: Remove.
925 <pre_expanded, addr_string, sals>: New fields.
926 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
927 (decode_line_full): Declare.
928 (decode_line_1): Update.
929 * linespec.c (struct address_entry, struct linespec_state, struct
930 collect_info): New types.
931 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
932 (eq_address_entry, maybe_add_address): New functions.
933 (total_number_of_methods): Remove.
934 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
935 functions.
936 (find_methods): Change arguments. Don't canonicalize input.
937 Simplify logic.
938 (add_matching_methods, add_constructors)
939 (build_canonical_line_spec): Remove.
940 (filter_results, convert_results_to_lsals): New functions.
941 (decode_line_2): Change arguments. Rewrite for new data
942 structures.
943 (decode_line_internal): Rename from decode_line_1. Change
944 arguments. Add cleanups. Update for new data structures.
945 (linespec_state_constructor, linespec_state_destructor)
946 (decode_line_full, decode_line_1): New functions.
947 (decode_indirect): Change arguments. Update.
948 (locate_first_half): Use skip_spaces.
949 (decode_objc): Change arguments. Update for new data structures.
950 Simplify logic.
951 (decode_compound): Change arguments. Add cleanups. Remove
952 fallback code, replace with error.
953 (struct decode_compound_collector): New type.
954 (collect_one_symbol): New function.
955 (lookup_prefix_sym): Change arguments. Update.
956 (compare_symbol_name, add_all_symbol_names_from_pspace)
957 (find_superclass_methods ): New functions.
958 (find_method): Rewrite.
959 (struct symtab_collector): New type.
960 (add_symtabs_to_list, collect_symtabs_from_filename): New
961 functions.
962 (symtabs_from_filename): Change API. Rename from
963 symtab_from_filename.
964 (collect_function_symbols): New function.
965 (find_function_symbols): Change API. Rename from
966 find_function_symbol. Rewrite.
967 (decode_all_digits): Change arguments. Rewrite.
968 (decode_dollar): Change arguments. Use decode_variable.
969 (decode_label): Change arguments. Rewrite.
970 (collect_symbols): New function.
971 (minsym_found): Change arguments. Rewrite.
972 (check_minsym, search_minsyms_for_name)
973 (add_matching_symbols_to_info): New function.
974 (decode_variable): Change arguments. Iterate over all symbols.
975 (symbol_found): Remove.
976 (symbol_to_sal): New function.
977 (init_linespec_result, destroy_linespec_result)
978 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
979 New functions.
980 (decode_digits_list_mode, decode_digits_ordinary): New functions.
981 * dwarf2read.c (dw2_map_expand_apply): New function.
982 (dw2_map_symtabs_matching_filename): Rename from
983 dw2_lookup_symtab. Change arguments.
984 (dwarf2_gdb_index_functions): Update.
985 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
986 * defs.h (compare_strings): Declare.
987 * cli/cli-cmds.c (compare_strings): Move to utils.c.
988 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
989 filter_sals.
990 (compare_symtabs, filter_sals): New functions.
991 * breakpoint.h (struct bp_location) <line_number, source_file>:
992 New fields.
993 (struct breakpoint) <line_number, source_file>: Remove.
994 <filter>: New field.
995 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
996 (momentary_breakpoint_from_master, add_location_to_breakpoint):
997 Update for changes to locations.
998 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
999 breakpoint.
1000 (create_breakpoint_sal): Add 'filter' argument.
1001 (remove_sal, expand_line_sal_maybe): Remove.
1002 (create_breakpoints_sal): Remove 'sals' argument. Handle
1003 pre-expanded sals and the filter.
1004 (parse_breakpoint_sals): Use decode_line_full.
1005 (check_fast_tracepoint_sals): Use get_sal_arch.
1006 (create_breakpoint): Create a linespec_sals. Update.
1007 (break_range_command): Use decode_line_full. Update.
1008 (until_break_command): Update.
1009 (clear_command): Update match conditions for linespec.c changes.
1010 Use DECODE_LINE_LIST_MODE.
1011 (say_where): Update for changes to locations.
1012 (bp_location_dtor): Free 'source_file'.
1013 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
1014 (update_static_tracepoint): Update for changes to locations.
1015 (update_breakpoint_locations): Disable ranged breakpoint if too
1016 many locations match. Update.
1017 (addr_string_to_sals): Use decode_line_full. Resolve all sal
1018 PCs.
1019 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
1020 (decode_line_spec_1): Update. Change argument name to 'flags',
1021 change interpretation.
1022 * block.h (block_containing_function): Declare.
1023 * block.c (block_containing_function): New function.
1024 * skip.c (skip_function_command): Update.
1025 (skip_re_set): Update.
1026 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
1027 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
1028 * NEWS: Add entry.
1029
1030 2011-12-06 Tom Tromey <tromey@redhat.com>
1031
1032 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
1033 breakpoint's pspace to be NULL.
1034 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
1035 * breakpoint.c (init_raw_breakpoint): Conditionally set
1036 breakpoint's pspace.
1037 (init_breakpoint_sal): Don't set breakpoint's pspace.
1038 (prepare_re_set_context): Conditionally switch program space.
1039 (addr_string_to_sals): Check executing_startup on location's
1040 program space.
1041
1042 2011-12-06 Tom Tromey <tromey@redhat.com>
1043
1044 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
1045 * breakpoint.c (should_be_inserted): Explicitly check if program
1046 space is executing startup.
1047 (describe_other_breakpoints): Update.
1048 (disable_breakpoints_before_startup): Change executing_startup
1049 earlier. Remove loop.
1050 (enable_breakpoints_after_startup): Likewise.
1051 (init_breakpoint_sal): Don't use bp_startup_disabled.
1052 (create_breakpoint): Don't use bp_startup_disabled.
1053 (update_global_location_list): Use should_be_inserted.
1054 (bkpt_re_set): Update.
1055
1056 2011-12-06 Tom Tromey <tromey@redhat.com>
1057
1058 * python/lib/gdb/command/pretty_printers.py
1059 (InfoPrettyPrinter.invoke1): Remove extra double quote.
1060
1061 2011-12-06 Tom Tromey <tromey@redhat.com>
1062
1063 * NEWS: Add MI news.
1064
1065 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
1066
1067 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
1068 (S390_LAST_BREAK_REGNUM): Likewise.
1069 (S390_SYSTEM_CALL_REGNUM): Likewise.
1070 (S390_NUM_REGS): Update.
1071
1072 (s390_regmap_last_break): Add declaration.
1073 (s390x_regmap_last_break): Likewise.
1074 (s390_regmap_system_call): Likewise.
1075
1076 (tdesc_s390_linux32v1): Add declaration.
1077 (tdesc_s390_linux32v2): Likewise.
1078 (tdesc_s390_linux64v1): Likewise.
1079 (tdesc_s390_linux64v2): Likewise.
1080 (tdesc_s390x_linux64v1): Likewise.
1081 (tdesc_s390x_linux64v2): Likewise.
1082
1083 * s390-tdep.c: Include new target description files
1084 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
1085 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
1086 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
1087 (s390_cannot_store_register): New function.
1088 (s390_write_pc): Likewise.
1089 (s390_dwarf_regmap): Add fields for new registers.
1090 (s390_regmap_gregset): Likewise.
1091 (s390x_regmap_gregset): Likewise.
1092 (s390_regmap_fpregset): Likewise.
1093 (s390_regmap_upper): Likewise.
1094 (s390_regmap_last_break): New variable.
1095 (s390x_regmap_last_break): Likewise.
1096 (s390_regmap_system_call): Likewise.
1097 (s390_last_break_regset): Likewise.
1098 (s390x_last_break_regset): Likewise.
1099 (s390_system_call_regset): Likewise.
1100 (s390_upper_regset_sections): Rename to ...
1101 (s390_linux64_regset_sections): ... this.
1102 (s390_linux32_regset_sections): New variable.
1103 (s390x_linux64_regset_sections): Likewise.
1104 (s390_linux32v1_regset_sections): Likewise.
1105 (s390_linux32v2_regset_sections): Likewise.
1106 (s390_linux64v1_regset_sections): Likewise.
1107 (s390_linux64v2_regset_sections): Likewise.
1108 (s390x_linux64v1_regset_sections): Likewise.
1109 (s390x_linux64v2_regset_sections): Likewise.
1110 (s390_regset_from_core_section): Handle .reg-s390-last-break and
1111 .reg-s390-system-call core file sections.
1112 (s390_core_read_description): Check for presence of
1113 .reg-s390-last-break and .reg-s390-system-call core file
1114 sections and return appropriate target description.
1115 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
1116 "last_break" and "system_call" in target description. Install
1117 appropriate gdbarch_core_regset_sections array.
1118 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
1119 (_initialize_s390_tdep): Initialize additional target descriptions.
1120
1121 * s390-nat.c: Include "elf/common.h".
1122 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
1123 (have_regset_last_break): New static variable.
1124 (have_regset_system_call): Likewise.
1125 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
1126 (s390_native_collect): Likewise.
1127 (fetch_regset, store_regset, check_regset): New functions.
1128 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
1129 and S390_SYSTEM_CALL_REGNUM.
1130 (s390_linux_store_inferior_registers): Likewise.
1131 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
1132 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
1133
1134 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
1135 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
1136 (s390-linux32v1-expedite): Define.
1137 (s390-linux32v2-expedite): Likewise.
1138 (s390-linux64v1-expedite): Likewise.
1139 (s390-linux64v2-expedite): Likewise.
1140 (s390x-linux64v1-expedite): Likewise.
1141 (s390x-linux64v2-expedite): Likewise.
1142
1143 * features/s390-linux32.xml: Add orig_r2 register.
1144 * features/s390-linux64.xml: Likewise.
1145 * features/s390x-linux64.xml: Likewise.
1146 * features/s390-linux32v1.xml: New file.
1147 * features/s390-linux32v2.xml: Likewise.
1148 * features/s390-linux64v1.xml: Likewise.
1149 * features/s390-linux64v2.xml: Likewise.
1150 * features/s390x-linux64v1.xml: Likewise.
1151 * features/s390x-linux64v2.xml: Likewise.
1152
1153 * features/s390-linux32.c: Regenerate.
1154 * features/s390-linux64.c: Likewise.
1155 * features/s390x-linux64.c: Likewise.
1156 * features/s390-linux32v1.c: New generated file.
1157 * features/s390-linux32v2.c: Likewise.
1158 * features/s390-linux64v1.c: Likewise.
1159 * features/s390-linux64v2.c: Likewise.
1160 * features/s390x-linux64v1.c: Likewise.
1161 * features/s390x-linux64v2.c: Likewise.
1162
1163 * regformats/s390-linux32.dat: Regenerate.
1164 * regformats/s390-linux64.dat: Regenerate.
1165 * regformats/s390x-linux64.dat: Regenerate.
1166 * regformats/s390-linux32v1.dat: New generated file.
1167 * regformats/s390-linux32v2.dat: Likewise.
1168 * regformats/s390-linux64v1.dat: Likewise.
1169 * regformats/s390-linux64v2.dat: Likewise.
1170 * regformats/s390x-linux64v1.dat: Likewise.
1171 * regformats/s390x-linux64v2.dat: Likewise.
1172
1173 2011-12-05 Pedro Alves <pedro@codesourcery.com>
1174
1175 * linux-nat.c (resume_stopped_resumed_lwps): Call
1176 registers_changed.
1177
1178 2011-12-05 Pedro Alves <pedro@codesourcery.com>
1179
1180 * breakpoint.c: Include record.h.
1181 (breakpoints_always_inserted_mode): Return false when the record
1182 target is in use.
1183
1184 2011-12-05 Pedro Alves <pedro@codesourcery.com>
1185
1186 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
1187 Reinstate perror_with_name call on ptrace error. Remove #if 0.
1188 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
1189 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
1190
1191 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
1192
1193 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
1194 `i'(-Wshadow).
1195
1196 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
1197
1198 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
1199
1200 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
1201
1202 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
1203 of `tdep'(-Wshadow).
1204
1205 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1206
1207 Fix compilation --without-expat.
1208 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
1209 from ...
1210 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
1211
1212 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
1213 Jan Kratochvil <jan.kratochvil@redhat.com>
1214
1215 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
1216 * features/library-list-svr4.dtd: New file.
1217 * remote.c (PACKET_qXfer_libraries_svr4): New.
1218 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
1219 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
1220 * solib-svr4.c (struct svr4_library_list): New.
1221 [HAVE_LIBEXPAT]: Include xml-support.h.
1222 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
1223 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
1224 [HAVE_LIBEXPAT] (svr4_library_list_children)
1225 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
1226 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
1227 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
1228 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
1229 (svr4_read_so_list): Extend the corruption message by addresses.
1230 (svr4_current_sos): New variable library_list, call
1231 svr4_current_sos_via_xfer_libraries.
1232 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
1233
1234 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1235
1236 PR threads/13448
1237 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
1238 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
1239
1240 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1241
1242 PR breakpoints/13346
1243 * dwarf2read.c (process_psymtab_comp_unit): Set
1244 PSYMTABS_ADDRMAP_SUPPORTED.
1245 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
1246 validity. New field psymtabs_addrmap_supported.
1247 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
1248 psymtabs_addrmap_supported.
1249 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
1250 !PSYMTABS_ADDRMAP_SUPPORTED.
1251 (dump_psymtab, maintenance_info_psymtabs): Print also
1252 psymtabs_addrmap_supported.
1253
1254 2011-12-01 Doug Evans <dje@google.com>
1255
1256 * python/py-type.c (type_object_methods): Fix "array" doc string.
1257
1258 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
1259
1260 * source.c (print_source_lines_base): Fix missing braces on else
1261 clause leading to additional output.
1262
1263 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1264
1265 * s390-nat.c (SUBOFF): Remove.
1266 (s390_native_supply, s390_native_collect): New functions.
1267 (supply_gregset, supply_fpregset): Use s390_native_supply.
1268 (fill_gregset, fill_fpregset): Use s390_native_collect.
1269
1270 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
1271 (s390_unwind_pseudo_register): New function.
1272 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
1273 registers instead of PC and CC.
1274 (s390_backchain_frame_unwind_cache): Likewise.
1275 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
1276 full GPR pseudos.
1277 (s390_trad_frame_prev_register): New function.
1278 (s390_frame_prev_register): Use it.
1279 (s390_sigtramp_frame_prev_register): Likewise.
1280 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
1281 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
1282 special callback to unwind any pseudo.
1283
1284 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
1285 * features/s390-core64.xml: Likewise.
1286 * features/s390x-core64.xml: Likewise.
1287 * features/s390-linux32.c: Regenerate.
1288 * features/s390-linux64.c: Likewise.
1289 * features/s390x-linux64.c: Likewise.
1290
1291 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1292
1293 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
1294
1295 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1296
1297 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
1298 instruction. Add more diagnostic output.
1299
1300 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
1301
1302 * MAINTAINERS (Write After Approval): Add myself to the list.
1303
1304 2011-11-29 Sanjoy Das <sdas@igalia.com>
1305
1306 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
1307 (jit_bfd_try_read_symtab): Fix comments.
1308
1309 2011-11-28 DJ Delorie <dj@redhat.com>
1310
1311 * NEWS: Mention RL78 simulator.
1312
1313 2011-11-28 Joel Brobecker <brobecker@adacore.com>
1314
1315 * symfile.h (struct quick_symbol_functions): Fix the documentation
1316 of field map_matching_symbols, as symbols are sorted using
1317 strcmp_iw_ordered, not strcmp_iw.
1318
1319 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
1320
1321 * symfile.h (struct quick_symbol_functions): Update the
1322 documentation for field map_matching_symbols.
1323
1324 2011-11-28 Joel Brobecker <brobecker@adacore.com>
1325
1326 * ada-lang.c (compare_names): Fix wrong return value in case
1327 string1 starts with the same contents as string2, followed
1328 by an underscore that do not start a symbol name suffix.
1329
1330 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
1331
1332 PR python/13369
1333 PR python/13374
1334
1335 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
1336 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1337 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
1338 exceptions.
1339 * python/py-type.c (typy_strip_typedefs): Ditto.
1340 (typy_legacy_template_argument): Ditto.
1341 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1342 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
1343
1344 2011-11-27 Joel Brobecker <brobecker@acacore.com>
1345
1346 * remote.c (remote_get_tracepoint_status): Delete addrbuf
1347 local variable. Avoid use of sprintf_vma.
1348
1349 2011-11-27 Sanjoy Das <sdas@igalia.com>
1350
1351 Fix regression in jit.exp.
1352 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1353 (jit_register_code): Set the jit_objfile_data field to the correct
1354 value.
1355
1356 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
1357
1358 * alpha-tdep.c (br_opcode): New.
1359 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1360 (alpha_deal_with_atomic_sequence): New function.
1361 (alpha_gdbarch_init): Handle single stepping of atomic sequences
1362 with alpha_deal_with_atomic_sequence.
1363
1364 2011-11-24 Tristan Gingold <gingold@adacore.com>
1365
1366 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1367 fields. Add oso_sym, end_sym and nbr_syms.
1368 (macho_register_oso): Change interface.
1369 (macho_symtab_add_minsym): New function.
1370 (macho_symtab_read): Rewritten.
1371 (get_archive_prefix_len): Remove trailing blanks.
1372 (oso_el_compare_name): Add comment.
1373 (struct macho_sym_hash_entry): New structure.
1374 (macho_relocate_common_syms): Remove.
1375 (macho_sym_hash_newfunc): New function.
1376 (macho_resolve_oso_sym_with_minsym): Likewise.
1377 (macho_add_oso_symfile): Rewritten.
1378 (macho_symfile_read_all_oso): Remove trailing blanks.
1379 Adjust code to free oso vector.
1380 (macho_symfile_read): Likewise.
1381 Move code to initialize minimal symbol
1382
1383 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
1384
1385 * mips-tdep.c (extended_offset): Fix formatting.
1386
1387 2011-11-23 Doug Evans <dje@google.com>
1388
1389 * dwarf2read.c (dw2_lookup_symtab): Add comment.
1390 (dw2_expand_symtabs_with_filename): Ditto.
1391 (dw2_expand_symtabs_matching): Ditto.
1392 (dw2_map_symbol_filenames): Ditto.
1393
1394 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1395
1396 * ada-lang.c (assign_aggregate): Minor reformatting.
1397
1398 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1399
1400 * ada-lang.c (assign_aggregate): Remove declaration of local
1401 variable `i' which is shadowing another variable with the same
1402 name declared in the outer scope.
1403
1404 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1405
1406 * ada-lang.c (get_base_type): Renames base_type. Adjust all
1407 calls throughout this file.
1408
1409 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1410
1411 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1412 FormatMessage.
1413
1414 2011-11-22 Tom Tromey <tromey@redhat.com>
1415
1416 PR mi/8444:
1417 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1418 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1419 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1420 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1421 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1422 (print_it_catch_syscall, print_it_catch_exec)
1423 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
1424 (bpstat_print): Add 'kind' argument. Handle
1425 TARGET_WAITKIND_LOADED.
1426 * infrun.c (normal_stop): Update for bpstat_print change. Don't
1427 handle TARGET_WAITKIND_LOADED here.
1428 * breakpoint.h (bpstat_print): Update.
1429
1430 2011-11-22 Tom Tromey <tromey@redhat.com>
1431
1432 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1433
1434 2011-11-22 Tom Tromey <tromey@redhat.com>
1435
1436 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1437 Use static_assert to check the size of
1438 async_reason_string_lookup.
1439 * common/gdb_assert.h (static_assert): New macro.
1440
1441 2011-11-22 Alan Modra <amodra@gmail.com>
1442
1443 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1444 destination calculation. Don't expect >> to sign extend. Don't
1445 add a break if branch lands inside the sequence anywhere.
1446
1447 2011-11-21 Keith Seitz <keiths@redhat.com>
1448
1449 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1450 -var-evaluate-expression of an enumeration and fix expected result.
1451 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1452
1453 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1454
1455 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1456 the case where osdata->items is empty. Rename column names to a
1457 canonical form to avoid problems with unusual column names.
1458
1459 2011-11-21 Yao Qi <yao@codesourcery.com>
1460
1461 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1462
1463 2011-11-20 Stan Shebs <stan@codesourcery.com>
1464
1465 * NEWS: Mention tracepoint additions.
1466 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1467 * breakpoint.c (print_one_breakpoint_location): Identify
1468 tracepoints as such when reporting hit counts, report
1469 trace buffer usage.
1470 (create_tracepoint_from_upload): Copy status info.
1471 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1472 add fields user_name, notes, start_time, stop_time.
1473 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1474 * tracepoint.c (trace_user): New global.
1475 (trace_notes): New global.
1476 (trace_stop_notes): New global.
1477 (start_tracing): Add argument and trace note handling.
1478 (stop_tracing): Ditto.
1479 (trace_start_command): Add notes argument.
1480 (trace_stop_command): Ditto.
1481 (trace_status_command): Report additional status info.
1482 (trace_status_mi): Similarly.
1483 (trace_save): Update, record tracepoint status.
1484 (set_disconnected_tracing): Call target method directly.
1485 (send_disconnected_tracing_value): Remove.
1486 (set_trace_user): New function.
1487 (set_trace_notes): New function.
1488 (set_trace_stop_notes): New function.
1489 (parse_trace_status): Handle additional status.
1490 (parse_tracepoint_status): New function.
1491 (parse_tracepoint_definition): Call it.
1492 (tfile_get_tracepoint_status): New function.
1493 (init_tfile_ops): Use it.
1494 (_initialize_tracepoint): Add new setshows.
1495 * target.h (struct target_ops): New methods to_get_tracepoint_status
1496 and to_set_trace_notes.
1497 (target_get_tracepoint_status): New macro.
1498 (target_set_trace_notes): New macro.
1499 * target.c (update_current_target): Add new methods.
1500 * remote.c (remote_get_tracepoint_status): New function.
1501 (remote_set_trace_notes): New function.
1502 (init_remote_ops): Add them.
1503 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1504 (mi_cmd_trace_stop): Ditto.
1505
1506 2011-11-20 Sanjoy Das <sdas@igalia.com>
1507
1508 * jit.c: Include regcache.h.
1509 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1510 (jit_unwind_reg_set_impl, free_reg_value_impl)
1511 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1512 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1513 (jit_frame_prev_register, jit_dealloc_cache)
1514 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1515 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1516 jit_prepend_unwinder.
1517 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1518
1519 2011-11-20 Sanjoy Das <sdas@igalia.com>
1520
1521 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1522 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1523 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1524 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1525 (finalize_symtab, jit_object_close_impl)
1526 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1527 (free_objfile_data): New functions.
1528 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1529 function.
1530
1531 2011-11-20 Sanjoy Das <sdas@igalia.com>
1532
1533 * jit.c: Include gdb-dlfcn.h.
1534 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1535 (jit_reader_load, jit_reader_load_command)
1536 (jit_reader_unload_command): New functions.
1537 (_initialize_jit): Add commands "jit-reader-load" and
1538 "jit-reader-unload".
1539
1540 2011-11-20 Sanjoy Das <sdas@igalia.com>
1541
1542 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1543 * config.in: Add new #define HAVE_LIBDL.
1544 * configure.ac: Add check for -ldl.
1545 * configure: Re-generated by autoconf.
1546 * gdb-dlfcn.c: New file.
1547 * gdb-dlfcn.h: New file.
1548
1549 2011-11-20 Sanjoy Das <sdas@igalia.com>
1550
1551 * config.in: Add new #defines: JIT_READER_DIR and
1552 JIT_READER_DIR_RELOCATABLE.
1553 * configure.ac: New GDB directory entry for jit-reader-dir.
1554 * configure: Re-generated by autoconf.
1555 * jit.c: New static variable: const char *jit_reader_dir.
1556 (_initialize_jit): Relocate jit_reader_dir.
1557
1558 2011-11-20 Sanjoy Das <sdas@igalia.com>
1559
1560 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1561 $(includedir)/gdb.
1562 * configure.ac: Generate a correct value for TARGET_PTR for
1563 jit-reader.h. Tell configure to generate jit-reader.h from
1564 jit-reader.in.
1565 * configure: Re-generated by autoconf.
1566 * jit-reader.in: New file.
1567 * jit.c: Include jit-reader.h.
1568
1569 2011-11-20 Sanjoy Das <sdas@igalia.com>
1570
1571 * MAINTAINERS (Write After Approval): Add myself to the list.
1572
1573 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1574
1575 * findvar.c (read_frame_register_value): Respect value_offset
1576 of the register value. Remove big-endian special case.
1577
1578 2011-11-18 Tom Tromey <tromey@redhat.com>
1579
1580 PR build/7196:
1581 * remote.c (putpkt_for_catch_errors): New function.
1582 (remote_kill): Use it.
1583
1584 2011-11-18 Yao Qi <yao@codesourcery.com>
1585
1586 * breakpoint.c (create_breakpoint): Produce query message according to
1587 breakpoint's type.
1588 Allocate tracepoint per correct type.
1589 Don't check SALs for pending fast tracepoints.
1590 * tracepoint.c (process_tracepoint_on_disconnect): New.
1591 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1592
1593 2011-11-18 Yao Qi <yao@codesourcery.com>
1594
1595 * breakpoint.c (install_breakpoint): Add one more parameter so that
1596 update_global_location_list is called conditionally.
1597 (create_fork_vfork_event_catchpoint): Update.
1598 (create_syscall_event_catchpoint): Update.
1599 (create_breakpoint_sal): Update.
1600 (create_breakpoint_sal): Update. Call do_cleanups before
1601 install_breakpoint.
1602 * ada-lang.c (create_ada_exception_catchpoint): Update.
1603 * breakpoint.h (install_breakpoint): Update declaration.
1604
1605 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1606
1607 * spu-tdep.c (spu_return_value): Fix handling of
1608 TYPE_CALLING_CONVENTION annotation.
1609
1610 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1611
1612 * skip.c (skip_function_command): Work around uninitialized
1613 variable warning.
1614
1615 2011-11-16 David S. Miller <davem@davemloft.net>
1616
1617 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1618 'tv_usec' to long for printf since these fields have a type which
1619 varies.
1620
1621 2011-11-15 Doug Evans <dje@google.com>
1622
1623 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1624
1625 2011-11-15 Paul Koning <paul_koning@dell.com>
1626
1627 * python/py-type.c (typy_get_composite): New function.
1628 (typy_nonzero): New function.
1629 (typy_values): Rename from typy_fields.
1630 (typy_fields): New function.
1631 (typy_length): Raise exception if not struct, union, or enum type.
1632 (typy_getitem): Ditto.
1633 (typy_has_key): Ditto.
1634 (typy_make_iter): Ditto.
1635
1636 2011-11-15 Doug Evans <dje@google.com>
1637
1638 PR gdb/8367
1639 * NEWS: Mention new parameter basenames-may-differ.
1640 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1641 ! basenames_may_differ.
1642 * psymtab.c (lookup_partial_symtab): Ditto.
1643 * symtab.c (lookup_symtab): Ditto.
1644 (basenames_may_differ): New global.
1645 (_initialize_symtab): New parameter basenames-may-differ.
1646 * symtab.h (basenames_may_differ): Declare.
1647
1648 2011-11-15 Pedro Alves <pedro@codesourcery.com>
1649 Luis Machado <lgustavo@codesourcery.com>
1650
1651 * auxv.c: Include observer.h.
1652 (auxv_inferior_data_cleanup): New.
1653 (invalidate_auxv_cache_inf): New.
1654 (invalidate_auxv_cache): New.
1655 (get_auxv_inferior_data): New.
1656 (auxv_inferior_data): New static global.
1657 (auxv_info): New structure.
1658 (target_auxv_search): Use get_auxv_inferior_data instead of
1659 target_read_alloc and don't free cached buffers.
1660 (fprint_target_auxv): Likewise
1661 (_initialize_auxv): Register per-inferior auxv cache and register
1662 observers to invalidate auxv cache when needed.
1663
1664 2011-11-14 Doug Evans <dje@google.com>
1665
1666 PR gdb/7200 Make "!" an alias for "shell".
1667 * NEWS: Add mention.
1668 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1669 adding "!" command, always add it.
1670 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1671 command of length one.
1672
1673 2011-11-14 Stan Shebs <stan@codesourcery.com>
1674 Kwok Cheung Yeung <kcy@codesourcery.com>
1675
1676 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1677 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1678 the minimum instruction size for fast tracepoints.
1679 * target.h (struct target_ops): Add new method
1680 to_get_min_fast_tracepoint_insn_len.
1681 (target_get_min_fast_tracepoint_insn_len): New.
1682 * target.c (update_current_target): Set up new target operation.
1683 * remote.c (remote_write_bytes_aux): Fix typo.
1684 (remote_get_min_fast_tracepoint_insn_len): New.
1685 (init_remote_ops): Initialize new field.
1686
1687 2011-11-14 Tom Tromey <tromey@redhat.com>
1688
1689 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1690 (encode_actions): Likewise.
1691
1692 2011-11-14 Yao Qi <yao@codesourcery.com>
1693
1694 * remote.c (struct remote_state): <install_in_trace> new field.
1695 (PACKET_InstallInTrace): New enum value.
1696 (remote_install_in_trace_feature): Support InstallInTrace.
1697 (remote_supports_install_in_trace): Likewise.
1698 (remote_protocol_features): Likewise.
1699 (_initialize_remote): Likewise.
1700 (remote_can_download_tracepoint): New.
1701 * target.h (struct target): New field
1702 `to_can_download_tracepoint'.
1703 (target_can_download_tracepoint): New macro.
1704 * target.c (update_current_target): Update.
1705 * breakpoint.h (struct bp_location): Add comment on field
1706 `duplicate'.
1707 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1708 and tracepoint.
1709 (remove_breakpoints): Don't remove tracepoints.
1710 (tracepoint_locations_match ): New.
1711 (breakpoint_locations_match): Call it.
1712 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1713 (download_tracepoint_locations): New.
1714 (update_global_location_list): Call it.
1715 * tracepoint.c (find_matching_tracepoint): Delete.
1716 (find_matching_tracepoint_location): Renamed from
1717 find_matching_tracepoint. Return bp_location rather than
1718 tracepoint.
1719 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1720 tracepoint is found.
1721
1722 2011-11-14 Yao Qi <yao@codesourcery.com>
1723
1724 * target.h (struct target): <to_download_tracepoint> Change type
1725 of parameter from tracepoint to bp_location.
1726 * target.c (update_current_target): Update.
1727 * tracepoint.c (start_tracing): Update.
1728 * remote.c (remote_download_tracepoint): Remove loop for each location
1729 of a tracepoint.
1730
1731 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1732
1733 * i386-nat.c (i386_insert_hw_breakpoint): Call
1734 i386_update_inferior_debug_regs.
1735 (i386_remove_hw_breakpoint): Likewise.
1736
1737 2011-11-14 Yao Qi <yao@codesourcery.com>
1738
1739 * breakpoint.c (init_raw_breakpoint): Call
1740 add_location_to_breakpoint to replace duplicated code.
1741 (add_location_to_breakpoint): Adjust the breakpoint's
1742 address prior to allocating a location.
1743
1744 2011-11-12 Matt Rice <ratmice@gmail.com>
1745
1746 * macrocmd.c (macro_no_macro_info): New function.
1747 (macro_expand_command): Use macro_no_macro_info.
1748 (macro_expand_once_command): Ditto.
1749 (info_macro_command): Add argument processing,
1750 move info_definitions_command here.
1751 (_initialize_macrocmd): Remove info definitions command.
1752 Add arguments to info macro help text.
1753 * NEWS: Replace info definitions command with new info macro options.
1754
1755 2011-11-11 Keith Seitz <keiths@redhat.com>
1756
1757 PR gdb/12843
1758 * linespec.c (locate_first_half): Keep ':' if it looks
1759 like it could be part of a Windows path starting with
1760 a drive letter.
1761
1762 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1763
1764 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1765 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1766
1767 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1768
1769 * target.c (target_waitstatus_to_string): Handle
1770 TARGET_WAITKIND_NO_RESUMED.
1771
1772 2011-11-10 Doug Evans <dje@google.com>
1773
1774 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1775 `need_fullname'.
1776 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1777 (map_partial_symbol_filenames): Ditto. All callers updated.
1778 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1779 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1780 parameter need_fullname.
1781
1782 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1783 * source.c (symtab_to_fullname): Ditto.
1784
1785 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1786 * gdb-demangle.h: ... here. New file.
1787 * demangle.c: #include "gdb-demangle.h".
1788 (_initialize_demangler): Use initialize_file_ftype for prototype.
1789 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1790 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1791 from utils.c
1792 * utils.c: Update. #include "gdb-demangle.h".
1793 * symtab.h (asm_demangle): Delete.
1794 (demangle): Move declaration next to use.
1795 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1796 * dwarf2read.c: #include "gdb-demangle.h".
1797 * gnu-v2-abi.c: Ditto.
1798 * jv-typeprint.c: Ditto.
1799 * mdebugread.c: Ditto.
1800 * p-typeprint.c: Ditto.
1801 * stabsread.c: Ditto.
1802 * printcmd.c: Ditto.
1803 (asm_demangle): Delete declaration.
1804 * tui/tui-stack.c: #include "gdb-demangle.h".
1805
1806 * python/py-type.c (typy_fields_items): Call check_typedef.
1807
1808 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1809
1810 * findvar.c (read_frame_register_value): Read the correct bytes
1811 from registers on big-endian architectures.
1812
1813 2011-11-10 Tom Tromey <tromey@redhat.com>
1814
1815 * procfs.c (load_syscalls): Make a cleanup.
1816 (open_procinfo_files): fd==0 is ok.
1817
1818 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1819
1820 * procfs.c (iterate_over_mappings): Call do_cleanups before
1821 returning.
1822
1823 2011-11-09 Doug Evans <dje@google.com>
1824
1825 * gdbtypes.c (check_typedef): Document that this function can
1826 throw an exception.
1827
1828 2011-11-09 Tom Tromey <tromey@redhat.com>
1829
1830 PR c++/13342:
1831 * valops.c (value_full_object): Return early if real type is
1832 smaller than the enclosing type.
1833
1834 2011-11-08 Yao Qi <yao@codesourcery.com>
1835
1836 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1837
1838 2011-11-08 Meador Inge <meadori@codesourcery.com>
1839
1840 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1841 register when the frame can't be determined.
1842 * arm-tdep.c (arm_analyze_prologue): Ditto.
1843
1844 2011-11-07 Stan Shebs <stan@codesourcery.com>
1845
1846 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1847
1848 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1849
1850 * infrun.c (handle_inferior_event): Minor reformatting.
1851
1852 2011-11-05 Doug Evans <dje@google.com>
1853
1854 * source.c (forget_cached_source_info_for_objfile): Move call to
1855 objfile->sf->qf->forget_cached_source_info outside of
1856 ALL_OBJFILE_SYMTABS loop.
1857 (forget_cached_source_info): Delete unused variable `s'.
1858
1859 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1860
1861 * i386-nat.c (dr_ref_count): Remove unused variable.
1862
1863 2011-11-05 Doug Evans <dje@google.com>
1864
1865 * main.c (captured_main): Set lim_at_start before calling
1866 make_command_stats_cleanup.
1867
1868 2011-11-04 Doug Evans <dje@google.com>
1869
1870 * utils.c: #include "timeval-utils.h".
1871 (cmd_stats): Rename start_time to start_cpu_time.
1872 New member start_wall_time.
1873 (report_command_stats): Report wall time.
1874 (make_command_stats_cleanup): Record start wall time.
1875
1876 2011-11-04 Tom Tromey <tromey@redhat.com>
1877
1878 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1879
1880 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1881
1882 * coff-pe-read.c: Include defs.h before bfd.h.
1883
1884 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1885
1886 PR Python/13345
1887
1888 * python/python.c (python_run_simple_file): Expand tilde in path.
1889
1890 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1891
1892 PR Python/13363
1893
1894 * python/py-type.c (typy_lookup_type): Do not return a type in
1895 an exception handler.
1896
1897 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1898 Eli Zaretskii <eliz@gnu.org>
1899
1900 * linux-nat.c (_initialize_linux_nat): Improve help
1901 for `info proc stat', `info proc status', `info proc cwd',
1902 `info proc cmdline' and `info proc exe'.
1903
1904 2011-11-02 Stan Shebs <stan@codesourcery.com>
1905
1906 String collection for tracepoints.
1907 * NEWS: Mention string collection.
1908 * common/ax.def (tracenz): New bytecode.
1909 * ax-gdb.h (trace_string_kludge): Declare.
1910 * ax-gdb.c: Include valprint.h and c-lang.h.
1911 (trace_string_kludge): New global.
1912 (gen_traced_pop): Add string case.
1913 (agent_command): Add string case.
1914 * tracepoint.h (decode_agent_options): Declare.
1915 * tracepoint.c: Include cli-utils.h.
1916 (decode_agent_options): New function.
1917 (validate_actionline): Call it.
1918 (encode_actions_1): Ditto.
1919 * target.h (struct target_ops): New method to_supports_string_tracing.
1920 (target_supports_string_tracing): New macro.
1921 * target.c (update_current_target): Add to_supports_string_tracing.
1922 * remote.c (struct remote_state): New field string_tracing.
1923 (remote_string_tracing_feature): New function.
1924 (remote_protocol_features): New feature tracenz.
1925 (remote_supports_string_tracing): New function.
1926 (init_remote_ops): Set to_supports_string_tracing.
1927
1928 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1929 Jan Kratochvil <jan.kratochvil@redhat.com>
1930
1931 * linux-nat.c: Include cli/cli-utils.h.
1932 (enum info_proc_what): New.
1933 (linux_nat_info_proc_cmd): Rename to ...
1934 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1935 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1936 status_f and stat_f from WHAT. Throw error on extra parameters.
1937 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1938 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1939 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1940 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1941 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1942 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1943 `info proc cmdline', `info proc exe' and `info proc all' as real
1944 subcommands of `info proc'.
1945
1946 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1947
1948 * Makefile.in: (SFILES): Add skip.c.
1949 (HFILES_NO_SRCDIR): Add skip.h.
1950 (COMMON_OBS): Add skip.o.
1951 * skip.h, skip.c: New.
1952 * breakpoint.h (set_default_breakpoint): Remove.
1953 (get_sal_arch): Declare.
1954 * breakpoint.c: Remove default_breakpoint_valid,
1955 default_breakpoint_address, default_breakpoint_symtab,
1956 default_breakpoint_line, default_breakpoint_pspace variables.
1957 (get_sal_arch): Make public.
1958 (set_default_breakpoint): Remove.
1959 (parse_breakpoint_sals, create_breakpoint, clear_command,
1960 decode_line_spec_1): Remove uses of default_breakpoint variables;
1961 replaced with function calls into stack.c.
1962 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1963 * cli/cli-cmds.c: Add skiplist.
1964 (init_cmd_lists): Initialize skiplist.
1965 (init_cli_cmds): Fix comment (classes of commands appear in
1966 alphabetical order).
1967 * infrun.c (handle_inferior_event): Add check that we don't step into
1968 a function whose pc is marked for skip.
1969 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1970 last_displayed_addr, last_displayed_symtab, last_displayed_line
1971 variables.
1972 (set_last_displayed_sal): New static function.
1973 (print_frame_info): Switch call to set_default_breakpoint to call to
1974 set_last_displayed_sal.
1975 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1976 get_last_displayed_pspace, get_last_displayed_addr,
1977 get_last_displayed_symtab, get_last_displayed_line,
1978 get_last_displayed_sal): New public functions.
1979 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1980 get_last_displayed_pspace, get_last_displayed_addr,
1981 get_last_displayed_symtab, get_last_displayed_line,
1982 get_last_displayed_sal): Declare.
1983
1984 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1985
1986 * MAINTAINERS (Write After Approval): Add myself to the list.
1987
1988 2011-10-29 Yao Qi <yao@codesourcery.com>
1989
1990 * infcmd.c (disconnect_command): Call disconnect_tracing.
1991
1992 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1993
1994 Code cleanup.
1995 * symtab.c (skip_prologue_sal): Code reformatting.
1996
1997 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1998
1999 PR symtab/13208
2000 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
2001 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
2002 SAI.
2003
2004 2011-10-28 Pedro Alves <pedro@codesourcery.com>
2005
2006 * linux-nat.c (linux_nat_filter_event): Remove `options'
2007 parameter, and dead code that used it. If we're handling a
2008 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
2009 in our lwp list, re-add it.
2010 (check_zombie_leaders): New.
2011 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
2012 wait for children with WNOHANG, and always wait for all children.
2013 Don't check for no resumed children upfront. Simplify wait loop.
2014 Check for zombie thread group leaders after handling all wait
2015 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
2016 unwaited-for children left.
2017 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
2018 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
2019 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
2020 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
2021
2022 2011-10-28 Sterling Augustine <saugustine@google.com>
2023
2024 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
2025 * symtab.c (free_completion_list): New function.
2026 (do_free_completion_list): Likewise.
2027 (default_make_symbol_completion_list_break_on): New variable
2028 back_to. Call make_cleanup and discard_cleanups.
2029 (make_source_files_completion_list): Likewise.
2030
2031 2011-10-28 Paul Koning <paul_koning@dell.com>
2032
2033 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
2034 * NEWS: Mention deep_items.
2035
2036 2011-10-28 Alen Skondro <askondro@gmail.com>
2037
2038 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
2039 defined.
2040
2041 2011-10-27 Meador Inge <meadori@codesourcery.com>
2042
2043 * MAINTAINERS (Write After Approval): Add myself to the list.
2044
2045 2011-10-27 Joel Brobecker <brobecker@adacore.com>
2046
2047 * value.h (read_frame_register_value): Add declaration.
2048 * findvar.c (read_frame_register_value): New function.
2049 (value_from_register): Use read_frame_register_value
2050 instead of get_frame_register_value + value_contents_copy
2051 to get value contents.
2052
2053 2011-10-27 Doug Evans <dje@google.com>
2054
2055 * cli/cli-cmds.c (source_script_with_search): Pass full path to
2056 source_script_from_stream if it may have been found on the search path.
2057 * python/py-auto-load.c (source_section_scripts): Pass full path to
2058 source_python_script_for_objfile.
2059 * python/python.c (source_python_script): Delete stream parameter.
2060 All callers updated.
2061 (source_python_script_for_objfile): Ditto.
2062 * python/python-internal.h (source_python_script_for_objfile): Update.
2063 * python/python.h (source_python_script): Update.
2064
2065 2011-10-27 Tom Tromey <tromey@redhat.com>
2066
2067 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
2068 (ada_sals_for_line): Remove declarations.
2069
2070 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
2071
2072 Move unwind reasons to an external .def file
2073 * frame.c (frame_stop_reason_string): Rewrite using
2074 unwind_stop_reasons.def.
2075 * frame.h (enum unwind_stop_reason): Likewise.
2076 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2077 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
2078 constants for bound-checking.
2079 * unwind_stop_reasons.def: New file.
2080 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
2081 instead of a distinct value.
2082
2083 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
2084
2085 PR python/13331
2086
2087 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
2088 (convert_values_to_python): Return on Python tuple allocation
2089 failure. Return NULL on value conversion error.
2090
2091 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
2092
2093 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
2094 (bppy_set_task): Ditto.
2095 (bppy_delete_breakpoint): Ditto.
2096 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
2097 (gdbpy_lookup_global_symbol): Ditto.
2098 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
2099 * python/py-frame.c (frapy_is_valid): Ditto.
2100 (frame_info_to_frame_object): Ditto.
2101 * python/py-type.c (typy_lookup_type): Ditto.
2102 (typy_getitem): Ditto.
2103 (typy_has_key): Ditto.
2104 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
2105
2106 2011-10-26 Joel Brobecker <brobecker@adacore.com>
2107
2108 * gdbarch.h: Regenerate.
2109
2110 2011-10-26 Meador Inge <meadori@codesourcery.com>
2111
2112 * gdbarch.sh (function_list): Use 'pstring' when printing
2113 'gcore_bfd_target'.
2114 * gdbarch.c: Regenerate.
2115
2116 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
2117
2118 * regcache.c (registers_changed_ptid): Invalidate thread architecture
2119 and frame caches if PTID refers to all threads of a process.
2120
2121 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
2122
2123 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
2124 to create_breakpoint.
2125
2126 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
2127
2128 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
2129 (ppc_sysv_abi_push_dummy_call): Use it.
2130 (do_ppc_sysv_return_value): Likewise.
2131 (ppc64_sysv_abi_push_dummy_call): Likewise.
2132 (ppc64_sysv_abi_return_value): Likewise.
2133
2134 2011-10-26 Paul Koning <paul_koning@dell.com>
2135
2136 * python/lib/gdb/types.py (deepitems): New function.
2137
2138 2011-10-25 Paul Koning <paul_koning@dell.com>
2139
2140 PR python/13327
2141
2142 * python/py-value.c (value_to_value_object): Remove fetching of
2143 the value if it was lazy.
2144 (valpy_get_is_lazy): New function.
2145 (valpy_fetch_lazy): New function.
2146
2147 2011-10-24 Joel Brobecker <brobecker@adacore.com>
2148
2149 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
2150 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
2151
2152 2011-10-24 Pedro Alves <pedro@codesourcery.com>
2153
2154 * linux-nat.c (linux_handle_extended_wait): When handling a clone
2155 event, in non-stop, if not stopping, make sure the new lwp has
2156 last_resume_kind set to resume_continue. Assert that when we're
2157 resuming the new lwp, its last_resume_kind is resume_continue.
2158
2159 2011-10-24 Pedro Alves <pedro@codesourcery.com>
2160
2161 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
2162 already set when marking the event thread as not executing in
2163 non-stop mode.
2164
2165 2011-10-24 Pedro Alves <pedro@codesourcery.com>
2166
2167 * infrun.c (handle_inferior_event): Add debug output for
2168 TARGET_WAITKIND_NO_HISTORY.
2169
2170 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
2171
2172 * NEWS: Move set/show extended-prompt to "New Options". Expand
2173 description. Fix typos.
2174
2175 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
2176
2177 PR python/13310
2178
2179 * python/py-param.c (call_doc_function): Correctly deference on
2180 function exit.
2181
2182 2011-10-21 Joel Brobecker <brobecker@adacore.com>
2183
2184 * ada-tasks.c (print_ada_task_info): Fix computation of
2185 number of tasks displayed in command output.
2186
2187 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2188 Ulrich Weigand <uweigand@de.ibm.com>
2189
2190 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
2191 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
2192 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
2193 gdbarch_pc_regnum and frame_unwind_register_unsigned by
2194 gdbarch_unwind_pc.
2195
2196 2011-10-20 Cary Coutant <ccoutant@google.com>
2197
2198 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
2199 section to...
2200 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
2201 flag. Adjust all callers.
2202 (process_psymtab_comp_unit): Remove adjustment for type section.
2203
2204 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
2205
2206 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
2207 arguments by adding OBJFILE. Instead of getting objfile from
2208 symbol's symtab, use new argument OBJFILE.
2209 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
2210 arguments by adding OBJFILE.
2211 * gdb/dwarf2read.c (new_symbol_full): Change call to
2212 cp_scan_for_anonymous_namespaces to match new signature.
2213 * gdb/stabsread.c (define_symbol): Change call to
2214 cp_scan_for_anonymous_namespaces to match new signature.
2215
2216 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
2217
2218 PR python/13308
2219 PR python/13309
2220
2221 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
2222 leak.
2223 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
2224 leak. Delete unused variables.
2225
2226 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
2227
2228 PR python/12656
2229
2230 * python/py-frame.c (frapy_read_var): Use const struct *block.
2231 * python/py-type.c (typy_lookup_typename): Likewise.
2232 (typy_lookup_type): Likewise.
2233 (typy_legacy_template_argument): Likewise.
2234 (typy_template_argument): Likewise.
2235 (gdbpy_lookup_type): Likewise.
2236 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2237 * python/py-block.c (blpy_block_object): Likewise.
2238 (blpy_iter): Likewise.
2239 (blpy_get_start): Likewise.
2240 (blpy_get_end): Likewise.
2241 (blpy_get_function): Likewise.
2242 (blpy_get_superblock): Likewise.
2243 (set_block): Likewise.
2244 (block_to_block_object): Likewise.
2245 (block_object_to_block): Likewise.
2246 (blpy_is_valid): Likewise.
2247 (blpy_get_global_block): New function.
2248 (blpy_get_static_block): New function.
2249 (blpy_is_global): New function.
2250 (blpy_is_static): New function.
2251 * blockframe.c (block_innermost_frame): Likewise.
2252 * valops.c (value_of_variable): Likewise.
2253 * frame.h: Update prototypes.
2254 * python/python-internal.h: Likewise.
2255 * value.h: Likewise.
2256
2257 2011-10-19 Cary Coutant <ccoutant@google.com>
2258
2259 * dwarf2read.c (create_debug_types_hash_table): Fix size of
2260 type_offset field.
2261
2262 2011-10-19 Cary Coutant <ccoutant@google.com>
2263
2264 * dwarf2read.c (peek_abbrev_code): New function.
2265 (dw2_get_file_names): Check for dummy compilation units.
2266 (create_debug_types_hash_table): Likewise.
2267 (process_psymtab_comp_unit): Likewise.
2268 (load_partial_comp_unit): Likewise.
2269 (load_full_comp_unit): Likewise.
2270
2271 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
2272
2273 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
2274 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
2275 pt_phdr if PT_PHDR was found.
2276
2277 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
2278
2279 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
2280 type or "<unnamed type"> when there is no name assigned.
2281 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
2282 avoid a sigint when no name is assigned.
2283
2284 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2285
2286 Revert:
2287 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2288 * dwarf2expr.c (ctx_no_read_reg): New function.
2289 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2290 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2291 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2292 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2293
2294 2011-10-16 Doug Evans <dje@google.com>
2295
2296 * NEWS: Document python gdb.printing.register_pretty_printer's new
2297 `replace' parameter.
2298
2299 2011-10-14 Keith Seitz <keiths@redhat.com>
2300
2301 PR c++/13225
2302 * eval.c (evaluate_subexp_standard): Do not construct
2303 an array of types; pass the value array directly to
2304 find_overload_match.
2305 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
2306 (rank_function): Take an array of values instead of types.
2307 (rank_one_type): Add struct value * parameter.
2308 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
2309 (rank_function): For each argument, pass the argument's
2310 value to rank_one_type.
2311 (rank_one_type): Add VALUE parameter.
2312 If the parameter type is a pointer and the argument type
2313 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
2314 VALUE is zero.
2315 Update all calls to rank_one_type, passing NULL for new
2316 VALUE parameter.
2317 * valarith.c (value_user_defined_cpp_op): Do not construct
2318 an array of types; pass the value array directly to
2319 find_overload_match.
2320 * valops.c (find_overload_method_list): Take an array of
2321 values instead of types.
2322 Save the type of OBJP for later use.
2323 Update calls to find_oload_champ, and find_oload_champ_namespace.
2324 (find_oload_champ_namespace): Take an array of values instead
2325 of types.
2326 (find_oload_champ_namespace_loop): Likewise.
2327 (find_oload_champ): Likewise.
2328 (classify_oload_match): Inspect all arguments
2329 until INCOMPATIBLE is found. Return the worst badness found
2330 otherwise.
2331 (compare_parameters): Update call to rank_one_type.
2332 * value.h (find_overload_match): Take an array of values instead
2333 of types.
2334
2335 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2336
2337 Drop lazy lm_info reading.
2338 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
2339 l_addr_inferior, l_ld, l_next, l_prev and l_name.
2340 (lm_info_read): New function.
2341 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
2342 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
2343 lm_dynamic_from_link_map.
2344 (lm_next, lm_prev, lm_name): Remove.
2345 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
2346 initialization incl. read_memory. No longer use lm_name.
2347 (svr4_free_so): Drop lm_info->lm freeing.
2348 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
2349 explicit lm_addr and lm initialization.
2350 (svr4_read_so_list): Use lm_info_read, drop the initailization of
2351 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
2352 lm_name.
2353
2354 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2355 Paul Pluzhnikov <ppluzhnikov@google.com>
2356
2357 * defs.h (struct so_list): New forward declaration.
2358 (make_cleanup_free_so): New declaration.
2359 * solib-svr4.c (ignore_first_link_map_entry): Remove.
2360 (svr4_free_so): Move the function here from downwards. Handle NULL
2361 so->lm_info.
2362 (svr4_free_library_list): New.
2363 (svr4_read_so_list): New, moved here code from svr4_current_sos.
2364 Use more cleanups. Use new parameter ignore_first instead of
2365 ignore_first_link_map_entry.
2366 (svr4_current_sos): New variable ignore_first, initialize it. New
2367 variable back_to, use it for svr4_free_library_list protection.
2368 (svr4_free_so): Remove - move upwards.
2369 * utils.c: Include solist.h.
2370 (do_free_so, make_cleanup_free_so): New functions.
2371
2372 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2373
2374 Fix internal error regression.
2375 * value.c (value_primitive_field): Handle value_optimized_out. Move
2376 packed bitfields comment.
2377
2378 2011-10-13 Tom Tromey <tromey@redhat.com>
2379
2380 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2381 always released.
2382
2383 2011-10-13 Tom Tromey <tromey@redhat.com>
2384
2385 * python/py-type.c (typy_has_key): Make 'field' const.
2386
2387 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2388
2389 * remote.c (remote_save_trace_data): Invert comparison.
2390
2391 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2392
2393 * tracepoint.c (trace_save_command): Use filename instead of
2394 args when printing.
2395
2396 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2397
2398 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2399 if .size is 0.
2400
2401 2011-10-13 Yao Qi <yao@codesourcery.com>
2402
2403 PR gdb/12703
2404 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2405 whether insn is a 32-bit Thumb-2 instruction.
2406 (thumb_in_function_epilogue_p): Likewise.
2407 (thumb_get_next_pc_raw): Likewise.
2408 (arm_breakpoint_from_pc): Likewise.
2409
2410 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2411
2412 Fix empty DWARF expressions DATA vs. SIZE conditionals.
2413 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2414 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2415 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2416 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2417 zero DATA.
2418 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2419 validity.
2420 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2421 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2422 clear DATA on zero SIZE.
2423
2424 2011-10-12 Doug Evans <dje@google.com>
2425
2426 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2427 header->first_die_offset here. All callers updated.
2428
2429 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2430
2431 Fix compatibility with texinfo versions older than 4.12.
2432 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2433 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2434 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2435 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2436 * configure: Regenerate.
2437 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2438 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2439 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2440
2441 2011-10-12 Gary Benson <gbenson@redhat.com>
2442
2443 * breakpoint.h (pc_at_non_inline_function): Declare.
2444 * breakpoint.c (is_non_inline_function,
2445 pc_at_non_inline_function): New functions.
2446 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2447 if the stop is at a location where functions cannot be inlined.
2448
2449 2011-10-12 Pedro Alves <pedro@codesourcery.com>
2450
2451 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2452 the core wanted them stopped, or if they now have a pending event
2453 to report.
2454 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2455 down to stop_and_resume_callback.
2456 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2457 having new pending events after calling linux_nat_filter_event.
2458
2459 2011-10-11 Sterling Augustine <saugustine@google.com>
2460
2461 * dwarf2read.c: Undo inadvertent changes in previous commit.
2462
2463 2011-10-11 Sterling Augustine <saugustine@google.com>
2464
2465 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2466 logic.
2467
2468 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2469
2470 * symfile.c (separate_debug_file_exists): Fix condition.
2471
2472 2011-10-11 David S. Miller <davem@davemloft.net>
2473
2474 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2475 static.
2476 * regcache.h (regcache_restore): Remove declaration.
2477
2478 * gdbarch.sh: New field 'long_long_align_bit'.
2479 * gdbarch.c, gdbarch.h: Regenerate.
2480 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2481 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2482
2483 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2484
2485 Revert this part of:
2486 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2487 Support @entry in input expressions.
2488 * c-exp.y (ENTRY, unknown_cpp_name): New.
2489 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2490 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2491 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2492 (name_not_typename: ENTRY): New.
2493 (yylex): Recognize ENTRY.
2494
2495 Reimplement @entry in input expressions.
2496 * c-exp.y (ENTRY): New.
2497 (variable: name_not_typename ENTRY): New.
2498 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2499
2500 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2501
2502 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2503 parent and child's pids as soon as we detect a clone event.
2504 Adjust another debug message.
2505
2506 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2507
2508 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2509 not zombie instead of reading the whole file.
2510
2511 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2512
2513 Fix separate debuginfo warning with "remote:" access.
2514 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2515 * symfile.c (get_file_crc): New function with the code moved from ...
2516 (separate_debug_file_exists): ... this function, specifically variables
2517 buffer and count. New variable verified_as_different, set it. Remove
2518 file_crc initialization. Verify also if both files are not the same
2519 manually, if needed.
2520
2521 2011-10-11 Yao Qi <yao@codesourcery.com>
2522
2523 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2524 to get address.
2525
2526 2011-10-10 Doug Evans <dje@google.com>
2527
2528 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2529 libthread_db when we load libpthread or the main symbol file.
2530 (thread_db_inferior_created): New function.
2531 (_initialize_thread_db): Attach inferior_created observer.
2532 * linux-nat.c (linux_child_post_attach): Remove call to
2533 check_for_thread_db.
2534 (linux_child_post_startup_inferior): Ditto.
2535 * objfiles.h (OBJF_MAINLINE): Define.
2536 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2537 allocate_objfile when appropriate.
2538
2539 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2540
2541 PR gdb/13218
2542 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2543 Remove unused variables.
2544 (get_linux_version): Remove function.
2545 (_initialize_arm_linux_nat): Do not call it.
2546
2547 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2548
2549 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2550 new clone lwp if the core asked it to stop. Don't pass on
2551 unexpected signals to the new clone; leave them pending instead.
2552
2553 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2554
2555 * linux-nat.c (resume_lwp): Remove redundant debug output.
2556
2557 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2558
2559 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2560 last_resume_kind before clearing it, and use the copy instead to
2561 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2562 resume_clear_callback in the non-stop path too.
2563
2564 2011-10-09 Yao Qi <yao@codesourcery.com>
2565
2566 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2567 Honor OPTIONS and VAL's type.
2568 (common_val_print, value_print): Update to pass one more parameter.
2569
2570 2011-10-09 Doug Evans <dje@google.com>
2571
2572 Add new "alias" command.
2573 * NEWS: Mention new command.
2574 * command.h (valid_user_defined_cmd_name_p): Declare.
2575 * defs.h (make_cleanup_dyn_string_delete): Declare.
2576 * utils.c: #include "dyn-string.h".
2577 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2578 * cli/cli-cmds.c: #include "dyn-string.h".
2579 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2580 (init_cli_cmds): Add new command.
2581 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2582
2583 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2584
2585 Fix compatibility with older GCCs.
2586 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2587 * stack.c (read_frame_arg): Initialize val_deref.
2588
2589 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2590
2591 Entry values NEWS entries, DWARF disassembly support.
2592 * NEWS: New entry values entry.
2593 (set print entry-values, show print entry-values)
2594 (set debug entry-values, show debug entry-values): New entries.
2595 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2596 indent. Remove variable start. Move header printing out. Respect
2597 INDENT. Support DW_OP_GNU_entry_value.
2598 (locexpr_describe_location_1): Move the header printing here, extend
2599 the disassemble_dwarf_expression passed parameters.
2600
2601 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2602
2603 Display @entry parameter values even for references.
2604 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2605 coerce_ref_if_computed.
2606 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2607 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2608 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2609 existing push_dwarf_reg_entry_value call. Add new detection calling
2610 dwarf_block_to_dwarf_reg_deref. Update the error message.
2611 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2612 * dwarf2expr.h
2613 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2614 parameter deref_size, describe it in the comment.
2615 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2616 (dwarf_block_to_dwarf_reg_deref): New declaration.
2617 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2618 deref_size, describe it in the function comment. New variables
2619 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2620 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2621 describe it in the function comment. Fetch the alternative block
2622 accoring to DEREF_SIZE.
2623 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2624 (entry_data_value_free_closure, entry_data_value_funcs): New.
2625 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2626 outer_val, target_val, val and addr. Try to fetch and create also
2627 referenced value content.
2628 (pieced_value_funcs): NULL value for coerce_ref.
2629 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2630 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2631 coerce_ref_if_computed.
2632 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2633 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2634 * stack.c (read_frame_arg): Compare also dereferenced values.
2635 * value.c (value_computed_funcs): Make the parameter v const, use
2636 value_lval_const for it.
2637 (value_lval_const, coerce_ref_if_computed): New function.
2638 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2639 * value.h (struct lval_funcs): New field coerce_ref.
2640 (value_computed_funcs): Make the parameter v const.
2641 (value_lval_const, coerce_ref_if_computed): New declarations.
2642
2643 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2644
2645 Support @entry in input expressions.
2646 * c-exp.y (ENTRY, unknown_cpp_name): New.
2647 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2648 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2649 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2650 (name_not_typename: ENTRY): New.
2651 (yylex): Recognize ENTRY.
2652 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2653 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2654 Likewise.
2655 * parse.c (operator_length_standard): Likewise.
2656 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2657
2658 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2659
2660 Display referenced values in backtraces.
2661 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2662 * stack.c (print_frame_arg): Likewise.
2663
2664 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2665
2666 Make some lval_funcs methods to default on NULL.
2667 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2668 NULL.
2669 (value_assign): Check if lval_computed write method is NULL.
2670 * value.h (struct lval_funcs): Comment NULL values for read and write
2671 methods.
2672
2673 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2674
2675 Display @entry parameter values (without references).
2676 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2677 New functions.
2678 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2679 New declarations.
2680 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2681 entry record.
2682 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2683 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2684 functions.
2685 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2686 (loclist_read_variable_at_entry): New function.
2687 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2688 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2689 DW_AT_location, call dwarf_block_to_sp_offset for it.
2690 * frame.h (print_entry_values_no, print_entry_values_only)
2691 (print_entry_values_preferred, print_entry_values_if_needed)
2692 (print_entry_values_both, print_entry_values_compact)
2693 (print_entry_values_default, print_entry_values): New declarations.
2694 (struct frame_arg): New field entry_kind.
2695 (read_frame_arg): New parameter entryargp.
2696 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2697 arg->entry_kind. Optionally print the `@entry' suffix.
2698 (list_args_or_locals): New variable entryarg, initialize it.
2699 Initialize also entry_kind of arg and entryarg. Conditionalize
2700 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2701 xfree for entryarg.error.
2702 * stack.c (print_entry_values_no, print_entry_values_only)
2703 (print_entry_values_preferred, print_entry_values_if_needed)
2704 (print_entry_values_both, print_entry_values_compact)
2705 (print_entry_values_default, print_entry_values_choices)
2706 (print_entry_values): New variables.
2707 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2708 print the `@entry' suffix, possibly in combination for
2709 print_entry_values_compact.
2710 (read_frame_arg): New parameter entryargp, new variables entryval,
2711 entryval_error and val_equal. Read in also entryargp, respect
2712 print_entry_values, compare the values using val_equal, fill in also
2713 argp->entry_kind (together with entryargp->entry_kind).
2714 (print_frame_args): New variable entryarg, initialize it.
2715 Conditionalize print_frame_arg for arg, add print_frame_arg for
2716 entryarg. Call xfree for entryarg.error.
2717 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2718 * symtab.h (struct symbol_computed_ops): New field
2719 read_variable_at_entry.
2720
2721 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2722
2723 Code reshuffle.
2724 * frame.h (struct frame_arg): New definition.
2725 (read_frame_arg): New declaration.
2726 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2727 (list_args_or_locals): ... the code here. New variable arg, call
2728 read_frame_arg and list_arg_or_local with it. Unify the
2729 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2730 arg.error.
2731 * stack.c (print_frame_arg): New functiom from the code of
2732 print_frame_args.
2733 (read_frame_arg): New function.
2734 (print_frame_args): Remove variable val. New variable arg, call
2735 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2736
2737 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2738
2739 Protect entry values against self tail calls.
2740 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2741 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2742
2743 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2744
2745 Recognize virtual tail call frames.
2746 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2747 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2748 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2749 * dwarf2-frame-tailcall.c: New file.
2750 * dwarf2-frame-tailcall.h: New file.
2751 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2752 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2753 REGS.PREV only after CIE execution.
2754 (struct dwarf2_frame_cache): New field tailcall_cache.
2755 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2756 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2757 parts, try to find entry_cfa_sp_offset. Call
2758 dwarf2_tailcall_sniffer_first.
2759 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2760 when appropriate.
2761 (dwarf2_frame_dealloc_cache): New function.
2762 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2763 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2764 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2765 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2766 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2767 * dwarf2loc.c (func_addr_to_tail_call_list)
2768 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2769 (call_site_find_chain_1, call_site_find_chain): New.
2770 * dwarf2loc.h (struct call_site_chain): New.
2771 (call_site_find_chain): New declaration.
2772 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2773 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2774 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2775 * stack.c (frame_info): Support also TAILCALL_FRAME.
2776
2777 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2778
2779 Tail call sites reader implementation.
2780 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2781 fill in TYPE_TAIL_CALL_LIST.
2782 * gdbtypes.h (struct func_type): New field tail_call_list.
2783 (struct call_site): New field tail_call_next.
2784 (TYPE_TAIL_CALL_LIST): New definition.
2785
2786 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2787
2788 Implement basic support for DW_TAG_GNU_call_site.
2789 * block.c: Include gdbtypes.h and exceptions.h.
2790 (call_site_for_pc): New function.
2791 * block.h (call_site_for_pc): New declaration.
2792 * defs.h: Include hashtab.h.
2793 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2794 declarations.
2795 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2796 ctx_no_push_dwarf_reg_entry_value.
2797 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2798 (dwarf_block_to_dwarf_reg): New function.
2799 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2800 (ctx_no_push_dwarf_reg_entry_value): New function.
2801 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2802 push_dwarf_reg_entry_value.
2803 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2804 declarations.
2805 * dwarf2loc.c: Include gdbcmd.h.
2806 (dwarf_expr_ctx_funcs): New forward declaration.
2807 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2808 (dwarf_expr_reg_to_entry_parameter)
2809 (dwarf_expr_push_dwarf_reg_entry_value): New.
2810 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2811 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2812 (needs_dwarf_reg_entry_value): New function.
2813 (needs_frame_ctx_funcs): Install it.
2814 (_initialize_dwarf2loc): New function.
2815 * dwarf2loc.h (entry_values_debug): New declaration.
2816 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2817 (read_call_site_scope): New forward declaration.
2818 (process_full_comp_unit): Copy call_site_htab.
2819 (process_die): Support DW_TAG_GNU_call_site.
2820 (read_call_site_scope): New function.
2821 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2822 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2823 (cleanup_htab): Delete.
2824 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2825 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2826 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2827 FIELD_LOC_KIND_DWARF_BLOCK.
2828 * gdbtypes.h (enum field_loc_kind): New entry
2829 FIELD_LOC_KIND_DWARF_BLOCK.
2830 (struct main_type): New loc entry dwarf_block.
2831 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2832 (TYPE_FIELD_DWARF_BLOCK): New.
2833 * python/py-type.c: Include dwarf2loc.h.
2834 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2835 internal_error call on unknown FIELD_LOC_KIND.
2836 * symtab.h (struct symtab): New field call_site_htab.
2837 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2838 (core_addr_hash, core_addr_eq): New functions.
2839
2840 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2841
2842 Code reshuffle.
2843 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2844 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2845 calling_convention under func_stuff there.
2846 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2847 (init_type) <TYPE_CODE_FUNC>: Likewise.
2848 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2849 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2850 * gdbtypes.h (enum type_specific_kind): Change
2851 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2852 (struct main_type) <type_specific>: Change calling_convention to
2853 func_stuff. Move calling_convention to ...
2854 (struct func_type): ... this new struct.
2855 (INIT_FUNC_SPECIFIC): New #define.
2856 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2857
2858 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2859
2860 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2861 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2862 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2863 ctx->ref_addr_size. Handle its invalid value.
2864 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2865 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2866 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2867 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2868 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2869 (dwarf2_per_cu_ref_addr_size): New function.
2870
2871 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2872
2873 Code cleanup.
2874 * dwarf2read.c (per_cu_header_read_in): New function.
2875 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2876 variables cu_header_local and cu_headerp.
2877
2878 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2879
2880 Fix initial language detection with -readnow.
2881 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2882 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2883 searches only for global symbols.
2884
2885 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2886
2887 Fix printed anonymous struct name.
2888 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2889 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2890 (anonymous_struct_prefix): New function.
2891 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2892 (dwarf2_name): Strip for anonymous structs any prefixes.
2893
2894 2011-10-07 Doug Evans <dje@google.com>
2895
2896 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2897 `replace'.
2898
2899 * python/lib/gdb/printing.py: Whitespace cleanup.
2900
2901 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2902 warning.
2903
2904 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2905
2906 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2907 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2908 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2909 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2910 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2911 (arm_linux_remove_watchpoint): Adjust.
2912 * i386-linux-nat.c (i386_linux_dr_set_control)
2913 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2914 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2915 (ia64_linux_remove_watchpoint): Adjust.
2916 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2917 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2918 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2919 (ppc_linux_insert_mask_watchpoint)
2920 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2921 (ppc_linux_remove_watchpoint): Adjust.
2922 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2923 Adjust.
2924
2925 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2926
2927 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2928 (clear_win32_environment): New function for Cygwin to clear out
2929 Win32 environment.
2930 (windows_create_inferior): Prepare new environment from in_env
2931 for Cygwin, too.
2932
2933 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2934
2935 PR python/13264
2936 * python/py-value.c (valpy_call): Check that arguments are
2937 a tuple.
2938 (is_intlike): Remove call to CHECK_TYPEDEF.
2939 (valpy_nonzero): Catch GDB exceptions.
2940 (valpy_absolute): Ditto.
2941 (valpy_lazy_string): Ditto.
2942 (valpy_call): Ditto.
2943 (valpy_get_is_optimized_out): Ditto.
2944 (valpy_long): Ditto.
2945 (valpy_float): Ditto.
2946 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2947 (valpy_richcompare): Ditto.
2948
2949 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2950
2951 * inferior.h (disable_randomization): Declare.
2952 * infrun.c (disable_randomization): New global variable.
2953 (show_disable_randomization): New function.
2954 (set_disable_randomization): Likewise.
2955 (_initialize_infrun): Install set/show disable-randomization
2956 commands.
2957 * linux-nat.c (disable_randomization): Remove.
2958 (show_disable_randomization): Likewise.
2959 (set_disable_randomization): Likewise.
2960 (_initialize_linux_nat): No longer install set/show
2961 disable-randomization commands here.
2962 (linux_nat_supports_disable_randomization): New function.
2963 (linux_nat_add_target): Install it.
2964 * remote.c (PACKET_QDisableRandomization): New enum value.
2965 (remote_protocol_packets): Support QDisableRandomization.
2966 (_initialize_remote): Likewise.
2967 (remote_supports_disable_randomization): New function.
2968 (init_remote_ops): Install it.
2969 (extended_remote_supports_disable_randomization): New function.
2970 (init_extended_remote_ops): Install it.
2971 (extended_remote_disable_randomization): New function.
2972 (extended_remote_create_inferior_1): Call it.
2973 * target.h (struct target_ops): Add to_supports_disable_randomization.
2974 (target_supports_disable_randomization): Add prototype.
2975 * target.c (target_supports_disable_randomization): New function.
2976 (find_default_supports_disable_randomization): Likewise.
2977 (init_dummy_target): Install it.
2978
2979 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2980
2981 Allow Python notification of new object-file loadings.
2982 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2983 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2984 Add build rule for this file.
2985 * python/py-event.h (emit_new_objfile_event): New prototype.
2986 (newobjfile): New Python event emitter.
2987 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2988 Python event registry.
2989 * python/py-inferior.c: Include objfiles.h
2990 (python_new_objfile): New function.
2991 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2992 observers.
2993 * python/py-newobjfileevent.c: New file.
2994 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2995 prototype.
2996 * python/python.c (_initialize_python): Add
2997 gdbpy_initialize_new_objfile_event call.
2998 * NEWS: Add item for new Python event "gdb.newobjfile"
2999
3000 2011-10-05 Tristan Gingold <gingold@adacore.com>
3001
3002 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
3003 Extract the ravenscar task name from the symbol for the atcb.
3004
3005 2011-10-04 Paul Koning <paul_koning@dell.com>
3006
3007 * python/py-type.c (typy_make_iter): Add forward declaration.
3008 (typy_fields_items): Use the gdb.Type iterator.
3009
3010 2011-10-04 Paul Koning <paul_koning@dell.com>
3011
3012 * NEWS: Add entry for Python gdb.Type mapping methods.
3013
3014 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
3015
3016 PR python/12691: Add the inferior to Python exited event
3017 * python/py-exitedevent.c (create_exited_event_object): Add inferior
3018 to exited_event.
3019 * python/py-event.h (emit_exited_event): Likewise
3020 * python/-inferior.c (python_inferior_exit): Likewise
3021
3022 2011-10-03 Joel Brobecker <brobecker@adacore.com>
3023
3024 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
3025 in output of -ada-task-info GDB/MI command.
3026
3027 2011-10-03 Joel Brobecker <brobecker@adacore.com>
3028
3029 * ada-lang.h (struct inferior): Declare.
3030 (print_ada_task_info): Add declaration.
3031 * ada-tasks.c (print_ada_task_info): Make non-static.
3032 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
3033 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
3034 * mi/mi-main.c: #include "ada-lang.h".
3035 (mi_cmd_list_features): Add "ada-task-info" to the list
3036 of supported features.
3037 (mi_cmd_ada_task_info): New function.
3038
3039 2011-10-03 Joel Brobecker <brobecker@adacore.com>
3040
3041 * python/python.c (python_run_simple_file): New function.
3042 (source_python_script, source_python_script_for_objfile):
3043 Replace call to PyRun_SimpleFile by call to
3044 python_run_simple_file.
3045
3046 2011-10-03 Paul Koning <paul_koning@dell.com>
3047
3048 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
3049 (value_to_value_object): Fetch value if it was lazy.
3050
3051 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3052
3053 Code cleanup.
3054 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
3055 Rearrange the code for it.
3056
3057 2011-10-02 Joel Brobecker <brobecker@adacore.com>
3058
3059 * breakpoint.c (bkpt_print_recreate): Add call to
3060 print_recreate_thread.
3061
3062 2011-09-29 Mike Frysinger <vapier@gentoo.org>
3063
3064 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3065 PTRACE_GETFDPIC_INTERP): Define.
3066
3067 2011-09-28 Yao Qi <yao@codesourcery.com>
3068
3069 * symfile.c (add_symbol_file_command): Update message on usage.
3070
3071 2011-09-28 Paul Koning <paul_koning@dell.com>
3072
3073 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
3074 (typy_length, typy_get, typy_has_key, typy_make_iter)
3075 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
3076 (typy_iterator_iter, typy_iterator_iternext)
3077 (typy_iterator_dealloc): New functions to implement standard
3078 Python mapping methods on gdb.Type object.
3079 (gdb.TypeIterator): New Python type.
3080 * python/python-internal.h (gdbpy_iter_kind): New enum.
3081
3082 2011-09-28 David S. Miller <davem@davemloft.net>
3083
3084 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
3085 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
3086 * sparc-tdep.c (sparc_complex_floating_p): New function.
3087 (sparc32_store_arguments): Handle complex floats.
3088 (sparc32_extract_return_value): Likewise.
3089 (sparc32_store_return_value): Likewise.
3090 (sparc32_stabs_argument_has_addr): Likewise.
3091 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
3092 (sparc64_store_floating_fields): Handle complex floats.
3093 (sparc64_store_arguments): Likewise.
3094 (sparc64_store_return_value): Likewise.
3095
3096 2011-09-28 Eli Zaretskii <eliz@gnu.org>
3097
3098 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
3099 before the change on 2006-12-09.
3100 (windows_create_inferior) [!__CYGWIN__]: Restore code that
3101 generates the environment block for CreateProcessA, modulo the
3102 Cygwin-specific parts that are not needed here.
3103
3104 2011-09-27 Tristan Gingold <gingold@adacore.com>
3105
3106 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
3107 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
3108 (darwin_solib_get_all_image_info_addr_at_init): New function.
3109 (darwin_solib_read_all_image_info_addr): Likewise.
3110 (darwin_solib_create_inferior_hook): Use the above two functions.
3111 * darwin-nat.c (darwin_execvp): Renames retval to res.
3112 (darwin_read_write_inferior): Update comment.
3113 (darwin_read_dyld_info): New function.
3114 (darwin_xfer_partial): Handle DYLD_INFO.
3115
3116 2011-09-27 Stan Shebs <stan@codesourcery.com>
3117
3118 Add return address collection for tracepoints.
3119 * tracepoint.c (encode_actions_1): Add case for $_ret.
3120 (validate_actionline): Check for $_ret.
3121 (trace_dump_actions): Ditto.
3122 * ax-gdb.h (gen_trace_for_return_address): Declare.
3123 * ax-gdb.c: Include arch-utils.h.
3124 (gen_trace_for_return_address): New function.
3125 (agent_command): Add return address special case.
3126 * amd64-tdep.c: Include ax.h and ax-gdb.h.
3127 (amd64_gen_return_address): New function.
3128 (amd64_init_abi): Call it.
3129 * i386-tdep.c: Include ax.h and ax-gdb.h.
3130 (i386_gen_return_address): New function.
3131 (i386_init_abi): Call it.
3132 * arch-utils.h (default_gen_return_address): Declare.
3133 * arch-utils.c (default_gen_return_address): New function.
3134 * gdbarch.sh (gen_return_address): New method.
3135 * gdbarch.h, gdbarch.c: Regenerate.
3136
3137 2011-09-23 Joseph Myers <joseph@codesourcery.com>
3138
3139 PR gdb/13079
3140 * i386-tdep.c (i386_frame_align): New.
3141 (i386_gdbarch_init): Use i386_frame_align.
3142
3143 2011-09-23 Yao Qi <yao@codesourcery.com>
3144
3145 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
3146 to get address.
3147
3148 2011-09-22 Tristan Gingold <gingold@adacore.com>
3149
3150 * fork-child.c (fork_inferior): Add exec_fun parameter.
3151 Call exec_fun or execvp.
3152 * inferior.h: Adjust prototype.
3153 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
3154 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
3155 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
3156 * procfs.c (procfs_create_inferior): Ditto.
3157 * darwin-nat.c (darwin_execvp): New function.
3158 (darwin_create_inferior): Use it.
3159
3160 2011-09-22 Yao Qi <yao@codesourcery.com>
3161
3162 * infrun.c (context_switch): Print debug message when switching to
3163 a different thread.
3164
3165 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
3166
3167 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
3168 complex and vector types.
3169 (s390_return_value_convention): Likewise.
3170
3171 (s390_value_from_register): Call check_typedef.
3172 (extend_simple_arg): Likewise.
3173 (alignment_of): Likewise.
3174 (s390_push_dummy_call): Likewise.
3175 (s390_return_value): Likewise.
3176
3177 2011-09-21 Joseph Myers <joseph@codesourcery.com>
3178
3179 * event-top.c (async_disconnect): If an exception is thrown from
3180 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
3181 catch_errors.
3182 * top.c (quit_cover): Return void and take no arguments.
3183 * top.h (quit_cover): Update prototype.
3184
3185 2011-09-20 Joseph Myers <joseph@codesourcery.com>
3186
3187 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
3188 current_uiout, not uiout.
3189
3190 2011-09-19 Doug Evans <dje@google.com>
3191
3192 * python/py-auto-load.c (source_section_scripts): Fix file
3193 descriptor leak.
3194 * python/python.c (source_python_script_for_objfile): Tweak comments.
3195
3196 2011-09-18 Yao Qi <yao@codesourcery.com>
3197 Ulrich Weigand <ulrich.weigand@linaro.org>
3198
3199 Support displaced stepping for Thumb 16-bit insns.
3200 * arm-tdep.c (THUMB_NOP) Define.
3201 (thumb_copy_unmodified_16bit): New.
3202 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
3203 (thumb_copy_alu_reg): New.
3204 (arm_copy_svc): Move some common code to ...
3205 (install_svc): ... here. New.
3206 (thumb_copy_svc): New.
3207 (install_pc_relative): New.
3208 (thumb_copy_pc_relative_16bit): New.
3209 (thumb_decode_pc_relative_16bit): New.
3210 (thumb_copy_16bit_ldr_literal): New.
3211 (thumb_copy_cbnz_cbz): New.
3212 (cleanup_pop_pc_16bit_all): New.
3213 (thumb_copy_pop_pc_16bit): New.
3214 (thumb_process_displaced_16bit_insn): New.
3215 (thumb_process_displaced_32bit_insn): New.
3216 (thumb_process_displaced_insn): process thumb instruction.
3217
3218 Support displaced stepping for Thumb 32-bit insns.
3219 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
3220 (thumb2_copy_preload): New.
3221 (thumb2_copy_copro_load_store): New.
3222 (thumb2_copy_b_bl_blx): New.
3223 (thumb2_copy_alu_imm): New.
3224 (thumb2_copy_load_reg_imm): New.
3225 (thumb2_copy_load_literal): New
3226 (thumb2_copy_block_xfer): New.
3227 (thumb_32bit_copy_undef): New.
3228 (thumb_32bit_copy_unpred): New.
3229 (thumb2_decode_ext_reg_ld_st): New.
3230 (thumb2_decode_svc_copro): New.
3231 (decode_thumb_32bit_store_single_data_item): New.
3232 (thumb_copy_pc_relative_32bit): New.
3233 (thumb_decode_pc_relative_32bit): New.
3234 (decode_thumb_32bit_ld_mem_hints): New.
3235 (thumb2_copy_table_branch): New
3236 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
3237 instructions.
3238
3239 2011-09-18 Yao Qi <yao@codesourcery.com>
3240
3241 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
3242 (install_b_bl_blx): Likewise.
3243
3244 2011-09-17 Yao Qi <yao@codesourcery.com>
3245
3246 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
3247 (install_load_store): ... this. New.
3248 Change parameter BYTE to SIZE.
3249 (arm_copy_ldr_str_ldrb_strb): Update caller.
3250 (arm_decode_ld_st_word_ubyte): Update caller.
3251
3252 2011-09-17 Yao Qi <yao@codesourcery.com>
3253
3254 * infrun.c (displaced_step_fixup): Move some code ...
3255 (displaced_step_restore): ... here. New function.
3256 (handle_inferior_event): Cleanup displaced stepping state for both
3257 child and parent when get forked or vforked event.
3258 * regcache.c (get_thread_arch_aspace_regcache): New function.
3259 get_thread_arch_regcache (): Call it.
3260
3261 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3262
3263 * ada-tasks.c (print_ada_task_info): New function, merging
3264 short_task_info and info_tasks together. Reimplement using
3265 ui-out instead of printing to stdout directly. Move the code
3266 building and checking the task list here, instead of leaving it
3267 in info_tasks_command.
3268 (info_task): Move the code building and checking the task
3269 list here, instead of leaving it in info_tasks_command.
3270 (info_tasks_command): Delete code building and checking
3271 the task list - moved elsewhere. Update calls to info_tasks
3272 and info_task.
3273
3274 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3275
3276 * ada-tasks.c (info_task): Delete parameter `from_tty'.
3277
3278 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3279
3280 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
3281
3282 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3283
3284 * ada-lang.h (ada_build_task_list): Remove parameter
3285 `warn_if_null'.
3286 * ada-tasks.c (ada_build_task_list): Remove parameter
3287 `warn_if_null'. Adjust implementation and documentation.
3288 (valid_task_id, ada_get_environment_task)
3289 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
3290 (info_tasks_command): Adjust implementation.
3291 (task_command): Likewise.
3292 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
3293 to ada_build_task_list.
3294
3295 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3296
3297 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
3298 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
3299 (ada_tasks_inferior_data_handle): New static global.
3300 (get_ada_tasks_inferior_data): New function.
3301 (ada_get_task_number, get_task_number_from_id, valid_task_id)
3302 (ada_get_environment_task, iterate_over_live_ada_tasks)
3303 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
3304 Adjust.
3305 (ada_set_current_inferior_known_tasks_addr): New function.
3306 (read_known_tasks, ada_build_task_list, short_task_info)
3307 (info_tasks, info_task, info_tasks_command, task_command_1)
3308 (task_command, ada_task_list_changed): Adjust.
3309 (ada_tasks_invalidate_inferior_data): New function.
3310 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
3311 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
3312 * ada-lang.h (struct inferior): Add declaration.
3313 (ada_task_list_changed): Update profile.
3314 * remote-wtx-pd.c: #include "inferior.h".
3315 (switch_to_pd_internal): Update call to ada_task_list_changed.
3316
3317 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3318
3319 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
3320 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
3321 (atcb_fieldno): Delete these static globals.
3322 (struct ada_tasks_pspace_data): New struct.
3323 (ada_tasks_pspace_data_handle): New static global.
3324 (get_ada_tasks_pspace_data): New function.
3325 (ada_tasks_invalidate_pspace_data): New function.
3326 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
3327 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
3328 (_initialize_tasks): Create this module's per-progspace
3329 data handle.
3330
3331 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3332
3333 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
3334
3335 2011-09-16 Tristan Gingold <gingold@adacore.com>
3336
3337 * fork-child.c (fork_inferior): Update comment. Use alloca
3338 instead of xmalloc for argv. Move len and shell_command
3339 declarations in the block where they are used.
3340 Only call execvp. Factorize failure code.
3341
3342 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
3343
3344 Code cleanup.
3345 * parse.c (write_exp_elt): Change argument to pass a pointer of union
3346 `exp_element' instead of an element of the same and make the function
3347 static.
3348 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
3349 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
3350 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
3351 Change argument of `write_exp_elt' function call.
3352 Remove extra spaces from comments.
3353 * parser-defs.h (write_exp_elt): Remove prototype.
3354
3355 2011-09-15 Paul Koning <paul_koning@dell.com>
3356
3357 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3358 count of item appended to list.
3359 * python/py-type.c (typy_fields): Likewise.
3360
3361 2011-09-15 Paul Koning <paul_koning@dell.com>
3362
3363 * MAINTAINERS (Write After Approval): Add myself to the list.
3364
3365 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3366
3367 PR threads/12628
3368 * linux-fork.c (checkpoint_command): Disallow checkpointing of
3369 processes with multiple threads.
3370 (inf_has_multiple_thread_cb): New function.
3371 (inf_has_multiple_threads): New function.
3372
3373 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3374
3375 PR Python/12692 Add gdb.selected_inferior() to Python interface.
3376 * python/py-inferior.c (GdbMethods): New Python method definition.
3377
3378 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3379
3380 Handle multiple breakpoint hits in Python interface:
3381 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3382 variable to breakpoints.
3383 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3384 bps instead of single breakpoint. Fix some space typos.
3385 * python/py-stopevent.c (create_breakpoint_event_object): Rename
3386 variable to breakpoints.
3387
3388 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3389
3390 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3391 note if the breakpoint is internal.
3392
3393 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3394
3395 * MAINTAINERS (Write After Approval): Add myself to the list
3396
3397 2011-09-14 Pedro Alves <pedro@codesourcery.com>
3398
3399 * infrun.c (prepare_for_detach, wait_for_inferior)
3400 (fetch_inferior_event): Don't flush the register cache.
3401 * remote.c (struct stop_reply) <regcache>: Add comment.
3402
3403 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3404
3405 Remove excessive DWARF expressions memory duplication.
3406 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3407 for block.data.
3408 (indirect_pieced_value): Remove variable result. Remove variable
3409 back_to and its use for baton.data.
3410 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3411 block.data.
3412 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3413 Update the function comment.
3414
3415 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3416
3417 * inferior.h (ALL_INFERIORS): New.
3418 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3419 for a stopped thread.
3420 (thread_db_find_new_threads): Look for threads in all inferiors.
3421
3422 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3423
3424 * breakpoint.c (update_watchpoint): Handle the case of the
3425 watchpoint to update not being in the breakpoint list yet.
3426 (hw_watchpoint_use_count): New, factored out from
3427 hw_watchpoint_used_count.
3428 (hw_watchpoint_used_count): Rename to ...
3429 (hw_watchpoint_used_count_others): ... this. Add `except'
3430 parameter. Don't count resources of `except'. Use
3431 hw_watchpoint_use_count.
3432
3433 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3434
3435 * gdbthread.h (enum thread_state): Moved here.
3436 (struct thread_info): Rename `executing_' field to `executing' and
3437 `state_' to `state'.
3438 * thread.c (enum thread_state): Moved to gdbthread.h.
3439 (new_thread, add_thread_silent, delete_thread_1)
3440 (any_live_thread_of_process, thread_alive, set_running)
3441 (set_running, is_thread_state, any_running, is_executing)
3442 (set_executing, finish_thread_state, print_thread_info)
3443 (do_captured_thread_select): Adjust.
3444
3445 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3446
3447 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3448 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3449
3450 2011-09-12 Pedro Alves <pedro@codesourcery.com>
3451 Matt Rice <ratmice@gmail.com>
3452
3453 PR gdb/13175
3454
3455 * interps.c (struct interp) <interpreter_out>: Delete field.
3456 (interp_new): Remove the data and uiout parameters and adjust.
3457 (interp_set): Only set the current_uiout from the interpreter's
3458 uiout after initializing the interpreter. Adjust call to
3459 init_proc.
3460 (interp_ui_out): Adjust to call procs->ui_out_proc.
3461 (interp_data, interp_name): New.
3462 * interps.h (interp_init_ftype): Add `self' parameter.
3463 (interp_ui_out_ftype): New typedef.
3464 (struct interp_procs) <ui_out_proc>: New method pointer.
3465 (interp_new): Remove the data and uiout parameters.
3466 (interp_data, interp_name): Declare.
3467 * tui/tui-interp.c (tui_init): Adjust prototype.
3468 (tui_ui_out): New.
3469 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3470 tui_out here. Adjust call to interp_new.
3471 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3472 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3473 (cli_ui_out): New.
3474 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3475 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3476 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3477 Initialize mi->uiout depending on the mi_version as extracted from
3478 the interpreter's name.
3479 (mi_ui_out): New.
3480 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3481 interp_new. Don't allocate the ui_out's of the interpreters here.
3482
3483 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
3484
3485 * solib.c (solib_used): New function.
3486 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3487 by another so_list object before freeing it.
3488
3489 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3490
3491 Code cleanup.
3492 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3493 values.
3494
3495 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3496
3497 Code cleanup.
3498 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3499 (amd64_skip_xmm_prologue): ... this new function. Describe its
3500 parameters. No longer use amd64_prologue_line_bug.
3501 * defs.h (producer_is_gcc_ge_4): New declaration.
3502 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3503 (process_full_comp_unit): Update its caller. Remove
3504 amd64_prologue_line_bug initialization.
3505 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3506 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3507
3508 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3509
3510 * linux-nat.h (enum resume_kind): New.
3511 (struct lwp_info) <last_resume_kind>: New field.
3512 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3513 resume_stop on the new lwp.
3514 (add_lwp): Set last_resume_kind as resume_continue by default.
3515 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3516 (resume_lwp): New, factored out from resume_callback. Also check
3517 for pending status in lp->waitstatus.
3518 (resume_callback): Reimplement.
3519 (resume_clear_callback): Set last_resume_kind as resume_stop.
3520 (resume_set_callback): Set last_resume_kind as resume_continue.
3521 (linux_nat_resume, linux_handle_extended_wait): Set
3522 last_resume_kind.
3523 (running_callback): Also check lp->waitstatus for pending events.
3524 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3525 is resume_step.
3526 (stop_and_resume_callback): Don't re-resume if the core wanted the
3527 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3528 using an invalidated pointer.
3529 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3530 SIGSTOPs if the core wanted the LWP to stop.
3531 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3532 wanted the lwp to stop. If the core wanted the lwp to stop, and
3533 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3534 of TARGET_SIGNAL_STOP.
3535 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3536 here. Instead, signal the lwp, and set the last_resume_kind to
3537 resume_stop.
3538
3539 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3540
3541 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3542 -1 (error), if the lwp exits right after attaching.
3543
3544 2011-09-08 Doug Evans <dje@google.com>
3545
3546 * py-cmd.c: Some minor formatting fixes.
3547 (gdbpy_parse_command_name): Rename text arg to name, make const.
3548 All callers updated.
3549 * python-internal.h (gdbpy_parse_command_name): Update.
3550
3551 * cli/cli-decode.c (add_cmd): Add comment.
3552
3553 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3554
3555 PR breakpoints/12435
3556 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3557 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3558 * dwarf2read.c (process_full_comp_unit): Initialize
3559 amd64_prologue_line_bug.
3560 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3561
3562 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3563
3564 Fix TUI screen corruption.
3565 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3566 batch_flag.
3567
3568 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3569
3570 * findvar.c (read_var_value): Never return NULL, throw an error
3571 instead. Update the function comment. State symbol name in the error
3572 messages.
3573 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3574 read_var_value.
3575 * stack.c (print_frame_args): Likewise.
3576 * valops.c (value_of_variable): Likewise.
3577
3578 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3579
3580 * stack.c (print_frame_args): New variable except. Wrap
3581 read_var_value and common_val_print into TRY_CATCH.
3582
3583 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3584
3585 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3586 caller to value_of_this.
3587 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3588 Twice.
3589 * valops.c (value_of_this): Remove parameter complain and variable ret.
3590 Update function comment. Never return NULL by this code.
3591 (value_of_this_silent): New function.
3592 * value.h (value_of_this): Remove parameter complain.
3593 (value_of_this_silent): New declaration.
3594
3595 2011-09-07 Yao Qi <yao@codesourcery.com>
3596
3597 * gdbthread.h (struct thread_info): Remove fields
3598 `stepping_through_solib_after_catch' and
3599 `stepping_through_solib_catchpoints'.
3600 * infrun.c (init_thread_stepping_state): Update.
3601 (process_event_stop_test, currently_stepping): Update.
3602 (currently_stepping_or_nexting_callback): Update.
3603
3604 2011-09-07 Yao Qi <yao@codesourcery.com>
3605
3606 * gdbthread.h (struct thread_info): Comment on field
3607 `step_after_step_resume_breakpoint'.
3608
3609 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3610
3611 * remote.c (remote_console_output): Reindent.
3612
3613 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
3614
3615 * frame.c (has_stack_frames): Check for currently selected
3616 traceframe.
3617
3618 2011-09-06 Pedro Alves <pedro@codesourcery.com>
3619
3620 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3621 (set_async_annotation_level, set_async_prompt, pop_prompt)
3622 (push_prompt, new_async_prompt): Delete declarations.
3623 * top.h (get_prompt, set_prompt): Change prototype.
3624 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3625 declarations.
3626 * top.c (command_loop):
3627 (top_prompt): New global.
3628 (get_prefix, set_prefix, get_suffix, ): Delete.
3629 (get_prompt, set_prompt): Rewrite.
3630 (show_new_async_prompt): Rename to ...
3631 (show_prompt): ... this.
3632 (init_main): Adjust. Don't handle --annotate=2 here.
3633 * event-top.c (new_async_prompt): Delete.
3634 (the_prompts): Delete.
3635 (more_to_come): Make static.
3636 (display_gdb_prompt): Use top_level_prompt() to compute the top
3637 level prompt, and don't notify the before_prompt observers
3638 directly here. Always trick readline into not trying to display
3639 the prompt if sync_execution and displaying the primary prompt.
3640 If displaying a local/secondary prompt, always show it, even if
3641 sync_execution is set.
3642 (change_annotation_level): Delete.
3643 (top_level_prompt): New, based on change_annotation_level.
3644 (push_prompt, pop_prompt): Delete.
3645 (async_disable_stdin): No longer pushes prompt.
3646 (command_line_handler): No longer pushes or pops prompt. If more
3647 input is expected, call display_gdb_prompt with an explicit empty
3648 prompt.
3649 (async_stop_sig): Adjust.
3650 (set_async_annotation_level, set_async_prompt): Delete.
3651 * python/python.c (before_prompt_hook): Adjust.
3652
3653 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3654
3655 PR cli/13110
3656
3657 * infrun.c (fetch_inferior_event): Check if there's a selected
3658 thread before checking if the selected thread is executing.
3659
3660 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3661
3662 * inf-loop.c (execute_command): Don't check if the current thread
3663 if running before synchronously waiting for command completion.
3664 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3665 here.
3666 (normal_stop): Call async_enable_stdin here.
3667 * inf-loop.c (inferior_event_handler): Don't call
3668 async_enable_stdin, nor handle "set exec-done-display" here.
3669
3670 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3671
3672 GDB 7.3.1 released.
3673
3674 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3675
3676 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3677
3678 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3679
3680 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3681
3682 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3683
3684 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3685
3686 2011-09-02 Matt Rice <ratmice@gmail.com>
3687
3688 PR gdb/10720
3689 * event-top.c (cli_command_loop): Replace readline setup with
3690 direct call to display_gdb_prompt.
3691 (display_gdb_prompt): Do not call observer mechanism during
3692 synchronous execution.
3693
3694 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3695
3696 * linux-nat.c (in_pid_list_p): New.
3697 (linux_record_stopped_pid): Delete.
3698 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3699 already attached to the LWP. Return an indication if so.
3700 (linux_nat_filter_event): Adjust.
3701 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3702 returning an indication to ignore this thread.
3703
3704 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3705
3706 * top.c: Include interps.h.
3707 (execute_command): If the target can async, but the interpreter is
3708 in sync mode, synchronously wait for the command to finish before
3709 returning.
3710 (execute_command_to_string): Force the interpreter to sync mode.
3711 * infrun.c: Include interps.h.
3712 (fetch_inferior_event): Don't restore the prompt yet if the
3713 interpreter is in sync mode.
3714 * interps.c (interpreter_async): New global.
3715 * interps.h (interpreter_async): Declare.
3716 * inf-loop.c: Include interps.h.
3717 (inferior_event_handler): Don't print the language change or run
3718 breakpoint commands yet if the interpreter in is sync mode.
3719 * main.c (captured_command_loop): Flip the interpreter to async
3720 mode.
3721 * cli/cli-script.c: Include interps.h.
3722 (execute_user_command, while_command, if_command): Force the
3723 interpreter to sync mode.
3724 * python/python.c: Include interps.h.
3725 (python_command, execute_gdb_command): Force the interpreter to
3726 sync mode.
3727
3728 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3729
3730 * value.c (show_convenience): Catch errors thrown while printing
3731 each internal variable.
3732 * infrun.c (validate_siginfo_access): New function.
3733 (siginfo_value_read, siginfo_value_write): Call it.
3734
3735 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3736
3737 Revert:
3738 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3739 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3740 attribute.
3741
3742 2011-08-29 Yao Qi <yao@codesourcery.com>
3743
3744 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3745 (cmp_name): New.
3746 (enable_break2): Update caller.
3747 * solib-frv.c (bfd_lookup_symbol): Removed.
3748 (cmp_name): New.
3749 (enable_break2): Update caller.
3750 * solib-pa64.c (bfd_lookup_symbol): Removed.
3751 (cmp_name): New.
3752 * solib-svr4.c (bfd_lookup_symbol): Removed.
3753 (cmp_name_and_sec_flags): New.
3754 (enable_break): Update caller.
3755 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3756 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3757 (gdb_bfd_lookup_symbol): New.
3758 * solib.h: Functions declarations.
3759
3760 2011-08-29 Yao Qi <yao@codesourcery.com>
3761
3762 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3763 and solib-dsbt.o.
3764
3765 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3766
3767 Fix TUI stepi on code without symbols.
3768 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3769 current PC instead.
3770
3771 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3772
3773 Code cleanup.
3774 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3775 and the static keyword.
3776 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3777 Make prefix an array.
3778 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3779 * mi/mi-main.c (get_register): Remove stb initialization and the static
3780 keyword.
3781
3782 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3783
3784 Code cleanup - make mi_opt const.
3785 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3786 opts const.
3787 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3788 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3789 (mi_cmd_env_dir): Likewise.
3790 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3791 (mi_cmd_target_file_put): Likewise.
3792 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3793 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3794 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3795 (mi_valid_noargs): Make opts const.
3796 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3797 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3798 (mi_cmd_data_read_memory): Likewise.
3799 (mi_cmd_data_read_memory_bytes): Likewise.
3800 (mi_cmd_data_write_memory): Likewise.
3801
3802 2011-08-26 Matt Rice <ratmice@gmail.com>
3803
3804 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3805 bcache_xmalloc, replace bcache_xmalloc with call to
3806 psymbol_bcache_init for psymbol_cache.
3807 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3808
3809 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3810
3811 * inf-loop.c (inferior_event_handler): Add exception_print in
3812 INF_EXEC_COMPLETE.
3813
3814 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3815
3816 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3817 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3818 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3819 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3820 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3821 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3822 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3823 * infrun.c (fetch_inferior_event): Call
3824 make_bpstat_clear_actions_cleanup.
3825 * top.c (execute_command): New variable cleanup_if_error, call
3826 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3827 * utils.c (do_bpstat_clear_actions_cleanup)
3828 (make_bpstat_clear_actions_cleanup): New functions.
3829
3830 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3831
3832 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3833 either the parent or the child forks. Rename a couple locals.
3834
3835 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3836
3837 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3838 library call. Avoid reading the `status' local if all waitpid
3839 calls failed.
3840
3841 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3842
3843 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3844 opening /proc/PID/task always succeeds.
3845
3846 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3847
3848 * linespec.c (symtab_from_filename): Check for the end of string.
3849
3850 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3851
3852 PR mi/11912
3853 * varobj.c (cplus_describe_child): Add the keyword
3854 'class' to the output of the method when dealing
3855 with a cast to a base class.
3856
3857 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3858
3859 No functionality change.
3860 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3861 function comment a reference, new variables tp and bs, move here code
3862 from throw_exception.
3863 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3864 describe it in the comment.
3865 * exceptions.c (throw_exception): Remove variable tp, move the code for
3866 bpstat_clear_actions to bpstat_clear_actions.
3867
3868 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3869
3870 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3871 * linux-nat.c: Include linux-procfs.h.
3872 (linux_proc_get_tgid): Move to ...
3873 * common/linux-procfs.c: ... here. New file.
3874 * common/linux-procfs.h: New file.
3875 * linux-thread-db.c: Include linux-procfs.h.
3876 * Makefile.in: Update dependencies.
3877 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3878 * config/arm/linux.mh: Likewise.
3879 * config/i386/linux.mh: Likewise.
3880 * config/i386/linux64.mh: Likewise.
3881 * config/ia64/linux.mh: Likewise.
3882 * config/m32r/linux.mh: Likewise.
3883 * config/m68k/linux.mh: Likewise.
3884 * config/mips/linux.mh: Likewise.
3885 * config/pa/linux.mh: Likewise.
3886 * config/pa/linux.mh: Likewise.
3887 * config/powerpc/linux.mh: Likewise.
3888 * config/powerpc/ppc64-linux.mh: Likewise.
3889 * config/powerpc/spu-linux.mh: Likewise.
3890 * config/sparc/linux.mh: Likewise.
3891 * config/sparc/linux64.mh: Likewise.
3892 * config/xtensa/linux.mh: Likewise.
3893
3894 2011-08-24 Hui Zhu <teawater@gmail.com>
3895
3896 * tracepoint.c (cond_string_is_same): New function.
3897 (find_matching_tracepoint): Add condition check
3898 by cond_string_is_same.
3899
3900 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3901
3902 Fix build error in Darwin port.
3903 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3904
3905 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3906
3907 Code cleanup.
3908 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3909 (command_line_is_silent): New function.
3910 (bpstat_do_actions_1): No longer use commands_left, use
3911 command_line_is_silent for commands.
3912 (bpstat_alloc): Remove clearing of commands_left.
3913 (bpstat_stop_status): Remove initialization of commands_left, use
3914 command_line_is_silent.
3915 * breakpoint.h (struct bpstats): Remove commands_left.
3916
3917 2011-08-18 Keith Seitz <keiths@redhat.com>
3918
3919 PR c++/12266
3920 * cp-name-parser.y (struct demangle_info): Remove unused
3921 member PREV.
3922 (d_grab): Likewise.
3923 (allocate_info): Change return type to struct demangle_info *.
3924 Always allocate a new demangle_info.
3925 Remove unused PREV pointer.
3926 (cp_new_demangle_parse_info): New function.
3927 (cp_demangled_name_parse_free): New function.
3928 (do_demangled_name_parse_free_cleanup): New function.
3929 (make_cleanup_cp_demangled_name_parse_free): New function.
3930 (cp_demangled_name_to_comp): Change return type to
3931 struct demangle_parse_info *.
3932 Allocate a new storage for each call.
3933 (main): Update usage for cp_demangled_name_to_comp
3934 API change.
3935 * cp-support.h (struct demangle_parse_info): New structure.
3936 (cp_demangled_name_to_comp): Update API change for
3937 return type.
3938 (cp_new_demangle_parse_info): Declare.
3939 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3940 (cp_demangled_name_parse_free): Declare.
3941 * cp-support.c (cp_canonicalize_string): Update API
3942 change for cp_demangled_name_to_comp.
3943 (mangled_name_to_comp): Likewise.
3944 Return struct demangle_parse_info, too.
3945 (cp_class_name_from_physname): Update mangled_name_to_comp
3946 API change.
3947 (method_name_from_physname): Likewise.
3948 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3949 (cp_remove_params): Likewise.
3950 * python/py-type.c (typy_legacy_template_argument): Likewise.
3951
3952 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3953 (cp_merge_demangle_parse_infos): Declare.
3954 * cp-support.c (ignore_typedefs): New file global.
3955 (copy_string_to_obstack): New function.
3956 (inspect_type): New function.
3957 (replace_typedefs): New function.
3958 (replace_typedefs_qualified_name): New function.
3959 (cp_canonicalize_string_no_typedefs): New function.
3960 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3961 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3962 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3963 instead of cp_canonicalize_string.
3964 (find_method): Likewise.
3965 (decode_compound): Before looking up the name, call
3966 cp_canonicalize_string_no_typedefs.
3967 (decode_variable): Likewise.
3968
3969 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3970 Tom Tromey <tromey@redhat.com>
3971 Matt Rice <ratmice@gmail.com>
3972
3973 * python/lib/gdb/prompt.py: New file.
3974 * python/lib/gdb/command/prompt.py: New file.
3975 * NEWS: Document set extended-prompt and gdb.prompt library
3976
3977 2011-08-16 Yao Qi <yao@codesourcery.com>
3978
3979 * tic6x-linux-tdep.c: Move const arrays definition from here...
3980 * tic6x-tdep.c: to here ...
3981
3982 2011-08-14 Yao Qi <yao@codesourcery.com>
3983
3984 * NEWS: New port to Texas Instruments TMS320C6x.
3985
3986 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3987 Bernd Schmidt <bernds@codesourcery.com>
3988 Yao Qi <yao@codesourcery.com>
3989
3990 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3991 * solib-dsbt.c: New file. Support DSBT shared object.
3992 * tic6x-linux-tdep.c: New file.
3993 * tic6x-tdep.c: New file.
3994 * tic6x-tdep.h: New file.
3995
3996 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3997 Yao Qi <yao@codesourcery.com>
3998
3999 * remote.c (PACKET_qXfer_fdpic): New enum value.
4000 (remote_protocol_features): Add qXfer:fdpic:read packet.
4001 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
4002 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
4003 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
4004
4005 2011-08-14 Yao Qi <yao@codesourcery.com>
4006
4007 Target description for tic6x.
4008 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
4009 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
4010 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
4011 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
4012 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
4013 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
4014 * features/tic6x-c64xp-linux.xml: New.
4015 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
4016 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
4017 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
4018 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
4019 * regformats/tic6x-c64xp.dat,
4020 regformats/tic6x-c62x-linux.dat: Generated.
4021 * regformats/tic6x-c64x-linux.dat,
4022 regformats/tic6x-c64xp-linux.dat: Generated.
4023 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
4024 features/tic6x-*.c files.
4025 Add regformats/tic6x-*.dat files.
4026
4027 2011-08-12 Doug Evans <dje@google.com>
4028
4029 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
4030 * python/py-symbol.c (sympy_get_type): New function.
4031 (symbol_object_getset): Add "type".
4032
4033 2011-08-12 Pedro Alves <pedro@codesourcery.com>
4034
4035 PR tui/13073
4036
4037 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
4038 empty name.
4039 (tui_show_register_group): Don't store a byte buffer in the data
4040 element's value.
4041 (tui_register_format): Skip registers with an empty name.
4042 (tui_get_register): Store a struct value in the data element's
4043 value field instead of a byte buffer holding the raw register
4044 contents. Account for optimized-out and unavailable registers
4045 when comparing register contents.
4046
4047 2011-08-09 Pedro Alves <pedro@codesourcery.com>
4048
4049 * printcmd.c (current_display_number): Update comment.
4050 (disable_current_display_cleanup): Delete.
4051 (do_one_display): Use make_cleanup_restore_integer. Gracefully
4052 catch errors thrown while evaluating and printing the display.
4053
4054 2011-08-09 Tom Tromey <tromey@redhat.com>
4055
4056 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
4057
4058 2011-08-09 Pedro Alves <pedro@codesourcery.com>
4059
4060 * elfread.c (elf_symtab_read): Rework comments.
4061 * maint.c (maintenance_command): Ditto.
4062 * somread.c (som_symtab_read): Ditto.
4063 * solib.c (solib_find, solib_map_sections, update_solib_list)
4064 (solib_add, info_sharedlibrary_command, solib_name_from_address)
4065 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4066 (sharedlibrary_command, no_shared_libraries): Ditto.
4067 * solib-irix.c (locate_base, disable_break, enable_break)
4068 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
4069 (irix_current_sos, irix_open_symbol_file_object)
4070 (irix_special_symbol_handling): Ditto.
4071 * solib-sunos.c (locate_base, first_link_map_member)
4072 (sunos_current_sos, disable_break, enable_break)
4073 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
4074 Ditto.
4075 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
4076 (open_symbol_file_object, svr4_current_sos, enable_break)
4077 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
4078 Ditto.
4079 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
4080 (frv_current_sos, enable_break, frv_special_symbol_handling)
4081 (frv_solib_create_inferior_hook): Ditto.
4082 * solist.h (struct target_so_ops): Extend the comments of the
4083 special_symbol_handling, current_sos and open_symbol_file_object
4084 methods.
4085
4086 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
4087
4088 * python/lib/gdb/__init__.py: Auto-load files in command and
4089 function directories.
4090 * python/python.c (finish_python_initialization): Use
4091 os.path.join.
4092 * python/lib/gdb/command/pretty_printers.py: Self register
4093 command.
4094 * NEWS: Document auto-loading.
4095
4096 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4097
4098 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
4099 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
4100 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
4101
4102 2011-08-08 Tom Tromey <tromey@redhat.com>
4103
4104 * breakpoint.c (clean_up_filters): Remove.
4105 (catch_syscall_split_args): Use VEC_cleanup.
4106
4107 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4108
4109 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
4110 (main): Uncomment "Demangling error\n".
4111
4112 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
4113
4114 * solib-target.c (segment_attributes): Make them static.
4115 (section_attributes, library_children, library_attributes): Likewise.
4116 (library_list_children, library_list_attributes): Likesise.
4117 (library_list_elements): Likewise.
4118
4119 2011-08-05 Pedro Alves <pedro@codesourcery.com>
4120
4121 * exceptions.c (throw_exception): Don't disable the current
4122 display.
4123 * printcmd.c (disable_current_display_cleanup): New function.
4124 (do_one_display): Install a cleanup to disable the current display
4125 if doing the display throws.
4126
4127 2011-08-05 Eli Zaretskii <eliz@gnu.org>
4128
4129 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
4130 initialization of the tp_new member to the corresponding
4131 gdbpy_initialize_* function.
4132 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
4133 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
4134 * python/py-function.c (gdbpy_initialize_functions): Likewise.
4135 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
4136 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
4137
4138 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4139
4140 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
4141 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
4142 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
4143 references to current_uiout.
4144
4145 2011-08-04 Pedro Alves <pedro@codesourcery.com>
4146
4147 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
4148 (start_event_loop): Use TRY_CATCH instead of catch_errors.
4149 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
4150 * top.c (gdb_readline_wrapper): Adjust.
4151 * tui/tui-interp.c (tui_command_loop):
4152 (_initialize_tui_interp): Don't install it.
4153
4154 2011-08-04 Pedro Alves <pedro@codesourcery.com>
4155
4156 * ui-out.h (uiout): Rename to ...
4157 (current_uiout): ... this.
4158 * ui-out.c (uiout): Rename to ...
4159 (current_uiout): ... this.
4160 * ada-lang.c (print_it_exception, print_one_exception)
4161 (print_mention_exception): Adjust.
4162 * breakpoint.c (watchpoint_check): Adjust.
4163 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
4164 (default_collect_info, watchpoints_info, print_one_catch_fork)
4165 (print_one_catch_vfork, print_one_catch_syscall)
4166 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
4167 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
4168 (print_it_watchpoint, print_mention_watchpoint)
4169 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
4170 (print_it_exception_catchpoint, print_one_exception_catchpoint)
4171 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
4172 (bkpt_print_mention, momentary_bkpt_print_it)
4173 (tracepoint_print_mention, update_static_tracepoint)
4174 (tracepoints_info, save_breakpoints): Adjust.
4175 * cli-out.c (field_separator): Adjust.
4176 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
4177 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
4178 * frame.c (get_current_frame): Adjust.
4179 * infcmd.c (run_command_1, print_return_value): Adjust.
4180 * inferior.c (inferior_command, info_inferiors_command): Adjust.
4181 * infrun.c (print_end_stepping_range_reason): Adjust.
4182 (print_signal_exited_reason, print_exited_reason): Adjust.
4183 (print_signal_received_reason, print_no_history_reason): Adjust.
4184 * interps.c (interp_set): Adjust.
4185 * osdata.c (info_osdata_command): Adjust.
4186 * progspace.c (maintenance_info_program_spaces_command): Adjust.
4187 * remote-fileio.c (remote_fileio_request): Adjust.
4188 * remote.c (show_remote_cmd): Adjust.
4189 * solib.c (info_sharedlibrary_command): Adjust.
4190 * source.c (print_source_lines_base): Adjust.
4191 * stack.c (print_stack_frame): Adjust.
4192 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
4193 * symfile-mem.c (add_vsyscall_page): Adjust.
4194 * symfile.c (load_progress, generic_load)
4195 (print_transfer_performance): Adjust.
4196 * thread.c (info_threads_command, restore_selected_frame)
4197 (thread_command): Adjust.
4198 * top.c (make_cleanup_restore_ui_file): Adjust.
4199 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
4200 (print_one_static_tracepoint_marker): Adjust.
4201 * cli/cli-cmds.c (print_disassembly): Adjust.
4202 * cli/cli-decode.c (print_doc_line): Adjust.
4203 * cli/cli-interp.c (safe_execute_command): Adjust.
4204 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
4205 (handle_redirections): Adjust.
4206 * cli/cli-script.c (show_user_1): Adjust.
4207 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
4208 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4209 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
4210 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
4211 (mi_cmd_env_dir): Adjust.
4212 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
4213 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
4214 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4215 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
4216 (list_args_or_locals): Adjust.
4217 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4218 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
4219 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
4220 (mi_cmd_var_list_children, mi_cmd_var_info_type)
4221 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
4222 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
4223 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
4224 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
4225 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
4226 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
4227 (list_available_thread_groups, mi_cmd_list_thread_groups)
4228 (mi_cmd_data_list_register_names)
4229 (mi_cmd_data_list_changed_registers)
4230 (mi_cmd_data_list_register_values, get_register)
4231 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
4232 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
4233 (mi_cmd_list_target_features, mi_cmd_add_inferior)
4234 (mi_execute_command, mi_load_progress): Adjust.
4235 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
4236 * python/py-auto-load.c (print_script, info_auto_load_scripts):
4237 Adjust.
4238 * python/py-breakpoint.c (bppy_get_commands): Adjust.
4239 * tui/tui-interp.c (tui_command_loop): Adjust.
4240 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
4241
4242 2011-08-04 Pedro Alves <pedro@codesourcery.com>
4243
4244 * exceptions.c (struct catcher): Remove saved_uiout field.
4245 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
4246 no longer save/resvore the global ui_out builder.
4247 (catch_exceptions_with_msg): Save/override/restore the global
4248 ui_out builder manually instead of relying on TRY_CATCH to do it.
4249 (catch_errors): Save/restore the global ui_out builder manually
4250 instead of relying on TRY_CATCH to do it.
4251 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
4252 parameter.
4253 (TRY_CATCH): Adjust.
4254 * cli/cli-interp.c (safe_execute_command): Save/override/restore
4255 the global ui_out builder manually instead of relying on TRY_CATCH
4256 to do it.
4257
4258 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4259
4260 * breakpoint.c (update_global_location_list): Ensure
4261 invariant 'first loc marked not duplicated and inserted,
4262 following locs marked duplicated/not inserted' is respected
4263 for multiple locations at the same address.
4264 (unduplicated_should_be_inserted) New function.
4265 (swap_insertion) New function.
4266
4267 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4268
4269 * stack.c (print_frame_arguments_choices): Comment typo fix.
4270
4271 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
4272
4273 Revert:
4274 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4275 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4276 argument. Update callers.
4277
4278 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4279
4280 PR gdb/13045
4281 * doublest.c (convert_doublest_to_floatformat): Pass correct
4282 mantissa length to put_field.
4283
4284 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4285
4286 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
4287 exception_print code path.
4288 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
4289 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
4290 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
4291
4292 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4293
4294 Code cleanup.
4295 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
4296 Remove, merge them into ...
4297 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
4298 variable args and its initialization.
4299 (struct print_args_args, print_args_stub): Remove, merge them into
4300 print_frame.
4301 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
4302 them into ...
4303 (do_gdb_disassembly): ... here. Remove variable args and its
4304 initialization.
4305 (print_frame): Remove variable args and its initialization, new
4306 variable gdbarch and numargs (from print_args_stub), inline here
4307 print_args_stub with a TRY_CATCH.
4308 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
4309 them into ...
4310 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
4311 New variable e, remove variable btargs and its initialization.
4312
4313 2011-08-01 Tristan Gingold <gingold@adacore.com>
4314
4315 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
4316
4317 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4318
4319 * breakpoint.c (insert_bp_location): Document return value.
4320 (insert_breakpoint_locations): Fix documentation.
4321 (remove_breakpoints): Add documentation.
4322
4323 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4324
4325 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4326 argument. Update callers.
4327
4328 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4329
4330 * stack.c (print_frame_info): Comment typo fix.
4331
4332 2011-07-29 Sterling Augustine <saugustine@google.com>
4333
4334 * MAINTAINERS (Write After Approval): Add myself to the list.
4335
4336 2011-07-29 Tom Tromey <tromey@redhat.com>
4337
4338 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
4339 (library_list_start_segment): Update.
4340 (library_list_start_section): Update.
4341
4342 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
4343
4344 * varobj.c (value_get_print_value): Move hint check later into the
4345 function. Comment function. Free thevalue before reusing it.
4346
4347 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4348 Pedro Alves <pedro@codesourcery.com>
4349
4350 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
4351 value_one.
4352 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
4353 Assert the result kind.
4354 * value.h (value_one): Remove parameter lv.
4355
4356 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4357
4358 Fix crash on lval_computed values.
4359 * valops.c (value_zero): Use not_lval for lval_computed.
4360
4361 2011-07-27 Tom Tromey <tromey@redhat.com>
4362
4363 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4364 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4365
4366 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4367
4368 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4369 "ptype" by their typedefs difference.
4370
4371 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4372
4373 * dwarf2expr.c (ctx_no_read_reg): New function.
4374 * dwarf2expr.h (ctx_no_read_reg): New declaration.
4375 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4376 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4377 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4378
4379 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4380
4381 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4382 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4383 file.
4384 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4385 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4386 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4387 (ctx_no_get_base_type): Move the functions here.
4388 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4389 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4390 (ctx_no_get_base_type): New declarations.
4391
4392 2011-07-27 Tom Tromey <tromey@redhat.com>
4393
4394 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4395 entries.
4396 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4397 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4398
4399 2011-07-26 Sterling Augustine <saugustine@google.com>
4400
4401 * cli/cli-dump.c (dump_binary_file): Change parameter type to
4402 ULONGEST.
4403 (dump_bfd_file): Likewise.
4404
4405 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4406
4407 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4408 (remote_hw_watchpoint_length_limit): New variable.
4409 (_initialize_remote) add set,show cmds for this new variable.
4410 * gdb.texinfo: document these new commands.
4411 * NEWS: Mention these new commands.
4412
4413 2011-07-26 Pedro Alves <pedro@codesourcery.com>
4414
4415 * breakpoint.c (works_in_software_mode_watchpoint): Also return
4416 true for software watchpoints.
4417
4418 2011-07-26 Joel Brobecker <brobecker@adacore.com>
4419
4420 GDB 7.3 released.
4421
4422 2011-07-26 Tom Tromey <tromey@redhat.com>
4423
4424 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4425 * dwarf2read.c (read_indirect_string_at_offset): New function.
4426 (read_indirect_string): Use it.
4427 (dwarf_decode_macro_bytes): New function, taken from
4428 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
4429 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
4430 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4431 New functions.
4432 (struct dwarf2_per_objfile) <macro>: New field.
4433 (dwarf2_elf_names): Add .debug_macro.
4434 (dwarf2_macros_too_long_complaint): Add 'section' argument.
4435 (dwarf2_locate_sections): Handle new section.
4436 (read_file_scope): Handle DW_AT_GNU_macros.
4437 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4438
4439 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4440
4441 * NEWS: Mention dcache configuration.
4442 * dcache.c (dcache_set_list, dcache_show_list): New variables.
4443 (dcache_size, dcache_line_size): New variables.
4444 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4445 (struct dcache_block): Make it expandable.
4446 (struct dcache_struct): New field.
4447 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4448 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4449 (dcache_poke_byte, dcache_print_line): Adjust.
4450 (set_dcache_size, set_dcache_line_size): New functions.
4451 (set_dcache_command, show_dcache_command): New functions.
4452 (_initialize_dcache): Add new commands.
4453
4454 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4455
4456 * progspace.h (struct program_space): Add solib_add_generation.
4457 * infcmd.c (post_create_inferior): Only call solib_add if not
4458 already done.
4459 * solib.c (solib_add): Increment solib_add_generation.
4460
4461 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4462
4463 Fix implicit pointer offsets.
4464 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4465 ptr.OFFSET.
4466
4467 2011-07-25 Tom Tromey <tromey@redhat.com>
4468
4469 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4470 const.
4471 (ada_exception_sal): Make 'ops' const.
4472 (ada_decode_exception_location): Likewise.
4473 (ada_decode_assert_location): Likewise.
4474 (catch_assert_command): Update.
4475 (catch_ada_exception_command): Update.
4476 (create_ada_exception_catchpoint): Make 'ops' const.
4477 * breakpoint.c (set_raw_breakpoint_without_location)
4478 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4479 const.
4480 (create_internal_breakpoint): Update.
4481 (init_raw_breakpoint_without_location): Make 'ops' const.
4482 (init_raw_breakpoint, init_catchpoint)
4483 (create_fork_vfork_event_catchpoint)
4484 (create_syscall_event_catchpoint, init_breakpoint_sal)
4485 (create_breakpoint_sal, create_breakpoints_sal)
4486 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4487 * breakpoint.h (struct breakpoint) <ops>: Now const.
4488 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4489 const.
4490
4491 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4492
4493 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4494
4495 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4496
4497 * breakpoint.h (print_recreate_thread): Declare.
4498 (struct breakpoint): Move step_count, pass_count,
4499 number_on_target, static_trace_marker_id,
4500 static_trace_marker_id_idx ...
4501 (struct tracepoint): ... to this new struct.
4502 (get_tracepoint, get_tracepoint_by_number_on_target)
4503 (get_tracepoint_by_number): Change return type to struct
4504 tracepoint pointer.
4505 * breakpoint.c (is_tracepoint_type): New, factored out from
4506 is_tracepoint.
4507 (is_tracepoint): Adjust.
4508 (print_one_breakpoint_location): Cast to struct tracepoint as
4509 necessary, and adjust.
4510 (print_recreate_catch_fork, print_recreate_catch_vfork)
4511 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4512 print_recreate_thread.
4513 (init_breakpoint_sal): New, factored out from
4514 create_breakpoint_sal.
4515 (create_breakpoint_sal): Reimplement.
4516 (create_breakpoint): Allocate a struct tracecepoint if the caller
4517 wanted a tracepoint. Use init_breakpoint_sal and
4518 install_breakpoint.
4519 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4520 (print_recreate_masked_watchpoint)
4521 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4522 (tracepoint_print_one_detail): Adjust.
4523 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4524 Dump the pass count here.
4525 (update_static_tracepoint): Adjust.
4526 (addr_string_to_sals): Adjust.
4527 (create_tracepoint_from_upload): Adjust. Change return type to
4528 struct tracepoint pointer.
4529 (trace_pass_set_count): Change parameter type to struct tracepoint
4530 pointer, and adjust.
4531 (trace_pass_command): Adjust.
4532 (get_tracepoint, get_tracepoint_by_number_on_target)
4533 (get_tracepoint_by_number): Change return type to struct
4534 tracepoint pointer, and adjust.
4535 (print_recreate_thread): New, factored out from save_breakpoints.
4536 (save_breakpoints): Don't print thread and task and passcount
4537 recreation here.
4538 * remote.c (remote_download_tracepoint): Adjust.
4539 * tracepoint.c (trace_actions_command, validate_actionline)
4540 (start_tracing, tfind_1, trace_find_tracepoint_command)
4541 (trace_dump_command): Adjust.
4542 (find_matching_tracepoint): Change return type to struct
4543 tracepoint pointer, and adjust.
4544 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4545 (tfile_trace_find, tfile_fetch_registers): Adjust.
4546 * tracepoint.h (create_tracepoint_from_upload): Change return type
4547 to struct tracepoint pointer.
4548 * ada-lang.c (print_recreate_exception): Call
4549 print_recreate_thread.
4550 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4551
4552 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4553
4554 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4555 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4556 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4557 watchpoint_thread, watchpoint_triggered ...
4558 (struct watchpoint): ... to this new struct.
4559 (is_watchpoint): Declare.
4560 (install_breakpoint): Add new `internal' parameter.
4561 * breakpoint.c (is_watchpoint): Delete declaration.
4562 (set_breakpoint_condition): Handle watchpoints.
4563 (is_watchpoint): Make public.
4564 (watchpoint_in_thread_scope): Change parameter type to struct
4565 watchpoint.
4566 (watchpoint_del_at_next_stop): Change parameter type to struct
4567 watchpoint. Remove assertion. Adjust.
4568 (update_watchpoint): Ditto.
4569 (insert_breakpoints, breakpoint_init_inferior)
4570 (watchpoints_triggered, watchpoint_check)
4571 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4572 (bpstat_stop_status, print_one_breakpoint_location)
4573 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4574 to struct watchpoint as necessary, and adjust.
4575 (install_breakpoint): Add `internal' argument. If true, don't
4576 mention the new breakpoint. Use set_breakpoint_number.
4577 (create_fork_vfork_event_catchpoint)
4578 (create_syscall_event_catchpoint): Adjust.
4579 (dtor_watchpoint): New.
4580 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4581 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4582 (print_it_watchpoint, print_mention_watchpoint)
4583 (print_recreate_watchpoint, insert_masked_watchpoint)
4584 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4585 (print_one_detail_masked_watchpoint)
4586 (print_mention_masked_watchpoint)
4587 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4588 necessary, and adjust.
4589 (watch_command_1): Allocate and initialize a struct watchpoint
4590 instead of a struct breakpoint. Use install_breakpoint.
4591 (catch_exec_command_1): Adjust.
4592 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4593 fields.
4594 (delete_breakpoint, enable_breakpoint_disp)
4595 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4596 as necessary, and adjust.
4597 (initialize_breakpoint_ops): Install dtor_watchpoint as
4598 watchpoints' dtor method.
4599 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4600 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4601 to struct watchpoint as necessary, and adjust.
4602
4603 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4604
4605 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4606 the the base class ops table.
4607 (catch_exception_breakpoint_ops)
4608 (catch_exception_unhandled_breakpoint_ops)
4609 (catch_assert_breakpoint_ops): Don't statically initialize.
4610 (initialize_ada_catchpoint_ops): New.
4611 (_initialize_ada_language): Call it.
4612 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4613 (bkpt_breakpoint_ops): Forward declare.
4614 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4615 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4616 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4617 (masked_watchpoint_breakpoint_ops)
4618 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4619 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4620 base class ops table.
4621 (null_re_set, null_check_status, null_works_in_software_mode)
4622 (null_resources_needed, null_print_one_detail): Delete.
4623 (bkpt_dtor): Rename to ...
4624 (base_breakpoint_dtor): ... this. Make static.
4625 (bkpt_allocate_location): Rename to ...
4626 (base_breakpoint_allocate_location): ... this. Make static.
4627 (base_breakpoint_re_set): New.
4628 (internal_error_pure_virtual_called): New.
4629 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4630 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4631 (base_breakpoint_works_in_software_mode)
4632 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4633 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4634 (base_breakpoint_print_recreate): New functions.
4635 (base_breakpoint_ops): New global.
4636 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4637 (bkpt_breakpoint_hit): Make static.
4638 (bkpt_check_status): Delete.
4639 (bkpt_resources_needed): Make static.
4640 (bkpt_works_in_software_mode): Delete.
4641 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4642 static.
4643 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4644 (momentary_breakpoint_ops): Don't statically initialize.
4645 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4646 Delete.
4647 (tracepoint_insert_location, tracepoint_remove_location)
4648 (tracepoint_check_status, tracepoint_works_in_software_mode)
4649 (tracepoint_print_it): Delete.
4650 (tracepoint_breakpoint_ops): Don't statically initialize.
4651 (initialize_breakpoint_ops): New.
4652 (_initialize_breakpoint): Call it.
4653 * breakpoint.h (null_re_set, null_works_in_software_mode)
4654 (null_resources_needed, null_check_status, null_print_one_detail):
4655 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4656 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4657 (bkpt_check_status, bkpt_resources_needed)
4658 (bkpt_works_in_software_mode, bkpt_print_it)
4659 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4660 Delete declarations.
4661 (initialize_breakpoint_ops): Declare.
4662
4663 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4664
4665 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4666 (momentary_bkpt_print_it): Simplify.
4667
4668 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4669
4670 Split internal, momentary and user breakpoints breakpoint_ops
4671 tables.
4672
4673 * breakpoint.c (internal_breakpoint_ops)
4674 (momentary_breakpoint_ops): Forward declare.
4675 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4676 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4677 (create_overlay_event_breakpoint)
4678 (create_std_terminate_master_breakpoint)
4679 (create_exception_master_breakpoint): Create breakpoints with
4680 internal_breakpoint_ops vtable.
4681 (set_longjmp_breakpoint): Create momentary breakpoints with
4682 momentary_breakpoint_ops vtable, using
4683 momentary_breakpoint_from_master.
4684 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4685 (create_solib_event_breakpoint): Create breakpoints with
4686 internal_breakpoint_ops vtable.
4687 (set_momentary_breakpoint): Create breakpoints with
4688 momentary_breakpoint_ops vtable.
4689 (momentary_breakpoint_from_master): New, factored out from
4690 clone_momentary_breakpoint.
4691 (clone_momentary_breakpoint): Adjust.
4692 (watch_command_1): Create scope breakpoints with
4693 momentary_breakpoint_ops vtable.
4694 (bkpt_re_set): Remove handling of internal and momentary
4695 breakpoints.
4696 (bkpt_print_mention, bkpt_print_recreate): New.
4697 (bkpt_breakpoint_ops): Adjust.
4698 (internal_bkpt_re_set, internal_bkpt_check_status)
4699 (internal_bkpt_print_it, internal_bkpt_print_mention)
4700 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4701 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4702 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4703 (momentary_bkpt_print_recreate): New.
4704 (momentary_breakpoint_ops): New.
4705
4706 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4707
4708 Implement most breakpoint_ops methods for all breakpoint types,
4709 and move the default handlings to the proper callbacks.
4710
4711 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4712 works_in_software_mode method.
4713 (insert_bp_location): Go through breakpoint_ops->insert_location
4714 for software and hardware watchpoints.
4715 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4716 breakpoint_ops.
4717 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4718 for software and hardware watchpoints.
4719 (print_it_typical): Delete.
4720 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4721 method.
4722 (watchpoint_check): Adjust comment.
4723 (bpstat_check_location): Simply always call the breakpoint's
4724 breakpoint_hit method.
4725 (bpstat_stop_status): Always call the breakpoint's check_status
4726 method. Remove special cases for watchpoints and internal event
4727 breakpoints from here (moved to the check_status implementations).
4728 (print_one_breakpoint_location): Assume b->ops is never NULL.
4729 Remove static tracepoint marker id printing from here (moved to
4730 the print_one_detail callback implementation of tracepoints).
4731 (init_bp_location): Assert OPS is never NULL.
4732 (allocate_bp_location): Always call the breakpoint's
4733 allocate_location method, and remove the default code from here.
4734 (free_bp_location): Always call the location's dtor method, and
4735 remove the default code from here.
4736 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4737 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4738 parameter. Pass it down.
4739 (set_raw_breakpoint): Ditto.
4740 (print_it_catch_fork): Adjust to take a bpstat as argument.
4741 (catch_fork_breakpoint_ops): Install methods.
4742 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4743 (catch_vfork_breakpoint_ops): Install methods.
4744 (dtor_catch_syscall): Call the base dtor.
4745 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4746 (catch_syscall_breakpoint_ops): Install methods.
4747 (dtor_catch_exec): Call the base dtor.
4748 (print_it_catch_exec): Adjust to take a bpstat as argument.
4749 (catch_exec_breakpoint_ops): Install methods.
4750 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4751 the breakpoint's resources_needed method, and remove the default
4752 code from here.
4753 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4754 breakpoint_ops.
4755 (clone_momentary_breakpoint): Clone the original's ops.
4756 (mention): Always call the breakpoint's print_mention method, and
4757 remove the default code from here.
4758 (create_breakpoint_sal): Adjust to pass the ops to
4759 set_raw_breakpoint rather than setting it manually.
4760 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4761 ops to set_raw_breakpoint_without_location rather than setting it
4762 manually.
4763 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4764 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4765 (ranged_breakpoint_ops): Install methods.
4766 (break_range_command): Adjust to pass the ops to
4767 set_raw_breakpoint rather than setting it manually.
4768 (re_set_watchpoint, breakpoint_hit_watchpoint)
4769 (check_status_watchpoint, resources_needed_watchpoint)
4770 (works_in_software_mode_watchpoint, print_it_watchpoint)
4771 (print_mention_watchpoint, print_recreate_watchpoint): New
4772 functions.
4773 (watchpoint_breakpoint_ops): Install new methods.
4774 (print_it_masked_watchpoint): New function.
4775 (masked_watchpoint_breakpoint_ops): Install new methods.
4776 (watch_command_1): Adjust to pass the right breakpoint_ops to
4777 set_raw_breakpoint_without_location rather than setting it
4778 manually later. Record the current pspace.
4779 (print_it_exception_catchpoint): Adjust to take a bpstat as
4780 argument.
4781 (gnu_v3_exception_catchpoint_ops): Install new methods.
4782 (say_where): New function.
4783 (null_re_set, null_check_status, null_works_in_software_mode)
4784 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4785 New functions.
4786 (bp_location_ops): New global.
4787 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4788 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4789 (bkpt_check_status, bkpt_resources_needed)
4790 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4791 (bkpt_print_recreate): New functions.
4792 (bkpt_breakpoint_ops): New global.
4793 (tracepoint_re_set, tracepoint_insert_location)
4794 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4795 (tracepoint_check_status, tracepoint_works_in_software_mode)
4796 (tracepoint_print_it, tracepoint_print_one_detail)
4797 (tracepoint_print_mention, tracepoint_print_recreate): New
4798 functions.
4799 (tracepoint_breakpoint_ops): New global.
4800 (delete_breakpoint): Always call the breakpoint's dtor method, and
4801 remove the default handling from here.
4802 (breakpoint_re_set_default): Make static.
4803 (breakpoint_re_set_one): Always call the breakpoints re_set
4804 method, and remove the default handling from here.
4805 (trace_command, ftrace_command, strace_command)
4806 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4807 to create_breakpoint.
4808 (save_breakpoints): Always call the breakpoint's print_recreate
4809 method, and remove the default handling from here.
4810
4811 * ada-lang.c (dtor_exception): Call the base dtor.
4812 (re_set_exception): Call the base method.
4813 (print_it_exception, print_it_catch_exception): Adjust to take a
4814 bpstat as argument.
4815 (catch_exception_breakpoint_ops): Install methods.
4816 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4817 argument.
4818 (catch_exception_unhandled_breakpoint_ops): Install methods.
4819 (print_it_catch_assert): Adjust to take a bpstat as argument.
4820 (catch_assert_breakpoint_ops): Install methods.
4821
4822 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4823 to take a bpstat as argument.
4824 (enum print_stop_action): Add describing comments to each enum
4825 value.
4826 (breakpoint_re_set_default): Delete declaration.
4827 (null_re_set, null_works_in_software_mode, null_resources_needed)
4828 (null_check_status, null_print_one_detail): Declare.
4829 (bkpt_breakpoint_ops): Declare.
4830 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4831 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4832 (bkpt_check_status, bkpt_resources_needed)
4833 (bkpt_works_in_software_mode, bkpt_print_it)
4834 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4835 Declare.
4836
4837 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4838 bkpt_breakpoint_ops.
4839 * python/py-breakpoint.c (bppy_init): Ditto.
4840
4841 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4842
4843 * MAINTAINERS (Write After Approval): Add myself to the list.
4844
4845 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4846
4847 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4848
4849 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4850
4851 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4852 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4853 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4854 adjust.
4855 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4856 (struct i386_debug_reg_state): New.
4857 (i386_init_dregs): New.
4858 (dr_mirror): New.
4859 (i386_cleanup_dregs): Use i386_init_dregs.
4860 (i386_show_dr): Add state parameter and adjust.
4861 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4862 the inferior here.
4863 (i386_remove_aligned_watchpoint): Likewise.
4864 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4865 (i386_update_inferior_debug_regs): New.
4866 (i386_insert_watchpoint): Work on a local mirror of the debug
4867 registers, and only update the inferior on success.
4868 (i386_remove_watchpoint): Ditto.
4869 (i386_region_ok_for_watchpoint): Adjust.
4870 (i386_stopped_data_address): Adjust.
4871 (i386_insert_hw_breakpoint): Adjust.
4872 (i386_remove_hw_breakpoint): Adjust.
4873
4874 2011-07-22 Tom Tromey <tromey@redhat.com>
4875
4876 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4877 from amd64_pseudo_register_read. Change arguments. Call
4878 mark_value_bytes_unavailable when needed.
4879 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4880 set_gdbarch_pseudo_register_read.
4881 * sentinel-frame.c (sentinel_frame_prev_register): Use
4882 regcache_cooked_read_value.
4883 * regcache.h (regcache_cooked_read_value): Declare.
4884 * regcache.c (regcache_cooked_read_value): New function.
4885 (regcache_cooked_read): Call
4886 gdbarch_pseudo_register_read_value if available.
4887 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4888 (i386_pseudo_register_read): Remove.
4889 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4890 i386_pseudo_register_read. Change arguments. Call
4891 mark_value_bytes_unavailable when needed.
4892 (i386_pseudo_register_read_value): New function.
4893 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4894 not set_gdbarch_pseudo_register_read.
4895 * gdbarch.sh (pseudo_register_read_value): New method.
4896 * gdbarch.c, gdbarch.h: Rebuild.
4897 * findvar.c (value_from_register): Call get_frame_register_value.
4898
4899 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4900
4901 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4902 get_prefix.
4903 (display_gdb_prompt): Likewise.
4904 (change_annotation_level): Likewise.
4905 (push_prompt): Likewise.
4906 (pop_prompt): Likewise.
4907 (handle_stop_sig): Use get_prompt with a level.
4908 * top.c (command_loop): Use get_prompt with a level.
4909 (set_async_annotation_level): Use set_prompt with a level.
4910 (get_prefix): New function.
4911 (set_prefix): Ditto.
4912 (set_suffix): Ditto.
4913 (get_suffix): Ditto.
4914 (get_prompt): Accept a level argument.
4915 (set_prompt): Accept a level argument. Free old prompts. Set
4916 new_async_prompt if level is 0.
4917 (init_main): Use set_prompt with a level. Do not set
4918 new_async_prompt.
4919 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4920 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4921 Modify set_prompt, get_prompt to account for levels.
4922 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4923 level.
4924 * python/python.c (before_prompt_hook): Use set_prompt.
4925
4926 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4927
4928 * defs.h: Add guard against inclusion in gdbserver.
4929 (struct ptid, ptid_t): Move to common/ptid.h.
4930 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4931 xsnprintf, internal_error): Move to common/common-utils.h.
4932 (nomem): Delete.
4933 * gdb_assert.h: Move into common/ sub-directory.
4934 * gdb_locale.h: Ditto.
4935 * gdb_dirent.h: Ditto.
4936 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4937 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4938 Move into common/ptid.h.
4939 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4940 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4941 Change nomem to malloc_failure.
4942 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4943 * utils.c (nomem): Rename to malloc_failure.
4944 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4945 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4946 (gdb_buildargv): Change nomem to malloc_failure.
4947 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4948 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4949 ptid_is_pid): Move into common/ptid.c.
4950 (initialize_infrun): Delete initialization of null_ptid and
4951 minus_one_ptid.
4952 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4953 linux_common_xfer_osdata.
4954 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4955 common/ptid.c and common/buffer.c.
4956 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4957 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4958 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4959 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4960 rules.
4961 * common/gdb_assert.h: New.
4962 * common/gdb_dirent.h: New.
4963 * common/gdb_locale.h: New.
4964 * common/buffer.c: New.
4965 * common/buffer.h: New.
4966 * common/ptid.c: New.
4967 * common/ptid.h: New.
4968 * common/xml-utils.c: New.
4969 * common/xml-utils.h: New.
4970 * common/common-utils.c: New.
4971 * common/common-utils.h: New.
4972 * common/linux-osdata.c: New.
4973 * common/linux-osdata.h: New.
4974 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4975 * config/arm/linux.mh (NATDEPFILES): Ditto.
4976 * config/i386/linux.mh (NATDEPFILES): Ditto.
4977 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4978 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4979 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4980 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4981 * config/mips/linux.mh (NATDEPFILES): Ditto.
4982 * config/pa/linux.mh (NATDEPFILES): Ditto.
4983 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4984 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4985 * config/s390/s390.mh (NATDEPFILES): Ditto.
4986 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4987 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4988 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4989
4990 2011-07-21 Matt Rice <ratmice@gmail.com>
4991
4992 * NEWS: Add info macros and info definitions commands.
4993
4994 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4995
4996 * NEWS: Document Python prompt substitution hook.
4997
4998 2011-07-18 Matt Rice <ratmice@gmail.com>
4999
5000 PR macros/12999
5001 * macrotab.h (macro_callback_fn): Add new arguments to callback.
5002 * macrotab.c (foreach_macro): Ditto.
5003 (foreach_macro_in_scope): Ditto.
5004 * macrocmd.c (print_macro_callback): New function.
5005 (info_macro_command): Move some code to print_macro_definition.
5006 (print_macro_definition): New function.
5007 (print_one_macro): Add new arguments to callback.
5008 (info_definitions_command): New function.
5009 (info_macros_command): Ditto.
5010 (_initialize_macrocmd): Add info macros and info definitions commands.
5011 * symtab.c (add_macro_name): Add new arguments to callback.
5012
5013 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
5014 Tom Tromey <tromey@redhat.com>
5015
5016 * top.c (set_prompt): Rewrite to free previous prompt, free
5017 asynch_new_prompt and set both on new prompts.
5018 * event-top.c (display_gdb_prompt): Add prompt substitution
5019 logic.
5020 * python/python.c (before_prompt_hook): New function.
5021
5022 2011-07-20 Matt Rice <ratmice@gmail.com>
5023
5024 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
5025 arguments to store_unsigned_integer.
5026
5027 2011-07-20 Tom Tromey <tromey@redhat.com>
5028
5029 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
5030 in some declaration-only cases.
5031
5032 2011-07-18 Tom Tromey <tromey@redhat.com>
5033
5034 PR symtab/12984:
5035 * dwarf2read.c (dwarf2_section_info_def): New typedef.
5036 (struct dwarf2_per_objfile) <types>: Change to a VEC.
5037 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
5038 <debug_type_section>: New field.
5039 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
5040 (load_cu): Use appropriate section.
5041 (create_signatured_type_table_from_index): Add 'section'
5042 argument.
5043 (dwarf2_read_index): Only allow a single .debug_types section.
5044 (dw2_get_file_names): Use appropriate section.
5045 (read_type_comp_unit_head): Add 'section' argument.
5046 (create_debug_types_hash_table): Loop over all .debug_types
5047 sections.
5048 (init_cu_die_reader): Use appropriate section.
5049 (process_psymtab_comp_unit, load_partial_comp_unit)
5050 (load_full_comp_unit, read_die_and_children, find_partial_die)
5051 (lookup_die_type, determine_prefix, follow_die_offset): Update.
5052 (lookup_signatured_type_at_offset): Add 'section' argument.
5053 (read_signatured_type_at_offset): Add 'sect' argument.
5054 (read_signatured_type): Use appropriate section.
5055 (set_die_type, get_die_type_at_offset): Update.
5056 (dwarf2_per_objfile_free): Free all .debug_types sections, and
5057 VEC.
5058 (write_psymtabs_to_index): Don't allow index with more than one
5059 .debug_types section.
5060
5061 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5062
5063 Fix crash if referenced CU is aged out.
5064 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
5065 xfree of block.data.
5066 (indirect_pieced_value): New variable back_to, use to for xfree of
5067 baton.data.
5068 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
5069 block.data.
5070 * dwarf2read.c (dwarf2_find_base_address): New prototype.
5071 (load_cu): New function from ...
5072 (dw2_do_instantiate_symtab): ... the code here ...
5073 (process_full_comp_unit): ... and here.
5074 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
5075 retval.data.
5076
5077 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5078
5079 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
5080 type.
5081
5082 2011-07-19 Gary Benson <gbenson@redhat.com>
5083
5084 * infrun.c (struct execution_control_state): New member
5085 stop_func_filled_in.
5086 (clear_stop_func, fill_in_stop_func): New functions.
5087 (handle_inferior_event): Call clear_stop_func rather than
5088 manipulating the execution control state directly.
5089 Call fill_in_stop_func lazily as required rather than
5090 directly calling find_pc_partial_function in all cases.
5091
5092 2011-07-18 Tom Tromey <tromey@redhat.com>
5093
5094 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
5095 checking for variable-sized array.
5096
5097 2011-07-18 Jean-Charles Delay <delay@adacore.com>
5098
5099 * varobj.h (varobj_languages): Add vlang_ada definition to the list
5100 of supported languages.
5101 * varobj.c: Add top definitions and basic implementation of the
5102 following callbacks: ada_number_of_children, ada_name_of_variable,
5103 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
5104 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
5105 (languages): Register Ada-specific callbacks.
5106 (variable_language): Add the Ada case in the language setter switch.
5107
5108 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5109
5110 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
5111
5112 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5113
5114 Code cleanup.
5115 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
5116 (execute_stack_op): Use dwarf2_frame_ctx_funcs
5117 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
5118 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
5119 get_frame_cfa, get_tls_address and dwarf_call via funcs.
5120 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
5121 (struct dwarf_expr_context_funcs): New, move here methods from ...
5122 (struct dwarf_expr_context): ... here. New fields funcs.
5123 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
5124 (dwarf_expr_ctx_funcs): New.
5125 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
5126 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
5127 (needs_frame_ctx_funcs): New.
5128 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
5129
5130 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
5131
5132 * MAINTAINERS (Write After Approval): Add myself to the list.
5133
5134 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
5135
5136 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
5137 that CIE pointer of an FDE really points to a CIE .
5138
5139 2011-07-15 Hui Zhu <teawater@gmail.com>
5140
5141 * remote.c (remote_get_trace_status): Add comments.
5142
5143 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5144
5145 Code cleanup - constify struct lval_funcs.
5146 * dwarf2loc.c (pieced_value_funcs): Make it const.
5147 * infrun.c (siginfo_value_funcs): Likewise.
5148 * opencl-lang.c (opencl_value_funcs): Likewise.
5149 * valops.c (value_assign, value_ind): Make the funcs variable const.
5150 * value.c (struct value): Make location.computed.funcs target const.
5151 Rearrange the comments.
5152 (allocate_computed_value): Make the funcs parameter target const.
5153 (value_computed_funcs): Return the funcs target const.
5154 (value_free, value_copy, set_value_component_location): Make the funcs
5155 variable const.
5156 * value.h (allocate_computed_value): Make the funcs parameter target
5157 const.
5158 (value_computed_funcs): Return the funcs target const.
5159 * windows-tdep.c (tlb_value_funcs): Make it const.
5160
5161 2011-07-14 Hui Zhu <teawater@gmail.com>
5162
5163 * remote.c (remote_get_trace_status): Initialize p.
5164
5165 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5166
5167 Work around kgdb.
5168 * remote.c (remote_get_trace_status): New variable ex. Put
5169 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
5170
5171 2011-07-13 Tom Tromey <tromey@redhat.com>
5172
5173 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
5174 value_from_contents for final conversion.
5175
5176 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5177
5178 Code cleanup.
5179 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
5180 Indent prototypes so they do not get into tags.
5181
5182 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5183
5184 Code cleanup making also optimized out values lazy.
5185 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
5186 allocate_optimized_out_value. Twice.
5187 (loclist_read_variable) Use allocate_optimized_out_value. Once.
5188 * findvar.c (read_var_value): Likewise.
5189 * value.c (allocate_optimized_out_value): New function.
5190 * value.h (allocate_optimized_out_value): New declaration.
5191
5192 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5193
5194 Fix occasional crash of CTRL-C during DWARF read in.
5195 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
5196
5197 2011-07-11 Tom Tromey <tromey@redhat.com>
5198
5199 * regcache.c (struct regcache_descr): Fix typo.
5200 * i387-tdep.c (i387_supply_xsave): Fix typo.
5201
5202 2011-07-11 Tom Tromey <tromey@redhat.com>
5203
5204 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
5205 (read_file_scope, read_type_unit_scope): Use it.
5206
5207 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5208
5209 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
5210 `int'.
5211
5212 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
5213
5214 PR python/12438
5215 * python/python.c: Set gdbpy_should_print_stack default to off.
5216 (set_python): Deprecate maint set python print-stack to
5217 class_deprecate.
5218 (_initialize_python): Deprecate maint set/show python print-stack.
5219 Add new prefix command, python. Add new setting, print-backtrace.
5220 * NEWS: Document set python print-stack. Document default change.
5221
5222 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
5223
5224 * python/py-inferior.c (infpy_dealloc): New function.
5225 (inferior_to_inferior_object): Return a new object, or a
5226 new reference to the existing object.
5227 (find_thread_object): Cleanup references to inferior.
5228 (delete_thread_object): Ditto.
5229 * python/py-infthread.c (create_thread_object): Do not increment
5230 inferior reference count.
5231
5232 2011-07-08 Tom Tromey <tromey@redhat.com>
5233
5234 * dwarf2loc.c (locexpr_regname): New function.
5235 (locexpr_describe_location_piece): Use it.
5236 (disassemble_dwarf_expression): Add per_cu argument. Use
5237 locexpr_regname.
5238 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
5239 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5240 New cases.
5241 (locexpr_describe_location_1): Add per_cu argument.
5242 (locexpr_describe_location): Update.
5243 (loclist_describe_location): Update.
5244
5245 2011-07-08 Tom Tromey <tromey@redhat.com>
5246
5247 * dwarf2expr.c (execute_stack_op): Add QUIT.
5248
5249 2011-07-07 Hui Zhu <teawater@gmail.com>
5250
5251 Revert:
5252 2011-07-06 Hui Zhu <teawater@gmail.com>
5253 * remote.c (remote_start_remote): Add TRY_CATCH for
5254 remote_get_trace_status.
5255 * tracepoint.c (disconnect_tracing): Ditto.
5256
5257 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
5258
5259 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
5260 variables as signed, not unsigned.
5261
5262 2011-07-06 Joel Brobecker <brobecker@adacore.com>
5263
5264 * jit.c (jit_inferior_init): Reformat forward declaration.
5265
5266 2011-07-06 Matt Rice <ratmice@gmail.com>
5267
5268 * MAINTAINERS (Write After Approval): Add myself to the list.
5269
5270 2011-07-06 Hui Zhu <teawater@gmail.com>
5271
5272 * remote.c (remote_start_remote): Add TRY_CATCH for
5273 remote_get_trace_status.
5274 * tracepoint.c (disconnect_tracing): Ditto.
5275
5276 2011-07-05 Tom Tromey <tromey@redhat.com>
5277
5278 * symtab.c (operator_chars): Now static.
5279 * linespec.c (operator_chars): Don't declare.
5280
5281 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5282
5283 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
5284
5285 2011-07-05 Tom Tromey <tromey@redhat.com>
5286
5287 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
5288 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
5289 (TYPE_CPLUS_REALLY_JAVA): New macro.
5290 * dwarf2read.c (process_structure_scope): Set
5291 TYPE_CPLUS_REALLY_JAVA.
5292
5293 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5294
5295 * ada-lang.c: Fix typos.
5296 * amd64-tdep.c: Likewise.
5297 * breakpoint.c: Likewise.
5298 * cli/cli-decode.c: Likewise.
5299 * findcmd.c: Likewise.
5300 * inline-frame.c: Likewise.
5301 * mi/mi-main.c: Likewise.
5302 * minsyms.c: Likewise.
5303 * monitor.c: Likewise.
5304 * monitor.h: Likewise.
5305 * prologue-value.c: Likewise.
5306 * reverse.c: Likewise.
5307 * s390-tdep.c: Likewise.
5308
5309 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5310
5311 * jit.c (jit_inferior_init): Forward declare.
5312 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
5313
5314 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5315
5316 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
5317
5318 2011-07-04 Tristan Gingold <gingold@adacore.com>
5319
5320 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
5321 (tcb_fieldno): Add activation_link field.
5322 (get_known_tasks_addr): Moved and rewritten.
5323 (get_tcb_types_info): Set activation_link field.
5324 (read_known_tasks_array): Add parameter. Rewritten.
5325 (read_known_tasks_list): New function.
5326 (read_known_tasks): New function.
5327 (ada_build_task_list): Call read_known_tasks instead of
5328 read_known_tasks_array.
5329 * ravenscar-thread.c: Add first_task_name constant.
5330 (has_ravenscar_runtime): Check for task list too.
5331
5332 2011-07-04 Tristan Gingold <gingold@adacore.com>
5333
5334 * ada-tasks.c: Renames fieldno to actb_fieldno.
5335 (ada_get_task_number): Indentation.
5336 (get_tcb_types_info): Remove all parameters. Write directly
5337 the globals.
5338 (ptid_from_atcb_common): Adjust.
5339 (read_atcb): Adjust.
5340
5341 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5342
5343 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
5344
5345 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5346
5347 * ui-out.c (ui_out_field_core_addr): Mention that the function
5348 description is in the header file.
5349 * ui-out.h (ui_out_field_core_addr): Document function.
5350
5351 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5352
5353 * ui-out.c (ui_out_get_field_separator): Remove unused function.
5354 * ui-out.h (ui_out_get_field_separator): Remove prototype.
5355
5356 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5357
5358 * symtab.c (expand_line_sal): Remove empty line.
5359
5360 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
5361
5362 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5363 same way as ELFOSABI_NONE.
5364 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5365
5366 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5367
5368 * breakpoint.c: Fix typos in comments.
5369 * linespec.c: Likewise.
5370 * symtab.c: Likewise.
5371
5372 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5373
5374 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5375 section in separate object files.
5376
5377 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5378
5379 Fix false GCC warning.
5380 * linespec.c (decode_line_1): Initialize values.
5381
5382 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5383
5384 * linespec.c (find_method): Accept the function type automatically only
5385 if it was specified with parameter types.
5386
5387 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5388
5389 Stop on first linespec terminator instead of eating what we can.
5390 * linespec.c (is_linespec_boundary): New function.
5391 (name_end): Remove function.
5392 (keep_name_info): New parameter on_boundary, replace the body.
5393 (decode_line_1): Provide the parameter to keep_name_info.
5394 (decode_compound): Likewise. Drop the trailing java return type
5395 handling. Twice.
5396
5397 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5398
5399 Fall back linespec to minimal symbols.
5400 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
5401 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5402 (find_method, symbol_found): Change error to cplusplus_error.
5403
5404 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5405
5406 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
5407
5408 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5409 Tom Tromey <tromey@redhat.com>
5410
5411 * dwarf2read.c (check_physname): New variable.
5412 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5413 (show_check_physname): New function.
5414 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5415
5416 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5417
5418 * machoread.c (macho_symfile_read): Delete OBE comment.
5419
5420 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5421
5422 * machoread.c (struct macho_oso_data): Delete.
5423 (current_oso): Delete.
5424 (macho_relocate_common_syms): New function, mostly extracted
5425 out of
5426 (macho_add_oso_symfile): Call macho_relocate_common_syms.
5427 Remove code that sets and unset current_oso.
5428 (macho_symfile_relocate): Delete handling of common symbols,
5429 now moved to macho_relocate_common_syms.
5430
5431 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5432
5433 * darwin-nat.c (darwin_ptrace): Add documentation.
5434 Set errno to zero before calling ptrace. If ptrace returns
5435 -1 and errno is zero, then change then return zero.
5436 (darwin_kill_inferior): Issue a warning instead of triggering
5437 a failed assertion when the PT_KILL ptrace operations returned
5438 nonzero.
5439
5440 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5441
5442 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5443 only when inf->private->no_ptrace.
5444
5445 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5446
5447 * ada-lang.c (print_it_exception): Print temporary catchpoints
5448 as "Temporary catchpoint".
5449 (print_mention_exception): Likewise.
5450
5451 2011-07-01 Tom Tromey <tromey@redhat.com>
5452
5453 * jv-lang.c (java_language_defn): Use java_printchar,
5454 java_printstr.
5455 (java_get_encoding): New function.
5456 (java_emit_char): Use generic_emit_char.
5457 (java_printchar): New function.
5458 (java_printstr): Likewise.
5459
5460 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5461
5462 * ada-typeprint.c (print_record_type): If unable to decode
5463 the name of the parent type, use the encoded name.
5464
5465 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5466
5467 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5468 pointer to constrained packed array type output.
5469 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5470 packed array output.
5471
5472 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5473
5474 * ada-typeprint.c (print_array_type): removed if condition on show
5475 being negative for bounds printing.
5476
5477 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5478
5479 * ada-lang.c (ada_identical_enum_types_p): New function.
5480 (symbols_are_identical_enums): New function.
5481 (remove_extra_symbols): Do nothing if NSYMS < 2.
5482 Use symbols_are_identical_enums.
5483
5484 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5485
5486 * ada-valprint.c (ada_value_print): Handle typedefs.
5487
5488 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5489
5490 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5491
5492 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5493
5494 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5495 (decode_constrained_packed_array): Likewise.
5496 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5497
5498 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5499
5500 * ada-exp.y (convert_char_literal): Handle typedef types.
5501
5502 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5503
5504 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5505
5506 2011-06-30 Tom Tromey <tromey@redhat.com>
5507
5508 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5509 * valops.c (find_overload_match): Call do_cleanups on early exit
5510 path.
5511 * solib.c (solib_find): Call do_cleanups on early exit path.
5512
5513 2011-06-30 Tom Tromey <tromey@redhat.com>
5514
5515 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5516 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5517 return paths. Defer final do_cleanups until last return.
5518 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5519 early return.
5520
5521 2011-06-30 Tom Tromey <tromey@redhat.com>
5522
5523 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5524
5525 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
5526
5527 * MAINTAINERS (Write After Approval): Add myself to the list.
5528
5529 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5530
5531 Disable epilogue unwinders on recent GCCs.
5532 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5533 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5534 * dwarf2read.c (process_full_comp_unit): Initialize
5535 EPILOGUE_UNWIND_VALID.
5536 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5537 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5538 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5539
5540 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5541
5542 Code cleanup - reformatting.
5543 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5544 (producer_is_gcc_ge_4): ... here, change the return value.
5545 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5546 interpretation.
5547
5548 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5549
5550 Fix non-only rename list for Fortran modules import.
5551 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5552 cp_add_using_directive caller.
5553 (cp_add_using_directive): New parameter excludes, describe it. New
5554 variables ix and param. Compare if also excludes match. Allocate NEW
5555 with variable size, initialize EXCLUDES there.
5556 (cp_lookup_symbol_imports): New variable excludep, test
5557 current->EXCLUDES with it.
5558 * cp-support.h: Include vec.h.
5559 (struct using_direct): New field excludes, describe it.
5560 (DEF_VEC_P (const_char_ptr)): New.
5561 (cp_add_using_directive): New parameter excludes.
5562 * defs.h (const_char_ptr): New typedef.
5563 * dwarf2read.c (read_import_statement): New variables child_die,
5564 excludes and cleanups, read in excludes.
5565 (read_namespace): Adjust the cp_add_using_directive caller.
5566
5567 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5568
5569 Code cleanup.
5570 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5571 negative comparisons.
5572
5573 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
5574
5575 * mi/mi-main.c (mi_cmd_list_features): Emit
5576 breakpoint-notifications.
5577
5578 2011-06-29 Tom Tromey <tromey@redhat.com>
5579
5580 PR fortran/10036:
5581 * valprint.h (generic_emit_char, generic_printstr): Declare.
5582 * valprint.c (wchar_printable, append_string_as_wide)
5583 (print_wchar): Move from c-lang.c.
5584 (generic_emit_char): New function; mostly taken from c_emit_char.
5585 (generic_printstr): New function; mostly taken from c_printstr.
5586 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5587 represented as arrays.
5588 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5589 type.
5590 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5591 identically to TYPE_CODE_INT.
5592 * f-lang.c (f_get_encoding): New function.
5593 (f_emit_char): Use generic_emit_char.
5594 (f_printchar): Replace comment.
5595 (f_printstr): Use generic_printstr.
5596 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5597 "character" types specially.
5598 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5599 for Fortran.
5600 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5601 Move to valprint.c
5602 (c_emit_char): Call generic_emit_char.
5603 (c_printstr): Call generic_printstr.
5604
5605 2011-06-29 Gary Benson <gbenson@redhat.com>
5606
5607 * breakpoint.c (bpstat_what): Removed duplicated case.
5608
5609 2011-06-28 Tom Tromey <tromey@redhat.com>
5610
5611 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5612
5613 2011-06-27 Tom Tromey <tromey@redhat.com>
5614
5615 * valops.c (find_overload_match): Call do_cleanups before early
5616 return.
5617 * top.c (execute_command): Call do_cleanups before early return.
5618 (command_loop): Likewise.
5619 * stack.c (backtrace_command): Make a null cleanup early. Don't
5620 conditionally call do_cleanups.
5621 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5622 TRY_CATCH.
5623 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5624 so cleanups are always run.
5625 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5626 * findcmd.c (parse_find_args): Call do_cleanups on early return
5627 path.
5628 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5629 Don't conditionally call do_cleanups.
5630 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5631 later.
5632
5633 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5634
5635 * MAINTAINERS (Write After Approval): Use default email address.
5636
5637 2011-06-27 Joel Brobecker <brobecker@adacore.com>
5638
5639 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5640
5641 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5642
5643 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5644 saved_regs_mask and copied_regs_mask fields.
5645 (sparc_record_save_insn): New prototype.
5646 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5647 (sparc_record_save_insn): New function.
5648 (sparc_analyze_prologue): Add head comment. Recognize store insns
5649 of call-saved registers. Use OFFSET consistently. Recognize flat
5650 frames and cache their settings.
5651 (sparc32_skip_prologue): Handle flat frames.
5652 (sparc_frame_cache): Add frame_offset to the base address.
5653 (sparc32_frame_cache): Adjust to new frame description.
5654 (sparc32_frame_prev_register): Likewise.
5655 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5656 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5657 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5658 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5659 frame by calling sparc_record_save_insn.
5660 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5661 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5662 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5663
5664 2011-06-27 Tristan Gingold <gingold@adacore.com>
5665
5666 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5667 field by map_addr and map_len.
5668 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5669 (munmap_section_buffer): Likewise.
5670
5671 2011-06-24 Tom Tromey <tromey@redhat.com>
5672
5673 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5674 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5675 * python/python.c (gdbpy_parameter): Make 'arg' const.
5676 (execute_gdb_command): Likewise.
5677 (gdbpy_decode_line): Likewise. Copy it.
5678 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5679 (gdbpy_write): Make 'arg' const.
5680 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5681 const.
5682 (gdbpy_lookup_type): Likewise.
5683 * python/py-prettyprint.c (print_children): Make 'name' const.
5684 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5685 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5686 Py_ssize_t.
5687 * python/py-function.c (fnpy_init): Make 'name' const.
5688 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5689 (gdbpy_string_to_argv): Make 'input' const.
5690 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5691 it.
5692 * gdbtypes.h (lookup_typename): Update.
5693 * gdbtypes.c (lookup_typename): Make 'name' const.
5694 (lookup_struct): Likewise.
5695 (lookup_union): Likewise.
5696 (lookup_enum): Likewise.
5697
5698 2011-06-24 Tom Tromey <tromey@redhat.com>
5699
5700 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5701 gdb_thread_db.h. Move all common/ entries to be together.
5702 (TAGS): Don't depend on DEPFILES.
5703
5704 2011-06-23 Yao Qi <yao@codesourcery.com>
5705
5706 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5707 * remote.c (remote_start_remote): ... here.
5708 * monitor.c (monitor_open): ... here.
5709
5710 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
5711
5712 * gdbtypes.c (append_composite_type_field_aligned): Fix
5713 calculation of bit position based on alignment.
5714
5715 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5716
5717 * breakpoint.c (bpstat_stop_status): Call the check_status
5718 breakpoint_ops method.
5719 (print_one_breakpoint_location): Also print the condition for Ada
5720 exception catchpoints.
5721 (allocate_bp_location): New, factored out from
5722 allocate_bp_location.
5723 (allocate_bp_location): Adjust. Call the owner breakpoint's
5724 allocate_location method, if there is one.
5725 (free_bp_location): Call the locations's dtor method, if there is
5726 one.
5727 (init_raw_breakpoint_without_location): New breakpoint_ops
5728 parameter. Use it.
5729 (set_raw_breakpoint_without_location): Adjust.
5730 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5731 (set_raw_breakpoint): Adjust.
5732 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5733 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5734 re_set and check_status methods.
5735 (init_catchpoint): Don't memset, initialize thread, addr_string
5736 and enable_state. Pass the ops down to init_raw_breakpoint.
5737 (install_catchpoint): Rename to ...
5738 (install_breakpoint): ... this, and make extern.
5739 (create_fork_vfork_event_catchpoint): Adjust.
5740 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5741 re_set and check_status methods.
5742 (create_syscall_event_catchpoint): Adjust.
5743 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5744 (masked_watchpoint_breakpoint_ops): Install NULL
5745 allocate_location, re_set and check_status methods.
5746 (catch_exec_command_1): Adjust.
5747 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5748 re_set and check_status methods.
5749 (create_ada_exception_breakpoint): Rename to ...
5750 (init_ada_exception_breakpoint): ... this. Add a struct
5751 breakpoint parameter, and delete the exp_string, cond_string and
5752 cond parameters. Use init_raw_breakpoint, and don't install or
5753 mention the breakpoint yet. Don't clear breakpoint fields that
5754 init_raw_breakpoint already clears.
5755 (re_set_breakpoint): Delete, split into ...
5756 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5757 functions.
5758 (breakpoint_re_set_one): Call the breakpoint's
5759 breakpoint_ops->re_set implementation, if there's one. Adjust.
5760 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5761 (struct bp_location_ops): New type.
5762 (struct bp_location): New field `ops'.
5763 (struct breakpoint_ops): New `allocate_location', `re_set' and
5764 `check_status' fields. Make `breakpoint_hit''s description match
5765 reality.
5766 (init_bp_location): Declare.
5767 (breakpoint_re_set_default): Declare.
5768 (create_ada_exception_breakpoint): Rename to ...
5769 (init_ada_exception_breakpoint): ... this. Add a struct
5770 breakpoint parameter, and delete the exp_string, cond_string and
5771 cond parameters.
5772 (install_breakpoint): Declare.
5773 * ada-lang.c: Include exceptions.h.
5774 <Ada exceptions description>: Update.
5775 (struct ada_catchpoint_location): New type.
5776 (ada_catchpoint_location_dtor): New function.
5777 (ada_catchpoint_location_ops): New global.
5778 (ada_catchpoint): New type.
5779 (create_excep_cond_exprs): New function.
5780 (dtor_exception, allocate_location_exception, re_set_exception)
5781 (should_stop_exception, check_status_exception): New functions.
5782 (print_one_exception, print_mention_exception)
5783 (print_recreate_exception): Adjust.
5784 (dtor_catch_exception, allocate_location_catch_exception)
5785 (re_set_catch_exception, check_status_catch_exception): New
5786 functions.
5787 (catch_exception_breakpoint_ops): Install them.
5788 (dtor_catch_exception_unhandled)
5789 (allocate_location_catch_exception_unhandled)
5790 (re_set_catch_exception_unhandled)
5791 (check_status_catch_exception_unhandled): New functions.
5792 (catch_exception_unhandled_breakpoint_ops): Install them.
5793 (dtor_catch_assert, allocate_location_catch_assert)
5794 (re_set_catch_assert, check_status_catch_assert): New functions.
5795 (catch_assert_breakpoint_ops): Install them.
5796 (ada_exception_catchpoint_p): Delete.
5797 (catch_ada_exception_command_split)
5798 (ada_exception_catchpoint_cond_string): Rename exp_string
5799 parameter to excep_string. Adjust.
5800 (ada_parse_catchpoint_condition): Delete.
5801 (ada_exception_sal): Rename the exp_string parameter to
5802 excep_string. Delete the cond_string and cond parameters.
5803 Adjust.
5804 (ada_decode_exception_location): Rename the exp_string parameter
5805 to excep_string. Delete the cond_string and cond parameters.
5806 Adjust.
5807 (create_ada_exception_catchpoint): New function.
5808 (catch_ada_exception_command, ada_decode_assert_location)
5809 (catch_assert_command): Adjust.
5810 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5811
5812 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5813
5814 * ada-lang.c: Include arch-utils.h.
5815 (ada_decode_exception_location): Make static.
5816 (catch_ada_exception_command): Moved here from breakpoint.c.
5817 (ada_decode_assert_location): Make static.
5818 (catch_assert_command): Moved here from breakpoint.c.
5819 (_initialize_ada_lang): Install the exception and assert
5820 catchpoint commands here.
5821 * ada-lang.h (ada_decode_exception_location)
5822 (ada_decode_assert_location): Delete declarations.
5823 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5824 breakpoint.h.
5825 (create_ada_exception_breakpoint): Make extern.
5826 (catch_ada_exception_command, catch_assert_command): Moved to
5827 ada-lang.c.
5828 (add_catch_command): Make extern.
5829 (_initilize_breakpoint): Don't install the exception and assert
5830 catchpoint commands here.
5831 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5832 breakpoint.c
5833 (add_catch_command, create_ada_exception_breakpoint): Declare.
5834
5835 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5836
5837 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5838 the breakpoint to the breakpoint chain here.
5839 (set_raw_breakpoint_without_location): Add the breakpoint to the
5840 breakpoint chain here.
5841 (init_raw_breakpoint): Adjust comments.
5842 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5843 here.
5844 (init_catchpoint): Don't set the catchpoint's breakpoint number
5845 here.
5846 (install_catchpoint): New function.
5847 (create_fork_vfork_event_catchpoint)
5848 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5849 use install_catchpoint.
5850
5851 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5852
5853 * breakpoint.c (create_catchpoint_without_mention)
5854 (create_catchpoint): Delete.
5855
5856 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5857
5858 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5859 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5860 reference to exec_pathname.
5861 (struct exec_catchpoint): New type.
5862 (dtor_catch_exec): New function.
5863 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5864 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5865 (catch_exec_command_1): Adjust to use init_catchpoint.
5866 (delete_breakpoint): Remove reference to exec_pathname.
5867
5868 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5869
5870 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5871 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5872 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5873 reference to syscalls_to_be_caught.
5874 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5875 NULL `dtor'.
5876 (struct syscall_catchpoint): New type.
5877 (dtor_catch_syscall): New function.
5878 (insert_catch_syscall, remove_catch_syscall)
5879 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5880 (print_recreate_catch_syscall): Adjust.
5881 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5882 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5883 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5884 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5885 (masked_watchpoint_breakpoint_ops)
5886 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5887 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5888 there is one. Remove references to syscalls_to_be_caught.
5889 (catching_syscall_number): Adjust.
5890 * ada-lang.c (catch_exception_breakpoint_ops)
5891 (catch_exception_unhandled_breakpoint_ops)
5892 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5893
5894 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5895
5896 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5897 field.
5898 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5899 reference to forked_inferior_pid.
5900 (struct fork_catchpoint): New type.
5901 (breakpoint_hit_catch_fork, print_it_catch_fork)
5902 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5903 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5904 (create_fork_vfork_event_catchpoint): Adjust to use
5905 init_catchpoint.
5906
5907 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5908
5909 * breakpoint.c (add_to_breakpoint_chain)
5910 (init_raw_breakpoint_without_location): New functions, factored
5911 out from ...
5912 (set_raw_breakpoint_without_location): ... this one.
5913 (init_raw_breakpoint): New function, factored out from
5914 set_raw_breakpoint and adjusted to use
5915 init_raw_breakpoint_without_location.
5916 (set_raw_breakpoint): Adjust.
5917 (init_catchpoint): New function, factored out from
5918 create_catchpoint_without_mention and adjusted to use
5919 init_raw_breakpoint.
5920 (create_catchpoint_without_mention): Adjust.
5921
5922 2011-06-22 Tom Tromey <tromey@redhat.com>
5923
5924 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5925 argument of 0 specially.
5926
5927 2011-06-22 Yao Qi <yao@codesourcery.com>
5928
5929 * infrun.c (handle_inferior_event): Remove write-only local variable
5930 `sw_single_step_trap_p'.
5931
5932 2011-06-20 Tom Tromey <tromey@redhat.com>
5933
5934 * symtab.c (lookup_language_this): End loop if block is NULL.
5935
5936 2011-06-17 Tom Tromey <tromey@redhat.com>
5937
5938 * valops.c (value_of_this): Use lookup_language_this.
5939 * symtab.h (lookup_language_this): Declare.
5940 * symtab.c (lookup_language_this): New function.
5941 (lookup_symbol_aux): Use lookup_language_this.
5942 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5943
5944 2011-06-17 Tom Tromey <tromey@redhat.com>
5945
5946 * value.h (value_of_this): Update.
5947 (value_of_local): Remove.
5948 * valops.c (value_of_this): Rename from value_of_local. Change
5949 parameters.
5950 * p-exp.y (exp): Update.
5951 (variable): Likewise.
5952 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5953
5954 2011-06-17 Tom Tromey <tromey@redhat.com>
5955
5956 * valops.c (value_of_local): Complain if NAME is NULL.
5957 * std-operator.def (OP_OBJC_SELF): Remove.
5958 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5959 * objc-exp.y (name_not_typename): Use OP_THIS.
5960 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5961 name for "this".
5962 <OP_OBJC_SELF>: Remove.
5963 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5964
5965 2011-06-16 Tristan Gingold <gingold@adacore.com>
5966
5967 * python/py-events.h (gdb_py_events): Make it extern.
5968 * python/py-evtregistry.c (gdb_py_events): Declare.
5969
5970 2011-06-16 Hui Zhu <teawater@gmail.com>
5971
5972 * remote.c (remote_trace_set_readonly_regions): Add check for
5973 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5974 output warning.
5975
5976 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5977
5978 * arm-linux-tdep.c: Include "auxv.h".
5979 (AT_HWCAP): Define.
5980 (ARM_LINUX_SIZEOF_VFP): Define.
5981 (arm_linux_supply_vfp): New function.
5982 (arm_linux_collect_vfp): Likewise.
5983 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5984 (arm_linux_fpa_regset_sections): New variable.
5985 (arm_linux_vfp_regset_sections): Likewise.
5986 (arm_linux_core_read_description): New function.
5987 (arm_linux_init_abi): Install arm_linux_core_read_description and
5988 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5989 appropriate for the architecture.
5990 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5991 (tdesc_arm_with_m): Declare.
5992 (tdesc_arm_with_iwmmxt): Likewise.
5993 (tdesc_arm_with_vfpv2): Likewise.
5994 (tdesc_arm_with_vfpv3): Likewise.
5995 (tdesc_arm_with_neon): Likewise.
5996 * arm-linux-nat.c: Move features/*.c includes ...
5997 * arm-tdep.c: ... here.
5998 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5999 target description data structures ...
6000 * arm-tdep.c (_initialize_arm_tdep): ... here.
6001 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
6002 HWCAP_VFPv3D16): Move definitions ...
6003 * arm-linux-tdep.h: ... here.
6004
6005 2011-06-15 Hui Zhu <teawater@gmail.com>
6006
6007 * remote.c (remote_trace_set_readonly_regions): Add a check for
6008 target_buf_size.
6009
6010 2011-06-14 Tom Tromey <tromey@redhat.com>
6011
6012 * coffread.c (coffread_objfile): Rename from current_objfile.
6013 * dbxread.c (dbxread_objfile): Rename from current_objfile.
6014 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
6015
6016 2011-06-14 Tom Tromey <tromey@redhat.com>
6017
6018 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
6019 (class_symtab): Remove.
6020 (jv_dynamics_progspace_key): New global.
6021 (jv_per_objfile_free): Reset program space data. Update assert.
6022 Don't clear globals.
6023 (get_dynamics_objfile): Use and set program space data.
6024 (get_java_class_symtab): Use get_dynamics_objfile.
6025 (add_class_symbol): Likewise.
6026 (java_link_class_type): Likewise.
6027 (java_object_type, jv_clear_object_type, set_java_object_type):
6028 Remove.
6029 (get_java_object_type): Update. Don't cache result.
6030 (is_object_type): Don't call set_java_object_type.
6031 (_initialize_java_language): Don't set jv_type_objfile_data_key;
6032 initialize jv_dynamics_progspace_key.
6033
6034 2011-06-14 Tom Tromey <tromey@redhat.com>
6035
6036 * symtab.h (current_objfile): Don't declare.
6037 * objfiles.h (current_objfile): Don't declare.
6038 * objfiles.c (current_objfile): Remove.
6039 * mdebugread.c (current_objfile): New file-scope global.
6040 * dbxread.c (current_objfile): New file-scope global.
6041 * coffread.c (current_objfile): New file-scope global.
6042
6043 2011-06-13 Pedro Alves <pedro@codesourcery.com>
6044
6045 * top.h (line): Rename to ...
6046 (saved_command_line): ... this.
6047 (linesize): Rename to ...
6048 (saved_command_line_size): ... this.
6049 * top.c (line): Rename to ...
6050 (saved_command_line): ... this.
6051 (linesize): Rename to ...
6052 (saved_command_line_size): ... this.
6053 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
6054 * event-top.c (command_line_handler): Adjust.
6055 * main.c (captured_main): Adjust.
6056
6057 2011-06-12 Mark Kettenis <kettenis@gnu.org>
6058
6059 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
6060 get_frame_func instead of get_frame_pc to determine the code
6061 address used to construct the frame ID.
6062 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
6063 (i386_epilogue_frame_this_id): Likewise.
6064 (i386_epilogue_frame_prev_register): New function.
6065 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
6066 (i386_stack_tramp_frame_sniffer): Fix coding style.
6067 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
6068 (i386_gdbarch_init): Fix comments.
6069
6070 2011-06-12 Mark Kettenis <kettenis@gnu.org>
6071
6072 * i386-tdep.c (i386_match_insn_block): Use length of the proper
6073 instruction when walking back through the instruction stream.
6074
6075 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6076
6077 * symtab.c (output_partial_symbol_filename): Exchange the filename and
6078 fullname parameters order.
6079
6080 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6081
6082 Code cleanup.
6083 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
6084 for fun.
6085 * psymtab.c (map_symbol_filenames_psymtab)
6086 (map_partial_symbol_filenames): Likewise.
6087 * psymtab.h: Include symfile.h.
6088 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
6089 * symfile.h (symbol_filename_ftype): New.
6090 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
6091 map_symbol_filenames, clarify more the naming in comment.
6092
6093 2011-06-07 Doug Evans <dje@google.com>
6094
6095 * cc-with-index.sh: Fix typos in comment.
6096 Look for ../../gdb, for fullname.exp.
6097
6098 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6099 Pedro Alves <pedro@codesourcery.com>
6100
6101 * cli/cli-cmds.c (shell_escape): Use waitpid.
6102 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
6103
6104 2011-06-07 Tristan Gingold <gingold@adacore.com>
6105
6106 * xcoffread.c (dwarf2_xcoff_names): New variable.
6107 (aix_process_linenos): Add a guard.
6108 (xcoff_symfile_finish): Free dwarf2.
6109 (xcoff_initial_scan): Add dwarf2 support.
6110
6111 2011-06-06 Pedro Alves <pedro@codesourcery.com>
6112
6113 * infcall.c (run_inferior_call): Don't mask async. Instead force
6114 a synchronous wait, if the target can async.
6115
6116 * target.h (struct target_ops): Delete to_async_mask.
6117 (target_async_mask): Delete.
6118 * target.c (update_current_target): Delete references to to_async_mask.
6119 * linux-nat.c (linux_nat_async_mask_value): Delete.
6120 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
6121 to linux_nat_async_mask_value.
6122 (linux_nat_async_mask): Delete.
6123 (linux_nat_async, linux_nat_close): Remove references to
6124 linux_nat_async_mask_value.
6125 * record.c (record_async_mask_value): Delete.
6126 (record_async): Remove references to record_async_mask_value.
6127 (record_async_mask): Delete.
6128 (record_can_async_p, record_is_async_p): Remove references to
6129 record_async_mask_value.
6130 (init_record_ops, init_record_core_ops): Remove references to
6131 record_async_mask.
6132 * remote.c (remote_async_mask_value): Delete.
6133 (init_remote_ops): Remove reference to remote_async_mask.
6134 (remote_can_async_p, remote_is_async_p): Remove references to
6135 remote_async_mask_value.
6136 (remote_async): Remove references to remote_async_mask_value.
6137 (remote_async_mask): Delete.
6138
6139 * infrun.c (fetch_inferior_event): Don't claim registers changed
6140 if the current thread is already not executing.
6141
6142 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
6143
6144 From Stephen Kitt <steve@sk2.org>
6145 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
6146 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
6147
6148 2011-06-03 Joel Brobecker <brobecker@adacore.com>
6149
6150 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
6151 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
6152
6153 2011-06-03 Tom Tromey <tromey@redhat.com>
6154
6155 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
6156 code fields.
6157 * python/py-exitedevent.c (create_exited_event_object): Change
6158 type of 'exit_code'. Optionally add exit_code attribute.
6159 (emit_exited_event): Change type of 'exit_code'.
6160 * python/py-event.h (emit_exited_event): Update.
6161 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
6162 * infrun.c (handle_inferior_event): Set exit code fields on
6163 inferior.
6164 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
6165 fields.
6166 * inferior.c (exit_inferior_1): Initialize new fields.
6167
6168 2011-06-03 Tom Tromey <tromey@redhat.com>
6169
6170 * dwarf2expr.c (get_signed_type): New function.
6171 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
6172
6173 2011-06-02 Keith Seitz <keiths@redhat.com>
6174
6175 * objc-lang.c (find_methods): Increment objfile_csym earlier.
6176
6177 2011-06-02 Pedro Alves <pedro@codesourcery.com>
6178
6179 * top.h (simplified_command_loop): Delete declaration.
6180
6181 2011-06-01 Mike Frysinger <vapier@gentoo.org>
6182
6183 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
6184 gdb_sysroot to the "len" variable. Append both to "arg_buf".
6185
6186 2011-06-01 Yao Qi <yao@codesourcery.com>
6187
6188 * objfiles.h (obj_section_addr): Update reference to objfile from
6189 `abfd' to `obfd'.
6190 (obj_section_endaddr): Likewise.
6191
6192 2011-06-01 Daniel Jacobowitz <drow@false.org>
6193
6194 * MAINTAINERS: Update my email address and affiliation. Also
6195 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
6196
6197 2010-05-31 Keith Seitz <keiths@redhat.com>
6198
6199 PR c++/12750
6200 * linespec.c (get_search_block): New function.
6201 (find_methods): Add FILE_SYMTATB parameter and use it and
6202 get_search_block to pass an appropriate block to
6203 lookup_symbol_in_namespace.
6204 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
6205 Check if *ARGPTR starts with a filename first.
6206 If it does, call locate_first_half again to locate the next
6207 "first half" of the linespec.
6208 Pass FILE_SYMTATB to decode_objc and decode_compound.
6209 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
6210 (locate_first_half): Stop on the first colon seen.
6211 (decode_compound): Add FILE_SYMTAB parameter.
6212 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
6213 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
6214 get_search_block with lookup_symbol.
6215 (find_method): Add FILE_SYMTAB parameter and pass it to
6216 find_methods.
6217 (decode_objc): Use get_search_block.
6218
6219 2010-05-31 Keith Seitz <keiths@redhat.com>
6220
6221 PR symtab/12704
6222 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
6223 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
6224 and CP_ANONYMOUS_NAMESPACE_LEN.
6225 (cp_is_anonymous): Likewise.
6226 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
6227 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
6228 * dwarf2read.c (namespace_name): Likewise.
6229 (fixup_partial_die): Likewise.
6230 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
6231 seen in the input, keep it.
6232
6233 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6234
6235 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
6236 * inf-loop.h (inferior_event_handler_wrapper): Delete.
6237 * inf-loop.c (inferior_event_handler_wrapper): Delete.
6238 (inferior_event_handler): Don't handle INF_QUIT_REQ.
6239 * remote.c (_initialize_remote): Register
6240 async_remote_interrupt_twice directly as
6241 sigint_remote_twice_token event.
6242
6243 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6244
6245 * target.h (enum inferior_event_type): Delete INF_ERROR.
6246 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
6247
6248 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6249
6250 * interps.c (interp_set): Don't cancel continuations.
6251
6252 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
6253
6254 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
6255
6256 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6257
6258 * continuations.h (continuation_ftype): Add `err' parameter.
6259 Document parameters.
6260 (do_all_continuations, do_all_continuations_thread)
6261 (do_all_intermediate_continuations)
6262 (do_all_intermediate_continuations_thread)
6263 (do_all_inferior_continuations): Add `err' parameter.
6264 * continuations.c (do_my_continuations_1, do_my_continuations)
6265 (do_all_inferior_continuations, do_all_continuations_ptid)
6266 (do_all_continuations_thread_callback)
6267 (do_all_continuations_thread, do_all_continuations)
6268 (do_all_intermediate_continuations_thread_callback)
6269 (do_all_intermediate_continuations_thread)
6270 (do_all_intermediate_continuations): Add `err' parameter, and pass
6271 it down all the way to the continuations proper.
6272 * inf-loop.c (inferior_event_handler): If fetching an inferior
6273 event throws an error, don't pop the target, and still call the
6274 continuations, but with `err' set. Adjust all other continuation
6275 calls.
6276 * breakpoint.c (until_break_command_continuation): Add `err'
6277 parameter.
6278 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
6279 issue another step if `err' is set.
6280 (struct until_next_continuation_args): New.
6281 (until_next_continuation): Add `err' parameter. Adjust.
6282 (until_next_command): Adjust.
6283 (struct finish_command_continuation_args): Add `thread' field.
6284 (finish_command_continuation): Add `err' parameter. Handle it.
6285 (finish_forward): Adjust.
6286 (attach_command_continuation): Add `err' parameter. Handle it.
6287 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
6288 cancel the continuations.
6289 * interps.c (interp_set): Adjust to cancel the continuations.
6290 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
6291 continuations rather than discarding.
6292 (free_thread): Don't clear thread inferior resources here.
6293 (delete_thread_1): Do it here instead. And do it before removing
6294 the thread from the threads list. Tag the thread as exited before
6295 clearing thread inferior resources.
6296
6297 2011-05-30 Joel Brobecker <brobecker@adacore.com>
6298
6299 * infcall.c (call_function_by_hand): Rephrase error message.
6300
6301 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6302
6303 * defs.h (struct thread_info, struct inferior): Delete forward
6304 declarations.
6305 * breakpoint.h (struct thread_info): New forward declaration.
6306 * observer.sh (struct inferior): New forward declaration.
6307 * python/python-internal.h (struct inferior): New forward
6308 declaration.
6309
6310 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6311
6312 * defs.h (struct continuation, continuation_ftype)
6313 (continuation_free_arg_ftype, add_continuation)
6314 (do_all_continuations, do_all_continuations_thread)
6315 (discard_all_continuations, discard_all_continuations_thread)
6316 (add_intermediate_continuation, do_all_intermediate_continuations)
6317 (do_all_intermediate_continuations_thread)
6318 (discard_all_intermediate_continuations)
6319 (discard_all_intermediate_continuations_thread)
6320 (add_inferior_continuation, do_all_inferior_continuations)
6321 (discard_all_inferior_continuations): Move to ...
6322 * continuations.h: ... this new file.
6323 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
6324 infcmd.c, inferior.c, infrun.c, interps.c: Include
6325 continuations.h.
6326
6327 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6328 Doug Evans <dje@google.com>
6329
6330 Fix PR 10970, PR 12702.
6331 * linux-nat.c (linux_lwp_is_zombie): New function.
6332 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
6333 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
6334
6335 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6336
6337 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
6338 typedefs.
6339 (add_continuation, add_intermediate_continuation)
6340 (add_inferior_continuation): Use them.
6341 * continuations.c (struct continuation): Use them.
6342 (make_continuation_ftype): Delete.
6343 (make_continuation, add_inferior_continuation, add_continuation)
6344 (add_intermediate_continuation): Use continuation_ftype and
6345 continuation_free_arg_ftype. Rename parameters to shorter names.
6346
6347 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6348
6349 * continuations.c (make_continuation): Make it return void.
6350 (do_my_continuations): Rename to ...
6351 (do_my_continuations_1): ... this. Remove old_chain parameter and
6352 adjust.
6353 (do_my_continuations): New.
6354 (discard_my_continuations): Rename to ...
6355 (discard_my_continuations_1): ... this. Remove old_chain
6356 parameter and adjust.
6357 (discard_my_continuations): New.
6358 (add_inferior_continuation): Simplify.
6359 (do_all_inferior_continuations): Reimplement on top
6360 do_my_continuations.
6361 (discard_all_inferior_continuations): Simplify.
6362 (add_continuation): Simplify.
6363 (do_all_continuations_ptid): Simplify.
6364 (discard_all_continuations_thread_callback): Simplify.
6365 (add_intermediate_continuation): Simplify.
6366 (discard_all_intermediate_continuations_thread_callback):
6367 Simplify.
6368
6369 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6370
6371 * utils.c (struct continuation, add_continuation)
6372 (add_inferior_continuation)
6373 (do_all_inferior_continuations, discard_all_inferior_continuations)
6374 (restore_thread_cleanup, do_all_continuations_ptid)
6375 (do_all_continuations_thread_callback)
6376 (do_all_continuations_thread, do_all_continuations)
6377 (discard_all_continuations_thread_callback)
6378 (discard_all_continuations_thread, discard_all_continuations)
6379 (add_intermediate_continuation)
6380 (do_all_intermediate_continuations_thread_callback)
6381 (do_all_intermediate_continuations_thread)
6382 (do_all_intermediate_continuations)
6383 (discard_all_intermediate_continuations_thread_callback)
6384 (discard_all_intermediate_continuations_thread)
6385 (discard_all_intermediate_continuations): Move to ...
6386 * continuations.c: ... this new file, and adjust to no longer
6387 implement continuations on top of cleanups.
6388 * Makefile.in (SFILES): Add continuations.c.
6389 (COMMON_OBS): Add continuations.o.
6390
6391 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6392
6393 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6394 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6395 Internal error on invalid values.
6396 * reverse.c: Don't handle EXEC_ERROR.
6397 * mi/mi-main.c: Don't handle EXEC_ERROR.
6398
6399 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6400
6401 * record.c: Include event-loop.h, inf-loop.h.
6402 (record_beneath_to_async): New global.
6403 (tmp_to_async): New global.
6404 (record_async_inferior_event_token): New global.
6405 (record_open_1): Don't error out if async is enabled.
6406 (record_open): Handle to_async. Create an async event source in
6407 the event loop.
6408 (record_close): Delete the async event source.
6409 (record_resumed): New global.
6410 (record_execution_dir): New global.
6411 (record_resume, record_core_resume): Set them. Register the
6412 target on the event loop.
6413 (record_wait): Rename to ...
6414 (record_wait_1): ... this. Add more debug output. Handle
6415 TARGET_WNOHANG, and the target beneath returning
6416 TARGET_WAITKIND_IGNORE.
6417 (record_wait): Reimplement on top of record_wait_1.
6418 (record_async_mask_value): New global.
6419 (record_async, record_async_mask, record_can_async_p)
6420 (record_is_async_p, record_execution_direction): New functions.
6421 (init_record_ops, init_record_core_ops): Install new methods.
6422 * infrun.c (fetch_inferior_event): Temporarily switch the global
6423 execution direction to the direction the target was going.
6424 (execution_direction): Change type to int.
6425 * target.c (default_execution_direction): New function.
6426 (update_current_target): Inherit and de_fault
6427 to_execution_direction.
6428 * target.h (struct target_ops) <to_execution_direction>: New
6429 field.
6430 (target_execution_direction): New macro.
6431 * inferior.h (execution_direction): Change type to int.
6432
6433 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6434
6435 * infcall.c (call_function_by_hand): Don't allow calling functions
6436 in reverse execution mode.
6437
6438 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6439
6440 * infcmd.c (finish_command): Allow async finish in reverse.
6441
6442 2011-05-26 Yao Qi <yao@codesourcery.com>
6443
6444 * gdb_thread_db.h: Delete. Move to ...
6445 * common/gdb_thread_db.h: ... here.
6446
6447 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6448
6449 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6450 function's entry point instead of a manually managed momentary
6451 breakpoint, and only ever issue one proceed call.
6452 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6453 doing a reverse-finish, switch to stepi mode, to do another step.
6454 (insert_step_resume_breakpoint_at_sal): Make public.
6455 (normal_stop): No need to save function value return registers if
6456 going reverse.
6457 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6458
6459 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6460
6461 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6462 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6463 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6464 at the end.
6465 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6466 step-resume breakpoints.
6467 (print_it_typical): Handle bp_hp_step_resume.
6468 (bpstat_what): Ditto.
6469 (bptype_string): Ditto.
6470 (print_one_breakpoint_location): Ditto.
6471 (allocate_bp_location): Ditto.
6472 (mention): Ditto.
6473 (breakpoint_re_set_one): Ditto.
6474 * infrun.c (handle_inferior_event): Adjust. Split
6475 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6476 BPSTAT_WHAT_HP_STEP_RESUME.
6477 (insert_step_resume_breakpoint_at_sal): Rename to ...
6478 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6479 parameter. Handle it.
6480 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6481 insert_step_resume_breakpoint_at_sal_1.
6482 (insert_step_resume_breakpoint_at_frame): Rename to ...
6483 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6484 set a high-priority step-resume breakpoint.
6485 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6486 (insert_step_resume_breakpoint_at_caller): Ditto.
6487
6488 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6489
6490 * breakpoint.c (iterate_over_related_breakpoints): New.
6491 (do_map_delete_breakpoint): New.
6492 (delete_command): Pass do_map_delete_breakpoint to
6493 map_breakpoint_numbers.
6494 (do_disable_breakpoint): New.
6495 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6496 breakpoints.
6497 (do_enable_breakpoint): Rename to ...
6498 (enable_breakpoint_disp): ... this.
6499 (enable_breakpoint): Adjust.
6500 (do_enable_breakpoint): New.
6501 (enable_once_breakpoint): Delete.
6502 (do_map_enable_breakpoint): New.
6503 (do_map_enable_once_breakpoint): New.
6504 (enable_once_command, enable_delete_command)
6505 (delete_trace_command): Iterate over the breakpoint's related
6506 breakpoints.
6507
6508 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6509
6510 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6511 for ALPHA_ZERO_REGNUM.
6512 (alpha_supply_int_regs): Explicitly supply zero as the value for
6513 ALPHA_ZERO_REGNUM in the register cache.
6514 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6515
6516 2011-05-26 Yao Qi <yao@codesourcery.com>
6517
6518 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6519
6520 2011-05-26 Tristan Gingold <gingold@adacore.com>
6521
6522 * symfile.h (struct dwarf2_section_names): New type.
6523 (struct dwarf2_debug_sections): New type.
6524 (dwarf2_has_info): Add parameter.
6525 * dwarf2read.c (dwarf2_elf_names): New variable.
6526 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6527 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6528 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6529 (dwarf2_has_info): Add names parameter. Pass names
6530 to dwarf2_locate_sections.
6531 (section_is_p): Rewrite using the names parameter.
6532 (dwarf2_locate_sections): Use section names from the names parameter.
6533 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6534 * elfread.c (read_psyms): Ditto.
6535 * machoread.c (macho_symfile_read): Ditto.
6536
6537 2011-05-25 Andreas Schwab <schwab@redhat.com>
6538
6539 PR gdb/8677
6540 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6541
6542 2011-05-24 Keith Seitz <keiths@redhat.com>
6543
6544 PR breakpoint/12803
6545 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6546 (decode_compound): Unconditionally call keep_name_info.
6547
6548 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6549
6550 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6551 scope, clear its command list.
6552 (map_breakpoint_numbers): Don't walk the related breakpoints list
6553 of each breakpoint.
6554
6555 2011-05-24 Tom Tromey <tromey@redhat.com>
6556
6557 * MAINTAINERS: Move Jim Blandy to past maintainers.
6558
6559 2011-05-24 Tristan Gingold <gingold@adacore.com>
6560
6561 * symfile.h (enum dwarf2_section_enum): New type.
6562 (dwarf2_get_section_info): New prototype.
6563 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6564 section_name by sect. Use a switch to select the info.
6565 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6566 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6567
6568 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6569
6570 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6571 shared library event breakpoint if there's no execution.
6572
6573 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6574
6575 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6576 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6577
6578 2011-05-23 Tom Tromey <tromey@redhat.com>
6579
6580 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6581 NULL.
6582
6583 2011-05-23 Doug Evans <dje@google.com>
6584
6585 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6586 entry for RuntimeError to doc string.
6587
6588 2011-05-23 Jerome Guitton <guitton@adacore.com>
6589
6590 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6591 sequence for probing loops.
6592
6593 2011-05-23 Pedro Alves <pedro@codesourcery.com>
6594
6595 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6596 comment.
6597
6598 2011-05-21 Mark Kettenis <kettenis@gnu.org>
6599
6600 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6601 zero as the value for %g0 in the register cache.
6602 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6603 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6604
6605 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6606
6607 * infrun.c (proceed): Set previous_inferior_ptid here.
6608 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6609 inferior_ptid, not null_ptid.
6610 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6611 (fetch_inferior_event): Nor here.
6612
6613 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6614
6615 * inf-loop.c (inferior_event_handler): Only output a message if
6616 verbose.
6617
6618 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
6619
6620 * MAINTAINERS: Update my e-mail address.
6621
6622 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6623
6624 * infrun.c (proceed): Switch the inferior event loop to
6625 INF_EXEC_COMPLETE if the target refused to resume from a
6626 vfork/fork.
6627
6628 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6629
6630 * infcmd.c: Include "inf-loop.h".
6631 (step_once): When stepping into an inline subroutine, pretend the
6632 target has run. If the target can async, switch the inferior
6633 event loop to INF_EXEC_COMPLETE.
6634 * inferior.h (user_visible_resume_ptid): Declare.
6635 * infrun.c (user_visible_resume_ptid): New function, factored out
6636 from `resume'.
6637 (resume): Use it.
6638 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6639 that the current thread is running. Merge async and sync
6640 branches.
6641
6642 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6643
6644 * infcmd.c (step_1): Simplify synchronous case.
6645
6646 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6647
6648 * tracepoint.c: Include exceptions.h.
6649 (TFILE_PID): Move higher in file.
6650 (tfile_open): Delay pushing the tfile target until we're assured
6651 the tfile header is present in the file. Wrap reading the initial
6652 newline-terminated lines in TRY_CATCH. Pop the target if the
6653 initial setup failed. Add the tfile's thread immediately
6654 aftwards, before any non-essential setup. Don't skip
6655 post_create_inferior if there are no traceframes present in the
6656 file.
6657 (tfile_close): Remove redundant check for null before xfree call.
6658 (tfile_thread_alive): New function.
6659 (init_tfile_ops): Register it as to_thread_alive callback.
6660
6661 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6662
6663 * tracepoint.c (tfile_open): Delete #if 0'd code.
6664
6665 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6666
6667 Fix -readnow for -gdwarf-4 unused type units.
6668 * dwarf2read.c (struct signatured_type): Remove the field offset.
6669 (create_signatured_type_table_from_index): Remove its initialization.
6670 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6671 instead. Add a complaint call.
6672 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6673 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6674 (lookup_signatured_type_at_offset, read_signatured_type)
6675 (write_one_signatured_type): Update the field for per_cu.
6676
6677 2011-05-19 Tom Tromey <tromey@redhat.com>
6678
6679 * python/py-inferior.c (python_inferior_exit): Use
6680 target_gdbarch.
6681 (python_on_resume): Likewise.
6682
6683 2011-05-19 Matt Rice <ratmice@gmail.com>
6684
6685 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6686
6687 2011-05-19 Hui Zhu <teawater@gmail.com>
6688
6689 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6690
6691 2011-05-19 Hui Zhu <teawater@gmail.com>
6692
6693 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6694
6695 2011-05-18 Tom Tromey <tromey@redhat.com>
6696
6697 * dwarf2read.c (dwarf2_add_field): Constify.
6698 * value.c (value_static_field): Constify.
6699 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6700 Now const.
6701 * ax-gdb.c (gen_static_field): Constify
6702
6703 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6704
6705 * linux-nat.c (kill_callback): Use SIGKILL first.
6706
6707 2011-05-18 Joel Brobecker <brobecker@adacore.com>
6708
6709 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6710
6711 2011-05-18 Tom Tromey <tromey@redhat.com>
6712
6713 * value.c (value_fn_field): Constify.
6714 * symtab.c (gdb_mangle_name): Constify.
6715 * stabsread.c (update_method_name_from_physname): Make 'physname'
6716 argument const.
6717 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6718 const. Use explicit fputc_filtered loop.
6719 (pascal_type_print_base): Constify.
6720 * p-lang.h (pascal_type_print_method_args): Update.
6721 * linespec.c (add_matching_methods): Constify.
6722 (add_constructors): Likewise.
6723 * jv-typeprint.c (java_type_print_base): Constify.
6724 * gdbtypes.h (struct cplus_struct_type)
6725 <fn_fieldlist.fn_field.physname>: Now const.
6726 * dwarf2read.c (compute_delayed_physnames): Constify.
6727 (dwarf2_add_member_fn): Likewise.
6728 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6729
6730 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6731
6732 * infrun.c (resume): Mention which is the current thread, and its
6733 current PC in debug output.
6734 (prepare_to_proceed): Mention the thread switching in debug
6735 output.
6736
6737 2011-05-18 Tom Tromey <tromey@redhat.com>
6738
6739 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6740 path check. Use xmalloc and cleanups.
6741 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6742
6743 2011-05-17 Tom Tromey <tromey@redhat.com>
6744
6745 * cp-valprint.c (cp_print_value_fields): Catch errors from
6746 value_static_field.
6747
6748 2011-05-17 Tom Tromey <tromey@redhat.com>
6749
6750 * dwarf2read.c (dwarf2_get_die_type): Call
6751 get_die_type_at_offset.
6752 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6753 get_base_type function.
6754
6755 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6756
6757 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6758 trap_expected.
6759
6760 2011-05-16 Doug Evans <dje@google.com>
6761
6762 * python/py-auto-load.c (source_section_scripts): Mention objfile
6763 name in warning.
6764
6765 2011-05-15 Doug Evans <dje@google.com>
6766
6767 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6768 (try_thread_db_load_from_pdir): Call it. If unable to find
6769 libthread_db in directory of libpthread, see if we're looking at
6770 the separate-debug-info copy.
6771
6772 * python/py-autoload.c (print_script): Print "Missing" instead of
6773 "No" for missing scripts.
6774 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6775
6776 2011-05-13 Doug Evans <dje@google.com>
6777
6778 * ui-file.c (stdio_file_write_async_safe): Add comment.
6779
6780 2011-05-14 Hui Zhu <teawater@gmail.com>
6781
6782 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6783
6784 2011-05-13 Doug Evans <dje@google.com>
6785
6786 Support $pdir and $sdir in libthread-db-search-path.
6787 * NEWS: Mention $sdir,$pdir.
6788 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6789 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6790 (try_thread_db_load_from_sdir): New function.
6791 (try_thread_db_load_from_dir): New function.
6792 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6793 system directories if search of libthread-db-search-path fails,
6794 that is now done via $sdir.
6795 (has_libpthread): New function.
6796 (thread_db_load): Remove search for libthread_db in directory of
6797 libpthread, that is now done via $pdir.
6798
6799 * NEWS: Mention "info auto-load-scripts".
6800 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6801 script_not_found_warning_printed.
6802 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6803 all callers updated. Initialize script_not_found_warning_printed.
6804 (get_auto_load_pspace_data_for_loading): New function.
6805 (maybe_add_script): New function.
6806 (source_section_scripts): Simplify. Only print one warning regardless
6807 of the number of auto-load scripts not found.
6808 (clear_section_scripts): Clear script_not_found_warning_printed.
6809 (auto_load_objfile_script): Record script in hash table.
6810 (count_matching_scripts): New function.
6811 (maybe_print_script): Renamed from maybe_print_section_script, all
6812 callers updated. Rewrite to use ui_out_*.
6813 (info_auto_load_scripts): Renamed from
6814 maintenance_print_section_scripts, all callers updated.
6815 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6816 renamed as "info auto-load-scripts".
6817
6818 2011-05-13 Tom Tromey <tromey@redhat.com>
6819
6820 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6821 (read_sleb128): Likewise.
6822
6823 2011-05-13 Tom Tromey <tromey@redhat.com>
6824
6825 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6826 offset display.
6827
6828 2011-05-13 Doug Evans <dje@google.com>
6829
6830 * linux-nat.c (debug_linux_nat_async): Delete.
6831 Replace all references to use debug_linux_nat instead.
6832 (show_debug_linux_nat_async): Delete.
6833 (sigchld_handler): Call ui_file_write_async_safe instead of
6834 fprintf_unfiltered.
6835 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6836 * ui-file.c (struct ui_file): New member to_write_async_safe.
6837 (null_file_write_async_safe): New function.
6838 (ui_file_write_async_safe): New function.
6839 (set_ui_file_write_async_safe): New function.
6840 (ui_file_new): Initialize to_write_async_safe.
6841 (stdio_file_write_async_safe): New function.
6842 (struct stdio_file): New member fd.
6843 (stdio_file_new): Initialize to_write_async_safe, fd.
6844 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6845 fileno.
6846 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6847 (set_ui_file_write_async_safe): Declare.
6848 (ui_file_write_async_safe): Declare.
6849
6850 2011-05-13 Tom Tromey <tromey@redhat.com>
6851
6852 * utils.c (do_value_free): New function.
6853 (make_cleanup_value_free): Likewise.
6854 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6855 freeing correctly.
6856 (dwarf2_loc_desc_needs_frame): Call
6857 make_cleanup_value_free_to_mark.
6858 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6859 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6860 value_free_to_mark.
6861 (new_dwarf_expr_context): Don't call value_mark.
6862 * dwarf2-frame.c (execute_stack_op): Call
6863 make_cleanup_value_free_to_mark.
6864 * defs.h (make_cleanup_value_free): Declare.
6865
6866 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6867
6868 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6869 prepare_execute_command.
6870 * top.c (prepare_execute_command): Return cleanup.
6871 (execute_command): Use cleanup from prepare_execute_command.
6872 * top.h (prepare_execute_command): Change prototype to return
6873 cleanup.
6874 * defs.h (struct value): Add opaque declaration.
6875 (make_cleanup_value_free_to_mark): Add prototype.
6876 * utils.c (do_value_free_to_mark): New function.
6877 (make_cleanup_value_free_to_mark): Likewise.
6878
6879 2011-05-12 Tom Tromey <tromey@redhat.com>
6880
6881 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6882 cast left-hand-side to unsigned.
6883
6884 2011-05-12 Tom Tromey <tromey@redhat.com>
6885
6886 PR gdb/12617:
6887 * value.h (value_from_contents): Declare.
6888 * value.c (value_from_contents): New function.
6889 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6890 (dwarf2_get_die_type): New function.
6891 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6892 (allocate_piece_closure): Acquire reference to values.
6893 (read_pieced_value): Update for value-based expressions.
6894 (write_pieced_value): Likewise.
6895 (free_pieced_value_closure): Call value_free as needed.
6896 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6897 Update for value-based expressions.
6898 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6899 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6900 <get_base_type>: New field.
6901 (struct dwarf_expr_piece) <v.value>: Change type.
6902 <v.regno>: New field.
6903 (struct dwarf_expr_context) <mark>: New field.
6904 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6905 (dwarf_expr_pop, dwarf_expr_push): Remove.
6906 (dwarf_expr_push_address): Declare.
6907 * dwarf2expr.c (dwarf_arch_cookie): New global.
6908 (struct dwarf_gdbarch_types): New.
6909 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6910 functions.
6911 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6912 static.
6913 (dwarf_expr_push_address): New function.
6914 (dwarf_expr_pop): Now static.
6915 (dwarf_expr_fetch): Change return type.
6916 (dwarf_require_integral): New function.
6917 (dwarf_expr_fetch): Simplify.
6918 (add_piece): Update.
6919 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6920 functions.
6921 (execute_stack_op) <sign_ext>: Remove.
6922 Use values for DWARF stack.
6923 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6924 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6925 New cases.
6926 (_initialize_dwarf2expr): New function.
6927 (add_piece): Update.
6928 (new_dwarf_expr_context): Set new field.
6929 (free_dwarf_expr_context): Call value_free_to_mark.
6930 * dwarf2-frame.c (no_base_type): New function.
6931 (execute_stack_op): Set get_base_type field. Update.
6932
6933 2011-05-12 Tom Tromey <tromey@redhat.com>
6934
6935 * dwarf2read.c (read_common_block): Fix formatting.
6936
6937 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6938
6939 * breakpoint.c (disable_breakpoint): Disable all locations
6940 associated with a tracepoint on target if a trace experiment is
6941 running.
6942 (disable_command): Disable a specific tracepoint location on target if
6943 a trace experiment is running.
6944 (do_enable_breakpoint): Enable all locations associated with a
6945 tracepoint on target if a trace experiment is running.
6946 (enable_command) Enable a specific tracepoint location on target if a
6947 trace experiment is running.
6948 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6949 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6950 to_disable_tracepoint.
6951 * target.h: Add declaration of struct bp_location.
6952 (struct target_ops): Add new functions
6953 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6954 to_disable_tracepoint to target operations.
6955 (target_supports_enable_disable_tracepoint): New macro.
6956 (target_enable_tracepoint): New macro.
6957 (target_disable_tracepoint): New macro.
6958 * remote.c (struct remote_state): Add new field.
6959 (remote_enable_disable_tracepoint_feature): New.
6960 (remote_protocol_features): Add new entry.
6961 (remote_supports_enable_disable_tracepoint): New.
6962 (remote_enable_tracepoint): New.
6963 (remote_disable_tracepoint): New.
6964 (init_remote_ops): Add remote_enable_tracepoint,
6965 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6966 to remote operations.
6967 * tracepoint.c (start_tracing): Allow tracing to start without any
6968 tracepoints enabled with just a warning if they can be re-enabled
6969 later.
6970 * NEWS: Add news item for the new behaviour of the enable and disable
6971 GDB commands when applied to tracepoints.
6972 Add news items for the new remote packets QTEnable and QTDisable.
6973
6974 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6975
6976 * config.in: Regenerate.
6977 * configure: Regenerate.
6978 * configure.ac <--with-system-readline> (for readline_echoing_p):
6979 Remove the test.
6980 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6981 (tui_old_rl_echoing_p): ... here.
6982 (tui_setup_io): Rename extern declaration readline_echoing_p to
6983 _rl_echoing_p. Adjust assignments for the both renames.
6984
6985 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6986
6987 * symtab.c (lookup_symtab): Run cleanup before returning.
6988
6989 2011-05-11 Tom Tromey <tromey@redhat.com>
6990
6991 * dwarf2read.c (handle_data_member_location): New function.
6992 (dwarf2_add_field): Use it.
6993 (read_common_block): Likewise.
6994
6995 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6996
6997 Make addrs->SECTINDEX always defined.
6998 * symfile.c (relative_addr_info_to_section_offsets): Check for
6999 SECTINDEX -1, not for zero ADDR.
7000 (addrs_section_compar): Remove checking for invalid SECTINDEX.
7001 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
7002 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
7003 on its validity.
7004
7005 2011-05-10 Doug Evans <dje@google.com>
7006
7007 * linux-thread-db.c: Whitespace cleanup.
7008 (try_thread_db_load_1): Fix comment.
7009
7010 * linux-thread-db.c (set_libthread_db_search_path): New function.
7011 (_initialize_thread_db): Add setter for libthread-db-search-path.
7012
7013 2011-05-09 Doug Evans <dje@google.com>
7014
7015 * NEWS: Mention --with-iconv-bin.
7016 * configure.ac: New option --with-iconv-bin.
7017 * configure: Regenerate.
7018 * config.in: Regenerate.
7019 * defs.h (relocate_gdb_directory): Declare.
7020 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
7021 removed progname parameter, and exported. All callers updated.
7022 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
7023
7024 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
7025 adding missing call to restore_child_signals_mask.
7026
7027 2011-05-09 Pedro Alves <pedro@codesourcery.com>
7028
7029 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
7030 parameter.
7031 * infrun.c (proceed, start_remote): Adjust.
7032 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
7033 and adjust to not handle it.
7034 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
7035 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
7036 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
7037 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
7038 * windows-nat.c (do_initial_windows_stuff): Adjust.
7039 * infcmd.c (attach_command): Adjust.
7040 (notice_new_inferior): Adjust.
7041
7042 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7043
7044 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
7045 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
7046 * spu-tdep.c (op_selb): Use correct value.
7047
7048 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7049
7050 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
7051 "parent" parameter to symbol_file_add_from_bfd call.
7052
7053 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7054 Thiago Jung Bauermann <bauerman@br.ibm.com>
7055
7056 Implement support for PowerPC BookE masked watchpoints.
7057 * NEWS: Mention masked watchpoint support. Create "Changed commands"
7058 section.
7059 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
7060 method. Initialize to NULL in all existing breakpoint_ops instances.
7061 (struct breakpoint) <hw_wp_mask>: New field.
7062 * breakpoint.c (is_masked_watchpoint): Add prototype.
7063 (update_watchpoint): Don't set b->val for masked watchpoints. Call
7064 breakpoint's breakpoint_ops.works_in_software_mode if available.
7065 (watchpoints_triggered): Handle the case of a hardware masked
7066 watchpoint trigger.
7067 (watchpoint_check): Likewise.
7068 (works_in_software_mode_watchpoint): New function.
7069 (insert_masked_watchpoint, remove_masked_watchpoint)
7070 (resources_needed_masked_watchpoint)
7071 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
7072 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
7073 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
7074 functions.
7075 (masked_watchpoint_breakpoint_ops): New structure.
7076 (watch_command_1): Check for the existence of the `mask' parameter.
7077 Set b->ops according to the type of hardware watchpoint being created.
7078 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
7079 (ppc_linux_remove_mask_watchpoint)
7080 (ppc_linux_masked_watch_num_registers): New functions.
7081 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
7082 to_remove_mask_watchpoint and to_masked_watch_num_registers.
7083 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
7084 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
7085 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
7086 (target_masked_watch_num_registers): New functions.
7087 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
7088 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
7089 methods.
7090 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
7091 (target_masked_watch_num_registers): Add prototypes.
7092
7093 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7094
7095 PR 12573
7096 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
7097 (producer_is_gcc_ge_4_0): New function.
7098 (process_full_comp_unit): Set also symtab->locations_valid. Move the
7099 symtab->language code.
7100 (var_decode_location): Set cu->has_loclist.
7101 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
7102 skip. Intialize force_skip from locations_valid. Move the prologue
7103 skipping code into two passes.
7104 * symtab.h (struct symtab): Make the primary field a bitfield. New
7105 field locations_valid.
7106
7107 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7108
7109 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
7110 (classify_inner_name): Call cp_lookup_nested_type with
7111 yylval.tsym.type.
7112 * cp-namespace.c (cp_lookup_nested_type): New variable
7113 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
7114 type_name_no_tag_or_error with saved_parent_type.
7115 * dwarf2read.c (load_partial_dies): Read in any children of
7116 DW_TAG_typedef with complaint in such case.
7117 * gdbtypes.c (type_name_no_tag_or_error): New function.
7118 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
7119 * valops.c (destructor_name_p): New comment for parameter type. Remove
7120 type const. Make dname and cp const. Call type_name_no_tag_or_error.
7121 * value.h (destructor_name_p): Remove type const.
7122
7123 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7124
7125 * symtab.c (compare_symbol_name): New function.
7126 (completion_list_add_name, expand_partial_symbol_name): Call it,
7127 remove the variable ncmp.
7128 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
7129 gdb_assert it.
7130
7131 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
7132
7133 Demote to sw watchpoint only in update_watchpoint.
7134 * breakpoint.c (update_watchpoint): Change between software and
7135 hardware watchpoint for all kinds of watchpoints, not just
7136 read/write ones. Determine b->exact value here instead of
7137 in watch_command_1. Error out if there are not enough resources
7138 for a read or access hardware watchpoint.
7139 (watch_command_1): Remove logic of checking whether there are
7140 enough resources available, since update_watchpoint will do that
7141 work now. Don't set b->exact here. Catch exceptions thrown by
7142 update_watchpoint and delete the watchpoint.
7143 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
7144 Use target_exact_watchpoints instead.
7145 (delete_breakpoint): Notify observers only if deleted watchpoint
7146 has a breakpoint number assigned to it.
7147
7148 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
7149
7150 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7151
7152 2011-05-05 Jerome Guitton <guitton@adacore.com>
7153
7154 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
7155 New functions.
7156 (i386_stack_tramp_frame_unwind): New static global.
7157 (i386_match_pattern): New function, extracted from i386_match_insn.
7158 (i386_match_insn): Use i386_match_pattern.
7159 (i386_match_insn_block): New function.
7160 (i386_tramp_chain_in_reg_insns)
7161 (i386_tramp_chain_on_stack_insns): New static variables.
7162 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
7163 of unwinders.
7164
7165 2011-05-04 Joseph Myers <joseph@codesourcery.com>
7166
7167 * configure.host (xscale*): Don't handle target.
7168 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
7169 handle targets.
7170
7171 2011-05-04 Yao Qi <yao@codesourcery.com>
7172
7173 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
7174
7175 2011-05-03 Joel Brobecker <brobecker@adacore.com>
7176
7177 Revert:
7178 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
7179 | * elfread.c (elf_symtab_read): Stop memory leak.
7180
7181 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7182
7183 * nto-tdep.c (nto_target): Replace deprecated call to
7184 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
7185
7186 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7187
7188 Fix false GCC warning.
7189 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
7190
7191 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
7192
7193 * breakpoint.c (update_watchpoint): Move code to change
7194 the enable state of breakpoint from here ...
7195 (do_enable_breakpoint): ... to here.
7196
7197 2011-04-26 Andrew Gontarek <andrewg@cray.com>
7198
7199 * valprint.c (val_print_array_elements): Fixed poor performance
7200 of printing very large arrays with repeat_count_threshold set
7201 to unlimited. New comment.
7202
7203 2011-04-29 Tom Tromey <tromey@redhat.com>
7204
7205 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
7206 (mi_parse): Likewise.
7207 * breakpoint.c (break_range_command): Use sizeof char*, not
7208 char**.
7209 (create_breakpoint): Likewise.
7210 (parse_breakpoint_sals): Likewise.
7211
7212 2011-04-29 Pedro Alves <pedro@codesourcery.com>
7213
7214 * linux-nat.c (linux_child_remove_fork_catchpoint)
7215 (linux_child_remove_vfork_catchpoint)
7216 (linux_child_remove_exec_catchpoint): New functions.
7217 (linux_target_install_ops): Install them.
7218
7219 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
7220
7221 PR mi/12531
7222
7223 * varobj.c (install_default_visualizer): Do not install a
7224 visualizer if the varobj is CPLUS_FAKE_CHILD.
7225 (construct_visualizer): Likewise.
7226
7227 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7228
7229 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
7230 case insensitive comparison.
7231
7232 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
7233
7234 * infrun.c (proceed): Revert previous change.
7235 (resume): Instead, handle the case of signal delivery while stepping
7236 off a breakpoint location here, and only if software single-stepping
7237 is used. Handle nested signals.
7238
7239 2011-04-28 Yao Qi <yao@codesourcery.com>
7240
7241 * arm-tdep.c (copy_unmodified): Rename to ...
7242 (arm_copy_unmodified): .. this. New.
7243 (copy_preload): Move common part to ...
7244 (install_preload): .. this. New.
7245 (arm_copy_preload): New.
7246 (copy_preload_reg): Move common part to ...
7247 (install_preload_reg): ... this. New.
7248 (arm_copy_preload_reg): New.
7249 (copy_b_bl_blx): Move common part to ...
7250 (install_b_bl_blx): .. this. New.
7251 (arm_copy_b_bl_blx): New.
7252 (copy_bx_blx_reg): Move common part to ...
7253 (install_bx_blx_reg): ... this. New.
7254 (arm_copy_bx_blx_reg): New.
7255 (copy_alu_reg): Move common part to ...
7256 (install_alu_reg): ... this. New.
7257 (arm_copy_alu_reg): New.
7258 (copy_alu_shifted_reg): Move common part to ...
7259 (install_alu_shifted_reg): ... this. New.
7260 (copy_ldr_str_ldrb_strb): Move common part to ...
7261 (install_ldr_str_ldrb_strb): ... this. New.
7262 (arm_copy_ldr_str_ldrb_strb): New.
7263 (copy_copro_load_store): Move some common part to ...
7264 (install_copy_copro_load_store): ... this. New.
7265 (arm_copy_copro_load_store): New.
7266 (copy_svc): Delete.
7267 (arm_copy_svc): Renamed from copy_svc.
7268 (copy_undef): Delete.
7269 (arm_copy_undef): Renamed from copy_undef.
7270 (decode_ext_reg_ld_st): Delete.
7271 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7272 (decode_svc_copro): Delete.
7273 (arm_decode_svc_copro): Renamed from decode_svc_copro.
7274 (copy_copro_load_store, copy_alu_imm): update callers.
7275 (copy_extra_ld_st, copy_block_xfer): Likewise.
7276 (decode_misc_memhint_neon, decode_unconditional): Likewise.
7277 (decode_miscellaneous, decode_dp_misc): Likewise.
7278 (decode_ld_st_word_ubyte, decode_media): Likewise.
7279 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
7280 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
7281 (decode_unconditional, decode_miscellaneous): Likewise.
7282 (decode_media, decode_b_bl_ldmstm): Likewise.
7283 (arm_process_displaced_insn): Likewise..
7284 (decode_misc_memhint_neon): Delete.
7285 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
7286 (decode_miscellaneous): Delete.
7287 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
7288 (decode_dp_misc): Delete.
7289 (arm_decode_dp_misc): Renamed from decode_dp_misc.
7290 (decode_ld_st_word_ubyte): Delete.
7291 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
7292 (decode_media): Delete.
7293 (arm_decode_media): Renamed from decode_media.
7294 (decode_b_bl_ldmstm): Delete.
7295 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
7296 (decode_ext_reg_ld_st): Delete.
7297 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7298 (decode_unconditional): Delete.
7299 (arm_decode_unconditional): Renamed from decode_unconditional.
7300
7301 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7302
7303 Case insensitive lookups implementation.
7304 * dwarf2read.c: Include ctype.h.
7305 (struct mapped_index): New field version.
7306 (mapped_index_string_hash): New parameter index_version. New comment
7307 for it. Call tolower appropriately.
7308 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
7309 Choose the right index version for mapped_index_string_hash.
7310 (dwarf2_read_index): Support also the index version 5. Initialize the
7311 new struct mapped_index field version.
7312 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
7313 (find_slot): Explain the version needs. Pass INT_MAX for the new
7314 parameter.
7315 (write_psymtabs_to_index): Produce version 5.
7316 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
7317 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
7318 * psymtab.c (lookup_partial_symbol): Find the
7319 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
7320 entries.
7321 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
7322 NAME lowercasing.
7323 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
7324 (completion_list_add_name): New variable ncmp, initialize it, use it.
7325 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
7326 * utils.c (strcmp_iw): Support case_sensitive_off.
7327 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
7328 New function comment part. New variables saved_string1,
7329 saved_string2 and case_pass. Add a proper second pass.
7330
7331 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7332
7333 Replace re_comp/re_exec by regcomp/regexec.
7334 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
7335 (search_symbols_name_matches): Use them, use regexec.
7336 (search_symbols): New variable retval_chain, adjust the use of
7337 old_chain against it. Replace re_comp by regcomp. Use the new struct
7338 search_symbols_data fields, use regexec instead of re_exec.
7339
7340 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7341
7342 Format the code for the next patch.
7343 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
7344 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
7345 New variables c1 and c2.
7346
7347 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7348
7349 * infrun.c (proceed): Do not single-step into signal delivery
7350 when stepping off a breakpoint location.
7351 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
7352 (insert_step_resume_breakpoint_at_caller): Likewise.
7353 (insert_step_resume_breakpoint_at_sal): Likewise.
7354 (insert_longjmp_resume_breakpoint): Likewise.
7355
7356 2011-04-27 Yao Qi <yao@codesourcery.com>
7357
7358 * common/linux-ptrace.h: Remove include <sys/wait.h>.
7359
7360 2011-04-27 Joel Brobecker <brobecker@adacore.com>
7361
7362 * procfs.c (procfs_pass_signals): Fix advance declaration.
7363
7364 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7365
7366 * target.h (struct target_ops): Remove to_notice_signals;
7367 add to_pass_signals.
7368 (target_notice_signals): Remove.
7369 (target_pass_signals): Add prototype.
7370 * target.c (update_current_target): Remove to_notice_signals;
7371 mention to_pass_signals.
7372 (target_pass_signals): New function.
7373 (debug_to_notice_signals): Remove.
7374 (setup_target_debug): Do not install debug_to_notice_signals.
7375
7376 * infrun.c (signal_pass): New global.
7377 (resume): Call target_pass_signals.
7378 (handle_inferior_event): Report all signals while stepping over
7379 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
7380 are re-inserted when stepping over a signal handler.
7381 (signal_cache_update): New function.
7382 (signal_stop_update): Call it.
7383 (signal_print_update): Likewise.
7384 (signal_pass_update): Likewise.
7385 (handle_command): Call signal_cache_update and target_pass_signals
7386 instead of target_notice_signals.
7387 (_initialize_infrun): Initialize signal_pass.
7388
7389 * linux-nat.c (pass_mask): New global.
7390 (linux_nat_pass_signals): New function.
7391 (linux_nat_create_inferior): Report all signals initially.
7392 (linux_nat_attach): Likewise.
7393 (linux_nat_resume): Use pass_mask to decide whether to directly
7394 handle an inferior signal.
7395 (linux_nat_wait_1): Likewise.
7396 (linux_nat_add_target): Install to_pass_signals callback.
7397
7398 * nto-procfs.c (notice_signals): Remove.
7399 (procfs_resume): Do not call notice_signals.
7400 (procfs_notice_signals): Remove.
7401 (procfs_pass_signals): New function.
7402 (init_procfs_ops): Install to_pass_signals callback instead of
7403 to_notice_signals callback.
7404 (_initialize_procfs): Report all signals initially.
7405
7406 * procfs.c (procfs_notice_signals): Remove.
7407 (procfs_pass_signals): New function.
7408 (procfs_target): Install to_pass_signals callback instead of
7409 to_notice_signals callback.
7410 (register_gdb_signals): Remove.
7411 (procfs_debug_inferior): Report all signals initially.
7412 (procfs_init_inferior): Remove redundant register_gdb_signals call.
7413
7414 * remote.c (remote_pass_signals): Add numsigs and pass_signals
7415 parameters; use them instead of calling signal_..._state routines.
7416 (remote_notice_signals): Remove.
7417 (remote_start_remote): Report all signals initially.
7418 (remote_resume): Do not call remote_pass_signals.
7419 (_initialize_remote): Install to_pass_signals callback instead of
7420 to_notice_signals callback.
7421
7422 2011-04-27 Pedro Alves <pedro@codesourcery.com>
7423
7424 * breakpoint.c (user_settable_breakpoint): Delete.
7425 (user_breakpoint_p): Remove check on user_settable_breakpoint.
7426 (delete_command): Check user_breakpoint_p instead of looking at
7427 the breakpoint's type.
7428 (disable_command): Ditto.
7429 (enable_command): Ditto.
7430 (delete_trace_command): Use user_breakpoint_p instead of looking
7431 at the breakpoint number directly. When checking if there are
7432 user visible tracepoints, in order to know whether to ask the user
7433 for confirmation, check whether the breakpoint is actually a
7434 tracepoint.
7435
7436 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7437
7438 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7439 compilation.
7440
7441 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7442
7443 MI breakpoint notifications.
7444
7445 * annotate.c (breakpoint_changed): Adjust parameter type.
7446 * breakpoint.c (set_breakpoint_condition): Adjust to change
7447 in breakpoint_modified type.
7448 (breakpoint_set_commands): Likewise.
7449 (do_map_commands_command): Likewise.
7450 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7451 changed after bumping hit count.
7452 (bpstat_stop_status): Likewise.
7453 (print_one_breakpoint_location): Don't wrap in tuple here.
7454 (print_one_breakpoint): Always print individual locations.
7455 For locations, use unnamed tuple.
7456 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7457 has changed.
7458 (create_catchpoint, create_syscall_event_catchpoint): Call
7459 breakpoint_created obsever.
7460 (mention): Don't call breakpoint_created observer.
7461 (create_breakpoint_sal): Call breakpoint_created observer.
7462 (create_breakpoint, watch_command_1): Likewise.
7463 (create_ada_exception_breakpoint): Likewise.
7464 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7465 (locations_are_equal): New.
7466 (update_breakpoint_locations): If locations were changed, notify.
7467 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7468 Call breakpoint_modified observer.
7469
7470 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7471 (mi_cmd_break_insert): Don't set observers for modify and delete.
7472 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7473 (mi_breakpoint_created, mi_breakpoint_deleted)
7474 (mi_breakpoint_modified): New.
7475 (mi_interpreter_init): Hook the above.
7476 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7477 while -break-* commands are executing.
7478 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7479 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7480 (mi_redirect): New.
7481 (mi_ui_out_impl): Hook in mi_redirect.
7482 (mi_field_skip): True to the name, skip the field, don't output
7483 a field with an empty value.
7484
7485 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7486 (gdbpy_breakpoint_deleted): Adjust.
7487 * tui/tui-hooks.c (tui_event_create_breakpoint)
7488 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
7489
7490 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7491
7492 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7493 (procfs_remove_hw_watchpoint): Likewise.
7494
7495 2011-04-26 Michael Walle <michael@walle.cc>
7496
7497 * remote.c (remote_start_remote): Ack packet after sending the
7498 interrupt sequence.
7499
7500 2011-04-26 Yao Qi <yao@codesourcery.com>
7501
7502 * linux-nat.c: Move common macros to ...
7503 Include linux-ptrace.h.
7504 * common/linux-ptrace.h: ... here. New.
7505
7506 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7507
7508 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7509 !objfile_has_partial_symbols. New comment.
7510 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7511 SYM_READ_PSYMBOLS is not present. Extend the comment.
7512 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7513
7514 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7515
7516 * defs.h (ENUM_BITFIELD): Remove.
7517
7518 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7519 Eli Zaretskii <eliz@gnu.org>
7520
7521 * NEWS: Document the new gdbserver --once option.
7522
7523 2011-04-21 Jie Zhang <jzhang918@gmail.com>
7524
7525 * MAINTAINERS: Update my email address.
7526
7527 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7528
7529 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7530 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7531 function call if __STDC_ISO_10646__ macro is defined.
7532 (intermediate_encoding): New prototype.
7533 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7534 to generate compile time error for unsupported gdb_wchar_t size.
7535 (ENDIAN_SUFFIX): New macro.
7536 (intermediate_encoding): New function.
7537
7538 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7539
7540 * ada-lang.c (struct add_partial_datum): Update the comment for
7541 expand_partial_symbol_name.
7542 (ada_add_partial_symbol_completions): Rename to ...
7543 (ada_expand_partial_symbol_name): ... here, change return type, update
7544 function comment, call symbol_completion_match instead of
7545 symbol_completion_add.
7546 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7547 and ada_expand_partial_symbol_name.
7548 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7549 FILE_MATCHER.
7550 (dw2_map_symbol_names): Remove.
7551 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7552 * psymtab.c (map_symbol_names_psymtab): Remove.
7553 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7554 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7555 order.
7556 (psym_functions): Unlist map_symbol_names_psymtab.
7557 (map_partial_symbol_names): Rename to ...
7558 (expand_partial_symbol_names): ... here, change the FUN type, call
7559 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7560 * psymtab.h (map_partial_symbol_names): Rename to ...
7561 (expand_partial_symbol_names): ... here, change the FUN type.
7562 * symfile.h (struct quick_symbol_functions): Update the description of
7563 expand_symtabs_matching. Remove map_symbol_names.
7564 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7565 (struct add_name_data): Update the comment for
7566 expand_partial_symbol_name.
7567 (add_partial_symbol_name): Rename to ...
7568 (expand_partial_symbol_name): ... here. Replace
7569 completion_list_add_name call by strncmp.
7570 (default_make_symbol_completion_list_break_on): Use now
7571 expand_partial_symbol_names and expand_partial_symbol_name.
7572 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7573
7574 2011-04-20 Tom Tromey <tromey@redhat.com>
7575
7576 * dwarf2read.c (save_gdb_index_command): Replace format
7577 documentation with a pointer to the manual.
7578
7579 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7580
7581 * regcache.c: Include remote.h.
7582 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7583 (regcache_dump): Handle regcache_dump_remote.
7584 (maintenance_print_remote_registers): New function.
7585 (_initialize_regcache): Install "maint print remote-registers"
7586 command.
7587 * remote.c (map_regcache_remote_table): New function, factored out
7588 from ...
7589 (init_remote_state): ... here.
7590 (remote_register_number_and_offset): New.
7591 * remote.h (remote_register_number_and_offset): Declare.
7592
7593 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7594
7595 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7596 null_ptid, assume and allow a NULL address space, instead of
7597 asking the target for the ptid's address space.
7598 * infrun.c (ptid_is_pid): Remove assertion.
7599
7600 2011-04-19 Tom Tromey <tromey@redhat.com>
7601
7602 * windows-tdep.c (windows_xfer_shared_library):
7603 * windows-nat.c (get_module_name, windows_make_so):
7604 * v850-tdep.c (v850_handle_pushm):
7605 * utils.c (null_cleanup, gdb_realpath):
7606 * ui-out.c (get_next_header):
7607 * tracepoint.c (clear_traceframe_info):
7608 * symtab.c (lookup_symtab):
7609 * serial.h (struct serial_ops):
7610 * mipsread.c (read_alphacoff_dynamic_symtab):
7611 * infcmd.c (print_return_value):
7612 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7613 * f-exp.y (parse_number):
7614 * exceptions.c (catch_exceptions):
7615 * dummy-frame.c (dummy_frame_this_id):
7616 * defs.h (struct cleanup):
7617 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7618 * arm-tdep.c (arm_push_dummy_call):
7619 * amd64-tdep.h (amd64_collect_xsave):
7620 * amd64-tdep.c (amd64_collect_xsave):
7621 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7622 * README (typing): Remove duplicate words.
7623 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7624 * infrun.c (siginfo_value_read): Fix typo.
7625 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7626 * top.c (source_line_number): Add comma.
7627
7628 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7629
7630 * thread.c (any_live_thread_of_process): Prioritize threads
7631 that are not executing.
7632 * gdbthread.h (any_live_thread_of_process): Update comment
7633 as per above change.
7634
7635 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7636
7637 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7638 (scan_xcoff_symtab): Likewise.
7639
7640 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7641
7642 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7643 inside if clause.
7644
7645 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7646 Pedro Alves <pedro@codesourcery.com>
7647
7648 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7649 variables to simplify code and avoid == operator at end of
7650 line as this is against GNU coding standards.
7651
7652 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7653
7654 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7655 lm_name to name_lm to avoid conflict with lm_name function.
7656
7657 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7658
7659 ARI fixes: Use only lowercase function name for static functions.
7660 * nto-tdep.c (LM_ADDR): Rename to...
7661 (lm_addr): New function name.
7662 (nto_relocate_section_addresses): Adapt to change above.
7663 * solib-sunos.c (LM_ADDR): Rename to...
7664 (lm_addr): New function name.
7665 (LM_NEXT): Rename to...
7666 (lm_next): New function name.
7667 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7668 function name changes above.
7669 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7670 (lm_addr_from_link_map): New function name.
7671 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7672 (has_lm_dynamic_from_link_map): New function name.
7673 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7674 (lm_dynamic_from_link_map): New function name.
7675 (LM_ADDR_CHECK): Rename to...
7676 (lm_addr_check): New function name.
7677 (LM_NEXT): Rename to...
7678 (lm_next): New function name.
7679 (LM_PREV): Rename to...
7680 (lm_prev): New function name.
7681 (LM_NAME): Rename to...
7682 (lm_name): New function name.
7683 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7684 (ignore_first_link_map_entry): New function name.
7685 (svr4_keep_data_in_core): Adapt to function name changes above.
7686 (svr4_current_sos): Likewise.
7687 (enable_break): Likewise.
7688 (svr4_relocate_section_addresses): Likewise.
7689
7690 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7691
7692 ARI cleanup.
7693 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7694 sprintf. Simplify code and avoid loosing memory.
7695 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7696 (call0_frame_cache): Remove && operator from end of line.
7697
7698 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7699
7700 Fix libraries displacement if they change whether they were prelinked.
7701 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7702 does not match. Comment why.
7703
7704 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7705
7706 * corelow.c: Include wrapper.h.
7707 (core_open): Call now gdb_target_find_new_threads.
7708 * wrapper.c: Include target.h.
7709 (gdb_target_find_new_threads): New.
7710 * wrapper.h (gdb_target_find_new_threads): New declaration.
7711
7712 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7713
7714 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7715 even if !TARGET_HAS_EXECUTION.
7716
7717 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7718
7719 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7720 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7721 bfd_get_synthetic_symtab.
7722 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7723 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7724 parameter parent, remove the call to add_separate_debug_objfile.
7725 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7726 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7727 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7728 parent, new comment for it, call add_separate_debug_objfile for it.
7729 (symbol_file_add_separate): Pass objfile as the parameter parent,
7730 remove the call to add_separate_debug_objfile.
7731 (symbol_file_add_from_bfd): New parameter parent, pass it.
7732 (symbol_file_add): Pass NULL to the new parameter parent.
7733 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7734
7735 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7736
7737 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7738 BSF_SYNTHETIC.
7739
7740 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7741
7742 Fix Python access to inlined frames.
7743 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7744 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7745
7746 2011-04-15 Tom Tromey <tromey@redhat.com>
7747
7748 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7749
7750 2011-04-15 Gary Benson <gbenson@redhat.com>
7751
7752 * MAINTAINERS: Add myself to write-after-approval section.
7753
7754 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7755
7756 * remote-sim.c (sim_command_completer): New function.
7757 (_initialize_remote_sim): Set completer to sim_command_completer.
7758
7759 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7760
7761 * breakpoint.c (print_exception_catchpoint): Rename to ...
7762 (print_it_exception_catchpoint): ... this.
7763 (gnu_v3_exception_catchpoint_ops): Update with new name
7764 for print_it_exception_catchpoint.
7765
7766 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7767
7768 * MAINTAINERS: Add myself for write after approval privileges.
7769
7770 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7771
7772 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7773
7774 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7775
7776 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7777
7778 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7779
7780 * breakpoint.c (save_breakpoints): Verify whether
7781 breakpoint_ops.print_recreate is defined before calling it.
7782
7783 2011-04-11 Gary Benson <gbenson@redhat.com>
7784
7785 Fix failure with --enable-maintainer-mode.
7786 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7787
7788 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7789
7790 Code cleanup.
7791 * symtab.c (search_symbols): Reorder the KIND description in the
7792 function comment. Remove the unused 4th element of types, types2,
7793 types3 and types4. New gdb_assert on KIND.
7794 (symtab_symbol_info): Remove the unused 4th element of classnames.
7795 New gdb_assert on KIND.
7796 * symtab.h (enum search_domain): New warning in the enum comment.
7797 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7798 TYPES_DOMAIN.
7799
7800 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7801
7802 Fix crash of gdb save-index on a STABS file.
7803 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7804 PSYMTABS_ADDRMAP.
7805
7806 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7807
7808 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7809 * dwarf2read.c: Include ctype.h.
7810 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7811 functions.
7812 (dwarf2_add_field): Fix new_field->accessibility by calling
7813 dwarf2_default_access_attribute. Restructure setting accessibility
7814 vs. virtuality.
7815 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7816 is_private and is_protected by calling
7817 dwarf2_default_access_attribute.
7818
7819 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7820
7821 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7822 to the initialization.
7823
7824 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7825
7826 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7827 initalization.
7828
7829 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7830
7831 Remove support for old Cygwin 1.5 versions.
7832 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7833 function on old Cygwin version.
7834 * windows-nat.c: Remove cygwin version check and always define
7835 __USEWIDE for Cygwin compilation.
7836
7837 2011-04-07 Yao Qi <yao@codesourcery.com>
7838
7839 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7840 and TO.
7841 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7842 (arm_copy_svc): Remove parameters INSN and TO.
7843 (decode_svc_copro): Update caller.
7844 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7845 from function pointer `copy_svc_os'.
7846
7847 2011-04-07 Yao Qi <yao@codesourcery.com>
7848
7849 * arm-tdep.c (cleanup_branch): Set a correct return address in
7850 LR for ARM and Thumb.
7851
7852 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7853
7854 Code cleanup.
7855 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7856 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7857 in the function comment, a new note on values compatibility.
7858 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7859 * symtab.h (SYMBOL_HASH_NEXT): New.
7860
7861 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7862
7863 * ppc-linux-nat.c (check_condition): Add len output parameter.
7864 Set it based on the memory region referenced in the condition
7865 expression. Update all callers.
7866
7867 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7868
7869 Fix crash regression on systems featuring .gdb_index.
7870 * objfiles.c (free_objfile): Move the
7871 forget_cached_source_info_for_objfile call earlier. Comment it.
7872 Extend the comment for objfile_free_data.
7873
7874 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7875
7876 Fix regression of displaying the debug format.
7877 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7878 subfile.
7879
7880 2011-04-04 Tom Tromey <tromey@redhat.com>
7881
7882 * cli/cli-interp.c (struct captured_execute_command_args):
7883 Remove.
7884 (do_captured_execute_command): Remove.
7885 (safe_execute_command): Use TRY_CATCH.
7886 * cli/cli-script.c (struct wrapped_read_command_file_args):
7887 Remove.
7888 (wrapped_read_command_file): Remove.
7889 (script_from_file): Use TRY_CATCH.
7890 * exceptions.c (catch_exception): Remove.
7891 * exceptions.h (catch_exception): Remove.
7892 (deprecated_throw_reason): Update comment.
7893 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7894 argument to 'context'.
7895 (mi_execute_command): Use TRY_CATCH.
7896 * remote.c (struct start_remote_args): Remove.
7897 (remote_start_remote): Update; change arguments.
7898 (remote_open_1): Use TRY_CATCH.
7899
7900 2011-04-04 Tom Tromey <tromey@redhat.com>
7901
7902 * tracepoint.c (scope_info): Update.
7903 * symtab.c (decode_line_spec): Update.
7904 * python/python.c (gdbpy_decode_line): Update.
7905 * linespec.h (decode_line_1): Update.
7906 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7907 (decode_compound, find_method, symtab_from_filename)
7908 (decode_variable): Likewise.
7909 * cli/cli-cmds.c (edit_command): Update.
7910 (list_command): Update.
7911 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7912 argument.
7913 (create_breakpoint): Update.
7914 (until_break_command): Update.
7915 (addr_string_to_sals): Update.
7916 (decode_line_spec_1): Update.
7917
7918 2011-04-04 Tom Tromey <tromey@redhat.com>
7919
7920 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7921 (do_captured_parse_breakpoint): Remove.
7922 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7923 Use TRY_CATCH directly.
7924
7925 2011-04-04 Tom Tromey <tromey@redhat.com>
7926
7927 * symtab.h (free_symtab): Remove.
7928 (forget_cached_source_info_for_objfile): Declare.
7929 * symmisc.c (free_symtab): Remove.
7930 * source.c (forget_cached_source_info_for_objfile): New function.
7931 (forget_cached_source_info): Use it.
7932 * objfiles.c (free_objfile): Simplify check before calling
7933 clear_current_source_symtab_and_line. Call
7934 forget_cached_source_info_for_objfile.
7935
7936 2011-04-04 Tom Tromey <tromey@redhat.com>
7937
7938 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7939 (new_symtab): Don't set `free_code' on symtab.
7940 (new_linetable): Properly handle size==0.
7941 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7942 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7943 free_func.
7944 * jv-lang.c (struct jv_per_objfile_data): New.
7945 (jv_per_objfile_free): Free the data.
7946 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7947 (get_java_class_symtab): Set the `dict' field on the
7948 jv_per_objfile_data.
7949 (free_class_block): Remove.
7950 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7951 the symtab.
7952
7953 2011-04-04 Tom Tromey <tromey@redhat.com>
7954
7955 * symfile.c (reread_symbols): Update.
7956 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7957 field.
7958 * objfiles.c (allocate_objfile): Update.
7959 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7960 declare.
7961 * cp-namespace.c (lookup_symbol_file): Don't call
7962 lookup_possible_namespace_symbol.
7963 (initialize_namespace_symtab, get_possible_namespace_block)
7964 (free_namespace_block, cp_check_possible_namespace_symbols)
7965 (check_possible_namespace_symbols_loop)
7966 (check_one_possible_namespace_symbol)
7967 (lookup_possible_namespace_symbol): Remove.
7968 (maintenance_cplus_namespace): Replace with notice.
7969 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7970
7971 2011-04-04 Tom Tromey <tromey@redhat.com>
7972
7973 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7974 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7975 * symmisc.c (free_symtab): Don't free debugformat.
7976 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7977 (record_debugformat, record_producer): Document.
7978 * buildsym.c (end_symtab): Don't save debugformat and producer
7979 names on obstack.
7980 (end_symtab): Don't free debugformat and producer fields.
7981 (record_debugformat): Don't call xstrdup.
7982 (record_producer): Likewise.
7983
7984 2011-04-04 Tom Tromey <tromey@redhat.com>
7985
7986 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7987 (source_line_charpos, source_charpos_line): Remove.
7988
7989 2011-04-04 Tom Tromey <tromey@redhat.com>
7990
7991 * symtab.h (domain_enum): Split in two...
7992 (enum search_domain): New.
7993 (search_symbols): Update.
7994 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7995 redundant declarations.
7996 (search_symbols): Change 'kind' argument to search_domain.
7997 Update.
7998 (print_symbol_info): Likewise.
7999 (symtab_symbol_info): Likewise.
8000 * symfile.h (struct quick_symbol_functions)
8001 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
8002 <expand_symtabs_matching>: Likewise.
8003 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
8004 (expand_symtabs_matching_via_partial): Update.
8005 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
8006 (dw2_expand_symtabs_for_function): Update.
8007 * block.h: Moved anonymous enum...
8008 * defs.h (enum block_enum): ... here. Now named.
8009
8010 2011-04-03 Joel Brobecker <brobecker@adacore.com>
8011
8012 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
8013 * version.in: Bump version to 7.3.50.20110403-cvs.
8014
8015 2011-04-03 Joel Brobecker <brobecker@adacore.com>
8016
8017 * NEWS: Create a new section for the next release branch.
8018 Rename the section of the current branch, now that it has
8019 been cut.
8020
8021 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8022
8023 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
8024 for "fpscr" in target description.
8025
8026 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8027
8028 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
8029 initialize it. Delay HASH initialization. Strip the part after open
8030 parenthesis for languages with qualifiers. Call do_cleanups.
8031
8032 2011-04-01 Tom Tromey <tromey@redhat.com>
8033
8034 * utils.c (report_command_stats): Don't print `-' for negative
8035 number.
8036
8037 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
8038
8039 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
8040 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
8041 typedefs.
8042
8043 2011-04-01 Joel Brobecker <brobecker@adacore.com>
8044
8045 * breakpoint.h (bpdisp_text): Add declaration.
8046 * breakpoint.c (bpdisp_text): Make non-static.
8047 * ada-lang.c: #include "mi/mi-common.h".
8048 (print_it_exception): Rewrite to improve GDB/MI output.
8049
8050 2011-04-01 Pedro Alves <pedro@codesourcery.com>
8051
8052 * arm-tdep.h (struct address_space): Add forward declaration.
8053
8054 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8055
8056 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
8057 * arm-tdep.c (arm_override_mode): New global.
8058 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
8059 execution mode heuristics.
8060 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
8061 second single-step breakpoint if needed, using
8062 arm_insert_single_step_breakpoint.
8063 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
8064 ARM execution mode, do not call thumb_get_next_pc_raw.
8065 (arm_get_next_pc): Encode execution mode in return value. Call
8066 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
8067 (arm_insert_single_step_breakpoint): New function.
8068 (arm_software_single_step): Call it.
8069 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
8070 argument to return execution mode of sigreturn target.
8071 (arm_linux_syscall_next_pc): Use it.
8072 (arm_linux_copy_svc): Update call.
8073 (arm_linux_software_single_step): Call
8074 arm_insert_single_step_breakpoint.
8075
8076 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
8077
8078 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
8079 the comment.
8080
8081 2011-03-31 Tom Tromey <tromey@redhat.com>
8082
8083 * varobj.c (update_dynamic_varobj_children): Properly handle
8084 errors from iterator.
8085
8086 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
8087
8088 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
8089 struct linkage name twice.
8090
8091 2011-03-31 Tom Tromey <tromey@redhat.com>
8092
8093 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
8094 missing ">" to message.
8095
8096 2011-03-31 Tom Tromey <tromey@redhat.com>
8097
8098 * varobj.c (instantiate_pretty_printer): Remove duplicate
8099 'return'.
8100
8101 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
8102
8103 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
8104 if neither saved value nor register available (e.g. signal frame).
8105
8106 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
8107
8108 * macroexp.c (expand): Avoid uninitialized variable
8109 compiler warning.
8110
8111 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
8112
8113 * breakpoint.c (break_range_command): Fix typo in comment.
8114
8115 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
8116 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8117
8118 Implement support for PowerPC BookE ranged breakpoints.
8119 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
8120 * breakpoint.h (struct bp_target_info) <length>: New member
8121 variable.
8122 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
8123 instead of struct breakpoint as argument, and also add ASPACE
8124 and BP_ADDR arguments. Update all callers.
8125 (struct breakpoint_ops) <print_one_detail>: New method.
8126 (struct breakpoint) <addr_string_range_end>: New member variable.
8127 * breakpoint.c (breakpoint_location_address_match): Add function
8128 prototype.
8129 (insert_bp_location): Set bl->target_info.length.
8130 (breakpoint_here_p): Call breakpoint_location_address_match.
8131 (moribund_breakpoint_here_p): Likewise.
8132 (regular_breakpoint_inserted_here_p): Likewise.
8133 (breakpoint_thread_match): Likewise.
8134 (bpstat_stop_status): Likewise.
8135 (bpstat_check_location): Move call to
8136 breakpoint_ops.breakpoint_hit to the top.
8137 (print_one_breakpoint_location): Call
8138 breakpoint_ops.print_one_detail if available.
8139 (breakpoint_address_match_range): New function.
8140 (breakpoint_location_address_match): Likewise.
8141 (breakpoint_locations_match): Compare the length field of the
8142 locations too.
8143 (hw_breakpoint_used_count): Count resources used by all locations
8144 in a breakpoint, and use breakpoint_ops.resources_needed if
8145 available.
8146 (breakpoint_hit_ranged_breakpoint): New function.
8147 (resources_needed_ranged_breakpoint): Likewise.
8148 (print_it_ranged_breakpoint): Likewise.
8149 (print_one_ranged_breakpoint): Likewise.
8150 (print_one_detail_ranged_breakpoint): Likewise.
8151 (print_mention_ranged_breakpoint): Likewise.
8152 (print_recreate_ranged_breakpoint): Likewise.
8153 (ranged_breakpoint_ops): New structure.
8154 (find_breakpoint_range_end): New function.
8155 (break_range_command): Likewise.
8156 (delete_breakpoint): Free addr_string_range_end.
8157 (update_breakpoint_locations): Add SALS_END argument. Update
8158 all callers. Calculate breakpoint length if a non-zero SALS_END
8159 is given. Call breakpoint_locations_match instead of
8160 breakpoint_address_match.
8161 (reset_breakpoint): Find SaL of the end of the range if B is a
8162 ranged breakpoint.
8163 (_initialize_breakpoint): Register break-range command.
8164 * defs.h (print_core_address): Add function prototype.
8165 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
8166 function.
8167 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
8168 (ppc_linux_remove_hw_breakpoint): Likewise.
8169 (_initialize_ppc_linux_nat): Initialize
8170 to_ranged_break_num_registers.
8171 * target.c (update_current_target): Add comment about
8172 to_ranged_break_num_registers.
8173 (target_ranged_break_num_registers): New function.
8174 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8175 New method.
8176 (target_ranged_break_num_registers): Add function prototype.
8177 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
8178 * utils.c (print_core_address): ... here.
8179
8180 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
8181
8182 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
8183 variable compiler warning.
8184
8185 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
8186
8187 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
8188 code from here ...
8189 (re_set_breakpoint): ... to here ...
8190 (addr_string_to_sals): ... and here.
8191
8192 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
8193
8194 * Makefile.in (SFILES): Add missing C sources.
8195 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
8196 Add missing headers.
8197
8198 2011-03-29 Mike Frysinger <vapier@gentoo.org>
8199
8200 * .gitignore: New file.
8201
8202 2011-03-29 Mike Frysinger <vapier@gentoo.org>
8203
8204 * NEWS: Mention new cfi device simulation.
8205
8206 2011-03-29 Tom Tromey <tromey@redhat.com>
8207
8208 * dwarf2read.c (fixup_partial_die): Handle linkage name on
8209 otherwise anonymous types.
8210 (dwarf2_name): Likewise.
8211 * valops.c (value_struct_elt_for_reference): Refine artificial
8212 type logic. Call error if j==-1.
8213
8214 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
8215
8216 Fix false GCC warning.
8217 * infcall.c (find_function_addr): Initialize funaddr.
8218
8219 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
8220
8221 Fix mingw compilation with --enable-targets=all.
8222 * remote-mips.c (gdb_usleep.h): Include header.
8223 (mips_enter_debug): Use gdb_usleep instead of sleep.
8224
8225 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8226
8227 Support resolution of STT_GNU_IFUNC via breakpoints.
8228 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
8229 bp_gnu_ifunc_resolver_return.
8230 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
8231 the loop. Support bp_gnu_ifunc_resolver and
8232 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
8233 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
8234 breakpoints.
8235 (bptype_string, print_one_breakpoint_location): Support
8236 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
8237 (user_settable_breakpoint): Return true also for
8238 bp_gnu_ifunc_resolver.
8239 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
8240 bp_gnu_ifunc_resolver_return.
8241 (set_breakpoint_location_function): New parameter explicit_loc,
8242 describe it. Call find_pc_partial_function_gnu_ifunc with new
8243 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
8244 EXPLICIT_LOC is not set.
8245 (set_raw_breakpoint): Set EXPLICIT_LOC for
8246 set_breakpoint_location_function.
8247 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
8248 set_breakpoint_location_function.
8249 (mention): Support bp_gnu_ifunc_resolver and
8250 bp_gnu_ifunc_resolver_return.
8251 (add_location_to_breakpoint): Set EXPLICIT_LOC for
8252 set_breakpoint_location_function.
8253 (update_breakpoint_locations): Remove static.
8254 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
8255 bp_gnu_ifunc_resolver_return.
8256 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
8257 bp_gnu_ifunc_resolver_return.
8258 (update_breakpoint_locations): New declaration.
8259 * elfread.c: Include gdbthread.h and regcache.h.
8260 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
8261 functions.
8262 (elf_gnu_ifunc_fns): Install them.
8263 * minsyms.c (stub_gnu_ifunc_resolver_stop)
8264 (stub_gnu_ifunc_resolver_return_stop): New functions.
8265 (stub_gnu_ifunc_fns): Install them.
8266 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
8267 and gnu_ifunc_resolver_return_stop.
8268 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
8269
8270 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8271
8272 STT_GNU_IFUNC reader implementation.
8273 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
8274 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
8275 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
8276 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
8277 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
8278 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
8279 (elf_gnu_ifunc_resolve_addr): New.
8280 (elf_symfile_read): Call elf_rel_plt_read.
8281 (elf_gnu_ifunc_fns): New.
8282 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
8283 Install elf_gnu_ifunc_fns.
8284 * infcall.c (find_function_return_type): New function.
8285 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
8286 * minsyms.c (stub_gnu_ifunc_resolve_addr)
8287 (stub_gnu_ifunc_resolve_name): New functions.
8288 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
8289 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
8290 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
8291
8292 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8293
8294 Code cleanup for later STT_GNU_IFUNC support.
8295 * infcall.c (find_function_addr): Remove variable code, use explicit
8296 dereferences for it. Move VALUE_TYPE initialization later.
8297
8298 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8299
8300 GDB find_pc_partial_function support for STT_GNU_IFUNC.
8301 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
8302 (clear_pc_function_cache): Clear it.
8303 (find_pc_partial_function): Rename to ...
8304 (find_pc_partial_function_gnu_ifunc): ... this function. New
8305 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
8306 (find_pc_partial_function): New wrapper for this function.
8307 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
8308
8309 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8310
8311 GDB internal type support for STT_GNU_IFUNC.
8312 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
8313 (elf_symtab_read): Set mst_text_gnu_ifunc for
8314 BSF_GNU_INDIRECT_FUNCTION.
8315 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
8316 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
8317 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
8318 nodebug_got_plt_symbol.
8319 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
8320 (TYPE_GNU_IFUNC): New.
8321 (struct main_type): New field flag_gnu_ifunc.
8322 (struct builtin_type): New field builtin_func_func.
8323 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
8324 nodebug_got_plt_symbol.
8325 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
8326 (in_gnu_ifunc_stub): New.
8327 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
8328 mst_text_gnu_ifunc.
8329 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
8330 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
8331 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
8332 in_gnu_ifunc_stub.
8333 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
8334 * symtab.c (search_symbols): Likewise.
8335 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
8336 and mst_slot_got_plt.
8337 (in_gnu_ifunc_stub): New declaration.
8338
8339 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8340
8341 Support a ring of related breakpoints.
8342 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
8343 other functions, add gdb_assert.
8344 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
8345 watchpoint_del_at_next_stop.
8346 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
8347 (bpstat_stop_status): Handle ring in related_breakpoint.
8348 (set_raw_breakpoint_without_location): Initialize ring in
8349 related_breakpoint.
8350 (delete_breakpoint): Handle ring in related_breakpoint, use
8351 watchpoint_del_at_next_stop.
8352 (map_breakpoint_numbers): Handle ring in related_breakpoint.
8353
8354 2011-03-28 Tom Tromey <tromey@redhat.com>
8355
8356 PR symtab/12441:
8357 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8358 with `language_minimal'.
8359
8360 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
8361
8362 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8363 instead of checking for STT_ARM_TFUNC symbol type.
8364
8365 2011-03-25 Tom Tromey <tromey@redhat.com>
8366
8367 * linespec.c (symbol_found): Restore line-based result for
8368 non-LOC_LABEL symbols.
8369
8370 2011-03-25 Kai Tietz <ktietz@redhat.com>
8371
8372 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8373 instead of strcmp for comparison.
8374 (tui_source_is_displayed): Likewise.
8375 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8376
8377 2011-03-24 Mark Wielaard <mjw@redhat.com>
8378
8379 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8380 complaint.
8381 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8382 (find_partial_die_in_comp_unit): Likewise in comment.
8383 (read_attribute_value): Likewise.
8384 (lookup_die_type): Likewise.
8385 (dwarf_form_name): Likewise.
8386 (dump_die_shallow): Likewise.
8387 (follow_die_ref_or_sig): Likewise.
8388
8389 2011-03-24 Tom Tromey <tromey@redhat.com>
8390
8391 PR breakpoints/11816:
8392 * linespec.c (decode_line_1): Parse `function:label' linespecs.
8393 (decode_compound): Update.
8394 (find_function_symbol): New function.
8395 (decode_dollar): Update.
8396 (decode_label): Add 'function_symbol' parameter. Handle
8397 function-relative labels.
8398 (decode_variable): Update.
8399 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
8400 not its line. Set `special_display' and canonical name for
8401 labels.
8402
8403 2011-03-24 Tom Tromey <tromey@redhat.com>
8404
8405 * linespec.h (struct linespec_result) <special_display>: New
8406 field.
8407 * breakpoint.h (struct breakpoint) <display_canonical>: New
8408 field.
8409 * breakpoint.c (print_breakpoint_location): Respect
8410 display_canonical.
8411 (create_breakpoint_sal): Add 'display_canonical' parameter.
8412 (create_breakpoints_sal): Update.
8413 (create_breakpoint): Update.
8414
8415 2011-03-24 Tom Tromey <tromey@redhat.com>
8416
8417 * symtab.c (decode_line_spec): Update.
8418 * linespec.c (build_canonical_line_spec): Change type of
8419 'canonical'.
8420 (decode_line_2, decode_line_1, decode_objc, decode_compound)
8421 (find_method, decode_all_digits, decode_dollar, decode_label)
8422 (symbol_found): Likewise.
8423 (init_linespec_result): New function.
8424 * breakpoint.c (struct captured_parse_breakpoint_args)
8425 <canonical_p>: New field, replaces addr_string_p.
8426 (create_breakpoints_sal): Add 'canonical' parameter, replacing
8427 'addr_string'.
8428 (parse_breakpoint_sals): Likewise.
8429 (do_captured_parse_breakpoint): Update.
8430 (create_breakpoint): Use struct linespec_result.
8431 (until_break_command): Update.
8432 (breakpoint_re_set_one): Update.
8433 (decode_line_spec_1): Update.
8434 * linespec.h (struct linespec_result): New.
8435 (init_linespec_result): Declare.
8436
8437 2011-03-23 Pedro Alves <pedro@codesourcery.com>
8438
8439 * regcache.c (regcache_raw_read): If the target didn't supply a
8440 given raw register, mark it as unavailable.
8441
8442 2011-03-23 Kai Tietz <ktietz@redhat.com>
8443
8444 * breakpoint.c (clear_command): Use filename_cmp
8445 instead of strcmp for comparison.
8446 * buildsym.c (watch_main_source_file_lossage): Likewise.
8447 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8448 checking just for slash.
8449 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8450 strrchr and filename_cmp instead of strcmp for filenames.
8451 (add_old_header_file): Use filename_cmp
8452 instead of strcmp for comparison.
8453 * exec.c (exec_set_section_address): Likewise.
8454 * macrotab.c (macro_lookup_inclusion): Likewise.
8455 (macro_lookup_inclusion): Likewise.
8456 * elfread.c (_initialize_elfread): Likewise.
8457 (elfstab_offset_sections): Likewise.
8458 (elfstab_offset_sections): Use lbasename instead of
8459 strrchr.
8460 * mdebugread.c (parse_partial_symbols): Likewise.
8461 (arse_partial_symbols): Use filename_(n)cmp instead of
8462 str(n)cmp for comparison.
8463 * minsyms.c (lookup_minimal_symbol): Likewise.
8464 * psymtab.c (read_psymtabs_with_filename): Likewise.
8465 * solib.c (solib_read_symbols): Likewise.
8466 (reload_shared_libraries_1): Likewise.
8467 * symmisc.c (maintenance_print_symbols): Likewise.
8468 * symfile.c (separate_debug_file_exists): Likewise.
8469 (reread_symbols): Likewise.
8470 (find_separate_debug_file_by_debuglink): Likewise.
8471 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8472 * source.c (add_path): Likewise.
8473 * symtab.c (filename_seen): Likewise.
8474 (file_matches): Likewise.
8475 (print_symbol_info): Likewise.
8476 (maybe_add_partial_symtab_filename): Likewise.
8477 (make_source_files_completion_list): Likewise.
8478 * xml-syscall.c (init_sysinfo): Likewise.
8479 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8480 IS_DIR_SEPARATOR for checking for trailing path separator.
8481
8482 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8483
8484 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8485 label abort_expression.
8486 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8487 DWARF_VALUE_OPTIMIZED_OUT.
8488
8489 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8490
8491 Code cleanup.
8492 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8493 to linkage_name. Invert its value. Update the function comment.
8494 (c_type_print_varspec_suffix): Invert it at the caller.
8495 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8496
8497 2011-03-22 Pedro Alves <pedro@codesourcery.com>
8498
8499 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8500 errors when reading the `stop_pc'.
8501 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8502 get_frame_pc.
8503
8504 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8505
8506 * NEWS: Document gdb.Write stream keyword.
8507
8508 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8509
8510 Revert:
8511 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8512 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8513 (dwarf2_add_field): Fix new_field->accessibility for
8514 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8515
8516 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8517
8518 PR python/12183
8519
8520 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8521 other error classes. Do not print stack trace.
8522
8523 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8524
8525 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8526 (dwarf2_add_field): Fix new_field->accessibility for
8527 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8528
8529 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8530
8531 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8532 encountering a load via a non-SP register.
8533
8534 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8535
8536 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8537 field in returned unwinder.
8538
8539 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8540
8541 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8542
8543 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8544
8545 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8546 of xmalloc.
8547
8548 2012-03-18 Pedro Alves <pedro@codesourcery.com>
8549
8550 * frame.c (frame_unwind_register): Throw an error if unwinding the
8551 register failed.
8552 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8553 an unwind stop reason.
8554 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8555 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8556 UNWIND_UNAVAILABLE>: New.
8557 * inline-frame.c (inline_frame_unwind): Install
8558 default_frame_unwind_stop_reason.
8559 * frame-unwind.c: Include "exceptions.h".
8560 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8561 (default_frame_unwind_stop_reason): New.
8562 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8563 (default_frame_unwind_stop_reason): Declare.
8564 (struct frame_unwind) <stop_reason>: New function pointer.
8565
8566 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8567 * dwarf2-frame.c: Include exceptions.h.
8568 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8569 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8570 computing the CFA. If such an error was thrown, set
8571 unavailable_retaddr.
8572 (dwarf2_frame_unwind_stop_reason): New.
8573 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8574 unavailable.
8575 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8576 (dwarf2_signal_frame_unwind): Ditto.
8577
8578 * amd64-tdep.c: Include "exceptions.h".
8579 (struct amd64_frame_cache): New field "base_p".
8580 (amd64_init_frame_cache): Clear it.
8581 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8582 Avoid reading registers with functions that throw if the register
8583 is not necessary to compute the frame base.
8584 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8585 swallowing NOT_AVAILABLE_ERROR.
8586 (amd64_frame_unwind_stop_reason): New.
8587 (amd64_frame_this_id): Don't build a frame id if the frame base
8588 was unavailable.
8589 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8590 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8591 base_p if the frame base was computable.
8592 (amd64_sigtramp_frame_unwind_stop_reason): New.
8593 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8594 frame base was unavailable.
8595 (amd64_sigtramp_frame_unwind): Install
8596 amd64_sigtramp_frame_unwind_stop_reason.
8597 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8598 base_p if the frame base was computable.
8599 (amd64_epilogue_frame_unwind_stop_reason): New.
8600 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8601 frame base was unavailable.
8602 (amd64_epilogue_frame_unwind): Install
8603 amd64_epilogue_frame_unwind_stop_reason.
8604 * i386-tdep.c: Include "exceptions.h".
8605 (struct i386_frame_cache): New field "base_p".
8606 (i386_init_frame_cache): Clear it.
8607 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8608 Avoid reading registers with functions that throw if the register
8609 is not necessary to compute the frame base.
8610 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8611 swallowing NOT_AVAILABLE_ERROR.
8612 (i386_frame_unwind_stop_reason): New.
8613 (i386_frame_this_id): Don't build a frame id if the frame base was
8614 unavailable.
8615 (i386_frame_prev_register): Handle unavailable SP.
8616 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8617 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8618 base_p if the frame base was computable.
8619 (i386_epilogue_frame_unwind_stop_reason): New.
8620 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8621 base was unavailable.
8622 (i386_epilogue_frame_unwind): Install
8623 i386_epilogue_frame_unwind_stop_reason.
8624 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8625 base_p if the frame base was computable.
8626 (i386_sigtramp_frame_unwind_stop_reason): New.
8627 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8628 base was unavailable.
8629 (i386_sigtramp_frame_unwind): Install
8630 i386_sigtramp_frame_unwind_stop_reason.
8631 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8632 type's size, not the register's.
8633 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8634
8635 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8636 default_frame_unwind_stop_reason.
8637 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8638 (alpha_heuristic_frame_unwind): Ditto.
8639 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8640 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8641 * avr-tdep.c (avr_frame_unwind): Ditto.
8642 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8643 Ditto.
8644 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8645 * frv-tdep.c (frv_frame_unwind): Ditto.
8646 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8647 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8648 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8649 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8650 (hppa_stub_frame_unwind): Ditto.
8651 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8652 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8653 (ia64_libunwind_frame_unwind)
8654 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8655 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8656 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8657 * m32c-tdep.c (m32c_unwind): Ditto.
8658 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8659 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8660 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8661 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8662 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8663 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8664 * mep-tdep.c (mep_frame_unwind): Ditto.
8665 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8666 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8667 (mips_stub_frame_unwind): Ditto.
8668 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8669 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8670 * mt-tdep.c (mt_frame_unwind): Ditto.
8671 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8672 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8673 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8674 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8675 (s390_sigtramp_frame_unwind): Ditto.
8676 * score-tdep.c (score_prologue_unwind): Ditto.
8677 * sh-tdep.c (sh_frame_unwind): Ditto.
8678 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8679 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8680 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8681 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8682 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8683 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8684 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8685 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8686 (sparc64obsd_trapframe_unwind): Ditto.
8687 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8688 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8689 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8690 * v850-tdep.c (v850_frame_unwind): Ditto.
8691 * vax-tdep.c (vax_frame_unwind): Ditto.
8692 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8693 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8694 * xtensa-tdep.c (xtensa_unwind): Ditto.
8695
8696 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8697
8698 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8699 there's always a frame. Use get_frame_pc_if_available instead of
8700 get_frame_pc, and if there's no PC available, don't look up a
8701 symtab.
8702
8703 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8704
8705 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8706 unavailable PC.
8707
8708 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8709
8710 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8711 gracefully.
8712
8713 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8714
8715 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8716 * frame.c (frame_unwind_caller_pc_if_available): New.
8717 * stack.c (frame_info): Handle unavailable PC.
8718
8719 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8720
8721 * frame.c (frame_unwind_pc): Rename to ...
8722 (frame_unwind_pc_if_available): ... this. New `pc' output
8723 parameter. Change return type to int. Gracefully handle
8724 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8725 happened, or 1 otherwise.
8726 (frame_unwind_pc): Reimplement on top of
8727 frame_unwind_pc_if_available.
8728 (get_frame_func): Rename to ...
8729 (get_frame_func_if_available): New `pc' output parameter. Change
8730 return type to int. Gracefully handle the PC not being available.
8731 (get_frame_func): Reimplement on top of
8732 get_frame_func_if_available.
8733 (select_frame): Handle the PC being unavailable.
8734 (get_prev_frame): Handle the PC being unavailable.
8735 (get_frame_pc_if_available): New.
8736 (get_frame_address_in_block_if_available): New.
8737 (find_frame_sal): Handle the frame PC not being available.
8738 * frame.h (get_frame_pc_if_available): Declare.
8739 (get_frame_address_in_block_if_available): Declare.
8740 (get_frame_func_if_available): Declare.
8741 * stack.c (print_frame_info): Handle the PC being unavailable.
8742 (find_frame_funname): Ditto.
8743 (print_frame): Handle the PC being unavailable.
8744 (get_frame_language): Ditto.
8745 * blockframe.c (get_frame_block): Ditto.
8746 * macroscope.c (default_macro_scope): Ditto.
8747 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8748
8749 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8750
8751 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8752 NOT_AVAILABLE_ERROR when evaluating the location expression.
8753
8754 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8755
8756 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8757 returning that the register piece is unavailable/optimized out.
8758 (write_pieced_value): Handle get_frame_register_bytes returning
8759 that the register piece is unavailable/optimized out when doing a
8760 read-modify write of a bitfield.
8761 * findvar.c (value_from_register): Handle get_frame_register_bytes
8762 returning that the register piece is unavailable/optimized out.
8763 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8764 and `unavailablep'. Throw error on bad debug info. Use
8765 frame_register instead of frame_register_read, to fill in the new
8766 arguments.
8767 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8768 and `unavailablep'.
8769 * valops.c: (value_assign): Adjust, and handle
8770 get_frame_register_bytes failing.
8771 * spu-tdep.c: Include exceptions.h.
8772 (spu_software_single_step): Adjust, and handle
8773 get_frame_register_bytes failing.
8774 (spu_get_longjmp_target): Ditto.
8775 * gdbarch.sh (register_to_value): Change to return int. New
8776 parameters `optimizedp' and `unavailablep'.
8777 * gdbarch.h, gdbarch.c: Regenerate.
8778 * i386-tdep.c (i386_register_to_value): Adjust to new
8779 gdbarch_register_to_value interface.
8780 * i387-tdep.c (i387_register_to_value): Ditto.
8781 * i387-tdep.h (i387_register_to_value): Ditto.
8782 * alpha-tdep.c (alpha_register_to_value): Ditto.
8783 * ia64-tdep.c (ia64_register_to_value): Ditto.
8784 * m68k-tdep.c (m68k_register_to_value): Ditto.
8785 * mips-tdep.c (mips_register_to_value): Ditto.
8786 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8787
8788 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8789
8790 * findvar.c (value_of_register): Mark the value as unavailable, if
8791 the register is unavailable.
8792 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8793 (frame_register): New `unavailablep' parameter.
8794 (frame_register_read): Update comment.
8795 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8796 Set it if the register is unavailable. If the register is
8797 unavailable, clear the output buffer.
8798 (frame_register): New `unavailablep' parameter. Pass it down.
8799 (frame_unwind_register): Adjust.
8800 (put_frame_register): Adjust.
8801 (frame_register_read): Adjust. Also return false if the register
8802 is not available.
8803 (frame_register_unwind_location): Adjust.
8804 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8805 is unavailable, mark the value accordingly.
8806 * stack.c (frame_info): Handle unavailable registers.
8807
8808 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8809
8810 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8811 simplify, using regcache_cooked_read.
8812
8813 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8814
8815 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8816 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8817 (regcache_raw_read_unsigned, regcache_raw_read_part)
8818 (regcache_cooked_read, regcache_cooked_read_signed)
8819 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8820 (regcache_cooked_read_ftype): Change return to enum
8821 register_status.
8822 * regcache.c: Include exceptions.h
8823 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8824 (do_cooked_read): Change return to enum register_status. Always
8825 forward to regcache_cooked_read.
8826 (regcache_raw_read): Change return to enum register_status. If
8827 the register is not REG_VALID, memset the buffer. Return the
8828 register's status.
8829 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8830 return the register's status.
8831 (regcache_raw_read_unsigned): Ditto.
8832 (regcache_cooked_read): Change return to enum register_status.
8833 Assert that with read-only regcaches, the register's status must
8834 be known. If the regcache is read-only, and the register is not
8835 REG_VALID, memset the buffer. Return the register's status.
8836 (regcache_cooked_read_signed): Change return to enum
8837 register_status. Handle non-REG_VALID registers and return the
8838 register's status.
8839 (regcache_cooked_read_unsigned): Change return to enum
8840 register_status. Handle non-REG_VALID registers and return the
8841 register's status.
8842 (regcache_xfer_part, regcache_raw_read_part)
8843 (regcache_cooked_read_part): Change return to enum
8844 register_status. Return the register's status.
8845 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8846 unavailable.
8847 (regcache_dump): Handle unavailable cooked registers.
8848 * frame.c (do_frame_register_read): Adjust interface to match
8849 regcache_cooked_read_ftype.
8850 * gdbarch.sh (pseudo_register_read): Change return to enum
8851 register_status.
8852 * gdbarch.h, gdbarch.c: Regenerate.
8853
8854 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8855 register_status.
8856 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8857 register_status. If reading a raw register indicates the raw
8858 register is not valid, return the raw register's status,
8859 otherwise, return REG_VALID.
8860 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8861 register_status. Handle non-REG_VALID raw registers and return
8862 the register's status.
8863 * arm-tdep.c (arm_neon_quad_read)
8864 (arm_pseudo_read): Change return to enum register_status. Handle
8865 non-REG_VALID raw registers and return the register's status.
8866 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8867 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8868 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8869 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8870 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8871 register_status.
8872 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8873 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8874 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8875 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8876 (m32c_pseudo_register_read): Change return to enum
8877 register_status. Adjust.
8878 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8879 enum register_status. Return the register's status.
8880 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8881 register_status. Return the register's status.
8882 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8883 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8884 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8885 * rs6000-tdep.c (move_ev_register_func): New typedef.
8886 (e500_move_ev_register): Use it. Change return to enum
8887 register_status. Return the register's status.
8888 (do_regcache_raw_read): New function.
8889 (do_regcache_raw_write): New function.
8890 (e500_pseudo_register_read): Change return to enum
8891 register_status. Return the register's status. Use
8892 do_regcache_raw_read.
8893 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8894 (dfp_pseudo_register_read): Change return to enum register_status.
8895 Return the register's status.
8896 (vsx_pseudo_register_read): Ditto.
8897 (efpr_pseudo_register_read): Ditto.
8898 (rs6000_pseudo_register_read): Ditto.
8899 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8900 register_status. Return the register's status.
8901 * sh64-tdep.c (pseudo_register_read_portions): New function.
8902 (sh64_pseudo_register_read): Change return to enum
8903 register_status. Use pseudo_register_read_portions. Return the
8904 register's status.
8905 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8906 register_status. Return the register's status.
8907 * sh-tdep.c (pseudo_register_read_portions): New function.
8908 (sh_pseudo_register_read): Change return to enum register_status.
8909 Use pseudo_register_read_portions. Return the register's status.
8910 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8911 enum register_status. Return the register's status.
8912 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8913 * spu-tdep.c (spu_pseudo_register_read_spu)
8914 (spu_pseudo_register_read): Ditto.
8915 * xtensa-tdep.c (xtensa_register_read_masked)
8916 (xtensa_pseudo_register_read): Ditto.
8917 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8918
8919 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8920
8921 * python/py-value.c (valpy_getitem): Fix formatting of error function
8922 call.
8923
8924 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8925
8926 ARI fixes: Add missing internationalization markups throughout
8927 C source files.
8928 * darwin-nat-info.c: Ditto.
8929 * record.c: Ditto.
8930 * remote.c: Ditto.
8931 * mi/mi-main.c: Ditto.
8932
8933 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8934
8935 ARI fixes: Add missing internationalization markups throughout
8936 yacc files.
8937 * c-exp.y: Ditto.
8938 * cp-name-parser.y: Ditto.
8939 * f-exp.y: Ditto.
8940 * m2-exp.y: Ditto.
8941 * objc-exp.y: Ditto.
8942 * p-exp.y: Ditto.
8943
8944 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8945
8946 ARI fixes: Messages should have no trailing new lines.
8947 * darwin-nat.c (mach_check_error): Remove trailing new line from
8948 warning function call message.
8949 * record.c (bfdcore_read): Idem for error call.
8950
8951 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8952
8953 * common/signals.c (target_signal_from_host): Add _ markup to error
8954 function call message.
8955 (target_signal_to_host): Add _ markup and remove trailing new line
8956 from warning call message.
8957 (target_signal_from_command): Add _ markup to error function call
8958 message.
8959
8960 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8961
8962 PR python/12149
8963
8964 * python/python.c (gdbpy_write): Accept a stream argument and
8965 operate to the appropriate stream.
8966 (gdbpy_flush): Likewise.
8967 (_initialize_python): Add stream constants.
8968 (finish_python_initialization): Add GdbOutputErrorFile class.
8969
8970 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8971
8972 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8973
8974 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8975
8976 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8977 to store_signed_integer. Add debug message when relocating CALL
8978 instructions. Fix formatting of debug message.
8979 * i386-tdep.c (i386_relocate_instruction): Ditto.
8980
8981 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8982
8983 * target.h (struct target_ops): Remove to_lookup_symbol field.
8984 (target_lookup_symbol): Delete macro.
8985 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8986 (update_current_target, setup_target_debug): Remove handling
8987 of to_lookup_symbol target_ops field.
8988 * ada-tasks.c (get_known_tasks_addr): Remove use of
8989 target_lookup_symbol.
8990 * coffread.c (coff_symtab_read): Likewise.
8991 * dbxread.c (read_dbx_symtab): Ditto.
8992
8993 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8994
8995 PR gdb/12116:
8996 * configure.ac: Add getthrds declaration check.
8997 * configure, config.in: Regenerate.
8998 * aix-thread.c (getthrds): Declare only if not already declared
8999 in procinfo.h. More declaration out of get_signaled_thread to
9000 global scope.
9001
9002 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
9003
9004 * python/py-symtab.c: Populate symtab_object_methods,
9005 sal_object_methods.
9006 (stpy_is_valid): New function.
9007 (salpy_is_valid): Ditto.
9008 * python/py-symbol.c: Declare symbol_object_methods. Populate.
9009 (sympy_is_valid): New function.
9010 * python/py-objfile.c: Declare objfile_object_methods. Populate.
9011 (objfpy_is_valid): New function.
9012 * python/py-inferior.c: Populate inferior_object_methods.
9013 (infpy_is_valid): New function.
9014 * python/py-infthread.c: Populate thread_object_methods.
9015 (thpy_is_valid): New function.
9016 * python/py-block.c: Declare block_object_methods. Populate. Declare
9017 block_iterator_object_methods. Populate.
9018 (blpy_is_valid): New function.
9019 (blpy_iter_is_valid): Ditto.
9020
9021 2011-03-16 Keith Seitz <keiths@redhat.com>
9022
9023 * linespec.c (find_methods): Canonicalize NAME before looking
9024 up the symbol.
9025 (name_end): New function.
9026 (keep_name_info): New function.
9027 (decode_line_1): Use keep_name_info.
9028 (decode_compound): Likewise.
9029 * cli/cli-utils.h (remove_trailing_whitespace): New function.
9030 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
9031
9032 PR c++/12273
9033 * linespec.c (locate_first_half): Keep overload information, too.
9034 (decode_compound): Use a string to represent break characters
9035 to escape the loop.
9036 If P points to a break character, do not increment it.
9037 For C++ and Java, keep overload information and relevant keywords.
9038 If we cannot find a symbol, search the minimal symbols.
9039
9040 PR c++/11734
9041 * linespec.c (decode_compound): Rename SAVED_ARG to
9042 THE_REAL_SAVED_ARG.
9043 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
9044 single-quotes.
9045 Pass a valid block to lookup_symbol.
9046 (lookup_prefix_sym): Likewise.
9047 (find_method): Construct search name based on SYM_CLASS instead
9048 of SAVED_ARG.
9049 * psymtab.c (lookup_partial_symbol): Add language parameter.
9050 (lookup_symbol_aux_psymtabs): Likewise.
9051 Don't assume that the psymtab we found was the right one. Search
9052 for the desired symbol in the symtab to be certain.
9053 (psymtab_search_name): New function.
9054 (lookup_partial_symbol): Use psymtab_search_name.
9055 Add language parameter.
9056 (read_symtabs_for_function): Add language parameter and pass to
9057 lookup_partial_symbol.
9058 (find_symbol_file_from_partial): Likewise.
9059
9060 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
9061
9062 PR gdb/12528
9063 * dwarf2read.c (noop_record_line): New function.
9064 (dwarf_decode_lines): Ignore line tables for GCd functions.
9065
9066 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9067
9068 Fix ARI warnings about new lines at the end of messages, which
9069 are unneeded as there is a new line added at the end of the message
9070 automatically.
9071 * darwin-nat.c (darwin_stop_inferior): Ditto.
9072 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
9073 * dfp.c (decimal_to_number): Ditto.
9074 * exec.c (print_section_info): Ditto.
9075 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
9076 * osdata.c (get_osdata): Ditto.
9077 * record.c (bfdcore_write): Ditto.
9078 * remote-mips.c (mips_readchar): Ditto.
9079 * remote.c (read_ptid): Ditto.
9080 * ser-mingw.c (ser_windows_raw): Ditto.
9081 * tracepoint.c (add_local_symbols): Ditto.
9082 * windows-nat.c (fake_create_process): Ditto.
9083
9084 2011-03-16 Tom Tromey <tromey@redhat.com>
9085
9086 * tracepoint.c (stop_tracing): Don't declare.
9087 * event-top.c (after_char_processing_hook): Add `(void)'.
9088
9089 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
9090
9091 * NEWS: Add Parameter sub-classing description.
9092
9093 2011-03-16 Kai Tietz <ktietz@redhat.com>
9094
9095 * MAINTAINERS: Update my e-mail address.
9096
9097 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
9098
9099 * MAINTAINERS: Add myself for write after approval privileges.
9100
9101 2011-03-15 Michael Snyder <msnyder@vmware.com>
9102
9103 * frame.c (find_frame_sal): Assert sym is not null.
9104
9105 * dbxread.c (process_one_symbol): Assert 'name' is not null.
9106
9107 * objc-lang.c (selectors_info): Check strchr for null result.
9108
9109 * stabsread.c (define_symbol): Guard against bad stabstring input.
9110
9111 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
9112
9113 Remove trailing spaces and tabulations from pascal language
9114 support sources.
9115 p-exp.y: Ditto.
9116 p-lang.c: Ditto.
9117 p-lang.h: Ditto.
9118 p-valprint.c: Ditto.
9119
9120 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9121
9122 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
9123 than LOW. Comment it.
9124 (read_partial_die): Call complaint for inappropriate zero LOWPC or
9125 HIGHPC not strictly higher than LOWPC.
9126
9127 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
9128
9129 Fix formatting of function declarations returning a pointer in
9130 previous commit.
9131 * varobj.c (varobj_add_child): Ditto.
9132 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
9133 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
9134
9135 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
9136
9137 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
9138 for the "generic" vector ABI used with GCC 4.3 and later.
9139 (ppc64_sysv_abi_return_value): Likewise.
9140
9141 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
9142
9143 * infcall.c (call_function_by_hand): Function return value is
9144 always a non_lval, even when using struct_return.
9145
9146 2011-03-15 Pedro Alves <pedro@codesourcery.com>
9147
9148 * printcmd.c (ALL_DISPLAYS_SAFE): New.
9149 (map_display_numbers): New.
9150 (do_delete_display): New.
9151 (undisplay_command): Use map_display_numbers.
9152 (do_enable_disable_display): New.
9153 (enable_disable_display_command): New function.
9154 (enable_display): Delete.
9155 (enable_display_command): New.
9156 (disable_display_command): Reimplement.
9157 (_initialize_printcmd): Adjust "enable display" command to use
9158 `enable_display_command' as callback.
9159
9160 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
9161
9162 * NEWS: Add Python breakpoint 'stop' operation.
9163
9164 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
9165
9166 * NEWS: Delete duplicate entry. Fix typo.
9167
9168 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
9169
9170 Fix ARI warning about function names in first column.
9171 Put prototype declaration on same line as return type.
9172 * objc-exp.y: Ditto.
9173 * p-exp.y: Ditto.
9174 * python/py-stopevent.h: Ditto.
9175 For long function names, split parameters to
9176 allow function name on same line as return type.
9177 * solib-pa64.c: Ditto.
9178 * varobj.c: Ditto.
9179 * varobj.h: Ditto.
9180 For long function declaration, use single line.
9181 * hppa-tdep.h: Ditto.
9182 * inferior.h: Ditto.
9183
9184 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
9185
9186 * python/python.h: Declare gdbpy_should_stop and
9187 gdbpy_breakpoint_has_py_cond.
9188 * python/python.c: Add python.h to includes. Remove python.h from
9189 HAVE_PYTHON definition
9190 (gdbpy_should_stop): New dummy function.
9191 (gdbpy_breakpoint_has_py_cond): New dummy function.
9192 * python/py-breakpoint.c (bppy_init): Rewrite to allow
9193 sub-classing capabilities.
9194 (gdbpy_should_stop): New function.
9195 (gdbpy_breakpoint_has_py_cond): New function.
9196 (local_setattro): New function.
9197 * breakpoint.c (condition_command): Add check for Python 'stop'
9198 operation.
9199 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
9200 operation function as part of stop/continue tests.
9201
9202 2011-03-14 Tom Tromey <tromey@redhat.com>
9203
9204 PR gdb/12576:
9205 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
9206 (needs_frame_dwarf_call): Likewise.
9207
9208 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
9209
9210 Fix ARI warning about functions without parameters that do not
9211 use (void).
9212 * breakpoint.c (all_tracepoints): Replace () by (void).
9213 * f-exp.y (match_string_literal): Ditto.
9214 (yylex): Ditto.
9215 * m2-exp.y (yylex): Ditto.
9216 * mep-tdep.c (current_me_module): Ditto.
9217 (current_options): Ditto.
9218 (current_cop_data_bus_width): Ditto.
9219 (current_cr_names): Ditto.
9220 (current_cr_is_float): Ditto.
9221 (current_ccr_names): Ditto.
9222 * objc-exp.y (yylex): Ditto.
9223 * p-exp.y (yylex): Ditto.
9224 * remote.c (send_interrupt_sequence): Ditto.
9225 * tracepoint.c (current_trace_status): Ditto.
9226 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
9227 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
9228
9229 2011-03-11 Michael Snyder <msnyder@vmware.com>
9230
9231 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
9232 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
9233 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
9234 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
9235 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
9236
9237 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
9238 (delete_async_event_handler): Ditto.
9239
9240 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
9241
9242 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
9243
9244 * top.c (set_verbose): Assert showcmd was found.
9245
9246 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
9247
9248 * xtensa-tdep.c (warning_once): Correct style issues.
9249
9250 2011-03-11 Yao Qi <yao@codesourcery.com>
9251
9252 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
9253
9254 2011-03-11 Andreas Schwab <schwab@redhat.com>
9255
9256 * common/aclocal.m4: Remove.
9257
9258 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9259
9260 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
9261 (xtensa_write_register, xtensa_read_register): Likewise.
9262 (xtensa_hextochar): Removed.
9263 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
9264
9265 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9266
9267 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
9268 (xtensa_call0_frame_cache_t): Update comments. New fields added.
9269 (xtensa_alloc_frame_cache): Add initialization for new fields.
9270 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
9271 (warning_once): New function.
9272 (xtensa_insn_kind): New item c0opc_and.
9273 (call0_classify_opcode): Add the case for AND instruction.
9274 (call0_track_op): Change arguments. New local variable litbase.
9275 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
9276 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
9277 in the prologue.
9278 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
9279 (call0_analyze_prologue): Update the comments. Change arguments.
9280 Add the variety of updates to handle extended prologues, which now can
9281 conduct dynamic stack adjustments.
9282 (call0_frame_cache): Likewise.
9283 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
9284 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
9285
9286 2011-03-10 Michael Snyder <msnyder@vmware.com>
9287
9288 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
9289 (cmd_qtframe): Ditto.
9290 (cmd_qtbuffer): Ditto.
9291 (cmd_bigqtbuffer): Ditto.
9292
9293 2011-03-10 Tom Tromey <tromey@redhat.com>
9294
9295 * tracepoint.c (trace_actions_command): Update.
9296 * thread.c (thread_apply_command): Update.
9297 * reverse.c (delete_bookmark_command): Update.
9298 (bookmarks_info): Update.
9299 * printcmd.c (undisplay_command): Update.
9300 * memattr.c (mem_enable_command): Update.
9301 (mem_disable_command): Update.
9302 (mem_delete_command): Update.
9303 * inferior.c (detach_inferior_command): Update.
9304 (kill_inferior_command): Update.
9305 (remove_inferior_command): Update.
9306 * cli/cli-utils.h (struct get_number_or_range_state): New.
9307 (init_number_or_range): Declare.
9308 (get_number_or_range): Update.
9309 * cli/cli-utils.c (init_number_or_range): New function.
9310 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
9311 static variables.
9312 (number_is_in_list): Update.
9313 * breakpoint.h (get_tracepoint_by_number): Update.
9314 * breakpoint.c (map_breakpoint_numbers): Update for change to
9315 get_number_or_range.
9316 (find_location_by_number): Use get_number, not
9317 get_number_or_range.
9318 (trace_pass_set_count): New function.
9319 (trace_pass_command): Update for change to get_number_or_range.
9320 Rework loop logic.
9321 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
9322 'state' parameter.
9323
9324 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
9325
9326 * python/py-param.c (add_setshow_generic): Add set/show callback
9327 parameters. Register Python object context.
9328 (get_show_value): New function.
9329 (get_set_value): New function.
9330 (call_doc_function): New function.
9331 (get_doc_string): Move behind get_show_value/get_set_value.
9332
9333 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
9334
9335 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
9336
9337 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
9338
9339 * xtensa-tdep.c (xtensa_read_register): Add comment.
9340 (xtensa_write_register): Likewise.
9341 (xtensa_hextochar): Add comment and update to match coding conventions.
9342 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
9343 (execute_l32e, execute_s32e, execute_code): Update comments.
9344 (xtensa_exception_handler_t): Update to match coding conventions.
9345 (xtensa_insn_kind): Likewise.
9346
9347 2011-03-09 Michael Snyder <msnyder@vmware.com>
9348
9349 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
9350
9351 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9352
9353 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9354
9355 2011-03-09 Tom Tromey <tromey@redhat.com>
9356
9357 * thread.c (restore_selected_frame): Handle frame_level == -1.
9358 (make_cleanup_restore_current_thread): Use
9359 get_selected_frame_if_set.
9360 * frame.h (get_selected_frame_if_set): Declare.
9361 * frame.c (get_selected_frame_if_set): New function.
9362
9363 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9364
9365 * cli/cli-cmds.c (shell_escape): Use lbasename.
9366 * coffread.c (coff_start_symtab): Constify parameter.
9367 (complete_symtab): Constify `name' parameter.
9368 (coff_symtab_read): Constify `filestring' local.
9369 (coff_getfilename): Constify return and `result' local.
9370 Use lbasename.
9371 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9372 * linux-fork.c (info_checkpoints_command): Use lbasename.
9373 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9374 * minsyms.c (lookup_minimal_symbol): Use lbasename.
9375 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9376 * procfs.c (procfs_make_note_section): Use lbasename.
9377 * tui/tui-io.c (printable_part): Constity return and parameter.
9378 Use lbasename.
9379 (print_filename): Constify parameters, and local `s'.
9380 (tui_rl_display_match_list): Constify local `temp'.
9381
9382 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9383
9384 Revert:
9385 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9386 Fix DWARF-3+ DW_AT_accessibility default assumption.
9387 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9388 cu->header.version >= 3.
9389
9390 2011-03-09 Yao Qi <yao@codesourcery.com>
9391
9392 * common/Makefile.in: Remove.
9393 * common/configure: Remove.
9394 * common/configure.ac: Remove.
9395
9396 2011-03-09 Yao Qi <yao@codesourcery.com>
9397
9398 Revert:
9399 2011-02-11 Yao Qi <yao@codesourcery.com>
9400
9401 * common/Makefile.in: Add copyright header.
9402
9403 2011-02-11 Yao Qi <yao@codesourcery.com>
9404
9405 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9406 libcommon.a.
9407 * configure.ac: Add common to sub dir.
9408 * configure: Regenerate.
9409
9410 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9411
9412 * xtensa-tdep.c (call0_ret): New function.
9413 (xtensa_skip_prologue): Speed up analysis.
9414
9415 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9416
9417 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9418 while executing MI command -data-list-changed-registers.
9419
9420 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9421
9422 * xtensa-tdep.c (xtensa_read_register): New function.
9423 (xtensa_write_register): New function.
9424 (xtensa_find_register_by_name): New function.
9425 (xtensa_windowed_frame_cache): Update comments in type description.
9426 (xtensa_frame_cache): Likewise.
9427 (xtensa_window_interrupt_insn): New function.
9428 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9429 (xtensa_insn_kind): Add new instructions.
9430 (rwx_special_register): New function.
9431 (call0_classify_opcode): Add new instructions to the analysis.
9432 (a0_saved, a7_saved, a11_saved): New variables.
9433 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9434 (execute_l32e): New function.
9435 (execute_s32e): New function.
9436 (xtensa_exception_handler_t): New type.
9437 (execute_code): New function.
9438 (xtensa_window_interrupt_frame_cache): New function to conduct frame
9439 analysis for Xtensa Window Exception handlers.
9440
9441 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9442
9443 * xtensa-tdep.c (TX_PS): New.
9444 (windowing_enabled): Update to count for Call0 ABI.
9445 (xtensa_hextochar): New.
9446 (xtensa_init_reggroups): Make algorithm generic.
9447 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9448
9449 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9450
9451 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
9452
9453 2011-03-08 Michael Snyder <msnyder@vmware.com>
9454
9455 * i386-tdep.c (i386_follow_jump): Check return value of
9456 target_read_memory.
9457 (i386_analyze_struct_return): Ditto.
9458 (i386_skip_probe): Ditto.
9459 (i386_match_insn): Ditto.
9460 (i386_skip_noop): Ditto.
9461 (i386_analyze_frame_setup): Ditto.
9462 (i386_analyze_register_saves): Ditto.
9463 (i386_skip_prologue): Ditto.
9464 (i386_skip_main_prologue): Ditto.
9465
9466 * target.c (read_whatever_is_readable): Fix memory leak.
9467
9468 * i386-tdep.c (i386_process_record): Document fall through.
9469
9470 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9471
9472 Fix DWARF-3+ DW_AT_accessibility default assumption.
9473 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9474 cu->header.version >= 3.
9475
9476 2011-03-08 Pedro Alves <pedro@codesourcery.com>
9477
9478 * remote.c (remote_check_symbols): Skip if the target has no
9479 execution.
9480
9481 2011-03-08 Joel Brobecker <brobecker@adacore.com>
9482
9483 * target.c (read_whatever_is_readable): Reformat comment,
9484 with a minor typo fix. Minor reformatting of the code.
9485
9486 2011-03-08 Yao Qi <yao@codesourcery.com>
9487
9488 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9489 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9490 Use cached result instead of calling displaced_in_arm_mode again.
9491 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9492 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9493 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9494 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9495 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9496 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9497 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9498 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9499 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9500 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9501 (arm_catch_kernel_helper_return): Likewise.
9502 * gdb/arm-tdep.h : Update function declarations.
9503
9504 2011-03-07 Michael Snyder <msnyder@vmware.com>
9505
9506 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9507
9508 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9509
9510 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9511
9512 * elfread.c (elf_symtab_read): Stop memory leak.
9513
9514 * main.c (captured_main): Fix memory leak.
9515
9516 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9517
9518 * ada-lang.c (compare_names): Call is_name_suffix with string1
9519 instead of string2.
9520
9521 2011-03-07 Tom Tromey <tromey@redhat.com>
9522
9523 * xcoffread.c (xcoff_sym_fns): Update.
9524 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9525 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9526 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9527 (symbol_file_add_with_addrs_or_offsets): Likewise.
9528 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9529 * somread.c (som_sym_fns): Update.
9530 * psymtab.h (require_partial_symbols): Declare.
9531 * psymtab.c (require_partial_symbols): New function.
9532 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9533 (ALL_OBJFILE_PSYMTABS): Undef.
9534 (ALL_PSYMTABS): Move from psympriv.h.
9535 (lookup_partial_symtab, find_pc_sect_psymtab)
9536 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9537 (find_last_source_symtab_from_partial)
9538 (forget_cached_source_info_partial)
9539 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9540 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9541 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9542 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9543 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9544 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9545 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9546 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9547 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9548 psymtabs.
9549 * mipsread.c (ecoff_sym_fns): Update.
9550 * machoread.c (macho_sym_fns): Update.
9551 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9552 (read_psyms): New function.
9553 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9554 (elf_sym_fns_lazy_psyms): New global.
9555 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9556 dwarf2_build_psymtabs.
9557 * dbxread.c (aout_sym_fns): Update.
9558 * coffread.c (coff_sym_fns): Update.
9559
9560 2011-03-07 Tom Tromey <tromey@redhat.com>
9561
9562 * infrun.c (print_exited_reason): Include inferior id and pid in
9563 message.
9564
9565 2011-03-07 Tom Tromey <tromey@redhat.com>
9566
9567 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9568 parameter.
9569 (target_has_execution_1): Update.
9570 (target_has_execution_current): Declare.
9571 (target_has_execution): Call target_has_execution_current.
9572 (default_child_has_execution): Update.
9573 * target.c (default_child_has_execution): Add 'the_ptid'
9574 parameter.
9575 (target_has_execution_1): Likewise.
9576 (target_has_execution_current): New function.
9577 (add_target): Update.
9578 (init_dummy_target): Update.
9579 * remote-m32r-sdi.c (m32r_has_execution): New function.
9580 (init_m32r_ops): Use it.
9581 * record.c (record_core_has_execution): Now static. Add
9582 'the_ptid' parameter.
9583 * inferior.c (have_live_inferiors): Don't save current thread.
9584 Use target_has_execution_1.
9585
9586 2011-03-07 Yao Qi <yao@codesourcery.com>
9587
9588 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9589
9590 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9591
9592 * elfread.c (elf_symtab_read): Minor reformatting.
9593
9594 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9595
9596 * objc-lang.c (selectors_info): Minor reformatting.
9597
9598 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9599
9600 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9601
9602 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9603 Michael Snyder <msnyder@vmware.com>
9604
9605 * ada-valprint.c (ada_val_print_array): Move the declaration of
9606 "byte_order" and "elttype" inside the block where these variables
9607 are actually used. Remove some special handling for the case
9608 where "elttype" and "eltlen" are null. Replace by a comment
9609 and a couple of assertion checks.
9610
9611 2011-03-05 Michael Snyder <msnyder@vmware.com>
9612
9613 * source.c (add_path): Replace semicolon at end of block.
9614 * dwarf2expr.c (execute_stack_op): Ditto.
9615
9616 2011-03-05 Mike Frysinger <vapier@gentoo.org>
9617
9618 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9619 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9620 (bfin-*-*): Likewise.
9621
9622 2011-03-05 Michael Snyder <msnyder@vmware.com>
9623
9624 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9625 * mdebugread.c (parse_symbol): Ditto.
9626 * parse.c (parse_exp_in_context): Ditto.
9627 * source.c (add_path): Ditto.
9628 * utils.c (gnu_debuglink_crc32): Ditto.
9629 * varobj.c (variable_language): Ditto.
9630
9631 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9632
9633 2011-03-04 Michael Snyder <msnyder@vmware.com>
9634
9635 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9636
9637 * symfile.c (simple_overlay_update): Check for null return value
9638 from lookup_minimal_symbol.
9639
9640 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9641
9642 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9643
9644 * eval.c (parse_and_eval_address_1): Remove function.
9645 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9646 instead of parse_and_eval_address_1.
9647 * value.h (parse_and_eval_address_1): Remove prototype.
9648
9649 2011-03-04 Michael Snyder <msnyder@vmware.com>
9650
9651 * remote.c (putpkt_binary): Document that case stmt falls through.
9652
9653 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9654
9655 * breakpointc (print_it_typical): Move NULL check from here...
9656 (print_bp_stop_message): ... to here.
9657
9658 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9659
9660 * breakpoint.c (enable_command): Use break instead of continue,
9661 and fill in a missing break.
9662 (disable_command): Ditto.
9663
9664 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9665
9666 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9667 (terminal_save_ours): Remove misleading comment.
9668 (inflow_inferior_data_cleanup): Free ttystate.
9669 (inflow_inferior_exit): Likewise.
9670 (copy_terminal_info): Copy ttystate.
9671
9672 * serial.c (serial_copy_tty_state): New function.
9673 * serial.h (serial_copy_tty_state): Add prototype.
9674 (struct serial_ops): Add copy_tty_state callback.
9675 * ser-base.c (ser_base_copy_tty_state): New function.
9676 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9677 * ser-go32.c (dos_copy_tty_state): New function.
9678 (dos_ops): Install copy_tty_state callback.
9679 * ser-mingw.c (_initialize_ser_windows): Likewise.
9680 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9681 * ser-unix.c (hardwire_copy_tty_state): New function.
9682 (_initialize_ser_hardwire): Install it.
9683
9684 2011-03-04 Michael Snyder <msnyder@vmware.com>
9685
9686 * breakpoint.c (create_breakpoint): Add missing break statement.
9687
9688 Reverting this patch:
9689 * infcall.c (call_function_by_hand): Add break statements for lint.
9690
9691 Reverting this patch:
9692 * cli/cli-script.c (script_from_file): Add break for lint.
9693
9694 2011-03-04 Michael Snyder <msnyder@vmware.com>
9695
9696 * solib.c (reload_shared_libraries_1): Close memory leak.
9697
9698 2011-03-03 Tom Tromey <tromey@redhat.com>
9699
9700 PR gdb/12538:
9701 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9702 DW_STRING is NULL.
9703
9704 2011-03-03 Michael Snyder <msnyder@vmware.com>
9705
9706 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9707 fields of struct 'st' to zero.
9708
9709 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9710 sal.pspace before calling set_current_source_symtab_and_line.
9711
9712 2011-03-03 Yao Qi <yao@codesourcery.com>
9713
9714 * Makefile.in (configure-common): Remove. Let Makefile
9715 in dir common to rebuild itself.
9716 (common/Makefile): Likewise.
9717
9718 2011-03-03 Joel Brobecker <brobecker@adacore.com>
9719
9720 * utils.c (parse_escape): Add i18n markup in error message.
9721
9722 2011-03-03 Yao Qi <yao@codesourcery.com>
9723
9724 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9725 ARM_PC_REGNUM.
9726 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9727 (displaced_write_reg, displaced_read_reg): Likewise.
9728 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9729 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9730 (cleanup_branch): Replace magic number 14 and 15 with
9731 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9732
9733 2011-03-02 Michael Snyder <msnyder@vmware.com>
9734
9735 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9736
9737 * cli/cli-script.c (script_from_file): Add break for lint.
9738
9739 * mdebugread.c (parse_partial_symbols): Fix indent.
9740
9741 * target-descriptions.c (tdesc_gdb_type): No need to call
9742 xstrdup, callee saves a copy.
9743
9744 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9745
9746 * infcall.c (call_function_by_hand): Add break statements for lint.
9747
9748 * utils.c (parse_escape): Escape the escape char.
9749
9750 * python/py-inferior.c (build_inferior_list): Error out if
9751 PyList_Append fails.
9752 (gdbpy_inferiors): Error out if build_inferior_list fails.
9753
9754 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9755 a function call.
9756
9757 * record.c (record_restore): Move printf to before error return.
9758
9759 2011-03-02 Yao Qi <yao@codesourcery.com>
9760
9761 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9762 is_thumb and insn_size.
9763 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9764 on both ARM and Thumb mode.
9765 (arm_process_displaced_insn): Set is_thumb and insn_size.
9766 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9767 (arm_displaced_step_fixup): Likewise.
9768
9769 2011-03-01 Michael Snyder <msnyder@vmware.com>
9770
9771 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9772
9773 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9774
9775 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9776
9777 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9778
9779 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9780 with xmalloc.
9781
9782 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9783 which shadows function parameter.
9784
9785 * tracepoint.c (create_tsv_from_upload): Superfluous call
9786 to xstrdup. Callee already calls xstrdup.
9787
9788 * linespec.c (decode_line_1): Remove unnecessary null check.
9789
9790 * tracepoint.c (scope_info): Fix mem leak, remove underused
9791 variable.
9792
9793 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9794 superfluous null check.
9795
9796 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9797 (value_of_builtin_frame_fp_reg): Ditto.
9798
9799 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9800
9801 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9802 be null.
9803
9804 * linespec.c (decode_line_1): Check for null before dereference.
9805
9806 * reverse.c (record_restore): Move null-check to before pointer
9807 dereference.
9808
9809 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9810
9811 * objc-lang.c (selectors_info): Add explanitory comment.
9812 (classes_info): Ditto.
9813
9814 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9815
9816 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9817 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9818 versions of the trampoline. Handle Thumb vs. ARM addresses.
9819 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9820 (arm_linux_init_abi): Install it.
9821 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9822 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9823
9824 2011-02-28 Michael Snyder <msnyder@vmware.com>
9825
9826 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9827 a little bigger, to avoid possibility of an overflow.
9828
9829 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9830 buffers a little bigger, to avoid possibility of an overflow.
9831
9832 * coffread.c (coff_getfilename): Add check to avoid overflow.
9833
9834 * objc-lang.c (selectors_info): Add a small safety margin to
9835 avoid overflow.
9836 (classes_info): Error out on too long REGEXP.
9837
9838 * infrun.c (handle_inferior_event): Remove unused function call.
9839
9840 * fork-child.c (fork_inferior): Remove ifdef'd code and
9841 unused variable.
9842
9843 * linux-thread-db.c (attach_thread): Discard unused value.
9844
9845 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9846
9847 * remote.c (remote_get_noisy_reply): Discard unused value.
9848 (remote_vcont_resume): Ditto.
9849 (remote_stop_ns): Ditto.
9850
9851 * linespec.c (decode_objc): Delete unused variable.
9852
9853 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9854
9855 * dwarf2read.c (add_partial_symbol): Discard unused values.
9856 (read_base_type): Delete unused variable.
9857
9858 * dbxread.c (read_dbx_symtab): Discard unused value.
9859
9860 * eval.c (evaluate_subexp_standard): Delete unused variable,
9861 and discard unused values.
9862
9863 * infcmd.c (_initialize_infcmd): Discard unused values.
9864
9865 * stabsread.c (rs6000_builtin_type): Missing break statement.
9866
9867 * dbxread.c (process_one_symbol): Discard unused value.
9868
9869 * coffread.c (coff_end_symtab): Delete unused variable.
9870
9871 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9872 (dwarf2_add_typedef): Delete unused variable.
9873 (read_namespace): Ditto.
9874 (dwarf_decode_macros): Ditto.
9875
9876 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9877
9878 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9879
9880 * p-valprint.c (pascal_val_print): Discard unused value.
9881
9882 * utils.c (nquery): Call va_end before return;
9883 (yquery): Ditto.
9884 (query): Ditto.
9885
9886 * proc-service.c (ps_plog): Call va_end before return.
9887
9888 2011-02-28 Tom Tromey <tromey@redhat.com>
9889
9890 * python/python.c (gdbpy_value_cst): New global.
9891 (_initialize_python): Initialize it.
9892 * python/python-internal.h (gdbpy_value_cst): Declare.
9893 * python/py-value.c (convert_value_from_python): Use
9894 gdbpy_value_cst.
9895
9896 2011-02-28 Michael Snyder <msnyder@vmware.com>
9897
9898 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9899
9900 * breakpoint.c (catch_syscall_completer): Free malloced list.
9901
9902 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9903
9904 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9905 (lval_func_check_synthetic_pointer): Ditto.
9906 (lval_func_free_closure): Fix use-after-free.
9907
9908 2011-02-28 Tom Tromey <tromey@redhat.com>
9909
9910 * psymtab.c (expand_partial_symbol_tables): Use
9911 ALL_OBJFILE_PSYMTABS.
9912
9913 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9914
9915 * objc-lang.c (selectors_info): Error on too long REGEXP.
9916
9917 2011-02-28 Michael Snyder <msnyder@vmware.com>
9918
9919 * python/py-param.c (set_parameter_value): Add missing
9920 break statement.
9921
9922 * linux-record.c (record_linux_system_call): Add missing
9923 break statement.
9924
9925 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9926
9927 * breakpoint.c (print_one_breakpoint_location): Remove unused
9928 argument PRINT_ADDRESS_BITS. Update callers.
9929 (print_one_breakpoint): Likewise.
9930
9931 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9932
9933 * breakpoint.c (wrap_indent_at_field): New function.
9934 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9935 Allocate ui_stream locally instead of using STB argument.
9936 (print_one_breakpoint_location): Update call.
9937 * ui-out.c (ui_out_query_field): New function.
9938 * ui-out.h (ui_out_query_field): Add prototype.
9939
9940 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9941
9942 From Michael Snyder <msnyder@vmware.com>
9943 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9944
9945 2011-02-27 Michael Snyder <msnyder@vmware.com>
9946
9947 * objc-lang.c (selectors_info): Prevent string overrun.
9948
9949 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9950 error in strncpy.
9951
9952 * symtab.c (rbreak_command): Move variable 'file_name' to
9953 outer scope.
9954
9955 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9956 param with a local variable of the same name.
9957
9958 2011-02-27 Michael Snyder <msnyder@vmware.com>
9959
9960 * value.c (value_from_history_ref): New function.
9961 * value.h (value_from_history_ref): Export.
9962 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9963 to parse value history references.
9964 * cli/cli-utils.h (get_number_trailer): Update comment.
9965
9966 2011-02-27 Michael Snyder <msnyder@vmware.com>
9967
9968 * inferior.c (detach_inferior_command): Use get_number_or_range.
9969 (kill_inferior_command): Ditto.
9970 (remove_inferior_command): Ditto.
9971 (initialize_inferiors): Make command names plural.
9972 Update help strings.
9973
9974 2011-02-27 Michael Snyder <msnyder@vmware.com>
9975
9976 * darwin-nat-info.c: Fix comment typo.
9977 * dwarf2expr.h: Ditto.
9978 * fbsd-nat.c: Ditto.
9979 * fbsd-nat.h: Ditto.
9980 * frame-unwind.h: Ditto.
9981 * frame.h: Ditto.
9982 * hppa-hpux-tdep.c: Ditto.
9983 * i386-linux-nat.c: Ditto.
9984 * linux-nat.c: Ditto.
9985 * nbsd-nat.c: Ditto.
9986 * nbsd-nat.h: Ditto.
9987 * ppc-linux-tdep.c: Ditto.
9988 * serial.c: Ditto.
9989 * ui-file.h: Ditto.
9990 * tui/tui-winsource.c: Ditto.
9991
9992 2011-02-26 Michael Snyder <msnyder@vmware.com>
9993
9994 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9995
9996 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9997
9998 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9999 with a local variable of the same name.
10000
10001 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
10002 param with a local variable of the same name.
10003 (i387_supply_xsave): Ditto.
10004
10005 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
10006 that it does not shadow a function parameter.
10007
10008 * i386-nat.c (i386_length_and_rw_bits): Document that case
10009 statement is meant to fall through.
10010
10011 * expprint.c (dump_subexp_body_standard): Document that case
10012 statement is meant to fall through.
10013
10014 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
10015 dead if statement. Condition can't be false.
10016
10017 2011-02-25 Michael Snyder <msnyder@vmware.com>
10018
10019 * arm-tdep.c: Fix typos in comments.
10020 * bsd-uthread.c: Ditto.
10021 * completer.c: Ditto.
10022 * corelow.c: Ditto.
10023 * cp-namespace.c: Ditto.
10024 * cp-support.c: Ditto.
10025 * cris-tdep.c: Ditto.
10026 * dbxread.c: Ditto.
10027 * dwarf2read.c: Ditto.
10028 * frame.h: Ditto.
10029 * gdbtypes.h: Ditto.
10030 * inferior.h: Ditto.
10031 * mdebugread.c: Ditto.
10032 * mips-tdep.c: Ditto.
10033 * ppc-linux-nat.c: Ditto.
10034 * ppc-linux-tdep.c: Ditto.
10035 * printcmd.c: Ditto.
10036 * sol-thread.c: Ditto.
10037 * solib-frv.c: Ditto.
10038 * solist.h: Ditto.
10039 * sparc64-tdep.c: Ditto.
10040 * spu-tdep.c: Ditto.
10041 * stabsread.c: Ditto.
10042 * symfile.c: Ditto.
10043 * valops.c: Ditto.
10044 * varobj.c: Ditto.
10045 * vax-nat.c: Ditto.
10046 * python/py-block.c: Ditto.
10047 * python/py-symbol.c: Ditto.
10048 * python/py-symtab.c: Ditto.
10049 * python/py-value.c: Ditto.
10050 * tui/tui-win.c: Ditto.
10051
10052 2011-02-25 Michael Snyder <msnyder@vmware.com>
10053
10054 * inferior.c (print_inferior): Accept a string instead of an int
10055 for requested_inferiors, and use get_number_or_range to parse it.
10056 (info_inferiors_command): Pass args string to print_inferior.
10057 (initialize_inferiors): Change help string for info inferiors.
10058 * inferior.h (print_inferior): Export prototype change.
10059
10060 2011-02-25 Tom Tromey <tromey@redhat.com>
10061
10062 * common/ax.def (invalid2): Set to 0x31.
10063
10064 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10065
10066 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
10067 L and plongest.
10068 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
10069 use L and plongest.
10070 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
10071
10072 2011-02-24 Michael Snyder <msnyder@vmware.com>
10073
10074 * Makefile.in (clean): Make clean should remove generated files
10075 observer.h and observer.inc.
10076
10077 2011-02-24 Joel Brobecker <brobecker@adacore.com>
10078
10079 Revert the following patch (not approved yet):
10080 2011-02-21 Hui Zhu <teawater@gmail.com>
10081 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10082 * ax-gdb.c (gen_printf_expr_callback): New function.
10083 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10084 * ax-general.c (ax_memcpy): New function.
10085 (ax_print): Handle "printf".
10086 (ax_reqs): Ditto.
10087 * ax.h (ax_memcpy): Forward declare.
10088 * common/ax.def (invalid2): Removed.
10089 (printf): New entry.
10090 * printcmd.c (printcmd.h): New include.
10091 (string_printf): New function.
10092 (ui_printf): Removed.
10093 (printf_command): Remove static. Call string_printf.
10094 (eval_command): Call string_printf.
10095 * printcmd.h: New file.
10096 * tracepoint.c (validate_actionline,
10097 encode_actions_1): handle printf_command.
10098
10099 2011-02-23 Tom Tromey <tromey@redhat.com>
10100
10101 * ax-general.c (ax_pick): Add missing newline.
10102
10103 2011-02-23 Michael Snyder <msnyder@vmware.com>
10104
10105 * breakpoint.c (breakpoint_1): Change first argument from an int
10106 to a char pointer, so that the function now accepts a list of
10107 breakpoints rather than just one. Use new function
10108 'number_is_in_list' to implement.
10109 (breakpoints_info): Pass char * instead of int to breakpoint_1.
10110 (watchpoints_info): Ditto.
10111 (tracepoints_info): Ditto.
10112 (maintenance_info_breakpoints): Ditto.
10113 (_initialize_breakpoint): Update help strings to reflect the fact
10114 that these functions can now take more than one argument.
10115 * cli/cli-utils.c (number_is_in_list): New function.
10116 * cli/cli-utils.h (number_is_in_list): Export.
10117
10118 2011-02-23 Michael Snyder <msnyder@vmware.com>
10119
10120 * memattr.c (mem_enable_command): Use get_number_or_range.
10121 (mem_disable_command): Ditto.
10122 (mem_delete_command): Ditto.
10123 (_initialize_mem): Tweak usage message to reflect multiple
10124 arguments.
10125
10126 2011-02-22 Doug Evans <dje@google.com>
10127
10128 Add gdb.lookup_global_symbol python function.
10129 * NEWS: Add entry.
10130 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
10131 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
10132 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
10133
10134 2011-02-22 Tom Tromey <tromey@redhat.com>
10135
10136 * language.c (language_class_name_from_physname): Rename
10137 'curr_language' argument to 'lang'; use in body.
10138
10139 2011-02-22 Michael Snyder <msnyder@vmware.com>
10140
10141 * cli/cli-utils.c (number_is_in_list): Check for zero return.
10142
10143 2011-02-22 Pedro Alves <pedro@codesourcery.com>
10144
10145 * frame-unwind.h: Fix comment to mention the this frame, not the
10146 next.
10147
10148 2011-02-22 Tom Tromey <tromey@redhat.com>
10149
10150 * symfile.c (auto_solib_limit): Remove.
10151 * symfile.h (auto_solib_limit): Remove.
10152
10153 2011-02-22 Joel Brobecker <brobecker@adacore.com>
10154
10155 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
10156
10157 2011-02-21 Michael Snyder <msnyder@vmware.com>
10158
10159 * gdbthread.h (print_thread_info): Change prototype.
10160 * thread.c (print_thread_info): Accept char* instead of int for
10161 requested_threads argument. Use new function number_is_in_list
10162 to determine which threads to list.
10163 (info_threads_command): Pass char* to print_thread_info.
10164 * cli/cli-utils.c (number_is_in_list): New function.
10165 * cli/cli-utils.h (number_is_in_list): Export.
10166 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
10167 print_thread_info.
10168 (print_one_inferior): Ditto.
10169 (mi_cmd_list_thread_groups): Ditto.
10170
10171 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10172
10173 * common/Makefile.in (CFLAGS): New.
10174 (COMPILE): Add $(CFLAGS).
10175
10176 2011-02-21 Tom Tromey <tromey@redhat.com>
10177
10178 * breakpoint.c (catch_syscall_command_1): Fix typo.
10179
10180 2011-02-21 Tom Tromey <tromey@redhat.com>
10181
10182 * reverse.c: Include cli-utils.h.
10183 * printcmd.c: Include cli-utils.h.
10184 (string_printf): Use skip_spaces.
10185 * cli/cli-utils.h: New file.
10186 * cli/cli-utils.c: New file.
10187 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
10188 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
10189 * breakpoint.h (get_number, get_number_or_range): Move to
10190 cli-utils.h.
10191 * breakpoint.c: Include cli-utils.h.
10192 (get_number_trailer, get_number, get_number_or_range)
10193 (ep_skip_leading_whitespace): Move to cli-utils.c.
10194 (create_breakpoint_sal, find_condition_and_thread)
10195 (decode_static_tracepoint_spec, watch_command_1)
10196 (watch_maybe_just_location, ep_parse_optional_if_clause)
10197 (catch_fork_command_1, catch_exec_command_1)
10198 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
10199 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
10200 (SUBDIR_CLI_SRCS): Add cli-utils.c.
10201 (HFILES_NO_SRCDIR): Add cli-utils.h.
10202 (cli-utils.o): New target.
10203
10204 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10205
10206 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
10207 before calling discard_all_inferiors.
10208
10209 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
10210
10211 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
10212 (struct builtin_opencl_type): Remove.
10213 (builtin_opencl_type): Change return type to "struct type **".
10214 (lookup_opencl_vector_type): Update caller.
10215 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
10216 (build_opencl_types): Install plain array of "struct type *"
10217 instead of "struct builtin_opencl_type".
10218
10219 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10220 Ulrich Weigand <uweigand@de.ibm.com>
10221
10222 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
10223 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
10224 (struct arm_linux_hwbp_cap): New type.
10225 (arm_linux_get_hwbp_cap): New function.
10226 (arm_linux_get_hw_breakpoint_count): Likewise.
10227 (arm_linux_get_hw_watchpoint_count): Likewise.
10228 (arm_linux_can_use_hw_breakpoint): Likewise.
10229 (arm_hwbp_type): New type.
10230 (arm_hwbp_control_t): Likewise.
10231 (struct arm_linux_hw_breakpoint): Likewise.
10232 (struct arm_linux_thread_points): Likewise.
10233 (arm_threads): New global variable.
10234 (arm_linux_find_breakpoints_by_tid): New function.
10235 (arm_hwbp_control_initialize): Likewise.
10236 (arm_hwbp_control_is_enabled): Likewise.
10237 (arm_hwbp_control_disable): Likewise.
10238 (arm_linux_hw_breakpoint_initialize): Likewise.
10239 (arm_linux_get_hwbp_type): Likewise.
10240 (arm_linux_hw_watchpoint_initialize): Likewise.
10241 (arm_linux_hw_breakpoint_equal): Likewise.
10242 (arm_linux_insert_hw_breakpoint1): Likewise.
10243 (arm_linux_remove_hw_breakpoint1): Likewise.
10244 (arm_linux_insert_hw_breakpoint): Likewise.
10245 (arm_linux_remove_hw_breakpoint): Likewise.
10246 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
10247 (arm_linux_insert_watchpoint): Likewise.
10248 (arm_linux_remove_watchpoint): Likewise.
10249 (arm_linux_stopped_data_address): Likewise.
10250 (arm_linux_stopped_by_watchpoint): Likewise.
10251 (arm_linux_watchpoint_addr_within_range): Likewise.
10252 (arm_linux_new_thread): Likewise.
10253 (arm_linux_thread_exit): Likewise.
10254 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
10255 related target callbacks. Register arm_linux_new_thread and
10256 arm_linux_thread_exit.
10257 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
10258 * arm-tdep.c (arm_pc_is_thumb): Make global.
10259 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
10260
10261 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
10262
10263 * breakpoint.c (update_watchpoint): Do not attempt to recreate
10264 per-frame locations while within a function epilogue.
10265
10266 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10267
10268 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
10269 to GNU coding standards.
10270
10271 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10272
10273 Allow use of mingw native on Windows 95 OS.
10274 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
10275 (ser_windows_close): Only call CancelIo if function exists.
10276 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
10277 to check for existence of CancelIo function in kernel32 DLL.
10278
10279 2011-02-21 Hui Zhu <teawater@gmail.com>
10280
10281 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10282 * ax-gdb.c (gen_printf_expr_callback): New function.
10283 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10284 * ax-general.c (ax_memcpy): New function.
10285 (ax_print): Handle "printf".
10286 (ax_reqs): Ditto.
10287 * ax.h (ax_memcpy): Forward declare.
10288 * common/ax.def (invalid2): Removed.
10289 (printf): New entry.
10290 * printcmd.c (printcmd.h): New include.
10291 (string_printf): New function.
10292 (ui_printf): Removed.
10293 (printf_command): Remove static. Call string_printf.
10294 (eval_command): Call string_printf.
10295 * printcmd.h: New file.
10296 * tracepoint.c (validate_actionline,
10297 encode_actions_1): handle printf_command.
10298
10299 2011-02-19 Michael Snyder <msnyder@vmware.com>
10300
10301 * reverse.c (delete_one_bookmark): Argument is now bookmark
10302 id rather than pointer to bookmark struct.
10303 (delete_bookmark_command): Use get_number_or_range.
10304 (goto_bookmark_command): Parse with get_number instead of strtoul.
10305 (bookmark_1): New function. Print info for one bookmark.
10306 (bookmarks_info): Use get_number_or_range and bookmark_1.
10307
10308 2011-02-18 Michael Snyder <msnyder@vmware.com>
10309
10310 * thread.c (info_threads_command): Re-implement using
10311 get_number_or_range.
10312 (thread_apply_command): Ditto.
10313
10314 2011-02-18 Tom Tromey <tromey@redhat.com>
10315
10316 * common/ax.def: New file.
10317 * ax.h (enum agent_op): Use ax.def.
10318 * ax-general.c (aop_map): Use ax.def.
10319
10320 2011-02-18 Tom Tromey <tromey@redhat.com>
10321
10322 * ax-general.c (aop_map): Add pick and rot.
10323 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
10324 <DW_OP_rot>: Implement.
10325 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
10326 (ax_pick): Declare.
10327 * ax-general.c (ax_pick): New function.
10328
10329 2011-02-18 Tom Tromey <tromey@redhat.com>
10330
10331 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
10332
10333 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10334 Tom Tromey <tromey@redhat.com>
10335
10336 * cp-support.c (make_symbol_overload_list_namespace): Do not call
10337 make_symbol_overload_list_block with NULL BLOCK.
10338 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
10339
10340 2011-02-18 Pedro Alves <pedro@codesourcery.com>
10341
10342 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
10343 * breakpoint.h (get_number_or_range): Declare.
10344 * printcmd.c (ALL_DISPLAYS): Declare.
10345 (delete_display): Reimplement taking a display pointer.
10346 (undisplay_command): Accept a range of displays to delete, using
10347 get_number_or_range.
10348
10349 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10350
10351 * c-valprint.c (c_val_print): Add embedded_offset to address
10352 for arrays of unspecified length.
10353 * p-valprint.c (pascal_val_print): Likewise.
10354
10355 2011-02-18 Yao Qi <yao@codesourcery.com>
10356
10357 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10358 (arm_process_displaced_insn): .. here. Remove parameter INSN.
10359 (thumb_process_displaced_insn): New.
10360 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10361 call to arm_process_displaced_insn.
10362 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10363
10364 2011-02-17 Tom Tromey <tromey@redhat.com>
10365
10366 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10367 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10368 compile_dwarf_to_ax. No longer static. Call
10369 dwarf2_compile_cfa_to_ax.
10370 (locexpr_tracepoint_var_ref): Update.
10371 (loclist_tracepoint_var_ref): Update.
10372 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10373 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10374 argument; add 'gdbarch' and 'pc'.
10375 (dwarf2_compile_cfa_to_ax): New function.
10376 (dwarf2_frame_cache): Update.
10377
10378 2011-02-17 Joel Brobecker <brobecker@adacore.com>
10379
10380 * ada-lang.c (ada_type_of_array): Fix the size of the array
10381 in the case of an unconstrained packed array.
10382
10383 2011-02-17 Yao Qi <yao@codesourcery.com>
10384
10385 * common/Makefile.in: Add more targets for make.
10386
10387 2011-02-16 Tom Tromey <tromey@redhat.com>
10388
10389 * dwarf2loc.c (unimplemented): Fix typo.
10390
10391 2011-02-16 Tom Tromey <tromey@redhat.com>
10392
10393 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10394 (compile_dwarf_to_ax) <default>: Use unimplemented.
10395 <DW_OP_deref>: Update.
10396 (disassemble_dwarf_expression): Update.
10397 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10398 (decode_locdesc): Update.
10399 * dwarf2expr.h (dwarf_stack_op_name): Update.
10400
10401 2011-02-16 Tom Tromey <tromey@redhat.com>
10402
10403 * ax.h (struct aop_map) <name>: Now const.
10404
10405 2011-02-16 Tom Tromey <tromey@redhat.com>
10406
10407 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10408 than axs_rvalue.
10409
10410 2011-02-16 Yao Qi <yao@codesourcery.com>
10411
10412 * infrun.c (get_displaced_step_closure_by_addr): New.
10413 * inferior.h: Declare it.
10414 * arm-tdep.c: (arm_pc_is_thumb): Call
10415 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
10416 returns non-NULL.
10417
10418 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10419 Jan Kratochvil <jan.kratochvil@redhat.com>
10420
10421 gdb/
10422 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10423
10424 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10425 Jan Kratochvil <jan.kratochvil@redhat.com>
10426
10427 * value.c (value_contents_copy_raw): Extend describing comment.
10428 Assert that the destination contents we're overwriting are wholly
10429 available.
10430 (value_contents_copy): Extend describing comment.
10431
10432 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10433 Jan Kratochvil <jan.kratochvil@redhat.com>
10434
10435 * value.c (value_available_contents_eq): Remove redundant local
10436 variables. Fix available contents comparision.
10437 * value.h (value_available_contents_eq): Extend describing
10438 comment.
10439
10440 2011-02-16 Yao Qi <yao@codesourcery.com>
10441
10442 * thread.c (info_threads_command): Add missing i18n markup and remove
10443 trailing newline.
10444
10445 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10446
10447 * breakpoint.c (longjmp_names): New variable.
10448 (struct breakpoint_objfile_data): New type.
10449 (breakpoint_objfile_key): New variable.
10450 (msym_not_found): New variable.
10451 (msym_not_found_p): New predicate.
10452 (get_breakpoint_objfile_data): New function.
10453 (create_overlay_event_breakpoint): Check per-objfile cache for
10454 symbols first.
10455 (create_longjmp_master_breakpoint): Likewise.
10456 (create_std_terminate_master_breakpoint): Likewise.
10457 (create_exception_master_breakpoint): Likewise.
10458 (_initialize_breakpoint): Register per-objfile data key.
10459
10460 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10461
10462 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10463 parameter value.
10464 (create_longjmp_master_breakpoint): Loop over longjmp names.
10465 (create_std_terminate_master_breakpoint): Const-propagate parameter
10466 value.
10467 (update_breakpoints_after_exec): Adjust.
10468 (breakpoint_re_set): Adjust.
10469
10470 2011-02-15 Michael Snyder <msnyder@vmware.com>
10471
10472 * thread.c (info_threads_command): Process arg as thread id,
10473 or list of thread ids.
10474 (thread_find_command): New command.
10475 (_initialize_thread): Document argument for info threads.
10476 Document 'thread find' command.
10477 * NEWS: Document new command "thread find".
10478
10479 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10480
10481 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10482 * aclocal.m4: Regenerated with aclocal-1.11.1.
10483 * common/configure: Regenerate with autoconf-2.64.
10484
10485 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
10486
10487 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10488 bool data type to a size of one byte.
10489
10490 2011-02-15 Pedro Alves <pedro@codesourcery.com>
10491 Jan Kratochvil <jan.kratochvil@redhat.com>
10492
10493 * target.c (memory_xfer_live_readonly_partial): Document where to
10494 look for interface description.
10495
10496 2011-02-15 Yao Qi <yao@codesourcery.com>
10497
10498 PR tdep/12352
10499 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10500 order to store PC value on stack instead of text section.
10501
10502 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10503
10504 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10505 the EFP register set size.
10506 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10507 data from the VMX register.
10508 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10509 and write data from/to the VMX register.
10510
10511 2011-02-14 Michael Snyder <msnyder@vmware.com>
10512
10513 * command.h (enum command_class): New class 'no_set_class', for
10514 "show" commands without a corresponding "set" command.
10515 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10516 * copying.c (_initialize_copying): Ditto for "show copying" and
10517 "show warranty".
10518 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10519 "show version".
10520 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10521 which there is no corresponding "set" command (eg. "show copying").
10522
10523 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10524 Jan Kratochvil <jan.kratochvil@redhat.com>
10525
10526 * exec.c (section_table_available_memory): Change `len' parameter
10527 type to ULONGEST.
10528 * exec.h (section_table_available_memory): Ditto.
10529 * value.h (read_value_memory): Rename the `offset' parameter to
10530 `embedded_offset'.
10531
10532 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10533 Jan Kratochvil <jan.kratochvil@redhat.com>
10534
10535 * memrange.c (compare_mem_ranges): Mention sort order in
10536 describing comment.
10537 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10538 * tracepoint.c (traceframe_available_memory): Extend comment to
10539 mention what happens to RESULT when the target does not support
10540 the query.
10541
10542 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10543 Jan Kratochvil <jan.kratochvil@redhat.com>
10544
10545 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10546 range.
10547
10548 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10549
10550 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10551 No longer handle NULL values.
10552
10553 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10554
10555 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10556 * value.c: Include "exceptions.h".
10557 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10558 generic error.
10559 * cp-abi.c: Include gdb_assert.h.
10560 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10561 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10562 errors.
10563 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10564 parameters. No longer returns -1 on error.
10565 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10566 `val' parameters.
10567 * cp-valprint.c: Include exceptions.h.
10568 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10569 the baseclass_offset. Handle unavailable base classes. Use
10570 val_print_invalid_address.
10571 * p-valprint.c: Include exceptions.h.
10572 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10573 when fetching the baseclass_offset. No longer expect
10574 baseclass_offset returning -1. Handle unavailable base classes.
10575 Use val_print_invalid_address.
10576 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10577 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10578 `embedded_offset' and `val' parameters. Adjust.
10579 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10580 parameter, and change its type to gdb_byte pointer. Add
10581 `embedded_offset' and `val' parameters. Adjust. No longer expect
10582 baseclass_offset returning -1.
10583 (value_dynamic_cast): Use value_contents_for_printing rather than
10584 value_contents. Adjust.
10585 (search_struct_field): No longer expect baseclass_offset returning
10586 -1.
10587 (search_struct_method): If reading memory from the target is
10588 necessary, wrap it in a new value to pass to baseclass_offset. No
10589 longer expect baseclass_offset returning -1.
10590 (find_method_list): No longer expect baseclass_offset returning
10591 -1. Use value_contents_for_printing rather than value_contents.
10592 * valprint.c (val_print_invalid_address): New function.
10593 * valprint.h (val_print_invalid_address): Declare.
10594 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10595 and `val' parameters. No longer expect baseclass_offset returning
10596 -1. Adjust.
10597 * gnu-v2-abi.c: Include "exceptions.h".
10598 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10599 parameters. Handle unavailable memory. Recurse through
10600 gnuv2_baseclass_offset directly, rather than through
10601 baseclass_offset. No longer returns -1 on not found, instead
10602 throw an error.
10603 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10604 `val' parameters. Adjust.
10605
10606 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10607
10608 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10609 almost but not quite adjacent.
10610
10611 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10612
10613 * value.h (value_entirely_available): Declare.
10614 * value.c (value_entirely_available): New function.
10615 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10616 real type if the pointer is unavailable.
10617
10618 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10619
10620 * valops.c (value_repeat): Use read_value_memory instead of
10621 read_memory.
10622
10623 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10624
10625 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10626 * value.c (value_contents_copy_raw, value_contents_copy): New
10627 functions.
10628 (value_primitive_field): Use value_contents_copy_raw instead of
10629 memcpy.
10630 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10631 memcpy.
10632 (value_array, value_slice): Ditto.
10633 * valarith.c (value_subscripted_rvalue): Use
10634 value_contents_copy_raw instead of memcpy.
10635
10636 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10637
10638 <unavailable> references.
10639
10640 * valops.c (get_value_at): Use value_from_contents_and_address,
10641 avoiding read_memory.
10642
10643 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10644
10645 * c-valprint.c (c_val_print): Print a string with unavailable
10646 contents as an array.
10647
10648 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10649
10650 * value.h (unpack_bits_as_long): Delete declaration.
10651 (unpack_value_bits_as_long): Declare.
10652 (unpack_value_field_as_long): Declare.
10653 (value_field_bitfield): Declare.
10654 * value.c (unpack_bits_as_long): Rename to...
10655 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10656 value parameters. Return the extracted result in a new output
10657 parameter. If the value contents are unavailable, return false,
10658 otherwise return true.
10659 (unpack_value_bits_as_long): New.
10660 (unpack_field_as_long): Rename to...
10661 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10662 Add embedded_offset and value parameters. Return the extracted
10663 result in a new output parameter. If the value contents are
10664 unavailable, return false, otherwise return true.
10665 (unpack_value_field_as_long): New.
10666 (unpack_field_as_long_1): New.
10667 (unpack_field_as_long): Reimplement as wrapper around
10668 unpack_value_field_as_long_1.
10669 (value_field_bitfield): New function.
10670 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10671 unpack_value_bits_as_long. Mark the value as unavailable, if it
10672 is unavailable.
10673 * jv-valprint.c (java_print_value_fields): Use
10674 value_field_bitfield.
10675 * p-valprint.c (pascal_object_print_value_fields): Use
10676 value_field_bitfield.
10677 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10678
10679 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10680
10681 * value.c (get_internalvar_integer): Also return the int value of
10682 TYPE_CODE_INT INTERNALVAR_VALUE values.
10683 (set_internalvar): Don't special case TYPE_CODE_INT.
10684
10685 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10686
10687 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10688 INTERNALVAR_POINTER.
10689 <pointer>: Delete.
10690 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10691 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10692 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10693
10694 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10695
10696 * value.h (value_available_contents_eq): Declare.
10697 * value.c (find_first_range_overlap): New function.
10698 (value_available_contents_eq): New function.
10699 * valprint.c (val_print_array_elements): Use
10700 value_available_contents_eq.
10701 * ada-valprint.c (val_print_packed_array_elements): Use
10702 value_available_contents_eq.
10703 * jv-valprint.c (java_value_print): Use
10704 value_available_contents_eq.
10705
10706 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10707
10708 * target.c (target_read_live_memory): New function.
10709 (memory_xfer_live_readonly_partial): New.
10710 (memory_xfer_partial): If reading from a traceframe, fallback to
10711 reading unavailable read-only memory from read-only regions of
10712 live target memory.
10713 * tracepoint.c (disconnect_tracing): Adjust.
10714 (set_current_traceframe): New, factored out from
10715 set_traceframe_number.
10716 (set_traceframe_number): Reimplement to only change the traceframe
10717 number on the GDB side.
10718 (do_restore_current_traceframe_cleanup): Adjust.
10719 (make_cleanup_restore_traceframe_number): New.
10720 (cur_traceframe_number): New global.
10721 (tfile_open): Set cur_traceframe_number to no traceframe.
10722 (set_tfile_traceframe): New function.
10723 (tfile_trace_find): If looking up a traceframe using any method
10724 other than by number, make sure the current tfile traceframe
10725 matches gdb's current traceframe. Update the current tfile
10726 traceframe if the lookup succeeded.
10727 (tfile_fetch_registers, tfile_xfer_partial)
10728 (tfile_get_trace_state_variable_value): Make sure the remote
10729 traceframe matches gdb's current traceframe.
10730 * remote.c (remote_traceframe_number): New global.
10731 (remote_open_1): Set it to -1.
10732 (set_remote_traceframe): New function.
10733 (remote_fetch_registers, remote_store_registers)
10734 (remote_xfer_memory, remote_xfer_partial)
10735 (remote_get_trace_state_variable_value): Make sure the remote
10736 traceframe matches gdb's current traceframe.
10737 (remote_trace_find): If looking up a traceframe using any method
10738 other than by number, make sure the current remote traceframe
10739 matches gdb's current traceframe. Update the current remote
10740 traceframe if the lookup succeeded.
10741 * infrun.c (fetch_inferior_event): Adjust.
10742 * tracepoint.h (set_current_traceframe): Declare.
10743 (get_traceframe_number, set_traceframe_number): Add describing
10744 comments.
10745
10746 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10747
10748 Mark pieces of values as unavailable if the corresponding memory
10749 is unavailable.
10750
10751 * valops.c: Include tracepoint.h.
10752 (value_fetch_lazy): Use read_value_memory.
10753 (read_value_memory): New.
10754 * value.h (read_value_memory): Declare.
10755 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10756 * exec.c (section_table_available_memory): New function.
10757 * exec.h (section_table_available_memory): Declare.
10758
10759 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10760
10761 * Makefile.in (SFILES): Add memrange.c.
10762 (HFILES_NO_SRCDIR): Add memrange.h.
10763 (COMMON_OBS): Add memrange.o.
10764 * memrange.c: New file.
10765 * memrange.h: New file.
10766 * tracepoint.c: Include memrange.h.
10767 (struct mem_range): Delete.
10768 (mem_range_s): Delete.
10769 (traceframe_available_memory): New function.
10770 * tracepoint.h (traceframe_available_memory): Declare.
10771
10772 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10773
10774 * target.h (struct traceframe_info): Forward declare.
10775 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10776 (struct target_ops) <to_traceframe_info>: New field.
10777 (target_traceframe_info): New.
10778 * target.c (update_current_target): Inherit and default
10779 to_traceframe_info.
10780 * remote.c (PACKET_qXfer_traceframe_info): New.
10781 (remote_protocol_features): Register qXfer:traceframe-info:read.
10782 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10783 (remote_traceframe_info): New.
10784 (init_remote_ops): Install it.
10785 (_initialize_remote): Install "set/show remote traceframe-info"
10786 commands.
10787 * tracepoint.h (parse_traceframe_info): Declare.
10788 * tracepoint.c (struct mem_range): New.
10789 (mem_range_s): New typedef.
10790 (struct traceframe_info): New.
10791 (traceframe_info): New global.
10792 (free_traceframe_info): New function.
10793 (clear_traceframe_info): New function.
10794 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10795 info.
10796 (build_traceframe_info): New function.
10797 (tfile_traceframe_info): New function.
10798 (init_tfile_ops): Install tfile_traceframe_info.
10799 (traceframe_info_start_memory, free_result): New functions.
10800 (memory_attributes, traceframe_info_elements): New globals.
10801 (parse_traceframe_info, get_traceframe_info): New functions.
10802 * features/traceframe-info.dtd: New file.
10803 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10804
10805 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10806
10807 Base support for <unavailable> value contents.
10808
10809 * value.h (value_bytes_available): Declare.
10810 (mark_value_bytes_unavailable): Declare.
10811 * value.c (struct range): New struct.
10812 (range_s): New typedef.
10813 (ranges_overlap): New function.
10814 (range_lessthan): New function.
10815 (ranges_contain_p): New function.
10816 (struct value) <unavailable>: New field.
10817 (value_bytes_available): New function.
10818 (mark_value_bytes_unavailable): New function.
10819 (require_not_optimized_out): Constify parameter.
10820 (require_available): New function.
10821 (value_contents_all, value_contents): Require all bytes be
10822 available.
10823 (value_free): Free `unavailable'.
10824 (value_copy): Copy `unavailable'.
10825 * valprint.h (val_print_unavailable): Declare.
10826 * valprint.c (valprint_check_validity): Rename `offset' parameter
10827 to `embedded_offset'. If printing a scalar, check whether the
10828 value chunk is available.
10829 (val_print_unavailable): New.
10830 (val_print_scalar_formatted): Check whether the value is
10831 available.
10832 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10833 pretty-printing unavailable values.
10834
10835 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10836
10837 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10838 * c-typeprint.c (c_type_print_args): Update the function comment. New
10839 variable param_type, initialize it. Remove const/volatile qualifiers
10840 for language_cplus and !show_artificial. Use param_type.
10841
10842 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10843
10844 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10845 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10846 * symtab.h (struct symtab) <next>: Comment extension.
10847
10848 2011-02-12 Yao Qi <yao@codesourcery.com>
10849
10850 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10851
10852 2011-02-11 Yao Qi <yao@codesourcery.com>
10853
10854 * common/Makefile.in: Add copyright header.
10855
10856 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10857
10858 * infrun.c (proceed): Move switching out and in of tfind mode from
10859 here ...
10860 (fetch_inferior_event): ... to here.
10861
10862 2011-02-11 Yao Qi <yao@codesourcery.com>
10863
10864 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10865 libcommon.a.
10866 * configure.ac: Add common to sub dir.
10867 * configure: Regenerate.
10868
10869 2011-02-11 Yao Qi <yao@codesourcery.com>
10870
10871 Build libcommon.a.
10872
10873 * common/Makefile.in: New.
10874 * common/configure.ac: New.
10875 * common/aclocal.m4: New.
10876 * common/configure: Generate.
10877
10878 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10879
10880 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10881 side of the parenthesis.
10882
10883 Merge from GCC:
10884 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10885 * vec.h (VEC_block_remove): Fix comment.
10886
10887 2011-02-08 Michael Snyder <msnyder@vmware.com>
10888
10889 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10890
10891 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10892
10893 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10894 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10895 psubd and paddd.
10896
10897 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10898
10899 PR 12361.
10900 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10901 phsubsw.
10902 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10903 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10904
10905 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10906
10907 * dwarf2read.c (read_subroutine_type): Set special calling
10908 convention flag for functions compiled by IBM XL C for OpenCL.
10909 * ppc-sysv-tdep.c: Include "dwarf2.h"
10910 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10911 calling convention.
10912 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10913 IBM OpenCL vector types calling convention.
10914 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10915 (ppc_sysv_abi_broken_return_value): Likewise.
10916 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10917 types calling convention.
10918 (ppc64_sysv_abi_return_value): Likewise.
10919 * spu-tdep.c: Include "dwarf2.h"
10920 (spu_return_value): Implement IBM OpenCL vector types calling
10921 convention.
10922
10923 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10924
10925 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10926 correct ABI for AltiVec vector arguments.
10927
10928 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10929
10930 * valprint.c (val_print): Extend comment.
10931 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10932 interface explanation to val_print.
10933 (ada_val_print_array): Adjust comment to current interface.
10934 (print_field_values): Adjust comment to current interface.
10935 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10936 explanation to val_print.
10937 * f-valprint.c (f_val_print): Ditto.
10938 * jv-valprint.c (java_val_print): Ditto.
10939 * m2-valprint.c (m2_val_print): Ditto.
10940 * p-valprint.c (pascal_val_print): Ditto.
10941
10942 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10943
10944 * breakpoint.c (parse_breakpoint_sals): Fix description.
10945
10946 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10947 Oguz Kayral <oguzkayral@gmail.com>
10948
10949 * python/py-inferior.c (python_on_normal_stop): New function.
10950 (python_on_resume): New function.
10951 (python_inferior_exit): New function.
10952 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10953 inferior_exit observers.
10954 * python/py-evtregistry.c: New file.
10955 * python/py-threadevent.c : New file.
10956 * python/py-event.c: New file.
10957 * python/py-evts.c: New file.
10958 * python/py-continueevent.c: New file.
10959 * python/py-bpevent.c: New file.
10960 * python/py-signalevent.c: New file.
10961 * python/py-exetiedevent.c: New file.
10962 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10963 Move struct breakpoint_object from here...
10964 * python/python-internal.h: ... to here.
10965 * python/py-event.h: New file.
10966 * python/py-events.h: New file.
10967 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10968 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10969 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10970 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10971 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10972 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10973 Add build rules for all the above.
10974
10975 2011-02-04 Tom Tromey <tromey@redhat.com>
10976
10977 * dwarf2read.c (dwarf2_section_empty_p): New function.
10978 (dwarf2_read_section): Use dwarf2_section_empty_p.
10979 (dwarf2_section_size): New function.
10980 (dwarf2_get_section_info): Unconditionally read section.
10981 (dwarf2_read_index): Use dwarf2_section_empty_p.
10982 (partial_read_comp_unit_head): Use dwarf2_section_size.
10983 (dwarf2_symbol_mark_computed): Likewise.
10984
10985 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10986
10987 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10988
10989 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10990
10991 * mips-linux-tdep.c: Include xml-syscall.h.
10992 (mips_linux_get_syscall_number): New function.
10993 (mips_linux_init_abi): Add calls to
10994 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10995 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10996 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10997 * syscalls/mips-n32-linux.xml: New file.
10998 * syscalls/mips-n64-linux.xml: New file.
10999 * syscalls/mips-o32-linux.xml: New file.
11000
11001 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
11002
11003 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
11004 Complain about inverted range entries.
11005 (dwarf2_record_block_ranges): Likewise.
11006
11007 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
11008
11009 Fix some typos.
11010 * breakpoint.c (update_watchpoint): Fix name of the
11011 update_global_location_list function.
11012 (print_one_breakpoint): Fix typo.
11013 (_initialize_breakpoint): Remove extra space in hbreak help
11014 string.
11015 * breakpoint.h (struct bp_location) <length>: Fix field
11016 description.
11017
11018 2011-02-04 Pedro Alves <pedro@codesourcery.com>
11019
11020 * regcache.c (registers_changed_ptid): Don't explictly always
11021 clear `current_regcache'. Only clear current_thread_ptid and
11022 current_thread_arch when PTID matches. Only reinit the frame
11023 cache if PTID matches the current inferior_ptid. Move alloca(0)
11024 call to ...
11025 (registers_changed): ... here.
11026
11027 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
11028
11029 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
11030 starts with __stack_chk_guard as stack guard symbol.
11031
11032 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
11033
11034 * disasm.c (compare_lines): Handle the end of sequence markers
11035 within the line table to better support disassembling over
11036 compilation unit boundaries.
11037
11038 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
11039
11040 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
11041 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
11042 implementation even if no symbols are available.
11043 (thumb_analyze_prologue): Update call to skip_prologue_function.
11044 (arm_analyze_prologue): Likewise.
11045
11046 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
11047
11048 * arm-tdep.c: Include "observer.h".
11049 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
11050 (arm_exidx_data_key): New static variable.
11051 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
11052 (struct arm_exidx_data): Likewise.
11053 (arm_exidx_data_free): New function.
11054 (arm_compare_exidx_entries): Likewise.
11055 (arm_obj_section_from_vma): Likewise.
11056 (arm_exidx_new_objfile): Likewise.
11057 (arm_find_exidx_entry): Likewise.
11058 (arm_exidx_fill_cache): Likewise.
11059 (arm_exidx_unwind_sniffer): Likewise.
11060 (arm_exidx_unwind): New global variable.
11061 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
11062 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
11063 observer. Register arm_exidx_data_key as objfile data.
11064
11065 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
11066
11067 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
11068 due to accessing uninitialized variable. Fix indentation.
11069
11070 2011-02-02 Pedro Alves <pedro@codesourcery.com>
11071
11072 * c-valprint.c (c_value_print): When doing virtual base pointer
11073 adjustment, create a new value with adjusted contents rather than
11074 changing the contents of the value being printed (and getting it
11075 wrong).
11076
11077 2011-02-02 Pedro Alves <pedro@codesourcery.com>
11078
11079 * xml-support.c (xml_find_attribute): New.
11080 (xinclude_start_include): Use it.
11081 * xml-support.h (xml_find_attribute): Declare.
11082 * memory-map.c (memory_map_start_memory)
11083 (memory_map_start_property): Use xml_find_attribute.
11084 * osdata.c (osdata_start_osdata, osdata_start_column): Use
11085 xml_find_attribute.
11086 * remote.c (start_thread): Use xml_find_attribute.
11087 * solib-target.c (library_list_start_segment)
11088 (library_list_start_section, library_list_start_library)
11089 (library_list_start_list): Use xml_find_attribute.
11090 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
11091 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
11092 (tdesc_start_field): Use xml_find_attribute.
11093
11094 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
11095
11096 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
11097 (BUILD_OCL_VTYPES): Update.
11098
11099 2011-02-02 Joel Brobecker <brobecker@adacore.com>
11100
11101 * configure.ac: Work around non-GNU sed limitation when computing
11102 python version number.
11103 * configure: Regenerate.
11104
11105 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11106
11107 Fix debug printing of TYPE_INSTANCE.
11108 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
11109 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
11110
11111 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11112
11113 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
11114 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
11115 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
11116 * ada-operator.inc: Rename the file to ...
11117 * ada-operator.def: ... here, wrap all the entries by macro OP.
11118 * expprint.c (op_name_standard): Remove all the entries. Include
11119 "std-operator.def" instead.
11120 * expression.h (enum exp_opcode): Include "std-operator.def" and
11121 "ada-operator.def". Move all the entries ...
11122 * std-operator.def: ... here, wrap all the entries by macro OP.
11123
11124 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
11125
11126 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
11127 * breakpoint.c (remove_jit_event_breakpoints): New function.
11128 * jit.c (jit_descriptor_addr): Delete.
11129 (registering_code): Delete.
11130 (clear_int): Delete.
11131 (jit_inferior_data): New variable.
11132 (struct jit_inferior_data): New type.
11133 (get_jit_inferior_data): New function.
11134 (jit_inferior_data_cleanup): New function.
11135 (jit_read_descriptor): Adjust.
11136 (jit_register_code): Adjust.
11137 (jit_breakpoint_re_set_internal): New function; move code here ...
11138 (jit_inferior_init): ... from here.
11139 (jit_breakpoint_re_set): Adjust.
11140 (jit_reset_inferior_data_and_breakpoints): New function.
11141 (jit_inferior_created_observer): Adjust.
11142 (jit_inferior_exit_hook): Adjust.
11143 (jit_executable_changed_observer): New function.
11144 (jit_event_handler): Adjust.
11145 (_initialize_jit): Adjust.
11146
11147 2011-01-31 Michael Snyder <msnyder@vmware.com>
11148
11149 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
11150 line.
11151
11152 2011-01-31 Tom Tromey <tromey@redhat.com>
11153
11154 PR python/12216:
11155 * python/python.c (execute_gdb_command): Call
11156 prevent_dont_repeat.
11157 * top.c (suppress_dont_repeat): New global.
11158 (dont_repeat): Use it.
11159 (prevent_dont_repeat): New function.
11160 * command.h (prevent_dont_repeat): Declare.
11161
11162 2011-01-31 Tom Tromey <tromey@redhat.com>
11163
11164 * infcmd.c (finish_backward): Use breakpoint_set_silent.
11165 * python/py-breakpoint.c (bppy_set_silent): Use
11166 breakpoint_set_silent.
11167 (bppy_set_thread): Use breakpoint_set_thread.
11168 (bppy_set_task): Use breakpoint_set_task.
11169 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
11170 (breakpoint_set_task): Declare.
11171 (make_breakpoint_silent): Remove.
11172 * breakpoint.c (breakpoint_set_silent): New function.
11173 (breakpoint_set_thread): Likewise.
11174 (breakpoint_set_task): Likewise.
11175 (make_breakpoint_silent): Remove.
11176
11177 2011-01-31 Tom Tromey <tromey@redhat.com>
11178
11179 * breakpoint.h (user_breakpoint_p): Declare.
11180 * breakpoint.c (user_breakpoint_p): New function.
11181 (breakpoint_1): Use it.
11182 (save_breakpoints): Likewise.
11183
11184 2011-01-31 Joel Brobecker <brobecker@adacore.com>
11185
11186 * configure.ac: Add handling of Python distribution on Windows.
11187 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
11188 sysconfig variables are not defined, then do not use them.
11189 On Windows, if LIBPL is not defined, then use prefix + '/libs'
11190 instead. On Windows, return all paths using forward-slashes
11191 rather than backslashes.
11192
11193 2011-01-31 Joel Brobecker <brobecker@adacore.com>
11194
11195 * configure.ac: Remove fallback behavior for building
11196 against Python. Remove tweaking of Python include path.
11197 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
11198 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
11199 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
11200 Always restore CPPFLAGS and LIBS after linking test.
11201 * configure: Regenerated.
11202 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
11203 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
11204 * python/python-internal.h: Adjust includes of Python .h files.
11205
11206 2011-01-31 Joel Brobecker <brobecker@adacore.com>
11207
11208 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
11209 in error message.
11210
11211 2011-01-31 Joel Brobecker <brobecker@adacore.com>
11212
11213 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
11214 value test.
11215
11216 2011-01-31 Yao Qi <yao@codesourcery.com>
11217
11218 * arm-linux-nat.c: Update calls to regcache_register_status
11219 instead of regcache_valid_p.
11220 * aix-thread.c: Likewise.
11221 * i386gnu-nat.c: Likewise.
11222
11223 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11224
11225 Fix crash.
11226 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
11227 touching TYPE_FIELD_ARTIFICIAL.
11228
11229 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
11230
11231 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
11232 Committers.
11233
11234 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11235
11236 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
11237 selected, don't try iterating over the traceframe's blocks.
11238 (tfile_has_stack): If there's no traceframe selected, then there's
11239 no stack.
11240 (tfile_has_registers): If there's no traceframe selected, then
11241 there's no registers.
11242
11243 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11244
11245 * target.c (memory_xfer_partial): No need to restore shadows if we
11246 haven't read anything.
11247
11248 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11249
11250 * mips-tdep.c (mips_print_register): Use get_frame_register_value
11251 and val_print_scalar_formatted.
11252
11253 2011-01-27 Pedro Alves <pedro@codesourcery.com>
11254
11255 * tracepoint.c (tfile_read): New.
11256 (tfile_open): Use it.
11257 (tfile_get_traceframe_address): Use it.
11258 (tfile_trace_find): Use it.
11259 (walk_blocks_callback_func): New typedef.
11260 (match_blocktype): New function.
11261 (traceframe_walk_blocks): New function.
11262 (traceframe_find_block_type): New function.
11263 (tfile_fetch_registers, tfile_xfer_partial)
11264 (tfile_get_trace_state_variable_value): Use
11265 traceframe_find_block_type and tfile_read.
11266
11267 2011-01-26 Kevin Buettner <kevinb@redhat.com>
11268
11269 * remote-mips.c: Add internationalization mark ups. Remove
11270 trailing \n from already marked up strings.
11271
11272 2011-01-26 Tom Tromey <tromey@redhat.com>
11273
11274 * python/py-prettyprint.c (print_string_repr): Clear
11275 'addressprint' option when calling val_print_string.
11276 (print_children): Handle Val_pretty_default. Clear 'addressprint'
11277 option when calling val_print_string.
11278
11279 2011-01-26 Tom Tromey <tromey@redhat.com>
11280
11281 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
11282 GDB_PY_LL_ARG.
11283 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
11284 macros.
11285 (gdb_py_longest, gdb_py_ulongest): New typedefs.
11286 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
11287 (gdb_py_long_as_ulongest): New defines.
11288 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
11289 (gdb_py_int_as_long): Declare.
11290 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
11291 GDB_PY_LL_ARG, gdb_py_object_from_longest.
11292 (valpy_long): Add comment.
11293 * python/py-utils.c (get_addr_from_python): Use
11294 gdb_py_long_as_ulongest. Handle overflow properly.
11295 (gdb_py_object_from_longest): New function.
11296 (gdb_py_object_from_ulongest): Likewise.
11297 (gdb_py_int_as_long): Likewise.
11298 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
11299 * python/py-symtab.c (salpy_get_pc): Use
11300 gdb_py_long_from_ulongest.
11301 (salpy_get_line): Use PyInt_FromLong.
11302 * python/py-param.c (set_parameter_value): Use
11303 gdb_py_int_as_long.
11304 * python/py-lazy-string.c (stpy_get_address): Use
11305 gdb_py_long_from_ulongest.
11306 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
11307 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
11308 * python/py-breakpoint.c (bppy_set_thread): Use
11309 gdb_py_int_as_long.
11310 (bppy_set_task): Likewise.
11311 (bppy_set_ignore_count): Likewise.
11312 (bppy_set_hit_count): Likewise.
11313 * python/py-block.c (blpy_get_start): Use
11314 gdb_py_object_from_ulongest.
11315 (blpy_get_end): Likewise.
11316 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
11317
11318 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
11319
11320 PR/symtab 11766:
11321 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
11322 * gdb/solib.c (solib_read_symbols): Check for addr_low in
11323 equality test for objfile, initialize addr_low if needed.
11324
11325 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11326
11327 * tui/tui-regs.c (tui_register_format): Remove dead code.
11328
11329 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11330
11331 * printcmd.c (print_formatted): Use val_print_scalar_formatted
11332 instead of print_scalar_formatted.
11333 (print_scalar_formatted): Don't handle 's' format strings here,
11334 and add an assertion that we never see such format here.
11335 * valprint.h (val_print_scalar_formatted): Declare.
11336 * valprint.c (val_print_scalar_formatted): New.
11337 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
11338 instead of print_scalar_formatted.
11339 * jv-valprint.c (java_val_print): Ditto.
11340 * p-valprint.c (pascal_val_print): Ditto.
11341 * ada-valprint.c (ada_val_print_1): Ditto.
11342 * f-valprint.c (f_val_print): Ditto.
11343 * infcmd.c (registers_info): Ditto.
11344 * m2-valprint.c (m2_val_print): Ditto.
11345
11346 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11347
11348 * m2-valprint.c (print_unbounded_array): Pass
11349 value_contents_for_printing rather than value_contents, to
11350 m2_print_array_contents. Also pass in the value.
11351
11352 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11353
11354 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11355 (save_gdb_index_command): Switch to .gdb_index version 4.
11356
11357 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11358
11359 * mi/mi-main.c (get_register): Use get_frame_register_value rather
11360 than frame_register, and always pass a valid value to val_print.
11361
11362 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11363
11364 Centralize printing "<optimized out>".
11365
11366 * valprint.h (val_print_optimized_out): Declare.
11367 * cp-valprint.c (cp_print_value_fields): Use
11368 val_print_optimized_out.
11369 * jv-valprint.c (java_print_value_fields): Ditto.
11370 * p-valprint.c (pascal_object_print_value_fields): Ditto.
11371 * printcmd.c (print_formatted): Ditto.
11372 * valprint.c (valprint_check_validity): Ditto.
11373 (value_check_printable): Ditto.
11374 (val_print_optimized_out): New.
11375
11376 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11377
11378 * infcmd.c (default_print_registers_info): Allocate values so to
11379 never pass a NULL value to val_print.
11380
11381 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11382
11383 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11384 boolean. Make sure to always pass a value that matches the
11385 contents buffer to callees. Preserve `address' for following
11386 iterations.
11387 * value.c (value_contents_for_printing_const): New.
11388 (value_address): Constify value argument.
11389 * value.h (value_contents_for_printing_const): Declare.
11390 (value_address): Constify value argument.
11391
11392 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11393
11394 * regcache.c (struct regcache_descr): Rename
11395 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11396 and sizeof_cooked_register_valid_p to
11397 sizeof_cooked_register_status.
11398 (init_regcache_descr): Adjust.
11399 (struct regcache): Rename register_valid_p field to
11400 register_status.
11401 (regcache_xmalloc_1, regcache_xfree, regcache_save)
11402 (do_cooked_read): Adjust.
11403 (regcache_valid_p): Rename to ...
11404 (regcache_register_status): ... this. Adjust.
11405 (regcache_invalidate): Adjust.
11406 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11407 Adjust.
11408 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
11409 as unavailable, not valid.
11410 (regcache_dump): Adjust.
11411 * regcache.h (enum register_status): New.
11412 (regcache_register_status): Declare.
11413 (regcache_invalidate): Delete declaration.
11414 * corelow.c (get_core_registers): Adjust.
11415 * tracepoint.c (tfile_fetch_registers): Adjust.
11416 * trad-frame.c (REG_VALUE): Rename to ...
11417 (TF_REG_VALUE): ... this.
11418 (REG_UNKNOWN): Rename to ...
11419 (TF_REG_UNKNOWN): ... this.
11420 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11421 * mi/mi-main.c (register_changed_p): Adjust.
11422
11423 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11424
11425 * regcache.c (struct regcache_descr): Remove outdated comment.
11426 (init_regcache_descr): Remove sizeof_raw_register_valid_p
11427 overallocate hack.
11428 (regcache_xmalloc): Rename to ...
11429 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
11430 Allocate the regcache type accordingly.
11431 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11432 (regcache_xfree): Asser the source is also readonly. Copy sizeof
11433 cooked registers, not raw.
11434 (regcache_dup_no_passthrough): Delete.
11435 (get_thread_arch_regcache): Use regcache_xmalloc_1.
11436 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11437 mention obsolete write_register_bytes.
11438 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11439
11440 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11441
11442 Stop remote_read_bytes from handling partial reads itself.
11443
11444 * remote-fileio.c: Include target.h.
11445 (remote_fileio_write_bytes): Delete.
11446 (remote_fileio_func_open, remote_fileio_func_write)
11447 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11448 target_read_memory.
11449 (remote_fileio_func_stat): Use target_read_memory and
11450 target_write_memory.
11451 (remote_fileio_func_gettimeofday): Use target_write_memory.
11452 (remote_fileio_func_system): Use target_read_memory.
11453 * remote.c (remote_write_bytes): Make it static.
11454 (remote_read_bytes): Don't handle partial reads here.
11455 * remote.h (remote_read_bytes): Delete declaration.
11456
11457 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11458
11459 Simplify XML parsing a bit.
11460
11461 * xml-support.h (gdb_xml_parse_quick): Declare.
11462 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11463 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11464 parameter.
11465 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11466 gdb_xml_create_parser_and_cleanup_1.
11467 (gdb_xml_parse_quick): New.
11468 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11469 * osdata.c (osdata_parse): Ditto.
11470 * remote.c (remote_threads_info): Ditto.
11471 * solib-target.c (solib_target_parse_libraries): Ditto.
11472 * xml-syscall.c (syscall_parse_xml): Ditto.
11473 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11474
11475 2011-01-24 Kevin Buettner <kevinb@redhat.com>
11476
11477 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11478 with remote-mips.o added to gdb_target_obs.
11479 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11480
11481 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11482
11483 * ada-valprint.c (val_print_packed_array_elements): Pass the
11484 correct struct value to val_print.
11485 (ada_val_print_1): Ditto.
11486
11487 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11488
11489 Don't lose embedded_offset in printing routines throughout.
11490
11491 * valprint.h (val_print_array_elements): Change prototype.
11492 * valprint.c (val_print_array_elements): Add `embedded_offset'
11493 parameter, and adjust to pass it down to val_print, while passing
11494 `valaddr' or `address' unmodified. Take embedded_offset into
11495 account when checking repetitions.
11496 * c-valprint.c (c_val_print): Pass embedded_offset to
11497 val_print_array_elements instead of adjusting `valaddr' and
11498 `address'.
11499 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11500 embedded_offset to val_print_array_elements instead of adjusting
11501 `valaddr'.
11502 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11503 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11504 val_print_array_elements and pascal_object_print_value_fields
11505 instead of adjusting `valaddr'.
11506 (pascal_object_print_value_fields): Add `offset' parameter, and
11507 adjust to use it.
11508 (pascal_object_print_value): Add `offset' parameter, and adjust to
11509 use it.
11510 (pascal_object_print_static_field): Use
11511 value_contents_for_printing/value_embedded_offset, rather than
11512 value_contents.
11513 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11514 parameter, and adjust to use it. Use
11515 value_contents_for_printing/value_embedded_offset, rather than
11516 value_contents.
11517 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11518 (ada_val_print_array): Add `offset' parameter, and adjust to use
11519 it.
11520 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11521 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11522 Instead work with offsets. Use
11523 value_contents_for_printing/value_embedded_offset, rather than
11524 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11525 and use value_from_pointer to extract a target pointer, rather
11526 than value_from_longest.
11527 (print_variant_part): Add `offset' parameter. Replace
11528 `outer_valaddr' parameter by a new `outer_offset' parameter.
11529 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11530 (ada_value_print): Use
11531 value_contents_for_printing/value_embedded_offset, rather than
11532 value_contents.
11533 (print_record): Add `offset' parameter, and adjust to pass it
11534 down.
11535 (print_field_values): Add `offset' parameter. Replace
11536 `outer_valaddr' parameter by a new `outer_offset' parameter.
11537 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11538 Use value_contents_for_printing/value_embedded_offset, rather than
11539 value_contents.
11540 * d-valprint.c (dynamic_array_type): Use
11541 value_contents_for_printing/value_embedded_offset, rather than
11542 value_contents.
11543 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11544 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11545 (java_print_value_fields): Take `offset' into account. Don't
11546 re-adjust `valaddr'. Instead pass down adjusted offsets.
11547 (java_val_print): Take `embedded_offset' into account. Pass it to
11548 java_print_value_fields.
11549 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11550 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11551 down adjusted offsets.
11552 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11553 (f_val_print): Take `embedded_offset' into account.
11554
11555 2011-01-21 Joel Brobecker <brobecker@adacore.com>
11556
11557 * inflow.c: Include "gdbcmd.h".
11558 (interactive_mode): New static global, moved here from top.c.
11559 (show_interactive_mode): New function, moved here from top.c.
11560 use gdb_has_a_terminal instead of input_from_terminal_p to
11561 determine the current mode.
11562 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11563 setting.
11564 (_initialize_inflow): Add the "set/show interactive-mode"
11565 commands. Moved here from top.c, after having adjusted slightly
11566 the help text.
11567 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11568 to inflow.c.
11569 (input_from_terminal_p): Remove handling of "interactive-mode"
11570 setting, moved to infow.c.
11571 (init_main): Remove creation of the "set/show interactive-mode"
11572 commands, moved to inflow.c.
11573
11574 2011-01-19 Joel Brobecker <brobecker@adacore.com>
11575
11576 * NEWS: Add entry for native ia64-hpux support.
11577
11578 2011-01-19 Tom Tromey <tromey@redhat.com>
11579
11580 PR mi/8618:
11581 * thread.c (free_thread): Free 'name'.
11582 (print_thread_info): Emit thread name. Change CLI output.
11583 (thread_name_command): New function.
11584 (do_captured_thread_select): Emit newline.
11585 (_initialize_thread): Register 'thread name' command.
11586 * target.h (struct target_ops) <to_thread_name>: New field.
11587 (target_thread_name): New macro.
11588 * target.c (update_current_target): Handle to_thread_name.
11589 * python/py-infthread.c (thpy_get_name): New function.
11590 (thpy_set_name): Likewise.
11591 (thread_object_getset): Add "name".
11592 * linux-nat.c (linux_nat_thread_name): New function.
11593 (linux_nat_add_target): Set to_thread_name.
11594 * gdbthread.h (struct thread_info) <name>: New field.
11595
11596 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11597
11598 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11599 (ada_val_print_1): Likewise.
11600
11601 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11602
11603 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11604 upper limit address is not greater than the function end address
11605 when the upper limit could not be computed using the debugging
11606 info.
11607
11608 2011-01-17 Tom Tromey <tromey@redhat.com>
11609
11610 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11611 get_regcomp_error.
11612 * utils.c: Include gdb_regex.h.
11613 (do_regfree_cleanup): New function.
11614 (make_regfree_cleanup): Likewise.
11615 (get_regcomp_error): Likewise.
11616 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11617
11618 2011-01-17 Tom Tromey <tromey@redhat.com>
11619
11620 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11621 re_compile_fastmap.
11622
11623 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11624
11625 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11626 for internal variables.
11627 (last_was_structop): New static variable.
11628 (COMPLETE): New token.
11629 (field_exp): New rule to group all '.' suffix handling.
11630 Add mark_struct_expression calls when approriate to be able
11631 to correctly find fields for completion.
11632 (yylex): Adapt to handle field completion and set INTVAR when
11633 required.
11634
11635 2011-01-14 Yao Qi <yao@codesourcery.com>
11636
11637 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11638 save_reggroup, restore_reggroup and all_reggroup.
11639
11640 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11641
11642 * ada-valprint. (ada_printchar): Use the correct type length
11643 in call to ada_emit_char.
11644 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11645
11646 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11647
11648 * solib-som.h (hpux_major_release): Declare variable here.
11649 * solib-som.c: Remove <sys/utsname.h> header.
11650 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11651 (hpux_major_release): Make global, change default value to
11652 DEFAULT_HPUX_MAJOR_RELEASE.
11653 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11654 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11655 Add "solib-som.h" header.
11656 (set_hpux_major_release): New function.
11657 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11658
11659 2011-01-14 Mike Frysinger <vapier@gentoo.org>
11660
11661 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11662
11663 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11664
11665 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11666 new-line at end of warning message.
11667 (ia64_hpux_store_register): Remove trailing new-line at end of
11668 error message.
11669 * ia64-hpux-tdep.c: Rephrase comment.
11670 * solib-ia64-hpux.c (struct dld_info): Change type of field
11671 dld_flags from "long long" to ULONGEST.
11672
11673 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11674
11675 * target.h (deprecated_child_ops): Delete declaration.
11676 * target.c (deprecated_child_ops): Delete definition.
11677
11678 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11679
11680 * Makefile.in (hpux-thread.o): Delete rule.
11681 * configure.ac: Don't check for HPUX DCE threads support.
11682 * configure, config.in: Regenerate.
11683 * hppa-hpux-nat.c (child_suppress_run): Delete.
11684 (hppa_hpux_child_can_run): Delete.
11685 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11686 * hpux-thread.c: Delete.
11687
11688 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11689
11690 * hpux-thread.c (hpux_pid_to_str): Delete.
11691
11692 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11693
11694 * ada-valprint.c (ada_emit_char): Remove strange code.
11695 Check that c is <= UCHAR_MAX before passing it to isascii.
11696 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11697
11698 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11699
11700 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11701 to the case where instream is stdin.
11702
11703 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11704
11705 * ia64-tdep.h (struct regcache): Forward declare.
11706 (struct ia64_infcall_ops): New struct type.
11707 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11708 and "infcall_ops".
11709 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11710 Renames ia64_find_global_pointer.
11711 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11712 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11713 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11714 methods.
11715 (ia64_infcall_ops): New static global constant.
11716 (ia64_gdbarch_init): Set tdep->infcall_ops.
11717 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11718 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11719 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11720 (ia64_hpux_dummy_code): New static global constant.
11721 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11722 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11723 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11724 New function.
11725 (ia64_hpux_infcall_ops): New static global constant.
11726 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11727 for inferior function calls to work properly on ia64-hpux.
11728
11729 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11730
11731 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11732 * ia64-tdep.h (struct frame_info): forward declaration.
11733 (struct gdbarch_tdep): Add field size_of_register_frame.
11734 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11735 to determine the size of the register frame.
11736 (ia64_size_of_register_frame): New function.
11737 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11738 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11739 (IA64_HPUX_UREG_REASON): New macro.
11740 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11741 New functions.
11742 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11743 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11744 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11745 objects.
11746
11747 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11748
11749 Add support for ia64-hpux.
11750 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11751 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11752
11753 * configure.host: Add handling for ia64-hpux hosts. Add associated
11754 floatformats.
11755 * configure.tgt: Add handling for ia64-hpux targets.
11756 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11757 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11758 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11759
11760 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11761
11762 [ttrace] Compute thread list immediately after attach.
11763 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11764 New subprogram.
11765 (inf_ttrace_attach): Use it.
11766
11767 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11768
11769 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11770 if we could not determine the frame's function address. Instead,
11771 use the frame's PC, and then continue.
11772
11773 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11774
11775 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11776 not already defined.
11777
11778 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11779
11780 * ia64-tdep.c (ia64_struct_type_p): New function.
11781 (ia64_extract_return_value): Handle integral values that are
11782 less than 8 bytes long.
11783 (ia64_push_dummy_call): Likewise.
11784
11785 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11786
11787 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11788 floatformat_ia64_ext.
11789 (floatformat_ia64_ext_big): New static const.
11790 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11791
11792 2011-01-12 Tom Tromey <tromey@redhat.com>
11793
11794 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11795 messages.
11796 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11797 (mi_cmd_thread_list_ids): Likewise.
11798 (mi_cmd_data_list_changed_registers): Likewise.
11799 (mi_cmd_data_list_register_values): Likewise.
11800 (mi_cmd_data_write_register_values): Likewise.
11801 (mi_cmd_data_evaluate_expression): Likewise.
11802 (mi_cmd_data_read_memory): Likewise.
11803 (mi_cmd_data_read_memory_bytes): Likewise.
11804 (mi_cmd_data_write_memory): Likewise.
11805 (mi_cmd_enable_timings): Likewise.
11806 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11807 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11808 (mi_cmd_var_delete): Likewise.
11809 (mi_cmd_var_set_format): Likewise.
11810 (mi_cmd_var_show_format): Likewise.
11811 (mi_cmd_var_info_num_children): Likewise.
11812 (mi_cmd_var_list_children): Likewise.
11813 (mi_cmd_var_info_type): Likewise.
11814 (mi_cmd_var_info_expression): Likewise.
11815 (mi_cmd_var_show_attributes): Likewise.
11816 (mi_cmd_var_assign): Likewise.
11817 (mi_cmd_var_update): Likewise.
11818 (mi_cmd_enable_pretty_printing): Likewise.
11819 (mi_cmd_var_set_update_range): Likewise.
11820 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11821 messages.
11822 (mi_cmd_target_file_put): Likewise.
11823 (mi_cmd_target_file_delete): Likewise.
11824 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11825 messages.
11826 (mi_cmd_stack_info_depth): Likewise.
11827 (mi_cmd_stack_list_locals): Likewise.
11828 (mi_cmd_stack_list_args): Likewise.
11829 (mi_cmd_stack_select_frame): Likewise.
11830 (mi_cmd_stack_select_frame): Likewise.
11831 (mi_cmd_stack_info_frame): Likewise.
11832 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11833 messages.
11834 (mi_cmd_file_list_exec_source_files): Likewise.
11835 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11836 (mi_cmd_env_cd): Likewise.
11837 (mi_cmd_env_path): Likewise.
11838 (mi_cmd_env_dir): Likewise.
11839 (mi_cmd_inferior_tty_show): Likewise.
11840 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11841 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11842 (mi_cmd_break_watch): Likewise.
11843
11844 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11845
11846 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11847 (ppc_linux_insert_hw_breakpoint): Likewise.
11848 (ppc_linux_remove_hw_breakpoint): Likewise.
11849 (ppc_linux_insert_watchpoint): Likewise.
11850
11851 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11852 Jan Kratochvil <jan.kratochvil@redhat.com>
11853
11854 PR fortran/11104 and DWARF unbound arrays detection.
11855 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11856 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11857 unspecified upper bound.
11858 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11859 variables array_size_array, tmp_type and offset_item. New variable
11860 array. Remove call to f77_get_upperbound. New variables array_type
11861 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11862 the final call to deprecated_set_value_type.
11863
11864 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11865
11866 Make value allocations more lazy.
11867 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11868 instead of allocate_value and set_value_lazy when possible.
11869 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11870 instead of allocate_value and set_value_lazy.
11871 * findvar.c (value_of_register_lazy): Likewise.
11872 (read_var_value): Remove V preallocation, call just check_typedef in
11873 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11874 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11875 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11876 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11877 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11878 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11879 the end, remove set_value_lazy there.
11880 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11881 instead of allocate_value and set_value_lazy when possible.
11882 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11883 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11884 of allocate_value and set_value_lazy.
11885 (value_from_contents_and_address): Use allocate_value_lazy instead of
11886 allocate_value and set_value_lazy when possible.
11887
11888 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11889
11890 * disasm.c (dump_insns): Support dumping opcodes for MI.
11891 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11892 dumping of instruction opcodes.
11893
11894 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11895
11896 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11897 appropiately.
11898
11899 2011-01-11 Tom Tromey <tromey@redhat.com>
11900
11901 * thread.c (do_captured_thread_select): Emit newline before
11902 printing frame.
11903
11904 2011-01-11 Michael Snyder <msnyder@vmware.com>
11905
11906 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11907 * score-tdep.c: Ditto.
11908 * score-tdep.h: Ditto.
11909 * ser-base.c: Ditto.
11910 * ser-go32.c: Ditto.
11911 * serial.c: Ditto.
11912 * serial.h: Ditto.
11913 * ser-mingw.c: Ditto.
11914 * ser-pipe.c: Ditto.
11915 * ser-tcp.c: Ditto.
11916 * ser-unix.c: Ditto.
11917 * sh64-tdep.c: Ditto.
11918 * shnbsd-nat.c: Ditto.
11919 * sh-tdep.c: Ditto.
11920 * sh-tdep.h: Ditto.
11921 * solib.c: Ditto.
11922 * solib-darwin.c: Ditto.
11923 * solib-frv.c: Ditto.
11924 * solib.h: Ditto.
11925 * solib-irix.c: Ditto.
11926 * solib-osf.c: Ditto.
11927 * solib-pa64.c: Ditto.
11928 * solib-som.c: Ditto.
11929 * solib-spu.c: Ditto.
11930 * solib-sunos.c: Ditto.
11931 * solib-svr4.c: Ditto.
11932 * solist.h: Ditto.
11933 * sol-thread.c: Ditto.
11934 * somread.c: Ditto.
11935 * source.c: Ditto.
11936 * source.h: Ditto.
11937 * sparc64-linux-tdep.c: Ditto.
11938 * sparc64-tdep.c: Ditto.
11939 * sparc-linux-nat.c: Ditto.
11940 * sparc-linux-tdep.c: Ditto.
11941 * sparc-sol2-nat.c: Ditto.
11942 * sparc-sol2-tdep.c: Ditto.
11943 * sparc-tdep.c: Ditto.
11944 * sparc-tdep.h: Ditto.
11945 * spu-tdep.c: Ditto.
11946 * stabsread.c: Ditto.
11947 * stabsread.h: Ditto.
11948 * stack.c: Ditto.
11949 * symfile.c: Ditto.
11950 * symfile.h: Ditto.
11951 * symmisc.c: Ditto.
11952 * symtab.c: Ditto.
11953 * symtab.h: Ditto.
11954 * target.c: Ditto.
11955 * target-descriptions.c: Ditto.
11956 * target-descriptions.h: Ditto.
11957 * target.h: Ditto.
11958 * target-memory.c: Ditto.
11959 * terminal.h: Ditto.
11960 * thread.c: Ditto.
11961 * top.c: Ditto.
11962 * tracepoint.c: Ditto.
11963 * tracepoint.h: Ditto.
11964 * trad-frame.h: Ditto.
11965 * typeprint.c: Ditto.
11966
11967 2011-01-11 Michael Snyder <msnyder@vmware.com>
11968
11969 * ui-file.c: Comment cleanup, mostly periods and spaces.
11970 * ui-file.h: Ditto.
11971 * ui-out.c: Ditto.
11972 * ui-out.h: Ditto.
11973 * utils.c: Ditto.
11974 * v850-tdep.c: Ditto.
11975 * valarith.c: Ditto.
11976 * valops.c: Ditto.
11977 * valprint.c: Ditto.
11978 * valprint.h: Ditto.
11979 * value.c: Ditto.
11980 * value.h: Ditto.
11981 * varobj.c: Ditto.
11982 * varobj.h: Ditto.
11983 * vax-tdep.c: Ditto.
11984 * vec.c: Ditto.
11985 * vec.h: Ditto.
11986 * version.h: Ditto.
11987 * windows-nat.c: Ditto.
11988 * windows-tdep.c: Ditto.
11989 * xcoffread.c: Ditto.
11990 * xcoffsolib.c: Ditto.
11991 * xml-support.c: Ditto.
11992 * xstormy16-tdep.c: Ditto.
11993 * xtensa-tdep.c: Ditto.
11994 * xtensa-tdep.h: Ditto.
11995
11996 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11997
11998 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11999 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
12000
12001 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
12002 Thiago Jung Bauermann <bauerman@br.ibm.com>
12003
12004 Implement support for PowerPC BookE ranged watchpoints.
12005 * breakpoint.h
12006 (struct breakpoint_ops) <resources_needed>: New method.
12007 Initialize to NULL in all existing breakpoint_ops instances.
12008 (struct breakpoint) <exact>: New field.
12009 (target_exact_watchpoints): Declare external global.
12010 * breakpoint.c (target_exact_watchpoints): New global flag.
12011 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
12012 b->enable_state to bp_enabled before calling
12013 hw_watchpoint_used_count.
12014 (hw_watchpoint_used_count): Iterate over all bp_locations in a
12015 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
12016 if available.
12017 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
12018 if the watchpoint is exact.
12019 (resources_needed_watchpoint): New function.
12020 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
12021 (watch_command_1): Set b->exact if the user asked for an exact
12022 watchpoint and one can be set.
12023 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
12024 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
12025 the user asks for an exact watchpoint and one can be set. Return
12026 number of needed debug registers to watch the expression.
12027 * gdbtypes.c (is_scalar_type): New function, based on
12028 valprint.c:scalar_type_p.
12029 (is_scalar_type_recursive): New function.
12030 * gdbtypes.h (is_scalar_type_recursive): Declare.
12031 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
12032 handle regions when ranged watchpoints are available.
12033 (create_watchpoint_request): New function.
12034 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
12035 create_watchpoint_request.
12036 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
12037 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
12038 `set powerpc' and `show powerpc' commands.
12039 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12040 Mention documentation comment in the target macro.
12041 (target_region_ok_for_hw_watchpoint): Document return value.
12042
12043 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
12044
12045 * breakpoint.c (update_watchpoint): Decide on using a software or
12046 hardware watchpoint after the bp_locations are created.
12047
12048 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
12049
12050 Convert hardware watchpoints to use breakpoint_ops.
12051 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
12052 <insert_location>: ... this. Return int instead of void.
12053 Accept pointer to struct bp_location instead of pointer to
12054 struct breakpoint. Adapt all implementations.
12055 (breakpoint_ops) <remove>: Rename to...
12056 <remove_location>: ... this. Accept pointer to struct bp_location
12057 instead of pointer to struct breakpoint. Adapt all implementations.
12058 * breakpoint.c (insert_catchpoint): Delete function.
12059 (insert_bp_location): Call the watchpoint or catchpoint's
12060 breakpoint_ops.insert method.
12061 (remove_breakpoint_1): Call the watchpoint or catchpoint's
12062 breakpoint_ops.remove method.
12063 (insert_watchpoint, remove_watchpoint): New functions.
12064 (watchpoint_breakpoint_ops): New structure.
12065 (watch_command_1): Initialize the OPS field.
12066 * inf-child.c (inf_child_insert_fork_catchpoint)
12067 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
12068 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
12069 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
12070 Delete functions.
12071 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
12072 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
12073 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
12074 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
12075 * target.c (update_current_target): Change default implementation of
12076 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
12077 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
12078 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
12079 to_set_syscall_catchpoint to return_one.
12080 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
12081 (debug_to_insert_exec_catchpoint): Report return value.
12082 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
12083 (to_insert_exec_catchpoint): Change declaration to return int instead
12084 of void.
12085
12086 2011-01-11 Michael Snyder <msnyder@vmware.com>
12087
12088 * arm-tdep.c: Internationalization.
12089 * c-lang.c: Ditto.
12090 * charset.c: Ditto.
12091 * fork-child.c: Ditto.
12092 * nto-procfs.c: Ditto.
12093 * ppc-sysv-tdep.c: Ditto.
12094 * procfs.c: Ditto.
12095 * remote-mips.c: Ditto.
12096 * remote.c: Ditto.
12097 * rs6000-nat.c: Ditto.
12098 * rs6000-tdep.c: Ditto.
12099 * target.c: Ditto.
12100 * valops.c: Ditto.
12101 * value.c: Ditto.
12102 * xml-support.c: Ditto.
12103 * mi/mi-cmd-break.c: Ditto.
12104 * mi/mi-cmd-var.c: Ditto.
12105 * mi/mi-interp.c: Ditto.
12106 * mi/mi-main.c: Ditto.
12107
12108 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
12109
12110 * remote-sim.c (gdbsim_store_register): Update API to
12111 sim_store_register to check more error conditions.
12112
12113 2011-01-10 Michael Snyder <msnyder@vmware.com>
12114
12115 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
12116 * nto-tdep.c: Ditto.
12117 * nto-tdep.h: Ditto.
12118 * objc-exp.y: Ditto.
12119 * objc-lang.c: Ditto.
12120 * objfiles.c: Ditto.
12121 * objfiles.h: Ditto.
12122 * observer.c: Ditto.
12123 * opencl-lang.c: Ditto.
12124 * osabi.c: Ditto.
12125 * parse.c: Ditto.
12126 * parser-defs.h: Ditto.
12127 * p-exp.y: Ditto.
12128 * p-lang.c: Ditto.
12129 * posix-hdep.c: Ditto.
12130 * ppcbug-rom.c: Ditto.
12131 * ppc-linux-nat.c: Ditto.
12132 * ppc-linux-tdep.c: Ditto.
12133 * ppc-linux-tdep.h: Ditto.
12134 * ppcnbsd-tdep.c: Ditto.
12135 * ppcobsd-tdep.c: Ditto.
12136 * ppcobsd-tdep.h: Ditto.
12137 * ppc-sysv-tdep.c: Ditto.
12138 * ppc-tdep.h: Ditto.
12139 * printcmd.c: Ditto.
12140 * proc-abi.c: Ditto.
12141 * proc-flags.c: Ditto.
12142 * procfs.c: Ditto.
12143 * proc-utils.h: Ditto.
12144 * progspace.h: Ditto.
12145 * prologue-value.c: Ditto.
12146 * prologue-value.h: Ditto.
12147 * psympriv.h: Ditto.
12148 * psymtab.c: Ditto.
12149 * p-typeprint.c: Ditto.
12150 * p-valprint.c: Ditto.
12151 * ravenscar-sparc-thread.c: Ditto.
12152 * ravenscar-thread.c: Ditto.
12153 * ravenscar-thread.h: Ditto.
12154 * record.c: Ditto.
12155 * regcache.c: Ditto.
12156 * regcache.h: Ditto.
12157 * remote.c: Ditto.
12158 * remote-fileio.c: Ditto.
12159 * remote-fileio.h: Ditto.
12160 * remote.h: Ditto.
12161 * remote-m32r-sdi.c: Ditto.
12162 * remote-mips.c: Ditto.
12163 * remote-sim.c: Ditto.
12164 * rs6000-aix-tdep.c: Ditto.
12165 * rs6000-nat.c: Ditto.
12166 * rs6000-tdep.c: Ditto.
12167
12168 2011-01-10 Michael Snyder <msnyder@vmware.com>
12169
12170 * charset.c (validate): Internationalization.
12171 * coffread.c (read_one_sym): Ditto.
12172 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
12173 * h8300-tdep.c (H8300_extract_return_value): Ditto.
12174 * inflow.c (new_tty): Ditto.
12175 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
12176 * m32c-tdep.c (m32c_return_value): Ditto.
12177 * mep-tdep.c (mep_store_return_value): Ditto.
12178 * score-tdep.c (score7_fetch_insn): Ditto.
12179 * ser-mingw.c (pipe_windows_open): Ditto.
12180 * sh64-tdep.c (sh64_extract_return_value): Ditto.
12181 * spu-tdep.c (spu_register_type): Ditto.
12182 * tracepoint.c (trace_find_command): Ditto.
12183 * valarith.c (value_pos): Ditto.
12184
12185 2011-01-10 Joel Brobecker <brobecker@adacore.com>
12186
12187 * ada-valprint.c (printstr): Minor comment reformatting.
12188
12189 2011-01-08 Michael Snyder <msnyder@vmware.com>
12190
12191 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
12192 markup.
12193
12194 2011-01-08 Michael Snyder <msnyder@vmware.com>
12195
12196 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
12197 * hppa-hpux-tdep.c: Ditto.
12198 * hppa-linux-nat.c: Ditto.
12199 * hppa-linux-tdep.c: Ditto.
12200 * hppanbsd-tdep.c: Ditto.
12201 * hppa-tdep.c: Ditto.
12202 * hppa-tdep.h: Ditto.
12203 * hpux-thread.c: Ditto.
12204 * i386-cygwin-tdep.c: Ditto.
12205 * i386-darwin-nat.c: Ditto.
12206 * i386gnu-nat.c: Ditto.
12207 * i386-linux-nat.c: Ditto.
12208 * i386-linux-tdep.c: Ditto.
12209 * i386-nat.c: Ditto.
12210 * i386-nat.h: Ditto.
12211 * i386nbsd-tdep.c: Ditto.
12212 * i386-sol2-nat.c: Ditto.
12213 * i386-stub.c: Ditto.
12214 * i386-tdep.c: Ditto.
12215 * i386-tdep.h: Ditto.
12216 * i387-tdep.c: Ditto.
12217 * ia64-linux-nat.c: Ditto.
12218 * ia64-linux-tdep.c: Ditto.
12219 * ia64-tdep.c: Ditto.
12220 * infcall.c: Ditto.
12221 * infcall.h: Ditto.
12222 * infcmd.c: Ditto.
12223 * inferior.c: Ditto.
12224 * inferior.h: Ditto.
12225 * infloop.c: Ditto.
12226 * inflow.c: Ditto.
12227 * infrun.c: Ditto.
12228 * interps.c: Ditto.
12229 * interps.h: Ditto.
12230 * iq2000-tdep.c: Ditto.
12231 * irix5-nat.c: Ditto.
12232 * jit.c: Ditto.
12233 * jit.h: Ditto.
12234 * jv-exp.y: Ditto.
12235 * jv-lang.c: Ditto.
12236 * jv-lang.h: Ditto.
12237 * jv-typeprint.c: Ditto.
12238 * jv-valprint.c: Ditto.
12239 * language.c: Ditto.
12240 * language.h: Ditto.
12241 * linespec.c: Ditto.
12242 * linux-fork.c: Ditto.
12243 * linux-nat.c: Ditto.
12244 * linux-thread-db.c: Ditto.
12245 * lm32-tdep.c: Ditto.
12246
12247 2011-01-08 Michael Snyder <msnyder@vmware.com>
12248
12249 * m2-exp.y: Comment cleanup, mostly periods and spaces.
12250 * m2-lang.c: Ditto.
12251 * m2-typeprint.c: Ditto.
12252 * m2-valprint.c: Ditto.
12253 * m32c-tdep.c: Ditto.
12254 * m32r-linux-nat.c: Ditto.
12255 * m32r-rom.c: Ditto.
12256 * m32r-tdep.c: Ditto.
12257 * m32r-tdep.h: Ditto.
12258 * m68hc11-tdep.c: Ditto.
12259 * m58klinux-nat.c: Ditto.
12260 * m68k-tdep.c: Ditto.
12261 * m88k-tdep.c: Ditto.
12262 * m88k-tdep.h: Ditto.
12263 * machoread.c: Ditto.
12264 * macrocmd.c: Ditto.
12265 * macroexp.c: Ditto.
12266 * macrotab.c: Ditto.
12267 * main.c: Ditto.
12268 * maint.c: Ditto.
12269 * mdebugread.c: Ditto.
12270 * mdebugread.h: Ditto.
12271 * memattr.c: Ditto.
12272 * memattr.h: Ditto.
12273 * memory-map.h: Ditto.
12274 * mep-tdep.c: Ditto.
12275 * microblaze-rom.c: Ditto.
12276 * microblaze-tdep.c: Ditto.
12277 * minsyms.c: Ditto.
12278 * mips-irix-tdep.c: Ditto.
12279 * mips-linux-nat.c: Ditto.
12280 * mips-linux-tdep.c: Ditto.
12281 * mips-linux-tdep.h: Ditto.
12282 * mipsnbsd-nat.c: Ditto.
12283 * mipsnbsd-tdep.c: Ditto.
12284 * mipsread.c: Ditto.
12285 * mips-tdep.c: Ditto.
12286 * mips-tdep.h: Ditto.
12287 * mn10300-linux-tdep.c: Ditto.
12288 * mn10300-tdep.c: Ditto.
12289 * mn10300-tdep.h: Ditto.
12290 * monitor.c: Ditto.
12291 * monitor.h: Ditto.
12292 * moxie-tdep.c: Ditto.
12293 * moxie-tdep.h: Ditto.
12294 * mt-tdep.c: Ditto.
12295
12296 2011-01-08 Mike Frysinger <vapier@gentoo.org>
12297
12298 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
12299
12300 2011-01-08 Robert Millan <rmh@gnu.org>
12301
12302 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
12303
12304 2011-01-07 Michael Snyder <msnyder@vmware.com>
12305
12306 * charset.c (_initialize_charset): Fix typo in string.
12307
12308 2011-01-07 Michael Snyder <msnyder@vmware.com>
12309
12310 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
12311 for i18n.
12312 * tui/tui-layout.c (tui_set_layout_for_display_command):
12313 Split line so that operator goes to beginning of line.
12314 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
12315 assignment out of if statement.
12316
12317 2011-01-07 Michael Snyder <msnyder@vmware.com>
12318
12319 * ada-lang.c: Comment cleanup, mostly periods and spaces.
12320 * ada-lang.h: Ditto.
12321 * ada-tasks.c: Ditto.
12322 * ada-valprint.c: Ditto.
12323 * aix-threads.c: Ditto.
12324 * alpha-linux-nat.c: Ditto.
12325 * alpha-linux-tdep.c: Ditto.
12326 * alpha-mdebug-tdep.c: Ditto.
12327 * alpha-nat.c: Ditto.
12328 * alpha-osf1-tdep.c: Ditto.
12329 * alpha-tdep.c: Ditto.
12330 * alphabsd-nat.c: Ditto.
12331 * alphabsd-tdep.c: Ditto.
12332 * amd64-darwin-tdep.c: Ditto.
12333 * amd64-linux-nat.c: Ditto.
12334 * amd64-linux-tdep.c: Ditto.
12335 * amd64-sol2-tdep.c: Ditto.
12336 * amd64-tdep.c: Ditto.
12337 * amd64-fbsd-tdep.c: Ditto.
12338 * amd64-nbsd-tdep.c: Ditto.
12339 * amd64-obsd-tdep.c: Ditto.
12340 * amd64-linux-nat.c: Ditto.
12341 * amd64-linux-tdep.c: Ditto.
12342 * arm-tdep.c: Ditto.
12343 * arm-tdep.h: Ditto.
12344 * armnbsd-nat.c: Ditto.
12345 * avr-tdep.c: Ditto.
12346 * bfin-tdep.c: Ditto.
12347 * bsd-kvm.c: Ditto.
12348 * c-typeprintc: Ditto.
12349 * c-valprint.c: Ditto.
12350 * coff-pe-read.h: Ditto.
12351 * coffreead.c: Ditto.
12352 * cris-tdep.c: Ditto.
12353 * d-lang.c: Ditto.
12354 * darwin-nat-info.c: Ditto.
12355 * darwin-nat.c: Ditto.
12356 * dbug-rom.c: Ditto.
12357 * dbxread.c: Ditto.
12358 * dcache.c: Ditto.
12359 * dcache.h: Ditto.
12360 * dec-thread.c: Ditto.
12361 * defs.h: Ditto.
12362 * demangle.c: Ditto.
12363 * dicos-tdep.c: Ditto.
12364 * dictionary.c: Ditto.
12365 * dictionary.h: Ditto.
12366 * dink32-rom.c: Ditto.
12367 * disasm.c: Ditto.
12368 * doublest.c: Ditto.
12369 * dsrec.c: Ditto.
12370 * dummy-frame.c: Ditto.
12371 * dwarf2-frame.c: Ditto.
12372 * dwarf2expr.c: Ditto.
12373 * dwarf2loc.c: Ditto.
12374 * dwarf2read.c: Ditto.
12375 * elfread.c: Ditto.
12376 * environ.c: Ditto.
12377 * eval.c: Ditto.
12378 * event-top.h: Ditto.
12379 * exceptions.c: Ditto.
12380 * exceptions.h: Ditto.
12381 * exec.c: Ditto.
12382 * expprint.c: Ditto.
12383 * expression.h: Ditto.
12384 * f-exp.y: Ditto.
12385 * f-lang.c: Ditto.
12386 * f-lang.h: Ditto.
12387 * f-typeprint.c: Ditto.
12388 * f-valprint.c: Ditto.
12389 * fbsd-nat.c: Ditto.
12390 * findvar.c: Ditto.
12391 * fork-child.c: Ditto.
12392 * frame.c: Ditto.
12393 * frame.h: Ditto.
12394 * frv-linux-tdep.c: Ditto.
12395 * frv-tdep.c: Ditto.
12396 * gcore.c: Ditto.
12397 * gdb-stabs.h: Ditto.
12398 * gdb_assert.h: Ditto.
12399 * gdb_string.h: Ditto.
12400 * gdb_thread_db.h: Ditto.
12401 * gdb_wait.h: Ditto.
12402 * gdbarch.sh: Ditto.
12403 * gdbcore.h: Ditto.
12404 * gdbthread.h: Ditto.
12405 * gdbtypes.c: Ditto.
12406 * gdbtypes.h: Ditto.
12407 * gnu-nat.c: Ditto.
12408 * gnu-nat.h: Ditto.
12409 * gnu-v2-abi.c: Ditto.
12410 * gnu-v3-abi.c: Ditto.
12411 * go32-nat.c: Ditto.
12412 * gdbarch.c: Regenerate.
12413 * gdbarch.h: Regenerate.
12414
12415 2011-01-07 Michael Snyder <msnyder@vmware.com>
12416
12417 * ax-gdb.c: Adjust some long output strings.
12418 * breakpoint.c: Ditto.
12419 * charset.c: Ditto.
12420 * cp-abi.c: Ditto.
12421 * infcall.c: Ditto.
12422 * infrun.c: Ditto.
12423 * linux-nat.c: Ditto.
12424 * solib-pa64.c: Ditto.
12425 * solib-som.c: Ditto.
12426
12427 2011-01-06 Tom Tromey <tromey@redhat.com>
12428
12429 PR python/12367:
12430 * NEWS: Add item.
12431 * python/python.c (GdbMethods): Add "newest_frame" method.
12432 * python/python-internal.h (gdbpy_newest_frame): Declare.
12433 * python/py-frame.c (gdbpy_newest_frame): New function.
12434
12435 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
12436
12437 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12438 * jit.c (jit_debug): New variable.
12439 (show_jit_debug): New function.
12440 (struct target_buffer): Use ULONGEST.
12441 (bfd_open_from_target_memory): Likewise.
12442 (jit_register_code, jit_inferior_init): Add debug output.
12443 (_initialize_jit): Register "debug jit" command.
12444
12445 2011-01-06 Tom Tromey <tromey@redhat.com>
12446
12447 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12448 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12449 and ARCH_FRAME.
12450
12451 2011-01-06 Tom Tromey <tromey@redhat.com>
12452
12453 * python/py-frame.c (frapy_block): Use get_frame_block.
12454
12455 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12456
12457 Do not stop on SIGPRIO signals by default
12458 * infrun.c (_initialize_infrun): Unset signal_stop and
12459 signal_print for TARGET_SIGNAL_PRIO.
12460
12461 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12462
12463 * ada-tasks.c: Fix style violation in comment.
12464
12465 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12466
12467 * linespec.c (decode_compound, find_method): Remove trailing \n
12468 at end of error string.
12469 * solib-irix.c (irix_current_sos): Likewise.
12470 * varobj.c (uninstall_variable): Likewise.
12471
12472 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12473
12474 * copyright.py: New script.
12475 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12476 Launch emacs without exec'ing. Call copyright.py afterwards.
12477
12478 2011-01-05 Michael Snyder <msnyder@vmware.com>
12479
12480 * addrmap.c: Shorten lines of >= 80 columns.
12481 * arch-utils.c: Ditto.
12482 * arch-utils.h: Ditto.
12483 * ax-gdb.c: Ditto.
12484 * ax-general.c: Ditto.
12485 * bcache.c: Ditto.
12486 * blockframe.c: Ditto.
12487 * breakpoint.c: Ditto.
12488 * buildsym.c: Ditto.
12489 * c-lang.c: Ditto.
12490 * c-typeprint.c: Ditto.
12491 * charset.c: Ditto.
12492 * coffread.c: Ditto.
12493 * command.h: Ditto.
12494 * corelow.c: Ditto.
12495 * cp-abi.c: Ditto.
12496 * cp-namespace.c: Ditto.
12497 * cp-support.c: Ditto.
12498 * dbug-rom.c: Ditto.
12499 * dbxread.c: Ditto.
12500 * defs.h: Ditto.
12501 * dfp.c: Ditto.
12502 * dfp.h: Ditto.
12503 * dictionary.c: Ditto.
12504 * disasm.c: Ditto.
12505 * doublest.c: Ditto.
12506 * dwarf2-frame.c: Ditto.
12507 * dwarf2expr.c: Ditto.
12508 * dwarf2loc.c: Ditto.
12509 * dwarf2read.c: Ditto.
12510 * elfread.c: Ditto.
12511 * eval.c: Ditto.
12512 * event-loop.c: Ditto.
12513 * event-loop.h: Ditto.
12514 * exceptions.h: Ditto.
12515 * exec.c: Ditto.
12516 * expprint.c: Ditto.
12517 * expression.h: Ditto.
12518 * f-lang.c: Ditto.
12519 * f-valprint.c: Ditto.
12520 * findcmd.c: Ditto.
12521 * frame-base.c: Ditto.
12522 * frame-unwind.c: Ditto.
12523 * frame-unwind.h: Ditto.
12524 * frame.c: Ditto.
12525 * frame.h: Ditto.
12526 * gcore.c: Ditto.
12527 * gdb-stabs.h: Ditto.
12528 * gdb_assert.h: Ditto.
12529 * gdb_dirent.h: Ditto.
12530 * gdb_obstack.h: Ditto.
12531 * gdbcore.h: Ditto.
12532 * gdbtypes.c: Ditto.
12533 * gdbtypes.h: Ditto.
12534 * inf-ttrace.c: Ditto.
12535 * infcall.c: Ditto.
12536 * infcmd.c: Ditto.
12537 * inflow.c: Ditto.
12538 * infrun.c: Ditto.
12539 * inline-frame.h: Ditto.
12540 * language.c: Ditto.
12541 * language.h: Ditto.
12542 * libunwind-frame.c: Ditto.
12543 * libunwind-frame.h: Ditto.
12544 * linespec.c: Ditto.
12545 * linux-nat.c: Ditto.
12546 * linux-nat.h: Ditto.
12547 * linux-thread-db.c: Ditto.
12548 * machoread.c: Ditto.
12549 * macroexp.c: Ditto.
12550 * macrotab.c: Ditto.
12551 * main.c: Ditto.
12552 * maint.c: Ditto.
12553 * mdebugread.c: Ditto.
12554 * memattr.c: Ditto.
12555 * minsyms.c: Ditto.
12556 * monitor.c: Ditto.
12557 * monitor.h: Ditto.
12558 * objfiles.c: Ditto.
12559 * objfiles.h: Ditto.
12560 * osabi.c: Ditto.
12561 * p-typeprint.c: Ditto.
12562 * p-valprint.c: Ditto.
12563 * parse.c: Ditto.
12564 * printcmd.c: Ditto.
12565 * proc-events.c: Ditto.
12566 * procfs.c: Ditto.
12567 * progspace.c: Ditto.
12568 * progspace.h: Ditto.
12569 * psympriv.h: Ditto.
12570 * psymtab.c: Ditto.
12571 * record.c: Ditto.
12572 * regcache.c: Ditto.
12573 * regcache.h: Ditto.
12574 * remote-fileio.c: Ditto.
12575 * remote.c: Ditto.
12576 * ser-mingw.c: Ditto.
12577 * ser-tcp.c: Ditto.
12578 * ser-unix.c: Ditto.
12579 * serial.c: Ditto.
12580 * serial.h: Ditto.
12581 * solib-frv.c: Ditto.
12582 * solib-irix.c: Ditto.
12583 * solib-osf.c: Ditto.
12584 * solib-pa64.c: Ditto.
12585 * solib-som.c: Ditto.
12586 * solib-sunos.c: Ditto.
12587 * solib-svr4.c: Ditto.
12588 * solib-target.c: Ditto.
12589 * solib.c: Ditto.
12590 * somread.c: Ditto.
12591 * source.c: Ditto.
12592 * stabsread.c: Ditto.
12593 * stabsread.c: Ditto.
12594 * stack.c: Ditto.
12595 * stack.h: Ditto.
12596 * symfile-mem.c: Ditto.
12597 * symfile.c: Ditto.
12598 * symfile.h: Ditto.
12599 * symmisc.c: Ditto.
12600 * symtab.c: Ditto.
12601 * symtab.h: Ditto.
12602 * target-descriptions.c: Ditto.
12603 * target-memory.c: Ditto.
12604 * target.c: Ditto.
12605 * target.h: Ditto.
12606 * terminal.h: Ditto.
12607 * thread.c: Ditto.
12608 * top.c: Ditto.
12609 * tracepoint.c: Ditto.
12610 * tracepoint.h: Ditto.
12611 * ui-file.c: Ditto.
12612 * ui-file.h: Ditto.
12613 * ui-out.h: Ditto.
12614 * user-regs.c: Ditto.
12615 * user-regs.h: Ditto.
12616 * utils.c: Ditto.
12617 * valarith.c: Ditto.
12618 * valops.c: Ditto.
12619 * valprint.c: Ditto.
12620 * valprint.h: Ditto.
12621 * value.c: Ditto.
12622 * varobj.c: Ditto.
12623 * varobj.h: Ditto.
12624 * vec.h: Ditto.
12625 * xcoffread.c: Ditto.
12626 * xcoffsolib.c: Ditto.
12627 * xcoffsolib.h: Ditto.
12628 * xml-syscall.c: Ditto.
12629 * xml-tdesc.c: Ditto.
12630
12631 2011-01-05 Michael Snyder <msnyder@vmware.com>
12632
12633 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12634 * cli/cli-decode.c: Ditto.
12635 * cli/cli-dump.c: Ditto.
12636 * cli/cli-logging.c: Ditto.
12637 * cli/cli-script.c: Ditto.
12638 * cli/cli-setshow.c: Ditto.
12639 * common/signals.c: Ditto.
12640 * mi/mi-cmd-break.c: Ditto.
12641 * mi/mi-cmd-disas.c: Ditto.
12642 * mi/mi-cmd-stack.c: Ditto.
12643 * mi/mi-cmd-var.c: Ditto.
12644 * mi/mi-cmds.c: Ditto.
12645 * mi/mi-common.h: Ditto.
12646 * mi/mi-console.c: Ditto.
12647 * mi/mi-interp.c: Ditto.
12648 * mi/mi-main.c: Ditto.
12649 * osf-share/cma_attr.c: Ditto.
12650 * osf-share/cma_deb_core.h: Ditto.
12651 * osf-share/cma_debug_client.h: Ditto.
12652 * osf-share/cma_handle.h: Ditto.
12653 * osf-share/cma_mutex.h: Ditto.
12654 * osf-share/cma_stack_int.h: Ditto.
12655 * osf-share/cma_tcb_defs.h: Ditto.
12656 * python/py-auto-load.c: Ditto.
12657 * python/py-breakpoint.c: Ditto.
12658 * python/py-cmd.c: Ditto.
12659 * python/py-frame.c: Ditto.
12660 * python/py-objfile.c: Ditto.
12661 * python/py-param.c: Ditto.
12662 * python/py-progspace.c: Ditto.
12663 * python/py-symbol.c: Ditto.
12664 * python/py-value.c: Ditto.
12665 * python/python-internal.h: Ditto.
12666 * python/python.c: Ditto.
12667 * tui/tui-data.c: Ditto.
12668 * tui/tui-disasm.c: Ditto.
12669 * tui/tui-hooks.c: Ditto.
12670 * tui/tui-io.c: Ditto.
12671 * tui/tui-layout.c: Ditto.
12672 * tui/tui-regs.c: Ditto.
12673 * tui/tui-source.c: Ditto.
12674 * tui/tui-stack.c: Ditto.
12675 * tui/tui-win.c: Ditto.
12676 * tui/tui-windata.c: Ditto.
12677 * tui/tui-winsource.c: Ditto.
12678
12679 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12680
12681 * configure.ac, gdb.1: Copyright year update.
12682
12683 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12684
12685 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12686 this_pc_in_block, morestack_msym and morestack_name. Check for
12687 "__morestack" minimal symbol there.
12688
12689 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12690
12691 * symfile.c (find_sym_fns): Add call to dont_repeat.
12692
12693 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12694
12695 Copyright year update in most files (performed by copyright.sh).
12696
12697 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12698
12699 * top.c (print_gdb_version): Update copyright year in version output.
12700
12701 For older changes see ChangeLog-2010.
12702 \f
12703 Local Variables:
12704 mode: change-log
12705 left-margin: 8
12706 fill-column: 74
12707 version-control: never
12708 coding: utf-8
12709 End:
This page took 0.35244 seconds and 5 git commands to generate.