* dwarf2read.c (struct dwarf2_cu): Delete members first_fn, last_fn,
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2011-12-27 Doug Evans <dje@google.com>
2
3 * dwarf2read.c (struct dwarf2_cu): Delete members first_fn, last_fn,
4 cached_fn.
5 (struct function_range): Delete.
6 (initialize_cu_func_list, add_to_cu_func_list): Delete. All callers
7 updated.
8 (check_cu_functions): Ditto.
9
10 2011-12-27 Mark Kettenis <kettenis@gnu.org>
11
12 * inf-ptrace.c [PT_IO && PIOD_READ_AUXV]
13 (inf_ptrace_xfer_partial): Implement TARGET_OBJECT_AUXV.
14 (inf_ptrace_auxv_parse): New function.
15 (inf_ptrace_target): Initialize to_auxv_parse field.
16
17 2011-12-27 Joel Brobecker <brobecker@adacore.com>
18
19 * ada-lang.c (should_use_wild_match): New function.
20 (ada_lookup_simple_minsym): Use should_use_wild_match.
21 Minor simplification. Add comment.
22 (ada_lookup_symbol_list): Use should_use_wild_match.
23 Minor simplification.
24
25 2011-12-27 Joel Brobecker <brobecker@adacore.com>
26
27 * py-finishbreakpoint.c (bpfinishpy_init): Replace call to
28 sprintf by call to xsnprintf.
29
30 2011-12-27 Joel Brobecker <brobecker@adacore.com>
31
32 * linespec.c (struct collect_minsyms) [list_mode]: New field.
33 (add_minsym): Ignore data symbols if not in list mode.
34 (search_minsyms_for_name): Set local.list_mode.
35
36 2011-12-27 Joel Brobecker <brobecker@adacore.com>
37
38 * utils.c (gdb_realpath): Add better support for Windows hosts.
39
40 2011-12-23 Kevin Pouget <kevin.pouget@st.com>
41
42 Introduce gdb.FinishBreakpoint in Python.
43 * NEWS: Add entry for FinishBreakpoint.
44 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-finishbreakpoint.o.
45 (SUBDIR_PYTHON_SRCS): Add python/py-finishbreakpoint.c.
46 Add build rule for this file.
47 * infcmd.c (print_return_value): Split to create get_return_value.
48 (get_return_value): New function based on print_return_value. Handle
49 case where stop_registers are not set.
50 * inferior.h (get_return_value): New prototype.
51 * python/py-breakpoint.c (bppy_pending_object): Make non-static.
52 (gdbpy_breakpoint_created): Set is_py_finish_bp is necessary.
53 (struct breakpoint_object): Move to python-internal.h
54 (BPPY_REQUIRE_VALID): Likewise.
55 (BPPY_SET_REQUIRE_VALID): Likewise.
56 (gdbpy_breakpoint_created): Initialize is_finish_bp.
57 (gdbpy_should_stop): Add pre/post hooks before/after calling stop
58 method.
59 * python/python-internal.h (breakpoint_object_type): Add as extern.
60 (bppy_pending_object): Likewise.
61 (typedef struct breakpoint_object) Removed.
62 (struct breakpoint_object): Moved from py-breakpoint.c.
63 Add field is_finish_bp.
64 (BPPY_REQUIRE_VALID): Moved from py-breakpoint.c.
65 (BPPY_SET_REQUIRE_VALID): Likewise.
66 (frame_object_to_frame_info): New prototype.
67 (gdbpy_initialize_finishbreakpoints): New prototype.
68 (bpfinishpy_is_finish_bp): Likewise.
69 (bpfinishpy_pre_stop_hook): Likewise.
70 (bpfinishpy_post_stop_hook): Likewise.
71 * python/py-finishbreakpoint.c: New file.
72 * python/py-frame.c(frame_object_to_frame_info): Make non-static and
73 accept PyObject instead of frame_object.
74 (frapy_is_valid): Don't cast to frame_object.
75 (frapy_name): Likewise.
76 (frapy_type): Likewise.
77 (frapy_unwind_stop_reason): Likewise.
78 (frapy_pc): Likewise.
79 (frapy_block): Likewise.
80 (frapy_function): Likewise.
81 (frapy_older): Likewise.
82 (frapy_newer): Likewise.
83 (frapy_find_sal): Likewise.
84 (frapy_read_var): Likewise.
85 (frapy_select): Likewise.
86 * python/python.c (gdbpy_is_stopped_at_finish_bp): New noop function.
87 (_initialize_python): Add gdbpy_initialize_finishbreakpoints.
88 * python/python.h: Include breakpoint.h
89 (gdbpy_is_stopped_at_finish_bp): New prototype.
90
91 2011-12-22 Tom Tromey <tromey@redhat.com>
92
93 PR python/12533:
94 * value.h (release_value_or_incref): Declare.
95 * value.c (struct value) <released>: New field.
96 (free_all_values, release_value, value_release_to_mark): Update
97 'released'.
98 (release_value_or_incref): New function.
99 * python/py-value.c (valpy_new): Use release_value_or_incref.
100 (value_to_value_object): Likewise.
101 * varobj.c (install_new_value): Move value_incref earlier.
102
103 2011-12-22 Tom Tromey <tromey@redhat.com>
104
105 * value.c (struct value) <modifiable, lazy, optimized_out,
106 initialized, stack>: Now bitfields. Move to top.
107 <reference_count>: Move earlier.
108
109 2011-12-21 Tom Tromey <tromey@redhat.com>
110
111 * minsyms.h: Rearrange. Document header and all functions.
112 * minsyms.c: Move some comments to minsyms.h.
113
114 2011-12-21 Tom Tromey <tromey@redhat.com>
115
116 * symtab.h: Include minsyms.h.
117 (prim_record_minimal_symbol, prim_record_minimal_symbol_full)
118 (prim_record_minimal_symbol_and_info, msymbol_hash_iw)
119 (msymbol_hash, SYMBOL_HASH_NEXT, msymbol_objfile)
120 (lookup_minimal_symbol, lookup_minimal_symbol_text)
121 (lookup_minimal_symbol_solib_trampoline)
122 (lookup_minimal_symbol_by_pc_name, lookup_minimal_symbol_by_pc)
123 (iterate_over_minimal_symbols, lookup_minimal_symbol_and_objfile)
124 (lookup_minimal_symbol_by_pc_section)
125 (lookup_solib_trampoline_symbol_by_pc)
126 (init_minimal_symbol_collection)
127 (make_cleanup_discard_minimal_symbols, install_minimal_symbols)
128 (msymbols_sort): Move to minsyms.h.
129 * objfiles.c (terminate_minimal_symbol_table): Move to minsyms.c.
130 * minsyms.c (terminate_minimal_symbol_table): Move from
131 objfiles.c.
132 * minsyms.h: New file.
133
134 2011-12-21 Tom Tromey <tromey@redhat.com>
135
136 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): Use
137 ALL_OBJFILE_MSYMBOLS.
138 (hppa_hpux_find_dummy_bpaddr): Likewise.
139 * jit.c (jit_object_close_impl): Use
140 terminate_minimal_symbol_table.
141
142 2011-12-21 Tom Tromey <tromey@redhat.com>
143
144 * elfread.c (elf_symtab_read): Put the filename in the filename
145 bcache.
146
147 2011-12-21 Tom Tromey <tromey@redhat.com>
148
149 * symtab.h (struct minimal_symbol) <filename>: Now const.
150
151 2011-12-21 Ulrich Weigand <ulrich.weigand@linaro.org>
152
153 PR tdep/12797
154 * arm-tdep.c (arm_return_value): Handle complex types.
155
156 2011-12-21 Andreas Schwab <schwab@linux-m68k.org>
157
158 * ppc-linux-nat.c (create_watchpoint_request): Only use ranged
159 watchpoints when supported.
160
161 2011-12-21 Jan Kratochvil <jan.kratochvil@redhat.com>
162
163 * symfile.c (objfilep): New typedef and new DEF_VEC_P.
164 (reread_symbols): Remove variable reread_one, new variables
165 new_objfiles, all_cleanups and ix. Use new_objfiles instead of
166 reread_one. Push changed objfiles to new_objfiles, call
167 observer_notify_new_objfile for them later.
168
169 2011-12-21 Joel Brobecker <brobecker@adacore.com>
170
171 * psymtab.c (expand_symtabs_matching_via_partial): Match
172 the partial symbols using their SYMBOL_SEARCH_NAME.
173 * symfile.h (struct quick_symbol_functions): Udate the
174 documentation of expand_symtabs_matching.
175 * dwarf2read.c (write_psymbols): Use SYMBOL_SEARCH_NAME instead
176 of SYMBOL_NATURAL_NAME in index entry.
177
178 2011-12-21 Joel Brobecker <brobecker@adacore.com>
179
180 * linespec.c (locate_first_half): Add handling of Ada operators
181 when the current language is Ada.
182
183 2011-12-21 Joel Brobecker <brobecker@adacore.com>
184
185 * objfiles.c (insert_section_p): Do not detect overlay sections
186 if overlay debugging is off.
187
188 2011-12-21 Joel Brobecker <brobecker@adacore.com>
189
190 * ada-lang.c (is_name_suffix): Add handling of "TKB" suffixes.
191 Update function documentation.
192 * dictionary.c (dict_hash): Ignore "TKB" suffixes in hash
193 computation.
194
195 2011-12-20 Pedro Alves <alves.ped@gmail.com>
196 Jan Kratochvil <jan.kratochvil@redhat.com>
197
198 * linux-nat.c (add_lwp): Don't call linux_nat_new_thread on the
199 first LWP.
200 * amd64-linux-nat.c (update_debug_registers_callback): Instantiate
201 `lwp->arch_private' if NULL.
202 (amd64_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
203 is NULL.
204 * i386-linux-nat.c (update_debug_registers_callback): Instantiate
205 `lwp->arch_private' if NULL.
206 (i386_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
207 is NULL.
208
209 2011-12-19 Doug Evans <dje@google.com>
210
211 * python/py-auto-load.c (info_auto_load_scripts): Pass address of
212 scripts vector to collect_matching_scripts.
213 (collect_matching_scripts): Update.
214
215 2011-12-19 Jan Kratochvil <jan.kratochvil@redhat.com>
216
217 * symfile.c (reread_symbols): Move free_objfile_separate_debug,
218 preserve_values, sym_finish and clear_objfile_data calls before BFD
219 close. Move free_objfile_separate_debug as the very first call. New
220 comment on the ordering.
221
222 2011-12-19 Ulrich Weigand <uweigand@de.ibm.com>
223
224 * s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
225 in return PSWA.
226
227 2011-12-19 Tom Tromey <tromey@redhat.com>
228
229 * symtab.h (add_minsym_to_hash_table): Don't declare.
230 * minsyms.c (add_minsym_to_hash_table): Now static.
231
232 2011-12-19 Joel Brobecker <brobecker@adacore.com>
233
234 * elfread.c (elf_symtab_read): Ignore undefined symbols with
235 nonzero addresses if they do not correspond to a .plt section
236 when one is available in the objfile.
237
238 2011-12-17 Andreas Schwab <schwab@linux-m68k.org>
239
240 * cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
241 obstack_empty_p.
242
243 2011-12-17 Mark Kettenis <kettenis@gnu.org>
244
245 * amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
246 regset_from_core_section.
247 (amd64obsd_core_init_abi): New function that sets
248 regset_from_core_section.
249 (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
250 traditional core dumps.
251
252 2011-12-17 Mark Kettenis <kettenis@gnu.org>
253
254 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
255 trampoline to be introduced in OpenBSD 5.0.
256
257 2011-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
258
259 Fix build regression from the PR threads/10729 fix.
260 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP,
261 not LP->PTID.
262
263 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
264
265 * mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
266 `optarg' to `oind' and `oarg', respectively(-Wshadow).
267 (mi_cmd_data_read_memory): Ditto.
268 (mi_cmd_data_read_memory_bytes): Ditto.
269 (mi_cmd_data_write_memory): Ditto.
270
271 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
272
273 * mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
274 `oind' and `oarg', respectively(-Wshadow).
275 (mi_valid_noargs): Ditto.
276
277 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
278
279 * mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
280 `oind' and `oarg', respectively(-Wshadow).
281
282 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
283
284 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
285 `optarg' to `oind' and `oarg', respectively(-Wshadow).
286 (mi_cmd_target_file_put): Ditto.
287 (mi_cmd_target_file_delete): Ditto.
288
289 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
290
291 * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
292 `optarg' to `oind' and `oarg', respectively(-Wshadow).
293 (mi_cmd_env_dir): Ditto.
294
295 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
296
297 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
298 `optarg' to `oind' and `oarg', respectively(-Wshadow).
299
300 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
301
302 * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
303 `optparg' to `oind' and `oarg', respectively(-Wshadow).
304 (mi_cmd_break_watch): Ditto.
305
306 2011-12-16 Tom Tromey <tromey@redhat.com>
307
308 * linespec.c (collect_symbols): Call maybe_add_address after
309 calling symbol_to_sal.
310 (minsym_found): Call maybe_add_address here.
311 (search_minsyms_for_name): Don't call maybe_add_address.
312
313 2011-12-16 Tom Tromey <tromey@redhat.com>
314
315 * linespec.c (struct collect_info) <objfile>: Remove field.
316 (decode_objc): Update.
317 (find_method): Update.
318 (decode_variable): Update.
319 (struct minsym_and_objfile): New.
320 (struct collect_minsyms): New.
321 (classify_mtype): New function.
322 (compare_msyms): Likewise.
323 (add_minsym): Likewise.
324 (check_minsym): Remove.
325 (search_minsyms_for_name): Sort minsyms and apply only those with
326 top priority.
327
328 2011-12-16 Tom Tromey <tromey@redhat.com>
329
330 * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
331
332 2011-12-16 Pedro Alves <pedro@codesourcery.com>
333
334 * inf-loop.c: Include top.h.
335 (inferior_event_handler): Call check_frame_language.
336 * top.c (check_frame_language_change): New, factored out from ...
337 (execute_command): ... this. Use check_frame_language_change.
338 * top.h (check_frame_language_change): Declare.
339
340 2011-12-16 asmwarrior <asmwarrior@gmail.com> (obvious fix)
341
342 * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
343 prototypes.
344
345 2011-12-16 Doug Evans <dje@google.com>
346
347 * NEWS: Add entry for stdio gdbserver.
348
349 2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
350
351 * python/python.c: Define python_excp_enums.
352 (eval_python_from_control_command): Do not call gdbpy_print_stack.
353 (python_command): Ditto.
354 (gdbpy_print_stack): Rewrite to use new enum constants.
355 (maint_set_python): Remove function.
356 (maint_show_python): Ditto.
357 (_initialize_python): Do not add "maint" commands. Add "set/show
358 python print-stack commands".
359 * NEWS: Update to reflect removal for "maint set/show
360 print-stack"
361
362 2011-12-15 Doug Evans <dje@google.com>
363
364 * exceptions.c (catcher_list_size): New function.
365 (last_message): Delete.
366 (exception_messages, exception_messages_size): New static globals.
367 (throw_it): Use exception_messages array to handle nested calls.
368
369 2011-12-15 Tom Tromey <tromey@redhat.com>
370
371 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
372 do_cleanups call.
373
374 2011-12-14 Doug Evans <dje@google.com>
375
376 * defs.h (wait_to_die_with_timeout): Declare.
377 * utils.c: #include "gdb_wait.h".
378 (sigalrm_handler, wait_to_die_with_timeout): New functions.
379 * ser-pipe.c: Don't #include "gdb_wait.h".
380 (pipe_close): Give child a chance to die on its own after closing
381 its stdin before SIGTERM'ing it.
382
383 2011-12-14 Joel Brobecker <brobecker@adacore.com>
384 Tom Tromey <tromey@redhat.com>
385
386 * ada-lang.c (add_nonlocal_symbols): Initialize data to
387 all zeros. Remove setting of data.arg_sym to NULL.
388
389 2011-12-14 Pedro Alves <pedro@codesourcery.com>
390
391 PR threads/10729
392
393 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
394 pointer.
395 (linux_nat_prepare_to_resume): New global.
396 (lwp_free): New.
397 (purge_lwp_list): Use it.
398 (add_lwp): Call linux_nat_new_thread even on the first LWP.
399 Adjust to interface change.
400 (delete_lwp): Call lwp_free instead of xfree.
401 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
402 (linux_handle_syscall_trap, linux_handle_extended_wait)
403 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
404 linux_nat_prepare_to_resume before resuming.
405 (linux_stop_lwp): New.
406 (linux_nat_set_new_thread): Adjust.
407 (linux_nat_set_prepare_to_resume): New.
408 * linux-nat.h (struct arch_lwp_info): Forward declare.
409 (struct lwp_info) <arch_private>: New field.
410 (linux_stop_lwp): Declare.
411 (linux_nat_set_new_thread): Adjust.
412 (linux_nat_set_prepare_to_resume): New.
413
414 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
415 (struct i386_debug_reg_state): Move to i386-nat.h.
416 (dr_mirror): Comment.
417 (i386_debug_reg_state): New.
418 (i386_update_inferior_debug_regs): Simplify.
419 (i386_stopped_data_address): Use the debug register state from the
420 inferior, not from the local cache.
421 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
422 unset_status fields. New get_addr and get_control fields.
423 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
424 (DR_NADDR, DR_STATUS): New.
425 (struct i386_debug_reg_state): Moved from i386-nat.c.
426
427 * amd64-linux-nat.c (struct arch_lwp_info): New.
428 (amd64_linux_dr): Delete global.
429 (amd64_linux_dr_get_addr): New.
430 (amd64_linux_dr_get_control): New.
431 (amd64_linux_dr_unset_status): Delete.
432 (amd64_linux_dr_set_addr): Reimplement.
433 (amd64_linux_dr_reset_addr): Delete.
434 (update_debug_registers_callback): New.
435 (amd64_linux_dr_set_control): Reimplement.
436 (amd64_linux_dr_set_addr): Reimplement.
437 (amd64_linux_prepare_to_resume): New.
438 (amd64_linux_new_thread): Change parameter to an lwp pointer.
439 Reimplement.
440 (_initialize_amd64_linux_nat): No longer install
441 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
442 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
443 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
444 amd64_linux_prepare_to_resume.
445 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
446 (DR_CONTROL): Delete.
447 (struct arch_lwp_info): New.
448 (i386_linux_dr): Delete global.
449 (i386_linux_dr_set_control): Reimplement.
450 (i386_linux_dr_get_addr): New.
451 (i386_linux_dr_set_addr): Reimplement.
452 (i386_linux_dr_get_control): New.
453 (update_debug_registers_callback): New.
454 (i386_linux_dr_unset_status): Delete.
455 (i386_linux_dr_set_addr): Reimplement.
456 (i386_linux_prepare_to_resume): New.
457 (i386_linux_new_thread): Change parameter to an lwp pointer.
458 Reimplement.
459 (_initialize_i386_linux_nat): No longer install
460 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
461 i386_linux_dr_get_control as i386_dr_low.get_control. Install
462 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
463 i386_linux_prepare_to_resume.
464
465 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
466 lwp pointer. Adjust.
467 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
468 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
469 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
470 * s390-nat.c (s390_fix_watch_points): Likewise.
471
472 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
473 (DR_CONTROL): Delete.
474 (i386_darwin_dr_reset_addr): Delete.
475 (i386_darwin_dr_get_addr): New.
476 (i386_darwin_dr_get_control): New.
477 * go32-nat.c
478 (go32_get_dr7, go32_get_dr): New.
479 (init_go32_ops): No longer install i386_dr_low.reset_addr.
480 Install go32_get_dr7 as i386_dr_low.get_control. Install
481 go32_get_dr as i386_dr_low.get_addr.
482 * i386bsd-nat.c (i386bsd_dr_get): New.
483 (i386bsd_dr_reset_addr): Delete.
484 (i386bsd_dr_get_addr): New.
485 (i386bsd_dr_get_status): Use i386bsd_dr_get.
486 (i386bsd_dr_get_control): New.
487 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
488 (i386bsd_dr_get_addr): New.
489 (i386bsd_dr_get_control): New.
490 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
491 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
492 i386bsd_dr_get_control as i386_dr_low.get_control. Install
493 i386bsd_dr_get_addr as i386_dr_low.get_addr.
494 * windows-nat.c (init_windows_ops): No longer install
495 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
496 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
497 as i386_dr_low.get_addr.
498 (cygwin_get_dr): New.
499 (cygwin_get_dr7): New.
500
501 2011-12-14 Pedro Alves <pedro@codesourcery.com>
502
503 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
504 target_write_raw_memory.
505 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
506 target_write_raw_memory.
507 * microblaze-linux-tdep.c
508 (microblaze_linux_memory_remove_breakpoint): Use
509 target_write_raw_memory.
510 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
511 target_write_raw_memory.
512
513 2011-12-14 Joel Brobecker <brobecker@adacore.com>
514
515 * linespec.c (decode_line_internal): Make static.
516
517 2011-12-14 Yao Qi <yao@codesourcery.com>
518
519 * breakpoint.c (create_breakpoint): Set canonical.addr_string
520 for static tracepoint.
521
522 2011-12-13 Joel Brobecker <brobecker@adacore.com>
523
524 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
525 * version.in: Bump version to 7.4.50.20111213-cvs.
526
527 2011-12-13 Joel Brobecker <brobecker@adacore.com>
528
529 * NEWS: Create a new section for the next release branch.
530 Rename the section of the current branch, now that it has
531 been cut.
532
533 2011-12-11 Joel Brobecker <brobecker@adacore.com>
534
535 * ada-lang.c (ada_exception_support_info_sniffer): Improve
536 error message.
537
538 2011-12-11 Joel Brobecker <brobecker@adacore.com>
539
540 * ada-lang.c (struct ada_inferior_data) [exception_info]:
541 New field.
542 (exception_info): Delete.
543 (ada_exception_support_info_sniffer): Get exception_support_info
544 data from our per-inferior data. Adjust code accordingly.
545 (ada_unhandled_exception_name_addr_from_raise): Likewise.
546 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
547 (ada_executable_changed_observer): Delete.
548 (_initialize_ada_language): Remove call to
549 observer_attach_executable_changed.
550
551 2011-12-11 Joel Brobecker <brobecker@adacore.com>
552
553 * ada-lang.c (ada_has_this_exception_support): Raise an error
554 if we could find the Ada exception hook in the Ada runtime,
555 but no debugging info for that hook.
556
557 2011-12-11 Joel Brobecker <brobecker@adacore.com>
558
559 * ada-lang.c (ada_has_this_exception_support): New function,
560 extracted out of ada_exception_sal and ada_exception_sal.
561 (ada_exception_support_info_sniffer): Simplify by using
562 ada_has_this_exception_support.
563 (ada_exception_sal): Replace unnecessary checks by assertions.
564 Minor simplifications.
565
566 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
567
568 * breakpoint.c (update_global_location_list): Remove nested
569 definition of `b'(-Wshadow).
570
571 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
572
573 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
574 `error_flag'(-Wshadow).
575
576 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
577
578 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
579 `abfd'(-Wshadow).
580
581 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
582
583 * annotate.c (annotate_array_section_begin): Rename `index' to
584 `idx'(-Wshadow).
585
586 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
587
588 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
589 `idx'(-Wshadow).
590
591 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
592
593 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
594 `syscall' to `syscall_number'(-Wshadow).
595
596 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
597
598 * ada-lang.c (remove_extra_symbols): Rename `remove' to
599 `remove_p'(-Wshadow).
600
601 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
602
603 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
604 `ren_sym'(-Wshadow).
605
606 2011-12-10 Doug Evans <dje@google.com>
607
608 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
609 debug_types_section. All uses updated.
610 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
611 to is_debug_types_section.
612
613 * python/py-auto-load.c (source_section_scripts): Call xfree
614 instead of free.
615
616 2011-12-10 Hui Zhu <teawater@gmail.com>
617 Yao Qi <yao@codesourcery.com>
618
619 * tracepoint.c (start_tracing): Clear `inserted' flag.
620
621 2011-12-10 Hui Zhu <teawater@gmail.com>
622
623 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
624
625 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
626
627 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
628 `bpoint'(-Wshadow).
629
630 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
631
632 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
633 `marker' variables to `sal2' and `tpmarker' respectively
634 (-Wshadow).
635
636 2011-12-09 Andrew Pinski <apinski@cavium.com>
637
638 * linespec.c (hash_address_entry): Use iterative_hash_object on each
639 field rather than the struct itself.
640
641 2011-12-09 Tom Tromey <tromey@redhat.com>
642
643 * breakpoint.c (compare_breakpoints): New function.
644 (clear_command): Remove duplicate breakpoints. Properly clean
645 up.
646
647 2011-12-08 Maciej W. Rozycki <macro@mips.com>
648 Maciej W. Rozycki <macro@codesourcery.com>
649
650 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
651 address chunks retrieved from decoded lui/addiu pairs.
652
653 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
654
655 * mips-tdep.c (extended_offset): Correct calculation.
656 (unpack_mips16): Correct bitfield positions used for extraction
657 of the immediate argument; fix sign-extension of same.
658 (extended_mips16_next_pc): Correct B instruction's offset
659 calculation. Correct register decoding of the BEQZ and BNEZ
660 as well as jump-register instructions. Handle compact jumps.
661
662 2011-12-08 Tom Tromey <tromey@redhat.com>
663
664 * objfiles.h (struct objfile): Remove obsolete comment.
665 * objfiles.c (build_objfile_section_table): Remove obsolete
666 comment.
667
668 2011-12-07 Stan Shebs <stan@codesourcery.com>
669
670 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
671 maintainer of the tic6x target.
672
673 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
674
675 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
676 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
677 (arm_deal_with_atomic_sequence_raw): Likewise.
678 (arm_deal_with_atomic_sequence): Likewise.
679 (arm_software_single_step): Call it.
680 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
681
682 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
683
684 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
685 where appropriate.
686 * s390-tdep.h: Likewise.
687
688 2011-12-07 Tristan Gingold <gingold@adacore.com>
689
690 * machoread.c (macho_symtab_read): Do not consider N_OPT as
691 a debugging stab. Improve complaint message.
692
693 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
694
695 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
696 load adjustment if still within the prologue.
697
698 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
699
700 * mips-tdep.c (mips32_next_pc): Fix floating point condition
701 code mask.
702
703 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
704
705 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
706 of BLTZ* and BGEZ* instructions.
707
708 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
709
710 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
711 performed to determine whether an address refers to standard
712 MIPS or MIPS16 code.
713 (mips16_next_pc): Use mips_pc_is_mips16 instead of
714 is_mips16_addr.
715
716 2011-12-06 Pedro Alves <pedro@codesourcery.com>
717
718 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
719 (breakpoint_xfer_memory): ... this. Change prototype. Handle
720 memory writes too.
721 * breakpoint.h (breakpoint_restore_shadows): Delete.
722 (breakpoint_xfer_memory): Declare.
723 * mem-break.c (default_memory_insert_breakpoint)
724 (default_memory_remove_breakpoint): Use target_write_raw_memory.
725 (memory_xfer_partial): Rename to ...
726 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
727 here.
728 (memory_xfer_partial): New.
729 (target_write_raw_memory): New.
730 * target.h (target_write_raw_memory): New.
731
732 2011-12-06 Doug Evans <dje@google.com>
733
734 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
735
736 2011-12-06 Joel Brobecker <brobecker@acacore.com>
737
738 * language.h (struct language_defn): Add new component
739 la_symbol_name_compare.
740 * symfile.h (struct quick_symbol_functions): Update the profile
741 of parameter "name_matcher" for the expand_symtabs_matching
742 method. Update the documentation accordingly.
743 * ada-lang.h (ada_name_for_lookup): Add declaration.
744 * ada-lang.c (ada_name_for_lookup): New function, extracted out
745 from ada_iterate_over_symbols.
746 (ada_iterate_over_symbols): Do not encode symbol name anymore.
747 (ada_expand_partial_symbol_name): Adjust profile.
748 (ada_language_defn): Add value for la_symbol_name_compare field.
749 * linespec.c: #include "ada-lang.h".
750 (iterate_name_matcher): Add language parameter. Replace call
751 to strcmp_iw by call to language->la_symbol_name_compare.
752 (decode_variable): Encode COPY if current language is Ada.
753 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
754 of name_matcher parameter. Adjust call to name_matcher.
755 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
756 (expand_partial_symbol_names): Update profile of parameter "fun".
757 * psymtab.h (expand_partial_symbol_names): Update profile of
758 parameter "fun".
759 * symtab.c (demangle_for_lookup): Update function documentation.
760 (search_symbols_name_matches): Add language parameter.
761 (expand_partial_symbol_name): Likewise.
762 * c-lang.c (c_language_defn, cplus_language_defn)
763 (asm_language_defn, minimal_language_defn): Add value for
764 la_symbol_name_compare field.
765 * d-lang.c (d_language_defn): Likewise.
766 * f-lang.c (f_language_defn): Ditto.
767 * jv-lang.c (java_language_defn): Ditto.
768 * m2-lang.c (m2_language_defn): Ditto.
769 * objc-lang.c (objc_language_defn): Ditto.
770 * opencl-lang.c (opencl_language_defn): Ditto.
771 * p-lang.c (pascal_language_defn): Ditto.
772 * language.c (unknown_language_defn, auto_language_defn)
773 (local_language_defn): Ditto.
774
775 2011-12-06 Tom Tromey <tromey@redhat.com>
776
777 * linespec.c (iterate_over_all_matching_symtabs): Use
778 LA_ITERATE_OVER_SYMBOLS.
779 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
780 (find_function_symbols, decode_variable): Remove Ada special
781 case.
782 * language.h (struct language_defn) <la_iterate_over_symbols>: New
783 field.
784 (LA_ITERATE_OVER_SYMBOLS): New macro.
785 * language.c (unknown_language_defn, auto_language_defn)
786 (local_language_defn): Update.
787 * c-lang.c (c_language_defn, cplus_language_defn)
788 (asm_language_defn, minimal_language_defn): Update.
789 * d-lang.c (d_language_defn): Update.
790 * f-lang.c (f_language_defn): Update.
791 * jv-lang.c (java_language_defn): Update.
792 * m2-lang.c (m2_language_defn): Update.
793 * objc-lang.c (objc_language_defn): Update.
794 * opencl-lang.c (opencl_language_defn): Update.
795 * p-lang.c (pascal_language_defn): Update.
796 * ada-lang.c (ada_iterate_over_symbols): New function.
797 (ada_language_defn): Update.
798
799 2011-12-06 Tom Tromey <tromey@redhat.com>
800 Joel Brobecker <brobecker@acacore.com>
801
802 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
803 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
804 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
805 PR shlibs/8929, PR shlibs/7393:
806 * python/py-type.c (compare_maybe_null_strings): Rename from
807 compare_strings.
808 (check_types_equal): Update.
809 * utils.c (compare_strings): New function.
810 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
811 location changes.
812 * tracepoint.c (scope_info): Update.
813 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
814 * symtab.h (iterate_over_minimal_symbols)
815 (iterate_over_some_symtabs, iterate_over_symtabs)
816 (find_pcs_for_symtab_line, iterate_over_symbols)
817 (demangle_for_lookup): Declare.
818 (expand_line_sal): Remove.
819 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
820 (lookup_symtab_callback): New functions.
821 (lookup_symtab): Rewrite.
822 (demangle_for_lookup): New function, extract from
823 lookup_symbol_in_language.
824 (lookup_symbol_in_language): Use it.
825 (iterate_over_symbols): New function.
826 (find_line_symtab): Update.
827 (find_pcs_for_symtab_line): New functions.
828 (find_line_common): Add 'start' argument.
829 (decode_line_spec): Update. Change argument to 'flags', change
830 interpretation.
831 (append_expanded_sal): Remove.
832 (append_exact_match_to_sals): Remove.
833 (expand_line_sal): Remove.
834 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
835 Remove.
836 <map_symtabs_matching_filename>: New field.
837 * stack.c (func_command): Only look in the current program space.
838 Use DECODE_LINE_FUNFIRSTLINE.
839 * source.c (line_info): Set pspace on sal. Check program space in
840 the loop. Use DECODE_LINE_LIST_MODE.
841 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
842 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
843 * python/python.c (gdbpy_decode_line): Update.
844 * psymtab.c (partial_map_expand_apply): New function.
845 (partial_map_symtabs_matching_filename): Rename from
846 lookup_partial_symbol. Update arguments.
847 (lookup_symtab_via_partial_symtab): Remove.
848 (psym_functions): Update.
849 * objc-lang.h (parse_selector, parse_method): Don't declare.
850 (find_imps): Update.
851 * objc-lang.c (parse_selector, parse_method): Now static.
852 (find_methods): Change arguments. Fill in a vector of symbol
853 names.
854 (uniquify_strings): New function.
855 (find_imps): Change arguments.
856 * minsyms.c (iterate_over_minimal_symbols): New function.
857 * linespec.h (enum decode_line_flags): New.
858 (struct linespec_sals): New.
859 (struct linespec_result) <canonical>: Remove.
860 <pre_expanded, addr_string, sals>: New fields.
861 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
862 (decode_line_full): Declare.
863 (decode_line_1): Update.
864 * linespec.c (struct address_entry, struct linespec_state, struct
865 collect_info): New types.
866 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
867 (eq_address_entry, maybe_add_address): New functions.
868 (total_number_of_methods): Remove.
869 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
870 functions.
871 (find_methods): Change arguments. Don't canonicalize input.
872 Simplify logic.
873 (add_matching_methods, add_constructors)
874 (build_canonical_line_spec): Remove.
875 (filter_results, convert_results_to_lsals): New functions.
876 (decode_line_2): Change arguments. Rewrite for new data
877 structures.
878 (decode_line_internal): Rename from decode_line_1. Change
879 arguments. Add cleanups. Update for new data structures.
880 (linespec_state_constructor, linespec_state_destructor)
881 (decode_line_full, decode_line_1): New functions.
882 (decode_indirect): Change arguments. Update.
883 (locate_first_half): Use skip_spaces.
884 (decode_objc): Change arguments. Update for new data structures.
885 Simplify logic.
886 (decode_compound): Change arguments. Add cleanups. Remove
887 fallback code, replace with error.
888 (struct decode_compound_collector): New type.
889 (collect_one_symbol): New function.
890 (lookup_prefix_sym): Change arguments. Update.
891 (compare_symbol_name, add_all_symbol_names_from_pspace)
892 (find_superclass_methods ): New functions.
893 (find_method): Rewrite.
894 (struct symtab_collector): New type.
895 (add_symtabs_to_list, collect_symtabs_from_filename): New
896 functions.
897 (symtabs_from_filename): Change API. Rename from
898 symtab_from_filename.
899 (collect_function_symbols): New function.
900 (find_function_symbols): Change API. Rename from
901 find_function_symbol. Rewrite.
902 (decode_all_digits): Change arguments. Rewrite.
903 (decode_dollar): Change arguments. Use decode_variable.
904 (decode_label): Change arguments. Rewrite.
905 (collect_symbols): New function.
906 (minsym_found): Change arguments. Rewrite.
907 (check_minsym, search_minsyms_for_name)
908 (add_matching_symbols_to_info): New function.
909 (decode_variable): Change arguments. Iterate over all symbols.
910 (symbol_found): Remove.
911 (symbol_to_sal): New function.
912 (init_linespec_result, destroy_linespec_result)
913 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
914 New functions.
915 (decode_digits_list_mode, decode_digits_ordinary): New functions.
916 * dwarf2read.c (dw2_map_expand_apply): New function.
917 (dw2_map_symtabs_matching_filename): Rename from
918 dw2_lookup_symtab. Change arguments.
919 (dwarf2_gdb_index_functions): Update.
920 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
921 * defs.h (compare_strings): Declare.
922 * cli/cli-cmds.c (compare_strings): Move to utils.c.
923 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
924 filter_sals.
925 (compare_symtabs, filter_sals): New functions.
926 * breakpoint.h (struct bp_location) <line_number, source_file>:
927 New fields.
928 (struct breakpoint) <line_number, source_file>: Remove.
929 <filter>: New field.
930 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
931 (momentary_breakpoint_from_master, add_location_to_breakpoint):
932 Update for changes to locations.
933 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
934 breakpoint.
935 (create_breakpoint_sal): Add 'filter' argument.
936 (remove_sal, expand_line_sal_maybe): Remove.
937 (create_breakpoints_sal): Remove 'sals' argument. Handle
938 pre-expanded sals and the filter.
939 (parse_breakpoint_sals): Use decode_line_full.
940 (check_fast_tracepoint_sals): Use get_sal_arch.
941 (create_breakpoint): Create a linespec_sals. Update.
942 (break_range_command): Use decode_line_full. Update.
943 (until_break_command): Update.
944 (clear_command): Update match conditions for linespec.c changes.
945 Use DECODE_LINE_LIST_MODE.
946 (say_where): Update for changes to locations.
947 (bp_location_dtor): Free 'source_file'.
948 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
949 (update_static_tracepoint): Update for changes to locations.
950 (update_breakpoint_locations): Disable ranged breakpoint if too
951 many locations match. Update.
952 (addr_string_to_sals): Use decode_line_full. Resolve all sal
953 PCs.
954 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
955 (decode_line_spec_1): Update. Change argument name to 'flags',
956 change interpretation.
957 * block.h (block_containing_function): Declare.
958 * block.c (block_containing_function): New function.
959 * skip.c (skip_function_command): Update.
960 (skip_re_set): Update.
961 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
962 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
963 * NEWS: Add entry.
964
965 2011-12-06 Tom Tromey <tromey@redhat.com>
966
967 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
968 breakpoint's pspace to be NULL.
969 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
970 * breakpoint.c (init_raw_breakpoint): Conditionally set
971 breakpoint's pspace.
972 (init_breakpoint_sal): Don't set breakpoint's pspace.
973 (prepare_re_set_context): Conditionally switch program space.
974 (addr_string_to_sals): Check executing_startup on location's
975 program space.
976
977 2011-12-06 Tom Tromey <tromey@redhat.com>
978
979 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
980 * breakpoint.c (should_be_inserted): Explicitly check if program
981 space is executing startup.
982 (describe_other_breakpoints): Update.
983 (disable_breakpoints_before_startup): Change executing_startup
984 earlier. Remove loop.
985 (enable_breakpoints_after_startup): Likewise.
986 (init_breakpoint_sal): Don't use bp_startup_disabled.
987 (create_breakpoint): Don't use bp_startup_disabled.
988 (update_global_location_list): Use should_be_inserted.
989 (bkpt_re_set): Update.
990
991 2011-12-06 Tom Tromey <tromey@redhat.com>
992
993 * python/lib/gdb/command/pretty_printers.py
994 (InfoPrettyPrinter.invoke1): Remove extra double quote.
995
996 2011-12-06 Tom Tromey <tromey@redhat.com>
997
998 * NEWS: Add MI news.
999
1000 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
1001
1002 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
1003 (S390_LAST_BREAK_REGNUM): Likewise.
1004 (S390_SYSTEM_CALL_REGNUM): Likewise.
1005 (S390_NUM_REGS): Update.
1006
1007 (s390_regmap_last_break): Add declaration.
1008 (s390x_regmap_last_break): Likewise.
1009 (s390_regmap_system_call): Likewise.
1010
1011 (tdesc_s390_linux32v1): Add declaration.
1012 (tdesc_s390_linux32v2): Likewise.
1013 (tdesc_s390_linux64v1): Likewise.
1014 (tdesc_s390_linux64v2): Likewise.
1015 (tdesc_s390x_linux64v1): Likewise.
1016 (tdesc_s390x_linux64v2): Likewise.
1017
1018 * s390-tdep.c: Include new target description files
1019 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
1020 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
1021 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
1022 (s390_cannot_store_register): New function.
1023 (s390_write_pc): Likewise.
1024 (s390_dwarf_regmap): Add fields for new registers.
1025 (s390_regmap_gregset): Likewise.
1026 (s390x_regmap_gregset): Likewise.
1027 (s390_regmap_fpregset): Likewise.
1028 (s390_regmap_upper): Likewise.
1029 (s390_regmap_last_break): New variable.
1030 (s390x_regmap_last_break): Likewise.
1031 (s390_regmap_system_call): Likewise.
1032 (s390_last_break_regset): Likewise.
1033 (s390x_last_break_regset): Likewise.
1034 (s390_system_call_regset): Likewise.
1035 (s390_upper_regset_sections): Rename to ...
1036 (s390_linux64_regset_sections): ... this.
1037 (s390_linux32_regset_sections): New variable.
1038 (s390x_linux64_regset_sections): Likewise.
1039 (s390_linux32v1_regset_sections): Likewise.
1040 (s390_linux32v2_regset_sections): Likewise.
1041 (s390_linux64v1_regset_sections): Likewise.
1042 (s390_linux64v2_regset_sections): Likewise.
1043 (s390x_linux64v1_regset_sections): Likewise.
1044 (s390x_linux64v2_regset_sections): Likewise.
1045 (s390_regset_from_core_section): Handle .reg-s390-last-break and
1046 .reg-s390-system-call core file sections.
1047 (s390_core_read_description): Check for presence of
1048 .reg-s390-last-break and .reg-s390-system-call core file
1049 sections and return appropriate target description.
1050 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
1051 "last_break" and "system_call" in target description. Install
1052 appropriate gdbarch_core_regset_sections array.
1053 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
1054 (_initialize_s390_tdep): Initialize additional target descriptions.
1055
1056 * s390-nat.c: Include "elf/common.h".
1057 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
1058 (have_regset_last_break): New static variable.
1059 (have_regset_system_call): Likewise.
1060 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
1061 (s390_native_collect): Likewise.
1062 (fetch_regset, store_regset, check_regset): New functions.
1063 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
1064 and S390_SYSTEM_CALL_REGNUM.
1065 (s390_linux_store_inferior_registers): Likewise.
1066 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
1067 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
1068
1069 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
1070 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
1071 (s390-linux32v1-expedite): Define.
1072 (s390-linux32v2-expedite): Likewise.
1073 (s390-linux64v1-expedite): Likewise.
1074 (s390-linux64v2-expedite): Likewise.
1075 (s390x-linux64v1-expedite): Likewise.
1076 (s390x-linux64v2-expedite): Likewise.
1077
1078 * features/s390-linux32.xml: Add orig_r2 register.
1079 * features/s390-linux64.xml: Likewise.
1080 * features/s390x-linux64.xml: Likewise.
1081 * features/s390-linux32v1.xml: New file.
1082 * features/s390-linux32v2.xml: Likewise.
1083 * features/s390-linux64v1.xml: Likewise.
1084 * features/s390-linux64v2.xml: Likewise.
1085 * features/s390x-linux64v1.xml: Likewise.
1086 * features/s390x-linux64v2.xml: Likewise.
1087
1088 * features/s390-linux32.c: Regenerate.
1089 * features/s390-linux64.c: Likewise.
1090 * features/s390x-linux64.c: Likewise.
1091 * features/s390-linux32v1.c: New generated file.
1092 * features/s390-linux32v2.c: Likewise.
1093 * features/s390-linux64v1.c: Likewise.
1094 * features/s390-linux64v2.c: Likewise.
1095 * features/s390x-linux64v1.c: Likewise.
1096 * features/s390x-linux64v2.c: Likewise.
1097
1098 * regformats/s390-linux32.dat: Regenerate.
1099 * regformats/s390-linux64.dat: Regenerate.
1100 * regformats/s390x-linux64.dat: Regenerate.
1101 * regformats/s390-linux32v1.dat: New generated file.
1102 * regformats/s390-linux32v2.dat: Likewise.
1103 * regformats/s390-linux64v1.dat: Likewise.
1104 * regformats/s390-linux64v2.dat: Likewise.
1105 * regformats/s390x-linux64v1.dat: Likewise.
1106 * regformats/s390x-linux64v2.dat: Likewise.
1107
1108 2011-12-05 Pedro Alves <pedro@codesourcery.com>
1109
1110 * linux-nat.c (resume_stopped_resumed_lwps): Call
1111 registers_changed.
1112
1113 2011-12-05 Pedro Alves <pedro@codesourcery.com>
1114
1115 * breakpoint.c: Include record.h.
1116 (breakpoints_always_inserted_mode): Return false when the record
1117 target is in use.
1118
1119 2011-12-05 Pedro Alves <pedro@codesourcery.com>
1120
1121 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
1122 Reinstate perror_with_name call on ptrace error. Remove #if 0.
1123 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
1124 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
1125
1126 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
1127
1128 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
1129 `i'(-Wshadow).
1130
1131 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
1132
1133 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
1134
1135 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
1136
1137 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
1138 of `tdep'(-Wshadow).
1139
1140 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1141
1142 Fix compilation --without-expat.
1143 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
1144 from ...
1145 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
1146
1147 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
1148 Jan Kratochvil <jan.kratochvil@redhat.com>
1149
1150 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
1151 * features/library-list-svr4.dtd: New file.
1152 * remote.c (PACKET_qXfer_libraries_svr4): New.
1153 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
1154 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
1155 * solib-svr4.c (struct svr4_library_list): New.
1156 [HAVE_LIBEXPAT]: Include xml-support.h.
1157 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
1158 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
1159 [HAVE_LIBEXPAT] (svr4_library_list_children)
1160 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
1161 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
1162 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
1163 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
1164 (svr4_read_so_list): Extend the corruption message by addresses.
1165 (svr4_current_sos): New variable library_list, call
1166 svr4_current_sos_via_xfer_libraries.
1167 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
1168
1169 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1170
1171 PR threads/13448
1172 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
1173 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
1174
1175 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1176
1177 PR breakpoints/13346
1178 * dwarf2read.c (process_psymtab_comp_unit): Set
1179 PSYMTABS_ADDRMAP_SUPPORTED.
1180 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
1181 validity. New field psymtabs_addrmap_supported.
1182 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
1183 psymtabs_addrmap_supported.
1184 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
1185 !PSYMTABS_ADDRMAP_SUPPORTED.
1186 (dump_psymtab, maintenance_info_psymtabs): Print also
1187 psymtabs_addrmap_supported.
1188
1189 2011-12-01 Doug Evans <dje@google.com>
1190
1191 * python/py-type.c (type_object_methods): Fix "array" doc string.
1192
1193 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
1194
1195 * source.c (print_source_lines_base): Fix missing braces on else
1196 clause leading to additional output.
1197
1198 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1199
1200 * s390-nat.c (SUBOFF): Remove.
1201 (s390_native_supply, s390_native_collect): New functions.
1202 (supply_gregset, supply_fpregset): Use s390_native_supply.
1203 (fill_gregset, fill_fpregset): Use s390_native_collect.
1204
1205 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
1206 (s390_unwind_pseudo_register): New function.
1207 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
1208 registers instead of PC and CC.
1209 (s390_backchain_frame_unwind_cache): Likewise.
1210 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
1211 full GPR pseudos.
1212 (s390_trad_frame_prev_register): New function.
1213 (s390_frame_prev_register): Use it.
1214 (s390_sigtramp_frame_prev_register): Likewise.
1215 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
1216 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
1217 special callback to unwind any pseudo.
1218
1219 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
1220 * features/s390-core64.xml: Likewise.
1221 * features/s390x-core64.xml: Likewise.
1222 * features/s390-linux32.c: Regenerate.
1223 * features/s390-linux64.c: Likewise.
1224 * features/s390x-linux64.c: Likewise.
1225
1226 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1227
1228 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
1229
1230 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1231
1232 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
1233 instruction. Add more diagnostic output.
1234
1235 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
1236
1237 * MAINTAINERS (Write After Approval): Add myself to the list.
1238
1239 2011-11-29 Sanjoy Das <sdas@igalia.com>
1240
1241 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
1242 (jit_bfd_try_read_symtab): Fix comments.
1243
1244 2011-11-28 DJ Delorie <dj@redhat.com>
1245
1246 * NEWS: Mention RL78 simulator.
1247
1248 2011-11-28 Joel Brobecker <brobecker@adacore.com>
1249
1250 * symfile.h (struct quick_symbol_functions): Fix the documentation
1251 of field map_matching_symbols, as symbols are sorted using
1252 strcmp_iw_ordered, not strcmp_iw.
1253
1254 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
1255
1256 * symfile.h (struct quick_symbol_functions): Update the
1257 documentation for field map_matching_symbols.
1258
1259 2011-11-28 Joel Brobecker <brobecker@adacore.com>
1260
1261 * ada-lang.c (compare_names): Fix wrong return value in case
1262 string1 starts with the same contents as string2, followed
1263 by an underscore that do not start a symbol name suffix.
1264
1265 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
1266
1267 PR python/13369
1268 PR python/13374
1269
1270 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
1271 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1272 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
1273 exceptions.
1274 * python/py-type.c (typy_strip_typedefs): Ditto.
1275 (typy_legacy_template_argument): Ditto.
1276 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1277 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
1278
1279 2011-11-27 Joel Brobecker <brobecker@acacore.com>
1280
1281 * remote.c (remote_get_tracepoint_status): Delete addrbuf
1282 local variable. Avoid use of sprintf_vma.
1283
1284 2011-11-27 Sanjoy Das <sdas@igalia.com>
1285
1286 Fix regression in jit.exp.
1287 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1288 (jit_register_code): Set the jit_objfile_data field to the correct
1289 value.
1290
1291 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
1292
1293 * alpha-tdep.c (br_opcode): New.
1294 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1295 (alpha_deal_with_atomic_sequence): New function.
1296 (alpha_gdbarch_init): Handle single stepping of atomic sequences
1297 with alpha_deal_with_atomic_sequence.
1298
1299 2011-11-24 Tristan Gingold <gingold@adacore.com>
1300
1301 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1302 fields. Add oso_sym, end_sym and nbr_syms.
1303 (macho_register_oso): Change interface.
1304 (macho_symtab_add_minsym): New function.
1305 (macho_symtab_read): Rewritten.
1306 (get_archive_prefix_len): Remove trailing blanks.
1307 (oso_el_compare_name): Add comment.
1308 (struct macho_sym_hash_entry): New structure.
1309 (macho_relocate_common_syms): Remove.
1310 (macho_sym_hash_newfunc): New function.
1311 (macho_resolve_oso_sym_with_minsym): Likewise.
1312 (macho_add_oso_symfile): Rewritten.
1313 (macho_symfile_read_all_oso): Remove trailing blanks.
1314 Adjust code to free oso vector.
1315 (macho_symfile_read): Likewise.
1316 Move code to initialize minimal symbol
1317
1318 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
1319
1320 * mips-tdep.c (extended_offset): Fix formatting.
1321
1322 2011-11-23 Doug Evans <dje@google.com>
1323
1324 * dwarf2read.c (dw2_lookup_symtab): Add comment.
1325 (dw2_expand_symtabs_with_filename): Ditto.
1326 (dw2_expand_symtabs_matching): Ditto.
1327 (dw2_map_symbol_filenames): Ditto.
1328
1329 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1330
1331 * ada-lang.c (assign_aggregate): Minor reformatting.
1332
1333 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1334
1335 * ada-lang.c (assign_aggregate): Remove declaration of local
1336 variable `i' which is shadowing another variable with the same
1337 name declared in the outer scope.
1338
1339 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1340
1341 * ada-lang.c (get_base_type): Renames base_type. Adjust all
1342 calls throughout this file.
1343
1344 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1345
1346 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1347 FormatMessage.
1348
1349 2011-11-22 Tom Tromey <tromey@redhat.com>
1350
1351 PR mi/8444:
1352 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1353 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1354 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1355 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1356 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1357 (print_it_catch_syscall, print_it_catch_exec)
1358 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
1359 (bpstat_print): Add 'kind' argument. Handle
1360 TARGET_WAITKIND_LOADED.
1361 * infrun.c (normal_stop): Update for bpstat_print change. Don't
1362 handle TARGET_WAITKIND_LOADED here.
1363 * breakpoint.h (bpstat_print): Update.
1364
1365 2011-11-22 Tom Tromey <tromey@redhat.com>
1366
1367 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1368
1369 2011-11-22 Tom Tromey <tromey@redhat.com>
1370
1371 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1372 Use static_assert to check the size of
1373 async_reason_string_lookup.
1374 * common/gdb_assert.h (static_assert): New macro.
1375
1376 2011-11-22 Alan Modra <amodra@gmail.com>
1377
1378 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1379 destination calculation. Don't expect >> to sign extend. Don't
1380 add a break if branch lands inside the sequence anywhere.
1381
1382 2011-11-21 Keith Seitz <keiths@redhat.com>
1383
1384 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1385 -var-evaluate-expression of an enumeration and fix expected result.
1386 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1387
1388 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1389
1390 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1391 the case where osdata->items is empty. Rename column names to a
1392 canonical form to avoid problems with unusual column names.
1393
1394 2011-11-21 Yao Qi <yao@codesourcery.com>
1395
1396 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1397
1398 2011-11-20 Stan Shebs <stan@codesourcery.com>
1399
1400 * NEWS: Mention tracepoint additions.
1401 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1402 * breakpoint.c (print_one_breakpoint_location): Identify
1403 tracepoints as such when reporting hit counts, report
1404 trace buffer usage.
1405 (create_tracepoint_from_upload): Copy status info.
1406 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1407 add fields user_name, notes, start_time, stop_time.
1408 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1409 * tracepoint.c (trace_user): New global.
1410 (trace_notes): New global.
1411 (trace_stop_notes): New global.
1412 (start_tracing): Add argument and trace note handling.
1413 (stop_tracing): Ditto.
1414 (trace_start_command): Add notes argument.
1415 (trace_stop_command): Ditto.
1416 (trace_status_command): Report additional status info.
1417 (trace_status_mi): Similarly.
1418 (trace_save): Update, record tracepoint status.
1419 (set_disconnected_tracing): Call target method directly.
1420 (send_disconnected_tracing_value): Remove.
1421 (set_trace_user): New function.
1422 (set_trace_notes): New function.
1423 (set_trace_stop_notes): New function.
1424 (parse_trace_status): Handle additional status.
1425 (parse_tracepoint_status): New function.
1426 (parse_tracepoint_definition): Call it.
1427 (tfile_get_tracepoint_status): New function.
1428 (init_tfile_ops): Use it.
1429 (_initialize_tracepoint): Add new setshows.
1430 * target.h (struct target_ops): New methods to_get_tracepoint_status
1431 and to_set_trace_notes.
1432 (target_get_tracepoint_status): New macro.
1433 (target_set_trace_notes): New macro.
1434 * target.c (update_current_target): Add new methods.
1435 * remote.c (remote_get_tracepoint_status): New function.
1436 (remote_set_trace_notes): New function.
1437 (init_remote_ops): Add them.
1438 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1439 (mi_cmd_trace_stop): Ditto.
1440
1441 2011-11-20 Sanjoy Das <sdas@igalia.com>
1442
1443 * jit.c: Include regcache.h.
1444 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1445 (jit_unwind_reg_set_impl, free_reg_value_impl)
1446 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1447 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1448 (jit_frame_prev_register, jit_dealloc_cache)
1449 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1450 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1451 jit_prepend_unwinder.
1452 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1453
1454 2011-11-20 Sanjoy Das <sdas@igalia.com>
1455
1456 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1457 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1458 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1459 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1460 (finalize_symtab, jit_object_close_impl)
1461 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1462 (free_objfile_data): New functions.
1463 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1464 function.
1465
1466 2011-11-20 Sanjoy Das <sdas@igalia.com>
1467
1468 * jit.c: Include gdb-dlfcn.h.
1469 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1470 (jit_reader_load, jit_reader_load_command)
1471 (jit_reader_unload_command): New functions.
1472 (_initialize_jit): Add commands "jit-reader-load" and
1473 "jit-reader-unload".
1474
1475 2011-11-20 Sanjoy Das <sdas@igalia.com>
1476
1477 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1478 * config.in: Add new #define HAVE_LIBDL.
1479 * configure.ac: Add check for -ldl.
1480 * configure: Re-generated by autoconf.
1481 * gdb-dlfcn.c: New file.
1482 * gdb-dlfcn.h: New file.
1483
1484 2011-11-20 Sanjoy Das <sdas@igalia.com>
1485
1486 * config.in: Add new #defines: JIT_READER_DIR and
1487 JIT_READER_DIR_RELOCATABLE.
1488 * configure.ac: New GDB directory entry for jit-reader-dir.
1489 * configure: Re-generated by autoconf.
1490 * jit.c: New static variable: const char *jit_reader_dir.
1491 (_initialize_jit): Relocate jit_reader_dir.
1492
1493 2011-11-20 Sanjoy Das <sdas@igalia.com>
1494
1495 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1496 $(includedir)/gdb.
1497 * configure.ac: Generate a correct value for TARGET_PTR for
1498 jit-reader.h. Tell configure to generate jit-reader.h from
1499 jit-reader.in.
1500 * configure: Re-generated by autoconf.
1501 * jit-reader.in: New file.
1502 * jit.c: Include jit-reader.h.
1503
1504 2011-11-20 Sanjoy Das <sdas@igalia.com>
1505
1506 * MAINTAINERS (Write After Approval): Add myself to the list.
1507
1508 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1509
1510 * findvar.c (read_frame_register_value): Respect value_offset
1511 of the register value. Remove big-endian special case.
1512
1513 2011-11-18 Tom Tromey <tromey@redhat.com>
1514
1515 PR build/7196:
1516 * remote.c (putpkt_for_catch_errors): New function.
1517 (remote_kill): Use it.
1518
1519 2011-11-18 Yao Qi <yao@codesourcery.com>
1520
1521 * breakpoint.c (create_breakpoint): Produce query message according to
1522 breakpoint's type.
1523 Allocate tracepoint per correct type.
1524 Don't check SALs for pending fast tracepoints.
1525 * tracepoint.c (process_tracepoint_on_disconnect): New.
1526 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1527
1528 2011-11-18 Yao Qi <yao@codesourcery.com>
1529
1530 * breakpoint.c (install_breakpoint): Add one more parameter so that
1531 update_global_location_list is called conditionally.
1532 (create_fork_vfork_event_catchpoint): Update.
1533 (create_syscall_event_catchpoint): Update.
1534 (create_breakpoint_sal): Update.
1535 (create_breakpoint_sal): Update. Call do_cleanups before
1536 install_breakpoint.
1537 * ada-lang.c (create_ada_exception_catchpoint): Update.
1538 * breakpoint.h (install_breakpoint): Update declaration.
1539
1540 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1541
1542 * spu-tdep.c (spu_return_value): Fix handling of
1543 TYPE_CALLING_CONVENTION annotation.
1544
1545 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1546
1547 * skip.c (skip_function_command): Work around uninitialized
1548 variable warning.
1549
1550 2011-11-16 David S. Miller <davem@davemloft.net>
1551
1552 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1553 'tv_usec' to long for printf since these fields have a type which
1554 varies.
1555
1556 2011-11-15 Doug Evans <dje@google.com>
1557
1558 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1559
1560 2011-11-15 Paul Koning <paul_koning@dell.com>
1561
1562 * python/py-type.c (typy_get_composite): New function.
1563 (typy_nonzero): New function.
1564 (typy_values): Rename from typy_fields.
1565 (typy_fields): New function.
1566 (typy_length): Raise exception if not struct, union, or enum type.
1567 (typy_getitem): Ditto.
1568 (typy_has_key): Ditto.
1569 (typy_make_iter): Ditto.
1570
1571 2011-11-15 Doug Evans <dje@google.com>
1572
1573 PR gdb/8367
1574 * NEWS: Mention new parameter basenames-may-differ.
1575 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1576 ! basenames_may_differ.
1577 * psymtab.c (lookup_partial_symtab): Ditto.
1578 * symtab.c (lookup_symtab): Ditto.
1579 (basenames_may_differ): New global.
1580 (_initialize_symtab): New parameter basenames-may-differ.
1581 * symtab.h (basenames_may_differ): Declare.
1582
1583 2011-11-15 Pedro Alves <pedro@codesourcery.com>
1584 Luis Machado <lgustavo@codesourcery.com>
1585
1586 * auxv.c: Include observer.h.
1587 (auxv_inferior_data_cleanup): New.
1588 (invalidate_auxv_cache_inf): New.
1589 (invalidate_auxv_cache): New.
1590 (get_auxv_inferior_data): New.
1591 (auxv_inferior_data): New static global.
1592 (auxv_info): New structure.
1593 (target_auxv_search): Use get_auxv_inferior_data instead of
1594 target_read_alloc and don't free cached buffers.
1595 (fprint_target_auxv): Likewise
1596 (_initialize_auxv): Register per-inferior auxv cache and register
1597 observers to invalidate auxv cache when needed.
1598
1599 2011-11-14 Doug Evans <dje@google.com>
1600
1601 PR gdb/7200 Make "!" an alias for "shell".
1602 * NEWS: Add mention.
1603 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1604 adding "!" command, always add it.
1605 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1606 command of length one.
1607
1608 2011-11-14 Stan Shebs <stan@codesourcery.com>
1609 Kwok Cheung Yeung <kcy@codesourcery.com>
1610
1611 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1612 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1613 the minimum instruction size for fast tracepoints.
1614 * target.h (struct target_ops): Add new method
1615 to_get_min_fast_tracepoint_insn_len.
1616 (target_get_min_fast_tracepoint_insn_len): New.
1617 * target.c (update_current_target): Set up new target operation.
1618 * remote.c (remote_write_bytes_aux): Fix typo.
1619 (remote_get_min_fast_tracepoint_insn_len): New.
1620 (init_remote_ops): Initialize new field.
1621
1622 2011-11-14 Tom Tromey <tromey@redhat.com>
1623
1624 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1625 (encode_actions): Likewise.
1626
1627 2011-11-14 Yao Qi <yao@codesourcery.com>
1628
1629 * remote.c (struct remote_state): <install_in_trace> new field.
1630 (PACKET_InstallInTrace): New enum value.
1631 (remote_install_in_trace_feature): Support InstallInTrace.
1632 (remote_supports_install_in_trace): Likewise.
1633 (remote_protocol_features): Likewise.
1634 (_initialize_remote): Likewise.
1635 (remote_can_download_tracepoint): New.
1636 * target.h (struct target): New field
1637 `to_can_download_tracepoint'.
1638 (target_can_download_tracepoint): New macro.
1639 * target.c (update_current_target): Update.
1640 * breakpoint.h (struct bp_location): Add comment on field
1641 `duplicate'.
1642 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1643 and tracepoint.
1644 (remove_breakpoints): Don't remove tracepoints.
1645 (tracepoint_locations_match ): New.
1646 (breakpoint_locations_match): Call it.
1647 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1648 (download_tracepoint_locations): New.
1649 (update_global_location_list): Call it.
1650 * tracepoint.c (find_matching_tracepoint): Delete.
1651 (find_matching_tracepoint_location): Renamed from
1652 find_matching_tracepoint. Return bp_location rather than
1653 tracepoint.
1654 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1655 tracepoint is found.
1656
1657 2011-11-14 Yao Qi <yao@codesourcery.com>
1658
1659 * target.h (struct target): <to_download_tracepoint> Change type
1660 of parameter from tracepoint to bp_location.
1661 * target.c (update_current_target): Update.
1662 * tracepoint.c (start_tracing): Update.
1663 * remote.c (remote_download_tracepoint): Remove loop for each location
1664 of a tracepoint.
1665
1666 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1667
1668 * i386-nat.c (i386_insert_hw_breakpoint): Call
1669 i386_update_inferior_debug_regs.
1670 (i386_remove_hw_breakpoint): Likewise.
1671
1672 2011-11-14 Yao Qi <yao@codesourcery.com>
1673
1674 * breakpoint.c (init_raw_breakpoint): Call
1675 add_location_to_breakpoint to replace duplicated code.
1676 (add_location_to_breakpoint): Adjust the breakpoint's
1677 address prior to allocating a location.
1678
1679 2011-11-12 Matt Rice <ratmice@gmail.com>
1680
1681 * macrocmd.c (macro_no_macro_info): New function.
1682 (macro_expand_command): Use macro_no_macro_info.
1683 (macro_expand_once_command): Ditto.
1684 (info_macro_command): Add argument processing,
1685 move info_definitions_command here.
1686 (_initialize_macrocmd): Remove info definitions command.
1687 Add arguments to info macro help text.
1688 * NEWS: Replace info definitions command with new info macro options.
1689
1690 2011-11-11 Keith Seitz <keiths@redhat.com>
1691
1692 PR gdb/12843
1693 * linespec.c (locate_first_half): Keep ':' if it looks
1694 like it could be part of a Windows path starting with
1695 a drive letter.
1696
1697 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1698
1699 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1700 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1701
1702 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1703
1704 * target.c (target_waitstatus_to_string): Handle
1705 TARGET_WAITKIND_NO_RESUMED.
1706
1707 2011-11-10 Doug Evans <dje@google.com>
1708
1709 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1710 `need_fullname'.
1711 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1712 (map_partial_symbol_filenames): Ditto. All callers updated.
1713 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1714 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1715 parameter need_fullname.
1716
1717 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1718 * source.c (symtab_to_fullname): Ditto.
1719
1720 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1721 * gdb-demangle.h: ... here. New file.
1722 * demangle.c: #include "gdb-demangle.h".
1723 (_initialize_demangler): Use initialize_file_ftype for prototype.
1724 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1725 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1726 from utils.c
1727 * utils.c: Update. #include "gdb-demangle.h".
1728 * symtab.h (asm_demangle): Delete.
1729 (demangle): Move declaration next to use.
1730 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1731 * dwarf2read.c: #include "gdb-demangle.h".
1732 * gnu-v2-abi.c: Ditto.
1733 * jv-typeprint.c: Ditto.
1734 * mdebugread.c: Ditto.
1735 * p-typeprint.c: Ditto.
1736 * stabsread.c: Ditto.
1737 * printcmd.c: Ditto.
1738 (asm_demangle): Delete declaration.
1739 * tui/tui-stack.c: #include "gdb-demangle.h".
1740
1741 * python/py-type.c (typy_fields_items): Call check_typedef.
1742
1743 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1744
1745 * findvar.c (read_frame_register_value): Read the correct bytes
1746 from registers on big-endian architectures.
1747
1748 2011-11-10 Tom Tromey <tromey@redhat.com>
1749
1750 * procfs.c (load_syscalls): Make a cleanup.
1751 (open_procinfo_files): fd==0 is ok.
1752
1753 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1754
1755 * procfs.c (iterate_over_mappings): Call do_cleanups before
1756 returning.
1757
1758 2011-11-09 Doug Evans <dje@google.com>
1759
1760 * gdbtypes.c (check_typedef): Document that this function can
1761 throw an exception.
1762
1763 2011-11-09 Tom Tromey <tromey@redhat.com>
1764
1765 PR c++/13342:
1766 * valops.c (value_full_object): Return early if real type is
1767 smaller than the enclosing type.
1768
1769 2011-11-08 Yao Qi <yao@codesourcery.com>
1770
1771 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1772
1773 2011-11-08 Meador Inge <meadori@codesourcery.com>
1774
1775 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1776 register when the frame can't be determined.
1777 * arm-tdep.c (arm_analyze_prologue): Ditto.
1778
1779 2011-11-07 Stan Shebs <stan@codesourcery.com>
1780
1781 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1782
1783 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1784
1785 * infrun.c (handle_inferior_event): Minor reformatting.
1786
1787 2011-11-05 Doug Evans <dje@google.com>
1788
1789 * source.c (forget_cached_source_info_for_objfile): Move call to
1790 objfile->sf->qf->forget_cached_source_info outside of
1791 ALL_OBJFILE_SYMTABS loop.
1792 (forget_cached_source_info): Delete unused variable `s'.
1793
1794 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1795
1796 * i386-nat.c (dr_ref_count): Remove unused variable.
1797
1798 2011-11-05 Doug Evans <dje@google.com>
1799
1800 * main.c (captured_main): Set lim_at_start before calling
1801 make_command_stats_cleanup.
1802
1803 2011-11-04 Doug Evans <dje@google.com>
1804
1805 * utils.c: #include "timeval-utils.h".
1806 (cmd_stats): Rename start_time to start_cpu_time.
1807 New member start_wall_time.
1808 (report_command_stats): Report wall time.
1809 (make_command_stats_cleanup): Record start wall time.
1810
1811 2011-11-04 Tom Tromey <tromey@redhat.com>
1812
1813 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1814
1815 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1816
1817 * coff-pe-read.c: Include defs.h before bfd.h.
1818
1819 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1820
1821 PR Python/13345
1822
1823 * python/python.c (python_run_simple_file): Expand tilde in path.
1824
1825 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1826
1827 PR Python/13363
1828
1829 * python/py-type.c (typy_lookup_type): Do not return a type in
1830 an exception handler.
1831
1832 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1833 Eli Zaretskii <eliz@gnu.org>
1834
1835 * linux-nat.c (_initialize_linux_nat): Improve help
1836 for `info proc stat', `info proc status', `info proc cwd',
1837 `info proc cmdline' and `info proc exe'.
1838
1839 2011-11-02 Stan Shebs <stan@codesourcery.com>
1840
1841 String collection for tracepoints.
1842 * NEWS: Mention string collection.
1843 * common/ax.def (tracenz): New bytecode.
1844 * ax-gdb.h (trace_string_kludge): Declare.
1845 * ax-gdb.c: Include valprint.h and c-lang.h.
1846 (trace_string_kludge): New global.
1847 (gen_traced_pop): Add string case.
1848 (agent_command): Add string case.
1849 * tracepoint.h (decode_agent_options): Declare.
1850 * tracepoint.c: Include cli-utils.h.
1851 (decode_agent_options): New function.
1852 (validate_actionline): Call it.
1853 (encode_actions_1): Ditto.
1854 * target.h (struct target_ops): New method to_supports_string_tracing.
1855 (target_supports_string_tracing): New macro.
1856 * target.c (update_current_target): Add to_supports_string_tracing.
1857 * remote.c (struct remote_state): New field string_tracing.
1858 (remote_string_tracing_feature): New function.
1859 (remote_protocol_features): New feature tracenz.
1860 (remote_supports_string_tracing): New function.
1861 (init_remote_ops): Set to_supports_string_tracing.
1862
1863 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1864 Jan Kratochvil <jan.kratochvil@redhat.com>
1865
1866 * linux-nat.c: Include cli/cli-utils.h.
1867 (enum info_proc_what): New.
1868 (linux_nat_info_proc_cmd): Rename to ...
1869 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1870 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1871 status_f and stat_f from WHAT. Throw error on extra parameters.
1872 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1873 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1874 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1875 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1876 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1877 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1878 `info proc cmdline', `info proc exe' and `info proc all' as real
1879 subcommands of `info proc'.
1880
1881 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1882
1883 * Makefile.in: (SFILES): Add skip.c.
1884 (HFILES_NO_SRCDIR): Add skip.h.
1885 (COMMON_OBS): Add skip.o.
1886 * skip.h, skip.c: New.
1887 * breakpoint.h (set_default_breakpoint): Remove.
1888 (get_sal_arch): Declare.
1889 * breakpoint.c: Remove default_breakpoint_valid,
1890 default_breakpoint_address, default_breakpoint_symtab,
1891 default_breakpoint_line, default_breakpoint_pspace variables.
1892 (get_sal_arch): Make public.
1893 (set_default_breakpoint): Remove.
1894 (parse_breakpoint_sals, create_breakpoint, clear_command,
1895 decode_line_spec_1): Remove uses of default_breakpoint variables;
1896 replaced with function calls into stack.c.
1897 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1898 * cli/cli-cmds.c: Add skiplist.
1899 (init_cmd_lists): Initialize skiplist.
1900 (init_cli_cmds): Fix comment (classes of commands appear in
1901 alphabetical order).
1902 * infrun.c (handle_inferior_event): Add check that we don't step into
1903 a function whose pc is marked for skip.
1904 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1905 last_displayed_addr, last_displayed_symtab, last_displayed_line
1906 variables.
1907 (set_last_displayed_sal): New static function.
1908 (print_frame_info): Switch call to set_default_breakpoint to call to
1909 set_last_displayed_sal.
1910 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1911 get_last_displayed_pspace, get_last_displayed_addr,
1912 get_last_displayed_symtab, get_last_displayed_line,
1913 get_last_displayed_sal): New public functions.
1914 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1915 get_last_displayed_pspace, get_last_displayed_addr,
1916 get_last_displayed_symtab, get_last_displayed_line,
1917 get_last_displayed_sal): Declare.
1918
1919 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1920
1921 * MAINTAINERS (Write After Approval): Add myself to the list.
1922
1923 2011-10-29 Yao Qi <yao@codesourcery.com>
1924
1925 * infcmd.c (disconnect_command): Call disconnect_tracing.
1926
1927 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1928
1929 Code cleanup.
1930 * symtab.c (skip_prologue_sal): Code reformatting.
1931
1932 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1933
1934 PR symtab/13208
1935 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1936 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1937 SAI.
1938
1939 2011-10-28 Pedro Alves <pedro@codesourcery.com>
1940
1941 * linux-nat.c (linux_nat_filter_event): Remove `options'
1942 parameter, and dead code that used it. If we're handling a
1943 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1944 in our lwp list, re-add it.
1945 (check_zombie_leaders): New.
1946 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1947 wait for children with WNOHANG, and always wait for all children.
1948 Don't check for no resumed children upfront. Simplify wait loop.
1949 Check for zombie thread group leaders after handling all wait
1950 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1951 unwaited-for children left.
1952 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1953 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1954 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1955 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1956
1957 2011-10-28 Sterling Augustine <saugustine@google.com>
1958
1959 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1960 * symtab.c (free_completion_list): New function.
1961 (do_free_completion_list): Likewise.
1962 (default_make_symbol_completion_list_break_on): New variable
1963 back_to. Call make_cleanup and discard_cleanups.
1964 (make_source_files_completion_list): Likewise.
1965
1966 2011-10-28 Paul Koning <paul_koning@dell.com>
1967
1968 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1969 * NEWS: Mention deep_items.
1970
1971 2011-10-28 Alen Skondro <askondro@gmail.com>
1972
1973 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1974 defined.
1975
1976 2011-10-27 Meador Inge <meadori@codesourcery.com>
1977
1978 * MAINTAINERS (Write After Approval): Add myself to the list.
1979
1980 2011-10-27 Joel Brobecker <brobecker@adacore.com>
1981
1982 * value.h (read_frame_register_value): Add declaration.
1983 * findvar.c (read_frame_register_value): New function.
1984 (value_from_register): Use read_frame_register_value
1985 instead of get_frame_register_value + value_contents_copy
1986 to get value contents.
1987
1988 2011-10-27 Doug Evans <dje@google.com>
1989
1990 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1991 source_script_from_stream if it may have been found on the search path.
1992 * python/py-auto-load.c (source_section_scripts): Pass full path to
1993 source_python_script_for_objfile.
1994 * python/python.c (source_python_script): Delete stream parameter.
1995 All callers updated.
1996 (source_python_script_for_objfile): Ditto.
1997 * python/python-internal.h (source_python_script_for_objfile): Update.
1998 * python/python.h (source_python_script): Update.
1999
2000 2011-10-27 Tom Tromey <tromey@redhat.com>
2001
2002 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
2003 (ada_sals_for_line): Remove declarations.
2004
2005 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
2006
2007 Move unwind reasons to an external .def file
2008 * frame.c (frame_stop_reason_string): Rewrite using
2009 unwind_stop_reasons.def.
2010 * frame.h (enum unwind_stop_reason): Likewise.
2011 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2012 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
2013 constants for bound-checking.
2014 * unwind_stop_reasons.def: New file.
2015 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
2016 instead of a distinct value.
2017
2018 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
2019
2020 PR python/13331
2021
2022 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
2023 (convert_values_to_python): Return on Python tuple allocation
2024 failure. Return NULL on value conversion error.
2025
2026 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
2027
2028 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
2029 (bppy_set_task): Ditto.
2030 (bppy_delete_breakpoint): Ditto.
2031 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
2032 (gdbpy_lookup_global_symbol): Ditto.
2033 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
2034 * python/py-frame.c (frapy_is_valid): Ditto.
2035 (frame_info_to_frame_object): Ditto.
2036 * python/py-type.c (typy_lookup_type): Ditto.
2037 (typy_getitem): Ditto.
2038 (typy_has_key): Ditto.
2039 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
2040
2041 2011-10-26 Joel Brobecker <brobecker@adacore.com>
2042
2043 * gdbarch.h: Regenerate.
2044
2045 2011-10-26 Meador Inge <meadori@codesourcery.com>
2046
2047 * gdbarch.sh (function_list): Use 'pstring' when printing
2048 'gcore_bfd_target'.
2049 * gdbarch.c: Regenerate.
2050
2051 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
2052
2053 * regcache.c (registers_changed_ptid): Invalidate thread architecture
2054 and frame caches if PTID refers to all threads of a process.
2055
2056 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
2057
2058 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
2059 to create_breakpoint.
2060
2061 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
2062
2063 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
2064 (ppc_sysv_abi_push_dummy_call): Use it.
2065 (do_ppc_sysv_return_value): Likewise.
2066 (ppc64_sysv_abi_push_dummy_call): Likewise.
2067 (ppc64_sysv_abi_return_value): Likewise.
2068
2069 2011-10-26 Paul Koning <paul_koning@dell.com>
2070
2071 * python/lib/gdb/types.py (deepitems): New function.
2072
2073 2011-10-25 Paul Koning <paul_koning@dell.com>
2074
2075 PR python/13327
2076
2077 * python/py-value.c (value_to_value_object): Remove fetching of
2078 the value if it was lazy.
2079 (valpy_get_is_lazy): New function.
2080 (valpy_fetch_lazy): New function.
2081
2082 2011-10-24 Joel Brobecker <brobecker@adacore.com>
2083
2084 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
2085 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
2086
2087 2011-10-24 Pedro Alves <pedro@codesourcery.com>
2088
2089 * linux-nat.c (linux_handle_extended_wait): When handling a clone
2090 event, in non-stop, if not stopping, make sure the new lwp has
2091 last_resume_kind set to resume_continue. Assert that when we're
2092 resuming the new lwp, its last_resume_kind is resume_continue.
2093
2094 2011-10-24 Pedro Alves <pedro@codesourcery.com>
2095
2096 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
2097 already set when marking the event thread as not executing in
2098 non-stop mode.
2099
2100 2011-10-24 Pedro Alves <pedro@codesourcery.com>
2101
2102 * infrun.c (handle_inferior_event): Add debug output for
2103 TARGET_WAITKIND_NO_HISTORY.
2104
2105 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
2106
2107 * NEWS: Move set/show extended-prompt to "New Options". Expand
2108 description. Fix typos.
2109
2110 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
2111
2112 PR python/13310
2113
2114 * python/py-param.c (call_doc_function): Correctly deference on
2115 function exit.
2116
2117 2011-10-21 Joel Brobecker <brobecker@adacore.com>
2118
2119 * ada-tasks.c (print_ada_task_info): Fix computation of
2120 number of tasks displayed in command output.
2121
2122 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2123 Ulrich Weigand <uweigand@de.ibm.com>
2124
2125 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
2126 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
2127 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
2128 gdbarch_pc_regnum and frame_unwind_register_unsigned by
2129 gdbarch_unwind_pc.
2130
2131 2011-10-20 Cary Coutant <ccoutant@google.com>
2132
2133 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
2134 section to...
2135 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
2136 flag. Adjust all callers.
2137 (process_psymtab_comp_unit): Remove adjustment for type section.
2138
2139 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
2140
2141 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
2142 arguments by adding OBJFILE. Instead of getting objfile from
2143 symbol's symtab, use new argument OBJFILE.
2144 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
2145 arguments by adding OBJFILE.
2146 * gdb/dwarf2read.c (new_symbol_full): Change call to
2147 cp_scan_for_anonymous_namespaces to match new signature.
2148 * gdb/stabsread.c (define_symbol): Change call to
2149 cp_scan_for_anonymous_namespaces to match new signature.
2150
2151 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
2152
2153 PR python/13308
2154 PR python/13309
2155
2156 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
2157 leak.
2158 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
2159 leak. Delete unused variables.
2160
2161 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
2162
2163 PR python/12656
2164
2165 * python/py-frame.c (frapy_read_var): Use const struct *block.
2166 * python/py-type.c (typy_lookup_typename): Likewise.
2167 (typy_lookup_type): Likewise.
2168 (typy_legacy_template_argument): Likewise.
2169 (typy_template_argument): Likewise.
2170 (gdbpy_lookup_type): Likewise.
2171 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2172 * python/py-block.c (blpy_block_object): Likewise.
2173 (blpy_iter): Likewise.
2174 (blpy_get_start): Likewise.
2175 (blpy_get_end): Likewise.
2176 (blpy_get_function): Likewise.
2177 (blpy_get_superblock): Likewise.
2178 (set_block): Likewise.
2179 (block_to_block_object): Likewise.
2180 (block_object_to_block): Likewise.
2181 (blpy_is_valid): Likewise.
2182 (blpy_get_global_block): New function.
2183 (blpy_get_static_block): New function.
2184 (blpy_is_global): New function.
2185 (blpy_is_static): New function.
2186 * blockframe.c (block_innermost_frame): Likewise.
2187 * valops.c (value_of_variable): Likewise.
2188 * frame.h: Update prototypes.
2189 * python/python-internal.h: Likewise.
2190 * value.h: Likewise.
2191
2192 2011-10-19 Cary Coutant <ccoutant@google.com>
2193
2194 * dwarf2read.c (create_debug_types_hash_table): Fix size of
2195 type_offset field.
2196
2197 2011-10-19 Cary Coutant <ccoutant@google.com>
2198
2199 * dwarf2read.c (peek_abbrev_code): New function.
2200 (dw2_get_file_names): Check for dummy compilation units.
2201 (create_debug_types_hash_table): Likewise.
2202 (process_psymtab_comp_unit): Likewise.
2203 (load_partial_comp_unit): Likewise.
2204 (load_full_comp_unit): Likewise.
2205
2206 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
2207
2208 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
2209 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
2210 pt_phdr if PT_PHDR was found.
2211
2212 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
2213
2214 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
2215 type or "<unnamed type"> when there is no name assigned.
2216 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
2217 avoid a sigint when no name is assigned.
2218
2219 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2220
2221 Revert:
2222 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2223 * dwarf2expr.c (ctx_no_read_reg): New function.
2224 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2225 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2226 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2227 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2228
2229 2011-10-16 Doug Evans <dje@google.com>
2230
2231 * NEWS: Document python gdb.printing.register_pretty_printer's new
2232 `replace' parameter.
2233
2234 2011-10-14 Keith Seitz <keiths@redhat.com>
2235
2236 PR c++/13225
2237 * eval.c (evaluate_subexp_standard): Do not construct
2238 an array of types; pass the value array directly to
2239 find_overload_match.
2240 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
2241 (rank_function): Take an array of values instead of types.
2242 (rank_one_type): Add struct value * parameter.
2243 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
2244 (rank_function): For each argument, pass the argument's
2245 value to rank_one_type.
2246 (rank_one_type): Add VALUE parameter.
2247 If the parameter type is a pointer and the argument type
2248 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
2249 VALUE is zero.
2250 Update all calls to rank_one_type, passing NULL for new
2251 VALUE parameter.
2252 * valarith.c (value_user_defined_cpp_op): Do not construct
2253 an array of types; pass the value array directly to
2254 find_overload_match.
2255 * valops.c (find_overload_method_list): Take an array of
2256 values instead of types.
2257 Save the type of OBJP for later use.
2258 Update calls to find_oload_champ, and find_oload_champ_namespace.
2259 (find_oload_champ_namespace): Take an array of values instead
2260 of types.
2261 (find_oload_champ_namespace_loop): Likewise.
2262 (find_oload_champ): Likewise.
2263 (classify_oload_match): Inspect all arguments
2264 until INCOMPATIBLE is found. Return the worst badness found
2265 otherwise.
2266 (compare_parameters): Update call to rank_one_type.
2267 * value.h (find_overload_match): Take an array of values instead
2268 of types.
2269
2270 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2271
2272 Drop lazy lm_info reading.
2273 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
2274 l_addr_inferior, l_ld, l_next, l_prev and l_name.
2275 (lm_info_read): New function.
2276 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
2277 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
2278 lm_dynamic_from_link_map.
2279 (lm_next, lm_prev, lm_name): Remove.
2280 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
2281 initialization incl. read_memory. No longer use lm_name.
2282 (svr4_free_so): Drop lm_info->lm freeing.
2283 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
2284 explicit lm_addr and lm initialization.
2285 (svr4_read_so_list): Use lm_info_read, drop the initailization of
2286 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
2287 lm_name.
2288
2289 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2290 Paul Pluzhnikov <ppluzhnikov@google.com>
2291
2292 * defs.h (struct so_list): New forward declaration.
2293 (make_cleanup_free_so): New declaration.
2294 * solib-svr4.c (ignore_first_link_map_entry): Remove.
2295 (svr4_free_so): Move the function here from downwards. Handle NULL
2296 so->lm_info.
2297 (svr4_free_library_list): New.
2298 (svr4_read_so_list): New, moved here code from svr4_current_sos.
2299 Use more cleanups. Use new parameter ignore_first instead of
2300 ignore_first_link_map_entry.
2301 (svr4_current_sos): New variable ignore_first, initialize it. New
2302 variable back_to, use it for svr4_free_library_list protection.
2303 (svr4_free_so): Remove - move upwards.
2304 * utils.c: Include solist.h.
2305 (do_free_so, make_cleanup_free_so): New functions.
2306
2307 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2308
2309 Fix internal error regression.
2310 * value.c (value_primitive_field): Handle value_optimized_out. Move
2311 packed bitfields comment.
2312
2313 2011-10-13 Tom Tromey <tromey@redhat.com>
2314
2315 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2316 always released.
2317
2318 2011-10-13 Tom Tromey <tromey@redhat.com>
2319
2320 * python/py-type.c (typy_has_key): Make 'field' const.
2321
2322 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2323
2324 * remote.c (remote_save_trace_data): Invert comparison.
2325
2326 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2327
2328 * tracepoint.c (trace_save_command): Use filename instead of
2329 args when printing.
2330
2331 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2332
2333 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2334 if .size is 0.
2335
2336 2011-10-13 Yao Qi <yao@codesourcery.com>
2337
2338 PR gdb/12703
2339 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2340 whether insn is a 32-bit Thumb-2 instruction.
2341 (thumb_in_function_epilogue_p): Likewise.
2342 (thumb_get_next_pc_raw): Likewise.
2343 (arm_breakpoint_from_pc): Likewise.
2344
2345 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2346
2347 Fix empty DWARF expressions DATA vs. SIZE conditionals.
2348 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2349 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2350 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2351 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2352 zero DATA.
2353 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2354 validity.
2355 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2356 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2357 clear DATA on zero SIZE.
2358
2359 2011-10-12 Doug Evans <dje@google.com>
2360
2361 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2362 header->first_die_offset here. All callers updated.
2363
2364 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2365
2366 Fix compatibility with texinfo versions older than 4.12.
2367 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2368 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2369 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2370 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2371 * configure: Regenerate.
2372 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2373 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2374 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2375
2376 2011-10-12 Gary Benson <gbenson@redhat.com>
2377
2378 * breakpoint.h (pc_at_non_inline_function): Declare.
2379 * breakpoint.c (is_non_inline_function,
2380 pc_at_non_inline_function): New functions.
2381 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2382 if the stop is at a location where functions cannot be inlined.
2383
2384 2011-10-12 Pedro Alves <pedro@codesourcery.com>
2385
2386 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2387 the core wanted them stopped, or if they now have a pending event
2388 to report.
2389 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2390 down to stop_and_resume_callback.
2391 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2392 having new pending events after calling linux_nat_filter_event.
2393
2394 2011-10-11 Sterling Augustine <saugustine@google.com>
2395
2396 * dwarf2read.c: Undo inadvertent changes in previous commit.
2397
2398 2011-10-11 Sterling Augustine <saugustine@google.com>
2399
2400 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2401 logic.
2402
2403 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2404
2405 * symfile.c (separate_debug_file_exists): Fix condition.
2406
2407 2011-10-11 David S. Miller <davem@davemloft.net>
2408
2409 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2410 static.
2411 * regcache.h (regcache_restore): Remove declaration.
2412
2413 * gdbarch.sh: New field 'long_long_align_bit'.
2414 * gdbarch.c, gdbarch.h: Regenerate.
2415 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2416 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2417
2418 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2419
2420 Revert this part of:
2421 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2422 Support @entry in input expressions.
2423 * c-exp.y (ENTRY, unknown_cpp_name): New.
2424 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2425 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2426 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2427 (name_not_typename: ENTRY): New.
2428 (yylex): Recognize ENTRY.
2429
2430 Reimplement @entry in input expressions.
2431 * c-exp.y (ENTRY): New.
2432 (variable: name_not_typename ENTRY): New.
2433 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2434
2435 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2436
2437 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2438 parent and child's pids as soon as we detect a clone event.
2439 Adjust another debug message.
2440
2441 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2442
2443 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2444 not zombie instead of reading the whole file.
2445
2446 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2447
2448 Fix separate debuginfo warning with "remote:" access.
2449 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2450 * symfile.c (get_file_crc): New function with the code moved from ...
2451 (separate_debug_file_exists): ... this function, specifically variables
2452 buffer and count. New variable verified_as_different, set it. Remove
2453 file_crc initialization. Verify also if both files are not the same
2454 manually, if needed.
2455
2456 2011-10-11 Yao Qi <yao@codesourcery.com>
2457
2458 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2459 to get address.
2460
2461 2011-10-10 Doug Evans <dje@google.com>
2462
2463 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2464 libthread_db when we load libpthread or the main symbol file.
2465 (thread_db_inferior_created): New function.
2466 (_initialize_thread_db): Attach inferior_created observer.
2467 * linux-nat.c (linux_child_post_attach): Remove call to
2468 check_for_thread_db.
2469 (linux_child_post_startup_inferior): Ditto.
2470 * objfiles.h (OBJF_MAINLINE): Define.
2471 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2472 allocate_objfile when appropriate.
2473
2474 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2475
2476 PR gdb/13218
2477 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2478 Remove unused variables.
2479 (get_linux_version): Remove function.
2480 (_initialize_arm_linux_nat): Do not call it.
2481
2482 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2483
2484 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2485 new clone lwp if the core asked it to stop. Don't pass on
2486 unexpected signals to the new clone; leave them pending instead.
2487
2488 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2489
2490 * linux-nat.c (resume_lwp): Remove redundant debug output.
2491
2492 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2493
2494 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2495 last_resume_kind before clearing it, and use the copy instead to
2496 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2497 resume_clear_callback in the non-stop path too.
2498
2499 2011-10-09 Yao Qi <yao@codesourcery.com>
2500
2501 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2502 Honor OPTIONS and VAL's type.
2503 (common_val_print, value_print): Update to pass one more parameter.
2504
2505 2011-10-09 Doug Evans <dje@google.com>
2506
2507 Add new "alias" command.
2508 * NEWS: Mention new command.
2509 * command.h (valid_user_defined_cmd_name_p): Declare.
2510 * defs.h (make_cleanup_dyn_string_delete): Declare.
2511 * utils.c: #include "dyn-string.h".
2512 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2513 * cli/cli-cmds.c: #include "dyn-string.h".
2514 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2515 (init_cli_cmds): Add new command.
2516 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2517
2518 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2519
2520 Fix compatibility with older GCCs.
2521 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2522 * stack.c (read_frame_arg): Initialize val_deref.
2523
2524 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2525
2526 Entry values NEWS entries, DWARF disassembly support.
2527 * NEWS: New entry values entry.
2528 (set print entry-values, show print entry-values)
2529 (set debug entry-values, show debug entry-values): New entries.
2530 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2531 indent. Remove variable start. Move header printing out. Respect
2532 INDENT. Support DW_OP_GNU_entry_value.
2533 (locexpr_describe_location_1): Move the header printing here, extend
2534 the disassemble_dwarf_expression passed parameters.
2535
2536 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2537
2538 Display @entry parameter values even for references.
2539 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2540 coerce_ref_if_computed.
2541 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2542 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2543 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2544 existing push_dwarf_reg_entry_value call. Add new detection calling
2545 dwarf_block_to_dwarf_reg_deref. Update the error message.
2546 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2547 * dwarf2expr.h
2548 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2549 parameter deref_size, describe it in the comment.
2550 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2551 (dwarf_block_to_dwarf_reg_deref): New declaration.
2552 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2553 deref_size, describe it in the function comment. New variables
2554 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2555 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2556 describe it in the function comment. Fetch the alternative block
2557 accoring to DEREF_SIZE.
2558 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2559 (entry_data_value_free_closure, entry_data_value_funcs): New.
2560 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2561 outer_val, target_val, val and addr. Try to fetch and create also
2562 referenced value content.
2563 (pieced_value_funcs): NULL value for coerce_ref.
2564 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2565 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2566 coerce_ref_if_computed.
2567 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2568 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2569 * stack.c (read_frame_arg): Compare also dereferenced values.
2570 * value.c (value_computed_funcs): Make the parameter v const, use
2571 value_lval_const for it.
2572 (value_lval_const, coerce_ref_if_computed): New function.
2573 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2574 * value.h (struct lval_funcs): New field coerce_ref.
2575 (value_computed_funcs): Make the parameter v const.
2576 (value_lval_const, coerce_ref_if_computed): New declarations.
2577
2578 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2579
2580 Support @entry in input expressions.
2581 * c-exp.y (ENTRY, unknown_cpp_name): New.
2582 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2583 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2584 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2585 (name_not_typename: ENTRY): New.
2586 (yylex): Recognize ENTRY.
2587 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2588 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2589 Likewise.
2590 * parse.c (operator_length_standard): Likewise.
2591 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2592
2593 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2594
2595 Display referenced values in backtraces.
2596 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2597 * stack.c (print_frame_arg): Likewise.
2598
2599 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2600
2601 Make some lval_funcs methods to default on NULL.
2602 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2603 NULL.
2604 (value_assign): Check if lval_computed write method is NULL.
2605 * value.h (struct lval_funcs): Comment NULL values for read and write
2606 methods.
2607
2608 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2609
2610 Display @entry parameter values (without references).
2611 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2612 New functions.
2613 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2614 New declarations.
2615 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2616 entry record.
2617 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2618 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2619 functions.
2620 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2621 (loclist_read_variable_at_entry): New function.
2622 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2623 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2624 DW_AT_location, call dwarf_block_to_sp_offset for it.
2625 * frame.h (print_entry_values_no, print_entry_values_only)
2626 (print_entry_values_preferred, print_entry_values_if_needed)
2627 (print_entry_values_both, print_entry_values_compact)
2628 (print_entry_values_default, print_entry_values): New declarations.
2629 (struct frame_arg): New field entry_kind.
2630 (read_frame_arg): New parameter entryargp.
2631 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2632 arg->entry_kind. Optionally print the `@entry' suffix.
2633 (list_args_or_locals): New variable entryarg, initialize it.
2634 Initialize also entry_kind of arg and entryarg. Conditionalize
2635 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2636 xfree for entryarg.error.
2637 * stack.c (print_entry_values_no, print_entry_values_only)
2638 (print_entry_values_preferred, print_entry_values_if_needed)
2639 (print_entry_values_both, print_entry_values_compact)
2640 (print_entry_values_default, print_entry_values_choices)
2641 (print_entry_values): New variables.
2642 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2643 print the `@entry' suffix, possibly in combination for
2644 print_entry_values_compact.
2645 (read_frame_arg): New parameter entryargp, new variables entryval,
2646 entryval_error and val_equal. Read in also entryargp, respect
2647 print_entry_values, compare the values using val_equal, fill in also
2648 argp->entry_kind (together with entryargp->entry_kind).
2649 (print_frame_args): New variable entryarg, initialize it.
2650 Conditionalize print_frame_arg for arg, add print_frame_arg for
2651 entryarg. Call xfree for entryarg.error.
2652 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2653 * symtab.h (struct symbol_computed_ops): New field
2654 read_variable_at_entry.
2655
2656 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2657
2658 Code reshuffle.
2659 * frame.h (struct frame_arg): New definition.
2660 (read_frame_arg): New declaration.
2661 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2662 (list_args_or_locals): ... the code here. New variable arg, call
2663 read_frame_arg and list_arg_or_local with it. Unify the
2664 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2665 arg.error.
2666 * stack.c (print_frame_arg): New functiom from the code of
2667 print_frame_args.
2668 (read_frame_arg): New function.
2669 (print_frame_args): Remove variable val. New variable arg, call
2670 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2671
2672 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2673
2674 Protect entry values against self tail calls.
2675 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2676 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2677
2678 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2679
2680 Recognize virtual tail call frames.
2681 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2682 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2683 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2684 * dwarf2-frame-tailcall.c: New file.
2685 * dwarf2-frame-tailcall.h: New file.
2686 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2687 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2688 REGS.PREV only after CIE execution.
2689 (struct dwarf2_frame_cache): New field tailcall_cache.
2690 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2691 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2692 parts, try to find entry_cfa_sp_offset. Call
2693 dwarf2_tailcall_sniffer_first.
2694 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2695 when appropriate.
2696 (dwarf2_frame_dealloc_cache): New function.
2697 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2698 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2699 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2700 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2701 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2702 * dwarf2loc.c (func_addr_to_tail_call_list)
2703 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2704 (call_site_find_chain_1, call_site_find_chain): New.
2705 * dwarf2loc.h (struct call_site_chain): New.
2706 (call_site_find_chain): New declaration.
2707 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2708 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2709 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2710 * stack.c (frame_info): Support also TAILCALL_FRAME.
2711
2712 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2713
2714 Tail call sites reader implementation.
2715 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2716 fill in TYPE_TAIL_CALL_LIST.
2717 * gdbtypes.h (struct func_type): New field tail_call_list.
2718 (struct call_site): New field tail_call_next.
2719 (TYPE_TAIL_CALL_LIST): New definition.
2720
2721 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2722
2723 Implement basic support for DW_TAG_GNU_call_site.
2724 * block.c: Include gdbtypes.h and exceptions.h.
2725 (call_site_for_pc): New function.
2726 * block.h (call_site_for_pc): New declaration.
2727 * defs.h: Include hashtab.h.
2728 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2729 declarations.
2730 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2731 ctx_no_push_dwarf_reg_entry_value.
2732 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2733 (dwarf_block_to_dwarf_reg): New function.
2734 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2735 (ctx_no_push_dwarf_reg_entry_value): New function.
2736 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2737 push_dwarf_reg_entry_value.
2738 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2739 declarations.
2740 * dwarf2loc.c: Include gdbcmd.h.
2741 (dwarf_expr_ctx_funcs): New forward declaration.
2742 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2743 (dwarf_expr_reg_to_entry_parameter)
2744 (dwarf_expr_push_dwarf_reg_entry_value): New.
2745 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2746 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2747 (needs_dwarf_reg_entry_value): New function.
2748 (needs_frame_ctx_funcs): Install it.
2749 (_initialize_dwarf2loc): New function.
2750 * dwarf2loc.h (entry_values_debug): New declaration.
2751 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2752 (read_call_site_scope): New forward declaration.
2753 (process_full_comp_unit): Copy call_site_htab.
2754 (process_die): Support DW_TAG_GNU_call_site.
2755 (read_call_site_scope): New function.
2756 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2757 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2758 (cleanup_htab): Delete.
2759 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2760 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2761 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2762 FIELD_LOC_KIND_DWARF_BLOCK.
2763 * gdbtypes.h (enum field_loc_kind): New entry
2764 FIELD_LOC_KIND_DWARF_BLOCK.
2765 (struct main_type): New loc entry dwarf_block.
2766 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2767 (TYPE_FIELD_DWARF_BLOCK): New.
2768 * python/py-type.c: Include dwarf2loc.h.
2769 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2770 internal_error call on unknown FIELD_LOC_KIND.
2771 * symtab.h (struct symtab): New field call_site_htab.
2772 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2773 (core_addr_hash, core_addr_eq): New functions.
2774
2775 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2776
2777 Code reshuffle.
2778 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2779 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2780 calling_convention under func_stuff there.
2781 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2782 (init_type) <TYPE_CODE_FUNC>: Likewise.
2783 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2784 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2785 * gdbtypes.h (enum type_specific_kind): Change
2786 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2787 (struct main_type) <type_specific>: Change calling_convention to
2788 func_stuff. Move calling_convention to ...
2789 (struct func_type): ... this new struct.
2790 (INIT_FUNC_SPECIFIC): New #define.
2791 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2792
2793 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2794
2795 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2796 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2797 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2798 ctx->ref_addr_size. Handle its invalid value.
2799 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2800 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2801 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2802 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2803 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2804 (dwarf2_per_cu_ref_addr_size): New function.
2805
2806 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2807
2808 Code cleanup.
2809 * dwarf2read.c (per_cu_header_read_in): New function.
2810 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2811 variables cu_header_local and cu_headerp.
2812
2813 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2814
2815 Fix initial language detection with -readnow.
2816 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2817 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2818 searches only for global symbols.
2819
2820 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2821
2822 Fix printed anonymous struct name.
2823 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2824 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2825 (anonymous_struct_prefix): New function.
2826 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2827 (dwarf2_name): Strip for anonymous structs any prefixes.
2828
2829 2011-10-07 Doug Evans <dje@google.com>
2830
2831 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2832 `replace'.
2833
2834 * python/lib/gdb/printing.py: Whitespace cleanup.
2835
2836 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2837 warning.
2838
2839 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2840
2841 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2842 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2843 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2844 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2845 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2846 (arm_linux_remove_watchpoint): Adjust.
2847 * i386-linux-nat.c (i386_linux_dr_set_control)
2848 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2849 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2850 (ia64_linux_remove_watchpoint): Adjust.
2851 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2852 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2853 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2854 (ppc_linux_insert_mask_watchpoint)
2855 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2856 (ppc_linux_remove_watchpoint): Adjust.
2857 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2858 Adjust.
2859
2860 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2861
2862 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2863 (clear_win32_environment): New function for Cygwin to clear out
2864 Win32 environment.
2865 (windows_create_inferior): Prepare new environment from in_env
2866 for Cygwin, too.
2867
2868 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2869
2870 PR python/13264
2871 * python/py-value.c (valpy_call): Check that arguments are
2872 a tuple.
2873 (is_intlike): Remove call to CHECK_TYPEDEF.
2874 (valpy_nonzero): Catch GDB exceptions.
2875 (valpy_absolute): Ditto.
2876 (valpy_lazy_string): Ditto.
2877 (valpy_call): Ditto.
2878 (valpy_get_is_optimized_out): Ditto.
2879 (valpy_long): Ditto.
2880 (valpy_float): Ditto.
2881 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2882 (valpy_richcompare): Ditto.
2883
2884 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2885
2886 * inferior.h (disable_randomization): Declare.
2887 * infrun.c (disable_randomization): New global variable.
2888 (show_disable_randomization): New function.
2889 (set_disable_randomization): Likewise.
2890 (_initialize_infrun): Install set/show disable-randomization
2891 commands.
2892 * linux-nat.c (disable_randomization): Remove.
2893 (show_disable_randomization): Likewise.
2894 (set_disable_randomization): Likewise.
2895 (_initialize_linux_nat): No longer install set/show
2896 disable-randomization commands here.
2897 (linux_nat_supports_disable_randomization): New function.
2898 (linux_nat_add_target): Install it.
2899 * remote.c (PACKET_QDisableRandomization): New enum value.
2900 (remote_protocol_packets): Support QDisableRandomization.
2901 (_initialize_remote): Likewise.
2902 (remote_supports_disable_randomization): New function.
2903 (init_remote_ops): Install it.
2904 (extended_remote_supports_disable_randomization): New function.
2905 (init_extended_remote_ops): Install it.
2906 (extended_remote_disable_randomization): New function.
2907 (extended_remote_create_inferior_1): Call it.
2908 * target.h (struct target_ops): Add to_supports_disable_randomization.
2909 (target_supports_disable_randomization): Add prototype.
2910 * target.c (target_supports_disable_randomization): New function.
2911 (find_default_supports_disable_randomization): Likewise.
2912 (init_dummy_target): Install it.
2913
2914 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2915
2916 Allow Python notification of new object-file loadings.
2917 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2918 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2919 Add build rule for this file.
2920 * python/py-event.h (emit_new_objfile_event): New prototype.
2921 (newobjfile): New Python event emitter.
2922 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2923 Python event registry.
2924 * python/py-inferior.c: Include objfiles.h
2925 (python_new_objfile): New function.
2926 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2927 observers.
2928 * python/py-newobjfileevent.c: New file.
2929 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2930 prototype.
2931 * python/python.c (_initialize_python): Add
2932 gdbpy_initialize_new_objfile_event call.
2933 * NEWS: Add item for new Python event "gdb.newobjfile"
2934
2935 2011-10-05 Tristan Gingold <gingold@adacore.com>
2936
2937 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2938 Extract the ravenscar task name from the symbol for the atcb.
2939
2940 2011-10-04 Paul Koning <paul_koning@dell.com>
2941
2942 * python/py-type.c (typy_make_iter): Add forward declaration.
2943 (typy_fields_items): Use the gdb.Type iterator.
2944
2945 2011-10-04 Paul Koning <paul_koning@dell.com>
2946
2947 * NEWS: Add entry for Python gdb.Type mapping methods.
2948
2949 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
2950
2951 PR python/12691: Add the inferior to Python exited event
2952 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2953 to exited_event.
2954 * python/py-event.h (emit_exited_event): Likewise
2955 * python/-inferior.c (python_inferior_exit): Likewise
2956
2957 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2958
2959 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2960 in output of -ada-task-info GDB/MI command.
2961
2962 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2963
2964 * ada-lang.h (struct inferior): Declare.
2965 (print_ada_task_info): Add declaration.
2966 * ada-tasks.c (print_ada_task_info): Make non-static.
2967 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2968 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2969 * mi/mi-main.c: #include "ada-lang.h".
2970 (mi_cmd_list_features): Add "ada-task-info" to the list
2971 of supported features.
2972 (mi_cmd_ada_task_info): New function.
2973
2974 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2975
2976 * python/python.c (python_run_simple_file): New function.
2977 (source_python_script, source_python_script_for_objfile):
2978 Replace call to PyRun_SimpleFile by call to
2979 python_run_simple_file.
2980
2981 2011-10-03 Paul Koning <paul_koning@dell.com>
2982
2983 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2984 (value_to_value_object): Fetch value if it was lazy.
2985
2986 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2987
2988 Code cleanup.
2989 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2990 Rearrange the code for it.
2991
2992 2011-10-02 Joel Brobecker <brobecker@adacore.com>
2993
2994 * breakpoint.c (bkpt_print_recreate): Add call to
2995 print_recreate_thread.
2996
2997 2011-09-29 Mike Frysinger <vapier@gentoo.org>
2998
2999 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3000 PTRACE_GETFDPIC_INTERP): Define.
3001
3002 2011-09-28 Yao Qi <yao@codesourcery.com>
3003
3004 * symfile.c (add_symbol_file_command): Update message on usage.
3005
3006 2011-09-28 Paul Koning <paul_koning@dell.com>
3007
3008 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
3009 (typy_length, typy_get, typy_has_key, typy_make_iter)
3010 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
3011 (typy_iterator_iter, typy_iterator_iternext)
3012 (typy_iterator_dealloc): New functions to implement standard
3013 Python mapping methods on gdb.Type object.
3014 (gdb.TypeIterator): New Python type.
3015 * python/python-internal.h (gdbpy_iter_kind): New enum.
3016
3017 2011-09-28 David S. Miller <davem@davemloft.net>
3018
3019 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
3020 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
3021 * sparc-tdep.c (sparc_complex_floating_p): New function.
3022 (sparc32_store_arguments): Handle complex floats.
3023 (sparc32_extract_return_value): Likewise.
3024 (sparc32_store_return_value): Likewise.
3025 (sparc32_stabs_argument_has_addr): Likewise.
3026 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
3027 (sparc64_store_floating_fields): Handle complex floats.
3028 (sparc64_store_arguments): Likewise.
3029 (sparc64_store_return_value): Likewise.
3030
3031 2011-09-28 Eli Zaretskii <eliz@gnu.org>
3032
3033 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
3034 before the change on 2006-12-09.
3035 (windows_create_inferior) [!__CYGWIN__]: Restore code that
3036 generates the environment block for CreateProcessA, modulo the
3037 Cygwin-specific parts that are not needed here.
3038
3039 2011-09-27 Tristan Gingold <gingold@adacore.com>
3040
3041 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
3042 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
3043 (darwin_solib_get_all_image_info_addr_at_init): New function.
3044 (darwin_solib_read_all_image_info_addr): Likewise.
3045 (darwin_solib_create_inferior_hook): Use the above two functions.
3046 * darwin-nat.c (darwin_execvp): Renames retval to res.
3047 (darwin_read_write_inferior): Update comment.
3048 (darwin_read_dyld_info): New function.
3049 (darwin_xfer_partial): Handle DYLD_INFO.
3050
3051 2011-09-27 Stan Shebs <stan@codesourcery.com>
3052
3053 Add return address collection for tracepoints.
3054 * tracepoint.c (encode_actions_1): Add case for $_ret.
3055 (validate_actionline): Check for $_ret.
3056 (trace_dump_actions): Ditto.
3057 * ax-gdb.h (gen_trace_for_return_address): Declare.
3058 * ax-gdb.c: Include arch-utils.h.
3059 (gen_trace_for_return_address): New function.
3060 (agent_command): Add return address special case.
3061 * amd64-tdep.c: Include ax.h and ax-gdb.h.
3062 (amd64_gen_return_address): New function.
3063 (amd64_init_abi): Call it.
3064 * i386-tdep.c: Include ax.h and ax-gdb.h.
3065 (i386_gen_return_address): New function.
3066 (i386_init_abi): Call it.
3067 * arch-utils.h (default_gen_return_address): Declare.
3068 * arch-utils.c (default_gen_return_address): New function.
3069 * gdbarch.sh (gen_return_address): New method.
3070 * gdbarch.h, gdbarch.c: Regenerate.
3071
3072 2011-09-23 Joseph Myers <joseph@codesourcery.com>
3073
3074 PR gdb/13079
3075 * i386-tdep.c (i386_frame_align): New.
3076 (i386_gdbarch_init): Use i386_frame_align.
3077
3078 2011-09-23 Yao Qi <yao@codesourcery.com>
3079
3080 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
3081 to get address.
3082
3083 2011-09-22 Tristan Gingold <gingold@adacore.com>
3084
3085 * fork-child.c (fork_inferior): Add exec_fun parameter.
3086 Call exec_fun or execvp.
3087 * inferior.h: Adjust prototype.
3088 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
3089 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
3090 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
3091 * procfs.c (procfs_create_inferior): Ditto.
3092 * darwin-nat.c (darwin_execvp): New function.
3093 (darwin_create_inferior): Use it.
3094
3095 2011-09-22 Yao Qi <yao@codesourcery.com>
3096
3097 * infrun.c (context_switch): Print debug message when switching to
3098 a different thread.
3099
3100 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
3101
3102 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
3103 complex and vector types.
3104 (s390_return_value_convention): Likewise.
3105
3106 (s390_value_from_register): Call check_typedef.
3107 (extend_simple_arg): Likewise.
3108 (alignment_of): Likewise.
3109 (s390_push_dummy_call): Likewise.
3110 (s390_return_value): Likewise.
3111
3112 2011-09-21 Joseph Myers <joseph@codesourcery.com>
3113
3114 * event-top.c (async_disconnect): If an exception is thrown from
3115 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
3116 catch_errors.
3117 * top.c (quit_cover): Return void and take no arguments.
3118 * top.h (quit_cover): Update prototype.
3119
3120 2011-09-20 Joseph Myers <joseph@codesourcery.com>
3121
3122 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
3123 current_uiout, not uiout.
3124
3125 2011-09-19 Doug Evans <dje@google.com>
3126
3127 * python/py-auto-load.c (source_section_scripts): Fix file
3128 descriptor leak.
3129 * python/python.c (source_python_script_for_objfile): Tweak comments.
3130
3131 2011-09-18 Yao Qi <yao@codesourcery.com>
3132 Ulrich Weigand <ulrich.weigand@linaro.org>
3133
3134 Support displaced stepping for Thumb 16-bit insns.
3135 * arm-tdep.c (THUMB_NOP) Define.
3136 (thumb_copy_unmodified_16bit): New.
3137 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
3138 (thumb_copy_alu_reg): New.
3139 (arm_copy_svc): Move some common code to ...
3140 (install_svc): ... here. New.
3141 (thumb_copy_svc): New.
3142 (install_pc_relative): New.
3143 (thumb_copy_pc_relative_16bit): New.
3144 (thumb_decode_pc_relative_16bit): New.
3145 (thumb_copy_16bit_ldr_literal): New.
3146 (thumb_copy_cbnz_cbz): New.
3147 (cleanup_pop_pc_16bit_all): New.
3148 (thumb_copy_pop_pc_16bit): New.
3149 (thumb_process_displaced_16bit_insn): New.
3150 (thumb_process_displaced_32bit_insn): New.
3151 (thumb_process_displaced_insn): process thumb instruction.
3152
3153 Support displaced stepping for Thumb 32-bit insns.
3154 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
3155 (thumb2_copy_preload): New.
3156 (thumb2_copy_copro_load_store): New.
3157 (thumb2_copy_b_bl_blx): New.
3158 (thumb2_copy_alu_imm): New.
3159 (thumb2_copy_load_reg_imm): New.
3160 (thumb2_copy_load_literal): New
3161 (thumb2_copy_block_xfer): New.
3162 (thumb_32bit_copy_undef): New.
3163 (thumb_32bit_copy_unpred): New.
3164 (thumb2_decode_ext_reg_ld_st): New.
3165 (thumb2_decode_svc_copro): New.
3166 (decode_thumb_32bit_store_single_data_item): New.
3167 (thumb_copy_pc_relative_32bit): New.
3168 (thumb_decode_pc_relative_32bit): New.
3169 (decode_thumb_32bit_ld_mem_hints): New.
3170 (thumb2_copy_table_branch): New
3171 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
3172 instructions.
3173
3174 2011-09-18 Yao Qi <yao@codesourcery.com>
3175
3176 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
3177 (install_b_bl_blx): Likewise.
3178
3179 2011-09-17 Yao Qi <yao@codesourcery.com>
3180
3181 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
3182 (install_load_store): ... this. New.
3183 Change parameter BYTE to SIZE.
3184 (arm_copy_ldr_str_ldrb_strb): Update caller.
3185 (arm_decode_ld_st_word_ubyte): Update caller.
3186
3187 2011-09-17 Yao Qi <yao@codesourcery.com>
3188
3189 * infrun.c (displaced_step_fixup): Move some code ...
3190 (displaced_step_restore): ... here. New function.
3191 (handle_inferior_event): Cleanup displaced stepping state for both
3192 child and parent when get forked or vforked event.
3193 * regcache.c (get_thread_arch_aspace_regcache): New function.
3194 get_thread_arch_regcache (): Call it.
3195
3196 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3197
3198 * ada-tasks.c (print_ada_task_info): New function, merging
3199 short_task_info and info_tasks together. Reimplement using
3200 ui-out instead of printing to stdout directly. Move the code
3201 building and checking the task list here, instead of leaving it
3202 in info_tasks_command.
3203 (info_task): Move the code building and checking the task
3204 list here, instead of leaving it in info_tasks_command.
3205 (info_tasks_command): Delete code building and checking
3206 the task list - moved elsewhere. Update calls to info_tasks
3207 and info_task.
3208
3209 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3210
3211 * ada-tasks.c (info_task): Delete parameter `from_tty'.
3212
3213 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3214
3215 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
3216
3217 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3218
3219 * ada-lang.h (ada_build_task_list): Remove parameter
3220 `warn_if_null'.
3221 * ada-tasks.c (ada_build_task_list): Remove parameter
3222 `warn_if_null'. Adjust implementation and documentation.
3223 (valid_task_id, ada_get_environment_task)
3224 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
3225 (info_tasks_command): Adjust implementation.
3226 (task_command): Likewise.
3227 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
3228 to ada_build_task_list.
3229
3230 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3231
3232 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
3233 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
3234 (ada_tasks_inferior_data_handle): New static global.
3235 (get_ada_tasks_inferior_data): New function.
3236 (ada_get_task_number, get_task_number_from_id, valid_task_id)
3237 (ada_get_environment_task, iterate_over_live_ada_tasks)
3238 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
3239 Adjust.
3240 (ada_set_current_inferior_known_tasks_addr): New function.
3241 (read_known_tasks, ada_build_task_list, short_task_info)
3242 (info_tasks, info_task, info_tasks_command, task_command_1)
3243 (task_command, ada_task_list_changed): Adjust.
3244 (ada_tasks_invalidate_inferior_data): New function.
3245 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
3246 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
3247 * ada-lang.h (struct inferior): Add declaration.
3248 (ada_task_list_changed): Update profile.
3249 * remote-wtx-pd.c: #include "inferior.h".
3250 (switch_to_pd_internal): Update call to ada_task_list_changed.
3251
3252 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3253
3254 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
3255 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
3256 (atcb_fieldno): Delete these static globals.
3257 (struct ada_tasks_pspace_data): New struct.
3258 (ada_tasks_pspace_data_handle): New static global.
3259 (get_ada_tasks_pspace_data): New function.
3260 (ada_tasks_invalidate_pspace_data): New function.
3261 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
3262 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
3263 (_initialize_tasks): Create this module's per-progspace
3264 data handle.
3265
3266 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3267
3268 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
3269
3270 2011-09-16 Tristan Gingold <gingold@adacore.com>
3271
3272 * fork-child.c (fork_inferior): Update comment. Use alloca
3273 instead of xmalloc for argv. Move len and shell_command
3274 declarations in the block where they are used.
3275 Only call execvp. Factorize failure code.
3276
3277 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
3278
3279 Code cleanup.
3280 * parse.c (write_exp_elt): Change argument to pass a pointer of union
3281 `exp_element' instead of an element of the same and make the function
3282 static.
3283 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
3284 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
3285 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
3286 Change argument of `write_exp_elt' function call.
3287 Remove extra spaces from comments.
3288 * parser-defs.h (write_exp_elt): Remove prototype.
3289
3290 2011-09-15 Paul Koning <paul_koning@dell.com>
3291
3292 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3293 count of item appended to list.
3294 * python/py-type.c (typy_fields): Likewise.
3295
3296 2011-09-15 Paul Koning <paul_koning@dell.com>
3297
3298 * MAINTAINERS (Write After Approval): Add myself to the list.
3299
3300 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3301
3302 PR threads/12628
3303 * linux-fork.c (checkpoint_command): Disallow checkpointing of
3304 processes with multiple threads.
3305 (inf_has_multiple_thread_cb): New function.
3306 (inf_has_multiple_threads): New function.
3307
3308 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3309
3310 PR Python/12692 Add gdb.selected_inferior() to Python interface.
3311 * python/py-inferior.c (GdbMethods): New Python method definition.
3312
3313 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3314
3315 Handle multiple breakpoint hits in Python interface:
3316 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3317 variable to breakpoints.
3318 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3319 bps instead of single breakpoint. Fix some space typos.
3320 * python/py-stopevent.c (create_breakpoint_event_object): Rename
3321 variable to breakpoints.
3322
3323 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3324
3325 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3326 note if the breakpoint is internal.
3327
3328 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3329
3330 * MAINTAINERS (Write After Approval): Add myself to the list
3331
3332 2011-09-14 Pedro Alves <pedro@codesourcery.com>
3333
3334 * infrun.c (prepare_for_detach, wait_for_inferior)
3335 (fetch_inferior_event): Don't flush the register cache.
3336 * remote.c (struct stop_reply) <regcache>: Add comment.
3337
3338 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3339
3340 Remove excessive DWARF expressions memory duplication.
3341 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3342 for block.data.
3343 (indirect_pieced_value): Remove variable result. Remove variable
3344 back_to and its use for baton.data.
3345 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3346 block.data.
3347 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3348 Update the function comment.
3349
3350 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3351
3352 * inferior.h (ALL_INFERIORS): New.
3353 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3354 for a stopped thread.
3355 (thread_db_find_new_threads): Look for threads in all inferiors.
3356
3357 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3358
3359 * breakpoint.c (update_watchpoint): Handle the case of the
3360 watchpoint to update not being in the breakpoint list yet.
3361 (hw_watchpoint_use_count): New, factored out from
3362 hw_watchpoint_used_count.
3363 (hw_watchpoint_used_count): Rename to ...
3364 (hw_watchpoint_used_count_others): ... this. Add `except'
3365 parameter. Don't count resources of `except'. Use
3366 hw_watchpoint_use_count.
3367
3368 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3369
3370 * gdbthread.h (enum thread_state): Moved here.
3371 (struct thread_info): Rename `executing_' field to `executing' and
3372 `state_' to `state'.
3373 * thread.c (enum thread_state): Moved to gdbthread.h.
3374 (new_thread, add_thread_silent, delete_thread_1)
3375 (any_live_thread_of_process, thread_alive, set_running)
3376 (set_running, is_thread_state, any_running, is_executing)
3377 (set_executing, finish_thread_state, print_thread_info)
3378 (do_captured_thread_select): Adjust.
3379
3380 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3381
3382 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3383 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3384
3385 2011-09-12 Pedro Alves <pedro@codesourcery.com>
3386 Matt Rice <ratmice@gmail.com>
3387
3388 PR gdb/13175
3389
3390 * interps.c (struct interp) <interpreter_out>: Delete field.
3391 (interp_new): Remove the data and uiout parameters and adjust.
3392 (interp_set): Only set the current_uiout from the interpreter's
3393 uiout after initializing the interpreter. Adjust call to
3394 init_proc.
3395 (interp_ui_out): Adjust to call procs->ui_out_proc.
3396 (interp_data, interp_name): New.
3397 * interps.h (interp_init_ftype): Add `self' parameter.
3398 (interp_ui_out_ftype): New typedef.
3399 (struct interp_procs) <ui_out_proc>: New method pointer.
3400 (interp_new): Remove the data and uiout parameters.
3401 (interp_data, interp_name): Declare.
3402 * tui/tui-interp.c (tui_init): Adjust prototype.
3403 (tui_ui_out): New.
3404 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3405 tui_out here. Adjust call to interp_new.
3406 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3407 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3408 (cli_ui_out): New.
3409 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3410 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3411 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3412 Initialize mi->uiout depending on the mi_version as extracted from
3413 the interpreter's name.
3414 (mi_ui_out): New.
3415 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3416 interp_new. Don't allocate the ui_out's of the interpreters here.
3417
3418 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
3419
3420 * solib.c (solib_used): New function.
3421 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3422 by another so_list object before freeing it.
3423
3424 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3425
3426 Code cleanup.
3427 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3428 values.
3429
3430 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3431
3432 Code cleanup.
3433 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3434 (amd64_skip_xmm_prologue): ... this new function. Describe its
3435 parameters. No longer use amd64_prologue_line_bug.
3436 * defs.h (producer_is_gcc_ge_4): New declaration.
3437 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3438 (process_full_comp_unit): Update its caller. Remove
3439 amd64_prologue_line_bug initialization.
3440 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3441 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3442
3443 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3444
3445 * linux-nat.h (enum resume_kind): New.
3446 (struct lwp_info) <last_resume_kind>: New field.
3447 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3448 resume_stop on the new lwp.
3449 (add_lwp): Set last_resume_kind as resume_continue by default.
3450 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3451 (resume_lwp): New, factored out from resume_callback. Also check
3452 for pending status in lp->waitstatus.
3453 (resume_callback): Reimplement.
3454 (resume_clear_callback): Set last_resume_kind as resume_stop.
3455 (resume_set_callback): Set last_resume_kind as resume_continue.
3456 (linux_nat_resume, linux_handle_extended_wait): Set
3457 last_resume_kind.
3458 (running_callback): Also check lp->waitstatus for pending events.
3459 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3460 is resume_step.
3461 (stop_and_resume_callback): Don't re-resume if the core wanted the
3462 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3463 using an invalidated pointer.
3464 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3465 SIGSTOPs if the core wanted the LWP to stop.
3466 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3467 wanted the lwp to stop. If the core wanted the lwp to stop, and
3468 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3469 of TARGET_SIGNAL_STOP.
3470 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3471 here. Instead, signal the lwp, and set the last_resume_kind to
3472 resume_stop.
3473
3474 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3475
3476 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3477 -1 (error), if the lwp exits right after attaching.
3478
3479 2011-09-08 Doug Evans <dje@google.com>
3480
3481 * py-cmd.c: Some minor formatting fixes.
3482 (gdbpy_parse_command_name): Rename text arg to name, make const.
3483 All callers updated.
3484 * python-internal.h (gdbpy_parse_command_name): Update.
3485
3486 * cli/cli-decode.c (add_cmd): Add comment.
3487
3488 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3489
3490 PR breakpoints/12435
3491 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3492 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3493 * dwarf2read.c (process_full_comp_unit): Initialize
3494 amd64_prologue_line_bug.
3495 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3496
3497 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3498
3499 Fix TUI screen corruption.
3500 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3501 batch_flag.
3502
3503 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3504
3505 * findvar.c (read_var_value): Never return NULL, throw an error
3506 instead. Update the function comment. State symbol name in the error
3507 messages.
3508 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3509 read_var_value.
3510 * stack.c (print_frame_args): Likewise.
3511 * valops.c (value_of_variable): Likewise.
3512
3513 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3514
3515 * stack.c (print_frame_args): New variable except. Wrap
3516 read_var_value and common_val_print into TRY_CATCH.
3517
3518 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3519
3520 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3521 caller to value_of_this.
3522 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3523 Twice.
3524 * valops.c (value_of_this): Remove parameter complain and variable ret.
3525 Update function comment. Never return NULL by this code.
3526 (value_of_this_silent): New function.
3527 * value.h (value_of_this): Remove parameter complain.
3528 (value_of_this_silent): New declaration.
3529
3530 2011-09-07 Yao Qi <yao@codesourcery.com>
3531
3532 * gdbthread.h (struct thread_info): Remove fields
3533 `stepping_through_solib_after_catch' and
3534 `stepping_through_solib_catchpoints'.
3535 * infrun.c (init_thread_stepping_state): Update.
3536 (process_event_stop_test, currently_stepping): Update.
3537 (currently_stepping_or_nexting_callback): Update.
3538
3539 2011-09-07 Yao Qi <yao@codesourcery.com>
3540
3541 * gdbthread.h (struct thread_info): Comment on field
3542 `step_after_step_resume_breakpoint'.
3543
3544 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3545
3546 * remote.c (remote_console_output): Reindent.
3547
3548 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
3549
3550 * frame.c (has_stack_frames): Check for currently selected
3551 traceframe.
3552
3553 2011-09-06 Pedro Alves <pedro@codesourcery.com>
3554
3555 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3556 (set_async_annotation_level, set_async_prompt, pop_prompt)
3557 (push_prompt, new_async_prompt): Delete declarations.
3558 * top.h (get_prompt, set_prompt): Change prototype.
3559 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3560 declarations.
3561 * top.c (command_loop):
3562 (top_prompt): New global.
3563 (get_prefix, set_prefix, get_suffix, ): Delete.
3564 (get_prompt, set_prompt): Rewrite.
3565 (show_new_async_prompt): Rename to ...
3566 (show_prompt): ... this.
3567 (init_main): Adjust. Don't handle --annotate=2 here.
3568 * event-top.c (new_async_prompt): Delete.
3569 (the_prompts): Delete.
3570 (more_to_come): Make static.
3571 (display_gdb_prompt): Use top_level_prompt() to compute the top
3572 level prompt, and don't notify the before_prompt observers
3573 directly here. Always trick readline into not trying to display
3574 the prompt if sync_execution and displaying the primary prompt.
3575 If displaying a local/secondary prompt, always show it, even if
3576 sync_execution is set.
3577 (change_annotation_level): Delete.
3578 (top_level_prompt): New, based on change_annotation_level.
3579 (push_prompt, pop_prompt): Delete.
3580 (async_disable_stdin): No longer pushes prompt.
3581 (command_line_handler): No longer pushes or pops prompt. If more
3582 input is expected, call display_gdb_prompt with an explicit empty
3583 prompt.
3584 (async_stop_sig): Adjust.
3585 (set_async_annotation_level, set_async_prompt): Delete.
3586 * python/python.c (before_prompt_hook): Adjust.
3587
3588 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3589
3590 PR cli/13110
3591
3592 * infrun.c (fetch_inferior_event): Check if there's a selected
3593 thread before checking if the selected thread is executing.
3594
3595 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3596
3597 * inf-loop.c (execute_command): Don't check if the current thread
3598 if running before synchronously waiting for command completion.
3599 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3600 here.
3601 (normal_stop): Call async_enable_stdin here.
3602 * inf-loop.c (inferior_event_handler): Don't call
3603 async_enable_stdin, nor handle "set exec-done-display" here.
3604
3605 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3606
3607 GDB 7.3.1 released.
3608
3609 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3610
3611 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3612
3613 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3614
3615 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3616
3617 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3618
3619 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3620
3621 2011-09-02 Matt Rice <ratmice@gmail.com>
3622
3623 PR gdb/10720
3624 * event-top.c (cli_command_loop): Replace readline setup with
3625 direct call to display_gdb_prompt.
3626 (display_gdb_prompt): Do not call observer mechanism during
3627 synchronous execution.
3628
3629 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3630
3631 * linux-nat.c (in_pid_list_p): New.
3632 (linux_record_stopped_pid): Delete.
3633 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3634 already attached to the LWP. Return an indication if so.
3635 (linux_nat_filter_event): Adjust.
3636 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3637 returning an indication to ignore this thread.
3638
3639 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3640
3641 * top.c: Include interps.h.
3642 (execute_command): If the target can async, but the interpreter is
3643 in sync mode, synchronously wait for the command to finish before
3644 returning.
3645 (execute_command_to_string): Force the interpreter to sync mode.
3646 * infrun.c: Include interps.h.
3647 (fetch_inferior_event): Don't restore the prompt yet if the
3648 interpreter is in sync mode.
3649 * interps.c (interpreter_async): New global.
3650 * interps.h (interpreter_async): Declare.
3651 * inf-loop.c: Include interps.h.
3652 (inferior_event_handler): Don't print the language change or run
3653 breakpoint commands yet if the interpreter in is sync mode.
3654 * main.c (captured_command_loop): Flip the interpreter to async
3655 mode.
3656 * cli/cli-script.c: Include interps.h.
3657 (execute_user_command, while_command, if_command): Force the
3658 interpreter to sync mode.
3659 * python/python.c: Include interps.h.
3660 (python_command, execute_gdb_command): Force the interpreter to
3661 sync mode.
3662
3663 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3664
3665 * value.c (show_convenience): Catch errors thrown while printing
3666 each internal variable.
3667 * infrun.c (validate_siginfo_access): New function.
3668 (siginfo_value_read, siginfo_value_write): Call it.
3669
3670 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3671
3672 Revert:
3673 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3674 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3675 attribute.
3676
3677 2011-08-29 Yao Qi <yao@codesourcery.com>
3678
3679 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3680 (cmp_name): New.
3681 (enable_break2): Update caller.
3682 * solib-frv.c (bfd_lookup_symbol): Removed.
3683 (cmp_name): New.
3684 (enable_break2): Update caller.
3685 * solib-pa64.c (bfd_lookup_symbol): Removed.
3686 (cmp_name): New.
3687 * solib-svr4.c (bfd_lookup_symbol): Removed.
3688 (cmp_name_and_sec_flags): New.
3689 (enable_break): Update caller.
3690 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3691 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3692 (gdb_bfd_lookup_symbol): New.
3693 * solib.h: Functions declarations.
3694
3695 2011-08-29 Yao Qi <yao@codesourcery.com>
3696
3697 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3698 and solib-dsbt.o.
3699
3700 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3701
3702 Fix TUI stepi on code without symbols.
3703 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3704 current PC instead.
3705
3706 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3707
3708 Code cleanup.
3709 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3710 and the static keyword.
3711 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3712 Make prefix an array.
3713 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3714 * mi/mi-main.c (get_register): Remove stb initialization and the static
3715 keyword.
3716
3717 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3718
3719 Code cleanup - make mi_opt const.
3720 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3721 opts const.
3722 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3723 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3724 (mi_cmd_env_dir): Likewise.
3725 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3726 (mi_cmd_target_file_put): Likewise.
3727 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3728 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3729 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3730 (mi_valid_noargs): Make opts const.
3731 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3732 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3733 (mi_cmd_data_read_memory): Likewise.
3734 (mi_cmd_data_read_memory_bytes): Likewise.
3735 (mi_cmd_data_write_memory): Likewise.
3736
3737 2011-08-26 Matt Rice <ratmice@gmail.com>
3738
3739 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3740 bcache_xmalloc, replace bcache_xmalloc with call to
3741 psymbol_bcache_init for psymbol_cache.
3742 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3743
3744 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3745
3746 * inf-loop.c (inferior_event_handler): Add exception_print in
3747 INF_EXEC_COMPLETE.
3748
3749 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3750
3751 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3752 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3753 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3754 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3755 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3756 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3757 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3758 * infrun.c (fetch_inferior_event): Call
3759 make_bpstat_clear_actions_cleanup.
3760 * top.c (execute_command): New variable cleanup_if_error, call
3761 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3762 * utils.c (do_bpstat_clear_actions_cleanup)
3763 (make_bpstat_clear_actions_cleanup): New functions.
3764
3765 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3766
3767 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3768 either the parent or the child forks. Rename a couple locals.
3769
3770 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3771
3772 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3773 library call. Avoid reading the `status' local if all waitpid
3774 calls failed.
3775
3776 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3777
3778 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3779 opening /proc/PID/task always succeeds.
3780
3781 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3782
3783 * linespec.c (symtab_from_filename): Check for the end of string.
3784
3785 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3786
3787 PR mi/11912
3788 * varobj.c (cplus_describe_child): Add the keyword
3789 'class' to the output of the method when dealing
3790 with a cast to a base class.
3791
3792 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3793
3794 No functionality change.
3795 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3796 function comment a reference, new variables tp and bs, move here code
3797 from throw_exception.
3798 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3799 describe it in the comment.
3800 * exceptions.c (throw_exception): Remove variable tp, move the code for
3801 bpstat_clear_actions to bpstat_clear_actions.
3802
3803 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3804
3805 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3806 * linux-nat.c: Include linux-procfs.h.
3807 (linux_proc_get_tgid): Move to ...
3808 * common/linux-procfs.c: ... here. New file.
3809 * common/linux-procfs.h: New file.
3810 * linux-thread-db.c: Include linux-procfs.h.
3811 * Makefile.in: Update dependencies.
3812 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3813 * config/arm/linux.mh: Likewise.
3814 * config/i386/linux.mh: Likewise.
3815 * config/i386/linux64.mh: Likewise.
3816 * config/ia64/linux.mh: Likewise.
3817 * config/m32r/linux.mh: Likewise.
3818 * config/m68k/linux.mh: Likewise.
3819 * config/mips/linux.mh: Likewise.
3820 * config/pa/linux.mh: Likewise.
3821 * config/pa/linux.mh: Likewise.
3822 * config/powerpc/linux.mh: Likewise.
3823 * config/powerpc/ppc64-linux.mh: Likewise.
3824 * config/powerpc/spu-linux.mh: Likewise.
3825 * config/sparc/linux.mh: Likewise.
3826 * config/sparc/linux64.mh: Likewise.
3827 * config/xtensa/linux.mh: Likewise.
3828
3829 2011-08-24 Hui Zhu <teawater@gmail.com>
3830
3831 * tracepoint.c (cond_string_is_same): New function.
3832 (find_matching_tracepoint): Add condition check
3833 by cond_string_is_same.
3834
3835 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3836
3837 Fix build error in Darwin port.
3838 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3839
3840 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3841
3842 Code cleanup.
3843 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3844 (command_line_is_silent): New function.
3845 (bpstat_do_actions_1): No longer use commands_left, use
3846 command_line_is_silent for commands.
3847 (bpstat_alloc): Remove clearing of commands_left.
3848 (bpstat_stop_status): Remove initialization of commands_left, use
3849 command_line_is_silent.
3850 * breakpoint.h (struct bpstats): Remove commands_left.
3851
3852 2011-08-18 Keith Seitz <keiths@redhat.com>
3853
3854 PR c++/12266
3855 * cp-name-parser.y (struct demangle_info): Remove unused
3856 member PREV.
3857 (d_grab): Likewise.
3858 (allocate_info): Change return type to struct demangle_info *.
3859 Always allocate a new demangle_info.
3860 Remove unused PREV pointer.
3861 (cp_new_demangle_parse_info): New function.
3862 (cp_demangled_name_parse_free): New function.
3863 (do_demangled_name_parse_free_cleanup): New function.
3864 (make_cleanup_cp_demangled_name_parse_free): New function.
3865 (cp_demangled_name_to_comp): Change return type to
3866 struct demangle_parse_info *.
3867 Allocate a new storage for each call.
3868 (main): Update usage for cp_demangled_name_to_comp
3869 API change.
3870 * cp-support.h (struct demangle_parse_info): New structure.
3871 (cp_demangled_name_to_comp): Update API change for
3872 return type.
3873 (cp_new_demangle_parse_info): Declare.
3874 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3875 (cp_demangled_name_parse_free): Declare.
3876 * cp-support.c (cp_canonicalize_string): Update API
3877 change for cp_demangled_name_to_comp.
3878 (mangled_name_to_comp): Likewise.
3879 Return struct demangle_parse_info, too.
3880 (cp_class_name_from_physname): Update mangled_name_to_comp
3881 API change.
3882 (method_name_from_physname): Likewise.
3883 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3884 (cp_remove_params): Likewise.
3885 * python/py-type.c (typy_legacy_template_argument): Likewise.
3886
3887 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3888 (cp_merge_demangle_parse_infos): Declare.
3889 * cp-support.c (ignore_typedefs): New file global.
3890 (copy_string_to_obstack): New function.
3891 (inspect_type): New function.
3892 (replace_typedefs): New function.
3893 (replace_typedefs_qualified_name): New function.
3894 (cp_canonicalize_string_no_typedefs): New function.
3895 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3896 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3897 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3898 instead of cp_canonicalize_string.
3899 (find_method): Likewise.
3900 (decode_compound): Before looking up the name, call
3901 cp_canonicalize_string_no_typedefs.
3902 (decode_variable): Likewise.
3903
3904 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3905 Tom Tromey <tromey@redhat.com>
3906 Matt Rice <ratmice@gmail.com>
3907
3908 * python/lib/gdb/prompt.py: New file.
3909 * python/lib/gdb/command/prompt.py: New file.
3910 * NEWS: Document set extended-prompt and gdb.prompt library
3911
3912 2011-08-16 Yao Qi <yao@codesourcery.com>
3913
3914 * tic6x-linux-tdep.c: Move const arrays definition from here...
3915 * tic6x-tdep.c: to here ...
3916
3917 2011-08-14 Yao Qi <yao@codesourcery.com>
3918
3919 * NEWS: New port to Texas Instruments TMS320C6x.
3920
3921 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3922 Bernd Schmidt <bernds@codesourcery.com>
3923 Yao Qi <yao@codesourcery.com>
3924
3925 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3926 * solib-dsbt.c: New file. Support DSBT shared object.
3927 * tic6x-linux-tdep.c: New file.
3928 * tic6x-tdep.c: New file.
3929 * tic6x-tdep.h: New file.
3930
3931 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3932 Yao Qi <yao@codesourcery.com>
3933
3934 * remote.c (PACKET_qXfer_fdpic): New enum value.
3935 (remote_protocol_features): Add qXfer:fdpic:read packet.
3936 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3937 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3938 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3939
3940 2011-08-14 Yao Qi <yao@codesourcery.com>
3941
3942 Target description for tic6x.
3943 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3944 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3945 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3946 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3947 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3948 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3949 * features/tic6x-c64xp-linux.xml: New.
3950 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3951 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3952 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3953 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3954 * regformats/tic6x-c64xp.dat,
3955 regformats/tic6x-c62x-linux.dat: Generated.
3956 * regformats/tic6x-c64x-linux.dat,
3957 regformats/tic6x-c64xp-linux.dat: Generated.
3958 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3959 features/tic6x-*.c files.
3960 Add regformats/tic6x-*.dat files.
3961
3962 2011-08-12 Doug Evans <dje@google.com>
3963
3964 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3965 * python/py-symbol.c (sympy_get_type): New function.
3966 (symbol_object_getset): Add "type".
3967
3968 2011-08-12 Pedro Alves <pedro@codesourcery.com>
3969
3970 PR tui/13073
3971
3972 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3973 empty name.
3974 (tui_show_register_group): Don't store a byte buffer in the data
3975 element's value.
3976 (tui_register_format): Skip registers with an empty name.
3977 (tui_get_register): Store a struct value in the data element's
3978 value field instead of a byte buffer holding the raw register
3979 contents. Account for optimized-out and unavailable registers
3980 when comparing register contents.
3981
3982 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3983
3984 * printcmd.c (current_display_number): Update comment.
3985 (disable_current_display_cleanup): Delete.
3986 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3987 catch errors thrown while evaluating and printing the display.
3988
3989 2011-08-09 Tom Tromey <tromey@redhat.com>
3990
3991 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3992
3993 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3994
3995 * elfread.c (elf_symtab_read): Rework comments.
3996 * maint.c (maintenance_command): Ditto.
3997 * somread.c (som_symtab_read): Ditto.
3998 * solib.c (solib_find, solib_map_sections, update_solib_list)
3999 (solib_add, info_sharedlibrary_command, solib_name_from_address)
4000 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4001 (sharedlibrary_command, no_shared_libraries): Ditto.
4002 * solib-irix.c (locate_base, disable_break, enable_break)
4003 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
4004 (irix_current_sos, irix_open_symbol_file_object)
4005 (irix_special_symbol_handling): Ditto.
4006 * solib-sunos.c (locate_base, first_link_map_member)
4007 (sunos_current_sos, disable_break, enable_break)
4008 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
4009 Ditto.
4010 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
4011 (open_symbol_file_object, svr4_current_sos, enable_break)
4012 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
4013 Ditto.
4014 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
4015 (frv_current_sos, enable_break, frv_special_symbol_handling)
4016 (frv_solib_create_inferior_hook): Ditto.
4017 * solist.h (struct target_so_ops): Extend the comments of the
4018 special_symbol_handling, current_sos and open_symbol_file_object
4019 methods.
4020
4021 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
4022
4023 * python/lib/gdb/__init__.py: Auto-load files in command and
4024 function directories.
4025 * python/python.c (finish_python_initialization): Use
4026 os.path.join.
4027 * python/lib/gdb/command/pretty_printers.py: Self register
4028 command.
4029 * NEWS: Document auto-loading.
4030
4031 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4032
4033 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
4034 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
4035 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
4036
4037 2011-08-08 Tom Tromey <tromey@redhat.com>
4038
4039 * breakpoint.c (clean_up_filters): Remove.
4040 (catch_syscall_split_args): Use VEC_cleanup.
4041
4042 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4043
4044 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
4045 (main): Uncomment "Demangling error\n".
4046
4047 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
4048
4049 * solib-target.c (segment_attributes): Make them static.
4050 (section_attributes, library_children, library_attributes): Likewise.
4051 (library_list_children, library_list_attributes): Likesise.
4052 (library_list_elements): Likewise.
4053
4054 2011-08-05 Pedro Alves <pedro@codesourcery.com>
4055
4056 * exceptions.c (throw_exception): Don't disable the current
4057 display.
4058 * printcmd.c (disable_current_display_cleanup): New function.
4059 (do_one_display): Install a cleanup to disable the current display
4060 if doing the display throws.
4061
4062 2011-08-05 Eli Zaretskii <eliz@gnu.org>
4063
4064 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
4065 initialization of the tp_new member to the corresponding
4066 gdbpy_initialize_* function.
4067 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
4068 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
4069 * python/py-function.c (gdbpy_initialize_functions): Likewise.
4070 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
4071 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
4072
4073 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4074
4075 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
4076 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
4077 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
4078 references to current_uiout.
4079
4080 2011-08-04 Pedro Alves <pedro@codesourcery.com>
4081
4082 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
4083 (start_event_loop): Use TRY_CATCH instead of catch_errors.
4084 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
4085 * top.c (gdb_readline_wrapper): Adjust.
4086 * tui/tui-interp.c (tui_command_loop):
4087 (_initialize_tui_interp): Don't install it.
4088
4089 2011-08-04 Pedro Alves <pedro@codesourcery.com>
4090
4091 * ui-out.h (uiout): Rename to ...
4092 (current_uiout): ... this.
4093 * ui-out.c (uiout): Rename to ...
4094 (current_uiout): ... this.
4095 * ada-lang.c (print_it_exception, print_one_exception)
4096 (print_mention_exception): Adjust.
4097 * breakpoint.c (watchpoint_check): Adjust.
4098 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
4099 (default_collect_info, watchpoints_info, print_one_catch_fork)
4100 (print_one_catch_vfork, print_one_catch_syscall)
4101 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
4102 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
4103 (print_it_watchpoint, print_mention_watchpoint)
4104 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
4105 (print_it_exception_catchpoint, print_one_exception_catchpoint)
4106 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
4107 (bkpt_print_mention, momentary_bkpt_print_it)
4108 (tracepoint_print_mention, update_static_tracepoint)
4109 (tracepoints_info, save_breakpoints): Adjust.
4110 * cli-out.c (field_separator): Adjust.
4111 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
4112 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
4113 * frame.c (get_current_frame): Adjust.
4114 * infcmd.c (run_command_1, print_return_value): Adjust.
4115 * inferior.c (inferior_command, info_inferiors_command): Adjust.
4116 * infrun.c (print_end_stepping_range_reason): Adjust.
4117 (print_signal_exited_reason, print_exited_reason): Adjust.
4118 (print_signal_received_reason, print_no_history_reason): Adjust.
4119 * interps.c (interp_set): Adjust.
4120 * osdata.c (info_osdata_command): Adjust.
4121 * progspace.c (maintenance_info_program_spaces_command): Adjust.
4122 * remote-fileio.c (remote_fileio_request): Adjust.
4123 * remote.c (show_remote_cmd): Adjust.
4124 * solib.c (info_sharedlibrary_command): Adjust.
4125 * source.c (print_source_lines_base): Adjust.
4126 * stack.c (print_stack_frame): Adjust.
4127 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
4128 * symfile-mem.c (add_vsyscall_page): Adjust.
4129 * symfile.c (load_progress, generic_load)
4130 (print_transfer_performance): Adjust.
4131 * thread.c (info_threads_command, restore_selected_frame)
4132 (thread_command): Adjust.
4133 * top.c (make_cleanup_restore_ui_file): Adjust.
4134 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
4135 (print_one_static_tracepoint_marker): Adjust.
4136 * cli/cli-cmds.c (print_disassembly): Adjust.
4137 * cli/cli-decode.c (print_doc_line): Adjust.
4138 * cli/cli-interp.c (safe_execute_command): Adjust.
4139 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
4140 (handle_redirections): Adjust.
4141 * cli/cli-script.c (show_user_1): Adjust.
4142 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
4143 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4144 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
4145 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
4146 (mi_cmd_env_dir): Adjust.
4147 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
4148 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
4149 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4150 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
4151 (list_args_or_locals): Adjust.
4152 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4153 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
4154 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
4155 (mi_cmd_var_list_children, mi_cmd_var_info_type)
4156 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
4157 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
4158 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
4159 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
4160 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
4161 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
4162 (list_available_thread_groups, mi_cmd_list_thread_groups)
4163 (mi_cmd_data_list_register_names)
4164 (mi_cmd_data_list_changed_registers)
4165 (mi_cmd_data_list_register_values, get_register)
4166 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
4167 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
4168 (mi_cmd_list_target_features, mi_cmd_add_inferior)
4169 (mi_execute_command, mi_load_progress): Adjust.
4170 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
4171 * python/py-auto-load.c (print_script, info_auto_load_scripts):
4172 Adjust.
4173 * python/py-breakpoint.c (bppy_get_commands): Adjust.
4174 * tui/tui-interp.c (tui_command_loop): Adjust.
4175 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
4176
4177 2011-08-04 Pedro Alves <pedro@codesourcery.com>
4178
4179 * exceptions.c (struct catcher): Remove saved_uiout field.
4180 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
4181 no longer save/resvore the global ui_out builder.
4182 (catch_exceptions_with_msg): Save/override/restore the global
4183 ui_out builder manually instead of relying on TRY_CATCH to do it.
4184 (catch_errors): Save/restore the global ui_out builder manually
4185 instead of relying on TRY_CATCH to do it.
4186 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
4187 parameter.
4188 (TRY_CATCH): Adjust.
4189 * cli/cli-interp.c (safe_execute_command): Save/override/restore
4190 the global ui_out builder manually instead of relying on TRY_CATCH
4191 to do it.
4192
4193 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4194
4195 * breakpoint.c (update_global_location_list): Ensure
4196 invariant 'first loc marked not duplicated and inserted,
4197 following locs marked duplicated/not inserted' is respected
4198 for multiple locations at the same address.
4199 (unduplicated_should_be_inserted) New function.
4200 (swap_insertion) New function.
4201
4202 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4203
4204 * stack.c (print_frame_arguments_choices): Comment typo fix.
4205
4206 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
4207
4208 Revert:
4209 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4210 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4211 argument. Update callers.
4212
4213 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4214
4215 PR gdb/13045
4216 * doublest.c (convert_doublest_to_floatformat): Pass correct
4217 mantissa length to put_field.
4218
4219 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4220
4221 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
4222 exception_print code path.
4223 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
4224 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
4225 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
4226
4227 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4228
4229 Code cleanup.
4230 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
4231 Remove, merge them into ...
4232 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
4233 variable args and its initialization.
4234 (struct print_args_args, print_args_stub): Remove, merge them into
4235 print_frame.
4236 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
4237 them into ...
4238 (do_gdb_disassembly): ... here. Remove variable args and its
4239 initialization.
4240 (print_frame): Remove variable args and its initialization, new
4241 variable gdbarch and numargs (from print_args_stub), inline here
4242 print_args_stub with a TRY_CATCH.
4243 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
4244 them into ...
4245 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
4246 New variable e, remove variable btargs and its initialization.
4247
4248 2011-08-01 Tristan Gingold <gingold@adacore.com>
4249
4250 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
4251
4252 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4253
4254 * breakpoint.c (insert_bp_location): Document return value.
4255 (insert_breakpoint_locations): Fix documentation.
4256 (remove_breakpoints): Add documentation.
4257
4258 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4259
4260 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4261 argument. Update callers.
4262
4263 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4264
4265 * stack.c (print_frame_info): Comment typo fix.
4266
4267 2011-07-29 Sterling Augustine <saugustine@google.com>
4268
4269 * MAINTAINERS (Write After Approval): Add myself to the list.
4270
4271 2011-07-29 Tom Tromey <tromey@redhat.com>
4272
4273 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
4274 (library_list_start_segment): Update.
4275 (library_list_start_section): Update.
4276
4277 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
4278
4279 * varobj.c (value_get_print_value): Move hint check later into the
4280 function. Comment function. Free thevalue before reusing it.
4281
4282 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4283 Pedro Alves <pedro@codesourcery.com>
4284
4285 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
4286 value_one.
4287 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
4288 Assert the result kind.
4289 * value.h (value_one): Remove parameter lv.
4290
4291 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4292
4293 Fix crash on lval_computed values.
4294 * valops.c (value_zero): Use not_lval for lval_computed.
4295
4296 2011-07-27 Tom Tromey <tromey@redhat.com>
4297
4298 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4299 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4300
4301 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4302
4303 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4304 "ptype" by their typedefs difference.
4305
4306 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4307
4308 * dwarf2expr.c (ctx_no_read_reg): New function.
4309 * dwarf2expr.h (ctx_no_read_reg): New declaration.
4310 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4311 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4312 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4313
4314 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4315
4316 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4317 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4318 file.
4319 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4320 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4321 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4322 (ctx_no_get_base_type): Move the functions here.
4323 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4324 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4325 (ctx_no_get_base_type): New declarations.
4326
4327 2011-07-27 Tom Tromey <tromey@redhat.com>
4328
4329 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4330 entries.
4331 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4332 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4333
4334 2011-07-26 Sterling Augustine <saugustine@google.com>
4335
4336 * cli/cli-dump.c (dump_binary_file): Change parameter type to
4337 ULONGEST.
4338 (dump_bfd_file): Likewise.
4339
4340 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4341
4342 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4343 (remote_hw_watchpoint_length_limit): New variable.
4344 (_initialize_remote) add set,show cmds for this new variable.
4345 * gdb.texinfo: document these new commands.
4346 * NEWS: Mention these new commands.
4347
4348 2011-07-26 Pedro Alves <pedro@codesourcery.com>
4349
4350 * breakpoint.c (works_in_software_mode_watchpoint): Also return
4351 true for software watchpoints.
4352
4353 2011-07-26 Joel Brobecker <brobecker@adacore.com>
4354
4355 GDB 7.3 released.
4356
4357 2011-07-26 Tom Tromey <tromey@redhat.com>
4358
4359 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4360 * dwarf2read.c (read_indirect_string_at_offset): New function.
4361 (read_indirect_string): Use it.
4362 (dwarf_decode_macro_bytes): New function, taken from
4363 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
4364 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
4365 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4366 New functions.
4367 (struct dwarf2_per_objfile) <macro>: New field.
4368 (dwarf2_elf_names): Add .debug_macro.
4369 (dwarf2_macros_too_long_complaint): Add 'section' argument.
4370 (dwarf2_locate_sections): Handle new section.
4371 (read_file_scope): Handle DW_AT_GNU_macros.
4372 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4373
4374 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4375
4376 * NEWS: Mention dcache configuration.
4377 * dcache.c (dcache_set_list, dcache_show_list): New variables.
4378 (dcache_size, dcache_line_size): New variables.
4379 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4380 (struct dcache_block): Make it expandable.
4381 (struct dcache_struct): New field.
4382 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4383 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4384 (dcache_poke_byte, dcache_print_line): Adjust.
4385 (set_dcache_size, set_dcache_line_size): New functions.
4386 (set_dcache_command, show_dcache_command): New functions.
4387 (_initialize_dcache): Add new commands.
4388
4389 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4390
4391 * progspace.h (struct program_space): Add solib_add_generation.
4392 * infcmd.c (post_create_inferior): Only call solib_add if not
4393 already done.
4394 * solib.c (solib_add): Increment solib_add_generation.
4395
4396 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4397
4398 Fix implicit pointer offsets.
4399 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4400 ptr.OFFSET.
4401
4402 2011-07-25 Tom Tromey <tromey@redhat.com>
4403
4404 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4405 const.
4406 (ada_exception_sal): Make 'ops' const.
4407 (ada_decode_exception_location): Likewise.
4408 (ada_decode_assert_location): Likewise.
4409 (catch_assert_command): Update.
4410 (catch_ada_exception_command): Update.
4411 (create_ada_exception_catchpoint): Make 'ops' const.
4412 * breakpoint.c (set_raw_breakpoint_without_location)
4413 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4414 const.
4415 (create_internal_breakpoint): Update.
4416 (init_raw_breakpoint_without_location): Make 'ops' const.
4417 (init_raw_breakpoint, init_catchpoint)
4418 (create_fork_vfork_event_catchpoint)
4419 (create_syscall_event_catchpoint, init_breakpoint_sal)
4420 (create_breakpoint_sal, create_breakpoints_sal)
4421 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4422 * breakpoint.h (struct breakpoint) <ops>: Now const.
4423 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4424 const.
4425
4426 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4427
4428 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4429
4430 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4431
4432 * breakpoint.h (print_recreate_thread): Declare.
4433 (struct breakpoint): Move step_count, pass_count,
4434 number_on_target, static_trace_marker_id,
4435 static_trace_marker_id_idx ...
4436 (struct tracepoint): ... to this new struct.
4437 (get_tracepoint, get_tracepoint_by_number_on_target)
4438 (get_tracepoint_by_number): Change return type to struct
4439 tracepoint pointer.
4440 * breakpoint.c (is_tracepoint_type): New, factored out from
4441 is_tracepoint.
4442 (is_tracepoint): Adjust.
4443 (print_one_breakpoint_location): Cast to struct tracepoint as
4444 necessary, and adjust.
4445 (print_recreate_catch_fork, print_recreate_catch_vfork)
4446 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4447 print_recreate_thread.
4448 (init_breakpoint_sal): New, factored out from
4449 create_breakpoint_sal.
4450 (create_breakpoint_sal): Reimplement.
4451 (create_breakpoint): Allocate a struct tracecepoint if the caller
4452 wanted a tracepoint. Use init_breakpoint_sal and
4453 install_breakpoint.
4454 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4455 (print_recreate_masked_watchpoint)
4456 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4457 (tracepoint_print_one_detail): Adjust.
4458 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4459 Dump the pass count here.
4460 (update_static_tracepoint): Adjust.
4461 (addr_string_to_sals): Adjust.
4462 (create_tracepoint_from_upload): Adjust. Change return type to
4463 struct tracepoint pointer.
4464 (trace_pass_set_count): Change parameter type to struct tracepoint
4465 pointer, and adjust.
4466 (trace_pass_command): Adjust.
4467 (get_tracepoint, get_tracepoint_by_number_on_target)
4468 (get_tracepoint_by_number): Change return type to struct
4469 tracepoint pointer, and adjust.
4470 (print_recreate_thread): New, factored out from save_breakpoints.
4471 (save_breakpoints): Don't print thread and task and passcount
4472 recreation here.
4473 * remote.c (remote_download_tracepoint): Adjust.
4474 * tracepoint.c (trace_actions_command, validate_actionline)
4475 (start_tracing, tfind_1, trace_find_tracepoint_command)
4476 (trace_dump_command): Adjust.
4477 (find_matching_tracepoint): Change return type to struct
4478 tracepoint pointer, and adjust.
4479 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4480 (tfile_trace_find, tfile_fetch_registers): Adjust.
4481 * tracepoint.h (create_tracepoint_from_upload): Change return type
4482 to struct tracepoint pointer.
4483 * ada-lang.c (print_recreate_exception): Call
4484 print_recreate_thread.
4485 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4486
4487 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4488
4489 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4490 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4491 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4492 watchpoint_thread, watchpoint_triggered ...
4493 (struct watchpoint): ... to this new struct.
4494 (is_watchpoint): Declare.
4495 (install_breakpoint): Add new `internal' parameter.
4496 * breakpoint.c (is_watchpoint): Delete declaration.
4497 (set_breakpoint_condition): Handle watchpoints.
4498 (is_watchpoint): Make public.
4499 (watchpoint_in_thread_scope): Change parameter type to struct
4500 watchpoint.
4501 (watchpoint_del_at_next_stop): Change parameter type to struct
4502 watchpoint. Remove assertion. Adjust.
4503 (update_watchpoint): Ditto.
4504 (insert_breakpoints, breakpoint_init_inferior)
4505 (watchpoints_triggered, watchpoint_check)
4506 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4507 (bpstat_stop_status, print_one_breakpoint_location)
4508 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4509 to struct watchpoint as necessary, and adjust.
4510 (install_breakpoint): Add `internal' argument. If true, don't
4511 mention the new breakpoint. Use set_breakpoint_number.
4512 (create_fork_vfork_event_catchpoint)
4513 (create_syscall_event_catchpoint): Adjust.
4514 (dtor_watchpoint): New.
4515 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4516 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4517 (print_it_watchpoint, print_mention_watchpoint)
4518 (print_recreate_watchpoint, insert_masked_watchpoint)
4519 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4520 (print_one_detail_masked_watchpoint)
4521 (print_mention_masked_watchpoint)
4522 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4523 necessary, and adjust.
4524 (watch_command_1): Allocate and initialize a struct watchpoint
4525 instead of a struct breakpoint. Use install_breakpoint.
4526 (catch_exec_command_1): Adjust.
4527 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4528 fields.
4529 (delete_breakpoint, enable_breakpoint_disp)
4530 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4531 as necessary, and adjust.
4532 (initialize_breakpoint_ops): Install dtor_watchpoint as
4533 watchpoints' dtor method.
4534 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4535 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4536 to struct watchpoint as necessary, and adjust.
4537
4538 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4539
4540 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4541 the the base class ops table.
4542 (catch_exception_breakpoint_ops)
4543 (catch_exception_unhandled_breakpoint_ops)
4544 (catch_assert_breakpoint_ops): Don't statically initialize.
4545 (initialize_ada_catchpoint_ops): New.
4546 (_initialize_ada_language): Call it.
4547 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4548 (bkpt_breakpoint_ops): Forward declare.
4549 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4550 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4551 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4552 (masked_watchpoint_breakpoint_ops)
4553 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4554 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4555 base class ops table.
4556 (null_re_set, null_check_status, null_works_in_software_mode)
4557 (null_resources_needed, null_print_one_detail): Delete.
4558 (bkpt_dtor): Rename to ...
4559 (base_breakpoint_dtor): ... this. Make static.
4560 (bkpt_allocate_location): Rename to ...
4561 (base_breakpoint_allocate_location): ... this. Make static.
4562 (base_breakpoint_re_set): New.
4563 (internal_error_pure_virtual_called): New.
4564 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4565 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4566 (base_breakpoint_works_in_software_mode)
4567 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4568 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4569 (base_breakpoint_print_recreate): New functions.
4570 (base_breakpoint_ops): New global.
4571 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4572 (bkpt_breakpoint_hit): Make static.
4573 (bkpt_check_status): Delete.
4574 (bkpt_resources_needed): Make static.
4575 (bkpt_works_in_software_mode): Delete.
4576 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4577 static.
4578 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4579 (momentary_breakpoint_ops): Don't statically initialize.
4580 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4581 Delete.
4582 (tracepoint_insert_location, tracepoint_remove_location)
4583 (tracepoint_check_status, tracepoint_works_in_software_mode)
4584 (tracepoint_print_it): Delete.
4585 (tracepoint_breakpoint_ops): Don't statically initialize.
4586 (initialize_breakpoint_ops): New.
4587 (_initialize_breakpoint): Call it.
4588 * breakpoint.h (null_re_set, null_works_in_software_mode)
4589 (null_resources_needed, null_check_status, null_print_one_detail):
4590 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4591 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4592 (bkpt_check_status, bkpt_resources_needed)
4593 (bkpt_works_in_software_mode, bkpt_print_it)
4594 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4595 Delete declarations.
4596 (initialize_breakpoint_ops): Declare.
4597
4598 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4599
4600 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4601 (momentary_bkpt_print_it): Simplify.
4602
4603 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4604
4605 Split internal, momentary and user breakpoints breakpoint_ops
4606 tables.
4607
4608 * breakpoint.c (internal_breakpoint_ops)
4609 (momentary_breakpoint_ops): Forward declare.
4610 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4611 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4612 (create_overlay_event_breakpoint)
4613 (create_std_terminate_master_breakpoint)
4614 (create_exception_master_breakpoint): Create breakpoints with
4615 internal_breakpoint_ops vtable.
4616 (set_longjmp_breakpoint): Create momentary breakpoints with
4617 momentary_breakpoint_ops vtable, using
4618 momentary_breakpoint_from_master.
4619 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4620 (create_solib_event_breakpoint): Create breakpoints with
4621 internal_breakpoint_ops vtable.
4622 (set_momentary_breakpoint): Create breakpoints with
4623 momentary_breakpoint_ops vtable.
4624 (momentary_breakpoint_from_master): New, factored out from
4625 clone_momentary_breakpoint.
4626 (clone_momentary_breakpoint): Adjust.
4627 (watch_command_1): Create scope breakpoints with
4628 momentary_breakpoint_ops vtable.
4629 (bkpt_re_set): Remove handling of internal and momentary
4630 breakpoints.
4631 (bkpt_print_mention, bkpt_print_recreate): New.
4632 (bkpt_breakpoint_ops): Adjust.
4633 (internal_bkpt_re_set, internal_bkpt_check_status)
4634 (internal_bkpt_print_it, internal_bkpt_print_mention)
4635 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4636 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4637 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4638 (momentary_bkpt_print_recreate): New.
4639 (momentary_breakpoint_ops): New.
4640
4641 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4642
4643 Implement most breakpoint_ops methods for all breakpoint types,
4644 and move the default handlings to the proper callbacks.
4645
4646 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4647 works_in_software_mode method.
4648 (insert_bp_location): Go through breakpoint_ops->insert_location
4649 for software and hardware watchpoints.
4650 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4651 breakpoint_ops.
4652 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4653 for software and hardware watchpoints.
4654 (print_it_typical): Delete.
4655 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4656 method.
4657 (watchpoint_check): Adjust comment.
4658 (bpstat_check_location): Simply always call the breakpoint's
4659 breakpoint_hit method.
4660 (bpstat_stop_status): Always call the breakpoint's check_status
4661 method. Remove special cases for watchpoints and internal event
4662 breakpoints from here (moved to the check_status implementations).
4663 (print_one_breakpoint_location): Assume b->ops is never NULL.
4664 Remove static tracepoint marker id printing from here (moved to
4665 the print_one_detail callback implementation of tracepoints).
4666 (init_bp_location): Assert OPS is never NULL.
4667 (allocate_bp_location): Always call the breakpoint's
4668 allocate_location method, and remove the default code from here.
4669 (free_bp_location): Always call the location's dtor method, and
4670 remove the default code from here.
4671 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4672 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4673 parameter. Pass it down.
4674 (set_raw_breakpoint): Ditto.
4675 (print_it_catch_fork): Adjust to take a bpstat as argument.
4676 (catch_fork_breakpoint_ops): Install methods.
4677 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4678 (catch_vfork_breakpoint_ops): Install methods.
4679 (dtor_catch_syscall): Call the base dtor.
4680 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4681 (catch_syscall_breakpoint_ops): Install methods.
4682 (dtor_catch_exec): Call the base dtor.
4683 (print_it_catch_exec): Adjust to take a bpstat as argument.
4684 (catch_exec_breakpoint_ops): Install methods.
4685 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4686 the breakpoint's resources_needed method, and remove the default
4687 code from here.
4688 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4689 breakpoint_ops.
4690 (clone_momentary_breakpoint): Clone the original's ops.
4691 (mention): Always call the breakpoint's print_mention method, and
4692 remove the default code from here.
4693 (create_breakpoint_sal): Adjust to pass the ops to
4694 set_raw_breakpoint rather than setting it manually.
4695 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4696 ops to set_raw_breakpoint_without_location rather than setting it
4697 manually.
4698 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4699 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4700 (ranged_breakpoint_ops): Install methods.
4701 (break_range_command): Adjust to pass the ops to
4702 set_raw_breakpoint rather than setting it manually.
4703 (re_set_watchpoint, breakpoint_hit_watchpoint)
4704 (check_status_watchpoint, resources_needed_watchpoint)
4705 (works_in_software_mode_watchpoint, print_it_watchpoint)
4706 (print_mention_watchpoint, print_recreate_watchpoint): New
4707 functions.
4708 (watchpoint_breakpoint_ops): Install new methods.
4709 (print_it_masked_watchpoint): New function.
4710 (masked_watchpoint_breakpoint_ops): Install new methods.
4711 (watch_command_1): Adjust to pass the right breakpoint_ops to
4712 set_raw_breakpoint_without_location rather than setting it
4713 manually later. Record the current pspace.
4714 (print_it_exception_catchpoint): Adjust to take a bpstat as
4715 argument.
4716 (gnu_v3_exception_catchpoint_ops): Install new methods.
4717 (say_where): New function.
4718 (null_re_set, null_check_status, null_works_in_software_mode)
4719 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4720 New functions.
4721 (bp_location_ops): New global.
4722 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4723 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4724 (bkpt_check_status, bkpt_resources_needed)
4725 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4726 (bkpt_print_recreate): New functions.
4727 (bkpt_breakpoint_ops): New global.
4728 (tracepoint_re_set, tracepoint_insert_location)
4729 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4730 (tracepoint_check_status, tracepoint_works_in_software_mode)
4731 (tracepoint_print_it, tracepoint_print_one_detail)
4732 (tracepoint_print_mention, tracepoint_print_recreate): New
4733 functions.
4734 (tracepoint_breakpoint_ops): New global.
4735 (delete_breakpoint): Always call the breakpoint's dtor method, and
4736 remove the default handling from here.
4737 (breakpoint_re_set_default): Make static.
4738 (breakpoint_re_set_one): Always call the breakpoints re_set
4739 method, and remove the default handling from here.
4740 (trace_command, ftrace_command, strace_command)
4741 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4742 to create_breakpoint.
4743 (save_breakpoints): Always call the breakpoint's print_recreate
4744 method, and remove the default handling from here.
4745
4746 * ada-lang.c (dtor_exception): Call the base dtor.
4747 (re_set_exception): Call the base method.
4748 (print_it_exception, print_it_catch_exception): Adjust to take a
4749 bpstat as argument.
4750 (catch_exception_breakpoint_ops): Install methods.
4751 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4752 argument.
4753 (catch_exception_unhandled_breakpoint_ops): Install methods.
4754 (print_it_catch_assert): Adjust to take a bpstat as argument.
4755 (catch_assert_breakpoint_ops): Install methods.
4756
4757 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4758 to take a bpstat as argument.
4759 (enum print_stop_action): Add describing comments to each enum
4760 value.
4761 (breakpoint_re_set_default): Delete declaration.
4762 (null_re_set, null_works_in_software_mode, null_resources_needed)
4763 (null_check_status, null_print_one_detail): Declare.
4764 (bkpt_breakpoint_ops): Declare.
4765 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4766 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4767 (bkpt_check_status, bkpt_resources_needed)
4768 (bkpt_works_in_software_mode, bkpt_print_it)
4769 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4770 Declare.
4771
4772 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4773 bkpt_breakpoint_ops.
4774 * python/py-breakpoint.c (bppy_init): Ditto.
4775
4776 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4777
4778 * MAINTAINERS (Write After Approval): Add myself to the list.
4779
4780 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4781
4782 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4783
4784 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4785
4786 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4787 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4788 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4789 adjust.
4790 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4791 (struct i386_debug_reg_state): New.
4792 (i386_init_dregs): New.
4793 (dr_mirror): New.
4794 (i386_cleanup_dregs): Use i386_init_dregs.
4795 (i386_show_dr): Add state parameter and adjust.
4796 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4797 the inferior here.
4798 (i386_remove_aligned_watchpoint): Likewise.
4799 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4800 (i386_update_inferior_debug_regs): New.
4801 (i386_insert_watchpoint): Work on a local mirror of the debug
4802 registers, and only update the inferior on success.
4803 (i386_remove_watchpoint): Ditto.
4804 (i386_region_ok_for_watchpoint): Adjust.
4805 (i386_stopped_data_address): Adjust.
4806 (i386_insert_hw_breakpoint): Adjust.
4807 (i386_remove_hw_breakpoint): Adjust.
4808
4809 2011-07-22 Tom Tromey <tromey@redhat.com>
4810
4811 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4812 from amd64_pseudo_register_read. Change arguments. Call
4813 mark_value_bytes_unavailable when needed.
4814 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4815 set_gdbarch_pseudo_register_read.
4816 * sentinel-frame.c (sentinel_frame_prev_register): Use
4817 regcache_cooked_read_value.
4818 * regcache.h (regcache_cooked_read_value): Declare.
4819 * regcache.c (regcache_cooked_read_value): New function.
4820 (regcache_cooked_read): Call
4821 gdbarch_pseudo_register_read_value if available.
4822 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4823 (i386_pseudo_register_read): Remove.
4824 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4825 i386_pseudo_register_read. Change arguments. Call
4826 mark_value_bytes_unavailable when needed.
4827 (i386_pseudo_register_read_value): New function.
4828 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4829 not set_gdbarch_pseudo_register_read.
4830 * gdbarch.sh (pseudo_register_read_value): New method.
4831 * gdbarch.c, gdbarch.h: Rebuild.
4832 * findvar.c (value_from_register): Call get_frame_register_value.
4833
4834 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4835
4836 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4837 get_prefix.
4838 (display_gdb_prompt): Likewise.
4839 (change_annotation_level): Likewise.
4840 (push_prompt): Likewise.
4841 (pop_prompt): Likewise.
4842 (handle_stop_sig): Use get_prompt with a level.
4843 * top.c (command_loop): Use get_prompt with a level.
4844 (set_async_annotation_level): Use set_prompt with a level.
4845 (get_prefix): New function.
4846 (set_prefix): Ditto.
4847 (set_suffix): Ditto.
4848 (get_suffix): Ditto.
4849 (get_prompt): Accept a level argument.
4850 (set_prompt): Accept a level argument. Free old prompts. Set
4851 new_async_prompt if level is 0.
4852 (init_main): Use set_prompt with a level. Do not set
4853 new_async_prompt.
4854 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4855 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4856 Modify set_prompt, get_prompt to account for levels.
4857 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4858 level.
4859 * python/python.c (before_prompt_hook): Use set_prompt.
4860
4861 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4862
4863 * defs.h: Add guard against inclusion in gdbserver.
4864 (struct ptid, ptid_t): Move to common/ptid.h.
4865 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4866 xsnprintf, internal_error): Move to common/common-utils.h.
4867 (nomem): Delete.
4868 * gdb_assert.h: Move into common/ sub-directory.
4869 * gdb_locale.h: Ditto.
4870 * gdb_dirent.h: Ditto.
4871 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4872 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4873 Move into common/ptid.h.
4874 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4875 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4876 Change nomem to malloc_failure.
4877 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4878 * utils.c (nomem): Rename to malloc_failure.
4879 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4880 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4881 (gdb_buildargv): Change nomem to malloc_failure.
4882 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4883 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4884 ptid_is_pid): Move into common/ptid.c.
4885 (initialize_infrun): Delete initialization of null_ptid and
4886 minus_one_ptid.
4887 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4888 linux_common_xfer_osdata.
4889 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4890 common/ptid.c and common/buffer.c.
4891 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4892 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4893 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4894 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4895 rules.
4896 * common/gdb_assert.h: New.
4897 * common/gdb_dirent.h: New.
4898 * common/gdb_locale.h: New.
4899 * common/buffer.c: New.
4900 * common/buffer.h: New.
4901 * common/ptid.c: New.
4902 * common/ptid.h: New.
4903 * common/xml-utils.c: New.
4904 * common/xml-utils.h: New.
4905 * common/common-utils.c: New.
4906 * common/common-utils.h: New.
4907 * common/linux-osdata.c: New.
4908 * common/linux-osdata.h: New.
4909 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4910 * config/arm/linux.mh (NATDEPFILES): Ditto.
4911 * config/i386/linux.mh (NATDEPFILES): Ditto.
4912 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4913 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4914 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4915 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4916 * config/mips/linux.mh (NATDEPFILES): Ditto.
4917 * config/pa/linux.mh (NATDEPFILES): Ditto.
4918 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4919 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4920 * config/s390/s390.mh (NATDEPFILES): Ditto.
4921 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4922 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4923 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4924
4925 2011-07-21 Matt Rice <ratmice@gmail.com>
4926
4927 * NEWS: Add info macros and info definitions commands.
4928
4929 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4930
4931 * NEWS: Document Python prompt substitution hook.
4932
4933 2011-07-18 Matt Rice <ratmice@gmail.com>
4934
4935 PR macros/12999
4936 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4937 * macrotab.c (foreach_macro): Ditto.
4938 (foreach_macro_in_scope): Ditto.
4939 * macrocmd.c (print_macro_callback): New function.
4940 (info_macro_command): Move some code to print_macro_definition.
4941 (print_macro_definition): New function.
4942 (print_one_macro): Add new arguments to callback.
4943 (info_definitions_command): New function.
4944 (info_macros_command): Ditto.
4945 (_initialize_macrocmd): Add info macros and info definitions commands.
4946 * symtab.c (add_macro_name): Add new arguments to callback.
4947
4948 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4949 Tom Tromey <tromey@redhat.com>
4950
4951 * top.c (set_prompt): Rewrite to free previous prompt, free
4952 asynch_new_prompt and set both on new prompts.
4953 * event-top.c (display_gdb_prompt): Add prompt substitution
4954 logic.
4955 * python/python.c (before_prompt_hook): New function.
4956
4957 2011-07-20 Matt Rice <ratmice@gmail.com>
4958
4959 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4960 arguments to store_unsigned_integer.
4961
4962 2011-07-20 Tom Tromey <tromey@redhat.com>
4963
4964 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4965 in some declaration-only cases.
4966
4967 2011-07-18 Tom Tromey <tromey@redhat.com>
4968
4969 PR symtab/12984:
4970 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4971 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4972 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4973 <debug_type_section>: New field.
4974 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4975 (load_cu): Use appropriate section.
4976 (create_signatured_type_table_from_index): Add 'section'
4977 argument.
4978 (dwarf2_read_index): Only allow a single .debug_types section.
4979 (dw2_get_file_names): Use appropriate section.
4980 (read_type_comp_unit_head): Add 'section' argument.
4981 (create_debug_types_hash_table): Loop over all .debug_types
4982 sections.
4983 (init_cu_die_reader): Use appropriate section.
4984 (process_psymtab_comp_unit, load_partial_comp_unit)
4985 (load_full_comp_unit, read_die_and_children, find_partial_die)
4986 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4987 (lookup_signatured_type_at_offset): Add 'section' argument.
4988 (read_signatured_type_at_offset): Add 'sect' argument.
4989 (read_signatured_type): Use appropriate section.
4990 (set_die_type, get_die_type_at_offset): Update.
4991 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4992 VEC.
4993 (write_psymtabs_to_index): Don't allow index with more than one
4994 .debug_types section.
4995
4996 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4997
4998 Fix crash if referenced CU is aged out.
4999 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
5000 xfree of block.data.
5001 (indirect_pieced_value): New variable back_to, use to for xfree of
5002 baton.data.
5003 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
5004 block.data.
5005 * dwarf2read.c (dwarf2_find_base_address): New prototype.
5006 (load_cu): New function from ...
5007 (dw2_do_instantiate_symtab): ... the code here ...
5008 (process_full_comp_unit): ... and here.
5009 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
5010 retval.data.
5011
5012 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5013
5014 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
5015 type.
5016
5017 2011-07-19 Gary Benson <gbenson@redhat.com>
5018
5019 * infrun.c (struct execution_control_state): New member
5020 stop_func_filled_in.
5021 (clear_stop_func, fill_in_stop_func): New functions.
5022 (handle_inferior_event): Call clear_stop_func rather than
5023 manipulating the execution control state directly.
5024 Call fill_in_stop_func lazily as required rather than
5025 directly calling find_pc_partial_function in all cases.
5026
5027 2011-07-18 Tom Tromey <tromey@redhat.com>
5028
5029 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
5030 checking for variable-sized array.
5031
5032 2011-07-18 Jean-Charles Delay <delay@adacore.com>
5033
5034 * varobj.h (varobj_languages): Add vlang_ada definition to the list
5035 of supported languages.
5036 * varobj.c: Add top definitions and basic implementation of the
5037 following callbacks: ada_number_of_children, ada_name_of_variable,
5038 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
5039 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
5040 (languages): Register Ada-specific callbacks.
5041 (variable_language): Add the Ada case in the language setter switch.
5042
5043 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5044
5045 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
5046
5047 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5048
5049 Code cleanup.
5050 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
5051 (execute_stack_op): Use dwarf2_frame_ctx_funcs
5052 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
5053 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
5054 get_frame_cfa, get_tls_address and dwarf_call via funcs.
5055 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
5056 (struct dwarf_expr_context_funcs): New, move here methods from ...
5057 (struct dwarf_expr_context): ... here. New fields funcs.
5058 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
5059 (dwarf_expr_ctx_funcs): New.
5060 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
5061 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
5062 (needs_frame_ctx_funcs): New.
5063 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
5064
5065 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
5066
5067 * MAINTAINERS (Write After Approval): Add myself to the list.
5068
5069 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
5070
5071 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
5072 that CIE pointer of an FDE really points to a CIE .
5073
5074 2011-07-15 Hui Zhu <teawater@gmail.com>
5075
5076 * remote.c (remote_get_trace_status): Add comments.
5077
5078 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5079
5080 Code cleanup - constify struct lval_funcs.
5081 * dwarf2loc.c (pieced_value_funcs): Make it const.
5082 * infrun.c (siginfo_value_funcs): Likewise.
5083 * opencl-lang.c (opencl_value_funcs): Likewise.
5084 * valops.c (value_assign, value_ind): Make the funcs variable const.
5085 * value.c (struct value): Make location.computed.funcs target const.
5086 Rearrange the comments.
5087 (allocate_computed_value): Make the funcs parameter target const.
5088 (value_computed_funcs): Return the funcs target const.
5089 (value_free, value_copy, set_value_component_location): Make the funcs
5090 variable const.
5091 * value.h (allocate_computed_value): Make the funcs parameter target
5092 const.
5093 (value_computed_funcs): Return the funcs target const.
5094 * windows-tdep.c (tlb_value_funcs): Make it const.
5095
5096 2011-07-14 Hui Zhu <teawater@gmail.com>
5097
5098 * remote.c (remote_get_trace_status): Initialize p.
5099
5100 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5101
5102 Work around kgdb.
5103 * remote.c (remote_get_trace_status): New variable ex. Put
5104 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
5105
5106 2011-07-13 Tom Tromey <tromey@redhat.com>
5107
5108 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
5109 value_from_contents for final conversion.
5110
5111 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5112
5113 Code cleanup.
5114 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
5115 Indent prototypes so they do not get into tags.
5116
5117 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5118
5119 Code cleanup making also optimized out values lazy.
5120 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
5121 allocate_optimized_out_value. Twice.
5122 (loclist_read_variable) Use allocate_optimized_out_value. Once.
5123 * findvar.c (read_var_value): Likewise.
5124 * value.c (allocate_optimized_out_value): New function.
5125 * value.h (allocate_optimized_out_value): New declaration.
5126
5127 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5128
5129 Fix occasional crash of CTRL-C during DWARF read in.
5130 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
5131
5132 2011-07-11 Tom Tromey <tromey@redhat.com>
5133
5134 * regcache.c (struct regcache_descr): Fix typo.
5135 * i387-tdep.c (i387_supply_xsave): Fix typo.
5136
5137 2011-07-11 Tom Tromey <tromey@redhat.com>
5138
5139 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
5140 (read_file_scope, read_type_unit_scope): Use it.
5141
5142 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5143
5144 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
5145 `int'.
5146
5147 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
5148
5149 PR python/12438
5150 * python/python.c: Set gdbpy_should_print_stack default to off.
5151 (set_python): Deprecate maint set python print-stack to
5152 class_deprecate.
5153 (_initialize_python): Deprecate maint set/show python print-stack.
5154 Add new prefix command, python. Add new setting, print-backtrace.
5155 * NEWS: Document set python print-stack. Document default change.
5156
5157 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
5158
5159 * python/py-inferior.c (infpy_dealloc): New function.
5160 (inferior_to_inferior_object): Return a new object, or a
5161 new reference to the existing object.
5162 (find_thread_object): Cleanup references to inferior.
5163 (delete_thread_object): Ditto.
5164 * python/py-infthread.c (create_thread_object): Do not increment
5165 inferior reference count.
5166
5167 2011-07-08 Tom Tromey <tromey@redhat.com>
5168
5169 * dwarf2loc.c (locexpr_regname): New function.
5170 (locexpr_describe_location_piece): Use it.
5171 (disassemble_dwarf_expression): Add per_cu argument. Use
5172 locexpr_regname.
5173 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
5174 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5175 New cases.
5176 (locexpr_describe_location_1): Add per_cu argument.
5177 (locexpr_describe_location): Update.
5178 (loclist_describe_location): Update.
5179
5180 2011-07-08 Tom Tromey <tromey@redhat.com>
5181
5182 * dwarf2expr.c (execute_stack_op): Add QUIT.
5183
5184 2011-07-07 Hui Zhu <teawater@gmail.com>
5185
5186 Revert:
5187 2011-07-06 Hui Zhu <teawater@gmail.com>
5188 * remote.c (remote_start_remote): Add TRY_CATCH for
5189 remote_get_trace_status.
5190 * tracepoint.c (disconnect_tracing): Ditto.
5191
5192 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
5193
5194 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
5195 variables as signed, not unsigned.
5196
5197 2011-07-06 Joel Brobecker <brobecker@adacore.com>
5198
5199 * jit.c (jit_inferior_init): Reformat forward declaration.
5200
5201 2011-07-06 Matt Rice <ratmice@gmail.com>
5202
5203 * MAINTAINERS (Write After Approval): Add myself to the list.
5204
5205 2011-07-06 Hui Zhu <teawater@gmail.com>
5206
5207 * remote.c (remote_start_remote): Add TRY_CATCH for
5208 remote_get_trace_status.
5209 * tracepoint.c (disconnect_tracing): Ditto.
5210
5211 2011-07-05 Tom Tromey <tromey@redhat.com>
5212
5213 * symtab.c (operator_chars): Now static.
5214 * linespec.c (operator_chars): Don't declare.
5215
5216 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5217
5218 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
5219
5220 2011-07-05 Tom Tromey <tromey@redhat.com>
5221
5222 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
5223 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
5224 (TYPE_CPLUS_REALLY_JAVA): New macro.
5225 * dwarf2read.c (process_structure_scope): Set
5226 TYPE_CPLUS_REALLY_JAVA.
5227
5228 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5229
5230 * ada-lang.c: Fix typos.
5231 * amd64-tdep.c: Likewise.
5232 * breakpoint.c: Likewise.
5233 * cli/cli-decode.c: Likewise.
5234 * findcmd.c: Likewise.
5235 * inline-frame.c: Likewise.
5236 * mi/mi-main.c: Likewise.
5237 * minsyms.c: Likewise.
5238 * monitor.c: Likewise.
5239 * monitor.h: Likewise.
5240 * prologue-value.c: Likewise.
5241 * reverse.c: Likewise.
5242 * s390-tdep.c: Likewise.
5243
5244 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5245
5246 * jit.c (jit_inferior_init): Forward declare.
5247 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
5248
5249 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5250
5251 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
5252
5253 2011-07-04 Tristan Gingold <gingold@adacore.com>
5254
5255 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
5256 (tcb_fieldno): Add activation_link field.
5257 (get_known_tasks_addr): Moved and rewritten.
5258 (get_tcb_types_info): Set activation_link field.
5259 (read_known_tasks_array): Add parameter. Rewritten.
5260 (read_known_tasks_list): New function.
5261 (read_known_tasks): New function.
5262 (ada_build_task_list): Call read_known_tasks instead of
5263 read_known_tasks_array.
5264 * ravenscar-thread.c: Add first_task_name constant.
5265 (has_ravenscar_runtime): Check for task list too.
5266
5267 2011-07-04 Tristan Gingold <gingold@adacore.com>
5268
5269 * ada-tasks.c: Renames fieldno to actb_fieldno.
5270 (ada_get_task_number): Indentation.
5271 (get_tcb_types_info): Remove all parameters. Write directly
5272 the globals.
5273 (ptid_from_atcb_common): Adjust.
5274 (read_atcb): Adjust.
5275
5276 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5277
5278 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
5279
5280 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5281
5282 * ui-out.c (ui_out_field_core_addr): Mention that the function
5283 description is in the header file.
5284 * ui-out.h (ui_out_field_core_addr): Document function.
5285
5286 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5287
5288 * ui-out.c (ui_out_get_field_separator): Remove unused function.
5289 * ui-out.h (ui_out_get_field_separator): Remove prototype.
5290
5291 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5292
5293 * symtab.c (expand_line_sal): Remove empty line.
5294
5295 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
5296
5297 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5298 same way as ELFOSABI_NONE.
5299 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5300
5301 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5302
5303 * breakpoint.c: Fix typos in comments.
5304 * linespec.c: Likewise.
5305 * symtab.c: Likewise.
5306
5307 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5308
5309 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5310 section in separate object files.
5311
5312 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5313
5314 Fix false GCC warning.
5315 * linespec.c (decode_line_1): Initialize values.
5316
5317 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5318
5319 * linespec.c (find_method): Accept the function type automatically only
5320 if it was specified with parameter types.
5321
5322 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5323
5324 Stop on first linespec terminator instead of eating what we can.
5325 * linespec.c (is_linespec_boundary): New function.
5326 (name_end): Remove function.
5327 (keep_name_info): New parameter on_boundary, replace the body.
5328 (decode_line_1): Provide the parameter to keep_name_info.
5329 (decode_compound): Likewise. Drop the trailing java return type
5330 handling. Twice.
5331
5332 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5333
5334 Fall back linespec to minimal symbols.
5335 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
5336 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5337 (find_method, symbol_found): Change error to cplusplus_error.
5338
5339 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5340
5341 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
5342
5343 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5344 Tom Tromey <tromey@redhat.com>
5345
5346 * dwarf2read.c (check_physname): New variable.
5347 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5348 (show_check_physname): New function.
5349 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5350
5351 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5352
5353 * machoread.c (macho_symfile_read): Delete OBE comment.
5354
5355 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5356
5357 * machoread.c (struct macho_oso_data): Delete.
5358 (current_oso): Delete.
5359 (macho_relocate_common_syms): New function, mostly extracted
5360 out of
5361 (macho_add_oso_symfile): Call macho_relocate_common_syms.
5362 Remove code that sets and unset current_oso.
5363 (macho_symfile_relocate): Delete handling of common symbols,
5364 now moved to macho_relocate_common_syms.
5365
5366 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5367
5368 * darwin-nat.c (darwin_ptrace): Add documentation.
5369 Set errno to zero before calling ptrace. If ptrace returns
5370 -1 and errno is zero, then change then return zero.
5371 (darwin_kill_inferior): Issue a warning instead of triggering
5372 a failed assertion when the PT_KILL ptrace operations returned
5373 nonzero.
5374
5375 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5376
5377 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5378 only when inf->private->no_ptrace.
5379
5380 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5381
5382 * ada-lang.c (print_it_exception): Print temporary catchpoints
5383 as "Temporary catchpoint".
5384 (print_mention_exception): Likewise.
5385
5386 2011-07-01 Tom Tromey <tromey@redhat.com>
5387
5388 * jv-lang.c (java_language_defn): Use java_printchar,
5389 java_printstr.
5390 (java_get_encoding): New function.
5391 (java_emit_char): Use generic_emit_char.
5392 (java_printchar): New function.
5393 (java_printstr): Likewise.
5394
5395 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5396
5397 * ada-typeprint.c (print_record_type): If unable to decode
5398 the name of the parent type, use the encoded name.
5399
5400 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5401
5402 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5403 pointer to constrained packed array type output.
5404 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5405 packed array output.
5406
5407 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5408
5409 * ada-typeprint.c (print_array_type): removed if condition on show
5410 being negative for bounds printing.
5411
5412 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5413
5414 * ada-lang.c (ada_identical_enum_types_p): New function.
5415 (symbols_are_identical_enums): New function.
5416 (remove_extra_symbols): Do nothing if NSYMS < 2.
5417 Use symbols_are_identical_enums.
5418
5419 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5420
5421 * ada-valprint.c (ada_value_print): Handle typedefs.
5422
5423 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5424
5425 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5426
5427 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5428
5429 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5430 (decode_constrained_packed_array): Likewise.
5431 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5432
5433 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5434
5435 * ada-exp.y (convert_char_literal): Handle typedef types.
5436
5437 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5438
5439 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5440
5441 2011-06-30 Tom Tromey <tromey@redhat.com>
5442
5443 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5444 * valops.c (find_overload_match): Call do_cleanups on early exit
5445 path.
5446 * solib.c (solib_find): Call do_cleanups on early exit path.
5447
5448 2011-06-30 Tom Tromey <tromey@redhat.com>
5449
5450 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5451 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5452 return paths. Defer final do_cleanups until last return.
5453 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5454 early return.
5455
5456 2011-06-30 Tom Tromey <tromey@redhat.com>
5457
5458 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5459
5460 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
5461
5462 * MAINTAINERS (Write After Approval): Add myself to the list.
5463
5464 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5465
5466 Disable epilogue unwinders on recent GCCs.
5467 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5468 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5469 * dwarf2read.c (process_full_comp_unit): Initialize
5470 EPILOGUE_UNWIND_VALID.
5471 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5472 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5473 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5474
5475 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5476
5477 Code cleanup - reformatting.
5478 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5479 (producer_is_gcc_ge_4): ... here, change the return value.
5480 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5481 interpretation.
5482
5483 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5484
5485 Fix non-only rename list for Fortran modules import.
5486 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5487 cp_add_using_directive caller.
5488 (cp_add_using_directive): New parameter excludes, describe it. New
5489 variables ix and param. Compare if also excludes match. Allocate NEW
5490 with variable size, initialize EXCLUDES there.
5491 (cp_lookup_symbol_imports): New variable excludep, test
5492 current->EXCLUDES with it.
5493 * cp-support.h: Include vec.h.
5494 (struct using_direct): New field excludes, describe it.
5495 (DEF_VEC_P (const_char_ptr)): New.
5496 (cp_add_using_directive): New parameter excludes.
5497 * defs.h (const_char_ptr): New typedef.
5498 * dwarf2read.c (read_import_statement): New variables child_die,
5499 excludes and cleanups, read in excludes.
5500 (read_namespace): Adjust the cp_add_using_directive caller.
5501
5502 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5503
5504 Code cleanup.
5505 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5506 negative comparisons.
5507
5508 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
5509
5510 * mi/mi-main.c (mi_cmd_list_features): Emit
5511 breakpoint-notifications.
5512
5513 2011-06-29 Tom Tromey <tromey@redhat.com>
5514
5515 PR fortran/10036:
5516 * valprint.h (generic_emit_char, generic_printstr): Declare.
5517 * valprint.c (wchar_printable, append_string_as_wide)
5518 (print_wchar): Move from c-lang.c.
5519 (generic_emit_char): New function; mostly taken from c_emit_char.
5520 (generic_printstr): New function; mostly taken from c_printstr.
5521 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5522 represented as arrays.
5523 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5524 type.
5525 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5526 identically to TYPE_CODE_INT.
5527 * f-lang.c (f_get_encoding): New function.
5528 (f_emit_char): Use generic_emit_char.
5529 (f_printchar): Replace comment.
5530 (f_printstr): Use generic_printstr.
5531 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5532 "character" types specially.
5533 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5534 for Fortran.
5535 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5536 Move to valprint.c
5537 (c_emit_char): Call generic_emit_char.
5538 (c_printstr): Call generic_printstr.
5539
5540 2011-06-29 Gary Benson <gbenson@redhat.com>
5541
5542 * breakpoint.c (bpstat_what): Removed duplicated case.
5543
5544 2011-06-28 Tom Tromey <tromey@redhat.com>
5545
5546 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5547
5548 2011-06-27 Tom Tromey <tromey@redhat.com>
5549
5550 * valops.c (find_overload_match): Call do_cleanups before early
5551 return.
5552 * top.c (execute_command): Call do_cleanups before early return.
5553 (command_loop): Likewise.
5554 * stack.c (backtrace_command): Make a null cleanup early. Don't
5555 conditionally call do_cleanups.
5556 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5557 TRY_CATCH.
5558 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5559 so cleanups are always run.
5560 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5561 * findcmd.c (parse_find_args): Call do_cleanups on early return
5562 path.
5563 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5564 Don't conditionally call do_cleanups.
5565 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5566 later.
5567
5568 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5569
5570 * MAINTAINERS (Write After Approval): Use default email address.
5571
5572 2011-06-27 Joel Brobecker <brobecker@adacore.com>
5573
5574 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5575
5576 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5577
5578 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5579 saved_regs_mask and copied_regs_mask fields.
5580 (sparc_record_save_insn): New prototype.
5581 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5582 (sparc_record_save_insn): New function.
5583 (sparc_analyze_prologue): Add head comment. Recognize store insns
5584 of call-saved registers. Use OFFSET consistently. Recognize flat
5585 frames and cache their settings.
5586 (sparc32_skip_prologue): Handle flat frames.
5587 (sparc_frame_cache): Add frame_offset to the base address.
5588 (sparc32_frame_cache): Adjust to new frame description.
5589 (sparc32_frame_prev_register): Likewise.
5590 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5591 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5592 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5593 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5594 frame by calling sparc_record_save_insn.
5595 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5596 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5597 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5598
5599 2011-06-27 Tristan Gingold <gingold@adacore.com>
5600
5601 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5602 field by map_addr and map_len.
5603 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5604 (munmap_section_buffer): Likewise.
5605
5606 2011-06-24 Tom Tromey <tromey@redhat.com>
5607
5608 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5609 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5610 * python/python.c (gdbpy_parameter): Make 'arg' const.
5611 (execute_gdb_command): Likewise.
5612 (gdbpy_decode_line): Likewise. Copy it.
5613 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5614 (gdbpy_write): Make 'arg' const.
5615 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5616 const.
5617 (gdbpy_lookup_type): Likewise.
5618 * python/py-prettyprint.c (print_children): Make 'name' const.
5619 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5620 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5621 Py_ssize_t.
5622 * python/py-function.c (fnpy_init): Make 'name' const.
5623 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5624 (gdbpy_string_to_argv): Make 'input' const.
5625 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5626 it.
5627 * gdbtypes.h (lookup_typename): Update.
5628 * gdbtypes.c (lookup_typename): Make 'name' const.
5629 (lookup_struct): Likewise.
5630 (lookup_union): Likewise.
5631 (lookup_enum): Likewise.
5632
5633 2011-06-24 Tom Tromey <tromey@redhat.com>
5634
5635 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5636 gdb_thread_db.h. Move all common/ entries to be together.
5637 (TAGS): Don't depend on DEPFILES.
5638
5639 2011-06-23 Yao Qi <yao@codesourcery.com>
5640
5641 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5642 * remote.c (remote_start_remote): ... here.
5643 * monitor.c (monitor_open): ... here.
5644
5645 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
5646
5647 * gdbtypes.c (append_composite_type_field_aligned): Fix
5648 calculation of bit position based on alignment.
5649
5650 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5651
5652 * breakpoint.c (bpstat_stop_status): Call the check_status
5653 breakpoint_ops method.
5654 (print_one_breakpoint_location): Also print the condition for Ada
5655 exception catchpoints.
5656 (allocate_bp_location): New, factored out from
5657 allocate_bp_location.
5658 (allocate_bp_location): Adjust. Call the owner breakpoint's
5659 allocate_location method, if there is one.
5660 (free_bp_location): Call the locations's dtor method, if there is
5661 one.
5662 (init_raw_breakpoint_without_location): New breakpoint_ops
5663 parameter. Use it.
5664 (set_raw_breakpoint_without_location): Adjust.
5665 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5666 (set_raw_breakpoint): Adjust.
5667 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5668 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5669 re_set and check_status methods.
5670 (init_catchpoint): Don't memset, initialize thread, addr_string
5671 and enable_state. Pass the ops down to init_raw_breakpoint.
5672 (install_catchpoint): Rename to ...
5673 (install_breakpoint): ... this, and make extern.
5674 (create_fork_vfork_event_catchpoint): Adjust.
5675 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5676 re_set and check_status methods.
5677 (create_syscall_event_catchpoint): Adjust.
5678 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5679 (masked_watchpoint_breakpoint_ops): Install NULL
5680 allocate_location, re_set and check_status methods.
5681 (catch_exec_command_1): Adjust.
5682 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5683 re_set and check_status methods.
5684 (create_ada_exception_breakpoint): Rename to ...
5685 (init_ada_exception_breakpoint): ... this. Add a struct
5686 breakpoint parameter, and delete the exp_string, cond_string and
5687 cond parameters. Use init_raw_breakpoint, and don't install or
5688 mention the breakpoint yet. Don't clear breakpoint fields that
5689 init_raw_breakpoint already clears.
5690 (re_set_breakpoint): Delete, split into ...
5691 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5692 functions.
5693 (breakpoint_re_set_one): Call the breakpoint's
5694 breakpoint_ops->re_set implementation, if there's one. Adjust.
5695 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5696 (struct bp_location_ops): New type.
5697 (struct bp_location): New field `ops'.
5698 (struct breakpoint_ops): New `allocate_location', `re_set' and
5699 `check_status' fields. Make `breakpoint_hit''s description match
5700 reality.
5701 (init_bp_location): Declare.
5702 (breakpoint_re_set_default): Declare.
5703 (create_ada_exception_breakpoint): Rename to ...
5704 (init_ada_exception_breakpoint): ... this. Add a struct
5705 breakpoint parameter, and delete the exp_string, cond_string and
5706 cond parameters.
5707 (install_breakpoint): Declare.
5708 * ada-lang.c: Include exceptions.h.
5709 <Ada exceptions description>: Update.
5710 (struct ada_catchpoint_location): New type.
5711 (ada_catchpoint_location_dtor): New function.
5712 (ada_catchpoint_location_ops): New global.
5713 (ada_catchpoint): New type.
5714 (create_excep_cond_exprs): New function.
5715 (dtor_exception, allocate_location_exception, re_set_exception)
5716 (should_stop_exception, check_status_exception): New functions.
5717 (print_one_exception, print_mention_exception)
5718 (print_recreate_exception): Adjust.
5719 (dtor_catch_exception, allocate_location_catch_exception)
5720 (re_set_catch_exception, check_status_catch_exception): New
5721 functions.
5722 (catch_exception_breakpoint_ops): Install them.
5723 (dtor_catch_exception_unhandled)
5724 (allocate_location_catch_exception_unhandled)
5725 (re_set_catch_exception_unhandled)
5726 (check_status_catch_exception_unhandled): New functions.
5727 (catch_exception_unhandled_breakpoint_ops): Install them.
5728 (dtor_catch_assert, allocate_location_catch_assert)
5729 (re_set_catch_assert, check_status_catch_assert): New functions.
5730 (catch_assert_breakpoint_ops): Install them.
5731 (ada_exception_catchpoint_p): Delete.
5732 (catch_ada_exception_command_split)
5733 (ada_exception_catchpoint_cond_string): Rename exp_string
5734 parameter to excep_string. Adjust.
5735 (ada_parse_catchpoint_condition): Delete.
5736 (ada_exception_sal): Rename the exp_string parameter to
5737 excep_string. Delete the cond_string and cond parameters.
5738 Adjust.
5739 (ada_decode_exception_location): Rename the exp_string parameter
5740 to excep_string. Delete the cond_string and cond parameters.
5741 Adjust.
5742 (create_ada_exception_catchpoint): New function.
5743 (catch_ada_exception_command, ada_decode_assert_location)
5744 (catch_assert_command): Adjust.
5745 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5746
5747 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5748
5749 * ada-lang.c: Include arch-utils.h.
5750 (ada_decode_exception_location): Make static.
5751 (catch_ada_exception_command): Moved here from breakpoint.c.
5752 (ada_decode_assert_location): Make static.
5753 (catch_assert_command): Moved here from breakpoint.c.
5754 (_initialize_ada_lang): Install the exception and assert
5755 catchpoint commands here.
5756 * ada-lang.h (ada_decode_exception_location)
5757 (ada_decode_assert_location): Delete declarations.
5758 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5759 breakpoint.h.
5760 (create_ada_exception_breakpoint): Make extern.
5761 (catch_ada_exception_command, catch_assert_command): Moved to
5762 ada-lang.c.
5763 (add_catch_command): Make extern.
5764 (_initilize_breakpoint): Don't install the exception and assert
5765 catchpoint commands here.
5766 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5767 breakpoint.c
5768 (add_catch_command, create_ada_exception_breakpoint): Declare.
5769
5770 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5771
5772 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5773 the breakpoint to the breakpoint chain here.
5774 (set_raw_breakpoint_without_location): Add the breakpoint to the
5775 breakpoint chain here.
5776 (init_raw_breakpoint): Adjust comments.
5777 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5778 here.
5779 (init_catchpoint): Don't set the catchpoint's breakpoint number
5780 here.
5781 (install_catchpoint): New function.
5782 (create_fork_vfork_event_catchpoint)
5783 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5784 use install_catchpoint.
5785
5786 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5787
5788 * breakpoint.c (create_catchpoint_without_mention)
5789 (create_catchpoint): Delete.
5790
5791 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5792
5793 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5794 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5795 reference to exec_pathname.
5796 (struct exec_catchpoint): New type.
5797 (dtor_catch_exec): New function.
5798 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5799 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5800 (catch_exec_command_1): Adjust to use init_catchpoint.
5801 (delete_breakpoint): Remove reference to exec_pathname.
5802
5803 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5804
5805 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5806 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5807 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5808 reference to syscalls_to_be_caught.
5809 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5810 NULL `dtor'.
5811 (struct syscall_catchpoint): New type.
5812 (dtor_catch_syscall): New function.
5813 (insert_catch_syscall, remove_catch_syscall)
5814 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5815 (print_recreate_catch_syscall): Adjust.
5816 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5817 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5818 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5819 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5820 (masked_watchpoint_breakpoint_ops)
5821 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5822 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5823 there is one. Remove references to syscalls_to_be_caught.
5824 (catching_syscall_number): Adjust.
5825 * ada-lang.c (catch_exception_breakpoint_ops)
5826 (catch_exception_unhandled_breakpoint_ops)
5827 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5828
5829 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5830
5831 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5832 field.
5833 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5834 reference to forked_inferior_pid.
5835 (struct fork_catchpoint): New type.
5836 (breakpoint_hit_catch_fork, print_it_catch_fork)
5837 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5838 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5839 (create_fork_vfork_event_catchpoint): Adjust to use
5840 init_catchpoint.
5841
5842 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5843
5844 * breakpoint.c (add_to_breakpoint_chain)
5845 (init_raw_breakpoint_without_location): New functions, factored
5846 out from ...
5847 (set_raw_breakpoint_without_location): ... this one.
5848 (init_raw_breakpoint): New function, factored out from
5849 set_raw_breakpoint and adjusted to use
5850 init_raw_breakpoint_without_location.
5851 (set_raw_breakpoint): Adjust.
5852 (init_catchpoint): New function, factored out from
5853 create_catchpoint_without_mention and adjusted to use
5854 init_raw_breakpoint.
5855 (create_catchpoint_without_mention): Adjust.
5856
5857 2011-06-22 Tom Tromey <tromey@redhat.com>
5858
5859 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5860 argument of 0 specially.
5861
5862 2011-06-22 Yao Qi <yao@codesourcery.com>
5863
5864 * infrun.c (handle_inferior_event): Remove write-only local variable
5865 `sw_single_step_trap_p'.
5866
5867 2011-06-20 Tom Tromey <tromey@redhat.com>
5868
5869 * symtab.c (lookup_language_this): End loop if block is NULL.
5870
5871 2011-06-17 Tom Tromey <tromey@redhat.com>
5872
5873 * valops.c (value_of_this): Use lookup_language_this.
5874 * symtab.h (lookup_language_this): Declare.
5875 * symtab.c (lookup_language_this): New function.
5876 (lookup_symbol_aux): Use lookup_language_this.
5877 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5878
5879 2011-06-17 Tom Tromey <tromey@redhat.com>
5880
5881 * value.h (value_of_this): Update.
5882 (value_of_local): Remove.
5883 * valops.c (value_of_this): Rename from value_of_local. Change
5884 parameters.
5885 * p-exp.y (exp): Update.
5886 (variable): Likewise.
5887 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5888
5889 2011-06-17 Tom Tromey <tromey@redhat.com>
5890
5891 * valops.c (value_of_local): Complain if NAME is NULL.
5892 * std-operator.def (OP_OBJC_SELF): Remove.
5893 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5894 * objc-exp.y (name_not_typename): Use OP_THIS.
5895 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5896 name for "this".
5897 <OP_OBJC_SELF>: Remove.
5898 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5899
5900 2011-06-16 Tristan Gingold <gingold@adacore.com>
5901
5902 * python/py-events.h (gdb_py_events): Make it extern.
5903 * python/py-evtregistry.c (gdb_py_events): Declare.
5904
5905 2011-06-16 Hui Zhu <teawater@gmail.com>
5906
5907 * remote.c (remote_trace_set_readonly_regions): Add check for
5908 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5909 output warning.
5910
5911 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5912
5913 * arm-linux-tdep.c: Include "auxv.h".
5914 (AT_HWCAP): Define.
5915 (ARM_LINUX_SIZEOF_VFP): Define.
5916 (arm_linux_supply_vfp): New function.
5917 (arm_linux_collect_vfp): Likewise.
5918 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5919 (arm_linux_fpa_regset_sections): New variable.
5920 (arm_linux_vfp_regset_sections): Likewise.
5921 (arm_linux_core_read_description): New function.
5922 (arm_linux_init_abi): Install arm_linux_core_read_description and
5923 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5924 appropriate for the architecture.
5925 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5926 (tdesc_arm_with_m): Declare.
5927 (tdesc_arm_with_iwmmxt): Likewise.
5928 (tdesc_arm_with_vfpv2): Likewise.
5929 (tdesc_arm_with_vfpv3): Likewise.
5930 (tdesc_arm_with_neon): Likewise.
5931 * arm-linux-nat.c: Move features/*.c includes ...
5932 * arm-tdep.c: ... here.
5933 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5934 target description data structures ...
5935 * arm-tdep.c (_initialize_arm_tdep): ... here.
5936 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5937 HWCAP_VFPv3D16): Move definitions ...
5938 * arm-linux-tdep.h: ... here.
5939
5940 2011-06-15 Hui Zhu <teawater@gmail.com>
5941
5942 * remote.c (remote_trace_set_readonly_regions): Add a check for
5943 target_buf_size.
5944
5945 2011-06-14 Tom Tromey <tromey@redhat.com>
5946
5947 * coffread.c (coffread_objfile): Rename from current_objfile.
5948 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5949 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5950
5951 2011-06-14 Tom Tromey <tromey@redhat.com>
5952
5953 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5954 (class_symtab): Remove.
5955 (jv_dynamics_progspace_key): New global.
5956 (jv_per_objfile_free): Reset program space data. Update assert.
5957 Don't clear globals.
5958 (get_dynamics_objfile): Use and set program space data.
5959 (get_java_class_symtab): Use get_dynamics_objfile.
5960 (add_class_symbol): Likewise.
5961 (java_link_class_type): Likewise.
5962 (java_object_type, jv_clear_object_type, set_java_object_type):
5963 Remove.
5964 (get_java_object_type): Update. Don't cache result.
5965 (is_object_type): Don't call set_java_object_type.
5966 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5967 initialize jv_dynamics_progspace_key.
5968
5969 2011-06-14 Tom Tromey <tromey@redhat.com>
5970
5971 * symtab.h (current_objfile): Don't declare.
5972 * objfiles.h (current_objfile): Don't declare.
5973 * objfiles.c (current_objfile): Remove.
5974 * mdebugread.c (current_objfile): New file-scope global.
5975 * dbxread.c (current_objfile): New file-scope global.
5976 * coffread.c (current_objfile): New file-scope global.
5977
5978 2011-06-13 Pedro Alves <pedro@codesourcery.com>
5979
5980 * top.h (line): Rename to ...
5981 (saved_command_line): ... this.
5982 (linesize): Rename to ...
5983 (saved_command_line_size): ... this.
5984 * top.c (line): Rename to ...
5985 (saved_command_line): ... this.
5986 (linesize): Rename to ...
5987 (saved_command_line_size): ... this.
5988 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5989 * event-top.c (command_line_handler): Adjust.
5990 * main.c (captured_main): Adjust.
5991
5992 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5993
5994 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5995 get_frame_func instead of get_frame_pc to determine the code
5996 address used to construct the frame ID.
5997 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5998 (i386_epilogue_frame_this_id): Likewise.
5999 (i386_epilogue_frame_prev_register): New function.
6000 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
6001 (i386_stack_tramp_frame_sniffer): Fix coding style.
6002 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
6003 (i386_gdbarch_init): Fix comments.
6004
6005 2011-06-12 Mark Kettenis <kettenis@gnu.org>
6006
6007 * i386-tdep.c (i386_match_insn_block): Use length of the proper
6008 instruction when walking back through the instruction stream.
6009
6010 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6011
6012 * symtab.c (output_partial_symbol_filename): Exchange the filename and
6013 fullname parameters order.
6014
6015 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6016
6017 Code cleanup.
6018 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
6019 for fun.
6020 * psymtab.c (map_symbol_filenames_psymtab)
6021 (map_partial_symbol_filenames): Likewise.
6022 * psymtab.h: Include symfile.h.
6023 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
6024 * symfile.h (symbol_filename_ftype): New.
6025 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
6026 map_symbol_filenames, clarify more the naming in comment.
6027
6028 2011-06-07 Doug Evans <dje@google.com>
6029
6030 * cc-with-index.sh: Fix typos in comment.
6031 Look for ../../gdb, for fullname.exp.
6032
6033 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6034 Pedro Alves <pedro@codesourcery.com>
6035
6036 * cli/cli-cmds.c (shell_escape): Use waitpid.
6037 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
6038
6039 2011-06-07 Tristan Gingold <gingold@adacore.com>
6040
6041 * xcoffread.c (dwarf2_xcoff_names): New variable.
6042 (aix_process_linenos): Add a guard.
6043 (xcoff_symfile_finish): Free dwarf2.
6044 (xcoff_initial_scan): Add dwarf2 support.
6045
6046 2011-06-06 Pedro Alves <pedro@codesourcery.com>
6047
6048 * infcall.c (run_inferior_call): Don't mask async. Instead force
6049 a synchronous wait, if the target can async.
6050
6051 * target.h (struct target_ops): Delete to_async_mask.
6052 (target_async_mask): Delete.
6053 * target.c (update_current_target): Delete references to to_async_mask.
6054 * linux-nat.c (linux_nat_async_mask_value): Delete.
6055 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
6056 to linux_nat_async_mask_value.
6057 (linux_nat_async_mask): Delete.
6058 (linux_nat_async, linux_nat_close): Remove references to
6059 linux_nat_async_mask_value.
6060 * record.c (record_async_mask_value): Delete.
6061 (record_async): Remove references to record_async_mask_value.
6062 (record_async_mask): Delete.
6063 (record_can_async_p, record_is_async_p): Remove references to
6064 record_async_mask_value.
6065 (init_record_ops, init_record_core_ops): Remove references to
6066 record_async_mask.
6067 * remote.c (remote_async_mask_value): Delete.
6068 (init_remote_ops): Remove reference to remote_async_mask.
6069 (remote_can_async_p, remote_is_async_p): Remove references to
6070 remote_async_mask_value.
6071 (remote_async): Remove references to remote_async_mask_value.
6072 (remote_async_mask): Delete.
6073
6074 * infrun.c (fetch_inferior_event): Don't claim registers changed
6075 if the current thread is already not executing.
6076
6077 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
6078
6079 From Stephen Kitt <steve@sk2.org>
6080 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
6081 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
6082
6083 2011-06-03 Joel Brobecker <brobecker@adacore.com>
6084
6085 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
6086 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
6087
6088 2011-06-03 Tom Tromey <tromey@redhat.com>
6089
6090 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
6091 code fields.
6092 * python/py-exitedevent.c (create_exited_event_object): Change
6093 type of 'exit_code'. Optionally add exit_code attribute.
6094 (emit_exited_event): Change type of 'exit_code'.
6095 * python/py-event.h (emit_exited_event): Update.
6096 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
6097 * infrun.c (handle_inferior_event): Set exit code fields on
6098 inferior.
6099 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
6100 fields.
6101 * inferior.c (exit_inferior_1): Initialize new fields.
6102
6103 2011-06-03 Tom Tromey <tromey@redhat.com>
6104
6105 * dwarf2expr.c (get_signed_type): New function.
6106 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
6107
6108 2011-06-02 Keith Seitz <keiths@redhat.com>
6109
6110 * objc-lang.c (find_methods): Increment objfile_csym earlier.
6111
6112 2011-06-02 Pedro Alves <pedro@codesourcery.com>
6113
6114 * top.h (simplified_command_loop): Delete declaration.
6115
6116 2011-06-01 Mike Frysinger <vapier@gentoo.org>
6117
6118 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
6119 gdb_sysroot to the "len" variable. Append both to "arg_buf".
6120
6121 2011-06-01 Yao Qi <yao@codesourcery.com>
6122
6123 * objfiles.h (obj_section_addr): Update reference to objfile from
6124 `abfd' to `obfd'.
6125 (obj_section_endaddr): Likewise.
6126
6127 2011-06-01 Daniel Jacobowitz <drow@false.org>
6128
6129 * MAINTAINERS: Update my email address and affiliation. Also
6130 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
6131
6132 2010-05-31 Keith Seitz <keiths@redhat.com>
6133
6134 PR c++/12750
6135 * linespec.c (get_search_block): New function.
6136 (find_methods): Add FILE_SYMTATB parameter and use it and
6137 get_search_block to pass an appropriate block to
6138 lookup_symbol_in_namespace.
6139 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
6140 Check if *ARGPTR starts with a filename first.
6141 If it does, call locate_first_half again to locate the next
6142 "first half" of the linespec.
6143 Pass FILE_SYMTATB to decode_objc and decode_compound.
6144 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
6145 (locate_first_half): Stop on the first colon seen.
6146 (decode_compound): Add FILE_SYMTAB parameter.
6147 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
6148 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
6149 get_search_block with lookup_symbol.
6150 (find_method): Add FILE_SYMTAB parameter and pass it to
6151 find_methods.
6152 (decode_objc): Use get_search_block.
6153
6154 2010-05-31 Keith Seitz <keiths@redhat.com>
6155
6156 PR symtab/12704
6157 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
6158 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
6159 and CP_ANONYMOUS_NAMESPACE_LEN.
6160 (cp_is_anonymous): Likewise.
6161 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
6162 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
6163 * dwarf2read.c (namespace_name): Likewise.
6164 (fixup_partial_die): Likewise.
6165 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
6166 seen in the input, keep it.
6167
6168 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6169
6170 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
6171 * inf-loop.h (inferior_event_handler_wrapper): Delete.
6172 * inf-loop.c (inferior_event_handler_wrapper): Delete.
6173 (inferior_event_handler): Don't handle INF_QUIT_REQ.
6174 * remote.c (_initialize_remote): Register
6175 async_remote_interrupt_twice directly as
6176 sigint_remote_twice_token event.
6177
6178 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6179
6180 * target.h (enum inferior_event_type): Delete INF_ERROR.
6181 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
6182
6183 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6184
6185 * interps.c (interp_set): Don't cancel continuations.
6186
6187 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
6188
6189 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
6190
6191 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6192
6193 * continuations.h (continuation_ftype): Add `err' parameter.
6194 Document parameters.
6195 (do_all_continuations, do_all_continuations_thread)
6196 (do_all_intermediate_continuations)
6197 (do_all_intermediate_continuations_thread)
6198 (do_all_inferior_continuations): Add `err' parameter.
6199 * continuations.c (do_my_continuations_1, do_my_continuations)
6200 (do_all_inferior_continuations, do_all_continuations_ptid)
6201 (do_all_continuations_thread_callback)
6202 (do_all_continuations_thread, do_all_continuations)
6203 (do_all_intermediate_continuations_thread_callback)
6204 (do_all_intermediate_continuations_thread)
6205 (do_all_intermediate_continuations): Add `err' parameter, and pass
6206 it down all the way to the continuations proper.
6207 * inf-loop.c (inferior_event_handler): If fetching an inferior
6208 event throws an error, don't pop the target, and still call the
6209 continuations, but with `err' set. Adjust all other continuation
6210 calls.
6211 * breakpoint.c (until_break_command_continuation): Add `err'
6212 parameter.
6213 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
6214 issue another step if `err' is set.
6215 (struct until_next_continuation_args): New.
6216 (until_next_continuation): Add `err' parameter. Adjust.
6217 (until_next_command): Adjust.
6218 (struct finish_command_continuation_args): Add `thread' field.
6219 (finish_command_continuation): Add `err' parameter. Handle it.
6220 (finish_forward): Adjust.
6221 (attach_command_continuation): Add `err' parameter. Handle it.
6222 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
6223 cancel the continuations.
6224 * interps.c (interp_set): Adjust to cancel the continuations.
6225 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
6226 continuations rather than discarding.
6227 (free_thread): Don't clear thread inferior resources here.
6228 (delete_thread_1): Do it here instead. And do it before removing
6229 the thread from the threads list. Tag the thread as exited before
6230 clearing thread inferior resources.
6231
6232 2011-05-30 Joel Brobecker <brobecker@adacore.com>
6233
6234 * infcall.c (call_function_by_hand): Rephrase error message.
6235
6236 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6237
6238 * defs.h (struct thread_info, struct inferior): Delete forward
6239 declarations.
6240 * breakpoint.h (struct thread_info): New forward declaration.
6241 * observer.sh (struct inferior): New forward declaration.
6242 * python/python-internal.h (struct inferior): New forward
6243 declaration.
6244
6245 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6246
6247 * defs.h (struct continuation, continuation_ftype)
6248 (continuation_free_arg_ftype, add_continuation)
6249 (do_all_continuations, do_all_continuations_thread)
6250 (discard_all_continuations, discard_all_continuations_thread)
6251 (add_intermediate_continuation, do_all_intermediate_continuations)
6252 (do_all_intermediate_continuations_thread)
6253 (discard_all_intermediate_continuations)
6254 (discard_all_intermediate_continuations_thread)
6255 (add_inferior_continuation, do_all_inferior_continuations)
6256 (discard_all_inferior_continuations): Move to ...
6257 * continuations.h: ... this new file.
6258 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
6259 infcmd.c, inferior.c, infrun.c, interps.c: Include
6260 continuations.h.
6261
6262 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6263 Doug Evans <dje@google.com>
6264
6265 Fix PR 10970, PR 12702.
6266 * linux-nat.c (linux_lwp_is_zombie): New function.
6267 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
6268 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
6269
6270 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6271
6272 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
6273 typedefs.
6274 (add_continuation, add_intermediate_continuation)
6275 (add_inferior_continuation): Use them.
6276 * continuations.c (struct continuation): Use them.
6277 (make_continuation_ftype): Delete.
6278 (make_continuation, add_inferior_continuation, add_continuation)
6279 (add_intermediate_continuation): Use continuation_ftype and
6280 continuation_free_arg_ftype. Rename parameters to shorter names.
6281
6282 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6283
6284 * continuations.c (make_continuation): Make it return void.
6285 (do_my_continuations): Rename to ...
6286 (do_my_continuations_1): ... this. Remove old_chain parameter and
6287 adjust.
6288 (do_my_continuations): New.
6289 (discard_my_continuations): Rename to ...
6290 (discard_my_continuations_1): ... this. Remove old_chain
6291 parameter and adjust.
6292 (discard_my_continuations): New.
6293 (add_inferior_continuation): Simplify.
6294 (do_all_inferior_continuations): Reimplement on top
6295 do_my_continuations.
6296 (discard_all_inferior_continuations): Simplify.
6297 (add_continuation): Simplify.
6298 (do_all_continuations_ptid): Simplify.
6299 (discard_all_continuations_thread_callback): Simplify.
6300 (add_intermediate_continuation): Simplify.
6301 (discard_all_intermediate_continuations_thread_callback):
6302 Simplify.
6303
6304 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6305
6306 * utils.c (struct continuation, add_continuation)
6307 (add_inferior_continuation)
6308 (do_all_inferior_continuations, discard_all_inferior_continuations)
6309 (restore_thread_cleanup, do_all_continuations_ptid)
6310 (do_all_continuations_thread_callback)
6311 (do_all_continuations_thread, do_all_continuations)
6312 (discard_all_continuations_thread_callback)
6313 (discard_all_continuations_thread, discard_all_continuations)
6314 (add_intermediate_continuation)
6315 (do_all_intermediate_continuations_thread_callback)
6316 (do_all_intermediate_continuations_thread)
6317 (do_all_intermediate_continuations)
6318 (discard_all_intermediate_continuations_thread_callback)
6319 (discard_all_intermediate_continuations_thread)
6320 (discard_all_intermediate_continuations): Move to ...
6321 * continuations.c: ... this new file, and adjust to no longer
6322 implement continuations on top of cleanups.
6323 * Makefile.in (SFILES): Add continuations.c.
6324 (COMMON_OBS): Add continuations.o.
6325
6326 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6327
6328 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6329 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6330 Internal error on invalid values.
6331 * reverse.c: Don't handle EXEC_ERROR.
6332 * mi/mi-main.c: Don't handle EXEC_ERROR.
6333
6334 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6335
6336 * record.c: Include event-loop.h, inf-loop.h.
6337 (record_beneath_to_async): New global.
6338 (tmp_to_async): New global.
6339 (record_async_inferior_event_token): New global.
6340 (record_open_1): Don't error out if async is enabled.
6341 (record_open): Handle to_async. Create an async event source in
6342 the event loop.
6343 (record_close): Delete the async event source.
6344 (record_resumed): New global.
6345 (record_execution_dir): New global.
6346 (record_resume, record_core_resume): Set them. Register the
6347 target on the event loop.
6348 (record_wait): Rename to ...
6349 (record_wait_1): ... this. Add more debug output. Handle
6350 TARGET_WNOHANG, and the target beneath returning
6351 TARGET_WAITKIND_IGNORE.
6352 (record_wait): Reimplement on top of record_wait_1.
6353 (record_async_mask_value): New global.
6354 (record_async, record_async_mask, record_can_async_p)
6355 (record_is_async_p, record_execution_direction): New functions.
6356 (init_record_ops, init_record_core_ops): Install new methods.
6357 * infrun.c (fetch_inferior_event): Temporarily switch the global
6358 execution direction to the direction the target was going.
6359 (execution_direction): Change type to int.
6360 * target.c (default_execution_direction): New function.
6361 (update_current_target): Inherit and de_fault
6362 to_execution_direction.
6363 * target.h (struct target_ops) <to_execution_direction>: New
6364 field.
6365 (target_execution_direction): New macro.
6366 * inferior.h (execution_direction): Change type to int.
6367
6368 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6369
6370 * infcall.c (call_function_by_hand): Don't allow calling functions
6371 in reverse execution mode.
6372
6373 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6374
6375 * infcmd.c (finish_command): Allow async finish in reverse.
6376
6377 2011-05-26 Yao Qi <yao@codesourcery.com>
6378
6379 * gdb_thread_db.h: Delete. Move to ...
6380 * common/gdb_thread_db.h: ... here.
6381
6382 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6383
6384 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6385 function's entry point instead of a manually managed momentary
6386 breakpoint, and only ever issue one proceed call.
6387 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6388 doing a reverse-finish, switch to stepi mode, to do another step.
6389 (insert_step_resume_breakpoint_at_sal): Make public.
6390 (normal_stop): No need to save function value return registers if
6391 going reverse.
6392 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6393
6394 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6395
6396 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6397 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6398 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6399 at the end.
6400 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6401 step-resume breakpoints.
6402 (print_it_typical): Handle bp_hp_step_resume.
6403 (bpstat_what): Ditto.
6404 (bptype_string): Ditto.
6405 (print_one_breakpoint_location): Ditto.
6406 (allocate_bp_location): Ditto.
6407 (mention): Ditto.
6408 (breakpoint_re_set_one): Ditto.
6409 * infrun.c (handle_inferior_event): Adjust. Split
6410 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6411 BPSTAT_WHAT_HP_STEP_RESUME.
6412 (insert_step_resume_breakpoint_at_sal): Rename to ...
6413 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6414 parameter. Handle it.
6415 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6416 insert_step_resume_breakpoint_at_sal_1.
6417 (insert_step_resume_breakpoint_at_frame): Rename to ...
6418 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6419 set a high-priority step-resume breakpoint.
6420 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6421 (insert_step_resume_breakpoint_at_caller): Ditto.
6422
6423 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6424
6425 * breakpoint.c (iterate_over_related_breakpoints): New.
6426 (do_map_delete_breakpoint): New.
6427 (delete_command): Pass do_map_delete_breakpoint to
6428 map_breakpoint_numbers.
6429 (do_disable_breakpoint): New.
6430 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6431 breakpoints.
6432 (do_enable_breakpoint): Rename to ...
6433 (enable_breakpoint_disp): ... this.
6434 (enable_breakpoint): Adjust.
6435 (do_enable_breakpoint): New.
6436 (enable_once_breakpoint): Delete.
6437 (do_map_enable_breakpoint): New.
6438 (do_map_enable_once_breakpoint): New.
6439 (enable_once_command, enable_delete_command)
6440 (delete_trace_command): Iterate over the breakpoint's related
6441 breakpoints.
6442
6443 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6444
6445 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6446 for ALPHA_ZERO_REGNUM.
6447 (alpha_supply_int_regs): Explicitly supply zero as the value for
6448 ALPHA_ZERO_REGNUM in the register cache.
6449 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6450
6451 2011-05-26 Yao Qi <yao@codesourcery.com>
6452
6453 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6454
6455 2011-05-26 Tristan Gingold <gingold@adacore.com>
6456
6457 * symfile.h (struct dwarf2_section_names): New type.
6458 (struct dwarf2_debug_sections): New type.
6459 (dwarf2_has_info): Add parameter.
6460 * dwarf2read.c (dwarf2_elf_names): New variable.
6461 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6462 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6463 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6464 (dwarf2_has_info): Add names parameter. Pass names
6465 to dwarf2_locate_sections.
6466 (section_is_p): Rewrite using the names parameter.
6467 (dwarf2_locate_sections): Use section names from the names parameter.
6468 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6469 * elfread.c (read_psyms): Ditto.
6470 * machoread.c (macho_symfile_read): Ditto.
6471
6472 2011-05-25 Andreas Schwab <schwab@redhat.com>
6473
6474 PR gdb/8677
6475 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6476
6477 2011-05-24 Keith Seitz <keiths@redhat.com>
6478
6479 PR breakpoint/12803
6480 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6481 (decode_compound): Unconditionally call keep_name_info.
6482
6483 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6484
6485 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6486 scope, clear its command list.
6487 (map_breakpoint_numbers): Don't walk the related breakpoints list
6488 of each breakpoint.
6489
6490 2011-05-24 Tom Tromey <tromey@redhat.com>
6491
6492 * MAINTAINERS: Move Jim Blandy to past maintainers.
6493
6494 2011-05-24 Tristan Gingold <gingold@adacore.com>
6495
6496 * symfile.h (enum dwarf2_section_enum): New type.
6497 (dwarf2_get_section_info): New prototype.
6498 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6499 section_name by sect. Use a switch to select the info.
6500 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6501 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6502
6503 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6504
6505 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6506 shared library event breakpoint if there's no execution.
6507
6508 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6509
6510 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6511 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6512
6513 2011-05-23 Tom Tromey <tromey@redhat.com>
6514
6515 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6516 NULL.
6517
6518 2011-05-23 Doug Evans <dje@google.com>
6519
6520 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6521 entry for RuntimeError to doc string.
6522
6523 2011-05-23 Jerome Guitton <guitton@adacore.com>
6524
6525 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6526 sequence for probing loops.
6527
6528 2011-05-23 Pedro Alves <pedro@codesourcery.com>
6529
6530 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6531 comment.
6532
6533 2011-05-21 Mark Kettenis <kettenis@gnu.org>
6534
6535 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6536 zero as the value for %g0 in the register cache.
6537 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6538 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6539
6540 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6541
6542 * infrun.c (proceed): Set previous_inferior_ptid here.
6543 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6544 inferior_ptid, not null_ptid.
6545 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6546 (fetch_inferior_event): Nor here.
6547
6548 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6549
6550 * inf-loop.c (inferior_event_handler): Only output a message if
6551 verbose.
6552
6553 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
6554
6555 * MAINTAINERS: Update my e-mail address.
6556
6557 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6558
6559 * infrun.c (proceed): Switch the inferior event loop to
6560 INF_EXEC_COMPLETE if the target refused to resume from a
6561 vfork/fork.
6562
6563 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6564
6565 * infcmd.c: Include "inf-loop.h".
6566 (step_once): When stepping into an inline subroutine, pretend the
6567 target has run. If the target can async, switch the inferior
6568 event loop to INF_EXEC_COMPLETE.
6569 * inferior.h (user_visible_resume_ptid): Declare.
6570 * infrun.c (user_visible_resume_ptid): New function, factored out
6571 from `resume'.
6572 (resume): Use it.
6573 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6574 that the current thread is running. Merge async and sync
6575 branches.
6576
6577 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6578
6579 * infcmd.c (step_1): Simplify synchronous case.
6580
6581 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6582
6583 * tracepoint.c: Include exceptions.h.
6584 (TFILE_PID): Move higher in file.
6585 (tfile_open): Delay pushing the tfile target until we're assured
6586 the tfile header is present in the file. Wrap reading the initial
6587 newline-terminated lines in TRY_CATCH. Pop the target if the
6588 initial setup failed. Add the tfile's thread immediately
6589 aftwards, before any non-essential setup. Don't skip
6590 post_create_inferior if there are no traceframes present in the
6591 file.
6592 (tfile_close): Remove redundant check for null before xfree call.
6593 (tfile_thread_alive): New function.
6594 (init_tfile_ops): Register it as to_thread_alive callback.
6595
6596 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6597
6598 * tracepoint.c (tfile_open): Delete #if 0'd code.
6599
6600 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6601
6602 Fix -readnow for -gdwarf-4 unused type units.
6603 * dwarf2read.c (struct signatured_type): Remove the field offset.
6604 (create_signatured_type_table_from_index): Remove its initialization.
6605 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6606 instead. Add a complaint call.
6607 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6608 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6609 (lookup_signatured_type_at_offset, read_signatured_type)
6610 (write_one_signatured_type): Update the field for per_cu.
6611
6612 2011-05-19 Tom Tromey <tromey@redhat.com>
6613
6614 * python/py-inferior.c (python_inferior_exit): Use
6615 target_gdbarch.
6616 (python_on_resume): Likewise.
6617
6618 2011-05-19 Matt Rice <ratmice@gmail.com>
6619
6620 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6621
6622 2011-05-19 Hui Zhu <teawater@gmail.com>
6623
6624 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6625
6626 2011-05-19 Hui Zhu <teawater@gmail.com>
6627
6628 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6629
6630 2011-05-18 Tom Tromey <tromey@redhat.com>
6631
6632 * dwarf2read.c (dwarf2_add_field): Constify.
6633 * value.c (value_static_field): Constify.
6634 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6635 Now const.
6636 * ax-gdb.c (gen_static_field): Constify
6637
6638 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6639
6640 * linux-nat.c (kill_callback): Use SIGKILL first.
6641
6642 2011-05-18 Joel Brobecker <brobecker@adacore.com>
6643
6644 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6645
6646 2011-05-18 Tom Tromey <tromey@redhat.com>
6647
6648 * value.c (value_fn_field): Constify.
6649 * symtab.c (gdb_mangle_name): Constify.
6650 * stabsread.c (update_method_name_from_physname): Make 'physname'
6651 argument const.
6652 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6653 const. Use explicit fputc_filtered loop.
6654 (pascal_type_print_base): Constify.
6655 * p-lang.h (pascal_type_print_method_args): Update.
6656 * linespec.c (add_matching_methods): Constify.
6657 (add_constructors): Likewise.
6658 * jv-typeprint.c (java_type_print_base): Constify.
6659 * gdbtypes.h (struct cplus_struct_type)
6660 <fn_fieldlist.fn_field.physname>: Now const.
6661 * dwarf2read.c (compute_delayed_physnames): Constify.
6662 (dwarf2_add_member_fn): Likewise.
6663 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6664
6665 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6666
6667 * infrun.c (resume): Mention which is the current thread, and its
6668 current PC in debug output.
6669 (prepare_to_proceed): Mention the thread switching in debug
6670 output.
6671
6672 2011-05-18 Tom Tromey <tromey@redhat.com>
6673
6674 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6675 path check. Use xmalloc and cleanups.
6676 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6677
6678 2011-05-17 Tom Tromey <tromey@redhat.com>
6679
6680 * cp-valprint.c (cp_print_value_fields): Catch errors from
6681 value_static_field.
6682
6683 2011-05-17 Tom Tromey <tromey@redhat.com>
6684
6685 * dwarf2read.c (dwarf2_get_die_type): Call
6686 get_die_type_at_offset.
6687 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6688 get_base_type function.
6689
6690 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6691
6692 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6693 trap_expected.
6694
6695 2011-05-16 Doug Evans <dje@google.com>
6696
6697 * python/py-auto-load.c (source_section_scripts): Mention objfile
6698 name in warning.
6699
6700 2011-05-15 Doug Evans <dje@google.com>
6701
6702 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6703 (try_thread_db_load_from_pdir): Call it. If unable to find
6704 libthread_db in directory of libpthread, see if we're looking at
6705 the separate-debug-info copy.
6706
6707 * python/py-autoload.c (print_script): Print "Missing" instead of
6708 "No" for missing scripts.
6709 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6710
6711 2011-05-13 Doug Evans <dje@google.com>
6712
6713 * ui-file.c (stdio_file_write_async_safe): Add comment.
6714
6715 2011-05-14 Hui Zhu <teawater@gmail.com>
6716
6717 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6718
6719 2011-05-13 Doug Evans <dje@google.com>
6720
6721 Support $pdir and $sdir in libthread-db-search-path.
6722 * NEWS: Mention $sdir,$pdir.
6723 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6724 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6725 (try_thread_db_load_from_sdir): New function.
6726 (try_thread_db_load_from_dir): New function.
6727 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6728 system directories if search of libthread-db-search-path fails,
6729 that is now done via $sdir.
6730 (has_libpthread): New function.
6731 (thread_db_load): Remove search for libthread_db in directory of
6732 libpthread, that is now done via $pdir.
6733
6734 * NEWS: Mention "info auto-load-scripts".
6735 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6736 script_not_found_warning_printed.
6737 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6738 all callers updated. Initialize script_not_found_warning_printed.
6739 (get_auto_load_pspace_data_for_loading): New function.
6740 (maybe_add_script): New function.
6741 (source_section_scripts): Simplify. Only print one warning regardless
6742 of the number of auto-load scripts not found.
6743 (clear_section_scripts): Clear script_not_found_warning_printed.
6744 (auto_load_objfile_script): Record script in hash table.
6745 (count_matching_scripts): New function.
6746 (maybe_print_script): Renamed from maybe_print_section_script, all
6747 callers updated. Rewrite to use ui_out_*.
6748 (info_auto_load_scripts): Renamed from
6749 maintenance_print_section_scripts, all callers updated.
6750 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6751 renamed as "info auto-load-scripts".
6752
6753 2011-05-13 Tom Tromey <tromey@redhat.com>
6754
6755 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6756 (read_sleb128): Likewise.
6757
6758 2011-05-13 Tom Tromey <tromey@redhat.com>
6759
6760 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6761 offset display.
6762
6763 2011-05-13 Doug Evans <dje@google.com>
6764
6765 * linux-nat.c (debug_linux_nat_async): Delete.
6766 Replace all references to use debug_linux_nat instead.
6767 (show_debug_linux_nat_async): Delete.
6768 (sigchld_handler): Call ui_file_write_async_safe instead of
6769 fprintf_unfiltered.
6770 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6771 * ui-file.c (struct ui_file): New member to_write_async_safe.
6772 (null_file_write_async_safe): New function.
6773 (ui_file_write_async_safe): New function.
6774 (set_ui_file_write_async_safe): New function.
6775 (ui_file_new): Initialize to_write_async_safe.
6776 (stdio_file_write_async_safe): New function.
6777 (struct stdio_file): New member fd.
6778 (stdio_file_new): Initialize to_write_async_safe, fd.
6779 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6780 fileno.
6781 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6782 (set_ui_file_write_async_safe): Declare.
6783 (ui_file_write_async_safe): Declare.
6784
6785 2011-05-13 Tom Tromey <tromey@redhat.com>
6786
6787 * utils.c (do_value_free): New function.
6788 (make_cleanup_value_free): Likewise.
6789 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6790 freeing correctly.
6791 (dwarf2_loc_desc_needs_frame): Call
6792 make_cleanup_value_free_to_mark.
6793 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6794 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6795 value_free_to_mark.
6796 (new_dwarf_expr_context): Don't call value_mark.
6797 * dwarf2-frame.c (execute_stack_op): Call
6798 make_cleanup_value_free_to_mark.
6799 * defs.h (make_cleanup_value_free): Declare.
6800
6801 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6802
6803 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6804 prepare_execute_command.
6805 * top.c (prepare_execute_command): Return cleanup.
6806 (execute_command): Use cleanup from prepare_execute_command.
6807 * top.h (prepare_execute_command): Change prototype to return
6808 cleanup.
6809 * defs.h (struct value): Add opaque declaration.
6810 (make_cleanup_value_free_to_mark): Add prototype.
6811 * utils.c (do_value_free_to_mark): New function.
6812 (make_cleanup_value_free_to_mark): Likewise.
6813
6814 2011-05-12 Tom Tromey <tromey@redhat.com>
6815
6816 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6817 cast left-hand-side to unsigned.
6818
6819 2011-05-12 Tom Tromey <tromey@redhat.com>
6820
6821 PR gdb/12617:
6822 * value.h (value_from_contents): Declare.
6823 * value.c (value_from_contents): New function.
6824 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6825 (dwarf2_get_die_type): New function.
6826 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6827 (allocate_piece_closure): Acquire reference to values.
6828 (read_pieced_value): Update for value-based expressions.
6829 (write_pieced_value): Likewise.
6830 (free_pieced_value_closure): Call value_free as needed.
6831 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6832 Update for value-based expressions.
6833 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6834 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6835 <get_base_type>: New field.
6836 (struct dwarf_expr_piece) <v.value>: Change type.
6837 <v.regno>: New field.
6838 (struct dwarf_expr_context) <mark>: New field.
6839 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6840 (dwarf_expr_pop, dwarf_expr_push): Remove.
6841 (dwarf_expr_push_address): Declare.
6842 * dwarf2expr.c (dwarf_arch_cookie): New global.
6843 (struct dwarf_gdbarch_types): New.
6844 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6845 functions.
6846 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6847 static.
6848 (dwarf_expr_push_address): New function.
6849 (dwarf_expr_pop): Now static.
6850 (dwarf_expr_fetch): Change return type.
6851 (dwarf_require_integral): New function.
6852 (dwarf_expr_fetch): Simplify.
6853 (add_piece): Update.
6854 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6855 functions.
6856 (execute_stack_op) <sign_ext>: Remove.
6857 Use values for DWARF stack.
6858 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6859 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6860 New cases.
6861 (_initialize_dwarf2expr): New function.
6862 (add_piece): Update.
6863 (new_dwarf_expr_context): Set new field.
6864 (free_dwarf_expr_context): Call value_free_to_mark.
6865 * dwarf2-frame.c (no_base_type): New function.
6866 (execute_stack_op): Set get_base_type field. Update.
6867
6868 2011-05-12 Tom Tromey <tromey@redhat.com>
6869
6870 * dwarf2read.c (read_common_block): Fix formatting.
6871
6872 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6873
6874 * breakpoint.c (disable_breakpoint): Disable all locations
6875 associated with a tracepoint on target if a trace experiment is
6876 running.
6877 (disable_command): Disable a specific tracepoint location on target if
6878 a trace experiment is running.
6879 (do_enable_breakpoint): Enable all locations associated with a
6880 tracepoint on target if a trace experiment is running.
6881 (enable_command) Enable a specific tracepoint location on target if a
6882 trace experiment is running.
6883 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6884 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6885 to_disable_tracepoint.
6886 * target.h: Add declaration of struct bp_location.
6887 (struct target_ops): Add new functions
6888 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6889 to_disable_tracepoint to target operations.
6890 (target_supports_enable_disable_tracepoint): New macro.
6891 (target_enable_tracepoint): New macro.
6892 (target_disable_tracepoint): New macro.
6893 * remote.c (struct remote_state): Add new field.
6894 (remote_enable_disable_tracepoint_feature): New.
6895 (remote_protocol_features): Add new entry.
6896 (remote_supports_enable_disable_tracepoint): New.
6897 (remote_enable_tracepoint): New.
6898 (remote_disable_tracepoint): New.
6899 (init_remote_ops): Add remote_enable_tracepoint,
6900 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6901 to remote operations.
6902 * tracepoint.c (start_tracing): Allow tracing to start without any
6903 tracepoints enabled with just a warning if they can be re-enabled
6904 later.
6905 * NEWS: Add news item for the new behaviour of the enable and disable
6906 GDB commands when applied to tracepoints.
6907 Add news items for the new remote packets QTEnable and QTDisable.
6908
6909 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6910
6911 * config.in: Regenerate.
6912 * configure: Regenerate.
6913 * configure.ac <--with-system-readline> (for readline_echoing_p):
6914 Remove the test.
6915 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6916 (tui_old_rl_echoing_p): ... here.
6917 (tui_setup_io): Rename extern declaration readline_echoing_p to
6918 _rl_echoing_p. Adjust assignments for the both renames.
6919
6920 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6921
6922 * symtab.c (lookup_symtab): Run cleanup before returning.
6923
6924 2011-05-11 Tom Tromey <tromey@redhat.com>
6925
6926 * dwarf2read.c (handle_data_member_location): New function.
6927 (dwarf2_add_field): Use it.
6928 (read_common_block): Likewise.
6929
6930 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6931
6932 Make addrs->SECTINDEX always defined.
6933 * symfile.c (relative_addr_info_to_section_offsets): Check for
6934 SECTINDEX -1, not for zero ADDR.
6935 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6936 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6937 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6938 on its validity.
6939
6940 2011-05-10 Doug Evans <dje@google.com>
6941
6942 * linux-thread-db.c: Whitespace cleanup.
6943 (try_thread_db_load_1): Fix comment.
6944
6945 * linux-thread-db.c (set_libthread_db_search_path): New function.
6946 (_initialize_thread_db): Add setter for libthread-db-search-path.
6947
6948 2011-05-09 Doug Evans <dje@google.com>
6949
6950 * NEWS: Mention --with-iconv-bin.
6951 * configure.ac: New option --with-iconv-bin.
6952 * configure: Regenerate.
6953 * config.in: Regenerate.
6954 * defs.h (relocate_gdb_directory): Declare.
6955 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6956 removed progname parameter, and exported. All callers updated.
6957 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6958
6959 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6960 adding missing call to restore_child_signals_mask.
6961
6962 2011-05-09 Pedro Alves <pedro@codesourcery.com>
6963
6964 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6965 parameter.
6966 * infrun.c (proceed, start_remote): Adjust.
6967 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6968 and adjust to not handle it.
6969 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6970 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6971 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6972 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6973 * windows-nat.c (do_initial_windows_stuff): Adjust.
6974 * infcmd.c (attach_command): Adjust.
6975 (notice_new_inferior): Adjust.
6976
6977 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6978
6979 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6980 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6981 * spu-tdep.c (op_selb): Use correct value.
6982
6983 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6984
6985 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6986 "parent" parameter to symbol_file_add_from_bfd call.
6987
6988 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6989 Thiago Jung Bauermann <bauerman@br.ibm.com>
6990
6991 Implement support for PowerPC BookE masked watchpoints.
6992 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6993 section.
6994 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6995 method. Initialize to NULL in all existing breakpoint_ops instances.
6996 (struct breakpoint) <hw_wp_mask>: New field.
6997 * breakpoint.c (is_masked_watchpoint): Add prototype.
6998 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6999 breakpoint's breakpoint_ops.works_in_software_mode if available.
7000 (watchpoints_triggered): Handle the case of a hardware masked
7001 watchpoint trigger.
7002 (watchpoint_check): Likewise.
7003 (works_in_software_mode_watchpoint): New function.
7004 (insert_masked_watchpoint, remove_masked_watchpoint)
7005 (resources_needed_masked_watchpoint)
7006 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
7007 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
7008 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
7009 functions.
7010 (masked_watchpoint_breakpoint_ops): New structure.
7011 (watch_command_1): Check for the existence of the `mask' parameter.
7012 Set b->ops according to the type of hardware watchpoint being created.
7013 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
7014 (ppc_linux_remove_mask_watchpoint)
7015 (ppc_linux_masked_watch_num_registers): New functions.
7016 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
7017 to_remove_mask_watchpoint and to_masked_watch_num_registers.
7018 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
7019 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
7020 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
7021 (target_masked_watch_num_registers): New functions.
7022 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
7023 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
7024 methods.
7025 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
7026 (target_masked_watch_num_registers): Add prototypes.
7027
7028 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7029
7030 PR 12573
7031 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
7032 (producer_is_gcc_ge_4_0): New function.
7033 (process_full_comp_unit): Set also symtab->locations_valid. Move the
7034 symtab->language code.
7035 (var_decode_location): Set cu->has_loclist.
7036 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
7037 skip. Intialize force_skip from locations_valid. Move the prologue
7038 skipping code into two passes.
7039 * symtab.h (struct symtab): Make the primary field a bitfield. New
7040 field locations_valid.
7041
7042 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7043
7044 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
7045 (classify_inner_name): Call cp_lookup_nested_type with
7046 yylval.tsym.type.
7047 * cp-namespace.c (cp_lookup_nested_type): New variable
7048 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
7049 type_name_no_tag_or_error with saved_parent_type.
7050 * dwarf2read.c (load_partial_dies): Read in any children of
7051 DW_TAG_typedef with complaint in such case.
7052 * gdbtypes.c (type_name_no_tag_or_error): New function.
7053 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
7054 * valops.c (destructor_name_p): New comment for parameter type. Remove
7055 type const. Make dname and cp const. Call type_name_no_tag_or_error.
7056 * value.h (destructor_name_p): Remove type const.
7057
7058 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7059
7060 * symtab.c (compare_symbol_name): New function.
7061 (completion_list_add_name, expand_partial_symbol_name): Call it,
7062 remove the variable ncmp.
7063 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
7064 gdb_assert it.
7065
7066 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
7067
7068 Demote to sw watchpoint only in update_watchpoint.
7069 * breakpoint.c (update_watchpoint): Change between software and
7070 hardware watchpoint for all kinds of watchpoints, not just
7071 read/write ones. Determine b->exact value here instead of
7072 in watch_command_1. Error out if there are not enough resources
7073 for a read or access hardware watchpoint.
7074 (watch_command_1): Remove logic of checking whether there are
7075 enough resources available, since update_watchpoint will do that
7076 work now. Don't set b->exact here. Catch exceptions thrown by
7077 update_watchpoint and delete the watchpoint.
7078 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
7079 Use target_exact_watchpoints instead.
7080 (delete_breakpoint): Notify observers only if deleted watchpoint
7081 has a breakpoint number assigned to it.
7082
7083 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
7084
7085 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7086
7087 2011-05-05 Jerome Guitton <guitton@adacore.com>
7088
7089 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
7090 New functions.
7091 (i386_stack_tramp_frame_unwind): New static global.
7092 (i386_match_pattern): New function, extracted from i386_match_insn.
7093 (i386_match_insn): Use i386_match_pattern.
7094 (i386_match_insn_block): New function.
7095 (i386_tramp_chain_in_reg_insns)
7096 (i386_tramp_chain_on_stack_insns): New static variables.
7097 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
7098 of unwinders.
7099
7100 2011-05-04 Joseph Myers <joseph@codesourcery.com>
7101
7102 * configure.host (xscale*): Don't handle target.
7103 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
7104 handle targets.
7105
7106 2011-05-04 Yao Qi <yao@codesourcery.com>
7107
7108 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
7109
7110 2011-05-03 Joel Brobecker <brobecker@adacore.com>
7111
7112 Revert:
7113 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
7114 | * elfread.c (elf_symtab_read): Stop memory leak.
7115
7116 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7117
7118 * nto-tdep.c (nto_target): Replace deprecated call to
7119 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
7120
7121 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7122
7123 Fix false GCC warning.
7124 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
7125
7126 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
7127
7128 * breakpoint.c (update_watchpoint): Move code to change
7129 the enable state of breakpoint from here ...
7130 (do_enable_breakpoint): ... to here.
7131
7132 2011-04-26 Andrew Gontarek <andrewg@cray.com>
7133
7134 * valprint.c (val_print_array_elements): Fixed poor performance
7135 of printing very large arrays with repeat_count_threshold set
7136 to unlimited. New comment.
7137
7138 2011-04-29 Tom Tromey <tromey@redhat.com>
7139
7140 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
7141 (mi_parse): Likewise.
7142 * breakpoint.c (break_range_command): Use sizeof char*, not
7143 char**.
7144 (create_breakpoint): Likewise.
7145 (parse_breakpoint_sals): Likewise.
7146
7147 2011-04-29 Pedro Alves <pedro@codesourcery.com>
7148
7149 * linux-nat.c (linux_child_remove_fork_catchpoint)
7150 (linux_child_remove_vfork_catchpoint)
7151 (linux_child_remove_exec_catchpoint): New functions.
7152 (linux_target_install_ops): Install them.
7153
7154 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
7155
7156 PR mi/12531
7157
7158 * varobj.c (install_default_visualizer): Do not install a
7159 visualizer if the varobj is CPLUS_FAKE_CHILD.
7160 (construct_visualizer): Likewise.
7161
7162 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7163
7164 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
7165 case insensitive comparison.
7166
7167 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
7168
7169 * infrun.c (proceed): Revert previous change.
7170 (resume): Instead, handle the case of signal delivery while stepping
7171 off a breakpoint location here, and only if software single-stepping
7172 is used. Handle nested signals.
7173
7174 2011-04-28 Yao Qi <yao@codesourcery.com>
7175
7176 * arm-tdep.c (copy_unmodified): Rename to ...
7177 (arm_copy_unmodified): .. this. New.
7178 (copy_preload): Move common part to ...
7179 (install_preload): .. this. New.
7180 (arm_copy_preload): New.
7181 (copy_preload_reg): Move common part to ...
7182 (install_preload_reg): ... this. New.
7183 (arm_copy_preload_reg): New.
7184 (copy_b_bl_blx): Move common part to ...
7185 (install_b_bl_blx): .. this. New.
7186 (arm_copy_b_bl_blx): New.
7187 (copy_bx_blx_reg): Move common part to ...
7188 (install_bx_blx_reg): ... this. New.
7189 (arm_copy_bx_blx_reg): New.
7190 (copy_alu_reg): Move common part to ...
7191 (install_alu_reg): ... this. New.
7192 (arm_copy_alu_reg): New.
7193 (copy_alu_shifted_reg): Move common part to ...
7194 (install_alu_shifted_reg): ... this. New.
7195 (copy_ldr_str_ldrb_strb): Move common part to ...
7196 (install_ldr_str_ldrb_strb): ... this. New.
7197 (arm_copy_ldr_str_ldrb_strb): New.
7198 (copy_copro_load_store): Move some common part to ...
7199 (install_copy_copro_load_store): ... this. New.
7200 (arm_copy_copro_load_store): New.
7201 (copy_svc): Delete.
7202 (arm_copy_svc): Renamed from copy_svc.
7203 (copy_undef): Delete.
7204 (arm_copy_undef): Renamed from copy_undef.
7205 (decode_ext_reg_ld_st): Delete.
7206 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7207 (decode_svc_copro): Delete.
7208 (arm_decode_svc_copro): Renamed from decode_svc_copro.
7209 (copy_copro_load_store, copy_alu_imm): update callers.
7210 (copy_extra_ld_st, copy_block_xfer): Likewise.
7211 (decode_misc_memhint_neon, decode_unconditional): Likewise.
7212 (decode_miscellaneous, decode_dp_misc): Likewise.
7213 (decode_ld_st_word_ubyte, decode_media): Likewise.
7214 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
7215 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
7216 (decode_unconditional, decode_miscellaneous): Likewise.
7217 (decode_media, decode_b_bl_ldmstm): Likewise.
7218 (arm_process_displaced_insn): Likewise..
7219 (decode_misc_memhint_neon): Delete.
7220 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
7221 (decode_miscellaneous): Delete.
7222 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
7223 (decode_dp_misc): Delete.
7224 (arm_decode_dp_misc): Renamed from decode_dp_misc.
7225 (decode_ld_st_word_ubyte): Delete.
7226 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
7227 (decode_media): Delete.
7228 (arm_decode_media): Renamed from decode_media.
7229 (decode_b_bl_ldmstm): Delete.
7230 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
7231 (decode_ext_reg_ld_st): Delete.
7232 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7233 (decode_unconditional): Delete.
7234 (arm_decode_unconditional): Renamed from decode_unconditional.
7235
7236 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7237
7238 Case insensitive lookups implementation.
7239 * dwarf2read.c: Include ctype.h.
7240 (struct mapped_index): New field version.
7241 (mapped_index_string_hash): New parameter index_version. New comment
7242 for it. Call tolower appropriately.
7243 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
7244 Choose the right index version for mapped_index_string_hash.
7245 (dwarf2_read_index): Support also the index version 5. Initialize the
7246 new struct mapped_index field version.
7247 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
7248 (find_slot): Explain the version needs. Pass INT_MAX for the new
7249 parameter.
7250 (write_psymtabs_to_index): Produce version 5.
7251 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
7252 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
7253 * psymtab.c (lookup_partial_symbol): Find the
7254 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
7255 entries.
7256 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
7257 NAME lowercasing.
7258 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
7259 (completion_list_add_name): New variable ncmp, initialize it, use it.
7260 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
7261 * utils.c (strcmp_iw): Support case_sensitive_off.
7262 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
7263 New function comment part. New variables saved_string1,
7264 saved_string2 and case_pass. Add a proper second pass.
7265
7266 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7267
7268 Replace re_comp/re_exec by regcomp/regexec.
7269 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
7270 (search_symbols_name_matches): Use them, use regexec.
7271 (search_symbols): New variable retval_chain, adjust the use of
7272 old_chain against it. Replace re_comp by regcomp. Use the new struct
7273 search_symbols_data fields, use regexec instead of re_exec.
7274
7275 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7276
7277 Format the code for the next patch.
7278 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
7279 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
7280 New variables c1 and c2.
7281
7282 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7283
7284 * infrun.c (proceed): Do not single-step into signal delivery
7285 when stepping off a breakpoint location.
7286 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
7287 (insert_step_resume_breakpoint_at_caller): Likewise.
7288 (insert_step_resume_breakpoint_at_sal): Likewise.
7289 (insert_longjmp_resume_breakpoint): Likewise.
7290
7291 2011-04-27 Yao Qi <yao@codesourcery.com>
7292
7293 * common/linux-ptrace.h: Remove include <sys/wait.h>.
7294
7295 2011-04-27 Joel Brobecker <brobecker@adacore.com>
7296
7297 * procfs.c (procfs_pass_signals): Fix advance declaration.
7298
7299 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7300
7301 * target.h (struct target_ops): Remove to_notice_signals;
7302 add to_pass_signals.
7303 (target_notice_signals): Remove.
7304 (target_pass_signals): Add prototype.
7305 * target.c (update_current_target): Remove to_notice_signals;
7306 mention to_pass_signals.
7307 (target_pass_signals): New function.
7308 (debug_to_notice_signals): Remove.
7309 (setup_target_debug): Do not install debug_to_notice_signals.
7310
7311 * infrun.c (signal_pass): New global.
7312 (resume): Call target_pass_signals.
7313 (handle_inferior_event): Report all signals while stepping over
7314 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
7315 are re-inserted when stepping over a signal handler.
7316 (signal_cache_update): New function.
7317 (signal_stop_update): Call it.
7318 (signal_print_update): Likewise.
7319 (signal_pass_update): Likewise.
7320 (handle_command): Call signal_cache_update and target_pass_signals
7321 instead of target_notice_signals.
7322 (_initialize_infrun): Initialize signal_pass.
7323
7324 * linux-nat.c (pass_mask): New global.
7325 (linux_nat_pass_signals): New function.
7326 (linux_nat_create_inferior): Report all signals initially.
7327 (linux_nat_attach): Likewise.
7328 (linux_nat_resume): Use pass_mask to decide whether to directly
7329 handle an inferior signal.
7330 (linux_nat_wait_1): Likewise.
7331 (linux_nat_add_target): Install to_pass_signals callback.
7332
7333 * nto-procfs.c (notice_signals): Remove.
7334 (procfs_resume): Do not call notice_signals.
7335 (procfs_notice_signals): Remove.
7336 (procfs_pass_signals): New function.
7337 (init_procfs_ops): Install to_pass_signals callback instead of
7338 to_notice_signals callback.
7339 (_initialize_procfs): Report all signals initially.
7340
7341 * procfs.c (procfs_notice_signals): Remove.
7342 (procfs_pass_signals): New function.
7343 (procfs_target): Install to_pass_signals callback instead of
7344 to_notice_signals callback.
7345 (register_gdb_signals): Remove.
7346 (procfs_debug_inferior): Report all signals initially.
7347 (procfs_init_inferior): Remove redundant register_gdb_signals call.
7348
7349 * remote.c (remote_pass_signals): Add numsigs and pass_signals
7350 parameters; use them instead of calling signal_..._state routines.
7351 (remote_notice_signals): Remove.
7352 (remote_start_remote): Report all signals initially.
7353 (remote_resume): Do not call remote_pass_signals.
7354 (_initialize_remote): Install to_pass_signals callback instead of
7355 to_notice_signals callback.
7356
7357 2011-04-27 Pedro Alves <pedro@codesourcery.com>
7358
7359 * breakpoint.c (user_settable_breakpoint): Delete.
7360 (user_breakpoint_p): Remove check on user_settable_breakpoint.
7361 (delete_command): Check user_breakpoint_p instead of looking at
7362 the breakpoint's type.
7363 (disable_command): Ditto.
7364 (enable_command): Ditto.
7365 (delete_trace_command): Use user_breakpoint_p instead of looking
7366 at the breakpoint number directly. When checking if there are
7367 user visible tracepoints, in order to know whether to ask the user
7368 for confirmation, check whether the breakpoint is actually a
7369 tracepoint.
7370
7371 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7372
7373 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7374 compilation.
7375
7376 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7377
7378 MI breakpoint notifications.
7379
7380 * annotate.c (breakpoint_changed): Adjust parameter type.
7381 * breakpoint.c (set_breakpoint_condition): Adjust to change
7382 in breakpoint_modified type.
7383 (breakpoint_set_commands): Likewise.
7384 (do_map_commands_command): Likewise.
7385 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7386 changed after bumping hit count.
7387 (bpstat_stop_status): Likewise.
7388 (print_one_breakpoint_location): Don't wrap in tuple here.
7389 (print_one_breakpoint): Always print individual locations.
7390 For locations, use unnamed tuple.
7391 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7392 has changed.
7393 (create_catchpoint, create_syscall_event_catchpoint): Call
7394 breakpoint_created obsever.
7395 (mention): Don't call breakpoint_created observer.
7396 (create_breakpoint_sal): Call breakpoint_created observer.
7397 (create_breakpoint, watch_command_1): Likewise.
7398 (create_ada_exception_breakpoint): Likewise.
7399 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7400 (locations_are_equal): New.
7401 (update_breakpoint_locations): If locations were changed, notify.
7402 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7403 Call breakpoint_modified observer.
7404
7405 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7406 (mi_cmd_break_insert): Don't set observers for modify and delete.
7407 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7408 (mi_breakpoint_created, mi_breakpoint_deleted)
7409 (mi_breakpoint_modified): New.
7410 (mi_interpreter_init): Hook the above.
7411 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7412 while -break-* commands are executing.
7413 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7414 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7415 (mi_redirect): New.
7416 (mi_ui_out_impl): Hook in mi_redirect.
7417 (mi_field_skip): True to the name, skip the field, don't output
7418 a field with an empty value.
7419
7420 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7421 (gdbpy_breakpoint_deleted): Adjust.
7422 * tui/tui-hooks.c (tui_event_create_breakpoint)
7423 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
7424
7425 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7426
7427 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7428 (procfs_remove_hw_watchpoint): Likewise.
7429
7430 2011-04-26 Michael Walle <michael@walle.cc>
7431
7432 * remote.c (remote_start_remote): Ack packet after sending the
7433 interrupt sequence.
7434
7435 2011-04-26 Yao Qi <yao@codesourcery.com>
7436
7437 * linux-nat.c: Move common macros to ...
7438 Include linux-ptrace.h.
7439 * common/linux-ptrace.h: ... here. New.
7440
7441 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7442
7443 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7444 !objfile_has_partial_symbols. New comment.
7445 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7446 SYM_READ_PSYMBOLS is not present. Extend the comment.
7447 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7448
7449 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7450
7451 * defs.h (ENUM_BITFIELD): Remove.
7452
7453 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7454 Eli Zaretskii <eliz@gnu.org>
7455
7456 * NEWS: Document the new gdbserver --once option.
7457
7458 2011-04-21 Jie Zhang <jzhang918@gmail.com>
7459
7460 * MAINTAINERS: Update my email address.
7461
7462 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7463
7464 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7465 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7466 function call if __STDC_ISO_10646__ macro is defined.
7467 (intermediate_encoding): New prototype.
7468 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7469 to generate compile time error for unsupported gdb_wchar_t size.
7470 (ENDIAN_SUFFIX): New macro.
7471 (intermediate_encoding): New function.
7472
7473 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7474
7475 * ada-lang.c (struct add_partial_datum): Update the comment for
7476 expand_partial_symbol_name.
7477 (ada_add_partial_symbol_completions): Rename to ...
7478 (ada_expand_partial_symbol_name): ... here, change return type, update
7479 function comment, call symbol_completion_match instead of
7480 symbol_completion_add.
7481 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7482 and ada_expand_partial_symbol_name.
7483 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7484 FILE_MATCHER.
7485 (dw2_map_symbol_names): Remove.
7486 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7487 * psymtab.c (map_symbol_names_psymtab): Remove.
7488 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7489 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7490 order.
7491 (psym_functions): Unlist map_symbol_names_psymtab.
7492 (map_partial_symbol_names): Rename to ...
7493 (expand_partial_symbol_names): ... here, change the FUN type, call
7494 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7495 * psymtab.h (map_partial_symbol_names): Rename to ...
7496 (expand_partial_symbol_names): ... here, change the FUN type.
7497 * symfile.h (struct quick_symbol_functions): Update the description of
7498 expand_symtabs_matching. Remove map_symbol_names.
7499 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7500 (struct add_name_data): Update the comment for
7501 expand_partial_symbol_name.
7502 (add_partial_symbol_name): Rename to ...
7503 (expand_partial_symbol_name): ... here. Replace
7504 completion_list_add_name call by strncmp.
7505 (default_make_symbol_completion_list_break_on): Use now
7506 expand_partial_symbol_names and expand_partial_symbol_name.
7507 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7508
7509 2011-04-20 Tom Tromey <tromey@redhat.com>
7510
7511 * dwarf2read.c (save_gdb_index_command): Replace format
7512 documentation with a pointer to the manual.
7513
7514 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7515
7516 * regcache.c: Include remote.h.
7517 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7518 (regcache_dump): Handle regcache_dump_remote.
7519 (maintenance_print_remote_registers): New function.
7520 (_initialize_regcache): Install "maint print remote-registers"
7521 command.
7522 * remote.c (map_regcache_remote_table): New function, factored out
7523 from ...
7524 (init_remote_state): ... here.
7525 (remote_register_number_and_offset): New.
7526 * remote.h (remote_register_number_and_offset): Declare.
7527
7528 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7529
7530 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7531 null_ptid, assume and allow a NULL address space, instead of
7532 asking the target for the ptid's address space.
7533 * infrun.c (ptid_is_pid): Remove assertion.
7534
7535 2011-04-19 Tom Tromey <tromey@redhat.com>
7536
7537 * windows-tdep.c (windows_xfer_shared_library):
7538 * windows-nat.c (get_module_name, windows_make_so):
7539 * v850-tdep.c (v850_handle_pushm):
7540 * utils.c (null_cleanup, gdb_realpath):
7541 * ui-out.c (get_next_header):
7542 * tracepoint.c (clear_traceframe_info):
7543 * symtab.c (lookup_symtab):
7544 * serial.h (struct serial_ops):
7545 * mipsread.c (read_alphacoff_dynamic_symtab):
7546 * infcmd.c (print_return_value):
7547 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7548 * f-exp.y (parse_number):
7549 * exceptions.c (catch_exceptions):
7550 * dummy-frame.c (dummy_frame_this_id):
7551 * defs.h (struct cleanup):
7552 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7553 * arm-tdep.c (arm_push_dummy_call):
7554 * amd64-tdep.h (amd64_collect_xsave):
7555 * amd64-tdep.c (amd64_collect_xsave):
7556 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7557 * README (typing): Remove duplicate words.
7558 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7559 * infrun.c (siginfo_value_read): Fix typo.
7560 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7561 * top.c (source_line_number): Add comma.
7562
7563 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7564
7565 * thread.c (any_live_thread_of_process): Prioritize threads
7566 that are not executing.
7567 * gdbthread.h (any_live_thread_of_process): Update comment
7568 as per above change.
7569
7570 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7571
7572 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7573 (scan_xcoff_symtab): Likewise.
7574
7575 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7576
7577 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7578 inside if clause.
7579
7580 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7581 Pedro Alves <pedro@codesourcery.com>
7582
7583 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7584 variables to simplify code and avoid == operator at end of
7585 line as this is against GNU coding standards.
7586
7587 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7588
7589 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7590 lm_name to name_lm to avoid conflict with lm_name function.
7591
7592 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7593
7594 ARI fixes: Use only lowercase function name for static functions.
7595 * nto-tdep.c (LM_ADDR): Rename to...
7596 (lm_addr): New function name.
7597 (nto_relocate_section_addresses): Adapt to change above.
7598 * solib-sunos.c (LM_ADDR): Rename to...
7599 (lm_addr): New function name.
7600 (LM_NEXT): Rename to...
7601 (lm_next): New function name.
7602 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7603 function name changes above.
7604 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7605 (lm_addr_from_link_map): New function name.
7606 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7607 (has_lm_dynamic_from_link_map): New function name.
7608 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7609 (lm_dynamic_from_link_map): New function name.
7610 (LM_ADDR_CHECK): Rename to...
7611 (lm_addr_check): New function name.
7612 (LM_NEXT): Rename to...
7613 (lm_next): New function name.
7614 (LM_PREV): Rename to...
7615 (lm_prev): New function name.
7616 (LM_NAME): Rename to...
7617 (lm_name): New function name.
7618 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7619 (ignore_first_link_map_entry): New function name.
7620 (svr4_keep_data_in_core): Adapt to function name changes above.
7621 (svr4_current_sos): Likewise.
7622 (enable_break): Likewise.
7623 (svr4_relocate_section_addresses): Likewise.
7624
7625 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7626
7627 ARI cleanup.
7628 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7629 sprintf. Simplify code and avoid loosing memory.
7630 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7631 (call0_frame_cache): Remove && operator from end of line.
7632
7633 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7634
7635 Fix libraries displacement if they change whether they were prelinked.
7636 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7637 does not match. Comment why.
7638
7639 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7640
7641 * corelow.c: Include wrapper.h.
7642 (core_open): Call now gdb_target_find_new_threads.
7643 * wrapper.c: Include target.h.
7644 (gdb_target_find_new_threads): New.
7645 * wrapper.h (gdb_target_find_new_threads): New declaration.
7646
7647 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7648
7649 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7650 even if !TARGET_HAS_EXECUTION.
7651
7652 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7653
7654 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7655 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7656 bfd_get_synthetic_symtab.
7657 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7658 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7659 parameter parent, remove the call to add_separate_debug_objfile.
7660 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7661 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7662 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7663 parent, new comment for it, call add_separate_debug_objfile for it.
7664 (symbol_file_add_separate): Pass objfile as the parameter parent,
7665 remove the call to add_separate_debug_objfile.
7666 (symbol_file_add_from_bfd): New parameter parent, pass it.
7667 (symbol_file_add): Pass NULL to the new parameter parent.
7668 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7669
7670 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7671
7672 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7673 BSF_SYNTHETIC.
7674
7675 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7676
7677 Fix Python access to inlined frames.
7678 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7679 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7680
7681 2011-04-15 Tom Tromey <tromey@redhat.com>
7682
7683 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7684
7685 2011-04-15 Gary Benson <gbenson@redhat.com>
7686
7687 * MAINTAINERS: Add myself to write-after-approval section.
7688
7689 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7690
7691 * remote-sim.c (sim_command_completer): New function.
7692 (_initialize_remote_sim): Set completer to sim_command_completer.
7693
7694 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7695
7696 * breakpoint.c (print_exception_catchpoint): Rename to ...
7697 (print_it_exception_catchpoint): ... this.
7698 (gnu_v3_exception_catchpoint_ops): Update with new name
7699 for print_it_exception_catchpoint.
7700
7701 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7702
7703 * MAINTAINERS: Add myself for write after approval privileges.
7704
7705 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7706
7707 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7708
7709 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7710
7711 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7712
7713 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7714
7715 * breakpoint.c (save_breakpoints): Verify whether
7716 breakpoint_ops.print_recreate is defined before calling it.
7717
7718 2011-04-11 Gary Benson <gbenson@redhat.com>
7719
7720 Fix failure with --enable-maintainer-mode.
7721 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7722
7723 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7724
7725 Code cleanup.
7726 * symtab.c (search_symbols): Reorder the KIND description in the
7727 function comment. Remove the unused 4th element of types, types2,
7728 types3 and types4. New gdb_assert on KIND.
7729 (symtab_symbol_info): Remove the unused 4th element of classnames.
7730 New gdb_assert on KIND.
7731 * symtab.h (enum search_domain): New warning in the enum comment.
7732 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7733 TYPES_DOMAIN.
7734
7735 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7736
7737 Fix crash of gdb save-index on a STABS file.
7738 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7739 PSYMTABS_ADDRMAP.
7740
7741 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7742
7743 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7744 * dwarf2read.c: Include ctype.h.
7745 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7746 functions.
7747 (dwarf2_add_field): Fix new_field->accessibility by calling
7748 dwarf2_default_access_attribute. Restructure setting accessibility
7749 vs. virtuality.
7750 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7751 is_private and is_protected by calling
7752 dwarf2_default_access_attribute.
7753
7754 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7755
7756 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7757 to the initialization.
7758
7759 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7760
7761 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7762 initalization.
7763
7764 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7765
7766 Remove support for old Cygwin 1.5 versions.
7767 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7768 function on old Cygwin version.
7769 * windows-nat.c: Remove cygwin version check and always define
7770 __USEWIDE for Cygwin compilation.
7771
7772 2011-04-07 Yao Qi <yao@codesourcery.com>
7773
7774 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7775 and TO.
7776 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7777 (arm_copy_svc): Remove parameters INSN and TO.
7778 (decode_svc_copro): Update caller.
7779 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7780 from function pointer `copy_svc_os'.
7781
7782 2011-04-07 Yao Qi <yao@codesourcery.com>
7783
7784 * arm-tdep.c (cleanup_branch): Set a correct return address in
7785 LR for ARM and Thumb.
7786
7787 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7788
7789 Code cleanup.
7790 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7791 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7792 in the function comment, a new note on values compatibility.
7793 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7794 * symtab.h (SYMBOL_HASH_NEXT): New.
7795
7796 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7797
7798 * ppc-linux-nat.c (check_condition): Add len output parameter.
7799 Set it based on the memory region referenced in the condition
7800 expression. Update all callers.
7801
7802 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7803
7804 Fix crash regression on systems featuring .gdb_index.
7805 * objfiles.c (free_objfile): Move the
7806 forget_cached_source_info_for_objfile call earlier. Comment it.
7807 Extend the comment for objfile_free_data.
7808
7809 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7810
7811 Fix regression of displaying the debug format.
7812 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7813 subfile.
7814
7815 2011-04-04 Tom Tromey <tromey@redhat.com>
7816
7817 * cli/cli-interp.c (struct captured_execute_command_args):
7818 Remove.
7819 (do_captured_execute_command): Remove.
7820 (safe_execute_command): Use TRY_CATCH.
7821 * cli/cli-script.c (struct wrapped_read_command_file_args):
7822 Remove.
7823 (wrapped_read_command_file): Remove.
7824 (script_from_file): Use TRY_CATCH.
7825 * exceptions.c (catch_exception): Remove.
7826 * exceptions.h (catch_exception): Remove.
7827 (deprecated_throw_reason): Update comment.
7828 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7829 argument to 'context'.
7830 (mi_execute_command): Use TRY_CATCH.
7831 * remote.c (struct start_remote_args): Remove.
7832 (remote_start_remote): Update; change arguments.
7833 (remote_open_1): Use TRY_CATCH.
7834
7835 2011-04-04 Tom Tromey <tromey@redhat.com>
7836
7837 * tracepoint.c (scope_info): Update.
7838 * symtab.c (decode_line_spec): Update.
7839 * python/python.c (gdbpy_decode_line): Update.
7840 * linespec.h (decode_line_1): Update.
7841 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7842 (decode_compound, find_method, symtab_from_filename)
7843 (decode_variable): Likewise.
7844 * cli/cli-cmds.c (edit_command): Update.
7845 (list_command): Update.
7846 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7847 argument.
7848 (create_breakpoint): Update.
7849 (until_break_command): Update.
7850 (addr_string_to_sals): Update.
7851 (decode_line_spec_1): Update.
7852
7853 2011-04-04 Tom Tromey <tromey@redhat.com>
7854
7855 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7856 (do_captured_parse_breakpoint): Remove.
7857 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7858 Use TRY_CATCH directly.
7859
7860 2011-04-04 Tom Tromey <tromey@redhat.com>
7861
7862 * symtab.h (free_symtab): Remove.
7863 (forget_cached_source_info_for_objfile): Declare.
7864 * symmisc.c (free_symtab): Remove.
7865 * source.c (forget_cached_source_info_for_objfile): New function.
7866 (forget_cached_source_info): Use it.
7867 * objfiles.c (free_objfile): Simplify check before calling
7868 clear_current_source_symtab_and_line. Call
7869 forget_cached_source_info_for_objfile.
7870
7871 2011-04-04 Tom Tromey <tromey@redhat.com>
7872
7873 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7874 (new_symtab): Don't set `free_code' on symtab.
7875 (new_linetable): Properly handle size==0.
7876 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7877 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7878 free_func.
7879 * jv-lang.c (struct jv_per_objfile_data): New.
7880 (jv_per_objfile_free): Free the data.
7881 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7882 (get_java_class_symtab): Set the `dict' field on the
7883 jv_per_objfile_data.
7884 (free_class_block): Remove.
7885 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7886 the symtab.
7887
7888 2011-04-04 Tom Tromey <tromey@redhat.com>
7889
7890 * symfile.c (reread_symbols): Update.
7891 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7892 field.
7893 * objfiles.c (allocate_objfile): Update.
7894 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7895 declare.
7896 * cp-namespace.c (lookup_symbol_file): Don't call
7897 lookup_possible_namespace_symbol.
7898 (initialize_namespace_symtab, get_possible_namespace_block)
7899 (free_namespace_block, cp_check_possible_namespace_symbols)
7900 (check_possible_namespace_symbols_loop)
7901 (check_one_possible_namespace_symbol)
7902 (lookup_possible_namespace_symbol): Remove.
7903 (maintenance_cplus_namespace): Replace with notice.
7904 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7905
7906 2011-04-04 Tom Tromey <tromey@redhat.com>
7907
7908 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7909 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7910 * symmisc.c (free_symtab): Don't free debugformat.
7911 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7912 (record_debugformat, record_producer): Document.
7913 * buildsym.c (end_symtab): Don't save debugformat and producer
7914 names on obstack.
7915 (end_symtab): Don't free debugformat and producer fields.
7916 (record_debugformat): Don't call xstrdup.
7917 (record_producer): Likewise.
7918
7919 2011-04-04 Tom Tromey <tromey@redhat.com>
7920
7921 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7922 (source_line_charpos, source_charpos_line): Remove.
7923
7924 2011-04-04 Tom Tromey <tromey@redhat.com>
7925
7926 * symtab.h (domain_enum): Split in two...
7927 (enum search_domain): New.
7928 (search_symbols): Update.
7929 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7930 redundant declarations.
7931 (search_symbols): Change 'kind' argument to search_domain.
7932 Update.
7933 (print_symbol_info): Likewise.
7934 (symtab_symbol_info): Likewise.
7935 * symfile.h (struct quick_symbol_functions)
7936 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7937 <expand_symtabs_matching>: Likewise.
7938 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7939 (expand_symtabs_matching_via_partial): Update.
7940 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7941 (dw2_expand_symtabs_for_function): Update.
7942 * block.h: Moved anonymous enum...
7943 * defs.h (enum block_enum): ... here. Now named.
7944
7945 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7946
7947 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7948 * version.in: Bump version to 7.3.50.20110403-cvs.
7949
7950 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7951
7952 * NEWS: Create a new section for the next release branch.
7953 Rename the section of the current branch, now that it has
7954 been cut.
7955
7956 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7957
7958 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7959 for "fpscr" in target description.
7960
7961 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7962
7963 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7964 initialize it. Delay HASH initialization. Strip the part after open
7965 parenthesis for languages with qualifiers. Call do_cleanups.
7966
7967 2011-04-01 Tom Tromey <tromey@redhat.com>
7968
7969 * utils.c (report_command_stats): Don't print `-' for negative
7970 number.
7971
7972 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7973
7974 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7975 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7976 typedefs.
7977
7978 2011-04-01 Joel Brobecker <brobecker@adacore.com>
7979
7980 * breakpoint.h (bpdisp_text): Add declaration.
7981 * breakpoint.c (bpdisp_text): Make non-static.
7982 * ada-lang.c: #include "mi/mi-common.h".
7983 (print_it_exception): Rewrite to improve GDB/MI output.
7984
7985 2011-04-01 Pedro Alves <pedro@codesourcery.com>
7986
7987 * arm-tdep.h (struct address_space): Add forward declaration.
7988
7989 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7990
7991 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7992 * arm-tdep.c (arm_override_mode): New global.
7993 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7994 execution mode heuristics.
7995 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7996 second single-step breakpoint if needed, using
7997 arm_insert_single_step_breakpoint.
7998 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7999 ARM execution mode, do not call thumb_get_next_pc_raw.
8000 (arm_get_next_pc): Encode execution mode in return value. Call
8001 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
8002 (arm_insert_single_step_breakpoint): New function.
8003 (arm_software_single_step): Call it.
8004 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
8005 argument to return execution mode of sigreturn target.
8006 (arm_linux_syscall_next_pc): Use it.
8007 (arm_linux_copy_svc): Update call.
8008 (arm_linux_software_single_step): Call
8009 arm_insert_single_step_breakpoint.
8010
8011 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
8012
8013 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
8014 the comment.
8015
8016 2011-03-31 Tom Tromey <tromey@redhat.com>
8017
8018 * varobj.c (update_dynamic_varobj_children): Properly handle
8019 errors from iterator.
8020
8021 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
8022
8023 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
8024 struct linkage name twice.
8025
8026 2011-03-31 Tom Tromey <tromey@redhat.com>
8027
8028 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
8029 missing ">" to message.
8030
8031 2011-03-31 Tom Tromey <tromey@redhat.com>
8032
8033 * varobj.c (instantiate_pretty_printer): Remove duplicate
8034 'return'.
8035
8036 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
8037
8038 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
8039 if neither saved value nor register available (e.g. signal frame).
8040
8041 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
8042
8043 * macroexp.c (expand): Avoid uninitialized variable
8044 compiler warning.
8045
8046 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
8047
8048 * breakpoint.c (break_range_command): Fix typo in comment.
8049
8050 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
8051 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8052
8053 Implement support for PowerPC BookE ranged breakpoints.
8054 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
8055 * breakpoint.h (struct bp_target_info) <length>: New member
8056 variable.
8057 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
8058 instead of struct breakpoint as argument, and also add ASPACE
8059 and BP_ADDR arguments. Update all callers.
8060 (struct breakpoint_ops) <print_one_detail>: New method.
8061 (struct breakpoint) <addr_string_range_end>: New member variable.
8062 * breakpoint.c (breakpoint_location_address_match): Add function
8063 prototype.
8064 (insert_bp_location): Set bl->target_info.length.
8065 (breakpoint_here_p): Call breakpoint_location_address_match.
8066 (moribund_breakpoint_here_p): Likewise.
8067 (regular_breakpoint_inserted_here_p): Likewise.
8068 (breakpoint_thread_match): Likewise.
8069 (bpstat_stop_status): Likewise.
8070 (bpstat_check_location): Move call to
8071 breakpoint_ops.breakpoint_hit to the top.
8072 (print_one_breakpoint_location): Call
8073 breakpoint_ops.print_one_detail if available.
8074 (breakpoint_address_match_range): New function.
8075 (breakpoint_location_address_match): Likewise.
8076 (breakpoint_locations_match): Compare the length field of the
8077 locations too.
8078 (hw_breakpoint_used_count): Count resources used by all locations
8079 in a breakpoint, and use breakpoint_ops.resources_needed if
8080 available.
8081 (breakpoint_hit_ranged_breakpoint): New function.
8082 (resources_needed_ranged_breakpoint): Likewise.
8083 (print_it_ranged_breakpoint): Likewise.
8084 (print_one_ranged_breakpoint): Likewise.
8085 (print_one_detail_ranged_breakpoint): Likewise.
8086 (print_mention_ranged_breakpoint): Likewise.
8087 (print_recreate_ranged_breakpoint): Likewise.
8088 (ranged_breakpoint_ops): New structure.
8089 (find_breakpoint_range_end): New function.
8090 (break_range_command): Likewise.
8091 (delete_breakpoint): Free addr_string_range_end.
8092 (update_breakpoint_locations): Add SALS_END argument. Update
8093 all callers. Calculate breakpoint length if a non-zero SALS_END
8094 is given. Call breakpoint_locations_match instead of
8095 breakpoint_address_match.
8096 (reset_breakpoint): Find SaL of the end of the range if B is a
8097 ranged breakpoint.
8098 (_initialize_breakpoint): Register break-range command.
8099 * defs.h (print_core_address): Add function prototype.
8100 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
8101 function.
8102 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
8103 (ppc_linux_remove_hw_breakpoint): Likewise.
8104 (_initialize_ppc_linux_nat): Initialize
8105 to_ranged_break_num_registers.
8106 * target.c (update_current_target): Add comment about
8107 to_ranged_break_num_registers.
8108 (target_ranged_break_num_registers): New function.
8109 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8110 New method.
8111 (target_ranged_break_num_registers): Add function prototype.
8112 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
8113 * utils.c (print_core_address): ... here.
8114
8115 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
8116
8117 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
8118 variable compiler warning.
8119
8120 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
8121
8122 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
8123 code from here ...
8124 (re_set_breakpoint): ... to here ...
8125 (addr_string_to_sals): ... and here.
8126
8127 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
8128
8129 * Makefile.in (SFILES): Add missing C sources.
8130 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
8131 Add missing headers.
8132
8133 2011-03-29 Mike Frysinger <vapier@gentoo.org>
8134
8135 * .gitignore: New file.
8136
8137 2011-03-29 Mike Frysinger <vapier@gentoo.org>
8138
8139 * NEWS: Mention new cfi device simulation.
8140
8141 2011-03-29 Tom Tromey <tromey@redhat.com>
8142
8143 * dwarf2read.c (fixup_partial_die): Handle linkage name on
8144 otherwise anonymous types.
8145 (dwarf2_name): Likewise.
8146 * valops.c (value_struct_elt_for_reference): Refine artificial
8147 type logic. Call error if j==-1.
8148
8149 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
8150
8151 Fix false GCC warning.
8152 * infcall.c (find_function_addr): Initialize funaddr.
8153
8154 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
8155
8156 Fix mingw compilation with --enable-targets=all.
8157 * remote-mips.c (gdb_usleep.h): Include header.
8158 (mips_enter_debug): Use gdb_usleep instead of sleep.
8159
8160 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8161
8162 Support resolution of STT_GNU_IFUNC via breakpoints.
8163 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
8164 bp_gnu_ifunc_resolver_return.
8165 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
8166 the loop. Support bp_gnu_ifunc_resolver and
8167 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
8168 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
8169 breakpoints.
8170 (bptype_string, print_one_breakpoint_location): Support
8171 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
8172 (user_settable_breakpoint): Return true also for
8173 bp_gnu_ifunc_resolver.
8174 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
8175 bp_gnu_ifunc_resolver_return.
8176 (set_breakpoint_location_function): New parameter explicit_loc,
8177 describe it. Call find_pc_partial_function_gnu_ifunc with new
8178 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
8179 EXPLICIT_LOC is not set.
8180 (set_raw_breakpoint): Set EXPLICIT_LOC for
8181 set_breakpoint_location_function.
8182 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
8183 set_breakpoint_location_function.
8184 (mention): Support bp_gnu_ifunc_resolver and
8185 bp_gnu_ifunc_resolver_return.
8186 (add_location_to_breakpoint): Set EXPLICIT_LOC for
8187 set_breakpoint_location_function.
8188 (update_breakpoint_locations): Remove static.
8189 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
8190 bp_gnu_ifunc_resolver_return.
8191 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
8192 bp_gnu_ifunc_resolver_return.
8193 (update_breakpoint_locations): New declaration.
8194 * elfread.c: Include gdbthread.h and regcache.h.
8195 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
8196 functions.
8197 (elf_gnu_ifunc_fns): Install them.
8198 * minsyms.c (stub_gnu_ifunc_resolver_stop)
8199 (stub_gnu_ifunc_resolver_return_stop): New functions.
8200 (stub_gnu_ifunc_fns): Install them.
8201 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
8202 and gnu_ifunc_resolver_return_stop.
8203 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
8204
8205 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8206
8207 STT_GNU_IFUNC reader implementation.
8208 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
8209 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
8210 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
8211 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
8212 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
8213 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
8214 (elf_gnu_ifunc_resolve_addr): New.
8215 (elf_symfile_read): Call elf_rel_plt_read.
8216 (elf_gnu_ifunc_fns): New.
8217 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
8218 Install elf_gnu_ifunc_fns.
8219 * infcall.c (find_function_return_type): New function.
8220 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
8221 * minsyms.c (stub_gnu_ifunc_resolve_addr)
8222 (stub_gnu_ifunc_resolve_name): New functions.
8223 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
8224 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
8225 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
8226
8227 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8228
8229 Code cleanup for later STT_GNU_IFUNC support.
8230 * infcall.c (find_function_addr): Remove variable code, use explicit
8231 dereferences for it. Move VALUE_TYPE initialization later.
8232
8233 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8234
8235 GDB find_pc_partial_function support for STT_GNU_IFUNC.
8236 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
8237 (clear_pc_function_cache): Clear it.
8238 (find_pc_partial_function): Rename to ...
8239 (find_pc_partial_function_gnu_ifunc): ... this function. New
8240 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
8241 (find_pc_partial_function): New wrapper for this function.
8242 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
8243
8244 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8245
8246 GDB internal type support for STT_GNU_IFUNC.
8247 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
8248 (elf_symtab_read): Set mst_text_gnu_ifunc for
8249 BSF_GNU_INDIRECT_FUNCTION.
8250 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
8251 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
8252 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
8253 nodebug_got_plt_symbol.
8254 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
8255 (TYPE_GNU_IFUNC): New.
8256 (struct main_type): New field flag_gnu_ifunc.
8257 (struct builtin_type): New field builtin_func_func.
8258 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
8259 nodebug_got_plt_symbol.
8260 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
8261 (in_gnu_ifunc_stub): New.
8262 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
8263 mst_text_gnu_ifunc.
8264 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
8265 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
8266 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
8267 in_gnu_ifunc_stub.
8268 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
8269 * symtab.c (search_symbols): Likewise.
8270 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
8271 and mst_slot_got_plt.
8272 (in_gnu_ifunc_stub): New declaration.
8273
8274 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8275
8276 Support a ring of related breakpoints.
8277 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
8278 other functions, add gdb_assert.
8279 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
8280 watchpoint_del_at_next_stop.
8281 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
8282 (bpstat_stop_status): Handle ring in related_breakpoint.
8283 (set_raw_breakpoint_without_location): Initialize ring in
8284 related_breakpoint.
8285 (delete_breakpoint): Handle ring in related_breakpoint, use
8286 watchpoint_del_at_next_stop.
8287 (map_breakpoint_numbers): Handle ring in related_breakpoint.
8288
8289 2011-03-28 Tom Tromey <tromey@redhat.com>
8290
8291 PR symtab/12441:
8292 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8293 with `language_minimal'.
8294
8295 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
8296
8297 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8298 instead of checking for STT_ARM_TFUNC symbol type.
8299
8300 2011-03-25 Tom Tromey <tromey@redhat.com>
8301
8302 * linespec.c (symbol_found): Restore line-based result for
8303 non-LOC_LABEL symbols.
8304
8305 2011-03-25 Kai Tietz <ktietz@redhat.com>
8306
8307 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8308 instead of strcmp for comparison.
8309 (tui_source_is_displayed): Likewise.
8310 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8311
8312 2011-03-24 Mark Wielaard <mjw@redhat.com>
8313
8314 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8315 complaint.
8316 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8317 (find_partial_die_in_comp_unit): Likewise in comment.
8318 (read_attribute_value): Likewise.
8319 (lookup_die_type): Likewise.
8320 (dwarf_form_name): Likewise.
8321 (dump_die_shallow): Likewise.
8322 (follow_die_ref_or_sig): Likewise.
8323
8324 2011-03-24 Tom Tromey <tromey@redhat.com>
8325
8326 PR breakpoints/11816:
8327 * linespec.c (decode_line_1): Parse `function:label' linespecs.
8328 (decode_compound): Update.
8329 (find_function_symbol): New function.
8330 (decode_dollar): Update.
8331 (decode_label): Add 'function_symbol' parameter. Handle
8332 function-relative labels.
8333 (decode_variable): Update.
8334 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
8335 not its line. Set `special_display' and canonical name for
8336 labels.
8337
8338 2011-03-24 Tom Tromey <tromey@redhat.com>
8339
8340 * linespec.h (struct linespec_result) <special_display>: New
8341 field.
8342 * breakpoint.h (struct breakpoint) <display_canonical>: New
8343 field.
8344 * breakpoint.c (print_breakpoint_location): Respect
8345 display_canonical.
8346 (create_breakpoint_sal): Add 'display_canonical' parameter.
8347 (create_breakpoints_sal): Update.
8348 (create_breakpoint): Update.
8349
8350 2011-03-24 Tom Tromey <tromey@redhat.com>
8351
8352 * symtab.c (decode_line_spec): Update.
8353 * linespec.c (build_canonical_line_spec): Change type of
8354 'canonical'.
8355 (decode_line_2, decode_line_1, decode_objc, decode_compound)
8356 (find_method, decode_all_digits, decode_dollar, decode_label)
8357 (symbol_found): Likewise.
8358 (init_linespec_result): New function.
8359 * breakpoint.c (struct captured_parse_breakpoint_args)
8360 <canonical_p>: New field, replaces addr_string_p.
8361 (create_breakpoints_sal): Add 'canonical' parameter, replacing
8362 'addr_string'.
8363 (parse_breakpoint_sals): Likewise.
8364 (do_captured_parse_breakpoint): Update.
8365 (create_breakpoint): Use struct linespec_result.
8366 (until_break_command): Update.
8367 (breakpoint_re_set_one): Update.
8368 (decode_line_spec_1): Update.
8369 * linespec.h (struct linespec_result): New.
8370 (init_linespec_result): Declare.
8371
8372 2011-03-23 Pedro Alves <pedro@codesourcery.com>
8373
8374 * regcache.c (regcache_raw_read): If the target didn't supply a
8375 given raw register, mark it as unavailable.
8376
8377 2011-03-23 Kai Tietz <ktietz@redhat.com>
8378
8379 * breakpoint.c (clear_command): Use filename_cmp
8380 instead of strcmp for comparison.
8381 * buildsym.c (watch_main_source_file_lossage): Likewise.
8382 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8383 checking just for slash.
8384 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8385 strrchr and filename_cmp instead of strcmp for filenames.
8386 (add_old_header_file): Use filename_cmp
8387 instead of strcmp for comparison.
8388 * exec.c (exec_set_section_address): Likewise.
8389 * macrotab.c (macro_lookup_inclusion): Likewise.
8390 (macro_lookup_inclusion): Likewise.
8391 * elfread.c (_initialize_elfread): Likewise.
8392 (elfstab_offset_sections): Likewise.
8393 (elfstab_offset_sections): Use lbasename instead of
8394 strrchr.
8395 * mdebugread.c (parse_partial_symbols): Likewise.
8396 (arse_partial_symbols): Use filename_(n)cmp instead of
8397 str(n)cmp for comparison.
8398 * minsyms.c (lookup_minimal_symbol): Likewise.
8399 * psymtab.c (read_psymtabs_with_filename): Likewise.
8400 * solib.c (solib_read_symbols): Likewise.
8401 (reload_shared_libraries_1): Likewise.
8402 * symmisc.c (maintenance_print_symbols): Likewise.
8403 * symfile.c (separate_debug_file_exists): Likewise.
8404 (reread_symbols): Likewise.
8405 (find_separate_debug_file_by_debuglink): Likewise.
8406 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8407 * source.c (add_path): Likewise.
8408 * symtab.c (filename_seen): Likewise.
8409 (file_matches): Likewise.
8410 (print_symbol_info): Likewise.
8411 (maybe_add_partial_symtab_filename): Likewise.
8412 (make_source_files_completion_list): Likewise.
8413 * xml-syscall.c (init_sysinfo): Likewise.
8414 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8415 IS_DIR_SEPARATOR for checking for trailing path separator.
8416
8417 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8418
8419 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8420 label abort_expression.
8421 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8422 DWARF_VALUE_OPTIMIZED_OUT.
8423
8424 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8425
8426 Code cleanup.
8427 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8428 to linkage_name. Invert its value. Update the function comment.
8429 (c_type_print_varspec_suffix): Invert it at the caller.
8430 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8431
8432 2011-03-22 Pedro Alves <pedro@codesourcery.com>
8433
8434 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8435 errors when reading the `stop_pc'.
8436 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8437 get_frame_pc.
8438
8439 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8440
8441 * NEWS: Document gdb.Write stream keyword.
8442
8443 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8444
8445 Revert:
8446 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8447 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8448 (dwarf2_add_field): Fix new_field->accessibility for
8449 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8450
8451 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8452
8453 PR python/12183
8454
8455 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8456 other error classes. Do not print stack trace.
8457
8458 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8459
8460 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8461 (dwarf2_add_field): Fix new_field->accessibility for
8462 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8463
8464 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8465
8466 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8467 encountering a load via a non-SP register.
8468
8469 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8470
8471 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8472 field in returned unwinder.
8473
8474 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8475
8476 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8477
8478 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8479
8480 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8481 of xmalloc.
8482
8483 2012-03-18 Pedro Alves <pedro@codesourcery.com>
8484
8485 * frame.c (frame_unwind_register): Throw an error if unwinding the
8486 register failed.
8487 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8488 an unwind stop reason.
8489 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8490 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8491 UNWIND_UNAVAILABLE>: New.
8492 * inline-frame.c (inline_frame_unwind): Install
8493 default_frame_unwind_stop_reason.
8494 * frame-unwind.c: Include "exceptions.h".
8495 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8496 (default_frame_unwind_stop_reason): New.
8497 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8498 (default_frame_unwind_stop_reason): Declare.
8499 (struct frame_unwind) <stop_reason>: New function pointer.
8500
8501 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8502 * dwarf2-frame.c: Include exceptions.h.
8503 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8504 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8505 computing the CFA. If such an error was thrown, set
8506 unavailable_retaddr.
8507 (dwarf2_frame_unwind_stop_reason): New.
8508 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8509 unavailable.
8510 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8511 (dwarf2_signal_frame_unwind): Ditto.
8512
8513 * amd64-tdep.c: Include "exceptions.h".
8514 (struct amd64_frame_cache): New field "base_p".
8515 (amd64_init_frame_cache): Clear it.
8516 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8517 Avoid reading registers with functions that throw if the register
8518 is not necessary to compute the frame base.
8519 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8520 swallowing NOT_AVAILABLE_ERROR.
8521 (amd64_frame_unwind_stop_reason): New.
8522 (amd64_frame_this_id): Don't build a frame id if the frame base
8523 was unavailable.
8524 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8525 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8526 base_p if the frame base was computable.
8527 (amd64_sigtramp_frame_unwind_stop_reason): New.
8528 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8529 frame base was unavailable.
8530 (amd64_sigtramp_frame_unwind): Install
8531 amd64_sigtramp_frame_unwind_stop_reason.
8532 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8533 base_p if the frame base was computable.
8534 (amd64_epilogue_frame_unwind_stop_reason): New.
8535 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8536 frame base was unavailable.
8537 (amd64_epilogue_frame_unwind): Install
8538 amd64_epilogue_frame_unwind_stop_reason.
8539 * i386-tdep.c: Include "exceptions.h".
8540 (struct i386_frame_cache): New field "base_p".
8541 (i386_init_frame_cache): Clear it.
8542 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8543 Avoid reading registers with functions that throw if the register
8544 is not necessary to compute the frame base.
8545 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8546 swallowing NOT_AVAILABLE_ERROR.
8547 (i386_frame_unwind_stop_reason): New.
8548 (i386_frame_this_id): Don't build a frame id if the frame base was
8549 unavailable.
8550 (i386_frame_prev_register): Handle unavailable SP.
8551 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8552 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8553 base_p if the frame base was computable.
8554 (i386_epilogue_frame_unwind_stop_reason): New.
8555 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8556 base was unavailable.
8557 (i386_epilogue_frame_unwind): Install
8558 i386_epilogue_frame_unwind_stop_reason.
8559 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8560 base_p if the frame base was computable.
8561 (i386_sigtramp_frame_unwind_stop_reason): New.
8562 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8563 base was unavailable.
8564 (i386_sigtramp_frame_unwind): Install
8565 i386_sigtramp_frame_unwind_stop_reason.
8566 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8567 type's size, not the register's.
8568 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8569
8570 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8571 default_frame_unwind_stop_reason.
8572 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8573 (alpha_heuristic_frame_unwind): Ditto.
8574 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8575 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8576 * avr-tdep.c (avr_frame_unwind): Ditto.
8577 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8578 Ditto.
8579 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8580 * frv-tdep.c (frv_frame_unwind): Ditto.
8581 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8582 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8583 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8584 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8585 (hppa_stub_frame_unwind): Ditto.
8586 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8587 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8588 (ia64_libunwind_frame_unwind)
8589 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8590 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8591 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8592 * m32c-tdep.c (m32c_unwind): Ditto.
8593 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8594 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8595 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8596 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8597 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8598 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8599 * mep-tdep.c (mep_frame_unwind): Ditto.
8600 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8601 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8602 (mips_stub_frame_unwind): Ditto.
8603 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8604 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8605 * mt-tdep.c (mt_frame_unwind): Ditto.
8606 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8607 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8608 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8609 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8610 (s390_sigtramp_frame_unwind): Ditto.
8611 * score-tdep.c (score_prologue_unwind): Ditto.
8612 * sh-tdep.c (sh_frame_unwind): Ditto.
8613 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8614 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8615 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8616 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8617 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8618 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8619 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8620 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8621 (sparc64obsd_trapframe_unwind): Ditto.
8622 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8623 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8624 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8625 * v850-tdep.c (v850_frame_unwind): Ditto.
8626 * vax-tdep.c (vax_frame_unwind): Ditto.
8627 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8628 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8629 * xtensa-tdep.c (xtensa_unwind): Ditto.
8630
8631 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8632
8633 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8634 there's always a frame. Use get_frame_pc_if_available instead of
8635 get_frame_pc, and if there's no PC available, don't look up a
8636 symtab.
8637
8638 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8639
8640 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8641 unavailable PC.
8642
8643 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8644
8645 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8646 gracefully.
8647
8648 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8649
8650 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8651 * frame.c (frame_unwind_caller_pc_if_available): New.
8652 * stack.c (frame_info): Handle unavailable PC.
8653
8654 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8655
8656 * frame.c (frame_unwind_pc): Rename to ...
8657 (frame_unwind_pc_if_available): ... this. New `pc' output
8658 parameter. Change return type to int. Gracefully handle
8659 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8660 happened, or 1 otherwise.
8661 (frame_unwind_pc): Reimplement on top of
8662 frame_unwind_pc_if_available.
8663 (get_frame_func): Rename to ...
8664 (get_frame_func_if_available): New `pc' output parameter. Change
8665 return type to int. Gracefully handle the PC not being available.
8666 (get_frame_func): Reimplement on top of
8667 get_frame_func_if_available.
8668 (select_frame): Handle the PC being unavailable.
8669 (get_prev_frame): Handle the PC being unavailable.
8670 (get_frame_pc_if_available): New.
8671 (get_frame_address_in_block_if_available): New.
8672 (find_frame_sal): Handle the frame PC not being available.
8673 * frame.h (get_frame_pc_if_available): Declare.
8674 (get_frame_address_in_block_if_available): Declare.
8675 (get_frame_func_if_available): Declare.
8676 * stack.c (print_frame_info): Handle the PC being unavailable.
8677 (find_frame_funname): Ditto.
8678 (print_frame): Handle the PC being unavailable.
8679 (get_frame_language): Ditto.
8680 * blockframe.c (get_frame_block): Ditto.
8681 * macroscope.c (default_macro_scope): Ditto.
8682 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8683
8684 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8685
8686 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8687 NOT_AVAILABLE_ERROR when evaluating the location expression.
8688
8689 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8690
8691 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8692 returning that the register piece is unavailable/optimized out.
8693 (write_pieced_value): Handle get_frame_register_bytes returning
8694 that the register piece is unavailable/optimized out when doing a
8695 read-modify write of a bitfield.
8696 * findvar.c (value_from_register): Handle get_frame_register_bytes
8697 returning that the register piece is unavailable/optimized out.
8698 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8699 and `unavailablep'. Throw error on bad debug info. Use
8700 frame_register instead of frame_register_read, to fill in the new
8701 arguments.
8702 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8703 and `unavailablep'.
8704 * valops.c: (value_assign): Adjust, and handle
8705 get_frame_register_bytes failing.
8706 * spu-tdep.c: Include exceptions.h.
8707 (spu_software_single_step): Adjust, and handle
8708 get_frame_register_bytes failing.
8709 (spu_get_longjmp_target): Ditto.
8710 * gdbarch.sh (register_to_value): Change to return int. New
8711 parameters `optimizedp' and `unavailablep'.
8712 * gdbarch.h, gdbarch.c: Regenerate.
8713 * i386-tdep.c (i386_register_to_value): Adjust to new
8714 gdbarch_register_to_value interface.
8715 * i387-tdep.c (i387_register_to_value): Ditto.
8716 * i387-tdep.h (i387_register_to_value): Ditto.
8717 * alpha-tdep.c (alpha_register_to_value): Ditto.
8718 * ia64-tdep.c (ia64_register_to_value): Ditto.
8719 * m68k-tdep.c (m68k_register_to_value): Ditto.
8720 * mips-tdep.c (mips_register_to_value): Ditto.
8721 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8722
8723 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8724
8725 * findvar.c (value_of_register): Mark the value as unavailable, if
8726 the register is unavailable.
8727 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8728 (frame_register): New `unavailablep' parameter.
8729 (frame_register_read): Update comment.
8730 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8731 Set it if the register is unavailable. If the register is
8732 unavailable, clear the output buffer.
8733 (frame_register): New `unavailablep' parameter. Pass it down.
8734 (frame_unwind_register): Adjust.
8735 (put_frame_register): Adjust.
8736 (frame_register_read): Adjust. Also return false if the register
8737 is not available.
8738 (frame_register_unwind_location): Adjust.
8739 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8740 is unavailable, mark the value accordingly.
8741 * stack.c (frame_info): Handle unavailable registers.
8742
8743 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8744
8745 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8746 simplify, using regcache_cooked_read.
8747
8748 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8749
8750 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8751 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8752 (regcache_raw_read_unsigned, regcache_raw_read_part)
8753 (regcache_cooked_read, regcache_cooked_read_signed)
8754 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8755 (regcache_cooked_read_ftype): Change return to enum
8756 register_status.
8757 * regcache.c: Include exceptions.h
8758 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8759 (do_cooked_read): Change return to enum register_status. Always
8760 forward to regcache_cooked_read.
8761 (regcache_raw_read): Change return to enum register_status. If
8762 the register is not REG_VALID, memset the buffer. Return the
8763 register's status.
8764 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8765 return the register's status.
8766 (regcache_raw_read_unsigned): Ditto.
8767 (regcache_cooked_read): Change return to enum register_status.
8768 Assert that with read-only regcaches, the register's status must
8769 be known. If the regcache is read-only, and the register is not
8770 REG_VALID, memset the buffer. Return the register's status.
8771 (regcache_cooked_read_signed): Change return to enum
8772 register_status. Handle non-REG_VALID registers and return the
8773 register's status.
8774 (regcache_cooked_read_unsigned): Change return to enum
8775 register_status. Handle non-REG_VALID registers and return the
8776 register's status.
8777 (regcache_xfer_part, regcache_raw_read_part)
8778 (regcache_cooked_read_part): Change return to enum
8779 register_status. Return the register's status.
8780 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8781 unavailable.
8782 (regcache_dump): Handle unavailable cooked registers.
8783 * frame.c (do_frame_register_read): Adjust interface to match
8784 regcache_cooked_read_ftype.
8785 * gdbarch.sh (pseudo_register_read): Change return to enum
8786 register_status.
8787 * gdbarch.h, gdbarch.c: Regenerate.
8788
8789 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8790 register_status.
8791 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8792 register_status. If reading a raw register indicates the raw
8793 register is not valid, return the raw register's status,
8794 otherwise, return REG_VALID.
8795 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8796 register_status. Handle non-REG_VALID raw registers and return
8797 the register's status.
8798 * arm-tdep.c (arm_neon_quad_read)
8799 (arm_pseudo_read): Change return to enum register_status. Handle
8800 non-REG_VALID raw registers and return the register's status.
8801 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8802 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8803 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8804 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8805 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8806 register_status.
8807 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8808 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8809 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8810 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8811 (m32c_pseudo_register_read): Change return to enum
8812 register_status. Adjust.
8813 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8814 enum register_status. Return the register's status.
8815 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8816 register_status. Return the register's status.
8817 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8818 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8819 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8820 * rs6000-tdep.c (move_ev_register_func): New typedef.
8821 (e500_move_ev_register): Use it. Change return to enum
8822 register_status. Return the register's status.
8823 (do_regcache_raw_read): New function.
8824 (do_regcache_raw_write): New function.
8825 (e500_pseudo_register_read): Change return to enum
8826 register_status. Return the register's status. Use
8827 do_regcache_raw_read.
8828 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8829 (dfp_pseudo_register_read): Change return to enum register_status.
8830 Return the register's status.
8831 (vsx_pseudo_register_read): Ditto.
8832 (efpr_pseudo_register_read): Ditto.
8833 (rs6000_pseudo_register_read): Ditto.
8834 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8835 register_status. Return the register's status.
8836 * sh64-tdep.c (pseudo_register_read_portions): New function.
8837 (sh64_pseudo_register_read): Change return to enum
8838 register_status. Use pseudo_register_read_portions. Return the
8839 register's status.
8840 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8841 register_status. Return the register's status.
8842 * sh-tdep.c (pseudo_register_read_portions): New function.
8843 (sh_pseudo_register_read): Change return to enum register_status.
8844 Use pseudo_register_read_portions. Return the register's status.
8845 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8846 enum register_status. Return the register's status.
8847 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8848 * spu-tdep.c (spu_pseudo_register_read_spu)
8849 (spu_pseudo_register_read): Ditto.
8850 * xtensa-tdep.c (xtensa_register_read_masked)
8851 (xtensa_pseudo_register_read): Ditto.
8852 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8853
8854 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8855
8856 * python/py-value.c (valpy_getitem): Fix formatting of error function
8857 call.
8858
8859 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8860
8861 ARI fixes: Add missing internationalization markups throughout
8862 C source files.
8863 * darwin-nat-info.c: Ditto.
8864 * record.c: Ditto.
8865 * remote.c: Ditto.
8866 * mi/mi-main.c: Ditto.
8867
8868 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8869
8870 ARI fixes: Add missing internationalization markups throughout
8871 yacc files.
8872 * c-exp.y: Ditto.
8873 * cp-name-parser.y: Ditto.
8874 * f-exp.y: Ditto.
8875 * m2-exp.y: Ditto.
8876 * objc-exp.y: Ditto.
8877 * p-exp.y: Ditto.
8878
8879 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8880
8881 ARI fixes: Messages should have no trailing new lines.
8882 * darwin-nat.c (mach_check_error): Remove trailing new line from
8883 warning function call message.
8884 * record.c (bfdcore_read): Idem for error call.
8885
8886 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8887
8888 * common/signals.c (target_signal_from_host): Add _ markup to error
8889 function call message.
8890 (target_signal_to_host): Add _ markup and remove trailing new line
8891 from warning call message.
8892 (target_signal_from_command): Add _ markup to error function call
8893 message.
8894
8895 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8896
8897 PR python/12149
8898
8899 * python/python.c (gdbpy_write): Accept a stream argument and
8900 operate to the appropriate stream.
8901 (gdbpy_flush): Likewise.
8902 (_initialize_python): Add stream constants.
8903 (finish_python_initialization): Add GdbOutputErrorFile class.
8904
8905 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8906
8907 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8908
8909 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8910
8911 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8912 to store_signed_integer. Add debug message when relocating CALL
8913 instructions. Fix formatting of debug message.
8914 * i386-tdep.c (i386_relocate_instruction): Ditto.
8915
8916 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8917
8918 * target.h (struct target_ops): Remove to_lookup_symbol field.
8919 (target_lookup_symbol): Delete macro.
8920 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8921 (update_current_target, setup_target_debug): Remove handling
8922 of to_lookup_symbol target_ops field.
8923 * ada-tasks.c (get_known_tasks_addr): Remove use of
8924 target_lookup_symbol.
8925 * coffread.c (coff_symtab_read): Likewise.
8926 * dbxread.c (read_dbx_symtab): Ditto.
8927
8928 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8929
8930 PR gdb/12116:
8931 * configure.ac: Add getthrds declaration check.
8932 * configure, config.in: Regenerate.
8933 * aix-thread.c (getthrds): Declare only if not already declared
8934 in procinfo.h. More declaration out of get_signaled_thread to
8935 global scope.
8936
8937 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8938
8939 * python/py-symtab.c: Populate symtab_object_methods,
8940 sal_object_methods.
8941 (stpy_is_valid): New function.
8942 (salpy_is_valid): Ditto.
8943 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8944 (sympy_is_valid): New function.
8945 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8946 (objfpy_is_valid): New function.
8947 * python/py-inferior.c: Populate inferior_object_methods.
8948 (infpy_is_valid): New function.
8949 * python/py-infthread.c: Populate thread_object_methods.
8950 (thpy_is_valid): New function.
8951 * python/py-block.c: Declare block_object_methods. Populate. Declare
8952 block_iterator_object_methods. Populate.
8953 (blpy_is_valid): New function.
8954 (blpy_iter_is_valid): Ditto.
8955
8956 2011-03-16 Keith Seitz <keiths@redhat.com>
8957
8958 * linespec.c (find_methods): Canonicalize NAME before looking
8959 up the symbol.
8960 (name_end): New function.
8961 (keep_name_info): New function.
8962 (decode_line_1): Use keep_name_info.
8963 (decode_compound): Likewise.
8964 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8965 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8966
8967 PR c++/12273
8968 * linespec.c (locate_first_half): Keep overload information, too.
8969 (decode_compound): Use a string to represent break characters
8970 to escape the loop.
8971 If P points to a break character, do not increment it.
8972 For C++ and Java, keep overload information and relevant keywords.
8973 If we cannot find a symbol, search the minimal symbols.
8974
8975 PR c++/11734
8976 * linespec.c (decode_compound): Rename SAVED_ARG to
8977 THE_REAL_SAVED_ARG.
8978 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8979 single-quotes.
8980 Pass a valid block to lookup_symbol.
8981 (lookup_prefix_sym): Likewise.
8982 (find_method): Construct search name based on SYM_CLASS instead
8983 of SAVED_ARG.
8984 * psymtab.c (lookup_partial_symbol): Add language parameter.
8985 (lookup_symbol_aux_psymtabs): Likewise.
8986 Don't assume that the psymtab we found was the right one. Search
8987 for the desired symbol in the symtab to be certain.
8988 (psymtab_search_name): New function.
8989 (lookup_partial_symbol): Use psymtab_search_name.
8990 Add language parameter.
8991 (read_symtabs_for_function): Add language parameter and pass to
8992 lookup_partial_symbol.
8993 (find_symbol_file_from_partial): Likewise.
8994
8995 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8996
8997 PR gdb/12528
8998 * dwarf2read.c (noop_record_line): New function.
8999 (dwarf_decode_lines): Ignore line tables for GCd functions.
9000
9001 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9002
9003 Fix ARI warnings about new lines at the end of messages, which
9004 are unneeded as there is a new line added at the end of the message
9005 automatically.
9006 * darwin-nat.c (darwin_stop_inferior): Ditto.
9007 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
9008 * dfp.c (decimal_to_number): Ditto.
9009 * exec.c (print_section_info): Ditto.
9010 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
9011 * osdata.c (get_osdata): Ditto.
9012 * record.c (bfdcore_write): Ditto.
9013 * remote-mips.c (mips_readchar): Ditto.
9014 * remote.c (read_ptid): Ditto.
9015 * ser-mingw.c (ser_windows_raw): Ditto.
9016 * tracepoint.c (add_local_symbols): Ditto.
9017 * windows-nat.c (fake_create_process): Ditto.
9018
9019 2011-03-16 Tom Tromey <tromey@redhat.com>
9020
9021 * tracepoint.c (stop_tracing): Don't declare.
9022 * event-top.c (after_char_processing_hook): Add `(void)'.
9023
9024 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
9025
9026 * NEWS: Add Parameter sub-classing description.
9027
9028 2011-03-16 Kai Tietz <ktietz@redhat.com>
9029
9030 * MAINTAINERS: Update my e-mail address.
9031
9032 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
9033
9034 * MAINTAINERS: Add myself for write after approval privileges.
9035
9036 2011-03-15 Michael Snyder <msnyder@vmware.com>
9037
9038 * frame.c (find_frame_sal): Assert sym is not null.
9039
9040 * dbxread.c (process_one_symbol): Assert 'name' is not null.
9041
9042 * objc-lang.c (selectors_info): Check strchr for null result.
9043
9044 * stabsread.c (define_symbol): Guard against bad stabstring input.
9045
9046 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
9047
9048 Remove trailing spaces and tabulations from pascal language
9049 support sources.
9050 p-exp.y: Ditto.
9051 p-lang.c: Ditto.
9052 p-lang.h: Ditto.
9053 p-valprint.c: Ditto.
9054
9055 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9056
9057 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
9058 than LOW. Comment it.
9059 (read_partial_die): Call complaint for inappropriate zero LOWPC or
9060 HIGHPC not strictly higher than LOWPC.
9061
9062 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
9063
9064 Fix formatting of function declarations returning a pointer in
9065 previous commit.
9066 * varobj.c (varobj_add_child): Ditto.
9067 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
9068 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
9069
9070 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
9071
9072 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
9073 for the "generic" vector ABI used with GCC 4.3 and later.
9074 (ppc64_sysv_abi_return_value): Likewise.
9075
9076 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
9077
9078 * infcall.c (call_function_by_hand): Function return value is
9079 always a non_lval, even when using struct_return.
9080
9081 2011-03-15 Pedro Alves <pedro@codesourcery.com>
9082
9083 * printcmd.c (ALL_DISPLAYS_SAFE): New.
9084 (map_display_numbers): New.
9085 (do_delete_display): New.
9086 (undisplay_command): Use map_display_numbers.
9087 (do_enable_disable_display): New.
9088 (enable_disable_display_command): New function.
9089 (enable_display): Delete.
9090 (enable_display_command): New.
9091 (disable_display_command): Reimplement.
9092 (_initialize_printcmd): Adjust "enable display" command to use
9093 `enable_display_command' as callback.
9094
9095 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
9096
9097 * NEWS: Add Python breakpoint 'stop' operation.
9098
9099 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
9100
9101 * NEWS: Delete duplicate entry. Fix typo.
9102
9103 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
9104
9105 Fix ARI warning about function names in first column.
9106 Put prototype declaration on same line as return type.
9107 * objc-exp.y: Ditto.
9108 * p-exp.y: Ditto.
9109 * python/py-stopevent.h: Ditto.
9110 For long function names, split parameters to
9111 allow function name on same line as return type.
9112 * solib-pa64.c: Ditto.
9113 * varobj.c: Ditto.
9114 * varobj.h: Ditto.
9115 For long function declaration, use single line.
9116 * hppa-tdep.h: Ditto.
9117 * inferior.h: Ditto.
9118
9119 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
9120
9121 * python/python.h: Declare gdbpy_should_stop and
9122 gdbpy_breakpoint_has_py_cond.
9123 * python/python.c: Add python.h to includes. Remove python.h from
9124 HAVE_PYTHON definition
9125 (gdbpy_should_stop): New dummy function.
9126 (gdbpy_breakpoint_has_py_cond): New dummy function.
9127 * python/py-breakpoint.c (bppy_init): Rewrite to allow
9128 sub-classing capabilities.
9129 (gdbpy_should_stop): New function.
9130 (gdbpy_breakpoint_has_py_cond): New function.
9131 (local_setattro): New function.
9132 * breakpoint.c (condition_command): Add check for Python 'stop'
9133 operation.
9134 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
9135 operation function as part of stop/continue tests.
9136
9137 2011-03-14 Tom Tromey <tromey@redhat.com>
9138
9139 PR gdb/12576:
9140 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
9141 (needs_frame_dwarf_call): Likewise.
9142
9143 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
9144
9145 Fix ARI warning about functions without parameters that do not
9146 use (void).
9147 * breakpoint.c (all_tracepoints): Replace () by (void).
9148 * f-exp.y (match_string_literal): Ditto.
9149 (yylex): Ditto.
9150 * m2-exp.y (yylex): Ditto.
9151 * mep-tdep.c (current_me_module): Ditto.
9152 (current_options): Ditto.
9153 (current_cop_data_bus_width): Ditto.
9154 (current_cr_names): Ditto.
9155 (current_cr_is_float): Ditto.
9156 (current_ccr_names): Ditto.
9157 * objc-exp.y (yylex): Ditto.
9158 * p-exp.y (yylex): Ditto.
9159 * remote.c (send_interrupt_sequence): Ditto.
9160 * tracepoint.c (current_trace_status): Ditto.
9161 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
9162 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
9163
9164 2011-03-11 Michael Snyder <msnyder@vmware.com>
9165
9166 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
9167 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
9168 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
9169 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
9170 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
9171
9172 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
9173 (delete_async_event_handler): Ditto.
9174
9175 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
9176
9177 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
9178
9179 * top.c (set_verbose): Assert showcmd was found.
9180
9181 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
9182
9183 * xtensa-tdep.c (warning_once): Correct style issues.
9184
9185 2011-03-11 Yao Qi <yao@codesourcery.com>
9186
9187 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
9188
9189 2011-03-11 Andreas Schwab <schwab@redhat.com>
9190
9191 * common/aclocal.m4: Remove.
9192
9193 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9194
9195 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
9196 (xtensa_write_register, xtensa_read_register): Likewise.
9197 (xtensa_hextochar): Removed.
9198 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
9199
9200 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9201
9202 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
9203 (xtensa_call0_frame_cache_t): Update comments. New fields added.
9204 (xtensa_alloc_frame_cache): Add initialization for new fields.
9205 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
9206 (warning_once): New function.
9207 (xtensa_insn_kind): New item c0opc_and.
9208 (call0_classify_opcode): Add the case for AND instruction.
9209 (call0_track_op): Change arguments. New local variable litbase.
9210 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
9211 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
9212 in the prologue.
9213 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
9214 (call0_analyze_prologue): Update the comments. Change arguments.
9215 Add the variety of updates to handle extended prologues, which now can
9216 conduct dynamic stack adjustments.
9217 (call0_frame_cache): Likewise.
9218 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
9219 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
9220
9221 2011-03-10 Michael Snyder <msnyder@vmware.com>
9222
9223 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
9224 (cmd_qtframe): Ditto.
9225 (cmd_qtbuffer): Ditto.
9226 (cmd_bigqtbuffer): Ditto.
9227
9228 2011-03-10 Tom Tromey <tromey@redhat.com>
9229
9230 * tracepoint.c (trace_actions_command): Update.
9231 * thread.c (thread_apply_command): Update.
9232 * reverse.c (delete_bookmark_command): Update.
9233 (bookmarks_info): Update.
9234 * printcmd.c (undisplay_command): Update.
9235 * memattr.c (mem_enable_command): Update.
9236 (mem_disable_command): Update.
9237 (mem_delete_command): Update.
9238 * inferior.c (detach_inferior_command): Update.
9239 (kill_inferior_command): Update.
9240 (remove_inferior_command): Update.
9241 * cli/cli-utils.h (struct get_number_or_range_state): New.
9242 (init_number_or_range): Declare.
9243 (get_number_or_range): Update.
9244 * cli/cli-utils.c (init_number_or_range): New function.
9245 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
9246 static variables.
9247 (number_is_in_list): Update.
9248 * breakpoint.h (get_tracepoint_by_number): Update.
9249 * breakpoint.c (map_breakpoint_numbers): Update for change to
9250 get_number_or_range.
9251 (find_location_by_number): Use get_number, not
9252 get_number_or_range.
9253 (trace_pass_set_count): New function.
9254 (trace_pass_command): Update for change to get_number_or_range.
9255 Rework loop logic.
9256 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
9257 'state' parameter.
9258
9259 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
9260
9261 * python/py-param.c (add_setshow_generic): Add set/show callback
9262 parameters. Register Python object context.
9263 (get_show_value): New function.
9264 (get_set_value): New function.
9265 (call_doc_function): New function.
9266 (get_doc_string): Move behind get_show_value/get_set_value.
9267
9268 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
9269
9270 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
9271
9272 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
9273
9274 * xtensa-tdep.c (xtensa_read_register): Add comment.
9275 (xtensa_write_register): Likewise.
9276 (xtensa_hextochar): Add comment and update to match coding conventions.
9277 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
9278 (execute_l32e, execute_s32e, execute_code): Update comments.
9279 (xtensa_exception_handler_t): Update to match coding conventions.
9280 (xtensa_insn_kind): Likewise.
9281
9282 2011-03-09 Michael Snyder <msnyder@vmware.com>
9283
9284 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
9285
9286 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9287
9288 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9289
9290 2011-03-09 Tom Tromey <tromey@redhat.com>
9291
9292 * thread.c (restore_selected_frame): Handle frame_level == -1.
9293 (make_cleanup_restore_current_thread): Use
9294 get_selected_frame_if_set.
9295 * frame.h (get_selected_frame_if_set): Declare.
9296 * frame.c (get_selected_frame_if_set): New function.
9297
9298 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9299
9300 * cli/cli-cmds.c (shell_escape): Use lbasename.
9301 * coffread.c (coff_start_symtab): Constify parameter.
9302 (complete_symtab): Constify `name' parameter.
9303 (coff_symtab_read): Constify `filestring' local.
9304 (coff_getfilename): Constify return and `result' local.
9305 Use lbasename.
9306 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9307 * linux-fork.c (info_checkpoints_command): Use lbasename.
9308 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9309 * minsyms.c (lookup_minimal_symbol): Use lbasename.
9310 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9311 * procfs.c (procfs_make_note_section): Use lbasename.
9312 * tui/tui-io.c (printable_part): Constity return and parameter.
9313 Use lbasename.
9314 (print_filename): Constify parameters, and local `s'.
9315 (tui_rl_display_match_list): Constify local `temp'.
9316
9317 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9318
9319 Revert:
9320 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9321 Fix DWARF-3+ DW_AT_accessibility default assumption.
9322 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9323 cu->header.version >= 3.
9324
9325 2011-03-09 Yao Qi <yao@codesourcery.com>
9326
9327 * common/Makefile.in: Remove.
9328 * common/configure: Remove.
9329 * common/configure.ac: Remove.
9330
9331 2011-03-09 Yao Qi <yao@codesourcery.com>
9332
9333 Revert:
9334 2011-02-11 Yao Qi <yao@codesourcery.com>
9335
9336 * common/Makefile.in: Add copyright header.
9337
9338 2011-02-11 Yao Qi <yao@codesourcery.com>
9339
9340 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9341 libcommon.a.
9342 * configure.ac: Add common to sub dir.
9343 * configure: Regenerate.
9344
9345 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9346
9347 * xtensa-tdep.c (call0_ret): New function.
9348 (xtensa_skip_prologue): Speed up analysis.
9349
9350 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9351
9352 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9353 while executing MI command -data-list-changed-registers.
9354
9355 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9356
9357 * xtensa-tdep.c (xtensa_read_register): New function.
9358 (xtensa_write_register): New function.
9359 (xtensa_find_register_by_name): New function.
9360 (xtensa_windowed_frame_cache): Update comments in type description.
9361 (xtensa_frame_cache): Likewise.
9362 (xtensa_window_interrupt_insn): New function.
9363 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9364 (xtensa_insn_kind): Add new instructions.
9365 (rwx_special_register): New function.
9366 (call0_classify_opcode): Add new instructions to the analysis.
9367 (a0_saved, a7_saved, a11_saved): New variables.
9368 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9369 (execute_l32e): New function.
9370 (execute_s32e): New function.
9371 (xtensa_exception_handler_t): New type.
9372 (execute_code): New function.
9373 (xtensa_window_interrupt_frame_cache): New function to conduct frame
9374 analysis for Xtensa Window Exception handlers.
9375
9376 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9377
9378 * xtensa-tdep.c (TX_PS): New.
9379 (windowing_enabled): Update to count for Call0 ABI.
9380 (xtensa_hextochar): New.
9381 (xtensa_init_reggroups): Make algorithm generic.
9382 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9383
9384 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9385
9386 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
9387
9388 2011-03-08 Michael Snyder <msnyder@vmware.com>
9389
9390 * i386-tdep.c (i386_follow_jump): Check return value of
9391 target_read_memory.
9392 (i386_analyze_struct_return): Ditto.
9393 (i386_skip_probe): Ditto.
9394 (i386_match_insn): Ditto.
9395 (i386_skip_noop): Ditto.
9396 (i386_analyze_frame_setup): Ditto.
9397 (i386_analyze_register_saves): Ditto.
9398 (i386_skip_prologue): Ditto.
9399 (i386_skip_main_prologue): Ditto.
9400
9401 * target.c (read_whatever_is_readable): Fix memory leak.
9402
9403 * i386-tdep.c (i386_process_record): Document fall through.
9404
9405 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9406
9407 Fix DWARF-3+ DW_AT_accessibility default assumption.
9408 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9409 cu->header.version >= 3.
9410
9411 2011-03-08 Pedro Alves <pedro@codesourcery.com>
9412
9413 * remote.c (remote_check_symbols): Skip if the target has no
9414 execution.
9415
9416 2011-03-08 Joel Brobecker <brobecker@adacore.com>
9417
9418 * target.c (read_whatever_is_readable): Reformat comment,
9419 with a minor typo fix. Minor reformatting of the code.
9420
9421 2011-03-08 Yao Qi <yao@codesourcery.com>
9422
9423 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9424 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9425 Use cached result instead of calling displaced_in_arm_mode again.
9426 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9427 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9428 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9429 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9430 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9431 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9432 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9433 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9434 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9435 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9436 (arm_catch_kernel_helper_return): Likewise.
9437 * gdb/arm-tdep.h : Update function declarations.
9438
9439 2011-03-07 Michael Snyder <msnyder@vmware.com>
9440
9441 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9442
9443 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9444
9445 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9446
9447 * elfread.c (elf_symtab_read): Stop memory leak.
9448
9449 * main.c (captured_main): Fix memory leak.
9450
9451 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9452
9453 * ada-lang.c (compare_names): Call is_name_suffix with string1
9454 instead of string2.
9455
9456 2011-03-07 Tom Tromey <tromey@redhat.com>
9457
9458 * xcoffread.c (xcoff_sym_fns): Update.
9459 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9460 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9461 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9462 (symbol_file_add_with_addrs_or_offsets): Likewise.
9463 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9464 * somread.c (som_sym_fns): Update.
9465 * psymtab.h (require_partial_symbols): Declare.
9466 * psymtab.c (require_partial_symbols): New function.
9467 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9468 (ALL_OBJFILE_PSYMTABS): Undef.
9469 (ALL_PSYMTABS): Move from psympriv.h.
9470 (lookup_partial_symtab, find_pc_sect_psymtab)
9471 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9472 (find_last_source_symtab_from_partial)
9473 (forget_cached_source_info_partial)
9474 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9475 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9476 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9477 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9478 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9479 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9480 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9481 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9482 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9483 psymtabs.
9484 * mipsread.c (ecoff_sym_fns): Update.
9485 * machoread.c (macho_sym_fns): Update.
9486 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9487 (read_psyms): New function.
9488 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9489 (elf_sym_fns_lazy_psyms): New global.
9490 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9491 dwarf2_build_psymtabs.
9492 * dbxread.c (aout_sym_fns): Update.
9493 * coffread.c (coff_sym_fns): Update.
9494
9495 2011-03-07 Tom Tromey <tromey@redhat.com>
9496
9497 * infrun.c (print_exited_reason): Include inferior id and pid in
9498 message.
9499
9500 2011-03-07 Tom Tromey <tromey@redhat.com>
9501
9502 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9503 parameter.
9504 (target_has_execution_1): Update.
9505 (target_has_execution_current): Declare.
9506 (target_has_execution): Call target_has_execution_current.
9507 (default_child_has_execution): Update.
9508 * target.c (default_child_has_execution): Add 'the_ptid'
9509 parameter.
9510 (target_has_execution_1): Likewise.
9511 (target_has_execution_current): New function.
9512 (add_target): Update.
9513 (init_dummy_target): Update.
9514 * remote-m32r-sdi.c (m32r_has_execution): New function.
9515 (init_m32r_ops): Use it.
9516 * record.c (record_core_has_execution): Now static. Add
9517 'the_ptid' parameter.
9518 * inferior.c (have_live_inferiors): Don't save current thread.
9519 Use target_has_execution_1.
9520
9521 2011-03-07 Yao Qi <yao@codesourcery.com>
9522
9523 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9524
9525 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9526
9527 * elfread.c (elf_symtab_read): Minor reformatting.
9528
9529 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9530
9531 * objc-lang.c (selectors_info): Minor reformatting.
9532
9533 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9534
9535 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9536
9537 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9538 Michael Snyder <msnyder@vmware.com>
9539
9540 * ada-valprint.c (ada_val_print_array): Move the declaration of
9541 "byte_order" and "elttype" inside the block where these variables
9542 are actually used. Remove some special handling for the case
9543 where "elttype" and "eltlen" are null. Replace by a comment
9544 and a couple of assertion checks.
9545
9546 2011-03-05 Michael Snyder <msnyder@vmware.com>
9547
9548 * source.c (add_path): Replace semicolon at end of block.
9549 * dwarf2expr.c (execute_stack_op): Ditto.
9550
9551 2011-03-05 Mike Frysinger <vapier@gentoo.org>
9552
9553 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9554 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9555 (bfin-*-*): Likewise.
9556
9557 2011-03-05 Michael Snyder <msnyder@vmware.com>
9558
9559 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9560 * mdebugread.c (parse_symbol): Ditto.
9561 * parse.c (parse_exp_in_context): Ditto.
9562 * source.c (add_path): Ditto.
9563 * utils.c (gnu_debuglink_crc32): Ditto.
9564 * varobj.c (variable_language): Ditto.
9565
9566 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9567
9568 2011-03-04 Michael Snyder <msnyder@vmware.com>
9569
9570 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9571
9572 * symfile.c (simple_overlay_update): Check for null return value
9573 from lookup_minimal_symbol.
9574
9575 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9576
9577 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9578
9579 * eval.c (parse_and_eval_address_1): Remove function.
9580 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9581 instead of parse_and_eval_address_1.
9582 * value.h (parse_and_eval_address_1): Remove prototype.
9583
9584 2011-03-04 Michael Snyder <msnyder@vmware.com>
9585
9586 * remote.c (putpkt_binary): Document that case stmt falls through.
9587
9588 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9589
9590 * breakpointc (print_it_typical): Move NULL check from here...
9591 (print_bp_stop_message): ... to here.
9592
9593 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9594
9595 * breakpoint.c (enable_command): Use break instead of continue,
9596 and fill in a missing break.
9597 (disable_command): Ditto.
9598
9599 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9600
9601 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9602 (terminal_save_ours): Remove misleading comment.
9603 (inflow_inferior_data_cleanup): Free ttystate.
9604 (inflow_inferior_exit): Likewise.
9605 (copy_terminal_info): Copy ttystate.
9606
9607 * serial.c (serial_copy_tty_state): New function.
9608 * serial.h (serial_copy_tty_state): Add prototype.
9609 (struct serial_ops): Add copy_tty_state callback.
9610 * ser-base.c (ser_base_copy_tty_state): New function.
9611 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9612 * ser-go32.c (dos_copy_tty_state): New function.
9613 (dos_ops): Install copy_tty_state callback.
9614 * ser-mingw.c (_initialize_ser_windows): Likewise.
9615 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9616 * ser-unix.c (hardwire_copy_tty_state): New function.
9617 (_initialize_ser_hardwire): Install it.
9618
9619 2011-03-04 Michael Snyder <msnyder@vmware.com>
9620
9621 * breakpoint.c (create_breakpoint): Add missing break statement.
9622
9623 Reverting this patch:
9624 * infcall.c (call_function_by_hand): Add break statements for lint.
9625
9626 Reverting this patch:
9627 * cli/cli-script.c (script_from_file): Add break for lint.
9628
9629 2011-03-04 Michael Snyder <msnyder@vmware.com>
9630
9631 * solib.c (reload_shared_libraries_1): Close memory leak.
9632
9633 2011-03-03 Tom Tromey <tromey@redhat.com>
9634
9635 PR gdb/12538:
9636 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9637 DW_STRING is NULL.
9638
9639 2011-03-03 Michael Snyder <msnyder@vmware.com>
9640
9641 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9642 fields of struct 'st' to zero.
9643
9644 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9645 sal.pspace before calling set_current_source_symtab_and_line.
9646
9647 2011-03-03 Yao Qi <yao@codesourcery.com>
9648
9649 * Makefile.in (configure-common): Remove. Let Makefile
9650 in dir common to rebuild itself.
9651 (common/Makefile): Likewise.
9652
9653 2011-03-03 Joel Brobecker <brobecker@adacore.com>
9654
9655 * utils.c (parse_escape): Add i18n markup in error message.
9656
9657 2011-03-03 Yao Qi <yao@codesourcery.com>
9658
9659 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9660 ARM_PC_REGNUM.
9661 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9662 (displaced_write_reg, displaced_read_reg): Likewise.
9663 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9664 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9665 (cleanup_branch): Replace magic number 14 and 15 with
9666 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9667
9668 2011-03-02 Michael Snyder <msnyder@vmware.com>
9669
9670 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9671
9672 * cli/cli-script.c (script_from_file): Add break for lint.
9673
9674 * mdebugread.c (parse_partial_symbols): Fix indent.
9675
9676 * target-descriptions.c (tdesc_gdb_type): No need to call
9677 xstrdup, callee saves a copy.
9678
9679 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9680
9681 * infcall.c (call_function_by_hand): Add break statements for lint.
9682
9683 * utils.c (parse_escape): Escape the escape char.
9684
9685 * python/py-inferior.c (build_inferior_list): Error out if
9686 PyList_Append fails.
9687 (gdbpy_inferiors): Error out if build_inferior_list fails.
9688
9689 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9690 a function call.
9691
9692 * record.c (record_restore): Move printf to before error return.
9693
9694 2011-03-02 Yao Qi <yao@codesourcery.com>
9695
9696 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9697 is_thumb and insn_size.
9698 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9699 on both ARM and Thumb mode.
9700 (arm_process_displaced_insn): Set is_thumb and insn_size.
9701 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9702 (arm_displaced_step_fixup): Likewise.
9703
9704 2011-03-01 Michael Snyder <msnyder@vmware.com>
9705
9706 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9707
9708 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9709
9710 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9711
9712 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9713
9714 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9715 with xmalloc.
9716
9717 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9718 which shadows function parameter.
9719
9720 * tracepoint.c (create_tsv_from_upload): Superfluous call
9721 to xstrdup. Callee already calls xstrdup.
9722
9723 * linespec.c (decode_line_1): Remove unnecessary null check.
9724
9725 * tracepoint.c (scope_info): Fix mem leak, remove underused
9726 variable.
9727
9728 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9729 superfluous null check.
9730
9731 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9732 (value_of_builtin_frame_fp_reg): Ditto.
9733
9734 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9735
9736 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9737 be null.
9738
9739 * linespec.c (decode_line_1): Check for null before dereference.
9740
9741 * reverse.c (record_restore): Move null-check to before pointer
9742 dereference.
9743
9744 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9745
9746 * objc-lang.c (selectors_info): Add explanitory comment.
9747 (classes_info): Ditto.
9748
9749 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9750
9751 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9752 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9753 versions of the trampoline. Handle Thumb vs. ARM addresses.
9754 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9755 (arm_linux_init_abi): Install it.
9756 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9757 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9758
9759 2011-02-28 Michael Snyder <msnyder@vmware.com>
9760
9761 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9762 a little bigger, to avoid possibility of an overflow.
9763
9764 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9765 buffers a little bigger, to avoid possibility of an overflow.
9766
9767 * coffread.c (coff_getfilename): Add check to avoid overflow.
9768
9769 * objc-lang.c (selectors_info): Add a small safety margin to
9770 avoid overflow.
9771 (classes_info): Error out on too long REGEXP.
9772
9773 * infrun.c (handle_inferior_event): Remove unused function call.
9774
9775 * fork-child.c (fork_inferior): Remove ifdef'd code and
9776 unused variable.
9777
9778 * linux-thread-db.c (attach_thread): Discard unused value.
9779
9780 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9781
9782 * remote.c (remote_get_noisy_reply): Discard unused value.
9783 (remote_vcont_resume): Ditto.
9784 (remote_stop_ns): Ditto.
9785
9786 * linespec.c (decode_objc): Delete unused variable.
9787
9788 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9789
9790 * dwarf2read.c (add_partial_symbol): Discard unused values.
9791 (read_base_type): Delete unused variable.
9792
9793 * dbxread.c (read_dbx_symtab): Discard unused value.
9794
9795 * eval.c (evaluate_subexp_standard): Delete unused variable,
9796 and discard unused values.
9797
9798 * infcmd.c (_initialize_infcmd): Discard unused values.
9799
9800 * stabsread.c (rs6000_builtin_type): Missing break statement.
9801
9802 * dbxread.c (process_one_symbol): Discard unused value.
9803
9804 * coffread.c (coff_end_symtab): Delete unused variable.
9805
9806 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9807 (dwarf2_add_typedef): Delete unused variable.
9808 (read_namespace): Ditto.
9809 (dwarf_decode_macros): Ditto.
9810
9811 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9812
9813 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9814
9815 * p-valprint.c (pascal_val_print): Discard unused value.
9816
9817 * utils.c (nquery): Call va_end before return;
9818 (yquery): Ditto.
9819 (query): Ditto.
9820
9821 * proc-service.c (ps_plog): Call va_end before return.
9822
9823 2011-02-28 Tom Tromey <tromey@redhat.com>
9824
9825 * python/python.c (gdbpy_value_cst): New global.
9826 (_initialize_python): Initialize it.
9827 * python/python-internal.h (gdbpy_value_cst): Declare.
9828 * python/py-value.c (convert_value_from_python): Use
9829 gdbpy_value_cst.
9830
9831 2011-02-28 Michael Snyder <msnyder@vmware.com>
9832
9833 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9834
9835 * breakpoint.c (catch_syscall_completer): Free malloced list.
9836
9837 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9838
9839 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9840 (lval_func_check_synthetic_pointer): Ditto.
9841 (lval_func_free_closure): Fix use-after-free.
9842
9843 2011-02-28 Tom Tromey <tromey@redhat.com>
9844
9845 * psymtab.c (expand_partial_symbol_tables): Use
9846 ALL_OBJFILE_PSYMTABS.
9847
9848 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9849
9850 * objc-lang.c (selectors_info): Error on too long REGEXP.
9851
9852 2011-02-28 Michael Snyder <msnyder@vmware.com>
9853
9854 * python/py-param.c (set_parameter_value): Add missing
9855 break statement.
9856
9857 * linux-record.c (record_linux_system_call): Add missing
9858 break statement.
9859
9860 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9861
9862 * breakpoint.c (print_one_breakpoint_location): Remove unused
9863 argument PRINT_ADDRESS_BITS. Update callers.
9864 (print_one_breakpoint): Likewise.
9865
9866 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9867
9868 * breakpoint.c (wrap_indent_at_field): New function.
9869 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9870 Allocate ui_stream locally instead of using STB argument.
9871 (print_one_breakpoint_location): Update call.
9872 * ui-out.c (ui_out_query_field): New function.
9873 * ui-out.h (ui_out_query_field): Add prototype.
9874
9875 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9876
9877 From Michael Snyder <msnyder@vmware.com>
9878 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9879
9880 2011-02-27 Michael Snyder <msnyder@vmware.com>
9881
9882 * objc-lang.c (selectors_info): Prevent string overrun.
9883
9884 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9885 error in strncpy.
9886
9887 * symtab.c (rbreak_command): Move variable 'file_name' to
9888 outer scope.
9889
9890 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9891 param with a local variable of the same name.
9892
9893 2011-02-27 Michael Snyder <msnyder@vmware.com>
9894
9895 * value.c (value_from_history_ref): New function.
9896 * value.h (value_from_history_ref): Export.
9897 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9898 to parse value history references.
9899 * cli/cli-utils.h (get_number_trailer): Update comment.
9900
9901 2011-02-27 Michael Snyder <msnyder@vmware.com>
9902
9903 * inferior.c (detach_inferior_command): Use get_number_or_range.
9904 (kill_inferior_command): Ditto.
9905 (remove_inferior_command): Ditto.
9906 (initialize_inferiors): Make command names plural.
9907 Update help strings.
9908
9909 2011-02-27 Michael Snyder <msnyder@vmware.com>
9910
9911 * darwin-nat-info.c: Fix comment typo.
9912 * dwarf2expr.h: Ditto.
9913 * fbsd-nat.c: Ditto.
9914 * fbsd-nat.h: Ditto.
9915 * frame-unwind.h: Ditto.
9916 * frame.h: Ditto.
9917 * hppa-hpux-tdep.c: Ditto.
9918 * i386-linux-nat.c: Ditto.
9919 * linux-nat.c: Ditto.
9920 * nbsd-nat.c: Ditto.
9921 * nbsd-nat.h: Ditto.
9922 * ppc-linux-tdep.c: Ditto.
9923 * serial.c: Ditto.
9924 * ui-file.h: Ditto.
9925 * tui/tui-winsource.c: Ditto.
9926
9927 2011-02-26 Michael Snyder <msnyder@vmware.com>
9928
9929 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9930
9931 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9932
9933 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9934 with a local variable of the same name.
9935
9936 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9937 param with a local variable of the same name.
9938 (i387_supply_xsave): Ditto.
9939
9940 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9941 that it does not shadow a function parameter.
9942
9943 * i386-nat.c (i386_length_and_rw_bits): Document that case
9944 statement is meant to fall through.
9945
9946 * expprint.c (dump_subexp_body_standard): Document that case
9947 statement is meant to fall through.
9948
9949 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9950 dead if statement. Condition can't be false.
9951
9952 2011-02-25 Michael Snyder <msnyder@vmware.com>
9953
9954 * arm-tdep.c: Fix typos in comments.
9955 * bsd-uthread.c: Ditto.
9956 * completer.c: Ditto.
9957 * corelow.c: Ditto.
9958 * cp-namespace.c: Ditto.
9959 * cp-support.c: Ditto.
9960 * cris-tdep.c: Ditto.
9961 * dbxread.c: Ditto.
9962 * dwarf2read.c: Ditto.
9963 * frame.h: Ditto.
9964 * gdbtypes.h: Ditto.
9965 * inferior.h: Ditto.
9966 * mdebugread.c: Ditto.
9967 * mips-tdep.c: Ditto.
9968 * ppc-linux-nat.c: Ditto.
9969 * ppc-linux-tdep.c: Ditto.
9970 * printcmd.c: Ditto.
9971 * sol-thread.c: Ditto.
9972 * solib-frv.c: Ditto.
9973 * solist.h: Ditto.
9974 * sparc64-tdep.c: Ditto.
9975 * spu-tdep.c: Ditto.
9976 * stabsread.c: Ditto.
9977 * symfile.c: Ditto.
9978 * valops.c: Ditto.
9979 * varobj.c: Ditto.
9980 * vax-nat.c: Ditto.
9981 * python/py-block.c: Ditto.
9982 * python/py-symbol.c: Ditto.
9983 * python/py-symtab.c: Ditto.
9984 * python/py-value.c: Ditto.
9985 * tui/tui-win.c: Ditto.
9986
9987 2011-02-25 Michael Snyder <msnyder@vmware.com>
9988
9989 * inferior.c (print_inferior): Accept a string instead of an int
9990 for requested_inferiors, and use get_number_or_range to parse it.
9991 (info_inferiors_command): Pass args string to print_inferior.
9992 (initialize_inferiors): Change help string for info inferiors.
9993 * inferior.h (print_inferior): Export prototype change.
9994
9995 2011-02-25 Tom Tromey <tromey@redhat.com>
9996
9997 * common/ax.def (invalid2): Set to 0x31.
9998
9999 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10000
10001 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
10002 L and plongest.
10003 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
10004 use L and plongest.
10005 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
10006
10007 2011-02-24 Michael Snyder <msnyder@vmware.com>
10008
10009 * Makefile.in (clean): Make clean should remove generated files
10010 observer.h and observer.inc.
10011
10012 2011-02-24 Joel Brobecker <brobecker@adacore.com>
10013
10014 Revert the following patch (not approved yet):
10015 2011-02-21 Hui Zhu <teawater@gmail.com>
10016 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10017 * ax-gdb.c (gen_printf_expr_callback): New function.
10018 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10019 * ax-general.c (ax_memcpy): New function.
10020 (ax_print): Handle "printf".
10021 (ax_reqs): Ditto.
10022 * ax.h (ax_memcpy): Forward declare.
10023 * common/ax.def (invalid2): Removed.
10024 (printf): New entry.
10025 * printcmd.c (printcmd.h): New include.
10026 (string_printf): New function.
10027 (ui_printf): Removed.
10028 (printf_command): Remove static. Call string_printf.
10029 (eval_command): Call string_printf.
10030 * printcmd.h: New file.
10031 * tracepoint.c (validate_actionline,
10032 encode_actions_1): handle printf_command.
10033
10034 2011-02-23 Tom Tromey <tromey@redhat.com>
10035
10036 * ax-general.c (ax_pick): Add missing newline.
10037
10038 2011-02-23 Michael Snyder <msnyder@vmware.com>
10039
10040 * breakpoint.c (breakpoint_1): Change first argument from an int
10041 to a char pointer, so that the function now accepts a list of
10042 breakpoints rather than just one. Use new function
10043 'number_is_in_list' to implement.
10044 (breakpoints_info): Pass char * instead of int to breakpoint_1.
10045 (watchpoints_info): Ditto.
10046 (tracepoints_info): Ditto.
10047 (maintenance_info_breakpoints): Ditto.
10048 (_initialize_breakpoint): Update help strings to reflect the fact
10049 that these functions can now take more than one argument.
10050 * cli/cli-utils.c (number_is_in_list): New function.
10051 * cli/cli-utils.h (number_is_in_list): Export.
10052
10053 2011-02-23 Michael Snyder <msnyder@vmware.com>
10054
10055 * memattr.c (mem_enable_command): Use get_number_or_range.
10056 (mem_disable_command): Ditto.
10057 (mem_delete_command): Ditto.
10058 (_initialize_mem): Tweak usage message to reflect multiple
10059 arguments.
10060
10061 2011-02-22 Doug Evans <dje@google.com>
10062
10063 Add gdb.lookup_global_symbol python function.
10064 * NEWS: Add entry.
10065 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
10066 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
10067 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
10068
10069 2011-02-22 Tom Tromey <tromey@redhat.com>
10070
10071 * language.c (language_class_name_from_physname): Rename
10072 'curr_language' argument to 'lang'; use in body.
10073
10074 2011-02-22 Michael Snyder <msnyder@vmware.com>
10075
10076 * cli/cli-utils.c (number_is_in_list): Check for zero return.
10077
10078 2011-02-22 Pedro Alves <pedro@codesourcery.com>
10079
10080 * frame-unwind.h: Fix comment to mention the this frame, not the
10081 next.
10082
10083 2011-02-22 Tom Tromey <tromey@redhat.com>
10084
10085 * symfile.c (auto_solib_limit): Remove.
10086 * symfile.h (auto_solib_limit): Remove.
10087
10088 2011-02-22 Joel Brobecker <brobecker@adacore.com>
10089
10090 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
10091
10092 2011-02-21 Michael Snyder <msnyder@vmware.com>
10093
10094 * gdbthread.h (print_thread_info): Change prototype.
10095 * thread.c (print_thread_info): Accept char* instead of int for
10096 requested_threads argument. Use new function number_is_in_list
10097 to determine which threads to list.
10098 (info_threads_command): Pass char* to print_thread_info.
10099 * cli/cli-utils.c (number_is_in_list): New function.
10100 * cli/cli-utils.h (number_is_in_list): Export.
10101 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
10102 print_thread_info.
10103 (print_one_inferior): Ditto.
10104 (mi_cmd_list_thread_groups): Ditto.
10105
10106 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10107
10108 * common/Makefile.in (CFLAGS): New.
10109 (COMPILE): Add $(CFLAGS).
10110
10111 2011-02-21 Tom Tromey <tromey@redhat.com>
10112
10113 * breakpoint.c (catch_syscall_command_1): Fix typo.
10114
10115 2011-02-21 Tom Tromey <tromey@redhat.com>
10116
10117 * reverse.c: Include cli-utils.h.
10118 * printcmd.c: Include cli-utils.h.
10119 (string_printf): Use skip_spaces.
10120 * cli/cli-utils.h: New file.
10121 * cli/cli-utils.c: New file.
10122 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
10123 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
10124 * breakpoint.h (get_number, get_number_or_range): Move to
10125 cli-utils.h.
10126 * breakpoint.c: Include cli-utils.h.
10127 (get_number_trailer, get_number, get_number_or_range)
10128 (ep_skip_leading_whitespace): Move to cli-utils.c.
10129 (create_breakpoint_sal, find_condition_and_thread)
10130 (decode_static_tracepoint_spec, watch_command_1)
10131 (watch_maybe_just_location, ep_parse_optional_if_clause)
10132 (catch_fork_command_1, catch_exec_command_1)
10133 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
10134 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
10135 (SUBDIR_CLI_SRCS): Add cli-utils.c.
10136 (HFILES_NO_SRCDIR): Add cli-utils.h.
10137 (cli-utils.o): New target.
10138
10139 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10140
10141 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
10142 before calling discard_all_inferiors.
10143
10144 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
10145
10146 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
10147 (struct builtin_opencl_type): Remove.
10148 (builtin_opencl_type): Change return type to "struct type **".
10149 (lookup_opencl_vector_type): Update caller.
10150 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
10151 (build_opencl_types): Install plain array of "struct type *"
10152 instead of "struct builtin_opencl_type".
10153
10154 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10155 Ulrich Weigand <uweigand@de.ibm.com>
10156
10157 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
10158 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
10159 (struct arm_linux_hwbp_cap): New type.
10160 (arm_linux_get_hwbp_cap): New function.
10161 (arm_linux_get_hw_breakpoint_count): Likewise.
10162 (arm_linux_get_hw_watchpoint_count): Likewise.
10163 (arm_linux_can_use_hw_breakpoint): Likewise.
10164 (arm_hwbp_type): New type.
10165 (arm_hwbp_control_t): Likewise.
10166 (struct arm_linux_hw_breakpoint): Likewise.
10167 (struct arm_linux_thread_points): Likewise.
10168 (arm_threads): New global variable.
10169 (arm_linux_find_breakpoints_by_tid): New function.
10170 (arm_hwbp_control_initialize): Likewise.
10171 (arm_hwbp_control_is_enabled): Likewise.
10172 (arm_hwbp_control_disable): Likewise.
10173 (arm_linux_hw_breakpoint_initialize): Likewise.
10174 (arm_linux_get_hwbp_type): Likewise.
10175 (arm_linux_hw_watchpoint_initialize): Likewise.
10176 (arm_linux_hw_breakpoint_equal): Likewise.
10177 (arm_linux_insert_hw_breakpoint1): Likewise.
10178 (arm_linux_remove_hw_breakpoint1): Likewise.
10179 (arm_linux_insert_hw_breakpoint): Likewise.
10180 (arm_linux_remove_hw_breakpoint): Likewise.
10181 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
10182 (arm_linux_insert_watchpoint): Likewise.
10183 (arm_linux_remove_watchpoint): Likewise.
10184 (arm_linux_stopped_data_address): Likewise.
10185 (arm_linux_stopped_by_watchpoint): Likewise.
10186 (arm_linux_watchpoint_addr_within_range): Likewise.
10187 (arm_linux_new_thread): Likewise.
10188 (arm_linux_thread_exit): Likewise.
10189 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
10190 related target callbacks. Register arm_linux_new_thread and
10191 arm_linux_thread_exit.
10192 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
10193 * arm-tdep.c (arm_pc_is_thumb): Make global.
10194 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
10195
10196 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
10197
10198 * breakpoint.c (update_watchpoint): Do not attempt to recreate
10199 per-frame locations while within a function epilogue.
10200
10201 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10202
10203 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
10204 to GNU coding standards.
10205
10206 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10207
10208 Allow use of mingw native on Windows 95 OS.
10209 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
10210 (ser_windows_close): Only call CancelIo if function exists.
10211 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
10212 to check for existence of CancelIo function in kernel32 DLL.
10213
10214 2011-02-21 Hui Zhu <teawater@gmail.com>
10215
10216 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10217 * ax-gdb.c (gen_printf_expr_callback): New function.
10218 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10219 * ax-general.c (ax_memcpy): New function.
10220 (ax_print): Handle "printf".
10221 (ax_reqs): Ditto.
10222 * ax.h (ax_memcpy): Forward declare.
10223 * common/ax.def (invalid2): Removed.
10224 (printf): New entry.
10225 * printcmd.c (printcmd.h): New include.
10226 (string_printf): New function.
10227 (ui_printf): Removed.
10228 (printf_command): Remove static. Call string_printf.
10229 (eval_command): Call string_printf.
10230 * printcmd.h: New file.
10231 * tracepoint.c (validate_actionline,
10232 encode_actions_1): handle printf_command.
10233
10234 2011-02-19 Michael Snyder <msnyder@vmware.com>
10235
10236 * reverse.c (delete_one_bookmark): Argument is now bookmark
10237 id rather than pointer to bookmark struct.
10238 (delete_bookmark_command): Use get_number_or_range.
10239 (goto_bookmark_command): Parse with get_number instead of strtoul.
10240 (bookmark_1): New function. Print info for one bookmark.
10241 (bookmarks_info): Use get_number_or_range and bookmark_1.
10242
10243 2011-02-18 Michael Snyder <msnyder@vmware.com>
10244
10245 * thread.c (info_threads_command): Re-implement using
10246 get_number_or_range.
10247 (thread_apply_command): Ditto.
10248
10249 2011-02-18 Tom Tromey <tromey@redhat.com>
10250
10251 * common/ax.def: New file.
10252 * ax.h (enum agent_op): Use ax.def.
10253 * ax-general.c (aop_map): Use ax.def.
10254
10255 2011-02-18 Tom Tromey <tromey@redhat.com>
10256
10257 * ax-general.c (aop_map): Add pick and rot.
10258 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
10259 <DW_OP_rot>: Implement.
10260 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
10261 (ax_pick): Declare.
10262 * ax-general.c (ax_pick): New function.
10263
10264 2011-02-18 Tom Tromey <tromey@redhat.com>
10265
10266 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
10267
10268 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10269 Tom Tromey <tromey@redhat.com>
10270
10271 * cp-support.c (make_symbol_overload_list_namespace): Do not call
10272 make_symbol_overload_list_block with NULL BLOCK.
10273 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
10274
10275 2011-02-18 Pedro Alves <pedro@codesourcery.com>
10276
10277 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
10278 * breakpoint.h (get_number_or_range): Declare.
10279 * printcmd.c (ALL_DISPLAYS): Declare.
10280 (delete_display): Reimplement taking a display pointer.
10281 (undisplay_command): Accept a range of displays to delete, using
10282 get_number_or_range.
10283
10284 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10285
10286 * c-valprint.c (c_val_print): Add embedded_offset to address
10287 for arrays of unspecified length.
10288 * p-valprint.c (pascal_val_print): Likewise.
10289
10290 2011-02-18 Yao Qi <yao@codesourcery.com>
10291
10292 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10293 (arm_process_displaced_insn): .. here. Remove parameter INSN.
10294 (thumb_process_displaced_insn): New.
10295 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10296 call to arm_process_displaced_insn.
10297 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10298
10299 2011-02-17 Tom Tromey <tromey@redhat.com>
10300
10301 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10302 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10303 compile_dwarf_to_ax. No longer static. Call
10304 dwarf2_compile_cfa_to_ax.
10305 (locexpr_tracepoint_var_ref): Update.
10306 (loclist_tracepoint_var_ref): Update.
10307 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10308 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10309 argument; add 'gdbarch' and 'pc'.
10310 (dwarf2_compile_cfa_to_ax): New function.
10311 (dwarf2_frame_cache): Update.
10312
10313 2011-02-17 Joel Brobecker <brobecker@adacore.com>
10314
10315 * ada-lang.c (ada_type_of_array): Fix the size of the array
10316 in the case of an unconstrained packed array.
10317
10318 2011-02-17 Yao Qi <yao@codesourcery.com>
10319
10320 * common/Makefile.in: Add more targets for make.
10321
10322 2011-02-16 Tom Tromey <tromey@redhat.com>
10323
10324 * dwarf2loc.c (unimplemented): Fix typo.
10325
10326 2011-02-16 Tom Tromey <tromey@redhat.com>
10327
10328 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10329 (compile_dwarf_to_ax) <default>: Use unimplemented.
10330 <DW_OP_deref>: Update.
10331 (disassemble_dwarf_expression): Update.
10332 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10333 (decode_locdesc): Update.
10334 * dwarf2expr.h (dwarf_stack_op_name): Update.
10335
10336 2011-02-16 Tom Tromey <tromey@redhat.com>
10337
10338 * ax.h (struct aop_map) <name>: Now const.
10339
10340 2011-02-16 Tom Tromey <tromey@redhat.com>
10341
10342 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10343 than axs_rvalue.
10344
10345 2011-02-16 Yao Qi <yao@codesourcery.com>
10346
10347 * infrun.c (get_displaced_step_closure_by_addr): New.
10348 * inferior.h: Declare it.
10349 * arm-tdep.c: (arm_pc_is_thumb): Call
10350 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
10351 returns non-NULL.
10352
10353 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10354 Jan Kratochvil <jan.kratochvil@redhat.com>
10355
10356 gdb/
10357 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10358
10359 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10360 Jan Kratochvil <jan.kratochvil@redhat.com>
10361
10362 * value.c (value_contents_copy_raw): Extend describing comment.
10363 Assert that the destination contents we're overwriting are wholly
10364 available.
10365 (value_contents_copy): Extend describing comment.
10366
10367 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10368 Jan Kratochvil <jan.kratochvil@redhat.com>
10369
10370 * value.c (value_available_contents_eq): Remove redundant local
10371 variables. Fix available contents comparision.
10372 * value.h (value_available_contents_eq): Extend describing
10373 comment.
10374
10375 2011-02-16 Yao Qi <yao@codesourcery.com>
10376
10377 * thread.c (info_threads_command): Add missing i18n markup and remove
10378 trailing newline.
10379
10380 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10381
10382 * breakpoint.c (longjmp_names): New variable.
10383 (struct breakpoint_objfile_data): New type.
10384 (breakpoint_objfile_key): New variable.
10385 (msym_not_found): New variable.
10386 (msym_not_found_p): New predicate.
10387 (get_breakpoint_objfile_data): New function.
10388 (create_overlay_event_breakpoint): Check per-objfile cache for
10389 symbols first.
10390 (create_longjmp_master_breakpoint): Likewise.
10391 (create_std_terminate_master_breakpoint): Likewise.
10392 (create_exception_master_breakpoint): Likewise.
10393 (_initialize_breakpoint): Register per-objfile data key.
10394
10395 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10396
10397 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10398 parameter value.
10399 (create_longjmp_master_breakpoint): Loop over longjmp names.
10400 (create_std_terminate_master_breakpoint): Const-propagate parameter
10401 value.
10402 (update_breakpoints_after_exec): Adjust.
10403 (breakpoint_re_set): Adjust.
10404
10405 2011-02-15 Michael Snyder <msnyder@vmware.com>
10406
10407 * thread.c (info_threads_command): Process arg as thread id,
10408 or list of thread ids.
10409 (thread_find_command): New command.
10410 (_initialize_thread): Document argument for info threads.
10411 Document 'thread find' command.
10412 * NEWS: Document new command "thread find".
10413
10414 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10415
10416 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10417 * aclocal.m4: Regenerated with aclocal-1.11.1.
10418 * common/configure: Regenerate with autoconf-2.64.
10419
10420 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
10421
10422 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10423 bool data type to a size of one byte.
10424
10425 2011-02-15 Pedro Alves <pedro@codesourcery.com>
10426 Jan Kratochvil <jan.kratochvil@redhat.com>
10427
10428 * target.c (memory_xfer_live_readonly_partial): Document where to
10429 look for interface description.
10430
10431 2011-02-15 Yao Qi <yao@codesourcery.com>
10432
10433 PR tdep/12352
10434 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10435 order to store PC value on stack instead of text section.
10436
10437 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10438
10439 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10440 the EFP register set size.
10441 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10442 data from the VMX register.
10443 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10444 and write data from/to the VMX register.
10445
10446 2011-02-14 Michael Snyder <msnyder@vmware.com>
10447
10448 * command.h (enum command_class): New class 'no_set_class', for
10449 "show" commands without a corresponding "set" command.
10450 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10451 * copying.c (_initialize_copying): Ditto for "show copying" and
10452 "show warranty".
10453 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10454 "show version".
10455 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10456 which there is no corresponding "set" command (eg. "show copying").
10457
10458 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10459 Jan Kratochvil <jan.kratochvil@redhat.com>
10460
10461 * exec.c (section_table_available_memory): Change `len' parameter
10462 type to ULONGEST.
10463 * exec.h (section_table_available_memory): Ditto.
10464 * value.h (read_value_memory): Rename the `offset' parameter to
10465 `embedded_offset'.
10466
10467 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10468 Jan Kratochvil <jan.kratochvil@redhat.com>
10469
10470 * memrange.c (compare_mem_ranges): Mention sort order in
10471 describing comment.
10472 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10473 * tracepoint.c (traceframe_available_memory): Extend comment to
10474 mention what happens to RESULT when the target does not support
10475 the query.
10476
10477 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10478 Jan Kratochvil <jan.kratochvil@redhat.com>
10479
10480 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10481 range.
10482
10483 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10484
10485 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10486 No longer handle NULL values.
10487
10488 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10489
10490 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10491 * value.c: Include "exceptions.h".
10492 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10493 generic error.
10494 * cp-abi.c: Include gdb_assert.h.
10495 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10496 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10497 errors.
10498 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10499 parameters. No longer returns -1 on error.
10500 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10501 `val' parameters.
10502 * cp-valprint.c: Include exceptions.h.
10503 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10504 the baseclass_offset. Handle unavailable base classes. Use
10505 val_print_invalid_address.
10506 * p-valprint.c: Include exceptions.h.
10507 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10508 when fetching the baseclass_offset. No longer expect
10509 baseclass_offset returning -1. Handle unavailable base classes.
10510 Use val_print_invalid_address.
10511 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10512 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10513 `embedded_offset' and `val' parameters. Adjust.
10514 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10515 parameter, and change its type to gdb_byte pointer. Add
10516 `embedded_offset' and `val' parameters. Adjust. No longer expect
10517 baseclass_offset returning -1.
10518 (value_dynamic_cast): Use value_contents_for_printing rather than
10519 value_contents. Adjust.
10520 (search_struct_field): No longer expect baseclass_offset returning
10521 -1.
10522 (search_struct_method): If reading memory from the target is
10523 necessary, wrap it in a new value to pass to baseclass_offset. No
10524 longer expect baseclass_offset returning -1.
10525 (find_method_list): No longer expect baseclass_offset returning
10526 -1. Use value_contents_for_printing rather than value_contents.
10527 * valprint.c (val_print_invalid_address): New function.
10528 * valprint.h (val_print_invalid_address): Declare.
10529 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10530 and `val' parameters. No longer expect baseclass_offset returning
10531 -1. Adjust.
10532 * gnu-v2-abi.c: Include "exceptions.h".
10533 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10534 parameters. Handle unavailable memory. Recurse through
10535 gnuv2_baseclass_offset directly, rather than through
10536 baseclass_offset. No longer returns -1 on not found, instead
10537 throw an error.
10538 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10539 `val' parameters. Adjust.
10540
10541 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10542
10543 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10544 almost but not quite adjacent.
10545
10546 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10547
10548 * value.h (value_entirely_available): Declare.
10549 * value.c (value_entirely_available): New function.
10550 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10551 real type if the pointer is unavailable.
10552
10553 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10554
10555 * valops.c (value_repeat): Use read_value_memory instead of
10556 read_memory.
10557
10558 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10559
10560 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10561 * value.c (value_contents_copy_raw, value_contents_copy): New
10562 functions.
10563 (value_primitive_field): Use value_contents_copy_raw instead of
10564 memcpy.
10565 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10566 memcpy.
10567 (value_array, value_slice): Ditto.
10568 * valarith.c (value_subscripted_rvalue): Use
10569 value_contents_copy_raw instead of memcpy.
10570
10571 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10572
10573 <unavailable> references.
10574
10575 * valops.c (get_value_at): Use value_from_contents_and_address,
10576 avoiding read_memory.
10577
10578 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10579
10580 * c-valprint.c (c_val_print): Print a string with unavailable
10581 contents as an array.
10582
10583 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10584
10585 * value.h (unpack_bits_as_long): Delete declaration.
10586 (unpack_value_bits_as_long): Declare.
10587 (unpack_value_field_as_long): Declare.
10588 (value_field_bitfield): Declare.
10589 * value.c (unpack_bits_as_long): Rename to...
10590 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10591 value parameters. Return the extracted result in a new output
10592 parameter. If the value contents are unavailable, return false,
10593 otherwise return true.
10594 (unpack_value_bits_as_long): New.
10595 (unpack_field_as_long): Rename to...
10596 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10597 Add embedded_offset and value parameters. Return the extracted
10598 result in a new output parameter. If the value contents are
10599 unavailable, return false, otherwise return true.
10600 (unpack_value_field_as_long): New.
10601 (unpack_field_as_long_1): New.
10602 (unpack_field_as_long): Reimplement as wrapper around
10603 unpack_value_field_as_long_1.
10604 (value_field_bitfield): New function.
10605 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10606 unpack_value_bits_as_long. Mark the value as unavailable, if it
10607 is unavailable.
10608 * jv-valprint.c (java_print_value_fields): Use
10609 value_field_bitfield.
10610 * p-valprint.c (pascal_object_print_value_fields): Use
10611 value_field_bitfield.
10612 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10613
10614 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10615
10616 * value.c (get_internalvar_integer): Also return the int value of
10617 TYPE_CODE_INT INTERNALVAR_VALUE values.
10618 (set_internalvar): Don't special case TYPE_CODE_INT.
10619
10620 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10621
10622 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10623 INTERNALVAR_POINTER.
10624 <pointer>: Delete.
10625 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10626 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10627 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10628
10629 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10630
10631 * value.h (value_available_contents_eq): Declare.
10632 * value.c (find_first_range_overlap): New function.
10633 (value_available_contents_eq): New function.
10634 * valprint.c (val_print_array_elements): Use
10635 value_available_contents_eq.
10636 * ada-valprint.c (val_print_packed_array_elements): Use
10637 value_available_contents_eq.
10638 * jv-valprint.c (java_value_print): Use
10639 value_available_contents_eq.
10640
10641 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10642
10643 * target.c (target_read_live_memory): New function.
10644 (memory_xfer_live_readonly_partial): New.
10645 (memory_xfer_partial): If reading from a traceframe, fallback to
10646 reading unavailable read-only memory from read-only regions of
10647 live target memory.
10648 * tracepoint.c (disconnect_tracing): Adjust.
10649 (set_current_traceframe): New, factored out from
10650 set_traceframe_number.
10651 (set_traceframe_number): Reimplement to only change the traceframe
10652 number on the GDB side.
10653 (do_restore_current_traceframe_cleanup): Adjust.
10654 (make_cleanup_restore_traceframe_number): New.
10655 (cur_traceframe_number): New global.
10656 (tfile_open): Set cur_traceframe_number to no traceframe.
10657 (set_tfile_traceframe): New function.
10658 (tfile_trace_find): If looking up a traceframe using any method
10659 other than by number, make sure the current tfile traceframe
10660 matches gdb's current traceframe. Update the current tfile
10661 traceframe if the lookup succeeded.
10662 (tfile_fetch_registers, tfile_xfer_partial)
10663 (tfile_get_trace_state_variable_value): Make sure the remote
10664 traceframe matches gdb's current traceframe.
10665 * remote.c (remote_traceframe_number): New global.
10666 (remote_open_1): Set it to -1.
10667 (set_remote_traceframe): New function.
10668 (remote_fetch_registers, remote_store_registers)
10669 (remote_xfer_memory, remote_xfer_partial)
10670 (remote_get_trace_state_variable_value): Make sure the remote
10671 traceframe matches gdb's current traceframe.
10672 (remote_trace_find): If looking up a traceframe using any method
10673 other than by number, make sure the current remote traceframe
10674 matches gdb's current traceframe. Update the current remote
10675 traceframe if the lookup succeeded.
10676 * infrun.c (fetch_inferior_event): Adjust.
10677 * tracepoint.h (set_current_traceframe): Declare.
10678 (get_traceframe_number, set_traceframe_number): Add describing
10679 comments.
10680
10681 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10682
10683 Mark pieces of values as unavailable if the corresponding memory
10684 is unavailable.
10685
10686 * valops.c: Include tracepoint.h.
10687 (value_fetch_lazy): Use read_value_memory.
10688 (read_value_memory): New.
10689 * value.h (read_value_memory): Declare.
10690 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10691 * exec.c (section_table_available_memory): New function.
10692 * exec.h (section_table_available_memory): Declare.
10693
10694 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10695
10696 * Makefile.in (SFILES): Add memrange.c.
10697 (HFILES_NO_SRCDIR): Add memrange.h.
10698 (COMMON_OBS): Add memrange.o.
10699 * memrange.c: New file.
10700 * memrange.h: New file.
10701 * tracepoint.c: Include memrange.h.
10702 (struct mem_range): Delete.
10703 (mem_range_s): Delete.
10704 (traceframe_available_memory): New function.
10705 * tracepoint.h (traceframe_available_memory): Declare.
10706
10707 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10708
10709 * target.h (struct traceframe_info): Forward declare.
10710 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10711 (struct target_ops) <to_traceframe_info>: New field.
10712 (target_traceframe_info): New.
10713 * target.c (update_current_target): Inherit and default
10714 to_traceframe_info.
10715 * remote.c (PACKET_qXfer_traceframe_info): New.
10716 (remote_protocol_features): Register qXfer:traceframe-info:read.
10717 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10718 (remote_traceframe_info): New.
10719 (init_remote_ops): Install it.
10720 (_initialize_remote): Install "set/show remote traceframe-info"
10721 commands.
10722 * tracepoint.h (parse_traceframe_info): Declare.
10723 * tracepoint.c (struct mem_range): New.
10724 (mem_range_s): New typedef.
10725 (struct traceframe_info): New.
10726 (traceframe_info): New global.
10727 (free_traceframe_info): New function.
10728 (clear_traceframe_info): New function.
10729 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10730 info.
10731 (build_traceframe_info): New function.
10732 (tfile_traceframe_info): New function.
10733 (init_tfile_ops): Install tfile_traceframe_info.
10734 (traceframe_info_start_memory, free_result): New functions.
10735 (memory_attributes, traceframe_info_elements): New globals.
10736 (parse_traceframe_info, get_traceframe_info): New functions.
10737 * features/traceframe-info.dtd: New file.
10738 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10739
10740 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10741
10742 Base support for <unavailable> value contents.
10743
10744 * value.h (value_bytes_available): Declare.
10745 (mark_value_bytes_unavailable): Declare.
10746 * value.c (struct range): New struct.
10747 (range_s): New typedef.
10748 (ranges_overlap): New function.
10749 (range_lessthan): New function.
10750 (ranges_contain_p): New function.
10751 (struct value) <unavailable>: New field.
10752 (value_bytes_available): New function.
10753 (mark_value_bytes_unavailable): New function.
10754 (require_not_optimized_out): Constify parameter.
10755 (require_available): New function.
10756 (value_contents_all, value_contents): Require all bytes be
10757 available.
10758 (value_free): Free `unavailable'.
10759 (value_copy): Copy `unavailable'.
10760 * valprint.h (val_print_unavailable): Declare.
10761 * valprint.c (valprint_check_validity): Rename `offset' parameter
10762 to `embedded_offset'. If printing a scalar, check whether the
10763 value chunk is available.
10764 (val_print_unavailable): New.
10765 (val_print_scalar_formatted): Check whether the value is
10766 available.
10767 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10768 pretty-printing unavailable values.
10769
10770 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10771
10772 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10773 * c-typeprint.c (c_type_print_args): Update the function comment. New
10774 variable param_type, initialize it. Remove const/volatile qualifiers
10775 for language_cplus and !show_artificial. Use param_type.
10776
10777 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10778
10779 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10780 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10781 * symtab.h (struct symtab) <next>: Comment extension.
10782
10783 2011-02-12 Yao Qi <yao@codesourcery.com>
10784
10785 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10786
10787 2011-02-11 Yao Qi <yao@codesourcery.com>
10788
10789 * common/Makefile.in: Add copyright header.
10790
10791 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10792
10793 * infrun.c (proceed): Move switching out and in of tfind mode from
10794 here ...
10795 (fetch_inferior_event): ... to here.
10796
10797 2011-02-11 Yao Qi <yao@codesourcery.com>
10798
10799 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10800 libcommon.a.
10801 * configure.ac: Add common to sub dir.
10802 * configure: Regenerate.
10803
10804 2011-02-11 Yao Qi <yao@codesourcery.com>
10805
10806 Build libcommon.a.
10807
10808 * common/Makefile.in: New.
10809 * common/configure.ac: New.
10810 * common/aclocal.m4: New.
10811 * common/configure: Generate.
10812
10813 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10814
10815 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10816 side of the parenthesis.
10817
10818 Merge from GCC:
10819 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10820 * vec.h (VEC_block_remove): Fix comment.
10821
10822 2011-02-08 Michael Snyder <msnyder@vmware.com>
10823
10824 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10825
10826 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10827
10828 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10829 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10830 psubd and paddd.
10831
10832 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10833
10834 PR 12361.
10835 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10836 phsubsw.
10837 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10838 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10839
10840 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10841
10842 * dwarf2read.c (read_subroutine_type): Set special calling
10843 convention flag for functions compiled by IBM XL C for OpenCL.
10844 * ppc-sysv-tdep.c: Include "dwarf2.h"
10845 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10846 calling convention.
10847 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10848 IBM OpenCL vector types calling convention.
10849 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10850 (ppc_sysv_abi_broken_return_value): Likewise.
10851 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10852 types calling convention.
10853 (ppc64_sysv_abi_return_value): Likewise.
10854 * spu-tdep.c: Include "dwarf2.h"
10855 (spu_return_value): Implement IBM OpenCL vector types calling
10856 convention.
10857
10858 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10859
10860 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10861 correct ABI for AltiVec vector arguments.
10862
10863 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10864
10865 * valprint.c (val_print): Extend comment.
10866 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10867 interface explanation to val_print.
10868 (ada_val_print_array): Adjust comment to current interface.
10869 (print_field_values): Adjust comment to current interface.
10870 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10871 explanation to val_print.
10872 * f-valprint.c (f_val_print): Ditto.
10873 * jv-valprint.c (java_val_print): Ditto.
10874 * m2-valprint.c (m2_val_print): Ditto.
10875 * p-valprint.c (pascal_val_print): Ditto.
10876
10877 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10878
10879 * breakpoint.c (parse_breakpoint_sals): Fix description.
10880
10881 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10882 Oguz Kayral <oguzkayral@gmail.com>
10883
10884 * python/py-inferior.c (python_on_normal_stop): New function.
10885 (python_on_resume): New function.
10886 (python_inferior_exit): New function.
10887 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10888 inferior_exit observers.
10889 * python/py-evtregistry.c: New file.
10890 * python/py-threadevent.c : New file.
10891 * python/py-event.c: New file.
10892 * python/py-evts.c: New file.
10893 * python/py-continueevent.c: New file.
10894 * python/py-bpevent.c: New file.
10895 * python/py-signalevent.c: New file.
10896 * python/py-exetiedevent.c: New file.
10897 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10898 Move struct breakpoint_object from here...
10899 * python/python-internal.h: ... to here.
10900 * python/py-event.h: New file.
10901 * python/py-events.h: New file.
10902 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10903 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10904 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10905 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10906 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10907 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10908 Add build rules for all the above.
10909
10910 2011-02-04 Tom Tromey <tromey@redhat.com>
10911
10912 * dwarf2read.c (dwarf2_section_empty_p): New function.
10913 (dwarf2_read_section): Use dwarf2_section_empty_p.
10914 (dwarf2_section_size): New function.
10915 (dwarf2_get_section_info): Unconditionally read section.
10916 (dwarf2_read_index): Use dwarf2_section_empty_p.
10917 (partial_read_comp_unit_head): Use dwarf2_section_size.
10918 (dwarf2_symbol_mark_computed): Likewise.
10919
10920 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10921
10922 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10923
10924 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10925
10926 * mips-linux-tdep.c: Include xml-syscall.h.
10927 (mips_linux_get_syscall_number): New function.
10928 (mips_linux_init_abi): Add calls to
10929 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10930 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10931 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10932 * syscalls/mips-n32-linux.xml: New file.
10933 * syscalls/mips-n64-linux.xml: New file.
10934 * syscalls/mips-o32-linux.xml: New file.
10935
10936 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10937
10938 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10939 Complain about inverted range entries.
10940 (dwarf2_record_block_ranges): Likewise.
10941
10942 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10943
10944 Fix some typos.
10945 * breakpoint.c (update_watchpoint): Fix name of the
10946 update_global_location_list function.
10947 (print_one_breakpoint): Fix typo.
10948 (_initialize_breakpoint): Remove extra space in hbreak help
10949 string.
10950 * breakpoint.h (struct bp_location) <length>: Fix field
10951 description.
10952
10953 2011-02-04 Pedro Alves <pedro@codesourcery.com>
10954
10955 * regcache.c (registers_changed_ptid): Don't explictly always
10956 clear `current_regcache'. Only clear current_thread_ptid and
10957 current_thread_arch when PTID matches. Only reinit the frame
10958 cache if PTID matches the current inferior_ptid. Move alloca(0)
10959 call to ...
10960 (registers_changed): ... here.
10961
10962 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10963
10964 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10965 starts with __stack_chk_guard as stack guard symbol.
10966
10967 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
10968
10969 * disasm.c (compare_lines): Handle the end of sequence markers
10970 within the line table to better support disassembling over
10971 compilation unit boundaries.
10972
10973 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10974
10975 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10976 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10977 implementation even if no symbols are available.
10978 (thumb_analyze_prologue): Update call to skip_prologue_function.
10979 (arm_analyze_prologue): Likewise.
10980
10981 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10982
10983 * arm-tdep.c: Include "observer.h".
10984 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10985 (arm_exidx_data_key): New static variable.
10986 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10987 (struct arm_exidx_data): Likewise.
10988 (arm_exidx_data_free): New function.
10989 (arm_compare_exidx_entries): Likewise.
10990 (arm_obj_section_from_vma): Likewise.
10991 (arm_exidx_new_objfile): Likewise.
10992 (arm_find_exidx_entry): Likewise.
10993 (arm_exidx_fill_cache): Likewise.
10994 (arm_exidx_unwind_sniffer): Likewise.
10995 (arm_exidx_unwind): New global variable.
10996 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10997 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10998 observer. Register arm_exidx_data_key as objfile data.
10999
11000 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
11001
11002 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
11003 due to accessing uninitialized variable. Fix indentation.
11004
11005 2011-02-02 Pedro Alves <pedro@codesourcery.com>
11006
11007 * c-valprint.c (c_value_print): When doing virtual base pointer
11008 adjustment, create a new value with adjusted contents rather than
11009 changing the contents of the value being printed (and getting it
11010 wrong).
11011
11012 2011-02-02 Pedro Alves <pedro@codesourcery.com>
11013
11014 * xml-support.c (xml_find_attribute): New.
11015 (xinclude_start_include): Use it.
11016 * xml-support.h (xml_find_attribute): Declare.
11017 * memory-map.c (memory_map_start_memory)
11018 (memory_map_start_property): Use xml_find_attribute.
11019 * osdata.c (osdata_start_osdata, osdata_start_column): Use
11020 xml_find_attribute.
11021 * remote.c (start_thread): Use xml_find_attribute.
11022 * solib-target.c (library_list_start_segment)
11023 (library_list_start_section, library_list_start_library)
11024 (library_list_start_list): Use xml_find_attribute.
11025 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
11026 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
11027 (tdesc_start_field): Use xml_find_attribute.
11028
11029 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
11030
11031 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
11032 (BUILD_OCL_VTYPES): Update.
11033
11034 2011-02-02 Joel Brobecker <brobecker@adacore.com>
11035
11036 * configure.ac: Work around non-GNU sed limitation when computing
11037 python version number.
11038 * configure: Regenerate.
11039
11040 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11041
11042 Fix debug printing of TYPE_INSTANCE.
11043 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
11044 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
11045
11046 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11047
11048 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
11049 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
11050 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
11051 * ada-operator.inc: Rename the file to ...
11052 * ada-operator.def: ... here, wrap all the entries by macro OP.
11053 * expprint.c (op_name_standard): Remove all the entries. Include
11054 "std-operator.def" instead.
11055 * expression.h (enum exp_opcode): Include "std-operator.def" and
11056 "ada-operator.def". Move all the entries ...
11057 * std-operator.def: ... here, wrap all the entries by macro OP.
11058
11059 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
11060
11061 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
11062 * breakpoint.c (remove_jit_event_breakpoints): New function.
11063 * jit.c (jit_descriptor_addr): Delete.
11064 (registering_code): Delete.
11065 (clear_int): Delete.
11066 (jit_inferior_data): New variable.
11067 (struct jit_inferior_data): New type.
11068 (get_jit_inferior_data): New function.
11069 (jit_inferior_data_cleanup): New function.
11070 (jit_read_descriptor): Adjust.
11071 (jit_register_code): Adjust.
11072 (jit_breakpoint_re_set_internal): New function; move code here ...
11073 (jit_inferior_init): ... from here.
11074 (jit_breakpoint_re_set): Adjust.
11075 (jit_reset_inferior_data_and_breakpoints): New function.
11076 (jit_inferior_created_observer): Adjust.
11077 (jit_inferior_exit_hook): Adjust.
11078 (jit_executable_changed_observer): New function.
11079 (jit_event_handler): Adjust.
11080 (_initialize_jit): Adjust.
11081
11082 2011-01-31 Michael Snyder <msnyder@vmware.com>
11083
11084 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
11085 line.
11086
11087 2011-01-31 Tom Tromey <tromey@redhat.com>
11088
11089 PR python/12216:
11090 * python/python.c (execute_gdb_command): Call
11091 prevent_dont_repeat.
11092 * top.c (suppress_dont_repeat): New global.
11093 (dont_repeat): Use it.
11094 (prevent_dont_repeat): New function.
11095 * command.h (prevent_dont_repeat): Declare.
11096
11097 2011-01-31 Tom Tromey <tromey@redhat.com>
11098
11099 * infcmd.c (finish_backward): Use breakpoint_set_silent.
11100 * python/py-breakpoint.c (bppy_set_silent): Use
11101 breakpoint_set_silent.
11102 (bppy_set_thread): Use breakpoint_set_thread.
11103 (bppy_set_task): Use breakpoint_set_task.
11104 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
11105 (breakpoint_set_task): Declare.
11106 (make_breakpoint_silent): Remove.
11107 * breakpoint.c (breakpoint_set_silent): New function.
11108 (breakpoint_set_thread): Likewise.
11109 (breakpoint_set_task): Likewise.
11110 (make_breakpoint_silent): Remove.
11111
11112 2011-01-31 Tom Tromey <tromey@redhat.com>
11113
11114 * breakpoint.h (user_breakpoint_p): Declare.
11115 * breakpoint.c (user_breakpoint_p): New function.
11116 (breakpoint_1): Use it.
11117 (save_breakpoints): Likewise.
11118
11119 2011-01-31 Joel Brobecker <brobecker@adacore.com>
11120
11121 * configure.ac: Add handling of Python distribution on Windows.
11122 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
11123 sysconfig variables are not defined, then do not use them.
11124 On Windows, if LIBPL is not defined, then use prefix + '/libs'
11125 instead. On Windows, return all paths using forward-slashes
11126 rather than backslashes.
11127
11128 2011-01-31 Joel Brobecker <brobecker@adacore.com>
11129
11130 * configure.ac: Remove fallback behavior for building
11131 against Python. Remove tweaking of Python include path.
11132 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
11133 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
11134 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
11135 Always restore CPPFLAGS and LIBS after linking test.
11136 * configure: Regenerated.
11137 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
11138 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
11139 * python/python-internal.h: Adjust includes of Python .h files.
11140
11141 2011-01-31 Joel Brobecker <brobecker@adacore.com>
11142
11143 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
11144 in error message.
11145
11146 2011-01-31 Joel Brobecker <brobecker@adacore.com>
11147
11148 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
11149 value test.
11150
11151 2011-01-31 Yao Qi <yao@codesourcery.com>
11152
11153 * arm-linux-nat.c: Update calls to regcache_register_status
11154 instead of regcache_valid_p.
11155 * aix-thread.c: Likewise.
11156 * i386gnu-nat.c: Likewise.
11157
11158 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11159
11160 Fix crash.
11161 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
11162 touching TYPE_FIELD_ARTIFICIAL.
11163
11164 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
11165
11166 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
11167 Committers.
11168
11169 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11170
11171 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
11172 selected, don't try iterating over the traceframe's blocks.
11173 (tfile_has_stack): If there's no traceframe selected, then there's
11174 no stack.
11175 (tfile_has_registers): If there's no traceframe selected, then
11176 there's no registers.
11177
11178 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11179
11180 * target.c (memory_xfer_partial): No need to restore shadows if we
11181 haven't read anything.
11182
11183 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11184
11185 * mips-tdep.c (mips_print_register): Use get_frame_register_value
11186 and val_print_scalar_formatted.
11187
11188 2011-01-27 Pedro Alves <pedro@codesourcery.com>
11189
11190 * tracepoint.c (tfile_read): New.
11191 (tfile_open): Use it.
11192 (tfile_get_traceframe_address): Use it.
11193 (tfile_trace_find): Use it.
11194 (walk_blocks_callback_func): New typedef.
11195 (match_blocktype): New function.
11196 (traceframe_walk_blocks): New function.
11197 (traceframe_find_block_type): New function.
11198 (tfile_fetch_registers, tfile_xfer_partial)
11199 (tfile_get_trace_state_variable_value): Use
11200 traceframe_find_block_type and tfile_read.
11201
11202 2011-01-26 Kevin Buettner <kevinb@redhat.com>
11203
11204 * remote-mips.c: Add internationalization mark ups. Remove
11205 trailing \n from already marked up strings.
11206
11207 2011-01-26 Tom Tromey <tromey@redhat.com>
11208
11209 * python/py-prettyprint.c (print_string_repr): Clear
11210 'addressprint' option when calling val_print_string.
11211 (print_children): Handle Val_pretty_default. Clear 'addressprint'
11212 option when calling val_print_string.
11213
11214 2011-01-26 Tom Tromey <tromey@redhat.com>
11215
11216 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
11217 GDB_PY_LL_ARG.
11218 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
11219 macros.
11220 (gdb_py_longest, gdb_py_ulongest): New typedefs.
11221 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
11222 (gdb_py_long_as_ulongest): New defines.
11223 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
11224 (gdb_py_int_as_long): Declare.
11225 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
11226 GDB_PY_LL_ARG, gdb_py_object_from_longest.
11227 (valpy_long): Add comment.
11228 * python/py-utils.c (get_addr_from_python): Use
11229 gdb_py_long_as_ulongest. Handle overflow properly.
11230 (gdb_py_object_from_longest): New function.
11231 (gdb_py_object_from_ulongest): Likewise.
11232 (gdb_py_int_as_long): Likewise.
11233 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
11234 * python/py-symtab.c (salpy_get_pc): Use
11235 gdb_py_long_from_ulongest.
11236 (salpy_get_line): Use PyInt_FromLong.
11237 * python/py-param.c (set_parameter_value): Use
11238 gdb_py_int_as_long.
11239 * python/py-lazy-string.c (stpy_get_address): Use
11240 gdb_py_long_from_ulongest.
11241 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
11242 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
11243 * python/py-breakpoint.c (bppy_set_thread): Use
11244 gdb_py_int_as_long.
11245 (bppy_set_task): Likewise.
11246 (bppy_set_ignore_count): Likewise.
11247 (bppy_set_hit_count): Likewise.
11248 * python/py-block.c (blpy_get_start): Use
11249 gdb_py_object_from_ulongest.
11250 (blpy_get_end): Likewise.
11251 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
11252
11253 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
11254
11255 PR/symtab 11766:
11256 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
11257 * gdb/solib.c (solib_read_symbols): Check for addr_low in
11258 equality test for objfile, initialize addr_low if needed.
11259
11260 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11261
11262 * tui/tui-regs.c (tui_register_format): Remove dead code.
11263
11264 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11265
11266 * printcmd.c (print_formatted): Use val_print_scalar_formatted
11267 instead of print_scalar_formatted.
11268 (print_scalar_formatted): Don't handle 's' format strings here,
11269 and add an assertion that we never see such format here.
11270 * valprint.h (val_print_scalar_formatted): Declare.
11271 * valprint.c (val_print_scalar_formatted): New.
11272 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
11273 instead of print_scalar_formatted.
11274 * jv-valprint.c (java_val_print): Ditto.
11275 * p-valprint.c (pascal_val_print): Ditto.
11276 * ada-valprint.c (ada_val_print_1): Ditto.
11277 * f-valprint.c (f_val_print): Ditto.
11278 * infcmd.c (registers_info): Ditto.
11279 * m2-valprint.c (m2_val_print): Ditto.
11280
11281 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11282
11283 * m2-valprint.c (print_unbounded_array): Pass
11284 value_contents_for_printing rather than value_contents, to
11285 m2_print_array_contents. Also pass in the value.
11286
11287 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11288
11289 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11290 (save_gdb_index_command): Switch to .gdb_index version 4.
11291
11292 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11293
11294 * mi/mi-main.c (get_register): Use get_frame_register_value rather
11295 than frame_register, and always pass a valid value to val_print.
11296
11297 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11298
11299 Centralize printing "<optimized out>".
11300
11301 * valprint.h (val_print_optimized_out): Declare.
11302 * cp-valprint.c (cp_print_value_fields): Use
11303 val_print_optimized_out.
11304 * jv-valprint.c (java_print_value_fields): Ditto.
11305 * p-valprint.c (pascal_object_print_value_fields): Ditto.
11306 * printcmd.c (print_formatted): Ditto.
11307 * valprint.c (valprint_check_validity): Ditto.
11308 (value_check_printable): Ditto.
11309 (val_print_optimized_out): New.
11310
11311 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11312
11313 * infcmd.c (default_print_registers_info): Allocate values so to
11314 never pass a NULL value to val_print.
11315
11316 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11317
11318 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11319 boolean. Make sure to always pass a value that matches the
11320 contents buffer to callees. Preserve `address' for following
11321 iterations.
11322 * value.c (value_contents_for_printing_const): New.
11323 (value_address): Constify value argument.
11324 * value.h (value_contents_for_printing_const): Declare.
11325 (value_address): Constify value argument.
11326
11327 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11328
11329 * regcache.c (struct regcache_descr): Rename
11330 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11331 and sizeof_cooked_register_valid_p to
11332 sizeof_cooked_register_status.
11333 (init_regcache_descr): Adjust.
11334 (struct regcache): Rename register_valid_p field to
11335 register_status.
11336 (regcache_xmalloc_1, regcache_xfree, regcache_save)
11337 (do_cooked_read): Adjust.
11338 (regcache_valid_p): Rename to ...
11339 (regcache_register_status): ... this. Adjust.
11340 (regcache_invalidate): Adjust.
11341 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11342 Adjust.
11343 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
11344 as unavailable, not valid.
11345 (regcache_dump): Adjust.
11346 * regcache.h (enum register_status): New.
11347 (regcache_register_status): Declare.
11348 (regcache_invalidate): Delete declaration.
11349 * corelow.c (get_core_registers): Adjust.
11350 * tracepoint.c (tfile_fetch_registers): Adjust.
11351 * trad-frame.c (REG_VALUE): Rename to ...
11352 (TF_REG_VALUE): ... this.
11353 (REG_UNKNOWN): Rename to ...
11354 (TF_REG_UNKNOWN): ... this.
11355 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11356 * mi/mi-main.c (register_changed_p): Adjust.
11357
11358 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11359
11360 * regcache.c (struct regcache_descr): Remove outdated comment.
11361 (init_regcache_descr): Remove sizeof_raw_register_valid_p
11362 overallocate hack.
11363 (regcache_xmalloc): Rename to ...
11364 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
11365 Allocate the regcache type accordingly.
11366 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11367 (regcache_xfree): Asser the source is also readonly. Copy sizeof
11368 cooked registers, not raw.
11369 (regcache_dup_no_passthrough): Delete.
11370 (get_thread_arch_regcache): Use regcache_xmalloc_1.
11371 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11372 mention obsolete write_register_bytes.
11373 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11374
11375 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11376
11377 Stop remote_read_bytes from handling partial reads itself.
11378
11379 * remote-fileio.c: Include target.h.
11380 (remote_fileio_write_bytes): Delete.
11381 (remote_fileio_func_open, remote_fileio_func_write)
11382 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11383 target_read_memory.
11384 (remote_fileio_func_stat): Use target_read_memory and
11385 target_write_memory.
11386 (remote_fileio_func_gettimeofday): Use target_write_memory.
11387 (remote_fileio_func_system): Use target_read_memory.
11388 * remote.c (remote_write_bytes): Make it static.
11389 (remote_read_bytes): Don't handle partial reads here.
11390 * remote.h (remote_read_bytes): Delete declaration.
11391
11392 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11393
11394 Simplify XML parsing a bit.
11395
11396 * xml-support.h (gdb_xml_parse_quick): Declare.
11397 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11398 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11399 parameter.
11400 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11401 gdb_xml_create_parser_and_cleanup_1.
11402 (gdb_xml_parse_quick): New.
11403 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11404 * osdata.c (osdata_parse): Ditto.
11405 * remote.c (remote_threads_info): Ditto.
11406 * solib-target.c (solib_target_parse_libraries): Ditto.
11407 * xml-syscall.c (syscall_parse_xml): Ditto.
11408 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11409
11410 2011-01-24 Kevin Buettner <kevinb@redhat.com>
11411
11412 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11413 with remote-mips.o added to gdb_target_obs.
11414 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11415
11416 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11417
11418 * ada-valprint.c (val_print_packed_array_elements): Pass the
11419 correct struct value to val_print.
11420 (ada_val_print_1): Ditto.
11421
11422 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11423
11424 Don't lose embedded_offset in printing routines throughout.
11425
11426 * valprint.h (val_print_array_elements): Change prototype.
11427 * valprint.c (val_print_array_elements): Add `embedded_offset'
11428 parameter, and adjust to pass it down to val_print, while passing
11429 `valaddr' or `address' unmodified. Take embedded_offset into
11430 account when checking repetitions.
11431 * c-valprint.c (c_val_print): Pass embedded_offset to
11432 val_print_array_elements instead of adjusting `valaddr' and
11433 `address'.
11434 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11435 embedded_offset to val_print_array_elements instead of adjusting
11436 `valaddr'.
11437 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11438 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11439 val_print_array_elements and pascal_object_print_value_fields
11440 instead of adjusting `valaddr'.
11441 (pascal_object_print_value_fields): Add `offset' parameter, and
11442 adjust to use it.
11443 (pascal_object_print_value): Add `offset' parameter, and adjust to
11444 use it.
11445 (pascal_object_print_static_field): Use
11446 value_contents_for_printing/value_embedded_offset, rather than
11447 value_contents.
11448 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11449 parameter, and adjust to use it. Use
11450 value_contents_for_printing/value_embedded_offset, rather than
11451 value_contents.
11452 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11453 (ada_val_print_array): Add `offset' parameter, and adjust to use
11454 it.
11455 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11456 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11457 Instead work with offsets. Use
11458 value_contents_for_printing/value_embedded_offset, rather than
11459 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11460 and use value_from_pointer to extract a target pointer, rather
11461 than value_from_longest.
11462 (print_variant_part): Add `offset' parameter. Replace
11463 `outer_valaddr' parameter by a new `outer_offset' parameter.
11464 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11465 (ada_value_print): Use
11466 value_contents_for_printing/value_embedded_offset, rather than
11467 value_contents.
11468 (print_record): Add `offset' parameter, and adjust to pass it
11469 down.
11470 (print_field_values): Add `offset' parameter. Replace
11471 `outer_valaddr' parameter by a new `outer_offset' parameter.
11472 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11473 Use value_contents_for_printing/value_embedded_offset, rather than
11474 value_contents.
11475 * d-valprint.c (dynamic_array_type): Use
11476 value_contents_for_printing/value_embedded_offset, rather than
11477 value_contents.
11478 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11479 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11480 (java_print_value_fields): Take `offset' into account. Don't
11481 re-adjust `valaddr'. Instead pass down adjusted offsets.
11482 (java_val_print): Take `embedded_offset' into account. Pass it to
11483 java_print_value_fields.
11484 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11485 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11486 down adjusted offsets.
11487 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11488 (f_val_print): Take `embedded_offset' into account.
11489
11490 2011-01-21 Joel Brobecker <brobecker@adacore.com>
11491
11492 * inflow.c: Include "gdbcmd.h".
11493 (interactive_mode): New static global, moved here from top.c.
11494 (show_interactive_mode): New function, moved here from top.c.
11495 use gdb_has_a_terminal instead of input_from_terminal_p to
11496 determine the current mode.
11497 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11498 setting.
11499 (_initialize_inflow): Add the "set/show interactive-mode"
11500 commands. Moved here from top.c, after having adjusted slightly
11501 the help text.
11502 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11503 to inflow.c.
11504 (input_from_terminal_p): Remove handling of "interactive-mode"
11505 setting, moved to infow.c.
11506 (init_main): Remove creation of the "set/show interactive-mode"
11507 commands, moved to inflow.c.
11508
11509 2011-01-19 Joel Brobecker <brobecker@adacore.com>
11510
11511 * NEWS: Add entry for native ia64-hpux support.
11512
11513 2011-01-19 Tom Tromey <tromey@redhat.com>
11514
11515 PR mi/8618:
11516 * thread.c (free_thread): Free 'name'.
11517 (print_thread_info): Emit thread name. Change CLI output.
11518 (thread_name_command): New function.
11519 (do_captured_thread_select): Emit newline.
11520 (_initialize_thread): Register 'thread name' command.
11521 * target.h (struct target_ops) <to_thread_name>: New field.
11522 (target_thread_name): New macro.
11523 * target.c (update_current_target): Handle to_thread_name.
11524 * python/py-infthread.c (thpy_get_name): New function.
11525 (thpy_set_name): Likewise.
11526 (thread_object_getset): Add "name".
11527 * linux-nat.c (linux_nat_thread_name): New function.
11528 (linux_nat_add_target): Set to_thread_name.
11529 * gdbthread.h (struct thread_info) <name>: New field.
11530
11531 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11532
11533 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11534 (ada_val_print_1): Likewise.
11535
11536 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11537
11538 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11539 upper limit address is not greater than the function end address
11540 when the upper limit could not be computed using the debugging
11541 info.
11542
11543 2011-01-17 Tom Tromey <tromey@redhat.com>
11544
11545 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11546 get_regcomp_error.
11547 * utils.c: Include gdb_regex.h.
11548 (do_regfree_cleanup): New function.
11549 (make_regfree_cleanup): Likewise.
11550 (get_regcomp_error): Likewise.
11551 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11552
11553 2011-01-17 Tom Tromey <tromey@redhat.com>
11554
11555 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11556 re_compile_fastmap.
11557
11558 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11559
11560 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11561 for internal variables.
11562 (last_was_structop): New static variable.
11563 (COMPLETE): New token.
11564 (field_exp): New rule to group all '.' suffix handling.
11565 Add mark_struct_expression calls when approriate to be able
11566 to correctly find fields for completion.
11567 (yylex): Adapt to handle field completion and set INTVAR when
11568 required.
11569
11570 2011-01-14 Yao Qi <yao@codesourcery.com>
11571
11572 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11573 save_reggroup, restore_reggroup and all_reggroup.
11574
11575 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11576
11577 * ada-valprint. (ada_printchar): Use the correct type length
11578 in call to ada_emit_char.
11579 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11580
11581 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11582
11583 * solib-som.h (hpux_major_release): Declare variable here.
11584 * solib-som.c: Remove <sys/utsname.h> header.
11585 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11586 (hpux_major_release): Make global, change default value to
11587 DEFAULT_HPUX_MAJOR_RELEASE.
11588 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11589 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11590 Add "solib-som.h" header.
11591 (set_hpux_major_release): New function.
11592 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11593
11594 2011-01-14 Mike Frysinger <vapier@gentoo.org>
11595
11596 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11597
11598 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11599
11600 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11601 new-line at end of warning message.
11602 (ia64_hpux_store_register): Remove trailing new-line at end of
11603 error message.
11604 * ia64-hpux-tdep.c: Rephrase comment.
11605 * solib-ia64-hpux.c (struct dld_info): Change type of field
11606 dld_flags from "long long" to ULONGEST.
11607
11608 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11609
11610 * target.h (deprecated_child_ops): Delete declaration.
11611 * target.c (deprecated_child_ops): Delete definition.
11612
11613 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11614
11615 * Makefile.in (hpux-thread.o): Delete rule.
11616 * configure.ac: Don't check for HPUX DCE threads support.
11617 * configure, config.in: Regenerate.
11618 * hppa-hpux-nat.c (child_suppress_run): Delete.
11619 (hppa_hpux_child_can_run): Delete.
11620 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11621 * hpux-thread.c: Delete.
11622
11623 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11624
11625 * hpux-thread.c (hpux_pid_to_str): Delete.
11626
11627 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11628
11629 * ada-valprint.c (ada_emit_char): Remove strange code.
11630 Check that c is <= UCHAR_MAX before passing it to isascii.
11631 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11632
11633 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11634
11635 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11636 to the case where instream is stdin.
11637
11638 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11639
11640 * ia64-tdep.h (struct regcache): Forward declare.
11641 (struct ia64_infcall_ops): New struct type.
11642 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11643 and "infcall_ops".
11644 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11645 Renames ia64_find_global_pointer.
11646 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11647 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11648 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11649 methods.
11650 (ia64_infcall_ops): New static global constant.
11651 (ia64_gdbarch_init): Set tdep->infcall_ops.
11652 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11653 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11654 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11655 (ia64_hpux_dummy_code): New static global constant.
11656 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11657 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11658 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11659 New function.
11660 (ia64_hpux_infcall_ops): New static global constant.
11661 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11662 for inferior function calls to work properly on ia64-hpux.
11663
11664 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11665
11666 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11667 * ia64-tdep.h (struct frame_info): forward declaration.
11668 (struct gdbarch_tdep): Add field size_of_register_frame.
11669 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11670 to determine the size of the register frame.
11671 (ia64_size_of_register_frame): New function.
11672 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11673 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11674 (IA64_HPUX_UREG_REASON): New macro.
11675 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11676 New functions.
11677 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11678 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11679 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11680 objects.
11681
11682 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11683
11684 Add support for ia64-hpux.
11685 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11686 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11687
11688 * configure.host: Add handling for ia64-hpux hosts. Add associated
11689 floatformats.
11690 * configure.tgt: Add handling for ia64-hpux targets.
11691 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11692 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11693 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11694
11695 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11696
11697 [ttrace] Compute thread list immediately after attach.
11698 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11699 New subprogram.
11700 (inf_ttrace_attach): Use it.
11701
11702 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11703
11704 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11705 if we could not determine the frame's function address. Instead,
11706 use the frame's PC, and then continue.
11707
11708 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11709
11710 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11711 not already defined.
11712
11713 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11714
11715 * ia64-tdep.c (ia64_struct_type_p): New function.
11716 (ia64_extract_return_value): Handle integral values that are
11717 less than 8 bytes long.
11718 (ia64_push_dummy_call): Likewise.
11719
11720 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11721
11722 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11723 floatformat_ia64_ext.
11724 (floatformat_ia64_ext_big): New static const.
11725 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11726
11727 2011-01-12 Tom Tromey <tromey@redhat.com>
11728
11729 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11730 messages.
11731 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11732 (mi_cmd_thread_list_ids): Likewise.
11733 (mi_cmd_data_list_changed_registers): Likewise.
11734 (mi_cmd_data_list_register_values): Likewise.
11735 (mi_cmd_data_write_register_values): Likewise.
11736 (mi_cmd_data_evaluate_expression): Likewise.
11737 (mi_cmd_data_read_memory): Likewise.
11738 (mi_cmd_data_read_memory_bytes): Likewise.
11739 (mi_cmd_data_write_memory): Likewise.
11740 (mi_cmd_enable_timings): Likewise.
11741 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11742 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11743 (mi_cmd_var_delete): Likewise.
11744 (mi_cmd_var_set_format): Likewise.
11745 (mi_cmd_var_show_format): Likewise.
11746 (mi_cmd_var_info_num_children): Likewise.
11747 (mi_cmd_var_list_children): Likewise.
11748 (mi_cmd_var_info_type): Likewise.
11749 (mi_cmd_var_info_expression): Likewise.
11750 (mi_cmd_var_show_attributes): Likewise.
11751 (mi_cmd_var_assign): Likewise.
11752 (mi_cmd_var_update): Likewise.
11753 (mi_cmd_enable_pretty_printing): Likewise.
11754 (mi_cmd_var_set_update_range): Likewise.
11755 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11756 messages.
11757 (mi_cmd_target_file_put): Likewise.
11758 (mi_cmd_target_file_delete): Likewise.
11759 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11760 messages.
11761 (mi_cmd_stack_info_depth): Likewise.
11762 (mi_cmd_stack_list_locals): Likewise.
11763 (mi_cmd_stack_list_args): Likewise.
11764 (mi_cmd_stack_select_frame): Likewise.
11765 (mi_cmd_stack_select_frame): Likewise.
11766 (mi_cmd_stack_info_frame): Likewise.
11767 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11768 messages.
11769 (mi_cmd_file_list_exec_source_files): Likewise.
11770 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11771 (mi_cmd_env_cd): Likewise.
11772 (mi_cmd_env_path): Likewise.
11773 (mi_cmd_env_dir): Likewise.
11774 (mi_cmd_inferior_tty_show): Likewise.
11775 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11776 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11777 (mi_cmd_break_watch): Likewise.
11778
11779 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11780
11781 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11782 (ppc_linux_insert_hw_breakpoint): Likewise.
11783 (ppc_linux_remove_hw_breakpoint): Likewise.
11784 (ppc_linux_insert_watchpoint): Likewise.
11785
11786 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11787 Jan Kratochvil <jan.kratochvil@redhat.com>
11788
11789 PR fortran/11104 and DWARF unbound arrays detection.
11790 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11791 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11792 unspecified upper bound.
11793 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11794 variables array_size_array, tmp_type and offset_item. New variable
11795 array. Remove call to f77_get_upperbound. New variables array_type
11796 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11797 the final call to deprecated_set_value_type.
11798
11799 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11800
11801 Make value allocations more lazy.
11802 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11803 instead of allocate_value and set_value_lazy when possible.
11804 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11805 instead of allocate_value and set_value_lazy.
11806 * findvar.c (value_of_register_lazy): Likewise.
11807 (read_var_value): Remove V preallocation, call just check_typedef in
11808 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11809 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11810 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11811 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11812 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11813 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11814 the end, remove set_value_lazy there.
11815 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11816 instead of allocate_value and set_value_lazy when possible.
11817 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11818 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11819 of allocate_value and set_value_lazy.
11820 (value_from_contents_and_address): Use allocate_value_lazy instead of
11821 allocate_value and set_value_lazy when possible.
11822
11823 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11824
11825 * disasm.c (dump_insns): Support dumping opcodes for MI.
11826 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11827 dumping of instruction opcodes.
11828
11829 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11830
11831 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11832 appropiately.
11833
11834 2011-01-11 Tom Tromey <tromey@redhat.com>
11835
11836 * thread.c (do_captured_thread_select): Emit newline before
11837 printing frame.
11838
11839 2011-01-11 Michael Snyder <msnyder@vmware.com>
11840
11841 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11842 * score-tdep.c: Ditto.
11843 * score-tdep.h: Ditto.
11844 * ser-base.c: Ditto.
11845 * ser-go32.c: Ditto.
11846 * serial.c: Ditto.
11847 * serial.h: Ditto.
11848 * ser-mingw.c: Ditto.
11849 * ser-pipe.c: Ditto.
11850 * ser-tcp.c: Ditto.
11851 * ser-unix.c: Ditto.
11852 * sh64-tdep.c: Ditto.
11853 * shnbsd-nat.c: Ditto.
11854 * sh-tdep.c: Ditto.
11855 * sh-tdep.h: Ditto.
11856 * solib.c: Ditto.
11857 * solib-darwin.c: Ditto.
11858 * solib-frv.c: Ditto.
11859 * solib.h: Ditto.
11860 * solib-irix.c: Ditto.
11861 * solib-osf.c: Ditto.
11862 * solib-pa64.c: Ditto.
11863 * solib-som.c: Ditto.
11864 * solib-spu.c: Ditto.
11865 * solib-sunos.c: Ditto.
11866 * solib-svr4.c: Ditto.
11867 * solist.h: Ditto.
11868 * sol-thread.c: Ditto.
11869 * somread.c: Ditto.
11870 * source.c: Ditto.
11871 * source.h: Ditto.
11872 * sparc64-linux-tdep.c: Ditto.
11873 * sparc64-tdep.c: Ditto.
11874 * sparc-linux-nat.c: Ditto.
11875 * sparc-linux-tdep.c: Ditto.
11876 * sparc-sol2-nat.c: Ditto.
11877 * sparc-sol2-tdep.c: Ditto.
11878 * sparc-tdep.c: Ditto.
11879 * sparc-tdep.h: Ditto.
11880 * spu-tdep.c: Ditto.
11881 * stabsread.c: Ditto.
11882 * stabsread.h: Ditto.
11883 * stack.c: Ditto.
11884 * symfile.c: Ditto.
11885 * symfile.h: Ditto.
11886 * symmisc.c: Ditto.
11887 * symtab.c: Ditto.
11888 * symtab.h: Ditto.
11889 * target.c: Ditto.
11890 * target-descriptions.c: Ditto.
11891 * target-descriptions.h: Ditto.
11892 * target.h: Ditto.
11893 * target-memory.c: Ditto.
11894 * terminal.h: Ditto.
11895 * thread.c: Ditto.
11896 * top.c: Ditto.
11897 * tracepoint.c: Ditto.
11898 * tracepoint.h: Ditto.
11899 * trad-frame.h: Ditto.
11900 * typeprint.c: Ditto.
11901
11902 2011-01-11 Michael Snyder <msnyder@vmware.com>
11903
11904 * ui-file.c: Comment cleanup, mostly periods and spaces.
11905 * ui-file.h: Ditto.
11906 * ui-out.c: Ditto.
11907 * ui-out.h: Ditto.
11908 * utils.c: Ditto.
11909 * v850-tdep.c: Ditto.
11910 * valarith.c: Ditto.
11911 * valops.c: Ditto.
11912 * valprint.c: Ditto.
11913 * valprint.h: Ditto.
11914 * value.c: Ditto.
11915 * value.h: Ditto.
11916 * varobj.c: Ditto.
11917 * varobj.h: Ditto.
11918 * vax-tdep.c: Ditto.
11919 * vec.c: Ditto.
11920 * vec.h: Ditto.
11921 * version.h: Ditto.
11922 * windows-nat.c: Ditto.
11923 * windows-tdep.c: Ditto.
11924 * xcoffread.c: Ditto.
11925 * xcoffsolib.c: Ditto.
11926 * xml-support.c: Ditto.
11927 * xstormy16-tdep.c: Ditto.
11928 * xtensa-tdep.c: Ditto.
11929 * xtensa-tdep.h: Ditto.
11930
11931 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11932
11933 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11934 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11935
11936 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11937 Thiago Jung Bauermann <bauerman@br.ibm.com>
11938
11939 Implement support for PowerPC BookE ranged watchpoints.
11940 * breakpoint.h
11941 (struct breakpoint_ops) <resources_needed>: New method.
11942 Initialize to NULL in all existing breakpoint_ops instances.
11943 (struct breakpoint) <exact>: New field.
11944 (target_exact_watchpoints): Declare external global.
11945 * breakpoint.c (target_exact_watchpoints): New global flag.
11946 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11947 b->enable_state to bp_enabled before calling
11948 hw_watchpoint_used_count.
11949 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11950 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11951 if available.
11952 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11953 if the watchpoint is exact.
11954 (resources_needed_watchpoint): New function.
11955 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11956 (watch_command_1): Set b->exact if the user asked for an exact
11957 watchpoint and one can be set.
11958 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11959 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11960 the user asks for an exact watchpoint and one can be set. Return
11961 number of needed debug registers to watch the expression.
11962 * gdbtypes.c (is_scalar_type): New function, based on
11963 valprint.c:scalar_type_p.
11964 (is_scalar_type_recursive): New function.
11965 * gdbtypes.h (is_scalar_type_recursive): Declare.
11966 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11967 handle regions when ranged watchpoints are available.
11968 (create_watchpoint_request): New function.
11969 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11970 create_watchpoint_request.
11971 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11972 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11973 `set powerpc' and `show powerpc' commands.
11974 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11975 Mention documentation comment in the target macro.
11976 (target_region_ok_for_hw_watchpoint): Document return value.
11977
11978 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11979
11980 * breakpoint.c (update_watchpoint): Decide on using a software or
11981 hardware watchpoint after the bp_locations are created.
11982
11983 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11984
11985 Convert hardware watchpoints to use breakpoint_ops.
11986 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11987 <insert_location>: ... this. Return int instead of void.
11988 Accept pointer to struct bp_location instead of pointer to
11989 struct breakpoint. Adapt all implementations.
11990 (breakpoint_ops) <remove>: Rename to...
11991 <remove_location>: ... this. Accept pointer to struct bp_location
11992 instead of pointer to struct breakpoint. Adapt all implementations.
11993 * breakpoint.c (insert_catchpoint): Delete function.
11994 (insert_bp_location): Call the watchpoint or catchpoint's
11995 breakpoint_ops.insert method.
11996 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11997 breakpoint_ops.remove method.
11998 (insert_watchpoint, remove_watchpoint): New functions.
11999 (watchpoint_breakpoint_ops): New structure.
12000 (watch_command_1): Initialize the OPS field.
12001 * inf-child.c (inf_child_insert_fork_catchpoint)
12002 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
12003 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
12004 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
12005 Delete functions.
12006 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
12007 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
12008 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
12009 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
12010 * target.c (update_current_target): Change default implementation of
12011 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
12012 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
12013 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
12014 to_set_syscall_catchpoint to return_one.
12015 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
12016 (debug_to_insert_exec_catchpoint): Report return value.
12017 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
12018 (to_insert_exec_catchpoint): Change declaration to return int instead
12019 of void.
12020
12021 2011-01-11 Michael Snyder <msnyder@vmware.com>
12022
12023 * arm-tdep.c: Internationalization.
12024 * c-lang.c: Ditto.
12025 * charset.c: Ditto.
12026 * fork-child.c: Ditto.
12027 * nto-procfs.c: Ditto.
12028 * ppc-sysv-tdep.c: Ditto.
12029 * procfs.c: Ditto.
12030 * remote-mips.c: Ditto.
12031 * remote.c: Ditto.
12032 * rs6000-nat.c: Ditto.
12033 * rs6000-tdep.c: Ditto.
12034 * target.c: Ditto.
12035 * valops.c: Ditto.
12036 * value.c: Ditto.
12037 * xml-support.c: Ditto.
12038 * mi/mi-cmd-break.c: Ditto.
12039 * mi/mi-cmd-var.c: Ditto.
12040 * mi/mi-interp.c: Ditto.
12041 * mi/mi-main.c: Ditto.
12042
12043 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
12044
12045 * remote-sim.c (gdbsim_store_register): Update API to
12046 sim_store_register to check more error conditions.
12047
12048 2011-01-10 Michael Snyder <msnyder@vmware.com>
12049
12050 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
12051 * nto-tdep.c: Ditto.
12052 * nto-tdep.h: Ditto.
12053 * objc-exp.y: Ditto.
12054 * objc-lang.c: Ditto.
12055 * objfiles.c: Ditto.
12056 * objfiles.h: Ditto.
12057 * observer.c: Ditto.
12058 * opencl-lang.c: Ditto.
12059 * osabi.c: Ditto.
12060 * parse.c: Ditto.
12061 * parser-defs.h: Ditto.
12062 * p-exp.y: Ditto.
12063 * p-lang.c: Ditto.
12064 * posix-hdep.c: Ditto.
12065 * ppcbug-rom.c: Ditto.
12066 * ppc-linux-nat.c: Ditto.
12067 * ppc-linux-tdep.c: Ditto.
12068 * ppc-linux-tdep.h: Ditto.
12069 * ppcnbsd-tdep.c: Ditto.
12070 * ppcobsd-tdep.c: Ditto.
12071 * ppcobsd-tdep.h: Ditto.
12072 * ppc-sysv-tdep.c: Ditto.
12073 * ppc-tdep.h: Ditto.
12074 * printcmd.c: Ditto.
12075 * proc-abi.c: Ditto.
12076 * proc-flags.c: Ditto.
12077 * procfs.c: Ditto.
12078 * proc-utils.h: Ditto.
12079 * progspace.h: Ditto.
12080 * prologue-value.c: Ditto.
12081 * prologue-value.h: Ditto.
12082 * psympriv.h: Ditto.
12083 * psymtab.c: Ditto.
12084 * p-typeprint.c: Ditto.
12085 * p-valprint.c: Ditto.
12086 * ravenscar-sparc-thread.c: Ditto.
12087 * ravenscar-thread.c: Ditto.
12088 * ravenscar-thread.h: Ditto.
12089 * record.c: Ditto.
12090 * regcache.c: Ditto.
12091 * regcache.h: Ditto.
12092 * remote.c: Ditto.
12093 * remote-fileio.c: Ditto.
12094 * remote-fileio.h: Ditto.
12095 * remote.h: Ditto.
12096 * remote-m32r-sdi.c: Ditto.
12097 * remote-mips.c: Ditto.
12098 * remote-sim.c: Ditto.
12099 * rs6000-aix-tdep.c: Ditto.
12100 * rs6000-nat.c: Ditto.
12101 * rs6000-tdep.c: Ditto.
12102
12103 2011-01-10 Michael Snyder <msnyder@vmware.com>
12104
12105 * charset.c (validate): Internationalization.
12106 * coffread.c (read_one_sym): Ditto.
12107 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
12108 * h8300-tdep.c (H8300_extract_return_value): Ditto.
12109 * inflow.c (new_tty): Ditto.
12110 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
12111 * m32c-tdep.c (m32c_return_value): Ditto.
12112 * mep-tdep.c (mep_store_return_value): Ditto.
12113 * score-tdep.c (score7_fetch_insn): Ditto.
12114 * ser-mingw.c (pipe_windows_open): Ditto.
12115 * sh64-tdep.c (sh64_extract_return_value): Ditto.
12116 * spu-tdep.c (spu_register_type): Ditto.
12117 * tracepoint.c (trace_find_command): Ditto.
12118 * valarith.c (value_pos): Ditto.
12119
12120 2011-01-10 Joel Brobecker <brobecker@adacore.com>
12121
12122 * ada-valprint.c (printstr): Minor comment reformatting.
12123
12124 2011-01-08 Michael Snyder <msnyder@vmware.com>
12125
12126 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
12127 markup.
12128
12129 2011-01-08 Michael Snyder <msnyder@vmware.com>
12130
12131 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
12132 * hppa-hpux-tdep.c: Ditto.
12133 * hppa-linux-nat.c: Ditto.
12134 * hppa-linux-tdep.c: Ditto.
12135 * hppanbsd-tdep.c: Ditto.
12136 * hppa-tdep.c: Ditto.
12137 * hppa-tdep.h: Ditto.
12138 * hpux-thread.c: Ditto.
12139 * i386-cygwin-tdep.c: Ditto.
12140 * i386-darwin-nat.c: Ditto.
12141 * i386gnu-nat.c: Ditto.
12142 * i386-linux-nat.c: Ditto.
12143 * i386-linux-tdep.c: Ditto.
12144 * i386-nat.c: Ditto.
12145 * i386-nat.h: Ditto.
12146 * i386nbsd-tdep.c: Ditto.
12147 * i386-sol2-nat.c: Ditto.
12148 * i386-stub.c: Ditto.
12149 * i386-tdep.c: Ditto.
12150 * i386-tdep.h: Ditto.
12151 * i387-tdep.c: Ditto.
12152 * ia64-linux-nat.c: Ditto.
12153 * ia64-linux-tdep.c: Ditto.
12154 * ia64-tdep.c: Ditto.
12155 * infcall.c: Ditto.
12156 * infcall.h: Ditto.
12157 * infcmd.c: Ditto.
12158 * inferior.c: Ditto.
12159 * inferior.h: Ditto.
12160 * infloop.c: Ditto.
12161 * inflow.c: Ditto.
12162 * infrun.c: Ditto.
12163 * interps.c: Ditto.
12164 * interps.h: Ditto.
12165 * iq2000-tdep.c: Ditto.
12166 * irix5-nat.c: Ditto.
12167 * jit.c: Ditto.
12168 * jit.h: Ditto.
12169 * jv-exp.y: Ditto.
12170 * jv-lang.c: Ditto.
12171 * jv-lang.h: Ditto.
12172 * jv-typeprint.c: Ditto.
12173 * jv-valprint.c: Ditto.
12174 * language.c: Ditto.
12175 * language.h: Ditto.
12176 * linespec.c: Ditto.
12177 * linux-fork.c: Ditto.
12178 * linux-nat.c: Ditto.
12179 * linux-thread-db.c: Ditto.
12180 * lm32-tdep.c: Ditto.
12181
12182 2011-01-08 Michael Snyder <msnyder@vmware.com>
12183
12184 * m2-exp.y: Comment cleanup, mostly periods and spaces.
12185 * m2-lang.c: Ditto.
12186 * m2-typeprint.c: Ditto.
12187 * m2-valprint.c: Ditto.
12188 * m32c-tdep.c: Ditto.
12189 * m32r-linux-nat.c: Ditto.
12190 * m32r-rom.c: Ditto.
12191 * m32r-tdep.c: Ditto.
12192 * m32r-tdep.h: Ditto.
12193 * m68hc11-tdep.c: Ditto.
12194 * m58klinux-nat.c: Ditto.
12195 * m68k-tdep.c: Ditto.
12196 * m88k-tdep.c: Ditto.
12197 * m88k-tdep.h: Ditto.
12198 * machoread.c: Ditto.
12199 * macrocmd.c: Ditto.
12200 * macroexp.c: Ditto.
12201 * macrotab.c: Ditto.
12202 * main.c: Ditto.
12203 * maint.c: Ditto.
12204 * mdebugread.c: Ditto.
12205 * mdebugread.h: Ditto.
12206 * memattr.c: Ditto.
12207 * memattr.h: Ditto.
12208 * memory-map.h: Ditto.
12209 * mep-tdep.c: Ditto.
12210 * microblaze-rom.c: Ditto.
12211 * microblaze-tdep.c: Ditto.
12212 * minsyms.c: Ditto.
12213 * mips-irix-tdep.c: Ditto.
12214 * mips-linux-nat.c: Ditto.
12215 * mips-linux-tdep.c: Ditto.
12216 * mips-linux-tdep.h: Ditto.
12217 * mipsnbsd-nat.c: Ditto.
12218 * mipsnbsd-tdep.c: Ditto.
12219 * mipsread.c: Ditto.
12220 * mips-tdep.c: Ditto.
12221 * mips-tdep.h: Ditto.
12222 * mn10300-linux-tdep.c: Ditto.
12223 * mn10300-tdep.c: Ditto.
12224 * mn10300-tdep.h: Ditto.
12225 * monitor.c: Ditto.
12226 * monitor.h: Ditto.
12227 * moxie-tdep.c: Ditto.
12228 * moxie-tdep.h: Ditto.
12229 * mt-tdep.c: Ditto.
12230
12231 2011-01-08 Mike Frysinger <vapier@gentoo.org>
12232
12233 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
12234
12235 2011-01-08 Robert Millan <rmh@gnu.org>
12236
12237 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
12238
12239 2011-01-07 Michael Snyder <msnyder@vmware.com>
12240
12241 * charset.c (_initialize_charset): Fix typo in string.
12242
12243 2011-01-07 Michael Snyder <msnyder@vmware.com>
12244
12245 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
12246 for i18n.
12247 * tui/tui-layout.c (tui_set_layout_for_display_command):
12248 Split line so that operator goes to beginning of line.
12249 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
12250 assignment out of if statement.
12251
12252 2011-01-07 Michael Snyder <msnyder@vmware.com>
12253
12254 * ada-lang.c: Comment cleanup, mostly periods and spaces.
12255 * ada-lang.h: Ditto.
12256 * ada-tasks.c: Ditto.
12257 * ada-valprint.c: Ditto.
12258 * aix-threads.c: Ditto.
12259 * alpha-linux-nat.c: Ditto.
12260 * alpha-linux-tdep.c: Ditto.
12261 * alpha-mdebug-tdep.c: Ditto.
12262 * alpha-nat.c: Ditto.
12263 * alpha-osf1-tdep.c: Ditto.
12264 * alpha-tdep.c: Ditto.
12265 * alphabsd-nat.c: Ditto.
12266 * alphabsd-tdep.c: Ditto.
12267 * amd64-darwin-tdep.c: Ditto.
12268 * amd64-linux-nat.c: Ditto.
12269 * amd64-linux-tdep.c: Ditto.
12270 * amd64-sol2-tdep.c: Ditto.
12271 * amd64-tdep.c: Ditto.
12272 * amd64-fbsd-tdep.c: Ditto.
12273 * amd64-nbsd-tdep.c: Ditto.
12274 * amd64-obsd-tdep.c: Ditto.
12275 * amd64-linux-nat.c: Ditto.
12276 * amd64-linux-tdep.c: Ditto.
12277 * arm-tdep.c: Ditto.
12278 * arm-tdep.h: Ditto.
12279 * armnbsd-nat.c: Ditto.
12280 * avr-tdep.c: Ditto.
12281 * bfin-tdep.c: Ditto.
12282 * bsd-kvm.c: Ditto.
12283 * c-typeprintc: Ditto.
12284 * c-valprint.c: Ditto.
12285 * coff-pe-read.h: Ditto.
12286 * coffreead.c: Ditto.
12287 * cris-tdep.c: Ditto.
12288 * d-lang.c: Ditto.
12289 * darwin-nat-info.c: Ditto.
12290 * darwin-nat.c: Ditto.
12291 * dbug-rom.c: Ditto.
12292 * dbxread.c: Ditto.
12293 * dcache.c: Ditto.
12294 * dcache.h: Ditto.
12295 * dec-thread.c: Ditto.
12296 * defs.h: Ditto.
12297 * demangle.c: Ditto.
12298 * dicos-tdep.c: Ditto.
12299 * dictionary.c: Ditto.
12300 * dictionary.h: Ditto.
12301 * dink32-rom.c: Ditto.
12302 * disasm.c: Ditto.
12303 * doublest.c: Ditto.
12304 * dsrec.c: Ditto.
12305 * dummy-frame.c: Ditto.
12306 * dwarf2-frame.c: Ditto.
12307 * dwarf2expr.c: Ditto.
12308 * dwarf2loc.c: Ditto.
12309 * dwarf2read.c: Ditto.
12310 * elfread.c: Ditto.
12311 * environ.c: Ditto.
12312 * eval.c: Ditto.
12313 * event-top.h: Ditto.
12314 * exceptions.c: Ditto.
12315 * exceptions.h: Ditto.
12316 * exec.c: Ditto.
12317 * expprint.c: Ditto.
12318 * expression.h: Ditto.
12319 * f-exp.y: Ditto.
12320 * f-lang.c: Ditto.
12321 * f-lang.h: Ditto.
12322 * f-typeprint.c: Ditto.
12323 * f-valprint.c: Ditto.
12324 * fbsd-nat.c: Ditto.
12325 * findvar.c: Ditto.
12326 * fork-child.c: Ditto.
12327 * frame.c: Ditto.
12328 * frame.h: Ditto.
12329 * frv-linux-tdep.c: Ditto.
12330 * frv-tdep.c: Ditto.
12331 * gcore.c: Ditto.
12332 * gdb-stabs.h: Ditto.
12333 * gdb_assert.h: Ditto.
12334 * gdb_string.h: Ditto.
12335 * gdb_thread_db.h: Ditto.
12336 * gdb_wait.h: Ditto.
12337 * gdbarch.sh: Ditto.
12338 * gdbcore.h: Ditto.
12339 * gdbthread.h: Ditto.
12340 * gdbtypes.c: Ditto.
12341 * gdbtypes.h: Ditto.
12342 * gnu-nat.c: Ditto.
12343 * gnu-nat.h: Ditto.
12344 * gnu-v2-abi.c: Ditto.
12345 * gnu-v3-abi.c: Ditto.
12346 * go32-nat.c: Ditto.
12347 * gdbarch.c: Regenerate.
12348 * gdbarch.h: Regenerate.
12349
12350 2011-01-07 Michael Snyder <msnyder@vmware.com>
12351
12352 * ax-gdb.c: Adjust some long output strings.
12353 * breakpoint.c: Ditto.
12354 * charset.c: Ditto.
12355 * cp-abi.c: Ditto.
12356 * infcall.c: Ditto.
12357 * infrun.c: Ditto.
12358 * linux-nat.c: Ditto.
12359 * solib-pa64.c: Ditto.
12360 * solib-som.c: Ditto.
12361
12362 2011-01-06 Tom Tromey <tromey@redhat.com>
12363
12364 PR python/12367:
12365 * NEWS: Add item.
12366 * python/python.c (GdbMethods): Add "newest_frame" method.
12367 * python/python-internal.h (gdbpy_newest_frame): Declare.
12368 * python/py-frame.c (gdbpy_newest_frame): New function.
12369
12370 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
12371
12372 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12373 * jit.c (jit_debug): New variable.
12374 (show_jit_debug): New function.
12375 (struct target_buffer): Use ULONGEST.
12376 (bfd_open_from_target_memory): Likewise.
12377 (jit_register_code, jit_inferior_init): Add debug output.
12378 (_initialize_jit): Register "debug jit" command.
12379
12380 2011-01-06 Tom Tromey <tromey@redhat.com>
12381
12382 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12383 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12384 and ARCH_FRAME.
12385
12386 2011-01-06 Tom Tromey <tromey@redhat.com>
12387
12388 * python/py-frame.c (frapy_block): Use get_frame_block.
12389
12390 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12391
12392 Do not stop on SIGPRIO signals by default
12393 * infrun.c (_initialize_infrun): Unset signal_stop and
12394 signal_print for TARGET_SIGNAL_PRIO.
12395
12396 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12397
12398 * ada-tasks.c: Fix style violation in comment.
12399
12400 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12401
12402 * linespec.c (decode_compound, find_method): Remove trailing \n
12403 at end of error string.
12404 * solib-irix.c (irix_current_sos): Likewise.
12405 * varobj.c (uninstall_variable): Likewise.
12406
12407 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12408
12409 * copyright.py: New script.
12410 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12411 Launch emacs without exec'ing. Call copyright.py afterwards.
12412
12413 2011-01-05 Michael Snyder <msnyder@vmware.com>
12414
12415 * addrmap.c: Shorten lines of >= 80 columns.
12416 * arch-utils.c: Ditto.
12417 * arch-utils.h: Ditto.
12418 * ax-gdb.c: Ditto.
12419 * ax-general.c: Ditto.
12420 * bcache.c: Ditto.
12421 * blockframe.c: Ditto.
12422 * breakpoint.c: Ditto.
12423 * buildsym.c: Ditto.
12424 * c-lang.c: Ditto.
12425 * c-typeprint.c: Ditto.
12426 * charset.c: Ditto.
12427 * coffread.c: Ditto.
12428 * command.h: Ditto.
12429 * corelow.c: Ditto.
12430 * cp-abi.c: Ditto.
12431 * cp-namespace.c: Ditto.
12432 * cp-support.c: Ditto.
12433 * dbug-rom.c: Ditto.
12434 * dbxread.c: Ditto.
12435 * defs.h: Ditto.
12436 * dfp.c: Ditto.
12437 * dfp.h: Ditto.
12438 * dictionary.c: Ditto.
12439 * disasm.c: Ditto.
12440 * doublest.c: Ditto.
12441 * dwarf2-frame.c: Ditto.
12442 * dwarf2expr.c: Ditto.
12443 * dwarf2loc.c: Ditto.
12444 * dwarf2read.c: Ditto.
12445 * elfread.c: Ditto.
12446 * eval.c: Ditto.
12447 * event-loop.c: Ditto.
12448 * event-loop.h: Ditto.
12449 * exceptions.h: Ditto.
12450 * exec.c: Ditto.
12451 * expprint.c: Ditto.
12452 * expression.h: Ditto.
12453 * f-lang.c: Ditto.
12454 * f-valprint.c: Ditto.
12455 * findcmd.c: Ditto.
12456 * frame-base.c: Ditto.
12457 * frame-unwind.c: Ditto.
12458 * frame-unwind.h: Ditto.
12459 * frame.c: Ditto.
12460 * frame.h: Ditto.
12461 * gcore.c: Ditto.
12462 * gdb-stabs.h: Ditto.
12463 * gdb_assert.h: Ditto.
12464 * gdb_dirent.h: Ditto.
12465 * gdb_obstack.h: Ditto.
12466 * gdbcore.h: Ditto.
12467 * gdbtypes.c: Ditto.
12468 * gdbtypes.h: Ditto.
12469 * inf-ttrace.c: Ditto.
12470 * infcall.c: Ditto.
12471 * infcmd.c: Ditto.
12472 * inflow.c: Ditto.
12473 * infrun.c: Ditto.
12474 * inline-frame.h: Ditto.
12475 * language.c: Ditto.
12476 * language.h: Ditto.
12477 * libunwind-frame.c: Ditto.
12478 * libunwind-frame.h: Ditto.
12479 * linespec.c: Ditto.
12480 * linux-nat.c: Ditto.
12481 * linux-nat.h: Ditto.
12482 * linux-thread-db.c: Ditto.
12483 * machoread.c: Ditto.
12484 * macroexp.c: Ditto.
12485 * macrotab.c: Ditto.
12486 * main.c: Ditto.
12487 * maint.c: Ditto.
12488 * mdebugread.c: Ditto.
12489 * memattr.c: Ditto.
12490 * minsyms.c: Ditto.
12491 * monitor.c: Ditto.
12492 * monitor.h: Ditto.
12493 * objfiles.c: Ditto.
12494 * objfiles.h: Ditto.
12495 * osabi.c: Ditto.
12496 * p-typeprint.c: Ditto.
12497 * p-valprint.c: Ditto.
12498 * parse.c: Ditto.
12499 * printcmd.c: Ditto.
12500 * proc-events.c: Ditto.
12501 * procfs.c: Ditto.
12502 * progspace.c: Ditto.
12503 * progspace.h: Ditto.
12504 * psympriv.h: Ditto.
12505 * psymtab.c: Ditto.
12506 * record.c: Ditto.
12507 * regcache.c: Ditto.
12508 * regcache.h: Ditto.
12509 * remote-fileio.c: Ditto.
12510 * remote.c: Ditto.
12511 * ser-mingw.c: Ditto.
12512 * ser-tcp.c: Ditto.
12513 * ser-unix.c: Ditto.
12514 * serial.c: Ditto.
12515 * serial.h: Ditto.
12516 * solib-frv.c: Ditto.
12517 * solib-irix.c: Ditto.
12518 * solib-osf.c: Ditto.
12519 * solib-pa64.c: Ditto.
12520 * solib-som.c: Ditto.
12521 * solib-sunos.c: Ditto.
12522 * solib-svr4.c: Ditto.
12523 * solib-target.c: Ditto.
12524 * solib.c: Ditto.
12525 * somread.c: Ditto.
12526 * source.c: Ditto.
12527 * stabsread.c: Ditto.
12528 * stabsread.c: Ditto.
12529 * stack.c: Ditto.
12530 * stack.h: Ditto.
12531 * symfile-mem.c: Ditto.
12532 * symfile.c: Ditto.
12533 * symfile.h: Ditto.
12534 * symmisc.c: Ditto.
12535 * symtab.c: Ditto.
12536 * symtab.h: Ditto.
12537 * target-descriptions.c: Ditto.
12538 * target-memory.c: Ditto.
12539 * target.c: Ditto.
12540 * target.h: Ditto.
12541 * terminal.h: Ditto.
12542 * thread.c: Ditto.
12543 * top.c: Ditto.
12544 * tracepoint.c: Ditto.
12545 * tracepoint.h: Ditto.
12546 * ui-file.c: Ditto.
12547 * ui-file.h: Ditto.
12548 * ui-out.h: Ditto.
12549 * user-regs.c: Ditto.
12550 * user-regs.h: Ditto.
12551 * utils.c: Ditto.
12552 * valarith.c: Ditto.
12553 * valops.c: Ditto.
12554 * valprint.c: Ditto.
12555 * valprint.h: Ditto.
12556 * value.c: Ditto.
12557 * varobj.c: Ditto.
12558 * varobj.h: Ditto.
12559 * vec.h: Ditto.
12560 * xcoffread.c: Ditto.
12561 * xcoffsolib.c: Ditto.
12562 * xcoffsolib.h: Ditto.
12563 * xml-syscall.c: Ditto.
12564 * xml-tdesc.c: Ditto.
12565
12566 2011-01-05 Michael Snyder <msnyder@vmware.com>
12567
12568 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12569 * cli/cli-decode.c: Ditto.
12570 * cli/cli-dump.c: Ditto.
12571 * cli/cli-logging.c: Ditto.
12572 * cli/cli-script.c: Ditto.
12573 * cli/cli-setshow.c: Ditto.
12574 * common/signals.c: Ditto.
12575 * mi/mi-cmd-break.c: Ditto.
12576 * mi/mi-cmd-disas.c: Ditto.
12577 * mi/mi-cmd-stack.c: Ditto.
12578 * mi/mi-cmd-var.c: Ditto.
12579 * mi/mi-cmds.c: Ditto.
12580 * mi/mi-common.h: Ditto.
12581 * mi/mi-console.c: Ditto.
12582 * mi/mi-interp.c: Ditto.
12583 * mi/mi-main.c: Ditto.
12584 * osf-share/cma_attr.c: Ditto.
12585 * osf-share/cma_deb_core.h: Ditto.
12586 * osf-share/cma_debug_client.h: Ditto.
12587 * osf-share/cma_handle.h: Ditto.
12588 * osf-share/cma_mutex.h: Ditto.
12589 * osf-share/cma_stack_int.h: Ditto.
12590 * osf-share/cma_tcb_defs.h: Ditto.
12591 * python/py-auto-load.c: Ditto.
12592 * python/py-breakpoint.c: Ditto.
12593 * python/py-cmd.c: Ditto.
12594 * python/py-frame.c: Ditto.
12595 * python/py-objfile.c: Ditto.
12596 * python/py-param.c: Ditto.
12597 * python/py-progspace.c: Ditto.
12598 * python/py-symbol.c: Ditto.
12599 * python/py-value.c: Ditto.
12600 * python/python-internal.h: Ditto.
12601 * python/python.c: Ditto.
12602 * tui/tui-data.c: Ditto.
12603 * tui/tui-disasm.c: Ditto.
12604 * tui/tui-hooks.c: Ditto.
12605 * tui/tui-io.c: Ditto.
12606 * tui/tui-layout.c: Ditto.
12607 * tui/tui-regs.c: Ditto.
12608 * tui/tui-source.c: Ditto.
12609 * tui/tui-stack.c: Ditto.
12610 * tui/tui-win.c: Ditto.
12611 * tui/tui-windata.c: Ditto.
12612 * tui/tui-winsource.c: Ditto.
12613
12614 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12615
12616 * configure.ac, gdb.1: Copyright year update.
12617
12618 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12619
12620 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12621 this_pc_in_block, morestack_msym and morestack_name. Check for
12622 "__morestack" minimal symbol there.
12623
12624 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12625
12626 * symfile.c (find_sym_fns): Add call to dont_repeat.
12627
12628 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12629
12630 Copyright year update in most files (performed by copyright.sh).
12631
12632 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12633
12634 * top.c (print_gdb_version): Update copyright year in version output.
12635
12636 For older changes see ChangeLog-2010.
12637 \f
12638 Local Variables:
12639 mode: change-log
12640 left-margin: 8
12641 fill-column: 74
12642 version-control: never
12643 coding: utf-8
12644 End:
This page took 0.309899 seconds and 5 git commands to generate.