New function ada-lang.c:should_use_wild_match...
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2011-12-27 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-lang.c (should_use_wild_match): New function.
4 (ada_lookup_simple_minsym): Use should_use_wild_match.
5 Minor simplification. Add comment.
6 (ada_lookup_symbol_list): Use should_use_wild_match.
7 Minor simplification.
8
9 2011-12-27 Joel Brobecker <brobecker@adacore.com>
10
11 * py-finishbreakpoint.c (bpfinishpy_init): Replace call to
12 sprintf by call to xsnprintf.
13
14 2011-12-27 Joel Brobecker <brobecker@adacore.com>
15
16 * linespec.c (struct collect_minsyms) [list_mode]: New field.
17 (add_minsym): Ignore data symbols if not in list mode.
18 (search_minsyms_for_name): Set local.list_mode.
19
20 2011-12-27 Joel Brobecker <brobecker@adacore.com>
21
22 * utils.c (gdb_realpath): Add better support for Windows hosts.
23
24 2011-12-23 Kevin Pouget <kevin.pouget@st.com>
25
26 Introduce gdb.FinishBreakpoint in Python.
27 * NEWS: Add entry for FinishBreakpoint.
28 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-finishbreakpoint.o.
29 (SUBDIR_PYTHON_SRCS): Add python/py-finishbreakpoint.c.
30 Add build rule for this file.
31 * infcmd.c (print_return_value): Split to create get_return_value.
32 (get_return_value): New function based on print_return_value. Handle
33 case where stop_registers are not set.
34 * inferior.h (get_return_value): New prototype.
35 * python/py-breakpoint.c (bppy_pending_object): Make non-static.
36 (gdbpy_breakpoint_created): Set is_py_finish_bp is necessary.
37 (struct breakpoint_object): Move to python-internal.h
38 (BPPY_REQUIRE_VALID): Likewise.
39 (BPPY_SET_REQUIRE_VALID): Likewise.
40 (gdbpy_breakpoint_created): Initialize is_finish_bp.
41 (gdbpy_should_stop): Add pre/post hooks before/after calling stop
42 method.
43 * python/python-internal.h (breakpoint_object_type): Add as extern.
44 (bppy_pending_object): Likewise.
45 (typedef struct breakpoint_object) Removed.
46 (struct breakpoint_object): Moved from py-breakpoint.c.
47 Add field is_finish_bp.
48 (BPPY_REQUIRE_VALID): Moved from py-breakpoint.c.
49 (BPPY_SET_REQUIRE_VALID): Likewise.
50 (frame_object_to_frame_info): New prototype.
51 (gdbpy_initialize_finishbreakpoints): New prototype.
52 (bpfinishpy_is_finish_bp): Likewise.
53 (bpfinishpy_pre_stop_hook): Likewise.
54 (bpfinishpy_post_stop_hook): Likewise.
55 * python/py-finishbreakpoint.c: New file.
56 * python/py-frame.c(frame_object_to_frame_info): Make non-static and
57 accept PyObject instead of frame_object.
58 (frapy_is_valid): Don't cast to frame_object.
59 (frapy_name): Likewise.
60 (frapy_type): Likewise.
61 (frapy_unwind_stop_reason): Likewise.
62 (frapy_pc): Likewise.
63 (frapy_block): Likewise.
64 (frapy_function): Likewise.
65 (frapy_older): Likewise.
66 (frapy_newer): Likewise.
67 (frapy_find_sal): Likewise.
68 (frapy_read_var): Likewise.
69 (frapy_select): Likewise.
70 * python/python.c (gdbpy_is_stopped_at_finish_bp): New noop function.
71 (_initialize_python): Add gdbpy_initialize_finishbreakpoints.
72 * python/python.h: Include breakpoint.h
73 (gdbpy_is_stopped_at_finish_bp): New prototype.
74
75 2011-12-22 Tom Tromey <tromey@redhat.com>
76
77 PR python/12533:
78 * value.h (release_value_or_incref): Declare.
79 * value.c (struct value) <released>: New field.
80 (free_all_values, release_value, value_release_to_mark): Update
81 'released'.
82 (release_value_or_incref): New function.
83 * python/py-value.c (valpy_new): Use release_value_or_incref.
84 (value_to_value_object): Likewise.
85 * varobj.c (install_new_value): Move value_incref earlier.
86
87 2011-12-22 Tom Tromey <tromey@redhat.com>
88
89 * value.c (struct value) <modifiable, lazy, optimized_out,
90 initialized, stack>: Now bitfields. Move to top.
91 <reference_count>: Move earlier.
92
93 2011-12-21 Tom Tromey <tromey@redhat.com>
94
95 * minsyms.h: Rearrange. Document header and all functions.
96 * minsyms.c: Move some comments to minsyms.h.
97
98 2011-12-21 Tom Tromey <tromey@redhat.com>
99
100 * symtab.h: Include minsyms.h.
101 (prim_record_minimal_symbol, prim_record_minimal_symbol_full)
102 (prim_record_minimal_symbol_and_info, msymbol_hash_iw)
103 (msymbol_hash, SYMBOL_HASH_NEXT, msymbol_objfile)
104 (lookup_minimal_symbol, lookup_minimal_symbol_text)
105 (lookup_minimal_symbol_solib_trampoline)
106 (lookup_minimal_symbol_by_pc_name, lookup_minimal_symbol_by_pc)
107 (iterate_over_minimal_symbols, lookup_minimal_symbol_and_objfile)
108 (lookup_minimal_symbol_by_pc_section)
109 (lookup_solib_trampoline_symbol_by_pc)
110 (init_minimal_symbol_collection)
111 (make_cleanup_discard_minimal_symbols, install_minimal_symbols)
112 (msymbols_sort): Move to minsyms.h.
113 * objfiles.c (terminate_minimal_symbol_table): Move to minsyms.c.
114 * minsyms.c (terminate_minimal_symbol_table): Move from
115 objfiles.c.
116 * minsyms.h: New file.
117
118 2011-12-21 Tom Tromey <tromey@redhat.com>
119
120 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): Use
121 ALL_OBJFILE_MSYMBOLS.
122 (hppa_hpux_find_dummy_bpaddr): Likewise.
123 * jit.c (jit_object_close_impl): Use
124 terminate_minimal_symbol_table.
125
126 2011-12-21 Tom Tromey <tromey@redhat.com>
127
128 * elfread.c (elf_symtab_read): Put the filename in the filename
129 bcache.
130
131 2011-12-21 Tom Tromey <tromey@redhat.com>
132
133 * symtab.h (struct minimal_symbol) <filename>: Now const.
134
135 2011-12-21 Ulrich Weigand <ulrich.weigand@linaro.org>
136
137 PR tdep/12797
138 * arm-tdep.c (arm_return_value): Handle complex types.
139
140 2011-12-21 Andreas Schwab <schwab@linux-m68k.org>
141
142 * ppc-linux-nat.c (create_watchpoint_request): Only use ranged
143 watchpoints when supported.
144
145 2011-12-21 Jan Kratochvil <jan.kratochvil@redhat.com>
146
147 * symfile.c (objfilep): New typedef and new DEF_VEC_P.
148 (reread_symbols): Remove variable reread_one, new variables
149 new_objfiles, all_cleanups and ix. Use new_objfiles instead of
150 reread_one. Push changed objfiles to new_objfiles, call
151 observer_notify_new_objfile for them later.
152
153 2011-12-21 Joel Brobecker <brobecker@adacore.com>
154
155 * psymtab.c (expand_symtabs_matching_via_partial): Match
156 the partial symbols using their SYMBOL_SEARCH_NAME.
157 * symfile.h (struct quick_symbol_functions): Udate the
158 documentation of expand_symtabs_matching.
159 * dwarf2read.c (write_psymbols): Use SYMBOL_SEARCH_NAME instead
160 of SYMBOL_NATURAL_NAME in index entry.
161
162 2011-12-21 Joel Brobecker <brobecker@adacore.com>
163
164 * linespec.c (locate_first_half): Add handling of Ada operators
165 when the current language is Ada.
166
167 2011-12-21 Joel Brobecker <brobecker@adacore.com>
168
169 * objfiles.c (insert_section_p): Do not detect overlay sections
170 if overlay debugging is off.
171
172 2011-12-21 Joel Brobecker <brobecker@adacore.com>
173
174 * ada-lang.c (is_name_suffix): Add handling of "TKB" suffixes.
175 Update function documentation.
176 * dictionary.c (dict_hash): Ignore "TKB" suffixes in hash
177 computation.
178
179 2011-12-20 Pedro Alves <alves.ped@gmail.com>
180 Jan Kratochvil <jan.kratochvil@redhat.com>
181
182 * linux-nat.c (add_lwp): Don't call linux_nat_new_thread on the
183 first LWP.
184 * amd64-linux-nat.c (update_debug_registers_callback): Instantiate
185 `lwp->arch_private' if NULL.
186 (amd64_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
187 is NULL.
188 * i386-linux-nat.c (update_debug_registers_callback): Instantiate
189 `lwp->arch_private' if NULL.
190 (i386_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
191 is NULL.
192
193 2011-12-19 Doug Evans <dje@google.com>
194
195 * python/py-auto-load.c (info_auto_load_scripts): Pass address of
196 scripts vector to collect_matching_scripts.
197 (collect_matching_scripts): Update.
198
199 2011-12-19 Jan Kratochvil <jan.kratochvil@redhat.com>
200
201 * symfile.c (reread_symbols): Move free_objfile_separate_debug,
202 preserve_values, sym_finish and clear_objfile_data calls before BFD
203 close. Move free_objfile_separate_debug as the very first call. New
204 comment on the ordering.
205
206 2011-12-19 Ulrich Weigand <uweigand@de.ibm.com>
207
208 * s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
209 in return PSWA.
210
211 2011-12-19 Tom Tromey <tromey@redhat.com>
212
213 * symtab.h (add_minsym_to_hash_table): Don't declare.
214 * minsyms.c (add_minsym_to_hash_table): Now static.
215
216 2011-12-19 Joel Brobecker <brobecker@adacore.com>
217
218 * elfread.c (elf_symtab_read): Ignore undefined symbols with
219 nonzero addresses if they do not correspond to a .plt section
220 when one is available in the objfile.
221
222 2011-12-17 Andreas Schwab <schwab@linux-m68k.org>
223
224 * cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
225 obstack_empty_p.
226
227 2011-12-17 Mark Kettenis <kettenis@gnu.org>
228
229 * amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
230 regset_from_core_section.
231 (amd64obsd_core_init_abi): New function that sets
232 regset_from_core_section.
233 (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
234 traditional core dumps.
235
236 2011-12-17 Mark Kettenis <kettenis@gnu.org>
237
238 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
239 trampoline to be introduced in OpenBSD 5.0.
240
241 2011-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
242
243 Fix build regression from the PR threads/10729 fix.
244 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP,
245 not LP->PTID.
246
247 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
248
249 * mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
250 `optarg' to `oind' and `oarg', respectively(-Wshadow).
251 (mi_cmd_data_read_memory): Ditto.
252 (mi_cmd_data_read_memory_bytes): Ditto.
253 (mi_cmd_data_write_memory): Ditto.
254
255 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
256
257 * mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
258 `oind' and `oarg', respectively(-Wshadow).
259 (mi_valid_noargs): Ditto.
260
261 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
262
263 * mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
264 `oind' and `oarg', respectively(-Wshadow).
265
266 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
267
268 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
269 `optarg' to `oind' and `oarg', respectively(-Wshadow).
270 (mi_cmd_target_file_put): Ditto.
271 (mi_cmd_target_file_delete): Ditto.
272
273 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
274
275 * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
276 `optarg' to `oind' and `oarg', respectively(-Wshadow).
277 (mi_cmd_env_dir): Ditto.
278
279 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
280
281 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
282 `optarg' to `oind' and `oarg', respectively(-Wshadow).
283
284 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
285
286 * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
287 `optparg' to `oind' and `oarg', respectively(-Wshadow).
288 (mi_cmd_break_watch): Ditto.
289
290 2011-12-16 Tom Tromey <tromey@redhat.com>
291
292 * linespec.c (collect_symbols): Call maybe_add_address after
293 calling symbol_to_sal.
294 (minsym_found): Call maybe_add_address here.
295 (search_minsyms_for_name): Don't call maybe_add_address.
296
297 2011-12-16 Tom Tromey <tromey@redhat.com>
298
299 * linespec.c (struct collect_info) <objfile>: Remove field.
300 (decode_objc): Update.
301 (find_method): Update.
302 (decode_variable): Update.
303 (struct minsym_and_objfile): New.
304 (struct collect_minsyms): New.
305 (classify_mtype): New function.
306 (compare_msyms): Likewise.
307 (add_minsym): Likewise.
308 (check_minsym): Remove.
309 (search_minsyms_for_name): Sort minsyms and apply only those with
310 top priority.
311
312 2011-12-16 Tom Tromey <tromey@redhat.com>
313
314 * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
315
316 2011-12-16 Pedro Alves <pedro@codesourcery.com>
317
318 * inf-loop.c: Include top.h.
319 (inferior_event_handler): Call check_frame_language.
320 * top.c (check_frame_language_change): New, factored out from ...
321 (execute_command): ... this. Use check_frame_language_change.
322 * top.h (check_frame_language_change): Declare.
323
324 2011-12-16 asmwarrior <asmwarrior@gmail.com> (obvious fix)
325
326 * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
327 prototypes.
328
329 2011-12-16 Doug Evans <dje@google.com>
330
331 * NEWS: Add entry for stdio gdbserver.
332
333 2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
334
335 * python/python.c: Define python_excp_enums.
336 (eval_python_from_control_command): Do not call gdbpy_print_stack.
337 (python_command): Ditto.
338 (gdbpy_print_stack): Rewrite to use new enum constants.
339 (maint_set_python): Remove function.
340 (maint_show_python): Ditto.
341 (_initialize_python): Do not add "maint" commands. Add "set/show
342 python print-stack commands".
343 * NEWS: Update to reflect removal for "maint set/show
344 print-stack"
345
346 2011-12-15 Doug Evans <dje@google.com>
347
348 * exceptions.c (catcher_list_size): New function.
349 (last_message): Delete.
350 (exception_messages, exception_messages_size): New static globals.
351 (throw_it): Use exception_messages array to handle nested calls.
352
353 2011-12-15 Tom Tromey <tromey@redhat.com>
354
355 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
356 do_cleanups call.
357
358 2011-12-14 Doug Evans <dje@google.com>
359
360 * defs.h (wait_to_die_with_timeout): Declare.
361 * utils.c: #include "gdb_wait.h".
362 (sigalrm_handler, wait_to_die_with_timeout): New functions.
363 * ser-pipe.c: Don't #include "gdb_wait.h".
364 (pipe_close): Give child a chance to die on its own after closing
365 its stdin before SIGTERM'ing it.
366
367 2011-12-14 Joel Brobecker <brobecker@adacore.com>
368 Tom Tromey <tromey@redhat.com>
369
370 * ada-lang.c (add_nonlocal_symbols): Initialize data to
371 all zeros. Remove setting of data.arg_sym to NULL.
372
373 2011-12-14 Pedro Alves <pedro@codesourcery.com>
374
375 PR threads/10729
376
377 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
378 pointer.
379 (linux_nat_prepare_to_resume): New global.
380 (lwp_free): New.
381 (purge_lwp_list): Use it.
382 (add_lwp): Call linux_nat_new_thread even on the first LWP.
383 Adjust to interface change.
384 (delete_lwp): Call lwp_free instead of xfree.
385 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
386 (linux_handle_syscall_trap, linux_handle_extended_wait)
387 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
388 linux_nat_prepare_to_resume before resuming.
389 (linux_stop_lwp): New.
390 (linux_nat_set_new_thread): Adjust.
391 (linux_nat_set_prepare_to_resume): New.
392 * linux-nat.h (struct arch_lwp_info): Forward declare.
393 (struct lwp_info) <arch_private>: New field.
394 (linux_stop_lwp): Declare.
395 (linux_nat_set_new_thread): Adjust.
396 (linux_nat_set_prepare_to_resume): New.
397
398 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
399 (struct i386_debug_reg_state): Move to i386-nat.h.
400 (dr_mirror): Comment.
401 (i386_debug_reg_state): New.
402 (i386_update_inferior_debug_regs): Simplify.
403 (i386_stopped_data_address): Use the debug register state from the
404 inferior, not from the local cache.
405 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
406 unset_status fields. New get_addr and get_control fields.
407 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
408 (DR_NADDR, DR_STATUS): New.
409 (struct i386_debug_reg_state): Moved from i386-nat.c.
410
411 * amd64-linux-nat.c (struct arch_lwp_info): New.
412 (amd64_linux_dr): Delete global.
413 (amd64_linux_dr_get_addr): New.
414 (amd64_linux_dr_get_control): New.
415 (amd64_linux_dr_unset_status): Delete.
416 (amd64_linux_dr_set_addr): Reimplement.
417 (amd64_linux_dr_reset_addr): Delete.
418 (update_debug_registers_callback): New.
419 (amd64_linux_dr_set_control): Reimplement.
420 (amd64_linux_dr_set_addr): Reimplement.
421 (amd64_linux_prepare_to_resume): New.
422 (amd64_linux_new_thread): Change parameter to an lwp pointer.
423 Reimplement.
424 (_initialize_amd64_linux_nat): No longer install
425 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
426 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
427 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
428 amd64_linux_prepare_to_resume.
429 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
430 (DR_CONTROL): Delete.
431 (struct arch_lwp_info): New.
432 (i386_linux_dr): Delete global.
433 (i386_linux_dr_set_control): Reimplement.
434 (i386_linux_dr_get_addr): New.
435 (i386_linux_dr_set_addr): Reimplement.
436 (i386_linux_dr_get_control): New.
437 (update_debug_registers_callback): New.
438 (i386_linux_dr_unset_status): Delete.
439 (i386_linux_dr_set_addr): Reimplement.
440 (i386_linux_prepare_to_resume): New.
441 (i386_linux_new_thread): Change parameter to an lwp pointer.
442 Reimplement.
443 (_initialize_i386_linux_nat): No longer install
444 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
445 i386_linux_dr_get_control as i386_dr_low.get_control. Install
446 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
447 i386_linux_prepare_to_resume.
448
449 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
450 lwp pointer. Adjust.
451 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
452 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
453 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
454 * s390-nat.c (s390_fix_watch_points): Likewise.
455
456 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
457 (DR_CONTROL): Delete.
458 (i386_darwin_dr_reset_addr): Delete.
459 (i386_darwin_dr_get_addr): New.
460 (i386_darwin_dr_get_control): New.
461 * go32-nat.c
462 (go32_get_dr7, go32_get_dr): New.
463 (init_go32_ops): No longer install i386_dr_low.reset_addr.
464 Install go32_get_dr7 as i386_dr_low.get_control. Install
465 go32_get_dr as i386_dr_low.get_addr.
466 * i386bsd-nat.c (i386bsd_dr_get): New.
467 (i386bsd_dr_reset_addr): Delete.
468 (i386bsd_dr_get_addr): New.
469 (i386bsd_dr_get_status): Use i386bsd_dr_get.
470 (i386bsd_dr_get_control): New.
471 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
472 (i386bsd_dr_get_addr): New.
473 (i386bsd_dr_get_control): New.
474 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
475 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
476 i386bsd_dr_get_control as i386_dr_low.get_control. Install
477 i386bsd_dr_get_addr as i386_dr_low.get_addr.
478 * windows-nat.c (init_windows_ops): No longer install
479 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
480 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
481 as i386_dr_low.get_addr.
482 (cygwin_get_dr): New.
483 (cygwin_get_dr7): New.
484
485 2011-12-14 Pedro Alves <pedro@codesourcery.com>
486
487 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
488 target_write_raw_memory.
489 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
490 target_write_raw_memory.
491 * microblaze-linux-tdep.c
492 (microblaze_linux_memory_remove_breakpoint): Use
493 target_write_raw_memory.
494 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
495 target_write_raw_memory.
496
497 2011-12-14 Joel Brobecker <brobecker@adacore.com>
498
499 * linespec.c (decode_line_internal): Make static.
500
501 2011-12-14 Yao Qi <yao@codesourcery.com>
502
503 * breakpoint.c (create_breakpoint): Set canonical.addr_string
504 for static tracepoint.
505
506 2011-12-13 Joel Brobecker <brobecker@adacore.com>
507
508 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
509 * version.in: Bump version to 7.4.50.20111213-cvs.
510
511 2011-12-13 Joel Brobecker <brobecker@adacore.com>
512
513 * NEWS: Create a new section for the next release branch.
514 Rename the section of the current branch, now that it has
515 been cut.
516
517 2011-12-11 Joel Brobecker <brobecker@adacore.com>
518
519 * ada-lang.c (ada_exception_support_info_sniffer): Improve
520 error message.
521
522 2011-12-11 Joel Brobecker <brobecker@adacore.com>
523
524 * ada-lang.c (struct ada_inferior_data) [exception_info]:
525 New field.
526 (exception_info): Delete.
527 (ada_exception_support_info_sniffer): Get exception_support_info
528 data from our per-inferior data. Adjust code accordingly.
529 (ada_unhandled_exception_name_addr_from_raise): Likewise.
530 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
531 (ada_executable_changed_observer): Delete.
532 (_initialize_ada_language): Remove call to
533 observer_attach_executable_changed.
534
535 2011-12-11 Joel Brobecker <brobecker@adacore.com>
536
537 * ada-lang.c (ada_has_this_exception_support): Raise an error
538 if we could find the Ada exception hook in the Ada runtime,
539 but no debugging info for that hook.
540
541 2011-12-11 Joel Brobecker <brobecker@adacore.com>
542
543 * ada-lang.c (ada_has_this_exception_support): New function,
544 extracted out of ada_exception_sal and ada_exception_sal.
545 (ada_exception_support_info_sniffer): Simplify by using
546 ada_has_this_exception_support.
547 (ada_exception_sal): Replace unnecessary checks by assertions.
548 Minor simplifications.
549
550 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
551
552 * breakpoint.c (update_global_location_list): Remove nested
553 definition of `b'(-Wshadow).
554
555 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
556
557 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
558 `error_flag'(-Wshadow).
559
560 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
561
562 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
563 `abfd'(-Wshadow).
564
565 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
566
567 * annotate.c (annotate_array_section_begin): Rename `index' to
568 `idx'(-Wshadow).
569
570 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
571
572 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
573 `idx'(-Wshadow).
574
575 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
576
577 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
578 `syscall' to `syscall_number'(-Wshadow).
579
580 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
581
582 * ada-lang.c (remove_extra_symbols): Rename `remove' to
583 `remove_p'(-Wshadow).
584
585 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
586
587 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
588 `ren_sym'(-Wshadow).
589
590 2011-12-10 Doug Evans <dje@google.com>
591
592 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
593 debug_types_section. All uses updated.
594 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
595 to is_debug_types_section.
596
597 * python/py-auto-load.c (source_section_scripts): Call xfree
598 instead of free.
599
600 2011-12-10 Hui Zhu <teawater@gmail.com>
601 Yao Qi <yao@codesourcery.com>
602
603 * tracepoint.c (start_tracing): Clear `inserted' flag.
604
605 2011-12-10 Hui Zhu <teawater@gmail.com>
606
607 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
608
609 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
610
611 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
612 `bpoint'(-Wshadow).
613
614 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
615
616 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
617 `marker' variables to `sal2' and `tpmarker' respectively
618 (-Wshadow).
619
620 2011-12-09 Andrew Pinski <apinski@cavium.com>
621
622 * linespec.c (hash_address_entry): Use iterative_hash_object on each
623 field rather than the struct itself.
624
625 2011-12-09 Tom Tromey <tromey@redhat.com>
626
627 * breakpoint.c (compare_breakpoints): New function.
628 (clear_command): Remove duplicate breakpoints. Properly clean
629 up.
630
631 2011-12-08 Maciej W. Rozycki <macro@mips.com>
632 Maciej W. Rozycki <macro@codesourcery.com>
633
634 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
635 address chunks retrieved from decoded lui/addiu pairs.
636
637 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
638
639 * mips-tdep.c (extended_offset): Correct calculation.
640 (unpack_mips16): Correct bitfield positions used for extraction
641 of the immediate argument; fix sign-extension of same.
642 (extended_mips16_next_pc): Correct B instruction's offset
643 calculation. Correct register decoding of the BEQZ and BNEZ
644 as well as jump-register instructions. Handle compact jumps.
645
646 2011-12-08 Tom Tromey <tromey@redhat.com>
647
648 * objfiles.h (struct objfile): Remove obsolete comment.
649 * objfiles.c (build_objfile_section_table): Remove obsolete
650 comment.
651
652 2011-12-07 Stan Shebs <stan@codesourcery.com>
653
654 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
655 maintainer of the tic6x target.
656
657 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
658
659 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
660 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
661 (arm_deal_with_atomic_sequence_raw): Likewise.
662 (arm_deal_with_atomic_sequence): Likewise.
663 (arm_software_single_step): Call it.
664 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
665
666 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
667
668 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
669 where appropriate.
670 * s390-tdep.h: Likewise.
671
672 2011-12-07 Tristan Gingold <gingold@adacore.com>
673
674 * machoread.c (macho_symtab_read): Do not consider N_OPT as
675 a debugging stab. Improve complaint message.
676
677 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
678
679 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
680 load adjustment if still within the prologue.
681
682 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
683
684 * mips-tdep.c (mips32_next_pc): Fix floating point condition
685 code mask.
686
687 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
688
689 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
690 of BLTZ* and BGEZ* instructions.
691
692 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
693
694 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
695 performed to determine whether an address refers to standard
696 MIPS or MIPS16 code.
697 (mips16_next_pc): Use mips_pc_is_mips16 instead of
698 is_mips16_addr.
699
700 2011-12-06 Pedro Alves <pedro@codesourcery.com>
701
702 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
703 (breakpoint_xfer_memory): ... this. Change prototype. Handle
704 memory writes too.
705 * breakpoint.h (breakpoint_restore_shadows): Delete.
706 (breakpoint_xfer_memory): Declare.
707 * mem-break.c (default_memory_insert_breakpoint)
708 (default_memory_remove_breakpoint): Use target_write_raw_memory.
709 (memory_xfer_partial): Rename to ...
710 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
711 here.
712 (memory_xfer_partial): New.
713 (target_write_raw_memory): New.
714 * target.h (target_write_raw_memory): New.
715
716 2011-12-06 Doug Evans <dje@google.com>
717
718 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
719
720 2011-12-06 Joel Brobecker <brobecker@acacore.com>
721
722 * language.h (struct language_defn): Add new component
723 la_symbol_name_compare.
724 * symfile.h (struct quick_symbol_functions): Update the profile
725 of parameter "name_matcher" for the expand_symtabs_matching
726 method. Update the documentation accordingly.
727 * ada-lang.h (ada_name_for_lookup): Add declaration.
728 * ada-lang.c (ada_name_for_lookup): New function, extracted out
729 from ada_iterate_over_symbols.
730 (ada_iterate_over_symbols): Do not encode symbol name anymore.
731 (ada_expand_partial_symbol_name): Adjust profile.
732 (ada_language_defn): Add value for la_symbol_name_compare field.
733 * linespec.c: #include "ada-lang.h".
734 (iterate_name_matcher): Add language parameter. Replace call
735 to strcmp_iw by call to language->la_symbol_name_compare.
736 (decode_variable): Encode COPY if current language is Ada.
737 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
738 of name_matcher parameter. Adjust call to name_matcher.
739 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
740 (expand_partial_symbol_names): Update profile of parameter "fun".
741 * psymtab.h (expand_partial_symbol_names): Update profile of
742 parameter "fun".
743 * symtab.c (demangle_for_lookup): Update function documentation.
744 (search_symbols_name_matches): Add language parameter.
745 (expand_partial_symbol_name): Likewise.
746 * c-lang.c (c_language_defn, cplus_language_defn)
747 (asm_language_defn, minimal_language_defn): Add value for
748 la_symbol_name_compare field.
749 * d-lang.c (d_language_defn): Likewise.
750 * f-lang.c (f_language_defn): Ditto.
751 * jv-lang.c (java_language_defn): Ditto.
752 * m2-lang.c (m2_language_defn): Ditto.
753 * objc-lang.c (objc_language_defn): Ditto.
754 * opencl-lang.c (opencl_language_defn): Ditto.
755 * p-lang.c (pascal_language_defn): Ditto.
756 * language.c (unknown_language_defn, auto_language_defn)
757 (local_language_defn): Ditto.
758
759 2011-12-06 Tom Tromey <tromey@redhat.com>
760
761 * linespec.c (iterate_over_all_matching_symtabs): Use
762 LA_ITERATE_OVER_SYMBOLS.
763 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
764 (find_function_symbols, decode_variable): Remove Ada special
765 case.
766 * language.h (struct language_defn) <la_iterate_over_symbols>: New
767 field.
768 (LA_ITERATE_OVER_SYMBOLS): New macro.
769 * language.c (unknown_language_defn, auto_language_defn)
770 (local_language_defn): Update.
771 * c-lang.c (c_language_defn, cplus_language_defn)
772 (asm_language_defn, minimal_language_defn): Update.
773 * d-lang.c (d_language_defn): Update.
774 * f-lang.c (f_language_defn): Update.
775 * jv-lang.c (java_language_defn): Update.
776 * m2-lang.c (m2_language_defn): Update.
777 * objc-lang.c (objc_language_defn): Update.
778 * opencl-lang.c (opencl_language_defn): Update.
779 * p-lang.c (pascal_language_defn): Update.
780 * ada-lang.c (ada_iterate_over_symbols): New function.
781 (ada_language_defn): Update.
782
783 2011-12-06 Tom Tromey <tromey@redhat.com>
784 Joel Brobecker <brobecker@acacore.com>
785
786 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
787 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
788 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
789 PR shlibs/8929, PR shlibs/7393:
790 * python/py-type.c (compare_maybe_null_strings): Rename from
791 compare_strings.
792 (check_types_equal): Update.
793 * utils.c (compare_strings): New function.
794 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
795 location changes.
796 * tracepoint.c (scope_info): Update.
797 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
798 * symtab.h (iterate_over_minimal_symbols)
799 (iterate_over_some_symtabs, iterate_over_symtabs)
800 (find_pcs_for_symtab_line, iterate_over_symbols)
801 (demangle_for_lookup): Declare.
802 (expand_line_sal): Remove.
803 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
804 (lookup_symtab_callback): New functions.
805 (lookup_symtab): Rewrite.
806 (demangle_for_lookup): New function, extract from
807 lookup_symbol_in_language.
808 (lookup_symbol_in_language): Use it.
809 (iterate_over_symbols): New function.
810 (find_line_symtab): Update.
811 (find_pcs_for_symtab_line): New functions.
812 (find_line_common): Add 'start' argument.
813 (decode_line_spec): Update. Change argument to 'flags', change
814 interpretation.
815 (append_expanded_sal): Remove.
816 (append_exact_match_to_sals): Remove.
817 (expand_line_sal): Remove.
818 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
819 Remove.
820 <map_symtabs_matching_filename>: New field.
821 * stack.c (func_command): Only look in the current program space.
822 Use DECODE_LINE_FUNFIRSTLINE.
823 * source.c (line_info): Set pspace on sal. Check program space in
824 the loop. Use DECODE_LINE_LIST_MODE.
825 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
826 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
827 * python/python.c (gdbpy_decode_line): Update.
828 * psymtab.c (partial_map_expand_apply): New function.
829 (partial_map_symtabs_matching_filename): Rename from
830 lookup_partial_symbol. Update arguments.
831 (lookup_symtab_via_partial_symtab): Remove.
832 (psym_functions): Update.
833 * objc-lang.h (parse_selector, parse_method): Don't declare.
834 (find_imps): Update.
835 * objc-lang.c (parse_selector, parse_method): Now static.
836 (find_methods): Change arguments. Fill in a vector of symbol
837 names.
838 (uniquify_strings): New function.
839 (find_imps): Change arguments.
840 * minsyms.c (iterate_over_minimal_symbols): New function.
841 * linespec.h (enum decode_line_flags): New.
842 (struct linespec_sals): New.
843 (struct linespec_result) <canonical>: Remove.
844 <pre_expanded, addr_string, sals>: New fields.
845 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
846 (decode_line_full): Declare.
847 (decode_line_1): Update.
848 * linespec.c (struct address_entry, struct linespec_state, struct
849 collect_info): New types.
850 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
851 (eq_address_entry, maybe_add_address): New functions.
852 (total_number_of_methods): Remove.
853 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
854 functions.
855 (find_methods): Change arguments. Don't canonicalize input.
856 Simplify logic.
857 (add_matching_methods, add_constructors)
858 (build_canonical_line_spec): Remove.
859 (filter_results, convert_results_to_lsals): New functions.
860 (decode_line_2): Change arguments. Rewrite for new data
861 structures.
862 (decode_line_internal): Rename from decode_line_1. Change
863 arguments. Add cleanups. Update for new data structures.
864 (linespec_state_constructor, linespec_state_destructor)
865 (decode_line_full, decode_line_1): New functions.
866 (decode_indirect): Change arguments. Update.
867 (locate_first_half): Use skip_spaces.
868 (decode_objc): Change arguments. Update for new data structures.
869 Simplify logic.
870 (decode_compound): Change arguments. Add cleanups. Remove
871 fallback code, replace with error.
872 (struct decode_compound_collector): New type.
873 (collect_one_symbol): New function.
874 (lookup_prefix_sym): Change arguments. Update.
875 (compare_symbol_name, add_all_symbol_names_from_pspace)
876 (find_superclass_methods ): New functions.
877 (find_method): Rewrite.
878 (struct symtab_collector): New type.
879 (add_symtabs_to_list, collect_symtabs_from_filename): New
880 functions.
881 (symtabs_from_filename): Change API. Rename from
882 symtab_from_filename.
883 (collect_function_symbols): New function.
884 (find_function_symbols): Change API. Rename from
885 find_function_symbol. Rewrite.
886 (decode_all_digits): Change arguments. Rewrite.
887 (decode_dollar): Change arguments. Use decode_variable.
888 (decode_label): Change arguments. Rewrite.
889 (collect_symbols): New function.
890 (minsym_found): Change arguments. Rewrite.
891 (check_minsym, search_minsyms_for_name)
892 (add_matching_symbols_to_info): New function.
893 (decode_variable): Change arguments. Iterate over all symbols.
894 (symbol_found): Remove.
895 (symbol_to_sal): New function.
896 (init_linespec_result, destroy_linespec_result)
897 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
898 New functions.
899 (decode_digits_list_mode, decode_digits_ordinary): New functions.
900 * dwarf2read.c (dw2_map_expand_apply): New function.
901 (dw2_map_symtabs_matching_filename): Rename from
902 dw2_lookup_symtab. Change arguments.
903 (dwarf2_gdb_index_functions): Update.
904 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
905 * defs.h (compare_strings): Declare.
906 * cli/cli-cmds.c (compare_strings): Move to utils.c.
907 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
908 filter_sals.
909 (compare_symtabs, filter_sals): New functions.
910 * breakpoint.h (struct bp_location) <line_number, source_file>:
911 New fields.
912 (struct breakpoint) <line_number, source_file>: Remove.
913 <filter>: New field.
914 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
915 (momentary_breakpoint_from_master, add_location_to_breakpoint):
916 Update for changes to locations.
917 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
918 breakpoint.
919 (create_breakpoint_sal): Add 'filter' argument.
920 (remove_sal, expand_line_sal_maybe): Remove.
921 (create_breakpoints_sal): Remove 'sals' argument. Handle
922 pre-expanded sals and the filter.
923 (parse_breakpoint_sals): Use decode_line_full.
924 (check_fast_tracepoint_sals): Use get_sal_arch.
925 (create_breakpoint): Create a linespec_sals. Update.
926 (break_range_command): Use decode_line_full. Update.
927 (until_break_command): Update.
928 (clear_command): Update match conditions for linespec.c changes.
929 Use DECODE_LINE_LIST_MODE.
930 (say_where): Update for changes to locations.
931 (bp_location_dtor): Free 'source_file'.
932 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
933 (update_static_tracepoint): Update for changes to locations.
934 (update_breakpoint_locations): Disable ranged breakpoint if too
935 many locations match. Update.
936 (addr_string_to_sals): Use decode_line_full. Resolve all sal
937 PCs.
938 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
939 (decode_line_spec_1): Update. Change argument name to 'flags',
940 change interpretation.
941 * block.h (block_containing_function): Declare.
942 * block.c (block_containing_function): New function.
943 * skip.c (skip_function_command): Update.
944 (skip_re_set): Update.
945 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
946 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
947 * NEWS: Add entry.
948
949 2011-12-06 Tom Tromey <tromey@redhat.com>
950
951 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
952 breakpoint's pspace to be NULL.
953 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
954 * breakpoint.c (init_raw_breakpoint): Conditionally set
955 breakpoint's pspace.
956 (init_breakpoint_sal): Don't set breakpoint's pspace.
957 (prepare_re_set_context): Conditionally switch program space.
958 (addr_string_to_sals): Check executing_startup on location's
959 program space.
960
961 2011-12-06 Tom Tromey <tromey@redhat.com>
962
963 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
964 * breakpoint.c (should_be_inserted): Explicitly check if program
965 space is executing startup.
966 (describe_other_breakpoints): Update.
967 (disable_breakpoints_before_startup): Change executing_startup
968 earlier. Remove loop.
969 (enable_breakpoints_after_startup): Likewise.
970 (init_breakpoint_sal): Don't use bp_startup_disabled.
971 (create_breakpoint): Don't use bp_startup_disabled.
972 (update_global_location_list): Use should_be_inserted.
973 (bkpt_re_set): Update.
974
975 2011-12-06 Tom Tromey <tromey@redhat.com>
976
977 * python/lib/gdb/command/pretty_printers.py
978 (InfoPrettyPrinter.invoke1): Remove extra double quote.
979
980 2011-12-06 Tom Tromey <tromey@redhat.com>
981
982 * NEWS: Add MI news.
983
984 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
985
986 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
987 (S390_LAST_BREAK_REGNUM): Likewise.
988 (S390_SYSTEM_CALL_REGNUM): Likewise.
989 (S390_NUM_REGS): Update.
990
991 (s390_regmap_last_break): Add declaration.
992 (s390x_regmap_last_break): Likewise.
993 (s390_regmap_system_call): Likewise.
994
995 (tdesc_s390_linux32v1): Add declaration.
996 (tdesc_s390_linux32v2): Likewise.
997 (tdesc_s390_linux64v1): Likewise.
998 (tdesc_s390_linux64v2): Likewise.
999 (tdesc_s390x_linux64v1): Likewise.
1000 (tdesc_s390x_linux64v2): Likewise.
1001
1002 * s390-tdep.c: Include new target description files
1003 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
1004 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
1005 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
1006 (s390_cannot_store_register): New function.
1007 (s390_write_pc): Likewise.
1008 (s390_dwarf_regmap): Add fields for new registers.
1009 (s390_regmap_gregset): Likewise.
1010 (s390x_regmap_gregset): Likewise.
1011 (s390_regmap_fpregset): Likewise.
1012 (s390_regmap_upper): Likewise.
1013 (s390_regmap_last_break): New variable.
1014 (s390x_regmap_last_break): Likewise.
1015 (s390_regmap_system_call): Likewise.
1016 (s390_last_break_regset): Likewise.
1017 (s390x_last_break_regset): Likewise.
1018 (s390_system_call_regset): Likewise.
1019 (s390_upper_regset_sections): Rename to ...
1020 (s390_linux64_regset_sections): ... this.
1021 (s390_linux32_regset_sections): New variable.
1022 (s390x_linux64_regset_sections): Likewise.
1023 (s390_linux32v1_regset_sections): Likewise.
1024 (s390_linux32v2_regset_sections): Likewise.
1025 (s390_linux64v1_regset_sections): Likewise.
1026 (s390_linux64v2_regset_sections): Likewise.
1027 (s390x_linux64v1_regset_sections): Likewise.
1028 (s390x_linux64v2_regset_sections): Likewise.
1029 (s390_regset_from_core_section): Handle .reg-s390-last-break and
1030 .reg-s390-system-call core file sections.
1031 (s390_core_read_description): Check for presence of
1032 .reg-s390-last-break and .reg-s390-system-call core file
1033 sections and return appropriate target description.
1034 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
1035 "last_break" and "system_call" in target description. Install
1036 appropriate gdbarch_core_regset_sections array.
1037 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
1038 (_initialize_s390_tdep): Initialize additional target descriptions.
1039
1040 * s390-nat.c: Include "elf/common.h".
1041 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
1042 (have_regset_last_break): New static variable.
1043 (have_regset_system_call): Likewise.
1044 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
1045 (s390_native_collect): Likewise.
1046 (fetch_regset, store_regset, check_regset): New functions.
1047 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
1048 and S390_SYSTEM_CALL_REGNUM.
1049 (s390_linux_store_inferior_registers): Likewise.
1050 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
1051 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
1052
1053 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
1054 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
1055 (s390-linux32v1-expedite): Define.
1056 (s390-linux32v2-expedite): Likewise.
1057 (s390-linux64v1-expedite): Likewise.
1058 (s390-linux64v2-expedite): Likewise.
1059 (s390x-linux64v1-expedite): Likewise.
1060 (s390x-linux64v2-expedite): Likewise.
1061
1062 * features/s390-linux32.xml: Add orig_r2 register.
1063 * features/s390-linux64.xml: Likewise.
1064 * features/s390x-linux64.xml: Likewise.
1065 * features/s390-linux32v1.xml: New file.
1066 * features/s390-linux32v2.xml: Likewise.
1067 * features/s390-linux64v1.xml: Likewise.
1068 * features/s390-linux64v2.xml: Likewise.
1069 * features/s390x-linux64v1.xml: Likewise.
1070 * features/s390x-linux64v2.xml: Likewise.
1071
1072 * features/s390-linux32.c: Regenerate.
1073 * features/s390-linux64.c: Likewise.
1074 * features/s390x-linux64.c: Likewise.
1075 * features/s390-linux32v1.c: New generated file.
1076 * features/s390-linux32v2.c: Likewise.
1077 * features/s390-linux64v1.c: Likewise.
1078 * features/s390-linux64v2.c: Likewise.
1079 * features/s390x-linux64v1.c: Likewise.
1080 * features/s390x-linux64v2.c: Likewise.
1081
1082 * regformats/s390-linux32.dat: Regenerate.
1083 * regformats/s390-linux64.dat: Regenerate.
1084 * regformats/s390x-linux64.dat: Regenerate.
1085 * regformats/s390-linux32v1.dat: New generated file.
1086 * regformats/s390-linux32v2.dat: Likewise.
1087 * regformats/s390-linux64v1.dat: Likewise.
1088 * regformats/s390-linux64v2.dat: Likewise.
1089 * regformats/s390x-linux64v1.dat: Likewise.
1090 * regformats/s390x-linux64v2.dat: Likewise.
1091
1092 2011-12-05 Pedro Alves <pedro@codesourcery.com>
1093
1094 * linux-nat.c (resume_stopped_resumed_lwps): Call
1095 registers_changed.
1096
1097 2011-12-05 Pedro Alves <pedro@codesourcery.com>
1098
1099 * breakpoint.c: Include record.h.
1100 (breakpoints_always_inserted_mode): Return false when the record
1101 target is in use.
1102
1103 2011-12-05 Pedro Alves <pedro@codesourcery.com>
1104
1105 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
1106 Reinstate perror_with_name call on ptrace error. Remove #if 0.
1107 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
1108 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
1109
1110 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
1111
1112 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
1113 `i'(-Wshadow).
1114
1115 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
1116
1117 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
1118
1119 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
1120
1121 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
1122 of `tdep'(-Wshadow).
1123
1124 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1125
1126 Fix compilation --without-expat.
1127 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
1128 from ...
1129 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
1130
1131 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
1132 Jan Kratochvil <jan.kratochvil@redhat.com>
1133
1134 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
1135 * features/library-list-svr4.dtd: New file.
1136 * remote.c (PACKET_qXfer_libraries_svr4): New.
1137 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
1138 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
1139 * solib-svr4.c (struct svr4_library_list): New.
1140 [HAVE_LIBEXPAT]: Include xml-support.h.
1141 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
1142 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
1143 [HAVE_LIBEXPAT] (svr4_library_list_children)
1144 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
1145 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
1146 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
1147 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
1148 (svr4_read_so_list): Extend the corruption message by addresses.
1149 (svr4_current_sos): New variable library_list, call
1150 svr4_current_sos_via_xfer_libraries.
1151 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
1152
1153 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1154
1155 PR threads/13448
1156 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
1157 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
1158
1159 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1160
1161 PR breakpoints/13346
1162 * dwarf2read.c (process_psymtab_comp_unit): Set
1163 PSYMTABS_ADDRMAP_SUPPORTED.
1164 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
1165 validity. New field psymtabs_addrmap_supported.
1166 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
1167 psymtabs_addrmap_supported.
1168 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
1169 !PSYMTABS_ADDRMAP_SUPPORTED.
1170 (dump_psymtab, maintenance_info_psymtabs): Print also
1171 psymtabs_addrmap_supported.
1172
1173 2011-12-01 Doug Evans <dje@google.com>
1174
1175 * python/py-type.c (type_object_methods): Fix "array" doc string.
1176
1177 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
1178
1179 * source.c (print_source_lines_base): Fix missing braces on else
1180 clause leading to additional output.
1181
1182 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1183
1184 * s390-nat.c (SUBOFF): Remove.
1185 (s390_native_supply, s390_native_collect): New functions.
1186 (supply_gregset, supply_fpregset): Use s390_native_supply.
1187 (fill_gregset, fill_fpregset): Use s390_native_collect.
1188
1189 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
1190 (s390_unwind_pseudo_register): New function.
1191 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
1192 registers instead of PC and CC.
1193 (s390_backchain_frame_unwind_cache): Likewise.
1194 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
1195 full GPR pseudos.
1196 (s390_trad_frame_prev_register): New function.
1197 (s390_frame_prev_register): Use it.
1198 (s390_sigtramp_frame_prev_register): Likewise.
1199 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
1200 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
1201 special callback to unwind any pseudo.
1202
1203 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
1204 * features/s390-core64.xml: Likewise.
1205 * features/s390x-core64.xml: Likewise.
1206 * features/s390-linux32.c: Regenerate.
1207 * features/s390-linux64.c: Likewise.
1208 * features/s390x-linux64.c: Likewise.
1209
1210 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1211
1212 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
1213
1214 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1215
1216 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
1217 instruction. Add more diagnostic output.
1218
1219 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
1220
1221 * MAINTAINERS (Write After Approval): Add myself to the list.
1222
1223 2011-11-29 Sanjoy Das <sdas@igalia.com>
1224
1225 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
1226 (jit_bfd_try_read_symtab): Fix comments.
1227
1228 2011-11-28 DJ Delorie <dj@redhat.com>
1229
1230 * NEWS: Mention RL78 simulator.
1231
1232 2011-11-28 Joel Brobecker <brobecker@adacore.com>
1233
1234 * symfile.h (struct quick_symbol_functions): Fix the documentation
1235 of field map_matching_symbols, as symbols are sorted using
1236 strcmp_iw_ordered, not strcmp_iw.
1237
1238 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
1239
1240 * symfile.h (struct quick_symbol_functions): Update the
1241 documentation for field map_matching_symbols.
1242
1243 2011-11-28 Joel Brobecker <brobecker@adacore.com>
1244
1245 * ada-lang.c (compare_names): Fix wrong return value in case
1246 string1 starts with the same contents as string2, followed
1247 by an underscore that do not start a symbol name suffix.
1248
1249 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
1250
1251 PR python/13369
1252 PR python/13374
1253
1254 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
1255 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1256 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
1257 exceptions.
1258 * python/py-type.c (typy_strip_typedefs): Ditto.
1259 (typy_legacy_template_argument): Ditto.
1260 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1261 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
1262
1263 2011-11-27 Joel Brobecker <brobecker@acacore.com>
1264
1265 * remote.c (remote_get_tracepoint_status): Delete addrbuf
1266 local variable. Avoid use of sprintf_vma.
1267
1268 2011-11-27 Sanjoy Das <sdas@igalia.com>
1269
1270 Fix regression in jit.exp.
1271 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1272 (jit_register_code): Set the jit_objfile_data field to the correct
1273 value.
1274
1275 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
1276
1277 * alpha-tdep.c (br_opcode): New.
1278 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1279 (alpha_deal_with_atomic_sequence): New function.
1280 (alpha_gdbarch_init): Handle single stepping of atomic sequences
1281 with alpha_deal_with_atomic_sequence.
1282
1283 2011-11-24 Tristan Gingold <gingold@adacore.com>
1284
1285 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1286 fields. Add oso_sym, end_sym and nbr_syms.
1287 (macho_register_oso): Change interface.
1288 (macho_symtab_add_minsym): New function.
1289 (macho_symtab_read): Rewritten.
1290 (get_archive_prefix_len): Remove trailing blanks.
1291 (oso_el_compare_name): Add comment.
1292 (struct macho_sym_hash_entry): New structure.
1293 (macho_relocate_common_syms): Remove.
1294 (macho_sym_hash_newfunc): New function.
1295 (macho_resolve_oso_sym_with_minsym): Likewise.
1296 (macho_add_oso_symfile): Rewritten.
1297 (macho_symfile_read_all_oso): Remove trailing blanks.
1298 Adjust code to free oso vector.
1299 (macho_symfile_read): Likewise.
1300 Move code to initialize minimal symbol
1301
1302 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
1303
1304 * mips-tdep.c (extended_offset): Fix formatting.
1305
1306 2011-11-23 Doug Evans <dje@google.com>
1307
1308 * dwarf2read.c (dw2_lookup_symtab): Add comment.
1309 (dw2_expand_symtabs_with_filename): Ditto.
1310 (dw2_expand_symtabs_matching): Ditto.
1311 (dw2_map_symbol_filenames): Ditto.
1312
1313 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1314
1315 * ada-lang.c (assign_aggregate): Minor reformatting.
1316
1317 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1318
1319 * ada-lang.c (assign_aggregate): Remove declaration of local
1320 variable `i' which is shadowing another variable with the same
1321 name declared in the outer scope.
1322
1323 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1324
1325 * ada-lang.c (get_base_type): Renames base_type. Adjust all
1326 calls throughout this file.
1327
1328 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1329
1330 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1331 FormatMessage.
1332
1333 2011-11-22 Tom Tromey <tromey@redhat.com>
1334
1335 PR mi/8444:
1336 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1337 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1338 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1339 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1340 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1341 (print_it_catch_syscall, print_it_catch_exec)
1342 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
1343 (bpstat_print): Add 'kind' argument. Handle
1344 TARGET_WAITKIND_LOADED.
1345 * infrun.c (normal_stop): Update for bpstat_print change. Don't
1346 handle TARGET_WAITKIND_LOADED here.
1347 * breakpoint.h (bpstat_print): Update.
1348
1349 2011-11-22 Tom Tromey <tromey@redhat.com>
1350
1351 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1352
1353 2011-11-22 Tom Tromey <tromey@redhat.com>
1354
1355 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1356 Use static_assert to check the size of
1357 async_reason_string_lookup.
1358 * common/gdb_assert.h (static_assert): New macro.
1359
1360 2011-11-22 Alan Modra <amodra@gmail.com>
1361
1362 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1363 destination calculation. Don't expect >> to sign extend. Don't
1364 add a break if branch lands inside the sequence anywhere.
1365
1366 2011-11-21 Keith Seitz <keiths@redhat.com>
1367
1368 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1369 -var-evaluate-expression of an enumeration and fix expected result.
1370 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1371
1372 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1373
1374 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1375 the case where osdata->items is empty. Rename column names to a
1376 canonical form to avoid problems with unusual column names.
1377
1378 2011-11-21 Yao Qi <yao@codesourcery.com>
1379
1380 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1381
1382 2011-11-20 Stan Shebs <stan@codesourcery.com>
1383
1384 * NEWS: Mention tracepoint additions.
1385 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1386 * breakpoint.c (print_one_breakpoint_location): Identify
1387 tracepoints as such when reporting hit counts, report
1388 trace buffer usage.
1389 (create_tracepoint_from_upload): Copy status info.
1390 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1391 add fields user_name, notes, start_time, stop_time.
1392 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1393 * tracepoint.c (trace_user): New global.
1394 (trace_notes): New global.
1395 (trace_stop_notes): New global.
1396 (start_tracing): Add argument and trace note handling.
1397 (stop_tracing): Ditto.
1398 (trace_start_command): Add notes argument.
1399 (trace_stop_command): Ditto.
1400 (trace_status_command): Report additional status info.
1401 (trace_status_mi): Similarly.
1402 (trace_save): Update, record tracepoint status.
1403 (set_disconnected_tracing): Call target method directly.
1404 (send_disconnected_tracing_value): Remove.
1405 (set_trace_user): New function.
1406 (set_trace_notes): New function.
1407 (set_trace_stop_notes): New function.
1408 (parse_trace_status): Handle additional status.
1409 (parse_tracepoint_status): New function.
1410 (parse_tracepoint_definition): Call it.
1411 (tfile_get_tracepoint_status): New function.
1412 (init_tfile_ops): Use it.
1413 (_initialize_tracepoint): Add new setshows.
1414 * target.h (struct target_ops): New methods to_get_tracepoint_status
1415 and to_set_trace_notes.
1416 (target_get_tracepoint_status): New macro.
1417 (target_set_trace_notes): New macro.
1418 * target.c (update_current_target): Add new methods.
1419 * remote.c (remote_get_tracepoint_status): New function.
1420 (remote_set_trace_notes): New function.
1421 (init_remote_ops): Add them.
1422 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1423 (mi_cmd_trace_stop): Ditto.
1424
1425 2011-11-20 Sanjoy Das <sdas@igalia.com>
1426
1427 * jit.c: Include regcache.h.
1428 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1429 (jit_unwind_reg_set_impl, free_reg_value_impl)
1430 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1431 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1432 (jit_frame_prev_register, jit_dealloc_cache)
1433 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1434 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1435 jit_prepend_unwinder.
1436 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1437
1438 2011-11-20 Sanjoy Das <sdas@igalia.com>
1439
1440 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1441 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1442 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1443 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1444 (finalize_symtab, jit_object_close_impl)
1445 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1446 (free_objfile_data): New functions.
1447 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1448 function.
1449
1450 2011-11-20 Sanjoy Das <sdas@igalia.com>
1451
1452 * jit.c: Include gdb-dlfcn.h.
1453 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1454 (jit_reader_load, jit_reader_load_command)
1455 (jit_reader_unload_command): New functions.
1456 (_initialize_jit): Add commands "jit-reader-load" and
1457 "jit-reader-unload".
1458
1459 2011-11-20 Sanjoy Das <sdas@igalia.com>
1460
1461 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1462 * config.in: Add new #define HAVE_LIBDL.
1463 * configure.ac: Add check for -ldl.
1464 * configure: Re-generated by autoconf.
1465 * gdb-dlfcn.c: New file.
1466 * gdb-dlfcn.h: New file.
1467
1468 2011-11-20 Sanjoy Das <sdas@igalia.com>
1469
1470 * config.in: Add new #defines: JIT_READER_DIR and
1471 JIT_READER_DIR_RELOCATABLE.
1472 * configure.ac: New GDB directory entry for jit-reader-dir.
1473 * configure: Re-generated by autoconf.
1474 * jit.c: New static variable: const char *jit_reader_dir.
1475 (_initialize_jit): Relocate jit_reader_dir.
1476
1477 2011-11-20 Sanjoy Das <sdas@igalia.com>
1478
1479 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1480 $(includedir)/gdb.
1481 * configure.ac: Generate a correct value for TARGET_PTR for
1482 jit-reader.h. Tell configure to generate jit-reader.h from
1483 jit-reader.in.
1484 * configure: Re-generated by autoconf.
1485 * jit-reader.in: New file.
1486 * jit.c: Include jit-reader.h.
1487
1488 2011-11-20 Sanjoy Das <sdas@igalia.com>
1489
1490 * MAINTAINERS (Write After Approval): Add myself to the list.
1491
1492 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1493
1494 * findvar.c (read_frame_register_value): Respect value_offset
1495 of the register value. Remove big-endian special case.
1496
1497 2011-11-18 Tom Tromey <tromey@redhat.com>
1498
1499 PR build/7196:
1500 * remote.c (putpkt_for_catch_errors): New function.
1501 (remote_kill): Use it.
1502
1503 2011-11-18 Yao Qi <yao@codesourcery.com>
1504
1505 * breakpoint.c (create_breakpoint): Produce query message according to
1506 breakpoint's type.
1507 Allocate tracepoint per correct type.
1508 Don't check SALs for pending fast tracepoints.
1509 * tracepoint.c (process_tracepoint_on_disconnect): New.
1510 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1511
1512 2011-11-18 Yao Qi <yao@codesourcery.com>
1513
1514 * breakpoint.c (install_breakpoint): Add one more parameter so that
1515 update_global_location_list is called conditionally.
1516 (create_fork_vfork_event_catchpoint): Update.
1517 (create_syscall_event_catchpoint): Update.
1518 (create_breakpoint_sal): Update.
1519 (create_breakpoint_sal): Update. Call do_cleanups before
1520 install_breakpoint.
1521 * ada-lang.c (create_ada_exception_catchpoint): Update.
1522 * breakpoint.h (install_breakpoint): Update declaration.
1523
1524 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1525
1526 * spu-tdep.c (spu_return_value): Fix handling of
1527 TYPE_CALLING_CONVENTION annotation.
1528
1529 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1530
1531 * skip.c (skip_function_command): Work around uninitialized
1532 variable warning.
1533
1534 2011-11-16 David S. Miller <davem@davemloft.net>
1535
1536 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1537 'tv_usec' to long for printf since these fields have a type which
1538 varies.
1539
1540 2011-11-15 Doug Evans <dje@google.com>
1541
1542 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1543
1544 2011-11-15 Paul Koning <paul_koning@dell.com>
1545
1546 * python/py-type.c (typy_get_composite): New function.
1547 (typy_nonzero): New function.
1548 (typy_values): Rename from typy_fields.
1549 (typy_fields): New function.
1550 (typy_length): Raise exception if not struct, union, or enum type.
1551 (typy_getitem): Ditto.
1552 (typy_has_key): Ditto.
1553 (typy_make_iter): Ditto.
1554
1555 2011-11-15 Doug Evans <dje@google.com>
1556
1557 PR gdb/8367
1558 * NEWS: Mention new parameter basenames-may-differ.
1559 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1560 ! basenames_may_differ.
1561 * psymtab.c (lookup_partial_symtab): Ditto.
1562 * symtab.c (lookup_symtab): Ditto.
1563 (basenames_may_differ): New global.
1564 (_initialize_symtab): New parameter basenames-may-differ.
1565 * symtab.h (basenames_may_differ): Declare.
1566
1567 2011-11-15 Pedro Alves <pedro@codesourcery.com>
1568 Luis Machado <lgustavo@codesourcery.com>
1569
1570 * auxv.c: Include observer.h.
1571 (auxv_inferior_data_cleanup): New.
1572 (invalidate_auxv_cache_inf): New.
1573 (invalidate_auxv_cache): New.
1574 (get_auxv_inferior_data): New.
1575 (auxv_inferior_data): New static global.
1576 (auxv_info): New structure.
1577 (target_auxv_search): Use get_auxv_inferior_data instead of
1578 target_read_alloc and don't free cached buffers.
1579 (fprint_target_auxv): Likewise
1580 (_initialize_auxv): Register per-inferior auxv cache and register
1581 observers to invalidate auxv cache when needed.
1582
1583 2011-11-14 Doug Evans <dje@google.com>
1584
1585 PR gdb/7200 Make "!" an alias for "shell".
1586 * NEWS: Add mention.
1587 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1588 adding "!" command, always add it.
1589 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1590 command of length one.
1591
1592 2011-11-14 Stan Shebs <stan@codesourcery.com>
1593 Kwok Cheung Yeung <kcy@codesourcery.com>
1594
1595 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1596 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1597 the minimum instruction size for fast tracepoints.
1598 * target.h (struct target_ops): Add new method
1599 to_get_min_fast_tracepoint_insn_len.
1600 (target_get_min_fast_tracepoint_insn_len): New.
1601 * target.c (update_current_target): Set up new target operation.
1602 * remote.c (remote_write_bytes_aux): Fix typo.
1603 (remote_get_min_fast_tracepoint_insn_len): New.
1604 (init_remote_ops): Initialize new field.
1605
1606 2011-11-14 Tom Tromey <tromey@redhat.com>
1607
1608 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1609 (encode_actions): Likewise.
1610
1611 2011-11-14 Yao Qi <yao@codesourcery.com>
1612
1613 * remote.c (struct remote_state): <install_in_trace> new field.
1614 (PACKET_InstallInTrace): New enum value.
1615 (remote_install_in_trace_feature): Support InstallInTrace.
1616 (remote_supports_install_in_trace): Likewise.
1617 (remote_protocol_features): Likewise.
1618 (_initialize_remote): Likewise.
1619 (remote_can_download_tracepoint): New.
1620 * target.h (struct target): New field
1621 `to_can_download_tracepoint'.
1622 (target_can_download_tracepoint): New macro.
1623 * target.c (update_current_target): Update.
1624 * breakpoint.h (struct bp_location): Add comment on field
1625 `duplicate'.
1626 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1627 and tracepoint.
1628 (remove_breakpoints): Don't remove tracepoints.
1629 (tracepoint_locations_match ): New.
1630 (breakpoint_locations_match): Call it.
1631 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1632 (download_tracepoint_locations): New.
1633 (update_global_location_list): Call it.
1634 * tracepoint.c (find_matching_tracepoint): Delete.
1635 (find_matching_tracepoint_location): Renamed from
1636 find_matching_tracepoint. Return bp_location rather than
1637 tracepoint.
1638 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1639 tracepoint is found.
1640
1641 2011-11-14 Yao Qi <yao@codesourcery.com>
1642
1643 * target.h (struct target): <to_download_tracepoint> Change type
1644 of parameter from tracepoint to bp_location.
1645 * target.c (update_current_target): Update.
1646 * tracepoint.c (start_tracing): Update.
1647 * remote.c (remote_download_tracepoint): Remove loop for each location
1648 of a tracepoint.
1649
1650 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1651
1652 * i386-nat.c (i386_insert_hw_breakpoint): Call
1653 i386_update_inferior_debug_regs.
1654 (i386_remove_hw_breakpoint): Likewise.
1655
1656 2011-11-14 Yao Qi <yao@codesourcery.com>
1657
1658 * breakpoint.c (init_raw_breakpoint): Call
1659 add_location_to_breakpoint to replace duplicated code.
1660 (add_location_to_breakpoint): Adjust the breakpoint's
1661 address prior to allocating a location.
1662
1663 2011-11-12 Matt Rice <ratmice@gmail.com>
1664
1665 * macrocmd.c (macro_no_macro_info): New function.
1666 (macro_expand_command): Use macro_no_macro_info.
1667 (macro_expand_once_command): Ditto.
1668 (info_macro_command): Add argument processing,
1669 move info_definitions_command here.
1670 (_initialize_macrocmd): Remove info definitions command.
1671 Add arguments to info macro help text.
1672 * NEWS: Replace info definitions command with new info macro options.
1673
1674 2011-11-11 Keith Seitz <keiths@redhat.com>
1675
1676 PR gdb/12843
1677 * linespec.c (locate_first_half): Keep ':' if it looks
1678 like it could be part of a Windows path starting with
1679 a drive letter.
1680
1681 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1682
1683 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1684 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1685
1686 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1687
1688 * target.c (target_waitstatus_to_string): Handle
1689 TARGET_WAITKIND_NO_RESUMED.
1690
1691 2011-11-10 Doug Evans <dje@google.com>
1692
1693 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1694 `need_fullname'.
1695 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1696 (map_partial_symbol_filenames): Ditto. All callers updated.
1697 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1698 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1699 parameter need_fullname.
1700
1701 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1702 * source.c (symtab_to_fullname): Ditto.
1703
1704 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1705 * gdb-demangle.h: ... here. New file.
1706 * demangle.c: #include "gdb-demangle.h".
1707 (_initialize_demangler): Use initialize_file_ftype for prototype.
1708 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1709 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1710 from utils.c
1711 * utils.c: Update. #include "gdb-demangle.h".
1712 * symtab.h (asm_demangle): Delete.
1713 (demangle): Move declaration next to use.
1714 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1715 * dwarf2read.c: #include "gdb-demangle.h".
1716 * gnu-v2-abi.c: Ditto.
1717 * jv-typeprint.c: Ditto.
1718 * mdebugread.c: Ditto.
1719 * p-typeprint.c: Ditto.
1720 * stabsread.c: Ditto.
1721 * printcmd.c: Ditto.
1722 (asm_demangle): Delete declaration.
1723 * tui/tui-stack.c: #include "gdb-demangle.h".
1724
1725 * python/py-type.c (typy_fields_items): Call check_typedef.
1726
1727 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1728
1729 * findvar.c (read_frame_register_value): Read the correct bytes
1730 from registers on big-endian architectures.
1731
1732 2011-11-10 Tom Tromey <tromey@redhat.com>
1733
1734 * procfs.c (load_syscalls): Make a cleanup.
1735 (open_procinfo_files): fd==0 is ok.
1736
1737 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1738
1739 * procfs.c (iterate_over_mappings): Call do_cleanups before
1740 returning.
1741
1742 2011-11-09 Doug Evans <dje@google.com>
1743
1744 * gdbtypes.c (check_typedef): Document that this function can
1745 throw an exception.
1746
1747 2011-11-09 Tom Tromey <tromey@redhat.com>
1748
1749 PR c++/13342:
1750 * valops.c (value_full_object): Return early if real type is
1751 smaller than the enclosing type.
1752
1753 2011-11-08 Yao Qi <yao@codesourcery.com>
1754
1755 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1756
1757 2011-11-08 Meador Inge <meadori@codesourcery.com>
1758
1759 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1760 register when the frame can't be determined.
1761 * arm-tdep.c (arm_analyze_prologue): Ditto.
1762
1763 2011-11-07 Stan Shebs <stan@codesourcery.com>
1764
1765 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1766
1767 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1768
1769 * infrun.c (handle_inferior_event): Minor reformatting.
1770
1771 2011-11-05 Doug Evans <dje@google.com>
1772
1773 * source.c (forget_cached_source_info_for_objfile): Move call to
1774 objfile->sf->qf->forget_cached_source_info outside of
1775 ALL_OBJFILE_SYMTABS loop.
1776 (forget_cached_source_info): Delete unused variable `s'.
1777
1778 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1779
1780 * i386-nat.c (dr_ref_count): Remove unused variable.
1781
1782 2011-11-05 Doug Evans <dje@google.com>
1783
1784 * main.c (captured_main): Set lim_at_start before calling
1785 make_command_stats_cleanup.
1786
1787 2011-11-04 Doug Evans <dje@google.com>
1788
1789 * utils.c: #include "timeval-utils.h".
1790 (cmd_stats): Rename start_time to start_cpu_time.
1791 New member start_wall_time.
1792 (report_command_stats): Report wall time.
1793 (make_command_stats_cleanup): Record start wall time.
1794
1795 2011-11-04 Tom Tromey <tromey@redhat.com>
1796
1797 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1798
1799 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1800
1801 * coff-pe-read.c: Include defs.h before bfd.h.
1802
1803 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1804
1805 PR Python/13345
1806
1807 * python/python.c (python_run_simple_file): Expand tilde in path.
1808
1809 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1810
1811 PR Python/13363
1812
1813 * python/py-type.c (typy_lookup_type): Do not return a type in
1814 an exception handler.
1815
1816 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1817 Eli Zaretskii <eliz@gnu.org>
1818
1819 * linux-nat.c (_initialize_linux_nat): Improve help
1820 for `info proc stat', `info proc status', `info proc cwd',
1821 `info proc cmdline' and `info proc exe'.
1822
1823 2011-11-02 Stan Shebs <stan@codesourcery.com>
1824
1825 String collection for tracepoints.
1826 * NEWS: Mention string collection.
1827 * common/ax.def (tracenz): New bytecode.
1828 * ax-gdb.h (trace_string_kludge): Declare.
1829 * ax-gdb.c: Include valprint.h and c-lang.h.
1830 (trace_string_kludge): New global.
1831 (gen_traced_pop): Add string case.
1832 (agent_command): Add string case.
1833 * tracepoint.h (decode_agent_options): Declare.
1834 * tracepoint.c: Include cli-utils.h.
1835 (decode_agent_options): New function.
1836 (validate_actionline): Call it.
1837 (encode_actions_1): Ditto.
1838 * target.h (struct target_ops): New method to_supports_string_tracing.
1839 (target_supports_string_tracing): New macro.
1840 * target.c (update_current_target): Add to_supports_string_tracing.
1841 * remote.c (struct remote_state): New field string_tracing.
1842 (remote_string_tracing_feature): New function.
1843 (remote_protocol_features): New feature tracenz.
1844 (remote_supports_string_tracing): New function.
1845 (init_remote_ops): Set to_supports_string_tracing.
1846
1847 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1848 Jan Kratochvil <jan.kratochvil@redhat.com>
1849
1850 * linux-nat.c: Include cli/cli-utils.h.
1851 (enum info_proc_what): New.
1852 (linux_nat_info_proc_cmd): Rename to ...
1853 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1854 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1855 status_f and stat_f from WHAT. Throw error on extra parameters.
1856 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1857 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1858 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1859 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1860 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1861 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1862 `info proc cmdline', `info proc exe' and `info proc all' as real
1863 subcommands of `info proc'.
1864
1865 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1866
1867 * Makefile.in: (SFILES): Add skip.c.
1868 (HFILES_NO_SRCDIR): Add skip.h.
1869 (COMMON_OBS): Add skip.o.
1870 * skip.h, skip.c: New.
1871 * breakpoint.h (set_default_breakpoint): Remove.
1872 (get_sal_arch): Declare.
1873 * breakpoint.c: Remove default_breakpoint_valid,
1874 default_breakpoint_address, default_breakpoint_symtab,
1875 default_breakpoint_line, default_breakpoint_pspace variables.
1876 (get_sal_arch): Make public.
1877 (set_default_breakpoint): Remove.
1878 (parse_breakpoint_sals, create_breakpoint, clear_command,
1879 decode_line_spec_1): Remove uses of default_breakpoint variables;
1880 replaced with function calls into stack.c.
1881 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1882 * cli/cli-cmds.c: Add skiplist.
1883 (init_cmd_lists): Initialize skiplist.
1884 (init_cli_cmds): Fix comment (classes of commands appear in
1885 alphabetical order).
1886 * infrun.c (handle_inferior_event): Add check that we don't step into
1887 a function whose pc is marked for skip.
1888 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1889 last_displayed_addr, last_displayed_symtab, last_displayed_line
1890 variables.
1891 (set_last_displayed_sal): New static function.
1892 (print_frame_info): Switch call to set_default_breakpoint to call to
1893 set_last_displayed_sal.
1894 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1895 get_last_displayed_pspace, get_last_displayed_addr,
1896 get_last_displayed_symtab, get_last_displayed_line,
1897 get_last_displayed_sal): New public functions.
1898 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1899 get_last_displayed_pspace, get_last_displayed_addr,
1900 get_last_displayed_symtab, get_last_displayed_line,
1901 get_last_displayed_sal): Declare.
1902
1903 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1904
1905 * MAINTAINERS (Write After Approval): Add myself to the list.
1906
1907 2011-10-29 Yao Qi <yao@codesourcery.com>
1908
1909 * infcmd.c (disconnect_command): Call disconnect_tracing.
1910
1911 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1912
1913 Code cleanup.
1914 * symtab.c (skip_prologue_sal): Code reformatting.
1915
1916 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1917
1918 PR symtab/13208
1919 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1920 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1921 SAI.
1922
1923 2011-10-28 Pedro Alves <pedro@codesourcery.com>
1924
1925 * linux-nat.c (linux_nat_filter_event): Remove `options'
1926 parameter, and dead code that used it. If we're handling a
1927 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1928 in our lwp list, re-add it.
1929 (check_zombie_leaders): New.
1930 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1931 wait for children with WNOHANG, and always wait for all children.
1932 Don't check for no resumed children upfront. Simplify wait loop.
1933 Check for zombie thread group leaders after handling all wait
1934 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1935 unwaited-for children left.
1936 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1937 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1938 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1939 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1940
1941 2011-10-28 Sterling Augustine <saugustine@google.com>
1942
1943 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1944 * symtab.c (free_completion_list): New function.
1945 (do_free_completion_list): Likewise.
1946 (default_make_symbol_completion_list_break_on): New variable
1947 back_to. Call make_cleanup and discard_cleanups.
1948 (make_source_files_completion_list): Likewise.
1949
1950 2011-10-28 Paul Koning <paul_koning@dell.com>
1951
1952 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1953 * NEWS: Mention deep_items.
1954
1955 2011-10-28 Alen Skondro <askondro@gmail.com>
1956
1957 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1958 defined.
1959
1960 2011-10-27 Meador Inge <meadori@codesourcery.com>
1961
1962 * MAINTAINERS (Write After Approval): Add myself to the list.
1963
1964 2011-10-27 Joel Brobecker <brobecker@adacore.com>
1965
1966 * value.h (read_frame_register_value): Add declaration.
1967 * findvar.c (read_frame_register_value): New function.
1968 (value_from_register): Use read_frame_register_value
1969 instead of get_frame_register_value + value_contents_copy
1970 to get value contents.
1971
1972 2011-10-27 Doug Evans <dje@google.com>
1973
1974 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1975 source_script_from_stream if it may have been found on the search path.
1976 * python/py-auto-load.c (source_section_scripts): Pass full path to
1977 source_python_script_for_objfile.
1978 * python/python.c (source_python_script): Delete stream parameter.
1979 All callers updated.
1980 (source_python_script_for_objfile): Ditto.
1981 * python/python-internal.h (source_python_script_for_objfile): Update.
1982 * python/python.h (source_python_script): Update.
1983
1984 2011-10-27 Tom Tromey <tromey@redhat.com>
1985
1986 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1987 (ada_sals_for_line): Remove declarations.
1988
1989 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
1990
1991 Move unwind reasons to an external .def file
1992 * frame.c (frame_stop_reason_string): Rewrite using
1993 unwind_stop_reasons.def.
1994 * frame.h (enum unwind_stop_reason): Likewise.
1995 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1996 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1997 constants for bound-checking.
1998 * unwind_stop_reasons.def: New file.
1999 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
2000 instead of a distinct value.
2001
2002 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
2003
2004 PR python/13331
2005
2006 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
2007 (convert_values_to_python): Return on Python tuple allocation
2008 failure. Return NULL on value conversion error.
2009
2010 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
2011
2012 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
2013 (bppy_set_task): Ditto.
2014 (bppy_delete_breakpoint): Ditto.
2015 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
2016 (gdbpy_lookup_global_symbol): Ditto.
2017 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
2018 * python/py-frame.c (frapy_is_valid): Ditto.
2019 (frame_info_to_frame_object): Ditto.
2020 * python/py-type.c (typy_lookup_type): Ditto.
2021 (typy_getitem): Ditto.
2022 (typy_has_key): Ditto.
2023 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
2024
2025 2011-10-26 Joel Brobecker <brobecker@adacore.com>
2026
2027 * gdbarch.h: Regenerate.
2028
2029 2011-10-26 Meador Inge <meadori@codesourcery.com>
2030
2031 * gdbarch.sh (function_list): Use 'pstring' when printing
2032 'gcore_bfd_target'.
2033 * gdbarch.c: Regenerate.
2034
2035 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
2036
2037 * regcache.c (registers_changed_ptid): Invalidate thread architecture
2038 and frame caches if PTID refers to all threads of a process.
2039
2040 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
2041
2042 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
2043 to create_breakpoint.
2044
2045 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
2046
2047 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
2048 (ppc_sysv_abi_push_dummy_call): Use it.
2049 (do_ppc_sysv_return_value): Likewise.
2050 (ppc64_sysv_abi_push_dummy_call): Likewise.
2051 (ppc64_sysv_abi_return_value): Likewise.
2052
2053 2011-10-26 Paul Koning <paul_koning@dell.com>
2054
2055 * python/lib/gdb/types.py (deepitems): New function.
2056
2057 2011-10-25 Paul Koning <paul_koning@dell.com>
2058
2059 PR python/13327
2060
2061 * python/py-value.c (value_to_value_object): Remove fetching of
2062 the value if it was lazy.
2063 (valpy_get_is_lazy): New function.
2064 (valpy_fetch_lazy): New function.
2065
2066 2011-10-24 Joel Brobecker <brobecker@adacore.com>
2067
2068 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
2069 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
2070
2071 2011-10-24 Pedro Alves <pedro@codesourcery.com>
2072
2073 * linux-nat.c (linux_handle_extended_wait): When handling a clone
2074 event, in non-stop, if not stopping, make sure the new lwp has
2075 last_resume_kind set to resume_continue. Assert that when we're
2076 resuming the new lwp, its last_resume_kind is resume_continue.
2077
2078 2011-10-24 Pedro Alves <pedro@codesourcery.com>
2079
2080 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
2081 already set when marking the event thread as not executing in
2082 non-stop mode.
2083
2084 2011-10-24 Pedro Alves <pedro@codesourcery.com>
2085
2086 * infrun.c (handle_inferior_event): Add debug output for
2087 TARGET_WAITKIND_NO_HISTORY.
2088
2089 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
2090
2091 * NEWS: Move set/show extended-prompt to "New Options". Expand
2092 description. Fix typos.
2093
2094 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
2095
2096 PR python/13310
2097
2098 * python/py-param.c (call_doc_function): Correctly deference on
2099 function exit.
2100
2101 2011-10-21 Joel Brobecker <brobecker@adacore.com>
2102
2103 * ada-tasks.c (print_ada_task_info): Fix computation of
2104 number of tasks displayed in command output.
2105
2106 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2107 Ulrich Weigand <uweigand@de.ibm.com>
2108
2109 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
2110 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
2111 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
2112 gdbarch_pc_regnum and frame_unwind_register_unsigned by
2113 gdbarch_unwind_pc.
2114
2115 2011-10-20 Cary Coutant <ccoutant@google.com>
2116
2117 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
2118 section to...
2119 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
2120 flag. Adjust all callers.
2121 (process_psymtab_comp_unit): Remove adjustment for type section.
2122
2123 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
2124
2125 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
2126 arguments by adding OBJFILE. Instead of getting objfile from
2127 symbol's symtab, use new argument OBJFILE.
2128 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
2129 arguments by adding OBJFILE.
2130 * gdb/dwarf2read.c (new_symbol_full): Change call to
2131 cp_scan_for_anonymous_namespaces to match new signature.
2132 * gdb/stabsread.c (define_symbol): Change call to
2133 cp_scan_for_anonymous_namespaces to match new signature.
2134
2135 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
2136
2137 PR python/13308
2138 PR python/13309
2139
2140 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
2141 leak.
2142 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
2143 leak. Delete unused variables.
2144
2145 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
2146
2147 PR python/12656
2148
2149 * python/py-frame.c (frapy_read_var): Use const struct *block.
2150 * python/py-type.c (typy_lookup_typename): Likewise.
2151 (typy_lookup_type): Likewise.
2152 (typy_legacy_template_argument): Likewise.
2153 (typy_template_argument): Likewise.
2154 (gdbpy_lookup_type): Likewise.
2155 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2156 * python/py-block.c (blpy_block_object): Likewise.
2157 (blpy_iter): Likewise.
2158 (blpy_get_start): Likewise.
2159 (blpy_get_end): Likewise.
2160 (blpy_get_function): Likewise.
2161 (blpy_get_superblock): Likewise.
2162 (set_block): Likewise.
2163 (block_to_block_object): Likewise.
2164 (block_object_to_block): Likewise.
2165 (blpy_is_valid): Likewise.
2166 (blpy_get_global_block): New function.
2167 (blpy_get_static_block): New function.
2168 (blpy_is_global): New function.
2169 (blpy_is_static): New function.
2170 * blockframe.c (block_innermost_frame): Likewise.
2171 * valops.c (value_of_variable): Likewise.
2172 * frame.h: Update prototypes.
2173 * python/python-internal.h: Likewise.
2174 * value.h: Likewise.
2175
2176 2011-10-19 Cary Coutant <ccoutant@google.com>
2177
2178 * dwarf2read.c (create_debug_types_hash_table): Fix size of
2179 type_offset field.
2180
2181 2011-10-19 Cary Coutant <ccoutant@google.com>
2182
2183 * dwarf2read.c (peek_abbrev_code): New function.
2184 (dw2_get_file_names): Check for dummy compilation units.
2185 (create_debug_types_hash_table): Likewise.
2186 (process_psymtab_comp_unit): Likewise.
2187 (load_partial_comp_unit): Likewise.
2188 (load_full_comp_unit): Likewise.
2189
2190 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
2191
2192 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
2193 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
2194 pt_phdr if PT_PHDR was found.
2195
2196 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
2197
2198 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
2199 type or "<unnamed type"> when there is no name assigned.
2200 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
2201 avoid a sigint when no name is assigned.
2202
2203 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2204
2205 Revert:
2206 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2207 * dwarf2expr.c (ctx_no_read_reg): New function.
2208 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2209 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2210 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2211 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2212
2213 2011-10-16 Doug Evans <dje@google.com>
2214
2215 * NEWS: Document python gdb.printing.register_pretty_printer's new
2216 `replace' parameter.
2217
2218 2011-10-14 Keith Seitz <keiths@redhat.com>
2219
2220 PR c++/13225
2221 * eval.c (evaluate_subexp_standard): Do not construct
2222 an array of types; pass the value array directly to
2223 find_overload_match.
2224 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
2225 (rank_function): Take an array of values instead of types.
2226 (rank_one_type): Add struct value * parameter.
2227 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
2228 (rank_function): For each argument, pass the argument's
2229 value to rank_one_type.
2230 (rank_one_type): Add VALUE parameter.
2231 If the parameter type is a pointer and the argument type
2232 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
2233 VALUE is zero.
2234 Update all calls to rank_one_type, passing NULL for new
2235 VALUE parameter.
2236 * valarith.c (value_user_defined_cpp_op): Do not construct
2237 an array of types; pass the value array directly to
2238 find_overload_match.
2239 * valops.c (find_overload_method_list): Take an array of
2240 values instead of types.
2241 Save the type of OBJP for later use.
2242 Update calls to find_oload_champ, and find_oload_champ_namespace.
2243 (find_oload_champ_namespace): Take an array of values instead
2244 of types.
2245 (find_oload_champ_namespace_loop): Likewise.
2246 (find_oload_champ): Likewise.
2247 (classify_oload_match): Inspect all arguments
2248 until INCOMPATIBLE is found. Return the worst badness found
2249 otherwise.
2250 (compare_parameters): Update call to rank_one_type.
2251 * value.h (find_overload_match): Take an array of values instead
2252 of types.
2253
2254 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2255
2256 Drop lazy lm_info reading.
2257 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
2258 l_addr_inferior, l_ld, l_next, l_prev and l_name.
2259 (lm_info_read): New function.
2260 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
2261 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
2262 lm_dynamic_from_link_map.
2263 (lm_next, lm_prev, lm_name): Remove.
2264 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
2265 initialization incl. read_memory. No longer use lm_name.
2266 (svr4_free_so): Drop lm_info->lm freeing.
2267 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
2268 explicit lm_addr and lm initialization.
2269 (svr4_read_so_list): Use lm_info_read, drop the initailization of
2270 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
2271 lm_name.
2272
2273 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2274 Paul Pluzhnikov <ppluzhnikov@google.com>
2275
2276 * defs.h (struct so_list): New forward declaration.
2277 (make_cleanup_free_so): New declaration.
2278 * solib-svr4.c (ignore_first_link_map_entry): Remove.
2279 (svr4_free_so): Move the function here from downwards. Handle NULL
2280 so->lm_info.
2281 (svr4_free_library_list): New.
2282 (svr4_read_so_list): New, moved here code from svr4_current_sos.
2283 Use more cleanups. Use new parameter ignore_first instead of
2284 ignore_first_link_map_entry.
2285 (svr4_current_sos): New variable ignore_first, initialize it. New
2286 variable back_to, use it for svr4_free_library_list protection.
2287 (svr4_free_so): Remove - move upwards.
2288 * utils.c: Include solist.h.
2289 (do_free_so, make_cleanup_free_so): New functions.
2290
2291 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2292
2293 Fix internal error regression.
2294 * value.c (value_primitive_field): Handle value_optimized_out. Move
2295 packed bitfields comment.
2296
2297 2011-10-13 Tom Tromey <tromey@redhat.com>
2298
2299 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2300 always released.
2301
2302 2011-10-13 Tom Tromey <tromey@redhat.com>
2303
2304 * python/py-type.c (typy_has_key): Make 'field' const.
2305
2306 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2307
2308 * remote.c (remote_save_trace_data): Invert comparison.
2309
2310 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2311
2312 * tracepoint.c (trace_save_command): Use filename instead of
2313 args when printing.
2314
2315 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2316
2317 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2318 if .size is 0.
2319
2320 2011-10-13 Yao Qi <yao@codesourcery.com>
2321
2322 PR gdb/12703
2323 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2324 whether insn is a 32-bit Thumb-2 instruction.
2325 (thumb_in_function_epilogue_p): Likewise.
2326 (thumb_get_next_pc_raw): Likewise.
2327 (arm_breakpoint_from_pc): Likewise.
2328
2329 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2330
2331 Fix empty DWARF expressions DATA vs. SIZE conditionals.
2332 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2333 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2334 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2335 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2336 zero DATA.
2337 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2338 validity.
2339 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2340 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2341 clear DATA on zero SIZE.
2342
2343 2011-10-12 Doug Evans <dje@google.com>
2344
2345 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2346 header->first_die_offset here. All callers updated.
2347
2348 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2349
2350 Fix compatibility with texinfo versions older than 4.12.
2351 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2352 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2353 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2354 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2355 * configure: Regenerate.
2356 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2357 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2358 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2359
2360 2011-10-12 Gary Benson <gbenson@redhat.com>
2361
2362 * breakpoint.h (pc_at_non_inline_function): Declare.
2363 * breakpoint.c (is_non_inline_function,
2364 pc_at_non_inline_function): New functions.
2365 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2366 if the stop is at a location where functions cannot be inlined.
2367
2368 2011-10-12 Pedro Alves <pedro@codesourcery.com>
2369
2370 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2371 the core wanted them stopped, or if they now have a pending event
2372 to report.
2373 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2374 down to stop_and_resume_callback.
2375 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2376 having new pending events after calling linux_nat_filter_event.
2377
2378 2011-10-11 Sterling Augustine <saugustine@google.com>
2379
2380 * dwarf2read.c: Undo inadvertent changes in previous commit.
2381
2382 2011-10-11 Sterling Augustine <saugustine@google.com>
2383
2384 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2385 logic.
2386
2387 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2388
2389 * symfile.c (separate_debug_file_exists): Fix condition.
2390
2391 2011-10-11 David S. Miller <davem@davemloft.net>
2392
2393 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2394 static.
2395 * regcache.h (regcache_restore): Remove declaration.
2396
2397 * gdbarch.sh: New field 'long_long_align_bit'.
2398 * gdbarch.c, gdbarch.h: Regenerate.
2399 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2400 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2401
2402 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2403
2404 Revert this part of:
2405 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2406 Support @entry in input expressions.
2407 * c-exp.y (ENTRY, unknown_cpp_name): New.
2408 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2409 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2410 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2411 (name_not_typename: ENTRY): New.
2412 (yylex): Recognize ENTRY.
2413
2414 Reimplement @entry in input expressions.
2415 * c-exp.y (ENTRY): New.
2416 (variable: name_not_typename ENTRY): New.
2417 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2418
2419 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2420
2421 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2422 parent and child's pids as soon as we detect a clone event.
2423 Adjust another debug message.
2424
2425 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2426
2427 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2428 not zombie instead of reading the whole file.
2429
2430 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2431
2432 Fix separate debuginfo warning with "remote:" access.
2433 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2434 * symfile.c (get_file_crc): New function with the code moved from ...
2435 (separate_debug_file_exists): ... this function, specifically variables
2436 buffer and count. New variable verified_as_different, set it. Remove
2437 file_crc initialization. Verify also if both files are not the same
2438 manually, if needed.
2439
2440 2011-10-11 Yao Qi <yao@codesourcery.com>
2441
2442 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2443 to get address.
2444
2445 2011-10-10 Doug Evans <dje@google.com>
2446
2447 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2448 libthread_db when we load libpthread or the main symbol file.
2449 (thread_db_inferior_created): New function.
2450 (_initialize_thread_db): Attach inferior_created observer.
2451 * linux-nat.c (linux_child_post_attach): Remove call to
2452 check_for_thread_db.
2453 (linux_child_post_startup_inferior): Ditto.
2454 * objfiles.h (OBJF_MAINLINE): Define.
2455 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2456 allocate_objfile when appropriate.
2457
2458 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2459
2460 PR gdb/13218
2461 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2462 Remove unused variables.
2463 (get_linux_version): Remove function.
2464 (_initialize_arm_linux_nat): Do not call it.
2465
2466 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2467
2468 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2469 new clone lwp if the core asked it to stop. Don't pass on
2470 unexpected signals to the new clone; leave them pending instead.
2471
2472 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2473
2474 * linux-nat.c (resume_lwp): Remove redundant debug output.
2475
2476 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2477
2478 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2479 last_resume_kind before clearing it, and use the copy instead to
2480 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2481 resume_clear_callback in the non-stop path too.
2482
2483 2011-10-09 Yao Qi <yao@codesourcery.com>
2484
2485 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2486 Honor OPTIONS and VAL's type.
2487 (common_val_print, value_print): Update to pass one more parameter.
2488
2489 2011-10-09 Doug Evans <dje@google.com>
2490
2491 Add new "alias" command.
2492 * NEWS: Mention new command.
2493 * command.h (valid_user_defined_cmd_name_p): Declare.
2494 * defs.h (make_cleanup_dyn_string_delete): Declare.
2495 * utils.c: #include "dyn-string.h".
2496 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2497 * cli/cli-cmds.c: #include "dyn-string.h".
2498 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2499 (init_cli_cmds): Add new command.
2500 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2501
2502 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2503
2504 Fix compatibility with older GCCs.
2505 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2506 * stack.c (read_frame_arg): Initialize val_deref.
2507
2508 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2509
2510 Entry values NEWS entries, DWARF disassembly support.
2511 * NEWS: New entry values entry.
2512 (set print entry-values, show print entry-values)
2513 (set debug entry-values, show debug entry-values): New entries.
2514 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2515 indent. Remove variable start. Move header printing out. Respect
2516 INDENT. Support DW_OP_GNU_entry_value.
2517 (locexpr_describe_location_1): Move the header printing here, extend
2518 the disassemble_dwarf_expression passed parameters.
2519
2520 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2521
2522 Display @entry parameter values even for references.
2523 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2524 coerce_ref_if_computed.
2525 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2526 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2527 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2528 existing push_dwarf_reg_entry_value call. Add new detection calling
2529 dwarf_block_to_dwarf_reg_deref. Update the error message.
2530 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2531 * dwarf2expr.h
2532 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2533 parameter deref_size, describe it in the comment.
2534 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2535 (dwarf_block_to_dwarf_reg_deref): New declaration.
2536 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2537 deref_size, describe it in the function comment. New variables
2538 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2539 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2540 describe it in the function comment. Fetch the alternative block
2541 accoring to DEREF_SIZE.
2542 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2543 (entry_data_value_free_closure, entry_data_value_funcs): New.
2544 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2545 outer_val, target_val, val and addr. Try to fetch and create also
2546 referenced value content.
2547 (pieced_value_funcs): NULL value for coerce_ref.
2548 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2549 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2550 coerce_ref_if_computed.
2551 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2552 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2553 * stack.c (read_frame_arg): Compare also dereferenced values.
2554 * value.c (value_computed_funcs): Make the parameter v const, use
2555 value_lval_const for it.
2556 (value_lval_const, coerce_ref_if_computed): New function.
2557 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2558 * value.h (struct lval_funcs): New field coerce_ref.
2559 (value_computed_funcs): Make the parameter v const.
2560 (value_lval_const, coerce_ref_if_computed): New declarations.
2561
2562 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2563
2564 Support @entry in input expressions.
2565 * c-exp.y (ENTRY, unknown_cpp_name): New.
2566 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2567 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2568 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2569 (name_not_typename: ENTRY): New.
2570 (yylex): Recognize ENTRY.
2571 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2572 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2573 Likewise.
2574 * parse.c (operator_length_standard): Likewise.
2575 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2576
2577 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2578
2579 Display referenced values in backtraces.
2580 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2581 * stack.c (print_frame_arg): Likewise.
2582
2583 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2584
2585 Make some lval_funcs methods to default on NULL.
2586 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2587 NULL.
2588 (value_assign): Check if lval_computed write method is NULL.
2589 * value.h (struct lval_funcs): Comment NULL values for read and write
2590 methods.
2591
2592 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2593
2594 Display @entry parameter values (without references).
2595 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2596 New functions.
2597 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2598 New declarations.
2599 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2600 entry record.
2601 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2602 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2603 functions.
2604 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2605 (loclist_read_variable_at_entry): New function.
2606 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2607 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2608 DW_AT_location, call dwarf_block_to_sp_offset for it.
2609 * frame.h (print_entry_values_no, print_entry_values_only)
2610 (print_entry_values_preferred, print_entry_values_if_needed)
2611 (print_entry_values_both, print_entry_values_compact)
2612 (print_entry_values_default, print_entry_values): New declarations.
2613 (struct frame_arg): New field entry_kind.
2614 (read_frame_arg): New parameter entryargp.
2615 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2616 arg->entry_kind. Optionally print the `@entry' suffix.
2617 (list_args_or_locals): New variable entryarg, initialize it.
2618 Initialize also entry_kind of arg and entryarg. Conditionalize
2619 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2620 xfree for entryarg.error.
2621 * stack.c (print_entry_values_no, print_entry_values_only)
2622 (print_entry_values_preferred, print_entry_values_if_needed)
2623 (print_entry_values_both, print_entry_values_compact)
2624 (print_entry_values_default, print_entry_values_choices)
2625 (print_entry_values): New variables.
2626 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2627 print the `@entry' suffix, possibly in combination for
2628 print_entry_values_compact.
2629 (read_frame_arg): New parameter entryargp, new variables entryval,
2630 entryval_error and val_equal. Read in also entryargp, respect
2631 print_entry_values, compare the values using val_equal, fill in also
2632 argp->entry_kind (together with entryargp->entry_kind).
2633 (print_frame_args): New variable entryarg, initialize it.
2634 Conditionalize print_frame_arg for arg, add print_frame_arg for
2635 entryarg. Call xfree for entryarg.error.
2636 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2637 * symtab.h (struct symbol_computed_ops): New field
2638 read_variable_at_entry.
2639
2640 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2641
2642 Code reshuffle.
2643 * frame.h (struct frame_arg): New definition.
2644 (read_frame_arg): New declaration.
2645 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2646 (list_args_or_locals): ... the code here. New variable arg, call
2647 read_frame_arg and list_arg_or_local with it. Unify the
2648 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2649 arg.error.
2650 * stack.c (print_frame_arg): New functiom from the code of
2651 print_frame_args.
2652 (read_frame_arg): New function.
2653 (print_frame_args): Remove variable val. New variable arg, call
2654 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2655
2656 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2657
2658 Protect entry values against self tail calls.
2659 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2660 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2661
2662 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2663
2664 Recognize virtual tail call frames.
2665 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2666 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2667 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2668 * dwarf2-frame-tailcall.c: New file.
2669 * dwarf2-frame-tailcall.h: New file.
2670 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2671 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2672 REGS.PREV only after CIE execution.
2673 (struct dwarf2_frame_cache): New field tailcall_cache.
2674 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2675 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2676 parts, try to find entry_cfa_sp_offset. Call
2677 dwarf2_tailcall_sniffer_first.
2678 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2679 when appropriate.
2680 (dwarf2_frame_dealloc_cache): New function.
2681 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2682 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2683 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2684 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2685 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2686 * dwarf2loc.c (func_addr_to_tail_call_list)
2687 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2688 (call_site_find_chain_1, call_site_find_chain): New.
2689 * dwarf2loc.h (struct call_site_chain): New.
2690 (call_site_find_chain): New declaration.
2691 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2692 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2693 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2694 * stack.c (frame_info): Support also TAILCALL_FRAME.
2695
2696 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2697
2698 Tail call sites reader implementation.
2699 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2700 fill in TYPE_TAIL_CALL_LIST.
2701 * gdbtypes.h (struct func_type): New field tail_call_list.
2702 (struct call_site): New field tail_call_next.
2703 (TYPE_TAIL_CALL_LIST): New definition.
2704
2705 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2706
2707 Implement basic support for DW_TAG_GNU_call_site.
2708 * block.c: Include gdbtypes.h and exceptions.h.
2709 (call_site_for_pc): New function.
2710 * block.h (call_site_for_pc): New declaration.
2711 * defs.h: Include hashtab.h.
2712 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2713 declarations.
2714 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2715 ctx_no_push_dwarf_reg_entry_value.
2716 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2717 (dwarf_block_to_dwarf_reg): New function.
2718 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2719 (ctx_no_push_dwarf_reg_entry_value): New function.
2720 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2721 push_dwarf_reg_entry_value.
2722 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2723 declarations.
2724 * dwarf2loc.c: Include gdbcmd.h.
2725 (dwarf_expr_ctx_funcs): New forward declaration.
2726 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2727 (dwarf_expr_reg_to_entry_parameter)
2728 (dwarf_expr_push_dwarf_reg_entry_value): New.
2729 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2730 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2731 (needs_dwarf_reg_entry_value): New function.
2732 (needs_frame_ctx_funcs): Install it.
2733 (_initialize_dwarf2loc): New function.
2734 * dwarf2loc.h (entry_values_debug): New declaration.
2735 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2736 (read_call_site_scope): New forward declaration.
2737 (process_full_comp_unit): Copy call_site_htab.
2738 (process_die): Support DW_TAG_GNU_call_site.
2739 (read_call_site_scope): New function.
2740 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2741 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2742 (cleanup_htab): Delete.
2743 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2744 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2745 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2746 FIELD_LOC_KIND_DWARF_BLOCK.
2747 * gdbtypes.h (enum field_loc_kind): New entry
2748 FIELD_LOC_KIND_DWARF_BLOCK.
2749 (struct main_type): New loc entry dwarf_block.
2750 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2751 (TYPE_FIELD_DWARF_BLOCK): New.
2752 * python/py-type.c: Include dwarf2loc.h.
2753 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2754 internal_error call on unknown FIELD_LOC_KIND.
2755 * symtab.h (struct symtab): New field call_site_htab.
2756 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2757 (core_addr_hash, core_addr_eq): New functions.
2758
2759 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2760
2761 Code reshuffle.
2762 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2763 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2764 calling_convention under func_stuff there.
2765 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2766 (init_type) <TYPE_CODE_FUNC>: Likewise.
2767 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2768 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2769 * gdbtypes.h (enum type_specific_kind): Change
2770 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2771 (struct main_type) <type_specific>: Change calling_convention to
2772 func_stuff. Move calling_convention to ...
2773 (struct func_type): ... this new struct.
2774 (INIT_FUNC_SPECIFIC): New #define.
2775 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2776
2777 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2778
2779 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2780 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2781 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2782 ctx->ref_addr_size. Handle its invalid value.
2783 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2784 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2785 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2786 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2787 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2788 (dwarf2_per_cu_ref_addr_size): New function.
2789
2790 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2791
2792 Code cleanup.
2793 * dwarf2read.c (per_cu_header_read_in): New function.
2794 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2795 variables cu_header_local and cu_headerp.
2796
2797 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2798
2799 Fix initial language detection with -readnow.
2800 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2801 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2802 searches only for global symbols.
2803
2804 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2805
2806 Fix printed anonymous struct name.
2807 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2808 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2809 (anonymous_struct_prefix): New function.
2810 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2811 (dwarf2_name): Strip for anonymous structs any prefixes.
2812
2813 2011-10-07 Doug Evans <dje@google.com>
2814
2815 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2816 `replace'.
2817
2818 * python/lib/gdb/printing.py: Whitespace cleanup.
2819
2820 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2821 warning.
2822
2823 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2824
2825 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2826 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2827 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2828 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2829 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2830 (arm_linux_remove_watchpoint): Adjust.
2831 * i386-linux-nat.c (i386_linux_dr_set_control)
2832 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2833 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2834 (ia64_linux_remove_watchpoint): Adjust.
2835 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2836 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2837 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2838 (ppc_linux_insert_mask_watchpoint)
2839 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2840 (ppc_linux_remove_watchpoint): Adjust.
2841 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2842 Adjust.
2843
2844 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2845
2846 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2847 (clear_win32_environment): New function for Cygwin to clear out
2848 Win32 environment.
2849 (windows_create_inferior): Prepare new environment from in_env
2850 for Cygwin, too.
2851
2852 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2853
2854 PR python/13264
2855 * python/py-value.c (valpy_call): Check that arguments are
2856 a tuple.
2857 (is_intlike): Remove call to CHECK_TYPEDEF.
2858 (valpy_nonzero): Catch GDB exceptions.
2859 (valpy_absolute): Ditto.
2860 (valpy_lazy_string): Ditto.
2861 (valpy_call): Ditto.
2862 (valpy_get_is_optimized_out): Ditto.
2863 (valpy_long): Ditto.
2864 (valpy_float): Ditto.
2865 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2866 (valpy_richcompare): Ditto.
2867
2868 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2869
2870 * inferior.h (disable_randomization): Declare.
2871 * infrun.c (disable_randomization): New global variable.
2872 (show_disable_randomization): New function.
2873 (set_disable_randomization): Likewise.
2874 (_initialize_infrun): Install set/show disable-randomization
2875 commands.
2876 * linux-nat.c (disable_randomization): Remove.
2877 (show_disable_randomization): Likewise.
2878 (set_disable_randomization): Likewise.
2879 (_initialize_linux_nat): No longer install set/show
2880 disable-randomization commands here.
2881 (linux_nat_supports_disable_randomization): New function.
2882 (linux_nat_add_target): Install it.
2883 * remote.c (PACKET_QDisableRandomization): New enum value.
2884 (remote_protocol_packets): Support QDisableRandomization.
2885 (_initialize_remote): Likewise.
2886 (remote_supports_disable_randomization): New function.
2887 (init_remote_ops): Install it.
2888 (extended_remote_supports_disable_randomization): New function.
2889 (init_extended_remote_ops): Install it.
2890 (extended_remote_disable_randomization): New function.
2891 (extended_remote_create_inferior_1): Call it.
2892 * target.h (struct target_ops): Add to_supports_disable_randomization.
2893 (target_supports_disable_randomization): Add prototype.
2894 * target.c (target_supports_disable_randomization): New function.
2895 (find_default_supports_disable_randomization): Likewise.
2896 (init_dummy_target): Install it.
2897
2898 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2899
2900 Allow Python notification of new object-file loadings.
2901 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2902 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2903 Add build rule for this file.
2904 * python/py-event.h (emit_new_objfile_event): New prototype.
2905 (newobjfile): New Python event emitter.
2906 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2907 Python event registry.
2908 * python/py-inferior.c: Include objfiles.h
2909 (python_new_objfile): New function.
2910 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2911 observers.
2912 * python/py-newobjfileevent.c: New file.
2913 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2914 prototype.
2915 * python/python.c (_initialize_python): Add
2916 gdbpy_initialize_new_objfile_event call.
2917 * NEWS: Add item for new Python event "gdb.newobjfile"
2918
2919 2011-10-05 Tristan Gingold <gingold@adacore.com>
2920
2921 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2922 Extract the ravenscar task name from the symbol for the atcb.
2923
2924 2011-10-04 Paul Koning <paul_koning@dell.com>
2925
2926 * python/py-type.c (typy_make_iter): Add forward declaration.
2927 (typy_fields_items): Use the gdb.Type iterator.
2928
2929 2011-10-04 Paul Koning <paul_koning@dell.com>
2930
2931 * NEWS: Add entry for Python gdb.Type mapping methods.
2932
2933 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
2934
2935 PR python/12691: Add the inferior to Python exited event
2936 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2937 to exited_event.
2938 * python/py-event.h (emit_exited_event): Likewise
2939 * python/-inferior.c (python_inferior_exit): Likewise
2940
2941 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2942
2943 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2944 in output of -ada-task-info GDB/MI command.
2945
2946 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2947
2948 * ada-lang.h (struct inferior): Declare.
2949 (print_ada_task_info): Add declaration.
2950 * ada-tasks.c (print_ada_task_info): Make non-static.
2951 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2952 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2953 * mi/mi-main.c: #include "ada-lang.h".
2954 (mi_cmd_list_features): Add "ada-task-info" to the list
2955 of supported features.
2956 (mi_cmd_ada_task_info): New function.
2957
2958 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2959
2960 * python/python.c (python_run_simple_file): New function.
2961 (source_python_script, source_python_script_for_objfile):
2962 Replace call to PyRun_SimpleFile by call to
2963 python_run_simple_file.
2964
2965 2011-10-03 Paul Koning <paul_koning@dell.com>
2966
2967 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2968 (value_to_value_object): Fetch value if it was lazy.
2969
2970 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2971
2972 Code cleanup.
2973 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2974 Rearrange the code for it.
2975
2976 2011-10-02 Joel Brobecker <brobecker@adacore.com>
2977
2978 * breakpoint.c (bkpt_print_recreate): Add call to
2979 print_recreate_thread.
2980
2981 2011-09-29 Mike Frysinger <vapier@gentoo.org>
2982
2983 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2984 PTRACE_GETFDPIC_INTERP): Define.
2985
2986 2011-09-28 Yao Qi <yao@codesourcery.com>
2987
2988 * symfile.c (add_symbol_file_command): Update message on usage.
2989
2990 2011-09-28 Paul Koning <paul_koning@dell.com>
2991
2992 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2993 (typy_length, typy_get, typy_has_key, typy_make_iter)
2994 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2995 (typy_iterator_iter, typy_iterator_iternext)
2996 (typy_iterator_dealloc): New functions to implement standard
2997 Python mapping methods on gdb.Type object.
2998 (gdb.TypeIterator): New Python type.
2999 * python/python-internal.h (gdbpy_iter_kind): New enum.
3000
3001 2011-09-28 David S. Miller <davem@davemloft.net>
3002
3003 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
3004 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
3005 * sparc-tdep.c (sparc_complex_floating_p): New function.
3006 (sparc32_store_arguments): Handle complex floats.
3007 (sparc32_extract_return_value): Likewise.
3008 (sparc32_store_return_value): Likewise.
3009 (sparc32_stabs_argument_has_addr): Likewise.
3010 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
3011 (sparc64_store_floating_fields): Handle complex floats.
3012 (sparc64_store_arguments): Likewise.
3013 (sparc64_store_return_value): Likewise.
3014
3015 2011-09-28 Eli Zaretskii <eliz@gnu.org>
3016
3017 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
3018 before the change on 2006-12-09.
3019 (windows_create_inferior) [!__CYGWIN__]: Restore code that
3020 generates the environment block for CreateProcessA, modulo the
3021 Cygwin-specific parts that are not needed here.
3022
3023 2011-09-27 Tristan Gingold <gingold@adacore.com>
3024
3025 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
3026 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
3027 (darwin_solib_get_all_image_info_addr_at_init): New function.
3028 (darwin_solib_read_all_image_info_addr): Likewise.
3029 (darwin_solib_create_inferior_hook): Use the above two functions.
3030 * darwin-nat.c (darwin_execvp): Renames retval to res.
3031 (darwin_read_write_inferior): Update comment.
3032 (darwin_read_dyld_info): New function.
3033 (darwin_xfer_partial): Handle DYLD_INFO.
3034
3035 2011-09-27 Stan Shebs <stan@codesourcery.com>
3036
3037 Add return address collection for tracepoints.
3038 * tracepoint.c (encode_actions_1): Add case for $_ret.
3039 (validate_actionline): Check for $_ret.
3040 (trace_dump_actions): Ditto.
3041 * ax-gdb.h (gen_trace_for_return_address): Declare.
3042 * ax-gdb.c: Include arch-utils.h.
3043 (gen_trace_for_return_address): New function.
3044 (agent_command): Add return address special case.
3045 * amd64-tdep.c: Include ax.h and ax-gdb.h.
3046 (amd64_gen_return_address): New function.
3047 (amd64_init_abi): Call it.
3048 * i386-tdep.c: Include ax.h and ax-gdb.h.
3049 (i386_gen_return_address): New function.
3050 (i386_init_abi): Call it.
3051 * arch-utils.h (default_gen_return_address): Declare.
3052 * arch-utils.c (default_gen_return_address): New function.
3053 * gdbarch.sh (gen_return_address): New method.
3054 * gdbarch.h, gdbarch.c: Regenerate.
3055
3056 2011-09-23 Joseph Myers <joseph@codesourcery.com>
3057
3058 PR gdb/13079
3059 * i386-tdep.c (i386_frame_align): New.
3060 (i386_gdbarch_init): Use i386_frame_align.
3061
3062 2011-09-23 Yao Qi <yao@codesourcery.com>
3063
3064 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
3065 to get address.
3066
3067 2011-09-22 Tristan Gingold <gingold@adacore.com>
3068
3069 * fork-child.c (fork_inferior): Add exec_fun parameter.
3070 Call exec_fun or execvp.
3071 * inferior.h: Adjust prototype.
3072 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
3073 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
3074 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
3075 * procfs.c (procfs_create_inferior): Ditto.
3076 * darwin-nat.c (darwin_execvp): New function.
3077 (darwin_create_inferior): Use it.
3078
3079 2011-09-22 Yao Qi <yao@codesourcery.com>
3080
3081 * infrun.c (context_switch): Print debug message when switching to
3082 a different thread.
3083
3084 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
3085
3086 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
3087 complex and vector types.
3088 (s390_return_value_convention): Likewise.
3089
3090 (s390_value_from_register): Call check_typedef.
3091 (extend_simple_arg): Likewise.
3092 (alignment_of): Likewise.
3093 (s390_push_dummy_call): Likewise.
3094 (s390_return_value): Likewise.
3095
3096 2011-09-21 Joseph Myers <joseph@codesourcery.com>
3097
3098 * event-top.c (async_disconnect): If an exception is thrown from
3099 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
3100 catch_errors.
3101 * top.c (quit_cover): Return void and take no arguments.
3102 * top.h (quit_cover): Update prototype.
3103
3104 2011-09-20 Joseph Myers <joseph@codesourcery.com>
3105
3106 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
3107 current_uiout, not uiout.
3108
3109 2011-09-19 Doug Evans <dje@google.com>
3110
3111 * python/py-auto-load.c (source_section_scripts): Fix file
3112 descriptor leak.
3113 * python/python.c (source_python_script_for_objfile): Tweak comments.
3114
3115 2011-09-18 Yao Qi <yao@codesourcery.com>
3116 Ulrich Weigand <ulrich.weigand@linaro.org>
3117
3118 Support displaced stepping for Thumb 16-bit insns.
3119 * arm-tdep.c (THUMB_NOP) Define.
3120 (thumb_copy_unmodified_16bit): New.
3121 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
3122 (thumb_copy_alu_reg): New.
3123 (arm_copy_svc): Move some common code to ...
3124 (install_svc): ... here. New.
3125 (thumb_copy_svc): New.
3126 (install_pc_relative): New.
3127 (thumb_copy_pc_relative_16bit): New.
3128 (thumb_decode_pc_relative_16bit): New.
3129 (thumb_copy_16bit_ldr_literal): New.
3130 (thumb_copy_cbnz_cbz): New.
3131 (cleanup_pop_pc_16bit_all): New.
3132 (thumb_copy_pop_pc_16bit): New.
3133 (thumb_process_displaced_16bit_insn): New.
3134 (thumb_process_displaced_32bit_insn): New.
3135 (thumb_process_displaced_insn): process thumb instruction.
3136
3137 Support displaced stepping for Thumb 32-bit insns.
3138 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
3139 (thumb2_copy_preload): New.
3140 (thumb2_copy_copro_load_store): New.
3141 (thumb2_copy_b_bl_blx): New.
3142 (thumb2_copy_alu_imm): New.
3143 (thumb2_copy_load_reg_imm): New.
3144 (thumb2_copy_load_literal): New
3145 (thumb2_copy_block_xfer): New.
3146 (thumb_32bit_copy_undef): New.
3147 (thumb_32bit_copy_unpred): New.
3148 (thumb2_decode_ext_reg_ld_st): New.
3149 (thumb2_decode_svc_copro): New.
3150 (decode_thumb_32bit_store_single_data_item): New.
3151 (thumb_copy_pc_relative_32bit): New.
3152 (thumb_decode_pc_relative_32bit): New.
3153 (decode_thumb_32bit_ld_mem_hints): New.
3154 (thumb2_copy_table_branch): New
3155 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
3156 instructions.
3157
3158 2011-09-18 Yao Qi <yao@codesourcery.com>
3159
3160 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
3161 (install_b_bl_blx): Likewise.
3162
3163 2011-09-17 Yao Qi <yao@codesourcery.com>
3164
3165 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
3166 (install_load_store): ... this. New.
3167 Change parameter BYTE to SIZE.
3168 (arm_copy_ldr_str_ldrb_strb): Update caller.
3169 (arm_decode_ld_st_word_ubyte): Update caller.
3170
3171 2011-09-17 Yao Qi <yao@codesourcery.com>
3172
3173 * infrun.c (displaced_step_fixup): Move some code ...
3174 (displaced_step_restore): ... here. New function.
3175 (handle_inferior_event): Cleanup displaced stepping state for both
3176 child and parent when get forked or vforked event.
3177 * regcache.c (get_thread_arch_aspace_regcache): New function.
3178 get_thread_arch_regcache (): Call it.
3179
3180 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3181
3182 * ada-tasks.c (print_ada_task_info): New function, merging
3183 short_task_info and info_tasks together. Reimplement using
3184 ui-out instead of printing to stdout directly. Move the code
3185 building and checking the task list here, instead of leaving it
3186 in info_tasks_command.
3187 (info_task): Move the code building and checking the task
3188 list here, instead of leaving it in info_tasks_command.
3189 (info_tasks_command): Delete code building and checking
3190 the task list - moved elsewhere. Update calls to info_tasks
3191 and info_task.
3192
3193 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3194
3195 * ada-tasks.c (info_task): Delete parameter `from_tty'.
3196
3197 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3198
3199 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
3200
3201 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3202
3203 * ada-lang.h (ada_build_task_list): Remove parameter
3204 `warn_if_null'.
3205 * ada-tasks.c (ada_build_task_list): Remove parameter
3206 `warn_if_null'. Adjust implementation and documentation.
3207 (valid_task_id, ada_get_environment_task)
3208 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
3209 (info_tasks_command): Adjust implementation.
3210 (task_command): Likewise.
3211 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
3212 to ada_build_task_list.
3213
3214 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3215
3216 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
3217 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
3218 (ada_tasks_inferior_data_handle): New static global.
3219 (get_ada_tasks_inferior_data): New function.
3220 (ada_get_task_number, get_task_number_from_id, valid_task_id)
3221 (ada_get_environment_task, iterate_over_live_ada_tasks)
3222 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
3223 Adjust.
3224 (ada_set_current_inferior_known_tasks_addr): New function.
3225 (read_known_tasks, ada_build_task_list, short_task_info)
3226 (info_tasks, info_task, info_tasks_command, task_command_1)
3227 (task_command, ada_task_list_changed): Adjust.
3228 (ada_tasks_invalidate_inferior_data): New function.
3229 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
3230 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
3231 * ada-lang.h (struct inferior): Add declaration.
3232 (ada_task_list_changed): Update profile.
3233 * remote-wtx-pd.c: #include "inferior.h".
3234 (switch_to_pd_internal): Update call to ada_task_list_changed.
3235
3236 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3237
3238 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
3239 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
3240 (atcb_fieldno): Delete these static globals.
3241 (struct ada_tasks_pspace_data): New struct.
3242 (ada_tasks_pspace_data_handle): New static global.
3243 (get_ada_tasks_pspace_data): New function.
3244 (ada_tasks_invalidate_pspace_data): New function.
3245 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
3246 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
3247 (_initialize_tasks): Create this module's per-progspace
3248 data handle.
3249
3250 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3251
3252 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
3253
3254 2011-09-16 Tristan Gingold <gingold@adacore.com>
3255
3256 * fork-child.c (fork_inferior): Update comment. Use alloca
3257 instead of xmalloc for argv. Move len and shell_command
3258 declarations in the block where they are used.
3259 Only call execvp. Factorize failure code.
3260
3261 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
3262
3263 Code cleanup.
3264 * parse.c (write_exp_elt): Change argument to pass a pointer of union
3265 `exp_element' instead of an element of the same and make the function
3266 static.
3267 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
3268 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
3269 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
3270 Change argument of `write_exp_elt' function call.
3271 Remove extra spaces from comments.
3272 * parser-defs.h (write_exp_elt): Remove prototype.
3273
3274 2011-09-15 Paul Koning <paul_koning@dell.com>
3275
3276 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3277 count of item appended to list.
3278 * python/py-type.c (typy_fields): Likewise.
3279
3280 2011-09-15 Paul Koning <paul_koning@dell.com>
3281
3282 * MAINTAINERS (Write After Approval): Add myself to the list.
3283
3284 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3285
3286 PR threads/12628
3287 * linux-fork.c (checkpoint_command): Disallow checkpointing of
3288 processes with multiple threads.
3289 (inf_has_multiple_thread_cb): New function.
3290 (inf_has_multiple_threads): New function.
3291
3292 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3293
3294 PR Python/12692 Add gdb.selected_inferior() to Python interface.
3295 * python/py-inferior.c (GdbMethods): New Python method definition.
3296
3297 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3298
3299 Handle multiple breakpoint hits in Python interface:
3300 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3301 variable to breakpoints.
3302 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3303 bps instead of single breakpoint. Fix some space typos.
3304 * python/py-stopevent.c (create_breakpoint_event_object): Rename
3305 variable to breakpoints.
3306
3307 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3308
3309 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3310 note if the breakpoint is internal.
3311
3312 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3313
3314 * MAINTAINERS (Write After Approval): Add myself to the list
3315
3316 2011-09-14 Pedro Alves <pedro@codesourcery.com>
3317
3318 * infrun.c (prepare_for_detach, wait_for_inferior)
3319 (fetch_inferior_event): Don't flush the register cache.
3320 * remote.c (struct stop_reply) <regcache>: Add comment.
3321
3322 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3323
3324 Remove excessive DWARF expressions memory duplication.
3325 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3326 for block.data.
3327 (indirect_pieced_value): Remove variable result. Remove variable
3328 back_to and its use for baton.data.
3329 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3330 block.data.
3331 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3332 Update the function comment.
3333
3334 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3335
3336 * inferior.h (ALL_INFERIORS): New.
3337 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3338 for a stopped thread.
3339 (thread_db_find_new_threads): Look for threads in all inferiors.
3340
3341 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3342
3343 * breakpoint.c (update_watchpoint): Handle the case of the
3344 watchpoint to update not being in the breakpoint list yet.
3345 (hw_watchpoint_use_count): New, factored out from
3346 hw_watchpoint_used_count.
3347 (hw_watchpoint_used_count): Rename to ...
3348 (hw_watchpoint_used_count_others): ... this. Add `except'
3349 parameter. Don't count resources of `except'. Use
3350 hw_watchpoint_use_count.
3351
3352 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3353
3354 * gdbthread.h (enum thread_state): Moved here.
3355 (struct thread_info): Rename `executing_' field to `executing' and
3356 `state_' to `state'.
3357 * thread.c (enum thread_state): Moved to gdbthread.h.
3358 (new_thread, add_thread_silent, delete_thread_1)
3359 (any_live_thread_of_process, thread_alive, set_running)
3360 (set_running, is_thread_state, any_running, is_executing)
3361 (set_executing, finish_thread_state, print_thread_info)
3362 (do_captured_thread_select): Adjust.
3363
3364 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3365
3366 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3367 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3368
3369 2011-09-12 Pedro Alves <pedro@codesourcery.com>
3370 Matt Rice <ratmice@gmail.com>
3371
3372 PR gdb/13175
3373
3374 * interps.c (struct interp) <interpreter_out>: Delete field.
3375 (interp_new): Remove the data and uiout parameters and adjust.
3376 (interp_set): Only set the current_uiout from the interpreter's
3377 uiout after initializing the interpreter. Adjust call to
3378 init_proc.
3379 (interp_ui_out): Adjust to call procs->ui_out_proc.
3380 (interp_data, interp_name): New.
3381 * interps.h (interp_init_ftype): Add `self' parameter.
3382 (interp_ui_out_ftype): New typedef.
3383 (struct interp_procs) <ui_out_proc>: New method pointer.
3384 (interp_new): Remove the data and uiout parameters.
3385 (interp_data, interp_name): Declare.
3386 * tui/tui-interp.c (tui_init): Adjust prototype.
3387 (tui_ui_out): New.
3388 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3389 tui_out here. Adjust call to interp_new.
3390 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3391 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3392 (cli_ui_out): New.
3393 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3394 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3395 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3396 Initialize mi->uiout depending on the mi_version as extracted from
3397 the interpreter's name.
3398 (mi_ui_out): New.
3399 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3400 interp_new. Don't allocate the ui_out's of the interpreters here.
3401
3402 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
3403
3404 * solib.c (solib_used): New function.
3405 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3406 by another so_list object before freeing it.
3407
3408 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3409
3410 Code cleanup.
3411 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3412 values.
3413
3414 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3415
3416 Code cleanup.
3417 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3418 (amd64_skip_xmm_prologue): ... this new function. Describe its
3419 parameters. No longer use amd64_prologue_line_bug.
3420 * defs.h (producer_is_gcc_ge_4): New declaration.
3421 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3422 (process_full_comp_unit): Update its caller. Remove
3423 amd64_prologue_line_bug initialization.
3424 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3425 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3426
3427 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3428
3429 * linux-nat.h (enum resume_kind): New.
3430 (struct lwp_info) <last_resume_kind>: New field.
3431 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3432 resume_stop on the new lwp.
3433 (add_lwp): Set last_resume_kind as resume_continue by default.
3434 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3435 (resume_lwp): New, factored out from resume_callback. Also check
3436 for pending status in lp->waitstatus.
3437 (resume_callback): Reimplement.
3438 (resume_clear_callback): Set last_resume_kind as resume_stop.
3439 (resume_set_callback): Set last_resume_kind as resume_continue.
3440 (linux_nat_resume, linux_handle_extended_wait): Set
3441 last_resume_kind.
3442 (running_callback): Also check lp->waitstatus for pending events.
3443 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3444 is resume_step.
3445 (stop_and_resume_callback): Don't re-resume if the core wanted the
3446 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3447 using an invalidated pointer.
3448 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3449 SIGSTOPs if the core wanted the LWP to stop.
3450 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3451 wanted the lwp to stop. If the core wanted the lwp to stop, and
3452 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3453 of TARGET_SIGNAL_STOP.
3454 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3455 here. Instead, signal the lwp, and set the last_resume_kind to
3456 resume_stop.
3457
3458 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3459
3460 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3461 -1 (error), if the lwp exits right after attaching.
3462
3463 2011-09-08 Doug Evans <dje@google.com>
3464
3465 * py-cmd.c: Some minor formatting fixes.
3466 (gdbpy_parse_command_name): Rename text arg to name, make const.
3467 All callers updated.
3468 * python-internal.h (gdbpy_parse_command_name): Update.
3469
3470 * cli/cli-decode.c (add_cmd): Add comment.
3471
3472 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3473
3474 PR breakpoints/12435
3475 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3476 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3477 * dwarf2read.c (process_full_comp_unit): Initialize
3478 amd64_prologue_line_bug.
3479 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3480
3481 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3482
3483 Fix TUI screen corruption.
3484 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3485 batch_flag.
3486
3487 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3488
3489 * findvar.c (read_var_value): Never return NULL, throw an error
3490 instead. Update the function comment. State symbol name in the error
3491 messages.
3492 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3493 read_var_value.
3494 * stack.c (print_frame_args): Likewise.
3495 * valops.c (value_of_variable): Likewise.
3496
3497 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3498
3499 * stack.c (print_frame_args): New variable except. Wrap
3500 read_var_value and common_val_print into TRY_CATCH.
3501
3502 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3503
3504 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3505 caller to value_of_this.
3506 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3507 Twice.
3508 * valops.c (value_of_this): Remove parameter complain and variable ret.
3509 Update function comment. Never return NULL by this code.
3510 (value_of_this_silent): New function.
3511 * value.h (value_of_this): Remove parameter complain.
3512 (value_of_this_silent): New declaration.
3513
3514 2011-09-07 Yao Qi <yao@codesourcery.com>
3515
3516 * gdbthread.h (struct thread_info): Remove fields
3517 `stepping_through_solib_after_catch' and
3518 `stepping_through_solib_catchpoints'.
3519 * infrun.c (init_thread_stepping_state): Update.
3520 (process_event_stop_test, currently_stepping): Update.
3521 (currently_stepping_or_nexting_callback): Update.
3522
3523 2011-09-07 Yao Qi <yao@codesourcery.com>
3524
3525 * gdbthread.h (struct thread_info): Comment on field
3526 `step_after_step_resume_breakpoint'.
3527
3528 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3529
3530 * remote.c (remote_console_output): Reindent.
3531
3532 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
3533
3534 * frame.c (has_stack_frames): Check for currently selected
3535 traceframe.
3536
3537 2011-09-06 Pedro Alves <pedro@codesourcery.com>
3538
3539 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3540 (set_async_annotation_level, set_async_prompt, pop_prompt)
3541 (push_prompt, new_async_prompt): Delete declarations.
3542 * top.h (get_prompt, set_prompt): Change prototype.
3543 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3544 declarations.
3545 * top.c (command_loop):
3546 (top_prompt): New global.
3547 (get_prefix, set_prefix, get_suffix, ): Delete.
3548 (get_prompt, set_prompt): Rewrite.
3549 (show_new_async_prompt): Rename to ...
3550 (show_prompt): ... this.
3551 (init_main): Adjust. Don't handle --annotate=2 here.
3552 * event-top.c (new_async_prompt): Delete.
3553 (the_prompts): Delete.
3554 (more_to_come): Make static.
3555 (display_gdb_prompt): Use top_level_prompt() to compute the top
3556 level prompt, and don't notify the before_prompt observers
3557 directly here. Always trick readline into not trying to display
3558 the prompt if sync_execution and displaying the primary prompt.
3559 If displaying a local/secondary prompt, always show it, even if
3560 sync_execution is set.
3561 (change_annotation_level): Delete.
3562 (top_level_prompt): New, based on change_annotation_level.
3563 (push_prompt, pop_prompt): Delete.
3564 (async_disable_stdin): No longer pushes prompt.
3565 (command_line_handler): No longer pushes or pops prompt. If more
3566 input is expected, call display_gdb_prompt with an explicit empty
3567 prompt.
3568 (async_stop_sig): Adjust.
3569 (set_async_annotation_level, set_async_prompt): Delete.
3570 * python/python.c (before_prompt_hook): Adjust.
3571
3572 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3573
3574 PR cli/13110
3575
3576 * infrun.c (fetch_inferior_event): Check if there's a selected
3577 thread before checking if the selected thread is executing.
3578
3579 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3580
3581 * inf-loop.c (execute_command): Don't check if the current thread
3582 if running before synchronously waiting for command completion.
3583 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3584 here.
3585 (normal_stop): Call async_enable_stdin here.
3586 * inf-loop.c (inferior_event_handler): Don't call
3587 async_enable_stdin, nor handle "set exec-done-display" here.
3588
3589 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3590
3591 GDB 7.3.1 released.
3592
3593 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3594
3595 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3596
3597 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3598
3599 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3600
3601 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3602
3603 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3604
3605 2011-09-02 Matt Rice <ratmice@gmail.com>
3606
3607 PR gdb/10720
3608 * event-top.c (cli_command_loop): Replace readline setup with
3609 direct call to display_gdb_prompt.
3610 (display_gdb_prompt): Do not call observer mechanism during
3611 synchronous execution.
3612
3613 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3614
3615 * linux-nat.c (in_pid_list_p): New.
3616 (linux_record_stopped_pid): Delete.
3617 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3618 already attached to the LWP. Return an indication if so.
3619 (linux_nat_filter_event): Adjust.
3620 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3621 returning an indication to ignore this thread.
3622
3623 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3624
3625 * top.c: Include interps.h.
3626 (execute_command): If the target can async, but the interpreter is
3627 in sync mode, synchronously wait for the command to finish before
3628 returning.
3629 (execute_command_to_string): Force the interpreter to sync mode.
3630 * infrun.c: Include interps.h.
3631 (fetch_inferior_event): Don't restore the prompt yet if the
3632 interpreter is in sync mode.
3633 * interps.c (interpreter_async): New global.
3634 * interps.h (interpreter_async): Declare.
3635 * inf-loop.c: Include interps.h.
3636 (inferior_event_handler): Don't print the language change or run
3637 breakpoint commands yet if the interpreter in is sync mode.
3638 * main.c (captured_command_loop): Flip the interpreter to async
3639 mode.
3640 * cli/cli-script.c: Include interps.h.
3641 (execute_user_command, while_command, if_command): Force the
3642 interpreter to sync mode.
3643 * python/python.c: Include interps.h.
3644 (python_command, execute_gdb_command): Force the interpreter to
3645 sync mode.
3646
3647 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3648
3649 * value.c (show_convenience): Catch errors thrown while printing
3650 each internal variable.
3651 * infrun.c (validate_siginfo_access): New function.
3652 (siginfo_value_read, siginfo_value_write): Call it.
3653
3654 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3655
3656 Revert:
3657 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3658 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3659 attribute.
3660
3661 2011-08-29 Yao Qi <yao@codesourcery.com>
3662
3663 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3664 (cmp_name): New.
3665 (enable_break2): Update caller.
3666 * solib-frv.c (bfd_lookup_symbol): Removed.
3667 (cmp_name): New.
3668 (enable_break2): Update caller.
3669 * solib-pa64.c (bfd_lookup_symbol): Removed.
3670 (cmp_name): New.
3671 * solib-svr4.c (bfd_lookup_symbol): Removed.
3672 (cmp_name_and_sec_flags): New.
3673 (enable_break): Update caller.
3674 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3675 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3676 (gdb_bfd_lookup_symbol): New.
3677 * solib.h: Functions declarations.
3678
3679 2011-08-29 Yao Qi <yao@codesourcery.com>
3680
3681 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3682 and solib-dsbt.o.
3683
3684 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3685
3686 Fix TUI stepi on code without symbols.
3687 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3688 current PC instead.
3689
3690 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3691
3692 Code cleanup.
3693 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3694 and the static keyword.
3695 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3696 Make prefix an array.
3697 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3698 * mi/mi-main.c (get_register): Remove stb initialization and the static
3699 keyword.
3700
3701 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3702
3703 Code cleanup - make mi_opt const.
3704 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3705 opts const.
3706 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3707 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3708 (mi_cmd_env_dir): Likewise.
3709 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3710 (mi_cmd_target_file_put): Likewise.
3711 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3712 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3713 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3714 (mi_valid_noargs): Make opts const.
3715 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3716 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3717 (mi_cmd_data_read_memory): Likewise.
3718 (mi_cmd_data_read_memory_bytes): Likewise.
3719 (mi_cmd_data_write_memory): Likewise.
3720
3721 2011-08-26 Matt Rice <ratmice@gmail.com>
3722
3723 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3724 bcache_xmalloc, replace bcache_xmalloc with call to
3725 psymbol_bcache_init for psymbol_cache.
3726 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3727
3728 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3729
3730 * inf-loop.c (inferior_event_handler): Add exception_print in
3731 INF_EXEC_COMPLETE.
3732
3733 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3734
3735 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3736 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3737 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3738 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3739 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3740 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3741 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3742 * infrun.c (fetch_inferior_event): Call
3743 make_bpstat_clear_actions_cleanup.
3744 * top.c (execute_command): New variable cleanup_if_error, call
3745 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3746 * utils.c (do_bpstat_clear_actions_cleanup)
3747 (make_bpstat_clear_actions_cleanup): New functions.
3748
3749 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3750
3751 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3752 either the parent or the child forks. Rename a couple locals.
3753
3754 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3755
3756 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3757 library call. Avoid reading the `status' local if all waitpid
3758 calls failed.
3759
3760 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3761
3762 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3763 opening /proc/PID/task always succeeds.
3764
3765 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3766
3767 * linespec.c (symtab_from_filename): Check for the end of string.
3768
3769 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3770
3771 PR mi/11912
3772 * varobj.c (cplus_describe_child): Add the keyword
3773 'class' to the output of the method when dealing
3774 with a cast to a base class.
3775
3776 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3777
3778 No functionality change.
3779 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3780 function comment a reference, new variables tp and bs, move here code
3781 from throw_exception.
3782 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3783 describe it in the comment.
3784 * exceptions.c (throw_exception): Remove variable tp, move the code for
3785 bpstat_clear_actions to bpstat_clear_actions.
3786
3787 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3788
3789 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3790 * linux-nat.c: Include linux-procfs.h.
3791 (linux_proc_get_tgid): Move to ...
3792 * common/linux-procfs.c: ... here. New file.
3793 * common/linux-procfs.h: New file.
3794 * linux-thread-db.c: Include linux-procfs.h.
3795 * Makefile.in: Update dependencies.
3796 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3797 * config/arm/linux.mh: Likewise.
3798 * config/i386/linux.mh: Likewise.
3799 * config/i386/linux64.mh: Likewise.
3800 * config/ia64/linux.mh: Likewise.
3801 * config/m32r/linux.mh: Likewise.
3802 * config/m68k/linux.mh: Likewise.
3803 * config/mips/linux.mh: Likewise.
3804 * config/pa/linux.mh: Likewise.
3805 * config/pa/linux.mh: Likewise.
3806 * config/powerpc/linux.mh: Likewise.
3807 * config/powerpc/ppc64-linux.mh: Likewise.
3808 * config/powerpc/spu-linux.mh: Likewise.
3809 * config/sparc/linux.mh: Likewise.
3810 * config/sparc/linux64.mh: Likewise.
3811 * config/xtensa/linux.mh: Likewise.
3812
3813 2011-08-24 Hui Zhu <teawater@gmail.com>
3814
3815 * tracepoint.c (cond_string_is_same): New function.
3816 (find_matching_tracepoint): Add condition check
3817 by cond_string_is_same.
3818
3819 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3820
3821 Fix build error in Darwin port.
3822 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3823
3824 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3825
3826 Code cleanup.
3827 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3828 (command_line_is_silent): New function.
3829 (bpstat_do_actions_1): No longer use commands_left, use
3830 command_line_is_silent for commands.
3831 (bpstat_alloc): Remove clearing of commands_left.
3832 (bpstat_stop_status): Remove initialization of commands_left, use
3833 command_line_is_silent.
3834 * breakpoint.h (struct bpstats): Remove commands_left.
3835
3836 2011-08-18 Keith Seitz <keiths@redhat.com>
3837
3838 PR c++/12266
3839 * cp-name-parser.y (struct demangle_info): Remove unused
3840 member PREV.
3841 (d_grab): Likewise.
3842 (allocate_info): Change return type to struct demangle_info *.
3843 Always allocate a new demangle_info.
3844 Remove unused PREV pointer.
3845 (cp_new_demangle_parse_info): New function.
3846 (cp_demangled_name_parse_free): New function.
3847 (do_demangled_name_parse_free_cleanup): New function.
3848 (make_cleanup_cp_demangled_name_parse_free): New function.
3849 (cp_demangled_name_to_comp): Change return type to
3850 struct demangle_parse_info *.
3851 Allocate a new storage for each call.
3852 (main): Update usage for cp_demangled_name_to_comp
3853 API change.
3854 * cp-support.h (struct demangle_parse_info): New structure.
3855 (cp_demangled_name_to_comp): Update API change for
3856 return type.
3857 (cp_new_demangle_parse_info): Declare.
3858 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3859 (cp_demangled_name_parse_free): Declare.
3860 * cp-support.c (cp_canonicalize_string): Update API
3861 change for cp_demangled_name_to_comp.
3862 (mangled_name_to_comp): Likewise.
3863 Return struct demangle_parse_info, too.
3864 (cp_class_name_from_physname): Update mangled_name_to_comp
3865 API change.
3866 (method_name_from_physname): Likewise.
3867 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3868 (cp_remove_params): Likewise.
3869 * python/py-type.c (typy_legacy_template_argument): Likewise.
3870
3871 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3872 (cp_merge_demangle_parse_infos): Declare.
3873 * cp-support.c (ignore_typedefs): New file global.
3874 (copy_string_to_obstack): New function.
3875 (inspect_type): New function.
3876 (replace_typedefs): New function.
3877 (replace_typedefs_qualified_name): New function.
3878 (cp_canonicalize_string_no_typedefs): New function.
3879 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3880 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3881 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3882 instead of cp_canonicalize_string.
3883 (find_method): Likewise.
3884 (decode_compound): Before looking up the name, call
3885 cp_canonicalize_string_no_typedefs.
3886 (decode_variable): Likewise.
3887
3888 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3889 Tom Tromey <tromey@redhat.com>
3890 Matt Rice <ratmice@gmail.com>
3891
3892 * python/lib/gdb/prompt.py: New file.
3893 * python/lib/gdb/command/prompt.py: New file.
3894 * NEWS: Document set extended-prompt and gdb.prompt library
3895
3896 2011-08-16 Yao Qi <yao@codesourcery.com>
3897
3898 * tic6x-linux-tdep.c: Move const arrays definition from here...
3899 * tic6x-tdep.c: to here ...
3900
3901 2011-08-14 Yao Qi <yao@codesourcery.com>
3902
3903 * NEWS: New port to Texas Instruments TMS320C6x.
3904
3905 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3906 Bernd Schmidt <bernds@codesourcery.com>
3907 Yao Qi <yao@codesourcery.com>
3908
3909 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3910 * solib-dsbt.c: New file. Support DSBT shared object.
3911 * tic6x-linux-tdep.c: New file.
3912 * tic6x-tdep.c: New file.
3913 * tic6x-tdep.h: New file.
3914
3915 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3916 Yao Qi <yao@codesourcery.com>
3917
3918 * remote.c (PACKET_qXfer_fdpic): New enum value.
3919 (remote_protocol_features): Add qXfer:fdpic:read packet.
3920 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3921 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3922 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3923
3924 2011-08-14 Yao Qi <yao@codesourcery.com>
3925
3926 Target description for tic6x.
3927 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3928 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3929 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3930 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3931 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3932 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3933 * features/tic6x-c64xp-linux.xml: New.
3934 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3935 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3936 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3937 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3938 * regformats/tic6x-c64xp.dat,
3939 regformats/tic6x-c62x-linux.dat: Generated.
3940 * regformats/tic6x-c64x-linux.dat,
3941 regformats/tic6x-c64xp-linux.dat: Generated.
3942 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3943 features/tic6x-*.c files.
3944 Add regformats/tic6x-*.dat files.
3945
3946 2011-08-12 Doug Evans <dje@google.com>
3947
3948 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3949 * python/py-symbol.c (sympy_get_type): New function.
3950 (symbol_object_getset): Add "type".
3951
3952 2011-08-12 Pedro Alves <pedro@codesourcery.com>
3953
3954 PR tui/13073
3955
3956 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3957 empty name.
3958 (tui_show_register_group): Don't store a byte buffer in the data
3959 element's value.
3960 (tui_register_format): Skip registers with an empty name.
3961 (tui_get_register): Store a struct value in the data element's
3962 value field instead of a byte buffer holding the raw register
3963 contents. Account for optimized-out and unavailable registers
3964 when comparing register contents.
3965
3966 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3967
3968 * printcmd.c (current_display_number): Update comment.
3969 (disable_current_display_cleanup): Delete.
3970 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3971 catch errors thrown while evaluating and printing the display.
3972
3973 2011-08-09 Tom Tromey <tromey@redhat.com>
3974
3975 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3976
3977 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3978
3979 * elfread.c (elf_symtab_read): Rework comments.
3980 * maint.c (maintenance_command): Ditto.
3981 * somread.c (som_symtab_read): Ditto.
3982 * solib.c (solib_find, solib_map_sections, update_solib_list)
3983 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3984 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3985 (sharedlibrary_command, no_shared_libraries): Ditto.
3986 * solib-irix.c (locate_base, disable_break, enable_break)
3987 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3988 (irix_current_sos, irix_open_symbol_file_object)
3989 (irix_special_symbol_handling): Ditto.
3990 * solib-sunos.c (locate_base, first_link_map_member)
3991 (sunos_current_sos, disable_break, enable_break)
3992 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3993 Ditto.
3994 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3995 (open_symbol_file_object, svr4_current_sos, enable_break)
3996 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3997 Ditto.
3998 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3999 (frv_current_sos, enable_break, frv_special_symbol_handling)
4000 (frv_solib_create_inferior_hook): Ditto.
4001 * solist.h (struct target_so_ops): Extend the comments of the
4002 special_symbol_handling, current_sos and open_symbol_file_object
4003 methods.
4004
4005 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
4006
4007 * python/lib/gdb/__init__.py: Auto-load files in command and
4008 function directories.
4009 * python/python.c (finish_python_initialization): Use
4010 os.path.join.
4011 * python/lib/gdb/command/pretty_printers.py: Self register
4012 command.
4013 * NEWS: Document auto-loading.
4014
4015 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4016
4017 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
4018 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
4019 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
4020
4021 2011-08-08 Tom Tromey <tromey@redhat.com>
4022
4023 * breakpoint.c (clean_up_filters): Remove.
4024 (catch_syscall_split_args): Use VEC_cleanup.
4025
4026 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4027
4028 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
4029 (main): Uncomment "Demangling error\n".
4030
4031 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
4032
4033 * solib-target.c (segment_attributes): Make them static.
4034 (section_attributes, library_children, library_attributes): Likewise.
4035 (library_list_children, library_list_attributes): Likesise.
4036 (library_list_elements): Likewise.
4037
4038 2011-08-05 Pedro Alves <pedro@codesourcery.com>
4039
4040 * exceptions.c (throw_exception): Don't disable the current
4041 display.
4042 * printcmd.c (disable_current_display_cleanup): New function.
4043 (do_one_display): Install a cleanup to disable the current display
4044 if doing the display throws.
4045
4046 2011-08-05 Eli Zaretskii <eliz@gnu.org>
4047
4048 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
4049 initialization of the tp_new member to the corresponding
4050 gdbpy_initialize_* function.
4051 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
4052 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
4053 * python/py-function.c (gdbpy_initialize_functions): Likewise.
4054 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
4055 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
4056
4057 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4058
4059 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
4060 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
4061 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
4062 references to current_uiout.
4063
4064 2011-08-04 Pedro Alves <pedro@codesourcery.com>
4065
4066 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
4067 (start_event_loop): Use TRY_CATCH instead of catch_errors.
4068 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
4069 * top.c (gdb_readline_wrapper): Adjust.
4070 * tui/tui-interp.c (tui_command_loop):
4071 (_initialize_tui_interp): Don't install it.
4072
4073 2011-08-04 Pedro Alves <pedro@codesourcery.com>
4074
4075 * ui-out.h (uiout): Rename to ...
4076 (current_uiout): ... this.
4077 * ui-out.c (uiout): Rename to ...
4078 (current_uiout): ... this.
4079 * ada-lang.c (print_it_exception, print_one_exception)
4080 (print_mention_exception): Adjust.
4081 * breakpoint.c (watchpoint_check): Adjust.
4082 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
4083 (default_collect_info, watchpoints_info, print_one_catch_fork)
4084 (print_one_catch_vfork, print_one_catch_syscall)
4085 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
4086 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
4087 (print_it_watchpoint, print_mention_watchpoint)
4088 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
4089 (print_it_exception_catchpoint, print_one_exception_catchpoint)
4090 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
4091 (bkpt_print_mention, momentary_bkpt_print_it)
4092 (tracepoint_print_mention, update_static_tracepoint)
4093 (tracepoints_info, save_breakpoints): Adjust.
4094 * cli-out.c (field_separator): Adjust.
4095 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
4096 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
4097 * frame.c (get_current_frame): Adjust.
4098 * infcmd.c (run_command_1, print_return_value): Adjust.
4099 * inferior.c (inferior_command, info_inferiors_command): Adjust.
4100 * infrun.c (print_end_stepping_range_reason): Adjust.
4101 (print_signal_exited_reason, print_exited_reason): Adjust.
4102 (print_signal_received_reason, print_no_history_reason): Adjust.
4103 * interps.c (interp_set): Adjust.
4104 * osdata.c (info_osdata_command): Adjust.
4105 * progspace.c (maintenance_info_program_spaces_command): Adjust.
4106 * remote-fileio.c (remote_fileio_request): Adjust.
4107 * remote.c (show_remote_cmd): Adjust.
4108 * solib.c (info_sharedlibrary_command): Adjust.
4109 * source.c (print_source_lines_base): Adjust.
4110 * stack.c (print_stack_frame): Adjust.
4111 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
4112 * symfile-mem.c (add_vsyscall_page): Adjust.
4113 * symfile.c (load_progress, generic_load)
4114 (print_transfer_performance): Adjust.
4115 * thread.c (info_threads_command, restore_selected_frame)
4116 (thread_command): Adjust.
4117 * top.c (make_cleanup_restore_ui_file): Adjust.
4118 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
4119 (print_one_static_tracepoint_marker): Adjust.
4120 * cli/cli-cmds.c (print_disassembly): Adjust.
4121 * cli/cli-decode.c (print_doc_line): Adjust.
4122 * cli/cli-interp.c (safe_execute_command): Adjust.
4123 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
4124 (handle_redirections): Adjust.
4125 * cli/cli-script.c (show_user_1): Adjust.
4126 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
4127 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4128 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
4129 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
4130 (mi_cmd_env_dir): Adjust.
4131 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
4132 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
4133 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4134 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
4135 (list_args_or_locals): Adjust.
4136 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4137 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
4138 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
4139 (mi_cmd_var_list_children, mi_cmd_var_info_type)
4140 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
4141 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
4142 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
4143 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
4144 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
4145 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
4146 (list_available_thread_groups, mi_cmd_list_thread_groups)
4147 (mi_cmd_data_list_register_names)
4148 (mi_cmd_data_list_changed_registers)
4149 (mi_cmd_data_list_register_values, get_register)
4150 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
4151 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
4152 (mi_cmd_list_target_features, mi_cmd_add_inferior)
4153 (mi_execute_command, mi_load_progress): Adjust.
4154 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
4155 * python/py-auto-load.c (print_script, info_auto_load_scripts):
4156 Adjust.
4157 * python/py-breakpoint.c (bppy_get_commands): Adjust.
4158 * tui/tui-interp.c (tui_command_loop): Adjust.
4159 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
4160
4161 2011-08-04 Pedro Alves <pedro@codesourcery.com>
4162
4163 * exceptions.c (struct catcher): Remove saved_uiout field.
4164 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
4165 no longer save/resvore the global ui_out builder.
4166 (catch_exceptions_with_msg): Save/override/restore the global
4167 ui_out builder manually instead of relying on TRY_CATCH to do it.
4168 (catch_errors): Save/restore the global ui_out builder manually
4169 instead of relying on TRY_CATCH to do it.
4170 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
4171 parameter.
4172 (TRY_CATCH): Adjust.
4173 * cli/cli-interp.c (safe_execute_command): Save/override/restore
4174 the global ui_out builder manually instead of relying on TRY_CATCH
4175 to do it.
4176
4177 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4178
4179 * breakpoint.c (update_global_location_list): Ensure
4180 invariant 'first loc marked not duplicated and inserted,
4181 following locs marked duplicated/not inserted' is respected
4182 for multiple locations at the same address.
4183 (unduplicated_should_be_inserted) New function.
4184 (swap_insertion) New function.
4185
4186 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4187
4188 * stack.c (print_frame_arguments_choices): Comment typo fix.
4189
4190 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
4191
4192 Revert:
4193 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4194 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4195 argument. Update callers.
4196
4197 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4198
4199 PR gdb/13045
4200 * doublest.c (convert_doublest_to_floatformat): Pass correct
4201 mantissa length to put_field.
4202
4203 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4204
4205 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
4206 exception_print code path.
4207 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
4208 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
4209 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
4210
4211 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4212
4213 Code cleanup.
4214 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
4215 Remove, merge them into ...
4216 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
4217 variable args and its initialization.
4218 (struct print_args_args, print_args_stub): Remove, merge them into
4219 print_frame.
4220 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
4221 them into ...
4222 (do_gdb_disassembly): ... here. Remove variable args and its
4223 initialization.
4224 (print_frame): Remove variable args and its initialization, new
4225 variable gdbarch and numargs (from print_args_stub), inline here
4226 print_args_stub with a TRY_CATCH.
4227 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
4228 them into ...
4229 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
4230 New variable e, remove variable btargs and its initialization.
4231
4232 2011-08-01 Tristan Gingold <gingold@adacore.com>
4233
4234 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
4235
4236 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4237
4238 * breakpoint.c (insert_bp_location): Document return value.
4239 (insert_breakpoint_locations): Fix documentation.
4240 (remove_breakpoints): Add documentation.
4241
4242 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4243
4244 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4245 argument. Update callers.
4246
4247 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4248
4249 * stack.c (print_frame_info): Comment typo fix.
4250
4251 2011-07-29 Sterling Augustine <saugustine@google.com>
4252
4253 * MAINTAINERS (Write After Approval): Add myself to the list.
4254
4255 2011-07-29 Tom Tromey <tromey@redhat.com>
4256
4257 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
4258 (library_list_start_segment): Update.
4259 (library_list_start_section): Update.
4260
4261 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
4262
4263 * varobj.c (value_get_print_value): Move hint check later into the
4264 function. Comment function. Free thevalue before reusing it.
4265
4266 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4267 Pedro Alves <pedro@codesourcery.com>
4268
4269 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
4270 value_one.
4271 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
4272 Assert the result kind.
4273 * value.h (value_one): Remove parameter lv.
4274
4275 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4276
4277 Fix crash on lval_computed values.
4278 * valops.c (value_zero): Use not_lval for lval_computed.
4279
4280 2011-07-27 Tom Tromey <tromey@redhat.com>
4281
4282 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4283 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4284
4285 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4286
4287 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4288 "ptype" by their typedefs difference.
4289
4290 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4291
4292 * dwarf2expr.c (ctx_no_read_reg): New function.
4293 * dwarf2expr.h (ctx_no_read_reg): New declaration.
4294 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4295 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4296 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4297
4298 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4299
4300 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4301 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4302 file.
4303 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4304 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4305 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4306 (ctx_no_get_base_type): Move the functions here.
4307 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4308 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4309 (ctx_no_get_base_type): New declarations.
4310
4311 2011-07-27 Tom Tromey <tromey@redhat.com>
4312
4313 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4314 entries.
4315 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4316 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4317
4318 2011-07-26 Sterling Augustine <saugustine@google.com>
4319
4320 * cli/cli-dump.c (dump_binary_file): Change parameter type to
4321 ULONGEST.
4322 (dump_bfd_file): Likewise.
4323
4324 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4325
4326 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4327 (remote_hw_watchpoint_length_limit): New variable.
4328 (_initialize_remote) add set,show cmds for this new variable.
4329 * gdb.texinfo: document these new commands.
4330 * NEWS: Mention these new commands.
4331
4332 2011-07-26 Pedro Alves <pedro@codesourcery.com>
4333
4334 * breakpoint.c (works_in_software_mode_watchpoint): Also return
4335 true for software watchpoints.
4336
4337 2011-07-26 Joel Brobecker <brobecker@adacore.com>
4338
4339 GDB 7.3 released.
4340
4341 2011-07-26 Tom Tromey <tromey@redhat.com>
4342
4343 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4344 * dwarf2read.c (read_indirect_string_at_offset): New function.
4345 (read_indirect_string): Use it.
4346 (dwarf_decode_macro_bytes): New function, taken from
4347 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
4348 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
4349 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4350 New functions.
4351 (struct dwarf2_per_objfile) <macro>: New field.
4352 (dwarf2_elf_names): Add .debug_macro.
4353 (dwarf2_macros_too_long_complaint): Add 'section' argument.
4354 (dwarf2_locate_sections): Handle new section.
4355 (read_file_scope): Handle DW_AT_GNU_macros.
4356 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4357
4358 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4359
4360 * NEWS: Mention dcache configuration.
4361 * dcache.c (dcache_set_list, dcache_show_list): New variables.
4362 (dcache_size, dcache_line_size): New variables.
4363 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4364 (struct dcache_block): Make it expandable.
4365 (struct dcache_struct): New field.
4366 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4367 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4368 (dcache_poke_byte, dcache_print_line): Adjust.
4369 (set_dcache_size, set_dcache_line_size): New functions.
4370 (set_dcache_command, show_dcache_command): New functions.
4371 (_initialize_dcache): Add new commands.
4372
4373 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4374
4375 * progspace.h (struct program_space): Add solib_add_generation.
4376 * infcmd.c (post_create_inferior): Only call solib_add if not
4377 already done.
4378 * solib.c (solib_add): Increment solib_add_generation.
4379
4380 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4381
4382 Fix implicit pointer offsets.
4383 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4384 ptr.OFFSET.
4385
4386 2011-07-25 Tom Tromey <tromey@redhat.com>
4387
4388 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4389 const.
4390 (ada_exception_sal): Make 'ops' const.
4391 (ada_decode_exception_location): Likewise.
4392 (ada_decode_assert_location): Likewise.
4393 (catch_assert_command): Update.
4394 (catch_ada_exception_command): Update.
4395 (create_ada_exception_catchpoint): Make 'ops' const.
4396 * breakpoint.c (set_raw_breakpoint_without_location)
4397 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4398 const.
4399 (create_internal_breakpoint): Update.
4400 (init_raw_breakpoint_without_location): Make 'ops' const.
4401 (init_raw_breakpoint, init_catchpoint)
4402 (create_fork_vfork_event_catchpoint)
4403 (create_syscall_event_catchpoint, init_breakpoint_sal)
4404 (create_breakpoint_sal, create_breakpoints_sal)
4405 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4406 * breakpoint.h (struct breakpoint) <ops>: Now const.
4407 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4408 const.
4409
4410 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4411
4412 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4413
4414 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4415
4416 * breakpoint.h (print_recreate_thread): Declare.
4417 (struct breakpoint): Move step_count, pass_count,
4418 number_on_target, static_trace_marker_id,
4419 static_trace_marker_id_idx ...
4420 (struct tracepoint): ... to this new struct.
4421 (get_tracepoint, get_tracepoint_by_number_on_target)
4422 (get_tracepoint_by_number): Change return type to struct
4423 tracepoint pointer.
4424 * breakpoint.c (is_tracepoint_type): New, factored out from
4425 is_tracepoint.
4426 (is_tracepoint): Adjust.
4427 (print_one_breakpoint_location): Cast to struct tracepoint as
4428 necessary, and adjust.
4429 (print_recreate_catch_fork, print_recreate_catch_vfork)
4430 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4431 print_recreate_thread.
4432 (init_breakpoint_sal): New, factored out from
4433 create_breakpoint_sal.
4434 (create_breakpoint_sal): Reimplement.
4435 (create_breakpoint): Allocate a struct tracecepoint if the caller
4436 wanted a tracepoint. Use init_breakpoint_sal and
4437 install_breakpoint.
4438 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4439 (print_recreate_masked_watchpoint)
4440 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4441 (tracepoint_print_one_detail): Adjust.
4442 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4443 Dump the pass count here.
4444 (update_static_tracepoint): Adjust.
4445 (addr_string_to_sals): Adjust.
4446 (create_tracepoint_from_upload): Adjust. Change return type to
4447 struct tracepoint pointer.
4448 (trace_pass_set_count): Change parameter type to struct tracepoint
4449 pointer, and adjust.
4450 (trace_pass_command): Adjust.
4451 (get_tracepoint, get_tracepoint_by_number_on_target)
4452 (get_tracepoint_by_number): Change return type to struct
4453 tracepoint pointer, and adjust.
4454 (print_recreate_thread): New, factored out from save_breakpoints.
4455 (save_breakpoints): Don't print thread and task and passcount
4456 recreation here.
4457 * remote.c (remote_download_tracepoint): Adjust.
4458 * tracepoint.c (trace_actions_command, validate_actionline)
4459 (start_tracing, tfind_1, trace_find_tracepoint_command)
4460 (trace_dump_command): Adjust.
4461 (find_matching_tracepoint): Change return type to struct
4462 tracepoint pointer, and adjust.
4463 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4464 (tfile_trace_find, tfile_fetch_registers): Adjust.
4465 * tracepoint.h (create_tracepoint_from_upload): Change return type
4466 to struct tracepoint pointer.
4467 * ada-lang.c (print_recreate_exception): Call
4468 print_recreate_thread.
4469 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4470
4471 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4472
4473 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4474 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4475 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4476 watchpoint_thread, watchpoint_triggered ...
4477 (struct watchpoint): ... to this new struct.
4478 (is_watchpoint): Declare.
4479 (install_breakpoint): Add new `internal' parameter.
4480 * breakpoint.c (is_watchpoint): Delete declaration.
4481 (set_breakpoint_condition): Handle watchpoints.
4482 (is_watchpoint): Make public.
4483 (watchpoint_in_thread_scope): Change parameter type to struct
4484 watchpoint.
4485 (watchpoint_del_at_next_stop): Change parameter type to struct
4486 watchpoint. Remove assertion. Adjust.
4487 (update_watchpoint): Ditto.
4488 (insert_breakpoints, breakpoint_init_inferior)
4489 (watchpoints_triggered, watchpoint_check)
4490 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4491 (bpstat_stop_status, print_one_breakpoint_location)
4492 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4493 to struct watchpoint as necessary, and adjust.
4494 (install_breakpoint): Add `internal' argument. If true, don't
4495 mention the new breakpoint. Use set_breakpoint_number.
4496 (create_fork_vfork_event_catchpoint)
4497 (create_syscall_event_catchpoint): Adjust.
4498 (dtor_watchpoint): New.
4499 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4500 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4501 (print_it_watchpoint, print_mention_watchpoint)
4502 (print_recreate_watchpoint, insert_masked_watchpoint)
4503 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4504 (print_one_detail_masked_watchpoint)
4505 (print_mention_masked_watchpoint)
4506 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4507 necessary, and adjust.
4508 (watch_command_1): Allocate and initialize a struct watchpoint
4509 instead of a struct breakpoint. Use install_breakpoint.
4510 (catch_exec_command_1): Adjust.
4511 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4512 fields.
4513 (delete_breakpoint, enable_breakpoint_disp)
4514 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4515 as necessary, and adjust.
4516 (initialize_breakpoint_ops): Install dtor_watchpoint as
4517 watchpoints' dtor method.
4518 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4519 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4520 to struct watchpoint as necessary, and adjust.
4521
4522 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4523
4524 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4525 the the base class ops table.
4526 (catch_exception_breakpoint_ops)
4527 (catch_exception_unhandled_breakpoint_ops)
4528 (catch_assert_breakpoint_ops): Don't statically initialize.
4529 (initialize_ada_catchpoint_ops): New.
4530 (_initialize_ada_language): Call it.
4531 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4532 (bkpt_breakpoint_ops): Forward declare.
4533 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4534 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4535 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4536 (masked_watchpoint_breakpoint_ops)
4537 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4538 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4539 base class ops table.
4540 (null_re_set, null_check_status, null_works_in_software_mode)
4541 (null_resources_needed, null_print_one_detail): Delete.
4542 (bkpt_dtor): Rename to ...
4543 (base_breakpoint_dtor): ... this. Make static.
4544 (bkpt_allocate_location): Rename to ...
4545 (base_breakpoint_allocate_location): ... this. Make static.
4546 (base_breakpoint_re_set): New.
4547 (internal_error_pure_virtual_called): New.
4548 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4549 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4550 (base_breakpoint_works_in_software_mode)
4551 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4552 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4553 (base_breakpoint_print_recreate): New functions.
4554 (base_breakpoint_ops): New global.
4555 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4556 (bkpt_breakpoint_hit): Make static.
4557 (bkpt_check_status): Delete.
4558 (bkpt_resources_needed): Make static.
4559 (bkpt_works_in_software_mode): Delete.
4560 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4561 static.
4562 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4563 (momentary_breakpoint_ops): Don't statically initialize.
4564 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4565 Delete.
4566 (tracepoint_insert_location, tracepoint_remove_location)
4567 (tracepoint_check_status, tracepoint_works_in_software_mode)
4568 (tracepoint_print_it): Delete.
4569 (tracepoint_breakpoint_ops): Don't statically initialize.
4570 (initialize_breakpoint_ops): New.
4571 (_initialize_breakpoint): Call it.
4572 * breakpoint.h (null_re_set, null_works_in_software_mode)
4573 (null_resources_needed, null_check_status, null_print_one_detail):
4574 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4575 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4576 (bkpt_check_status, bkpt_resources_needed)
4577 (bkpt_works_in_software_mode, bkpt_print_it)
4578 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4579 Delete declarations.
4580 (initialize_breakpoint_ops): Declare.
4581
4582 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4583
4584 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4585 (momentary_bkpt_print_it): Simplify.
4586
4587 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4588
4589 Split internal, momentary and user breakpoints breakpoint_ops
4590 tables.
4591
4592 * breakpoint.c (internal_breakpoint_ops)
4593 (momentary_breakpoint_ops): Forward declare.
4594 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4595 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4596 (create_overlay_event_breakpoint)
4597 (create_std_terminate_master_breakpoint)
4598 (create_exception_master_breakpoint): Create breakpoints with
4599 internal_breakpoint_ops vtable.
4600 (set_longjmp_breakpoint): Create momentary breakpoints with
4601 momentary_breakpoint_ops vtable, using
4602 momentary_breakpoint_from_master.
4603 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4604 (create_solib_event_breakpoint): Create breakpoints with
4605 internal_breakpoint_ops vtable.
4606 (set_momentary_breakpoint): Create breakpoints with
4607 momentary_breakpoint_ops vtable.
4608 (momentary_breakpoint_from_master): New, factored out from
4609 clone_momentary_breakpoint.
4610 (clone_momentary_breakpoint): Adjust.
4611 (watch_command_1): Create scope breakpoints with
4612 momentary_breakpoint_ops vtable.
4613 (bkpt_re_set): Remove handling of internal and momentary
4614 breakpoints.
4615 (bkpt_print_mention, bkpt_print_recreate): New.
4616 (bkpt_breakpoint_ops): Adjust.
4617 (internal_bkpt_re_set, internal_bkpt_check_status)
4618 (internal_bkpt_print_it, internal_bkpt_print_mention)
4619 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4620 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4621 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4622 (momentary_bkpt_print_recreate): New.
4623 (momentary_breakpoint_ops): New.
4624
4625 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4626
4627 Implement most breakpoint_ops methods for all breakpoint types,
4628 and move the default handlings to the proper callbacks.
4629
4630 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4631 works_in_software_mode method.
4632 (insert_bp_location): Go through breakpoint_ops->insert_location
4633 for software and hardware watchpoints.
4634 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4635 breakpoint_ops.
4636 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4637 for software and hardware watchpoints.
4638 (print_it_typical): Delete.
4639 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4640 method.
4641 (watchpoint_check): Adjust comment.
4642 (bpstat_check_location): Simply always call the breakpoint's
4643 breakpoint_hit method.
4644 (bpstat_stop_status): Always call the breakpoint's check_status
4645 method. Remove special cases for watchpoints and internal event
4646 breakpoints from here (moved to the check_status implementations).
4647 (print_one_breakpoint_location): Assume b->ops is never NULL.
4648 Remove static tracepoint marker id printing from here (moved to
4649 the print_one_detail callback implementation of tracepoints).
4650 (init_bp_location): Assert OPS is never NULL.
4651 (allocate_bp_location): Always call the breakpoint's
4652 allocate_location method, and remove the default code from here.
4653 (free_bp_location): Always call the location's dtor method, and
4654 remove the default code from here.
4655 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4656 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4657 parameter. Pass it down.
4658 (set_raw_breakpoint): Ditto.
4659 (print_it_catch_fork): Adjust to take a bpstat as argument.
4660 (catch_fork_breakpoint_ops): Install methods.
4661 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4662 (catch_vfork_breakpoint_ops): Install methods.
4663 (dtor_catch_syscall): Call the base dtor.
4664 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4665 (catch_syscall_breakpoint_ops): Install methods.
4666 (dtor_catch_exec): Call the base dtor.
4667 (print_it_catch_exec): Adjust to take a bpstat as argument.
4668 (catch_exec_breakpoint_ops): Install methods.
4669 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4670 the breakpoint's resources_needed method, and remove the default
4671 code from here.
4672 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4673 breakpoint_ops.
4674 (clone_momentary_breakpoint): Clone the original's ops.
4675 (mention): Always call the breakpoint's print_mention method, and
4676 remove the default code from here.
4677 (create_breakpoint_sal): Adjust to pass the ops to
4678 set_raw_breakpoint rather than setting it manually.
4679 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4680 ops to set_raw_breakpoint_without_location rather than setting it
4681 manually.
4682 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4683 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4684 (ranged_breakpoint_ops): Install methods.
4685 (break_range_command): Adjust to pass the ops to
4686 set_raw_breakpoint rather than setting it manually.
4687 (re_set_watchpoint, breakpoint_hit_watchpoint)
4688 (check_status_watchpoint, resources_needed_watchpoint)
4689 (works_in_software_mode_watchpoint, print_it_watchpoint)
4690 (print_mention_watchpoint, print_recreate_watchpoint): New
4691 functions.
4692 (watchpoint_breakpoint_ops): Install new methods.
4693 (print_it_masked_watchpoint): New function.
4694 (masked_watchpoint_breakpoint_ops): Install new methods.
4695 (watch_command_1): Adjust to pass the right breakpoint_ops to
4696 set_raw_breakpoint_without_location rather than setting it
4697 manually later. Record the current pspace.
4698 (print_it_exception_catchpoint): Adjust to take a bpstat as
4699 argument.
4700 (gnu_v3_exception_catchpoint_ops): Install new methods.
4701 (say_where): New function.
4702 (null_re_set, null_check_status, null_works_in_software_mode)
4703 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4704 New functions.
4705 (bp_location_ops): New global.
4706 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4707 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4708 (bkpt_check_status, bkpt_resources_needed)
4709 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4710 (bkpt_print_recreate): New functions.
4711 (bkpt_breakpoint_ops): New global.
4712 (tracepoint_re_set, tracepoint_insert_location)
4713 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4714 (tracepoint_check_status, tracepoint_works_in_software_mode)
4715 (tracepoint_print_it, tracepoint_print_one_detail)
4716 (tracepoint_print_mention, tracepoint_print_recreate): New
4717 functions.
4718 (tracepoint_breakpoint_ops): New global.
4719 (delete_breakpoint): Always call the breakpoint's dtor method, and
4720 remove the default handling from here.
4721 (breakpoint_re_set_default): Make static.
4722 (breakpoint_re_set_one): Always call the breakpoints re_set
4723 method, and remove the default handling from here.
4724 (trace_command, ftrace_command, strace_command)
4725 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4726 to create_breakpoint.
4727 (save_breakpoints): Always call the breakpoint's print_recreate
4728 method, and remove the default handling from here.
4729
4730 * ada-lang.c (dtor_exception): Call the base dtor.
4731 (re_set_exception): Call the base method.
4732 (print_it_exception, print_it_catch_exception): Adjust to take a
4733 bpstat as argument.
4734 (catch_exception_breakpoint_ops): Install methods.
4735 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4736 argument.
4737 (catch_exception_unhandled_breakpoint_ops): Install methods.
4738 (print_it_catch_assert): Adjust to take a bpstat as argument.
4739 (catch_assert_breakpoint_ops): Install methods.
4740
4741 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4742 to take a bpstat as argument.
4743 (enum print_stop_action): Add describing comments to each enum
4744 value.
4745 (breakpoint_re_set_default): Delete declaration.
4746 (null_re_set, null_works_in_software_mode, null_resources_needed)
4747 (null_check_status, null_print_one_detail): Declare.
4748 (bkpt_breakpoint_ops): Declare.
4749 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4750 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4751 (bkpt_check_status, bkpt_resources_needed)
4752 (bkpt_works_in_software_mode, bkpt_print_it)
4753 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4754 Declare.
4755
4756 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4757 bkpt_breakpoint_ops.
4758 * python/py-breakpoint.c (bppy_init): Ditto.
4759
4760 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4761
4762 * MAINTAINERS (Write After Approval): Add myself to the list.
4763
4764 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4765
4766 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4767
4768 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4769
4770 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4771 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4772 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4773 adjust.
4774 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4775 (struct i386_debug_reg_state): New.
4776 (i386_init_dregs): New.
4777 (dr_mirror): New.
4778 (i386_cleanup_dregs): Use i386_init_dregs.
4779 (i386_show_dr): Add state parameter and adjust.
4780 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4781 the inferior here.
4782 (i386_remove_aligned_watchpoint): Likewise.
4783 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4784 (i386_update_inferior_debug_regs): New.
4785 (i386_insert_watchpoint): Work on a local mirror of the debug
4786 registers, and only update the inferior on success.
4787 (i386_remove_watchpoint): Ditto.
4788 (i386_region_ok_for_watchpoint): Adjust.
4789 (i386_stopped_data_address): Adjust.
4790 (i386_insert_hw_breakpoint): Adjust.
4791 (i386_remove_hw_breakpoint): Adjust.
4792
4793 2011-07-22 Tom Tromey <tromey@redhat.com>
4794
4795 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4796 from amd64_pseudo_register_read. Change arguments. Call
4797 mark_value_bytes_unavailable when needed.
4798 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4799 set_gdbarch_pseudo_register_read.
4800 * sentinel-frame.c (sentinel_frame_prev_register): Use
4801 regcache_cooked_read_value.
4802 * regcache.h (regcache_cooked_read_value): Declare.
4803 * regcache.c (regcache_cooked_read_value): New function.
4804 (regcache_cooked_read): Call
4805 gdbarch_pseudo_register_read_value if available.
4806 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4807 (i386_pseudo_register_read): Remove.
4808 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4809 i386_pseudo_register_read. Change arguments. Call
4810 mark_value_bytes_unavailable when needed.
4811 (i386_pseudo_register_read_value): New function.
4812 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4813 not set_gdbarch_pseudo_register_read.
4814 * gdbarch.sh (pseudo_register_read_value): New method.
4815 * gdbarch.c, gdbarch.h: Rebuild.
4816 * findvar.c (value_from_register): Call get_frame_register_value.
4817
4818 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4819
4820 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4821 get_prefix.
4822 (display_gdb_prompt): Likewise.
4823 (change_annotation_level): Likewise.
4824 (push_prompt): Likewise.
4825 (pop_prompt): Likewise.
4826 (handle_stop_sig): Use get_prompt with a level.
4827 * top.c (command_loop): Use get_prompt with a level.
4828 (set_async_annotation_level): Use set_prompt with a level.
4829 (get_prefix): New function.
4830 (set_prefix): Ditto.
4831 (set_suffix): Ditto.
4832 (get_suffix): Ditto.
4833 (get_prompt): Accept a level argument.
4834 (set_prompt): Accept a level argument. Free old prompts. Set
4835 new_async_prompt if level is 0.
4836 (init_main): Use set_prompt with a level. Do not set
4837 new_async_prompt.
4838 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4839 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4840 Modify set_prompt, get_prompt to account for levels.
4841 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4842 level.
4843 * python/python.c (before_prompt_hook): Use set_prompt.
4844
4845 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4846
4847 * defs.h: Add guard against inclusion in gdbserver.
4848 (struct ptid, ptid_t): Move to common/ptid.h.
4849 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4850 xsnprintf, internal_error): Move to common/common-utils.h.
4851 (nomem): Delete.
4852 * gdb_assert.h: Move into common/ sub-directory.
4853 * gdb_locale.h: Ditto.
4854 * gdb_dirent.h: Ditto.
4855 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4856 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4857 Move into common/ptid.h.
4858 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4859 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4860 Change nomem to malloc_failure.
4861 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4862 * utils.c (nomem): Rename to malloc_failure.
4863 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4864 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4865 (gdb_buildargv): Change nomem to malloc_failure.
4866 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4867 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4868 ptid_is_pid): Move into common/ptid.c.
4869 (initialize_infrun): Delete initialization of null_ptid and
4870 minus_one_ptid.
4871 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4872 linux_common_xfer_osdata.
4873 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4874 common/ptid.c and common/buffer.c.
4875 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4876 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4877 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4878 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4879 rules.
4880 * common/gdb_assert.h: New.
4881 * common/gdb_dirent.h: New.
4882 * common/gdb_locale.h: New.
4883 * common/buffer.c: New.
4884 * common/buffer.h: New.
4885 * common/ptid.c: New.
4886 * common/ptid.h: New.
4887 * common/xml-utils.c: New.
4888 * common/xml-utils.h: New.
4889 * common/common-utils.c: New.
4890 * common/common-utils.h: New.
4891 * common/linux-osdata.c: New.
4892 * common/linux-osdata.h: New.
4893 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4894 * config/arm/linux.mh (NATDEPFILES): Ditto.
4895 * config/i386/linux.mh (NATDEPFILES): Ditto.
4896 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4897 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4898 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4899 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4900 * config/mips/linux.mh (NATDEPFILES): Ditto.
4901 * config/pa/linux.mh (NATDEPFILES): Ditto.
4902 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4903 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4904 * config/s390/s390.mh (NATDEPFILES): Ditto.
4905 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4906 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4907 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4908
4909 2011-07-21 Matt Rice <ratmice@gmail.com>
4910
4911 * NEWS: Add info macros and info definitions commands.
4912
4913 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4914
4915 * NEWS: Document Python prompt substitution hook.
4916
4917 2011-07-18 Matt Rice <ratmice@gmail.com>
4918
4919 PR macros/12999
4920 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4921 * macrotab.c (foreach_macro): Ditto.
4922 (foreach_macro_in_scope): Ditto.
4923 * macrocmd.c (print_macro_callback): New function.
4924 (info_macro_command): Move some code to print_macro_definition.
4925 (print_macro_definition): New function.
4926 (print_one_macro): Add new arguments to callback.
4927 (info_definitions_command): New function.
4928 (info_macros_command): Ditto.
4929 (_initialize_macrocmd): Add info macros and info definitions commands.
4930 * symtab.c (add_macro_name): Add new arguments to callback.
4931
4932 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4933 Tom Tromey <tromey@redhat.com>
4934
4935 * top.c (set_prompt): Rewrite to free previous prompt, free
4936 asynch_new_prompt and set both on new prompts.
4937 * event-top.c (display_gdb_prompt): Add prompt substitution
4938 logic.
4939 * python/python.c (before_prompt_hook): New function.
4940
4941 2011-07-20 Matt Rice <ratmice@gmail.com>
4942
4943 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4944 arguments to store_unsigned_integer.
4945
4946 2011-07-20 Tom Tromey <tromey@redhat.com>
4947
4948 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4949 in some declaration-only cases.
4950
4951 2011-07-18 Tom Tromey <tromey@redhat.com>
4952
4953 PR symtab/12984:
4954 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4955 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4956 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4957 <debug_type_section>: New field.
4958 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4959 (load_cu): Use appropriate section.
4960 (create_signatured_type_table_from_index): Add 'section'
4961 argument.
4962 (dwarf2_read_index): Only allow a single .debug_types section.
4963 (dw2_get_file_names): Use appropriate section.
4964 (read_type_comp_unit_head): Add 'section' argument.
4965 (create_debug_types_hash_table): Loop over all .debug_types
4966 sections.
4967 (init_cu_die_reader): Use appropriate section.
4968 (process_psymtab_comp_unit, load_partial_comp_unit)
4969 (load_full_comp_unit, read_die_and_children, find_partial_die)
4970 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4971 (lookup_signatured_type_at_offset): Add 'section' argument.
4972 (read_signatured_type_at_offset): Add 'sect' argument.
4973 (read_signatured_type): Use appropriate section.
4974 (set_die_type, get_die_type_at_offset): Update.
4975 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4976 VEC.
4977 (write_psymtabs_to_index): Don't allow index with more than one
4978 .debug_types section.
4979
4980 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4981
4982 Fix crash if referenced CU is aged out.
4983 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4984 xfree of block.data.
4985 (indirect_pieced_value): New variable back_to, use to for xfree of
4986 baton.data.
4987 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4988 block.data.
4989 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4990 (load_cu): New function from ...
4991 (dw2_do_instantiate_symtab): ... the code here ...
4992 (process_full_comp_unit): ... and here.
4993 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4994 retval.data.
4995
4996 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4997
4998 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4999 type.
5000
5001 2011-07-19 Gary Benson <gbenson@redhat.com>
5002
5003 * infrun.c (struct execution_control_state): New member
5004 stop_func_filled_in.
5005 (clear_stop_func, fill_in_stop_func): New functions.
5006 (handle_inferior_event): Call clear_stop_func rather than
5007 manipulating the execution control state directly.
5008 Call fill_in_stop_func lazily as required rather than
5009 directly calling find_pc_partial_function in all cases.
5010
5011 2011-07-18 Tom Tromey <tromey@redhat.com>
5012
5013 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
5014 checking for variable-sized array.
5015
5016 2011-07-18 Jean-Charles Delay <delay@adacore.com>
5017
5018 * varobj.h (varobj_languages): Add vlang_ada definition to the list
5019 of supported languages.
5020 * varobj.c: Add top definitions and basic implementation of the
5021 following callbacks: ada_number_of_children, ada_name_of_variable,
5022 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
5023 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
5024 (languages): Register Ada-specific callbacks.
5025 (variable_language): Add the Ada case in the language setter switch.
5026
5027 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5028
5029 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
5030
5031 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5032
5033 Code cleanup.
5034 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
5035 (execute_stack_op): Use dwarf2_frame_ctx_funcs
5036 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
5037 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
5038 get_frame_cfa, get_tls_address and dwarf_call via funcs.
5039 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
5040 (struct dwarf_expr_context_funcs): New, move here methods from ...
5041 (struct dwarf_expr_context): ... here. New fields funcs.
5042 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
5043 (dwarf_expr_ctx_funcs): New.
5044 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
5045 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
5046 (needs_frame_ctx_funcs): New.
5047 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
5048
5049 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
5050
5051 * MAINTAINERS (Write After Approval): Add myself to the list.
5052
5053 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
5054
5055 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
5056 that CIE pointer of an FDE really points to a CIE .
5057
5058 2011-07-15 Hui Zhu <teawater@gmail.com>
5059
5060 * remote.c (remote_get_trace_status): Add comments.
5061
5062 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5063
5064 Code cleanup - constify struct lval_funcs.
5065 * dwarf2loc.c (pieced_value_funcs): Make it const.
5066 * infrun.c (siginfo_value_funcs): Likewise.
5067 * opencl-lang.c (opencl_value_funcs): Likewise.
5068 * valops.c (value_assign, value_ind): Make the funcs variable const.
5069 * value.c (struct value): Make location.computed.funcs target const.
5070 Rearrange the comments.
5071 (allocate_computed_value): Make the funcs parameter target const.
5072 (value_computed_funcs): Return the funcs target const.
5073 (value_free, value_copy, set_value_component_location): Make the funcs
5074 variable const.
5075 * value.h (allocate_computed_value): Make the funcs parameter target
5076 const.
5077 (value_computed_funcs): Return the funcs target const.
5078 * windows-tdep.c (tlb_value_funcs): Make it const.
5079
5080 2011-07-14 Hui Zhu <teawater@gmail.com>
5081
5082 * remote.c (remote_get_trace_status): Initialize p.
5083
5084 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5085
5086 Work around kgdb.
5087 * remote.c (remote_get_trace_status): New variable ex. Put
5088 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
5089
5090 2011-07-13 Tom Tromey <tromey@redhat.com>
5091
5092 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
5093 value_from_contents for final conversion.
5094
5095 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5096
5097 Code cleanup.
5098 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
5099 Indent prototypes so they do not get into tags.
5100
5101 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5102
5103 Code cleanup making also optimized out values lazy.
5104 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
5105 allocate_optimized_out_value. Twice.
5106 (loclist_read_variable) Use allocate_optimized_out_value. Once.
5107 * findvar.c (read_var_value): Likewise.
5108 * value.c (allocate_optimized_out_value): New function.
5109 * value.h (allocate_optimized_out_value): New declaration.
5110
5111 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5112
5113 Fix occasional crash of CTRL-C during DWARF read in.
5114 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
5115
5116 2011-07-11 Tom Tromey <tromey@redhat.com>
5117
5118 * regcache.c (struct regcache_descr): Fix typo.
5119 * i387-tdep.c (i387_supply_xsave): Fix typo.
5120
5121 2011-07-11 Tom Tromey <tromey@redhat.com>
5122
5123 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
5124 (read_file_scope, read_type_unit_scope): Use it.
5125
5126 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5127
5128 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
5129 `int'.
5130
5131 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
5132
5133 PR python/12438
5134 * python/python.c: Set gdbpy_should_print_stack default to off.
5135 (set_python): Deprecate maint set python print-stack to
5136 class_deprecate.
5137 (_initialize_python): Deprecate maint set/show python print-stack.
5138 Add new prefix command, python. Add new setting, print-backtrace.
5139 * NEWS: Document set python print-stack. Document default change.
5140
5141 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
5142
5143 * python/py-inferior.c (infpy_dealloc): New function.
5144 (inferior_to_inferior_object): Return a new object, or a
5145 new reference to the existing object.
5146 (find_thread_object): Cleanup references to inferior.
5147 (delete_thread_object): Ditto.
5148 * python/py-infthread.c (create_thread_object): Do not increment
5149 inferior reference count.
5150
5151 2011-07-08 Tom Tromey <tromey@redhat.com>
5152
5153 * dwarf2loc.c (locexpr_regname): New function.
5154 (locexpr_describe_location_piece): Use it.
5155 (disassemble_dwarf_expression): Add per_cu argument. Use
5156 locexpr_regname.
5157 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
5158 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5159 New cases.
5160 (locexpr_describe_location_1): Add per_cu argument.
5161 (locexpr_describe_location): Update.
5162 (loclist_describe_location): Update.
5163
5164 2011-07-08 Tom Tromey <tromey@redhat.com>
5165
5166 * dwarf2expr.c (execute_stack_op): Add QUIT.
5167
5168 2011-07-07 Hui Zhu <teawater@gmail.com>
5169
5170 Revert:
5171 2011-07-06 Hui Zhu <teawater@gmail.com>
5172 * remote.c (remote_start_remote): Add TRY_CATCH for
5173 remote_get_trace_status.
5174 * tracepoint.c (disconnect_tracing): Ditto.
5175
5176 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
5177
5178 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
5179 variables as signed, not unsigned.
5180
5181 2011-07-06 Joel Brobecker <brobecker@adacore.com>
5182
5183 * jit.c (jit_inferior_init): Reformat forward declaration.
5184
5185 2011-07-06 Matt Rice <ratmice@gmail.com>
5186
5187 * MAINTAINERS (Write After Approval): Add myself to the list.
5188
5189 2011-07-06 Hui Zhu <teawater@gmail.com>
5190
5191 * remote.c (remote_start_remote): Add TRY_CATCH for
5192 remote_get_trace_status.
5193 * tracepoint.c (disconnect_tracing): Ditto.
5194
5195 2011-07-05 Tom Tromey <tromey@redhat.com>
5196
5197 * symtab.c (operator_chars): Now static.
5198 * linespec.c (operator_chars): Don't declare.
5199
5200 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5201
5202 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
5203
5204 2011-07-05 Tom Tromey <tromey@redhat.com>
5205
5206 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
5207 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
5208 (TYPE_CPLUS_REALLY_JAVA): New macro.
5209 * dwarf2read.c (process_structure_scope): Set
5210 TYPE_CPLUS_REALLY_JAVA.
5211
5212 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5213
5214 * ada-lang.c: Fix typos.
5215 * amd64-tdep.c: Likewise.
5216 * breakpoint.c: Likewise.
5217 * cli/cli-decode.c: Likewise.
5218 * findcmd.c: Likewise.
5219 * inline-frame.c: Likewise.
5220 * mi/mi-main.c: Likewise.
5221 * minsyms.c: Likewise.
5222 * monitor.c: Likewise.
5223 * monitor.h: Likewise.
5224 * prologue-value.c: Likewise.
5225 * reverse.c: Likewise.
5226 * s390-tdep.c: Likewise.
5227
5228 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5229
5230 * jit.c (jit_inferior_init): Forward declare.
5231 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
5232
5233 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5234
5235 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
5236
5237 2011-07-04 Tristan Gingold <gingold@adacore.com>
5238
5239 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
5240 (tcb_fieldno): Add activation_link field.
5241 (get_known_tasks_addr): Moved and rewritten.
5242 (get_tcb_types_info): Set activation_link field.
5243 (read_known_tasks_array): Add parameter. Rewritten.
5244 (read_known_tasks_list): New function.
5245 (read_known_tasks): New function.
5246 (ada_build_task_list): Call read_known_tasks instead of
5247 read_known_tasks_array.
5248 * ravenscar-thread.c: Add first_task_name constant.
5249 (has_ravenscar_runtime): Check for task list too.
5250
5251 2011-07-04 Tristan Gingold <gingold@adacore.com>
5252
5253 * ada-tasks.c: Renames fieldno to actb_fieldno.
5254 (ada_get_task_number): Indentation.
5255 (get_tcb_types_info): Remove all parameters. Write directly
5256 the globals.
5257 (ptid_from_atcb_common): Adjust.
5258 (read_atcb): Adjust.
5259
5260 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5261
5262 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
5263
5264 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5265
5266 * ui-out.c (ui_out_field_core_addr): Mention that the function
5267 description is in the header file.
5268 * ui-out.h (ui_out_field_core_addr): Document function.
5269
5270 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5271
5272 * ui-out.c (ui_out_get_field_separator): Remove unused function.
5273 * ui-out.h (ui_out_get_field_separator): Remove prototype.
5274
5275 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5276
5277 * symtab.c (expand_line_sal): Remove empty line.
5278
5279 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
5280
5281 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5282 same way as ELFOSABI_NONE.
5283 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5284
5285 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5286
5287 * breakpoint.c: Fix typos in comments.
5288 * linespec.c: Likewise.
5289 * symtab.c: Likewise.
5290
5291 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5292
5293 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5294 section in separate object files.
5295
5296 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5297
5298 Fix false GCC warning.
5299 * linespec.c (decode_line_1): Initialize values.
5300
5301 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5302
5303 * linespec.c (find_method): Accept the function type automatically only
5304 if it was specified with parameter types.
5305
5306 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5307
5308 Stop on first linespec terminator instead of eating what we can.
5309 * linespec.c (is_linespec_boundary): New function.
5310 (name_end): Remove function.
5311 (keep_name_info): New parameter on_boundary, replace the body.
5312 (decode_line_1): Provide the parameter to keep_name_info.
5313 (decode_compound): Likewise. Drop the trailing java return type
5314 handling. Twice.
5315
5316 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5317
5318 Fall back linespec to minimal symbols.
5319 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
5320 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5321 (find_method, symbol_found): Change error to cplusplus_error.
5322
5323 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5324
5325 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
5326
5327 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5328 Tom Tromey <tromey@redhat.com>
5329
5330 * dwarf2read.c (check_physname): New variable.
5331 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5332 (show_check_physname): New function.
5333 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5334
5335 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5336
5337 * machoread.c (macho_symfile_read): Delete OBE comment.
5338
5339 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5340
5341 * machoread.c (struct macho_oso_data): Delete.
5342 (current_oso): Delete.
5343 (macho_relocate_common_syms): New function, mostly extracted
5344 out of
5345 (macho_add_oso_symfile): Call macho_relocate_common_syms.
5346 Remove code that sets and unset current_oso.
5347 (macho_symfile_relocate): Delete handling of common symbols,
5348 now moved to macho_relocate_common_syms.
5349
5350 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5351
5352 * darwin-nat.c (darwin_ptrace): Add documentation.
5353 Set errno to zero before calling ptrace. If ptrace returns
5354 -1 and errno is zero, then change then return zero.
5355 (darwin_kill_inferior): Issue a warning instead of triggering
5356 a failed assertion when the PT_KILL ptrace operations returned
5357 nonzero.
5358
5359 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5360
5361 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5362 only when inf->private->no_ptrace.
5363
5364 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5365
5366 * ada-lang.c (print_it_exception): Print temporary catchpoints
5367 as "Temporary catchpoint".
5368 (print_mention_exception): Likewise.
5369
5370 2011-07-01 Tom Tromey <tromey@redhat.com>
5371
5372 * jv-lang.c (java_language_defn): Use java_printchar,
5373 java_printstr.
5374 (java_get_encoding): New function.
5375 (java_emit_char): Use generic_emit_char.
5376 (java_printchar): New function.
5377 (java_printstr): Likewise.
5378
5379 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5380
5381 * ada-typeprint.c (print_record_type): If unable to decode
5382 the name of the parent type, use the encoded name.
5383
5384 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5385
5386 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5387 pointer to constrained packed array type output.
5388 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5389 packed array output.
5390
5391 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5392
5393 * ada-typeprint.c (print_array_type): removed if condition on show
5394 being negative for bounds printing.
5395
5396 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5397
5398 * ada-lang.c (ada_identical_enum_types_p): New function.
5399 (symbols_are_identical_enums): New function.
5400 (remove_extra_symbols): Do nothing if NSYMS < 2.
5401 Use symbols_are_identical_enums.
5402
5403 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5404
5405 * ada-valprint.c (ada_value_print): Handle typedefs.
5406
5407 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5408
5409 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5410
5411 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5412
5413 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5414 (decode_constrained_packed_array): Likewise.
5415 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5416
5417 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5418
5419 * ada-exp.y (convert_char_literal): Handle typedef types.
5420
5421 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5422
5423 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5424
5425 2011-06-30 Tom Tromey <tromey@redhat.com>
5426
5427 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5428 * valops.c (find_overload_match): Call do_cleanups on early exit
5429 path.
5430 * solib.c (solib_find): Call do_cleanups on early exit path.
5431
5432 2011-06-30 Tom Tromey <tromey@redhat.com>
5433
5434 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5435 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5436 return paths. Defer final do_cleanups until last return.
5437 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5438 early return.
5439
5440 2011-06-30 Tom Tromey <tromey@redhat.com>
5441
5442 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5443
5444 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
5445
5446 * MAINTAINERS (Write After Approval): Add myself to the list.
5447
5448 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5449
5450 Disable epilogue unwinders on recent GCCs.
5451 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5452 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5453 * dwarf2read.c (process_full_comp_unit): Initialize
5454 EPILOGUE_UNWIND_VALID.
5455 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5456 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5457 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5458
5459 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5460
5461 Code cleanup - reformatting.
5462 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5463 (producer_is_gcc_ge_4): ... here, change the return value.
5464 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5465 interpretation.
5466
5467 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5468
5469 Fix non-only rename list for Fortran modules import.
5470 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5471 cp_add_using_directive caller.
5472 (cp_add_using_directive): New parameter excludes, describe it. New
5473 variables ix and param. Compare if also excludes match. Allocate NEW
5474 with variable size, initialize EXCLUDES there.
5475 (cp_lookup_symbol_imports): New variable excludep, test
5476 current->EXCLUDES with it.
5477 * cp-support.h: Include vec.h.
5478 (struct using_direct): New field excludes, describe it.
5479 (DEF_VEC_P (const_char_ptr)): New.
5480 (cp_add_using_directive): New parameter excludes.
5481 * defs.h (const_char_ptr): New typedef.
5482 * dwarf2read.c (read_import_statement): New variables child_die,
5483 excludes and cleanups, read in excludes.
5484 (read_namespace): Adjust the cp_add_using_directive caller.
5485
5486 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5487
5488 Code cleanup.
5489 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5490 negative comparisons.
5491
5492 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
5493
5494 * mi/mi-main.c (mi_cmd_list_features): Emit
5495 breakpoint-notifications.
5496
5497 2011-06-29 Tom Tromey <tromey@redhat.com>
5498
5499 PR fortran/10036:
5500 * valprint.h (generic_emit_char, generic_printstr): Declare.
5501 * valprint.c (wchar_printable, append_string_as_wide)
5502 (print_wchar): Move from c-lang.c.
5503 (generic_emit_char): New function; mostly taken from c_emit_char.
5504 (generic_printstr): New function; mostly taken from c_printstr.
5505 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5506 represented as arrays.
5507 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5508 type.
5509 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5510 identically to TYPE_CODE_INT.
5511 * f-lang.c (f_get_encoding): New function.
5512 (f_emit_char): Use generic_emit_char.
5513 (f_printchar): Replace comment.
5514 (f_printstr): Use generic_printstr.
5515 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5516 "character" types specially.
5517 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5518 for Fortran.
5519 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5520 Move to valprint.c
5521 (c_emit_char): Call generic_emit_char.
5522 (c_printstr): Call generic_printstr.
5523
5524 2011-06-29 Gary Benson <gbenson@redhat.com>
5525
5526 * breakpoint.c (bpstat_what): Removed duplicated case.
5527
5528 2011-06-28 Tom Tromey <tromey@redhat.com>
5529
5530 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5531
5532 2011-06-27 Tom Tromey <tromey@redhat.com>
5533
5534 * valops.c (find_overload_match): Call do_cleanups before early
5535 return.
5536 * top.c (execute_command): Call do_cleanups before early return.
5537 (command_loop): Likewise.
5538 * stack.c (backtrace_command): Make a null cleanup early. Don't
5539 conditionally call do_cleanups.
5540 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5541 TRY_CATCH.
5542 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5543 so cleanups are always run.
5544 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5545 * findcmd.c (parse_find_args): Call do_cleanups on early return
5546 path.
5547 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5548 Don't conditionally call do_cleanups.
5549 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5550 later.
5551
5552 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5553
5554 * MAINTAINERS (Write After Approval): Use default email address.
5555
5556 2011-06-27 Joel Brobecker <brobecker@adacore.com>
5557
5558 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5559
5560 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5561
5562 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5563 saved_regs_mask and copied_regs_mask fields.
5564 (sparc_record_save_insn): New prototype.
5565 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5566 (sparc_record_save_insn): New function.
5567 (sparc_analyze_prologue): Add head comment. Recognize store insns
5568 of call-saved registers. Use OFFSET consistently. Recognize flat
5569 frames and cache their settings.
5570 (sparc32_skip_prologue): Handle flat frames.
5571 (sparc_frame_cache): Add frame_offset to the base address.
5572 (sparc32_frame_cache): Adjust to new frame description.
5573 (sparc32_frame_prev_register): Likewise.
5574 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5575 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5576 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5577 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5578 frame by calling sparc_record_save_insn.
5579 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5580 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5581 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5582
5583 2011-06-27 Tristan Gingold <gingold@adacore.com>
5584
5585 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5586 field by map_addr and map_len.
5587 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5588 (munmap_section_buffer): Likewise.
5589
5590 2011-06-24 Tom Tromey <tromey@redhat.com>
5591
5592 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5593 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5594 * python/python.c (gdbpy_parameter): Make 'arg' const.
5595 (execute_gdb_command): Likewise.
5596 (gdbpy_decode_line): Likewise. Copy it.
5597 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5598 (gdbpy_write): Make 'arg' const.
5599 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5600 const.
5601 (gdbpy_lookup_type): Likewise.
5602 * python/py-prettyprint.c (print_children): Make 'name' const.
5603 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5604 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5605 Py_ssize_t.
5606 * python/py-function.c (fnpy_init): Make 'name' const.
5607 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5608 (gdbpy_string_to_argv): Make 'input' const.
5609 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5610 it.
5611 * gdbtypes.h (lookup_typename): Update.
5612 * gdbtypes.c (lookup_typename): Make 'name' const.
5613 (lookup_struct): Likewise.
5614 (lookup_union): Likewise.
5615 (lookup_enum): Likewise.
5616
5617 2011-06-24 Tom Tromey <tromey@redhat.com>
5618
5619 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5620 gdb_thread_db.h. Move all common/ entries to be together.
5621 (TAGS): Don't depend on DEPFILES.
5622
5623 2011-06-23 Yao Qi <yao@codesourcery.com>
5624
5625 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5626 * remote.c (remote_start_remote): ... here.
5627 * monitor.c (monitor_open): ... here.
5628
5629 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
5630
5631 * gdbtypes.c (append_composite_type_field_aligned): Fix
5632 calculation of bit position based on alignment.
5633
5634 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5635
5636 * breakpoint.c (bpstat_stop_status): Call the check_status
5637 breakpoint_ops method.
5638 (print_one_breakpoint_location): Also print the condition for Ada
5639 exception catchpoints.
5640 (allocate_bp_location): New, factored out from
5641 allocate_bp_location.
5642 (allocate_bp_location): Adjust. Call the owner breakpoint's
5643 allocate_location method, if there is one.
5644 (free_bp_location): Call the locations's dtor method, if there is
5645 one.
5646 (init_raw_breakpoint_without_location): New breakpoint_ops
5647 parameter. Use it.
5648 (set_raw_breakpoint_without_location): Adjust.
5649 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5650 (set_raw_breakpoint): Adjust.
5651 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5652 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5653 re_set and check_status methods.
5654 (init_catchpoint): Don't memset, initialize thread, addr_string
5655 and enable_state. Pass the ops down to init_raw_breakpoint.
5656 (install_catchpoint): Rename to ...
5657 (install_breakpoint): ... this, and make extern.
5658 (create_fork_vfork_event_catchpoint): Adjust.
5659 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5660 re_set and check_status methods.
5661 (create_syscall_event_catchpoint): Adjust.
5662 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5663 (masked_watchpoint_breakpoint_ops): Install NULL
5664 allocate_location, re_set and check_status methods.
5665 (catch_exec_command_1): Adjust.
5666 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5667 re_set and check_status methods.
5668 (create_ada_exception_breakpoint): Rename to ...
5669 (init_ada_exception_breakpoint): ... this. Add a struct
5670 breakpoint parameter, and delete the exp_string, cond_string and
5671 cond parameters. Use init_raw_breakpoint, and don't install or
5672 mention the breakpoint yet. Don't clear breakpoint fields that
5673 init_raw_breakpoint already clears.
5674 (re_set_breakpoint): Delete, split into ...
5675 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5676 functions.
5677 (breakpoint_re_set_one): Call the breakpoint's
5678 breakpoint_ops->re_set implementation, if there's one. Adjust.
5679 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5680 (struct bp_location_ops): New type.
5681 (struct bp_location): New field `ops'.
5682 (struct breakpoint_ops): New `allocate_location', `re_set' and
5683 `check_status' fields. Make `breakpoint_hit''s description match
5684 reality.
5685 (init_bp_location): Declare.
5686 (breakpoint_re_set_default): Declare.
5687 (create_ada_exception_breakpoint): Rename to ...
5688 (init_ada_exception_breakpoint): ... this. Add a struct
5689 breakpoint parameter, and delete the exp_string, cond_string and
5690 cond parameters.
5691 (install_breakpoint): Declare.
5692 * ada-lang.c: Include exceptions.h.
5693 <Ada exceptions description>: Update.
5694 (struct ada_catchpoint_location): New type.
5695 (ada_catchpoint_location_dtor): New function.
5696 (ada_catchpoint_location_ops): New global.
5697 (ada_catchpoint): New type.
5698 (create_excep_cond_exprs): New function.
5699 (dtor_exception, allocate_location_exception, re_set_exception)
5700 (should_stop_exception, check_status_exception): New functions.
5701 (print_one_exception, print_mention_exception)
5702 (print_recreate_exception): Adjust.
5703 (dtor_catch_exception, allocate_location_catch_exception)
5704 (re_set_catch_exception, check_status_catch_exception): New
5705 functions.
5706 (catch_exception_breakpoint_ops): Install them.
5707 (dtor_catch_exception_unhandled)
5708 (allocate_location_catch_exception_unhandled)
5709 (re_set_catch_exception_unhandled)
5710 (check_status_catch_exception_unhandled): New functions.
5711 (catch_exception_unhandled_breakpoint_ops): Install them.
5712 (dtor_catch_assert, allocate_location_catch_assert)
5713 (re_set_catch_assert, check_status_catch_assert): New functions.
5714 (catch_assert_breakpoint_ops): Install them.
5715 (ada_exception_catchpoint_p): Delete.
5716 (catch_ada_exception_command_split)
5717 (ada_exception_catchpoint_cond_string): Rename exp_string
5718 parameter to excep_string. Adjust.
5719 (ada_parse_catchpoint_condition): Delete.
5720 (ada_exception_sal): Rename the exp_string parameter to
5721 excep_string. Delete the cond_string and cond parameters.
5722 Adjust.
5723 (ada_decode_exception_location): Rename the exp_string parameter
5724 to excep_string. Delete the cond_string and cond parameters.
5725 Adjust.
5726 (create_ada_exception_catchpoint): New function.
5727 (catch_ada_exception_command, ada_decode_assert_location)
5728 (catch_assert_command): Adjust.
5729 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5730
5731 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5732
5733 * ada-lang.c: Include arch-utils.h.
5734 (ada_decode_exception_location): Make static.
5735 (catch_ada_exception_command): Moved here from breakpoint.c.
5736 (ada_decode_assert_location): Make static.
5737 (catch_assert_command): Moved here from breakpoint.c.
5738 (_initialize_ada_lang): Install the exception and assert
5739 catchpoint commands here.
5740 * ada-lang.h (ada_decode_exception_location)
5741 (ada_decode_assert_location): Delete declarations.
5742 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5743 breakpoint.h.
5744 (create_ada_exception_breakpoint): Make extern.
5745 (catch_ada_exception_command, catch_assert_command): Moved to
5746 ada-lang.c.
5747 (add_catch_command): Make extern.
5748 (_initilize_breakpoint): Don't install the exception and assert
5749 catchpoint commands here.
5750 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5751 breakpoint.c
5752 (add_catch_command, create_ada_exception_breakpoint): Declare.
5753
5754 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5755
5756 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5757 the breakpoint to the breakpoint chain here.
5758 (set_raw_breakpoint_without_location): Add the breakpoint to the
5759 breakpoint chain here.
5760 (init_raw_breakpoint): Adjust comments.
5761 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5762 here.
5763 (init_catchpoint): Don't set the catchpoint's breakpoint number
5764 here.
5765 (install_catchpoint): New function.
5766 (create_fork_vfork_event_catchpoint)
5767 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5768 use install_catchpoint.
5769
5770 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5771
5772 * breakpoint.c (create_catchpoint_without_mention)
5773 (create_catchpoint): Delete.
5774
5775 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5776
5777 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5778 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5779 reference to exec_pathname.
5780 (struct exec_catchpoint): New type.
5781 (dtor_catch_exec): New function.
5782 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5783 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5784 (catch_exec_command_1): Adjust to use init_catchpoint.
5785 (delete_breakpoint): Remove reference to exec_pathname.
5786
5787 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5788
5789 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5790 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5791 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5792 reference to syscalls_to_be_caught.
5793 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5794 NULL `dtor'.
5795 (struct syscall_catchpoint): New type.
5796 (dtor_catch_syscall): New function.
5797 (insert_catch_syscall, remove_catch_syscall)
5798 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5799 (print_recreate_catch_syscall): Adjust.
5800 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5801 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5802 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5803 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5804 (masked_watchpoint_breakpoint_ops)
5805 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5806 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5807 there is one. Remove references to syscalls_to_be_caught.
5808 (catching_syscall_number): Adjust.
5809 * ada-lang.c (catch_exception_breakpoint_ops)
5810 (catch_exception_unhandled_breakpoint_ops)
5811 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5812
5813 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5814
5815 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5816 field.
5817 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5818 reference to forked_inferior_pid.
5819 (struct fork_catchpoint): New type.
5820 (breakpoint_hit_catch_fork, print_it_catch_fork)
5821 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5822 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5823 (create_fork_vfork_event_catchpoint): Adjust to use
5824 init_catchpoint.
5825
5826 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5827
5828 * breakpoint.c (add_to_breakpoint_chain)
5829 (init_raw_breakpoint_without_location): New functions, factored
5830 out from ...
5831 (set_raw_breakpoint_without_location): ... this one.
5832 (init_raw_breakpoint): New function, factored out from
5833 set_raw_breakpoint and adjusted to use
5834 init_raw_breakpoint_without_location.
5835 (set_raw_breakpoint): Adjust.
5836 (init_catchpoint): New function, factored out from
5837 create_catchpoint_without_mention and adjusted to use
5838 init_raw_breakpoint.
5839 (create_catchpoint_without_mention): Adjust.
5840
5841 2011-06-22 Tom Tromey <tromey@redhat.com>
5842
5843 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5844 argument of 0 specially.
5845
5846 2011-06-22 Yao Qi <yao@codesourcery.com>
5847
5848 * infrun.c (handle_inferior_event): Remove write-only local variable
5849 `sw_single_step_trap_p'.
5850
5851 2011-06-20 Tom Tromey <tromey@redhat.com>
5852
5853 * symtab.c (lookup_language_this): End loop if block is NULL.
5854
5855 2011-06-17 Tom Tromey <tromey@redhat.com>
5856
5857 * valops.c (value_of_this): Use lookup_language_this.
5858 * symtab.h (lookup_language_this): Declare.
5859 * symtab.c (lookup_language_this): New function.
5860 (lookup_symbol_aux): Use lookup_language_this.
5861 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5862
5863 2011-06-17 Tom Tromey <tromey@redhat.com>
5864
5865 * value.h (value_of_this): Update.
5866 (value_of_local): Remove.
5867 * valops.c (value_of_this): Rename from value_of_local. Change
5868 parameters.
5869 * p-exp.y (exp): Update.
5870 (variable): Likewise.
5871 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5872
5873 2011-06-17 Tom Tromey <tromey@redhat.com>
5874
5875 * valops.c (value_of_local): Complain if NAME is NULL.
5876 * std-operator.def (OP_OBJC_SELF): Remove.
5877 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5878 * objc-exp.y (name_not_typename): Use OP_THIS.
5879 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5880 name for "this".
5881 <OP_OBJC_SELF>: Remove.
5882 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5883
5884 2011-06-16 Tristan Gingold <gingold@adacore.com>
5885
5886 * python/py-events.h (gdb_py_events): Make it extern.
5887 * python/py-evtregistry.c (gdb_py_events): Declare.
5888
5889 2011-06-16 Hui Zhu <teawater@gmail.com>
5890
5891 * remote.c (remote_trace_set_readonly_regions): Add check for
5892 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5893 output warning.
5894
5895 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5896
5897 * arm-linux-tdep.c: Include "auxv.h".
5898 (AT_HWCAP): Define.
5899 (ARM_LINUX_SIZEOF_VFP): Define.
5900 (arm_linux_supply_vfp): New function.
5901 (arm_linux_collect_vfp): Likewise.
5902 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5903 (arm_linux_fpa_regset_sections): New variable.
5904 (arm_linux_vfp_regset_sections): Likewise.
5905 (arm_linux_core_read_description): New function.
5906 (arm_linux_init_abi): Install arm_linux_core_read_description and
5907 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5908 appropriate for the architecture.
5909 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5910 (tdesc_arm_with_m): Declare.
5911 (tdesc_arm_with_iwmmxt): Likewise.
5912 (tdesc_arm_with_vfpv2): Likewise.
5913 (tdesc_arm_with_vfpv3): Likewise.
5914 (tdesc_arm_with_neon): Likewise.
5915 * arm-linux-nat.c: Move features/*.c includes ...
5916 * arm-tdep.c: ... here.
5917 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5918 target description data structures ...
5919 * arm-tdep.c (_initialize_arm_tdep): ... here.
5920 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5921 HWCAP_VFPv3D16): Move definitions ...
5922 * arm-linux-tdep.h: ... here.
5923
5924 2011-06-15 Hui Zhu <teawater@gmail.com>
5925
5926 * remote.c (remote_trace_set_readonly_regions): Add a check for
5927 target_buf_size.
5928
5929 2011-06-14 Tom Tromey <tromey@redhat.com>
5930
5931 * coffread.c (coffread_objfile): Rename from current_objfile.
5932 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5933 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5934
5935 2011-06-14 Tom Tromey <tromey@redhat.com>
5936
5937 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5938 (class_symtab): Remove.
5939 (jv_dynamics_progspace_key): New global.
5940 (jv_per_objfile_free): Reset program space data. Update assert.
5941 Don't clear globals.
5942 (get_dynamics_objfile): Use and set program space data.
5943 (get_java_class_symtab): Use get_dynamics_objfile.
5944 (add_class_symbol): Likewise.
5945 (java_link_class_type): Likewise.
5946 (java_object_type, jv_clear_object_type, set_java_object_type):
5947 Remove.
5948 (get_java_object_type): Update. Don't cache result.
5949 (is_object_type): Don't call set_java_object_type.
5950 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5951 initialize jv_dynamics_progspace_key.
5952
5953 2011-06-14 Tom Tromey <tromey@redhat.com>
5954
5955 * symtab.h (current_objfile): Don't declare.
5956 * objfiles.h (current_objfile): Don't declare.
5957 * objfiles.c (current_objfile): Remove.
5958 * mdebugread.c (current_objfile): New file-scope global.
5959 * dbxread.c (current_objfile): New file-scope global.
5960 * coffread.c (current_objfile): New file-scope global.
5961
5962 2011-06-13 Pedro Alves <pedro@codesourcery.com>
5963
5964 * top.h (line): Rename to ...
5965 (saved_command_line): ... this.
5966 (linesize): Rename to ...
5967 (saved_command_line_size): ... this.
5968 * top.c (line): Rename to ...
5969 (saved_command_line): ... this.
5970 (linesize): Rename to ...
5971 (saved_command_line_size): ... this.
5972 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5973 * event-top.c (command_line_handler): Adjust.
5974 * main.c (captured_main): Adjust.
5975
5976 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5977
5978 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5979 get_frame_func instead of get_frame_pc to determine the code
5980 address used to construct the frame ID.
5981 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5982 (i386_epilogue_frame_this_id): Likewise.
5983 (i386_epilogue_frame_prev_register): New function.
5984 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5985 (i386_stack_tramp_frame_sniffer): Fix coding style.
5986 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5987 (i386_gdbarch_init): Fix comments.
5988
5989 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5990
5991 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5992 instruction when walking back through the instruction stream.
5993
5994 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5995
5996 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5997 fullname parameters order.
5998
5999 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6000
6001 Code cleanup.
6002 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
6003 for fun.
6004 * psymtab.c (map_symbol_filenames_psymtab)
6005 (map_partial_symbol_filenames): Likewise.
6006 * psymtab.h: Include symfile.h.
6007 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
6008 * symfile.h (symbol_filename_ftype): New.
6009 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
6010 map_symbol_filenames, clarify more the naming in comment.
6011
6012 2011-06-07 Doug Evans <dje@google.com>
6013
6014 * cc-with-index.sh: Fix typos in comment.
6015 Look for ../../gdb, for fullname.exp.
6016
6017 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6018 Pedro Alves <pedro@codesourcery.com>
6019
6020 * cli/cli-cmds.c (shell_escape): Use waitpid.
6021 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
6022
6023 2011-06-07 Tristan Gingold <gingold@adacore.com>
6024
6025 * xcoffread.c (dwarf2_xcoff_names): New variable.
6026 (aix_process_linenos): Add a guard.
6027 (xcoff_symfile_finish): Free dwarf2.
6028 (xcoff_initial_scan): Add dwarf2 support.
6029
6030 2011-06-06 Pedro Alves <pedro@codesourcery.com>
6031
6032 * infcall.c (run_inferior_call): Don't mask async. Instead force
6033 a synchronous wait, if the target can async.
6034
6035 * target.h (struct target_ops): Delete to_async_mask.
6036 (target_async_mask): Delete.
6037 * target.c (update_current_target): Delete references to to_async_mask.
6038 * linux-nat.c (linux_nat_async_mask_value): Delete.
6039 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
6040 to linux_nat_async_mask_value.
6041 (linux_nat_async_mask): Delete.
6042 (linux_nat_async, linux_nat_close): Remove references to
6043 linux_nat_async_mask_value.
6044 * record.c (record_async_mask_value): Delete.
6045 (record_async): Remove references to record_async_mask_value.
6046 (record_async_mask): Delete.
6047 (record_can_async_p, record_is_async_p): Remove references to
6048 record_async_mask_value.
6049 (init_record_ops, init_record_core_ops): Remove references to
6050 record_async_mask.
6051 * remote.c (remote_async_mask_value): Delete.
6052 (init_remote_ops): Remove reference to remote_async_mask.
6053 (remote_can_async_p, remote_is_async_p): Remove references to
6054 remote_async_mask_value.
6055 (remote_async): Remove references to remote_async_mask_value.
6056 (remote_async_mask): Delete.
6057
6058 * infrun.c (fetch_inferior_event): Don't claim registers changed
6059 if the current thread is already not executing.
6060
6061 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
6062
6063 From Stephen Kitt <steve@sk2.org>
6064 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
6065 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
6066
6067 2011-06-03 Joel Brobecker <brobecker@adacore.com>
6068
6069 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
6070 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
6071
6072 2011-06-03 Tom Tromey <tromey@redhat.com>
6073
6074 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
6075 code fields.
6076 * python/py-exitedevent.c (create_exited_event_object): Change
6077 type of 'exit_code'. Optionally add exit_code attribute.
6078 (emit_exited_event): Change type of 'exit_code'.
6079 * python/py-event.h (emit_exited_event): Update.
6080 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
6081 * infrun.c (handle_inferior_event): Set exit code fields on
6082 inferior.
6083 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
6084 fields.
6085 * inferior.c (exit_inferior_1): Initialize new fields.
6086
6087 2011-06-03 Tom Tromey <tromey@redhat.com>
6088
6089 * dwarf2expr.c (get_signed_type): New function.
6090 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
6091
6092 2011-06-02 Keith Seitz <keiths@redhat.com>
6093
6094 * objc-lang.c (find_methods): Increment objfile_csym earlier.
6095
6096 2011-06-02 Pedro Alves <pedro@codesourcery.com>
6097
6098 * top.h (simplified_command_loop): Delete declaration.
6099
6100 2011-06-01 Mike Frysinger <vapier@gentoo.org>
6101
6102 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
6103 gdb_sysroot to the "len" variable. Append both to "arg_buf".
6104
6105 2011-06-01 Yao Qi <yao@codesourcery.com>
6106
6107 * objfiles.h (obj_section_addr): Update reference to objfile from
6108 `abfd' to `obfd'.
6109 (obj_section_endaddr): Likewise.
6110
6111 2011-06-01 Daniel Jacobowitz <drow@false.org>
6112
6113 * MAINTAINERS: Update my email address and affiliation. Also
6114 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
6115
6116 2010-05-31 Keith Seitz <keiths@redhat.com>
6117
6118 PR c++/12750
6119 * linespec.c (get_search_block): New function.
6120 (find_methods): Add FILE_SYMTATB parameter and use it and
6121 get_search_block to pass an appropriate block to
6122 lookup_symbol_in_namespace.
6123 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
6124 Check if *ARGPTR starts with a filename first.
6125 If it does, call locate_first_half again to locate the next
6126 "first half" of the linespec.
6127 Pass FILE_SYMTATB to decode_objc and decode_compound.
6128 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
6129 (locate_first_half): Stop on the first colon seen.
6130 (decode_compound): Add FILE_SYMTAB parameter.
6131 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
6132 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
6133 get_search_block with lookup_symbol.
6134 (find_method): Add FILE_SYMTAB parameter and pass it to
6135 find_methods.
6136 (decode_objc): Use get_search_block.
6137
6138 2010-05-31 Keith Seitz <keiths@redhat.com>
6139
6140 PR symtab/12704
6141 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
6142 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
6143 and CP_ANONYMOUS_NAMESPACE_LEN.
6144 (cp_is_anonymous): Likewise.
6145 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
6146 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
6147 * dwarf2read.c (namespace_name): Likewise.
6148 (fixup_partial_die): Likewise.
6149 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
6150 seen in the input, keep it.
6151
6152 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6153
6154 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
6155 * inf-loop.h (inferior_event_handler_wrapper): Delete.
6156 * inf-loop.c (inferior_event_handler_wrapper): Delete.
6157 (inferior_event_handler): Don't handle INF_QUIT_REQ.
6158 * remote.c (_initialize_remote): Register
6159 async_remote_interrupt_twice directly as
6160 sigint_remote_twice_token event.
6161
6162 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6163
6164 * target.h (enum inferior_event_type): Delete INF_ERROR.
6165 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
6166
6167 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6168
6169 * interps.c (interp_set): Don't cancel continuations.
6170
6171 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
6172
6173 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
6174
6175 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6176
6177 * continuations.h (continuation_ftype): Add `err' parameter.
6178 Document parameters.
6179 (do_all_continuations, do_all_continuations_thread)
6180 (do_all_intermediate_continuations)
6181 (do_all_intermediate_continuations_thread)
6182 (do_all_inferior_continuations): Add `err' parameter.
6183 * continuations.c (do_my_continuations_1, do_my_continuations)
6184 (do_all_inferior_continuations, do_all_continuations_ptid)
6185 (do_all_continuations_thread_callback)
6186 (do_all_continuations_thread, do_all_continuations)
6187 (do_all_intermediate_continuations_thread_callback)
6188 (do_all_intermediate_continuations_thread)
6189 (do_all_intermediate_continuations): Add `err' parameter, and pass
6190 it down all the way to the continuations proper.
6191 * inf-loop.c (inferior_event_handler): If fetching an inferior
6192 event throws an error, don't pop the target, and still call the
6193 continuations, but with `err' set. Adjust all other continuation
6194 calls.
6195 * breakpoint.c (until_break_command_continuation): Add `err'
6196 parameter.
6197 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
6198 issue another step if `err' is set.
6199 (struct until_next_continuation_args): New.
6200 (until_next_continuation): Add `err' parameter. Adjust.
6201 (until_next_command): Adjust.
6202 (struct finish_command_continuation_args): Add `thread' field.
6203 (finish_command_continuation): Add `err' parameter. Handle it.
6204 (finish_forward): Adjust.
6205 (attach_command_continuation): Add `err' parameter. Handle it.
6206 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
6207 cancel the continuations.
6208 * interps.c (interp_set): Adjust to cancel the continuations.
6209 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
6210 continuations rather than discarding.
6211 (free_thread): Don't clear thread inferior resources here.
6212 (delete_thread_1): Do it here instead. And do it before removing
6213 the thread from the threads list. Tag the thread as exited before
6214 clearing thread inferior resources.
6215
6216 2011-05-30 Joel Brobecker <brobecker@adacore.com>
6217
6218 * infcall.c (call_function_by_hand): Rephrase error message.
6219
6220 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6221
6222 * defs.h (struct thread_info, struct inferior): Delete forward
6223 declarations.
6224 * breakpoint.h (struct thread_info): New forward declaration.
6225 * observer.sh (struct inferior): New forward declaration.
6226 * python/python-internal.h (struct inferior): New forward
6227 declaration.
6228
6229 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6230
6231 * defs.h (struct continuation, continuation_ftype)
6232 (continuation_free_arg_ftype, add_continuation)
6233 (do_all_continuations, do_all_continuations_thread)
6234 (discard_all_continuations, discard_all_continuations_thread)
6235 (add_intermediate_continuation, do_all_intermediate_continuations)
6236 (do_all_intermediate_continuations_thread)
6237 (discard_all_intermediate_continuations)
6238 (discard_all_intermediate_continuations_thread)
6239 (add_inferior_continuation, do_all_inferior_continuations)
6240 (discard_all_inferior_continuations): Move to ...
6241 * continuations.h: ... this new file.
6242 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
6243 infcmd.c, inferior.c, infrun.c, interps.c: Include
6244 continuations.h.
6245
6246 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6247 Doug Evans <dje@google.com>
6248
6249 Fix PR 10970, PR 12702.
6250 * linux-nat.c (linux_lwp_is_zombie): New function.
6251 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
6252 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
6253
6254 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6255
6256 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
6257 typedefs.
6258 (add_continuation, add_intermediate_continuation)
6259 (add_inferior_continuation): Use them.
6260 * continuations.c (struct continuation): Use them.
6261 (make_continuation_ftype): Delete.
6262 (make_continuation, add_inferior_continuation, add_continuation)
6263 (add_intermediate_continuation): Use continuation_ftype and
6264 continuation_free_arg_ftype. Rename parameters to shorter names.
6265
6266 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6267
6268 * continuations.c (make_continuation): Make it return void.
6269 (do_my_continuations): Rename to ...
6270 (do_my_continuations_1): ... this. Remove old_chain parameter and
6271 adjust.
6272 (do_my_continuations): New.
6273 (discard_my_continuations): Rename to ...
6274 (discard_my_continuations_1): ... this. Remove old_chain
6275 parameter and adjust.
6276 (discard_my_continuations): New.
6277 (add_inferior_continuation): Simplify.
6278 (do_all_inferior_continuations): Reimplement on top
6279 do_my_continuations.
6280 (discard_all_inferior_continuations): Simplify.
6281 (add_continuation): Simplify.
6282 (do_all_continuations_ptid): Simplify.
6283 (discard_all_continuations_thread_callback): Simplify.
6284 (add_intermediate_continuation): Simplify.
6285 (discard_all_intermediate_continuations_thread_callback):
6286 Simplify.
6287
6288 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6289
6290 * utils.c (struct continuation, add_continuation)
6291 (add_inferior_continuation)
6292 (do_all_inferior_continuations, discard_all_inferior_continuations)
6293 (restore_thread_cleanup, do_all_continuations_ptid)
6294 (do_all_continuations_thread_callback)
6295 (do_all_continuations_thread, do_all_continuations)
6296 (discard_all_continuations_thread_callback)
6297 (discard_all_continuations_thread, discard_all_continuations)
6298 (add_intermediate_continuation)
6299 (do_all_intermediate_continuations_thread_callback)
6300 (do_all_intermediate_continuations_thread)
6301 (do_all_intermediate_continuations)
6302 (discard_all_intermediate_continuations_thread_callback)
6303 (discard_all_intermediate_continuations_thread)
6304 (discard_all_intermediate_continuations): Move to ...
6305 * continuations.c: ... this new file, and adjust to no longer
6306 implement continuations on top of cleanups.
6307 * Makefile.in (SFILES): Add continuations.c.
6308 (COMMON_OBS): Add continuations.o.
6309
6310 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6311
6312 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6313 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6314 Internal error on invalid values.
6315 * reverse.c: Don't handle EXEC_ERROR.
6316 * mi/mi-main.c: Don't handle EXEC_ERROR.
6317
6318 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6319
6320 * record.c: Include event-loop.h, inf-loop.h.
6321 (record_beneath_to_async): New global.
6322 (tmp_to_async): New global.
6323 (record_async_inferior_event_token): New global.
6324 (record_open_1): Don't error out if async is enabled.
6325 (record_open): Handle to_async. Create an async event source in
6326 the event loop.
6327 (record_close): Delete the async event source.
6328 (record_resumed): New global.
6329 (record_execution_dir): New global.
6330 (record_resume, record_core_resume): Set them. Register the
6331 target on the event loop.
6332 (record_wait): Rename to ...
6333 (record_wait_1): ... this. Add more debug output. Handle
6334 TARGET_WNOHANG, and the target beneath returning
6335 TARGET_WAITKIND_IGNORE.
6336 (record_wait): Reimplement on top of record_wait_1.
6337 (record_async_mask_value): New global.
6338 (record_async, record_async_mask, record_can_async_p)
6339 (record_is_async_p, record_execution_direction): New functions.
6340 (init_record_ops, init_record_core_ops): Install new methods.
6341 * infrun.c (fetch_inferior_event): Temporarily switch the global
6342 execution direction to the direction the target was going.
6343 (execution_direction): Change type to int.
6344 * target.c (default_execution_direction): New function.
6345 (update_current_target): Inherit and de_fault
6346 to_execution_direction.
6347 * target.h (struct target_ops) <to_execution_direction>: New
6348 field.
6349 (target_execution_direction): New macro.
6350 * inferior.h (execution_direction): Change type to int.
6351
6352 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6353
6354 * infcall.c (call_function_by_hand): Don't allow calling functions
6355 in reverse execution mode.
6356
6357 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6358
6359 * infcmd.c (finish_command): Allow async finish in reverse.
6360
6361 2011-05-26 Yao Qi <yao@codesourcery.com>
6362
6363 * gdb_thread_db.h: Delete. Move to ...
6364 * common/gdb_thread_db.h: ... here.
6365
6366 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6367
6368 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6369 function's entry point instead of a manually managed momentary
6370 breakpoint, and only ever issue one proceed call.
6371 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6372 doing a reverse-finish, switch to stepi mode, to do another step.
6373 (insert_step_resume_breakpoint_at_sal): Make public.
6374 (normal_stop): No need to save function value return registers if
6375 going reverse.
6376 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6377
6378 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6379
6380 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6381 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6382 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6383 at the end.
6384 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6385 step-resume breakpoints.
6386 (print_it_typical): Handle bp_hp_step_resume.
6387 (bpstat_what): Ditto.
6388 (bptype_string): Ditto.
6389 (print_one_breakpoint_location): Ditto.
6390 (allocate_bp_location): Ditto.
6391 (mention): Ditto.
6392 (breakpoint_re_set_one): Ditto.
6393 * infrun.c (handle_inferior_event): Adjust. Split
6394 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6395 BPSTAT_WHAT_HP_STEP_RESUME.
6396 (insert_step_resume_breakpoint_at_sal): Rename to ...
6397 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6398 parameter. Handle it.
6399 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6400 insert_step_resume_breakpoint_at_sal_1.
6401 (insert_step_resume_breakpoint_at_frame): Rename to ...
6402 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6403 set a high-priority step-resume breakpoint.
6404 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6405 (insert_step_resume_breakpoint_at_caller): Ditto.
6406
6407 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6408
6409 * breakpoint.c (iterate_over_related_breakpoints): New.
6410 (do_map_delete_breakpoint): New.
6411 (delete_command): Pass do_map_delete_breakpoint to
6412 map_breakpoint_numbers.
6413 (do_disable_breakpoint): New.
6414 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6415 breakpoints.
6416 (do_enable_breakpoint): Rename to ...
6417 (enable_breakpoint_disp): ... this.
6418 (enable_breakpoint): Adjust.
6419 (do_enable_breakpoint): New.
6420 (enable_once_breakpoint): Delete.
6421 (do_map_enable_breakpoint): New.
6422 (do_map_enable_once_breakpoint): New.
6423 (enable_once_command, enable_delete_command)
6424 (delete_trace_command): Iterate over the breakpoint's related
6425 breakpoints.
6426
6427 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6428
6429 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6430 for ALPHA_ZERO_REGNUM.
6431 (alpha_supply_int_regs): Explicitly supply zero as the value for
6432 ALPHA_ZERO_REGNUM in the register cache.
6433 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6434
6435 2011-05-26 Yao Qi <yao@codesourcery.com>
6436
6437 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6438
6439 2011-05-26 Tristan Gingold <gingold@adacore.com>
6440
6441 * symfile.h (struct dwarf2_section_names): New type.
6442 (struct dwarf2_debug_sections): New type.
6443 (dwarf2_has_info): Add parameter.
6444 * dwarf2read.c (dwarf2_elf_names): New variable.
6445 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6446 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6447 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6448 (dwarf2_has_info): Add names parameter. Pass names
6449 to dwarf2_locate_sections.
6450 (section_is_p): Rewrite using the names parameter.
6451 (dwarf2_locate_sections): Use section names from the names parameter.
6452 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6453 * elfread.c (read_psyms): Ditto.
6454 * machoread.c (macho_symfile_read): Ditto.
6455
6456 2011-05-25 Andreas Schwab <schwab@redhat.com>
6457
6458 PR gdb/8677
6459 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6460
6461 2011-05-24 Keith Seitz <keiths@redhat.com>
6462
6463 PR breakpoint/12803
6464 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6465 (decode_compound): Unconditionally call keep_name_info.
6466
6467 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6468
6469 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6470 scope, clear its command list.
6471 (map_breakpoint_numbers): Don't walk the related breakpoints list
6472 of each breakpoint.
6473
6474 2011-05-24 Tom Tromey <tromey@redhat.com>
6475
6476 * MAINTAINERS: Move Jim Blandy to past maintainers.
6477
6478 2011-05-24 Tristan Gingold <gingold@adacore.com>
6479
6480 * symfile.h (enum dwarf2_section_enum): New type.
6481 (dwarf2_get_section_info): New prototype.
6482 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6483 section_name by sect. Use a switch to select the info.
6484 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6485 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6486
6487 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6488
6489 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6490 shared library event breakpoint if there's no execution.
6491
6492 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6493
6494 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6495 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6496
6497 2011-05-23 Tom Tromey <tromey@redhat.com>
6498
6499 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6500 NULL.
6501
6502 2011-05-23 Doug Evans <dje@google.com>
6503
6504 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6505 entry for RuntimeError to doc string.
6506
6507 2011-05-23 Jerome Guitton <guitton@adacore.com>
6508
6509 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6510 sequence for probing loops.
6511
6512 2011-05-23 Pedro Alves <pedro@codesourcery.com>
6513
6514 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6515 comment.
6516
6517 2011-05-21 Mark Kettenis <kettenis@gnu.org>
6518
6519 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6520 zero as the value for %g0 in the register cache.
6521 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6522 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6523
6524 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6525
6526 * infrun.c (proceed): Set previous_inferior_ptid here.
6527 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6528 inferior_ptid, not null_ptid.
6529 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6530 (fetch_inferior_event): Nor here.
6531
6532 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6533
6534 * inf-loop.c (inferior_event_handler): Only output a message if
6535 verbose.
6536
6537 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
6538
6539 * MAINTAINERS: Update my e-mail address.
6540
6541 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6542
6543 * infrun.c (proceed): Switch the inferior event loop to
6544 INF_EXEC_COMPLETE if the target refused to resume from a
6545 vfork/fork.
6546
6547 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6548
6549 * infcmd.c: Include "inf-loop.h".
6550 (step_once): When stepping into an inline subroutine, pretend the
6551 target has run. If the target can async, switch the inferior
6552 event loop to INF_EXEC_COMPLETE.
6553 * inferior.h (user_visible_resume_ptid): Declare.
6554 * infrun.c (user_visible_resume_ptid): New function, factored out
6555 from `resume'.
6556 (resume): Use it.
6557 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6558 that the current thread is running. Merge async and sync
6559 branches.
6560
6561 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6562
6563 * infcmd.c (step_1): Simplify synchronous case.
6564
6565 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6566
6567 * tracepoint.c: Include exceptions.h.
6568 (TFILE_PID): Move higher in file.
6569 (tfile_open): Delay pushing the tfile target until we're assured
6570 the tfile header is present in the file. Wrap reading the initial
6571 newline-terminated lines in TRY_CATCH. Pop the target if the
6572 initial setup failed. Add the tfile's thread immediately
6573 aftwards, before any non-essential setup. Don't skip
6574 post_create_inferior if there are no traceframes present in the
6575 file.
6576 (tfile_close): Remove redundant check for null before xfree call.
6577 (tfile_thread_alive): New function.
6578 (init_tfile_ops): Register it as to_thread_alive callback.
6579
6580 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6581
6582 * tracepoint.c (tfile_open): Delete #if 0'd code.
6583
6584 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6585
6586 Fix -readnow for -gdwarf-4 unused type units.
6587 * dwarf2read.c (struct signatured_type): Remove the field offset.
6588 (create_signatured_type_table_from_index): Remove its initialization.
6589 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6590 instead. Add a complaint call.
6591 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6592 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6593 (lookup_signatured_type_at_offset, read_signatured_type)
6594 (write_one_signatured_type): Update the field for per_cu.
6595
6596 2011-05-19 Tom Tromey <tromey@redhat.com>
6597
6598 * python/py-inferior.c (python_inferior_exit): Use
6599 target_gdbarch.
6600 (python_on_resume): Likewise.
6601
6602 2011-05-19 Matt Rice <ratmice@gmail.com>
6603
6604 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6605
6606 2011-05-19 Hui Zhu <teawater@gmail.com>
6607
6608 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6609
6610 2011-05-19 Hui Zhu <teawater@gmail.com>
6611
6612 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6613
6614 2011-05-18 Tom Tromey <tromey@redhat.com>
6615
6616 * dwarf2read.c (dwarf2_add_field): Constify.
6617 * value.c (value_static_field): Constify.
6618 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6619 Now const.
6620 * ax-gdb.c (gen_static_field): Constify
6621
6622 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6623
6624 * linux-nat.c (kill_callback): Use SIGKILL first.
6625
6626 2011-05-18 Joel Brobecker <brobecker@adacore.com>
6627
6628 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6629
6630 2011-05-18 Tom Tromey <tromey@redhat.com>
6631
6632 * value.c (value_fn_field): Constify.
6633 * symtab.c (gdb_mangle_name): Constify.
6634 * stabsread.c (update_method_name_from_physname): Make 'physname'
6635 argument const.
6636 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6637 const. Use explicit fputc_filtered loop.
6638 (pascal_type_print_base): Constify.
6639 * p-lang.h (pascal_type_print_method_args): Update.
6640 * linespec.c (add_matching_methods): Constify.
6641 (add_constructors): Likewise.
6642 * jv-typeprint.c (java_type_print_base): Constify.
6643 * gdbtypes.h (struct cplus_struct_type)
6644 <fn_fieldlist.fn_field.physname>: Now const.
6645 * dwarf2read.c (compute_delayed_physnames): Constify.
6646 (dwarf2_add_member_fn): Likewise.
6647 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6648
6649 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6650
6651 * infrun.c (resume): Mention which is the current thread, and its
6652 current PC in debug output.
6653 (prepare_to_proceed): Mention the thread switching in debug
6654 output.
6655
6656 2011-05-18 Tom Tromey <tromey@redhat.com>
6657
6658 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6659 path check. Use xmalloc and cleanups.
6660 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6661
6662 2011-05-17 Tom Tromey <tromey@redhat.com>
6663
6664 * cp-valprint.c (cp_print_value_fields): Catch errors from
6665 value_static_field.
6666
6667 2011-05-17 Tom Tromey <tromey@redhat.com>
6668
6669 * dwarf2read.c (dwarf2_get_die_type): Call
6670 get_die_type_at_offset.
6671 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6672 get_base_type function.
6673
6674 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6675
6676 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6677 trap_expected.
6678
6679 2011-05-16 Doug Evans <dje@google.com>
6680
6681 * python/py-auto-load.c (source_section_scripts): Mention objfile
6682 name in warning.
6683
6684 2011-05-15 Doug Evans <dje@google.com>
6685
6686 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6687 (try_thread_db_load_from_pdir): Call it. If unable to find
6688 libthread_db in directory of libpthread, see if we're looking at
6689 the separate-debug-info copy.
6690
6691 * python/py-autoload.c (print_script): Print "Missing" instead of
6692 "No" for missing scripts.
6693 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6694
6695 2011-05-13 Doug Evans <dje@google.com>
6696
6697 * ui-file.c (stdio_file_write_async_safe): Add comment.
6698
6699 2011-05-14 Hui Zhu <teawater@gmail.com>
6700
6701 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6702
6703 2011-05-13 Doug Evans <dje@google.com>
6704
6705 Support $pdir and $sdir in libthread-db-search-path.
6706 * NEWS: Mention $sdir,$pdir.
6707 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6708 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6709 (try_thread_db_load_from_sdir): New function.
6710 (try_thread_db_load_from_dir): New function.
6711 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6712 system directories if search of libthread-db-search-path fails,
6713 that is now done via $sdir.
6714 (has_libpthread): New function.
6715 (thread_db_load): Remove search for libthread_db in directory of
6716 libpthread, that is now done via $pdir.
6717
6718 * NEWS: Mention "info auto-load-scripts".
6719 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6720 script_not_found_warning_printed.
6721 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6722 all callers updated. Initialize script_not_found_warning_printed.
6723 (get_auto_load_pspace_data_for_loading): New function.
6724 (maybe_add_script): New function.
6725 (source_section_scripts): Simplify. Only print one warning regardless
6726 of the number of auto-load scripts not found.
6727 (clear_section_scripts): Clear script_not_found_warning_printed.
6728 (auto_load_objfile_script): Record script in hash table.
6729 (count_matching_scripts): New function.
6730 (maybe_print_script): Renamed from maybe_print_section_script, all
6731 callers updated. Rewrite to use ui_out_*.
6732 (info_auto_load_scripts): Renamed from
6733 maintenance_print_section_scripts, all callers updated.
6734 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6735 renamed as "info auto-load-scripts".
6736
6737 2011-05-13 Tom Tromey <tromey@redhat.com>
6738
6739 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6740 (read_sleb128): Likewise.
6741
6742 2011-05-13 Tom Tromey <tromey@redhat.com>
6743
6744 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6745 offset display.
6746
6747 2011-05-13 Doug Evans <dje@google.com>
6748
6749 * linux-nat.c (debug_linux_nat_async): Delete.
6750 Replace all references to use debug_linux_nat instead.
6751 (show_debug_linux_nat_async): Delete.
6752 (sigchld_handler): Call ui_file_write_async_safe instead of
6753 fprintf_unfiltered.
6754 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6755 * ui-file.c (struct ui_file): New member to_write_async_safe.
6756 (null_file_write_async_safe): New function.
6757 (ui_file_write_async_safe): New function.
6758 (set_ui_file_write_async_safe): New function.
6759 (ui_file_new): Initialize to_write_async_safe.
6760 (stdio_file_write_async_safe): New function.
6761 (struct stdio_file): New member fd.
6762 (stdio_file_new): Initialize to_write_async_safe, fd.
6763 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6764 fileno.
6765 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6766 (set_ui_file_write_async_safe): Declare.
6767 (ui_file_write_async_safe): Declare.
6768
6769 2011-05-13 Tom Tromey <tromey@redhat.com>
6770
6771 * utils.c (do_value_free): New function.
6772 (make_cleanup_value_free): Likewise.
6773 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6774 freeing correctly.
6775 (dwarf2_loc_desc_needs_frame): Call
6776 make_cleanup_value_free_to_mark.
6777 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6778 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6779 value_free_to_mark.
6780 (new_dwarf_expr_context): Don't call value_mark.
6781 * dwarf2-frame.c (execute_stack_op): Call
6782 make_cleanup_value_free_to_mark.
6783 * defs.h (make_cleanup_value_free): Declare.
6784
6785 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6786
6787 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6788 prepare_execute_command.
6789 * top.c (prepare_execute_command): Return cleanup.
6790 (execute_command): Use cleanup from prepare_execute_command.
6791 * top.h (prepare_execute_command): Change prototype to return
6792 cleanup.
6793 * defs.h (struct value): Add opaque declaration.
6794 (make_cleanup_value_free_to_mark): Add prototype.
6795 * utils.c (do_value_free_to_mark): New function.
6796 (make_cleanup_value_free_to_mark): Likewise.
6797
6798 2011-05-12 Tom Tromey <tromey@redhat.com>
6799
6800 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6801 cast left-hand-side to unsigned.
6802
6803 2011-05-12 Tom Tromey <tromey@redhat.com>
6804
6805 PR gdb/12617:
6806 * value.h (value_from_contents): Declare.
6807 * value.c (value_from_contents): New function.
6808 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6809 (dwarf2_get_die_type): New function.
6810 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6811 (allocate_piece_closure): Acquire reference to values.
6812 (read_pieced_value): Update for value-based expressions.
6813 (write_pieced_value): Likewise.
6814 (free_pieced_value_closure): Call value_free as needed.
6815 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6816 Update for value-based expressions.
6817 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6818 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6819 <get_base_type>: New field.
6820 (struct dwarf_expr_piece) <v.value>: Change type.
6821 <v.regno>: New field.
6822 (struct dwarf_expr_context) <mark>: New field.
6823 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6824 (dwarf_expr_pop, dwarf_expr_push): Remove.
6825 (dwarf_expr_push_address): Declare.
6826 * dwarf2expr.c (dwarf_arch_cookie): New global.
6827 (struct dwarf_gdbarch_types): New.
6828 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6829 functions.
6830 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6831 static.
6832 (dwarf_expr_push_address): New function.
6833 (dwarf_expr_pop): Now static.
6834 (dwarf_expr_fetch): Change return type.
6835 (dwarf_require_integral): New function.
6836 (dwarf_expr_fetch): Simplify.
6837 (add_piece): Update.
6838 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6839 functions.
6840 (execute_stack_op) <sign_ext>: Remove.
6841 Use values for DWARF stack.
6842 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6843 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6844 New cases.
6845 (_initialize_dwarf2expr): New function.
6846 (add_piece): Update.
6847 (new_dwarf_expr_context): Set new field.
6848 (free_dwarf_expr_context): Call value_free_to_mark.
6849 * dwarf2-frame.c (no_base_type): New function.
6850 (execute_stack_op): Set get_base_type field. Update.
6851
6852 2011-05-12 Tom Tromey <tromey@redhat.com>
6853
6854 * dwarf2read.c (read_common_block): Fix formatting.
6855
6856 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6857
6858 * breakpoint.c (disable_breakpoint): Disable all locations
6859 associated with a tracepoint on target if a trace experiment is
6860 running.
6861 (disable_command): Disable a specific tracepoint location on target if
6862 a trace experiment is running.
6863 (do_enable_breakpoint): Enable all locations associated with a
6864 tracepoint on target if a trace experiment is running.
6865 (enable_command) Enable a specific tracepoint location on target if a
6866 trace experiment is running.
6867 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6868 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6869 to_disable_tracepoint.
6870 * target.h: Add declaration of struct bp_location.
6871 (struct target_ops): Add new functions
6872 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6873 to_disable_tracepoint to target operations.
6874 (target_supports_enable_disable_tracepoint): New macro.
6875 (target_enable_tracepoint): New macro.
6876 (target_disable_tracepoint): New macro.
6877 * remote.c (struct remote_state): Add new field.
6878 (remote_enable_disable_tracepoint_feature): New.
6879 (remote_protocol_features): Add new entry.
6880 (remote_supports_enable_disable_tracepoint): New.
6881 (remote_enable_tracepoint): New.
6882 (remote_disable_tracepoint): New.
6883 (init_remote_ops): Add remote_enable_tracepoint,
6884 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6885 to remote operations.
6886 * tracepoint.c (start_tracing): Allow tracing to start without any
6887 tracepoints enabled with just a warning if they can be re-enabled
6888 later.
6889 * NEWS: Add news item for the new behaviour of the enable and disable
6890 GDB commands when applied to tracepoints.
6891 Add news items for the new remote packets QTEnable and QTDisable.
6892
6893 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6894
6895 * config.in: Regenerate.
6896 * configure: Regenerate.
6897 * configure.ac <--with-system-readline> (for readline_echoing_p):
6898 Remove the test.
6899 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6900 (tui_old_rl_echoing_p): ... here.
6901 (tui_setup_io): Rename extern declaration readline_echoing_p to
6902 _rl_echoing_p. Adjust assignments for the both renames.
6903
6904 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6905
6906 * symtab.c (lookup_symtab): Run cleanup before returning.
6907
6908 2011-05-11 Tom Tromey <tromey@redhat.com>
6909
6910 * dwarf2read.c (handle_data_member_location): New function.
6911 (dwarf2_add_field): Use it.
6912 (read_common_block): Likewise.
6913
6914 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6915
6916 Make addrs->SECTINDEX always defined.
6917 * symfile.c (relative_addr_info_to_section_offsets): Check for
6918 SECTINDEX -1, not for zero ADDR.
6919 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6920 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6921 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6922 on its validity.
6923
6924 2011-05-10 Doug Evans <dje@google.com>
6925
6926 * linux-thread-db.c: Whitespace cleanup.
6927 (try_thread_db_load_1): Fix comment.
6928
6929 * linux-thread-db.c (set_libthread_db_search_path): New function.
6930 (_initialize_thread_db): Add setter for libthread-db-search-path.
6931
6932 2011-05-09 Doug Evans <dje@google.com>
6933
6934 * NEWS: Mention --with-iconv-bin.
6935 * configure.ac: New option --with-iconv-bin.
6936 * configure: Regenerate.
6937 * config.in: Regenerate.
6938 * defs.h (relocate_gdb_directory): Declare.
6939 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6940 removed progname parameter, and exported. All callers updated.
6941 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6942
6943 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6944 adding missing call to restore_child_signals_mask.
6945
6946 2011-05-09 Pedro Alves <pedro@codesourcery.com>
6947
6948 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6949 parameter.
6950 * infrun.c (proceed, start_remote): Adjust.
6951 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6952 and adjust to not handle it.
6953 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6954 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6955 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6956 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6957 * windows-nat.c (do_initial_windows_stuff): Adjust.
6958 * infcmd.c (attach_command): Adjust.
6959 (notice_new_inferior): Adjust.
6960
6961 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6962
6963 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6964 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6965 * spu-tdep.c (op_selb): Use correct value.
6966
6967 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6968
6969 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6970 "parent" parameter to symbol_file_add_from_bfd call.
6971
6972 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6973 Thiago Jung Bauermann <bauerman@br.ibm.com>
6974
6975 Implement support for PowerPC BookE masked watchpoints.
6976 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6977 section.
6978 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6979 method. Initialize to NULL in all existing breakpoint_ops instances.
6980 (struct breakpoint) <hw_wp_mask>: New field.
6981 * breakpoint.c (is_masked_watchpoint): Add prototype.
6982 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6983 breakpoint's breakpoint_ops.works_in_software_mode if available.
6984 (watchpoints_triggered): Handle the case of a hardware masked
6985 watchpoint trigger.
6986 (watchpoint_check): Likewise.
6987 (works_in_software_mode_watchpoint): New function.
6988 (insert_masked_watchpoint, remove_masked_watchpoint)
6989 (resources_needed_masked_watchpoint)
6990 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6991 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6992 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6993 functions.
6994 (masked_watchpoint_breakpoint_ops): New structure.
6995 (watch_command_1): Check for the existence of the `mask' parameter.
6996 Set b->ops according to the type of hardware watchpoint being created.
6997 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6998 (ppc_linux_remove_mask_watchpoint)
6999 (ppc_linux_masked_watch_num_registers): New functions.
7000 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
7001 to_remove_mask_watchpoint and to_masked_watch_num_registers.
7002 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
7003 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
7004 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
7005 (target_masked_watch_num_registers): New functions.
7006 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
7007 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
7008 methods.
7009 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
7010 (target_masked_watch_num_registers): Add prototypes.
7011
7012 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7013
7014 PR 12573
7015 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
7016 (producer_is_gcc_ge_4_0): New function.
7017 (process_full_comp_unit): Set also symtab->locations_valid. Move the
7018 symtab->language code.
7019 (var_decode_location): Set cu->has_loclist.
7020 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
7021 skip. Intialize force_skip from locations_valid. Move the prologue
7022 skipping code into two passes.
7023 * symtab.h (struct symtab): Make the primary field a bitfield. New
7024 field locations_valid.
7025
7026 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7027
7028 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
7029 (classify_inner_name): Call cp_lookup_nested_type with
7030 yylval.tsym.type.
7031 * cp-namespace.c (cp_lookup_nested_type): New variable
7032 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
7033 type_name_no_tag_or_error with saved_parent_type.
7034 * dwarf2read.c (load_partial_dies): Read in any children of
7035 DW_TAG_typedef with complaint in such case.
7036 * gdbtypes.c (type_name_no_tag_or_error): New function.
7037 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
7038 * valops.c (destructor_name_p): New comment for parameter type. Remove
7039 type const. Make dname and cp const. Call type_name_no_tag_or_error.
7040 * value.h (destructor_name_p): Remove type const.
7041
7042 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7043
7044 * symtab.c (compare_symbol_name): New function.
7045 (completion_list_add_name, expand_partial_symbol_name): Call it,
7046 remove the variable ncmp.
7047 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
7048 gdb_assert it.
7049
7050 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
7051
7052 Demote to sw watchpoint only in update_watchpoint.
7053 * breakpoint.c (update_watchpoint): Change between software and
7054 hardware watchpoint for all kinds of watchpoints, not just
7055 read/write ones. Determine b->exact value here instead of
7056 in watch_command_1. Error out if there are not enough resources
7057 for a read or access hardware watchpoint.
7058 (watch_command_1): Remove logic of checking whether there are
7059 enough resources available, since update_watchpoint will do that
7060 work now. Don't set b->exact here. Catch exceptions thrown by
7061 update_watchpoint and delete the watchpoint.
7062 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
7063 Use target_exact_watchpoints instead.
7064 (delete_breakpoint): Notify observers only if deleted watchpoint
7065 has a breakpoint number assigned to it.
7066
7067 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
7068
7069 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7070
7071 2011-05-05 Jerome Guitton <guitton@adacore.com>
7072
7073 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
7074 New functions.
7075 (i386_stack_tramp_frame_unwind): New static global.
7076 (i386_match_pattern): New function, extracted from i386_match_insn.
7077 (i386_match_insn): Use i386_match_pattern.
7078 (i386_match_insn_block): New function.
7079 (i386_tramp_chain_in_reg_insns)
7080 (i386_tramp_chain_on_stack_insns): New static variables.
7081 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
7082 of unwinders.
7083
7084 2011-05-04 Joseph Myers <joseph@codesourcery.com>
7085
7086 * configure.host (xscale*): Don't handle target.
7087 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
7088 handle targets.
7089
7090 2011-05-04 Yao Qi <yao@codesourcery.com>
7091
7092 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
7093
7094 2011-05-03 Joel Brobecker <brobecker@adacore.com>
7095
7096 Revert:
7097 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
7098 | * elfread.c (elf_symtab_read): Stop memory leak.
7099
7100 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7101
7102 * nto-tdep.c (nto_target): Replace deprecated call to
7103 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
7104
7105 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7106
7107 Fix false GCC warning.
7108 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
7109
7110 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
7111
7112 * breakpoint.c (update_watchpoint): Move code to change
7113 the enable state of breakpoint from here ...
7114 (do_enable_breakpoint): ... to here.
7115
7116 2011-04-26 Andrew Gontarek <andrewg@cray.com>
7117
7118 * valprint.c (val_print_array_elements): Fixed poor performance
7119 of printing very large arrays with repeat_count_threshold set
7120 to unlimited. New comment.
7121
7122 2011-04-29 Tom Tromey <tromey@redhat.com>
7123
7124 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
7125 (mi_parse): Likewise.
7126 * breakpoint.c (break_range_command): Use sizeof char*, not
7127 char**.
7128 (create_breakpoint): Likewise.
7129 (parse_breakpoint_sals): Likewise.
7130
7131 2011-04-29 Pedro Alves <pedro@codesourcery.com>
7132
7133 * linux-nat.c (linux_child_remove_fork_catchpoint)
7134 (linux_child_remove_vfork_catchpoint)
7135 (linux_child_remove_exec_catchpoint): New functions.
7136 (linux_target_install_ops): Install them.
7137
7138 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
7139
7140 PR mi/12531
7141
7142 * varobj.c (install_default_visualizer): Do not install a
7143 visualizer if the varobj is CPLUS_FAKE_CHILD.
7144 (construct_visualizer): Likewise.
7145
7146 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7147
7148 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
7149 case insensitive comparison.
7150
7151 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
7152
7153 * infrun.c (proceed): Revert previous change.
7154 (resume): Instead, handle the case of signal delivery while stepping
7155 off a breakpoint location here, and only if software single-stepping
7156 is used. Handle nested signals.
7157
7158 2011-04-28 Yao Qi <yao@codesourcery.com>
7159
7160 * arm-tdep.c (copy_unmodified): Rename to ...
7161 (arm_copy_unmodified): .. this. New.
7162 (copy_preload): Move common part to ...
7163 (install_preload): .. this. New.
7164 (arm_copy_preload): New.
7165 (copy_preload_reg): Move common part to ...
7166 (install_preload_reg): ... this. New.
7167 (arm_copy_preload_reg): New.
7168 (copy_b_bl_blx): Move common part to ...
7169 (install_b_bl_blx): .. this. New.
7170 (arm_copy_b_bl_blx): New.
7171 (copy_bx_blx_reg): Move common part to ...
7172 (install_bx_blx_reg): ... this. New.
7173 (arm_copy_bx_blx_reg): New.
7174 (copy_alu_reg): Move common part to ...
7175 (install_alu_reg): ... this. New.
7176 (arm_copy_alu_reg): New.
7177 (copy_alu_shifted_reg): Move common part to ...
7178 (install_alu_shifted_reg): ... this. New.
7179 (copy_ldr_str_ldrb_strb): Move common part to ...
7180 (install_ldr_str_ldrb_strb): ... this. New.
7181 (arm_copy_ldr_str_ldrb_strb): New.
7182 (copy_copro_load_store): Move some common part to ...
7183 (install_copy_copro_load_store): ... this. New.
7184 (arm_copy_copro_load_store): New.
7185 (copy_svc): Delete.
7186 (arm_copy_svc): Renamed from copy_svc.
7187 (copy_undef): Delete.
7188 (arm_copy_undef): Renamed from copy_undef.
7189 (decode_ext_reg_ld_st): Delete.
7190 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7191 (decode_svc_copro): Delete.
7192 (arm_decode_svc_copro): Renamed from decode_svc_copro.
7193 (copy_copro_load_store, copy_alu_imm): update callers.
7194 (copy_extra_ld_st, copy_block_xfer): Likewise.
7195 (decode_misc_memhint_neon, decode_unconditional): Likewise.
7196 (decode_miscellaneous, decode_dp_misc): Likewise.
7197 (decode_ld_st_word_ubyte, decode_media): Likewise.
7198 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
7199 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
7200 (decode_unconditional, decode_miscellaneous): Likewise.
7201 (decode_media, decode_b_bl_ldmstm): Likewise.
7202 (arm_process_displaced_insn): Likewise..
7203 (decode_misc_memhint_neon): Delete.
7204 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
7205 (decode_miscellaneous): Delete.
7206 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
7207 (decode_dp_misc): Delete.
7208 (arm_decode_dp_misc): Renamed from decode_dp_misc.
7209 (decode_ld_st_word_ubyte): Delete.
7210 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
7211 (decode_media): Delete.
7212 (arm_decode_media): Renamed from decode_media.
7213 (decode_b_bl_ldmstm): Delete.
7214 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
7215 (decode_ext_reg_ld_st): Delete.
7216 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7217 (decode_unconditional): Delete.
7218 (arm_decode_unconditional): Renamed from decode_unconditional.
7219
7220 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7221
7222 Case insensitive lookups implementation.
7223 * dwarf2read.c: Include ctype.h.
7224 (struct mapped_index): New field version.
7225 (mapped_index_string_hash): New parameter index_version. New comment
7226 for it. Call tolower appropriately.
7227 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
7228 Choose the right index version for mapped_index_string_hash.
7229 (dwarf2_read_index): Support also the index version 5. Initialize the
7230 new struct mapped_index field version.
7231 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
7232 (find_slot): Explain the version needs. Pass INT_MAX for the new
7233 parameter.
7234 (write_psymtabs_to_index): Produce version 5.
7235 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
7236 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
7237 * psymtab.c (lookup_partial_symbol): Find the
7238 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
7239 entries.
7240 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
7241 NAME lowercasing.
7242 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
7243 (completion_list_add_name): New variable ncmp, initialize it, use it.
7244 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
7245 * utils.c (strcmp_iw): Support case_sensitive_off.
7246 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
7247 New function comment part. New variables saved_string1,
7248 saved_string2 and case_pass. Add a proper second pass.
7249
7250 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7251
7252 Replace re_comp/re_exec by regcomp/regexec.
7253 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
7254 (search_symbols_name_matches): Use them, use regexec.
7255 (search_symbols): New variable retval_chain, adjust the use of
7256 old_chain against it. Replace re_comp by regcomp. Use the new struct
7257 search_symbols_data fields, use regexec instead of re_exec.
7258
7259 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7260
7261 Format the code for the next patch.
7262 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
7263 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
7264 New variables c1 and c2.
7265
7266 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7267
7268 * infrun.c (proceed): Do not single-step into signal delivery
7269 when stepping off a breakpoint location.
7270 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
7271 (insert_step_resume_breakpoint_at_caller): Likewise.
7272 (insert_step_resume_breakpoint_at_sal): Likewise.
7273 (insert_longjmp_resume_breakpoint): Likewise.
7274
7275 2011-04-27 Yao Qi <yao@codesourcery.com>
7276
7277 * common/linux-ptrace.h: Remove include <sys/wait.h>.
7278
7279 2011-04-27 Joel Brobecker <brobecker@adacore.com>
7280
7281 * procfs.c (procfs_pass_signals): Fix advance declaration.
7282
7283 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7284
7285 * target.h (struct target_ops): Remove to_notice_signals;
7286 add to_pass_signals.
7287 (target_notice_signals): Remove.
7288 (target_pass_signals): Add prototype.
7289 * target.c (update_current_target): Remove to_notice_signals;
7290 mention to_pass_signals.
7291 (target_pass_signals): New function.
7292 (debug_to_notice_signals): Remove.
7293 (setup_target_debug): Do not install debug_to_notice_signals.
7294
7295 * infrun.c (signal_pass): New global.
7296 (resume): Call target_pass_signals.
7297 (handle_inferior_event): Report all signals while stepping over
7298 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
7299 are re-inserted when stepping over a signal handler.
7300 (signal_cache_update): New function.
7301 (signal_stop_update): Call it.
7302 (signal_print_update): Likewise.
7303 (signal_pass_update): Likewise.
7304 (handle_command): Call signal_cache_update and target_pass_signals
7305 instead of target_notice_signals.
7306 (_initialize_infrun): Initialize signal_pass.
7307
7308 * linux-nat.c (pass_mask): New global.
7309 (linux_nat_pass_signals): New function.
7310 (linux_nat_create_inferior): Report all signals initially.
7311 (linux_nat_attach): Likewise.
7312 (linux_nat_resume): Use pass_mask to decide whether to directly
7313 handle an inferior signal.
7314 (linux_nat_wait_1): Likewise.
7315 (linux_nat_add_target): Install to_pass_signals callback.
7316
7317 * nto-procfs.c (notice_signals): Remove.
7318 (procfs_resume): Do not call notice_signals.
7319 (procfs_notice_signals): Remove.
7320 (procfs_pass_signals): New function.
7321 (init_procfs_ops): Install to_pass_signals callback instead of
7322 to_notice_signals callback.
7323 (_initialize_procfs): Report all signals initially.
7324
7325 * procfs.c (procfs_notice_signals): Remove.
7326 (procfs_pass_signals): New function.
7327 (procfs_target): Install to_pass_signals callback instead of
7328 to_notice_signals callback.
7329 (register_gdb_signals): Remove.
7330 (procfs_debug_inferior): Report all signals initially.
7331 (procfs_init_inferior): Remove redundant register_gdb_signals call.
7332
7333 * remote.c (remote_pass_signals): Add numsigs and pass_signals
7334 parameters; use them instead of calling signal_..._state routines.
7335 (remote_notice_signals): Remove.
7336 (remote_start_remote): Report all signals initially.
7337 (remote_resume): Do not call remote_pass_signals.
7338 (_initialize_remote): Install to_pass_signals callback instead of
7339 to_notice_signals callback.
7340
7341 2011-04-27 Pedro Alves <pedro@codesourcery.com>
7342
7343 * breakpoint.c (user_settable_breakpoint): Delete.
7344 (user_breakpoint_p): Remove check on user_settable_breakpoint.
7345 (delete_command): Check user_breakpoint_p instead of looking at
7346 the breakpoint's type.
7347 (disable_command): Ditto.
7348 (enable_command): Ditto.
7349 (delete_trace_command): Use user_breakpoint_p instead of looking
7350 at the breakpoint number directly. When checking if there are
7351 user visible tracepoints, in order to know whether to ask the user
7352 for confirmation, check whether the breakpoint is actually a
7353 tracepoint.
7354
7355 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7356
7357 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7358 compilation.
7359
7360 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7361
7362 MI breakpoint notifications.
7363
7364 * annotate.c (breakpoint_changed): Adjust parameter type.
7365 * breakpoint.c (set_breakpoint_condition): Adjust to change
7366 in breakpoint_modified type.
7367 (breakpoint_set_commands): Likewise.
7368 (do_map_commands_command): Likewise.
7369 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7370 changed after bumping hit count.
7371 (bpstat_stop_status): Likewise.
7372 (print_one_breakpoint_location): Don't wrap in tuple here.
7373 (print_one_breakpoint): Always print individual locations.
7374 For locations, use unnamed tuple.
7375 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7376 has changed.
7377 (create_catchpoint, create_syscall_event_catchpoint): Call
7378 breakpoint_created obsever.
7379 (mention): Don't call breakpoint_created observer.
7380 (create_breakpoint_sal): Call breakpoint_created observer.
7381 (create_breakpoint, watch_command_1): Likewise.
7382 (create_ada_exception_breakpoint): Likewise.
7383 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7384 (locations_are_equal): New.
7385 (update_breakpoint_locations): If locations were changed, notify.
7386 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7387 Call breakpoint_modified observer.
7388
7389 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7390 (mi_cmd_break_insert): Don't set observers for modify and delete.
7391 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7392 (mi_breakpoint_created, mi_breakpoint_deleted)
7393 (mi_breakpoint_modified): New.
7394 (mi_interpreter_init): Hook the above.
7395 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7396 while -break-* commands are executing.
7397 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7398 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7399 (mi_redirect): New.
7400 (mi_ui_out_impl): Hook in mi_redirect.
7401 (mi_field_skip): True to the name, skip the field, don't output
7402 a field with an empty value.
7403
7404 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7405 (gdbpy_breakpoint_deleted): Adjust.
7406 * tui/tui-hooks.c (tui_event_create_breakpoint)
7407 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
7408
7409 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7410
7411 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7412 (procfs_remove_hw_watchpoint): Likewise.
7413
7414 2011-04-26 Michael Walle <michael@walle.cc>
7415
7416 * remote.c (remote_start_remote): Ack packet after sending the
7417 interrupt sequence.
7418
7419 2011-04-26 Yao Qi <yao@codesourcery.com>
7420
7421 * linux-nat.c: Move common macros to ...
7422 Include linux-ptrace.h.
7423 * common/linux-ptrace.h: ... here. New.
7424
7425 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7426
7427 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7428 !objfile_has_partial_symbols. New comment.
7429 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7430 SYM_READ_PSYMBOLS is not present. Extend the comment.
7431 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7432
7433 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7434
7435 * defs.h (ENUM_BITFIELD): Remove.
7436
7437 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7438 Eli Zaretskii <eliz@gnu.org>
7439
7440 * NEWS: Document the new gdbserver --once option.
7441
7442 2011-04-21 Jie Zhang <jzhang918@gmail.com>
7443
7444 * MAINTAINERS: Update my email address.
7445
7446 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7447
7448 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7449 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7450 function call if __STDC_ISO_10646__ macro is defined.
7451 (intermediate_encoding): New prototype.
7452 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7453 to generate compile time error for unsupported gdb_wchar_t size.
7454 (ENDIAN_SUFFIX): New macro.
7455 (intermediate_encoding): New function.
7456
7457 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7458
7459 * ada-lang.c (struct add_partial_datum): Update the comment for
7460 expand_partial_symbol_name.
7461 (ada_add_partial_symbol_completions): Rename to ...
7462 (ada_expand_partial_symbol_name): ... here, change return type, update
7463 function comment, call symbol_completion_match instead of
7464 symbol_completion_add.
7465 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7466 and ada_expand_partial_symbol_name.
7467 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7468 FILE_MATCHER.
7469 (dw2_map_symbol_names): Remove.
7470 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7471 * psymtab.c (map_symbol_names_psymtab): Remove.
7472 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7473 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7474 order.
7475 (psym_functions): Unlist map_symbol_names_psymtab.
7476 (map_partial_symbol_names): Rename to ...
7477 (expand_partial_symbol_names): ... here, change the FUN type, call
7478 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7479 * psymtab.h (map_partial_symbol_names): Rename to ...
7480 (expand_partial_symbol_names): ... here, change the FUN type.
7481 * symfile.h (struct quick_symbol_functions): Update the description of
7482 expand_symtabs_matching. Remove map_symbol_names.
7483 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7484 (struct add_name_data): Update the comment for
7485 expand_partial_symbol_name.
7486 (add_partial_symbol_name): Rename to ...
7487 (expand_partial_symbol_name): ... here. Replace
7488 completion_list_add_name call by strncmp.
7489 (default_make_symbol_completion_list_break_on): Use now
7490 expand_partial_symbol_names and expand_partial_symbol_name.
7491 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7492
7493 2011-04-20 Tom Tromey <tromey@redhat.com>
7494
7495 * dwarf2read.c (save_gdb_index_command): Replace format
7496 documentation with a pointer to the manual.
7497
7498 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7499
7500 * regcache.c: Include remote.h.
7501 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7502 (regcache_dump): Handle regcache_dump_remote.
7503 (maintenance_print_remote_registers): New function.
7504 (_initialize_regcache): Install "maint print remote-registers"
7505 command.
7506 * remote.c (map_regcache_remote_table): New function, factored out
7507 from ...
7508 (init_remote_state): ... here.
7509 (remote_register_number_and_offset): New.
7510 * remote.h (remote_register_number_and_offset): Declare.
7511
7512 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7513
7514 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7515 null_ptid, assume and allow a NULL address space, instead of
7516 asking the target for the ptid's address space.
7517 * infrun.c (ptid_is_pid): Remove assertion.
7518
7519 2011-04-19 Tom Tromey <tromey@redhat.com>
7520
7521 * windows-tdep.c (windows_xfer_shared_library):
7522 * windows-nat.c (get_module_name, windows_make_so):
7523 * v850-tdep.c (v850_handle_pushm):
7524 * utils.c (null_cleanup, gdb_realpath):
7525 * ui-out.c (get_next_header):
7526 * tracepoint.c (clear_traceframe_info):
7527 * symtab.c (lookup_symtab):
7528 * serial.h (struct serial_ops):
7529 * mipsread.c (read_alphacoff_dynamic_symtab):
7530 * infcmd.c (print_return_value):
7531 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7532 * f-exp.y (parse_number):
7533 * exceptions.c (catch_exceptions):
7534 * dummy-frame.c (dummy_frame_this_id):
7535 * defs.h (struct cleanup):
7536 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7537 * arm-tdep.c (arm_push_dummy_call):
7538 * amd64-tdep.h (amd64_collect_xsave):
7539 * amd64-tdep.c (amd64_collect_xsave):
7540 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7541 * README (typing): Remove duplicate words.
7542 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7543 * infrun.c (siginfo_value_read): Fix typo.
7544 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7545 * top.c (source_line_number): Add comma.
7546
7547 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7548
7549 * thread.c (any_live_thread_of_process): Prioritize threads
7550 that are not executing.
7551 * gdbthread.h (any_live_thread_of_process): Update comment
7552 as per above change.
7553
7554 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7555
7556 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7557 (scan_xcoff_symtab): Likewise.
7558
7559 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7560
7561 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7562 inside if clause.
7563
7564 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7565 Pedro Alves <pedro@codesourcery.com>
7566
7567 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7568 variables to simplify code and avoid == operator at end of
7569 line as this is against GNU coding standards.
7570
7571 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7572
7573 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7574 lm_name to name_lm to avoid conflict with lm_name function.
7575
7576 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7577
7578 ARI fixes: Use only lowercase function name for static functions.
7579 * nto-tdep.c (LM_ADDR): Rename to...
7580 (lm_addr): New function name.
7581 (nto_relocate_section_addresses): Adapt to change above.
7582 * solib-sunos.c (LM_ADDR): Rename to...
7583 (lm_addr): New function name.
7584 (LM_NEXT): Rename to...
7585 (lm_next): New function name.
7586 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7587 function name changes above.
7588 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7589 (lm_addr_from_link_map): New function name.
7590 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7591 (has_lm_dynamic_from_link_map): New function name.
7592 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7593 (lm_dynamic_from_link_map): New function name.
7594 (LM_ADDR_CHECK): Rename to...
7595 (lm_addr_check): New function name.
7596 (LM_NEXT): Rename to...
7597 (lm_next): New function name.
7598 (LM_PREV): Rename to...
7599 (lm_prev): New function name.
7600 (LM_NAME): Rename to...
7601 (lm_name): New function name.
7602 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7603 (ignore_first_link_map_entry): New function name.
7604 (svr4_keep_data_in_core): Adapt to function name changes above.
7605 (svr4_current_sos): Likewise.
7606 (enable_break): Likewise.
7607 (svr4_relocate_section_addresses): Likewise.
7608
7609 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7610
7611 ARI cleanup.
7612 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7613 sprintf. Simplify code and avoid loosing memory.
7614 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7615 (call0_frame_cache): Remove && operator from end of line.
7616
7617 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7618
7619 Fix libraries displacement if they change whether they were prelinked.
7620 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7621 does not match. Comment why.
7622
7623 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7624
7625 * corelow.c: Include wrapper.h.
7626 (core_open): Call now gdb_target_find_new_threads.
7627 * wrapper.c: Include target.h.
7628 (gdb_target_find_new_threads): New.
7629 * wrapper.h (gdb_target_find_new_threads): New declaration.
7630
7631 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7632
7633 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7634 even if !TARGET_HAS_EXECUTION.
7635
7636 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7637
7638 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7639 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7640 bfd_get_synthetic_symtab.
7641 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7642 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7643 parameter parent, remove the call to add_separate_debug_objfile.
7644 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7645 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7646 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7647 parent, new comment for it, call add_separate_debug_objfile for it.
7648 (symbol_file_add_separate): Pass objfile as the parameter parent,
7649 remove the call to add_separate_debug_objfile.
7650 (symbol_file_add_from_bfd): New parameter parent, pass it.
7651 (symbol_file_add): Pass NULL to the new parameter parent.
7652 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7653
7654 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7655
7656 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7657 BSF_SYNTHETIC.
7658
7659 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7660
7661 Fix Python access to inlined frames.
7662 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7663 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7664
7665 2011-04-15 Tom Tromey <tromey@redhat.com>
7666
7667 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7668
7669 2011-04-15 Gary Benson <gbenson@redhat.com>
7670
7671 * MAINTAINERS: Add myself to write-after-approval section.
7672
7673 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7674
7675 * remote-sim.c (sim_command_completer): New function.
7676 (_initialize_remote_sim): Set completer to sim_command_completer.
7677
7678 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7679
7680 * breakpoint.c (print_exception_catchpoint): Rename to ...
7681 (print_it_exception_catchpoint): ... this.
7682 (gnu_v3_exception_catchpoint_ops): Update with new name
7683 for print_it_exception_catchpoint.
7684
7685 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7686
7687 * MAINTAINERS: Add myself for write after approval privileges.
7688
7689 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7690
7691 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7692
7693 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7694
7695 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7696
7697 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7698
7699 * breakpoint.c (save_breakpoints): Verify whether
7700 breakpoint_ops.print_recreate is defined before calling it.
7701
7702 2011-04-11 Gary Benson <gbenson@redhat.com>
7703
7704 Fix failure with --enable-maintainer-mode.
7705 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7706
7707 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7708
7709 Code cleanup.
7710 * symtab.c (search_symbols): Reorder the KIND description in the
7711 function comment. Remove the unused 4th element of types, types2,
7712 types3 and types4. New gdb_assert on KIND.
7713 (symtab_symbol_info): Remove the unused 4th element of classnames.
7714 New gdb_assert on KIND.
7715 * symtab.h (enum search_domain): New warning in the enum comment.
7716 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7717 TYPES_DOMAIN.
7718
7719 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7720
7721 Fix crash of gdb save-index on a STABS file.
7722 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7723 PSYMTABS_ADDRMAP.
7724
7725 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7726
7727 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7728 * dwarf2read.c: Include ctype.h.
7729 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7730 functions.
7731 (dwarf2_add_field): Fix new_field->accessibility by calling
7732 dwarf2_default_access_attribute. Restructure setting accessibility
7733 vs. virtuality.
7734 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7735 is_private and is_protected by calling
7736 dwarf2_default_access_attribute.
7737
7738 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7739
7740 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7741 to the initialization.
7742
7743 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7744
7745 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7746 initalization.
7747
7748 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7749
7750 Remove support for old Cygwin 1.5 versions.
7751 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7752 function on old Cygwin version.
7753 * windows-nat.c: Remove cygwin version check and always define
7754 __USEWIDE for Cygwin compilation.
7755
7756 2011-04-07 Yao Qi <yao@codesourcery.com>
7757
7758 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7759 and TO.
7760 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7761 (arm_copy_svc): Remove parameters INSN and TO.
7762 (decode_svc_copro): Update caller.
7763 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7764 from function pointer `copy_svc_os'.
7765
7766 2011-04-07 Yao Qi <yao@codesourcery.com>
7767
7768 * arm-tdep.c (cleanup_branch): Set a correct return address in
7769 LR for ARM and Thumb.
7770
7771 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7772
7773 Code cleanup.
7774 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7775 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7776 in the function comment, a new note on values compatibility.
7777 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7778 * symtab.h (SYMBOL_HASH_NEXT): New.
7779
7780 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7781
7782 * ppc-linux-nat.c (check_condition): Add len output parameter.
7783 Set it based on the memory region referenced in the condition
7784 expression. Update all callers.
7785
7786 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7787
7788 Fix crash regression on systems featuring .gdb_index.
7789 * objfiles.c (free_objfile): Move the
7790 forget_cached_source_info_for_objfile call earlier. Comment it.
7791 Extend the comment for objfile_free_data.
7792
7793 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7794
7795 Fix regression of displaying the debug format.
7796 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7797 subfile.
7798
7799 2011-04-04 Tom Tromey <tromey@redhat.com>
7800
7801 * cli/cli-interp.c (struct captured_execute_command_args):
7802 Remove.
7803 (do_captured_execute_command): Remove.
7804 (safe_execute_command): Use TRY_CATCH.
7805 * cli/cli-script.c (struct wrapped_read_command_file_args):
7806 Remove.
7807 (wrapped_read_command_file): Remove.
7808 (script_from_file): Use TRY_CATCH.
7809 * exceptions.c (catch_exception): Remove.
7810 * exceptions.h (catch_exception): Remove.
7811 (deprecated_throw_reason): Update comment.
7812 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7813 argument to 'context'.
7814 (mi_execute_command): Use TRY_CATCH.
7815 * remote.c (struct start_remote_args): Remove.
7816 (remote_start_remote): Update; change arguments.
7817 (remote_open_1): Use TRY_CATCH.
7818
7819 2011-04-04 Tom Tromey <tromey@redhat.com>
7820
7821 * tracepoint.c (scope_info): Update.
7822 * symtab.c (decode_line_spec): Update.
7823 * python/python.c (gdbpy_decode_line): Update.
7824 * linespec.h (decode_line_1): Update.
7825 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7826 (decode_compound, find_method, symtab_from_filename)
7827 (decode_variable): Likewise.
7828 * cli/cli-cmds.c (edit_command): Update.
7829 (list_command): Update.
7830 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7831 argument.
7832 (create_breakpoint): Update.
7833 (until_break_command): Update.
7834 (addr_string_to_sals): Update.
7835 (decode_line_spec_1): Update.
7836
7837 2011-04-04 Tom Tromey <tromey@redhat.com>
7838
7839 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7840 (do_captured_parse_breakpoint): Remove.
7841 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7842 Use TRY_CATCH directly.
7843
7844 2011-04-04 Tom Tromey <tromey@redhat.com>
7845
7846 * symtab.h (free_symtab): Remove.
7847 (forget_cached_source_info_for_objfile): Declare.
7848 * symmisc.c (free_symtab): Remove.
7849 * source.c (forget_cached_source_info_for_objfile): New function.
7850 (forget_cached_source_info): Use it.
7851 * objfiles.c (free_objfile): Simplify check before calling
7852 clear_current_source_symtab_and_line. Call
7853 forget_cached_source_info_for_objfile.
7854
7855 2011-04-04 Tom Tromey <tromey@redhat.com>
7856
7857 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7858 (new_symtab): Don't set `free_code' on symtab.
7859 (new_linetable): Properly handle size==0.
7860 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7861 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7862 free_func.
7863 * jv-lang.c (struct jv_per_objfile_data): New.
7864 (jv_per_objfile_free): Free the data.
7865 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7866 (get_java_class_symtab): Set the `dict' field on the
7867 jv_per_objfile_data.
7868 (free_class_block): Remove.
7869 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7870 the symtab.
7871
7872 2011-04-04 Tom Tromey <tromey@redhat.com>
7873
7874 * symfile.c (reread_symbols): Update.
7875 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7876 field.
7877 * objfiles.c (allocate_objfile): Update.
7878 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7879 declare.
7880 * cp-namespace.c (lookup_symbol_file): Don't call
7881 lookup_possible_namespace_symbol.
7882 (initialize_namespace_symtab, get_possible_namespace_block)
7883 (free_namespace_block, cp_check_possible_namespace_symbols)
7884 (check_possible_namespace_symbols_loop)
7885 (check_one_possible_namespace_symbol)
7886 (lookup_possible_namespace_symbol): Remove.
7887 (maintenance_cplus_namespace): Replace with notice.
7888 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7889
7890 2011-04-04 Tom Tromey <tromey@redhat.com>
7891
7892 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7893 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7894 * symmisc.c (free_symtab): Don't free debugformat.
7895 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7896 (record_debugformat, record_producer): Document.
7897 * buildsym.c (end_symtab): Don't save debugformat and producer
7898 names on obstack.
7899 (end_symtab): Don't free debugformat and producer fields.
7900 (record_debugformat): Don't call xstrdup.
7901 (record_producer): Likewise.
7902
7903 2011-04-04 Tom Tromey <tromey@redhat.com>
7904
7905 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7906 (source_line_charpos, source_charpos_line): Remove.
7907
7908 2011-04-04 Tom Tromey <tromey@redhat.com>
7909
7910 * symtab.h (domain_enum): Split in two...
7911 (enum search_domain): New.
7912 (search_symbols): Update.
7913 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7914 redundant declarations.
7915 (search_symbols): Change 'kind' argument to search_domain.
7916 Update.
7917 (print_symbol_info): Likewise.
7918 (symtab_symbol_info): Likewise.
7919 * symfile.h (struct quick_symbol_functions)
7920 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7921 <expand_symtabs_matching>: Likewise.
7922 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7923 (expand_symtabs_matching_via_partial): Update.
7924 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7925 (dw2_expand_symtabs_for_function): Update.
7926 * block.h: Moved anonymous enum...
7927 * defs.h (enum block_enum): ... here. Now named.
7928
7929 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7930
7931 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7932 * version.in: Bump version to 7.3.50.20110403-cvs.
7933
7934 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7935
7936 * NEWS: Create a new section for the next release branch.
7937 Rename the section of the current branch, now that it has
7938 been cut.
7939
7940 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7941
7942 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7943 for "fpscr" in target description.
7944
7945 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7946
7947 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7948 initialize it. Delay HASH initialization. Strip the part after open
7949 parenthesis for languages with qualifiers. Call do_cleanups.
7950
7951 2011-04-01 Tom Tromey <tromey@redhat.com>
7952
7953 * utils.c (report_command_stats): Don't print `-' for negative
7954 number.
7955
7956 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7957
7958 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7959 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7960 typedefs.
7961
7962 2011-04-01 Joel Brobecker <brobecker@adacore.com>
7963
7964 * breakpoint.h (bpdisp_text): Add declaration.
7965 * breakpoint.c (bpdisp_text): Make non-static.
7966 * ada-lang.c: #include "mi/mi-common.h".
7967 (print_it_exception): Rewrite to improve GDB/MI output.
7968
7969 2011-04-01 Pedro Alves <pedro@codesourcery.com>
7970
7971 * arm-tdep.h (struct address_space): Add forward declaration.
7972
7973 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7974
7975 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7976 * arm-tdep.c (arm_override_mode): New global.
7977 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7978 execution mode heuristics.
7979 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7980 second single-step breakpoint if needed, using
7981 arm_insert_single_step_breakpoint.
7982 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7983 ARM execution mode, do not call thumb_get_next_pc_raw.
7984 (arm_get_next_pc): Encode execution mode in return value. Call
7985 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7986 (arm_insert_single_step_breakpoint): New function.
7987 (arm_software_single_step): Call it.
7988 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7989 argument to return execution mode of sigreturn target.
7990 (arm_linux_syscall_next_pc): Use it.
7991 (arm_linux_copy_svc): Update call.
7992 (arm_linux_software_single_step): Call
7993 arm_insert_single_step_breakpoint.
7994
7995 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7996
7997 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7998 the comment.
7999
8000 2011-03-31 Tom Tromey <tromey@redhat.com>
8001
8002 * varobj.c (update_dynamic_varobj_children): Properly handle
8003 errors from iterator.
8004
8005 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
8006
8007 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
8008 struct linkage name twice.
8009
8010 2011-03-31 Tom Tromey <tromey@redhat.com>
8011
8012 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
8013 missing ">" to message.
8014
8015 2011-03-31 Tom Tromey <tromey@redhat.com>
8016
8017 * varobj.c (instantiate_pretty_printer): Remove duplicate
8018 'return'.
8019
8020 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
8021
8022 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
8023 if neither saved value nor register available (e.g. signal frame).
8024
8025 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
8026
8027 * macroexp.c (expand): Avoid uninitialized variable
8028 compiler warning.
8029
8030 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
8031
8032 * breakpoint.c (break_range_command): Fix typo in comment.
8033
8034 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
8035 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8036
8037 Implement support for PowerPC BookE ranged breakpoints.
8038 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
8039 * breakpoint.h (struct bp_target_info) <length>: New member
8040 variable.
8041 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
8042 instead of struct breakpoint as argument, and also add ASPACE
8043 and BP_ADDR arguments. Update all callers.
8044 (struct breakpoint_ops) <print_one_detail>: New method.
8045 (struct breakpoint) <addr_string_range_end>: New member variable.
8046 * breakpoint.c (breakpoint_location_address_match): Add function
8047 prototype.
8048 (insert_bp_location): Set bl->target_info.length.
8049 (breakpoint_here_p): Call breakpoint_location_address_match.
8050 (moribund_breakpoint_here_p): Likewise.
8051 (regular_breakpoint_inserted_here_p): Likewise.
8052 (breakpoint_thread_match): Likewise.
8053 (bpstat_stop_status): Likewise.
8054 (bpstat_check_location): Move call to
8055 breakpoint_ops.breakpoint_hit to the top.
8056 (print_one_breakpoint_location): Call
8057 breakpoint_ops.print_one_detail if available.
8058 (breakpoint_address_match_range): New function.
8059 (breakpoint_location_address_match): Likewise.
8060 (breakpoint_locations_match): Compare the length field of the
8061 locations too.
8062 (hw_breakpoint_used_count): Count resources used by all locations
8063 in a breakpoint, and use breakpoint_ops.resources_needed if
8064 available.
8065 (breakpoint_hit_ranged_breakpoint): New function.
8066 (resources_needed_ranged_breakpoint): Likewise.
8067 (print_it_ranged_breakpoint): Likewise.
8068 (print_one_ranged_breakpoint): Likewise.
8069 (print_one_detail_ranged_breakpoint): Likewise.
8070 (print_mention_ranged_breakpoint): Likewise.
8071 (print_recreate_ranged_breakpoint): Likewise.
8072 (ranged_breakpoint_ops): New structure.
8073 (find_breakpoint_range_end): New function.
8074 (break_range_command): Likewise.
8075 (delete_breakpoint): Free addr_string_range_end.
8076 (update_breakpoint_locations): Add SALS_END argument. Update
8077 all callers. Calculate breakpoint length if a non-zero SALS_END
8078 is given. Call breakpoint_locations_match instead of
8079 breakpoint_address_match.
8080 (reset_breakpoint): Find SaL of the end of the range if B is a
8081 ranged breakpoint.
8082 (_initialize_breakpoint): Register break-range command.
8083 * defs.h (print_core_address): Add function prototype.
8084 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
8085 function.
8086 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
8087 (ppc_linux_remove_hw_breakpoint): Likewise.
8088 (_initialize_ppc_linux_nat): Initialize
8089 to_ranged_break_num_registers.
8090 * target.c (update_current_target): Add comment about
8091 to_ranged_break_num_registers.
8092 (target_ranged_break_num_registers): New function.
8093 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8094 New method.
8095 (target_ranged_break_num_registers): Add function prototype.
8096 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
8097 * utils.c (print_core_address): ... here.
8098
8099 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
8100
8101 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
8102 variable compiler warning.
8103
8104 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
8105
8106 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
8107 code from here ...
8108 (re_set_breakpoint): ... to here ...
8109 (addr_string_to_sals): ... and here.
8110
8111 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
8112
8113 * Makefile.in (SFILES): Add missing C sources.
8114 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
8115 Add missing headers.
8116
8117 2011-03-29 Mike Frysinger <vapier@gentoo.org>
8118
8119 * .gitignore: New file.
8120
8121 2011-03-29 Mike Frysinger <vapier@gentoo.org>
8122
8123 * NEWS: Mention new cfi device simulation.
8124
8125 2011-03-29 Tom Tromey <tromey@redhat.com>
8126
8127 * dwarf2read.c (fixup_partial_die): Handle linkage name on
8128 otherwise anonymous types.
8129 (dwarf2_name): Likewise.
8130 * valops.c (value_struct_elt_for_reference): Refine artificial
8131 type logic. Call error if j==-1.
8132
8133 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
8134
8135 Fix false GCC warning.
8136 * infcall.c (find_function_addr): Initialize funaddr.
8137
8138 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
8139
8140 Fix mingw compilation with --enable-targets=all.
8141 * remote-mips.c (gdb_usleep.h): Include header.
8142 (mips_enter_debug): Use gdb_usleep instead of sleep.
8143
8144 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8145
8146 Support resolution of STT_GNU_IFUNC via breakpoints.
8147 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
8148 bp_gnu_ifunc_resolver_return.
8149 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
8150 the loop. Support bp_gnu_ifunc_resolver and
8151 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
8152 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
8153 breakpoints.
8154 (bptype_string, print_one_breakpoint_location): Support
8155 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
8156 (user_settable_breakpoint): Return true also for
8157 bp_gnu_ifunc_resolver.
8158 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
8159 bp_gnu_ifunc_resolver_return.
8160 (set_breakpoint_location_function): New parameter explicit_loc,
8161 describe it. Call find_pc_partial_function_gnu_ifunc with new
8162 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
8163 EXPLICIT_LOC is not set.
8164 (set_raw_breakpoint): Set EXPLICIT_LOC for
8165 set_breakpoint_location_function.
8166 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
8167 set_breakpoint_location_function.
8168 (mention): Support bp_gnu_ifunc_resolver and
8169 bp_gnu_ifunc_resolver_return.
8170 (add_location_to_breakpoint): Set EXPLICIT_LOC for
8171 set_breakpoint_location_function.
8172 (update_breakpoint_locations): Remove static.
8173 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
8174 bp_gnu_ifunc_resolver_return.
8175 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
8176 bp_gnu_ifunc_resolver_return.
8177 (update_breakpoint_locations): New declaration.
8178 * elfread.c: Include gdbthread.h and regcache.h.
8179 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
8180 functions.
8181 (elf_gnu_ifunc_fns): Install them.
8182 * minsyms.c (stub_gnu_ifunc_resolver_stop)
8183 (stub_gnu_ifunc_resolver_return_stop): New functions.
8184 (stub_gnu_ifunc_fns): Install them.
8185 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
8186 and gnu_ifunc_resolver_return_stop.
8187 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
8188
8189 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8190
8191 STT_GNU_IFUNC reader implementation.
8192 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
8193 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
8194 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
8195 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
8196 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
8197 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
8198 (elf_gnu_ifunc_resolve_addr): New.
8199 (elf_symfile_read): Call elf_rel_plt_read.
8200 (elf_gnu_ifunc_fns): New.
8201 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
8202 Install elf_gnu_ifunc_fns.
8203 * infcall.c (find_function_return_type): New function.
8204 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
8205 * minsyms.c (stub_gnu_ifunc_resolve_addr)
8206 (stub_gnu_ifunc_resolve_name): New functions.
8207 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
8208 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
8209 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
8210
8211 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8212
8213 Code cleanup for later STT_GNU_IFUNC support.
8214 * infcall.c (find_function_addr): Remove variable code, use explicit
8215 dereferences for it. Move VALUE_TYPE initialization later.
8216
8217 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8218
8219 GDB find_pc_partial_function support for STT_GNU_IFUNC.
8220 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
8221 (clear_pc_function_cache): Clear it.
8222 (find_pc_partial_function): Rename to ...
8223 (find_pc_partial_function_gnu_ifunc): ... this function. New
8224 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
8225 (find_pc_partial_function): New wrapper for this function.
8226 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
8227
8228 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8229
8230 GDB internal type support for STT_GNU_IFUNC.
8231 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
8232 (elf_symtab_read): Set mst_text_gnu_ifunc for
8233 BSF_GNU_INDIRECT_FUNCTION.
8234 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
8235 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
8236 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
8237 nodebug_got_plt_symbol.
8238 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
8239 (TYPE_GNU_IFUNC): New.
8240 (struct main_type): New field flag_gnu_ifunc.
8241 (struct builtin_type): New field builtin_func_func.
8242 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
8243 nodebug_got_plt_symbol.
8244 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
8245 (in_gnu_ifunc_stub): New.
8246 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
8247 mst_text_gnu_ifunc.
8248 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
8249 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
8250 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
8251 in_gnu_ifunc_stub.
8252 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
8253 * symtab.c (search_symbols): Likewise.
8254 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
8255 and mst_slot_got_plt.
8256 (in_gnu_ifunc_stub): New declaration.
8257
8258 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8259
8260 Support a ring of related breakpoints.
8261 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
8262 other functions, add gdb_assert.
8263 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
8264 watchpoint_del_at_next_stop.
8265 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
8266 (bpstat_stop_status): Handle ring in related_breakpoint.
8267 (set_raw_breakpoint_without_location): Initialize ring in
8268 related_breakpoint.
8269 (delete_breakpoint): Handle ring in related_breakpoint, use
8270 watchpoint_del_at_next_stop.
8271 (map_breakpoint_numbers): Handle ring in related_breakpoint.
8272
8273 2011-03-28 Tom Tromey <tromey@redhat.com>
8274
8275 PR symtab/12441:
8276 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8277 with `language_minimal'.
8278
8279 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
8280
8281 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8282 instead of checking for STT_ARM_TFUNC symbol type.
8283
8284 2011-03-25 Tom Tromey <tromey@redhat.com>
8285
8286 * linespec.c (symbol_found): Restore line-based result for
8287 non-LOC_LABEL symbols.
8288
8289 2011-03-25 Kai Tietz <ktietz@redhat.com>
8290
8291 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8292 instead of strcmp for comparison.
8293 (tui_source_is_displayed): Likewise.
8294 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8295
8296 2011-03-24 Mark Wielaard <mjw@redhat.com>
8297
8298 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8299 complaint.
8300 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8301 (find_partial_die_in_comp_unit): Likewise in comment.
8302 (read_attribute_value): Likewise.
8303 (lookup_die_type): Likewise.
8304 (dwarf_form_name): Likewise.
8305 (dump_die_shallow): Likewise.
8306 (follow_die_ref_or_sig): Likewise.
8307
8308 2011-03-24 Tom Tromey <tromey@redhat.com>
8309
8310 PR breakpoints/11816:
8311 * linespec.c (decode_line_1): Parse `function:label' linespecs.
8312 (decode_compound): Update.
8313 (find_function_symbol): New function.
8314 (decode_dollar): Update.
8315 (decode_label): Add 'function_symbol' parameter. Handle
8316 function-relative labels.
8317 (decode_variable): Update.
8318 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
8319 not its line. Set `special_display' and canonical name for
8320 labels.
8321
8322 2011-03-24 Tom Tromey <tromey@redhat.com>
8323
8324 * linespec.h (struct linespec_result) <special_display>: New
8325 field.
8326 * breakpoint.h (struct breakpoint) <display_canonical>: New
8327 field.
8328 * breakpoint.c (print_breakpoint_location): Respect
8329 display_canonical.
8330 (create_breakpoint_sal): Add 'display_canonical' parameter.
8331 (create_breakpoints_sal): Update.
8332 (create_breakpoint): Update.
8333
8334 2011-03-24 Tom Tromey <tromey@redhat.com>
8335
8336 * symtab.c (decode_line_spec): Update.
8337 * linespec.c (build_canonical_line_spec): Change type of
8338 'canonical'.
8339 (decode_line_2, decode_line_1, decode_objc, decode_compound)
8340 (find_method, decode_all_digits, decode_dollar, decode_label)
8341 (symbol_found): Likewise.
8342 (init_linespec_result): New function.
8343 * breakpoint.c (struct captured_parse_breakpoint_args)
8344 <canonical_p>: New field, replaces addr_string_p.
8345 (create_breakpoints_sal): Add 'canonical' parameter, replacing
8346 'addr_string'.
8347 (parse_breakpoint_sals): Likewise.
8348 (do_captured_parse_breakpoint): Update.
8349 (create_breakpoint): Use struct linespec_result.
8350 (until_break_command): Update.
8351 (breakpoint_re_set_one): Update.
8352 (decode_line_spec_1): Update.
8353 * linespec.h (struct linespec_result): New.
8354 (init_linespec_result): Declare.
8355
8356 2011-03-23 Pedro Alves <pedro@codesourcery.com>
8357
8358 * regcache.c (regcache_raw_read): If the target didn't supply a
8359 given raw register, mark it as unavailable.
8360
8361 2011-03-23 Kai Tietz <ktietz@redhat.com>
8362
8363 * breakpoint.c (clear_command): Use filename_cmp
8364 instead of strcmp for comparison.
8365 * buildsym.c (watch_main_source_file_lossage): Likewise.
8366 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8367 checking just for slash.
8368 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8369 strrchr and filename_cmp instead of strcmp for filenames.
8370 (add_old_header_file): Use filename_cmp
8371 instead of strcmp for comparison.
8372 * exec.c (exec_set_section_address): Likewise.
8373 * macrotab.c (macro_lookup_inclusion): Likewise.
8374 (macro_lookup_inclusion): Likewise.
8375 * elfread.c (_initialize_elfread): Likewise.
8376 (elfstab_offset_sections): Likewise.
8377 (elfstab_offset_sections): Use lbasename instead of
8378 strrchr.
8379 * mdebugread.c (parse_partial_symbols): Likewise.
8380 (arse_partial_symbols): Use filename_(n)cmp instead of
8381 str(n)cmp for comparison.
8382 * minsyms.c (lookup_minimal_symbol): Likewise.
8383 * psymtab.c (read_psymtabs_with_filename): Likewise.
8384 * solib.c (solib_read_symbols): Likewise.
8385 (reload_shared_libraries_1): Likewise.
8386 * symmisc.c (maintenance_print_symbols): Likewise.
8387 * symfile.c (separate_debug_file_exists): Likewise.
8388 (reread_symbols): Likewise.
8389 (find_separate_debug_file_by_debuglink): Likewise.
8390 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8391 * source.c (add_path): Likewise.
8392 * symtab.c (filename_seen): Likewise.
8393 (file_matches): Likewise.
8394 (print_symbol_info): Likewise.
8395 (maybe_add_partial_symtab_filename): Likewise.
8396 (make_source_files_completion_list): Likewise.
8397 * xml-syscall.c (init_sysinfo): Likewise.
8398 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8399 IS_DIR_SEPARATOR for checking for trailing path separator.
8400
8401 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8402
8403 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8404 label abort_expression.
8405 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8406 DWARF_VALUE_OPTIMIZED_OUT.
8407
8408 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8409
8410 Code cleanup.
8411 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8412 to linkage_name. Invert its value. Update the function comment.
8413 (c_type_print_varspec_suffix): Invert it at the caller.
8414 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8415
8416 2011-03-22 Pedro Alves <pedro@codesourcery.com>
8417
8418 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8419 errors when reading the `stop_pc'.
8420 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8421 get_frame_pc.
8422
8423 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8424
8425 * NEWS: Document gdb.Write stream keyword.
8426
8427 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8428
8429 Revert:
8430 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8431 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8432 (dwarf2_add_field): Fix new_field->accessibility for
8433 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8434
8435 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8436
8437 PR python/12183
8438
8439 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8440 other error classes. Do not print stack trace.
8441
8442 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8443
8444 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8445 (dwarf2_add_field): Fix new_field->accessibility for
8446 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8447
8448 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8449
8450 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8451 encountering a load via a non-SP register.
8452
8453 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8454
8455 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8456 field in returned unwinder.
8457
8458 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8459
8460 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8461
8462 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8463
8464 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8465 of xmalloc.
8466
8467 2012-03-18 Pedro Alves <pedro@codesourcery.com>
8468
8469 * frame.c (frame_unwind_register): Throw an error if unwinding the
8470 register failed.
8471 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8472 an unwind stop reason.
8473 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8474 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8475 UNWIND_UNAVAILABLE>: New.
8476 * inline-frame.c (inline_frame_unwind): Install
8477 default_frame_unwind_stop_reason.
8478 * frame-unwind.c: Include "exceptions.h".
8479 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8480 (default_frame_unwind_stop_reason): New.
8481 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8482 (default_frame_unwind_stop_reason): Declare.
8483 (struct frame_unwind) <stop_reason>: New function pointer.
8484
8485 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8486 * dwarf2-frame.c: Include exceptions.h.
8487 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8488 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8489 computing the CFA. If such an error was thrown, set
8490 unavailable_retaddr.
8491 (dwarf2_frame_unwind_stop_reason): New.
8492 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8493 unavailable.
8494 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8495 (dwarf2_signal_frame_unwind): Ditto.
8496
8497 * amd64-tdep.c: Include "exceptions.h".
8498 (struct amd64_frame_cache): New field "base_p".
8499 (amd64_init_frame_cache): Clear it.
8500 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8501 Avoid reading registers with functions that throw if the register
8502 is not necessary to compute the frame base.
8503 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8504 swallowing NOT_AVAILABLE_ERROR.
8505 (amd64_frame_unwind_stop_reason): New.
8506 (amd64_frame_this_id): Don't build a frame id if the frame base
8507 was unavailable.
8508 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8509 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8510 base_p if the frame base was computable.
8511 (amd64_sigtramp_frame_unwind_stop_reason): New.
8512 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8513 frame base was unavailable.
8514 (amd64_sigtramp_frame_unwind): Install
8515 amd64_sigtramp_frame_unwind_stop_reason.
8516 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8517 base_p if the frame base was computable.
8518 (amd64_epilogue_frame_unwind_stop_reason): New.
8519 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8520 frame base was unavailable.
8521 (amd64_epilogue_frame_unwind): Install
8522 amd64_epilogue_frame_unwind_stop_reason.
8523 * i386-tdep.c: Include "exceptions.h".
8524 (struct i386_frame_cache): New field "base_p".
8525 (i386_init_frame_cache): Clear it.
8526 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8527 Avoid reading registers with functions that throw if the register
8528 is not necessary to compute the frame base.
8529 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8530 swallowing NOT_AVAILABLE_ERROR.
8531 (i386_frame_unwind_stop_reason): New.
8532 (i386_frame_this_id): Don't build a frame id if the frame base was
8533 unavailable.
8534 (i386_frame_prev_register): Handle unavailable SP.
8535 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8536 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8537 base_p if the frame base was computable.
8538 (i386_epilogue_frame_unwind_stop_reason): New.
8539 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8540 base was unavailable.
8541 (i386_epilogue_frame_unwind): Install
8542 i386_epilogue_frame_unwind_stop_reason.
8543 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8544 base_p if the frame base was computable.
8545 (i386_sigtramp_frame_unwind_stop_reason): New.
8546 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8547 base was unavailable.
8548 (i386_sigtramp_frame_unwind): Install
8549 i386_sigtramp_frame_unwind_stop_reason.
8550 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8551 type's size, not the register's.
8552 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8553
8554 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8555 default_frame_unwind_stop_reason.
8556 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8557 (alpha_heuristic_frame_unwind): Ditto.
8558 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8559 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8560 * avr-tdep.c (avr_frame_unwind): Ditto.
8561 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8562 Ditto.
8563 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8564 * frv-tdep.c (frv_frame_unwind): Ditto.
8565 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8566 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8567 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8568 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8569 (hppa_stub_frame_unwind): Ditto.
8570 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8571 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8572 (ia64_libunwind_frame_unwind)
8573 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8574 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8575 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8576 * m32c-tdep.c (m32c_unwind): Ditto.
8577 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8578 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8579 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8580 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8581 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8582 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8583 * mep-tdep.c (mep_frame_unwind): Ditto.
8584 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8585 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8586 (mips_stub_frame_unwind): Ditto.
8587 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8588 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8589 * mt-tdep.c (mt_frame_unwind): Ditto.
8590 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8591 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8592 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8593 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8594 (s390_sigtramp_frame_unwind): Ditto.
8595 * score-tdep.c (score_prologue_unwind): Ditto.
8596 * sh-tdep.c (sh_frame_unwind): Ditto.
8597 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8598 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8599 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8600 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8601 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8602 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8603 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8604 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8605 (sparc64obsd_trapframe_unwind): Ditto.
8606 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8607 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8608 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8609 * v850-tdep.c (v850_frame_unwind): Ditto.
8610 * vax-tdep.c (vax_frame_unwind): Ditto.
8611 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8612 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8613 * xtensa-tdep.c (xtensa_unwind): Ditto.
8614
8615 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8616
8617 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8618 there's always a frame. Use get_frame_pc_if_available instead of
8619 get_frame_pc, and if there's no PC available, don't look up a
8620 symtab.
8621
8622 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8623
8624 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8625 unavailable PC.
8626
8627 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8628
8629 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8630 gracefully.
8631
8632 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8633
8634 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8635 * frame.c (frame_unwind_caller_pc_if_available): New.
8636 * stack.c (frame_info): Handle unavailable PC.
8637
8638 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8639
8640 * frame.c (frame_unwind_pc): Rename to ...
8641 (frame_unwind_pc_if_available): ... this. New `pc' output
8642 parameter. Change return type to int. Gracefully handle
8643 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8644 happened, or 1 otherwise.
8645 (frame_unwind_pc): Reimplement on top of
8646 frame_unwind_pc_if_available.
8647 (get_frame_func): Rename to ...
8648 (get_frame_func_if_available): New `pc' output parameter. Change
8649 return type to int. Gracefully handle the PC not being available.
8650 (get_frame_func): Reimplement on top of
8651 get_frame_func_if_available.
8652 (select_frame): Handle the PC being unavailable.
8653 (get_prev_frame): Handle the PC being unavailable.
8654 (get_frame_pc_if_available): New.
8655 (get_frame_address_in_block_if_available): New.
8656 (find_frame_sal): Handle the frame PC not being available.
8657 * frame.h (get_frame_pc_if_available): Declare.
8658 (get_frame_address_in_block_if_available): Declare.
8659 (get_frame_func_if_available): Declare.
8660 * stack.c (print_frame_info): Handle the PC being unavailable.
8661 (find_frame_funname): Ditto.
8662 (print_frame): Handle the PC being unavailable.
8663 (get_frame_language): Ditto.
8664 * blockframe.c (get_frame_block): Ditto.
8665 * macroscope.c (default_macro_scope): Ditto.
8666 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8667
8668 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8669
8670 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8671 NOT_AVAILABLE_ERROR when evaluating the location expression.
8672
8673 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8674
8675 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8676 returning that the register piece is unavailable/optimized out.
8677 (write_pieced_value): Handle get_frame_register_bytes returning
8678 that the register piece is unavailable/optimized out when doing a
8679 read-modify write of a bitfield.
8680 * findvar.c (value_from_register): Handle get_frame_register_bytes
8681 returning that the register piece is unavailable/optimized out.
8682 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8683 and `unavailablep'. Throw error on bad debug info. Use
8684 frame_register instead of frame_register_read, to fill in the new
8685 arguments.
8686 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8687 and `unavailablep'.
8688 * valops.c: (value_assign): Adjust, and handle
8689 get_frame_register_bytes failing.
8690 * spu-tdep.c: Include exceptions.h.
8691 (spu_software_single_step): Adjust, and handle
8692 get_frame_register_bytes failing.
8693 (spu_get_longjmp_target): Ditto.
8694 * gdbarch.sh (register_to_value): Change to return int. New
8695 parameters `optimizedp' and `unavailablep'.
8696 * gdbarch.h, gdbarch.c: Regenerate.
8697 * i386-tdep.c (i386_register_to_value): Adjust to new
8698 gdbarch_register_to_value interface.
8699 * i387-tdep.c (i387_register_to_value): Ditto.
8700 * i387-tdep.h (i387_register_to_value): Ditto.
8701 * alpha-tdep.c (alpha_register_to_value): Ditto.
8702 * ia64-tdep.c (ia64_register_to_value): Ditto.
8703 * m68k-tdep.c (m68k_register_to_value): Ditto.
8704 * mips-tdep.c (mips_register_to_value): Ditto.
8705 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8706
8707 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8708
8709 * findvar.c (value_of_register): Mark the value as unavailable, if
8710 the register is unavailable.
8711 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8712 (frame_register): New `unavailablep' parameter.
8713 (frame_register_read): Update comment.
8714 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8715 Set it if the register is unavailable. If the register is
8716 unavailable, clear the output buffer.
8717 (frame_register): New `unavailablep' parameter. Pass it down.
8718 (frame_unwind_register): Adjust.
8719 (put_frame_register): Adjust.
8720 (frame_register_read): Adjust. Also return false if the register
8721 is not available.
8722 (frame_register_unwind_location): Adjust.
8723 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8724 is unavailable, mark the value accordingly.
8725 * stack.c (frame_info): Handle unavailable registers.
8726
8727 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8728
8729 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8730 simplify, using regcache_cooked_read.
8731
8732 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8733
8734 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8735 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8736 (regcache_raw_read_unsigned, regcache_raw_read_part)
8737 (regcache_cooked_read, regcache_cooked_read_signed)
8738 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8739 (regcache_cooked_read_ftype): Change return to enum
8740 register_status.
8741 * regcache.c: Include exceptions.h
8742 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8743 (do_cooked_read): Change return to enum register_status. Always
8744 forward to regcache_cooked_read.
8745 (regcache_raw_read): Change return to enum register_status. If
8746 the register is not REG_VALID, memset the buffer. Return the
8747 register's status.
8748 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8749 return the register's status.
8750 (regcache_raw_read_unsigned): Ditto.
8751 (regcache_cooked_read): Change return to enum register_status.
8752 Assert that with read-only regcaches, the register's status must
8753 be known. If the regcache is read-only, and the register is not
8754 REG_VALID, memset the buffer. Return the register's status.
8755 (regcache_cooked_read_signed): Change return to enum
8756 register_status. Handle non-REG_VALID registers and return the
8757 register's status.
8758 (regcache_cooked_read_unsigned): Change return to enum
8759 register_status. Handle non-REG_VALID registers and return the
8760 register's status.
8761 (regcache_xfer_part, regcache_raw_read_part)
8762 (regcache_cooked_read_part): Change return to enum
8763 register_status. Return the register's status.
8764 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8765 unavailable.
8766 (regcache_dump): Handle unavailable cooked registers.
8767 * frame.c (do_frame_register_read): Adjust interface to match
8768 regcache_cooked_read_ftype.
8769 * gdbarch.sh (pseudo_register_read): Change return to enum
8770 register_status.
8771 * gdbarch.h, gdbarch.c: Regenerate.
8772
8773 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8774 register_status.
8775 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8776 register_status. If reading a raw register indicates the raw
8777 register is not valid, return the raw register's status,
8778 otherwise, return REG_VALID.
8779 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8780 register_status. Handle non-REG_VALID raw registers and return
8781 the register's status.
8782 * arm-tdep.c (arm_neon_quad_read)
8783 (arm_pseudo_read): Change return to enum register_status. Handle
8784 non-REG_VALID raw registers and return the register's status.
8785 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8786 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8787 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8788 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8789 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8790 register_status.
8791 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8792 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8793 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8794 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8795 (m32c_pseudo_register_read): Change return to enum
8796 register_status. Adjust.
8797 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8798 enum register_status. Return the register's status.
8799 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8800 register_status. Return the register's status.
8801 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8802 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8803 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8804 * rs6000-tdep.c (move_ev_register_func): New typedef.
8805 (e500_move_ev_register): Use it. Change return to enum
8806 register_status. Return the register's status.
8807 (do_regcache_raw_read): New function.
8808 (do_regcache_raw_write): New function.
8809 (e500_pseudo_register_read): Change return to enum
8810 register_status. Return the register's status. Use
8811 do_regcache_raw_read.
8812 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8813 (dfp_pseudo_register_read): Change return to enum register_status.
8814 Return the register's status.
8815 (vsx_pseudo_register_read): Ditto.
8816 (efpr_pseudo_register_read): Ditto.
8817 (rs6000_pseudo_register_read): Ditto.
8818 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8819 register_status. Return the register's status.
8820 * sh64-tdep.c (pseudo_register_read_portions): New function.
8821 (sh64_pseudo_register_read): Change return to enum
8822 register_status. Use pseudo_register_read_portions. Return the
8823 register's status.
8824 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8825 register_status. Return the register's status.
8826 * sh-tdep.c (pseudo_register_read_portions): New function.
8827 (sh_pseudo_register_read): Change return to enum register_status.
8828 Use pseudo_register_read_portions. Return the register's status.
8829 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8830 enum register_status. Return the register's status.
8831 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8832 * spu-tdep.c (spu_pseudo_register_read_spu)
8833 (spu_pseudo_register_read): Ditto.
8834 * xtensa-tdep.c (xtensa_register_read_masked)
8835 (xtensa_pseudo_register_read): Ditto.
8836 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8837
8838 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8839
8840 * python/py-value.c (valpy_getitem): Fix formatting of error function
8841 call.
8842
8843 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8844
8845 ARI fixes: Add missing internationalization markups throughout
8846 C source files.
8847 * darwin-nat-info.c: Ditto.
8848 * record.c: Ditto.
8849 * remote.c: Ditto.
8850 * mi/mi-main.c: Ditto.
8851
8852 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8853
8854 ARI fixes: Add missing internationalization markups throughout
8855 yacc files.
8856 * c-exp.y: Ditto.
8857 * cp-name-parser.y: Ditto.
8858 * f-exp.y: Ditto.
8859 * m2-exp.y: Ditto.
8860 * objc-exp.y: Ditto.
8861 * p-exp.y: Ditto.
8862
8863 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8864
8865 ARI fixes: Messages should have no trailing new lines.
8866 * darwin-nat.c (mach_check_error): Remove trailing new line from
8867 warning function call message.
8868 * record.c (bfdcore_read): Idem for error call.
8869
8870 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8871
8872 * common/signals.c (target_signal_from_host): Add _ markup to error
8873 function call message.
8874 (target_signal_to_host): Add _ markup and remove trailing new line
8875 from warning call message.
8876 (target_signal_from_command): Add _ markup to error function call
8877 message.
8878
8879 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8880
8881 PR python/12149
8882
8883 * python/python.c (gdbpy_write): Accept a stream argument and
8884 operate to the appropriate stream.
8885 (gdbpy_flush): Likewise.
8886 (_initialize_python): Add stream constants.
8887 (finish_python_initialization): Add GdbOutputErrorFile class.
8888
8889 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8890
8891 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8892
8893 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8894
8895 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8896 to store_signed_integer. Add debug message when relocating CALL
8897 instructions. Fix formatting of debug message.
8898 * i386-tdep.c (i386_relocate_instruction): Ditto.
8899
8900 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8901
8902 * target.h (struct target_ops): Remove to_lookup_symbol field.
8903 (target_lookup_symbol): Delete macro.
8904 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8905 (update_current_target, setup_target_debug): Remove handling
8906 of to_lookup_symbol target_ops field.
8907 * ada-tasks.c (get_known_tasks_addr): Remove use of
8908 target_lookup_symbol.
8909 * coffread.c (coff_symtab_read): Likewise.
8910 * dbxread.c (read_dbx_symtab): Ditto.
8911
8912 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8913
8914 PR gdb/12116:
8915 * configure.ac: Add getthrds declaration check.
8916 * configure, config.in: Regenerate.
8917 * aix-thread.c (getthrds): Declare only if not already declared
8918 in procinfo.h. More declaration out of get_signaled_thread to
8919 global scope.
8920
8921 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8922
8923 * python/py-symtab.c: Populate symtab_object_methods,
8924 sal_object_methods.
8925 (stpy_is_valid): New function.
8926 (salpy_is_valid): Ditto.
8927 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8928 (sympy_is_valid): New function.
8929 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8930 (objfpy_is_valid): New function.
8931 * python/py-inferior.c: Populate inferior_object_methods.
8932 (infpy_is_valid): New function.
8933 * python/py-infthread.c: Populate thread_object_methods.
8934 (thpy_is_valid): New function.
8935 * python/py-block.c: Declare block_object_methods. Populate. Declare
8936 block_iterator_object_methods. Populate.
8937 (blpy_is_valid): New function.
8938 (blpy_iter_is_valid): Ditto.
8939
8940 2011-03-16 Keith Seitz <keiths@redhat.com>
8941
8942 * linespec.c (find_methods): Canonicalize NAME before looking
8943 up the symbol.
8944 (name_end): New function.
8945 (keep_name_info): New function.
8946 (decode_line_1): Use keep_name_info.
8947 (decode_compound): Likewise.
8948 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8949 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8950
8951 PR c++/12273
8952 * linespec.c (locate_first_half): Keep overload information, too.
8953 (decode_compound): Use a string to represent break characters
8954 to escape the loop.
8955 If P points to a break character, do not increment it.
8956 For C++ and Java, keep overload information and relevant keywords.
8957 If we cannot find a symbol, search the minimal symbols.
8958
8959 PR c++/11734
8960 * linespec.c (decode_compound): Rename SAVED_ARG to
8961 THE_REAL_SAVED_ARG.
8962 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8963 single-quotes.
8964 Pass a valid block to lookup_symbol.
8965 (lookup_prefix_sym): Likewise.
8966 (find_method): Construct search name based on SYM_CLASS instead
8967 of SAVED_ARG.
8968 * psymtab.c (lookup_partial_symbol): Add language parameter.
8969 (lookup_symbol_aux_psymtabs): Likewise.
8970 Don't assume that the psymtab we found was the right one. Search
8971 for the desired symbol in the symtab to be certain.
8972 (psymtab_search_name): New function.
8973 (lookup_partial_symbol): Use psymtab_search_name.
8974 Add language parameter.
8975 (read_symtabs_for_function): Add language parameter and pass to
8976 lookup_partial_symbol.
8977 (find_symbol_file_from_partial): Likewise.
8978
8979 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8980
8981 PR gdb/12528
8982 * dwarf2read.c (noop_record_line): New function.
8983 (dwarf_decode_lines): Ignore line tables for GCd functions.
8984
8985 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8986
8987 Fix ARI warnings about new lines at the end of messages, which
8988 are unneeded as there is a new line added at the end of the message
8989 automatically.
8990 * darwin-nat.c (darwin_stop_inferior): Ditto.
8991 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8992 * dfp.c (decimal_to_number): Ditto.
8993 * exec.c (print_section_info): Ditto.
8994 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8995 * osdata.c (get_osdata): Ditto.
8996 * record.c (bfdcore_write): Ditto.
8997 * remote-mips.c (mips_readchar): Ditto.
8998 * remote.c (read_ptid): Ditto.
8999 * ser-mingw.c (ser_windows_raw): Ditto.
9000 * tracepoint.c (add_local_symbols): Ditto.
9001 * windows-nat.c (fake_create_process): Ditto.
9002
9003 2011-03-16 Tom Tromey <tromey@redhat.com>
9004
9005 * tracepoint.c (stop_tracing): Don't declare.
9006 * event-top.c (after_char_processing_hook): Add `(void)'.
9007
9008 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
9009
9010 * NEWS: Add Parameter sub-classing description.
9011
9012 2011-03-16 Kai Tietz <ktietz@redhat.com>
9013
9014 * MAINTAINERS: Update my e-mail address.
9015
9016 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
9017
9018 * MAINTAINERS: Add myself for write after approval privileges.
9019
9020 2011-03-15 Michael Snyder <msnyder@vmware.com>
9021
9022 * frame.c (find_frame_sal): Assert sym is not null.
9023
9024 * dbxread.c (process_one_symbol): Assert 'name' is not null.
9025
9026 * objc-lang.c (selectors_info): Check strchr for null result.
9027
9028 * stabsread.c (define_symbol): Guard against bad stabstring input.
9029
9030 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
9031
9032 Remove trailing spaces and tabulations from pascal language
9033 support sources.
9034 p-exp.y: Ditto.
9035 p-lang.c: Ditto.
9036 p-lang.h: Ditto.
9037 p-valprint.c: Ditto.
9038
9039 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9040
9041 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
9042 than LOW. Comment it.
9043 (read_partial_die): Call complaint for inappropriate zero LOWPC or
9044 HIGHPC not strictly higher than LOWPC.
9045
9046 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
9047
9048 Fix formatting of function declarations returning a pointer in
9049 previous commit.
9050 * varobj.c (varobj_add_child): Ditto.
9051 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
9052 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
9053
9054 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
9055
9056 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
9057 for the "generic" vector ABI used with GCC 4.3 and later.
9058 (ppc64_sysv_abi_return_value): Likewise.
9059
9060 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
9061
9062 * infcall.c (call_function_by_hand): Function return value is
9063 always a non_lval, even when using struct_return.
9064
9065 2011-03-15 Pedro Alves <pedro@codesourcery.com>
9066
9067 * printcmd.c (ALL_DISPLAYS_SAFE): New.
9068 (map_display_numbers): New.
9069 (do_delete_display): New.
9070 (undisplay_command): Use map_display_numbers.
9071 (do_enable_disable_display): New.
9072 (enable_disable_display_command): New function.
9073 (enable_display): Delete.
9074 (enable_display_command): New.
9075 (disable_display_command): Reimplement.
9076 (_initialize_printcmd): Adjust "enable display" command to use
9077 `enable_display_command' as callback.
9078
9079 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
9080
9081 * NEWS: Add Python breakpoint 'stop' operation.
9082
9083 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
9084
9085 * NEWS: Delete duplicate entry. Fix typo.
9086
9087 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
9088
9089 Fix ARI warning about function names in first column.
9090 Put prototype declaration on same line as return type.
9091 * objc-exp.y: Ditto.
9092 * p-exp.y: Ditto.
9093 * python/py-stopevent.h: Ditto.
9094 For long function names, split parameters to
9095 allow function name on same line as return type.
9096 * solib-pa64.c: Ditto.
9097 * varobj.c: Ditto.
9098 * varobj.h: Ditto.
9099 For long function declaration, use single line.
9100 * hppa-tdep.h: Ditto.
9101 * inferior.h: Ditto.
9102
9103 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
9104
9105 * python/python.h: Declare gdbpy_should_stop and
9106 gdbpy_breakpoint_has_py_cond.
9107 * python/python.c: Add python.h to includes. Remove python.h from
9108 HAVE_PYTHON definition
9109 (gdbpy_should_stop): New dummy function.
9110 (gdbpy_breakpoint_has_py_cond): New dummy function.
9111 * python/py-breakpoint.c (bppy_init): Rewrite to allow
9112 sub-classing capabilities.
9113 (gdbpy_should_stop): New function.
9114 (gdbpy_breakpoint_has_py_cond): New function.
9115 (local_setattro): New function.
9116 * breakpoint.c (condition_command): Add check for Python 'stop'
9117 operation.
9118 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
9119 operation function as part of stop/continue tests.
9120
9121 2011-03-14 Tom Tromey <tromey@redhat.com>
9122
9123 PR gdb/12576:
9124 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
9125 (needs_frame_dwarf_call): Likewise.
9126
9127 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
9128
9129 Fix ARI warning about functions without parameters that do not
9130 use (void).
9131 * breakpoint.c (all_tracepoints): Replace () by (void).
9132 * f-exp.y (match_string_literal): Ditto.
9133 (yylex): Ditto.
9134 * m2-exp.y (yylex): Ditto.
9135 * mep-tdep.c (current_me_module): Ditto.
9136 (current_options): Ditto.
9137 (current_cop_data_bus_width): Ditto.
9138 (current_cr_names): Ditto.
9139 (current_cr_is_float): Ditto.
9140 (current_ccr_names): Ditto.
9141 * objc-exp.y (yylex): Ditto.
9142 * p-exp.y (yylex): Ditto.
9143 * remote.c (send_interrupt_sequence): Ditto.
9144 * tracepoint.c (current_trace_status): Ditto.
9145 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
9146 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
9147
9148 2011-03-11 Michael Snyder <msnyder@vmware.com>
9149
9150 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
9151 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
9152 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
9153 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
9154 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
9155
9156 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
9157 (delete_async_event_handler): Ditto.
9158
9159 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
9160
9161 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
9162
9163 * top.c (set_verbose): Assert showcmd was found.
9164
9165 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
9166
9167 * xtensa-tdep.c (warning_once): Correct style issues.
9168
9169 2011-03-11 Yao Qi <yao@codesourcery.com>
9170
9171 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
9172
9173 2011-03-11 Andreas Schwab <schwab@redhat.com>
9174
9175 * common/aclocal.m4: Remove.
9176
9177 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9178
9179 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
9180 (xtensa_write_register, xtensa_read_register): Likewise.
9181 (xtensa_hextochar): Removed.
9182 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
9183
9184 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9185
9186 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
9187 (xtensa_call0_frame_cache_t): Update comments. New fields added.
9188 (xtensa_alloc_frame_cache): Add initialization for new fields.
9189 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
9190 (warning_once): New function.
9191 (xtensa_insn_kind): New item c0opc_and.
9192 (call0_classify_opcode): Add the case for AND instruction.
9193 (call0_track_op): Change arguments. New local variable litbase.
9194 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
9195 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
9196 in the prologue.
9197 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
9198 (call0_analyze_prologue): Update the comments. Change arguments.
9199 Add the variety of updates to handle extended prologues, which now can
9200 conduct dynamic stack adjustments.
9201 (call0_frame_cache): Likewise.
9202 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
9203 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
9204
9205 2011-03-10 Michael Snyder <msnyder@vmware.com>
9206
9207 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
9208 (cmd_qtframe): Ditto.
9209 (cmd_qtbuffer): Ditto.
9210 (cmd_bigqtbuffer): Ditto.
9211
9212 2011-03-10 Tom Tromey <tromey@redhat.com>
9213
9214 * tracepoint.c (trace_actions_command): Update.
9215 * thread.c (thread_apply_command): Update.
9216 * reverse.c (delete_bookmark_command): Update.
9217 (bookmarks_info): Update.
9218 * printcmd.c (undisplay_command): Update.
9219 * memattr.c (mem_enable_command): Update.
9220 (mem_disable_command): Update.
9221 (mem_delete_command): Update.
9222 * inferior.c (detach_inferior_command): Update.
9223 (kill_inferior_command): Update.
9224 (remove_inferior_command): Update.
9225 * cli/cli-utils.h (struct get_number_or_range_state): New.
9226 (init_number_or_range): Declare.
9227 (get_number_or_range): Update.
9228 * cli/cli-utils.c (init_number_or_range): New function.
9229 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
9230 static variables.
9231 (number_is_in_list): Update.
9232 * breakpoint.h (get_tracepoint_by_number): Update.
9233 * breakpoint.c (map_breakpoint_numbers): Update for change to
9234 get_number_or_range.
9235 (find_location_by_number): Use get_number, not
9236 get_number_or_range.
9237 (trace_pass_set_count): New function.
9238 (trace_pass_command): Update for change to get_number_or_range.
9239 Rework loop logic.
9240 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
9241 'state' parameter.
9242
9243 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
9244
9245 * python/py-param.c (add_setshow_generic): Add set/show callback
9246 parameters. Register Python object context.
9247 (get_show_value): New function.
9248 (get_set_value): New function.
9249 (call_doc_function): New function.
9250 (get_doc_string): Move behind get_show_value/get_set_value.
9251
9252 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
9253
9254 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
9255
9256 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
9257
9258 * xtensa-tdep.c (xtensa_read_register): Add comment.
9259 (xtensa_write_register): Likewise.
9260 (xtensa_hextochar): Add comment and update to match coding conventions.
9261 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
9262 (execute_l32e, execute_s32e, execute_code): Update comments.
9263 (xtensa_exception_handler_t): Update to match coding conventions.
9264 (xtensa_insn_kind): Likewise.
9265
9266 2011-03-09 Michael Snyder <msnyder@vmware.com>
9267
9268 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
9269
9270 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9271
9272 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9273
9274 2011-03-09 Tom Tromey <tromey@redhat.com>
9275
9276 * thread.c (restore_selected_frame): Handle frame_level == -1.
9277 (make_cleanup_restore_current_thread): Use
9278 get_selected_frame_if_set.
9279 * frame.h (get_selected_frame_if_set): Declare.
9280 * frame.c (get_selected_frame_if_set): New function.
9281
9282 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9283
9284 * cli/cli-cmds.c (shell_escape): Use lbasename.
9285 * coffread.c (coff_start_symtab): Constify parameter.
9286 (complete_symtab): Constify `name' parameter.
9287 (coff_symtab_read): Constify `filestring' local.
9288 (coff_getfilename): Constify return and `result' local.
9289 Use lbasename.
9290 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9291 * linux-fork.c (info_checkpoints_command): Use lbasename.
9292 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9293 * minsyms.c (lookup_minimal_symbol): Use lbasename.
9294 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9295 * procfs.c (procfs_make_note_section): Use lbasename.
9296 * tui/tui-io.c (printable_part): Constity return and parameter.
9297 Use lbasename.
9298 (print_filename): Constify parameters, and local `s'.
9299 (tui_rl_display_match_list): Constify local `temp'.
9300
9301 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9302
9303 Revert:
9304 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9305 Fix DWARF-3+ DW_AT_accessibility default assumption.
9306 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9307 cu->header.version >= 3.
9308
9309 2011-03-09 Yao Qi <yao@codesourcery.com>
9310
9311 * common/Makefile.in: Remove.
9312 * common/configure: Remove.
9313 * common/configure.ac: Remove.
9314
9315 2011-03-09 Yao Qi <yao@codesourcery.com>
9316
9317 Revert:
9318 2011-02-11 Yao Qi <yao@codesourcery.com>
9319
9320 * common/Makefile.in: Add copyright header.
9321
9322 2011-02-11 Yao Qi <yao@codesourcery.com>
9323
9324 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9325 libcommon.a.
9326 * configure.ac: Add common to sub dir.
9327 * configure: Regenerate.
9328
9329 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9330
9331 * xtensa-tdep.c (call0_ret): New function.
9332 (xtensa_skip_prologue): Speed up analysis.
9333
9334 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9335
9336 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9337 while executing MI command -data-list-changed-registers.
9338
9339 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9340
9341 * xtensa-tdep.c (xtensa_read_register): New function.
9342 (xtensa_write_register): New function.
9343 (xtensa_find_register_by_name): New function.
9344 (xtensa_windowed_frame_cache): Update comments in type description.
9345 (xtensa_frame_cache): Likewise.
9346 (xtensa_window_interrupt_insn): New function.
9347 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9348 (xtensa_insn_kind): Add new instructions.
9349 (rwx_special_register): New function.
9350 (call0_classify_opcode): Add new instructions to the analysis.
9351 (a0_saved, a7_saved, a11_saved): New variables.
9352 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9353 (execute_l32e): New function.
9354 (execute_s32e): New function.
9355 (xtensa_exception_handler_t): New type.
9356 (execute_code): New function.
9357 (xtensa_window_interrupt_frame_cache): New function to conduct frame
9358 analysis for Xtensa Window Exception handlers.
9359
9360 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9361
9362 * xtensa-tdep.c (TX_PS): New.
9363 (windowing_enabled): Update to count for Call0 ABI.
9364 (xtensa_hextochar): New.
9365 (xtensa_init_reggroups): Make algorithm generic.
9366 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9367
9368 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9369
9370 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
9371
9372 2011-03-08 Michael Snyder <msnyder@vmware.com>
9373
9374 * i386-tdep.c (i386_follow_jump): Check return value of
9375 target_read_memory.
9376 (i386_analyze_struct_return): Ditto.
9377 (i386_skip_probe): Ditto.
9378 (i386_match_insn): Ditto.
9379 (i386_skip_noop): Ditto.
9380 (i386_analyze_frame_setup): Ditto.
9381 (i386_analyze_register_saves): Ditto.
9382 (i386_skip_prologue): Ditto.
9383 (i386_skip_main_prologue): Ditto.
9384
9385 * target.c (read_whatever_is_readable): Fix memory leak.
9386
9387 * i386-tdep.c (i386_process_record): Document fall through.
9388
9389 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9390
9391 Fix DWARF-3+ DW_AT_accessibility default assumption.
9392 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9393 cu->header.version >= 3.
9394
9395 2011-03-08 Pedro Alves <pedro@codesourcery.com>
9396
9397 * remote.c (remote_check_symbols): Skip if the target has no
9398 execution.
9399
9400 2011-03-08 Joel Brobecker <brobecker@adacore.com>
9401
9402 * target.c (read_whatever_is_readable): Reformat comment,
9403 with a minor typo fix. Minor reformatting of the code.
9404
9405 2011-03-08 Yao Qi <yao@codesourcery.com>
9406
9407 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9408 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9409 Use cached result instead of calling displaced_in_arm_mode again.
9410 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9411 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9412 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9413 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9414 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9415 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9416 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9417 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9418 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9419 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9420 (arm_catch_kernel_helper_return): Likewise.
9421 * gdb/arm-tdep.h : Update function declarations.
9422
9423 2011-03-07 Michael Snyder <msnyder@vmware.com>
9424
9425 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9426
9427 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9428
9429 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9430
9431 * elfread.c (elf_symtab_read): Stop memory leak.
9432
9433 * main.c (captured_main): Fix memory leak.
9434
9435 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9436
9437 * ada-lang.c (compare_names): Call is_name_suffix with string1
9438 instead of string2.
9439
9440 2011-03-07 Tom Tromey <tromey@redhat.com>
9441
9442 * xcoffread.c (xcoff_sym_fns): Update.
9443 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9444 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9445 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9446 (symbol_file_add_with_addrs_or_offsets): Likewise.
9447 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9448 * somread.c (som_sym_fns): Update.
9449 * psymtab.h (require_partial_symbols): Declare.
9450 * psymtab.c (require_partial_symbols): New function.
9451 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9452 (ALL_OBJFILE_PSYMTABS): Undef.
9453 (ALL_PSYMTABS): Move from psympriv.h.
9454 (lookup_partial_symtab, find_pc_sect_psymtab)
9455 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9456 (find_last_source_symtab_from_partial)
9457 (forget_cached_source_info_partial)
9458 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9459 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9460 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9461 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9462 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9463 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9464 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9465 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9466 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9467 psymtabs.
9468 * mipsread.c (ecoff_sym_fns): Update.
9469 * machoread.c (macho_sym_fns): Update.
9470 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9471 (read_psyms): New function.
9472 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9473 (elf_sym_fns_lazy_psyms): New global.
9474 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9475 dwarf2_build_psymtabs.
9476 * dbxread.c (aout_sym_fns): Update.
9477 * coffread.c (coff_sym_fns): Update.
9478
9479 2011-03-07 Tom Tromey <tromey@redhat.com>
9480
9481 * infrun.c (print_exited_reason): Include inferior id and pid in
9482 message.
9483
9484 2011-03-07 Tom Tromey <tromey@redhat.com>
9485
9486 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9487 parameter.
9488 (target_has_execution_1): Update.
9489 (target_has_execution_current): Declare.
9490 (target_has_execution): Call target_has_execution_current.
9491 (default_child_has_execution): Update.
9492 * target.c (default_child_has_execution): Add 'the_ptid'
9493 parameter.
9494 (target_has_execution_1): Likewise.
9495 (target_has_execution_current): New function.
9496 (add_target): Update.
9497 (init_dummy_target): Update.
9498 * remote-m32r-sdi.c (m32r_has_execution): New function.
9499 (init_m32r_ops): Use it.
9500 * record.c (record_core_has_execution): Now static. Add
9501 'the_ptid' parameter.
9502 * inferior.c (have_live_inferiors): Don't save current thread.
9503 Use target_has_execution_1.
9504
9505 2011-03-07 Yao Qi <yao@codesourcery.com>
9506
9507 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9508
9509 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9510
9511 * elfread.c (elf_symtab_read): Minor reformatting.
9512
9513 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9514
9515 * objc-lang.c (selectors_info): Minor reformatting.
9516
9517 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9518
9519 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9520
9521 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9522 Michael Snyder <msnyder@vmware.com>
9523
9524 * ada-valprint.c (ada_val_print_array): Move the declaration of
9525 "byte_order" and "elttype" inside the block where these variables
9526 are actually used. Remove some special handling for the case
9527 where "elttype" and "eltlen" are null. Replace by a comment
9528 and a couple of assertion checks.
9529
9530 2011-03-05 Michael Snyder <msnyder@vmware.com>
9531
9532 * source.c (add_path): Replace semicolon at end of block.
9533 * dwarf2expr.c (execute_stack_op): Ditto.
9534
9535 2011-03-05 Mike Frysinger <vapier@gentoo.org>
9536
9537 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9538 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9539 (bfin-*-*): Likewise.
9540
9541 2011-03-05 Michael Snyder <msnyder@vmware.com>
9542
9543 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9544 * mdebugread.c (parse_symbol): Ditto.
9545 * parse.c (parse_exp_in_context): Ditto.
9546 * source.c (add_path): Ditto.
9547 * utils.c (gnu_debuglink_crc32): Ditto.
9548 * varobj.c (variable_language): Ditto.
9549
9550 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9551
9552 2011-03-04 Michael Snyder <msnyder@vmware.com>
9553
9554 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9555
9556 * symfile.c (simple_overlay_update): Check for null return value
9557 from lookup_minimal_symbol.
9558
9559 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9560
9561 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9562
9563 * eval.c (parse_and_eval_address_1): Remove function.
9564 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9565 instead of parse_and_eval_address_1.
9566 * value.h (parse_and_eval_address_1): Remove prototype.
9567
9568 2011-03-04 Michael Snyder <msnyder@vmware.com>
9569
9570 * remote.c (putpkt_binary): Document that case stmt falls through.
9571
9572 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9573
9574 * breakpointc (print_it_typical): Move NULL check from here...
9575 (print_bp_stop_message): ... to here.
9576
9577 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9578
9579 * breakpoint.c (enable_command): Use break instead of continue,
9580 and fill in a missing break.
9581 (disable_command): Ditto.
9582
9583 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9584
9585 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9586 (terminal_save_ours): Remove misleading comment.
9587 (inflow_inferior_data_cleanup): Free ttystate.
9588 (inflow_inferior_exit): Likewise.
9589 (copy_terminal_info): Copy ttystate.
9590
9591 * serial.c (serial_copy_tty_state): New function.
9592 * serial.h (serial_copy_tty_state): Add prototype.
9593 (struct serial_ops): Add copy_tty_state callback.
9594 * ser-base.c (ser_base_copy_tty_state): New function.
9595 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9596 * ser-go32.c (dos_copy_tty_state): New function.
9597 (dos_ops): Install copy_tty_state callback.
9598 * ser-mingw.c (_initialize_ser_windows): Likewise.
9599 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9600 * ser-unix.c (hardwire_copy_tty_state): New function.
9601 (_initialize_ser_hardwire): Install it.
9602
9603 2011-03-04 Michael Snyder <msnyder@vmware.com>
9604
9605 * breakpoint.c (create_breakpoint): Add missing break statement.
9606
9607 Reverting this patch:
9608 * infcall.c (call_function_by_hand): Add break statements for lint.
9609
9610 Reverting this patch:
9611 * cli/cli-script.c (script_from_file): Add break for lint.
9612
9613 2011-03-04 Michael Snyder <msnyder@vmware.com>
9614
9615 * solib.c (reload_shared_libraries_1): Close memory leak.
9616
9617 2011-03-03 Tom Tromey <tromey@redhat.com>
9618
9619 PR gdb/12538:
9620 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9621 DW_STRING is NULL.
9622
9623 2011-03-03 Michael Snyder <msnyder@vmware.com>
9624
9625 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9626 fields of struct 'st' to zero.
9627
9628 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9629 sal.pspace before calling set_current_source_symtab_and_line.
9630
9631 2011-03-03 Yao Qi <yao@codesourcery.com>
9632
9633 * Makefile.in (configure-common): Remove. Let Makefile
9634 in dir common to rebuild itself.
9635 (common/Makefile): Likewise.
9636
9637 2011-03-03 Joel Brobecker <brobecker@adacore.com>
9638
9639 * utils.c (parse_escape): Add i18n markup in error message.
9640
9641 2011-03-03 Yao Qi <yao@codesourcery.com>
9642
9643 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9644 ARM_PC_REGNUM.
9645 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9646 (displaced_write_reg, displaced_read_reg): Likewise.
9647 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9648 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9649 (cleanup_branch): Replace magic number 14 and 15 with
9650 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9651
9652 2011-03-02 Michael Snyder <msnyder@vmware.com>
9653
9654 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9655
9656 * cli/cli-script.c (script_from_file): Add break for lint.
9657
9658 * mdebugread.c (parse_partial_symbols): Fix indent.
9659
9660 * target-descriptions.c (tdesc_gdb_type): No need to call
9661 xstrdup, callee saves a copy.
9662
9663 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9664
9665 * infcall.c (call_function_by_hand): Add break statements for lint.
9666
9667 * utils.c (parse_escape): Escape the escape char.
9668
9669 * python/py-inferior.c (build_inferior_list): Error out if
9670 PyList_Append fails.
9671 (gdbpy_inferiors): Error out if build_inferior_list fails.
9672
9673 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9674 a function call.
9675
9676 * record.c (record_restore): Move printf to before error return.
9677
9678 2011-03-02 Yao Qi <yao@codesourcery.com>
9679
9680 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9681 is_thumb and insn_size.
9682 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9683 on both ARM and Thumb mode.
9684 (arm_process_displaced_insn): Set is_thumb and insn_size.
9685 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9686 (arm_displaced_step_fixup): Likewise.
9687
9688 2011-03-01 Michael Snyder <msnyder@vmware.com>
9689
9690 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9691
9692 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9693
9694 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9695
9696 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9697
9698 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9699 with xmalloc.
9700
9701 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9702 which shadows function parameter.
9703
9704 * tracepoint.c (create_tsv_from_upload): Superfluous call
9705 to xstrdup. Callee already calls xstrdup.
9706
9707 * linespec.c (decode_line_1): Remove unnecessary null check.
9708
9709 * tracepoint.c (scope_info): Fix mem leak, remove underused
9710 variable.
9711
9712 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9713 superfluous null check.
9714
9715 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9716 (value_of_builtin_frame_fp_reg): Ditto.
9717
9718 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9719
9720 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9721 be null.
9722
9723 * linespec.c (decode_line_1): Check for null before dereference.
9724
9725 * reverse.c (record_restore): Move null-check to before pointer
9726 dereference.
9727
9728 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9729
9730 * objc-lang.c (selectors_info): Add explanitory comment.
9731 (classes_info): Ditto.
9732
9733 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9734
9735 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9736 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9737 versions of the trampoline. Handle Thumb vs. ARM addresses.
9738 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9739 (arm_linux_init_abi): Install it.
9740 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9741 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9742
9743 2011-02-28 Michael Snyder <msnyder@vmware.com>
9744
9745 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9746 a little bigger, to avoid possibility of an overflow.
9747
9748 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9749 buffers a little bigger, to avoid possibility of an overflow.
9750
9751 * coffread.c (coff_getfilename): Add check to avoid overflow.
9752
9753 * objc-lang.c (selectors_info): Add a small safety margin to
9754 avoid overflow.
9755 (classes_info): Error out on too long REGEXP.
9756
9757 * infrun.c (handle_inferior_event): Remove unused function call.
9758
9759 * fork-child.c (fork_inferior): Remove ifdef'd code and
9760 unused variable.
9761
9762 * linux-thread-db.c (attach_thread): Discard unused value.
9763
9764 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9765
9766 * remote.c (remote_get_noisy_reply): Discard unused value.
9767 (remote_vcont_resume): Ditto.
9768 (remote_stop_ns): Ditto.
9769
9770 * linespec.c (decode_objc): Delete unused variable.
9771
9772 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9773
9774 * dwarf2read.c (add_partial_symbol): Discard unused values.
9775 (read_base_type): Delete unused variable.
9776
9777 * dbxread.c (read_dbx_symtab): Discard unused value.
9778
9779 * eval.c (evaluate_subexp_standard): Delete unused variable,
9780 and discard unused values.
9781
9782 * infcmd.c (_initialize_infcmd): Discard unused values.
9783
9784 * stabsread.c (rs6000_builtin_type): Missing break statement.
9785
9786 * dbxread.c (process_one_symbol): Discard unused value.
9787
9788 * coffread.c (coff_end_symtab): Delete unused variable.
9789
9790 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9791 (dwarf2_add_typedef): Delete unused variable.
9792 (read_namespace): Ditto.
9793 (dwarf_decode_macros): Ditto.
9794
9795 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9796
9797 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9798
9799 * p-valprint.c (pascal_val_print): Discard unused value.
9800
9801 * utils.c (nquery): Call va_end before return;
9802 (yquery): Ditto.
9803 (query): Ditto.
9804
9805 * proc-service.c (ps_plog): Call va_end before return.
9806
9807 2011-02-28 Tom Tromey <tromey@redhat.com>
9808
9809 * python/python.c (gdbpy_value_cst): New global.
9810 (_initialize_python): Initialize it.
9811 * python/python-internal.h (gdbpy_value_cst): Declare.
9812 * python/py-value.c (convert_value_from_python): Use
9813 gdbpy_value_cst.
9814
9815 2011-02-28 Michael Snyder <msnyder@vmware.com>
9816
9817 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9818
9819 * breakpoint.c (catch_syscall_completer): Free malloced list.
9820
9821 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9822
9823 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9824 (lval_func_check_synthetic_pointer): Ditto.
9825 (lval_func_free_closure): Fix use-after-free.
9826
9827 2011-02-28 Tom Tromey <tromey@redhat.com>
9828
9829 * psymtab.c (expand_partial_symbol_tables): Use
9830 ALL_OBJFILE_PSYMTABS.
9831
9832 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9833
9834 * objc-lang.c (selectors_info): Error on too long REGEXP.
9835
9836 2011-02-28 Michael Snyder <msnyder@vmware.com>
9837
9838 * python/py-param.c (set_parameter_value): Add missing
9839 break statement.
9840
9841 * linux-record.c (record_linux_system_call): Add missing
9842 break statement.
9843
9844 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9845
9846 * breakpoint.c (print_one_breakpoint_location): Remove unused
9847 argument PRINT_ADDRESS_BITS. Update callers.
9848 (print_one_breakpoint): Likewise.
9849
9850 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9851
9852 * breakpoint.c (wrap_indent_at_field): New function.
9853 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9854 Allocate ui_stream locally instead of using STB argument.
9855 (print_one_breakpoint_location): Update call.
9856 * ui-out.c (ui_out_query_field): New function.
9857 * ui-out.h (ui_out_query_field): Add prototype.
9858
9859 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9860
9861 From Michael Snyder <msnyder@vmware.com>
9862 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9863
9864 2011-02-27 Michael Snyder <msnyder@vmware.com>
9865
9866 * objc-lang.c (selectors_info): Prevent string overrun.
9867
9868 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9869 error in strncpy.
9870
9871 * symtab.c (rbreak_command): Move variable 'file_name' to
9872 outer scope.
9873
9874 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9875 param with a local variable of the same name.
9876
9877 2011-02-27 Michael Snyder <msnyder@vmware.com>
9878
9879 * value.c (value_from_history_ref): New function.
9880 * value.h (value_from_history_ref): Export.
9881 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9882 to parse value history references.
9883 * cli/cli-utils.h (get_number_trailer): Update comment.
9884
9885 2011-02-27 Michael Snyder <msnyder@vmware.com>
9886
9887 * inferior.c (detach_inferior_command): Use get_number_or_range.
9888 (kill_inferior_command): Ditto.
9889 (remove_inferior_command): Ditto.
9890 (initialize_inferiors): Make command names plural.
9891 Update help strings.
9892
9893 2011-02-27 Michael Snyder <msnyder@vmware.com>
9894
9895 * darwin-nat-info.c: Fix comment typo.
9896 * dwarf2expr.h: Ditto.
9897 * fbsd-nat.c: Ditto.
9898 * fbsd-nat.h: Ditto.
9899 * frame-unwind.h: Ditto.
9900 * frame.h: Ditto.
9901 * hppa-hpux-tdep.c: Ditto.
9902 * i386-linux-nat.c: Ditto.
9903 * linux-nat.c: Ditto.
9904 * nbsd-nat.c: Ditto.
9905 * nbsd-nat.h: Ditto.
9906 * ppc-linux-tdep.c: Ditto.
9907 * serial.c: Ditto.
9908 * ui-file.h: Ditto.
9909 * tui/tui-winsource.c: Ditto.
9910
9911 2011-02-26 Michael Snyder <msnyder@vmware.com>
9912
9913 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9914
9915 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9916
9917 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9918 with a local variable of the same name.
9919
9920 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9921 param with a local variable of the same name.
9922 (i387_supply_xsave): Ditto.
9923
9924 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9925 that it does not shadow a function parameter.
9926
9927 * i386-nat.c (i386_length_and_rw_bits): Document that case
9928 statement is meant to fall through.
9929
9930 * expprint.c (dump_subexp_body_standard): Document that case
9931 statement is meant to fall through.
9932
9933 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9934 dead if statement. Condition can't be false.
9935
9936 2011-02-25 Michael Snyder <msnyder@vmware.com>
9937
9938 * arm-tdep.c: Fix typos in comments.
9939 * bsd-uthread.c: Ditto.
9940 * completer.c: Ditto.
9941 * corelow.c: Ditto.
9942 * cp-namespace.c: Ditto.
9943 * cp-support.c: Ditto.
9944 * cris-tdep.c: Ditto.
9945 * dbxread.c: Ditto.
9946 * dwarf2read.c: Ditto.
9947 * frame.h: Ditto.
9948 * gdbtypes.h: Ditto.
9949 * inferior.h: Ditto.
9950 * mdebugread.c: Ditto.
9951 * mips-tdep.c: Ditto.
9952 * ppc-linux-nat.c: Ditto.
9953 * ppc-linux-tdep.c: Ditto.
9954 * printcmd.c: Ditto.
9955 * sol-thread.c: Ditto.
9956 * solib-frv.c: Ditto.
9957 * solist.h: Ditto.
9958 * sparc64-tdep.c: Ditto.
9959 * spu-tdep.c: Ditto.
9960 * stabsread.c: Ditto.
9961 * symfile.c: Ditto.
9962 * valops.c: Ditto.
9963 * varobj.c: Ditto.
9964 * vax-nat.c: Ditto.
9965 * python/py-block.c: Ditto.
9966 * python/py-symbol.c: Ditto.
9967 * python/py-symtab.c: Ditto.
9968 * python/py-value.c: Ditto.
9969 * tui/tui-win.c: Ditto.
9970
9971 2011-02-25 Michael Snyder <msnyder@vmware.com>
9972
9973 * inferior.c (print_inferior): Accept a string instead of an int
9974 for requested_inferiors, and use get_number_or_range to parse it.
9975 (info_inferiors_command): Pass args string to print_inferior.
9976 (initialize_inferiors): Change help string for info inferiors.
9977 * inferior.h (print_inferior): Export prototype change.
9978
9979 2011-02-25 Tom Tromey <tromey@redhat.com>
9980
9981 * common/ax.def (invalid2): Set to 0x31.
9982
9983 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9984
9985 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9986 L and plongest.
9987 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9988 use L and plongest.
9989 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9990
9991 2011-02-24 Michael Snyder <msnyder@vmware.com>
9992
9993 * Makefile.in (clean): Make clean should remove generated files
9994 observer.h and observer.inc.
9995
9996 2011-02-24 Joel Brobecker <brobecker@adacore.com>
9997
9998 Revert the following patch (not approved yet):
9999 2011-02-21 Hui Zhu <teawater@gmail.com>
10000 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10001 * ax-gdb.c (gen_printf_expr_callback): New function.
10002 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10003 * ax-general.c (ax_memcpy): New function.
10004 (ax_print): Handle "printf".
10005 (ax_reqs): Ditto.
10006 * ax.h (ax_memcpy): Forward declare.
10007 * common/ax.def (invalid2): Removed.
10008 (printf): New entry.
10009 * printcmd.c (printcmd.h): New include.
10010 (string_printf): New function.
10011 (ui_printf): Removed.
10012 (printf_command): Remove static. Call string_printf.
10013 (eval_command): Call string_printf.
10014 * printcmd.h: New file.
10015 * tracepoint.c (validate_actionline,
10016 encode_actions_1): handle printf_command.
10017
10018 2011-02-23 Tom Tromey <tromey@redhat.com>
10019
10020 * ax-general.c (ax_pick): Add missing newline.
10021
10022 2011-02-23 Michael Snyder <msnyder@vmware.com>
10023
10024 * breakpoint.c (breakpoint_1): Change first argument from an int
10025 to a char pointer, so that the function now accepts a list of
10026 breakpoints rather than just one. Use new function
10027 'number_is_in_list' to implement.
10028 (breakpoints_info): Pass char * instead of int to breakpoint_1.
10029 (watchpoints_info): Ditto.
10030 (tracepoints_info): Ditto.
10031 (maintenance_info_breakpoints): Ditto.
10032 (_initialize_breakpoint): Update help strings to reflect the fact
10033 that these functions can now take more than one argument.
10034 * cli/cli-utils.c (number_is_in_list): New function.
10035 * cli/cli-utils.h (number_is_in_list): Export.
10036
10037 2011-02-23 Michael Snyder <msnyder@vmware.com>
10038
10039 * memattr.c (mem_enable_command): Use get_number_or_range.
10040 (mem_disable_command): Ditto.
10041 (mem_delete_command): Ditto.
10042 (_initialize_mem): Tweak usage message to reflect multiple
10043 arguments.
10044
10045 2011-02-22 Doug Evans <dje@google.com>
10046
10047 Add gdb.lookup_global_symbol python function.
10048 * NEWS: Add entry.
10049 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
10050 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
10051 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
10052
10053 2011-02-22 Tom Tromey <tromey@redhat.com>
10054
10055 * language.c (language_class_name_from_physname): Rename
10056 'curr_language' argument to 'lang'; use in body.
10057
10058 2011-02-22 Michael Snyder <msnyder@vmware.com>
10059
10060 * cli/cli-utils.c (number_is_in_list): Check for zero return.
10061
10062 2011-02-22 Pedro Alves <pedro@codesourcery.com>
10063
10064 * frame-unwind.h: Fix comment to mention the this frame, not the
10065 next.
10066
10067 2011-02-22 Tom Tromey <tromey@redhat.com>
10068
10069 * symfile.c (auto_solib_limit): Remove.
10070 * symfile.h (auto_solib_limit): Remove.
10071
10072 2011-02-22 Joel Brobecker <brobecker@adacore.com>
10073
10074 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
10075
10076 2011-02-21 Michael Snyder <msnyder@vmware.com>
10077
10078 * gdbthread.h (print_thread_info): Change prototype.
10079 * thread.c (print_thread_info): Accept char* instead of int for
10080 requested_threads argument. Use new function number_is_in_list
10081 to determine which threads to list.
10082 (info_threads_command): Pass char* to print_thread_info.
10083 * cli/cli-utils.c (number_is_in_list): New function.
10084 * cli/cli-utils.h (number_is_in_list): Export.
10085 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
10086 print_thread_info.
10087 (print_one_inferior): Ditto.
10088 (mi_cmd_list_thread_groups): Ditto.
10089
10090 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10091
10092 * common/Makefile.in (CFLAGS): New.
10093 (COMPILE): Add $(CFLAGS).
10094
10095 2011-02-21 Tom Tromey <tromey@redhat.com>
10096
10097 * breakpoint.c (catch_syscall_command_1): Fix typo.
10098
10099 2011-02-21 Tom Tromey <tromey@redhat.com>
10100
10101 * reverse.c: Include cli-utils.h.
10102 * printcmd.c: Include cli-utils.h.
10103 (string_printf): Use skip_spaces.
10104 * cli/cli-utils.h: New file.
10105 * cli/cli-utils.c: New file.
10106 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
10107 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
10108 * breakpoint.h (get_number, get_number_or_range): Move to
10109 cli-utils.h.
10110 * breakpoint.c: Include cli-utils.h.
10111 (get_number_trailer, get_number, get_number_or_range)
10112 (ep_skip_leading_whitespace): Move to cli-utils.c.
10113 (create_breakpoint_sal, find_condition_and_thread)
10114 (decode_static_tracepoint_spec, watch_command_1)
10115 (watch_maybe_just_location, ep_parse_optional_if_clause)
10116 (catch_fork_command_1, catch_exec_command_1)
10117 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
10118 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
10119 (SUBDIR_CLI_SRCS): Add cli-utils.c.
10120 (HFILES_NO_SRCDIR): Add cli-utils.h.
10121 (cli-utils.o): New target.
10122
10123 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10124
10125 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
10126 before calling discard_all_inferiors.
10127
10128 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
10129
10130 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
10131 (struct builtin_opencl_type): Remove.
10132 (builtin_opencl_type): Change return type to "struct type **".
10133 (lookup_opencl_vector_type): Update caller.
10134 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
10135 (build_opencl_types): Install plain array of "struct type *"
10136 instead of "struct builtin_opencl_type".
10137
10138 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10139 Ulrich Weigand <uweigand@de.ibm.com>
10140
10141 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
10142 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
10143 (struct arm_linux_hwbp_cap): New type.
10144 (arm_linux_get_hwbp_cap): New function.
10145 (arm_linux_get_hw_breakpoint_count): Likewise.
10146 (arm_linux_get_hw_watchpoint_count): Likewise.
10147 (arm_linux_can_use_hw_breakpoint): Likewise.
10148 (arm_hwbp_type): New type.
10149 (arm_hwbp_control_t): Likewise.
10150 (struct arm_linux_hw_breakpoint): Likewise.
10151 (struct arm_linux_thread_points): Likewise.
10152 (arm_threads): New global variable.
10153 (arm_linux_find_breakpoints_by_tid): New function.
10154 (arm_hwbp_control_initialize): Likewise.
10155 (arm_hwbp_control_is_enabled): Likewise.
10156 (arm_hwbp_control_disable): Likewise.
10157 (arm_linux_hw_breakpoint_initialize): Likewise.
10158 (arm_linux_get_hwbp_type): Likewise.
10159 (arm_linux_hw_watchpoint_initialize): Likewise.
10160 (arm_linux_hw_breakpoint_equal): Likewise.
10161 (arm_linux_insert_hw_breakpoint1): Likewise.
10162 (arm_linux_remove_hw_breakpoint1): Likewise.
10163 (arm_linux_insert_hw_breakpoint): Likewise.
10164 (arm_linux_remove_hw_breakpoint): Likewise.
10165 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
10166 (arm_linux_insert_watchpoint): Likewise.
10167 (arm_linux_remove_watchpoint): Likewise.
10168 (arm_linux_stopped_data_address): Likewise.
10169 (arm_linux_stopped_by_watchpoint): Likewise.
10170 (arm_linux_watchpoint_addr_within_range): Likewise.
10171 (arm_linux_new_thread): Likewise.
10172 (arm_linux_thread_exit): Likewise.
10173 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
10174 related target callbacks. Register arm_linux_new_thread and
10175 arm_linux_thread_exit.
10176 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
10177 * arm-tdep.c (arm_pc_is_thumb): Make global.
10178 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
10179
10180 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
10181
10182 * breakpoint.c (update_watchpoint): Do not attempt to recreate
10183 per-frame locations while within a function epilogue.
10184
10185 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10186
10187 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
10188 to GNU coding standards.
10189
10190 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10191
10192 Allow use of mingw native on Windows 95 OS.
10193 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
10194 (ser_windows_close): Only call CancelIo if function exists.
10195 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
10196 to check for existence of CancelIo function in kernel32 DLL.
10197
10198 2011-02-21 Hui Zhu <teawater@gmail.com>
10199
10200 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10201 * ax-gdb.c (gen_printf_expr_callback): New function.
10202 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10203 * ax-general.c (ax_memcpy): New function.
10204 (ax_print): Handle "printf".
10205 (ax_reqs): Ditto.
10206 * ax.h (ax_memcpy): Forward declare.
10207 * common/ax.def (invalid2): Removed.
10208 (printf): New entry.
10209 * printcmd.c (printcmd.h): New include.
10210 (string_printf): New function.
10211 (ui_printf): Removed.
10212 (printf_command): Remove static. Call string_printf.
10213 (eval_command): Call string_printf.
10214 * printcmd.h: New file.
10215 * tracepoint.c (validate_actionline,
10216 encode_actions_1): handle printf_command.
10217
10218 2011-02-19 Michael Snyder <msnyder@vmware.com>
10219
10220 * reverse.c (delete_one_bookmark): Argument is now bookmark
10221 id rather than pointer to bookmark struct.
10222 (delete_bookmark_command): Use get_number_or_range.
10223 (goto_bookmark_command): Parse with get_number instead of strtoul.
10224 (bookmark_1): New function. Print info for one bookmark.
10225 (bookmarks_info): Use get_number_or_range and bookmark_1.
10226
10227 2011-02-18 Michael Snyder <msnyder@vmware.com>
10228
10229 * thread.c (info_threads_command): Re-implement using
10230 get_number_or_range.
10231 (thread_apply_command): Ditto.
10232
10233 2011-02-18 Tom Tromey <tromey@redhat.com>
10234
10235 * common/ax.def: New file.
10236 * ax.h (enum agent_op): Use ax.def.
10237 * ax-general.c (aop_map): Use ax.def.
10238
10239 2011-02-18 Tom Tromey <tromey@redhat.com>
10240
10241 * ax-general.c (aop_map): Add pick and rot.
10242 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
10243 <DW_OP_rot>: Implement.
10244 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
10245 (ax_pick): Declare.
10246 * ax-general.c (ax_pick): New function.
10247
10248 2011-02-18 Tom Tromey <tromey@redhat.com>
10249
10250 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
10251
10252 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10253 Tom Tromey <tromey@redhat.com>
10254
10255 * cp-support.c (make_symbol_overload_list_namespace): Do not call
10256 make_symbol_overload_list_block with NULL BLOCK.
10257 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
10258
10259 2011-02-18 Pedro Alves <pedro@codesourcery.com>
10260
10261 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
10262 * breakpoint.h (get_number_or_range): Declare.
10263 * printcmd.c (ALL_DISPLAYS): Declare.
10264 (delete_display): Reimplement taking a display pointer.
10265 (undisplay_command): Accept a range of displays to delete, using
10266 get_number_or_range.
10267
10268 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10269
10270 * c-valprint.c (c_val_print): Add embedded_offset to address
10271 for arrays of unspecified length.
10272 * p-valprint.c (pascal_val_print): Likewise.
10273
10274 2011-02-18 Yao Qi <yao@codesourcery.com>
10275
10276 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10277 (arm_process_displaced_insn): .. here. Remove parameter INSN.
10278 (thumb_process_displaced_insn): New.
10279 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10280 call to arm_process_displaced_insn.
10281 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10282
10283 2011-02-17 Tom Tromey <tromey@redhat.com>
10284
10285 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10286 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10287 compile_dwarf_to_ax. No longer static. Call
10288 dwarf2_compile_cfa_to_ax.
10289 (locexpr_tracepoint_var_ref): Update.
10290 (loclist_tracepoint_var_ref): Update.
10291 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10292 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10293 argument; add 'gdbarch' and 'pc'.
10294 (dwarf2_compile_cfa_to_ax): New function.
10295 (dwarf2_frame_cache): Update.
10296
10297 2011-02-17 Joel Brobecker <brobecker@adacore.com>
10298
10299 * ada-lang.c (ada_type_of_array): Fix the size of the array
10300 in the case of an unconstrained packed array.
10301
10302 2011-02-17 Yao Qi <yao@codesourcery.com>
10303
10304 * common/Makefile.in: Add more targets for make.
10305
10306 2011-02-16 Tom Tromey <tromey@redhat.com>
10307
10308 * dwarf2loc.c (unimplemented): Fix typo.
10309
10310 2011-02-16 Tom Tromey <tromey@redhat.com>
10311
10312 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10313 (compile_dwarf_to_ax) <default>: Use unimplemented.
10314 <DW_OP_deref>: Update.
10315 (disassemble_dwarf_expression): Update.
10316 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10317 (decode_locdesc): Update.
10318 * dwarf2expr.h (dwarf_stack_op_name): Update.
10319
10320 2011-02-16 Tom Tromey <tromey@redhat.com>
10321
10322 * ax.h (struct aop_map) <name>: Now const.
10323
10324 2011-02-16 Tom Tromey <tromey@redhat.com>
10325
10326 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10327 than axs_rvalue.
10328
10329 2011-02-16 Yao Qi <yao@codesourcery.com>
10330
10331 * infrun.c (get_displaced_step_closure_by_addr): New.
10332 * inferior.h: Declare it.
10333 * arm-tdep.c: (arm_pc_is_thumb): Call
10334 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
10335 returns non-NULL.
10336
10337 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10338 Jan Kratochvil <jan.kratochvil@redhat.com>
10339
10340 gdb/
10341 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10342
10343 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10344 Jan Kratochvil <jan.kratochvil@redhat.com>
10345
10346 * value.c (value_contents_copy_raw): Extend describing comment.
10347 Assert that the destination contents we're overwriting are wholly
10348 available.
10349 (value_contents_copy): Extend describing comment.
10350
10351 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10352 Jan Kratochvil <jan.kratochvil@redhat.com>
10353
10354 * value.c (value_available_contents_eq): Remove redundant local
10355 variables. Fix available contents comparision.
10356 * value.h (value_available_contents_eq): Extend describing
10357 comment.
10358
10359 2011-02-16 Yao Qi <yao@codesourcery.com>
10360
10361 * thread.c (info_threads_command): Add missing i18n markup and remove
10362 trailing newline.
10363
10364 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10365
10366 * breakpoint.c (longjmp_names): New variable.
10367 (struct breakpoint_objfile_data): New type.
10368 (breakpoint_objfile_key): New variable.
10369 (msym_not_found): New variable.
10370 (msym_not_found_p): New predicate.
10371 (get_breakpoint_objfile_data): New function.
10372 (create_overlay_event_breakpoint): Check per-objfile cache for
10373 symbols first.
10374 (create_longjmp_master_breakpoint): Likewise.
10375 (create_std_terminate_master_breakpoint): Likewise.
10376 (create_exception_master_breakpoint): Likewise.
10377 (_initialize_breakpoint): Register per-objfile data key.
10378
10379 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10380
10381 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10382 parameter value.
10383 (create_longjmp_master_breakpoint): Loop over longjmp names.
10384 (create_std_terminate_master_breakpoint): Const-propagate parameter
10385 value.
10386 (update_breakpoints_after_exec): Adjust.
10387 (breakpoint_re_set): Adjust.
10388
10389 2011-02-15 Michael Snyder <msnyder@vmware.com>
10390
10391 * thread.c (info_threads_command): Process arg as thread id,
10392 or list of thread ids.
10393 (thread_find_command): New command.
10394 (_initialize_thread): Document argument for info threads.
10395 Document 'thread find' command.
10396 * NEWS: Document new command "thread find".
10397
10398 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10399
10400 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10401 * aclocal.m4: Regenerated with aclocal-1.11.1.
10402 * common/configure: Regenerate with autoconf-2.64.
10403
10404 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
10405
10406 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10407 bool data type to a size of one byte.
10408
10409 2011-02-15 Pedro Alves <pedro@codesourcery.com>
10410 Jan Kratochvil <jan.kratochvil@redhat.com>
10411
10412 * target.c (memory_xfer_live_readonly_partial): Document where to
10413 look for interface description.
10414
10415 2011-02-15 Yao Qi <yao@codesourcery.com>
10416
10417 PR tdep/12352
10418 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10419 order to store PC value on stack instead of text section.
10420
10421 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10422
10423 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10424 the EFP register set size.
10425 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10426 data from the VMX register.
10427 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10428 and write data from/to the VMX register.
10429
10430 2011-02-14 Michael Snyder <msnyder@vmware.com>
10431
10432 * command.h (enum command_class): New class 'no_set_class', for
10433 "show" commands without a corresponding "set" command.
10434 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10435 * copying.c (_initialize_copying): Ditto for "show copying" and
10436 "show warranty".
10437 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10438 "show version".
10439 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10440 which there is no corresponding "set" command (eg. "show copying").
10441
10442 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10443 Jan Kratochvil <jan.kratochvil@redhat.com>
10444
10445 * exec.c (section_table_available_memory): Change `len' parameter
10446 type to ULONGEST.
10447 * exec.h (section_table_available_memory): Ditto.
10448 * value.h (read_value_memory): Rename the `offset' parameter to
10449 `embedded_offset'.
10450
10451 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10452 Jan Kratochvil <jan.kratochvil@redhat.com>
10453
10454 * memrange.c (compare_mem_ranges): Mention sort order in
10455 describing comment.
10456 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10457 * tracepoint.c (traceframe_available_memory): Extend comment to
10458 mention what happens to RESULT when the target does not support
10459 the query.
10460
10461 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10462 Jan Kratochvil <jan.kratochvil@redhat.com>
10463
10464 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10465 range.
10466
10467 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10468
10469 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10470 No longer handle NULL values.
10471
10472 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10473
10474 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10475 * value.c: Include "exceptions.h".
10476 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10477 generic error.
10478 * cp-abi.c: Include gdb_assert.h.
10479 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10480 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10481 errors.
10482 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10483 parameters. No longer returns -1 on error.
10484 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10485 `val' parameters.
10486 * cp-valprint.c: Include exceptions.h.
10487 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10488 the baseclass_offset. Handle unavailable base classes. Use
10489 val_print_invalid_address.
10490 * p-valprint.c: Include exceptions.h.
10491 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10492 when fetching the baseclass_offset. No longer expect
10493 baseclass_offset returning -1. Handle unavailable base classes.
10494 Use val_print_invalid_address.
10495 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10496 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10497 `embedded_offset' and `val' parameters. Adjust.
10498 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10499 parameter, and change its type to gdb_byte pointer. Add
10500 `embedded_offset' and `val' parameters. Adjust. No longer expect
10501 baseclass_offset returning -1.
10502 (value_dynamic_cast): Use value_contents_for_printing rather than
10503 value_contents. Adjust.
10504 (search_struct_field): No longer expect baseclass_offset returning
10505 -1.
10506 (search_struct_method): If reading memory from the target is
10507 necessary, wrap it in a new value to pass to baseclass_offset. No
10508 longer expect baseclass_offset returning -1.
10509 (find_method_list): No longer expect baseclass_offset returning
10510 -1. Use value_contents_for_printing rather than value_contents.
10511 * valprint.c (val_print_invalid_address): New function.
10512 * valprint.h (val_print_invalid_address): Declare.
10513 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10514 and `val' parameters. No longer expect baseclass_offset returning
10515 -1. Adjust.
10516 * gnu-v2-abi.c: Include "exceptions.h".
10517 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10518 parameters. Handle unavailable memory. Recurse through
10519 gnuv2_baseclass_offset directly, rather than through
10520 baseclass_offset. No longer returns -1 on not found, instead
10521 throw an error.
10522 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10523 `val' parameters. Adjust.
10524
10525 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10526
10527 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10528 almost but not quite adjacent.
10529
10530 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10531
10532 * value.h (value_entirely_available): Declare.
10533 * value.c (value_entirely_available): New function.
10534 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10535 real type if the pointer is unavailable.
10536
10537 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10538
10539 * valops.c (value_repeat): Use read_value_memory instead of
10540 read_memory.
10541
10542 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10543
10544 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10545 * value.c (value_contents_copy_raw, value_contents_copy): New
10546 functions.
10547 (value_primitive_field): Use value_contents_copy_raw instead of
10548 memcpy.
10549 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10550 memcpy.
10551 (value_array, value_slice): Ditto.
10552 * valarith.c (value_subscripted_rvalue): Use
10553 value_contents_copy_raw instead of memcpy.
10554
10555 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10556
10557 <unavailable> references.
10558
10559 * valops.c (get_value_at): Use value_from_contents_and_address,
10560 avoiding read_memory.
10561
10562 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10563
10564 * c-valprint.c (c_val_print): Print a string with unavailable
10565 contents as an array.
10566
10567 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10568
10569 * value.h (unpack_bits_as_long): Delete declaration.
10570 (unpack_value_bits_as_long): Declare.
10571 (unpack_value_field_as_long): Declare.
10572 (value_field_bitfield): Declare.
10573 * value.c (unpack_bits_as_long): Rename to...
10574 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10575 value parameters. Return the extracted result in a new output
10576 parameter. If the value contents are unavailable, return false,
10577 otherwise return true.
10578 (unpack_value_bits_as_long): New.
10579 (unpack_field_as_long): Rename to...
10580 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10581 Add embedded_offset and value parameters. Return the extracted
10582 result in a new output parameter. If the value contents are
10583 unavailable, return false, otherwise return true.
10584 (unpack_value_field_as_long): New.
10585 (unpack_field_as_long_1): New.
10586 (unpack_field_as_long): Reimplement as wrapper around
10587 unpack_value_field_as_long_1.
10588 (value_field_bitfield): New function.
10589 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10590 unpack_value_bits_as_long. Mark the value as unavailable, if it
10591 is unavailable.
10592 * jv-valprint.c (java_print_value_fields): Use
10593 value_field_bitfield.
10594 * p-valprint.c (pascal_object_print_value_fields): Use
10595 value_field_bitfield.
10596 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10597
10598 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10599
10600 * value.c (get_internalvar_integer): Also return the int value of
10601 TYPE_CODE_INT INTERNALVAR_VALUE values.
10602 (set_internalvar): Don't special case TYPE_CODE_INT.
10603
10604 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10605
10606 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10607 INTERNALVAR_POINTER.
10608 <pointer>: Delete.
10609 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10610 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10611 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10612
10613 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10614
10615 * value.h (value_available_contents_eq): Declare.
10616 * value.c (find_first_range_overlap): New function.
10617 (value_available_contents_eq): New function.
10618 * valprint.c (val_print_array_elements): Use
10619 value_available_contents_eq.
10620 * ada-valprint.c (val_print_packed_array_elements): Use
10621 value_available_contents_eq.
10622 * jv-valprint.c (java_value_print): Use
10623 value_available_contents_eq.
10624
10625 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10626
10627 * target.c (target_read_live_memory): New function.
10628 (memory_xfer_live_readonly_partial): New.
10629 (memory_xfer_partial): If reading from a traceframe, fallback to
10630 reading unavailable read-only memory from read-only regions of
10631 live target memory.
10632 * tracepoint.c (disconnect_tracing): Adjust.
10633 (set_current_traceframe): New, factored out from
10634 set_traceframe_number.
10635 (set_traceframe_number): Reimplement to only change the traceframe
10636 number on the GDB side.
10637 (do_restore_current_traceframe_cleanup): Adjust.
10638 (make_cleanup_restore_traceframe_number): New.
10639 (cur_traceframe_number): New global.
10640 (tfile_open): Set cur_traceframe_number to no traceframe.
10641 (set_tfile_traceframe): New function.
10642 (tfile_trace_find): If looking up a traceframe using any method
10643 other than by number, make sure the current tfile traceframe
10644 matches gdb's current traceframe. Update the current tfile
10645 traceframe if the lookup succeeded.
10646 (tfile_fetch_registers, tfile_xfer_partial)
10647 (tfile_get_trace_state_variable_value): Make sure the remote
10648 traceframe matches gdb's current traceframe.
10649 * remote.c (remote_traceframe_number): New global.
10650 (remote_open_1): Set it to -1.
10651 (set_remote_traceframe): New function.
10652 (remote_fetch_registers, remote_store_registers)
10653 (remote_xfer_memory, remote_xfer_partial)
10654 (remote_get_trace_state_variable_value): Make sure the remote
10655 traceframe matches gdb's current traceframe.
10656 (remote_trace_find): If looking up a traceframe using any method
10657 other than by number, make sure the current remote traceframe
10658 matches gdb's current traceframe. Update the current remote
10659 traceframe if the lookup succeeded.
10660 * infrun.c (fetch_inferior_event): Adjust.
10661 * tracepoint.h (set_current_traceframe): Declare.
10662 (get_traceframe_number, set_traceframe_number): Add describing
10663 comments.
10664
10665 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10666
10667 Mark pieces of values as unavailable if the corresponding memory
10668 is unavailable.
10669
10670 * valops.c: Include tracepoint.h.
10671 (value_fetch_lazy): Use read_value_memory.
10672 (read_value_memory): New.
10673 * value.h (read_value_memory): Declare.
10674 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10675 * exec.c (section_table_available_memory): New function.
10676 * exec.h (section_table_available_memory): Declare.
10677
10678 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10679
10680 * Makefile.in (SFILES): Add memrange.c.
10681 (HFILES_NO_SRCDIR): Add memrange.h.
10682 (COMMON_OBS): Add memrange.o.
10683 * memrange.c: New file.
10684 * memrange.h: New file.
10685 * tracepoint.c: Include memrange.h.
10686 (struct mem_range): Delete.
10687 (mem_range_s): Delete.
10688 (traceframe_available_memory): New function.
10689 * tracepoint.h (traceframe_available_memory): Declare.
10690
10691 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10692
10693 * target.h (struct traceframe_info): Forward declare.
10694 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10695 (struct target_ops) <to_traceframe_info>: New field.
10696 (target_traceframe_info): New.
10697 * target.c (update_current_target): Inherit and default
10698 to_traceframe_info.
10699 * remote.c (PACKET_qXfer_traceframe_info): New.
10700 (remote_protocol_features): Register qXfer:traceframe-info:read.
10701 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10702 (remote_traceframe_info): New.
10703 (init_remote_ops): Install it.
10704 (_initialize_remote): Install "set/show remote traceframe-info"
10705 commands.
10706 * tracepoint.h (parse_traceframe_info): Declare.
10707 * tracepoint.c (struct mem_range): New.
10708 (mem_range_s): New typedef.
10709 (struct traceframe_info): New.
10710 (traceframe_info): New global.
10711 (free_traceframe_info): New function.
10712 (clear_traceframe_info): New function.
10713 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10714 info.
10715 (build_traceframe_info): New function.
10716 (tfile_traceframe_info): New function.
10717 (init_tfile_ops): Install tfile_traceframe_info.
10718 (traceframe_info_start_memory, free_result): New functions.
10719 (memory_attributes, traceframe_info_elements): New globals.
10720 (parse_traceframe_info, get_traceframe_info): New functions.
10721 * features/traceframe-info.dtd: New file.
10722 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10723
10724 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10725
10726 Base support for <unavailable> value contents.
10727
10728 * value.h (value_bytes_available): Declare.
10729 (mark_value_bytes_unavailable): Declare.
10730 * value.c (struct range): New struct.
10731 (range_s): New typedef.
10732 (ranges_overlap): New function.
10733 (range_lessthan): New function.
10734 (ranges_contain_p): New function.
10735 (struct value) <unavailable>: New field.
10736 (value_bytes_available): New function.
10737 (mark_value_bytes_unavailable): New function.
10738 (require_not_optimized_out): Constify parameter.
10739 (require_available): New function.
10740 (value_contents_all, value_contents): Require all bytes be
10741 available.
10742 (value_free): Free `unavailable'.
10743 (value_copy): Copy `unavailable'.
10744 * valprint.h (val_print_unavailable): Declare.
10745 * valprint.c (valprint_check_validity): Rename `offset' parameter
10746 to `embedded_offset'. If printing a scalar, check whether the
10747 value chunk is available.
10748 (val_print_unavailable): New.
10749 (val_print_scalar_formatted): Check whether the value is
10750 available.
10751 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10752 pretty-printing unavailable values.
10753
10754 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10755
10756 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10757 * c-typeprint.c (c_type_print_args): Update the function comment. New
10758 variable param_type, initialize it. Remove const/volatile qualifiers
10759 for language_cplus and !show_artificial. Use param_type.
10760
10761 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10762
10763 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10764 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10765 * symtab.h (struct symtab) <next>: Comment extension.
10766
10767 2011-02-12 Yao Qi <yao@codesourcery.com>
10768
10769 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10770
10771 2011-02-11 Yao Qi <yao@codesourcery.com>
10772
10773 * common/Makefile.in: Add copyright header.
10774
10775 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10776
10777 * infrun.c (proceed): Move switching out and in of tfind mode from
10778 here ...
10779 (fetch_inferior_event): ... to here.
10780
10781 2011-02-11 Yao Qi <yao@codesourcery.com>
10782
10783 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10784 libcommon.a.
10785 * configure.ac: Add common to sub dir.
10786 * configure: Regenerate.
10787
10788 2011-02-11 Yao Qi <yao@codesourcery.com>
10789
10790 Build libcommon.a.
10791
10792 * common/Makefile.in: New.
10793 * common/configure.ac: New.
10794 * common/aclocal.m4: New.
10795 * common/configure: Generate.
10796
10797 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10798
10799 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10800 side of the parenthesis.
10801
10802 Merge from GCC:
10803 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10804 * vec.h (VEC_block_remove): Fix comment.
10805
10806 2011-02-08 Michael Snyder <msnyder@vmware.com>
10807
10808 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10809
10810 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10811
10812 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10813 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10814 psubd and paddd.
10815
10816 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10817
10818 PR 12361.
10819 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10820 phsubsw.
10821 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10822 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10823
10824 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10825
10826 * dwarf2read.c (read_subroutine_type): Set special calling
10827 convention flag for functions compiled by IBM XL C for OpenCL.
10828 * ppc-sysv-tdep.c: Include "dwarf2.h"
10829 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10830 calling convention.
10831 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10832 IBM OpenCL vector types calling convention.
10833 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10834 (ppc_sysv_abi_broken_return_value): Likewise.
10835 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10836 types calling convention.
10837 (ppc64_sysv_abi_return_value): Likewise.
10838 * spu-tdep.c: Include "dwarf2.h"
10839 (spu_return_value): Implement IBM OpenCL vector types calling
10840 convention.
10841
10842 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10843
10844 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10845 correct ABI for AltiVec vector arguments.
10846
10847 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10848
10849 * valprint.c (val_print): Extend comment.
10850 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10851 interface explanation to val_print.
10852 (ada_val_print_array): Adjust comment to current interface.
10853 (print_field_values): Adjust comment to current interface.
10854 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10855 explanation to val_print.
10856 * f-valprint.c (f_val_print): Ditto.
10857 * jv-valprint.c (java_val_print): Ditto.
10858 * m2-valprint.c (m2_val_print): Ditto.
10859 * p-valprint.c (pascal_val_print): Ditto.
10860
10861 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10862
10863 * breakpoint.c (parse_breakpoint_sals): Fix description.
10864
10865 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10866 Oguz Kayral <oguzkayral@gmail.com>
10867
10868 * python/py-inferior.c (python_on_normal_stop): New function.
10869 (python_on_resume): New function.
10870 (python_inferior_exit): New function.
10871 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10872 inferior_exit observers.
10873 * python/py-evtregistry.c: New file.
10874 * python/py-threadevent.c : New file.
10875 * python/py-event.c: New file.
10876 * python/py-evts.c: New file.
10877 * python/py-continueevent.c: New file.
10878 * python/py-bpevent.c: New file.
10879 * python/py-signalevent.c: New file.
10880 * python/py-exetiedevent.c: New file.
10881 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10882 Move struct breakpoint_object from here...
10883 * python/python-internal.h: ... to here.
10884 * python/py-event.h: New file.
10885 * python/py-events.h: New file.
10886 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10887 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10888 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10889 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10890 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10891 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10892 Add build rules for all the above.
10893
10894 2011-02-04 Tom Tromey <tromey@redhat.com>
10895
10896 * dwarf2read.c (dwarf2_section_empty_p): New function.
10897 (dwarf2_read_section): Use dwarf2_section_empty_p.
10898 (dwarf2_section_size): New function.
10899 (dwarf2_get_section_info): Unconditionally read section.
10900 (dwarf2_read_index): Use dwarf2_section_empty_p.
10901 (partial_read_comp_unit_head): Use dwarf2_section_size.
10902 (dwarf2_symbol_mark_computed): Likewise.
10903
10904 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10905
10906 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10907
10908 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10909
10910 * mips-linux-tdep.c: Include xml-syscall.h.
10911 (mips_linux_get_syscall_number): New function.
10912 (mips_linux_init_abi): Add calls to
10913 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10914 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10915 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10916 * syscalls/mips-n32-linux.xml: New file.
10917 * syscalls/mips-n64-linux.xml: New file.
10918 * syscalls/mips-o32-linux.xml: New file.
10919
10920 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10921
10922 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10923 Complain about inverted range entries.
10924 (dwarf2_record_block_ranges): Likewise.
10925
10926 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10927
10928 Fix some typos.
10929 * breakpoint.c (update_watchpoint): Fix name of the
10930 update_global_location_list function.
10931 (print_one_breakpoint): Fix typo.
10932 (_initialize_breakpoint): Remove extra space in hbreak help
10933 string.
10934 * breakpoint.h (struct bp_location) <length>: Fix field
10935 description.
10936
10937 2011-02-04 Pedro Alves <pedro@codesourcery.com>
10938
10939 * regcache.c (registers_changed_ptid): Don't explictly always
10940 clear `current_regcache'. Only clear current_thread_ptid and
10941 current_thread_arch when PTID matches. Only reinit the frame
10942 cache if PTID matches the current inferior_ptid. Move alloca(0)
10943 call to ...
10944 (registers_changed): ... here.
10945
10946 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10947
10948 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10949 starts with __stack_chk_guard as stack guard symbol.
10950
10951 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
10952
10953 * disasm.c (compare_lines): Handle the end of sequence markers
10954 within the line table to better support disassembling over
10955 compilation unit boundaries.
10956
10957 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10958
10959 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10960 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10961 implementation even if no symbols are available.
10962 (thumb_analyze_prologue): Update call to skip_prologue_function.
10963 (arm_analyze_prologue): Likewise.
10964
10965 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10966
10967 * arm-tdep.c: Include "observer.h".
10968 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10969 (arm_exidx_data_key): New static variable.
10970 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10971 (struct arm_exidx_data): Likewise.
10972 (arm_exidx_data_free): New function.
10973 (arm_compare_exidx_entries): Likewise.
10974 (arm_obj_section_from_vma): Likewise.
10975 (arm_exidx_new_objfile): Likewise.
10976 (arm_find_exidx_entry): Likewise.
10977 (arm_exidx_fill_cache): Likewise.
10978 (arm_exidx_unwind_sniffer): Likewise.
10979 (arm_exidx_unwind): New global variable.
10980 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10981 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10982 observer. Register arm_exidx_data_key as objfile data.
10983
10984 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10985
10986 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10987 due to accessing uninitialized variable. Fix indentation.
10988
10989 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10990
10991 * c-valprint.c (c_value_print): When doing virtual base pointer
10992 adjustment, create a new value with adjusted contents rather than
10993 changing the contents of the value being printed (and getting it
10994 wrong).
10995
10996 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10997
10998 * xml-support.c (xml_find_attribute): New.
10999 (xinclude_start_include): Use it.
11000 * xml-support.h (xml_find_attribute): Declare.
11001 * memory-map.c (memory_map_start_memory)
11002 (memory_map_start_property): Use xml_find_attribute.
11003 * osdata.c (osdata_start_osdata, osdata_start_column): Use
11004 xml_find_attribute.
11005 * remote.c (start_thread): Use xml_find_attribute.
11006 * solib-target.c (library_list_start_segment)
11007 (library_list_start_section, library_list_start_library)
11008 (library_list_start_list): Use xml_find_attribute.
11009 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
11010 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
11011 (tdesc_start_field): Use xml_find_attribute.
11012
11013 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
11014
11015 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
11016 (BUILD_OCL_VTYPES): Update.
11017
11018 2011-02-02 Joel Brobecker <brobecker@adacore.com>
11019
11020 * configure.ac: Work around non-GNU sed limitation when computing
11021 python version number.
11022 * configure: Regenerate.
11023
11024 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11025
11026 Fix debug printing of TYPE_INSTANCE.
11027 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
11028 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
11029
11030 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11031
11032 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
11033 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
11034 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
11035 * ada-operator.inc: Rename the file to ...
11036 * ada-operator.def: ... here, wrap all the entries by macro OP.
11037 * expprint.c (op_name_standard): Remove all the entries. Include
11038 "std-operator.def" instead.
11039 * expression.h (enum exp_opcode): Include "std-operator.def" and
11040 "ada-operator.def". Move all the entries ...
11041 * std-operator.def: ... here, wrap all the entries by macro OP.
11042
11043 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
11044
11045 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
11046 * breakpoint.c (remove_jit_event_breakpoints): New function.
11047 * jit.c (jit_descriptor_addr): Delete.
11048 (registering_code): Delete.
11049 (clear_int): Delete.
11050 (jit_inferior_data): New variable.
11051 (struct jit_inferior_data): New type.
11052 (get_jit_inferior_data): New function.
11053 (jit_inferior_data_cleanup): New function.
11054 (jit_read_descriptor): Adjust.
11055 (jit_register_code): Adjust.
11056 (jit_breakpoint_re_set_internal): New function; move code here ...
11057 (jit_inferior_init): ... from here.
11058 (jit_breakpoint_re_set): Adjust.
11059 (jit_reset_inferior_data_and_breakpoints): New function.
11060 (jit_inferior_created_observer): Adjust.
11061 (jit_inferior_exit_hook): Adjust.
11062 (jit_executable_changed_observer): New function.
11063 (jit_event_handler): Adjust.
11064 (_initialize_jit): Adjust.
11065
11066 2011-01-31 Michael Snyder <msnyder@vmware.com>
11067
11068 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
11069 line.
11070
11071 2011-01-31 Tom Tromey <tromey@redhat.com>
11072
11073 PR python/12216:
11074 * python/python.c (execute_gdb_command): Call
11075 prevent_dont_repeat.
11076 * top.c (suppress_dont_repeat): New global.
11077 (dont_repeat): Use it.
11078 (prevent_dont_repeat): New function.
11079 * command.h (prevent_dont_repeat): Declare.
11080
11081 2011-01-31 Tom Tromey <tromey@redhat.com>
11082
11083 * infcmd.c (finish_backward): Use breakpoint_set_silent.
11084 * python/py-breakpoint.c (bppy_set_silent): Use
11085 breakpoint_set_silent.
11086 (bppy_set_thread): Use breakpoint_set_thread.
11087 (bppy_set_task): Use breakpoint_set_task.
11088 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
11089 (breakpoint_set_task): Declare.
11090 (make_breakpoint_silent): Remove.
11091 * breakpoint.c (breakpoint_set_silent): New function.
11092 (breakpoint_set_thread): Likewise.
11093 (breakpoint_set_task): Likewise.
11094 (make_breakpoint_silent): Remove.
11095
11096 2011-01-31 Tom Tromey <tromey@redhat.com>
11097
11098 * breakpoint.h (user_breakpoint_p): Declare.
11099 * breakpoint.c (user_breakpoint_p): New function.
11100 (breakpoint_1): Use it.
11101 (save_breakpoints): Likewise.
11102
11103 2011-01-31 Joel Brobecker <brobecker@adacore.com>
11104
11105 * configure.ac: Add handling of Python distribution on Windows.
11106 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
11107 sysconfig variables are not defined, then do not use them.
11108 On Windows, if LIBPL is not defined, then use prefix + '/libs'
11109 instead. On Windows, return all paths using forward-slashes
11110 rather than backslashes.
11111
11112 2011-01-31 Joel Brobecker <brobecker@adacore.com>
11113
11114 * configure.ac: Remove fallback behavior for building
11115 against Python. Remove tweaking of Python include path.
11116 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
11117 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
11118 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
11119 Always restore CPPFLAGS and LIBS after linking test.
11120 * configure: Regenerated.
11121 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
11122 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
11123 * python/python-internal.h: Adjust includes of Python .h files.
11124
11125 2011-01-31 Joel Brobecker <brobecker@adacore.com>
11126
11127 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
11128 in error message.
11129
11130 2011-01-31 Joel Brobecker <brobecker@adacore.com>
11131
11132 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
11133 value test.
11134
11135 2011-01-31 Yao Qi <yao@codesourcery.com>
11136
11137 * arm-linux-nat.c: Update calls to regcache_register_status
11138 instead of regcache_valid_p.
11139 * aix-thread.c: Likewise.
11140 * i386gnu-nat.c: Likewise.
11141
11142 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11143
11144 Fix crash.
11145 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
11146 touching TYPE_FIELD_ARTIFICIAL.
11147
11148 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
11149
11150 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
11151 Committers.
11152
11153 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11154
11155 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
11156 selected, don't try iterating over the traceframe's blocks.
11157 (tfile_has_stack): If there's no traceframe selected, then there's
11158 no stack.
11159 (tfile_has_registers): If there's no traceframe selected, then
11160 there's no registers.
11161
11162 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11163
11164 * target.c (memory_xfer_partial): No need to restore shadows if we
11165 haven't read anything.
11166
11167 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11168
11169 * mips-tdep.c (mips_print_register): Use get_frame_register_value
11170 and val_print_scalar_formatted.
11171
11172 2011-01-27 Pedro Alves <pedro@codesourcery.com>
11173
11174 * tracepoint.c (tfile_read): New.
11175 (tfile_open): Use it.
11176 (tfile_get_traceframe_address): Use it.
11177 (tfile_trace_find): Use it.
11178 (walk_blocks_callback_func): New typedef.
11179 (match_blocktype): New function.
11180 (traceframe_walk_blocks): New function.
11181 (traceframe_find_block_type): New function.
11182 (tfile_fetch_registers, tfile_xfer_partial)
11183 (tfile_get_trace_state_variable_value): Use
11184 traceframe_find_block_type and tfile_read.
11185
11186 2011-01-26 Kevin Buettner <kevinb@redhat.com>
11187
11188 * remote-mips.c: Add internationalization mark ups. Remove
11189 trailing \n from already marked up strings.
11190
11191 2011-01-26 Tom Tromey <tromey@redhat.com>
11192
11193 * python/py-prettyprint.c (print_string_repr): Clear
11194 'addressprint' option when calling val_print_string.
11195 (print_children): Handle Val_pretty_default. Clear 'addressprint'
11196 option when calling val_print_string.
11197
11198 2011-01-26 Tom Tromey <tromey@redhat.com>
11199
11200 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
11201 GDB_PY_LL_ARG.
11202 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
11203 macros.
11204 (gdb_py_longest, gdb_py_ulongest): New typedefs.
11205 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
11206 (gdb_py_long_as_ulongest): New defines.
11207 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
11208 (gdb_py_int_as_long): Declare.
11209 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
11210 GDB_PY_LL_ARG, gdb_py_object_from_longest.
11211 (valpy_long): Add comment.
11212 * python/py-utils.c (get_addr_from_python): Use
11213 gdb_py_long_as_ulongest. Handle overflow properly.
11214 (gdb_py_object_from_longest): New function.
11215 (gdb_py_object_from_ulongest): Likewise.
11216 (gdb_py_int_as_long): Likewise.
11217 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
11218 * python/py-symtab.c (salpy_get_pc): Use
11219 gdb_py_long_from_ulongest.
11220 (salpy_get_line): Use PyInt_FromLong.
11221 * python/py-param.c (set_parameter_value): Use
11222 gdb_py_int_as_long.
11223 * python/py-lazy-string.c (stpy_get_address): Use
11224 gdb_py_long_from_ulongest.
11225 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
11226 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
11227 * python/py-breakpoint.c (bppy_set_thread): Use
11228 gdb_py_int_as_long.
11229 (bppy_set_task): Likewise.
11230 (bppy_set_ignore_count): Likewise.
11231 (bppy_set_hit_count): Likewise.
11232 * python/py-block.c (blpy_get_start): Use
11233 gdb_py_object_from_ulongest.
11234 (blpy_get_end): Likewise.
11235 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
11236
11237 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
11238
11239 PR/symtab 11766:
11240 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
11241 * gdb/solib.c (solib_read_symbols): Check for addr_low in
11242 equality test for objfile, initialize addr_low if needed.
11243
11244 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11245
11246 * tui/tui-regs.c (tui_register_format): Remove dead code.
11247
11248 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11249
11250 * printcmd.c (print_formatted): Use val_print_scalar_formatted
11251 instead of print_scalar_formatted.
11252 (print_scalar_formatted): Don't handle 's' format strings here,
11253 and add an assertion that we never see such format here.
11254 * valprint.h (val_print_scalar_formatted): Declare.
11255 * valprint.c (val_print_scalar_formatted): New.
11256 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
11257 instead of print_scalar_formatted.
11258 * jv-valprint.c (java_val_print): Ditto.
11259 * p-valprint.c (pascal_val_print): Ditto.
11260 * ada-valprint.c (ada_val_print_1): Ditto.
11261 * f-valprint.c (f_val_print): Ditto.
11262 * infcmd.c (registers_info): Ditto.
11263 * m2-valprint.c (m2_val_print): Ditto.
11264
11265 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11266
11267 * m2-valprint.c (print_unbounded_array): Pass
11268 value_contents_for_printing rather than value_contents, to
11269 m2_print_array_contents. Also pass in the value.
11270
11271 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11272
11273 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11274 (save_gdb_index_command): Switch to .gdb_index version 4.
11275
11276 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11277
11278 * mi/mi-main.c (get_register): Use get_frame_register_value rather
11279 than frame_register, and always pass a valid value to val_print.
11280
11281 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11282
11283 Centralize printing "<optimized out>".
11284
11285 * valprint.h (val_print_optimized_out): Declare.
11286 * cp-valprint.c (cp_print_value_fields): Use
11287 val_print_optimized_out.
11288 * jv-valprint.c (java_print_value_fields): Ditto.
11289 * p-valprint.c (pascal_object_print_value_fields): Ditto.
11290 * printcmd.c (print_formatted): Ditto.
11291 * valprint.c (valprint_check_validity): Ditto.
11292 (value_check_printable): Ditto.
11293 (val_print_optimized_out): New.
11294
11295 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11296
11297 * infcmd.c (default_print_registers_info): Allocate values so to
11298 never pass a NULL value to val_print.
11299
11300 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11301
11302 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11303 boolean. Make sure to always pass a value that matches the
11304 contents buffer to callees. Preserve `address' for following
11305 iterations.
11306 * value.c (value_contents_for_printing_const): New.
11307 (value_address): Constify value argument.
11308 * value.h (value_contents_for_printing_const): Declare.
11309 (value_address): Constify value argument.
11310
11311 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11312
11313 * regcache.c (struct regcache_descr): Rename
11314 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11315 and sizeof_cooked_register_valid_p to
11316 sizeof_cooked_register_status.
11317 (init_regcache_descr): Adjust.
11318 (struct regcache): Rename register_valid_p field to
11319 register_status.
11320 (regcache_xmalloc_1, regcache_xfree, regcache_save)
11321 (do_cooked_read): Adjust.
11322 (regcache_valid_p): Rename to ...
11323 (regcache_register_status): ... this. Adjust.
11324 (regcache_invalidate): Adjust.
11325 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11326 Adjust.
11327 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
11328 as unavailable, not valid.
11329 (regcache_dump): Adjust.
11330 * regcache.h (enum register_status): New.
11331 (regcache_register_status): Declare.
11332 (regcache_invalidate): Delete declaration.
11333 * corelow.c (get_core_registers): Adjust.
11334 * tracepoint.c (tfile_fetch_registers): Adjust.
11335 * trad-frame.c (REG_VALUE): Rename to ...
11336 (TF_REG_VALUE): ... this.
11337 (REG_UNKNOWN): Rename to ...
11338 (TF_REG_UNKNOWN): ... this.
11339 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11340 * mi/mi-main.c (register_changed_p): Adjust.
11341
11342 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11343
11344 * regcache.c (struct regcache_descr): Remove outdated comment.
11345 (init_regcache_descr): Remove sizeof_raw_register_valid_p
11346 overallocate hack.
11347 (regcache_xmalloc): Rename to ...
11348 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
11349 Allocate the regcache type accordingly.
11350 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11351 (regcache_xfree): Asser the source is also readonly. Copy sizeof
11352 cooked registers, not raw.
11353 (regcache_dup_no_passthrough): Delete.
11354 (get_thread_arch_regcache): Use regcache_xmalloc_1.
11355 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11356 mention obsolete write_register_bytes.
11357 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11358
11359 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11360
11361 Stop remote_read_bytes from handling partial reads itself.
11362
11363 * remote-fileio.c: Include target.h.
11364 (remote_fileio_write_bytes): Delete.
11365 (remote_fileio_func_open, remote_fileio_func_write)
11366 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11367 target_read_memory.
11368 (remote_fileio_func_stat): Use target_read_memory and
11369 target_write_memory.
11370 (remote_fileio_func_gettimeofday): Use target_write_memory.
11371 (remote_fileio_func_system): Use target_read_memory.
11372 * remote.c (remote_write_bytes): Make it static.
11373 (remote_read_bytes): Don't handle partial reads here.
11374 * remote.h (remote_read_bytes): Delete declaration.
11375
11376 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11377
11378 Simplify XML parsing a bit.
11379
11380 * xml-support.h (gdb_xml_parse_quick): Declare.
11381 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11382 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11383 parameter.
11384 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11385 gdb_xml_create_parser_and_cleanup_1.
11386 (gdb_xml_parse_quick): New.
11387 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11388 * osdata.c (osdata_parse): Ditto.
11389 * remote.c (remote_threads_info): Ditto.
11390 * solib-target.c (solib_target_parse_libraries): Ditto.
11391 * xml-syscall.c (syscall_parse_xml): Ditto.
11392 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11393
11394 2011-01-24 Kevin Buettner <kevinb@redhat.com>
11395
11396 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11397 with remote-mips.o added to gdb_target_obs.
11398 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11399
11400 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11401
11402 * ada-valprint.c (val_print_packed_array_elements): Pass the
11403 correct struct value to val_print.
11404 (ada_val_print_1): Ditto.
11405
11406 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11407
11408 Don't lose embedded_offset in printing routines throughout.
11409
11410 * valprint.h (val_print_array_elements): Change prototype.
11411 * valprint.c (val_print_array_elements): Add `embedded_offset'
11412 parameter, and adjust to pass it down to val_print, while passing
11413 `valaddr' or `address' unmodified. Take embedded_offset into
11414 account when checking repetitions.
11415 * c-valprint.c (c_val_print): Pass embedded_offset to
11416 val_print_array_elements instead of adjusting `valaddr' and
11417 `address'.
11418 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11419 embedded_offset to val_print_array_elements instead of adjusting
11420 `valaddr'.
11421 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11422 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11423 val_print_array_elements and pascal_object_print_value_fields
11424 instead of adjusting `valaddr'.
11425 (pascal_object_print_value_fields): Add `offset' parameter, and
11426 adjust to use it.
11427 (pascal_object_print_value): Add `offset' parameter, and adjust to
11428 use it.
11429 (pascal_object_print_static_field): Use
11430 value_contents_for_printing/value_embedded_offset, rather than
11431 value_contents.
11432 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11433 parameter, and adjust to use it. Use
11434 value_contents_for_printing/value_embedded_offset, rather than
11435 value_contents.
11436 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11437 (ada_val_print_array): Add `offset' parameter, and adjust to use
11438 it.
11439 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11440 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11441 Instead work with offsets. Use
11442 value_contents_for_printing/value_embedded_offset, rather than
11443 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11444 and use value_from_pointer to extract a target pointer, rather
11445 than value_from_longest.
11446 (print_variant_part): Add `offset' parameter. Replace
11447 `outer_valaddr' parameter by a new `outer_offset' parameter.
11448 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11449 (ada_value_print): Use
11450 value_contents_for_printing/value_embedded_offset, rather than
11451 value_contents.
11452 (print_record): Add `offset' parameter, and adjust to pass it
11453 down.
11454 (print_field_values): Add `offset' parameter. Replace
11455 `outer_valaddr' parameter by a new `outer_offset' parameter.
11456 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11457 Use value_contents_for_printing/value_embedded_offset, rather than
11458 value_contents.
11459 * d-valprint.c (dynamic_array_type): Use
11460 value_contents_for_printing/value_embedded_offset, rather than
11461 value_contents.
11462 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11463 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11464 (java_print_value_fields): Take `offset' into account. Don't
11465 re-adjust `valaddr'. Instead pass down adjusted offsets.
11466 (java_val_print): Take `embedded_offset' into account. Pass it to
11467 java_print_value_fields.
11468 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11469 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11470 down adjusted offsets.
11471 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11472 (f_val_print): Take `embedded_offset' into account.
11473
11474 2011-01-21 Joel Brobecker <brobecker@adacore.com>
11475
11476 * inflow.c: Include "gdbcmd.h".
11477 (interactive_mode): New static global, moved here from top.c.
11478 (show_interactive_mode): New function, moved here from top.c.
11479 use gdb_has_a_terminal instead of input_from_terminal_p to
11480 determine the current mode.
11481 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11482 setting.
11483 (_initialize_inflow): Add the "set/show interactive-mode"
11484 commands. Moved here from top.c, after having adjusted slightly
11485 the help text.
11486 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11487 to inflow.c.
11488 (input_from_terminal_p): Remove handling of "interactive-mode"
11489 setting, moved to infow.c.
11490 (init_main): Remove creation of the "set/show interactive-mode"
11491 commands, moved to inflow.c.
11492
11493 2011-01-19 Joel Brobecker <brobecker@adacore.com>
11494
11495 * NEWS: Add entry for native ia64-hpux support.
11496
11497 2011-01-19 Tom Tromey <tromey@redhat.com>
11498
11499 PR mi/8618:
11500 * thread.c (free_thread): Free 'name'.
11501 (print_thread_info): Emit thread name. Change CLI output.
11502 (thread_name_command): New function.
11503 (do_captured_thread_select): Emit newline.
11504 (_initialize_thread): Register 'thread name' command.
11505 * target.h (struct target_ops) <to_thread_name>: New field.
11506 (target_thread_name): New macro.
11507 * target.c (update_current_target): Handle to_thread_name.
11508 * python/py-infthread.c (thpy_get_name): New function.
11509 (thpy_set_name): Likewise.
11510 (thread_object_getset): Add "name".
11511 * linux-nat.c (linux_nat_thread_name): New function.
11512 (linux_nat_add_target): Set to_thread_name.
11513 * gdbthread.h (struct thread_info) <name>: New field.
11514
11515 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11516
11517 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11518 (ada_val_print_1): Likewise.
11519
11520 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11521
11522 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11523 upper limit address is not greater than the function end address
11524 when the upper limit could not be computed using the debugging
11525 info.
11526
11527 2011-01-17 Tom Tromey <tromey@redhat.com>
11528
11529 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11530 get_regcomp_error.
11531 * utils.c: Include gdb_regex.h.
11532 (do_regfree_cleanup): New function.
11533 (make_regfree_cleanup): Likewise.
11534 (get_regcomp_error): Likewise.
11535 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11536
11537 2011-01-17 Tom Tromey <tromey@redhat.com>
11538
11539 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11540 re_compile_fastmap.
11541
11542 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11543
11544 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11545 for internal variables.
11546 (last_was_structop): New static variable.
11547 (COMPLETE): New token.
11548 (field_exp): New rule to group all '.' suffix handling.
11549 Add mark_struct_expression calls when approriate to be able
11550 to correctly find fields for completion.
11551 (yylex): Adapt to handle field completion and set INTVAR when
11552 required.
11553
11554 2011-01-14 Yao Qi <yao@codesourcery.com>
11555
11556 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11557 save_reggroup, restore_reggroup and all_reggroup.
11558
11559 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11560
11561 * ada-valprint. (ada_printchar): Use the correct type length
11562 in call to ada_emit_char.
11563 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11564
11565 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11566
11567 * solib-som.h (hpux_major_release): Declare variable here.
11568 * solib-som.c: Remove <sys/utsname.h> header.
11569 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11570 (hpux_major_release): Make global, change default value to
11571 DEFAULT_HPUX_MAJOR_RELEASE.
11572 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11573 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11574 Add "solib-som.h" header.
11575 (set_hpux_major_release): New function.
11576 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11577
11578 2011-01-14 Mike Frysinger <vapier@gentoo.org>
11579
11580 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11581
11582 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11583
11584 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11585 new-line at end of warning message.
11586 (ia64_hpux_store_register): Remove trailing new-line at end of
11587 error message.
11588 * ia64-hpux-tdep.c: Rephrase comment.
11589 * solib-ia64-hpux.c (struct dld_info): Change type of field
11590 dld_flags from "long long" to ULONGEST.
11591
11592 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11593
11594 * target.h (deprecated_child_ops): Delete declaration.
11595 * target.c (deprecated_child_ops): Delete definition.
11596
11597 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11598
11599 * Makefile.in (hpux-thread.o): Delete rule.
11600 * configure.ac: Don't check for HPUX DCE threads support.
11601 * configure, config.in: Regenerate.
11602 * hppa-hpux-nat.c (child_suppress_run): Delete.
11603 (hppa_hpux_child_can_run): Delete.
11604 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11605 * hpux-thread.c: Delete.
11606
11607 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11608
11609 * hpux-thread.c (hpux_pid_to_str): Delete.
11610
11611 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11612
11613 * ada-valprint.c (ada_emit_char): Remove strange code.
11614 Check that c is <= UCHAR_MAX before passing it to isascii.
11615 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11616
11617 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11618
11619 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11620 to the case where instream is stdin.
11621
11622 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11623
11624 * ia64-tdep.h (struct regcache): Forward declare.
11625 (struct ia64_infcall_ops): New struct type.
11626 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11627 and "infcall_ops".
11628 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11629 Renames ia64_find_global_pointer.
11630 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11631 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11632 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11633 methods.
11634 (ia64_infcall_ops): New static global constant.
11635 (ia64_gdbarch_init): Set tdep->infcall_ops.
11636 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11637 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11638 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11639 (ia64_hpux_dummy_code): New static global constant.
11640 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11641 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11642 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11643 New function.
11644 (ia64_hpux_infcall_ops): New static global constant.
11645 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11646 for inferior function calls to work properly on ia64-hpux.
11647
11648 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11649
11650 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11651 * ia64-tdep.h (struct frame_info): forward declaration.
11652 (struct gdbarch_tdep): Add field size_of_register_frame.
11653 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11654 to determine the size of the register frame.
11655 (ia64_size_of_register_frame): New function.
11656 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11657 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11658 (IA64_HPUX_UREG_REASON): New macro.
11659 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11660 New functions.
11661 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11662 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11663 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11664 objects.
11665
11666 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11667
11668 Add support for ia64-hpux.
11669 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11670 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11671
11672 * configure.host: Add handling for ia64-hpux hosts. Add associated
11673 floatformats.
11674 * configure.tgt: Add handling for ia64-hpux targets.
11675 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11676 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11677 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11678
11679 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11680
11681 [ttrace] Compute thread list immediately after attach.
11682 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11683 New subprogram.
11684 (inf_ttrace_attach): Use it.
11685
11686 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11687
11688 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11689 if we could not determine the frame's function address. Instead,
11690 use the frame's PC, and then continue.
11691
11692 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11693
11694 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11695 not already defined.
11696
11697 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11698
11699 * ia64-tdep.c (ia64_struct_type_p): New function.
11700 (ia64_extract_return_value): Handle integral values that are
11701 less than 8 bytes long.
11702 (ia64_push_dummy_call): Likewise.
11703
11704 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11705
11706 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11707 floatformat_ia64_ext.
11708 (floatformat_ia64_ext_big): New static const.
11709 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11710
11711 2011-01-12 Tom Tromey <tromey@redhat.com>
11712
11713 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11714 messages.
11715 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11716 (mi_cmd_thread_list_ids): Likewise.
11717 (mi_cmd_data_list_changed_registers): Likewise.
11718 (mi_cmd_data_list_register_values): Likewise.
11719 (mi_cmd_data_write_register_values): Likewise.
11720 (mi_cmd_data_evaluate_expression): Likewise.
11721 (mi_cmd_data_read_memory): Likewise.
11722 (mi_cmd_data_read_memory_bytes): Likewise.
11723 (mi_cmd_data_write_memory): Likewise.
11724 (mi_cmd_enable_timings): Likewise.
11725 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11726 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11727 (mi_cmd_var_delete): Likewise.
11728 (mi_cmd_var_set_format): Likewise.
11729 (mi_cmd_var_show_format): Likewise.
11730 (mi_cmd_var_info_num_children): Likewise.
11731 (mi_cmd_var_list_children): Likewise.
11732 (mi_cmd_var_info_type): Likewise.
11733 (mi_cmd_var_info_expression): Likewise.
11734 (mi_cmd_var_show_attributes): Likewise.
11735 (mi_cmd_var_assign): Likewise.
11736 (mi_cmd_var_update): Likewise.
11737 (mi_cmd_enable_pretty_printing): Likewise.
11738 (mi_cmd_var_set_update_range): Likewise.
11739 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11740 messages.
11741 (mi_cmd_target_file_put): Likewise.
11742 (mi_cmd_target_file_delete): Likewise.
11743 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11744 messages.
11745 (mi_cmd_stack_info_depth): Likewise.
11746 (mi_cmd_stack_list_locals): Likewise.
11747 (mi_cmd_stack_list_args): Likewise.
11748 (mi_cmd_stack_select_frame): Likewise.
11749 (mi_cmd_stack_select_frame): Likewise.
11750 (mi_cmd_stack_info_frame): Likewise.
11751 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11752 messages.
11753 (mi_cmd_file_list_exec_source_files): Likewise.
11754 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11755 (mi_cmd_env_cd): Likewise.
11756 (mi_cmd_env_path): Likewise.
11757 (mi_cmd_env_dir): Likewise.
11758 (mi_cmd_inferior_tty_show): Likewise.
11759 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11760 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11761 (mi_cmd_break_watch): Likewise.
11762
11763 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11764
11765 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11766 (ppc_linux_insert_hw_breakpoint): Likewise.
11767 (ppc_linux_remove_hw_breakpoint): Likewise.
11768 (ppc_linux_insert_watchpoint): Likewise.
11769
11770 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11771 Jan Kratochvil <jan.kratochvil@redhat.com>
11772
11773 PR fortran/11104 and DWARF unbound arrays detection.
11774 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11775 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11776 unspecified upper bound.
11777 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11778 variables array_size_array, tmp_type and offset_item. New variable
11779 array. Remove call to f77_get_upperbound. New variables array_type
11780 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11781 the final call to deprecated_set_value_type.
11782
11783 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11784
11785 Make value allocations more lazy.
11786 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11787 instead of allocate_value and set_value_lazy when possible.
11788 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11789 instead of allocate_value and set_value_lazy.
11790 * findvar.c (value_of_register_lazy): Likewise.
11791 (read_var_value): Remove V preallocation, call just check_typedef in
11792 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11793 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11794 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11795 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11796 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11797 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11798 the end, remove set_value_lazy there.
11799 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11800 instead of allocate_value and set_value_lazy when possible.
11801 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11802 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11803 of allocate_value and set_value_lazy.
11804 (value_from_contents_and_address): Use allocate_value_lazy instead of
11805 allocate_value and set_value_lazy when possible.
11806
11807 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11808
11809 * disasm.c (dump_insns): Support dumping opcodes for MI.
11810 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11811 dumping of instruction opcodes.
11812
11813 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11814
11815 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11816 appropiately.
11817
11818 2011-01-11 Tom Tromey <tromey@redhat.com>
11819
11820 * thread.c (do_captured_thread_select): Emit newline before
11821 printing frame.
11822
11823 2011-01-11 Michael Snyder <msnyder@vmware.com>
11824
11825 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11826 * score-tdep.c: Ditto.
11827 * score-tdep.h: Ditto.
11828 * ser-base.c: Ditto.
11829 * ser-go32.c: Ditto.
11830 * serial.c: Ditto.
11831 * serial.h: Ditto.
11832 * ser-mingw.c: Ditto.
11833 * ser-pipe.c: Ditto.
11834 * ser-tcp.c: Ditto.
11835 * ser-unix.c: Ditto.
11836 * sh64-tdep.c: Ditto.
11837 * shnbsd-nat.c: Ditto.
11838 * sh-tdep.c: Ditto.
11839 * sh-tdep.h: Ditto.
11840 * solib.c: Ditto.
11841 * solib-darwin.c: Ditto.
11842 * solib-frv.c: Ditto.
11843 * solib.h: Ditto.
11844 * solib-irix.c: Ditto.
11845 * solib-osf.c: Ditto.
11846 * solib-pa64.c: Ditto.
11847 * solib-som.c: Ditto.
11848 * solib-spu.c: Ditto.
11849 * solib-sunos.c: Ditto.
11850 * solib-svr4.c: Ditto.
11851 * solist.h: Ditto.
11852 * sol-thread.c: Ditto.
11853 * somread.c: Ditto.
11854 * source.c: Ditto.
11855 * source.h: Ditto.
11856 * sparc64-linux-tdep.c: Ditto.
11857 * sparc64-tdep.c: Ditto.
11858 * sparc-linux-nat.c: Ditto.
11859 * sparc-linux-tdep.c: Ditto.
11860 * sparc-sol2-nat.c: Ditto.
11861 * sparc-sol2-tdep.c: Ditto.
11862 * sparc-tdep.c: Ditto.
11863 * sparc-tdep.h: Ditto.
11864 * spu-tdep.c: Ditto.
11865 * stabsread.c: Ditto.
11866 * stabsread.h: Ditto.
11867 * stack.c: Ditto.
11868 * symfile.c: Ditto.
11869 * symfile.h: Ditto.
11870 * symmisc.c: Ditto.
11871 * symtab.c: Ditto.
11872 * symtab.h: Ditto.
11873 * target.c: Ditto.
11874 * target-descriptions.c: Ditto.
11875 * target-descriptions.h: Ditto.
11876 * target.h: Ditto.
11877 * target-memory.c: Ditto.
11878 * terminal.h: Ditto.
11879 * thread.c: Ditto.
11880 * top.c: Ditto.
11881 * tracepoint.c: Ditto.
11882 * tracepoint.h: Ditto.
11883 * trad-frame.h: Ditto.
11884 * typeprint.c: Ditto.
11885
11886 2011-01-11 Michael Snyder <msnyder@vmware.com>
11887
11888 * ui-file.c: Comment cleanup, mostly periods and spaces.
11889 * ui-file.h: Ditto.
11890 * ui-out.c: Ditto.
11891 * ui-out.h: Ditto.
11892 * utils.c: Ditto.
11893 * v850-tdep.c: Ditto.
11894 * valarith.c: Ditto.
11895 * valops.c: Ditto.
11896 * valprint.c: Ditto.
11897 * valprint.h: Ditto.
11898 * value.c: Ditto.
11899 * value.h: Ditto.
11900 * varobj.c: Ditto.
11901 * varobj.h: Ditto.
11902 * vax-tdep.c: Ditto.
11903 * vec.c: Ditto.
11904 * vec.h: Ditto.
11905 * version.h: Ditto.
11906 * windows-nat.c: Ditto.
11907 * windows-tdep.c: Ditto.
11908 * xcoffread.c: Ditto.
11909 * xcoffsolib.c: Ditto.
11910 * xml-support.c: Ditto.
11911 * xstormy16-tdep.c: Ditto.
11912 * xtensa-tdep.c: Ditto.
11913 * xtensa-tdep.h: Ditto.
11914
11915 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11916
11917 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11918 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11919
11920 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11921 Thiago Jung Bauermann <bauerman@br.ibm.com>
11922
11923 Implement support for PowerPC BookE ranged watchpoints.
11924 * breakpoint.h
11925 (struct breakpoint_ops) <resources_needed>: New method.
11926 Initialize to NULL in all existing breakpoint_ops instances.
11927 (struct breakpoint) <exact>: New field.
11928 (target_exact_watchpoints): Declare external global.
11929 * breakpoint.c (target_exact_watchpoints): New global flag.
11930 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11931 b->enable_state to bp_enabled before calling
11932 hw_watchpoint_used_count.
11933 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11934 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11935 if available.
11936 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11937 if the watchpoint is exact.
11938 (resources_needed_watchpoint): New function.
11939 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11940 (watch_command_1): Set b->exact if the user asked for an exact
11941 watchpoint and one can be set.
11942 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11943 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11944 the user asks for an exact watchpoint and one can be set. Return
11945 number of needed debug registers to watch the expression.
11946 * gdbtypes.c (is_scalar_type): New function, based on
11947 valprint.c:scalar_type_p.
11948 (is_scalar_type_recursive): New function.
11949 * gdbtypes.h (is_scalar_type_recursive): Declare.
11950 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11951 handle regions when ranged watchpoints are available.
11952 (create_watchpoint_request): New function.
11953 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11954 create_watchpoint_request.
11955 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11956 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11957 `set powerpc' and `show powerpc' commands.
11958 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11959 Mention documentation comment in the target macro.
11960 (target_region_ok_for_hw_watchpoint): Document return value.
11961
11962 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11963
11964 * breakpoint.c (update_watchpoint): Decide on using a software or
11965 hardware watchpoint after the bp_locations are created.
11966
11967 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11968
11969 Convert hardware watchpoints to use breakpoint_ops.
11970 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11971 <insert_location>: ... this. Return int instead of void.
11972 Accept pointer to struct bp_location instead of pointer to
11973 struct breakpoint. Adapt all implementations.
11974 (breakpoint_ops) <remove>: Rename to...
11975 <remove_location>: ... this. Accept pointer to struct bp_location
11976 instead of pointer to struct breakpoint. Adapt all implementations.
11977 * breakpoint.c (insert_catchpoint): Delete function.
11978 (insert_bp_location): Call the watchpoint or catchpoint's
11979 breakpoint_ops.insert method.
11980 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11981 breakpoint_ops.remove method.
11982 (insert_watchpoint, remove_watchpoint): New functions.
11983 (watchpoint_breakpoint_ops): New structure.
11984 (watch_command_1): Initialize the OPS field.
11985 * inf-child.c (inf_child_insert_fork_catchpoint)
11986 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11987 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11988 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11989 Delete functions.
11990 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11991 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11992 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11993 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11994 * target.c (update_current_target): Change default implementation of
11995 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11996 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11997 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11998 to_set_syscall_catchpoint to return_one.
11999 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
12000 (debug_to_insert_exec_catchpoint): Report return value.
12001 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
12002 (to_insert_exec_catchpoint): Change declaration to return int instead
12003 of void.
12004
12005 2011-01-11 Michael Snyder <msnyder@vmware.com>
12006
12007 * arm-tdep.c: Internationalization.
12008 * c-lang.c: Ditto.
12009 * charset.c: Ditto.
12010 * fork-child.c: Ditto.
12011 * nto-procfs.c: Ditto.
12012 * ppc-sysv-tdep.c: Ditto.
12013 * procfs.c: Ditto.
12014 * remote-mips.c: Ditto.
12015 * remote.c: Ditto.
12016 * rs6000-nat.c: Ditto.
12017 * rs6000-tdep.c: Ditto.
12018 * target.c: Ditto.
12019 * valops.c: Ditto.
12020 * value.c: Ditto.
12021 * xml-support.c: Ditto.
12022 * mi/mi-cmd-break.c: Ditto.
12023 * mi/mi-cmd-var.c: Ditto.
12024 * mi/mi-interp.c: Ditto.
12025 * mi/mi-main.c: Ditto.
12026
12027 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
12028
12029 * remote-sim.c (gdbsim_store_register): Update API to
12030 sim_store_register to check more error conditions.
12031
12032 2011-01-10 Michael Snyder <msnyder@vmware.com>
12033
12034 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
12035 * nto-tdep.c: Ditto.
12036 * nto-tdep.h: Ditto.
12037 * objc-exp.y: Ditto.
12038 * objc-lang.c: Ditto.
12039 * objfiles.c: Ditto.
12040 * objfiles.h: Ditto.
12041 * observer.c: Ditto.
12042 * opencl-lang.c: Ditto.
12043 * osabi.c: Ditto.
12044 * parse.c: Ditto.
12045 * parser-defs.h: Ditto.
12046 * p-exp.y: Ditto.
12047 * p-lang.c: Ditto.
12048 * posix-hdep.c: Ditto.
12049 * ppcbug-rom.c: Ditto.
12050 * ppc-linux-nat.c: Ditto.
12051 * ppc-linux-tdep.c: Ditto.
12052 * ppc-linux-tdep.h: Ditto.
12053 * ppcnbsd-tdep.c: Ditto.
12054 * ppcobsd-tdep.c: Ditto.
12055 * ppcobsd-tdep.h: Ditto.
12056 * ppc-sysv-tdep.c: Ditto.
12057 * ppc-tdep.h: Ditto.
12058 * printcmd.c: Ditto.
12059 * proc-abi.c: Ditto.
12060 * proc-flags.c: Ditto.
12061 * procfs.c: Ditto.
12062 * proc-utils.h: Ditto.
12063 * progspace.h: Ditto.
12064 * prologue-value.c: Ditto.
12065 * prologue-value.h: Ditto.
12066 * psympriv.h: Ditto.
12067 * psymtab.c: Ditto.
12068 * p-typeprint.c: Ditto.
12069 * p-valprint.c: Ditto.
12070 * ravenscar-sparc-thread.c: Ditto.
12071 * ravenscar-thread.c: Ditto.
12072 * ravenscar-thread.h: Ditto.
12073 * record.c: Ditto.
12074 * regcache.c: Ditto.
12075 * regcache.h: Ditto.
12076 * remote.c: Ditto.
12077 * remote-fileio.c: Ditto.
12078 * remote-fileio.h: Ditto.
12079 * remote.h: Ditto.
12080 * remote-m32r-sdi.c: Ditto.
12081 * remote-mips.c: Ditto.
12082 * remote-sim.c: Ditto.
12083 * rs6000-aix-tdep.c: Ditto.
12084 * rs6000-nat.c: Ditto.
12085 * rs6000-tdep.c: Ditto.
12086
12087 2011-01-10 Michael Snyder <msnyder@vmware.com>
12088
12089 * charset.c (validate): Internationalization.
12090 * coffread.c (read_one_sym): Ditto.
12091 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
12092 * h8300-tdep.c (H8300_extract_return_value): Ditto.
12093 * inflow.c (new_tty): Ditto.
12094 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
12095 * m32c-tdep.c (m32c_return_value): Ditto.
12096 * mep-tdep.c (mep_store_return_value): Ditto.
12097 * score-tdep.c (score7_fetch_insn): Ditto.
12098 * ser-mingw.c (pipe_windows_open): Ditto.
12099 * sh64-tdep.c (sh64_extract_return_value): Ditto.
12100 * spu-tdep.c (spu_register_type): Ditto.
12101 * tracepoint.c (trace_find_command): Ditto.
12102 * valarith.c (value_pos): Ditto.
12103
12104 2011-01-10 Joel Brobecker <brobecker@adacore.com>
12105
12106 * ada-valprint.c (printstr): Minor comment reformatting.
12107
12108 2011-01-08 Michael Snyder <msnyder@vmware.com>
12109
12110 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
12111 markup.
12112
12113 2011-01-08 Michael Snyder <msnyder@vmware.com>
12114
12115 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
12116 * hppa-hpux-tdep.c: Ditto.
12117 * hppa-linux-nat.c: Ditto.
12118 * hppa-linux-tdep.c: Ditto.
12119 * hppanbsd-tdep.c: Ditto.
12120 * hppa-tdep.c: Ditto.
12121 * hppa-tdep.h: Ditto.
12122 * hpux-thread.c: Ditto.
12123 * i386-cygwin-tdep.c: Ditto.
12124 * i386-darwin-nat.c: Ditto.
12125 * i386gnu-nat.c: Ditto.
12126 * i386-linux-nat.c: Ditto.
12127 * i386-linux-tdep.c: Ditto.
12128 * i386-nat.c: Ditto.
12129 * i386-nat.h: Ditto.
12130 * i386nbsd-tdep.c: Ditto.
12131 * i386-sol2-nat.c: Ditto.
12132 * i386-stub.c: Ditto.
12133 * i386-tdep.c: Ditto.
12134 * i386-tdep.h: Ditto.
12135 * i387-tdep.c: Ditto.
12136 * ia64-linux-nat.c: Ditto.
12137 * ia64-linux-tdep.c: Ditto.
12138 * ia64-tdep.c: Ditto.
12139 * infcall.c: Ditto.
12140 * infcall.h: Ditto.
12141 * infcmd.c: Ditto.
12142 * inferior.c: Ditto.
12143 * inferior.h: Ditto.
12144 * infloop.c: Ditto.
12145 * inflow.c: Ditto.
12146 * infrun.c: Ditto.
12147 * interps.c: Ditto.
12148 * interps.h: Ditto.
12149 * iq2000-tdep.c: Ditto.
12150 * irix5-nat.c: Ditto.
12151 * jit.c: Ditto.
12152 * jit.h: Ditto.
12153 * jv-exp.y: Ditto.
12154 * jv-lang.c: Ditto.
12155 * jv-lang.h: Ditto.
12156 * jv-typeprint.c: Ditto.
12157 * jv-valprint.c: Ditto.
12158 * language.c: Ditto.
12159 * language.h: Ditto.
12160 * linespec.c: Ditto.
12161 * linux-fork.c: Ditto.
12162 * linux-nat.c: Ditto.
12163 * linux-thread-db.c: Ditto.
12164 * lm32-tdep.c: Ditto.
12165
12166 2011-01-08 Michael Snyder <msnyder@vmware.com>
12167
12168 * m2-exp.y: Comment cleanup, mostly periods and spaces.
12169 * m2-lang.c: Ditto.
12170 * m2-typeprint.c: Ditto.
12171 * m2-valprint.c: Ditto.
12172 * m32c-tdep.c: Ditto.
12173 * m32r-linux-nat.c: Ditto.
12174 * m32r-rom.c: Ditto.
12175 * m32r-tdep.c: Ditto.
12176 * m32r-tdep.h: Ditto.
12177 * m68hc11-tdep.c: Ditto.
12178 * m58klinux-nat.c: Ditto.
12179 * m68k-tdep.c: Ditto.
12180 * m88k-tdep.c: Ditto.
12181 * m88k-tdep.h: Ditto.
12182 * machoread.c: Ditto.
12183 * macrocmd.c: Ditto.
12184 * macroexp.c: Ditto.
12185 * macrotab.c: Ditto.
12186 * main.c: Ditto.
12187 * maint.c: Ditto.
12188 * mdebugread.c: Ditto.
12189 * mdebugread.h: Ditto.
12190 * memattr.c: Ditto.
12191 * memattr.h: Ditto.
12192 * memory-map.h: Ditto.
12193 * mep-tdep.c: Ditto.
12194 * microblaze-rom.c: Ditto.
12195 * microblaze-tdep.c: Ditto.
12196 * minsyms.c: Ditto.
12197 * mips-irix-tdep.c: Ditto.
12198 * mips-linux-nat.c: Ditto.
12199 * mips-linux-tdep.c: Ditto.
12200 * mips-linux-tdep.h: Ditto.
12201 * mipsnbsd-nat.c: Ditto.
12202 * mipsnbsd-tdep.c: Ditto.
12203 * mipsread.c: Ditto.
12204 * mips-tdep.c: Ditto.
12205 * mips-tdep.h: Ditto.
12206 * mn10300-linux-tdep.c: Ditto.
12207 * mn10300-tdep.c: Ditto.
12208 * mn10300-tdep.h: Ditto.
12209 * monitor.c: Ditto.
12210 * monitor.h: Ditto.
12211 * moxie-tdep.c: Ditto.
12212 * moxie-tdep.h: Ditto.
12213 * mt-tdep.c: Ditto.
12214
12215 2011-01-08 Mike Frysinger <vapier@gentoo.org>
12216
12217 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
12218
12219 2011-01-08 Robert Millan <rmh@gnu.org>
12220
12221 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
12222
12223 2011-01-07 Michael Snyder <msnyder@vmware.com>
12224
12225 * charset.c (_initialize_charset): Fix typo in string.
12226
12227 2011-01-07 Michael Snyder <msnyder@vmware.com>
12228
12229 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
12230 for i18n.
12231 * tui/tui-layout.c (tui_set_layout_for_display_command):
12232 Split line so that operator goes to beginning of line.
12233 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
12234 assignment out of if statement.
12235
12236 2011-01-07 Michael Snyder <msnyder@vmware.com>
12237
12238 * ada-lang.c: Comment cleanup, mostly periods and spaces.
12239 * ada-lang.h: Ditto.
12240 * ada-tasks.c: Ditto.
12241 * ada-valprint.c: Ditto.
12242 * aix-threads.c: Ditto.
12243 * alpha-linux-nat.c: Ditto.
12244 * alpha-linux-tdep.c: Ditto.
12245 * alpha-mdebug-tdep.c: Ditto.
12246 * alpha-nat.c: Ditto.
12247 * alpha-osf1-tdep.c: Ditto.
12248 * alpha-tdep.c: Ditto.
12249 * alphabsd-nat.c: Ditto.
12250 * alphabsd-tdep.c: Ditto.
12251 * amd64-darwin-tdep.c: Ditto.
12252 * amd64-linux-nat.c: Ditto.
12253 * amd64-linux-tdep.c: Ditto.
12254 * amd64-sol2-tdep.c: Ditto.
12255 * amd64-tdep.c: Ditto.
12256 * amd64-fbsd-tdep.c: Ditto.
12257 * amd64-nbsd-tdep.c: Ditto.
12258 * amd64-obsd-tdep.c: Ditto.
12259 * amd64-linux-nat.c: Ditto.
12260 * amd64-linux-tdep.c: Ditto.
12261 * arm-tdep.c: Ditto.
12262 * arm-tdep.h: Ditto.
12263 * armnbsd-nat.c: Ditto.
12264 * avr-tdep.c: Ditto.
12265 * bfin-tdep.c: Ditto.
12266 * bsd-kvm.c: Ditto.
12267 * c-typeprintc: Ditto.
12268 * c-valprint.c: Ditto.
12269 * coff-pe-read.h: Ditto.
12270 * coffreead.c: Ditto.
12271 * cris-tdep.c: Ditto.
12272 * d-lang.c: Ditto.
12273 * darwin-nat-info.c: Ditto.
12274 * darwin-nat.c: Ditto.
12275 * dbug-rom.c: Ditto.
12276 * dbxread.c: Ditto.
12277 * dcache.c: Ditto.
12278 * dcache.h: Ditto.
12279 * dec-thread.c: Ditto.
12280 * defs.h: Ditto.
12281 * demangle.c: Ditto.
12282 * dicos-tdep.c: Ditto.
12283 * dictionary.c: Ditto.
12284 * dictionary.h: Ditto.
12285 * dink32-rom.c: Ditto.
12286 * disasm.c: Ditto.
12287 * doublest.c: Ditto.
12288 * dsrec.c: Ditto.
12289 * dummy-frame.c: Ditto.
12290 * dwarf2-frame.c: Ditto.
12291 * dwarf2expr.c: Ditto.
12292 * dwarf2loc.c: Ditto.
12293 * dwarf2read.c: Ditto.
12294 * elfread.c: Ditto.
12295 * environ.c: Ditto.
12296 * eval.c: Ditto.
12297 * event-top.h: Ditto.
12298 * exceptions.c: Ditto.
12299 * exceptions.h: Ditto.
12300 * exec.c: Ditto.
12301 * expprint.c: Ditto.
12302 * expression.h: Ditto.
12303 * f-exp.y: Ditto.
12304 * f-lang.c: Ditto.
12305 * f-lang.h: Ditto.
12306 * f-typeprint.c: Ditto.
12307 * f-valprint.c: Ditto.
12308 * fbsd-nat.c: Ditto.
12309 * findvar.c: Ditto.
12310 * fork-child.c: Ditto.
12311 * frame.c: Ditto.
12312 * frame.h: Ditto.
12313 * frv-linux-tdep.c: Ditto.
12314 * frv-tdep.c: Ditto.
12315 * gcore.c: Ditto.
12316 * gdb-stabs.h: Ditto.
12317 * gdb_assert.h: Ditto.
12318 * gdb_string.h: Ditto.
12319 * gdb_thread_db.h: Ditto.
12320 * gdb_wait.h: Ditto.
12321 * gdbarch.sh: Ditto.
12322 * gdbcore.h: Ditto.
12323 * gdbthread.h: Ditto.
12324 * gdbtypes.c: Ditto.
12325 * gdbtypes.h: Ditto.
12326 * gnu-nat.c: Ditto.
12327 * gnu-nat.h: Ditto.
12328 * gnu-v2-abi.c: Ditto.
12329 * gnu-v3-abi.c: Ditto.
12330 * go32-nat.c: Ditto.
12331 * gdbarch.c: Regenerate.
12332 * gdbarch.h: Regenerate.
12333
12334 2011-01-07 Michael Snyder <msnyder@vmware.com>
12335
12336 * ax-gdb.c: Adjust some long output strings.
12337 * breakpoint.c: Ditto.
12338 * charset.c: Ditto.
12339 * cp-abi.c: Ditto.
12340 * infcall.c: Ditto.
12341 * infrun.c: Ditto.
12342 * linux-nat.c: Ditto.
12343 * solib-pa64.c: Ditto.
12344 * solib-som.c: Ditto.
12345
12346 2011-01-06 Tom Tromey <tromey@redhat.com>
12347
12348 PR python/12367:
12349 * NEWS: Add item.
12350 * python/python.c (GdbMethods): Add "newest_frame" method.
12351 * python/python-internal.h (gdbpy_newest_frame): Declare.
12352 * python/py-frame.c (gdbpy_newest_frame): New function.
12353
12354 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
12355
12356 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12357 * jit.c (jit_debug): New variable.
12358 (show_jit_debug): New function.
12359 (struct target_buffer): Use ULONGEST.
12360 (bfd_open_from_target_memory): Likewise.
12361 (jit_register_code, jit_inferior_init): Add debug output.
12362 (_initialize_jit): Register "debug jit" command.
12363
12364 2011-01-06 Tom Tromey <tromey@redhat.com>
12365
12366 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12367 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12368 and ARCH_FRAME.
12369
12370 2011-01-06 Tom Tromey <tromey@redhat.com>
12371
12372 * python/py-frame.c (frapy_block): Use get_frame_block.
12373
12374 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12375
12376 Do not stop on SIGPRIO signals by default
12377 * infrun.c (_initialize_infrun): Unset signal_stop and
12378 signal_print for TARGET_SIGNAL_PRIO.
12379
12380 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12381
12382 * ada-tasks.c: Fix style violation in comment.
12383
12384 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12385
12386 * linespec.c (decode_compound, find_method): Remove trailing \n
12387 at end of error string.
12388 * solib-irix.c (irix_current_sos): Likewise.
12389 * varobj.c (uninstall_variable): Likewise.
12390
12391 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12392
12393 * copyright.py: New script.
12394 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12395 Launch emacs without exec'ing. Call copyright.py afterwards.
12396
12397 2011-01-05 Michael Snyder <msnyder@vmware.com>
12398
12399 * addrmap.c: Shorten lines of >= 80 columns.
12400 * arch-utils.c: Ditto.
12401 * arch-utils.h: Ditto.
12402 * ax-gdb.c: Ditto.
12403 * ax-general.c: Ditto.
12404 * bcache.c: Ditto.
12405 * blockframe.c: Ditto.
12406 * breakpoint.c: Ditto.
12407 * buildsym.c: Ditto.
12408 * c-lang.c: Ditto.
12409 * c-typeprint.c: Ditto.
12410 * charset.c: Ditto.
12411 * coffread.c: Ditto.
12412 * command.h: Ditto.
12413 * corelow.c: Ditto.
12414 * cp-abi.c: Ditto.
12415 * cp-namespace.c: Ditto.
12416 * cp-support.c: Ditto.
12417 * dbug-rom.c: Ditto.
12418 * dbxread.c: Ditto.
12419 * defs.h: Ditto.
12420 * dfp.c: Ditto.
12421 * dfp.h: Ditto.
12422 * dictionary.c: Ditto.
12423 * disasm.c: Ditto.
12424 * doublest.c: Ditto.
12425 * dwarf2-frame.c: Ditto.
12426 * dwarf2expr.c: Ditto.
12427 * dwarf2loc.c: Ditto.
12428 * dwarf2read.c: Ditto.
12429 * elfread.c: Ditto.
12430 * eval.c: Ditto.
12431 * event-loop.c: Ditto.
12432 * event-loop.h: Ditto.
12433 * exceptions.h: Ditto.
12434 * exec.c: Ditto.
12435 * expprint.c: Ditto.
12436 * expression.h: Ditto.
12437 * f-lang.c: Ditto.
12438 * f-valprint.c: Ditto.
12439 * findcmd.c: Ditto.
12440 * frame-base.c: Ditto.
12441 * frame-unwind.c: Ditto.
12442 * frame-unwind.h: Ditto.
12443 * frame.c: Ditto.
12444 * frame.h: Ditto.
12445 * gcore.c: Ditto.
12446 * gdb-stabs.h: Ditto.
12447 * gdb_assert.h: Ditto.
12448 * gdb_dirent.h: Ditto.
12449 * gdb_obstack.h: Ditto.
12450 * gdbcore.h: Ditto.
12451 * gdbtypes.c: Ditto.
12452 * gdbtypes.h: Ditto.
12453 * inf-ttrace.c: Ditto.
12454 * infcall.c: Ditto.
12455 * infcmd.c: Ditto.
12456 * inflow.c: Ditto.
12457 * infrun.c: Ditto.
12458 * inline-frame.h: Ditto.
12459 * language.c: Ditto.
12460 * language.h: Ditto.
12461 * libunwind-frame.c: Ditto.
12462 * libunwind-frame.h: Ditto.
12463 * linespec.c: Ditto.
12464 * linux-nat.c: Ditto.
12465 * linux-nat.h: Ditto.
12466 * linux-thread-db.c: Ditto.
12467 * machoread.c: Ditto.
12468 * macroexp.c: Ditto.
12469 * macrotab.c: Ditto.
12470 * main.c: Ditto.
12471 * maint.c: Ditto.
12472 * mdebugread.c: Ditto.
12473 * memattr.c: Ditto.
12474 * minsyms.c: Ditto.
12475 * monitor.c: Ditto.
12476 * monitor.h: Ditto.
12477 * objfiles.c: Ditto.
12478 * objfiles.h: Ditto.
12479 * osabi.c: Ditto.
12480 * p-typeprint.c: Ditto.
12481 * p-valprint.c: Ditto.
12482 * parse.c: Ditto.
12483 * printcmd.c: Ditto.
12484 * proc-events.c: Ditto.
12485 * procfs.c: Ditto.
12486 * progspace.c: Ditto.
12487 * progspace.h: Ditto.
12488 * psympriv.h: Ditto.
12489 * psymtab.c: Ditto.
12490 * record.c: Ditto.
12491 * regcache.c: Ditto.
12492 * regcache.h: Ditto.
12493 * remote-fileio.c: Ditto.
12494 * remote.c: Ditto.
12495 * ser-mingw.c: Ditto.
12496 * ser-tcp.c: Ditto.
12497 * ser-unix.c: Ditto.
12498 * serial.c: Ditto.
12499 * serial.h: Ditto.
12500 * solib-frv.c: Ditto.
12501 * solib-irix.c: Ditto.
12502 * solib-osf.c: Ditto.
12503 * solib-pa64.c: Ditto.
12504 * solib-som.c: Ditto.
12505 * solib-sunos.c: Ditto.
12506 * solib-svr4.c: Ditto.
12507 * solib-target.c: Ditto.
12508 * solib.c: Ditto.
12509 * somread.c: Ditto.
12510 * source.c: Ditto.
12511 * stabsread.c: Ditto.
12512 * stabsread.c: Ditto.
12513 * stack.c: Ditto.
12514 * stack.h: Ditto.
12515 * symfile-mem.c: Ditto.
12516 * symfile.c: Ditto.
12517 * symfile.h: Ditto.
12518 * symmisc.c: Ditto.
12519 * symtab.c: Ditto.
12520 * symtab.h: Ditto.
12521 * target-descriptions.c: Ditto.
12522 * target-memory.c: Ditto.
12523 * target.c: Ditto.
12524 * target.h: Ditto.
12525 * terminal.h: Ditto.
12526 * thread.c: Ditto.
12527 * top.c: Ditto.
12528 * tracepoint.c: Ditto.
12529 * tracepoint.h: Ditto.
12530 * ui-file.c: Ditto.
12531 * ui-file.h: Ditto.
12532 * ui-out.h: Ditto.
12533 * user-regs.c: Ditto.
12534 * user-regs.h: Ditto.
12535 * utils.c: Ditto.
12536 * valarith.c: Ditto.
12537 * valops.c: Ditto.
12538 * valprint.c: Ditto.
12539 * valprint.h: Ditto.
12540 * value.c: Ditto.
12541 * varobj.c: Ditto.
12542 * varobj.h: Ditto.
12543 * vec.h: Ditto.
12544 * xcoffread.c: Ditto.
12545 * xcoffsolib.c: Ditto.
12546 * xcoffsolib.h: Ditto.
12547 * xml-syscall.c: Ditto.
12548 * xml-tdesc.c: Ditto.
12549
12550 2011-01-05 Michael Snyder <msnyder@vmware.com>
12551
12552 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12553 * cli/cli-decode.c: Ditto.
12554 * cli/cli-dump.c: Ditto.
12555 * cli/cli-logging.c: Ditto.
12556 * cli/cli-script.c: Ditto.
12557 * cli/cli-setshow.c: Ditto.
12558 * common/signals.c: Ditto.
12559 * mi/mi-cmd-break.c: Ditto.
12560 * mi/mi-cmd-disas.c: Ditto.
12561 * mi/mi-cmd-stack.c: Ditto.
12562 * mi/mi-cmd-var.c: Ditto.
12563 * mi/mi-cmds.c: Ditto.
12564 * mi/mi-common.h: Ditto.
12565 * mi/mi-console.c: Ditto.
12566 * mi/mi-interp.c: Ditto.
12567 * mi/mi-main.c: Ditto.
12568 * osf-share/cma_attr.c: Ditto.
12569 * osf-share/cma_deb_core.h: Ditto.
12570 * osf-share/cma_debug_client.h: Ditto.
12571 * osf-share/cma_handle.h: Ditto.
12572 * osf-share/cma_mutex.h: Ditto.
12573 * osf-share/cma_stack_int.h: Ditto.
12574 * osf-share/cma_tcb_defs.h: Ditto.
12575 * python/py-auto-load.c: Ditto.
12576 * python/py-breakpoint.c: Ditto.
12577 * python/py-cmd.c: Ditto.
12578 * python/py-frame.c: Ditto.
12579 * python/py-objfile.c: Ditto.
12580 * python/py-param.c: Ditto.
12581 * python/py-progspace.c: Ditto.
12582 * python/py-symbol.c: Ditto.
12583 * python/py-value.c: Ditto.
12584 * python/python-internal.h: Ditto.
12585 * python/python.c: Ditto.
12586 * tui/tui-data.c: Ditto.
12587 * tui/tui-disasm.c: Ditto.
12588 * tui/tui-hooks.c: Ditto.
12589 * tui/tui-io.c: Ditto.
12590 * tui/tui-layout.c: Ditto.
12591 * tui/tui-regs.c: Ditto.
12592 * tui/tui-source.c: Ditto.
12593 * tui/tui-stack.c: Ditto.
12594 * tui/tui-win.c: Ditto.
12595 * tui/tui-windata.c: Ditto.
12596 * tui/tui-winsource.c: Ditto.
12597
12598 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12599
12600 * configure.ac, gdb.1: Copyright year update.
12601
12602 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12603
12604 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12605 this_pc_in_block, morestack_msym and morestack_name. Check for
12606 "__morestack" minimal symbol there.
12607
12608 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12609
12610 * symfile.c (find_sym_fns): Add call to dont_repeat.
12611
12612 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12613
12614 Copyright year update in most files (performed by copyright.sh).
12615
12616 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12617
12618 * top.c (print_gdb_version): Update copyright year in version output.
12619
12620 For older changes see ChangeLog-2010.
12621 \f
12622 Local Variables:
12623 mode: change-log
12624 left-margin: 8
12625 fill-column: 74
12626 version-control: never
12627 coding: utf-8
12628 End:
This page took 0.31555 seconds and 4 git commands to generate.