07b9ef7c5c7094c89f83da778b15deb2957af906
[external/binutils.git] / gdb / ChangeLog
1 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
2
3         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
4         any thread.
5
6 2012-04-13  Pierre Muller  <muller@ics.u-strasbg.fr>
7
8         * p-typeprint.c (pascal_type_print_method_args):
9         Fix display of parameter of methods.
10
11 2012-03-20  Pedro Alves  <palves@redhat.com>
12
13         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
14         returns.
15
16 2012-03-13  Hui Zhu  <teawater@gmail.com>
17             Pedro Alves  <palves@redhat.com>
18
19         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
20         CREATE_BREAKPOINT_FLAGS_INSERTED.
21         (create_breakpoint_sal, create_breakpoints_sal)
22         (create_breakpoint): New flags parameter.  Pass it down.
23         (break_command_1, handle_gnu_v3_exceptions, trace_command)
24         (ftrace_command, strace_command): Adjust.
25         (create_tracepoint_from_upload): Pass
26         CREATE_BREAKPOINT_FLAGS_INSERTED.
27         * breakpoint.h (enum breakpoint_create_flags): New.
28         (create_breakpoint): New flags parameter.
29         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
30         * python/py-breakpoint.c (bppy_init): Adjust.
31         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
32         * spu-tdep.c (spu_catch_start): Adjust.
33
34 2012-03-13  Pedro Alves  <palves@redhat.com>
35             Hui Zhu  <teawater@gmail.com>
36             Yao Qi  <yao@codesourcery.com>
37
38         * remote.c (struct remote_state): New field `starting_up'.
39         (remote_start_remote): Set and clear it.
40         (remote_can_download_tracepoint): If starting up, return false.
41
42 2012-03-06  Pedro Alves  <palves@redhat.com>
43
44         PR gdb/13766
45
46         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
47         the register state is clear, supply explicit zero, instead of
48         marking the register unavailable.
49
50 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
51
52         PR backtrace/13716
53         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
54         it after set_momentary_breakpoint.
55
56 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
57
58         PR build/13638
59         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
60         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
61         * configure: Regenerate.
62
63 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
64
65         * configure: Regenerate.
66         * config.in: Regenerate.
67
68 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
69
70         * version.in: Set version to 7.4.0.20120124-cvs.
71
72 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
73
74         GDB 7.4 released.
75
76 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
77
78         * NEWS: Change "since GDB 7.3.1" into "in GDB 7.4".
79
80 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
81
82         * version.in: Update GDB version number to 7.4.
83
84 2012-01-14  Doug Evans  <dje@google.com>
85
86         Restore "mt set python print-stack on|off" for 7.4.
87         * NEWS: Update to indicate "mt set python print-stack" is deprecated,
88         but not deleted yet, and will be gone in gdb 7.5.
89         * python/python.c (maint_set_python_list, maint_show_python_list):
90         New global vars.
91         (maint_set_python, maint_show_python): New functions.
92         (gdbpy_should_print_stack_deprecated): New global var.
93         (set_maint_python_print_stack): New function.
94         (show_maint_python_print_stack): New function.
95         (_initialize_python): Define commands
96         "mt set python print-stack on|off" and ""mt show python print-stack".
97
98 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
99
100         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
101         including curses.h.
102
103 2012-01-12  Pedro Alves  <palves@redhat.com>
104
105         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
106         available when %ebp is found to be zero (outermost).
107
108 2012-01-10  Doug Evans  <dje@google.com>
109
110         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
111         "want_line_info".  All callers updated.
112         (dwarf_decode_lines_1): New function.
113         (handle_DW_AT_stmt_list): Add function comment.
114         New arg "want_line_info".  All callers updated.
115         (read_file_scope,read_type_unit_scope): Move comment from
116         handle_DW_AT_stmt_list to here.
117
118 2012-01-06  Joel Brobecker  <brobecker@adacore.com>
119
120         * version.in: Set version to 7.3.92.20120106-cvs.
121
122 2012-01-06  Joel Brobecker  <brobecker@adacore.com>
123
124         GDB 7.3.92 released.
125
126 2012-01-06  Joel Brobecker  <brobecker@adacore.com>
127
128         * version.in: Update GDB version number to 7.3.92.
129
130 2012-01-06  Joel Brobecker  <brobecker@adacore.com>
131
132         Copyright year update in most files of the GDB Project.
133
134 2012-01-06  Joel Brobecker  <brobecker@adacore.com>
135
136         * README (Copyright and License Notices): New section.
137
138 2012-01-06  Joel Brobecker  <brobecker@adacore.com>
139
140         * ada-lang.c: Reformat the copyright notice.
141
142 2012-01-06  Joel Brobecker  <brobecker@adacore.com>
143
144         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
145         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
146         Reformat the copyright header.
147
148 2012-01-06  Joel Brobecker  <brobecker@adacore.com>
149
150         * top.c (print_gdb_version): Update copyright year.
151
152 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
153
154         Revert:
155         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
156                     Joel Brobecker  <brobecker@adacore.com>
157         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
158         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
159         3 times.
160         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
161         fall through into AT_ENTRY_POINT.
162         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
163         DUMMY_ADDR with it.
164         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
165         PPC_INSN_SIZE skip to 3 times.
166
167 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
168
169         * linespec.c (add_minsym): Preserve function descriptors.
170
171 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
172
173         * linespec.c (struct collect_minsyms) [list_mode]: New field.
174         (add_minsym): Ignore data symbols if not in list mode.
175         (search_minsyms_for_name): Set local.list_mode.
176
177 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
178
179         * breakpoint.c (all_locations_are_pending): Consider locations
180         in program spaces executing during startup pending as well.
181
182 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
183             Joel Brobecker  <brobecker@adacore.com>
184
185         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
186         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
187         3 times.
188         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
189         fall through into AT_ENTRY_POINT.
190         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
191         DUMMY_ADDR with it.
192         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
193         PPC_INSN_SIZE skip to 3 times.
194
195 2012-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
196
197         * NEWS (Changes in GDB 7.4): Add gdbtui deprecation note.
198         * tui/tui-main.c: Likewise.
199
200 2011-12-23  Kevin Pouget  <kevin.pouget@st.com>
201
202         Introduce gdb.FinishBreakpoint in Python
203         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-finishbreakpoint.o.
204         (SUBDIR_PYTHON_SRCS): Add python/py-finishbreakpoint.c.
205         Add build rule for this file.
206         * infcmd.c (print_return_value): Split to create get_return_value.
207         (get_return_value): New function based on print_return_value. Handle
208         case where stop_registers are not set.
209         * inferior.h (get_return_value): New prototype.
210         * python/py-breakpoint.c (bppy_pending_object): Make non-static.
211         (gdbpy_breakpoint_created): Set is_py_finish_bp is necessary.
212         (struct breakpoint_object): Move to python-internal.h
213         (BPPY_REQUIRE_VALID): Likewise.
214         (BPPY_SET_REQUIRE_VALID): Likewise.
215         (gdbpy_breakpoint_created): Initialize is_finish_bp.
216         (gdbpy_should_stop): Add  pre/post hooks before/after calling stop
217         method.
218         * python/python-internal.h (breakpoint_object_type): Add as extern.
219         (bppy_pending_object): Likewise.
220         (typedef struct breakpoint_object) Removed.
221         (struct breakpoint_object): Moved from py-breakpoint.c.
222         Add field is_finish_bp.
223         (BPPY_REQUIRE_VALID): Moved from py-breakpoint.c.
224         (BPPY_SET_REQUIRE_VALID): Likewise.
225         (frame_object_to_frame_info): New prototype.
226         (gdbpy_initialize_finishbreakpoints): New prototype.
227         (bpfinishpy_is_finish_bp): Likewise.
228         (bpfinishpy_pre_stop_hook): Likewise.
229         (bpfinishpy_post_stop_hook): Likewise.
230         * python/py-finishbreakpoint.c: New file.
231         * python/py-frame.c(frame_object_to_frame_info): Make non-static and
232         accept PyObject instead of frame_object.
233         (frapy_is_valid): Don't cast to frame_object.
234         (frapy_name): Likewise.
235         (frapy_type): Likewise.
236         (frapy_unwind_stop_reason): Likewise.
237         (frapy_pc): Likewise.
238         (frapy_block): Likewise.
239         (frapy_function): Likewise.
240         (frapy_older): Likewise.
241         (frapy_newer): Likewise.
242         (frapy_find_sal): Likewise.
243         (frapy_read_var): Likewise.
244         (frapy_select): Likewise.
245         * python/python.c (gdbpy_is_stopped_at_finish_bp): New noop function.
246         (_initialize_python): Add gdbpy_initialize_finishbreakpoints.
247         * python/python.h: Include breakpoint.h
248         (gdbpy_is_stopped_at_finish_bp): New prototype.
249
250 2011-12-22  Andreas Schwab  <schwab@linux-m68k.org>
251
252         * ppc-linux-nat.c (create_watchpoint_request): Only use ranged
253         watchpoints when supported.
254
255         * cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
256         obstack_empty_p.
257
258 2011-12-21  Ulrich Weigand  <ulrich.weigand@linaro.org>
259
260         PR tdep/12797
261         * arm-tdep.c (arm_return_value): Handle complex types.
262
263 2011-12-19  Doug Evans  <dje@google.com>
264
265         * python/py-auto-load.c (info_auto_load_scripts): Pass address of
266         scripts vector to collect_matching_scripts.
267         (collect_matching_scripts): Update.
268
269 2011-12-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
270
271         * symfile.c (reread_symbols): Move free_objfile_separate_debug,
272         preserve_values, sym_finish and clear_objfile_data calls before BFD
273         close.  Move free_objfile_separate_debug as the very first call.  New
274         comment on the ordering.
275
276 2011-12-19  Ulrich Weigand  <uweigand@de.ibm.com>
277
278         * s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
279         in return PSWA.
280
281 2011-12-17  Mark Kettenis  <kettenis@gnu.org>
282
283         * amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
284         regset_from_core_section.
285         (amd64obsd_core_init_abi): New function that sets
286         regset_from_core_section.
287         (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
288         traditional core dumps.
289
290 2011-12-17  Mark Kettenis  <kettenis@gnu.org>
291
292         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
293         trampoline to be introduced in OpenBSD 5.0.
294
295 2011-12-16  Tom Tromey  <tromey@redhat.com>
296
297         * linespec.c (collect_symbols): Call maybe_add_address after
298         calling symbol_to_sal.
299         (minsym_found): Call maybe_add_address here.
300         (search_minsyms_for_name): Don't call maybe_add_address.
301
302 2011-12-16  Tom Tromey  <tromey@redhat.com>
303
304         * linespec.c (struct collect_info) <objfile>: Remove field.
305         (decode_objc): Update.
306         (find_method): Update.
307         (decode_variable): Update.
308         (struct minsym_and_objfile): New.
309         (struct collect_minsyms): New.
310         (classify_mtype): New function.
311         (compare_msyms): Likewise.
312         (add_minsym): Likewise.
313         (check_minsym): Remove.
314         (search_minsyms_for_name): Sort minsyms and apply only those with
315         top priority.
316
317 2011-12-16  Tom Tromey  <tromey@redhat.com>
318
319         * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
320
321 2011-12-16  Phil Muldoon  <pmuldoon@redhat.com>
322
323         * python/python.c: Define python_excp_enums.
324         (eval_python_from_control_command): Do not call gdbpy_print_stack.
325         (python_command): Ditto.
326         (gdbpy_print_stack): Rewrite to use new enum constants.
327         (maint_set_python): Remove function.
328         (maint_show_python): Ditto.
329         (_initialize_python): Do not add "maint" commands.  Add "set/show
330         python print-stack commands".
331         * NEWS: Update to reflect removal for "maint set/show
332         print-stack"
333
334 2011-12-15  Tom Tromey  <tromey@redhat.com>
335
336         * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
337         do_cleanups call.
338
339 2011-12-14  Pedro Alves  <pedro@codesourcery.com>
340
341         * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
342         target_write_raw_memory.
343         * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
344         target_write_raw_memory.
345         * microblaze-linux-tdep.c
346         (microblaze_linux_memory_remove_breakpoint): Use
347         target_write_raw_memory.
348         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
349         target_write_raw_memory.
350
351 2011-12-14  Yao Qi  <yao@codesourcery.com>
352
353         * breakpoint.c (create_breakpoint): Set canonical.addr_string
354         for static tracepoint.
355
356 2011-12-13  Joel Brobecker  <brobecker@adacore.com>
357
358         * version.in: Set version to 7.3.91.20111213-cvs.
359
360 2011-12-13  Joel Brobecker  <brobecker@adacore.com>
361
362         GDB 7.3.91 released.
363
364 2011-12-13  Joel Brobecker  <brobecker@adacore.com>
365
366         * version.in: Update GDB version number to 7.3.91.
367
368 2011-12-13  Joel Brobecker  <brobecker@adacore.com>
369
370         * configure.ac: Disable -Werror by default.
371         * configure: Regenerate.
372
373 2011-12-13  Joel Brobecker  <brobecker@adacore.com>
374
375         GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
376         * version.in: Bump version to 7.3.90.20111213-cvs.
377
378 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
379
380         * ada-lang.c (ada_exception_support_info_sniffer): Improve
381         error message.
382
383 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
384
385         * ada-lang.c (struct ada_inferior_data) [exception_info]:
386         New field.
387         (exception_info): Delete.
388         (ada_exception_support_info_sniffer): Get exception_support_info
389         data from our per-inferior data.  Adjust code accordingly.
390         (ada_unhandled_exception_name_addr_from_raise): Likewise.
391         (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
392         (ada_executable_changed_observer): Delete.
393         (_initialize_ada_language): Remove call to
394         observer_attach_executable_changed.
395
396 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
397
398         * ada-lang.c (ada_has_this_exception_support): Raise an error
399         if we could find the Ada exception hook in the Ada runtime,
400         but no debugging info for that hook.
401
402 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
403
404         * ada-lang.c (ada_has_this_exception_support): New function,
405         extracted out of ada_exception_sal and ada_exception_sal.
406         (ada_exception_support_info_sniffer): Simplify by using
407         ada_has_this_exception_support.
408         (ada_exception_sal): Replace unnecessary checks by assertions.
409         Minor simplifications.
410
411 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
412
413         * breakpoint.c (update_global_location_list): Remove nested
414         definition of `b'(-Wshadow).
415
416 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
417
418         * breakpoint.c (insert_breakpoint_locations): Rename `error' to
419         `error_flag'(-Wshadow).
420
421 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
422
423         * bfd-target.c (target_bfd_reopen): Rename `bfd' to
424         `abfd'(-Wshadow).
425
426 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
427
428         * annotate.c (annotate_array_section_begin): Rename `index' to
429         `idx'(-Wshadow).
430
431 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
432
433         * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
434         `idx'(-Wshadow).
435
436 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
437
438         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
439         `syscall' to `syscall_number'(-Wshadow).
440
441 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
442
443         * ada-lang.c (remove_extra_symbols): Rename `remove' to
444         `remove_p'(-Wshadow).
445
446 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
447
448         * ada-exp.y (write_var_or_type): Rename nested `renaming' to
449         `ren_sym'(-Wshadow).
450
451 2011-12-10  Doug Evans  <dje@google.com>
452
453         * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
454         debug_types_section.  All uses updated.
455         (partial_read_comp_unit_head): Rename parameter is_debug_type_section
456         to is_debug_types_section.
457
458         * python/py-auto-load.c (source_section_scripts): Call xfree
459         instead of free.
460
461 2011-12-10  Hui Zhu  <teawater@gmail.com>
462             Yao Qi  <yao@codesourcery.com>
463
464         * tracepoint.c (start_tracing): Clear `inserted' flag.
465
466 2011-12-10  Hui Zhu  <teawater@gmail.com>
467
468         * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
469
470 2011-12-09  Andrey Smirnov  <andrew.smirnov@gmail.com>
471
472         * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
473         `bpoint'(-Wshadow).
474
475 2011-12-09  Andrey Smirnov  <andrew.smirnov@gmail.com>
476
477         * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
478         `marker' variables to `sal2' and `tpmarker' respectively
479         (-Wshadow).
480
481 2011-12-09  Andrew Pinski  <apinski@cavium.com>
482
483         * linespec.c (hash_address_entry): Use iterative_hash_object on each
484         field rather than the struct itself.
485
486 2011-12-09  Tom Tromey  <tromey@redhat.com>
487
488         * breakpoint.c (compare_breakpoints): New function.
489         (clear_command): Remove duplicate breakpoints.  Properly clean
490         up.
491
492 2011-12-08  Maciej W. Rozycki  <macro@mips.com>
493             Maciej W. Rozycki  <macro@codesourcery.com>
494
495         * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
496         address chunks retrieved from decoded lui/addiu pairs.
497
498 2011-12-08  Maciej W. Rozycki  <macro@codesourcery.com>
499
500         * mips-tdep.c (extended_offset): Correct calculation.
501         (unpack_mips16): Correct bitfield positions used for extraction
502         of the immediate argument; fix sign-extension of same.
503         (extended_mips16_next_pc): Correct B instruction's offset
504         calculation.  Correct register decoding of the BEQZ and BNEZ
505         as well as jump-register instructions.  Handle compact jumps.
506
507 2011-12-08  Tom Tromey  <tromey@redhat.com>
508
509         * objfiles.h (struct objfile): Remove obsolete comment.
510         * objfiles.c (build_objfile_section_table): Remove obsolete
511         comment.
512
513 2011-12-07  Stan Shebs  <stan@codesourcery.com>
514
515         * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
516         maintainer of the tic6x target.
517
518 2011-12-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
519
520         * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
521         * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
522         (arm_deal_with_atomic_sequence_raw): Likewise.
523         (arm_deal_with_atomic_sequence): Likewise.
524         (arm_software_single_step): Call it.
525         * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
526
527 2011-12-07  Ulrich Weigand  <uweigand@de.ibm.com>
528
529         * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
530         where appropriate.
531         * s390-tdep.h: Likewise.
532
533 2011-12-07  Tristan Gingold  <gingold@adacore.com>
534
535         * machoread.c (macho_symtab_read): Do not consider N_OPT as
536         a debugging stab.  Improve complaint message.
537
538 2011-12-07  Maciej W. Rozycki  <macro@codesourcery.com>
539
540         * mips-tdep.c (mips32_scan_prologue): Only update the immediate
541         load adjustment if still within the prologue.
542
543 2011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
544
545         * mips-tdep.c (mips32_next_pc): Fix floating point condition
546         code mask.
547
548 2011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
549
550         * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
551         of BLTZ* and BGEZ* instructions.
552
553 2011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
554
555         * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
556         performed to determine whether an address refers to standard
557         MIPS or MIPS16 code.
558         (mips16_next_pc): Use mips_pc_is_mips16 instead of
559         is_mips16_addr.
560
561 2011-12-06  Pedro Alves  <pedro@codesourcery.com>
562
563         * breakpoint.c (breakpoint_restore_shadows): Rename to ...
564         (breakpoint_xfer_memory): ... this.  Change prototype.  Handle
565         memory writes too.
566         * breakpoint.h (breakpoint_restore_shadows): Delete.
567         (breakpoint_xfer_memory): Declare.
568         * mem-break.c (default_memory_insert_breakpoint)
569         (default_memory_remove_breakpoint): Use target_write_raw_memory.
570         (memory_xfer_partial): Rename to ...
571         (memory_xfer_partial_1): ... this.  Don't mask out breakpoints
572         here.
573         (memory_xfer_partial): New.
574         (target_write_raw_memory): New.
575         * target.h (target_write_raw_memory): New.
576
577 2011-12-06  Doug Evans  <dje@google.com>
578
579         * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
580
581 2011-12-06  Joel Brobecker  <brobecker@acacore.com>
582
583         * language.h (struct language_defn): Add new component
584         la_symbol_name_compare.
585         * symfile.h (struct quick_symbol_functions): Update the profile
586         of parameter "name_matcher" for the expand_symtabs_matching
587         method.  Update the documentation accordingly.
588         * ada-lang.h (ada_name_for_lookup): Add declaration.
589         * ada-lang.c (ada_name_for_lookup): New function, extracted out
590         from ada_iterate_over_symbols.
591         (ada_iterate_over_symbols): Do not encode symbol name anymore.
592         (ada_expand_partial_symbol_name): Adjust profile.
593         (ada_language_defn): Add value for la_symbol_name_compare field.
594         * linespec.c: #include "ada-lang.h".
595         (iterate_name_matcher): Add language parameter. Replace call
596         to strcmp_iw by call to language->la_symbol_name_compare.
597         (decode_variable): Encode COPY if current language is Ada.
598         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
599         of name_matcher parameter.  Adjust call to name_matcher.
600         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
601         (expand_partial_symbol_names): Update profile of parameter "fun".
602         * psymtab.h (expand_partial_symbol_names): Update profile of
603         parameter "fun".
604         * symtab.c (demangle_for_lookup): Update function documentation.
605         (search_symbols_name_matches): Add language parameter.
606         (expand_partial_symbol_name): Likewise.
607         * c-lang.c (c_language_defn, cplus_language_defn)
608         (asm_language_defn, minimal_language_defn): Add value for
609         la_symbol_name_compare field.
610         * d-lang.c (d_language_defn): Likewise.
611         * f-lang.c (f_language_defn): Ditto.
612         * jv-lang.c (java_language_defn): Ditto.
613         * m2-lang.c (m2_language_defn): Ditto.
614         * objc-lang.c (objc_language_defn): Ditto.
615         * opencl-lang.c (opencl_language_defn): Ditto.
616         * p-lang.c (pascal_language_defn): Ditto.
617         * language.c (unknown_language_defn, auto_language_defn)
618         (local_language_defn): Ditto.
619
620 2011-12-06  Tom Tromey  <tromey@redhat.com>
621
622         * linespec.c (iterate_over_all_matching_symtabs): Use
623         LA_ITERATE_OVER_SYMBOLS.
624         (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
625         (find_function_symbols, decode_variable): Remove Ada special
626         case.
627         * language.h (struct language_defn) <la_iterate_over_symbols>: New
628         field.
629         (LA_ITERATE_OVER_SYMBOLS): New macro.
630         * language.c (unknown_language_defn, auto_language_defn)
631         (local_language_defn): Update.
632         * c-lang.c (c_language_defn, cplus_language_defn)
633         (asm_language_defn, minimal_language_defn): Update.
634         * d-lang.c (d_language_defn): Update.
635         * f-lang.c (f_language_defn): Update.
636         * jv-lang.c (java_language_defn): Update.
637         * m2-lang.c (m2_language_defn): Update.
638         * objc-lang.c (objc_language_defn): Update.
639         * opencl-lang.c (opencl_language_defn): Update.
640         * p-lang.c (pascal_language_defn): Update.
641         * ada-lang.c (ada_iterate_over_symbols): New function.
642         (ada_language_defn): Update.
643
644 2011-12-06  Tom Tromey  <tromey@redhat.com>
645             Joel Brobecker  <brobecker@acacore.com>
646
647         PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
648         PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
649         PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
650         PR shlibs/8929, PR shlibs/7393:
651         * python/py-type.c (compare_maybe_null_strings): Rename from
652         compare_strings.
653         (check_types_equal): Update.
654         * utils.c (compare_strings): New function.
655         * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
656         location changes.
657         * tracepoint.c (scope_info): Update.
658         (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
659         * symtab.h (iterate_over_minimal_symbols)
660         (iterate_over_some_symtabs, iterate_over_symtabs)
661         (find_pcs_for_symtab_line, iterate_over_symbols)
662         (demangle_for_lookup): Declare.
663         (expand_line_sal): Remove.
664         * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
665         (lookup_symtab_callback): New functions.
666         (lookup_symtab): Rewrite.
667         (demangle_for_lookup): New function, extract from
668         lookup_symbol_in_language.
669         (lookup_symbol_in_language): Use it.
670         (iterate_over_symbols): New function.
671         (find_line_symtab): Update.
672         (find_pcs_for_symtab_line): New functions.
673         (find_line_common): Add 'start' argument.
674         (decode_line_spec): Update.  Change argument to 'flags', change
675         interpretation.
676         (append_expanded_sal): Remove.
677         (append_exact_match_to_sals): Remove.
678         (expand_line_sal): Remove.
679         * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
680         Remove.
681         <map_symtabs_matching_filename>: New field.
682         * stack.c (func_command): Only look in the current program space.
683         Use DECODE_LINE_FUNFIRSTLINE.
684         * source.c (line_info): Set pspace on sal.  Check program space in
685         the loop.  Use DECODE_LINE_LIST_MODE.
686         (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
687         * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
688         * python/python.c (gdbpy_decode_line): Update.
689         * psymtab.c (partial_map_expand_apply): New function.
690         (partial_map_symtabs_matching_filename): Rename from
691         lookup_partial_symbol.  Update arguments.
692         (lookup_symtab_via_partial_symtab): Remove.
693         (psym_functions): Update.
694         * objc-lang.h (parse_selector, parse_method): Don't declare.
695         (find_imps): Update.
696         * objc-lang.c (parse_selector, parse_method): Now static.
697         (find_methods): Change arguments.  Fill in a vector of symbol
698         names.
699         (uniquify_strings): New function.
700         (find_imps): Change arguments.
701         * minsyms.c (iterate_over_minimal_symbols): New function.
702         * linespec.h (enum decode_line_flags): New.
703         (struct linespec_sals): New.
704         (struct linespec_result) <canonical>: Remove.
705         <pre_expanded, addr_string, sals>: New fields.
706         (destroy_linespec_result, make_cleanup_destroy_linespec_result)
707         (decode_line_full): Declare.
708         (decode_line_1): Update.
709         * linespec.c (struct address_entry, struct linespec_state, struct
710         collect_info): New types.
711         (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
712         (eq_address_entry, maybe_add_address): New functions.
713         (total_number_of_methods): Remove.
714         (iterate_name_matcher, iterate_over_all_matching_symtabs): New
715         functions.
716         (find_methods): Change arguments.  Don't canonicalize input.
717         Simplify logic.
718         (add_matching_methods, add_constructors)
719         (build_canonical_line_spec): Remove.
720         (filter_results, convert_results_to_lsals): New functions.
721         (decode_line_2): Change arguments.  Rewrite for new data
722         structures.
723         (decode_line_internal): Rename from decode_line_1.  Change
724         arguments.  Add cleanups.  Update for new data structures.
725         (linespec_state_constructor, linespec_state_destructor)
726         (decode_line_full, decode_line_1): New functions.
727         (decode_indirect): Change arguments.  Update.
728         (locate_first_half): Use skip_spaces.
729         (decode_objc): Change arguments.  Update for new data structures.
730         Simplify logic.
731         (decode_compound): Change arguments.  Add cleanups.  Remove
732         fallback code, replace with error.
733         (struct decode_compound_collector): New type.
734         (collect_one_symbol): New function.
735         (lookup_prefix_sym): Change arguments.  Update.
736         (compare_symbol_name, add_all_symbol_names_from_pspace)
737         (find_superclass_methods ): New functions.
738         (find_method): Rewrite.
739         (struct symtab_collector): New type.
740         (add_symtabs_to_list, collect_symtabs_from_filename): New
741         functions.
742         (symtabs_from_filename): Change API.  Rename from
743         symtab_from_filename.
744         (collect_function_symbols): New function.
745         (find_function_symbols): Change API.  Rename from
746         find_function_symbol.  Rewrite.
747         (decode_all_digits): Change arguments.  Rewrite.
748         (decode_dollar): Change arguments.  Use decode_variable.
749         (decode_label): Change arguments.  Rewrite.
750         (collect_symbols): New function.
751         (minsym_found): Change arguments.  Rewrite.
752         (check_minsym, search_minsyms_for_name)
753         (add_matching_symbols_to_info): New function.
754         (decode_variable): Change arguments.  Iterate over all symbols.
755         (symbol_found): Remove.
756         (symbol_to_sal): New function.
757         (init_linespec_result, destroy_linespec_result)
758         (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
759         New functions.
760         (decode_digits_list_mode, decode_digits_ordinary): New functions.
761         * dwarf2read.c (dw2_map_expand_apply): New function.
762         (dw2_map_symtabs_matching_filename): Rename from
763         dw2_lookup_symtab.  Change arguments.
764         (dwarf2_gdb_index_functions): Update.
765         * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
766         * defs.h (compare_strings): Declare.
767         * cli/cli-cmds.c (compare_strings): Move to utils.c.
768         (edit_command, list_command): Use DECODE_LINE_LIST_MODE.  Call
769         filter_sals.
770         (compare_symtabs, filter_sals): New functions.
771         * breakpoint.h (struct bp_location) <line_number, source_file>:
772         New fields.
773         (struct breakpoint) <line_number, source_file>: Remove.
774         <filter>: New field.
775         * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
776         (momentary_breakpoint_from_master, add_location_to_breakpoint):
777         Update for changes to locations.
778         (init_breakpoint_sal): Add 'filter' argument.  Set 'filter' on
779         breakpoint.
780         (create_breakpoint_sal): Add 'filter' argument.
781         (remove_sal, expand_line_sal_maybe): Remove.
782         (create_breakpoints_sal): Remove 'sals' argument.  Handle
783         pre-expanded sals and the filter.
784         (parse_breakpoint_sals): Use decode_line_full.
785         (check_fast_tracepoint_sals): Use get_sal_arch.
786         (create_breakpoint): Create a linespec_sals.  Update.
787         (break_range_command): Use decode_line_full.  Update.
788         (until_break_command): Update.
789         (clear_command): Update match conditions for linespec.c changes.
790         Use DECODE_LINE_LIST_MODE.
791         (say_where): Update for changes to locations.
792         (bp_location_dtor): Free 'source_file'.
793         (base_breakpoint_dtor): Free 'filter'.  Don't free 'source_file'.
794         (update_static_tracepoint): Update for changes to locations.
795         (update_breakpoint_locations): Disable ranged breakpoint if too
796         many locations match.  Update.
797         (addr_string_to_sals): Use decode_line_full.  Resolve all sal
798         PCs.
799         (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
800         (decode_line_spec_1): Update.  Change argument name to 'flags',
801         change interpretation.
802         * block.h (block_containing_function): Declare.
803         * block.c (block_containing_function): New function.
804         * skip.c (skip_function_command): Update.
805         (skip_re_set): Update.
806         * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
807         * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
808         * NEWS: Add entry.
809
810 2011-12-06  Tom Tromey  <tromey@redhat.com>
811
812         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
813         breakpoint's pspace to be NULL.
814         * breakpoint.h (struct breakpoint) <pspace>: Update comment.
815         * breakpoint.c (init_raw_breakpoint): Conditionally set
816         breakpoint's pspace.
817         (init_breakpoint_sal): Don't set breakpoint's pspace.
818         (prepare_re_set_context): Conditionally switch program space.
819         (addr_string_to_sals): Check executing_startup on location's
820         program space.
821
822 2011-12-06  Tom Tromey  <tromey@redhat.com>
823
824         * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
825         * breakpoint.c (should_be_inserted): Explicitly check if program
826         space is executing startup.
827         (describe_other_breakpoints): Update.
828         (disable_breakpoints_before_startup): Change executing_startup
829         earlier.  Remove loop.
830         (enable_breakpoints_after_startup): Likewise.
831         (init_breakpoint_sal): Don't use bp_startup_disabled.
832         (create_breakpoint): Don't use bp_startup_disabled.
833         (update_global_location_list): Use should_be_inserted.
834         (bkpt_re_set): Update.
835
836 2011-12-06  Tom Tromey  <tromey@redhat.com>
837
838         * python/lib/gdb/command/pretty_printers.py
839         (InfoPrettyPrinter.invoke1): Remove extra double quote.
840
841 2011-12-06  Tom Tromey  <tromey@redhat.com>
842
843         * NEWS: Add MI news.
844
845 2011-12-06  Ulrich Weigand  <uweigand@de.ibm.com>
846
847         * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
848         (S390_LAST_BREAK_REGNUM): Likewise.
849         (S390_SYSTEM_CALL_REGNUM): Likewise.
850         (S390_NUM_REGS): Update.
851
852         (s390_regmap_last_break): Add declaration.
853         (s390x_regmap_last_break): Likewise.
854         (s390_regmap_system_call): Likewise.
855
856         (tdesc_s390_linux32v1): Add declaration.
857         (tdesc_s390_linux32v2): Likewise.
858         (tdesc_s390_linux64v1): Likewise.
859         (tdesc_s390_linux64v2): Likewise.
860         (tdesc_s390x_linux64v1): Likewise.
861         (tdesc_s390x_linux64v2): Likewise.
862
863         * s390-tdep.c: Include new target description files
864         "features/s390-linux32v1.c", "features/s390-linux32v2.c",
865         "features/s390-linux64v1.c", "features/s390-linux64v2.c",
866         "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
867         (s390_cannot_store_register): New function.
868         (s390_write_pc): Likewise.
869         (s390_dwarf_regmap): Add fields for new registers.
870         (s390_regmap_gregset): Likewise.
871         (s390x_regmap_gregset): Likewise.
872         (s390_regmap_fpregset): Likewise.
873         (s390_regmap_upper): Likewise.
874         (s390_regmap_last_break): New variable.
875         (s390x_regmap_last_break): Likewise.
876         (s390_regmap_system_call): Likewise.
877         (s390_last_break_regset): Likewise.
878         (s390x_last_break_regset): Likewise.
879         (s390_system_call_regset): Likewise.
880         (s390_upper_regset_sections): Rename to ...
881         (s390_linux64_regset_sections): ... this.
882         (s390_linux32_regset_sections): New variable.
883         (s390x_linux64_regset_sections): Likewise.
884         (s390_linux32v1_regset_sections): Likewise.
885         (s390_linux32v2_regset_sections): Likewise.
886         (s390_linux64v1_regset_sections): Likewise.
887         (s390_linux64v2_regset_sections): Likewise.
888         (s390x_linux64v1_regset_sections): Likewise.
889         (s390x_linux64v2_regset_sections): Likewise.
890         (s390_regset_from_core_section): Handle .reg-s390-last-break and
891         .reg-s390-system-call core file sections.
892         (s390_core_read_description): Check for presence of
893         .reg-s390-last-break and .reg-s390-system-call core file
894         sections and return appropriate target description.
895         (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
896         "last_break" and "system_call" in target description.  Install
897         appropriate gdbarch_core_regset_sections array.
898         Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
899         (_initialize_s390_tdep): Initialize additional target descriptions.
900
901         * s390-nat.c: Include "elf/common.h".
902         (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
903         (have_regset_last_break): New static variable.
904         (have_regset_system_call): Likewise.
905         (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
906         (s390_native_collect): Likewise.
907         (fetch_regset, store_regset, check_regset): New functions.
908         (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
909         and S390_SYSTEM_CALL_REGNUM.
910         (s390_linux_store_inferior_registers): Likewise.
911         (s390_read_description): Check for presence of NT_S390_LAST_BREAK
912         and NT_S390_SYSTEM_CALL regsets and use appropriate description.
913
914         * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
915         s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
916         (s390-linux32v1-expedite): Define.
917         (s390-linux32v2-expedite): Likewise.
918         (s390-linux64v1-expedite): Likewise.
919         (s390-linux64v2-expedite): Likewise.
920         (s390x-linux64v1-expedite): Likewise.
921         (s390x-linux64v2-expedite): Likewise.
922
923         * features/s390-linux32.xml: Add orig_r2 register.
924         * features/s390-linux64.xml: Likewise.
925         * features/s390x-linux64.xml: Likewise.
926         * features/s390-linux32v1.xml: New file.
927         * features/s390-linux32v2.xml: Likewise.
928         * features/s390-linux64v1.xml: Likewise.
929         * features/s390-linux64v2.xml: Likewise.
930         * features/s390x-linux64v1.xml: Likewise.
931         * features/s390x-linux64v2.xml: Likewise.
932
933         * features/s390-linux32.c: Regenerate.
934         * features/s390-linux64.c: Likewise.
935         * features/s390x-linux64.c: Likewise.
936         * features/s390-linux32v1.c: New generated file.
937         * features/s390-linux32v2.c: Likewise.
938         * features/s390-linux64v1.c: Likewise.
939         * features/s390-linux64v2.c: Likewise.
940         * features/s390x-linux64v1.c: Likewise.
941         * features/s390x-linux64v2.c: Likewise.
942
943         * regformats/s390-linux32.dat: Regenerate.
944         * regformats/s390-linux64.dat: Regenerate.
945         * regformats/s390x-linux64.dat: Regenerate.
946         * regformats/s390-linux32v1.dat: New generated file.
947         * regformats/s390-linux32v2.dat: Likewise.
948         * regformats/s390-linux64v1.dat: Likewise.
949         * regformats/s390-linux64v2.dat: Likewise.
950         * regformats/s390x-linux64v1.dat: Likewise.
951         * regformats/s390x-linux64v2.dat: Likewise.
952
953 2011-12-05  Pedro Alves  <pedro@codesourcery.com>
954
955         * linux-nat.c (resume_stopped_resumed_lwps): Call
956         registers_changed.
957
958 2011-12-05  Pedro Alves  <pedro@codesourcery.com>
959
960         * breakpoint.c: Include record.h.
961         (breakpoints_always_inserted_mode): Return false when the record
962         target is in use.
963
964 2011-12-05  Pedro Alves  <pedro@codesourcery.com>
965
966         * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
967         Reinstate perror_with_name call on ptrace error.  Remove #if 0.
968         * i386-linux-nat.c (i386_linux_dr_get): Likewise.
969         * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
970
971 2011-12-05  Andrey Smirnov  <andrew.smirnov@gmail.com>
972
973         * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
974         `i'(-Wshadow).
975
976 2011-12-05  Andrey Smirnov  <andrew.smirnov@gmail.com>
977
978         * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
979
980 2011-12-05  Andrey Smirnov  <andrew.smirnov@gmail.com>
981
982         * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
983         of `tdep'(-Wshadow).
984
985 2011-12-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
986
987         Fix compilation --without-expat.
988         * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
989         from ...
990         [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
991
992 2011-12-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
993             Jan Kratochvil  <jan.kratochvil@redhat.com>
994
995         * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
996         * features/library-list-svr4.dtd: New file.
997         * remote.c (PACKET_qXfer_libraries_svr4): New.
998         (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
999         (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
1000         * solib-svr4.c (struct svr4_library_list): New.
1001         [HAVE_LIBEXPAT]: Include xml-support.h.
1002         [HAVE_LIBEXPAT] (svr4_library_list_start_library)
1003         [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
1004         [HAVE_LIBEXPAT] (svr4_library_list_children)
1005         [HAVE_LIBEXPAT] (svr4_library_list_attributes)
1006         [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
1007         [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
1008         [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
1009         (svr4_read_so_list): Extend the corruption message by addresses.
1010         (svr4_current_sos): New variable library_list, call
1011         svr4_current_sos_via_xfer_libraries.
1012         * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
1013
1014 2011-12-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1015
1016         PR threads/13448
1017         * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
1018         For DW_OP_GNU_push_tls_address increment the value, new comment for it.
1019
1020 2011-12-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1021
1022         PR breakpoints/13346
1023         * dwarf2read.c (process_psymtab_comp_unit): Set
1024         PSYMTABS_ADDRMAP_SUPPORTED.
1025         * psympriv.h (struct partial_symtab): Comment textlow and texthigh
1026         validity.  New field psymtabs_addrmap_supported.
1027         * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
1028         psymtabs_addrmap_supported.
1029         (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
1030         !PSYMTABS_ADDRMAP_SUPPORTED.
1031         (dump_psymtab, maintenance_info_psymtabs): Print also
1032         psymtabs_addrmap_supported.
1033
1034 2011-12-01  Doug Evans  <dje@google.com>
1035
1036         * python/py-type.c (type_object_methods): Fix "array" doc string.
1037
1038 2011-12-01  Andrew Burgess  <aburgess@broadcom.com>
1039
1040         * source.c (print_source_lines_base): Fix missing braces on else
1041         clause leading to additional output.
1042
1043 2011-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
1044
1045         * s390-nat.c (SUBOFF): Remove.
1046         (s390_native_supply, s390_native_collect): New functions.
1047         (supply_gregset, supply_fpregset): Use s390_native_supply.
1048         (fill_gregset, fill_fpregset): Use s390_native_collect.
1049
1050         * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
1051         (s390_unwind_pseudo_register): New function.
1052         (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
1053         registers instead of PC and CC.
1054         (s390_backchain_frame_unwind_cache): Likewise.
1055         (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
1056         full GPR pseudos.
1057         (s390_trad_frame_prev_register): New function.
1058         (s390_frame_prev_register): Use it.
1059         (s390_sigtramp_frame_prev_register): Likewise.
1060         (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
1061         (s390_dwarf2_frame_init_reg): Unwind PSW address and mask.  Use
1062         special callback to unwind any pseudo.
1063
1064         * features/s390-core32.xml: Add pswm/pswa to save/restore group.
1065         * features/s390-core64.xml: Likewise.
1066         * features/s390x-core64.xml: Likewise.
1067         * features/s390-linux32.c: Regenerate.
1068         * features/s390-linux64.c: Likewise.
1069         * features/s390x-linux64.c: Likewise.
1070
1071 2011-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
1072
1073         * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
1074
1075 2011-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
1076
1077         * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
1078         instruction.  Add more diagnostic output.
1079
1080 2011-11-29  Andrey Smirnov  <andrew.smirnov@gmail.com>
1081
1082         * MAINTAINERS (Write After Approval): Add myself to the list.
1083
1084 2011-11-29  Sanjoy Das  <sdas@igalia.com>
1085
1086         * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
1087         (jit_bfd_try_read_symtab): Fix comments.
1088
1089 2011-11-28  DJ Delorie  <dj@redhat.com>
1090
1091         * NEWS: Mention RL78 simulator.
1092
1093 2011-11-28  Joel Brobecker  <brobecker@adacore.com>
1094
1095         * symfile.h (struct quick_symbol_functions): Fix the documentation
1096         of field map_matching_symbols, as symbols are sorted using
1097         strcmp_iw_ordered, not strcmp_iw.
1098
1099 2011-11-28  Paul Hilfinger  <hilfinger@adacore.com>
1100
1101         * symfile.h (struct quick_symbol_functions): Update the
1102         documentation for field map_matching_symbols.
1103
1104 2011-11-28  Joel Brobecker  <brobecker@adacore.com>
1105
1106         * ada-lang.c (compare_names): Fix wrong return value in case
1107         string1 starts with the same contents as string2, followed
1108         by an underscore that do not start a symbol name suffix.
1109
1110 2011-11-28  Phil Muldoon  <pmuldoon@redhat.com>
1111
1112         PR python/13369
1113         PR python/13374
1114
1115         * python/python.c (gdbpy_decode_line): Do not acquire GIL.
1116         * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1117         * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
1118         exceptions.
1119         * python/py-type.c (typy_strip_typedefs): Ditto.
1120         (typy_legacy_template_argument): Ditto.
1121         * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1122         * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
1123
1124 2011-11-27  Joel Brobecker  <brobecker@acacore.com>
1125
1126         * remote.c (remote_get_tracepoint_status): Delete addrbuf
1127         local variable.  Avoid use of sprintf_vma.
1128
1129 2011-11-27  Sanjoy Das  <sdas@igalia.com>
1130
1131         Fix regression in jit.exp.
1132         * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1133         (jit_register_code): Set the jit_objfile_data field to the correct
1134         value.
1135
1136 2011-11-25 Â Uros Bizjak Â <ubizjak@gmail.com>
1137
1138         * alpha-tdep.c (br_opcode): New.
1139         (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1140         (alpha_deal_with_atomic_sequence): New function.
1141         (alpha_gdbarch_init): Handle single stepping of atomic sequences
1142         with alpha_deal_with_atomic_sequence.
1143
1144 2011-11-24  Tristan Gingold  <gingold@adacore.com>
1145
1146         * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1147         fields.  Add oso_sym, end_sym and nbr_syms.
1148         (macho_register_oso): Change interface.
1149         (macho_symtab_add_minsym): New function.
1150         (macho_symtab_read): Rewritten.
1151         (get_archive_prefix_len): Remove trailing blanks.
1152         (oso_el_compare_name): Add comment.
1153         (struct macho_sym_hash_entry): New structure.
1154         (macho_relocate_common_syms): Remove.
1155         (macho_sym_hash_newfunc): New function.
1156         (macho_resolve_oso_sym_with_minsym): Likewise.
1157         (macho_add_oso_symfile): Rewritten.
1158         (macho_symfile_read_all_oso): Remove trailing blanks.
1159         Adjust code to free oso vector.
1160         (macho_symfile_read): Likewise.
1161         Move code to initialize minimal symbol
1162
1163 2011-11-24  Maciej W. Rozycki  <macro@codesourcery.com>
1164
1165         * mips-tdep.c (extended_offset): Fix formatting.
1166
1167 2011-11-23  Doug Evans  <dje@google.com>
1168
1169         * dwarf2read.c (dw2_lookup_symtab): Add comment.
1170         (dw2_expand_symtabs_with_filename): Ditto.
1171         (dw2_expand_symtabs_matching): Ditto.
1172         (dw2_map_symbol_filenames): Ditto.
1173
1174 2011-11-23  Andrey Smirnov  <andrew.smirnov@gmail.com>
1175
1176         * ada-lang.c (assign_aggregate): Minor reformatting.
1177
1178 2011-11-23  Andrey Smirnov  <andrew.smirnov@gmail.com>
1179
1180         * ada-lang.c (assign_aggregate): Remove declaration of local
1181         variable `i' which is shadowing another variable with the same
1182         name declared in the outer scope.
1183
1184 2011-11-23  Joel Brobecker  <brobecker@adacore.com>
1185
1186         * ada-lang.c (get_base_type): Renames base_type.  Adjust all
1187         calls throughout this file.
1188
1189 2011-11-23  Joel Brobecker  <brobecker@adacore.com>
1190
1191         * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1192         FormatMessage.
1193
1194 2011-11-22  Tom Tromey  <tromey@redhat.com>
1195
1196         PR mi/8444:
1197         * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1198         (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1199         (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1200         * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1201         * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1202         (print_it_catch_syscall, print_it_catch_exec)
1203         (internal_bkpt_print_it): Use ui_out.  Emit stop reason.
1204         (bpstat_print): Add 'kind' argument.  Handle
1205         TARGET_WAITKIND_LOADED.
1206         * infrun.c (normal_stop): Update for bpstat_print change.  Don't
1207         handle TARGET_WAITKIND_LOADED here.
1208         * breakpoint.h (bpstat_print): Update.
1209
1210 2011-11-22  Tom Tromey  <tromey@redhat.com>
1211
1212         * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1213
1214 2011-11-22  Tom Tromey  <tromey@redhat.com>
1215
1216         * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1217         Use static_assert to check the size of
1218         async_reason_string_lookup.
1219         * common/gdb_assert.h (static_assert): New macro.
1220
1221 2011-11-22  Alan Modra  <amodra@gmail.com>
1222
1223         * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1224         destination calculation.  Don't expect >> to sign extend.  Don't
1225         add a break if branch lands inside the sequence anywhere.
1226
1227 2011-11-21  Keith Seitz  <keiths@redhat.com>
1228
1229         * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1230         -var-evaluate-expression of an enumeration and fix expected result.
1231         * gdb.mi/mi2-varvdisplay.exp: Likewise.
1232
1233 2011-11-21  Kwok Cheung Yeung  <kcy@codesourcery.com>
1234
1235         * osdata.c (info_osdata_command): Rename nprocs to nrows.  Handle
1236         the case where osdata->items is empty.  Rename column names to a
1237         canonical form to avoid problems with unusual column names.
1238
1239 2011-11-21  Yao Qi  <yao@codesourcery.com>
1240
1241         * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1242
1243 2011-11-20  Stan Shebs  <stan@codesourcery.com>
1244
1245         * NEWS: Mention tracepoint additions.
1246         * breakpoint.h (struct tracepoint): New field traceframe_usage.
1247         * breakpoint.c (print_one_breakpoint_location): Identify
1248         tracepoints as such when reporting hit counts, report
1249         trace buffer usage.
1250         (create_tracepoint_from_upload): Copy status info.
1251         * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1252         add fields user_name, notes, start_time, stop_time.
1253         (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1254         * tracepoint.c (trace_user): New global.
1255         (trace_notes): New global.
1256         (trace_stop_notes): New global.
1257         (start_tracing): Add argument and trace note handling.
1258         (stop_tracing): Ditto.
1259         (trace_start_command): Add notes argument.
1260         (trace_stop_command): Ditto.
1261         (trace_status_command): Report additional status info.
1262         (trace_status_mi): Similarly.
1263         (trace_save): Update, record tracepoint status.
1264         (set_disconnected_tracing): Call target method directly.
1265         (send_disconnected_tracing_value): Remove.
1266         (set_trace_user): New function.
1267         (set_trace_notes): New function.
1268         (set_trace_stop_notes): New function.
1269         (parse_trace_status): Handle additional status.
1270         (parse_tracepoint_status): New function.
1271         (parse_tracepoint_definition): Call it.
1272         (tfile_get_tracepoint_status): New function.
1273         (init_tfile_ops): Use it.
1274         (_initialize_tracepoint): Add new setshows.
1275         * target.h (struct target_ops): New methods to_get_tracepoint_status
1276         and to_set_trace_notes.
1277         (target_get_tracepoint_status): New macro.
1278         (target_set_trace_notes): New macro.
1279         * target.c (update_current_target): Add new methods.
1280         * remote.c (remote_get_tracepoint_status): New function.
1281         (remote_set_trace_notes): New function.
1282         (init_remote_ops): Add them.
1283         * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1284         (mi_cmd_trace_stop): Ditto.
1285
1286 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1287
1288         * jit.c: Include regcache.h.
1289         (jit_gdbarch_data, jit_frame_unwind): New static variables.
1290         (jit_unwind_reg_set_impl, free_reg_value_impl)
1291         (jit_unwind_reg_get_impl, jit_frame_sniffer)
1292         (jit_frame_unwind_stop_reason, jit_frame_this_id)
1293         (jit_frame_prev_register, jit_dealloc_cache)
1294         (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1295         (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1296         jit_prepend_unwinder.
1297         (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1298
1299 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1300
1301         * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1302         (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1303         (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1304         (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1305         (finalize_symtab, jit_object_close_impl)
1306         (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1307         (free_objfile_data): New functions.
1308         (_initialize_jit): Register jit_objfile_data with a proper cleanup
1309         function.
1310
1311 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1312
1313         * jit.c: Include gdb-dlfcn.h.
1314         (loaded_jit_reader, reader_init_fn_sym): New static variables.
1315         (jit_reader_load, jit_reader_load_command)
1316         (jit_reader_unload_command): New functions.
1317         (_initialize_jit): Add commands "jit-reader-load" and
1318         "jit-reader-unload".
1319
1320 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1321
1322         * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1323         * config.in: Add new #define HAVE_LIBDL.
1324         * configure.ac: Add check for -ldl.
1325         * configure: Re-generated by autoconf.
1326         * gdb-dlfcn.c: New file.
1327         * gdb-dlfcn.h: New file.
1328
1329 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1330
1331         * config.in: Add new #defines: JIT_READER_DIR and
1332         JIT_READER_DIR_RELOCATABLE.
1333         * configure.ac: New GDB directory entry for jit-reader-dir.
1334         * configure: Re-generated by autoconf.
1335         * jit.c: New static variable: const char *jit_reader_dir.
1336         (_initialize_jit): Relocate jit_reader_dir.
1337
1338 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1339
1340         * Makefile.in: Add jit-reader.h as a header.  Have it installed in
1341         $(includedir)/gdb.
1342         * configure.ac: Generate a correct value for TARGET_PTR for
1343         jit-reader.h.  Tell configure to generate jit-reader.h from
1344         jit-reader.in.
1345         * configure: Re-generated by autoconf.
1346         * jit-reader.in: New file.
1347         * jit.c: Include jit-reader.h.
1348
1349 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1350
1351         * MAINTAINERS (Write After Approval): Add myself to the list.
1352
1353 2011-11-18  Ulrich Weigand  <uweigand@de.ibm.com>
1354
1355         * findvar.c (read_frame_register_value): Respect value_offset
1356         of the register value.  Remove big-endian special case.
1357
1358 2011-11-18  Tom Tromey  <tromey@redhat.com>
1359
1360         PR build/7196:
1361         * remote.c (putpkt_for_catch_errors): New function.
1362         (remote_kill): Use it.
1363
1364 2011-11-18  Yao Qi  <yao@codesourcery.com>
1365
1366         * breakpoint.c (create_breakpoint): Produce query message according to
1367         breakpoint's type.
1368         Allocate tracepoint per correct type.
1369         Don't check SALs for pending fast tracepoints.
1370         * tracepoint.c (process_tracepoint_on_disconnect): New.
1371         (disconnect_tracing): Call process_tracepoint_on_disconnect.
1372
1373 2011-11-18  Yao Qi  <yao@codesourcery.com>
1374
1375         * breakpoint.c (install_breakpoint):  Add one more parameter so that
1376         update_global_location_list is called conditionally.
1377         (create_fork_vfork_event_catchpoint): Update.
1378         (create_syscall_event_catchpoint): Update.
1379         (create_breakpoint_sal): Update.
1380         (create_breakpoint_sal): Update. Call do_cleanups before
1381         install_breakpoint.
1382         * ada-lang.c (create_ada_exception_catchpoint): Update.
1383         * breakpoint.h (install_breakpoint): Update declaration.
1384
1385 2011-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
1386
1387         * spu-tdep.c (spu_return_value): Fix handling of
1388         TYPE_CALLING_CONVENTION annotation.
1389
1390 2011-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
1391
1392         * skip.c (skip_function_command): Work around uninitialized
1393         variable warning.
1394
1395 2011-11-16  David S. Miller  <davem@davemloft.net>
1396
1397         * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1398         'tv_usec' to long for printf since these fields have a type which
1399         varies.
1400
1401 2011-11-15  Doug Evans  <dje@google.com>
1402
1403         * buildsym.c (add_symbol_to_list): Delete outdated comment.
1404
1405 2011-11-15  Paul Koning  <paul_koning@dell.com>
1406
1407         * python/py-type.c (typy_get_composite): New function.
1408         (typy_nonzero): New function.
1409         (typy_values): Rename from typy_fields.
1410         (typy_fields): New function.
1411         (typy_length): Raise exception if not struct, union, or enum type.
1412         (typy_getitem): Ditto.
1413         (typy_has_key): Ditto.
1414         (typy_make_iter): Ditto.
1415
1416 2011-11-15  Doug Evans  <dje@google.com>
1417
1418         PR gdb/8367
1419         * NEWS: Mention new parameter basenames-may-differ.
1420         * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1421         ! basenames_may_differ.
1422         * psymtab.c (lookup_partial_symtab): Ditto.
1423         * symtab.c (lookup_symtab): Ditto.
1424         (basenames_may_differ): New global.
1425         (_initialize_symtab): New parameter basenames-may-differ.
1426         * symtab.h (basenames_may_differ): Declare.
1427
1428 2011-11-15  Pedro Alves  <pedro@codesourcery.com>
1429             Luis Machado  <lgustavo@codesourcery.com>
1430
1431         * auxv.c: Include observer.h.
1432         (auxv_inferior_data_cleanup): New.
1433         (invalidate_auxv_cache_inf): New.
1434         (invalidate_auxv_cache): New.
1435         (get_auxv_inferior_data): New.
1436         (auxv_inferior_data): New static global.
1437         (auxv_info): New structure.
1438         (target_auxv_search): Use get_auxv_inferior_data instead of
1439         target_read_alloc and don't free cached buffers.
1440         (fprint_target_auxv): Likewise
1441         (_initialize_auxv): Register per-inferior auxv cache and register
1442         observers to invalidate auxv cache when needed.
1443
1444 2011-11-14  Doug Evans  <dje@google.com>
1445
1446         PR gdb/7200 Make "!" an alias for "shell".
1447         * NEWS: Add mention.
1448         * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1449         adding "!" command, always add it.
1450         * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1451         command of length one.
1452
1453 2011-11-14  Stan Shebs  <stan@codesourcery.com>
1454             Kwok Cheung Yeung  <kcy@codesourcery.com>
1455
1456         * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1457         * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1458         the minimum instruction size for fast tracepoints.
1459         * target.h (struct target_ops): Add new method
1460         to_get_min_fast_tracepoint_insn_len.
1461         (target_get_min_fast_tracepoint_insn_len): New.
1462         * target.c (update_current_target): Set up new target operation.
1463         * remote.c (remote_write_bytes_aux): Fix typo.
1464         (remote_get_min_fast_tracepoint_insn_len): New.
1465         (init_remote_ops): Initialize new field.
1466
1467 2011-11-14  Tom Tromey  <tromey@redhat.com>
1468
1469         * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1470         (encode_actions): Likewise.
1471
1472 2011-11-14  Yao Qi  <yao@codesourcery.com>
1473
1474         * remote.c (struct remote_state): <install_in_trace> new field.
1475         (PACKET_InstallInTrace): New enum value.
1476         (remote_install_in_trace_feature): Support InstallInTrace.
1477         (remote_supports_install_in_trace): Likewise.
1478         (remote_protocol_features): Likewise.
1479         (_initialize_remote): Likewise.
1480         (remote_can_download_tracepoint): New.
1481         * target.h (struct target): New field
1482         `to_can_download_tracepoint'.
1483         (target_can_download_tracepoint): New macro.
1484         * target.c (update_current_target): Update.
1485         * breakpoint.h (struct bp_location): Add comment on field
1486         `duplicate'.
1487         * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1488         and tracepoint.
1489         (remove_breakpoints): Don't remove tracepoints.
1490         (tracepoint_locations_match ): New.
1491         (breakpoint_locations_match): Call it.
1492         (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1493         (download_tracepoint_locations): New.
1494         (update_global_location_list): Call it.
1495         * tracepoint.c (find_matching_tracepoint): Delete.
1496         (find_matching_tracepoint_location): Renamed from
1497         find_matching_tracepoint.  Return bp_location rather than
1498         tracepoint.
1499         (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1500         tracepoint is found.
1501
1502 2011-11-14  Yao Qi  <yao@codesourcery.com>
1503
1504         * target.h (struct target): <to_download_tracepoint> Change type
1505         of parameter from tracepoint to bp_location.
1506         * target.c (update_current_target): Update.
1507         * tracepoint.c (start_tracing): Update.
1508         * remote.c (remote_download_tracepoint): Remove loop for each location
1509         of a tracepoint.
1510
1511 2011-11-14  Maciej W. Rozycki  <macro@codesourcery.com>
1512
1513         * i386-nat.c (i386_insert_hw_breakpoint): Call
1514         i386_update_inferior_debug_regs.
1515         (i386_remove_hw_breakpoint): Likewise.
1516
1517 2011-11-14  Yao Qi  <yao@codesourcery.com>
1518
1519         * breakpoint.c (init_raw_breakpoint): Call
1520         add_location_to_breakpoint to replace duplicated code.
1521         (add_location_to_breakpoint): Adjust the breakpoint's
1522         address prior to allocating a location.
1523
1524 2011-11-12  Matt Rice  <ratmice@gmail.com>
1525
1526         * macrocmd.c (macro_no_macro_info): New function.
1527         (macro_expand_command): Use macro_no_macro_info.
1528         (macro_expand_once_command): Ditto.
1529         (info_macro_command): Add argument processing,
1530         move info_definitions_command here.
1531         (_initialize_macrocmd): Remove info definitions command.
1532         Add arguments to info macro help text.
1533         * NEWS: Replace info definitions command with new info macro options.
1534
1535 2011-11-11  Keith Seitz  <keiths@redhat.com>
1536
1537         PR gdb/12843
1538         * linespec.c (locate_first_half): Keep ':' if it looks
1539         like it could be part of a Windows path starting with
1540         a drive letter.
1541
1542 2011-11-10  Pedro Alves  <pedro@codesourcery.com>
1543
1544         * linux-nat.c (linux_nat_wait): Don't force waking up the event
1545         loop when returning a TARGET_WAITKIND_NO_RESUMED.
1546
1547 2011-11-10  Pedro Alves  <pedro@codesourcery.com>
1548
1549         * target.c (target_waitstatus_to_string): Handle
1550         TARGET_WAITKIND_NO_RESUMED.
1551
1552 2011-11-10  Doug Evans  <dje@google.com>
1553
1554         * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1555         `need_fullname'.
1556         * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1557         (map_partial_symbol_filenames): Ditto.  All callers updated.
1558         * psymtab.h (map_partial_symbol_filenames): Update prototype.
1559         * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1560         parameter need_fullname.
1561
1562         * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1563         * source.c (symtab_to_fullname): Ditto.
1564
1565         * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1566         * gdb-demangle.h: ... here.  New file.
1567         * demangle.c: #include "gdb-demangle.h".
1568         (_initialize_demangler): Use initialize_file_ftype for prototype.
1569         Move "set demangle" and "set asm-demangle" parameters here from utils.c
1570         (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1571         from utils.c
1572         * utils.c: Update. #include "gdb-demangle.h".
1573         * symtab.h (asm_demangle): Delete.
1574         (demangle): Move declaration next to use.
1575         * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1576         * dwarf2read.c: #include "gdb-demangle.h".
1577         * gnu-v2-abi.c: Ditto.
1578         * jv-typeprint.c: Ditto.
1579         * mdebugread.c: Ditto.
1580         * p-typeprint.c: Ditto.
1581         * stabsread.c: Ditto.
1582         * printcmd.c: Ditto.
1583         (asm_demangle): Delete declaration.
1584         * tui/tui-stack.c: #include "gdb-demangle.h".
1585
1586         * python/py-type.c (typy_fields_items): Call check_typedef.
1587
1588 2011-11-10  Joel Brobecker  <brobecker@adacore.com>
1589
1590         * findvar.c (read_frame_register_value): Read the correct bytes
1591         from registers on big-endian architectures.
1592
1593 2011-11-10  Tom Tromey  <tromey@redhat.com>
1594
1595         * procfs.c (load_syscalls): Make a cleanup.
1596         (open_procinfo_files): fd==0 is ok.
1597
1598 2011-11-10  Joel Brobecker  <brobecker@adacore.com>
1599
1600         * procfs.c (iterate_over_mappings): Call do_cleanups before
1601         returning.
1602
1603 2011-11-09  Doug Evans  <dje@google.com>
1604
1605         * gdbtypes.c (check_typedef): Document that this function can
1606         throw an exception.
1607
1608 2011-11-09  Tom Tromey  <tromey@redhat.com>
1609
1610         PR c++/13342:
1611         * valops.c (value_full_object): Return early if real type is
1612         smaller than the enclosing type.
1613
1614 2011-11-08  Yao Qi  <yao@codesourcery.com>
1615
1616         * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1617
1618 2011-11-08  Meador Inge  <meadori@codesourcery.com>
1619
1620         * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1621         register when the frame can't be determined.
1622         * arm-tdep.c (arm_analyze_prologue): Ditto.
1623
1624 2011-11-07  Stan Shebs  <stan@codesourcery.com>
1625
1626         * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1627
1628 2011-11-07  Joel Brobecker  <brobecker@adacore.com>
1629
1630         * infrun.c (handle_inferior_event): Minor reformatting.
1631
1632 2011-11-05  Doug Evans  <dje@google.com>
1633
1634         * source.c (forget_cached_source_info_for_objfile): Move call to
1635         objfile->sf->qf->forget_cached_source_info outside of
1636         ALL_OBJFILE_SYMTABS loop.
1637         (forget_cached_source_info): Delete unused variable `s'.
1638
1639 2011-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
1640
1641         * i386-nat.c (dr_ref_count): Remove unused variable.
1642
1643 2011-11-05  Doug Evans  <dje@google.com>
1644
1645         * main.c (captured_main): Set lim_at_start before calling
1646         make_command_stats_cleanup.
1647
1648 2011-11-04  Doug Evans  <dje@google.com>
1649
1650         * utils.c: #include "timeval-utils.h".
1651         (cmd_stats): Rename start_time to start_cpu_time.
1652         New member start_wall_time.
1653         (report_command_stats): Report wall time.
1654         (make_command_stats_cleanup): Record start wall time.
1655
1656 2011-11-04  Tom Tromey  <tromey@redhat.com>
1657
1658         * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1659
1660 2011-11-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1661
1662         * coff-pe-read.c: Include defs.h before bfd.h.
1663
1664 2011-11-04  Phil Muldoon  <pmuldoon@redhat.com>
1665
1666         PR Python/13345
1667
1668         * python/python.c (python_run_simple_file): Expand tilde in path.
1669
1670 2011-11-04  Phil Muldoon  <pmuldoon@redhat.com>
1671
1672         PR Python/13363
1673
1674         * python/py-type.c (typy_lookup_type): Do not return a type in
1675           an exception handler.
1676
1677 2011-11-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1678             Eli Zaretskii  <eliz@gnu.org>
1679
1680         * linux-nat.c (_initialize_linux_nat): Improve help
1681         for `info proc stat', `info proc status', `info proc cwd',
1682         `info proc cmdline' and `info proc exe'.
1683
1684 2011-11-02  Stan Shebs  <stan@codesourcery.com>
1685
1686         String collection for tracepoints.
1687         * NEWS: Mention string collection.
1688         * common/ax.def (tracenz): New bytecode.
1689         * ax-gdb.h (trace_string_kludge): Declare.
1690         * ax-gdb.c: Include valprint.h and c-lang.h.
1691         (trace_string_kludge): New global.
1692         (gen_traced_pop): Add string case.
1693         (agent_command): Add string case.
1694         * tracepoint.h (decode_agent_options): Declare.
1695         * tracepoint.c: Include cli-utils.h.
1696         (decode_agent_options): New function.
1697         (validate_actionline): Call it.
1698         (encode_actions_1): Ditto.
1699         * target.h (struct target_ops): New method to_supports_string_tracing.
1700         (target_supports_string_tracing): New macro.
1701         * target.c (update_current_target): Add to_supports_string_tracing.
1702         * remote.c (struct remote_state): New field string_tracing.
1703         (remote_string_tracing_feature): New function.
1704         (remote_protocol_features): New feature tracenz.
1705         (remote_supports_string_tracing): New function.
1706         (init_remote_ops): Set to_supports_string_tracing.
1707
1708 2011-11-02  Pedro Alves  <pedro@codesourcery.com>
1709             Jan Kratochvil  <jan.kratochvil@redhat.com>
1710
1711         * linux-nat.c: Include cli/cli-utils.h.
1712         (enum info_proc_what): New.
1713         (linux_nat_info_proc_cmd): Rename to ...
1714         (linux_nat_info_proc_cmd_1): ... here.  Remove variables argv and all.
1715         New parameter what.  Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1716         status_f and stat_f from WHAT.  Throw error on extra parameters.
1717         (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1718         (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1719         (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1720         (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1721         (_initialize_linux_nat): New variable info_proc_cmdlist.  Install `info
1722         proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1723         `info proc cmdline', `info proc exe' and `info proc all' as real
1724         subcommands of `info proc'.
1725
1726 2011-11-01  Justin Lebar  <justin.lebar@gmail.com>
1727
1728         * Makefile.in: (SFILES): Add skip.c.
1729         (HFILES_NO_SRCDIR): Add skip.h.
1730         (COMMON_OBS): Add skip.o.
1731         * skip.h, skip.c: New.
1732         * breakpoint.h (set_default_breakpoint): Remove.
1733         (get_sal_arch): Declare.
1734         * breakpoint.c: Remove default_breakpoint_valid,
1735         default_breakpoint_address, default_breakpoint_symtab,
1736         default_breakpoint_line, default_breakpoint_pspace variables.
1737         (get_sal_arch): Make public.
1738         (set_default_breakpoint): Remove.
1739         (parse_breakpoint_sals, create_breakpoint, clear_command,
1740         decode_line_spec_1): Remove uses of default_breakpoint variables;
1741         replaced with function calls into stack.c.
1742         * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1743         * cli/cli-cmds.c: Add skiplist.
1744         (init_cmd_lists): Initialize skiplist.
1745         (init_cli_cmds): Fix comment (classes of commands appear in
1746         alphabetical order).
1747         * infrun.c (handle_inferior_event): Add check that we don't step into
1748         a function whose pc is marked for skip.
1749         * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1750         last_displayed_addr, last_displayed_symtab, last_displayed_line
1751         variables.
1752         (set_last_displayed_sal): New static function.
1753         (print_frame_info): Switch call to set_default_breakpoint to call to
1754         set_last_displayed_sal.
1755         (clear_last_displayed_sal, last_displayed_sal_is_valid,
1756         get_last_displayed_pspace, get_last_displayed_addr,
1757         get_last_displayed_symtab, get_last_displayed_line,
1758         get_last_displayed_sal): New public functions.
1759         * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1760         get_last_displayed_pspace, get_last_displayed_addr,
1761         get_last_displayed_symtab, get_last_displayed_line,
1762         get_last_displayed_sal): Declare.
1763
1764 2011-11-01  Justin Lebar <justin.lebar@gmail.com>
1765
1766         * MAINTAINERS (Write After Approval): Add myself to the list.
1767
1768 2011-10-29  Yao Qi  <yao@codesourcery.com>
1769
1770         * infcmd.c (disconnect_command): Call disconnect_tracing.
1771
1772 2011-10-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1773
1774         Code cleanup.
1775         * symtab.c (skip_prologue_sal): Code reformatting.
1776
1777 2011-10-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1778
1779         PR symtab/13208
1780         * jit.c (jit_register_code): Remove unused variable my_cleanups.  Check
1781         for NULL from bfd_open_from_target_memory.  Fix ownership of NBFD and
1782         SAI.
1783
1784 2011-10-28  Pedro Alves  <pedro@codesourcery.com>
1785
1786         * linux-nat.c (linux_nat_filter_event): Remove `options'
1787         parameter, and dead code that used it.  If we're handling a
1788         PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1789         in our lwp list, re-add it.
1790         (check_zombie_leaders): New.
1791         (linux_nat_wait_1): Remove `options' and `pid' locals.  Always
1792         wait for children with WNOHANG, and always wait for all children.
1793         Don't check for no resumed children upfront.  Simplify wait loop.
1794         Check for zombie thread group leaders after handling all wait
1795         statuses.  Return TARGET_WAITKIND_NO_RESUMED if there no
1796         unwaited-for children left.
1797         * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1798         (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1799         (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1800         * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1801
1802 2011-10-28  Sterling Augustine  <saugustine@google.com>
1803
1804         * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1805         * symtab.c (free_completion_list): New function.
1806         (do_free_completion_list): Likewise.
1807         (default_make_symbol_completion_list_break_on): New variable
1808         back_to. Call make_cleanup and discard_cleanups.
1809         (make_source_files_completion_list): Likewise.
1810
1811 2011-10-28  Paul Koning  <paul_koning@dell.com>
1812
1813         * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1814         * NEWS: Mention deep_items.
1815
1816 2011-10-28  Alen Skondro  <askondro@gmail.com>
1817
1818         * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1819         defined.
1820
1821 2011-10-27  Meador Inge  <meadori@codesourcery.com>
1822
1823         * MAINTAINERS (Write After Approval): Add myself to the list.
1824
1825 2011-10-27  Joel Brobecker  <brobecker@adacore.com>
1826
1827         * value.h (read_frame_register_value): Add declaration.
1828         * findvar.c (read_frame_register_value): New function.
1829         (value_from_register): Use read_frame_register_value
1830         instead of get_frame_register_value + value_contents_copy
1831         to get value contents.
1832
1833 2011-10-27  Doug Evans  <dje@google.com>
1834
1835         * cli/cli-cmds.c (source_script_with_search): Pass full path to
1836         source_script_from_stream if it may have been found on the search path.
1837         * python/py-auto-load.c (source_section_scripts): Pass full path to
1838         source_python_script_for_objfile.
1839         * python/python.c (source_python_script): Delete stream parameter.
1840         All callers updated.
1841         (source_python_script_for_objfile): Ditto.
1842         * python/python-internal.h (source_python_script_for_objfile): Update.
1843         * python/python.h (source_python_script): Update.
1844
1845 2011-10-27  Tom Tromey  <tromey@redhat.com>
1846
1847         * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1848         (ada_sals_for_line): Remove declarations.
1849
1850 2011-10-27  Kevin Pouget  <kevin.pouget@st.com>
1851
1852         Move unwind reasons to an external .def file
1853         * frame.c (frame_stop_reason_string): Rewrite using
1854         unwind_stop_reasons.def.
1855         * frame.h (enum unwind_stop_reason): Likewise.
1856         * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1857         (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1858         constants for bound-checking.
1859         * unwind_stop_reasons.def: New file.
1860         * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1861         instead of a distinct value.
1862
1863 2011-10-27  Phil Muldoon  <pmuldoon@redhat.com>
1864
1865         PR python/13331
1866
1867         * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1868         (convert_values_to_python): Return on Python tuple allocation
1869         failure.  Return NULL on value conversion error.
1870
1871 2011-10-27  Phil Muldoon  <pmuldoon@redhat.com>
1872
1873         * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1874         (bppy_set_task): Ditto.
1875         (bppy_delete_breakpoint): Ditto.
1876         * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1877         (gdbpy_lookup_global_symbol): Ditto.
1878         * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1879         * python/py-frame.c (frapy_is_valid): Ditto.
1880         (frame_info_to_frame_object): Ditto.
1881         * python/py-type.c (typy_lookup_type): Ditto.
1882         (typy_getitem): Ditto.
1883         (typy_has_key): Ditto.
1884         (typy_richcompare): Use TRY_CATCH.  Do not return Py_NE on error.
1885
1886 2011-10-26  Joel Brobecker  <brobecker@adacore.com>
1887
1888         * gdbarch.h: Regenerate.
1889
1890 2011-10-26  Meador Inge  <meadori@codesourcery.com>
1891
1892         * gdbarch.sh (function_list): Use 'pstring' when printing
1893         'gcore_bfd_target'.
1894         * gdbarch.c: Regenerate.
1895
1896 2011-10-26  Ulrich Weigand  <uweigand@de.ibm.com>
1897
1898         * regcache.c (registers_changed_ptid): Invalidate thread architecture
1899         and frame caches if PTID refers to all threads of a process.
1900
1901 2011-10-26  Ulrich Weigand  <uweigand@de.ibm.com>
1902
1903         * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1904         to create_breakpoint.
1905
1906 2011-10-26  Ulrich Weigand  <uweigand@de.ibm.com>
1907
1908         * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1909         (ppc_sysv_abi_push_dummy_call): Use it.
1910         (do_ppc_sysv_return_value): Likewise.
1911         (ppc64_sysv_abi_push_dummy_call): Likewise.
1912         (ppc64_sysv_abi_return_value): Likewise.
1913
1914 2011-10-26  Paul Koning  <paul_koning@dell.com>
1915
1916         * python/lib/gdb/types.py (deepitems): New function.
1917         
1918 2011-10-25  Paul Koning  <paul_koning@dell.com>
1919
1920         PR python/13327
1921         
1922         * python/py-value.c (value_to_value_object): Remove fetching of
1923         the value if it was lazy.
1924         (valpy_get_is_lazy): New function.
1925         (valpy_fetch_lazy): New function.
1926
1927 2011-10-24  Joel Brobecker  <brobecker@adacore.com>
1928
1929         * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1930         FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1931
1932 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
1933
1934         * linux-nat.c (linux_handle_extended_wait): When handling a clone
1935         event, in non-stop, if not stopping, make sure the new lwp has
1936         last_resume_kind set to resume_continue.  Assert that when we're
1937         resuming the new lwp, its last_resume_kind is resume_continue.
1938
1939 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
1940
1941         * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1942         already set when marking the event thread as not executing in
1943         non-stop mode.
1944
1945 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
1946
1947         * infrun.c (handle_inferior_event): Add debug output for
1948         TARGET_WAITKIND_NO_HISTORY.
1949
1950 2011-10-24  Phil Muldoon  <pmuldoon@redhat.com>
1951
1952         * NEWS: Move set/show extended-prompt to "New Options". Expand
1953         description. Fix typos.
1954
1955 2011-10-24  Phil Muldoon  <pmuldoon@redhat.com>
1956
1957         PR python/13310
1958
1959         * python/py-param.c (call_doc_function): Correctly deference on
1960         function exit.
1961
1962 2011-10-21  Joel Brobecker  <brobecker@adacore.com>
1963
1964         * ada-tasks.c (print_ada_task_info): Fix computation of
1965         number of tasks displayed in command output.
1966
1967 2011-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
1968             Ulrich Weigand  <uweigand@de.ibm.com>
1969
1970         * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1971         (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1972         (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum.  Replace
1973         gdbarch_pc_regnum and frame_unwind_register_unsigned by
1974         gdbarch_unwind_pc.
1975
1976 2011-10-20  Cary Coutant  <ccoutant@google.com>
1977
1978         * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1979         section to...
1980         (partial_read_comp_unit_head): ...here.  Add is_debug_type_section
1981         flag.  Adjust all callers.
1982         (process_psymtab_comp_unit): Remove adjustment for type section.
1983
1984 2011-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
1985
1986         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1987         arguments by adding OBJFILE.  Instead of getting objfile from
1988         symbol's symtab, use new argument OBJFILE.
1989         * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1990         arguments by adding OBJFILE.
1991         * gdb/dwarf2read.c (new_symbol_full): Change call to
1992         cp_scan_for_anonymous_namespaces to match new signature.
1993         * gdb/stabsread.c (define_symbol): Change call to
1994         cp_scan_for_anonymous_namespaces to match new signature.
1995
1996 2011-10-20  Phil Muldoon  <pmuldoon@redhat.com>
1997
1998         PR python/13308
1999         PR python/13309
2000
2001         * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
2002         leak.
2003         * python/py-inferior.c (gdbpy_inferiors): Fix List reference
2004         leak.  Delete unused variables.
2005
2006 2011-10-20  Phil Muldoon  <pmuldoon@redhat.com>
2007
2008         PR python/12656
2009
2010         * python/py-frame.c (frapy_read_var): Use const struct *block.
2011         * python/py-type.c (typy_lookup_typename): Likewise.
2012         (typy_lookup_type): Likewise.
2013         (typy_legacy_template_argument): Likewise.
2014         (typy_template_argument): Likewise.
2015         (gdbpy_lookup_type): Likewise.
2016         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2017         * python/py-block.c (blpy_block_object): Likewise.
2018         (blpy_iter): Likewise.
2019         (blpy_get_start): Likewise.
2020         (blpy_get_end): Likewise.
2021         (blpy_get_function): Likewise.
2022         (blpy_get_superblock): Likewise.
2023         (set_block):  Likewise.
2024         (block_to_block_object): Likewise.
2025         (block_object_to_block): Likewise.
2026         (blpy_is_valid): Likewise.
2027         (blpy_get_global_block): New function.
2028         (blpy_get_static_block): New function.
2029         (blpy_is_global): New function.
2030         (blpy_is_static): New function.
2031         * blockframe.c (block_innermost_frame): Likewise.
2032         * valops.c (value_of_variable): Likewise.
2033         * frame.h: Update prototypes.
2034         * python/python-internal.h: Likewise.
2035         * value.h: Likewise.
2036
2037 2011-10-19  Cary Coutant  <ccoutant@google.com>
2038
2039         * dwarf2read.c (create_debug_types_hash_table): Fix size of
2040         type_offset field.
2041
2042 2011-10-19  Cary Coutant  <ccoutant@google.com>
2043
2044         * dwarf2read.c (peek_abbrev_code): New function.
2045         (dw2_get_file_names): Check for dummy compilation units.
2046         (create_debug_types_hash_table): Likewise.
2047         (process_psymtab_comp_unit): Likewise.
2048         (load_partial_comp_unit): Likewise.
2049         (load_full_comp_unit): Likewise.
2050
2051 2011-10-18  Aleksandar Ristovski  <aristovski@qnx.com>
2052
2053         * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
2054         initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
2055         pt_phdr if PT_PHDR was found.
2056
2057 2011-10-17  Joost van der Sluis  <joost@cnoc.nl>
2058
2059         * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
2060         type or "<unnamed type"> when there is no name assigned.
2061         * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
2062         avoid a sigint when no name is assigned.
2063
2064 2011-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2065
2066         Revert:
2067         2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2068         * dwarf2expr.c (ctx_no_read_reg): New function.
2069         * dwarf2expr.h (ctx_no_read_reg): New declaration.
2070         * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2071         (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2072         (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2073
2074 2011-10-16  Doug Evans  <dje@google.com>
2075
2076         * NEWS: Document python gdb.printing.register_pretty_printer's new
2077         `replace' parameter.
2078
2079 2011-10-14  Keith Seitz  <keiths@redhat.com>
2080
2081         PR c++/13225
2082         * eval.c (evaluate_subexp_standard): Do not construct
2083         an array of types; pass the value array directly to
2084         find_overload_match.
2085         * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
2086         (rank_function): Take an array of values instead of types.
2087         (rank_one_type): Add struct value * parameter.
2088         * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
2089         (rank_function): For each argument, pass the argument's
2090         value to rank_one_type.
2091         (rank_one_type): Add VALUE parameter.
2092         If the parameter type is a pointer and the argument type
2093         is an integer, return NULL_POINTER_CONVERSION_BADNESS if
2094         VALUE is zero.
2095         Update all calls to rank_one_type, passing NULL for new
2096         VALUE parameter.
2097         * valarith.c (value_user_defined_cpp_op): Do not construct
2098         an array of types; pass the value array directly to
2099         find_overload_match.
2100         * valops.c (find_overload_method_list): Take an array of
2101         values instead of types.
2102         Save the type of OBJP for later use.
2103         Update calls to find_oload_champ, and find_oload_champ_namespace.
2104         (find_oload_champ_namespace): Take an array of values instead
2105         of types.
2106         (find_oload_champ_namespace_loop): Likewise.
2107         (find_oload_champ): Likewise.
2108         (classify_oload_match): Inspect all arguments
2109         until INCOMPATIBLE is found. Return the worst badness found
2110         otherwise.
2111         (compare_parameters): Update call to rank_one_type.
2112         * value.h (find_overload_match): Take an array of values instead
2113         of types.
2114
2115 2011-10-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
2116
2117         Drop lazy lm_info reading.
2118         * solib-svr4.c (struct lm_info): Remove field lm.  New fields l_addr_p,
2119         l_addr_inferior, l_ld, l_next, l_prev and l_name.
2120         (lm_info_read): New function.
2121         (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
2122         (lm_addr_check): Use l_addr_p.  No longer use lm_addr_from_link_map and
2123         lm_dynamic_from_link_map.
2124         (lm_next, lm_prev, lm_name): Remove.
2125         (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
2126         initialization incl. read_memory.  No longer use lm_name.
2127         (svr4_free_so): Drop lm_info->lm freeing.
2128         (svr4_default_sos): Initialize lminfo with zeroes.  Use l_addr_p.  Drop
2129         explicit lm_addr and lm initialization.
2130         (svr4_read_so_list): Use lm_info_read, drop the initailization of
2131         fields by hand, incl. read_memory.  No longer use lm_next, lm_prev and
2132         lm_name.
2133
2134 2011-10-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
2135             Paul Pluzhnikov  <ppluzhnikov@google.com>
2136
2137         * defs.h (struct so_list): New forward declaration.
2138         (make_cleanup_free_so): New declaration.
2139         * solib-svr4.c (ignore_first_link_map_entry): Remove.
2140         (svr4_free_so): Move the function here from downwards.  Handle NULL
2141         so->lm_info.
2142         (svr4_free_library_list): New.
2143         (svr4_read_so_list): New, moved here code from svr4_current_sos.
2144         Use more cleanups.  Use new parameter ignore_first instead of
2145         ignore_first_link_map_entry.
2146         (svr4_current_sos): New variable ignore_first, initialize it.  New
2147         variable back_to, use it for svr4_free_library_list protection.
2148         (svr4_free_so): Remove - move upwards.
2149         * utils.c: Include solist.h.
2150         (do_free_so, make_cleanup_free_so): New functions.
2151
2152 2011-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2153
2154         Fix internal error regression.
2155         * value.c (value_primitive_field): Handle value_optimized_out.  Move
2156         packed bitfields comment.
2157
2158 2011-10-13  Tom Tromey  <tromey@redhat.com>
2159
2160         * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2161         always released.
2162
2163 2011-10-13  Tom Tromey  <tromey@redhat.com>
2164
2165         * python/py-type.c (typy_has_key): Make 'field' const.
2166
2167 2011-10-13  Luis Machado  <lgustavo@codesourcery.com>
2168
2169         * remote.c (remote_save_trace_data): Invert comparison.
2170
2171 2011-10-13  Luis Machado  <lgustavo@codesourcery.com>
2172
2173         * tracepoint.c (trace_save_command): Use filename instead of
2174         args when printing.
2175
2176 2011-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2177
2178         * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2179         if .size is 0.
2180
2181 2011-10-13  Yao Qi  <yao@codesourcery.com>
2182
2183         PR gdb/12703
2184         * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2185         whether insn is a 32-bit Thumb-2 instruction.
2186         (thumb_in_function_epilogue_p): Likewise.
2187         (thumb_get_next_pc_raw): Likewise.
2188         (arm_breakpoint_from_pc): Likewise.
2189
2190 2011-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
2191
2192         Fix empty DWARF expressions DATA vs. SIZE conditionals.
2193         * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2194         (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2195         (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2196         (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2197         zero DATA.
2198         * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2199         validity.
2200         * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2201         (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2202         clear DATA on zero SIZE.
2203
2204 2011-10-12  Doug Evans  <dje@google.com>
2205
2206         * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2207         header->first_die_offset here.  All callers updated.
2208
2209 2011-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
2210
2211         Fix compatibility with texinfo versions older than 4.12.
2212         * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2213         (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2214         (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2215         (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2216         * configure: Regenerate.
2217         * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2218         (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2219         (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2220
2221 2011-10-12  Gary Benson  <gbenson@redhat.com>
2222
2223         * breakpoint.h (pc_at_non_inline_function): Declare.
2224         * breakpoint.c (is_non_inline_function,
2225         pc_at_non_inline_function): New functions.
2226         * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2227         if the stop is at a location where functions cannot be inlined.
2228
2229 2011-10-12  Pedro Alves  <pedro@codesourcery.com>
2230
2231         * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2232         the core wanted them stopped, or if they now have a pending event
2233         to report.
2234         (linux_nat_filter_event): New parameter `new_pending_p'.  Pass it
2235         down to stop_and_resume_callback.
2236         (linux_nat_wait_1): Always clear `options' when retrying.  Handle
2237         having new pending events after calling linux_nat_filter_event.
2238
2239 2011-10-11  Sterling Augustine  <saugustine@google.com>
2240
2241         * dwarf2read.c: Undo inadvertent changes in previous commit.
2242
2243 2011-10-11  Sterling Augustine  <saugustine@google.com>
2244
2245         * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2246         logic.
2247
2248 2011-10-11  Ulrich Weigand  <ulrich.weigand@linaro.org>
2249
2250         * symfile.c (separate_debug_file_exists): Fix condition.
2251
2252 2011-10-11  David S. Miller  <davem@davemloft.net>
2253
2254         * regcache.c (regcache_restore): Do not write unavailable regs, mark
2255         static.
2256         * regcache.h (regcache_restore): Remove declaration.
2257
2258         * gdbarch.sh: New field 'long_long_align_bit'.
2259         * gdbarch.c, gdbarch.h: Regenerate.
2260         * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2261         * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2262
2263 2011-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2264
2265         Revert this part of:
2266         2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2267         Support @entry in input expressions.
2268         * c-exp.y (ENTRY, unknown_cpp_name): New.
2269         (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2270         (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2271         (variable: name_not_typename '@' ENTRY, name: ENTRY)
2272         (name_not_typename: ENTRY): New.
2273         (yylex): Recognize ENTRY.
2274
2275         Reimplement @entry in input expressions.
2276         * c-exp.y (ENTRY): New.
2277         (variable: name_not_typename ENTRY): New.
2278         (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2279
2280 2011-10-11  Pedro Alves  <pedro@codesourcery.com>
2281
2282         * linux-nat.c (linux_handle_extended_wait): Always dump both the
2283         parent and child's pids as soon as we detect a clone event.
2284         Adjust another debug message.
2285
2286 2011-10-11  Pedro Alves  <pedro@codesourcery.com>
2287
2288         * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2289         not zombie instead of reading the whole file.
2290
2291 2011-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2292
2293         Fix separate debuginfo warning with "remote:" access.
2294         * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2295         * symfile.c (get_file_crc): New function with the code moved from ...
2296         (separate_debug_file_exists): ... this function, specifically variables
2297         buffer and count.  New variable verified_as_different, set it.  Remove
2298         file_crc initialization.  Verify also if both files are not the same
2299         manually, if needed.
2300
2301 2011-10-11  Yao Qi  <yao@codesourcery.com>
2302
2303         * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2304         to get address.
2305
2306 2011-10-10  Doug Evans  <dje@google.com>
2307
2308         * linux-thread-db.c (thread_db_new_objfile): Only try to load
2309         libthread_db when we load libpthread or the main symbol file.
2310         (thread_db_inferior_created): New function.
2311         (_initialize_thread_db): Attach inferior_created observer.
2312         * linux-nat.c (linux_child_post_attach): Remove call to
2313         check_for_thread_db.
2314         (linux_child_post_startup_inferior): Ditto.
2315         * objfiles.h (OBJF_MAINLINE): Define.
2316         * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2317         allocate_objfile when appropriate.
2318
2319 2011-10-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
2320
2321         PR gdb/13218
2322         * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2323         Remove unused variables.
2324         (get_linux_version): Remove function.
2325         (_initialize_arm_linux_nat): Do not call it.
2326
2327 2011-10-10  Pedro Alves  <pedro@codesourcery.com>
2328
2329         * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2330         new clone lwp if the core asked it to stop.  Don't pass on
2331         unexpected signals to the new clone; leave them pending instead.
2332
2333 2011-10-10  Pedro Alves  <pedro@codesourcery.com>
2334
2335         * linux-nat.c (resume_lwp): Remove redundant debug output.
2336
2337 2011-10-10  Pedro Alves  <pedro@codesourcery.com>
2338
2339         * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2340         last_resume_kind before clearing it, and use the copy instead to
2341         determine whether to report a SIGSTOP as TARGET_SIGNAL_0.  Use
2342         resume_clear_callback in the non-stop path too.
2343
2344 2011-10-09  Yao Qi  <yao@codesourcery.com>
2345
2346         * valprint.c (value_check_printable): Add one parameter OPTIONS.
2347         Honor OPTIONS and VAL's type.
2348         (common_val_print, value_print): Update to pass one more parameter.
2349
2350 2011-10-09  Doug Evans  <dje@google.com>
2351
2352         Add new "alias" command.
2353         * NEWS: Mention new command.
2354         * command.h (valid_user_defined_cmd_name_p): Declare.
2355         * defs.h (make_cleanup_dyn_string_delete): Declare.
2356         * utils.c: #include "dyn-string.h".
2357         (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2358         * cli/cli-cmds.c: #include "dyn-string.h".
2359         (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2360         (init_cli_cmds): Add new command.
2361         * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2362
2363 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2364
2365         Fix compatibility with older GCCs.
2366         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2367         * stack.c (read_frame_arg): Initialize val_deref.
2368
2369 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2370
2371         Entry values NEWS entries, DWARF disassembly support.
2372         * NEWS: New entry values entry.
2373         (set print entry-values, show print entry-values)
2374         (set debug entry-values, show debug entry-values): New entries.
2375         * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2376         indent.  Remove variable start.  Move header printing out.  Respect
2377         INDENT.  Support DW_OP_GNU_entry_value.
2378         (locexpr_describe_location_1): Move the header printing here, extend
2379         the disassemble_dwarf_expression passed parameters.
2380
2381 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2382
2383         Display @entry parameter values even for references.
2384         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2385         coerce_ref_if_computed.
2386         * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2387         * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2388         (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2389         existing push_dwarf_reg_entry_value call.  Add new detection calling
2390         dwarf_block_to_dwarf_reg_deref.  Update the error message.
2391         (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2392         * dwarf2expr.h
2393         (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2394         parameter deref_size, describe it in the comment.
2395         (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2396         (dwarf_block_to_dwarf_reg_deref): New declaration.
2397         * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2398         deref_size, describe it in the function comment.  New variables
2399         data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2400         (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2401         describe it in the function comment.  Fetch the alternative block
2402         accoring to DEREF_SIZE.
2403         (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2404         (entry_data_value_free_closure, entry_data_value_funcs): New.
2405         (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2406         outer_val, target_val, val and addr.  Try to fetch and create also
2407         referenced value content.
2408         (pieced_value_funcs): NULL value for coerce_ref.
2409         (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2410         * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2411         coerce_ref_if_computed.
2412         * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2413         * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2414         * stack.c (read_frame_arg): Compare also dereferenced values.
2415         * value.c (value_computed_funcs): Make the parameter v const, use
2416         value_lval_const for it.
2417         (value_lval_const, coerce_ref_if_computed): New function.
2418         (coerce_ref): New variable retval.  Call also coerce_ref_if_computed.
2419         * value.h (struct lval_funcs): New field coerce_ref.
2420         (value_computed_funcs): Make the parameter v const.
2421         (value_lval_const, coerce_ref_if_computed): New declarations.
2422
2423 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2424
2425         Support @entry in input expressions.
2426         * c-exp.y (ENTRY, unknown_cpp_name): New.
2427         (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2428         (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2429         (variable: name_not_typename '@' ENTRY, name: ENTRY)
2430         (name_not_typename: ENTRY): New.
2431         (yylex): Recognize ENTRY.
2432         * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2433         * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2434         Likewise.
2435         * parse.c (operator_length_standard): Likewise.
2436         * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2437
2438 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2439
2440         Display referenced values in backtraces.
2441         * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2442         * stack.c (print_frame_arg): Likewise.
2443
2444 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2445
2446         Make some lval_funcs methods to default on NULL.
2447         * valops.c (value_fetch_lazy): Check if lval_computed read method is
2448         NULL.
2449         (value_assign): Check if lval_computed write method is NULL.
2450         * value.h (struct lval_funcs): Comment NULL values for read and write
2451         methods.
2452
2453 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2454
2455         Display @entry parameter values (without references).
2456         * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2457         New functions.
2458         * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2459         New declarations.
2460         * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2461         entry record.
2462         (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2463         (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2464         functions.
2465         (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2466         (loclist_read_variable_at_entry): New function.
2467         (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2468         * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2469         DW_AT_location, call dwarf_block_to_sp_offset for it.
2470         * frame.h (print_entry_values_no, print_entry_values_only)
2471         (print_entry_values_preferred, print_entry_values_if_needed)
2472         (print_entry_values_both, print_entry_values_compact)
2473         (print_entry_values_default, print_entry_values): New declarations.
2474         (struct frame_arg): New field entry_kind.
2475         (read_frame_arg): New parameter entryargp.
2476         * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2477         arg->entry_kind.  Optionally print the `@entry' suffix.
2478         (list_args_or_locals): New variable entryarg, initialize it.
2479         Initialize also entry_kind of arg and entryarg.  Conditionalize
2480         list_arg_or_local for arg, add list_arg_or_local for entryarg.  Call
2481         xfree for entryarg.error.
2482         * stack.c (print_entry_values_no, print_entry_values_only)
2483         (print_entry_values_preferred, print_entry_values_if_needed)
2484         (print_entry_values_both, print_entry_values_compact)
2485         (print_entry_values_default, print_entry_values_choices)
2486         (print_entry_values): New variables.
2487         (print_frame_arg): New gdb_assert for arg->entry_kind.  Optionally
2488         print the `@entry' suffix, possibly in combination for
2489         print_entry_values_compact.
2490         (read_frame_arg): New parameter entryargp, new variables entryval,
2491         entryval_error and val_equal.  Read in also entryargp, respect
2492         print_entry_values, compare the values using val_equal, fill in also
2493         argp->entry_kind (together with entryargp->entry_kind).
2494         (print_frame_args): New variable entryarg, initialize it.
2495         Conditionalize print_frame_arg for arg, add print_frame_arg for
2496         entryarg.  Call xfree for entryarg.error.
2497         (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2498         * symtab.h (struct symbol_computed_ops): New field
2499         read_variable_at_entry.
2500
2501 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2502
2503         Code reshuffle.
2504         * frame.h (struct frame_arg): New definition.
2505         (read_frame_arg): New declaration.
2506         * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2507         (list_args_or_locals): ... the code here.  New variable arg, call
2508         read_frame_arg and list_arg_or_local with it.  Unify the
2509         PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases.  Call xfree for
2510         arg.error.
2511         * stack.c (print_frame_arg): New functiom from the code of
2512         print_frame_args.
2513         (read_frame_arg): New function.
2514         (print_frame_args): Remove variable val.  New variable arg, call
2515         read_frame_arg and print_frame_arg with it.  Call xfree for arg.error.
2516
2517 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2518
2519         Protect entry values against self tail calls.
2520         * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2521         (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2522
2523 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2524
2525         Recognize virtual tail call frames.
2526         * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2527         (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2528         (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2529         * dwarf2-frame-tailcall.c: New file.
2530         * dwarf2-frame-tailcall.h: New file.
2531         * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2532         (execute_cfa_program): New function comment.  Return INSN_PTR.  Reset
2533         REGS.PREV only after CIE execution.
2534         (struct dwarf2_frame_cache): New field tailcall_cache.
2535         (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2536         entry_cfa_sp_offset_p and instr.  Execute FDE instructions in two
2537         parts, try to find entry_cfa_sp_offset.  Call
2538         dwarf2_tailcall_sniffer_first.
2539         (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2540         when appropriate.
2541         (dwarf2_frame_dealloc_cache): New function.
2542         (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2543         (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2544         (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2545         (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2546         (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2547         * dwarf2loc.c (func_addr_to_tail_call_list)
2548         (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2549         (call_site_find_chain_1, call_site_find_chain): New.
2550         * dwarf2loc.h (struct call_site_chain): New.
2551         (call_site_find_chain): New declaration.
2552         * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2553         * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2554         * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2555         * stack.c (frame_info): Support also TAILCALL_FRAME.
2556
2557 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2558
2559         Tail call sites reader implementation.
2560         * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2561         fill in TYPE_TAIL_CALL_LIST.
2562         * gdbtypes.h (struct func_type): New field tail_call_list.
2563         (struct call_site): New field tail_call_next.
2564         (TYPE_TAIL_CALL_LIST): New definition.
2565
2566 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2567
2568         Implement basic support for DW_TAG_GNU_call_site.
2569         * block.c: Include gdbtypes.h and exceptions.h.
2570         (call_site_for_pc): New function.
2571         * block.h (call_site_for_pc): New declaration.
2572         * defs.h: Include hashtab.h.
2573         (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2574         declarations.
2575         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2576         ctx_no_push_dwarf_reg_entry_value.
2577         * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2578         (dwarf_block_to_dwarf_reg): New function.
2579         (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2580         (ctx_no_push_dwarf_reg_entry_value): New function.
2581         * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2582         push_dwarf_reg_entry_value.
2583         (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2584         declarations.
2585         * dwarf2loc.c: Include gdbcmd.h.
2586         (dwarf_expr_ctx_funcs): New forward declaration.
2587         (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2588         (dwarf_expr_reg_to_entry_parameter)
2589         (dwarf_expr_push_dwarf_reg_entry_value): New.
2590         (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2591         (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2592         (needs_dwarf_reg_entry_value): New function.
2593         (needs_frame_ctx_funcs): Install it.
2594         (_initialize_dwarf2loc): New function.
2595         * dwarf2loc.h (entry_values_debug): New declaration.
2596         * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2597         (read_call_site_scope): New forward declaration.
2598         (process_full_comp_unit): Copy call_site_htab.
2599         (process_die): Support DW_TAG_GNU_call_site.
2600         (read_call_site_scope): New function.
2601         (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2602         (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2603         (cleanup_htab): Delete.
2604         (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2605         * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2606         * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2607         FIELD_LOC_KIND_DWARF_BLOCK.
2608         * gdbtypes.h (enum field_loc_kind): New entry
2609         FIELD_LOC_KIND_DWARF_BLOCK.
2610         (struct main_type): New loc entry dwarf_block.
2611         (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2612         (TYPE_FIELD_DWARF_BLOCK): New.
2613         * python/py-type.c: Include dwarf2loc.h.
2614         (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK.  New
2615         internal_error call on unknown FIELD_LOC_KIND.
2616         * symtab.h (struct symtab): New field call_site_htab.
2617         * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2618         (core_addr_hash, core_addr_eq): New functions.
2619
2620 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2621
2622         Code reshuffle.
2623         * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2624         TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.  Move
2625         calling_convention under func_stuff there.
2626         * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2627         (init_type) <TYPE_CODE_FUNC>: Likewise.
2628         (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2629         TYPE_SPECIFIC_FUNC.  New comment for tail_call_list.
2630         * gdbtypes.h (enum type_specific_kind): Change
2631         TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2632         (struct main_type) <type_specific>: Change calling_convention to
2633         func_stuff.  Move calling_convention to ...
2634         (struct func_type): ... this new struct.
2635         (INIT_FUNC_SPECIFIC): New #define.
2636         (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2637
2638 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2639
2640         Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2641         * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2642         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2643         ctx->ref_addr_size.  Handle its invalid value.
2644         * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2645         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2646         (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2647         * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2648         * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2649         (dwarf2_per_cu_ref_addr_size): New function.
2650
2651 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2652
2653         Code cleanup.
2654         * dwarf2read.c (per_cu_header_read_in): New function.
2655         (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2656         variables cu_header_local and cu_headerp.
2657
2658 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2659
2660         Fix initial language detection with -readnow.
2661         * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2662         * symfile.h (struct quick_symbol_functions): State find_symbol_file
2663         searches only for global symbols.
2664
2665 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2666
2667         Fix printed anonymous struct name.
2668         * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2669         DW_TAG_interface_type.  Strip for anonymous structs any prefixes.
2670         (anonymous_struct_prefix): New function.
2671         (determine_prefix): New variables retval.  Call anonymous_struct_prefix.
2672         (dwarf2_name): Strip for anonymous structs any prefixes.
2673
2674 2011-10-07  Doug Evans  <dje@google.com>
2675
2676         * python/lib/gdb/printing.py (register_pretty_printer): New argument
2677         `replace'.
2678
2679         * python/lib/gdb/printing.py: Whitespace cleanup.
2680
2681         * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2682         warning.
2683
2684 2011-10-07  Pedro Alves  <pedro@codesourcery.com>
2685
2686         * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2687         * amd64-linux-nat.c (amd64_linux_dr_set_control)
2688         (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2689         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2690         (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2691         (arm_linux_remove_watchpoint): Adjust.
2692         * i386-linux-nat.c (i386_linux_dr_set_control)
2693         (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2694         * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2695         (ia64_linux_remove_watchpoint): Adjust.
2696         * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2697         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2698         (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2699         (ppc_linux_insert_mask_watchpoint)
2700         (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2701         (ppc_linux_remove_watchpoint): Adjust.
2702         * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2703         Adjust.
2704
2705 2011-10-07  Corinna Vinschen  <vinschen@redhat.com>
2706
2707         * windows-nat.c: Include wchar.h to avoid compiler warnings.
2708         (clear_win32_environment): New function for Cygwin to clear out
2709         Win32 environment.
2710         (windows_create_inferior): Prepare new environment from in_env
2711         for Cygwin, too.
2712
2713 2011-10-07  Phil Muldoon  <pmuldoon@redhat.com>
2714
2715         PR python/13264
2716         * python/py-value.c (valpy_call): Check that arguments are
2717         a tuple.
2718         (is_intlike): Remove call to CHECK_TYPEDEF.
2719         (valpy_nonzero): Catch GDB exceptions.
2720         (valpy_absolute): Ditto.
2721         (valpy_lazy_string): Ditto.
2722         (valpy_call): Ditto.
2723         (valpy_get_is_optimized_out): Ditto.
2724         (valpy_long): Ditto.
2725         (valpy_float): Ditto.
2726         (valpy_int): Call CHECK_TYPEDEF.  Catch GDB exceptions.
2727         (valpy_richcompare): Ditto.
2728
2729 2011-10-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
2730
2731         * inferior.h (disable_randomization): Declare.
2732         * infrun.c (disable_randomization): New global variable.
2733         (show_disable_randomization): New function.
2734         (set_disable_randomization): Likewise.
2735         (_initialize_infrun): Install set/show disable-randomization
2736         commands.
2737         * linux-nat.c (disable_randomization): Remove.
2738         (show_disable_randomization): Likewise.
2739         (set_disable_randomization): Likewise.
2740         (_initialize_linux_nat): No longer install set/show
2741         disable-randomization commands here.
2742         (linux_nat_supports_disable_randomization): New function.
2743         (linux_nat_add_target): Install it.
2744         * remote.c (PACKET_QDisableRandomization): New enum value.
2745         (remote_protocol_packets): Support QDisableRandomization.
2746         (_initialize_remote): Likewise.
2747         (remote_supports_disable_randomization): New function.
2748         (init_remote_ops): Install it.
2749         (extended_remote_supports_disable_randomization): New function.
2750         (init_extended_remote_ops): Install it.
2751         (extended_remote_disable_randomization): New function.
2752         (extended_remote_create_inferior_1): Call it.
2753         * target.h (struct target_ops): Add to_supports_disable_randomization.
2754         (target_supports_disable_randomization): Add prototype.
2755         * target.c (target_supports_disable_randomization): New function.
2756         (find_default_supports_disable_randomization): Likewise.
2757         (init_dummy_target): Install it.
2758
2759 2011-10-07  Kevin Pouget  <kevin.pouget@st.com>
2760
2761         Allow Python notification of new object-file loadings.
2762         * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2763         (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2764         Add build rule for this file.
2765         * python/py-event.h (emit_new_objfile_event): New prototype.
2766         (newobjfile): New Python event emitter.
2767         * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2768         Python event registry.
2769         * python/py-inferior.c: Include objfiles.h
2770         (python_new_objfile): New function.
2771         (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2772         observers.
2773         * python/py-newobjfileevent.c: New file.
2774         * python-internal.h (gdbpy_initialize_new_objfile_event): New
2775         prototype.
2776         * python/python.c (_initialize_python): Add 
2777         gdbpy_initialize_new_objfile_event call.
2778         * NEWS: Add item for new Python event "gdb.newobjfile"
2779
2780 2011-10-05  Tristan Gingold  <gingold@adacore.com>
2781
2782         * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2783         Extract the ravenscar task name from the symbol for the atcb.
2784
2785 2011-10-04  Paul Koning  <paul_koning@dell.com>
2786
2787         * python/py-type.c (typy_make_iter): Add forward declaration.
2788         (typy_fields_items):  Use the gdb.Type iterator.
2789
2790 2011-10-04  Paul Koning  <paul_koning@dell.com>
2791
2792         * NEWS: Add entry for Python gdb.Type mapping methods.
2793
2794 2011-10-04  Kevin Pouget  <kevin.pouget@st.com>
2795
2796         PR python/12691: Add the inferior to Python exited event
2797         * python/py-exitedevent.c (create_exited_event_object): Add inferior
2798         to exited_event.
2799         * python/py-event.h (emit_exited_event): Likewise
2800         * python/-inferior.c (python_inferior_exit): Likewise
2801
2802 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
2803
2804         * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2805         in output of -ada-task-info GDB/MI command.
2806
2807 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
2808
2809         * ada-lang.h (struct inferior): Declare.
2810         (print_ada_task_info): Add declaration.
2811         * ada-tasks.c (print_ada_task_info): Make non-static.
2812         * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2813         * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2814         * mi/mi-main.c: #include "ada-lang.h".
2815         (mi_cmd_list_features): Add "ada-task-info" to the list
2816         of supported features.
2817         (mi_cmd_ada_task_info): New function.
2818
2819 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
2820
2821         * python/python.c (python_run_simple_file): New function.
2822         (source_python_script, source_python_script_for_objfile):
2823         Replace call to PyRun_SimpleFile by call to
2824         python_run_simple_file.
2825
2826 2011-10-03  Paul Koning  <paul_koning@dell.com>
2827
2828         * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2829         (value_to_value_object): Fetch value if it was lazy.
2830
2831 2011-10-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2832
2833         Code cleanup.
2834         * solib-svr4.c (svr4_default_sos):  Remove variables head and link_ptr.
2835         Rearrange the code for it.
2836
2837 2011-10-02  Joel Brobecker  <brobecker@adacore.com>
2838
2839         * breakpoint.c (bkpt_print_recreate): Add call to
2840         print_recreate_thread.
2841
2842 2011-09-29  Mike Frysinger  <vapier@gentoo.org>
2843
2844         * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2845         PTRACE_GETFDPIC_INTERP): Define.
2846
2847 2011-09-28  Yao Qi  <yao@codesourcery.com>
2848
2849         * symfile.c (add_symbol_file_command): Update message on usage.
2850
2851 2011-09-28  Paul Koning  <paul_koning@dell.com>
2852
2853         * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2854         (typy_length, typy_get, typy_has_key, typy_make_iter)
2855         (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2856         (typy_iterator_iter, typy_iterator_iternext)
2857         (typy_iterator_dealloc): New functions to implement standard
2858         Python mapping methods on gdb.Type object.
2859         (gdb.TypeIterator): New Python type.
2860         * python/python-internal.h (gdbpy_iter_kind): New enum.
2861
2862 2011-09-28  David S. Miller  <davem@davemloft.net>
2863
2864         * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2865         SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2866         * sparc-tdep.c (sparc_complex_floating_p): New function.
2867         (sparc32_store_arguments): Handle complex floats.
2868         (sparc32_extract_return_value): Likewise.
2869         (sparc32_store_return_value): Likewise.
2870         (sparc32_stabs_argument_has_addr): Likewise.
2871         * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2872         (sparc64_store_floating_fields): Handle complex floats.
2873         (sparc64_store_arguments): Likewise.
2874         (sparc64_store_return_value): Likewise.
2875
2876 2011-09-28  Eli Zaretskii  <eliz@gnu.org>
2877
2878         * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2879         before the change on 2006-12-09.
2880         (windows_create_inferior) [!__CYGWIN__]: Restore code that
2881         generates the environment block for CreateProcessA, modulo the
2882         Cygwin-specific parts that are not needed here.
2883
2884 2011-09-27  Tristan Gingold  <gingold@adacore.com>
2885
2886         * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2887         * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2888         (darwin_solib_get_all_image_info_addr_at_init): New function.
2889         (darwin_solib_read_all_image_info_addr): Likewise.
2890         (darwin_solib_create_inferior_hook): Use the above two functions.
2891         * darwin-nat.c (darwin_execvp): Renames retval to res.
2892         (darwin_read_write_inferior): Update comment.
2893         (darwin_read_dyld_info): New function.
2894         (darwin_xfer_partial): Handle DYLD_INFO.
2895
2896 2011-09-27  Stan Shebs  <stan@codesourcery.com>
2897
2898         Add return address collection for tracepoints.
2899         * tracepoint.c (encode_actions_1): Add case for $_ret.
2900         (validate_actionline): Check for $_ret.
2901         (trace_dump_actions): Ditto.
2902         * ax-gdb.h (gen_trace_for_return_address): Declare.
2903         * ax-gdb.c: Include arch-utils.h.
2904         (gen_trace_for_return_address): New function.
2905         (agent_command): Add return address special case.
2906         * amd64-tdep.c: Include ax.h and ax-gdb.h.
2907         (amd64_gen_return_address): New function.
2908         (amd64_init_abi): Call it.
2909         * i386-tdep.c: Include ax.h and ax-gdb.h.
2910         (i386_gen_return_address): New function.
2911         (i386_init_abi): Call it.
2912         * arch-utils.h (default_gen_return_address): Declare.
2913         * arch-utils.c (default_gen_return_address): New function.
2914         * gdbarch.sh (gen_return_address): New method.
2915         * gdbarch.h, gdbarch.c: Regenerate.
2916
2917 2011-09-23  Joseph Myers  <joseph@codesourcery.com>
2918
2919         PR gdb/13079
2920         * i386-tdep.c (i386_frame_align): New.
2921         (i386_gdbarch_init): Use i386_frame_align.
2922
2923 2011-09-23  Yao Qi  <yao@codesourcery.com>
2924
2925         * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2926         to get address.
2927
2928 2011-09-22  Tristan Gingold  <gingold@adacore.com>
2929
2930         * fork-child.c (fork_inferior): Add exec_fun parameter.
2931         Call exec_fun or execvp.
2932         * inferior.h: Adjust prototype.
2933         * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2934         * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2935         * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2936         * procfs.c (procfs_create_inferior): Ditto.
2937         * darwin-nat.c (darwin_execvp): New function.
2938         (darwin_create_inferior): Use it.
2939
2940 2011-09-22  Yao Qi  <yao@codesourcery.com>
2941
2942         * infrun.c (context_switch): Print debug message when switching to
2943         a different thread.
2944
2945 2011-09-21  Ulrich Weigand  <uweigand@de.ibm.com>
2946
2947         * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2948         complex and vector types.
2949         (s390_return_value_convention): Likewise.
2950
2951         (s390_value_from_register): Call check_typedef.
2952         (extend_simple_arg): Likewise.
2953         (alignment_of): Likewise.
2954         (s390_push_dummy_call): Likewise.
2955         (s390_return_value): Likewise.
2956
2957 2011-09-21  Joseph Myers  <joseph@codesourcery.com>
2958
2959         * event-top.c (async_disconnect): If an exception is thrown from
2960         quit_cover, call pop_all_targets.  Use TRY_CATCH instead of
2961         catch_errors.
2962         * top.c (quit_cover): Return void and take no arguments.
2963         * top.h (quit_cover): Update prototype.
2964
2965 2011-09-20  Joseph Myers  <joseph@codesourcery.com>
2966
2967         * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2968         current_uiout, not uiout.
2969
2970 2011-09-19  Doug Evans  <dje@google.com>
2971
2972         * python/py-auto-load.c (source_section_scripts): Fix file
2973         descriptor leak.
2974         * python/python.c (source_python_script_for_objfile): Tweak comments.
2975
2976 2011-09-18  Yao Qi  <yao@codesourcery.com>
2977             Ulrich Weigand  <ulrich.weigand@linaro.org>
2978
2979         Support displaced stepping for Thumb 16-bit insns.
2980         * arm-tdep.c (THUMB_NOP) Define.
2981         (thumb_copy_unmodified_16bit): New.
2982         (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2983         (thumb_copy_alu_reg): New.
2984         (arm_copy_svc): Move some common code to ...
2985         (install_svc): ... here.  New.
2986         (thumb_copy_svc): New.
2987         (install_pc_relative): New.
2988         (thumb_copy_pc_relative_16bit): New.
2989         (thumb_decode_pc_relative_16bit): New.
2990         (thumb_copy_16bit_ldr_literal): New.
2991         (thumb_copy_cbnz_cbz): New.
2992         (cleanup_pop_pc_16bit_all): New.
2993         (thumb_copy_pop_pc_16bit): New.
2994         (thumb_process_displaced_16bit_insn): New.
2995         (thumb_process_displaced_32bit_insn): New.
2996         (thumb_process_displaced_insn): process thumb instruction.
2997
2998         Support displaced stepping for Thumb 32-bit insns.
2999         * arm-tdep.c (thumb_copy_unmodified_32bit): New.
3000         (thumb2_copy_preload): New.
3001         (thumb2_copy_copro_load_store): New.
3002         (thumb2_copy_b_bl_blx): New.
3003         (thumb2_copy_alu_imm): New.
3004         (thumb2_copy_load_reg_imm): New.
3005         (thumb2_copy_load_literal): New
3006         (thumb2_copy_block_xfer): New.
3007         (thumb_32bit_copy_undef): New.
3008         (thumb_32bit_copy_unpred): New.
3009         (thumb2_decode_ext_reg_ld_st): New.
3010         (thumb2_decode_svc_copro): New.
3011         (decode_thumb_32bit_store_single_data_item): New.
3012         (thumb_copy_pc_relative_32bit): New.
3013         (thumb_decode_pc_relative_32bit): New.
3014         (decode_thumb_32bit_ld_mem_hints): New.
3015         (thumb2_copy_table_branch): New
3016         (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
3017         instructions.
3018
3019 2011-09-18  Yao Qi  <yao@codesourcery.com>
3020
3021         * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
3022         (install_b_bl_blx): Likewise.
3023
3024 2011-09-17  Yao Qi  <yao@codesourcery.com>
3025
3026         * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
3027         (install_load_store): ... this.  New.
3028         Change parameter BYTE to SIZE.
3029         (arm_copy_ldr_str_ldrb_strb): Update caller.
3030         (arm_decode_ld_st_word_ubyte): Update caller.
3031
3032 2011-09-17  Yao Qi  <yao@codesourcery.com>
3033
3034         * infrun.c (displaced_step_fixup): Move some code ...
3035         (displaced_step_restore): ... here.  New function.
3036         (handle_inferior_event): Cleanup displaced stepping state for both
3037         child and parent when get forked or vforked event.
3038         * regcache.c (get_thread_arch_aspace_regcache): New function.
3039         get_thread_arch_regcache (): Call it.
3040
3041 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3042
3043         * ada-tasks.c (print_ada_task_info): New function, merging
3044         short_task_info and info_tasks together.  Reimplement using
3045         ui-out instead of printing to stdout directly.  Move the code
3046         building and checking the task list here, instead of leaving it
3047         in info_tasks_command.
3048         (info_task): Move the code building and checking the task
3049         list here, instead of leaving it in info_tasks_command.
3050         (info_tasks_command): Delete code building and checking
3051         the task list - moved elsewhere.  Update calls to info_tasks
3052         and info_task.
3053
3054 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3055
3056         * ada-tasks.c (info_task): Delete parameter `from_tty'.
3057
3058 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3059
3060         * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
3061
3062 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3063
3064         * ada-lang.h (ada_build_task_list): Remove parameter
3065         `warn_if_null'.
3066         * ada-tasks.c (ada_build_task_list): Remove parameter
3067         `warn_if_null'.  Adjust implementation and documentation.
3068         (valid_task_id, ada_get_environment_task)
3069         iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
3070         (info_tasks_command): Adjust implementation.
3071         (task_command): Likewise.
3072         * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
3073         to ada_build_task_list.
3074
3075 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3076
3077         * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
3078         (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
3079         (ada_tasks_inferior_data_handle): New static global.
3080         (get_ada_tasks_inferior_data): New function.
3081         (ada_get_task_number, get_task_number_from_id, valid_task_id)
3082         (ada_get_environment_task, iterate_over_live_ada_tasks)
3083         (add_ada_task, read_known_tasks_array, read_known_tasks_list):
3084         Adjust.
3085         (ada_set_current_inferior_known_tasks_addr): New function.
3086         (read_known_tasks, ada_build_task_list, short_task_info)
3087         (info_tasks, info_task, info_tasks_command, task_command_1)
3088         (task_command, ada_task_list_changed): Adjust.
3089         (ada_tasks_invalidate_inferior_data): New function.
3090         (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
3091         (_initialize_tasks): Set ada_tasks_inferior_data_handle.
3092         * ada-lang.h (struct inferior): Add declaration.
3093         (ada_task_list_changed): Update profile.
3094         * remote-wtx-pd.c: #include "inferior.h".
3095         (switch_to_pd_internal): Update call to ada_task_list_changed.
3096
3097 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3098
3099         * ada-tasks.c: #include "progspace.h" and "objfiles.h".
3100         (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
3101         (atcb_fieldno): Delete these static globals.
3102         (struct ada_tasks_pspace_data): New struct.
3103         (ada_tasks_pspace_data_handle): New static global.
3104         (get_ada_tasks_pspace_data): New function.
3105         (ada_tasks_invalidate_pspace_data): New function.
3106         (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
3107         (read_known_tasks_list, ada_new_objfile_observer): Adjust.
3108         (_initialize_tasks): Create this module's per-progspace
3109         data handle.
3110
3111 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3112
3113         * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
3114
3115 2011-09-16  Tristan Gingold  <gingold@adacore.com>
3116
3117         * fork-child.c (fork_inferior): Update comment.  Use alloca
3118         instead of xmalloc for argv.  Move len and shell_command
3119         declarations in the block where they are used.
3120         Only call execvp.  Factorize failure code.
3121
3122 2011-09-16  Abhijit Halder  <abhijit.k.halder@gmail.com>
3123
3124         Code cleanup.
3125         * parse.c (write_exp_elt): Change argument to pass a pointer of union
3126         `exp_element' instead of an element of the same and make the function
3127         static.
3128         (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
3129         (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
3130         (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
3131         Change argument of `write_exp_elt' function call.
3132         Remove extra spaces from comments.
3133         * parser-defs.h (write_exp_elt): Remove prototype.
3134
3135 2011-09-15  Paul Koning  <paul_koning@dell.com>
3136
3137         * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3138         count of item appended to list.
3139         * python/py-type.c (typy_fields): Likewise.
3140
3141 2011-09-15  Paul Koning  <paul_koning@dell.com>
3142
3143         * MAINTAINERS (Write After Approval): Add myself to the list.
3144
3145 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3146
3147         PR threads/12628
3148         * linux-fork.c (checkpoint_command): Disallow checkpointing of
3149         processes with multiple threads.
3150         (inf_has_multiple_thread_cb): New function.
3151         (inf_has_multiple_threads): New function.
3152
3153 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3154
3155         PR Python/12692 Add gdb.selected_inferior() to Python interface.
3156         * python/py-inferior.c (GdbMethods): New Python method definition.
3157
3158 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3159
3160         Handle multiple breakpoint hits in Python interface:
3161         * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3162         variable to breakpoints.
3163         * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3164         bps instead of single breakpoint. Fix some space typos.
3165         * python/py-stopevent.c (create_breakpoint_event_object): Rename
3166         variable to breakpoints.
3167
3168 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3169
3170         * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3171         note if the breakpoint is internal.
3172
3173 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3174
3175         * MAINTAINERS (Write After Approval): Add myself to the list
3176
3177 2011-09-14  Pedro Alves  <pedro@codesourcery.com>
3178
3179         * infrun.c (prepare_for_detach, wait_for_inferior)
3180         (fetch_inferior_event): Don't flush the register cache.
3181         * remote.c (struct stop_reply) <regcache>: Add comment.
3182
3183 2011-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3184
3185         Remove excessive DWARF expressions memory duplication.
3186         * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3187         for block.data.
3188         (indirect_pieced_value): Remove variable result.  Remove variable
3189         back_to and its use for baton.data.
3190         (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3191         block.data.
3192         * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3193         Update the function comment.
3194
3195 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
3196
3197         * inferior.h (ALL_INFERIORS): New.
3198         * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3199         for a stopped thread.
3200         (thread_db_find_new_threads): Look for threads in all inferiors.
3201
3202 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
3203
3204         * breakpoint.c (update_watchpoint): Handle the case of the
3205         watchpoint to update not being in the breakpoint list yet.
3206         (hw_watchpoint_use_count): New, factored out from
3207         hw_watchpoint_used_count.
3208         (hw_watchpoint_used_count): Rename to ...
3209         (hw_watchpoint_used_count_others): ... this.  Add `except'
3210         parameter.  Don't count resources of `except'.  Use
3211         hw_watchpoint_use_count.
3212
3213 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
3214
3215         * gdbthread.h (enum thread_state): Moved here.
3216         (struct thread_info): Rename `executing_' field to `executing' and
3217         `state_' to `state'.
3218         * thread.c (enum thread_state): Moved to gdbthread.h.
3219         (new_thread, add_thread_silent, delete_thread_1)
3220         (any_live_thread_of_process, thread_alive, set_running)
3221         (set_running, is_thread_state, any_running, is_executing)
3222         (set_executing, finish_thread_state, print_thread_info)
3223         (do_captured_thread_select): Adjust.
3224
3225 2011-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3226
3227         Fix compatibility with gcc < 4.3 and non-gcc compilers.
3228         * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3229
3230 2011-09-12  Pedro Alves  <pedro@codesourcery.com>
3231             Matt Rice  <ratmice@gmail.com>
3232
3233         PR gdb/13175
3234
3235         * interps.c (struct interp) <interpreter_out>: Delete field.
3236         (interp_new): Remove the data and uiout parameters and adjust.
3237         (interp_set): Only set the current_uiout from the interpreter's
3238         uiout after initializing the interpreter.  Adjust call to
3239         init_proc.
3240         (interp_ui_out): Adjust to call procs->ui_out_proc.
3241         (interp_data, interp_name): New.
3242         * interps.h (interp_init_ftype): Add `self' parameter.
3243         (interp_ui_out_ftype): New typedef.
3244         (struct interp_procs) <ui_out_proc>: New method pointer.
3245         (interp_new): Remove the data and uiout parameters.
3246         (interp_data, interp_name): Declare.
3247         * tui/tui-interp.c (tui_init): Adjust prototype.
3248         (tui_ui_out): New.
3249         (_initialize_tui_interp): Install tui_ui_out.  Don't instanciate
3250         tui_out here.  Adjust call to interp_new.
3251         * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3252         * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3253         (cli_ui_out): New.
3254         (_initialize_cli_interp): Install it.  Adjust call to interp_new.
3255         * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3256         * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3257         Initialize mi->uiout depending on the mi_version as extracted from
3258         the interpreter's name.
3259         (mi_ui_out): New.
3260         (_initialize_mi_interp): Install mi_ui_out.  Adjust calls to
3261         interp_new.  Don't allocate the ui_out's of the interpreters here.
3262
3263 2011-09-12  Aleksandar Ristovski  <aristovski@qnx.com>
3264
3265         * solib.c (solib_used): New function.
3266         (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3267         by another so_list object before freeing it.
3268
3269 2011-09-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3270
3271         Code cleanup.
3272         * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3273         values.
3274
3275 2011-09-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
3276
3277         Code cleanup.
3278         * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3279         (amd64_skip_xmm_prologue): ... this new function.  Describe its
3280         parameters.  No longer use amd64_prologue_line_bug.
3281         * defs.h (producer_is_gcc_ge_4): New declaration.
3282         * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3283         (process_full_comp_unit): Update its caller.  Remove
3284         amd64_prologue_line_bug initialization.
3285         * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3286         * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3287
3288 2011-09-09  Pedro Alves  <pedro@codesourcery.com>
3289
3290         * linux-nat.h (enum resume_kind): New.
3291         (struct lwp_info) <last_resume_kind>: New field.
3292         * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3293         resume_stop on the new lwp.
3294         (add_lwp): Set last_resume_kind as resume_continue by default.
3295         (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3296         (resume_lwp): New, factored out from resume_callback.  Also check
3297         for pending status in lp->waitstatus.
3298         (resume_callback): Reimplement.
3299         (resume_clear_callback): Set last_resume_kind as resume_stop.
3300         (resume_set_callback): Set last_resume_kind as resume_continue.
3301         (linux_nat_resume, linux_handle_extended_wait): Set
3302         last_resume_kind.
3303         (running_callback): Also check lp->waitstatus for pending events.
3304         (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3305         is resume_step.
3306         (stop_and_resume_callback): Don't re-resume if the core wanted the
3307         lwp stopped.  Use resume_lwp instead of resume_callback.  Avoid
3308         using an invalidated pointer.
3309         (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3310         SIGSTOPs if the core wanted the LWP to stop.
3311         (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3312         wanted the lwp to stop.  If the core wanted the lwp to stop, and
3313         the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3314         of TARGET_SIGNAL_STOP.
3315         (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3316         here.  Instead, signal the lwp, and set the last_resume_kind to
3317         resume_stop.
3318
3319 2011-09-09  Pedro Alves  <pedro@codesourcery.com>
3320
3321         * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3322         -1 (error), if the lwp exits right after attaching.
3323
3324 2011-09-08  Doug Evans  <dje@google.com>
3325
3326         * py-cmd.c: Some minor formatting fixes.
3327         (gdbpy_parse_command_name): Rename text arg to name, make const.
3328         All callers updated.
3329         * python-internal.h (gdbpy_parse_command_name): Update.
3330
3331         * cli/cli-decode.c (add_cmd): Add comment.
3332
3333 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3334
3335         PR breakpoints/12435
3336         * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3337         next_sal, buf, offset and xmmreg.  Advance PC if it sees the PR.
3338         * dwarf2read.c (process_full_comp_unit): Initialize
3339         amd64_prologue_line_bug.
3340         * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3341
3342 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3343
3344         Fix TUI screen corruption.
3345         * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3346         batch_flag.
3347
3348 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3349
3350         * findvar.c (read_var_value): Never return NULL, throw an error
3351         instead.  Update the function comment.  State symbol name in the error
3352         messages.
3353         * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3354         read_var_value.
3355         * stack.c (print_frame_args): Likewise.
3356         * valops.c (value_of_variable): Likewise.
3357
3358 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3359
3360         * stack.c (print_frame_args): New variable except.  Wrap
3361         read_var_value and common_val_print into TRY_CATCH.
3362
3363 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3364
3365         * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3366         caller to value_of_this.
3367         * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3368         Twice.
3369         * valops.c (value_of_this): Remove parameter complain and variable ret.
3370         Update function comment.  Never return NULL by this code.
3371         (value_of_this_silent): New function.
3372         * value.h (value_of_this): Remove parameter complain.
3373         (value_of_this_silent): New declaration.
3374
3375 2011-09-07  Yao Qi  <yao@codesourcery.com>
3376
3377         * gdbthread.h (struct thread_info): Remove fields
3378         `stepping_through_solib_after_catch' and
3379         `stepping_through_solib_catchpoints'.
3380         * infrun.c (init_thread_stepping_state): Update.
3381         (process_event_stop_test, currently_stepping): Update.
3382         (currently_stepping_or_nexting_callback): Update.
3383
3384 2011-09-07  Yao Qi  <yao@codesourcery.com>
3385
3386         * gdbthread.h (struct thread_info): Comment on field
3387         `step_after_step_resume_breakpoint'.
3388
3389 2011-09-07  Abhijit Halder  <abhijit.k.halder@gmail.com>
3390
3391         * remote.c (remote_console_output): Reindent.
3392
3393 2011-09-06  Luis Machado  <lgustavo@codesourcery.com>
3394
3395         * frame.c (has_stack_frames): Check for currently selected
3396         traceframe.
3397
3398 2011-09-06  Pedro Alves  <pedro@codesourcery.com>
3399
3400         * event-top.h (MAXPROMPTS, struct prompts): Delete.
3401         (set_async_annotation_level, set_async_prompt, pop_prompt)
3402         (push_prompt, new_async_prompt): Delete declarations.
3403         * top.h (get_prompt, set_prompt): Change prototype.
3404         (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3405         declarations.
3406         * top.c (command_loop):
3407         (top_prompt): New global.
3408         (get_prefix, set_prefix, get_suffix, ): Delete.
3409         (get_prompt, set_prompt): Rewrite.
3410         (show_new_async_prompt): Rename to ...
3411         (show_prompt): ... this.
3412         (init_main): Adjust.  Don't handle --annotate=2 here.
3413         * event-top.c (new_async_prompt): Delete.
3414         (the_prompts): Delete.
3415         (more_to_come): Make static.
3416         (display_gdb_prompt): Use top_level_prompt() to compute the top
3417         level prompt, and don't notify the before_prompt observers
3418         directly here.  Always trick readline into not trying to display
3419         the prompt if sync_execution and displaying the primary prompt.
3420         If displaying a local/secondary prompt, always show it, even if
3421         sync_execution is set.
3422         (change_annotation_level): Delete.
3423         (top_level_prompt): New, based on change_annotation_level.
3424         (push_prompt, pop_prompt): Delete.
3425         (async_disable_stdin): No longer pushes prompt.
3426         (command_line_handler): No longer pushes or pops prompt.  If more
3427         input is expected, call display_gdb_prompt with an explicit empty
3428         prompt.
3429         (async_stop_sig): Adjust.
3430         (set_async_annotation_level, set_async_prompt): Delete.
3431         * python/python.c (before_prompt_hook): Adjust.
3432
3433 2011-09-05  Pedro Alves  <pedro@codesourcery.com>
3434
3435         PR cli/13110
3436
3437         * infrun.c (fetch_inferior_event): Check if there's a selected
3438         thread before checking if the selected thread is executing.
3439
3440 2011-09-05  Pedro Alves  <pedro@codesourcery.com>
3441
3442         * inf-loop.c (execute_command): Don't check if the current thread
3443         if running before synchronously waiting for command completion.
3444         * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3445         here.
3446         (normal_stop): Call async_enable_stdin here.
3447         * inf-loop.c (inferior_event_handler): Don't call
3448         async_enable_stdin, nor handle "set exec-done-display" here.
3449
3450 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
3451
3452         GDB 7.3.1 released.
3453
3454 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
3455
3456         * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3457
3458 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
3459
3460         * NEWS: Add entry for OpenBSD/NetBSD build failure.
3461
3462 2011-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3463
3464         * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3465
3466 2011-09-02  Matt Rice  <ratmice@gmail.com>
3467
3468         PR gdb/10720
3469         * event-top.c (cli_command_loop): Replace readline setup with
3470         direct call to display_gdb_prompt.
3471         (display_gdb_prompt): Do not call observer mechanism during
3472         synchronous execution.
3473
3474 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
3475
3476         * linux-nat.c (in_pid_list_p): New.
3477         (linux_record_stopped_pid): Delete.
3478         (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3479         already attached to the LWP.  Return an indication if so.
3480         (linux_nat_filter_event): Adjust.
3481         * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3482         returning an indication to ignore this thread.
3483
3484 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
3485
3486         * top.c: Include interps.h.
3487         (execute_command): If the target can async, but the interpreter is
3488         in sync mode, synchronously wait for the command to finish before
3489         returning.
3490         (execute_command_to_string): Force the interpreter to sync mode.
3491         * infrun.c: Include interps.h.
3492         (fetch_inferior_event): Don't restore the prompt yet if the
3493         interpreter is in sync mode.
3494         * interps.c (interpreter_async): New global.
3495         * interps.h (interpreter_async): Declare.
3496         * inf-loop.c: Include interps.h.
3497         (inferior_event_handler): Don't print the language change or run
3498         breakpoint commands yet if the interpreter in is sync mode.
3499         * main.c (captured_command_loop): Flip the interpreter to async
3500         mode.
3501         * cli/cli-script.c: Include interps.h.
3502         (execute_user_command, while_command, if_command): Force the
3503         interpreter to sync mode.
3504         * python/python.c: Include interps.h.
3505         (python_command, execute_gdb_command): Force the interpreter to
3506         sync mode.
3507
3508 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
3509
3510         * value.c (show_convenience): Catch errors thrown while printing
3511         each internal variable.
3512         * infrun.c (validate_siginfo_access): New function.
3513         (siginfo_value_read, siginfo_value_write): Call it.
3514
3515 2011-09-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3516
3517         Revert:
3518         2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
3519         * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3520         attribute.
3521
3522 2011-08-29  Yao Qi  <yao@codesourcery.com>
3523
3524         * solib-dsbt.c (bfd_lookup_symbol): Removed.
3525         (cmp_name): New.
3526         (enable_break2): Update caller.
3527         * solib-frv.c (bfd_lookup_symbol): Removed.
3528         (cmp_name): New.
3529         (enable_break2): Update caller.
3530         * solib-pa64.c (bfd_lookup_symbol): Removed.
3531         (cmp_name): New.
3532         * solib-svr4.c (bfd_lookup_symbol): Removed.
3533         (cmp_name_and_sec_flags): New.
3534         (enable_break): Update caller.
3535         * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3536         (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3537         (gdb_bfd_lookup_symbol): New.
3538         * solib.h: Functions declarations.
3539
3540 2011-08-29  Yao Qi  <yao@codesourcery.com>
3541
3542         * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3543         and solib-dsbt.o.
3544
3545 2011-08-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
3546
3547         Fix TUI stepi on code without symbols.
3548         * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3549         current PC instead.
3550
3551 2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3552
3553         Code cleanup.
3554         * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3555         and the static keyword.
3556         * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3557         Make prefix an array.
3558         * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3559         * mi/mi-main.c (get_register): Remove stb initialization and the static
3560         keyword.
3561
3562 2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3563
3564         Code cleanup - make mi_opt const.
3565         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3566         opts const.
3567         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3568         * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3569         (mi_cmd_env_dir): Likewise.
3570         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3571         (mi_cmd_target_file_put): Likewise.
3572         * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3573         * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3574         * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3575         (mi_valid_noargs): Make opts const.
3576         * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3577         * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3578         (mi_cmd_data_read_memory): Likewise.
3579         (mi_cmd_data_read_memory_bytes): Likewise.
3580         (mi_cmd_data_write_memory): Likewise.
3581
3582 2011-08-26  Matt Rice  <ratmice@gmail.com>
3583
3584         * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3585         bcache_xmalloc,  replace bcache_xmalloc with call to
3586         psymbol_bcache_init for psymbol_cache.
3587         * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3588
3589 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3590
3591         * inf-loop.c (inferior_event_handler): Add exception_print in
3592         INF_EXEC_COMPLETE.
3593
3594 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3595
3596         * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3597         make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3598         * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3599         * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3600         * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3601         call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3602         Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3603         * infrun.c (fetch_inferior_event): Call
3604         make_bpstat_clear_actions_cleanup.
3605         * top.c (execute_command): New variable cleanup_if_error, call
3606         make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3607         * utils.c (do_bpstat_clear_actions_cleanup)
3608         (make_bpstat_clear_actions_cleanup): New functions.
3609
3610 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
3611
3612         * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3613         either the parent or the child forks.  Rename a couple locals.
3614
3615 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
3616
3617         * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3618         library call.  Avoid reading the `status' local if all waitpid
3619         calls failed.
3620
3621 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
3622
3623         * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3624         opening /proc/PID/task always succeeds.
3625
3626 2011-08-26  Aleksandar Ristovski <aristovski@qnx.com>
3627
3628         * linespec.c (symtab_from_filename): Check for the end of string.
3629
3630 2011-08-26  Marc Khouzam  <marc.khouzam@ericsson.com>
3631
3632         PR mi/11912
3633         * varobj.c (cplus_describe_child): Add the keyword
3634         'class' to the output of the method when dealing 
3635         with a cast to a base class.
3636
3637 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3638
3639         No functionality change.
3640         * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3641         function comment a reference, new variables tp and bs, move here code
3642         from throw_exception.
3643         * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3644         describe it in the comment.
3645         * exceptions.c (throw_exception): Remove variable tp, move the code for
3646         bpstat_clear_actions to bpstat_clear_actions.
3647
3648 2011-08-24  Luis Machado  <lgustavo@codesourcery.com>
3649
3650         * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3651         * linux-nat.c: Include linux-procfs.h.
3652         (linux_proc_get_tgid): Move to ...
3653         * common/linux-procfs.c: ... here. New file.
3654         * common/linux-procfs.h: New file.
3655         * linux-thread-db.c: Include linux-procfs.h.
3656         * Makefile.in: Update dependencies.
3657         * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3658         * config/arm/linux.mh: Likewise.
3659         * config/i386/linux.mh: Likewise.
3660         * config/i386/linux64.mh: Likewise.
3661         * config/ia64/linux.mh: Likewise.
3662         * config/m32r/linux.mh: Likewise.
3663         * config/m68k/linux.mh: Likewise.
3664         * config/mips/linux.mh: Likewise.
3665         * config/pa/linux.mh: Likewise.
3666         * config/pa/linux.mh: Likewise.
3667         * config/powerpc/linux.mh: Likewise.
3668         * config/powerpc/ppc64-linux.mh: Likewise.
3669         * config/powerpc/spu-linux.mh: Likewise.
3670         * config/sparc/linux.mh: Likewise.
3671         * config/sparc/linux64.mh: Likewise.
3672         * config/xtensa/linux.mh: Likewise.
3673
3674 2011-08-24  Hui Zhu  <teawater@gmail.com>
3675
3676         * tracepoint.c (cond_string_is_same): New function.
3677         (find_matching_tracepoint): Add condition check
3678         by cond_string_is_same.
3679
3680 2011-08-23  Josh Matthews  <josh@joshmatthews.net>
3681
3682         Fix build error in Darwin port.
3683         * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3684
3685 2011-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3686
3687         Code cleanup.
3688         * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3689         (command_line_is_silent): New function.
3690         (bpstat_do_actions_1): No longer use commands_left, use
3691         command_line_is_silent for commands.
3692         (bpstat_alloc): Remove clearing of commands_left.
3693         (bpstat_stop_status): Remove initialization of commands_left, use
3694         command_line_is_silent.
3695         * breakpoint.h (struct bpstats): Remove commands_left.
3696
3697 2011-08-18  Keith Seitz  <keiths@redhat.com>
3698
3699         PR c++/12266
3700         * cp-name-parser.y (struct demangle_info): Remove unused
3701         member PREV.
3702         (d_grab): Likewise.
3703         (allocate_info): Change return type to struct demangle_info *.
3704         Always allocate a new demangle_info.
3705         Remove unused PREV pointer.
3706         (cp_new_demangle_parse_info): New function.
3707         (cp_demangled_name_parse_free): New function.
3708         (do_demangled_name_parse_free_cleanup): New function.
3709         (make_cleanup_cp_demangled_name_parse_free): New function.
3710         (cp_demangled_name_to_comp): Change return type to
3711         struct demangle_parse_info *.
3712         Allocate a new storage for each call.
3713         (main): Update usage for cp_demangled_name_to_comp
3714         API change.
3715         * cp-support.h (struct demangle_parse_info): New structure.
3716         (cp_demangled_name_to_comp): Update API change for
3717         return type.
3718         (cp_new_demangle_parse_info): Declare.
3719         (make_cleanup_cp_demangled_name_parse_free): New declaration.
3720         (cp_demangled_name_parse_free): Declare.
3721         * cp-support.c (cp_canonicalize_string): Update API
3722         change for cp_demangled_name_to_comp.
3723         (mangled_name_to_comp): Likewise.
3724         Return struct demangle_parse_info, too.
3725         (cp_class_name_from_physname): Update mangled_name_to_comp
3726         API change.
3727         (method_name_from_physname): Likewise.
3728         (cp_func_name): Update API change for cp_demangled_name_to_comp.
3729         (cp_remove_params): Likewise.
3730         * python/py-type.c (typy_legacy_template_argument): Likewise.
3731
3732         * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3733         (cp_merge_demangle_parse_infos): Declare.
3734         * cp-support.c (ignore_typedefs): New file global.
3735         (copy_string_to_obstack): New function.
3736         (inspect_type): New function.
3737         (replace_typedefs): New function.
3738         (replace_typedefs_qualified_name): New function.
3739         (cp_canonicalize_string_no_typedefs): New function.
3740         * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3741         (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3742         * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3743         instead of cp_canonicalize_string.
3744         (find_method): Likewise.
3745         (decode_compound): Before looking up the name, call
3746         cp_canonicalize_string_no_typedefs.
3747         (decode_variable): Likewise.
3748
3749 2011-08-17  Phil Muldoon  <pmuldoon@redhat.com>
3750             Tom Tromey  <tromey@redhat.com>
3751             Matt Rice <ratmice@gmail.com>
3752
3753         * python/lib/gdb/prompt.py: New file.
3754         * python/lib/gdb/command/prompt.py: New file.
3755         * NEWS: Document set extended-prompt and gdb.prompt library
3756
3757 2011-08-16  Yao Qi  <yao@codesourcery.com>
3758
3759         * tic6x-linux-tdep.c: Move const arrays definition from here...
3760         * tic6x-tdep.c: to here ...
3761
3762 2011-08-14  Yao Qi  <yao@codesourcery.com>
3763
3764         * NEWS: New port to Texas Instruments TMS320C6x.
3765
3766 2011-08-14  Andrew Jenner  <andrew@codesourcery.com>
3767             Bernd Schmidt  <bernds@codesourcery.com>
3768             Yao Qi  <yao@codesourcery.com>
3769
3770         * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3771         * solib-dsbt.c: New file.  Support DSBT shared object.
3772         * tic6x-linux-tdep.c: New file.
3773         * tic6x-tdep.c: New file.
3774         * tic6x-tdep.h: New file.
3775
3776 2011-08-14  Andrew Stubbs <ams@codesourcery.com>
3777             Yao Qi  <yao@codesourcery.com>
3778
3779         * remote.c (PACKET_qXfer_fdpic): New enum value.
3780         (remote_protocol_features): Add qXfer:fdpic:read packet.
3781         (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3782         (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3783         * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3784
3785 2011-08-14  Yao Qi  <yao@codesourcery.com>
3786
3787         Target description for tic6x.
3788         * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3789         tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3790         * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3791         * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3792         * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3793         * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3794         * features/tic6x-c64xp-linux.xml: New.
3795         * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3796         * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3797         * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3798         * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3799         * regformats/tic6x-c64xp.dat,
3800         regformats/tic6x-c62x-linux.dat: Generated.
3801         * regformats/tic6x-c64x-linux.dat,
3802         regformats/tic6x-c64xp-linux.dat: Generated.
3803         * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3804         features/tic6x-*.c files.
3805         Add regformats/tic6x-*.dat files.
3806
3807 2011-08-12  Doug Evans  <dje@google.com>
3808
3809         * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3810         * python/py-symbol.c (sympy_get_type): New function.
3811         (symbol_object_getset): Add "type".
3812
3813 2011-08-12  Pedro Alves  <pedro@codesourcery.com>
3814
3815         PR tui/13073
3816
3817         * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3818         empty name.
3819         (tui_show_register_group): Don't store a byte buffer in the data
3820         element's value.
3821         (tui_register_format): Skip registers with an empty name.
3822         (tui_get_register): Store a struct value in the data element's
3823         value field instead of a byte buffer holding the raw register
3824         contents.  Account for optimized-out and unavailable registers
3825         when comparing register contents.
3826
3827 2011-08-09  Pedro Alves  <pedro@codesourcery.com>
3828
3829         * printcmd.c (current_display_number): Update comment.
3830         (disable_current_display_cleanup): Delete.
3831         (do_one_display): Use make_cleanup_restore_integer.  Gracefully
3832         catch errors thrown while evaluating and printing the display.
3833
3834 2011-08-09  Tom Tromey  <tromey@redhat.com>
3835
3836         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3837
3838 2011-08-09  Pedro Alves  <pedro@codesourcery.com>
3839
3840         * elfread.c (elf_symtab_read): Rework comments.
3841         * maint.c (maintenance_command): Ditto.
3842         * somread.c (som_symtab_read): Ditto.
3843         * solib.c (solib_find, solib_map_sections, update_solib_list)
3844         (solib_add, info_sharedlibrary_command, solib_name_from_address)
3845         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3846         (sharedlibrary_command, no_shared_libraries): Ditto.
3847         * solib-irix.c (locate_base, disable_break, enable_break)
3848         (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3849         (irix_current_sos, irix_open_symbol_file_object)
3850         (irix_special_symbol_handling): Ditto.
3851         * solib-sunos.c (locate_base, first_link_map_member)
3852         (sunos_current_sos, disable_break, enable_break)
3853         (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3854         Ditto.
3855         * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3856         (open_symbol_file_object, svr4_current_sos, enable_break)
3857         (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3858         Ditto.
3859         * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3860         (frv_current_sos, enable_break, frv_special_symbol_handling)
3861         (frv_solib_create_inferior_hook): Ditto.
3862         * solist.h (struct target_so_ops): Extend the comments of the
3863         special_symbol_handling, current_sos and open_symbol_file_object
3864         methods.
3865
3866 2011-08-09  Phil Muldoon  <pmuldoon@redhat.com>
3867
3868         * python/lib/gdb/__init__.py: Auto-load files in command and
3869         function directories.
3870         * python/python.c (finish_python_initialization): Use
3871         os.path.join.
3872         * python/lib/gdb/command/pretty_printers.py: Self register
3873         command.
3874         * NEWS: Document auto-loading.
3875
3876 2011-08-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3877
3878         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3879         (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3880         objfile_gdbarch.  Fix BFD_ENDIAN_BIG case.
3881
3882 2011-08-08  Tom Tromey  <tromey@redhat.com>
3883
3884         * breakpoint.c (clean_up_filters): Remove.
3885         (catch_syscall_split_args): Use VEC_cleanup.
3886
3887 2011-08-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3888
3889         * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3890         (main): Uncomment "Demangling error\n".
3891
3892 2011-08-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
3893
3894         * solib-target.c (segment_attributes): Make them static.
3895         (section_attributes, library_children, library_attributes): Likewise.
3896         (library_list_children, library_list_attributes): Likesise.
3897         (library_list_elements): Likewise.
3898
3899 2011-08-05  Pedro Alves  <pedro@codesourcery.com>
3900
3901         * exceptions.c (throw_exception): Don't disable the current
3902         display.
3903         * printcmd.c (disable_current_display_cleanup): New function.
3904         (do_one_display): Install a cleanup to disable the current display
3905         if doing the display throws.
3906
3907 2011-08-05  Eli Zaretskii  <eliz@gnu.org>
3908
3909         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3910         initialization of the tp_new member to the corresponding
3911         gdbpy_initialize_* function.
3912         * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3913         * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3914         * python/py-function.c (gdbpy_initialize_functions): Likewise.
3915         * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3916         * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3917
3918 2011-08-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3919
3920         * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3921         (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3922         (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3923         references to current_uiout.
3924
3925 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
3926
3927         * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3928         (start_event_loop): Use TRY_CATCH instead of catch_errors.
3929         * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3930         * top.c (gdb_readline_wrapper): Adjust.
3931         * tui/tui-interp.c (tui_command_loop):
3932         (_initialize_tui_interp): Don't install it.
3933
3934 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
3935
3936         * ui-out.h (uiout): Rename to ...
3937         (current_uiout): ... this.
3938         * ui-out.c (uiout): Rename to ...
3939         (current_uiout): ... this.
3940         * ada-lang.c (print_it_exception, print_one_exception)
3941         (print_mention_exception): Adjust.
3942         * breakpoint.c (watchpoint_check): Adjust.
3943         (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3944         (default_collect_info, watchpoints_info, print_one_catch_fork)
3945         (print_one_catch_vfork, print_one_catch_syscall)
3946         (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3947         (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3948         (print_it_watchpoint, print_mention_watchpoint)
3949         (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3950         (print_it_exception_catchpoint, print_one_exception_catchpoint)
3951         (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3952         (bkpt_print_mention, momentary_bkpt_print_it)
3953         (tracepoint_print_mention, update_static_tracepoint)
3954         (tracepoints_info, save_breakpoints): Adjust.
3955         * cli-out.c (field_separator): Adjust.
3956         * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3957         * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3958         * frame.c (get_current_frame): Adjust.
3959         * infcmd.c (run_command_1, print_return_value): Adjust.
3960         * inferior.c (inferior_command, info_inferiors_command): Adjust.
3961         * infrun.c (print_end_stepping_range_reason): Adjust.
3962         (print_signal_exited_reason, print_exited_reason): Adjust.
3963         (print_signal_received_reason, print_no_history_reason): Adjust.
3964         * interps.c (interp_set): Adjust.
3965         * osdata.c (info_osdata_command): Adjust.
3966         * progspace.c (maintenance_info_program_spaces_command): Adjust.
3967         * remote-fileio.c (remote_fileio_request): Adjust.
3968         * remote.c (show_remote_cmd): Adjust.
3969         * solib.c (info_sharedlibrary_command): Adjust.
3970         * source.c (print_source_lines_base): Adjust.
3971         * stack.c (print_stack_frame): Adjust.
3972         (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3973         * symfile-mem.c (add_vsyscall_page): Adjust.
3974         * symfile.c (load_progress, generic_load)
3975         (print_transfer_performance): Adjust.
3976         * thread.c (info_threads_command, restore_selected_frame)
3977         (thread_command): Adjust.
3978         * top.c (make_cleanup_restore_ui_file): Adjust.
3979         * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3980         (print_one_static_tracepoint_marker): Adjust.
3981         * cli/cli-cmds.c (print_disassembly): Adjust.
3982         * cli/cli-decode.c (print_doc_line): Adjust.
3983         * cli/cli-interp.c (safe_execute_command): Adjust.
3984         * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3985         (handle_redirections): Adjust.
3986         * cli/cli-script.c (show_user_1): Adjust.
3987         * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3988         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3989         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3990         * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3991         (mi_cmd_env_dir): Adjust.
3992         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3993         (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3994         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3995         (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3996         (list_args_or_locals): Adjust.
3997         * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3998         (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3999         (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
4000         (mi_cmd_var_list_children, mi_cmd_var_info_type)
4001         (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
4002         (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
4003         (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
4004         * mi/mi-interp.c (mi_on_normal_stop): Adjust.
4005         * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
4006         (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
4007         (list_available_thread_groups, mi_cmd_list_thread_groups)
4008         (mi_cmd_data_list_register_names)
4009         (mi_cmd_data_list_changed_registers)
4010         (mi_cmd_data_list_register_values, get_register)
4011         (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
4012         (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
4013         (mi_cmd_list_target_features, mi_cmd_add_inferior)
4014         (mi_execute_command, mi_load_progress): Adjust.
4015         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
4016         * python/py-auto-load.c (print_script, info_auto_load_scripts):
4017         Adjust.
4018         * python/py-breakpoint.c (bppy_get_commands): Adjust.
4019         * tui/tui-interp.c (tui_command_loop): Adjust.
4020         * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
4021
4022 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
4023
4024         * exceptions.c (struct catcher): Remove saved_uiout field.
4025         (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
4026         no longer save/resvore the global ui_out builder.
4027         (catch_exceptions_with_msg): Save/override/restore the global
4028         ui_out builder manually instead of relying on TRY_CATCH to do it.
4029         (catch_errors): Save/restore the global ui_out builder manually
4030         instead of relying on TRY_CATCH to do it.
4031         * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
4032         parameter.
4033         (TRY_CATCH): Adjust.
4034         * cli/cli-interp.c (safe_execute_command): Save/override/restore
4035         the global ui_out builder manually instead of relying on TRY_CATCH
4036         to do it.
4037
4038 2011-08-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4039
4040         * breakpoint.c (update_global_location_list): Ensure
4041         invariant 'first loc marked not duplicated and inserted,
4042         following locs marked duplicated/not inserted' is respected
4043         for multiple locations at the same address.
4044         (unduplicated_should_be_inserted) New function.
4045         (swap_insertion) New function.
4046
4047 2011-08-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4048
4049         * stack.c (print_frame_arguments_choices): Comment typo fix.
4050
4051 2011-08-01  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4052
4053         Revert:
4054         2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4055         * breakpoint.c (insert_bp_location): Remove disabled_breaks
4056         argument.  Update callers.
4057
4058 2011-08-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
4059
4060         PR gdb/13045
4061         * doublest.c (convert_doublest_to_floatformat): Pass correct
4062         mantissa length to put_field.
4063
4064 2011-08-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4065
4066         * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
4067         exception_print code path.
4068         (backtrace_command): Remove variable e.  Protect arg by make_cleanup in
4069         advance.  Simplify memset.  Remove TRY_CATCH.  Remove explicit xfree.
4070         (backtrace_full_command):  Remove variable e.  Remove TRY_CATCH.
4071
4072 2011-08-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4073
4074         Code cleanup.
4075         * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
4076         Remove, merge them into ...
4077         (print_stack_frame): ... here with a TRY_CATCH.  New variable e, remove
4078         variable args and its initialization.
4079         (struct print_args_args, print_args_stub): Remove, merge them into
4080         print_frame.
4081         (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
4082         them into ...
4083         (do_gdb_disassembly): ... here.  Remove variable args and its
4084         initialization.
4085         (print_frame): Remove variable args and its initialization, new
4086         variable gdbarch and numargs (from print_args_stub), inline here
4087         print_args_stub with a TRY_CATCH.
4088         (struct backtrace_command_args, backtrace_command_stub): Remove, merge
4089         them into ...
4090         (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
4091         New variable e, remove variable btargs and its initialization.
4092
4093 2011-08-01  Tristan Gingold  <gingold@adacore.com>
4094
4095         * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
4096
4097 2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4098
4099         * breakpoint.c (insert_bp_location): Document return value.
4100         (insert_breakpoint_locations): Fix documentation.
4101         (remove_breakpoints): Add documentation.
4102
4103 2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4104
4105         * breakpoint.c (insert_bp_location): Remove disabled_breaks
4106         argument.  Update callers.
4107
4108 2011-07-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
4109
4110         * stack.c (print_frame_info): Comment typo fix.
4111
4112 2011-07-29  Sterling Augustine  <saugustine@google.com>
4113
4114         * MAINTAINERS (Write After Approval): Add myself to the list.
4115
4116 2011-07-29  Tom Tromey  <tromey@redhat.com>
4117
4118         * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
4119         (library_list_start_segment): Update.
4120         (library_list_start_section): Update.
4121
4122 2011-07-28  Phil Muldoon  <pmuldoon@redhat.com>
4123
4124         * varobj.c (value_get_print_value): Move hint check later into the
4125         function.  Comment function.  Free thevalue before reusing it.
4126
4127 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4128             Pedro Alves  <pedro@codesourcery.com>
4129
4130         * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
4131         value_one.
4132         * valops.c (value_one): Remove parameter lv.  Do not pass it to itself.
4133         Assert the result kind.
4134         * value.h (value_one): Remove parameter lv.
4135
4136 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4137
4138         Fix crash on lval_computed values.
4139         * valops.c (value_zero): Use not_lval for lval_computed.
4140
4141 2011-07-27  Tom Tromey  <tromey@redhat.com>
4142
4143         * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4144         gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4145
4146 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4147
4148         * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4149         "ptype" by their typedefs difference.
4150
4151 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4152
4153         * dwarf2expr.c (ctx_no_read_reg): New function.
4154         * dwarf2expr.h (ctx_no_read_reg): New declaration.
4155         * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4156         (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4157         (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4158
4159 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4160
4161         * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4162         (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4163         file.
4164         (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4165         * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4166         (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4167         (ctx_no_get_base_type): Move the functions here.
4168         * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4169         (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4170         (ctx_no_get_base_type): New declarations.
4171
4172 2011-07-27  Tom Tromey  <tromey@redhat.com>
4173
4174         * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4175         entries.
4176         * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4177         * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4178
4179 2011-07-26  Sterling Augustine  <saugustine@google.com>
4180
4181         * cli/cli-dump.c (dump_binary_file): Change parameter type to
4182         ULONGEST.
4183         (dump_bfd_file): Likewise.
4184
4185 2011-07-26  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4186
4187         * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4188         (remote_hw_watchpoint_length_limit): New variable.
4189         (_initialize_remote) add set,show cmds for this new variable.
4190         * gdb.texinfo: document these new commands.
4191         * NEWS: Mention these new commands.
4192
4193 2011-07-26  Pedro Alves  <pedro@codesourcery.com>
4194
4195         * breakpoint.c (works_in_software_mode_watchpoint): Also return
4196         true for software watchpoints.
4197
4198 2011-07-26  Joel Brobecker  <brobecker@adacore.com>
4199
4200         GDB 7.3 released.
4201
4202 2011-07-26  Tom Tromey  <tromey@redhat.com>
4203
4204         * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4205         * dwarf2read.c (read_indirect_string_at_offset): New function.
4206         (read_indirect_string): Use it.
4207         (dwarf_decode_macro_bytes): New function, taken from
4208         dwarf_decode_macros.  Handle DW_MACRO_GNU_*.
4209         (dwarf_decode_macros): Use it.  handle DW_MACRO_GNU_*.
4210         (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4211         New functions.
4212         (struct dwarf2_per_objfile) <macro>: New field.
4213         (dwarf2_elf_names): Add .debug_macro.
4214         (dwarf2_macros_too_long_complaint): Add 'section' argument.
4215         (dwarf2_locate_sections): Handle new section.
4216         (read_file_scope): Handle DW_AT_GNU_macros.
4217         (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4218
4219 2011-07-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
4220
4221         * NEWS: Mention dcache configuration.
4222         * dcache.c (dcache_set_list, dcache_show_list): New variables.
4223         (dcache_size, dcache_line_size): New variables.
4224         (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4225         (struct dcache_block): Make it expandable.
4226         (struct dcache_struct): New field.
4227         (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4228         (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4229         (dcache_poke_byte, dcache_print_line): Adjust.
4230         (set_dcache_size, set_dcache_line_size): New functions.
4231         (set_dcache_command, show_dcache_command): New functions.
4232         (_initialize_dcache): Add new commands.
4233
4234 2011-07-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
4235
4236         * progspace.h (struct program_space): Add solib_add_generation.
4237         * infcmd.c (post_create_inferior): Only call solib_add if not
4238         already done.
4239         * solib.c (solib_add): Increment solib_add_generation.
4240
4241 2011-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
4242
4243         Fix implicit pointer offsets.
4244         * dwarf2loc.c (indirect_pieced_value): Comment byte_offset.  Use also
4245         ptr.OFFSET.
4246
4247 2011-07-25  Tom Tromey  <tromey@redhat.com>
4248
4249         * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4250         const.
4251         (ada_exception_sal): Make 'ops' const.
4252         (ada_decode_exception_location): Likewise.
4253         (ada_decode_assert_location): Likewise.
4254         (catch_assert_command): Update.
4255         (catch_ada_exception_command): Update.
4256         (create_ada_exception_catchpoint): Make 'ops' const.
4257         * breakpoint.c (set_raw_breakpoint_without_location)
4258         (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4259         const.
4260         (create_internal_breakpoint): Update.
4261         (init_raw_breakpoint_without_location): Make 'ops' const.
4262         (init_raw_breakpoint, init_catchpoint)
4263         (create_fork_vfork_event_catchpoint)
4264         (create_syscall_event_catchpoint, init_breakpoint_sal)
4265         (create_breakpoint_sal, create_breakpoints_sal)
4266         (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4267         * breakpoint.h (struct breakpoint) <ops>: Now const.
4268         (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4269         const.
4270
4271 2011-07-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
4272
4273         * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4274
4275 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4276
4277         * breakpoint.h (print_recreate_thread): Declare.
4278         (struct breakpoint): Move step_count, pass_count,
4279         number_on_target, static_trace_marker_id,
4280         static_trace_marker_id_idx ...
4281         (struct tracepoint): ... to this new struct.
4282         (get_tracepoint, get_tracepoint_by_number_on_target)
4283         (get_tracepoint_by_number): Change return type to struct
4284         tracepoint pointer.
4285         * breakpoint.c (is_tracepoint_type): New, factored out from
4286         is_tracepoint.
4287         (is_tracepoint): Adjust.
4288         (print_one_breakpoint_location): Cast to struct tracepoint as
4289         necessary, and adjust.
4290         (print_recreate_catch_fork, print_recreate_catch_vfork)
4291         (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4292         print_recreate_thread.
4293         (init_breakpoint_sal): New, factored out from
4294         create_breakpoint_sal.
4295         (create_breakpoint_sal): Reimplement.
4296         (create_breakpoint): Allocate a struct tracecepoint if the caller
4297         wanted a tracepoint.  Use init_breakpoint_sal and
4298         install_breakpoint.
4299         (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4300         (print_recreate_masked_watchpoint)
4301         (print_recreate_exception_catchpoint): Call print_recreate_thread.
4302         (tracepoint_print_one_detail): Adjust.
4303         (tracepoint_print_recreate): Adjust.  Call print_recreate_thread.
4304         Dump the pass count here.
4305         (update_static_tracepoint): Adjust.
4306         (addr_string_to_sals): Adjust.
4307         (create_tracepoint_from_upload): Adjust.  Change return type to
4308         struct tracepoint pointer.
4309         (trace_pass_set_count): Change parameter type to struct tracepoint
4310         pointer, and adjust.
4311         (trace_pass_command): Adjust.
4312         (get_tracepoint, get_tracepoint_by_number_on_target)
4313         (get_tracepoint_by_number): Change return type to struct
4314         tracepoint pointer, and adjust.
4315         (print_recreate_thread): New, factored out from save_breakpoints.
4316         (save_breakpoints): Don't print thread and task and passcount
4317         recreation here.
4318         * remote.c (remote_download_tracepoint): Adjust.
4319         * tracepoint.c (trace_actions_command, validate_actionline)
4320         (start_tracing, tfind_1, trace_find_tracepoint_command)
4321         (trace_dump_command): Adjust.
4322         (find_matching_tracepoint): Change return type to struct
4323         tracepoint pointer, and adjust.
4324         (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4325         (tfile_trace_find, tfile_fetch_registers): Adjust.
4326         * tracepoint.h (create_tracepoint_from_upload): Change return type
4327         to struct tracepoint pointer.
4328         * ada-lang.c (print_recreate_exception): Call
4329         print_recreate_thread.
4330         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4331
4332 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4333
4334         * breakpoint.h (struct breakpoint): Move ops as first field.  Move
4335         exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4336         cond_exp_valid_block, val, val_valid, watchpoint_frame,
4337         watchpoint_thread, watchpoint_triggered ...
4338         (struct watchpoint): ... to this new struct.
4339         (is_watchpoint): Declare.
4340         (install_breakpoint): Add new `internal' parameter.
4341         * breakpoint.c (is_watchpoint): Delete declaration.
4342         (set_breakpoint_condition): Handle watchpoints.
4343         (is_watchpoint): Make public.
4344         (watchpoint_in_thread_scope): Change parameter type to struct
4345         watchpoint.
4346         (watchpoint_del_at_next_stop): Change parameter type to struct
4347         watchpoint.  Remove assertion.  Adjust.
4348         (update_watchpoint): Ditto.
4349         (insert_breakpoints, breakpoint_init_inferior)
4350         (watchpoints_triggered, watchpoint_check)
4351         (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4352         (bpstat_stop_status, print_one_breakpoint_location)
4353         (print_one_breakpoint_location, watchpoint_locations_match): Cast
4354         to struct watchpoint as necessary, and adjust.
4355         (install_breakpoint): Add `internal' argument.  If true, don't
4356         mention the new breakpoint.  Use set_breakpoint_number.
4357         (create_fork_vfork_event_catchpoint)
4358         (create_syscall_event_catchpoint): Adjust.
4359         (dtor_watchpoint): New.
4360         (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4361         (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4362         (print_it_watchpoint, print_mention_watchpoint)
4363         (print_recreate_watchpoint, insert_masked_watchpoint)
4364         (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4365         (print_one_detail_masked_watchpoint)
4366         (print_mention_masked_watchpoint)
4367         (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4368         necessary, and adjust.
4369         (watch_command_1): Allocate and initialize a struct watchpoint
4370         instead of a struct breakpoint.  Use install_breakpoint.
4371         (catch_exec_command_1): Adjust.
4372         (base_breakpoint_dtor): Delete accesses to watchpoint specific
4373         fields.
4374         (delete_breakpoint, enable_breakpoint_disp)
4375         (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4376         as necessary, and adjust.
4377         (initialize_breakpoint_ops): Install dtor_watchpoint as
4378         watchpoints' dtor method.
4379         * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4380         * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4381         to struct watchpoint as necessary, and adjust.
4382
4383 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4384
4385         * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4386         the the base class ops table.
4387         (catch_exception_breakpoint_ops)
4388         (catch_exception_unhandled_breakpoint_ops)
4389         (catch_assert_breakpoint_ops): Don't statically initialize.
4390         (initialize_ada_catchpoint_ops): New.
4391         (_initialize_ada_language): Call it.
4392         * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4393         (bkpt_breakpoint_ops): Forward declare.
4394         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4395         (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4396         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4397         (masked_watchpoint_breakpoint_ops)
4398         (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4399         (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4400         base class ops table.
4401         (null_re_set, null_check_status, null_works_in_software_mode)
4402         (null_resources_needed, null_print_one_detail): Delete.
4403         (bkpt_dtor): Rename to ...
4404         (base_breakpoint_dtor): ... this.  Make static.
4405         (bkpt_allocate_location): Rename to ...
4406         (base_breakpoint_allocate_location): ... this.  Make static.
4407         (base_breakpoint_re_set): New.
4408         (internal_error_pure_virtual_called): New.
4409         (base_breakpoint_insert_location, base_breakpoint_remove_location)
4410         (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4411         (base_breakpoint_works_in_software_mode)
4412         (base_breakpoint_resources_needed, base_breakpoint_print_it)
4413         (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4414         (base_breakpoint_print_recreate): New functions.
4415         (base_breakpoint_ops): New global.
4416         (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4417         (bkpt_breakpoint_hit): Make static.
4418         (bkpt_check_status): Delete.
4419         (bkpt_resources_needed): Make static.
4420         (bkpt_works_in_software_mode): Delete.
4421         (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4422         static.
4423         (bkpt_breakpoint_ops, internal_breakpoint_ops)
4424         (momentary_breakpoint_ops): Don't statically initialize.
4425         (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4426         Delete.
4427         (tracepoint_insert_location, tracepoint_remove_location)
4428         (tracepoint_check_status, tracepoint_works_in_software_mode)
4429         (tracepoint_print_it): Delete.
4430         (tracepoint_breakpoint_ops): Don't statically initialize.
4431         (initialize_breakpoint_ops): New.
4432         (_initialize_breakpoint): Call it.
4433         * breakpoint.h (null_re_set, null_works_in_software_mode)
4434         (null_resources_needed, null_check_status, null_print_one_detail):
4435         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4436         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4437         (bkpt_check_status, bkpt_resources_needed)
4438         (bkpt_works_in_software_mode, bkpt_print_it)
4439         (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4440         Delete declarations.
4441         (initialize_breakpoint_ops): Declare.
4442
4443 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4444
4445         * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4446         (momentary_bkpt_print_it): Simplify.
4447
4448 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4449
4450         Split internal, momentary and user breakpoints breakpoint_ops
4451         tables.
4452
4453         * breakpoint.c (internal_breakpoint_ops)
4454         (momentary_breakpoint_ops): Forward declare.
4455         (create_internal_breakpoint): Add new breakpoint_ops parameter.
4456         Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4457         (create_overlay_event_breakpoint)
4458         (create_std_terminate_master_breakpoint)
4459         (create_exception_master_breakpoint): Create breakpoints with
4460         internal_breakpoint_ops vtable.
4461         (set_longjmp_breakpoint): Create momentary breakpoints with
4462         momentary_breakpoint_ops vtable, using
4463         momentary_breakpoint_from_master.
4464         (create_thread_event_breakpoint, create_jit_event_breakpoint)
4465         (create_solib_event_breakpoint): Create breakpoints with
4466         internal_breakpoint_ops vtable.
4467         (set_momentary_breakpoint): Create breakpoints with
4468         momentary_breakpoint_ops vtable.
4469         (momentary_breakpoint_from_master): New, factored out from
4470         clone_momentary_breakpoint.
4471         (clone_momentary_breakpoint): Adjust.
4472         (watch_command_1): Create scope breakpoints with
4473         momentary_breakpoint_ops vtable.
4474         (bkpt_re_set): Remove handling of internal and momentary
4475         breakpoints.
4476         (bkpt_print_mention, bkpt_print_recreate): New.
4477         (bkpt_breakpoint_ops): Adjust.
4478         (internal_bkpt_re_set, internal_bkpt_check_status)
4479         (internal_bkpt_print_it, internal_bkpt_print_mention)
4480         (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4481         (momentary_bkpt_re_set, momentary_bkpt_check_status)
4482         (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4483         (momentary_bkpt_print_recreate): New.
4484         (momentary_breakpoint_ops): New.
4485
4486 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4487
4488         Implement most breakpoint_ops methods for all breakpoint types,
4489         and move the default handlings to the proper callbacks.
4490
4491         * breakpoint.c (update_watchpoint): Always call the breakpoint's
4492         works_in_software_mode method.
4493         (insert_bp_location): Go through breakpoint_ops->insert_location
4494         for software and hardware watchpoints.
4495         (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4496         breakpoint_ops.
4497         (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4498         for software and hardware watchpoints.
4499         (print_it_typical): Delete.
4500         (print_bp_stop_message): Always call the breakpoint_ops->print_it
4501         method.
4502         (watchpoint_check): Adjust comment.
4503         (bpstat_check_location): Simply always call the breakpoint's
4504         breakpoint_hit method.
4505         (bpstat_stop_status): Always call the breakpoint's check_status
4506         method.  Remove special cases for watchpoints and internal event
4507         breakpoints from here (moved to the check_status implementations).
4508         (print_one_breakpoint_location): Assume b->ops is never NULL.
4509         Remove static tracepoint marker id printing from here (moved to
4510         the print_one_detail callback implementation of tracepoints).
4511         (init_bp_location): Assert OPS is never NULL.
4512         (allocate_bp_location): Always call the breakpoint's
4513         allocate_location method, and remove the default code from here.
4514         (free_bp_location): Always call the location's dtor method, and
4515         remove the default code from here.
4516         (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4517         (set_raw_breakpoint_without_location): Add new breakpoint_ops
4518         parameter.  Pass it down.
4519         (set_raw_breakpoint): Ditto.
4520         (print_it_catch_fork): Adjust to take a bpstat as argument.
4521         (catch_fork_breakpoint_ops): Install methods.
4522         (print_it_catch_vfork): Adjust to take a bpstat as argument.
4523         (catch_vfork_breakpoint_ops): Install methods.
4524         (dtor_catch_syscall): Call the base dtor.
4525         (print_it_catch_syscall): Adjust to take a bpstat as argument.
4526         (catch_syscall_breakpoint_ops): Install methods.
4527         (dtor_catch_exec): Call the base dtor.
4528         (print_it_catch_exec): Adjust to take a bpstat as argument.
4529         (catch_exec_breakpoint_ops): Install methods.
4530         (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4531         the breakpoint's resources_needed method, and remove the default
4532         code from here.
4533         (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4534         breakpoint_ops.
4535         (clone_momentary_breakpoint): Clone the original's ops.
4536         (mention): Always call the breakpoint's print_mention method, and
4537         remove the default code from here.
4538         (create_breakpoint_sal): Adjust to pass the ops to
4539         set_raw_breakpoint rather than setting it manually.
4540         (create_breakpoint): Assert ops is never NULL.  Adjust to pass the
4541         ops to set_raw_breakpoint_without_location rather than setting it
4542         manually.
4543         (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4544         (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4545         (ranged_breakpoint_ops): Install methods.
4546         (break_range_command): Adjust to pass the ops to
4547         set_raw_breakpoint rather than setting it manually.
4548         (re_set_watchpoint, breakpoint_hit_watchpoint)
4549         (check_status_watchpoint, resources_needed_watchpoint)
4550         (works_in_software_mode_watchpoint, print_it_watchpoint)
4551         (print_mention_watchpoint, print_recreate_watchpoint): New
4552         functions.
4553         (watchpoint_breakpoint_ops): Install new methods.
4554         (print_it_masked_watchpoint): New function.
4555         (masked_watchpoint_breakpoint_ops): Install new methods.
4556         (watch_command_1): Adjust to pass the right breakpoint_ops to
4557         set_raw_breakpoint_without_location rather than setting it
4558         manually later.  Record the current pspace.
4559         (print_it_exception_catchpoint): Adjust to take a bpstat as
4560         argument.
4561         (gnu_v3_exception_catchpoint_ops): Install new methods.
4562         (say_where): New function.
4563         (null_re_set, null_check_status, null_works_in_software_mode)
4564         (null_resources_needed, null_print_one_detail, bp_location_dtor):
4565         New functions.
4566         (bp_location_ops): New global.
4567         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4568         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4569         (bkpt_check_status, bkpt_resources_needed)
4570         (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4571         (bkpt_print_recreate): New functions.
4572         (bkpt_breakpoint_ops): New global.
4573         (tracepoint_re_set, tracepoint_insert_location)
4574         (tracepoint_remove_location, tracepoint_breakpoint_hit)
4575         (tracepoint_check_status, tracepoint_works_in_software_mode)
4576         (tracepoint_print_it, tracepoint_print_one_detail)
4577         (tracepoint_print_mention, tracepoint_print_recreate): New
4578         functions.
4579         (tracepoint_breakpoint_ops): New global.
4580         (delete_breakpoint): Always call the breakpoint's dtor method, and
4581         remove the default handling from here.
4582         (breakpoint_re_set_default): Make static.
4583         (breakpoint_re_set_one): Always call the breakpoints re_set
4584         method, and remove the default handling from here.
4585         (trace_command, ftrace_command, strace_command)
4586         (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4587         to create_breakpoint.
4588         (save_breakpoints): Always call the breakpoint's print_recreate
4589         method, and remove the default handling from here.
4590
4591         * ada-lang.c (dtor_exception): Call the base dtor.
4592         (re_set_exception): Call the base method.
4593         (print_it_exception, print_it_catch_exception): Adjust to take a
4594         bpstat as argument.
4595         (catch_exception_breakpoint_ops): Install methods.
4596         (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4597         argument.
4598         (catch_exception_unhandled_breakpoint_ops): Install methods.
4599         (print_it_catch_assert): Adjust to take a bpstat as argument.
4600         (catch_assert_breakpoint_ops): Install methods.
4601
4602         * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4603         to take a bpstat as argument.
4604         (enum print_stop_action): Add describing comments to each enum
4605         value.
4606         (breakpoint_re_set_default): Delete declaration.
4607         (null_re_set, null_works_in_software_mode, null_resources_needed)
4608         (null_check_status, null_print_one_detail): Declare.
4609         (bkpt_breakpoint_ops): Declare.
4610         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4611         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4612         (bkpt_check_status, bkpt_resources_needed)
4613         (bkpt_works_in_software_mode, bkpt_print_it)
4614         (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4615         Declare.
4616
4617         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4618         bkpt_breakpoint_ops.
4619         * python/py-breakpoint.c (bppy_init): Ditto.
4620
4621 2011-07-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4622
4623         * MAINTAINERS (Write After Approval): Add myself to the list.
4624
4625 2011-07-23  Paul Pluzhnikov  <ppluzhnikov@google.com>
4626
4627         * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4628
4629 2011-07-22  Pedro Alves  <pedro@codesourcery.com>
4630
4631         * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4632         (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4633         (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4634         adjust.
4635         (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4636         (struct i386_debug_reg_state): New.
4637         (i386_init_dregs): New.
4638         (dr_mirror): New.
4639         (i386_cleanup_dregs): Use i386_init_dregs.
4640         (i386_show_dr): Add state parameter and adjust.
4641         (i386_insert_aligned_watchpoint): Ditto.  Don't pass the info to
4642         the inferior here.
4643         (i386_remove_aligned_watchpoint): Likewise.
4644         (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4645         (i386_update_inferior_debug_regs): New.
4646         (i386_insert_watchpoint): Work on a local mirror of the debug
4647         registers, and only update the inferior on success.
4648         (i386_remove_watchpoint): Ditto.
4649         (i386_region_ok_for_watchpoint): Adjust.
4650         (i386_stopped_data_address): Adjust.
4651         (i386_insert_hw_breakpoint): Adjust.
4652         (i386_remove_hw_breakpoint): Adjust.
4653
4654 2011-07-22  Tom Tromey  <tromey@redhat.com>
4655
4656         * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4657         from amd64_pseudo_register_read.  Change arguments.  Call
4658         mark_value_bytes_unavailable when needed.
4659         (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4660         set_gdbarch_pseudo_register_read.
4661         * sentinel-frame.c (sentinel_frame_prev_register): Use
4662         regcache_cooked_read_value.
4663         * regcache.h (regcache_cooked_read_value): Declare.
4664         * regcache.c (regcache_cooked_read_value): New function.
4665         (regcache_cooked_read): Call
4666         gdbarch_pseudo_register_read_value if available.
4667         * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4668         (i386_pseudo_register_read): Remove.
4669         * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4670         i386_pseudo_register_read.  Change arguments.  Call
4671         mark_value_bytes_unavailable when needed.
4672         (i386_pseudo_register_read_value): New function.
4673         (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4674         not set_gdbarch_pseudo_register_read.
4675         * gdbarch.sh (pseudo_register_read_value): New method.
4676         * gdbarch.c, gdbarch.h: Rebuild.
4677         * findvar.c (value_from_register): Call get_frame_register_value.
4678
4679 2011-07-22  Phil Muldoon  <pmuldoon@redhat.com>
4680
4681         * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4682         get_prefix.
4683         (display_gdb_prompt): Likewise.
4684         (change_annotation_level): Likewise.
4685         (push_prompt): Likewise.
4686         (pop_prompt): Likewise.
4687         (handle_stop_sig): Use get_prompt with a level.
4688         * top.c (command_loop): Use get_prompt with a level.
4689         (set_async_annotation_level): Use set_prompt with a level.
4690         (get_prefix): New function.
4691         (set_prefix): Ditto.
4692         (set_suffix): Ditto.
4693         (get_suffix): Ditto.
4694         (get_prompt): Accept a level argument.
4695         (set_prompt): Accept a level argument.  Free old prompts.  Set
4696         new_async_prompt if level is 0.
4697         (init_main): Use set_prompt with a level.  Do not set
4698         new_async_prompt.
4699         * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4700         * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4701         Modify set_prompt, get_prompt to account for levels.
4702         * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4703         level.
4704         * python/python.c (before_prompt_hook): Use set_prompt.
4705         
4706 2011-07-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
4707
4708         * defs.h: Add guard against inclusion in gdbserver.
4709         (struct ptid, ptid_t): Move to common/ptid.h.
4710         (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4711         xsnprintf, internal_error): Move to common/common-utils.h.
4712         (nomem): Delete.
4713         * gdb_assert.h: Move into common/ sub-directory.
4714         * gdb_locale.h: Ditto.
4715         * gdb_dirent.h: Ditto.
4716         * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4717         ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4718         Move into common/ptid.h.
4719         * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4720         (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4721         Change nomem to malloc_failure.
4722         * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4723         * utils.c (nomem): Rename to malloc_failure.
4724         (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4725         xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4726         (gdb_buildargv): Change nomem to malloc_failure.
4727         * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4728         ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4729         ptid_is_pid): Move into common/ptid.c.
4730         (initialize_infrun): Delete initialization of null_ptid and
4731         minus_one_ptid.
4732         * linux-nat.c (linux_nat_xfer_osdata): Defer to
4733         linux_common_xfer_osdata.
4734         * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4735         common/ptid.c and common/buffer.c.
4736         (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4737         common/ptid.h, common/buffer.h and common/linux-osdata.h.
4738         (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4739         (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4740         rules.
4741         * common/gdb_assert.h: New.
4742         * common/gdb_dirent.h: New.
4743         * common/gdb_locale.h: New.
4744         * common/buffer.c: New.
4745         * common/buffer.h: New.
4746         * common/ptid.c: New.
4747         * common/ptid.h: New.
4748         * common/xml-utils.c: New.
4749         * common/xml-utils.h: New.
4750         * common/common-utils.c: New.
4751         * common/common-utils.h: New.
4752         * common/linux-osdata.c: New.
4753         * common/linux-osdata.h: New.
4754         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4755         * config/arm/linux.mh (NATDEPFILES): Ditto.
4756         * config/i386/linux.mh (NATDEPFILES): Ditto.
4757         * config/i386/linux64.mh (NATDEPFILES): Ditto.
4758         * config/ia64/linux.mh (NATDEPFILES): Ditto.
4759         * config/m32r/linux.mh (NATDEPFILES): Ditto.
4760         * config/m68k/linux.mh (NATDEPFILES): Ditto.
4761         * config/mips/linux.mh (NATDEPFILES): Ditto.
4762         * config/pa/linux.mh (NATDEPFILES): Ditto.
4763         * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4764         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4765         * config/s390/s390.mh (NATDEPFILES): Ditto.
4766         * config/sparc/linux.mh (NATDEPFILES): Ditto.
4767         * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4768         * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4769
4770 2011-07-21  Matt Rice  <ratmice@gmail.com>
4771
4772         * NEWS: Add info macros and info definitions commands.
4773
4774 2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>
4775
4776         * NEWS: Document Python prompt substitution hook.
4777
4778 2011-07-18  Matt Rice  <ratmice@gmail.com>
4779
4780         PR macros/12999
4781         * macrotab.h (macro_callback_fn): Add new arguments to callback.
4782         * macrotab.c (foreach_macro): Ditto.
4783         (foreach_macro_in_scope): Ditto.
4784         * macrocmd.c (print_macro_callback): New function.
4785         (info_macro_command): Move some code to print_macro_definition.
4786         (print_macro_definition): New function.
4787         (print_one_macro): Add new arguments to callback.
4788         (info_definitions_command): New function.
4789         (info_macros_command): Ditto.
4790         (_initialize_macrocmd): Add info macros and info definitions commands.
4791         * symtab.c (add_macro_name): Add new arguments to callback.
4792
4793 2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>
4794             Tom Tromey  <tromey@redhat.com>
4795
4796         * top.c (set_prompt): Rewrite to free previous prompt, free
4797         asynch_new_prompt and set both on new prompts.
4798         * event-top.c (display_gdb_prompt): Add prompt substitution
4799         logic.
4800         * python/python.c (before_prompt_hook): New function.
4801
4802 2011-07-20  Matt Rice  <ratmice@gmail.com>
4803
4804         * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4805         arguments to store_unsigned_integer.
4806
4807 2011-07-20  Tom Tromey  <tromey@redhat.com>
4808
4809         * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4810         in some declaration-only cases.
4811
4812 2011-07-18  Tom Tromey  <tromey@redhat.com>
4813
4814         PR symtab/12984:
4815         * dwarf2read.c (dwarf2_section_info_def): New typedef.
4816         (struct dwarf2_per_objfile) <types>: Change to a VEC.
4817         (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4818         <debug_type_section>: New field.
4819         (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4820         (load_cu): Use appropriate section.
4821         (create_signatured_type_table_from_index): Add 'section'
4822         argument.
4823         (dwarf2_read_index): Only allow a single .debug_types section.
4824         (dw2_get_file_names): Use appropriate section.
4825         (read_type_comp_unit_head): Add 'section' argument.
4826         (create_debug_types_hash_table): Loop over all .debug_types
4827         sections.
4828         (init_cu_die_reader): Use appropriate section.
4829         (process_psymtab_comp_unit, load_partial_comp_unit)
4830         (load_full_comp_unit, read_die_and_children, find_partial_die)
4831         (lookup_die_type, determine_prefix, follow_die_offset): Update.
4832         (lookup_signatured_type_at_offset): Add 'section' argument.
4833         (read_signatured_type_at_offset): Add 'sect' argument.
4834         (read_signatured_type): Use appropriate section.
4835         (set_die_type, get_die_type_at_offset): Update.
4836         (dwarf2_per_objfile_free): Free all .debug_types sections, and
4837         VEC.
4838         (write_psymtabs_to_index): Don't allow index with more than one
4839         .debug_types section.
4840
4841 2011-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4842
4843         Fix crash if referenced CU is aged out.
4844         * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4845         xfree of block.data.
4846         (indirect_pieced_value): New variable back_to, use to for xfree of
4847         baton.data.
4848         (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4849         block.data.
4850         * dwarf2read.c (dwarf2_find_base_address): New prototype.
4851         (load_cu): New function from ...
4852         (dw2_do_instantiate_symtab): ... the code here ...
4853         (process_full_comp_unit): ... and here.
4854         (dwarf2_fetch_die_location_block): Call load_cu first.  Call xmemdup on
4855         retval.data.
4856
4857 2011-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4858
4859         * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4860         type.
4861
4862 2011-07-19  Gary Benson  <gbenson@redhat.com>
4863
4864         * infrun.c (struct execution_control_state): New member
4865         stop_func_filled_in.
4866         (clear_stop_func, fill_in_stop_func): New functions.
4867         (handle_inferior_event): Call clear_stop_func rather than
4868         manipulating the execution control state directly.
4869         Call fill_in_stop_func lazily as required rather than
4870         directly calling find_pc_partial_function in all cases.
4871
4872 2011-07-18  Tom Tromey  <tromey@redhat.com>
4873
4874         * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4875         checking for variable-sized array.
4876
4877 2011-07-18  Jean-Charles Delay  <delay@adacore.com>
4878
4879         * varobj.h (varobj_languages): Add vlang_ada definition to the list
4880         of supported languages.
4881         * varobj.c: Add top definitions and basic implementation of the
4882         following callbacks: ada_number_of_children, ada_name_of_variable,
4883         ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4884         ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4885         (languages): Register Ada-specific callbacks.
4886         (variable_language): Add the Ada case in the language setter switch.
4887
4888 2011-07-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4889
4890         * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4891
4892 2011-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
4893
4894         Code cleanup.
4895         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4896         (execute_stack_op): Use dwarf2_frame_ctx_funcs
4897         * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4898         (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4899         get_frame_cfa, get_tls_address and dwarf_call via funcs.
4900         * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4901         (struct dwarf_expr_context_funcs): New, move here methods from ...
4902         (struct dwarf_expr_context): ... here.  New fields funcs.
4903         * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4904         (dwarf_expr_ctx_funcs): New.
4905         (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4906         (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4907         (needs_frame_ctx_funcs): New.
4908         (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4909
4910 2011-07-15  Fawzi Mohamed  <fawzi.mohamed@nokia.com>
4911
4912         * MAINTAINERS (Write After Approval): Add myself to the list.
4913
4914 2011-07-15  Fawzi Mohamed  <fawzi.mohamed@nokia.com>
4915
4916         * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4917         that CIE pointer of an FDE really points to a CIE .
4918
4919 2011-07-15  Hui Zhu  <teawater@gmail.com>
4920
4921         * remote.c (remote_get_trace_status): Add comments.
4922
4923 2011-07-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
4924
4925         Code cleanup - constify struct lval_funcs.
4926         * dwarf2loc.c (pieced_value_funcs): Make it const.
4927         * infrun.c (siginfo_value_funcs): Likewise.
4928         * opencl-lang.c (opencl_value_funcs): Likewise.
4929         * valops.c (value_assign, value_ind): Make the funcs variable const.
4930         * value.c (struct value): Make location.computed.funcs target const.
4931         Rearrange the comments.
4932         (allocate_computed_value): Make the funcs parameter target const.
4933         (value_computed_funcs): Return the funcs target const.
4934         (value_free, value_copy, set_value_component_location): Make the funcs
4935         variable const.
4936         * value.h (allocate_computed_value): Make the funcs parameter target
4937         const.
4938         (value_computed_funcs): Return the funcs target const.
4939         * windows-tdep.c (tlb_value_funcs): Make it const.
4940
4941 2011-07-14  Hui Zhu  <teawater@gmail.com>
4942
4943         * remote.c (remote_get_trace_status): Initialize p.
4944
4945 2011-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4946
4947         Work around kgdb.
4948         * remote.c (remote_get_trace_status): New variable ex.  Put
4949         remote_get_noisy_reply into TRY_CATCH.  Call exception_fprintf for it.
4950
4951 2011-07-13  Tom Tromey  <tromey@redhat.com>
4952
4953         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4954         value_from_contents for final conversion.
4955
4956 2011-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4957
4958         Code cleanup.
4959         * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4960         Indent prototypes so they do not get into tags.
4961
4962 2011-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
4963
4964         Code cleanup making also optimized out values lazy.
4965         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4966         allocate_optimized_out_value.  Twice.
4967         (loclist_read_variable)  Use allocate_optimized_out_value.  Once.
4968         * findvar.c (read_var_value): Likewise.
4969         * value.c (allocate_optimized_out_value): New function.
4970         * value.h (allocate_optimized_out_value): New declaration.
4971
4972 2011-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
4973
4974         Fix occasional crash of CTRL-C during DWARF read in.
4975         * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4976
4977 2011-07-11  Tom Tromey  <tromey@redhat.com>
4978
4979         * regcache.c (struct regcache_descr): Fix typo.
4980         * i387-tdep.c (i387_supply_xsave): Fix typo.
4981
4982 2011-07-11  Tom Tromey  <tromey@redhat.com>
4983
4984         * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4985         (read_file_scope, read_type_unit_scope): Use it.
4986
4987 2011-07-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4988
4989         * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4990         `int'.
4991
4992 2011-07-11  Phil Muldoon  <pmuldoon@redhat.com>
4993
4994         PR python/12438
4995         * python/python.c: Set gdbpy_should_print_stack default to off.
4996         (set_python): Deprecate maint set python print-stack to
4997         class_deprecate.
4998         (_initialize_python): Deprecate maint set/show python print-stack.
4999         Add new prefix command, python.  Add new setting, print-backtrace.
5000         * NEWS: Document set python print-stack.  Document default change.
5001
5002 2011-07-11  Phil Muldoon  <pmuldoon@redhat.com>
5003
5004         * python/py-inferior.c (infpy_dealloc): New function.
5005         (inferior_to_inferior_object): Return a new object, or a
5006         new reference to the existing object.
5007         (find_thread_object): Cleanup references to inferior.
5008         (delete_thread_object): Ditto.
5009         * python/py-infthread.c (create_thread_object): Do not increment
5010         inferior reference count.
5011
5012 2011-07-08  Tom Tromey  <tromey@redhat.com>
5013
5014         * dwarf2loc.c (locexpr_regname): New function.
5015         (locexpr_describe_location_piece): Use it.
5016         (disassemble_dwarf_expression): Add per_cu argument.  Use
5017         locexpr_regname.
5018         <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
5019         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5020         New cases.
5021         (locexpr_describe_location_1): Add per_cu argument.
5022         (locexpr_describe_location): Update.
5023         (loclist_describe_location): Update.
5024
5025 2011-07-08  Tom Tromey  <tromey@redhat.com>
5026
5027         * dwarf2expr.c (execute_stack_op): Add QUIT.
5028
5029 2011-07-07  Hui Zhu  <teawater@gmail.com>
5030
5031         Revert:
5032         2011-07-06  Hui Zhu  <teawater@gmail.com>
5033         * remote.c (remote_start_remote): Add TRY_CATCH for
5034         remote_get_trace_status.
5035         * tracepoint.c (disconnect_tracing): Ditto.
5036
5037 2011-07-07  Andrew Burgess  <aburgess@broadcom.com>
5038
5039         * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
5040         variables as signed, not unsigned.
5041
5042 2011-07-06  Joel Brobecker  <brobecker@adacore.com>
5043
5044         * jit.c (jit_inferior_init): Reformat forward declaration.
5045
5046 2011-07-06  Matt Rice  <ratmice@gmail.com>
5047
5048         * MAINTAINERS (Write After Approval): Add myself to the list.
5049
5050 2011-07-06  Hui Zhu  <teawater@gmail.com>
5051
5052         * remote.c (remote_start_remote): Add TRY_CATCH for
5053         remote_get_trace_status.
5054         * tracepoint.c (disconnect_tracing): Ditto.
5055
5056 2011-07-05  Tom Tromey  <tromey@redhat.com>
5057
5058         * symtab.c (operator_chars): Now static.
5059         * linespec.c (operator_chars): Don't declare.
5060
5061 2011-07-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5062
5063         * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
5064
5065 2011-07-05  Tom Tromey  <tromey@redhat.com>
5066
5067         * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
5068         * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
5069         (TYPE_CPLUS_REALLY_JAVA): New macro.
5070         * dwarf2read.c (process_structure_scope): Set
5071         TYPE_CPLUS_REALLY_JAVA.
5072
5073 2011-07-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5074
5075         * ada-lang.c: Fix typos.
5076         * amd64-tdep.c: Likewise.
5077         * breakpoint.c: Likewise.
5078         * cli/cli-decode.c: Likewise.
5079         * findcmd.c: Likewise.
5080         * inline-frame.c: Likewise.
5081         * mi/mi-main.c: Likewise.
5082         * minsyms.c: Likewise.
5083         * monitor.c: Likewise.
5084         * monitor.h: Likewise.
5085         * prologue-value.c: Likewise.
5086         * reverse.c: Likewise.
5087         * s390-tdep.c: Likewise.
5088
5089 2011-07-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
5090
5091         * jit.c (jit_inferior_init): Forward declare.
5092         (jit_breakpoint_re_set_internal): Call jit_inferior_init.
5093
5094 2011-07-04  Joel Brobecker  <brobecker@adacore.com>
5095
5096         * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
5097
5098 2011-07-04  Tristan Gingold  <gingold@adacore.com>
5099
5100         * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
5101         (tcb_fieldno): Add activation_link field.
5102         (get_known_tasks_addr): Moved and rewritten.
5103         (get_tcb_types_info): Set activation_link field.
5104         (read_known_tasks_array): Add parameter.  Rewritten.
5105         (read_known_tasks_list): New function.
5106         (read_known_tasks): New function.
5107         (ada_build_task_list): Call read_known_tasks instead of
5108         read_known_tasks_array.
5109         * ravenscar-thread.c: Add first_task_name constant.
5110         (has_ravenscar_runtime): Check for task list too.
5111
5112 2011-07-04  Tristan Gingold  <gingold@adacore.com>
5113
5114         * ada-tasks.c: Renames fieldno to actb_fieldno.
5115         (ada_get_task_number): Indentation.
5116         (get_tcb_types_info): Remove all parameters.  Write directly
5117         the globals.
5118         (ptid_from_atcb_common): Adjust.
5119         (read_atcb): Adjust.
5120
5121 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5122
5123         * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
5124
5125 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5126
5127         * ui-out.c (ui_out_field_core_addr): Mention that the function
5128         description is in the header file.
5129         * ui-out.h (ui_out_field_core_addr): Document function.
5130
5131 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5132
5133         * ui-out.c (ui_out_get_field_separator): Remove unused function.
5134         * ui-out.h (ui_out_get_field_separator): Remove prototype.
5135
5136 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5137
5138         * symtab.c (expand_line_sal): Remove empty line.
5139
5140 2011-07-04  Thomas Schwinge  <thomas@schwinge.name>
5141
5142         * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5143         same way as ELFOSABI_NONE.
5144         <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5145
5146 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5147
5148         * breakpoint.c: Fix typos in comments.
5149         * linespec.c: Likewise.
5150         * symtab.c: Likewise.
5151
5152 2011-07-04  Joel Brobecker  <brobecker@adacore.com>
5153
5154         * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5155         section in separate object files.
5156
5157 2011-07-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5158
5159         Fix false GCC warning.
5160         * linespec.c (decode_line_1): Initialize values.
5161
5162 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5163
5164         * linespec.c (find_method): Accept the function type automatically only
5165         if it was specified with parameter types.
5166
5167 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5168
5169         Stop on first linespec terminator instead of eating what we can.
5170         * linespec.c (is_linespec_boundary): New function.
5171         (name_end): Remove function.
5172         (keep_name_info): New parameter on_boundary, replace the body.
5173         (decode_line_1): Provide the parameter to keep_name_info.
5174         (decode_compound): Likewise.  Drop the trailing java return type
5175         handling.  Twice.
5176
5177 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5178
5179         Fall back linespec to minimal symbols.
5180         * linespec.c (decode_line_1): New variable ex, saved_argptr.  Protect
5181         decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5182         (find_method, symbol_found): Change error to cplusplus_error.
5183
5184 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5185
5186         * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
5187
5188 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5189             Tom Tromey  <tromey@redhat.com>
5190
5191         * dwarf2read.c (check_physname): New variable.
5192         (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5193         (show_check_physname): New function.
5194         (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5195
5196 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5197
5198         * machoread.c (macho_symfile_read): Delete OBE comment.
5199
5200 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5201
5202         * machoread.c (struct macho_oso_data): Delete.
5203         (current_oso): Delete.
5204         (macho_relocate_common_syms): New function, mostly extracted
5205         out of
5206         (macho_add_oso_symfile): Call macho_relocate_common_syms.
5207         Remove code that sets and unset current_oso.
5208         (macho_symfile_relocate): Delete handling of common symbols,
5209         now moved to macho_relocate_common_syms.
5210
5211 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5212
5213         * darwin-nat.c (darwin_ptrace): Add documentation.
5214         Set errno to zero before calling ptrace.  If ptrace returns
5215         -1 and errno is zero, then change then return zero.
5216         (darwin_kill_inferior): Issue a warning instead of triggering
5217         a failed assertion when the PT_KILL ptrace operations returned
5218         nonzero.
5219
5220 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5221
5222         * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5223         only when inf->private->no_ptrace.
5224
5225 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5226
5227         * ada-lang.c (print_it_exception): Print temporary catchpoints
5228         as "Temporary catchpoint".
5229         (print_mention_exception): Likewise.
5230
5231 2011-07-01  Tom Tromey  <tromey@redhat.com>
5232
5233         * jv-lang.c (java_language_defn): Use java_printchar,
5234         java_printstr.
5235         (java_get_encoding): New function.
5236         (java_emit_char): Use generic_emit_char.
5237         (java_printchar): New function.
5238         (java_printstr): Likewise.
5239
5240 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5241
5242         * ada-typeprint.c (print_record_type): If unable to decode
5243         the name of the parent type, use the encoded name.
5244
5245 2011-07-01  Jean-Charles Delay  <delay@adacore.com>
5246
5247         * ada-typeprint.c (ada_print_type): Fix both PAD type and
5248         pointer to constrained packed array type output.
5249         * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5250         packed array output.
5251
5252 2011-07-01  Jean-Charles Delay  <delay@adacore.com>
5253
5254         * ada-typeprint.c (print_array_type): removed if condition on show
5255         being negative for bounds printing.
5256
5257 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5258
5259         * ada-lang.c (ada_identical_enum_types_p): New function.
5260         (symbols_are_identical_enums): New function.
5261         (remove_extra_symbols): Do nothing if NSYMS < 2.
5262         Use symbols_are_identical_enums.
5263
5264 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5265
5266         * ada-valprint.c (ada_value_print): Handle typedefs.
5267
5268 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5269
5270         * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5271
5272 2011-07-01  Eric Botcazou  <ebotcazou@adacore.com>
5273
5274         * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5275         (decode_constrained_packed_array): Likewise.
5276         (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5277
5278 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5279
5280         * ada-exp.y (convert_char_literal): Handle typedef types.
5281
5282 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5283
5284         * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5285
5286 2011-06-30  Tom Tromey  <tromey@redhat.com>
5287
5288         * varobj.c (varobj_create): Call do_cleanups on early exit path.
5289         * valops.c (find_overload_match): Call do_cleanups on early exit
5290         path.
5291         * solib.c (solib_find): Call do_cleanups on early exit path.
5292
5293 2011-06-30  Tom Tromey  <tromey@redhat.com>
5294
5295         * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5296         * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5297         return paths.  Defer final do_cleanups until last return.
5298         * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5299         early return.
5300
5301 2011-06-30  Tom Tromey  <tromey@redhat.com>
5302
5303         * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5304
5305 2011-06-30  Andrew Burgess  <aburgess@broadcom.com>
5306
5307         * MAINTAINERS (Write After Approval): Add myself to the list.
5308
5309 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5310
5311         Disable epilogue unwinders on recent GCCs.
5312         * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5313         initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5314         * dwarf2read.c (process_full_comp_unit): Initialize
5315         EPILOGUE_UNWIND_VALID.
5316         * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5317         initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5318         * symtab.h (struct symtab): New field epilogue_unwind_valid.
5319
5320 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5321
5322         Code cleanup - reformatting.
5323         * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5324         (producer_is_gcc_ge_4): ... here, change the return value.
5325         (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5326         interpretation.
5327
5328 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5329
5330         Fix non-only rename list for Fortran modules import.
5331         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5332         cp_add_using_directive caller.
5333         (cp_add_using_directive): New parameter excludes, describe it.  New
5334         variables ix and param.  Compare if also excludes match.  Allocate NEW
5335         with variable size, initialize EXCLUDES there.
5336         (cp_lookup_symbol_imports): New variable excludep, test
5337         current->EXCLUDES with it.
5338         * cp-support.h: Include vec.h.
5339         (struct using_direct): New field excludes, describe it.
5340         (DEF_VEC_P (const_char_ptr)): New.
5341         (cp_add_using_directive): New parameter excludes.
5342         * defs.h (const_char_ptr): New typedef.
5343         * dwarf2read.c (read_import_statement): New variables child_die,
5344         excludes and cleanups, read in excludes.
5345         (read_namespace): Adjust the cp_add_using_directive caller.
5346
5347 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5348
5349         Code cleanup.
5350         * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5351         negative comparisons.
5352
5353 2011-06-29  André Pönitz  <andre.poenitz@nokia.com>
5354
5355         * mi/mi-main.c (mi_cmd_list_features): Emit
5356         breakpoint-notifications.
5357
5358 2011-06-29  Tom Tromey  <tromey@redhat.com>
5359
5360         PR fortran/10036:
5361         * valprint.h (generic_emit_char, generic_printstr): Declare.
5362         * valprint.c (wchar_printable, append_string_as_wide)
5363         (print_wchar): Move from c-lang.c.
5364         (generic_emit_char): New function; mostly taken from c_emit_char.
5365         (generic_printstr): New function; mostly taken from c_printstr.
5366         * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5367         represented as arrays.
5368         <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5369         type.
5370         * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5371         identically to TYPE_CODE_INT.
5372         * f-lang.c (f_get_encoding): New function.
5373         (f_emit_char): Use generic_emit_char.
5374         (f_printchar): Replace comment.
5375         (f_printstr): Use generic_printstr.
5376         * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5377         "character" types specially.
5378         <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5379         for Fortran.
5380         * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5381         Move to valprint.c
5382         (c_emit_char): Call generic_emit_char.
5383         (c_printstr): Call generic_printstr.
5384
5385 2011-06-29  Gary Benson  <gbenson@redhat.com>
5386
5387         * breakpoint.c (bpstat_what): Removed duplicated case.
5388
5389 2011-06-28  Tom Tromey  <tromey@redhat.com>
5390
5391         * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5392
5393 2011-06-27  Tom Tromey  <tromey@redhat.com>
5394
5395         * valops.c (find_overload_match): Call do_cleanups before early
5396         return.
5397         * top.c (execute_command): Call do_cleanups before early return.
5398         (command_loop): Likewise.
5399         * stack.c (backtrace_command): Make a null cleanup early.  Don't
5400         conditionally call do_cleanups.
5401         * python/py-value.c (TRY_CATCH): Move cleanup handling into
5402         TRY_CATCH.
5403         * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5404         so cleanups are always run.
5405         * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5406         * findcmd.c (parse_find_args): Call do_cleanups on early return
5407         path.
5408         * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5409         Don't conditionally call do_cleanups.
5410         * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5411         later.
5412
5413 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
5414
5415         * MAINTAINERS (Write After Approval): Use default email address.
5416
5417 2011-06-27  Joel Brobecker  <brobecker@adacore.com>
5418
5419         * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5420
5421 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
5422
5423         * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5424         saved_regs_mask and copied_regs_mask fields.
5425         (sparc_record_save_insn): New prototype.
5426         * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5427         (sparc_record_save_insn): New function.
5428         (sparc_analyze_prologue): Add head comment.  Recognize store insns
5429         of call-saved registers.  Use OFFSET consistently.  Recognize flat
5430         frames and cache their settings.
5431         (sparc32_skip_prologue): Handle flat frames.
5432         (sparc_frame_cache): Add frame_offset to the base address.
5433         (sparc32_frame_cache): Adjust to new frame description.
5434         (sparc32_frame_prev_register): Likewise.
5435         * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5436         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5437         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5438         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5439         frame by calling sparc_record_save_insn.
5440         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5441         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5442         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5443
5444 2011-06-27  Tristan Gingold  <gingold@adacore.com>
5445
5446         * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5447         field by map_addr and map_len.
5448         (dwarf2_read_section): Adjust for the new bfd_mmap api.
5449         (munmap_section_buffer): Likewise.
5450
5451 2011-06-24  Tom Tromey  <tromey@redhat.com>
5452
5453         * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5454         * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5455         * python/python.c (gdbpy_parameter): Make 'arg' const.
5456         (execute_gdb_command): Likewise.
5457         (gdbpy_decode_line): Likewise.  Copy it.
5458         (gdbpy_parse_and_eval): Make 'expr_string' const.  Copy it.
5459         (gdbpy_write): Make 'arg' const.
5460         * python/py-type.c (typy_lookup_typename): Make 'type_name'
5461         const.
5462         (gdbpy_lookup_type): Likewise.
5463         * python/py-prettyprint.c (print_children): Make 'name' const.
5464         * python/py-param.c (parmpy_init): Make 'name' const.  Copy it.
5465         * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5466         Py_ssize_t.
5467         * python/py-function.c (fnpy_init): Make 'name' const.
5468         * python/py-cmd.c (cmdpy_init): Make 'name' const.  Copy it.
5469         (gdbpy_string_to_argv): Make 'input' const.
5470         * python/py-breakpoint.c (bppy_init): Make 'spec' const.  Copy
5471         it.
5472         * gdbtypes.h (lookup_typename): Update.
5473         * gdbtypes.c (lookup_typename): Make 'name' const.
5474         (lookup_struct): Likewise.
5475         (lookup_union): Likewise.
5476         (lookup_enum): Likewise.
5477
5478 2011-06-24  Tom Tromey  <tromey@redhat.com>
5479
5480         * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5481         gdb_thread_db.h.  Move all common/ entries to be together.
5482         (TAGS): Don't depend on DEPFILES.
5483
5484 2011-06-23  Yao Qi  <yao@codesourcery.com>
5485
5486         * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5487         * remote.c (remote_start_remote): ... here.
5488         * monitor.c (monitor_open): ... here.
5489
5490 2011-06-23  Andrew Burgess  <aburgess@broadcom.com>
5491
5492         * gdbtypes.c (append_composite_type_field_aligned): Fix
5493         calculation of bit position based on alignment.
5494
5495 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5496
5497         * breakpoint.c (bpstat_stop_status): Call the check_status
5498         breakpoint_ops method.
5499         (print_one_breakpoint_location): Also print the condition for Ada
5500         exception catchpoints.
5501         (allocate_bp_location): New, factored out from
5502         allocate_bp_location.
5503         (allocate_bp_location): Adjust.  Call the owner breakpoint's
5504         allocate_location method, if there is one.
5505         (free_bp_location): Call the locations's dtor method, if there is
5506         one.
5507         (init_raw_breakpoint_without_location): New breakpoint_ops
5508         parameter.  Use it.
5509         (set_raw_breakpoint_without_location): Adjust.
5510         (init_raw_breakpoint): New breakpoint_ops parameter.  Pass it down.
5511         (set_raw_breakpoint): Adjust.
5512         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5513         (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5514         re_set and check_status methods.
5515         (init_catchpoint): Don't memset, initialize thread, addr_string
5516         and enable_state.  Pass the ops down to init_raw_breakpoint.
5517         (install_catchpoint): Rename to ...
5518         (install_breakpoint): ... this, and make extern.
5519         (create_fork_vfork_event_catchpoint): Adjust.
5520         (catch_exec_breakpoint_ops): Install NULL allocate_location,
5521         re_set and check_status methods.
5522         (create_syscall_event_catchpoint): Adjust.
5523         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5524         (masked_watchpoint_breakpoint_ops): Install NULL
5525         allocate_location, re_set and check_status methods.
5526         (catch_exec_command_1): Adjust.
5527         (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5528         re_set and check_status methods.
5529         (create_ada_exception_breakpoint): Rename to ...
5530         (init_ada_exception_breakpoint): ... this.  Add a struct
5531         breakpoint parameter, and delete the exp_string, cond_string and
5532         cond parameters.  Use init_raw_breakpoint, and don't install or
5533         mention the breakpoint yet.  Don't clear breakpoint fields that
5534         init_raw_breakpoint already clears.
5535         (re_set_breakpoint): Delete, split into ...
5536         (breakpoint_re_set_default, prepare_re_set_context): ... these new
5537         functions.
5538         (breakpoint_re_set_one): Call the breakpoint's
5539         breakpoint_ops->re_set implementation, if there's one.  Adjust.
5540         * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5541         (struct bp_location_ops): New type.
5542         (struct bp_location): New field `ops'.
5543         (struct breakpoint_ops): New `allocate_location', `re_set' and
5544         `check_status' fields.  Make `breakpoint_hit''s description match
5545         reality.
5546         (init_bp_location): Declare.
5547         (breakpoint_re_set_default): Declare.
5548         (create_ada_exception_breakpoint): Rename to ...
5549         (init_ada_exception_breakpoint): ... this.  Add a struct
5550         breakpoint parameter, and delete the exp_string, cond_string and
5551         cond parameters.
5552         (install_breakpoint): Declare.
5553         * ada-lang.c: Include exceptions.h.
5554         <Ada exceptions description>: Update.
5555         (struct ada_catchpoint_location): New type.
5556         (ada_catchpoint_location_dtor): New function.
5557         (ada_catchpoint_location_ops): New global.
5558         (ada_catchpoint): New type.
5559         (create_excep_cond_exprs): New function.
5560         (dtor_exception, allocate_location_exception, re_set_exception)
5561         (should_stop_exception, check_status_exception): New functions.
5562         (print_one_exception, print_mention_exception)
5563         (print_recreate_exception): Adjust.
5564         (dtor_catch_exception, allocate_location_catch_exception)
5565         (re_set_catch_exception, check_status_catch_exception): New
5566         functions.
5567         (catch_exception_breakpoint_ops): Install them.
5568         (dtor_catch_exception_unhandled)
5569         (allocate_location_catch_exception_unhandled)
5570         (re_set_catch_exception_unhandled)
5571         (check_status_catch_exception_unhandled): New functions.
5572         (catch_exception_unhandled_breakpoint_ops): Install them.
5573         (dtor_catch_assert, allocate_location_catch_assert)
5574         (re_set_catch_assert, check_status_catch_assert): New functions.
5575         (catch_assert_breakpoint_ops): Install them.
5576         (ada_exception_catchpoint_p): Delete.
5577         (catch_ada_exception_command_split)
5578         (ada_exception_catchpoint_cond_string): Rename exp_string
5579         parameter to excep_string.  Adjust.
5580         (ada_parse_catchpoint_condition): Delete.
5581         (ada_exception_sal): Rename the exp_string parameter to
5582         excep_string.  Delete the cond_string and cond parameters.
5583         Adjust.
5584         (ada_decode_exception_location): Rename the exp_string parameter
5585         to excep_string.  Delete the cond_string and cond parameters.
5586         Adjust.
5587         (create_ada_exception_catchpoint): New function.
5588         (catch_ada_exception_command, ada_decode_assert_location)
5589         (catch_assert_command): Adjust.
5590         * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5591
5592 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5593
5594         * ada-lang.c: Include arch-utils.h.
5595         (ada_decode_exception_location): Make static.
5596         (catch_ada_exception_command): Moved here from breakpoint.c.
5597         (ada_decode_assert_location): Make static.
5598         (catch_assert_command): Moved here from breakpoint.c.
5599         (_initialize_ada_lang): Install the exception and assert
5600         catchpoint commands here.
5601         * ada-lang.h (ada_decode_exception_location)
5602         (ada_decode_assert_location): Delete declarations.
5603         * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5604         breakpoint.h.
5605         (create_ada_exception_breakpoint): Make extern.
5606         (catch_ada_exception_command, catch_assert_command): Moved to
5607         ada-lang.c.
5608         (add_catch_command): Make extern.
5609         (_initilize_breakpoint): Don't install the exception and assert
5610         catchpoint commands here.
5611         * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5612         breakpoint.c
5613         (add_catch_command, create_ada_exception_breakpoint): Declare.
5614
5615 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5616
5617         * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5618         the breakpoint to the breakpoint chain here.
5619         (set_raw_breakpoint_without_location): Add the breakpoint to the
5620         breakpoint chain here.
5621         (init_raw_breakpoint): Adjust comments.
5622         (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5623         here.
5624         (init_catchpoint): Don't set the catchpoint's breakpoint number
5625         here.
5626         (install_catchpoint): New function.
5627         (create_fork_vfork_event_catchpoint)
5628         (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5629         use install_catchpoint.
5630
5631 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5632
5633         * breakpoint.c (create_catchpoint_without_mention)
5634         (create_catchpoint): Delete.
5635
5636 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5637
5638         * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5639         * breakpoint.c (init_raw_breakpoint_without_location): Remove
5640         reference to exec_pathname.
5641         (struct exec_catchpoint): New type.
5642         (dtor_catch_exec): New function.
5643         (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5644         (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5645         (catch_exec_command_1): Adjust to use init_catchpoint.
5646         (delete_breakpoint): Remove reference to exec_pathname.
5647
5648 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5649
5650         * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5651         (struct breakpoint): Delete field `syscalls_to_be_caught'.
5652         * breakpoint.c (init_raw_breakpoint_without_location): Remove
5653         reference to syscalls_to_be_caught.
5654         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5655         NULL `dtor'.
5656         (struct syscall_catchpoint): New type.
5657         (dtor_catch_syscall): New function.
5658         (insert_catch_syscall, remove_catch_syscall)
5659         (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5660         (print_recreate_catch_syscall): Adjust.
5661         (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5662         (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5663         (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5664         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5665         (masked_watchpoint_breakpoint_ops)
5666         (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5667         (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5668         there is one.  Remove references to syscalls_to_be_caught.
5669         (catching_syscall_number): Adjust.
5670         * ada-lang.c (catch_exception_breakpoint_ops)
5671         (catch_exception_unhandled_breakpoint_ops)
5672         (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5673
5674 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5675
5676         * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5677         field.
5678         * breakpoint.c (init_raw_breakpoint_without_location): Remove
5679         reference to forked_inferior_pid.
5680         (struct fork_catchpoint): New type.
5681         (breakpoint_hit_catch_fork, print_it_catch_fork)
5682         (print_one_catch_fork, breakpoint_hit_catch_vfork)
5683         (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5684         (create_fork_vfork_event_catchpoint): Adjust to use
5685         init_catchpoint.
5686
5687 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5688
5689         * breakpoint.c (add_to_breakpoint_chain)
5690         (init_raw_breakpoint_without_location): New functions, factored
5691         out from ...
5692         (set_raw_breakpoint_without_location): ... this one.
5693         (init_raw_breakpoint): New function, factored out from
5694         set_raw_breakpoint and adjusted to use
5695         init_raw_breakpoint_without_location.
5696         (set_raw_breakpoint): Adjust.
5697         (init_catchpoint): New function, factored out from
5698         create_catchpoint_without_mention and adjusted to use
5699         init_raw_breakpoint.
5700         (create_catchpoint_without_mention): Adjust.
5701
5702 2011-06-22  Tom Tromey  <tromey@redhat.com>
5703
5704         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5705         argument of 0 specially.
5706
5707 2011-06-22  Yao Qi  <yao@codesourcery.com>
5708
5709         * infrun.c (handle_inferior_event): Remove write-only local variable
5710         `sw_single_step_trap_p'.
5711
5712 2011-06-20  Tom Tromey  <tromey@redhat.com>
5713
5714         * symtab.c (lookup_language_this): End loop if block is NULL.
5715
5716 2011-06-17  Tom Tromey  <tromey@redhat.com>
5717
5718         * valops.c (value_of_this): Use lookup_language_this.
5719         * symtab.h (lookup_language_this): Declare.
5720         * symtab.c (lookup_language_this): New function.
5721         (lookup_symbol_aux): Use lookup_language_this.
5722         * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5723
5724 2011-06-17  Tom Tromey  <tromey@redhat.com>
5725
5726         * value.h (value_of_this): Update.
5727         (value_of_local): Remove.
5728         * valops.c (value_of_this): Rename from value_of_local.  Change
5729         parameters.
5730         * p-exp.y (exp): Update.
5731         (variable): Likewise.
5732         * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5733
5734 2011-06-17  Tom Tromey  <tromey@redhat.com>
5735
5736         * valops.c (value_of_local): Complain if NAME is NULL.
5737         * std-operator.def (OP_OBJC_SELF): Remove.
5738         * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5739         * objc-exp.y (name_not_typename): Use OP_THIS.
5740         * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5741         name for "this".
5742         <OP_OBJC_SELF>: Remove.
5743         * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5744
5745 2011-06-16  Tristan Gingold  <gingold@adacore.com>
5746
5747         * python/py-events.h (gdb_py_events): Make it extern.
5748         * python/py-evtregistry.c (gdb_py_events): Declare.
5749
5750 2011-06-16  Hui Zhu  <teawater@gmail.com>
5751
5752         * remote.c (remote_trace_set_readonly_regions): Add check for
5753         remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5754         output warning.
5755
5756 2011-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
5757
5758         * arm-linux-tdep.c: Include "auxv.h".
5759         (AT_HWCAP): Define.
5760         (ARM_LINUX_SIZEOF_VFP): Define.
5761         (arm_linux_supply_vfp): New function.
5762         (arm_linux_collect_vfp): Likewise.
5763         (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5764         (arm_linux_fpa_regset_sections): New variable.
5765         (arm_linux_vfp_regset_sections): Likewise.
5766         (arm_linux_core_read_description): New function.
5767         (arm_linux_init_abi): Install arm_linux_core_read_description and
5768         arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5769         appropriate for the architecture.
5770         * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5771         (tdesc_arm_with_m): Declare.
5772         (tdesc_arm_with_iwmmxt): Likewise.
5773         (tdesc_arm_with_vfpv2): Likewise.
5774         (tdesc_arm_with_vfpv3): Likewise.
5775         (tdesc_arm_with_neon): Likewise.
5776         * arm-linux-nat.c: Move features/*.c includes ...
5777         * arm-tdep.c: ... here.
5778         * arm-linux-nat.c (arm_linux_read_description): Move initializing
5779         target description data structures ...
5780         * arm-tdep.c (_initialize_arm_tdep): ... here.
5781         * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5782         HWCAP_VFPv3D16): Move definitions ...
5783         * arm-linux-tdep.h: ... here.
5784
5785 2011-06-15  Hui Zhu  <teawater@gmail.com>
5786
5787         * remote.c (remote_trace_set_readonly_regions): Add a check for
5788         target_buf_size.
5789
5790 2011-06-14  Tom Tromey  <tromey@redhat.com>
5791
5792         * coffread.c (coffread_objfile): Rename from current_objfile.
5793         * dbxread.c (dbxread_objfile): Rename from current_objfile.
5794         * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5795
5796 2011-06-14  Tom Tromey  <tromey@redhat.com>
5797
5798         * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5799         (class_symtab): Remove.
5800         (jv_dynamics_progspace_key): New global.
5801         (jv_per_objfile_free): Reset program space data.  Update assert.
5802         Don't clear globals.
5803         (get_dynamics_objfile): Use and set program space data.
5804         (get_java_class_symtab): Use get_dynamics_objfile.
5805         (add_class_symbol): Likewise.
5806         (java_link_class_type): Likewise.
5807         (java_object_type, jv_clear_object_type, set_java_object_type):
5808         Remove.
5809         (get_java_object_type): Update.  Don't cache result.
5810         (is_object_type): Don't call set_java_object_type.
5811         (_initialize_java_language): Don't set jv_type_objfile_data_key;
5812         initialize jv_dynamics_progspace_key.
5813
5814 2011-06-14  Tom Tromey  <tromey@redhat.com>
5815
5816         * symtab.h (current_objfile): Don't declare.
5817         * objfiles.h (current_objfile): Don't declare.
5818         * objfiles.c (current_objfile): Remove.
5819         * mdebugread.c (current_objfile): New file-scope global.
5820         * dbxread.c (current_objfile): New file-scope global.
5821         * coffread.c (current_objfile): New file-scope global.
5822
5823 2011-06-13  Pedro Alves  <pedro@codesourcery.com>
5824
5825         * top.h (line): Rename to ...
5826         (saved_command_line): ... this.
5827         (linesize): Rename to ...
5828         (saved_command_line_size): ... this.
5829         * top.c (line): Rename to ...
5830         (saved_command_line): ... this.
5831         (linesize): Rename to ...
5832         (saved_command_line_size): ... this.
5833         (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5834         * event-top.c (command_line_handler): Adjust.
5835         * main.c (captured_main): Adjust.
5836
5837 2011-06-12  Mark Kettenis  <kettenis@gnu.org>
5838
5839         * i386-tdep.c (i386_epilogue_frame_cache): Simplify code.  Call
5840         get_frame_func instead of get_frame_pc to determine the code
5841         address used to construct the frame ID.
5842         (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5843         (i386_epilogue_frame_this_id): Likewise.
5844         (i386_epilogue_frame_prev_register): New function.
5845         (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5846         (i386_stack_tramp_frame_sniffer): Fix coding style.
5847         (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5848         (i386_gdbarch_init): Fix comments.
5849
5850 2011-06-12  Mark Kettenis  <kettenis@gnu.org>
5851
5852         * i386-tdep.c (i386_match_insn_block): Use length of the proper
5853         instruction when walking back through the instruction stream.
5854
5855 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
5856
5857         * symtab.c (output_partial_symbol_filename): Exchange the filename and
5858         fullname parameters order.
5859
5860 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
5861
5862         Code cleanup.
5863         * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5864         for fun.
5865         * psymtab.c (map_symbol_filenames_psymtab)
5866         (map_partial_symbol_filenames): Likewise.
5867         * psymtab.h: Include symfile.h.
5868         (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5869         * symfile.h (symbol_filename_ftype): New.
5870         (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5871         map_symbol_filenames, clarify more the naming in comment.
5872
5873 2011-06-07  Doug Evans  <dje@google.com>
5874
5875         * cc-with-index.sh: Fix typos in comment.
5876         Look for ../../gdb, for fullname.exp.
5877
5878 2011-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
5879             Pedro Alves  <pedro@codesourcery.com>
5880
5881         * cli/cli-cmds.c (shell_escape): Use waitpid.
5882         * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5883
5884 2011-06-07  Tristan Gingold  <gingold@adacore.com>
5885
5886         * xcoffread.c (dwarf2_xcoff_names): New variable.
5887         (aix_process_linenos): Add a guard.
5888         (xcoff_symfile_finish): Free dwarf2.
5889         (xcoff_initial_scan): Add dwarf2 support.
5890
5891 2011-06-06  Pedro Alves  <pedro@codesourcery.com>
5892
5893         * infcall.c (run_inferior_call): Don't mask async.  Instead force
5894         a synchronous wait, if the target can async.
5895
5896         * target.h (struct target_ops): Delete to_async_mask.
5897         (target_async_mask): Delete.
5898         * target.c (update_current_target): Delete references to to_async_mask.
5899         * linux-nat.c (linux_nat_async_mask_value): Delete.
5900         (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5901         to linux_nat_async_mask_value.
5902         (linux_nat_async_mask): Delete.
5903         (linux_nat_async, linux_nat_close): Remove references to
5904         linux_nat_async_mask_value.
5905         * record.c (record_async_mask_value): Delete.
5906         (record_async): Remove references to record_async_mask_value.
5907         (record_async_mask): Delete.
5908         (record_can_async_p, record_is_async_p): Remove references to
5909         record_async_mask_value.
5910         (init_record_ops, init_record_core_ops): Remove references to
5911         record_async_mask.
5912         * remote.c (remote_async_mask_value): Delete.
5913         (init_remote_ops): Remove reference to remote_async_mask.
5914         (remote_can_async_p, remote_is_async_p): Remove references to
5915         remote_async_mask_value.
5916         (remote_async): Remove references to remote_async_mask_value.
5917         (remote_async_mask): Delete.
5918
5919         * infrun.c (fetch_inferior_event): Don't claim registers changed
5920         if the current thread is already not executing.
5921
5922 2011-06-03  Joel Brobecker  <brobecker@adacore.com>  (obvious fix)
5923
5924         From Stephen Kitt  <steve@sk2.org>
5925         * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5926         gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5927
5928 2011-06-03  Joel Brobecker  <brobecker@adacore.com>
5929
5930         * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5931         the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5932
5933 2011-06-03  Tom Tromey  <tromey@redhat.com>
5934
5935         * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5936         code fields.
5937         * python/py-exitedevent.c (create_exited_event_object): Change
5938         type of 'exit_code'.  Optionally add exit_code attribute.
5939         (emit_exited_event): Change type of 'exit_code'.
5940         * python/py-event.h (emit_exited_event): Update.
5941         * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5942         * infrun.c (handle_inferior_event): Set exit code fields on
5943         inferior.
5944         * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5945         fields.
5946         * inferior.c (exit_inferior_1): Initialize new fields.
5947
5948 2011-06-03  Tom Tromey  <tromey@redhat.com>
5949
5950         * dwarf2expr.c (get_signed_type): New function.
5951         (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5952
5953 2011-06-02  Keith Seitz  <keiths@redhat.com>
5954
5955         * objc-lang.c (find_methods): Increment objfile_csym earlier.
5956
5957 2011-06-02  Pedro Alves  <pedro@codesourcery.com>
5958
5959         * top.h (simplified_command_loop): Delete declaration.
5960
5961 2011-06-01  Mike Frysinger  <vapier@gentoo.org>
5962
5963         * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5964         gdb_sysroot to the "len" variable.  Append both to "arg_buf".
5965
5966 2011-06-01  Yao Qi  <yao@codesourcery.com>
5967
5968         * objfiles.h (obj_section_addr): Update reference to objfile from
5969         `abfd' to `obfd'.
5970         (obj_section_endaddr): Likewise.
5971
5972 2011-06-01  Daniel Jacobowitz  <drow@false.org>
5973
5974         * MAINTAINERS: Update my email address and affiliation.  Also
5975         update Ian Lance Taylor's affiliation.  Use UTF-8 for ludo@gnu.org.
5976
5977 2010-05-31  Keith Seitz  <keiths@redhat.com>
5978
5979         PR c++/12750
5980         * linespec.c (get_search_block): New function.
5981         (find_methods): Add FILE_SYMTATB parameter and use it and
5982         get_search_block to pass an appropriate block to
5983         lookup_symbol_in_namespace.
5984         (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5985         Check if *ARGPTR starts with a filename first.
5986         If it does, call locate_first_half again to locate the next
5987         "first half" of the linespec.
5988         Pass FILE_SYMTATB to decode_objc and decode_compound.
5989         Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5990         (locate_first_half): Stop on the first colon seen.
5991         (decode_compound): Add FILE_SYMTAB parameter.
5992         Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5993         (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5994         get_search_block with lookup_symbol.
5995         (find_method): Add FILE_SYMTAB parameter and pass it to
5996         find_methods.
5997         (decode_objc): Use get_search_block.
5998
5999 2010-05-31  Keith Seitz  <keiths@redhat.com>
6000
6001         PR symtab/12704
6002         * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
6003         (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
6004         and CP_ANONYMOUS_NAMESPACE_LEN.
6005         (cp_is_anonymous): Likewise.
6006         * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
6007         (CP_ANONYMOUS_NAMESPACE_LEN): Define.
6008         * dwarf2read.c (namespace_name): Likewise.
6009         (fixup_partial_die): Likewise.
6010         * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
6011         seen in the input, keep it.
6012
6013 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
6014
6015         * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
6016         * inf-loop.h (inferior_event_handler_wrapper): Delete.
6017         * inf-loop.c (inferior_event_handler_wrapper): Delete.
6018         (inferior_event_handler): Don't handle INF_QUIT_REQ.
6019         * remote.c (_initialize_remote): Register
6020         async_remote_interrupt_twice directly as
6021         sigint_remote_twice_token event.
6022
6023 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
6024
6025         * target.h (enum inferior_event_type): Delete INF_ERROR.
6026         * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
6027
6028 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
6029
6030         * interps.c (interp_set): Don't cancel continuations.
6031
6032 2011-05-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
6033
6034         * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
6035
6036 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
6037
6038         * continuations.h (continuation_ftype): Add `err' parameter.
6039         Document parameters.
6040         (do_all_continuations, do_all_continuations_thread)
6041         (do_all_intermediate_continuations)
6042         (do_all_intermediate_continuations_thread)
6043         (do_all_inferior_continuations): Add `err' parameter.
6044         * continuations.c (do_my_continuations_1, do_my_continuations)
6045         (do_all_inferior_continuations, do_all_continuations_ptid)
6046         (do_all_continuations_thread_callback)
6047         (do_all_continuations_thread, do_all_continuations)
6048         (do_all_intermediate_continuations_thread_callback)
6049         (do_all_intermediate_continuations_thread)
6050         (do_all_intermediate_continuations): Add `err' parameter, and pass
6051         it down all the way to the continuations proper.
6052         * inf-loop.c (inferior_event_handler): If fetching an inferior
6053         event throws an error, don't pop the target, and still call the
6054         continuations, but with `err' set.  Adjust all other continuation
6055         calls.
6056         * breakpoint.c (until_break_command_continuation): Add `err'
6057         parameter.
6058         * infcmd.c (step_1_continuation): Add `err' parameter.  Don't
6059         issue another step if `err' is set.
6060         (struct until_next_continuation_args): New.
6061         (until_next_continuation): Add `err' parameter.  Adjust.
6062         (until_next_command): Adjust.
6063         (struct finish_command_continuation_args): Add `thread' field.
6064         (finish_command_continuation): Add `err' parameter.  Handle it.
6065         (finish_forward): Adjust.
6066         (attach_command_continuation): Add `err' parameter.  Handle it.
6067         * infrun.c (infrun_thread_stop_requested_callback): Adjust to
6068         cancel the continuations.
6069         * interps.c (interp_set): Adjust to cancel the continuations.
6070         * thread.c (clear_thread_inferior_resources): Adjust to cancel the
6071         continuations rather than discarding.
6072         (free_thread): Don't clear thread inferior resources here.
6073         (delete_thread_1): Do it here instead.  And do it before removing
6074         the thread from the threads list.  Tag the thread as exited before
6075         clearing thread inferior resources.
6076
6077 2011-05-30  Joel Brobecker  <brobecker@adacore.com>
6078
6079         * infcall.c (call_function_by_hand): Rephrase error message.
6080
6081 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
6082
6083         * defs.h (struct thread_info, struct inferior): Delete forward
6084         declarations.
6085         * breakpoint.h (struct thread_info): New forward declaration.
6086         * observer.sh (struct inferior): New forward declaration.
6087         * python/python-internal.h (struct inferior): New forward
6088         declaration.
6089
6090 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
6091
6092         * defs.h (struct continuation, continuation_ftype)
6093         (continuation_free_arg_ftype, add_continuation)
6094         (do_all_continuations, do_all_continuations_thread)
6095         (discard_all_continuations, discard_all_continuations_thread)
6096         (add_intermediate_continuation, do_all_intermediate_continuations)
6097         (do_all_intermediate_continuations_thread)
6098         (discard_all_intermediate_continuations)
6099         (discard_all_intermediate_continuations_thread)
6100         (add_inferior_continuation, do_all_inferior_continuations)
6101         (discard_all_inferior_continuations): Move to ...
6102         * continuations.h: ... this new file.
6103         * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
6104         infcmd.c, inferior.c, infrun.c, interps.c: Include
6105         continuations.h.
6106
6107 2011-05-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
6108             Doug Evans  <dje@google.com>
6109
6110         Fix PR 10970, PR 12702.
6111         * linux-nat.c (linux_lwp_is_zombie): New function.
6112         (wait_lwp): Initialize status.  New variable prev_mask.  Block signals.
6113         Check for linux_lwp_is_zombie.  Use WNOHANG and sigsuspend.
6114
6115 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
6116
6117         * defs.h (continuation_ftype, continuation_free_arg_ftype): New
6118         typedefs.
6119         (add_continuation, add_intermediate_continuation)
6120         (add_inferior_continuation): Use them.
6121         * continuations.c (struct continuation): Use them.
6122         (make_continuation_ftype): Delete.
6123         (make_continuation, add_inferior_continuation, add_continuation)
6124         (add_intermediate_continuation): Use continuation_ftype and
6125         continuation_free_arg_ftype.  Rename parameters to shorter names.
6126
6127 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
6128
6129         * continuations.c (make_continuation): Make it return void.
6130         (do_my_continuations): Rename to ...
6131         (do_my_continuations_1): ... this.  Remove old_chain parameter and
6132         adjust.
6133         (do_my_continuations): New.
6134         (discard_my_continuations): Rename to ...
6135         (discard_my_continuations_1): ... this.  Remove old_chain
6136         parameter and adjust.
6137         (discard_my_continuations): New.
6138         (add_inferior_continuation): Simplify.
6139         (do_all_inferior_continuations): Reimplement on top
6140         do_my_continuations.
6141         (discard_all_inferior_continuations): Simplify.
6142         (add_continuation): Simplify.
6143         (do_all_continuations_ptid): Simplify.
6144         (discard_all_continuations_thread_callback): Simplify.
6145         (add_intermediate_continuation): Simplify.
6146         (discard_all_intermediate_continuations_thread_callback):
6147         Simplify.
6148
6149 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
6150
6151         * utils.c (struct continuation, add_continuation)
6152         (add_inferior_continuation)
6153         (do_all_inferior_continuations, discard_all_inferior_continuations)
6154         (restore_thread_cleanup, do_all_continuations_ptid)
6155         (do_all_continuations_thread_callback)
6156         (do_all_continuations_thread, do_all_continuations)
6157         (discard_all_continuations_thread_callback)
6158         (discard_all_continuations_thread, discard_all_continuations)
6159         (add_intermediate_continuation)
6160         (do_all_intermediate_continuations_thread_callback)
6161         (do_all_intermediate_continuations_thread)
6162         (do_all_intermediate_continuations)
6163         (discard_all_intermediate_continuations_thread_callback)
6164         (discard_all_intermediate_continuations_thread)
6165         (discard_all_intermediate_continuations): Move to ...
6166         * continuations.c: ... this new file, and adjust to no longer
6167         implement continuations on top of cleanups.
6168         * Makefile.in (SFILES): Add continuations.c.
6169         (COMMON_OBS): Add continuations.o.
6170
6171 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6172
6173         * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6174         * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6175         Internal error on invalid values.
6176         * reverse.c: Don't handle EXEC_ERROR.
6177         * mi/mi-main.c: Don't handle EXEC_ERROR.
6178
6179 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6180
6181         * record.c: Include event-loop.h, inf-loop.h.
6182         (record_beneath_to_async): New global.
6183         (tmp_to_async): New global.
6184         (record_async_inferior_event_token): New global.
6185         (record_open_1): Don't error out if async is enabled.
6186         (record_open): Handle to_async.  Create an async event source in
6187         the event loop.
6188         (record_close): Delete the async event source.
6189         (record_resumed): New global.
6190         (record_execution_dir): New global.
6191         (record_resume, record_core_resume): Set them.  Register the
6192         target on the event loop.
6193         (record_wait): Rename to ...
6194         (record_wait_1): ... this.  Add more debug output.  Handle
6195         TARGET_WNOHANG, and the target beneath returning
6196         TARGET_WAITKIND_IGNORE.
6197         (record_wait): Reimplement on top of record_wait_1.
6198         (record_async_mask_value): New global.
6199         (record_async, record_async_mask, record_can_async_p)
6200         (record_is_async_p, record_execution_direction): New functions.
6201         (init_record_ops, init_record_core_ops): Install new methods.
6202         * infrun.c (fetch_inferior_event): Temporarily switch the global
6203         execution direction to the direction the target was going.
6204         (execution_direction): Change type to int.
6205         * target.c (default_execution_direction): New function.
6206         (update_current_target): Inherit and de_fault
6207         to_execution_direction.
6208         * target.h (struct target_ops) <to_execution_direction>: New
6209         field.
6210         (target_execution_direction): New macro.
6211         * inferior.h (execution_direction): Change type to int.
6212
6213 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6214
6215         * infcall.c (call_function_by_hand): Don't allow calling functions
6216         in reverse execution mode.
6217
6218 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6219
6220         * infcmd.c (finish_command): Allow async finish in reverse.
6221
6222 2011-05-26  Yao Qi  <yao@codesourcery.com>
6223
6224         * gdb_thread_db.h: Delete.  Move to ...
6225         * common/gdb_thread_db.h: ... here.
6226
6227 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6228
6229         * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6230         function's entry point instead of a manually managed momentary
6231         breakpoint, and only ever issue one proceed call.
6232         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6233         doing a reverse-finish, switch to stepi mode, to do another step.
6234         (insert_step_resume_breakpoint_at_sal): Make public.
6235         (normal_stop): No need to save function value return registers if
6236         going reverse.
6237         * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6238
6239 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6240
6241         * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6242         (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6243         before BPSTAT_WHAT_STOP_SILENT.  Add BPSTAT_WHAT_HP_STEP_RESUME
6244         at the end.
6245         * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6246         step-resume breakpoints.
6247         (print_it_typical): Handle bp_hp_step_resume.
6248         (bpstat_what): Ditto.
6249         (bptype_string): Ditto.
6250         (print_one_breakpoint_location): Ditto.
6251         (allocate_bp_location): Ditto.
6252         (mention): Ditto.
6253         (breakpoint_re_set_one): Ditto.
6254         * infrun.c (handle_inferior_event): Adjust.  Split
6255         BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6256         BPSTAT_WHAT_HP_STEP_RESUME.
6257         (insert_step_resume_breakpoint_at_sal): Rename to ...
6258         (insert_step_resume_breakpoint_at_sal_1): ... this.  Add bptype
6259         parameter.  Handle it.
6260         (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6261         insert_step_resume_breakpoint_at_sal_1.
6262         (insert_step_resume_breakpoint_at_frame): Rename to ...
6263         (insert_hp_step_resume_breakpoint_at_frame): ... this.  Adjust to
6264         set a high-priority step-resume breakpoint.
6265         (insert_step_resume_breakpoint_at_frame): Adjust comment.
6266         (insert_step_resume_breakpoint_at_caller): Ditto.
6267
6268 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6269
6270         * breakpoint.c (iterate_over_related_breakpoints): New.
6271         (do_map_delete_breakpoint): New.
6272         (delete_command): Pass do_map_delete_breakpoint to
6273         map_breakpoint_numbers.
6274         (do_disable_breakpoint): New.
6275         (do_map_disable_breakpoint): Iterate over the breakpoint's related
6276         breakpoints.
6277         (do_enable_breakpoint): Rename to ...
6278         (enable_breakpoint_disp): ... this.
6279         (enable_breakpoint): Adjust.
6280         (do_enable_breakpoint): New.
6281         (enable_once_breakpoint): Delete.
6282         (do_map_enable_breakpoint): New.
6283         (do_map_enable_once_breakpoint): New.
6284         (enable_once_command, enable_delete_command)
6285         (delete_trace_command): Iterate over the breakpoint's related
6286         breakpoints.
6287
6288 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6289
6290         * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6291         for ALPHA_ZERO_REGNUM.
6292         (alpha_supply_int_regs): Explicitly supply zero as the value for
6293         ALPHA_ZERO_REGNUM in the register cache.
6294         * alpha-nat.c (fetch_osf_core_registers): Ditto.
6295
6296 2011-05-26  Yao Qi  <yao@codesourcery.com>
6297
6298         * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6299
6300 2011-05-26  Tristan Gingold  <gingold@adacore.com>
6301
6302         * symfile.h (struct dwarf2_section_names): New type.
6303         (struct dwarf2_debug_sections): New type.
6304         (dwarf2_has_info): Add parameter.
6305         * dwarf2read.c (dwarf2_elf_names): New variable.
6306         (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6307         (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6308         (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6309         (dwarf2_has_info): Add names parameter.  Pass names
6310         to dwarf2_locate_sections.
6311         (section_is_p): Rewrite using the names parameter.
6312         (dwarf2_locate_sections): Use section names from the names parameter.
6313         * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6314         * elfread.c (read_psyms): Ditto.
6315         * machoread.c (macho_symfile_read): Ditto.
6316
6317 2011-05-25  Andreas Schwab  <schwab@redhat.com>
6318
6319         PR gdb/8677
6320         * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6321
6322 2011-05-24  Keith Seitz  <keiths@redhat.com>
6323
6324         PR breakpoint/12803
6325         * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6326         (decode_compound): Unconditionally call keep_name_info.
6327
6328 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
6329
6330         * breakpoint.c (watchpoint_check): If the watchpoint went out of
6331         scope, clear its command list.
6332         (map_breakpoint_numbers): Don't walk the related breakpoints list
6333         of each breakpoint.
6334
6335 2011-05-24  Tom Tromey  <tromey@redhat.com>
6336
6337         * MAINTAINERS: Move Jim Blandy to past maintainers.
6338
6339 2011-05-24  Tristan Gingold  <gingold@adacore.com>
6340
6341         * symfile.h (enum dwarf2_section_enum): New type.
6342         (dwarf2_get_section_info): New prototype.
6343         * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6344         section_name by sect.  Use a switch to select the info.
6345         * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6346         (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6347
6348 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
6349
6350         * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6351         shared library event breakpoint if there's no execution.
6352
6353 2011-05-24  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6354
6355         * breakpont.c (remove_hw_watchpoints): Remove unused function.
6356         * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6357
6358 2011-05-23  Tom Tromey  <tromey@redhat.com>
6359
6360         * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6361         NULL.
6362
6363 2011-05-23  Doug Evans  <dje@google.com>
6364
6365         * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6366         entry for RuntimeError to doc string.
6367
6368 2011-05-23  Jerome Guitton  <guitton@adacore.com>
6369
6370         * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6371         sequence for probing loops.
6372
6373 2011-05-23  Pedro Alves  <pedro@codesourcery.com>
6374
6375         * infrun.c (user_visible_resume_ptid): Fix typos in describing
6376         comment.
6377
6378 2011-05-21  Mark Kettenis  <kettenis@gnu.org>
6379
6380         * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6381         zero as the value for %g0 in the register cache.
6382         * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6383         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6384
6385 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6386
6387         * infrun.c (proceed): Set previous_inferior_ptid here.
6388         (init_wait_for_inferior): Initialize previous_inferior_ptid from
6389         inferior_ptid, not null_ptid.
6390         (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6391         (fetch_inferior_event): Nor here.
6392
6393 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6394
6395         * inf-loop.c (inferior_event_handler): Only output a message if
6396         verbose.
6397
6398 2011-05-20  Luis Machado  <lgustavo@codesourcery.com>
6399
6400         * MAINTAINERS: Update my e-mail address.
6401
6402 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6403
6404         * infrun.c (proceed): Switch the inferior event loop to
6405         INF_EXEC_COMPLETE if the target refused to resume from a
6406         vfork/fork.
6407
6408 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6409
6410         * infcmd.c: Include "inf-loop.h".
6411         (step_once): When stepping into an inline subroutine, pretend the
6412         target has run.  If the target can async, switch the inferior
6413         event loop to INF_EXEC_COMPLETE.
6414         * inferior.h (user_visible_resume_ptid): Declare.
6415         * infrun.c (user_visible_resume_ptid): New function, factored out
6416         from `resume'.
6417         (resume): Use it.
6418         * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6419         that the current thread is running.  Merge async and sync
6420         branches.
6421
6422 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6423
6424         * infcmd.c (step_1): Simplify synchronous case.
6425
6426 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6427
6428         * tracepoint.c: Include exceptions.h.
6429         (TFILE_PID): Move higher in file.
6430         (tfile_open): Delay pushing the tfile target until we're assured
6431         the tfile header is present in the file.  Wrap reading the initial
6432         newline-terminated lines in TRY_CATCH.  Pop the target if the
6433         initial setup failed.  Add the tfile's thread immediately
6434         aftwards, before any non-essential setup.  Don't skip
6435         post_create_inferior if there are no traceframes present in the
6436         file.
6437         (tfile_close): Remove redundant check for null before xfree call.
6438         (tfile_thread_alive): New function.
6439         (init_tfile_ops): Register it as to_thread_alive callback.
6440
6441 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6442
6443         * tracepoint.c (tfile_open): Delete #if 0'd code.
6444
6445 2011-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6446
6447         Fix -readnow for -gdwarf-4 unused type units.
6448         * dwarf2read.c (struct signatured_type): Remove the field offset.
6449         (create_signatured_type_table_from_index): Remove its initialization.
6450         (create_debug_types_hash_table): Likewise.  Initialize per_cu.offset
6451         instead.  Add a complaint call.
6452         (process_psymtab_comp_unit): Change assignment to gdb_assert.
6453         (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6454         (lookup_signatured_type_at_offset, read_signatured_type)
6455         (write_one_signatured_type): Update the field for per_cu.
6456
6457 2011-05-19  Tom Tromey  <tromey@redhat.com>
6458
6459         * python/py-inferior.c (python_inferior_exit): Use
6460         target_gdbarch.
6461         (python_on_resume): Likewise.
6462
6463 2011-05-19  Matt Rice  <ratmice@gmail.com>
6464
6465         * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6466
6467 2011-05-19  Hui Zhu  <teawater@gmail.com>
6468
6469         * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6470
6471 2011-05-19  Hui Zhu  <teawater@gmail.com>
6472
6473         * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6474
6475 2011-05-18  Tom Tromey  <tromey@redhat.com>
6476
6477         * dwarf2read.c (dwarf2_add_field): Constify.
6478         * value.c (value_static_field): Constify.
6479         * gdbtypes.h (struct main_type) <field.field_location.physname>:
6480         Now const.
6481         * ax-gdb.c (gen_static_field): Constify
6482
6483 2011-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6484
6485         * linux-nat.c (kill_callback): Use SIGKILL first.
6486
6487 2011-05-18  Joel Brobecker  <brobecker@adacore.com>
6488
6489         * ada-lang.c (print_it_exception): Avoid use of sprintf.
6490
6491 2011-05-18  Tom Tromey  <tromey@redhat.com>
6492
6493         * value.c (value_fn_field): Constify.
6494         * symtab.c (gdb_mangle_name): Constify.
6495         * stabsread.c (update_method_name_from_physname): Make 'physname'
6496         argument const.
6497         * p-typeprint.c (pascal_type_print_method_args): Make arguments
6498         const.  Use explicit fputc_filtered loop.
6499         (pascal_type_print_base): Constify.
6500         * p-lang.h (pascal_type_print_method_args): Update.
6501         * linespec.c (add_matching_methods): Constify.
6502         (add_constructors): Likewise.
6503         * jv-typeprint.c (java_type_print_base): Constify.
6504         * gdbtypes.h (struct cplus_struct_type)
6505         <fn_fieldlist.fn_field.physname>: Now const.
6506         * dwarf2read.c (compute_delayed_physnames): Constify.
6507         (dwarf2_add_member_fn): Likewise.
6508         * c-typeprint.c (c_type_print_base): Constify.  Use cleanups.
6509
6510 2011-05-18  Pedro Alves  <pedro@codesourcery.com>
6511
6512         * infrun.c (resume): Mention which is the current thread, and its
6513         current PC in debug output.
6514         (prepare_to_proceed): Mention the thread switching in debug
6515         output.
6516
6517 2011-05-18  Tom Tromey  <tromey@redhat.com>
6518
6519         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6520         path check.  Use xmalloc and cleanups.
6521         (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6522
6523 2011-05-17  Tom Tromey  <tromey@redhat.com>
6524
6525         * cp-valprint.c (cp_print_value_fields): Catch errors from
6526         value_static_field.
6527
6528 2011-05-17  Tom Tromey  <tromey@redhat.com>
6529
6530         * dwarf2read.c (dwarf2_get_die_type): Call
6531         get_die_type_at_offset.
6532         * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6533         get_base_type function.
6534
6535 2011-05-17  Tomas Martinec  <fyzmat@gmail.com>
6536
6537         * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6538         trap_expected.
6539
6540 2011-05-16  Doug Evans  <dje@google.com>
6541
6542         * python/py-auto-load.c (source_section_scripts): Mention objfile
6543         name in warning.
6544
6545 2011-05-15  Doug Evans  <dje@google.com>
6546
6547         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6548         (try_thread_db_load_from_pdir): Call it.  If unable to find
6549         libthread_db in directory of libpthread, see if we're looking at
6550         the separate-debug-info copy.
6551
6552         * python/py-autoload.c (print_script): Print "Missing" instead of
6553         "No" for missing scripts.
6554         (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6555
6556 2011-05-13  Doug Evans  <dje@google.com>
6557
6558         * ui-file.c (stdio_file_write_async_safe): Add comment.
6559
6560 2011-05-14  Hui Zhu  <teawater@gmail.com>
6561
6562         * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6563
6564 2011-05-13  Doug Evans  <dje@google.com>
6565
6566         Support $pdir and $sdir in libthread-db-search-path.
6567         * NEWS: Mention $sdir,$pdir.
6568         * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6569         * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6570         (try_thread_db_load_from_sdir): New function.
6571         (try_thread_db_load_from_dir): New function.
6572         (thread_db_load_search): Handle $pdir, $sdir.  Remove trying of
6573         system directories if search of libthread-db-search-path fails,
6574         that is now done via $sdir.
6575         (has_libpthread): New function.
6576         (thread_db_load): Remove search for libthread_db in directory of
6577         libpthread, that is now done via $pdir.
6578
6579         * NEWS: Mention "info auto-load-scripts".
6580         * python/py-auto-load.c (struct auto_load_pspace_info): New member
6581         script_not_found_warning_printed.
6582         (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6583         all callers updated.  Initialize script_not_found_warning_printed.
6584         (get_auto_load_pspace_data_for_loading): New function.
6585         (maybe_add_script): New function.
6586         (source_section_scripts): Simplify.  Only print one warning regardless
6587         of the number of auto-load scripts not found.
6588         (clear_section_scripts): Clear script_not_found_warning_printed.
6589         (auto_load_objfile_script): Record script in hash table.
6590         (count_matching_scripts): New function.
6591         (maybe_print_script): Renamed from maybe_print_section_script, all
6592         callers updated.  Rewrite to use ui_out_*.
6593         (info_auto_load_scripts): Renamed from
6594         maintenance_print_section_scripts, all callers updated.
6595         (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6596         renamed as "info auto-load-scripts".
6597
6598 2011-05-13  Tom Tromey  <tromey@redhat.com>
6599
6600         * dwarf2expr.c (read_uleb128): Cast intermediate result.
6601         (read_sleb128): Likewise.
6602
6603 2011-05-13  Tom Tromey  <tromey@redhat.com>
6604
6605         * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6606         offset display.
6607
6608 2011-05-13  Doug Evans  <dje@google.com>
6609
6610         * linux-nat.c (debug_linux_nat_async): Delete.
6611         Replace all references to use debug_linux_nat instead.
6612         (show_debug_linux_nat_async): Delete.
6613         (sigchld_handler): Call ui_file_write_async_safe instead of
6614         fprintf_unfiltered.
6615         (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6616         * ui-file.c (struct ui_file): New member to_write_async_safe.
6617         (null_file_write_async_safe): New function.
6618         (ui_file_write_async_safe): New function.
6619         (set_ui_file_write_async_safe): New function.
6620         (ui_file_new): Initialize to_write_async_safe.
6621         (stdio_file_write_async_safe): New function.
6622         (struct stdio_file): New member fd.
6623         (stdio_file_new): Initialize to_write_async_safe, fd.
6624         (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6625         fileno.
6626         * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6627         (set_ui_file_write_async_safe): Declare.
6628         (ui_file_write_async_safe): Declare.
6629
6630 2011-05-13  Tom Tromey  <tromey@redhat.com>
6631
6632         * utils.c (do_value_free): New function.
6633         (make_cleanup_value_free): Likewise.
6634         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6635         freeing correctly.
6636         (dwarf2_loc_desc_needs_frame): Call
6637         make_cleanup_value_free_to_mark.
6638         * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6639         * dwarf2expr.c (free_dwarf_expr_context): Don't call
6640         value_free_to_mark.
6641         (new_dwarf_expr_context): Don't call value_mark.
6642         * dwarf2-frame.c (execute_stack_op): Call
6643         make_cleanup_value_free_to_mark.
6644         * defs.h (make_cleanup_value_free): Declare.
6645
6646 2011-05-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6647
6648         * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6649         prepare_execute_command.
6650         * top.c (prepare_execute_command): Return cleanup.
6651         (execute_command): Use cleanup from prepare_execute_command.
6652         * top.h (prepare_execute_command): Change prototype to return
6653         cleanup.
6654         * defs.h (struct value): Add opaque declaration.
6655         (make_cleanup_value_free_to_mark): Add prototype.
6656         * utils.c (do_value_free_to_mark): New function.
6657         (make_cleanup_value_free_to_mark): Likewise.
6658
6659 2011-05-12  Tom Tromey  <tromey@redhat.com>
6660
6661         * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6662         cast left-hand-side to unsigned.
6663
6664 2011-05-12  Tom Tromey  <tromey@redhat.com>
6665
6666         PR gdb/12617:
6667         * value.h (value_from_contents): Declare.
6668         * value.c (value_from_contents): New function.
6669         * dwarf2read.c (dwarf_stack_op_name): Add new values.
6670         (dwarf2_get_die_type): New function.
6671         * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6672         (allocate_piece_closure): Acquire reference to values.
6673         (read_pieced_value): Update for value-based expressions.
6674         (write_pieced_value): Likewise.
6675         (free_pieced_value_closure): Call value_free as needed.
6676         (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6677         Update for value-based expressions.
6678         * dwarf2loc.h (dwarf2_get_die_type): Declare.
6679         * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6680         <get_base_type>: New field.
6681         (struct dwarf_expr_piece) <v.value>: Change type.
6682         <v.regno>: New field.
6683         (struct dwarf_expr_context) <mark>: New field.
6684         (dwarf_expr_piece, dwarf_expr_fetch): Update.
6685         (dwarf_expr_pop, dwarf_expr_push): Remove.
6686         (dwarf_expr_push_address): Declare.
6687         * dwarf2expr.c (dwarf_arch_cookie): New global.
6688         (struct dwarf_gdbarch_types): New.
6689         (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6690         functions.
6691         (dwarf_expr_push): Change type of 'value' argument.  Update.  Now
6692         static.
6693         (dwarf_expr_push_address): New function.
6694         (dwarf_expr_pop): Now static.
6695         (dwarf_expr_fetch): Change return type.
6696         (dwarf_require_integral): New function.
6697         (dwarf_expr_fetch): Simplify.
6698         (add_piece): Update.
6699         (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6700         functions.
6701         (execute_stack_op) <sign_ext>: Remove.
6702         Use values for DWARF stack.
6703         <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6704         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6705         New cases.
6706         (_initialize_dwarf2expr): New function.
6707         (add_piece): Update.
6708         (new_dwarf_expr_context): Set new field.
6709         (free_dwarf_expr_context): Call value_free_to_mark.
6710         * dwarf2-frame.c (no_base_type): New function.
6711         (execute_stack_op): Set get_base_type field.  Update.
6712
6713 2011-05-12  Tom Tromey  <tromey@redhat.com>
6714
6715         * dwarf2read.c (read_common_block): Fix formatting.
6716
6717 2011-05-12  Kwok Cheung Yeung  <kcy@codesourcery.com>
6718
6719         * breakpoint.c (disable_breakpoint): Disable all locations
6720         associated with a tracepoint on target if a trace experiment is
6721         running.
6722         (disable_command): Disable a specific tracepoint location on target if
6723         a trace experiment is running.
6724         (do_enable_breakpoint): Enable all locations associated with a
6725         tracepoint on target if a trace experiment is running.
6726         (enable_command) Enable a specific tracepoint location on target if a
6727         trace experiment is running.
6728         * target.c (update_current_target): Add INHERIT and de_fault clauses for
6729         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6730         to_disable_tracepoint.
6731         * target.h: Add declaration of struct bp_location.
6732         (struct target_ops): Add new functions
6733         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6734         to_disable_tracepoint to target operations.
6735         (target_supports_enable_disable_tracepoint): New macro.
6736         (target_enable_tracepoint): New macro.
6737         (target_disable_tracepoint): New macro.
6738         * remote.c (struct remote_state): Add new field.
6739         (remote_enable_disable_tracepoint_feature): New.
6740         (remote_protocol_features): Add new entry.
6741         (remote_supports_enable_disable_tracepoint): New.
6742         (remote_enable_tracepoint): New.
6743         (remote_disable_tracepoint): New.
6744         (init_remote_ops): Add remote_enable_tracepoint,
6745         remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6746         to remote operations.
6747         * tracepoint.c (start_tracing): Allow tracing to start without any
6748         tracepoints enabled with just a warning if they can be re-enabled
6749         later.
6750         * NEWS: Add news item for the new behaviour of the enable and disable
6751         GDB commands when applied to tracepoints.
6752         Add news items for the new remote packets QTEnable and QTDisable.
6753
6754 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6755
6756         * config.in: Regenerate.
6757         * configure: Regenerate.
6758         * configure.ac <--with-system-readline> (for readline_echoing_p):
6759         Remove the test.
6760         * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6761         (tui_old_rl_echoing_p): ... here.
6762         (tui_setup_io): Rename extern declaration readline_echoing_p to
6763         _rl_echoing_p.  Adjust assignments for the both renames.
6764
6765 2011-05-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6766
6767         * symtab.c (lookup_symtab): Run cleanup before returning.
6768
6769 2011-05-11  Tom Tromey  <tromey@redhat.com>
6770
6771         * dwarf2read.c (handle_data_member_location): New function.
6772         (dwarf2_add_field): Use it.
6773         (read_common_block): Likewise.
6774
6775 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6776
6777         Make addrs->SECTINDEX always defined.
6778         * symfile.c (relative_addr_info_to_section_offsets): Check for
6779         SECTINDEX -1, not for zero ADDR.
6780         (addrs_section_compar): Remove checking for invalid SECTINDEX.
6781         (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6782         * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6783         on its validity.
6784
6785 2011-05-10  Doug Evans  <dje@google.com>
6786
6787         * linux-thread-db.c: Whitespace cleanup.
6788         (try_thread_db_load_1): Fix comment.
6789
6790         * linux-thread-db.c (set_libthread_db_search_path): New function.
6791         (_initialize_thread_db): Add setter for libthread-db-search-path.
6792
6793 2011-05-09  Doug Evans  <dje@google.com>
6794
6795         * NEWS: Mention --with-iconv-bin.
6796         * configure.ac: New option --with-iconv-bin.
6797         * configure: Regenerate.
6798         * config.in: Regenerate.
6799         * defs.h (relocate_gdb_directory): Declare.
6800         * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6801         removed progname parameter, and exported.  All callers updated.
6802         * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6803
6804         * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6805         adding missing call to restore_child_signals_mask.
6806
6807 2011-05-09  Pedro Alves  <pedro@codesourcery.com>
6808
6809         * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6810         parameter.
6811         * infrun.c (proceed, start_remote): Adjust.
6812         (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6813         and adjust to not handle it.
6814         * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6815         * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6816         * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6817         * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6818         * windows-nat.c (do_initial_windows_stuff): Adjust.
6819         * infcmd.c (attach_command): Adjust.
6820         (notice_new_inferior): Adjust.
6821
6822 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6823
6824         * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6825         (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6826         * spu-tdep.c (op_selb): Use correct value.
6827
6828 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6829
6830         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6831         "parent" parameter to symbol_file_add_from_bfd call.
6832
6833 2011-05-06  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
6834             Thiago Jung Bauermann  <bauerman@br.ibm.com>
6835
6836         Implement support for PowerPC BookE masked watchpoints.
6837         * NEWS: Mention masked watchpoint support.  Create "Changed commands"
6838         section.
6839         * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6840         method.  Initialize to NULL in all existing breakpoint_ops instances.
6841         (struct breakpoint) <hw_wp_mask>: New field.
6842         * breakpoint.c (is_masked_watchpoint): Add prototype.
6843         (update_watchpoint): Don't set b->val for masked watchpoints.  Call
6844         breakpoint's breakpoint_ops.works_in_software_mode if available.
6845         (watchpoints_triggered): Handle the case of a hardware masked
6846         watchpoint trigger.
6847         (watchpoint_check): Likewise.
6848         (works_in_software_mode_watchpoint): New function.
6849         (insert_masked_watchpoint, remove_masked_watchpoint)
6850         (resources_needed_masked_watchpoint)
6851         (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6852         (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6853         (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6854         functions.
6855         (masked_watchpoint_breakpoint_ops): New structure.
6856         (watch_command_1): Check for the existence of the `mask' parameter.
6857         Set b->ops according to the type of hardware watchpoint being created.
6858         * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6859         (ppc_linux_remove_mask_watchpoint)
6860         (ppc_linux_masked_watch_num_registers): New functions.
6861         (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6862         to_remove_mask_watchpoint and to_masked_watch_num_registers.
6863         * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6864         to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6865         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6866         (target_masked_watch_num_registers): New functions.
6867         * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6868         <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6869         methods.
6870         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6871         (target_masked_watch_num_registers): Add prototypes.
6872
6873 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6874
6875         PR 12573
6876         * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6877         (producer_is_gcc_ge_4_0): New function.
6878         (process_full_comp_unit): Set also symtab->locations_valid.  Move the
6879         symtab->language code.
6880         (var_decode_location): Set cu->has_loclist.
6881         * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6882         skip.  Intialize force_skip from locations_valid.  Move the prologue
6883         skipping code into two passes.
6884         * symtab.h (struct symtab): Make the primary field a bitfield.  New
6885         field locations_valid.
6886
6887 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6888
6889         * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6890         (classify_inner_name): Call cp_lookup_nested_type with
6891         yylval.tsym.type.
6892         * cp-namespace.c (cp_lookup_nested_type): New variable
6893         saved_parent_type.  Call CHECK_TYPEDEF for parent_type.  Call
6894         type_name_no_tag_or_error with saved_parent_type.
6895         * dwarf2read.c (load_partial_dies): Read in any children of
6896         DW_TAG_typedef with complaint in such case.
6897         * gdbtypes.c (type_name_no_tag_or_error): New function.
6898         * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6899         * valops.c (destructor_name_p): New comment for parameter type.  Remove
6900         type const.  Make dname and cp const.  Call type_name_no_tag_or_error.
6901         * value.h (destructor_name_p): Remove type const.
6902
6903 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6904
6905         * symtab.c (compare_symbol_name): New function.
6906         (completion_list_add_name, expand_partial_symbol_name): Call it,
6907         remove the variable ncmp.
6908         (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6909         gdb_assert it.
6910
6911 2011-05-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6912
6913         Demote to sw watchpoint only in update_watchpoint.
6914         * breakpoint.c (update_watchpoint): Change between software and
6915         hardware watchpoint for all kinds of watchpoints, not just
6916         read/write ones.  Determine b->exact value here instead of
6917         in watch_command_1.  Error out if there are not enough resources
6918         for a read or access hardware watchpoint.
6919         (watch_command_1): Remove logic of checking whether there are
6920         enough resources available, since update_watchpoint will do that
6921         work now.  Don't set b->exact here.  Catch exceptions thrown by
6922         update_watchpoint and delete the watchpoint.
6923         (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6924         Use target_exact_watchpoints instead.
6925         (delete_breakpoint): Notify observers only if deleted watchpoint
6926         has a breakpoint number assigned to it.
6927
6928 2011-05-05  Janis Johnson  <janisjo@codesourcery.com>
6929
6930         * MAINTAINERS: Add myself as a write-after-approval maintainer.
6931
6932 2011-05-05  Jerome Guitton  <guitton@adacore.com>
6933
6934         * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6935         New functions.
6936         (i386_stack_tramp_frame_unwind): New static global.
6937         (i386_match_pattern): New function, extracted from i386_match_insn.
6938         (i386_match_insn): Use i386_match_pattern.
6939         (i386_match_insn_block): New function.
6940         (i386_tramp_chain_in_reg_insns)
6941         (i386_tramp_chain_on_stack_insns): New static variables.
6942         (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6943         of unwinders.
6944
6945 2011-05-04  Joseph Myers  <joseph@codesourcery.com>
6946
6947         * configure.host (xscale*): Don't handle target.
6948         * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6949         handle targets.
6950
6951 2011-05-04  Yao Qi  <yao@codesourcery.com>
6952
6953         * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6954
6955 2011-05-03  Joel Brobecker <brobecker@adacore.com>
6956
6957         Revert:
6958         | 2011-03-07  Michael Snyder  <msnyder@vmware.com>
6959         | * elfread.c (elf_symtab_read): Stop memory leak.
6960
6961 2011-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
6962
6963         * nto-tdep.c (nto_target): Replace deprecated call to
6964         cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6965
6966 2011-05-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6967
6968         Fix false GCC warning.
6969         * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6970
6971 2011-05-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6972
6973         * breakpoint.c (update_watchpoint): Move code to change
6974         the enable state of breakpoint from here ...
6975         (do_enable_breakpoint): ... to here.
6976
6977 2011-04-26  Andrew Gontarek  <andrewg@cray.com>
6978
6979         * valprint.c (val_print_array_elements): Fixed poor performance
6980         of printing very large arrays with repeat_count_threshold set
6981         to unlimited.  New comment.
6982
6983 2011-04-29  Tom Tromey  <tromey@redhat.com>
6984
6985         * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6986         (mi_parse): Likewise.
6987         * breakpoint.c (break_range_command): Use sizeof char*, not
6988         char**.
6989         (create_breakpoint): Likewise.
6990         (parse_breakpoint_sals): Likewise.
6991
6992 2011-04-29  Pedro Alves  <pedro@codesourcery.com>
6993
6994         * linux-nat.c (linux_child_remove_fork_catchpoint)
6995         (linux_child_remove_vfork_catchpoint)
6996         (linux_child_remove_exec_catchpoint): New functions.
6997         (linux_target_install_ops): Install them.
6998
6999 2011-04-29  Phil Muldoon  <pmuldoon@redhat.com>
7000
7001         PR mi/12531
7002
7003         * varobj.c (install_default_visualizer): Do not install a
7004         visualizer if the varobj is CPLUS_FAKE_CHILD.
7005         (construct_visualizer): Likewise.
7006
7007 2011-04-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
7008
7009         * symtab.c (expand_partial_symbol_name): New variable NCMP.  Support
7010         case insensitive comparison.
7011
7012 2011-04-28  Ulrich Weigand  <ulrich.weigand@linaro.org>
7013
7014         * infrun.c (proceed): Revert previous change.
7015         (resume): Instead, handle the case of signal delivery while stepping
7016         off a breakpoint location here, and only if software single-stepping
7017         is used.  Handle nested signals.
7018
7019 2011-04-28  Yao Qi  <yao@codesourcery.com>
7020
7021         * arm-tdep.c (copy_unmodified): Rename to ...
7022         (arm_copy_unmodified): .. this.  New.
7023         (copy_preload): Move common part to ...
7024         (install_preload): .. this.  New.
7025         (arm_copy_preload): New.
7026         (copy_preload_reg): Move common part to ...
7027         (install_preload_reg): ... this.  New.
7028         (arm_copy_preload_reg): New.
7029         (copy_b_bl_blx): Move common part to ...
7030         (install_b_bl_blx): .. this.  New.
7031         (arm_copy_b_bl_blx): New.
7032         (copy_bx_blx_reg): Move common part to ...
7033         (install_bx_blx_reg): ... this. New.
7034         (arm_copy_bx_blx_reg): New.
7035         (copy_alu_reg): Move common part to ...
7036         (install_alu_reg): ... this.  New.
7037         (arm_copy_alu_reg): New.
7038         (copy_alu_shifted_reg): Move common part to ...
7039         (install_alu_shifted_reg): ... this.  New.
7040         (copy_ldr_str_ldrb_strb): Move common part to ...
7041         (install_ldr_str_ldrb_strb): ... this.  New.
7042         (arm_copy_ldr_str_ldrb_strb): New.
7043         (copy_copro_load_store): Move some common part to ...
7044         (install_copy_copro_load_store): ... this.  New.
7045         (arm_copy_copro_load_store): New.
7046         (copy_svc): Delete.
7047         (arm_copy_svc): Renamed from copy_svc.
7048         (copy_undef): Delete.
7049         (arm_copy_undef): Renamed from copy_undef.
7050         (decode_ext_reg_ld_st): Delete.
7051         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7052         (decode_svc_copro): Delete.
7053         (arm_decode_svc_copro): Renamed from decode_svc_copro.
7054         (copy_copro_load_store, copy_alu_imm): update callers.
7055         (copy_extra_ld_st, copy_block_xfer): Likewise.
7056         (decode_misc_memhint_neon, decode_unconditional): Likewise.
7057         (decode_miscellaneous, decode_dp_misc): Likewise.
7058         (decode_ld_st_word_ubyte, decode_media): Likewise.
7059         (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
7060         (decode_svc_copro, decode_misc_memhint_neon): Likewise.
7061         (decode_unconditional, decode_miscellaneous): Likewise.
7062         (decode_media, decode_b_bl_ldmstm): Likewise.
7063         (arm_process_displaced_insn): Likewise..
7064         (decode_misc_memhint_neon): Delete.
7065         (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
7066         (decode_miscellaneous): Delete.
7067         (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
7068         (decode_dp_misc): Delete.
7069         (arm_decode_dp_misc): Renamed from decode_dp_misc.
7070         (decode_ld_st_word_ubyte): Delete.
7071         (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
7072         (decode_media): Delete.
7073         (arm_decode_media): Renamed from decode_media.
7074         (decode_b_bl_ldmstm): Delete.
7075         (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
7076         (decode_ext_reg_ld_st): Delete.
7077         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7078         (decode_unconditional): Delete.
7079         (arm_decode_unconditional): Renamed from decode_unconditional.
7080
7081 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7082
7083         Case insensitive lookups implementation.
7084         * dwarf2read.c: Include ctype.h.
7085         (struct mapped_index): New field version.
7086         (mapped_index_string_hash): New parameter index_version.  New comment
7087         for it.  Call tolower appropriately.
7088         (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
7089         Choose the right index version for mapped_index_string_hash.
7090         (dwarf2_read_index): Support also the index version 5.  Initialize the
7091         new struct mapped_index field version.
7092         (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
7093         (find_slot): Explain the version needs.  Pass INT_MAX for the new
7094         parameter.
7095         (write_psymtabs_to_index): Produce version 5.
7096         * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
7097         use it.  New comment for SYMBOL_MATCHES_SEARCH_NAME.
7098         * psymtab.c (lookup_partial_symbol): Find the
7099         SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
7100         entries.
7101         * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
7102         NAME lowercasing.
7103         (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
7104         (completion_list_add_name): New variable ncmp, initialize it, use it.
7105         * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
7106         * utils.c (strcmp_iw): Support case_sensitive_off.
7107         (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
7108         New function comment part.  New variables saved_string1,
7109         saved_string2 and case_pass.  Add a proper second pass.
7110
7111 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7112
7113         Replace re_comp/re_exec by regcomp/regexec.
7114         * symtab.c (struct search_symbols_data): New fields preg, preg_p.
7115         (search_symbols_name_matches): Use them, use regexec.
7116         (search_symbols): New variable retval_chain, adjust the use of
7117         old_chain against it.  Replace re_comp by regcomp.  Use the new struct
7118         search_symbols_data fields, use regexec instead of re_exec.
7119
7120 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7121
7122         Format the code for the next patch.
7123         * dwarf2read.c (struct mapped_index): Include delimiting newlines.
7124         * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
7125         New variables c1 and c2.
7126
7127 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
7128
7129         * infrun.c (proceed): Do not single-step into signal delivery
7130         when stepping off a breakpoint location.
7131         (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
7132         (insert_step_resume_breakpoint_at_caller): Likewise.
7133         (insert_step_resume_breakpoint_at_sal): Likewise.
7134         (insert_longjmp_resume_breakpoint): Likewise.
7135
7136 2011-04-27  Yao Qi  <yao@codesourcery.com>
7137
7138         * common/linux-ptrace.h: Remove include <sys/wait.h>.
7139
7140 2011-04-27  Joel Brobecker  <brobecker@adacore.com>
7141
7142         * procfs.c (procfs_pass_signals): Fix advance declaration.
7143
7144 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
7145
7146         * target.h (struct target_ops): Remove to_notice_signals;
7147         add to_pass_signals.
7148         (target_notice_signals): Remove.
7149         (target_pass_signals): Add prototype.
7150         * target.c (update_current_target): Remove to_notice_signals;
7151         mention to_pass_signals.
7152         (target_pass_signals): New function.
7153         (debug_to_notice_signals): Remove.
7154         (setup_target_debug): Do not install debug_to_notice_signals.
7155
7156         * infrun.c (signal_pass): New global.
7157         (resume): Call target_pass_signals.
7158         (handle_inferior_event): Report all signals while stepping over
7159         non-steppable watchpoint.  Reset trap_expected to ensure breakpoints
7160         are re-inserted when stepping over a signal handler.
7161         (signal_cache_update): New function.
7162         (signal_stop_update): Call it.
7163         (signal_print_update): Likewise.
7164         (signal_pass_update): Likewise.
7165         (handle_command): Call signal_cache_update and target_pass_signals
7166         instead of target_notice_signals.
7167         (_initialize_infrun): Initialize signal_pass.
7168
7169         * linux-nat.c (pass_mask): New global.
7170         (linux_nat_pass_signals): New function.
7171         (linux_nat_create_inferior): Report all signals initially.
7172         (linux_nat_attach): Likewise.
7173         (linux_nat_resume): Use pass_mask to decide whether to directly
7174         handle an inferior signal.
7175         (linux_nat_wait_1): Likewise.
7176         (linux_nat_add_target): Install to_pass_signals callback.
7177
7178         * nto-procfs.c (notice_signals): Remove.
7179         (procfs_resume): Do not call notice_signals.
7180         (procfs_notice_signals): Remove.
7181         (procfs_pass_signals): New function.
7182         (init_procfs_ops): Install to_pass_signals callback instead of
7183         to_notice_signals callback.
7184         (_initialize_procfs): Report all signals initially.
7185
7186         * procfs.c (procfs_notice_signals): Remove.
7187         (procfs_pass_signals): New function.
7188         (procfs_target): Install to_pass_signals callback instead of
7189         to_notice_signals callback.
7190         (register_gdb_signals): Remove.
7191         (procfs_debug_inferior): Report all signals initially.
7192         (procfs_init_inferior): Remove redundant register_gdb_signals call.
7193
7194         * remote.c (remote_pass_signals): Add numsigs and pass_signals
7195         parameters; use them instead of calling signal_..._state routines.
7196         (remote_notice_signals): Remove.
7197         (remote_start_remote): Report all signals initially.
7198         (remote_resume): Do not call remote_pass_signals.
7199         (_initialize_remote): Install to_pass_signals callback instead of
7200         to_notice_signals callback.
7201
7202 2011-04-27  Pedro Alves  <pedro@codesourcery.com>
7203
7204         * breakpoint.c (user_settable_breakpoint): Delete.
7205         (user_breakpoint_p): Remove check on user_settable_breakpoint.
7206         (delete_command): Check user_breakpoint_p instead of looking at
7207         the breakpoint's type.
7208         (disable_command): Ditto.
7209         (enable_command): Ditto.
7210         (delete_trace_command): Use user_breakpoint_p instead of looking
7211         at the breakpoint number directly.  When checking if there are
7212         user visible tracepoints, in order to know whether to ask the user
7213         for confirmation, check whether the breakpoint is actually a
7214         tracepoint.
7215
7216 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
7217
7218         * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7219         compilation.
7220
7221 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
7222
7223         MI breakpoint notifications.
7224
7225         * annotate.c (breakpoint_changed): Adjust parameter type.
7226         * breakpoint.c (set_breakpoint_condition): Adjust to change
7227         in breakpoint_modified type.
7228         (breakpoint_set_commands): Likewise.
7229         (do_map_commands_command): Likewise.
7230         (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7231         changed after bumping hit count.
7232         (bpstat_stop_status): Likewise.
7233         (print_one_breakpoint_location): Don't wrap in tuple here.
7234         (print_one_breakpoint): Always print individual locations.
7235         For locations, use unnamed tuple.
7236         (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7237         has changed.
7238         (create_catchpoint, create_syscall_event_catchpoint): Call
7239         breakpoint_created obsever.
7240         (mention): Don't call breakpoint_created observer.
7241         (create_breakpoint_sal): Call breakpoint_created observer.
7242         (create_breakpoint, watch_command_1): Likewise.
7243         (create_ada_exception_breakpoint): Likewise.
7244         (delete_breakpoint): Call breakpoint_deleted breakpoint.
7245         (locations_are_equal): New.
7246         (update_breakpoint_locations): If locations were changed, notify.
7247         (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7248         Call breakpoint_modified observer.
7249
7250         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7251         (mi_cmd_break_insert): Don't set observers for modify and delete.
7252         * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7253         (mi_breakpoint_created, mi_breakpoint_deleted)
7254         (mi_breakpoint_modified): New.
7255         (mi_interpreter_init): Hook the above.
7256         * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7257         while -break-* commands are executing.
7258         * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7259         * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7260         (mi_redirect): New.
7261         (mi_ui_out_impl): Hook in mi_redirect.
7262         (mi_field_skip): True to the name, skip the field, don't output
7263         a field with an empty value.
7264
7265         * python/py-breakpoint.c (gdbpy_breakpoint_created)
7266         (gdbpy_breakpoint_deleted): Adjust.
7267         * tui/tui-hooks.c (tui_event_create_breakpoint)
7268         (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
7269
7270 2011-04-26  Aleksandar Ristovski  <aristovski@qnx.com>
7271
7272         * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7273         (procfs_remove_hw_watchpoint): Likewise.
7274
7275 2011-04-26  Michael Walle  <michael@walle.cc>
7276
7277         * remote.c (remote_start_remote): Ack packet after sending the
7278         interrupt sequence.
7279
7280 2011-04-26  Yao Qi  <yao@codesourcery.com>
7281
7282         * linux-nat.c: Move common macros to ...
7283         Include linux-ptrace.h.
7284         * common/linux-ptrace.h: ... here.  New.
7285
7286 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7287
7288         * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7289         !objfile_has_partial_symbols.  New comment.
7290         * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7291         SYM_READ_PSYMBOLS is not present. Extend the comment.
7292         * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7293
7294 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7295
7296         * defs.h (ENUM_BITFIELD): Remove.
7297
7298 2011-04-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
7299             Eli Zaretskii  <eliz@gnu.org>
7300
7301         * NEWS: Document the new gdbserver --once option.
7302
7303 2011-04-21  Jie Zhang  <jzhang918@gmail.com>
7304
7305         * MAINTAINERS: Update my email address.
7306
7307 2011-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
7308
7309         * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7310         (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7311         function call if __STDC_ISO_10646__ macro is defined.
7312         (intermediate_encoding): New prototype.
7313         * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7314         to generate compile time error for unsupported gdb_wchar_t size.
7315         (ENDIAN_SUFFIX): New macro.
7316         (intermediate_encoding): New function.
7317
7318 2011-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
7319
7320         * ada-lang.c (struct add_partial_datum): Update the comment for
7321         expand_partial_symbol_name.
7322         (ada_add_partial_symbol_completions): Rename to ...
7323         (ada_expand_partial_symbol_name): ... here, change return type, update
7324         function comment, call symbol_completion_match instead of
7325         symbol_completion_add.
7326         (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7327         and ada_expand_partial_symbol_name.
7328         * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7329         FILE_MATCHER.
7330         (dw2_map_symbol_names): Remove.
7331         (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7332         * psymtab.c (map_symbol_names_psymtab): Remove.
7333         (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7334         Support KIND == ALL_DOMAIN.  Exchange the NAME_MATCHER and KIND check
7335         order.
7336         (psym_functions): Unlist map_symbol_names_psymtab.
7337         (map_partial_symbol_names): Rename to ...
7338         (expand_partial_symbol_names): ... here, change the FUN type, call
7339         expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7340         * psymtab.h (map_partial_symbol_names): Rename to ...
7341         (expand_partial_symbol_names): ... here, change the FUN type.
7342         * symfile.h (struct quick_symbol_functions): Update the description of
7343         expand_symtabs_matching.  Remove map_symbol_names.
7344         * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7345         (struct add_name_data): Update the comment for
7346         expand_partial_symbol_name.
7347         (add_partial_symbol_name): Rename to ...
7348         (expand_partial_symbol_name): ... here.  Replace
7349         completion_list_add_name call by strncmp.
7350         (default_make_symbol_completion_list_break_on): Use now
7351         expand_partial_symbol_names and expand_partial_symbol_name.
7352         * symtab.h (enum search_domain): New element ALL_DOMAIN.
7353
7354 2011-04-20  Tom Tromey  <tromey@redhat.com>
7355
7356         * dwarf2read.c (save_gdb_index_command): Replace format
7357         documentation with a pointer to the manual.
7358
7359 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
7360
7361         * regcache.c: Include remote.h.
7362         (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7363         (regcache_dump): Handle regcache_dump_remote.
7364         (maintenance_print_remote_registers): New function.
7365         (_initialize_regcache): Install "maint print remote-registers"
7366         command.
7367         * remote.c (map_regcache_remote_table): New function, factored out
7368         from ...
7369         (init_remote_state): ... here.
7370         (remote_register_number_and_offset): New.
7371         * remote.h (remote_register_number_and_offset): Declare.
7372
7373 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
7374
7375         * regcache.c (get_thread_arch_regcache): If creating a regcache for
7376         null_ptid, assume and allow a NULL address space, instead of
7377         asking the target for the ptid's address space.
7378         * infrun.c (ptid_is_pid): Remove assertion.
7379
7380 2011-04-19  Tom Tromey  <tromey@redhat.com>
7381
7382         * windows-tdep.c (windows_xfer_shared_library):
7383         * windows-nat.c (get_module_name, windows_make_so):
7384         * v850-tdep.c (v850_handle_pushm):
7385         * utils.c (null_cleanup, gdb_realpath):
7386         * ui-out.c (get_next_header):
7387         * tracepoint.c (clear_traceframe_info):
7388         * symtab.c (lookup_symtab):
7389         * serial.h (struct serial_ops):
7390         * mipsread.c (read_alphacoff_dynamic_symtab):
7391         * infcmd.c (print_return_value):
7392         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7393         * f-exp.y (parse_number):
7394         * exceptions.c (catch_exceptions):
7395         * dummy-frame.c (dummy_frame_this_id):
7396         * defs.h (struct cleanup):
7397         * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7398         * arm-tdep.c (arm_push_dummy_call):
7399         * amd64-tdep.h (amd64_collect_xsave):
7400         * amd64-tdep.c (amd64_collect_xsave):
7401         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7402         * README (typing): Remove duplicate words.
7403         * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7404         * infrun.c (siginfo_value_read): Fix typo.
7405         * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7406         * top.c (source_line_number): Add comma.
7407
7408 2011-04-19  Marc Khouzam  <marc.khouzam@ericsson.com>
7409
7410         * thread.c (any_live_thread_of_process): Prioritize threads
7411         that are not executing.
7412         * gdbthread.h (any_live_thread_of_process): Update comment
7413         as per above change.
7414
7415 2011-04-19  Andreas Schwab  <schwab@linux-m68k.org>
7416
7417         * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7418         (scan_xcoff_symtab): Likewise.
7419
7420 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7421
7422         * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7423         inside if clause.
7424
7425 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7426             Pedro Alves  <pedro@codesourcery.com>
7427
7428         * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7429         variables to simplify code and avoid == operator at end of
7430         line as this is against GNU coding standards.
7431
7432 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7433
7434         * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7435         lm_name to name_lm to avoid conflict with lm_name function.
7436
7437 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7438
7439         ARI fixes: Use only lowercase function name for static functions.
7440         * nto-tdep.c (LM_ADDR): Rename to...
7441         (lm_addr): New function name.
7442         (nto_relocate_section_addresses): Adapt to change above.
7443         * solib-sunos.c (LM_ADDR): Rename to...
7444         (lm_addr): New function name.
7445         (LM_NEXT): Rename to...
7446         (lm_next): New function name.
7447         (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7448         function name changes above.
7449         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7450         (lm_addr_from_link_map): New function name.
7451         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7452         (has_lm_dynamic_from_link_map): New function name.
7453         (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7454         (lm_dynamic_from_link_map): New function name.
7455         (LM_ADDR_CHECK): Rename to...
7456         (lm_addr_check): New function name.
7457         (LM_NEXT): Rename to...
7458         (lm_next): New function name.
7459         (LM_PREV): Rename to...
7460         (lm_prev): New function name.
7461         (LM_NAME): Rename to...
7462         (lm_name): New function name.
7463         (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7464         (ignore_first_link_map_entry): New function name.
7465         (svr4_keep_data_in_core): Adapt to function name changes above.
7466         (svr4_current_sos): Likewise.
7467         (enable_break): Likewise.
7468         (svr4_relocate_section_addresses): Likewise.
7469
7470 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7471
7472         ARI cleanup.
7473         * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7474         sprintf. Simplify code and avoid loosing memory.
7475         (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7476         (call0_frame_cache): Remove && operator from end of line.
7477
7478 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7479
7480         Fix libraries displacement if they change whether they were prelinked.
7481         * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7482         does not match.  Comment why.
7483
7484 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7485
7486         * corelow.c: Include wrapper.h.
7487         (core_open): Call now gdb_target_find_new_threads.
7488         * wrapper.c: Include target.h.
7489         (gdb_target_find_new_threads): New.
7490         * wrapper.h (gdb_target_find_new_threads): New declaration.
7491
7492 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7493
7494         * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7495         even if !TARGET_HAS_EXECUTION.
7496
7497 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7498
7499         Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7500         * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7501         bfd_get_synthetic_symtab.
7502         * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7503         * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7504         parameter parent, remove the call to add_separate_debug_objfile.
7505         * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7506         * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7507         * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7508         parent, new comment for it, call add_separate_debug_objfile for it.
7509         (symbol_file_add_separate): Pass objfile as the parameter parent,
7510         remove the call to add_separate_debug_objfile.
7511         (symbol_file_add_from_bfd): New parameter parent, pass it.
7512         (symbol_file_add): Pass NULL to the new parameter parent.
7513         * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7514
7515 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7516
7517         * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7518         BSF_SYNTHETIC.
7519
7520 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7521
7522         Fix Python access to inlined frames.
7523         * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7524         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7525
7526 2011-04-15  Tom Tromey  <tromey@redhat.com>
7527
7528         * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7529
7530 2011-04-15  Gary Benson  <gbenson@redhat.com>
7531
7532         * MAINTAINERS: Add myself to write-after-approval section.
7533
7534 2011-04-14  Mike Frysinger  <vapier@gentoo.org>
7535
7536         * remote-sim.c (sim_command_completer): New function.
7537         (_initialize_remote_sim): Set completer to sim_command_completer.
7538
7539 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7540
7541         * breakpoint.c (print_exception_catchpoint): Rename to ...
7542         (print_it_exception_catchpoint): ... this.
7543         (gnu_v3_exception_catchpoint_ops): Update with new name
7544         for print_it_exception_catchpoint.
7545
7546 2011-04-13  Edjunior Machado  <emachado@linux.vnet.ibm.com>
7547
7548         * MAINTAINERS: Add myself for write after approval privileges.
7549
7550 2011-04-13  Marek Polacek  <mpolacek@redhat.com>
7551
7552         * MAINTAINERS: Add myself as a write-after-approval maintainer.
7553
7554 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7555
7556         * breakpoint.c (watch_command_1): Remove colon from exp_string.
7557
7558 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7559
7560         * breakpoint.c (save_breakpoints): Verify whether
7561         breakpoint_ops.print_recreate is defined before calling it.
7562
7563 2011-04-11  Gary Benson  <gbenson@redhat.com>
7564
7565         Fix failure with --enable-maintainer-mode.
7566         * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7567
7568 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7569
7570         Code cleanup.
7571         * symtab.c (search_symbols): Reorder the KIND description in the
7572         function comment.  Remove the unused 4th element of types, types2,
7573         types3 and types4.  New gdb_assert on KIND.
7574         (symtab_symbol_info): Remove the unused 4th element of classnames.
7575         New gdb_assert on KIND.
7576         * symtab.h (enum search_domain): New warning in the enum comment.
7577         Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7578         TYPES_DOMAIN.
7579
7580 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7581
7582         Fix crash of gdb save-index on a STABS file.
7583         * dwarf2read.c (write_psymtabs_to_index): Return also on no
7584         PSYMTABS_ADDRMAP.
7585
7586 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7587
7588         Fix DW_AT_accessibility compatibility with gcc-4.6+.
7589         * dwarf2read.c: Include ctype.h.
7590         (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7591         functions.
7592         (dwarf2_add_field): Fix new_field->accessibility by calling
7593         dwarf2_default_access_attribute.  Restructure setting accessibility
7594         vs. virtuality.
7595         (dwarf2_add_member_fn): New variable accessibility.  Fix fnp
7596         is_private and is_protected by calling
7597         dwarf2_default_access_attribute.
7598
7599 2011-04-08  Kevin Buettner  <kevinb@redhat.com>
7600
7601         * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7602         to the initialization.
7603
7604 2011-04-08  Steve Ellcey  <sje@cup.hp.com>
7605
7606         * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7607         initalization.
7608
7609 2011-04-07  Pierre Muller  <muller@ics.u-strasbg.fr>
7610
7611         Remove support for old Cygwin 1.5 versions.
7612         * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7613         function on old Cygwin version.
7614         * windows-nat.c: Remove cygwin version check and always define
7615         __USEWIDE for Cygwin compilation.
7616
7617 2011-04-07  Yao Qi  <yao@codesourcery.com>
7618
7619         * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7620         and TO.
7621         * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7622         (arm_copy_svc): Remove parameters INSN and TO.
7623         (decode_svc_copro): Update caller.
7624         * arm-tdep.h (struct displaced_step_closure): Remove parameters
7625         from function pointer `copy_svc_os'.
7626
7627 2011-04-07  Yao Qi  <yao@codesourcery.com>
7628
7629         * arm-tdep.c (cleanup_branch): Set a correct return address in
7630         LR for ARM and Thumb.
7631
7632 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7633
7634         Code cleanup.
7635         * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7636         * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7637         in the function comment, a new note on values compatibility.
7638         * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7639         * symtab.h (SYMBOL_HASH_NEXT): New.
7640
7641 2011-04-06  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7642
7643         * ppc-linux-nat.c (check_condition): Add len output parameter.
7644         Set it based on the memory region referenced in the condition
7645         expression.  Update all callers.
7646
7647 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7648
7649         Fix crash regression on systems featuring .gdb_index.
7650         * objfiles.c (free_objfile): Move the
7651         forget_cached_source_info_for_objfile call earlier.  Comment it.
7652         Extend the comment for objfile_free_data.
7653
7654 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7655
7656         Fix regression of displaying the debug format.
7657         * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7658         subfile.
7659
7660 2011-04-04  Tom Tromey  <tromey@redhat.com>
7661
7662         * cli/cli-interp.c (struct captured_execute_command_args):
7663         Remove.
7664         (do_captured_execute_command): Remove.
7665         (safe_execute_command): Use TRY_CATCH.
7666         * cli/cli-script.c (struct wrapped_read_command_file_args):
7667         Remove.
7668         (wrapped_read_command_file): Remove.
7669         (script_from_file): Use TRY_CATCH.
7670         * exceptions.c (catch_exception): Remove.
7671         * exceptions.h (catch_exception): Remove.
7672         (deprecated_throw_reason): Update comment.
7673         * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7674         argument to 'context'.
7675         (mi_execute_command): Use TRY_CATCH.
7676         * remote.c (struct start_remote_args): Remove.
7677         (remote_start_remote): Update; change arguments.
7678         (remote_open_1): Use TRY_CATCH.
7679
7680 2011-04-04  Tom Tromey  <tromey@redhat.com>
7681
7682         * tracepoint.c (scope_info): Update.
7683         * symtab.c (decode_line_spec): Update.
7684         * python/python.c (gdbpy_decode_line): Update.
7685         * linespec.h (decode_line_1): Update.
7686         * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7687         (decode_compound, find_method, symtab_from_filename)
7688         (decode_variable): Likewise.
7689         * cli/cli-cmds.c (edit_command): Update.
7690         (list_command): Update.
7691         * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7692         argument.
7693         (create_breakpoint): Update.
7694         (until_break_command): Update.
7695         (addr_string_to_sals): Update.
7696         (decode_line_spec_1): Update.
7697
7698 2011-04-04  Tom Tromey  <tromey@redhat.com>
7699
7700         * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7701         (do_captured_parse_breakpoint): Remove.
7702         (create_breakpoint): `e' is now volatile.  Remove `parse_args'.
7703         Use TRY_CATCH directly.
7704
7705 2011-04-04  Tom Tromey  <tromey@redhat.com>
7706
7707         * symtab.h (free_symtab): Remove.
7708         (forget_cached_source_info_for_objfile): Declare.
7709         * symmisc.c (free_symtab): Remove.
7710         * source.c (forget_cached_source_info_for_objfile): New function.
7711         (forget_cached_source_info): Use it.
7712         * objfiles.c (free_objfile): Simplify check before calling
7713         clear_current_source_symtab_and_line.  Call
7714         forget_cached_source_info_for_objfile.
7715
7716 2011-04-04  Tom Tromey  <tromey@redhat.com>
7717
7718         * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7719         (new_symtab): Don't set `free_code' on symtab.
7720         (new_linetable): Properly handle size==0.
7721         * symtab.h (struct symtab) <free_code, free_func>: Remove.
7722         * symmisc.c (free_symtab): Don't free the linetable.  Don't call
7723         free_func.
7724         * jv-lang.c (struct jv_per_objfile_data): New.
7725         (jv_per_objfile_free): Free the data.
7726         (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7727         (get_java_class_symtab): Set the `dict' field on the
7728         jv_per_objfile_data.
7729         (free_class_block): Remove.
7730         * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7731         the symtab.
7732
7733 2011-04-04  Tom Tromey  <tromey@redhat.com>
7734
7735         * symfile.c (reread_symbols): Update.
7736         * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7737         field.
7738         * objfiles.c (allocate_objfile): Update.
7739         * cp-support.h (cp_check_possible_namespace_symbols): Don't
7740         declare.
7741         * cp-namespace.c (lookup_symbol_file): Don't call
7742         lookup_possible_namespace_symbol.
7743         (initialize_namespace_symtab, get_possible_namespace_block)
7744         (free_namespace_block, cp_check_possible_namespace_symbols)
7745         (check_possible_namespace_symbols_loop)
7746         (check_one_possible_namespace_symbol)
7747         (lookup_possible_namespace_symbol): Remove.
7748         (maintenance_cplus_namespace): Replace with notice.
7749         (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7750
7751 2011-04-04  Tom Tromey  <tromey@redhat.com>
7752
7753         * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7754         * symtab.h (struct symtab) <producer, debugformat>: Now const.
7755         * symmisc.c (free_symtab): Don't free debugformat.
7756         * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7757         (record_debugformat, record_producer): Document.
7758         * buildsym.c (end_symtab): Don't save debugformat and producer
7759         names on obstack.
7760         (end_symtab): Don't free debugformat and producer fields.
7761         (record_debugformat): Don't call xstrdup.
7762         (record_producer): Likewise.
7763
7764 2011-04-04  Tom Tromey  <tromey@redhat.com>
7765
7766         * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7767         (source_line_charpos, source_charpos_line): Remove.
7768
7769 2011-04-04  Tom Tromey  <tromey@redhat.com>
7770
7771         * symtab.h (domain_enum): Split in two...
7772         (enum search_domain): New.
7773         (search_symbols): Update.
7774         * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7775         redundant declarations.
7776         (search_symbols): Change 'kind' argument to search_domain.
7777         Update.
7778         (print_symbol_info): Likewise.
7779         (symtab_symbol_info): Likewise.
7780         * symfile.h (struct quick_symbol_functions)
7781         <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7782         <expand_symtabs_matching>: Likewise.
7783         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7784         (expand_symtabs_matching_via_partial): Update.
7785         * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7786         (dw2_expand_symtabs_for_function): Update.
7787         * block.h: Moved anonymous enum...
7788         * defs.h (enum block_enum): ... here.  Now named.
7789
7790 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
7791
7792         GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7793         * version.in: Bump version to 7.3.50.20110403-cvs.
7794
7795 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
7796
7797         * NEWS: Create a new section for the next release branch.
7798         Rename the section of the current branch, now that it has
7799         been cut.
7800
7801 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
7802
7803         * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7804         for "fpscr" in target description.
7805
7806 2011-04-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
7807
7808         * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7809         initialize it.  Delay HASH initialization.  Strip the part after open
7810         parenthesis for languages with qualifiers.  Call do_cleanups.
7811
7812 2011-04-01  Tom Tromey  <tromey@redhat.com>
7813
7814         * utils.c (report_command_stats): Don't print `-' for negative
7815         number.
7816
7817 2011-04-01  Eric Botcazou  <ebotcazou@adacore.com>
7818
7819         * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7820         (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7821         typedefs.
7822
7823 2011-04-01  Joel Brobecker  <brobecker@adacore.com>
7824
7825         * breakpoint.h (bpdisp_text): Add declaration.
7826         * breakpoint.c (bpdisp_text): Make non-static.
7827         * ada-lang.c: #include "mi/mi-common.h".
7828         (print_it_exception): Rewrite to improve GDB/MI output.
7829
7830 2011-04-01  Pedro Alves  <pedro@codesourcery.com>
7831
7832         * arm-tdep.h (struct address_space): Add forward declaration.
7833
7834 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
7835
7836         * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7837         * arm-tdep.c (arm_override_mode): New global.
7838         (arm_pc_is_thumb): Respect arm_override_mode.  Remove single-step
7839         execution mode heuristics.
7840         (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7841         second single-step breakpoint if needed, using
7842         arm_insert_single_step_breakpoint.
7843         (arm_get_next_pc_raw): Remove INSERT_BKTP argument.  Only handle
7844         ARM execution mode, do not call thumb_get_next_pc_raw.
7845         (arm_get_next_pc): Encode execution mode in return value.  Call
7846         either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7847         (arm_insert_single_step_breakpoint): New function.
7848         (arm_software_single_step): Call it.
7849         * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7850         argument to return execution mode of sigreturn target.
7851         (arm_linux_syscall_next_pc): Use it.
7852         (arm_linux_copy_svc): Update call.
7853         (arm_linux_software_single_step): Call
7854         arm_insert_single_step_breakpoint.
7855
7856 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
7857
7858         * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7859         the comment.
7860
7861 2011-03-31  Tom Tromey  <tromey@redhat.com>
7862
7863         * varobj.c (update_dynamic_varobj_children): Properly handle
7864         errors from iterator.
7865
7866 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
7867
7868         * dwarf2read.c (dwarf2_name): Initialize DEMANGLED.  Avoid demangling
7869         struct linkage name twice.
7870
7871 2011-03-31  Tom Tromey  <tromey@redhat.com>
7872
7873         * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7874         missing ">" to message.
7875
7876 2011-03-31  Tom Tromey  <tromey@redhat.com>
7877
7878         * varobj.c (instantiate_pretty_printer): Remove duplicate
7879         'return'.
7880
7881 2011-03-31  Ulrich Weigand  <ulrich.weigand@linaro.org>
7882
7883         * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7884         if neither saved value nor register available (e.g. signal frame).
7885
7886 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7887
7888         * macroexp.c (expand): Avoid uninitialized variable
7889         compiler warning.
7890
7891 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7892
7893         * breakpoint.c (break_range_command): Fix typo in comment.
7894
7895 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7896             Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
7897
7898         Implement support for PowerPC BookE ranged breakpoints.
7899         * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7900         * breakpoint.h (struct bp_target_info) <length>: New member
7901         variable.
7902         (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7903         instead of struct breakpoint as argument, and also add ASPACE
7904         and BP_ADDR arguments.  Update all callers.
7905         (struct breakpoint_ops) <print_one_detail>: New method.
7906         (struct breakpoint) <addr_string_range_end>: New member variable.
7907         * breakpoint.c (breakpoint_location_address_match): Add function
7908         prototype.
7909         (insert_bp_location): Set bl->target_info.length.
7910         (breakpoint_here_p): Call breakpoint_location_address_match.
7911         (moribund_breakpoint_here_p): Likewise.
7912         (regular_breakpoint_inserted_here_p): Likewise.
7913         (breakpoint_thread_match): Likewise.
7914         (bpstat_stop_status): Likewise.
7915         (bpstat_check_location): Move call to
7916         breakpoint_ops.breakpoint_hit to the top.
7917         (print_one_breakpoint_location): Call
7918         breakpoint_ops.print_one_detail if available.
7919         (breakpoint_address_match_range): New function.
7920         (breakpoint_location_address_match): Likewise.
7921         (breakpoint_locations_match): Compare the length field of the
7922         locations too.
7923         (hw_breakpoint_used_count): Count resources used by all locations
7924         in a breakpoint, and use breakpoint_ops.resources_needed if
7925         available.
7926         (breakpoint_hit_ranged_breakpoint): New function.
7927         (resources_needed_ranged_breakpoint): Likewise.
7928         (print_it_ranged_breakpoint): Likewise.
7929         (print_one_ranged_breakpoint): Likewise.
7930         (print_one_detail_ranged_breakpoint): Likewise.
7931         (print_mention_ranged_breakpoint): Likewise.
7932         (print_recreate_ranged_breakpoint): Likewise.
7933         (ranged_breakpoint_ops): New structure.
7934         (find_breakpoint_range_end): New function.
7935         (break_range_command): Likewise.
7936         (delete_breakpoint): Free addr_string_range_end.
7937         (update_breakpoint_locations): Add SALS_END argument.  Update
7938         all callers.  Calculate breakpoint length if a non-zero SALS_END
7939         is given.  Call breakpoint_locations_match instead of
7940         breakpoint_address_match.
7941         (reset_breakpoint): Find SaL of the end of the range if B is a
7942         ranged breakpoint.
7943         (_initialize_breakpoint): Register break-range command.
7944         * defs.h (print_core_address): Add function prototype.
7945         * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7946         function.
7947         (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7948         (ppc_linux_remove_hw_breakpoint): Likewise.
7949         (_initialize_ppc_linux_nat): Initialize
7950         to_ranged_break_num_registers.
7951         * target.c (update_current_target): Add comment about
7952         to_ranged_break_num_registers.
7953         (target_ranged_break_num_registers): New function.
7954         * target.h (struct target_ops) <to_ranged_break_num_registers>:
7955         New method.
7956         (target_ranged_break_num_registers): Add function prototype.
7957         * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7958         * utils.c (print_core_address): ... here.
7959
7960 2011-03-31  Ulrich Weigand  <uweigand@de.ibm.com>
7961
7962         * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7963         variable compiler warning.
7964
7965 2011-03-30  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7966
7967         * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7968         code from here ...
7969         (re_set_breakpoint): ... to here ...
7970         (addr_string_to_sals): ... and here.
7971
7972 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
7973
7974         * Makefile.in (SFILES): Add missing C sources.
7975         (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7976         Add missing headers.
7977
7978 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
7979
7980         * .gitignore: New file.
7981
7982 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
7983
7984         * NEWS: Mention new cfi device simulation.
7985
7986 2011-03-29  Tom Tromey  <tromey@redhat.com>
7987
7988         * dwarf2read.c (fixup_partial_die): Handle linkage name on
7989         otherwise anonymous types.
7990         (dwarf2_name): Likewise.
7991         * valops.c (value_struct_elt_for_reference): Refine artificial
7992         type logic.  Call error if j==-1.
7993
7994 2011-03-29  Andreas Tobler  <andreast-list@fgznet.ch>
7995
7996         Fix false GCC warning.
7997         * infcall.c (find_function_addr): Initialize funaddr.
7998
7999 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
8000
8001         Fix mingw compilation with --enable-targets=all.
8002         * remote-mips.c (gdb_usleep.h): Include header.
8003         (mips_enter_debug): Use gdb_usleep instead of sleep.
8004
8005 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8006
8007         Support resolution of STT_GNU_IFUNC via breakpoints.
8008         * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
8009         bp_gnu_ifunc_resolver_return.
8010         (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
8011         the loop.  Support bp_gnu_ifunc_resolver and
8012         bp_gnu_ifunc_resolver_return.  New comment after the loop.  New loop
8013         for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
8014         breakpoints.
8015         (bptype_string, print_one_breakpoint_location): Support
8016         bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
8017         (user_settable_breakpoint): Return true also for
8018         bp_gnu_ifunc_resolver.
8019         (allocate_bp_location): Support bp_gnu_ifunc_resolver and
8020         bp_gnu_ifunc_resolver_return.
8021         (set_breakpoint_location_function): New parameter explicit_loc,
8022         describe it.  Call find_pc_partial_function_gnu_ifunc with new
8023         variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
8024         EXPLICIT_LOC is not set.
8025         (set_raw_breakpoint): Set EXPLICIT_LOC for
8026         set_breakpoint_location_function.
8027         (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
8028         set_breakpoint_location_function.
8029         (mention): Support bp_gnu_ifunc_resolver and
8030         bp_gnu_ifunc_resolver_return.
8031         (add_location_to_breakpoint): Set EXPLICIT_LOC for
8032         set_breakpoint_location_function.
8033         (update_breakpoint_locations): Remove static.
8034         (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
8035         bp_gnu_ifunc_resolver_return.
8036         * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
8037         bp_gnu_ifunc_resolver_return.
8038         (update_breakpoint_locations): New declaration.
8039         * elfread.c: Include gdbthread.h and regcache.h.
8040         (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
8041         functions.
8042         (elf_gnu_ifunc_fns): Install them.
8043         * minsyms.c (stub_gnu_ifunc_resolver_stop)
8044         (stub_gnu_ifunc_resolver_return_stop): New functions.
8045         (stub_gnu_ifunc_fns): Install them.
8046         * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
8047         and gnu_ifunc_resolver_return_stop.
8048         (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
8049
8050 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8051
8052         STT_GNU_IFUNC reader implementation.
8053         * elfread.c: Include gdbtypes.h, value.h and infcall.h.
8054         (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
8055         (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
8056         (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
8057         (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
8058         (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
8059         (elf_gnu_ifunc_resolve_addr): New.
8060         (elf_symfile_read): Call elf_rel_plt_read.
8061         (elf_gnu_ifunc_fns): New.
8062         (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
8063         Install elf_gnu_ifunc_fns.
8064         * infcall.c (find_function_return_type): New function.
8065         (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
8066         * minsyms.c (stub_gnu_ifunc_resolve_addr)
8067         (stub_gnu_ifunc_resolve_name): New functions.
8068         (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
8069         * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
8070         (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
8071
8072 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8073
8074         Code cleanup for later STT_GNU_IFUNC support.
8075         * infcall.c (find_function_addr): Remove variable code, use explicit
8076         dereferences for it.  Move VALUE_TYPE initialization later.
8077
8078 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8079
8080         GDB find_pc_partial_function support for STT_GNU_IFUNC.
8081         * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
8082         (clear_pc_function_cache): Clear it.
8083         (find_pc_partial_function): Rename to ...
8084         (find_pc_partial_function_gnu_ifunc): ... this function.  New
8085         parameter is_gnu_ifunc_p, describe it.  Set *IS_GNU_IFUNC_P.
8086         (find_pc_partial_function): New wrapper for this function.
8087         * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
8088
8089 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8090
8091         GDB internal type support for STT_GNU_IFUNC.
8092         * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
8093         (elf_symtab_read): Set mst_text_gnu_ifunc for
8094         BSF_GNU_INDIRECT_FUNCTION.
8095         * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
8096         * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
8097         builtin_func_func, nodebug_text_gnu_ifunc_symbol and
8098         nodebug_got_plt_symbol.
8099         * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
8100         (TYPE_GNU_IFUNC): New.
8101         (struct main_type): New field flag_gnu_ifunc.
8102         (struct builtin_type): New field builtin_func_func.
8103         (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
8104         nodebug_got_plt_symbol.
8105         * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
8106         (in_gnu_ifunc_stub): New.
8107         (prim_record_minimal_symbol, find_solib_trampoline_target): Support
8108         mst_text_gnu_ifunc.
8109         * parse.c (write_exp_msymbol): New variable ifunc_msym.  Detect and
8110         support mst_text_gnu_ifunc.  Support mst_slot_got_plt.
8111         * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
8112         in_gnu_ifunc_stub.
8113         * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
8114         * symtab.c (search_symbols): Likewise.
8115         * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
8116         and mst_slot_got_plt.
8117         (in_gnu_ifunc_stub): New declaration.
8118
8119 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8120
8121         Support a ring of related breakpoints.
8122         * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
8123         other functions, add gdb_assert.
8124         (update_watchpoint, watchpoint_check): Add gdb_assert.  Use
8125         watchpoint_del_at_next_stop.
8126         (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
8127         (bpstat_stop_status): Handle ring in related_breakpoint.
8128         (set_raw_breakpoint_without_location): Initialize ring in
8129         related_breakpoint.
8130         (delete_breakpoint): Handle ring in related_breakpoint, use
8131         watchpoint_del_at_next_stop.
8132         (map_breakpoint_numbers): Handle ring in related_breakpoint.
8133
8134 2011-03-28  Tom Tromey  <tromey@redhat.com>
8135
8136         PR symtab/12441:
8137         * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8138         with `language_minimal'.
8139
8140 2011-03-25  Ulrich Weigand  <ulrich.weigand@linaro.org>
8141
8142         * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8143         instead of checking for STT_ARM_TFUNC symbol type.
8144
8145 2011-03-25  Tom Tromey  <tromey@redhat.com>
8146
8147         * linespec.c (symbol_found): Restore line-based result for
8148         non-LOC_LABEL symbols.
8149
8150 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8151
8152         * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8153         instead of strcmp for comparison.
8154         (tui_source_is_displayed): Likewise.
8155         * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8156
8157 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8158
8159         * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8160         complaint.
8161         (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8162         (find_partial_die_in_comp_unit): Likewise in comment.
8163         (read_attribute_value): Likewise.
8164         (lookup_die_type): Likewise.
8165         (dwarf_form_name): Likewise.
8166         (dump_die_shallow): Likewise.
8167         (follow_die_ref_or_sig): Likewise.
8168
8169 2011-03-24  Tom Tromey  <tromey@redhat.com>
8170
8171         PR breakpoints/11816:
8172         * linespec.c (decode_line_1): Parse `function:label' linespecs.
8173         (decode_compound): Update.
8174         (find_function_symbol): New function.
8175         (decode_dollar): Update.
8176         (decode_label): Add 'function_symbol' parameter.  Handle
8177         function-relative labels.
8178         (decode_variable): Update.
8179         (symbol_found): Add 'function_symbol' parameter.  Use label's PC,
8180         not its line.  Set `special_display' and canonical name for
8181         labels.
8182
8183 2011-03-24  Tom Tromey  <tromey@redhat.com>
8184
8185         * linespec.h (struct linespec_result) <special_display>: New
8186         field.
8187         * breakpoint.h (struct breakpoint) <display_canonical>: New
8188         field.
8189         * breakpoint.c (print_breakpoint_location): Respect
8190         display_canonical.
8191         (create_breakpoint_sal): Add 'display_canonical' parameter.
8192         (create_breakpoints_sal): Update.
8193         (create_breakpoint): Update.
8194
8195 2011-03-24  Tom Tromey  <tromey@redhat.com>
8196
8197         * symtab.c (decode_line_spec): Update.
8198         * linespec.c (build_canonical_line_spec): Change type of
8199         'canonical'.
8200         (decode_line_2, decode_line_1, decode_objc, decode_compound)
8201         (find_method, decode_all_digits, decode_dollar, decode_label)
8202         (symbol_found): Likewise.
8203         (init_linespec_result): New function.
8204         * breakpoint.c (struct captured_parse_breakpoint_args)
8205         <canonical_p>: New field, replaces addr_string_p.
8206         (create_breakpoints_sal): Add 'canonical' parameter, replacing
8207         'addr_string'.
8208         (parse_breakpoint_sals): Likewise.
8209         (do_captured_parse_breakpoint): Update.
8210         (create_breakpoint): Use struct linespec_result.
8211         (until_break_command): Update.
8212         (breakpoint_re_set_one): Update.
8213         (decode_line_spec_1): Update.
8214         * linespec.h (struct linespec_result): New.
8215         (init_linespec_result): Declare.
8216
8217 2011-03-23  Pedro Alves  <pedro@codesourcery.com>
8218
8219         * regcache.c (regcache_raw_read): If the target didn't supply a
8220         given raw register, mark it as unavailable.
8221
8222 2011-03-23  Kai Tietz  <ktietz@redhat.com>
8223
8224         * breakpoint.c (clear_command): Use filename_cmp
8225         instead of strcmp for comparison.
8226         * buildsym.c (watch_main_source_file_lossage): Likewise.
8227         (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8228         checking just for slash.
8229         * dbxread.c (read_dbx_symtab): Use lbasename instead of
8230         strrchr and filename_cmp instead of strcmp for filenames.
8231         (add_old_header_file): Use filename_cmp
8232         instead of strcmp for comparison.
8233         * exec.c (exec_set_section_address): Likewise.
8234         * macrotab.c (macro_lookup_inclusion): Likewise.
8235         (macro_lookup_inclusion): Likewise.
8236         * elfread.c (_initialize_elfread): Likewise.
8237         (elfstab_offset_sections): Likewise.
8238         (elfstab_offset_sections): Use lbasename instead of
8239         strrchr.
8240         * mdebugread.c (parse_partial_symbols): Likewise.
8241         (arse_partial_symbols): Use filename_(n)cmp instead of
8242         str(n)cmp for comparison.
8243         * minsyms.c (lookup_minimal_symbol): Likewise.
8244         * psymtab.c (read_psymtabs_with_filename): Likewise.
8245         * solib.c (solib_read_symbols): Likewise.
8246         (reload_shared_libraries_1): Likewise.
8247         * symmisc.c (maintenance_print_symbols): Likewise.
8248         * symfile.c (separate_debug_file_exists): Likewise.
8249         (reread_symbols): Likewise.
8250         (find_separate_debug_file_by_debuglink): Likewise.
8251         * remote-fileio.c (remote_fileio_func_rename): Likewise.
8252         * source.c (add_path): Likewise.
8253         * symtab.c (filename_seen): Likewise.
8254         (file_matches): Likewise.
8255         (print_symbol_info): Likewise.
8256         (maybe_add_partial_symtab_filename): Likewise.
8257         (make_source_files_completion_list): Likewise.
8258         * xml-syscall.c (init_sysinfo): Likewise.
8259         * windows-nat.c (_initialize_check_for_gdb_ini): Use
8260         IS_DIR_SEPARATOR for checking for trailing path separator.
8261
8262 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
8263
8264         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value.  New
8265         label abort_expression.
8266         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8267         DWARF_VALUE_OPTIMIZED_OUT.
8268
8269 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
8270
8271         Code cleanup.
8272         * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8273         to linkage_name.  Invert its value.  Update the function comment.
8274         (c_type_print_varspec_suffix): Invert it at the caller.
8275         * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8276
8277 2011-03-22  Pedro Alves  <pedro@codesourcery.com>
8278
8279         * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8280         errors when reading the `stop_pc'.
8281         * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8282         get_frame_pc.
8283
8284 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
8285
8286         * NEWS: Document gdb.Write stream keyword.
8287
8288 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
8289
8290         Revert:
8291         2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8292         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8293         (dwarf2_add_field): Fix new_field->accessibility for
8294         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8295
8296 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
8297
8298         PR python/12183
8299
8300         * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8301         other error classes.  Do not print stack trace.
8302
8303 2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8304
8305         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8306         (dwarf2_add_field): Fix new_field->accessibility for
8307         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8308
8309 2011-03-21  Ulrich Weigand  <ulrich.weigand@linaro.org>
8310
8311         * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8312         encountering a load via a non-SP register.
8313
8314 2011-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
8315
8316         * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8317         field in returned unwinder.
8318
8319 2012-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8320
8321         * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8322
8323 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
8324
8325         * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8326         of xmalloc.
8327
8328 2012-03-18  Pedro Alves  <pedro@codesourcery.com>
8329
8330         * frame.c (frame_unwind_register): Throw an error if unwinding the
8331         register failed.
8332         * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8333         an unwind stop reason.
8334         (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8335         * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8336         UNWIND_UNAVAILABLE>: New.
8337         * inline-frame.c (inline_frame_unwind): Install
8338         default_frame_unwind_stop_reason.
8339         * frame-unwind.c: Include "exceptions.h".
8340         (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8341         (default_frame_unwind_stop_reason): New.
8342         * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8343         (default_frame_unwind_stop_reason): Declare.
8344         (struct frame_unwind) <stop_reason>: New function pointer.
8345
8346         * dummy-frame.c: Install default_frame_unwind_stop_reason.
8347         * dwarf2-frame.c: Include exceptions.h.
8348         (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8349         (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8350         computing the CFA.  If such an error was thrown, set
8351         unavailable_retaddr.
8352         (dwarf2_frame_unwind_stop_reason): New.
8353         (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8354         unavailable.
8355         (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8356         (dwarf2_signal_frame_unwind): Ditto.
8357
8358         * amd64-tdep.c: Include "exceptions.h".
8359         (struct amd64_frame_cache): New field "base_p".
8360         (amd64_init_frame_cache): Clear it.
8361         (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8362         Avoid reading registers with functions that throw if the register
8363         is not necessary to compute the frame base.
8364         (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8365         swallowing NOT_AVAILABLE_ERROR.
8366         (amd64_frame_unwind_stop_reason): New.
8367         (amd64_frame_this_id): Don't build a frame id if the frame base
8368         was unavailable.
8369         (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8370         (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8371         base_p if the frame base was computable.
8372         (amd64_sigtramp_frame_unwind_stop_reason): New.
8373         (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8374         frame base was unavailable.
8375         (amd64_sigtramp_frame_unwind): Install
8376         amd64_sigtramp_frame_unwind_stop_reason.
8377         (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8378         base_p if the frame base was computable.
8379         (amd64_epilogue_frame_unwind_stop_reason): New.
8380         (amd64_epilogue_frame_this_id): Don't build a frame id if the
8381         frame base was unavailable.
8382         (amd64_epilogue_frame_unwind): Install
8383         amd64_epilogue_frame_unwind_stop_reason.
8384         * i386-tdep.c: Include "exceptions.h".
8385         (struct i386_frame_cache): New field "base_p".
8386         (i386_init_frame_cache): Clear it.
8387         (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8388         Avoid reading registers with functions that throw if the register
8389         is not necessary to compute the frame base.
8390         (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8391         swallowing NOT_AVAILABLE_ERROR.
8392         (i386_frame_unwind_stop_reason): New.
8393         (i386_frame_this_id): Don't build a frame id if the frame base was
8394         unavailable.
8395         (i386_frame_prev_register): Handle unavailable SP.
8396         (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8397         (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8398         base_p if the frame base was computable.
8399         (i386_epilogue_frame_unwind_stop_reason): New.
8400         (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8401         base was unavailable.
8402         (i386_epilogue_frame_unwind): Install
8403         i386_epilogue_frame_unwind_stop_reason.
8404         (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8405         base_p if the frame base was computable.
8406         (i386_sigtramp_frame_unwind_stop_reason): New.
8407         (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8408         base was unavailable.
8409         (i386_sigtramp_frame_unwind): Install
8410         i386_sigtramp_frame_unwind_stop_reason.
8411         * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8412         type's size, not the register's.
8413         (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8414
8415         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8416         default_frame_unwind_stop_reason.
8417         * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8418         (alpha_heuristic_frame_unwind): Ditto.
8419         * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8420         * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8421         * avr-tdep.c (avr_frame_unwind): Ditto.
8422         * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8423         Ditto.
8424         * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8425         * frv-tdep.c (frv_frame_unwind): Ditto.
8426         * h8300-tdep.c (h8300_frame_unwind): Ditto.
8427         * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8428         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8429         * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8430         (hppa_stub_frame_unwind): Ditto.
8431         * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8432         * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8433         (ia64_libunwind_frame_unwind)
8434         (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8435         * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8436         * lm32-tdep.c (lm32_frame_unwind): Ditto.
8437         * m32c-tdep.c (m32c_unwind): Ditto.
8438         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8439         * m32r-tdep.c (m32r_frame_unwind): Ditto.
8440         * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8441         * m68k-tdep.c (m68k_frame_unwind): Ditto.
8442         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8443         * m88k-tdep.c (m88k_frame_unwind): Ditto.
8444         * mep-tdep.c (mep_frame_unwind): Ditto.
8445         * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8446         * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8447         (mips_stub_frame_unwind): Ditto.
8448         * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8449         * moxie-tdep.c (moxie_frame_unwind): Ditto.
8450         * mt-tdep.c (mt_frame_unwind): Ditto.
8451         * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8452         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8453         * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8454         * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8455         (s390_sigtramp_frame_unwind): Ditto.
8456         * score-tdep.c (score_prologue_unwind): Ditto.
8457         * sh-tdep.c (sh_frame_unwind): Ditto.
8458         * sh64-tdep.c (sh64_frame_unwind): Ditto.
8459         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8460         * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8461         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8462         * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8463         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8464         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8465         * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8466         (sparc64obsd_trapframe_unwind): Ditto.
8467         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8468         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8469         * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8470         * v850-tdep.c (v850_frame_unwind): Ditto.
8471         * vax-tdep.c (vax_frame_unwind): Ditto.
8472         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8473         * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8474         * xtensa-tdep.c (xtensa_unwind): Ditto.
8475
8476 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8477
8478         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8479         there's always a frame.  Use get_frame_pc_if_available instead of
8480         get_frame_pc, and if there's no PC available, don't look up a
8481         symtab.
8482
8483 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8484
8485         * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8486         unavailable PC.
8487
8488 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8489
8490         * tracepoint.c (set_traceframe_context): Handle unavailable PC
8491         gracefully.
8492
8493 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8494
8495         * frame.h (frame_unwind_caller_pc_if_available): Declare.
8496         * frame.c (frame_unwind_caller_pc_if_available): New.
8497         * stack.c (frame_info): Handle unavailable PC.
8498
8499 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8500
8501         * frame.c (frame_unwind_pc): Rename to ...
8502         (frame_unwind_pc_if_available): ... this.  New `pc' output
8503         parameter.  Change return type to int.  Gracefully handle
8504         gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR.  Return 0 if that
8505         happened, or 1 otherwise.
8506         (frame_unwind_pc): Reimplement on top of
8507         frame_unwind_pc_if_available.
8508         (get_frame_func): Rename to ...
8509         (get_frame_func_if_available): New `pc' output parameter.  Change
8510         return type to int.  Gracefully handle the PC not being available.
8511         (get_frame_func): Reimplement on top of
8512         get_frame_func_if_available.
8513         (select_frame): Handle the PC being unavailable.
8514         (get_prev_frame): Handle the PC being unavailable.
8515         (get_frame_pc_if_available): New.
8516         (get_frame_address_in_block_if_available): New.
8517         (find_frame_sal): Handle the frame PC not being available.
8518         * frame.h (get_frame_pc_if_available): Declare.
8519         (get_frame_address_in_block_if_available): Declare.
8520         (get_frame_func_if_available): Declare.
8521         * stack.c (print_frame_info): Handle the PC being unavailable.
8522         (find_frame_funname): Ditto.
8523         (print_frame): Handle the PC being unavailable.
8524         (get_frame_language): Ditto.
8525         * blockframe.c (get_frame_block): Ditto.
8526         * macroscope.c (default_macro_scope): Ditto.
8527         * tui/tui-stack.c (tui_show_frame_info): Ditto.
8528
8529 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8530
8531         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8532         NOT_AVAILABLE_ERROR when evaluating the location expression.
8533
8534 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8535
8536         * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8537         returning that the register piece is unavailable/optimized out.
8538         (write_pieced_value): Handle get_frame_register_bytes returning
8539         that the register piece is unavailable/optimized out when doing a
8540         read-modify write of a bitfield.
8541         * findvar.c (value_from_register): Handle get_frame_register_bytes
8542         returning that the register piece is unavailable/optimized out.
8543         * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8544         and `unavailablep'.  Throw error on bad debug info.  Use
8545         frame_register instead of frame_register_read, to fill in the new
8546         arguments.
8547         * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8548         and `unavailablep'.
8549         * valops.c: (value_assign): Adjust, and handle
8550         get_frame_register_bytes failing.
8551         * spu-tdep.c: Include exceptions.h.
8552         (spu_software_single_step): Adjust, and handle
8553         get_frame_register_bytes failing.
8554         (spu_get_longjmp_target): Ditto.
8555         * gdbarch.sh (register_to_value): Change to return int.  New
8556         parameters `optimizedp' and `unavailablep'.
8557         * gdbarch.h, gdbarch.c: Regenerate.
8558         * i386-tdep.c (i386_register_to_value): Adjust to new
8559         gdbarch_register_to_value interface.
8560         * i387-tdep.c (i387_register_to_value): Ditto.
8561         * i387-tdep.h (i387_register_to_value): Ditto.
8562         * alpha-tdep.c (alpha_register_to_value): Ditto.
8563         * ia64-tdep.c (ia64_register_to_value): Ditto.
8564         * m68k-tdep.c (m68k_register_to_value): Ditto.
8565         * mips-tdep.c (mips_register_to_value): Ditto.
8566         * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8567
8568 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8569
8570         * findvar.c (value_of_register): Mark the value as unavailable, if
8571         the register is unavailable.
8572         * frame.h (frame_register_unwind): New `unavailablep' parameter.
8573         (frame_register): New `unavailablep' parameter.
8574         (frame_register_read): Update comment.
8575         * frame.c (frame_register_unwind): New `unavailablep' parameter.
8576         Set it if the register is unavailable.  If the register is
8577         unavailable, clear the output buffer.
8578         (frame_register): New `unavailablep' parameter.  Pass it down.
8579         (frame_unwind_register): Adjust.
8580         (put_frame_register): Adjust.
8581         (frame_register_read): Adjust.  Also return false if the register
8582         is not available.
8583         (frame_register_unwind_location): Adjust.
8584         * sentinel-frame.c (sentinel_frame_prev_register): If the register
8585         is unavailable, mark the value accordingly.
8586         * stack.c (frame_info): Handle unavailable registers.
8587
8588 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8589
8590         * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8591         simplify, using regcache_cooked_read.
8592
8593 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8594
8595         * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8596         (regcache_raw_read_unsigned, regcache_raw_read_signed)
8597         (regcache_raw_read_unsigned, regcache_raw_read_part)
8598         (regcache_cooked_read, regcache_cooked_read_signed)
8599         (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8600         (regcache_cooked_read_ftype): Change return to enum
8601         register_status.
8602         * regcache.c: Include exceptions.h
8603         (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8604         (do_cooked_read): Change return to enum register_status.  Always
8605         forward to regcache_cooked_read.
8606         (regcache_raw_read): Change return to enum register_status.  If
8607         the register is not REG_VALID, memset the buffer.  Return the
8608         register's status.
8609         (regcache_raw_read_signed): Handle non-REG_VALID registers and
8610         return the register's status.
8611         (regcache_raw_read_unsigned): Ditto.
8612         (regcache_cooked_read): Change return to enum register_status.
8613         Assert that with read-only regcaches, the register's status must
8614         be known.  If the regcache is read-only, and the register is not
8615         REG_VALID, memset the buffer.  Return the register's status.
8616         (regcache_cooked_read_signed): Change return to enum
8617         register_status.  Handle non-REG_VALID registers and return the
8618         register's status.
8619         (regcache_cooked_read_unsigned): Change return to enum
8620         register_status.  Handle non-REG_VALID registers and return the
8621         register's status.
8622         (regcache_xfer_part, regcache_raw_read_part)
8623         (regcache_cooked_read_part): Change return to enum
8624         register_status.  Return the register's status.
8625         (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8626         unavailable.
8627         (regcache_dump): Handle unavailable cooked registers.
8628         * frame.c (do_frame_register_read): Adjust interface to match
8629         regcache_cooked_read_ftype.
8630         * gdbarch.sh (pseudo_register_read): Change return to enum
8631         register_status.
8632         * gdbarch.h, gdbarch.c: Regenerate.
8633
8634         * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8635         register_status.
8636         * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8637         register_status.  If reading a raw register indicates the raw
8638         register is not valid, return the raw register's status,
8639         otherwise, return REG_VALID.
8640         * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8641         register_status.  Handle non-REG_VALID raw registers and return
8642         the register's status.
8643         * arm-tdep.c (arm_neon_quad_read)
8644         (arm_pseudo_read): Change return to enum register_status.  Handle
8645         non-REG_VALID raw registers and return the register's status.
8646         * avr-tdep.c (avr_pseudo_register_read): Ditto.
8647         * frv-tdep.c (frv_pseudo_register_read): Ditto.
8648         * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8649         * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8650         * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8651         register_status.
8652         (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8653         (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8654         (m32c_part_write, m32c_cat_read, m32c_cat_write)
8655         (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8656         (m32c_pseudo_register_read): Change return to enum
8657         register_status.  Adjust.
8658         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8659         enum register_status.  Return the register's status.
8660         * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8661         register_status.  Return the register's status.
8662         (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8663         * mips-tdep.c (mips_pseudo_register_read): Ditto.
8664         * mt-tdep.c (mt_pseudo_register_read): Ditto.
8665         * rs6000-tdep.c (move_ev_register_func): New typedef.
8666         (e500_move_ev_register): Use it.  Change return to enum
8667         register_status.  Return the register's status.
8668         (do_regcache_raw_read): New function.
8669         (do_regcache_raw_write): New function.
8670         (e500_pseudo_register_read): Change return to enum
8671         register_status.  Return the register's status.  Use
8672         do_regcache_raw_read.
8673         (e500_pseudo_register_write): Adjust.  Use do_regcache_raw_write.
8674         (dfp_pseudo_register_read): Change return to enum register_status.
8675         Return the register's status.
8676         (vsx_pseudo_register_read): Ditto.
8677         (efpr_pseudo_register_read): Ditto.
8678         (rs6000_pseudo_register_read): Ditto.
8679         * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8680         register_status.  Return the register's status.
8681         * sh64-tdep.c (pseudo_register_read_portions): New function.
8682         (sh64_pseudo_register_read): Change return to enum
8683         register_status.  Use pseudo_register_read_portions.  Return the
8684         register's status.
8685         * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8686         register_status.  Return the register's status.
8687         * sh-tdep.c (pseudo_register_read_portions): New function.
8688         (sh_pseudo_register_read): Change return to enum register_status.
8689         Use pseudo_register_read_portions.  Return the register's status.
8690         * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8691         enum register_status.  Return the register's status.
8692         * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8693         * spu-tdep.c (spu_pseudo_register_read_spu)
8694         (spu_pseudo_register_read): Ditto.
8695         * xtensa-tdep.c (xtensa_register_read_masked)
8696         (xtensa_pseudo_register_read): Ditto.
8697         * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8698
8699 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8700
8701         * python/py-value.c (valpy_getitem): Fix formatting of error function
8702         call.
8703
8704 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8705
8706         ARI fixes: Add missing internationalization markups throughout
8707         C source files.
8708         * darwin-nat-info.c: Ditto.
8709         * record.c: Ditto.
8710         * remote.c: Ditto.
8711         * mi/mi-main.c: Ditto.
8712
8713 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8714
8715         ARI fixes: Add missing internationalization markups throughout
8716         yacc files.
8717         * c-exp.y: Ditto.
8718         * cp-name-parser.y: Ditto.
8719         * f-exp.y: Ditto.
8720         * m2-exp.y: Ditto.
8721         * objc-exp.y: Ditto.
8722         * p-exp.y: Ditto.
8723
8724 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8725
8726         ARI fixes: Messages should have no trailing new lines.
8727         * darwin-nat.c (mach_check_error): Remove trailing new line from
8728         warning function call message.
8729         * record.c (bfdcore_read): Idem for error call.
8730
8731 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8732
8733         * common/signals.c (target_signal_from_host): Add _ markup to error
8734         function call message.
8735         (target_signal_to_host): Add _ markup and remove trailing new line
8736         from warning call message.
8737         (target_signal_from_command): Add _ markup to error function call
8738         message.
8739
8740 2011-03-18  Phil Muldoon  <pmuldoon@redhat.com>
8741
8742         PR python/12149
8743
8744         * python/python.c (gdbpy_write): Accept a stream argument and
8745         operate to the appropriate stream.
8746         (gdbpy_flush): Likewise.
8747         (_initialize_python): Add stream constants.
8748         (finish_python_initialization): Add GdbOutputErrorFile class.
8749
8750 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
8751
8752         * MAINTAINERS: Add myself as a write-after-approval maintainer.
8753
8754 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
8755
8756         * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8757         to store_signed_integer.  Add debug message when relocating CALL
8758         instructions.  Fix formatting of debug message.
8759         * i386-tdep.c (i386_relocate_instruction): Ditto.
8760
8761 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
8762
8763         * target.h (struct target_ops): Remove to_lookup_symbol field.
8764         (target_lookup_symbol): Delete macro.
8765         * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8766         (update_current_target, setup_target_debug): Remove handling
8767         of to_lookup_symbol target_ops field.
8768         * ada-tasks.c (get_known_tasks_addr): Remove use of
8769         target_lookup_symbol.
8770         * coffread.c (coff_symtab_read): Likewise.
8771         * dbxread.c (read_dbx_symtab): Ditto.
8772
8773 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
8774
8775         PR gdb/12116:
8776         * configure.ac: Add getthrds declaration check.
8777         * configure, config.in: Regenerate.
8778         * aix-thread.c (getthrds): Declare only if not already declared
8779         in procinfo.h.  More declaration out of get_signaled_thread to
8780         global scope.
8781
8782 2011-03-17  Phil Muldoon  <pmuldoon@redhat.com>
8783
8784         * python/py-symtab.c: Populate symtab_object_methods,
8785         sal_object_methods.
8786         (stpy_is_valid): New function.
8787         (salpy_is_valid): Ditto.
8788         * python/py-symbol.c: Declare symbol_object_methods.  Populate.
8789         (sympy_is_valid): New function.
8790         * python/py-objfile.c: Declare objfile_object_methods.  Populate.
8791         (objfpy_is_valid): New function.
8792         * python/py-inferior.c: Populate inferior_object_methods.
8793         (infpy_is_valid): New function.
8794         * python/py-infthread.c: Populate thread_object_methods.
8795         (thpy_is_valid): New function.
8796         * python/py-block.c: Declare block_object_methods.  Populate.  Declare
8797         block_iterator_object_methods.  Populate.
8798         (blpy_is_valid): New function.
8799         (blpy_iter_is_valid): Ditto.
8800
8801 2011-03-16  Keith Seitz  <keiths@redhat.com>
8802
8803         * linespec.c (find_methods): Canonicalize NAME before looking
8804         up the symbol.
8805         (name_end): New function.
8806         (keep_name_info): New function.
8807         (decode_line_1): Use keep_name_info.
8808         (decode_compound): Likewise.
8809         * cli/cli-utils.h (remove_trailing_whitespace): New function.
8810         * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8811
8812         PR c++/12273
8813         * linespec.c (locate_first_half): Keep overload information, too.
8814         (decode_compound): Use a string to represent break characters
8815         to escape the loop.
8816         If P points to a break character, do not increment it.
8817         For C++ and Java, keep overload information and relevant keywords.
8818         If we cannot find a symbol, search the minimal symbols.
8819
8820         PR c++/11734
8821         * linespec.c (decode_compound): Rename SAVED_ARG to
8822         THE_REAL_SAVED_ARG.
8823         Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8824         single-quotes.
8825         Pass a valid block to lookup_symbol.
8826         (lookup_prefix_sym): Likewise.
8827         (find_method): Construct search name based on SYM_CLASS instead
8828         of SAVED_ARG.
8829         * psymtab.c (lookup_partial_symbol): Add language parameter.
8830         (lookup_symbol_aux_psymtabs): Likewise.
8831         Don't assume that the psymtab we found was the right one. Search
8832         for the desired symbol in the symtab to be certain.
8833         (psymtab_search_name): New function.
8834         (lookup_partial_symbol): Use psymtab_search_name.
8835         Add language parameter.
8836         (read_symtabs_for_function): Add language parameter and pass to
8837         lookup_partial_symbol.
8838         (find_symbol_file_from_partial): Likewise.
8839
8840 2011-03-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
8841
8842         PR gdb/12528
8843         * dwarf2read.c (noop_record_line): New function.
8844         (dwarf_decode_lines): Ignore line tables for GCd functions.
8845
8846 2011-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
8847
8848         Fix ARI warnings about new lines at the end of messages, which
8849         are unneeded as there is a new line added at the end of the message
8850         automatically.
8851         * darwin-nat.c (darwin_stop_inferior): Ditto.
8852         * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8853         * dfp.c (decimal_to_number): Ditto.
8854         * exec.c (print_section_info): Ditto.
8855         * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8856         * osdata.c (get_osdata): Ditto.
8857         * record.c (bfdcore_write): Ditto.
8858         * remote-mips.c (mips_readchar): Ditto.
8859         * remote.c (read_ptid): Ditto.
8860         * ser-mingw.c (ser_windows_raw): Ditto.
8861         * tracepoint.c (add_local_symbols): Ditto.
8862         * windows-nat.c (fake_create_process): Ditto.
8863
8864 2011-03-16  Tom Tromey  <tromey@redhat.com>
8865
8866         * tracepoint.c (stop_tracing): Don't declare.
8867         * event-top.c (after_char_processing_hook): Add `(void)'.
8868
8869 2011-03-16  Phil Muldoon  <pmuldoon@redhat.com>
8870
8871         * NEWS: Add Parameter sub-classing description.
8872
8873 2011-03-16  Kai Tietz  <ktietz@redhat.com>
8874
8875         * MAINTAINERS: Update my e-mail address.
8876
8877 2011-03-15  Andreas Tobler  <andreast@fgznet.ch>
8878
8879         * MAINTAINERS: Add myself for write after approval privileges.
8880
8881 2011-03-15  Michael Snyder  <msnyder@vmware.com>
8882
8883         * frame.c (find_frame_sal): Assert sym is not null.
8884
8885         * dbxread.c (process_one_symbol): Assert 'name' is not null.
8886
8887         * objc-lang.c (selectors_info): Check strchr for null result.
8888
8889         * stabsread.c (define_symbol): Guard against bad stabstring input.
8890
8891 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
8892
8893         Remove trailing spaces and tabulations from pascal language
8894         support sources.
8895         p-exp.y: Ditto.
8896         p-lang.c: Ditto.
8897         p-lang.h: Ditto.
8898         p-valprint.c: Ditto.
8899
8900 2011-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
8901
8902         * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8903         than LOW.  Comment it.
8904         (read_partial_die): Call complaint for inappropriate zero LOWPC or
8905         HIGHPC not strictly higher than LOWPC.
8906
8907 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
8908
8909         Fix formatting of function declarations returning a pointer in
8910         previous commit.
8911         * varobj.c (varobj_add_child): Ditto.
8912         * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8913         * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8914
8915 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
8916
8917         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8918         for the "generic" vector ABI used with GCC 4.3 and later.
8919         (ppc64_sysv_abi_return_value): Likewise.
8920
8921 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
8922
8923         * infcall.c (call_function_by_hand): Function return value is
8924         always a non_lval, even when using struct_return.
8925
8926 2011-03-15  Pedro Alves  <pedro@codesourcery.com>
8927
8928         * printcmd.c (ALL_DISPLAYS_SAFE): New.
8929         (map_display_numbers): New.
8930         (do_delete_display): New.
8931         (undisplay_command): Use map_display_numbers.
8932         (do_enable_disable_display): New.
8933         (enable_disable_display_command): New function.
8934         (enable_display): Delete.
8935         (enable_display_command): New.
8936         (disable_display_command): Reimplement.
8937         (_initialize_printcmd): Adjust "enable display" command to use
8938         `enable_display_command' as callback.
8939
8940 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
8941
8942         * NEWS: Add Python breakpoint 'stop' operation.
8943
8944 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
8945
8946         * NEWS: Delete duplicate entry. Fix typo.
8947
8948 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
8949
8950         Fix ARI warning about function names in first column.
8951         Put prototype declaration on same line as return type.
8952         * objc-exp.y: Ditto.
8953         * p-exp.y: Ditto.
8954         * python/py-stopevent.h: Ditto.
8955         For long function names, split parameters to
8956         allow function name on same line as return type.
8957         * solib-pa64.c: Ditto.
8958         * varobj.c: Ditto.
8959         * varobj.h: Ditto.
8960         For long function declaration, use single line.
8961         * hppa-tdep.h: Ditto.
8962         * inferior.h: Ditto.
8963
8964 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
8965
8966         * python/python.h: Declare gdbpy_should_stop and
8967         gdbpy_breakpoint_has_py_cond.
8968         * python/python.c: Add python.h to includes.  Remove python.h from
8969         HAVE_PYTHON definition
8970         (gdbpy_should_stop): New dummy function.
8971         (gdbpy_breakpoint_has_py_cond): New dummy function.
8972         * python/py-breakpoint.c (bppy_init): Rewrite to allow
8973         sub-classing capabilities.
8974         (gdbpy_should_stop): New function.
8975         (gdbpy_breakpoint_has_py_cond): New function.
8976         (local_setattro): New function.
8977         * breakpoint.c (condition_command): Add check for Python 'stop'
8978         operation.
8979         (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8980         operation function as part of stop/continue tests.
8981
8982 2011-03-14  Tom Tromey  <tromey@redhat.com>
8983
8984         PR gdb/12576:
8985         * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8986         (needs_frame_dwarf_call): Likewise.
8987
8988 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
8989
8990         Fix ARI warning about functions without parameters that do not
8991         use (void).
8992         * breakpoint.c (all_tracepoints): Replace () by (void).
8993         * f-exp.y (match_string_literal): Ditto.
8994         (yylex): Ditto.
8995         * m2-exp.y (yylex): Ditto.
8996         * mep-tdep.c (current_me_module): Ditto.
8997         (current_options): Ditto.
8998         (current_cop_data_bus_width): Ditto.
8999         (current_cr_names): Ditto.
9000         (current_cr_is_float): Ditto.
9001         (current_ccr_names): Ditto.
9002         * objc-exp.y (yylex): Ditto.
9003         * p-exp.y (yylex): Ditto.
9004         * remote.c (send_interrupt_sequence): Ditto.
9005         * tracepoint.c (current_trace_status): Ditto.
9006         * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
9007         * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
9008
9009 2011-03-11  Michael Snyder  <msnyder@vmware.com>
9010
9011         * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
9012         * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
9013         (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
9014         * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
9015         * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
9016
9017         * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
9018         (delete_async_event_handler): Ditto.
9019
9020         * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
9021
9022         * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
9023
9024         * top.c (set_verbose): Assert showcmd was found.
9025
9026 2011-03-11  Maxim Grigoriev  <maxim2405@gmail.com>
9027
9028         * xtensa-tdep.c (warning_once): Correct style issues.
9029
9030 2011-03-11  Yao Qi  <yao@codesourcery.com>
9031
9032         * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
9033
9034 2011-03-11  Andreas Schwab  <schwab@redhat.com>
9035
9036         * common/aclocal.m4: Remove.
9037
9038 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
9039
9040         * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
9041         (xtensa_write_register, xtensa_read_register): Likewise.
9042         (xtensa_hextochar): Removed.
9043         (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
9044
9045 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
9046
9047         * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
9048         (xtensa_call0_frame_cache_t): Update comments.  New fields added.
9049         (xtensa_alloc_frame_cache): Add initialization for new fields.
9050         (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
9051         (warning_once): New function.
9052         (xtensa_insn_kind): New item c0opc_and.
9053         (call0_classify_opcode): Add the case for AND instruction.
9054         (call0_track_op): Change arguments.  New local variable litbase.
9055         Add the case to handle c0opc_and.  Update algorithms for c0opc_mov,
9056         c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
9057         in the prologue.
9058         Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
9059         (call0_analyze_prologue): Update the comments.  Change arguments.
9060         Add the variety of updates to handle extended prologues, which now can
9061         conduct dynamic stack adjustments.
9062         (call0_frame_cache): Likewise.
9063         (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
9064         (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
9065
9066 2011-03-10  Michael Snyder  <msnyder@vmware.com>
9067
9068         * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
9069         (cmd_qtframe): Ditto.
9070         (cmd_qtbuffer): Ditto.
9071         (cmd_bigqtbuffer): Ditto.
9072
9073 2011-03-10  Tom Tromey  <tromey@redhat.com>
9074
9075         * tracepoint.c (trace_actions_command): Update.
9076         * thread.c (thread_apply_command): Update.
9077         * reverse.c (delete_bookmark_command): Update.
9078         (bookmarks_info): Update.
9079         * printcmd.c (undisplay_command): Update.
9080         * memattr.c (mem_enable_command): Update.
9081         (mem_disable_command): Update.
9082         (mem_delete_command): Update.
9083         * inferior.c (detach_inferior_command): Update.
9084         (kill_inferior_command): Update.
9085         (remove_inferior_command): Update.
9086         * cli/cli-utils.h (struct get_number_or_range_state): New.
9087         (init_number_or_range): Declare.
9088         (get_number_or_range): Update.
9089         * cli/cli-utils.c (init_number_or_range): New function.
9090         (get_number_or_range): Change 'pp' parameter to 'state'.  Remove
9091         static variables.
9092         (number_is_in_list): Update.
9093         * breakpoint.h (get_tracepoint_by_number): Update.
9094         * breakpoint.c (map_breakpoint_numbers): Update for change to
9095         get_number_or_range.
9096         (find_location_by_number): Use get_number, not
9097         get_number_or_range.
9098         (trace_pass_set_count): New function.
9099         (trace_pass_command): Update for change to get_number_or_range.
9100         Rework loop logic.
9101         (get_tracepoint_by_number): Remove 'multi_p' parameter; add
9102         'state' parameter.
9103
9104 2011-03-10  Phil Muldoon  <pmuldoon@redhat.com>
9105
9106         * python/py-param.c (add_setshow_generic): Add set/show callback
9107         parameters.  Register Python object context.
9108         (get_show_value): New function.
9109         (get_set_value): New function.
9110         (call_doc_function): New function.
9111         (get_doc_string): Move behind get_show_value/get_set_value.
9112
9113 2011-03-10  Andreas Tobler  <andreast-list@fgznet.ch>
9114
9115         * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
9116
9117 2011-03-09  Maxim Grigoriev  <maxim2405@gmail.com>
9118
9119         * xtensa-tdep.c (xtensa_read_register): Add comment.
9120         (xtensa_write_register): Likewise.
9121         (xtensa_hextochar): Add comment and update to match coding conventions.
9122         (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
9123         (execute_l32e, execute_s32e, execute_code): Update comments.
9124         (xtensa_exception_handler_t): Update to match coding conventions.
9125         (xtensa_insn_kind): Likewise.
9126
9127 2011-03-09  Michael Snyder  <msnyder@vmware.com>
9128
9129         * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
9130
9131 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
9132
9133         * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9134
9135 2011-03-09  Tom Tromey  <tromey@redhat.com>
9136
9137         * thread.c (restore_selected_frame): Handle frame_level == -1.
9138         (make_cleanup_restore_current_thread): Use
9139         get_selected_frame_if_set.
9140         * frame.h (get_selected_frame_if_set): Declare.
9141         * frame.c (get_selected_frame_if_set): New function.
9142
9143 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
9144
9145         * cli/cli-cmds.c (shell_escape): Use lbasename.
9146         * coffread.c (coff_start_symtab): Constify parameter.
9147         (complete_symtab): Constify `name' parameter.
9148         (coff_symtab_read): Constify `filestring' local.
9149         (coff_getfilename): Constify return and `result' local.
9150         Use lbasename.
9151         * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9152         * linux-fork.c (info_checkpoints_command): Use lbasename.
9153         * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9154         * minsyms.c (lookup_minimal_symbol): Use lbasename.
9155         * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9156         * procfs.c (procfs_make_note_section): Use lbasename.
9157         * tui/tui-io.c (printable_part): Constity return and parameter.
9158         Use lbasename.
9159         (print_filename): Constify parameters, and local `s'.
9160         (tui_rl_display_match_list): Constify local `temp'.
9161
9162 2011-03-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9163
9164         Revert:
9165         2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9166         Fix DWARF-3+ DW_AT_accessibility default assumption.
9167         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9168         cu->header.version >= 3.
9169
9170 2011-03-09  Yao Qi  <yao@codesourcery.com>
9171
9172         * common/Makefile.in: Remove.
9173         * common/configure: Remove.
9174         * common/configure.ac: Remove.
9175
9176 2011-03-09  Yao Qi  <yao@codesourcery.com>
9177
9178         Revert:
9179         2011-02-11  Yao Qi  <yao@codesourcery.com>
9180
9181         * common/Makefile.in: Add copyright header.
9182
9183         2011-02-11  Yao Qi  <yao@codesourcery.com>
9184
9185         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
9186         libcommon.a.
9187         * configure.ac: Add common to sub dir.
9188         * configure: Regenerate.
9189
9190 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9191
9192         * xtensa-tdep.c (call0_ret): New function.
9193         (xtensa_skip_prologue): Speed up analysis.
9194
9195 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9196
9197         * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9198         while executing MI command -data-list-changed-registers.
9199
9200 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9201
9202         * xtensa-tdep.c (xtensa_read_register): New function.
9203         (xtensa_write_register): New function.
9204         (xtensa_find_register_by_name): New function.
9205         (xtensa_windowed_frame_cache): Update comments in type description.
9206         (xtensa_frame_cache): Likewise.
9207         (xtensa_window_interrupt_insn): New function.
9208         (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9209         (xtensa_insn_kind): Add new instructions.
9210         (rwx_special_register): New function.
9211         (call0_classify_opcode): Add new instructions to the analysis.
9212         (a0_saved, a7_saved, a11_saved): New variables.
9213         (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9214         (execute_l32e): New function.
9215         (execute_s32e): New function.
9216         (xtensa_exception_handler_t): New type.
9217         (execute_code): New function.
9218         (xtensa_window_interrupt_frame_cache): New function to conduct frame
9219         analysis for Xtensa Window Exception handlers.
9220
9221 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9222
9223         * xtensa-tdep.c (TX_PS): New.
9224         (windowing_enabled): Update to count for Call0 ABI.
9225         (xtensa_hextochar): New.
9226         (xtensa_init_reggroups): Make algorithm generic.
9227         (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9228
9229 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9230
9231         * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
9232
9233 2011-03-08  Michael Snyder  <msnyder@vmware.com>
9234
9235         * i386-tdep.c (i386_follow_jump): Check return value of
9236         target_read_memory.
9237         (i386_analyze_struct_return): Ditto.
9238         (i386_skip_probe): Ditto.
9239         (i386_match_insn): Ditto.
9240         (i386_skip_noop): Ditto.
9241         (i386_analyze_frame_setup): Ditto.
9242         (i386_analyze_register_saves): Ditto.
9243         (i386_skip_prologue): Ditto.
9244         (i386_skip_main_prologue): Ditto.
9245
9246         * target.c (read_whatever_is_readable): Fix memory leak.
9247
9248         * i386-tdep.c (i386_process_record): Document fall through.
9249
9250 2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9251
9252         Fix DWARF-3+ DW_AT_accessibility default assumption.
9253         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9254         cu->header.version >= 3.
9255
9256 2011-03-08  Pedro Alves  <pedro@codesourcery.com>
9257
9258         * remote.c (remote_check_symbols): Skip if the target has no
9259         execution.
9260
9261 2011-03-08  Joel Brobecker  <brobecker@adacore.com>
9262
9263         * target.c (read_whatever_is_readable): Reformat comment,
9264         with a minor typo fix. Minor reformatting of the code.
9265
9266 2011-03-08  Yao Qi  <yao@codesourcery.com>
9267
9268         * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9269         (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9270         Use cached result instead of calling displaced_in_arm_mode again.
9271         (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9272         (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9273         (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9274         (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9275         (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9276         (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9277         (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9278         (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9279         (cleanup_block_load_pc, copy_block_xfer): Likewise.
9280         * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9281         (arm_catch_kernel_helper_return): Likewise.
9282         * gdb/arm-tdep.h : Update function declarations.
9283
9284 2011-03-07  Michael Snyder  <msnyder@vmware.com>
9285
9286         * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9287
9288         * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9289
9290         * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9291
9292         * elfread.c (elf_symtab_read): Stop memory leak.
9293
9294         * main.c (captured_main): Fix memory leak.
9295
9296 2011-03-07  Andreas Schwab  <schwab@linux-m68k.org>
9297
9298         * ada-lang.c (compare_names): Call is_name_suffix with string1
9299         instead of string2.
9300
9301 2011-03-07  Tom Tromey  <tromey@redhat.com>
9302
9303         * xcoffread.c (xcoff_sym_fns): Update.
9304         * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9305         (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9306         * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9307         (symbol_file_add_with_addrs_or_offsets): Likewise.
9308         (reread_symbols): Handle OBJF_PSYMTABS_READ.
9309         * somread.c (som_sym_fns): Update.
9310         * psymtab.h (require_partial_symbols): Declare.
9311         * psymtab.c (require_partial_symbols): New function.
9312         (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9313         (ALL_OBJFILE_PSYMTABS): Undef.
9314         (ALL_PSYMTABS): Move from psympriv.h.
9315         (lookup_partial_symtab, find_pc_sect_psymtab)
9316         (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9317         (find_last_source_symtab_from_partial)
9318         (forget_cached_source_info_partial)
9319         (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9320         (expand_partial_symbol_tables, read_psymtabs_with_filename)
9321         (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9322         (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9323         (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9324         Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9325         * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9326         * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9327         * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9328         psymtabs.
9329         * mipsread.c (ecoff_sym_fns): Update.
9330         * machoread.c (macho_sym_fns): Update.
9331         * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9332         (read_psyms): New function.
9333         (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9334         (elf_sym_fns_lazy_psyms): New global.
9335         * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9336         dwarf2_build_psymtabs.
9337         * dbxread.c (aout_sym_fns): Update.
9338         * coffread.c (coff_sym_fns): Update.
9339
9340 2011-03-07  Tom Tromey  <tromey@redhat.com>
9341
9342         * infrun.c (print_exited_reason): Include inferior id and pid in
9343         message.
9344
9345 2011-03-07  Tom Tromey  <tromey@redhat.com>
9346
9347         * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9348         parameter.
9349         (target_has_execution_1): Update.
9350         (target_has_execution_current): Declare.
9351         (target_has_execution): Call target_has_execution_current.
9352         (default_child_has_execution): Update.
9353         * target.c (default_child_has_execution): Add 'the_ptid'
9354         parameter.
9355         (target_has_execution_1): Likewise.
9356         (target_has_execution_current): New function.
9357         (add_target): Update.
9358         (init_dummy_target): Update.
9359         * remote-m32r-sdi.c (m32r_has_execution): New function.
9360         (init_m32r_ops): Use it.
9361         * record.c (record_core_has_execution): Now static.  Add
9362         'the_ptid' parameter.
9363         * inferior.c (have_live_inferiors): Don't save current thread.
9364         Use target_has_execution_1.
9365
9366 2011-03-07  Yao Qi  <yao@codesourcery.com>
9367
9368         * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9369
9370 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
9371
9372         * elfread.c (elf_symtab_read): Minor reformatting.
9373
9374 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
9375
9376         * objc-lang.c (selectors_info): Minor reformatting.
9377
9378 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
9379
9380         * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9381
9382 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
9383             Michael Snyder  <msnyder@vmware.com>
9384
9385         * ada-valprint.c (ada_val_print_array): Move the declaration of
9386         "byte_order" and "elttype" inside the block where these variables
9387         are actually used.  Remove some special handling for the case
9388         where "elttype" and "eltlen" are null.  Replace by a comment
9389         and a couple of assertion checks.
9390
9391 2011-03-05  Michael Snyder  <msnyder@vmware.com>
9392
9393         * source.c (add_path): Replace semicolon at end of block.
9394         * dwarf2expr.c (execute_stack_op): Ditto.
9395
9396 2011-03-05  Mike Frysinger  <vapier@gentoo.org>
9397
9398         * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9399         * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9400         (bfin-*-*): Likewise.
9401
9402 2011-03-05  Michael Snyder  <msnyder@vmware.com>
9403
9404         * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9405         * mdebugread.c (parse_symbol): Ditto.
9406         * parse.c (parse_exp_in_context): Ditto.
9407         * source.c (add_path): Ditto.
9408         * utils.c (gnu_debuglink_crc32): Ditto.
9409         * varobj.c (variable_language): Ditto.
9410
9411         * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9412
9413 2011-03-04  Michael Snyder  <msnyder@vmware.com>
9414
9415         * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9416
9417         * symfile.c (simple_overlay_update): Check for null return value
9418         from lookup_minimal_symbol.
9419
9420         * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9421
9422 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9423
9424         * eval.c (parse_and_eval_address_1): Remove function.
9425         * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9426         instead of parse_and_eval_address_1.
9427         * value.h (parse_and_eval_address_1): Remove prototype.
9428
9429 2011-03-04  Michael Snyder  <msnyder@vmware.com>
9430
9431         * remote.c (putpkt_binary): Document that case stmt falls through.
9432
9433 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9434
9435         * breakpointc (print_it_typical): Move NULL check from here...
9436         (print_bp_stop_message): ... to here.
9437
9438 2011-03-04  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
9439
9440         * breakpoint.c (enable_command): Use break instead of continue,
9441         and fill in a missing break.
9442         (disable_command): Ditto.
9443
9444 2011-03-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
9445
9446         * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9447         (terminal_save_ours): Remove misleading comment.
9448         (inflow_inferior_data_cleanup): Free ttystate.
9449         (inflow_inferior_exit): Likewise.
9450         (copy_terminal_info): Copy ttystate.
9451
9452         * serial.c (serial_copy_tty_state): New function.
9453         * serial.h (serial_copy_tty_state): Add prototype.
9454         (struct serial_ops): Add copy_tty_state callback.
9455         * ser-base.c (ser_base_copy_tty_state): New function.
9456         * ser-base.h (ser_base_copy_tty_state): Add prototype.
9457         * ser-go32.c (dos_copy_tty_state): New function.
9458         (dos_ops): Install copy_tty_state callback.
9459         * ser-mingw.c (_initialize_ser_windows): Likewise.
9460         * ser-pipe.c (_initialize_ser_pipe): Likewise.
9461         * ser-unix.c (hardwire_copy_tty_state): New function.
9462         (_initialize_ser_hardwire): Install it.
9463
9464 2011-03-04  Michael Snyder  <msnyder@vmware.com>
9465
9466         * breakpoint.c (create_breakpoint): Add missing break statement.
9467
9468         Reverting this patch:
9469         * infcall.c (call_function_by_hand): Add break statements for lint.
9470
9471         Reverting this patch:
9472         * cli/cli-script.c (script_from_file): Add break for lint.
9473
9474 2011-03-04  Michael Snyder  <msnyder@vmware.com>
9475
9476         * solib.c (reload_shared_libraries_1): Close memory leak.
9477
9478 2011-03-03  Tom Tromey  <tromey@redhat.com>
9479
9480         PR gdb/12538:
9481         * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9482         DW_STRING is NULL.
9483
9484 2011-03-03  Michael Snyder  <msnyder@vmware.com>
9485
9486         * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9487         fields of struct 'st' to zero.
9488
9489         * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9490         sal.pspace before calling set_current_source_symtab_and_line.
9491
9492 2011-03-03  Yao Qi  <yao@codesourcery.com>
9493
9494         * Makefile.in (configure-common): Remove.  Let Makefile
9495         in dir common to rebuild itself.
9496         (common/Makefile): Likewise.
9497
9498 2011-03-03  Joel Brobecker  <brobecker@adacore.com>
9499
9500         * utils.c (parse_escape): Add i18n markup in error message.
9501
9502 2011-03-03  Yao Qi  <yao@codesourcery.com>
9503
9504         * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9505         ARM_PC_REGNUM.
9506         (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9507         (displaced_write_reg, displaced_read_reg): Likewise.
9508         (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9509         (cleanup_block_load_pc, copy_block_xfer): Likewise.
9510         (cleanup_branch): Replace magic number 14 and 15 with
9511         ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9512
9513 2011-03-02  Michael Snyder  <msnyder@vmware.com>
9514
9515         * maint.c (maintenance_do_deprecate): No need to check for NULL.
9516
9517         * cli/cli-script.c (script_from_file): Add break for lint.
9518
9519         * mdebugread.c (parse_partial_symbols): Fix indent.
9520
9521         * target-descriptions.c (tdesc_gdb_type): No need to call
9522         xstrdup, callee saves a copy.
9523
9524         * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9525
9526         * infcall.c (call_function_by_hand): Add break statements for lint.
9527
9528         * utils.c (parse_escape): Escape the escape char.
9529
9530         * python/py-inferior.c (build_inferior_list): Error out if
9531         PyList_Append fails.
9532         (gdbpy_inferiors): Error out if build_inferior_list fails.
9533
9534         * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9535         a function call.
9536
9537         * record.c (record_restore): Move printf to before error return.
9538
9539 2011-03-02  Yao Qi  <yao@codesourcery.com>
9540
9541         * arm-tdep.h (struct displaced_step_closure): Add two new fields
9542         is_thumb and insn_size.
9543         * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9544         on both ARM and Thumb mode.
9545         (arm_process_displaced_insn): Set is_thumb and insn_size.
9546         (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9547         (arm_displaced_step_fixup): Likewise.
9548
9549 2011-03-01  Michael Snyder  <msnyder@vmware.com>
9550
9551         * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9552
9553         * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9554
9555         * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9556
9557         * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9558
9559         * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9560         with xmalloc.
9561
9562         * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9563         which shadows function parameter.
9564
9565         * tracepoint.c (create_tsv_from_upload): Superfluous call
9566         to xstrdup.  Callee already calls xstrdup.
9567
9568         * linespec.c (decode_line_1): Remove unnecessary null check.
9569
9570         * tracepoint.c (scope_info): Fix mem leak, remove underused
9571         variable.
9572
9573         * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9574         superfluous null check.
9575
9576         * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9577         (value_of_builtin_frame_fp_reg): Ditto.
9578
9579         * event-top.c (display_gdb_prompt): Remove superfluous null check.
9580
9581         * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9582         be null.
9583
9584         * linespec.c (decode_line_1): Check for null before dereference.
9585
9586         * reverse.c (record_restore): Move null-check to before pointer
9587         dereference.
9588
9589         * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9590
9591         * objc-lang.c (selectors_info): Add explanitory comment.
9592         (classes_info): Ditto.
9593
9594 2011-03-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
9595
9596         * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9597         (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9598         versions of the trampoline.  Handle Thumb vs. ARM addresses.
9599         (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9600         (arm_linux_init_abi): Install it.
9601         * arm-tdep.c (arm_psr_thumb_bit): Make global.
9602         * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9603
9604 2011-02-28  Michael Snyder  <msnyder@vmware.com>
9605
9606         * ui-out.c (ui_out_field_core_addr): Make local char buffer
9607         a little bigger, to avoid possibility of an overflow.
9608
9609         * breakpoint.c (breakpoint_adjustment_warning): Make local char
9610         buffers a little bigger, to avoid possibility of an overflow.
9611
9612         * coffread.c (coff_getfilename): Add check to avoid overflow.
9613
9614         * objc-lang.c (selectors_info): Add a small safety margin to
9615         avoid overflow.
9616         (classes_info): Error out on too long REGEXP.
9617
9618         * infrun.c (handle_inferior_event): Remove unused function call.
9619
9620         * fork-child.c (fork_inferior): Remove ifdef'd code and
9621         unused variable.
9622
9623         * linux-thread-db.c (attach_thread): Discard unused value.
9624
9625         * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9626
9627         * remote.c (remote_get_noisy_reply): Discard unused value.
9628         (remote_vcont_resume): Ditto.
9629         (remote_stop_ns): Ditto.
9630
9631         * linespec.c (decode_objc): Delete unused variable.
9632
9633         * tui/tui-regs.c (tui_register_format): Delete unused variable.
9634
9635         * dwarf2read.c (add_partial_symbol): Discard unused values.
9636         (read_base_type): Delete unused variable.
9637
9638         * dbxread.c (read_dbx_symtab): Discard unused value.
9639
9640         * eval.c (evaluate_subexp_standard): Delete unused variable,
9641         and discard unused values.
9642
9643         * infcmd.c (_initialize_infcmd): Discard unused values.
9644
9645         * stabsread.c (rs6000_builtin_type): Missing break statement.
9646
9647         * dbxread.c (process_one_symbol): Discard unused value.
9648
9649         * coffread.c (coff_end_symtab): Delete unused variable.
9650
9651         * dwarf2read.c (dw2_get_file_names): Discard unused value.
9652         (dwarf2_add_typedef): Delete unused variable.
9653         (read_namespace): Ditto.
9654         (dwarf_decode_macros): Ditto.
9655
9656         * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9657
9658         * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9659
9660         * p-valprint.c (pascal_val_print): Discard unused value.
9661
9662         * utils.c (nquery): Call va_end before return;
9663         (yquery): Ditto.
9664         (query): Ditto.
9665
9666         * proc-service.c (ps_plog): Call va_end before return.
9667
9668 2011-02-28  Tom Tromey  <tromey@redhat.com>
9669
9670         * python/python.c (gdbpy_value_cst): New global.
9671         (_initialize_python): Initialize it.
9672         * python/python-internal.h (gdbpy_value_cst): Declare.
9673         * python/py-value.c (convert_value_from_python): Use
9674         gdbpy_value_cst.
9675
9676 2011-02-28  Michael Snyder  <msnyder@vmware.com>
9677
9678         * python/py-cmd.c (cmdpy_init): Fix memory leak.
9679
9680         * breakpoint.c (catch_syscall_completer): Free malloced list.
9681
9682         * jv-lang.c (java_primitive_type_from_name): Add missing break.
9683
9684         * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9685         (lval_func_check_synthetic_pointer): Ditto.
9686         (lval_func_free_closure): Fix use-after-free.
9687
9688 2011-02-28  Tom Tromey  <tromey@redhat.com>
9689
9690         * psymtab.c (expand_partial_symbol_tables): Use
9691         ALL_OBJFILE_PSYMTABS.
9692
9693 2011-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9694
9695         * objc-lang.c (selectors_info): Error on too long REGEXP.
9696
9697 2011-02-28  Michael Snyder  <msnyder@vmware.com>
9698
9699         * python/py-param.c (set_parameter_value): Add missing
9700         break statement.
9701
9702         * linux-record.c (record_linux_system_call): Add missing
9703         break statement.
9704
9705 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
9706
9707         * breakpoint.c (print_one_breakpoint_location): Remove unused
9708         argument PRINT_ADDRESS_BITS.  Update callers.
9709         (print_one_breakpoint): Likewise.
9710
9711 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
9712
9713         * breakpoint.c (wrap_indent_at_field): New function.
9714         (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9715         Allocate ui_stream locally instead of using STB argument.
9716         (print_one_breakpoint_location): Update call.
9717         * ui-out.c (ui_out_query_field): New function.
9718         * ui-out.h (ui_out_query_field): Add prototype.
9719
9720 2011-02-28  Joel Brobecker  <brobecker@adacore.com>
9721
9722         From Michael Snyder  <msnyder@vmware.com>
9723         * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9724
9725 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9726
9727         * objc-lang.c (selectors_info): Prevent string overrun.
9728
9729         * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9730         error in strncpy.
9731
9732         * symtab.c (rbreak_command): Move variable 'file_name' to
9733         outer scope.
9734
9735         * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9736         param with a local variable of the same name.
9737
9738 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9739
9740         * value.c (value_from_history_ref): New function.
9741         * value.h (value_from_history_ref): Export.
9742         * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9743         to parse value history references.
9744         * cli/cli-utils.h (get_number_trailer): Update comment.
9745
9746 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9747
9748         * inferior.c (detach_inferior_command): Use get_number_or_range.
9749         (kill_inferior_command): Ditto.
9750         (remove_inferior_command): Ditto.
9751         (initialize_inferiors): Make command names plural.
9752         Update help strings.
9753
9754 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9755
9756         * darwin-nat-info.c: Fix comment typo.
9757         * dwarf2expr.h: Ditto.
9758         * fbsd-nat.c: Ditto.
9759         * fbsd-nat.h: Ditto.
9760         * frame-unwind.h: Ditto.
9761         * frame.h: Ditto.
9762         * hppa-hpux-tdep.c: Ditto.
9763         * i386-linux-nat.c: Ditto.
9764         * linux-nat.c: Ditto.
9765         * nbsd-nat.c: Ditto.
9766         * nbsd-nat.h: Ditto.
9767         * ppc-linux-tdep.c: Ditto.
9768         * serial.c: Ditto.
9769         * ui-file.h: Ditto.
9770         * tui/tui-winsource.c: Ditto.
9771
9772 2011-02-26  Michael Snyder  <msnyder@vmware.com>
9773
9774         * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9775
9776         * maint.c (maintenance_do_deprecate): Plug a memory leak.
9777
9778         * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9779         with a local variable of the same name.
9780
9781         * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9782         param with a local variable of the same name.
9783         (i387_supply_xsave): Ditto.
9784
9785         * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9786         that it does not shadow a function parameter.
9787
9788         * i386-nat.c (i386_length_and_rw_bits): Document that case
9789         statement is meant to fall through.
9790
9791         * expprint.c (dump_subexp_body_standard): Document that case
9792         statement is meant to fall through.
9793
9794         * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9795         dead if statement.  Condition can't be false.
9796
9797 2011-02-25  Michael Snyder  <msnyder@vmware.com>
9798
9799         * arm-tdep.c: Fix typos in comments.
9800         * bsd-uthread.c: Ditto.
9801         * completer.c: Ditto.
9802         * corelow.c: Ditto.
9803         * cp-namespace.c: Ditto.
9804         * cp-support.c: Ditto.
9805         * cris-tdep.c: Ditto.
9806         * dbxread.c: Ditto.
9807         * dwarf2read.c: Ditto.
9808         * frame.h: Ditto.
9809         * gdbtypes.h: Ditto.
9810         * inferior.h: Ditto.
9811         * mdebugread.c: Ditto.
9812         * mips-tdep.c: Ditto.
9813         * ppc-linux-nat.c: Ditto.
9814         * ppc-linux-tdep.c: Ditto.
9815         * printcmd.c: Ditto.
9816         * sol-thread.c: Ditto.
9817         * solib-frv.c: Ditto.
9818         * solist.h: Ditto.
9819         * sparc64-tdep.c: Ditto.
9820         * spu-tdep.c: Ditto.
9821         * stabsread.c: Ditto.
9822         * symfile.c: Ditto.
9823         * valops.c: Ditto.
9824         * varobj.c: Ditto.
9825         * vax-nat.c: Ditto.
9826         * python/py-block.c: Ditto.
9827         * python/py-symbol.c: Ditto.
9828         * python/py-symtab.c: Ditto.
9829         * python/py-value.c: Ditto.
9830         * tui/tui-win.c: Ditto.
9831
9832 2011-02-25  Michael Snyder  <msnyder@vmware.com>
9833
9834         * inferior.c (print_inferior): Accept a string instead of an int
9835         for requested_inferiors, and use get_number_or_range to parse it.
9836         (info_inferiors_command): Pass args string to print_inferior.
9837         (initialize_inferiors): Change help string for info inferiors.
9838         * inferior.h (print_inferior): Export prototype change.
9839
9840 2011-02-25  Tom Tromey  <tromey@redhat.com>
9841
9842         * common/ax.def (invalid2): Set to 0x31.
9843
9844 2011-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
9845
9846         * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9847         L and plongest.
9848         (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9849         use L and plongest.
9850         (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9851
9852 2011-02-24  Michael Snyder  <msnyder@vmware.com>
9853
9854         * Makefile.in (clean): Make clean should remove generated files
9855         observer.h and observer.inc.
9856
9857 2011-02-24  Joel Brobecker  <brobecker@adacore.com>
9858
9859         Revert the following patch (not approved yet):
9860         2011-02-21  Hui Zhu  <teawater@gmail.com>
9861         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9862         * ax-gdb.c (gen_printf_expr_callback): New function.
9863         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9864         * ax-general.c (ax_memcpy): New function.
9865         (ax_print): Handle "printf".
9866         (ax_reqs): Ditto.
9867         * ax.h (ax_memcpy): Forward declare.
9868         * common/ax.def (invalid2): Removed.
9869         (printf): New entry.
9870         * printcmd.c (printcmd.h): New include.
9871         (string_printf): New function.
9872         (ui_printf): Removed.
9873         (printf_command): Remove static.  Call string_printf.
9874         (eval_command): Call string_printf.
9875         * printcmd.h: New file.
9876         * tracepoint.c (validate_actionline,
9877         encode_actions_1): handle printf_command.
9878
9879 2011-02-23  Tom Tromey  <tromey@redhat.com>
9880
9881         * ax-general.c (ax_pick): Add missing newline.
9882
9883 2011-02-23  Michael Snyder  <msnyder@vmware.com>
9884
9885         * breakpoint.c (breakpoint_1): Change first argument from an int
9886         to a char pointer, so that the function now accepts a list of
9887         breakpoints rather than just one.  Use new function
9888         'number_is_in_list' to implement.
9889         (breakpoints_info): Pass char * instead of int to breakpoint_1.
9890         (watchpoints_info): Ditto.
9891         (tracepoints_info): Ditto.
9892         (maintenance_info_breakpoints): Ditto.
9893         (_initialize_breakpoint): Update help strings to reflect the fact
9894         that these functions can now take more than one argument.
9895         * cli/cli-utils.c (number_is_in_list): New function.
9896         * cli/cli-utils.h (number_is_in_list): Export.
9897
9898 2011-02-23  Michael Snyder  <msnyder@vmware.com>
9899
9900         * memattr.c (mem_enable_command): Use get_number_or_range.
9901         (mem_disable_command): Ditto.
9902         (mem_delete_command): Ditto.
9903         (_initialize_mem): Tweak usage message to reflect multiple
9904         arguments.
9905
9906 2011-02-22  Doug Evans  <dje@google.com>
9907
9908         Add gdb.lookup_global_symbol python function.
9909         * NEWS: Add entry.
9910         * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9911         * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9912         * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9913
9914 2011-02-22  Tom Tromey  <tromey@redhat.com>
9915
9916         * language.c (language_class_name_from_physname): Rename
9917         'curr_language' argument to 'lang'; use in body.
9918
9919 2011-02-22  Michael Snyder  <msnyder@vmware.com>
9920
9921         * cli/cli-utils.c (number_is_in_list): Check for zero return.
9922
9923 2011-02-22  Pedro Alves  <pedro@codesourcery.com>
9924
9925         * frame-unwind.h: Fix comment to mention the this frame, not the
9926         next.
9927
9928 2011-02-22  Tom Tromey  <tromey@redhat.com>
9929
9930         * symfile.c (auto_solib_limit): Remove.
9931         * symfile.h (auto_solib_limit): Remove.
9932
9933 2011-02-22  Joel Brobecker  <brobecker@adacore.com>
9934
9935         * Makefile.in (INSTALLED_LIBS): Delete.  Update comment.
9936
9937 2011-02-21  Michael Snyder  <msnyder@vmware.com>
9938
9939         * gdbthread.h (print_thread_info): Change prototype.
9940         * thread.c (print_thread_info): Accept char* instead of int for
9941         requested_threads argument.  Use new function number_is_in_list
9942         to determine which threads to list.
9943         (info_threads_command): Pass char* to print_thread_info.
9944         * cli/cli-utils.c (number_is_in_list): New function.
9945         * cli/cli-utils.h (number_is_in_list): Export.
9946         * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9947         print_thread_info.
9948         (print_one_inferior): Ditto.
9949         (mi_cmd_list_thread_groups): Ditto.
9950
9951 2011-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9952
9953         * common/Makefile.in (CFLAGS): New.
9954         (COMPILE): Add $(CFLAGS).
9955
9956 2011-02-21  Tom Tromey  <tromey@redhat.com>
9957
9958         * breakpoint.c (catch_syscall_command_1): Fix typo.
9959
9960 2011-02-21  Tom Tromey  <tromey@redhat.com>
9961
9962         * reverse.c: Include cli-utils.h.
9963         * printcmd.c: Include cli-utils.h.
9964         (string_printf): Use skip_spaces.
9965         * cli/cli-utils.h: New file.
9966         * cli/cli-utils.c: New file.
9967         * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9968         * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9969         * breakpoint.h (get_number, get_number_or_range): Move to
9970         cli-utils.h.
9971         * breakpoint.c: Include cli-utils.h.
9972         (get_number_trailer, get_number, get_number_or_range)
9973         (ep_skip_leading_whitespace): Move to cli-utils.c.
9974         (create_breakpoint_sal, find_condition_and_thread)
9975         (decode_static_tracepoint_spec, watch_command_1)
9976         (watch_maybe_just_location, ep_parse_optional_if_clause)
9977         (catch_fork_command_1, catch_exec_command_1)
9978         (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9979         * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9980         (SUBDIR_CLI_SRCS): Add cli-utils.c.
9981         (HFILES_NO_SRCDIR): Add cli-utils.h.
9982         (cli-utils.o): New target.
9983
9984 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
9985
9986         * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9987         before calling discard_all_inferiors.
9988
9989 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
9990
9991         * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9992         (struct builtin_opencl_type): Remove.
9993         (builtin_opencl_type): Change return type to "struct type **".
9994         (lookup_opencl_vector_type): Update caller.
9995         (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9996         (build_opencl_types): Install plain array of "struct type *"
9997         instead of "struct builtin_opencl_type".
9998
9999 2011-02-21  Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10000             Ulrich Weigand  <uweigand@de.ibm.com>
10001
10002         * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
10003         (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
10004         (struct arm_linux_hwbp_cap): New type.
10005         (arm_linux_get_hwbp_cap): New function.
10006         (arm_linux_get_hw_breakpoint_count): Likewise.
10007         (arm_linux_get_hw_watchpoint_count): Likewise.
10008         (arm_linux_can_use_hw_breakpoint): Likewise.
10009         (arm_hwbp_type): New type.
10010         (arm_hwbp_control_t): Likewise.
10011         (struct arm_linux_hw_breakpoint): Likewise.
10012         (struct arm_linux_thread_points): Likewise.
10013         (arm_threads): New global variable.
10014         (arm_linux_find_breakpoints_by_tid): New function.
10015         (arm_hwbp_control_initialize): Likewise.
10016         (arm_hwbp_control_is_enabled): Likewise.
10017         (arm_hwbp_control_disable): Likewise.
10018         (arm_linux_hw_breakpoint_initialize): Likewise.
10019         (arm_linux_get_hwbp_type): Likewise.
10020         (arm_linux_hw_watchpoint_initialize): Likewise.
10021         (arm_linux_hw_breakpoint_equal): Likewise.
10022         (arm_linux_insert_hw_breakpoint1): Likewise.
10023         (arm_linux_remove_hw_breakpoint1): Likewise.
10024         (arm_linux_insert_hw_breakpoint): Likewise.
10025         (arm_linux_remove_hw_breakpoint): Likewise.
10026         (arm_linux_region_ok_for_hw_watchpoint): Likewise.
10027         (arm_linux_insert_watchpoint): Likewise.
10028         (arm_linux_remove_watchpoint): Likewise.
10029         (arm_linux_stopped_data_address): Likewise.
10030         (arm_linux_stopped_by_watchpoint): Likewise.
10031         (arm_linux_watchpoint_addr_within_range): Likewise.
10032         (arm_linux_new_thread): Likewise.
10033         (arm_linux_thread_exit): Likewise.
10034         (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
10035         related target callbacks.  Register arm_linux_new_thread and
10036         arm_linux_thread_exit.
10037         * arm-tdep.h (arm_pc_is_thumb): Add prototype.
10038         * arm-tdep.c (arm_pc_is_thumb): Make global.
10039         (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
10040
10041 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
10042
10043         * breakpoint.c (update_watchpoint): Do not attempt to recreate
10044         per-frame locations while within a function epilogue.
10045
10046 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
10047
10048         * ser-mingw.c (ser_windows_close): Reformat comment to better conform
10049         to GNU coding standards.
10050
10051 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
10052
10053         Allow use of mingw native on Windows 95 OS.
10054         * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
10055         (ser_windows_close): Only call CancelIo if function exists.
10056         (_initialize_ser_windows): Use LoadLirary/GetProcAddress
10057         to check for existence of CancelIo function in kernel32 DLL.
10058
10059 2011-02-21  Hui Zhu  <teawater@gmail.com>
10060
10061         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10062         * ax-gdb.c (gen_printf_expr_callback): New function.
10063         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10064         * ax-general.c (ax_memcpy): New function.
10065         (ax_print): Handle "printf".
10066         (ax_reqs): Ditto.
10067         * ax.h (ax_memcpy): Forward declare.
10068         * common/ax.def (invalid2): Removed.
10069         (printf): New entry.
10070         * printcmd.c (printcmd.h): New include.
10071         (string_printf): New function.
10072         (ui_printf): Removed.
10073         (printf_command): Remove static.  Call string_printf.
10074         (eval_command): Call string_printf.
10075         * printcmd.h: New file.
10076         * tracepoint.c (validate_actionline,
10077         encode_actions_1): handle printf_command.
10078
10079 2011-02-19  Michael Snyder  <msnyder@vmware.com>
10080
10081         * reverse.c (delete_one_bookmark): Argument is now bookmark
10082         id rather than pointer to bookmark struct.
10083         (delete_bookmark_command): Use get_number_or_range.
10084         (goto_bookmark_command): Parse with get_number instead of strtoul.
10085         (bookmark_1): New function.  Print info for one bookmark.
10086         (bookmarks_info): Use get_number_or_range and bookmark_1.
10087
10088 2011-02-18  Michael Snyder  <msnyder@vmware.com>
10089
10090         * thread.c (info_threads_command): Re-implement using
10091         get_number_or_range.
10092         (thread_apply_command): Ditto.
10093
10094 2011-02-18  Tom Tromey  <tromey@redhat.com>
10095
10096         * common/ax.def: New file.
10097         * ax.h (enum agent_op): Use ax.def.
10098         * ax-general.c (aop_map): Use ax.def.
10099
10100 2011-02-18  Tom Tromey  <tromey@redhat.com>
10101
10102         * ax-general.c (aop_map): Add pick and rot.
10103         * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
10104         <DW_OP_rot>: Implement.
10105         * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
10106         (ax_pick): Declare.
10107         * ax-general.c (ax_pick): New function.
10108
10109 2011-02-18  Tom Tromey  <tromey@redhat.com>
10110
10111         * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
10112
10113 2011-02-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
10114             Tom Tromey  <tromey@redhat.com>
10115
10116         * cp-support.c (make_symbol_overload_list_namespace): Do not call
10117         make_symbol_overload_list_block with NULL BLOCK.
10118         * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
10119
10120 2011-02-18  Pedro Alves  <pedro@codesourcery.com>
10121
10122         * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
10123         * breakpoint.h (get_number_or_range): Declare.
10124         * printcmd.c (ALL_DISPLAYS): Declare.
10125         (delete_display): Reimplement taking a display pointer.
10126         (undisplay_command): Accept a range of displays to delete, using
10127         get_number_or_range.
10128
10129 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
10130
10131         * c-valprint.c (c_val_print): Add embedded_offset to address
10132         for arrays of unspecified length.
10133         * p-valprint.c (pascal_val_print): Likewise.
10134
10135 2011-02-18  Yao Qi  <yao@codesourcery.com>
10136
10137         * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10138         (arm_process_displaced_insn): .. here. Remove parameter INSN.
10139         (thumb_process_displaced_insn): New.
10140         * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10141         call to arm_process_displaced_insn.
10142         * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10143
10144 2011-02-17  Tom Tromey  <tromey@redhat.com>
10145
10146         * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10147         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10148         compile_dwarf_to_ax.  No longer static.  Call
10149         dwarf2_compile_cfa_to_ax.
10150         (locexpr_tracepoint_var_ref): Update.
10151         (loclist_tracepoint_var_ref): Update.
10152         * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10153         * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10154         argument; add 'gdbarch' and 'pc'.
10155         (dwarf2_compile_cfa_to_ax): New function.
10156         (dwarf2_frame_cache): Update.
10157
10158 2011-02-17  Joel Brobecker  <brobecker@adacore.com>
10159
10160         * ada-lang.c (ada_type_of_array): Fix the size of the array
10161         in the case of an unconstrained packed array.
10162
10163 2011-02-17  Yao Qi  <yao@codesourcery.com>
10164
10165         * common/Makefile.in: Add more targets for make.
10166
10167 2011-02-16  Tom Tromey  <tromey@redhat.com>
10168
10169         * dwarf2loc.c (unimplemented): Fix typo.
10170
10171 2011-02-16  Tom Tromey  <tromey@redhat.com>
10172
10173         * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10174         (compile_dwarf_to_ax) <default>: Use unimplemented.
10175         <DW_OP_deref>: Update.
10176         (disassemble_dwarf_expression): Update.
10177         * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10178         (decode_locdesc): Update.
10179         * dwarf2expr.h (dwarf_stack_op_name): Update.
10180
10181 2011-02-16  Tom Tromey  <tromey@redhat.com>
10182
10183         * ax.h (struct aop_map) <name>: Now const.
10184
10185 2011-02-16  Tom Tromey  <tromey@redhat.com>
10186
10187         * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10188         than axs_rvalue.
10189
10190 2011-02-16  Yao Qi  <yao@codesourcery.com>
10191
10192         * infrun.c (get_displaced_step_closure_by_addr): New.
10193         * inferior.h: Declare it.
10194         * arm-tdep.c: (arm_pc_is_thumb): Call
10195         get_displaced_step_closure_by_addr.  Adjust MEMADDR if it
10196         returns non-NULL.
10197
10198 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
10199             Jan Kratochvil  <jan.kratochvil@redhat.com>
10200
10201         gdb/
10202         * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10203
10204 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
10205             Jan Kratochvil  <jan.kratochvil@redhat.com>
10206
10207         * value.c (value_contents_copy_raw): Extend describing comment.
10208         Assert that the destination contents we're overwriting are wholly
10209         available.
10210         (value_contents_copy): Extend describing comment.
10211
10212 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
10213             Jan Kratochvil  <jan.kratochvil@redhat.com>
10214
10215         * value.c (value_available_contents_eq): Remove redundant local
10216         variables.  Fix available contents comparision.
10217         * value.h (value_available_contents_eq): Extend describing
10218         comment.
10219
10220 2011-02-16  Yao Qi  <yao@codesourcery.com>
10221
10222         * thread.c (info_threads_command): Add missing i18n markup and remove
10223         trailing newline.
10224
10225 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
10226
10227         * breakpoint.c (longjmp_names): New variable.
10228         (struct breakpoint_objfile_data): New type.
10229         (breakpoint_objfile_key): New variable.
10230         (msym_not_found): New variable.
10231         (msym_not_found_p): New predicate.
10232         (get_breakpoint_objfile_data): New function.
10233         (create_overlay_event_breakpoint): Check per-objfile cache for
10234         symbols first.
10235         (create_longjmp_master_breakpoint): Likewise.
10236         (create_std_terminate_master_breakpoint): Likewise.
10237         (create_exception_master_breakpoint): Likewise.
10238         (_initialize_breakpoint): Register per-objfile data key.
10239
10240 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
10241
10242         * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10243         parameter value.
10244         (create_longjmp_master_breakpoint): Loop over longjmp names.
10245         (create_std_terminate_master_breakpoint): Const-propagate parameter
10246         value.
10247         (update_breakpoints_after_exec): Adjust.
10248         (breakpoint_re_set): Adjust.
10249
10250 2011-02-15  Michael Snyder  <msnyder@vmware.com>
10251
10252         * thread.c (info_threads_command): Process arg as thread id,
10253         or list of thread ids.
10254         (thread_find_command): New command.
10255         (_initialize_thread): Document argument for info threads.
10256         Document 'thread find' command.
10257         * NEWS: Document new command "thread find".
10258
10259 2011-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10260
10261         * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10262         * aclocal.m4: Regenerated with aclocal-1.11.1.
10263         * common/configure: Regenerate with autoconf-2.64.
10264
10265 2011-02-15  Ken Werner  <ken.werner@de.ibm.com>
10266
10267         * opencl-lang.c (build_opencl_types): Set the size of the built-in
10268         bool data type to a size of one byte.
10269
10270 2011-02-15  Pedro Alves  <pedro@codesourcery.com>
10271             Jan Kratochvil  <jan.kratochvil@redhat.com>
10272
10273         * target.c (memory_xfer_live_readonly_partial): Document where to
10274         look for interface description.
10275
10276 2011-02-15  Yao Qi  <yao@codesourcery.com>
10277
10278         PR tdep/12352
10279         * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10280         order to store PC value on stack instead of text section.
10281
10282 2011-02-15  Thiago Jung Bauermann  <bauerman@br.ibm.com>
10283
10284         * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10285         the EFP register set size.
10286         (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10287         data from the VMX register.
10288         (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10289         and write data from/to the VMX register.
10290
10291 2011-02-14  Michael Snyder  <msnyder@vmware.com>
10292
10293         * command.h (enum command_class): New class 'no_set_class', for
10294         "show" commands without a corresponding "set" command.
10295         * value.c (_initialize_values): Use 'no_set_class' for "show values".
10296         * copying.c (_initialize_copying): Ditto for "show copying" and
10297         "show warranty".
10298         * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10299         "show version".
10300         * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10301         which there is no corresponding "set" command (eg. "show copying").
10302
10303 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10304             Jan Kratochvil  <jan.kratochvil@redhat.com>
10305
10306         * exec.c (section_table_available_memory): Change `len' parameter
10307         type to ULONGEST.
10308         * exec.h (section_table_available_memory): Ditto.
10309         * value.h (read_value_memory): Rename the `offset' parameter to
10310         `embedded_offset'.
10311
10312 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10313             Jan Kratochvil  <jan.kratochvil@redhat.com>
10314
10315         * memrange.c (compare_mem_ranges): Mention sort order in
10316         describing comment.
10317         (normalize_mem_ranges): Add comment.  Fix ra->length calculation.
10318         * tracepoint.c (traceframe_available_memory): Extend comment to
10319         mention what happens to RESULT when the target does not support
10320         the query.
10321
10322 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10323             Jan Kratochvil  <jan.kratochvil@redhat.com>
10324
10325         * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10326         range.
10327
10328 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10329
10330         * value.c (value_bits_valid, value_bits_synthetic_pointer):
10331         No longer handle NULL values.
10332
10333 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10334
10335         * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10336         * value.c: Include "exceptions.h".
10337         (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10338         generic error.
10339         * cp-abi.c: Include gdb_assert.h.
10340         (baseclass_offset): Add `embedded_offset' and `val' parameters.
10341         Assert the method is implemented.  Wrap NOT_AVAILABLE_ERROR
10342         errors.
10343         * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10344         parameters.  No longer returns -1 on error.
10345         (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10346         `val' parameters.
10347         * cp-valprint.c: Include exceptions.h.
10348         (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10349         the baseclass_offset.  Handle unavailable base classes.  Use
10350         val_print_invalid_address.
10351         * p-valprint.c: Include exceptions.h.
10352         (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10353         when fetching the baseclass_offset.  No longer expect
10354         baseclass_offset returning -1.  Handle unavailable base classes.
10355         Use val_print_invalid_address.
10356         * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10357         `valaddr' parameter, and change its type to gdb_byte pointer.  Add
10358         `embedded_offset' and `val' parameters.  Adjust.
10359         (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10360         parameter, and change its type to gdb_byte pointer.  Add
10361         `embedded_offset' and `val' parameters.  Adjust.  No longer expect
10362         baseclass_offset returning -1.
10363         (value_dynamic_cast): Use value_contents_for_printing rather than
10364         value_contents.  Adjust.
10365         (search_struct_field): No longer expect baseclass_offset returning
10366         -1.
10367         (search_struct_method): If reading memory from the target is
10368         necessary, wrap it in a new value to pass to baseclass_offset.  No
10369         longer expect baseclass_offset returning -1.
10370         (find_method_list): No longer expect baseclass_offset returning
10371         -1.  Use value_contents_for_printing rather than value_contents.
10372         * valprint.c (val_print_invalid_address): New function.
10373         * valprint.h (val_print_invalid_address): Declare.
10374         * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10375         and `val' parameters.  No longer expect baseclass_offset returning
10376         -1.  Adjust.
10377         * gnu-v2-abi.c: Include "exceptions.h".
10378         (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10379         parameters.  Handle unavailable memory.  Recurse through
10380         gnuv2_baseclass_offset directly, rather than through
10381         baseclass_offset.  No longer returns -1 on not found, instead
10382         throw an error.
10383         * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10384         `val' parameters.  Adjust.
10385
10386 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10387
10388         * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10389         almost but not quite adjacent.
10390
10391 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10392
10393         * value.h (value_entirely_available): Declare.
10394         * value.c (value_entirely_available): New function.
10395         * c-valprint.c (c_value_print): Don't try fetching the pointer's
10396         real type if the pointer is unavailable.
10397
10398 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10399
10400         * valops.c (value_repeat): Use read_value_memory instead of
10401         read_memory.
10402
10403 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10404
10405         * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10406         * value.c (value_contents_copy_raw, value_contents_copy): New
10407         functions.
10408         (value_primitive_field): Use value_contents_copy_raw instead of
10409         memcpy.
10410         * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10411         memcpy.
10412         (value_array, value_slice): Ditto.
10413         * valarith.c (value_subscripted_rvalue): Use
10414         value_contents_copy_raw instead of memcpy.
10415
10416 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10417
10418         <unavailable> references.
10419
10420         * valops.c (get_value_at): Use value_from_contents_and_address,
10421         avoiding read_memory.
10422
10423 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10424
10425         * c-valprint.c (c_val_print): Print a string with unavailable
10426         contents as an array.
10427
10428 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10429
10430         * value.h (unpack_bits_as_long): Delete declaration.
10431         (unpack_value_bits_as_long): Declare.
10432         (unpack_value_field_as_long): Declare.
10433         (value_field_bitfield): Declare.
10434         * value.c (unpack_bits_as_long): Rename to...
10435         (unpack_value_bits_as_long_1): ... this.  Add embedded_offset and
10436         value parameters.  Return the extracted result in a new output
10437         parameter.  If the value contents are unavailable, return false,
10438         otherwise return true.
10439         (unpack_value_bits_as_long): New.
10440         (unpack_field_as_long): Rename to...
10441         (unpack_value_field_as_long_1): ... this.  Add embedded_offset and
10442         Add embedded_offset and value parameters.  Return the extracted
10443         result in a new output parameter. If the value contents are
10444         unavailable, return false, otherwise return true.
10445         (unpack_value_field_as_long): New.
10446         (unpack_field_as_long_1): New.
10447         (unpack_field_as_long): Reimplement as wrapper around
10448         unpack_value_field_as_long_1.
10449         (value_field_bitfield): New function.
10450         * valops.c (value_fetch_lazy): When fetching a bitfield, use
10451         unpack_value_bits_as_long.  Mark the value as unavailable, if it
10452         is unavailable.
10453         * jv-valprint.c (java_print_value_fields): Use
10454         value_field_bitfield.
10455         * p-valprint.c (pascal_object_print_value_fields): Use
10456         value_field_bitfield.
10457         * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10458
10459 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10460
10461         * value.c (get_internalvar_integer): Also return the int value of
10462         TYPE_CODE_INT INTERNALVAR_VALUE values.
10463         (set_internalvar): Don't special case TYPE_CODE_INT.
10464
10465 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10466
10467         * value.c (struct internalvar) <enum internalvar_kind>: Remove
10468         INTERNALVAR_POINTER.
10469         <pointer>: Delete.
10470         (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10471         (set_internalvar): Remove special TYPE_CODE_PTR handling.
10472         (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10473
10474 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10475
10476         * value.h (value_available_contents_eq): Declare.
10477         * value.c (find_first_range_overlap): New function.
10478         (value_available_contents_eq): New function.
10479         * valprint.c (val_print_array_elements): Use
10480         value_available_contents_eq.
10481         * ada-valprint.c (val_print_packed_array_elements): Use
10482         value_available_contents_eq.
10483         * jv-valprint.c (java_value_print): Use
10484         value_available_contents_eq.
10485
10486 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10487
10488         * target.c (target_read_live_memory): New function.
10489         (memory_xfer_live_readonly_partial): New.
10490         (memory_xfer_partial): If reading from a traceframe, fallback to
10491         reading unavailable read-only memory from read-only regions of
10492         live target memory.
10493         * tracepoint.c (disconnect_tracing): Adjust.
10494         (set_current_traceframe): New, factored out from
10495         set_traceframe_number.
10496         (set_traceframe_number): Reimplement to only change the traceframe
10497         number on the GDB side.
10498         (do_restore_current_traceframe_cleanup): Adjust.
10499         (make_cleanup_restore_traceframe_number): New.
10500         (cur_traceframe_number): New global.
10501         (tfile_open): Set cur_traceframe_number to no traceframe.
10502         (set_tfile_traceframe): New function.
10503         (tfile_trace_find): If looking up a traceframe using any method
10504         other than by number, make sure the current tfile traceframe
10505         matches gdb's current traceframe.  Update the current tfile
10506         traceframe if the lookup succeeded.
10507         (tfile_fetch_registers, tfile_xfer_partial)
10508         (tfile_get_trace_state_variable_value): Make sure the remote
10509         traceframe matches gdb's current traceframe.
10510         * remote.c (remote_traceframe_number): New global.
10511         (remote_open_1): Set it to -1.
10512         (set_remote_traceframe): New function.
10513         (remote_fetch_registers, remote_store_registers)
10514         (remote_xfer_memory, remote_xfer_partial)
10515         (remote_get_trace_state_variable_value): Make sure the remote
10516         traceframe matches gdb's current traceframe.
10517         (remote_trace_find): If looking up a traceframe using any method
10518         other than by number, make sure the current remote traceframe
10519         matches gdb's current traceframe.  Update the current remote
10520         traceframe if the lookup succeeded.
10521         * infrun.c (fetch_inferior_event): Adjust.
10522         * tracepoint.h (set_current_traceframe): Declare.
10523         (get_traceframe_number, set_traceframe_number): Add describing
10524         comments.
10525
10526 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10527
10528         Mark pieces of values as unavailable if the corresponding memory
10529         is unavailable.
10530
10531         * valops.c: Include tracepoint.h.
10532         (value_fetch_lazy): Use read_value_memory.
10533         (read_value_memory): New.
10534         * value.h (read_value_memory): Declare.
10535         * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10536         * exec.c (section_table_available_memory): New function.
10537         * exec.h (section_table_available_memory): Declare.
10538
10539 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10540
10541         * Makefile.in (SFILES): Add memrange.c.
10542         (HFILES_NO_SRCDIR): Add memrange.h.
10543         (COMMON_OBS): Add memrange.o.
10544         * memrange.c: New file.
10545         * memrange.h: New file.
10546         * tracepoint.c: Include memrange.h.
10547         (struct mem_range): Delete.
10548         (mem_range_s): Delete.
10549         (traceframe_available_memory): New function.
10550         * tracepoint.h (traceframe_available_memory): Declare.
10551
10552 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10553
10554         * target.h (struct traceframe_info): Forward declare.
10555         (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10556         (struct target_ops) <to_traceframe_info>: New field.
10557         (target_traceframe_info): New.
10558         * target.c (update_current_target): Inherit and default
10559         to_traceframe_info.
10560         * remote.c (PACKET_qXfer_traceframe_info): New.
10561         (remote_protocol_features): Register qXfer:traceframe-info:read.
10562         (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10563         (remote_traceframe_info): New.
10564         (init_remote_ops): Install it.
10565         (_initialize_remote): Install "set/show remote traceframe-info"
10566         commands.
10567         * tracepoint.h (parse_traceframe_info): Declare.
10568         * tracepoint.c (struct mem_range): New.
10569         (mem_range_s): New typedef.
10570         (struct traceframe_info): New.
10571         (traceframe_info): New global.
10572         (free_traceframe_info): New function.
10573         (clear_traceframe_info): New function.
10574         (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10575         info.
10576         (build_traceframe_info): New function.
10577         (tfile_traceframe_info): New function.
10578         (init_tfile_ops): Install tfile_traceframe_info.
10579         (traceframe_info_start_memory, free_result): New functions.
10580         (memory_attributes, traceframe_info_elements): New globals.
10581         (parse_traceframe_info, get_traceframe_info): New functions.
10582         * features/traceframe-info.dtd: New file.
10583         * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10584
10585 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10586
10587         Base support for <unavailable> value contents.
10588
10589         * value.h (value_bytes_available): Declare.
10590         (mark_value_bytes_unavailable): Declare.
10591         * value.c (struct range): New struct.
10592         (range_s): New typedef.
10593         (ranges_overlap): New function.
10594         (range_lessthan): New function.
10595         (ranges_contain_p): New function.
10596         (struct value) <unavailable>: New field.
10597         (value_bytes_available): New function.
10598         (mark_value_bytes_unavailable): New function.
10599         (require_not_optimized_out): Constify parameter.
10600         (require_available): New function.
10601         (value_contents_all, value_contents): Require all bytes be
10602         available.
10603         (value_free): Free `unavailable'.
10604         (value_copy): Copy `unavailable'.
10605         * valprint.h (val_print_unavailable): Declare.
10606         * valprint.c (valprint_check_validity): Rename `offset' parameter
10607         to `embedded_offset'.  If printing a scalar, check whether the
10608         value chunk is available.
10609         (val_print_unavailable): New.
10610         (val_print_scalar_formatted): Check whether the value is
10611         available.
10612         * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10613         pretty-printing unavailable values.
10614
10615 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10616
10617         Fix const/volatile qualifiers of C++ types, PR c++/12328.
10618         * c-typeprint.c (c_type_print_args): Update the function comment.  New
10619         variable param_type, initialize it.  Remove const/volatile qualifiers
10620         for language_cplus and !show_artificial.  Use param_type.
10621
10622 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10623
10624         * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10625         from S.  Iterate S using ALL_OBJFILE_SYMTABS.  Verify BV for each S.
10626         * symtab.h (struct symtab) <next>: Comment extension.
10627
10628 2011-02-12  Yao Qi  <yao@codesourcery.com>
10629
10630         * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10631
10632 2011-02-11  Yao Qi  <yao@codesourcery.com>
10633
10634         * common/Makefile.in: Add copyright header.
10635
10636 2011-02-11  Pedro Alves  <pedro@codesourcery.com>
10637
10638         * infrun.c (proceed): Move switching out and in of tfind mode from
10639         here ...
10640         (fetch_inferior_event): ... to here.
10641
10642 2011-02-11  Yao Qi  <yao@codesourcery.com>
10643
10644         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
10645         libcommon.a.
10646         * configure.ac: Add common to sub dir.
10647         * configure: Regenerate.
10648
10649 2011-02-11  Yao Qi  <yao@codesourcery.com>
10650
10651         Build libcommon.a.
10652
10653         * common/Makefile.in: New.
10654         * common/configure.ac: New.
10655         * common/aclocal.m4: New.
10656         * common/configure: Generate.
10657
10658 2011-02-10  Pedro Alves  <pedro@codesourcery.com>
10659
10660         * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10661         side of the parenthesis.
10662
10663         Merge from GCC:
10664         2010-07-13  Jakub Jelinek  <jakub@redhat.com>
10665         * vec.h (VEC_block_remove): Fix comment.
10666
10667 2011-02-08  Michael Snyder  <msnyder@vmware.com>
10668
10669         * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10670
10671 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10672
10673         * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10674         in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10675         psubd and paddd.
10676
10677 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10678
10679         PR 12361.
10680         * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10681         phsubsw.
10682         (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10683         (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10684
10685 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
10686
10687         * dwarf2read.c (read_subroutine_type): Set special calling
10688         convention flag for functions compiled by IBM XL C for OpenCL.
10689         * ppc-sysv-tdep.c: Include "dwarf2.h"
10690         (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10691         calling convention.
10692         (do_ppc_sysv_return_value): Add FUNC_TYPE argument.  Implement
10693         IBM OpenCL vector types calling convention.
10694         (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10695         (ppc_sysv_abi_broken_return_value): Likewise.
10696         (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10697         types calling convention.
10698         (ppc64_sysv_abi_return_value): Likewise.
10699         * spu-tdep.c: Include "dwarf2.h"
10700         (spu_return_value): Implement IBM OpenCL vector types calling
10701         convention.
10702
10703 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
10704
10705         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10706         correct ABI for AltiVec vector arguments.
10707
10708 2011-02-07  Pedro Alves  <pedro@codesourcery.com>
10709
10710         * valprint.c (val_print): Extend comment.
10711         * ada-valprint.c (ada_valprint): Rewrite comment deferring
10712         interface explanation to val_print.
10713         (ada_val_print_array): Adjust comment to current interface.
10714         (print_field_values): Adjust comment to current interface.
10715         * c-valprint.c (c_val_print): Rewrite comment deferring interface
10716         explanation to val_print.
10717         * f-valprint.c (f_val_print): Ditto.
10718         * jv-valprint.c (java_val_print): Ditto.
10719         * m2-valprint.c (m2_val_print): Ditto.
10720         * p-valprint.c (pascal_val_print): Ditto.
10721
10722 2011-02-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
10723
10724         * breakpoint.c (parse_breakpoint_sals): Fix description.
10725
10726 2011-02-04  Sami Wagiaalla  <swagiaal@redhat.com>
10727             Oguz Kayral <oguzkayral@gmail.com>
10728
10729         * python/py-inferior.c (python_on_normal_stop): New function.
10730         (python_on_resume): New function.
10731         (python_inferior_exit): New function.
10732         (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10733         inferior_exit observers.
10734         * python/py-evtregistry.c: New file.
10735         * python/py-threadevent.c : New file.
10736         * python/py-event.c: New file.
10737         * python/py-evts.c: New file.
10738         * python/py-continueevent.c: New file.
10739         * python/py-bpevent.c: New file.
10740         * python/py-signalevent.c: New file.
10741         * python/py-exetiedevent.c: New file.
10742         * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10743         Move struct breakpoint_object from here...
10744         * python/python-internal.h: ... to here.
10745         * python/py-event.h: New file.
10746         * python/py-events.h: New file.
10747         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10748         py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10749         py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10750         (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10751         py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10752         py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10753         Add build rules for all the above.
10754
10755 2011-02-04  Tom Tromey  <tromey@redhat.com>
10756
10757         * dwarf2read.c (dwarf2_section_empty_p): New function.
10758         (dwarf2_read_section): Use dwarf2_section_empty_p.
10759         (dwarf2_section_size): New function.
10760         (dwarf2_get_section_info): Unconditionally read section.
10761         (dwarf2_read_index): Use dwarf2_section_empty_p.
10762         (partial_read_comp_unit_head): Use dwarf2_section_size.
10763         (dwarf2_symbol_mark_computed): Likewise.
10764
10765 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10766
10767         * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10768
10769 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10770
10771         * mips-linux-tdep.c: Include xml-syscall.h.
10772         (mips_linux_get_syscall_number): New function.
10773         (mips_linux_init_abi): Add calls to
10774         mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10775         * data-directory/Makefile.in (SYSCALLS_FILES): Add
10776         mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10777         * syscalls/mips-n32-linux.xml: New file.
10778         * syscalls/mips-n64-linux.xml: New file.
10779         * syscalls/mips-o32-linux.xml: New file.
10780
10781 2011-02-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
10782
10783         * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10784         Complain about inverted range entries.
10785         (dwarf2_record_block_ranges): Likewise.
10786
10787 2011-02-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
10788
10789         Fix some typos.
10790         * breakpoint.c (update_watchpoint): Fix name of the
10791         update_global_location_list function.
10792         (print_one_breakpoint): Fix typo.
10793         (_initialize_breakpoint): Remove extra space in hbreak help
10794         string.
10795         * breakpoint.h (struct bp_location) <length>: Fix field
10796         description.
10797
10798 2011-02-04  Pedro Alves  <pedro@codesourcery.com>
10799
10800         * regcache.c (registers_changed_ptid): Don't explictly always
10801         clear `current_regcache'.  Only clear current_thread_ptid and
10802         current_thread_arch when PTID matches.  Only reinit the frame
10803         cache if PTID matches the current inferior_ptid.  Move alloca(0)
10804         call to ...
10805         (registers_changed): ... here.
10806
10807 2011-02-03  Ulrich Weigand  <ulrich.weigand@linaro.org>
10808
10809         * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10810         starts with __stack_chk_guard as stack guard symbol.
10811
10812 2011-02-03  Andrew Burgess  <aburgess@broadcom.com>
10813
10814         * disasm.c (compare_lines): Handle the end of sequence markers
10815         within the line table to better support disassembling over
10816         compilation unit boundaries.
10817
10818 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
10819
10820         * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10821         arguments.  Skip in-prologue calls to glibc __aeabi_read_tp
10822         implementation even if no symbols are available.
10823         (thumb_analyze_prologue): Update call to skip_prologue_function.
10824         (arm_analyze_prologue): Likewise.
10825
10826 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
10827
10828         * arm-tdep.c: Include "observer.h".
10829         (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10830         (arm_exidx_data_key): New static variable.
10831         (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10832         (struct arm_exidx_data): Likewise.
10833         (arm_exidx_data_free): New function.
10834         (arm_compare_exidx_entries): Likewise.
10835         (arm_obj_section_from_vma): Likewise.
10836         (arm_exidx_new_objfile): Likewise.
10837         (arm_find_exidx_entry): Likewise.
10838         (arm_exidx_fill_cache): Likewise.
10839         (arm_exidx_unwind_sniffer): Likewise.
10840         (arm_exidx_unwind): New global variable.
10841         (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10842         (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10843         observer.  Register arm_exidx_data_key as objfile data.
10844
10845 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
10846
10847         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10848         due to accessing uninitialized variable.  Fix indentation.
10849
10850 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
10851
10852         * c-valprint.c (c_value_print): When doing virtual base pointer
10853         adjustment, create a new value with adjusted contents rather than
10854         changing the contents of the value being printed (and getting it
10855         wrong).
10856
10857 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
10858
10859         * xml-support.c (xml_find_attribute): New.
10860         (xinclude_start_include): Use it.
10861         * xml-support.h (xml_find_attribute): Declare.
10862         * memory-map.c (memory_map_start_memory)
10863         (memory_map_start_property): Use xml_find_attribute.
10864         * osdata.c (osdata_start_osdata, osdata_start_column): Use
10865         xml_find_attribute.
10866         * remote.c (start_thread): Use xml_find_attribute.
10867         * solib-target.c (library_list_start_segment)
10868         (library_list_start_section, library_list_start_library)
10869         (library_list_start_list): Use xml_find_attribute.
10870         * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10871         (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10872         (tdesc_start_field): Use xml_find_attribute.
10873
10874 2011-02-02  Ulrich Weigand  <uweigand@de.ibm.com>
10875
10876         * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10877         (BUILD_OCL_VTYPES): Update.
10878
10879 2011-02-02  Joel Brobecker  <brobecker@adacore.com>
10880
10881         * configure.ac: Work around non-GNU sed limitation when computing
10882         python version number.
10883         * configure: Regenerate.
10884
10885 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10886
10887         Fix debug printing of TYPE_INSTANCE.
10888         * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10889         (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10890
10891 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10892
10893         Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10894         OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10895         OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10896         * ada-operator.inc: Rename the file to ...
10897         * ada-operator.def: ... here, wrap all the entries by macro OP.
10898         * expprint.c (op_name_standard): Remove all the entries.  Include
10899         "std-operator.def" instead.
10900         * expression.h (enum exp_opcode): Include "std-operator.def" and
10901         "ada-operator.def".  Move all the entries ...
10902         * std-operator.def: ... here, wrap all the entries by macro OP.
10903
10904 2011-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
10905
10906         * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10907         * breakpoint.c (remove_jit_event_breakpoints): New function.
10908         * jit.c (jit_descriptor_addr): Delete.
10909         (registering_code): Delete.
10910         (clear_int): Delete.
10911         (jit_inferior_data): New variable.
10912         (struct jit_inferior_data): New type.
10913         (get_jit_inferior_data): New function.
10914         (jit_inferior_data_cleanup): New function.
10915         (jit_read_descriptor): Adjust.
10916         (jit_register_code): Adjust.
10917         (jit_breakpoint_re_set_internal): New function; move code here ...
10918         (jit_inferior_init): ... from here.
10919         (jit_breakpoint_re_set): Adjust.
10920         (jit_reset_inferior_data_and_breakpoints): New function.
10921         (jit_inferior_created_observer): Adjust.
10922         (jit_inferior_exit_hook): Adjust.
10923         (jit_executable_changed_observer): New function.
10924         (jit_event_handler): Adjust.
10925         (_initialize_jit): Adjust.
10926
10927 2011-01-31  Michael Snyder  <msnyder@vmware.com>
10928
10929         * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10930         line.
10931
10932 2011-01-31  Tom Tromey  <tromey@redhat.com>
10933
10934         PR python/12216:
10935         * python/python.c (execute_gdb_command): Call
10936         prevent_dont_repeat.
10937         * top.c (suppress_dont_repeat): New global.
10938         (dont_repeat): Use it.
10939         (prevent_dont_repeat): New function.
10940         * command.h (prevent_dont_repeat): Declare.
10941
10942 2011-01-31  Tom Tromey  <tromey@redhat.com>
10943
10944         * infcmd.c (finish_backward): Use breakpoint_set_silent.
10945         * python/py-breakpoint.c (bppy_set_silent): Use
10946         breakpoint_set_silent.
10947         (bppy_set_thread): Use breakpoint_set_thread.
10948         (bppy_set_task): Use breakpoint_set_task.
10949         * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10950         (breakpoint_set_task): Declare.
10951         (make_breakpoint_silent): Remove.
10952         * breakpoint.c (breakpoint_set_silent): New function.
10953         (breakpoint_set_thread): Likewise.
10954         (breakpoint_set_task): Likewise.
10955         (make_breakpoint_silent): Remove.
10956
10957 2011-01-31  Tom Tromey  <tromey@redhat.com>
10958
10959         * breakpoint.h (user_breakpoint_p): Declare.
10960         * breakpoint.c (user_breakpoint_p): New function.
10961         (breakpoint_1): Use it.
10962         (save_breakpoints): Likewise.
10963
10964 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
10965
10966         * configure.ac: Add handling of Python distribution on Windows.
10967         * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10968         sysconfig variables are not defined, then do not use them.
10969         On Windows, if LIBPL is not defined, then use prefix + '/libs'
10970         instead.  On Windows, return all paths using forward-slashes
10971         rather than backslashes.
10972
10973 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
10974
10975         * configure.ac: Remove fallback behavior for building
10976         against Python.  Remove tweaking of Python include path.
10977         Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10978         (AC_TRY_LIBPYTHON):  Adjust program used in linking test.
10979         If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10980         Always restore CPPFLAGS and LIBS after linking test.
10981         * configure: Regenerated.
10982         * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10983         (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10984         * python/python-internal.h: Adjust includes of Python .h files.
10985
10986 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
10987
10988         * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10989         in error message.
10990
10991 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
10992
10993         * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10994         value test.
10995
10996 2011-01-31  Yao Qi  <yao@codesourcery.com>
10997
10998         * arm-linux-nat.c: Update calls to regcache_register_status
10999         instead of regcache_valid_p.
11000         * aix-thread.c: Likewise.
11001         * i386gnu-nat.c: Likewise.
11002
11003 2011-01-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
11004
11005         Fix crash.
11006         * valops.c (compare_parameters): Verify TYPE_NFIELDS before
11007         touching TYPE_FIELD_ARTIFICIAL.
11008
11009 2011-01-28  Richard Earnshaw  <rearnsha@arm.com>
11010
11011         * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
11012         Committers.
11013
11014 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
11015
11016         * tracepoint.c (tfile_xfer_partial): If there's no traceframe
11017         selected, don't try iterating over the traceframe's blocks.
11018         (tfile_has_stack): If there's no traceframe selected, then there's
11019         no stack.
11020         (tfile_has_registers): If there's no traceframe selected, then
11021         there's no registers.
11022
11023 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
11024
11025         * target.c (memory_xfer_partial): No need to restore shadows if we
11026         haven't read anything.
11027
11028 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
11029
11030         * mips-tdep.c (mips_print_register): Use get_frame_register_value
11031         and val_print_scalar_formatted.
11032
11033 2011-01-27  Pedro Alves  <pedro@codesourcery.com>
11034
11035         * tracepoint.c (tfile_read): New.
11036         (tfile_open): Use it.
11037         (tfile_get_traceframe_address): Use it.
11038         (tfile_trace_find): Use it.
11039         (walk_blocks_callback_func): New typedef.
11040         (match_blocktype): New function.
11041         (traceframe_walk_blocks): New function.
11042         (traceframe_find_block_type): New function.
11043         (tfile_fetch_registers, tfile_xfer_partial)
11044         (tfile_get_trace_state_variable_value): Use
11045         traceframe_find_block_type and tfile_read.
11046
11047 2011-01-26  Kevin Buettner  <kevinb@redhat.com>
11048
11049         * remote-mips.c: Add internationalization mark ups.  Remove
11050         trailing \n from already marked up strings.
11051
11052 2011-01-26  Tom Tromey  <tromey@redhat.com>
11053
11054         * python/py-prettyprint.c (print_string_repr): Clear
11055         'addressprint' option when calling val_print_string.
11056         (print_children): Handle Val_pretty_default.  Clear 'addressprint'
11057         option when calling val_print_string.
11058
11059 2011-01-26  Tom Tromey  <tromey@redhat.com>
11060
11061         * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
11062         GDB_PY_LL_ARG.
11063         * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
11064         macros.
11065         (gdb_py_longest, gdb_py_ulongest): New typedefs.
11066         (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
11067         (gdb_py_long_as_ulongest): New defines.
11068         (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
11069         (gdb_py_int_as_long): Declare.
11070         * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
11071         GDB_PY_LL_ARG, gdb_py_object_from_longest.
11072         (valpy_long): Add comment.
11073         * python/py-utils.c (get_addr_from_python): Use
11074         gdb_py_long_as_ulongest.  Handle overflow properly.
11075         (gdb_py_object_from_longest): New function.
11076         (gdb_py_object_from_ulongest): Likewise.
11077         (gdb_py_int_as_long): Likewise.
11078         * python/py-type.c (typy_array): Use gdb_py_int_as_long.
11079         * python/py-symtab.c (salpy_get_pc): Use
11080         gdb_py_long_from_ulongest.
11081         (salpy_get_line): Use PyInt_FromLong.
11082         * python/py-param.c (set_parameter_value): Use
11083         gdb_py_int_as_long.
11084         * python/py-lazy-string.c (stpy_get_address): Use
11085         gdb_py_long_from_ulongest.
11086         * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
11087         * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
11088         * python/py-breakpoint.c (bppy_set_thread): Use
11089         gdb_py_int_as_long.
11090         (bppy_set_task): Likewise.
11091         (bppy_set_ignore_count): Likewise.
11092         (bppy_set_hit_count): Likewise.
11093         * python/py-block.c (blpy_get_start): Use
11094         gdb_py_object_from_ulongest.
11095         (blpy_get_end): Likewise.
11096         (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
11097
11098 2011-01-25  Mathieu Lacage  <mathieu.lacage@inria.fr>
11099
11100         PR/symtab 11766:
11101         * gdb/objfiles.h (struct objfile) <addr_low>: New field.
11102         * gdb/solib.c (solib_read_symbols): Check for addr_low in
11103         equality test for objfile, initialize addr_low if needed.
11104
11105 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11106
11107         * tui/tui-regs.c (tui_register_format): Remove dead code.
11108
11109 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11110
11111         * printcmd.c (print_formatted): Use val_print_scalar_formatted
11112         instead of print_scalar_formatted.
11113         (print_scalar_formatted): Don't handle 's' format strings here,
11114         and add an assertion that we never see such format here.
11115         * valprint.h (val_print_scalar_formatted): Declare.
11116         * valprint.c (val_print_scalar_formatted): New.
11117         * c-valprint.c (c_val_print): Use val_print_scalar_formatted
11118         instead of print_scalar_formatted.
11119         * jv-valprint.c (java_val_print): Ditto.
11120         * p-valprint.c (pascal_val_print): Ditto.
11121         * ada-valprint.c (ada_val_print_1): Ditto.
11122         * f-valprint.c (f_val_print): Ditto.
11123         * infcmd.c (registers_info): Ditto.
11124         * m2-valprint.c (m2_val_print): Ditto.
11125
11126 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11127
11128         * m2-valprint.c (print_unbounded_array): Pass
11129         value_contents_for_printing rather than value_contents, to
11130         m2_print_array_contents.  Also pass in the value.
11131
11132 2011-01-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
11133
11134         * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11135         (save_gdb_index_command): Switch to .gdb_index version 4.
11136
11137 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11138
11139         * mi/mi-main.c (get_register): Use get_frame_register_value rather
11140         than frame_register, and always pass a valid value to val_print.
11141
11142 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11143
11144         Centralize printing "<optimized out>".
11145
11146         * valprint.h (val_print_optimized_out): Declare.
11147         * cp-valprint.c (cp_print_value_fields): Use
11148         val_print_optimized_out.
11149         * jv-valprint.c (java_print_value_fields): Ditto.
11150         * p-valprint.c (pascal_object_print_value_fields): Ditto.
11151         * printcmd.c (print_formatted): Ditto.
11152         * valprint.c (valprint_check_validity): Ditto.
11153         (value_check_printable): Ditto.
11154         (val_print_optimized_out): New.
11155
11156 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11157
11158         * infcmd.c (default_print_registers_info): Allocate values so to
11159         never pass a NULL value to val_print.
11160
11161 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11162
11163         * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11164         boolean.  Make sure to always pass a value that matches the
11165         contents buffer to callees.  Preserve `address' for following
11166         iterations.
11167         * value.c (value_contents_for_printing_const): New.
11168         (value_address): Constify value argument.
11169         * value.h (value_contents_for_printing_const): Declare.
11170         (value_address): Constify value argument.
11171
11172 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11173
11174         * regcache.c (struct regcache_descr): Rename
11175         sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11176         and sizeof_cooked_register_valid_p to
11177         sizeof_cooked_register_status.
11178         (init_regcache_descr): Adjust.
11179         (struct regcache): Rename register_valid_p field to
11180         register_status.
11181         (regcache_xmalloc_1, regcache_xfree, regcache_save)
11182         (do_cooked_read): Adjust.
11183         (regcache_valid_p): Rename to ...
11184         (regcache_register_status): ... this.  Adjust.
11185         (regcache_invalidate): Adjust.
11186         (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11187         Adjust.
11188         (regcache_raw_supply): Adjust.  If buf i NULL, mark the register
11189         as unavailable, not valid.
11190         (regcache_dump): Adjust.
11191         * regcache.h (enum register_status): New.
11192         (regcache_register_status): Declare.
11193         (regcache_invalidate): Delete declaration.
11194         * corelow.c (get_core_registers): Adjust.
11195         * tracepoint.c (tfile_fetch_registers): Adjust.
11196         * trad-frame.c (REG_VALUE): Rename to ...
11197         (TF_REG_VALUE): ... this.
11198         (REG_UNKNOWN): Rename to ...
11199         (TF_REG_UNKNOWN): ... this.
11200         (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11201         * mi/mi-main.c (register_changed_p): Adjust.
11202
11203 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11204
11205         * regcache.c (struct regcache_descr): Remove outdated comment.
11206         (init_regcache_descr): Remove sizeof_raw_register_valid_p
11207         overallocate hack.
11208         (regcache_xmalloc): Rename to ...
11209         (regcache_xmalloc_1): ... this.  Add `readonly_p' parameter.
11210         Allocate the regcache type accordingly.
11211         (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11212         (regcache_xfree): Asser the source is also readonly.  Copy sizeof
11213         cooked registers, not raw.
11214         (regcache_dup_no_passthrough): Delete.
11215         (get_thread_arch_regcache): Use regcache_xmalloc_1.
11216         * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11217         mention obsolete write_register_bytes.
11218         * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11219
11220 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11221
11222         Stop remote_read_bytes from handling partial reads itself.
11223
11224         * remote-fileio.c: Include target.h.
11225         (remote_fileio_write_bytes): Delete.
11226         (remote_fileio_func_open, remote_fileio_func_write)
11227         (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11228         target_read_memory.
11229         (remote_fileio_func_stat): Use target_read_memory and
11230         target_write_memory.
11231         (remote_fileio_func_gettimeofday): Use target_write_memory.
11232         (remote_fileio_func_system): Use target_read_memory.
11233         * remote.c (remote_write_bytes): Make it static.
11234         (remote_read_bytes): Don't handle partial reads here.
11235         * remote.h (remote_read_bytes): Delete declaration.
11236
11237 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11238
11239         Simplify XML parsing a bit.
11240
11241         * xml-support.h (gdb_xml_parse_quick): Declare.
11242         * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11243         from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11244         parameter.
11245         (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11246         gdb_xml_create_parser_and_cleanup_1.
11247         (gdb_xml_parse_quick): New.
11248         * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11249         * osdata.c (osdata_parse): Ditto.
11250         * remote.c (remote_threads_info): Ditto.
11251         * solib-target.c (solib_target_parse_libraries): Ditto.
11252         * xml-syscall.c (syscall_parse_xml): Ditto.
11253         * xml-tdesc.c (tdesc_parse_xml): Ditto.
11254
11255 2011-01-24  Kevin Buettner  <kevinb@redhat.com>
11256
11257         * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11258         with remote-mips.o added to gdb_target_obs.
11259         * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11260
11261 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
11262
11263         * ada-valprint.c (val_print_packed_array_elements): Pass the
11264         correct struct value to val_print.
11265         (ada_val_print_1): Ditto.
11266
11267 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
11268
11269         Don't lose embedded_offset in printing routines throughout.
11270
11271         * valprint.h (val_print_array_elements): Change prototype.
11272         * valprint.c (val_print_array_elements): Add `embedded_offset'
11273         parameter, and adjust to pass it down to val_print, while passing
11274         `valaddr' or `address' unmodified.  Take embedded_offset into
11275         account when checking repetitions.
11276         * c-valprint.c (c_val_print): Pass embedded_offset to
11277         val_print_array_elements instead of adjusting `valaddr' and
11278         `address'.
11279         * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11280         embedded_offset to val_print_array_elements instead of adjusting
11281         `valaddr'.
11282         * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11283         * p-valprint.c (pascal_val_print): Pass embedded_offset to
11284         val_print_array_elements and pascal_object_print_value_fields
11285         instead of adjusting `valaddr'.
11286         (pascal_object_print_value_fields): Add `offset' parameter, and
11287         adjust to use it.
11288         (pascal_object_print_value): Add `offset' parameter, and adjust to
11289         use it.
11290         (pascal_object_print_static_field): Use
11291         value_contents_for_printing/value_embedded_offset, rather than
11292         value_contents.
11293         * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11294         parameter, and adjust to use it.  Use
11295         value_contents_for_printing/value_embedded_offset, rather than
11296         value_contents.
11297         (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11298         (ada_val_print_array): Add `offset' parameter, and adjust to use
11299         it.
11300         (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11301         `embedded_offset' to `offset'.  Don't re-adjust `valaddr'.
11302         Instead work with offsets.  Use
11303         value_contents_for_printing/value_embedded_offset, rather than
11304         value_contents.  Change `defer_val_int' local type to CORE_ADDR,
11305         and use value_from_pointer to extract a target pointer, rather
11306         than value_from_longest.
11307         (print_variant_part): Add `offset' parameter.  Replace
11308         `outer_valaddr' parameter by a new `outer_offset' parameter.
11309         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
11310         (ada_value_print): Use
11311         value_contents_for_printing/value_embedded_offset, rather than
11312         value_contents.
11313         (print_record): Add `offset' parameter, and adjust to pass it
11314         down.
11315         (print_field_values): Add `offset' parameter.  Replace
11316         `outer_valaddr' parameter by a new `outer_offset' parameter.
11317         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
11318         Use value_contents_for_printing/value_embedded_offset, rather than
11319         value_contents.
11320         * d-valprint.c (dynamic_array_type): Use
11321         value_contents_for_printing/value_embedded_offset, rather than
11322         value_contents.
11323         * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11324         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
11325         (java_print_value_fields): Take `offset' into account.  Don't
11326         re-adjust `valaddr'.  Instead pass down adjusted offsets.
11327         (java_val_print): Take `embedded_offset' into account.  Pass it to
11328         java_print_value_fields.
11329         * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11330         parameter.  Don't re-adjust `valaddr' or `address'.  Instead pass
11331         down adjusted offsets.
11332         (f77_print_array): Add `embedded_offset' parameter.  Pass it down.
11333         (f_val_print): Take `embedded_offset' into account.
11334
11335 2011-01-21  Joel Brobecker  <brobecker@adacore.com>
11336
11337         * inflow.c: Include "gdbcmd.h".
11338         (interactive_mode): New static global, moved here from top.c.
11339         (show_interactive_mode): New function, moved here from top.c.
11340         use gdb_has_a_terminal instead of input_from_terminal_p to
11341         determine the current mode.
11342         (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11343         setting.
11344         (_initialize_inflow): Add the "set/show interactive-mode"
11345         commands.  Moved here from top.c, after having adjusted slightly
11346         the help text.
11347         * top.c (interactive_mode, show_interactive_mode): Delete, moved
11348         to inflow.c.
11349         (input_from_terminal_p): Remove handling of "interactive-mode"
11350         setting, moved to infow.c.
11351         (init_main): Remove creation of the "set/show interactive-mode"
11352         commands, moved to inflow.c.
11353
11354 2011-01-19  Joel Brobecker  <brobecker@adacore.com>
11355
11356         * NEWS: Add entry for native ia64-hpux support.
11357
11358 2011-01-19  Tom Tromey  <tromey@redhat.com>
11359
11360         PR mi/8618:
11361         * thread.c (free_thread): Free 'name'.
11362         (print_thread_info): Emit thread name.  Change CLI output.
11363         (thread_name_command): New function.
11364         (do_captured_thread_select): Emit newline.
11365         (_initialize_thread): Register 'thread name' command.
11366         * target.h (struct target_ops) <to_thread_name>: New field.
11367         (target_thread_name): New macro.
11368         * target.c (update_current_target): Handle to_thread_name.
11369         * python/py-infthread.c (thpy_get_name): New function.
11370         (thpy_set_name): Likewise.
11371         (thread_object_getset): Add "name".
11372         * linux-nat.c (linux_nat_thread_name): New function.
11373         (linux_nat_add_target): Set to_thread_name.
11374         * gdbthread.h (struct thread_info) <name>: New field.
11375
11376 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
11377
11378         * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11379         (ada_val_print_1): Likewise.
11380
11381 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
11382
11383         * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11384         upper limit address is not greater than the function end address
11385         when the upper limit could not be computed using the debugging
11386         info.
11387
11388 2011-01-17  Tom Tromey  <tromey@redhat.com>
11389
11390         * cli/cli-cmds.c (apropos_command): Free the compiled regex.  Use
11391         get_regcomp_error.
11392         * utils.c: Include gdb_regex.h.
11393         (do_regfree_cleanup): New function.
11394         (make_regfree_cleanup): Likewise.
11395         (get_regcomp_error): Likewise.
11396         * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11397
11398 2011-01-17  Tom Tromey  <tromey@redhat.com>
11399
11400         * cli/cli-cmds.c (apropos_command): Fix formatting.  Don't call
11401         re_compile_fastmap.
11402
11403 2011-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
11404
11405         * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11406         for internal variables.
11407         (last_was_structop): New static variable.
11408         (COMPLETE): New token.
11409         (field_exp): New rule to group all '.' suffix handling.
11410         Add mark_struct_expression calls when approriate to be able
11411         to correctly find fields for completion.
11412         (yylex): Adapt to handle field completion and set INTVAR when
11413         required.
11414
11415 2011-01-14  Yao Qi  <yao@codesourcery.com>
11416
11417         * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11418         save_reggroup, restore_reggroup and all_reggroup.
11419
11420 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
11421
11422         * ada-valprint. (ada_printchar): Use the correct type length
11423         in call to ada_emit_char.
11424         * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11425
11426 2011-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
11427
11428         * solib-som.h (hpux_major_release): Declare variable here.
11429         * solib-som.c:  Remove <sys/utsname.h> header.
11430         (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11431         (hpux_major_release): Make global, change default value to
11432         DEFAULT_HPUX_MAJOR_RELEASE.
11433         (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11434         * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11435         Add "solib-som.h" header.
11436         (set_hpux_major_release): New function.
11437         (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11438
11439 2011-01-14  Mike Frysinger  <vapier@gentoo.org>
11440
11441         * configure.tgt (*-*-uclinux*): Match more Linux os targets
11442
11443 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
11444
11445         * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11446         new-line at end of warning message.
11447         (ia64_hpux_store_register): Remove trailing new-line at end of
11448         error message.
11449         * ia64-hpux-tdep.c: Rephrase comment.
11450         * solib-ia64-hpux.c (struct dld_info): Change type of field
11451         dld_flags from "long long" to ULONGEST.
11452
11453 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
11454
11455         * target.h (deprecated_child_ops): Delete declaration.
11456         * target.c (deprecated_child_ops): Delete definition.
11457
11458 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
11459
11460         * Makefile.in (hpux-thread.o): Delete rule.
11461         * configure.ac: Don't check for HPUX DCE threads support.
11462         * configure, config.in: Regenerate.
11463         * hppa-hpux-nat.c (child_suppress_run): Delete.
11464         (hppa_hpux_child_can_run): Delete.
11465         (_initialize_hppa_hpux_nat): Don't override to_can_run.
11466         * hpux-thread.c: Delete.
11467
11468 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11469
11470         * hpux-thread.c (hpux_pid_to_str): Delete.
11471
11472 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11473
11474         * ada-valprint.c (ada_emit_char): Remove strange code.
11475         Check that c is <= UCHAR_MAX before passing it to isascii.
11476         (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11477
11478 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11479
11480         * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11481         to the case where instream is stdin.
11482
11483 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11484
11485         * ia64-tdep.h (struct regcache): Forward declare.
11486         (struct ia64_infcall_ops): New struct type.
11487         (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11488         and "infcall_ops".
11489         * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11490         Renames ia64_find_global_pointer.
11491         (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11492         (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11493         (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11494         methods.
11495         (ia64_infcall_ops): New static global constant.
11496         (ia64_gdbarch_init): Set tdep->infcall_ops.
11497         * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11498         (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11499         * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11500         (ia64_hpux_dummy_code): New static global constant.
11501         (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11502         (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11503         (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11504         New function.
11505         (ia64_hpux_infcall_ops): New static global constant.
11506         (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11507         for inferior function calls to work properly on ia64-hpux.
11508
11509 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11510
11511         * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11512         * ia64-tdep.h (struct frame_info): forward declaration.
11513         (struct gdbarch_tdep): Add field size_of_register_frame.
11514         * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11515         to determine the size of the register frame.
11516         (ia64_size_of_register_frame): New function.
11517         (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11518         * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11519         (IA64_HPUX_UREG_REASON): New macro.
11520         (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11521         New functions.
11522         (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11523         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11524         (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11525         objects.
11526
11527 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11528
11529         Add support for ia64-hpux.
11530         * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11531         ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11532
11533         * configure.host: Add handling for ia64-hpux hosts.  Add associated
11534         floatformats.
11535         * configure.tgt: Add handling for ia64-hpux targets.
11536         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11537         (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11538         (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11539
11540 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11541
11542         [ttrace] Compute thread list immediately after attach.
11543         * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11544         New subprogram.
11545         (inf_ttrace_attach): Use it.
11546
11547 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11548
11549         * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11550         if we could not determine the frame's function address.  Instead,
11551         use the frame's PC, and then continue.
11552
11553 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11554
11555         * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11556         not already defined.
11557
11558 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11559
11560         * ia64-tdep.c (ia64_struct_type_p): New function.
11561         (ia64_extract_return_value): Handle integral values that are
11562         less than 8 bytes long.
11563         (ia64_push_dummy_call): Likewise.
11564
11565 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11566
11567         * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11568         floatformat_ia64_ext.
11569         (floatformat_ia64_ext_big): New static const.
11570         (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11571
11572 2011-01-12  Tom Tromey  <tromey@redhat.com>
11573
11574         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11575         messages.
11576         * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11577         (mi_cmd_thread_list_ids): Likewise.
11578         (mi_cmd_data_list_changed_registers): Likewise.
11579         (mi_cmd_data_list_register_values): Likewise.
11580         (mi_cmd_data_write_register_values): Likewise.
11581         (mi_cmd_data_evaluate_expression): Likewise.
11582         (mi_cmd_data_read_memory): Likewise.
11583         (mi_cmd_data_read_memory_bytes): Likewise.
11584         (mi_cmd_data_write_memory): Likewise.
11585         (mi_cmd_enable_timings): Likewise.
11586         * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11587         * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11588         (mi_cmd_var_delete): Likewise.
11589         (mi_cmd_var_set_format): Likewise.
11590         (mi_cmd_var_show_format): Likewise.
11591         (mi_cmd_var_info_num_children): Likewise.
11592         (mi_cmd_var_list_children): Likewise.
11593         (mi_cmd_var_info_type): Likewise.
11594         (mi_cmd_var_info_expression): Likewise.
11595         (mi_cmd_var_show_attributes): Likewise.
11596         (mi_cmd_var_assign): Likewise.
11597         (mi_cmd_var_update): Likewise.
11598         (mi_cmd_enable_pretty_printing): Likewise.
11599         (mi_cmd_var_set_update_range): Likewise.
11600         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11601         messages.
11602         (mi_cmd_target_file_put): Likewise.
11603         (mi_cmd_target_file_delete): Likewise.
11604         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11605         messages.
11606         (mi_cmd_stack_info_depth): Likewise.
11607         (mi_cmd_stack_list_locals): Likewise.
11608         (mi_cmd_stack_list_args): Likewise.
11609         (mi_cmd_stack_select_frame): Likewise.
11610         (mi_cmd_stack_select_frame): Likewise.
11611         (mi_cmd_stack_info_frame): Likewise.
11612         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11613         messages.
11614         (mi_cmd_file_list_exec_source_files): Likewise.
11615         * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11616         (mi_cmd_env_cd): Likewise.
11617         (mi_cmd_env_path): Likewise.
11618         (mi_cmd_env_dir): Likewise.
11619         (mi_cmd_inferior_tty_show): Likewise.
11620         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11621         * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11622         (mi_cmd_break_watch): Likewise.
11623
11624 2011-01-12  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11625
11626         * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11627         (ppc_linux_insert_hw_breakpoint): Likewise.
11628         (ppc_linux_remove_hw_breakpoint): Likewise.
11629         (ppc_linux_insert_watchpoint): Likewise.
11630
11631 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
11632             Jan Kratochvil  <jan.kratochvil@redhat.com>
11633
11634         PR fortran/11104 and DWARF unbound arrays detection.
11635         * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11636         upper bound.  Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11637         unspecified upper bound.
11638         * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11639         variables array_size_array, tmp_type and offset_item.  New variable
11640         array.  Remove call to f77_get_upperbound.  New variables array_type
11641         and index.  Call value_subscripted_rvalue for each dimenasion.  Remove
11642         the final call to deprecated_set_value_type.
11643
11644 2011-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
11645
11646         Make value allocations more lazy.
11647         * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11648         instead of allocate_value and set_value_lazy when possible.
11649         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11650         instead of allocate_value and set_value_lazy.
11651         * findvar.c (value_of_register_lazy): Likewise.
11652         (read_var_value): Remove V preallocation, call just check_typedef in
11653         advance.  Move allocate_value to LOC_CONST, LOC_LABEL,
11654         LOC_CONST_BYTES.  Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11655         LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK.  Set ADDR instead of
11656         set_value_address and break in LOC_BLOCK.  Use allocate_value_lazy and
11657         remove lval_memory set in LOC_REGPARM_ADDR.  Use allocate_value_lazy
11658         in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT.  Add setting lval_memory at
11659         the end, remove set_value_lazy there.
11660         * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11661         instead of allocate_value and set_value_lazy when possible.
11662         * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11663         * value.c (allocate_computed_value): Use allocate_value_lazy instead
11664         of allocate_value and set_value_lazy.
11665         (value_from_contents_and_address): Use allocate_value_lazy instead of
11666         allocate_value and set_value_lazy when possible.
11667
11668 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
11669
11670         * disasm.c (dump_insns): Support dumping opcodes for MI.
11671         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11672         dumping of instruction opcodes.
11673
11674 2011-01-09  Robert Millan  <rmh@gnu.org>  (tiny patch)
11675
11676         * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11677         appropiately.
11678
11679 2011-01-11  Tom Tromey  <tromey@redhat.com>
11680
11681         * thread.c (do_captured_thread_select): Emit newline before
11682         printing frame.
11683
11684 2011-01-11  Michael Snyder  <msnyder@vmware.com>
11685
11686         * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11687         * score-tdep.c: Ditto.
11688         * score-tdep.h: Ditto.
11689         * ser-base.c: Ditto.
11690         * ser-go32.c: Ditto.
11691         * serial.c: Ditto.
11692         * serial.h: Ditto.
11693         * ser-mingw.c: Ditto.
11694         * ser-pipe.c: Ditto.
11695         * ser-tcp.c: Ditto.
11696         * ser-unix.c: Ditto.
11697         * sh64-tdep.c: Ditto.
11698         * shnbsd-nat.c: Ditto.
11699         * sh-tdep.c: Ditto.
11700         * sh-tdep.h: Ditto.
11701         * solib.c: Ditto.
11702         * solib-darwin.c: Ditto.
11703         * solib-frv.c: Ditto.
11704         * solib.h: Ditto.
11705         * solib-irix.c: Ditto.
11706         * solib-osf.c: Ditto.
11707         * solib-pa64.c: Ditto.
11708         * solib-som.c: Ditto.
11709         * solib-spu.c: Ditto.
11710         * solib-sunos.c: Ditto.
11711         * solib-svr4.c: Ditto.
11712         * solist.h: Ditto.
11713         * sol-thread.c: Ditto.
11714         * somread.c: Ditto.
11715         * source.c: Ditto.
11716         * source.h: Ditto.
11717         * sparc64-linux-tdep.c: Ditto.
11718         * sparc64-tdep.c: Ditto.
11719         * sparc-linux-nat.c: Ditto.
11720         * sparc-linux-tdep.c: Ditto.
11721         * sparc-sol2-nat.c: Ditto.
11722         * sparc-sol2-tdep.c: Ditto.
11723         * sparc-tdep.c: Ditto.
11724         * sparc-tdep.h: Ditto.
11725         * spu-tdep.c: Ditto.
11726         * stabsread.c: Ditto.
11727         * stabsread.h: Ditto.
11728         * stack.c: Ditto.
11729         * symfile.c: Ditto.
11730         * symfile.h: Ditto.
11731         * symmisc.c: Ditto.
11732         * symtab.c: Ditto.
11733         * symtab.h: Ditto.
11734         * target.c: Ditto.
11735         * target-descriptions.c: Ditto.
11736         * target-descriptions.h: Ditto.
11737         * target.h: Ditto.
11738         * target-memory.c: Ditto.
11739         * terminal.h: Ditto.
11740         * thread.c: Ditto.
11741         * top.c: Ditto.
11742         * tracepoint.c: Ditto.
11743         * tracepoint.h: Ditto.
11744         * trad-frame.h: Ditto.
11745         * typeprint.c: Ditto.
11746
11747 2011-01-11  Michael Snyder  <msnyder@vmware.com>
11748
11749         * ui-file.c: Comment cleanup, mostly periods and spaces.
11750         * ui-file.h: Ditto.
11751         * ui-out.c: Ditto.
11752         * ui-out.h: Ditto.
11753         * utils.c: Ditto.
11754         * v850-tdep.c: Ditto.
11755         * valarith.c: Ditto.
11756         * valops.c: Ditto.
11757         * valprint.c: Ditto.
11758         * valprint.h: Ditto.
11759         * value.c: Ditto.
11760         * value.h: Ditto.
11761         * varobj.c: Ditto.
11762         * varobj.h: Ditto.
11763         * vax-tdep.c: Ditto.
11764         * vec.c: Ditto.
11765         * vec.h: Ditto.
11766         * version.h: Ditto.
11767         * windows-nat.c: Ditto.
11768         * windows-tdep.c: Ditto.
11769         * xcoffread.c: Ditto.
11770         * xcoffsolib.c: Ditto.
11771         * xml-support.c: Ditto.
11772         * xstormy16-tdep.c: Ditto.
11773         * xtensa-tdep.c: Ditto.
11774         * xtensa-tdep.h: Ditto.
11775
11776 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11777
11778         * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11779         * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11780
11781 2011-01-11  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
11782             Thiago Jung Bauermann  <bauerman@br.ibm.com>
11783
11784         Implement support for PowerPC BookE ranged watchpoints.
11785         * breakpoint.h
11786         (struct breakpoint_ops) <resources_needed>: New method.
11787         Initialize to NULL in all existing breakpoint_ops instances.
11788         (struct breakpoint) <exact>: New field.
11789         (target_exact_watchpoints): Declare external global.
11790         * breakpoint.c (target_exact_watchpoints): New global flag.
11791         (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11792         b->enable_state to bp_enabled before calling
11793         hw_watchpoint_used_count.
11794         (hw_watchpoint_used_count): Iterate over all bp_locations in a
11795         watchpoint.  Call breakpoint's breakpoint_ops.resources_needed
11796         if available.
11797         (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11798         if the watchpoint is exact.
11799         (resources_needed_watchpoint): New function.
11800         (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11801         (watch_command_1): Set b->exact if the user asked for an exact
11802         watchpoint and one can be set.
11803         (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11804         Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11805         the user asks for an exact watchpoint and one can be set.  Return
11806         number of needed debug registers to watch the expression.
11807         * gdbtypes.c (is_scalar_type): New function, based on
11808         valprint.c:scalar_type_p.
11809         (is_scalar_type_recursive): New function.
11810         * gdbtypes.h (is_scalar_type_recursive): Declare.
11811         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11812         handle regions when ranged watchpoints are available.
11813         (create_watchpoint_request): New function.
11814         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11815         create_watchpoint_request.
11816         * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11817         (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11818         `set powerpc' and `show powerpc' commands.
11819         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11820         Mention documentation comment in the target macro.
11821         (target_region_ok_for_hw_watchpoint): Document return value.
11822
11823 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11824
11825         * breakpoint.c (update_watchpoint): Decide on using a software or
11826         hardware watchpoint after the bp_locations are created.
11827
11828 2010-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11829
11830         Convert hardware watchpoints to use breakpoint_ops.
11831         * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11832         <insert_location>: ... this.  Return int instead of void.
11833         Accept pointer to struct bp_location instead of pointer to
11834         struct breakpoint.  Adapt all implementations.
11835         (breakpoint_ops) <remove>: Rename to...
11836         <remove_location>: ... this.  Accept pointer to struct bp_location
11837         instead of pointer to struct breakpoint.  Adapt all implementations.
11838         * breakpoint.c (insert_catchpoint): Delete function.
11839         (insert_bp_location): Call the watchpoint or catchpoint's
11840         breakpoint_ops.insert method.
11841         (remove_breakpoint_1): Call the watchpoint or catchpoint's
11842         breakpoint_ops.remove method.
11843         (insert_watchpoint, remove_watchpoint): New functions.
11844         (watchpoint_breakpoint_ops): New structure.
11845         (watch_command_1): Initialize the OPS field.
11846         * inf-child.c (inf_child_insert_fork_catchpoint)
11847         (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11848         (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11849         (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11850         Delete functions.
11851         (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11852         to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11853         to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11854         to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11855         * target.c (update_current_target): Change default implementation of
11856         to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11857         to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11858         to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11859         to_set_syscall_catchpoint to return_one.
11860         (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11861         (debug_to_insert_exec_catchpoint): Report return value.
11862         * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11863         (to_insert_exec_catchpoint): Change declaration to return int instead
11864         of void.
11865
11866 2011-01-11  Michael Snyder  <msnyder@vmware.com>
11867
11868         * arm-tdep.c: Internationalization.
11869         * c-lang.c: Ditto.
11870         * charset.c: Ditto.
11871         * fork-child.c: Ditto.
11872         * nto-procfs.c: Ditto.
11873         * ppc-sysv-tdep.c: Ditto.
11874         * procfs.c: Ditto.
11875         * remote-mips.c: Ditto.
11876         * remote.c: Ditto.
11877         * rs6000-nat.c: Ditto.
11878         * rs6000-tdep.c: Ditto.
11879         * target.c: Ditto.
11880         * valops.c: Ditto.
11881         * value.c: Ditto.
11882         * xml-support.c: Ditto.
11883         * mi/mi-cmd-break.c: Ditto.
11884         * mi/mi-cmd-var.c: Ditto.
11885         * mi/mi-interp.c: Ditto.
11886         * mi/mi-main.c: Ditto.
11887
11888 2011-01-11  Andrew Burgess  <aburgess@broadcom.com>
11889
11890         * remote-sim.c (gdbsim_store_register): Update API to
11891         sim_store_register to check more error conditions.
11892
11893 2011-01-10  Michael Snyder  <msnyder@vmware.com>
11894
11895         * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11896         * nto-tdep.c: Ditto.
11897         * nto-tdep.h: Ditto.
11898         * objc-exp.y: Ditto.
11899         * objc-lang.c: Ditto.
11900         * objfiles.c: Ditto.
11901         * objfiles.h: Ditto.
11902         * observer.c: Ditto.
11903         * opencl-lang.c: Ditto.
11904         * osabi.c: Ditto.
11905         * parse.c: Ditto.
11906         * parser-defs.h: Ditto.
11907         * p-exp.y: Ditto.
11908         * p-lang.c: Ditto.
11909         * posix-hdep.c: Ditto.
11910         * ppcbug-rom.c: Ditto.
11911         * ppc-linux-nat.c: Ditto.
11912         * ppc-linux-tdep.c: Ditto.
11913         * ppc-linux-tdep.h: Ditto.
11914         * ppcnbsd-tdep.c: Ditto.
11915         * ppcobsd-tdep.c: Ditto.
11916         * ppcobsd-tdep.h: Ditto.
11917         * ppc-sysv-tdep.c: Ditto.
11918         * ppc-tdep.h: Ditto.
11919         * printcmd.c: Ditto.
11920         * proc-abi.c: Ditto.
11921         * proc-flags.c: Ditto.
11922         * procfs.c: Ditto.
11923         * proc-utils.h: Ditto.
11924         * progspace.h: Ditto.
11925         * prologue-value.c: Ditto.
11926         * prologue-value.h: Ditto.
11927         * psympriv.h: Ditto.
11928         * psymtab.c: Ditto.
11929         * p-typeprint.c: Ditto.
11930         * p-valprint.c: Ditto.
11931         * ravenscar-sparc-thread.c: Ditto.
11932         * ravenscar-thread.c: Ditto.
11933         * ravenscar-thread.h: Ditto.
11934         * record.c: Ditto.
11935         * regcache.c: Ditto.
11936         * regcache.h: Ditto.
11937         * remote.c: Ditto.
11938         * remote-fileio.c: Ditto.
11939         * remote-fileio.h: Ditto.
11940         * remote.h: Ditto.
11941         * remote-m32r-sdi.c: Ditto.
11942         * remote-mips.c: Ditto.
11943         * remote-sim.c: Ditto.
11944         * rs6000-aix-tdep.c: Ditto.
11945         * rs6000-nat.c: Ditto.
11946         * rs6000-tdep.c: Ditto.
11947
11948 2011-01-10  Michael Snyder  <msnyder@vmware.com>
11949
11950         * charset.c (validate): Internationalization.
11951         * coffread.c (read_one_sym): Ditto.
11952         * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11953         * h8300-tdep.c (H8300_extract_return_value): Ditto.
11954         * inflow.c (new_tty): Ditto.
11955         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11956         * m32c-tdep.c (m32c_return_value): Ditto.
11957         * mep-tdep.c (mep_store_return_value): Ditto.
11958         * score-tdep.c (score7_fetch_insn): Ditto.
11959         * ser-mingw.c (pipe_windows_open): Ditto.
11960         * sh64-tdep.c (sh64_extract_return_value): Ditto.
11961         * spu-tdep.c (spu_register_type): Ditto.
11962         * tracepoint.c (trace_find_command): Ditto.
11963         * valarith.c (value_pos): Ditto.
11964
11965 2011-01-10  Joel Brobecker  <brobecker@adacore.com>
11966
11967         * ada-valprint.c (printstr): Minor comment reformatting.
11968
11969 2011-01-08  Michael Snyder  <msnyder@vmware.com>
11970
11971         * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11972         markup.
11973
11974 2011-01-08  Michael Snyder  <msnyder@vmware.com>
11975
11976         * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11977         * hppa-hpux-tdep.c: Ditto.
11978         * hppa-linux-nat.c: Ditto.
11979         * hppa-linux-tdep.c: Ditto.
11980         * hppanbsd-tdep.c: Ditto.
11981         * hppa-tdep.c: Ditto.
11982         * hppa-tdep.h: Ditto.
11983         * hpux-thread.c: Ditto.
11984         * i386-cygwin-tdep.c: Ditto.
11985         * i386-darwin-nat.c: Ditto.
11986         * i386gnu-nat.c: Ditto.
11987         * i386-linux-nat.c: Ditto.
11988         * i386-linux-tdep.c: Ditto.
11989         * i386-nat.c: Ditto.
11990         * i386-nat.h: Ditto.
11991         * i386nbsd-tdep.c: Ditto.
11992         * i386-sol2-nat.c: Ditto.
11993         * i386-stub.c: Ditto.
11994         * i386-tdep.c: Ditto.
11995         * i386-tdep.h: Ditto.
11996         * i387-tdep.c: Ditto.
11997         * ia64-linux-nat.c: Ditto.
11998         * ia64-linux-tdep.c: Ditto.
11999         * ia64-tdep.c: Ditto.
12000         * infcall.c: Ditto.
12001         * infcall.h: Ditto.
12002         * infcmd.c: Ditto.
12003         * inferior.c: Ditto.
12004         * inferior.h: Ditto.
12005         * infloop.c: Ditto.
12006         * inflow.c: Ditto.
12007         * infrun.c: Ditto.
12008         * interps.c: Ditto.
12009         * interps.h: Ditto.
12010         * iq2000-tdep.c: Ditto.
12011         * irix5-nat.c: Ditto.
12012         * jit.c: Ditto.
12013         * jit.h: Ditto.
12014         * jv-exp.y: Ditto.
12015         * jv-lang.c: Ditto.
12016         * jv-lang.h: Ditto.
12017         * jv-typeprint.c: Ditto.
12018         * jv-valprint.c: Ditto.
12019         * language.c: Ditto.
12020         * language.h: Ditto.
12021         * linespec.c: Ditto.
12022         * linux-fork.c: Ditto.
12023         * linux-nat.c: Ditto.
12024         * linux-thread-db.c: Ditto.
12025         * lm32-tdep.c: Ditto.
12026
12027 2011-01-08  Michael Snyder  <msnyder@vmware.com>
12028
12029         * m2-exp.y: Comment cleanup, mostly periods and spaces.
12030         * m2-lang.c: Ditto.
12031         * m2-typeprint.c: Ditto.
12032         * m2-valprint.c: Ditto.
12033         * m32c-tdep.c: Ditto.
12034         * m32r-linux-nat.c: Ditto.
12035         * m32r-rom.c: Ditto.
12036         * m32r-tdep.c: Ditto.
12037         * m32r-tdep.h: Ditto.
12038         * m68hc11-tdep.c: Ditto.
12039         * m58klinux-nat.c: Ditto.
12040         * m68k-tdep.c: Ditto.
12041         * m88k-tdep.c: Ditto.
12042         * m88k-tdep.h: Ditto.
12043         * machoread.c: Ditto.
12044         * macrocmd.c: Ditto.
12045         * macroexp.c: Ditto.
12046         * macrotab.c: Ditto.
12047         * main.c: Ditto.
12048         * maint.c: Ditto.
12049         * mdebugread.c: Ditto.
12050         * mdebugread.h: Ditto.
12051         * memattr.c: Ditto.
12052         * memattr.h: Ditto.
12053         * memory-map.h: Ditto.
12054         * mep-tdep.c: Ditto.
12055         * microblaze-rom.c: Ditto.
12056         * microblaze-tdep.c: Ditto.
12057         * minsyms.c: Ditto.
12058         * mips-irix-tdep.c: Ditto.
12059         * mips-linux-nat.c: Ditto.
12060         * mips-linux-tdep.c: Ditto.
12061         * mips-linux-tdep.h: Ditto.
12062         * mipsnbsd-nat.c: Ditto.
12063         * mipsnbsd-tdep.c: Ditto.
12064         * mipsread.c: Ditto.
12065         * mips-tdep.c: Ditto.
12066         * mips-tdep.h: Ditto.
12067         * mn10300-linux-tdep.c: Ditto.
12068         * mn10300-tdep.c: Ditto.
12069         * mn10300-tdep.h: Ditto.
12070         * monitor.c: Ditto.
12071         * monitor.h: Ditto.
12072         * moxie-tdep.c: Ditto.
12073         * moxie-tdep.h: Ditto.
12074         * mt-tdep.c: Ditto.
12075
12076 2011-01-08  Mike Frysinger  <vapier@gentoo.org>
12077
12078         * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
12079
12080 2011-01-08  Robert Millan  <rmh@gnu.org>
12081
12082         * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
12083
12084 2011-01-07  Michael Snyder  <msnyder@vmware.com>
12085
12086         * charset.c (_initialize_charset): Fix typo in string.
12087
12088 2011-01-07  Michael Snyder  <msnyder@vmware.com>
12089
12090         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
12091         for i18n.
12092         * tui/tui-layout.c (tui_set_layout_for_display_command):
12093         Split line so that operator goes to beginning of line.
12094         * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
12095         assignment out of if statement.
12096
12097 2011-01-07  Michael Snyder  <msnyder@vmware.com>
12098
12099         * ada-lang.c: Comment cleanup, mostly periods and spaces.
12100         * ada-lang.h: Ditto.
12101         * ada-tasks.c: Ditto.
12102         * ada-valprint.c: Ditto.
12103         * aix-threads.c: Ditto.
12104         * alpha-linux-nat.c: Ditto.
12105         * alpha-linux-tdep.c: Ditto.
12106         * alpha-mdebug-tdep.c: Ditto.
12107         * alpha-nat.c: Ditto.
12108         * alpha-osf1-tdep.c: Ditto.
12109         * alpha-tdep.c: Ditto.
12110         * alphabsd-nat.c: Ditto.
12111         * alphabsd-tdep.c: Ditto.
12112         * amd64-darwin-tdep.c: Ditto.
12113         * amd64-linux-nat.c: Ditto.
12114         * amd64-linux-tdep.c: Ditto.
12115         * amd64-sol2-tdep.c: Ditto.
12116         * amd64-tdep.c: Ditto.
12117         * amd64-fbsd-tdep.c: Ditto.
12118         * amd64-nbsd-tdep.c: Ditto.
12119         * amd64-obsd-tdep.c: Ditto.
12120         * amd64-linux-nat.c: Ditto.
12121         * amd64-linux-tdep.c: Ditto.
12122         * arm-tdep.c: Ditto.
12123         * arm-tdep.h: Ditto.
12124         * armnbsd-nat.c: Ditto.
12125         * avr-tdep.c: Ditto.
12126         * bfin-tdep.c: Ditto.
12127         * bsd-kvm.c: Ditto.
12128         * c-typeprintc: Ditto.
12129         * c-valprint.c: Ditto.
12130         * coff-pe-read.h: Ditto.
12131         * coffreead.c: Ditto.
12132         * cris-tdep.c: Ditto.
12133         * d-lang.c: Ditto.
12134         * darwin-nat-info.c: Ditto.
12135         * darwin-nat.c: Ditto.
12136         * dbug-rom.c: Ditto.
12137         * dbxread.c: Ditto.
12138         * dcache.c: Ditto.
12139         * dcache.h: Ditto.
12140         * dec-thread.c: Ditto.
12141         * defs.h: Ditto.
12142         * demangle.c: Ditto.
12143         * dicos-tdep.c: Ditto.
12144         * dictionary.c: Ditto.
12145         * dictionary.h: Ditto.
12146         * dink32-rom.c: Ditto.
12147         * disasm.c: Ditto.
12148         * doublest.c: Ditto.
12149         * dsrec.c: Ditto.
12150         * dummy-frame.c: Ditto.
12151         * dwarf2-frame.c: Ditto.
12152         * dwarf2expr.c: Ditto.
12153         * dwarf2loc.c: Ditto.
12154         * dwarf2read.c: Ditto.
12155         * elfread.c: Ditto.
12156         * environ.c: Ditto.
12157         * eval.c: Ditto.
12158         * event-top.h: Ditto.
12159         * exceptions.c: Ditto.
12160         * exceptions.h: Ditto.
12161         * exec.c: Ditto.
12162         * expprint.c: Ditto.
12163         * expression.h: Ditto.
12164         * f-exp.y: Ditto.
12165         * f-lang.c: Ditto.
12166         * f-lang.h: Ditto.
12167         * f-typeprint.c: Ditto.
12168         * f-valprint.c: Ditto.
12169         * fbsd-nat.c: Ditto.
12170         * findvar.c: Ditto.
12171         * fork-child.c: Ditto.
12172         * frame.c: Ditto.
12173         * frame.h: Ditto.
12174         * frv-linux-tdep.c: Ditto.
12175         * frv-tdep.c: Ditto.
12176         * gcore.c: Ditto.
12177         * gdb-stabs.h: Ditto.
12178         * gdb_assert.h: Ditto.
12179         * gdb_string.h: Ditto.
12180         * gdb_thread_db.h: Ditto.
12181         * gdb_wait.h: Ditto.
12182         * gdbarch.sh: Ditto.
12183         * gdbcore.h: Ditto.
12184         * gdbthread.h: Ditto.
12185         * gdbtypes.c: Ditto.
12186         * gdbtypes.h: Ditto.
12187         * gnu-nat.c: Ditto.
12188         * gnu-nat.h: Ditto.
12189         * gnu-v2-abi.c: Ditto.
12190         * gnu-v3-abi.c: Ditto.
12191         * go32-nat.c: Ditto.
12192         * gdbarch.c: Regenerate.
12193         * gdbarch.h: Regenerate.
12194
12195 2011-01-07  Michael Snyder  <msnyder@vmware.com>
12196
12197         * ax-gdb.c: Adjust some long output strings.
12198         * breakpoint.c: Ditto.
12199         * charset.c: Ditto.
12200         * cp-abi.c: Ditto.
12201         * infcall.c: Ditto.
12202         * infrun.c: Ditto.
12203         * linux-nat.c: Ditto.
12204         * solib-pa64.c: Ditto.
12205         * solib-som.c: Ditto.
12206
12207 2011-01-06  Tom Tromey  <tromey@redhat.com>
12208
12209         PR python/12367:
12210         * NEWS: Add item.
12211         * python/python.c (GdbMethods): Add "newest_frame" method.
12212         * python/python-internal.h (gdbpy_newest_frame): Declare.
12213         * python/py-frame.c (gdbpy_newest_frame): New function.
12214
12215 2010-01-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
12216
12217         * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12218         * jit.c (jit_debug): New variable.
12219         (show_jit_debug): New function.
12220         (struct target_buffer): Use ULONGEST.
12221         (bfd_open_from_target_memory): Likewise.
12222         (jit_register_code, jit_inferior_init): Add debug output.
12223         (_initialize_jit): Register "debug jit" command.
12224
12225 2011-01-06  Tom Tromey  <tromey@redhat.com>
12226
12227         * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12228         * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12229         and ARCH_FRAME.
12230
12231 2011-01-06  Tom Tromey  <tromey@redhat.com>
12232
12233         * python/py-frame.c (frapy_block): Use get_frame_block.
12234
12235 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
12236
12237         Do not stop on SIGPRIO signals by default
12238         * infrun.c (_initialize_infrun): Unset signal_stop and
12239         signal_print for TARGET_SIGNAL_PRIO.
12240
12241 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
12242
12243         * ada-tasks.c: Fix style violation in comment.
12244
12245 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
12246
12247         * linespec.c (decode_compound, find_method): Remove trailing \n
12248         at end of error string.
12249         * solib-irix.c (irix_current_sos): Likewise.
12250         * varobj.c (uninstall_variable): Likewise.
12251
12252 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
12253
12254         * copyright.py: New script.
12255         * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12256         Launch emacs without exec'ing. Call copyright.py afterwards.
12257
12258 2011-01-05  Michael Snyder  <msnyder@vmware.com>
12259
12260         * addrmap.c: Shorten lines of >= 80 columns.
12261         * arch-utils.c: Ditto.
12262         * arch-utils.h: Ditto.
12263         * ax-gdb.c: Ditto.
12264         * ax-general.c: Ditto.
12265         * bcache.c: Ditto.
12266         * blockframe.c: Ditto.
12267         * breakpoint.c: Ditto.
12268         * buildsym.c: Ditto.
12269         * c-lang.c: Ditto.
12270         * c-typeprint.c: Ditto.
12271         * charset.c: Ditto.
12272         * coffread.c: Ditto.
12273         * command.h: Ditto.
12274         * corelow.c: Ditto.
12275         * cp-abi.c: Ditto.
12276         * cp-namespace.c: Ditto.
12277         * cp-support.c: Ditto.
12278         * dbug-rom.c: Ditto.
12279         * dbxread.c: Ditto.
12280         * defs.h: Ditto.
12281         * dfp.c: Ditto.
12282         * dfp.h: Ditto.
12283         * dictionary.c: Ditto.
12284         * disasm.c: Ditto.
12285         * doublest.c: Ditto.
12286         * dwarf2-frame.c: Ditto.
12287         * dwarf2expr.c: Ditto.
12288         * dwarf2loc.c: Ditto.
12289         * dwarf2read.c: Ditto.
12290         * elfread.c: Ditto.
12291         * eval.c: Ditto.
12292         * event-loop.c: Ditto.
12293         * event-loop.h: Ditto.
12294         * exceptions.h: Ditto.
12295         * exec.c: Ditto.
12296         * expprint.c: Ditto.
12297         * expression.h: Ditto.
12298         * f-lang.c: Ditto.
12299         * f-valprint.c: Ditto.
12300         * findcmd.c: Ditto.
12301         * frame-base.c: Ditto.
12302         * frame-unwind.c: Ditto.
12303         * frame-unwind.h: Ditto.
12304         * frame.c: Ditto.
12305         * frame.h: Ditto.
12306         * gcore.c: Ditto.
12307         * gdb-stabs.h: Ditto.
12308         * gdb_assert.h: Ditto.
12309         * gdb_dirent.h: Ditto.
12310         * gdb_obstack.h: Ditto.
12311         * gdbcore.h: Ditto.
12312         * gdbtypes.c: Ditto.
12313         * gdbtypes.h: Ditto.
12314         * inf-ttrace.c: Ditto.
12315         * infcall.c: Ditto.
12316         * infcmd.c: Ditto.
12317         * inflow.c: Ditto.
12318         * infrun.c: Ditto.
12319         * inline-frame.h: Ditto.
12320         * language.c: Ditto.
12321         * language.h: Ditto.
12322         * libunwind-frame.c: Ditto.
12323         * libunwind-frame.h: Ditto.
12324         * linespec.c: Ditto.
12325         * linux-nat.c: Ditto.
12326         * linux-nat.h: Ditto.
12327         * linux-thread-db.c: Ditto.
12328         * machoread.c: Ditto.
12329         * macroexp.c: Ditto.
12330         * macrotab.c: Ditto.
12331         * main.c: Ditto.
12332         * maint.c: Ditto.
12333         * mdebugread.c: Ditto.
12334         * memattr.c: Ditto.
12335         * minsyms.c: Ditto.
12336         * monitor.c: Ditto.
12337         * monitor.h: Ditto.
12338         * objfiles.c: Ditto.
12339         * objfiles.h: Ditto.
12340         * osabi.c: Ditto.
12341         * p-typeprint.c: Ditto.
12342         * p-valprint.c: Ditto.
12343         * parse.c: Ditto.
12344         * printcmd.c: Ditto.
12345         * proc-events.c: Ditto.
12346         * procfs.c: Ditto.
12347         * progspace.c: Ditto.
12348         * progspace.h: Ditto.
12349         * psympriv.h: Ditto.
12350         * psymtab.c: Ditto.
12351         * record.c: Ditto.
12352         * regcache.c: Ditto.
12353         * regcache.h: Ditto.
12354         * remote-fileio.c: Ditto.
12355         * remote.c: Ditto.
12356         * ser-mingw.c: Ditto.
12357         * ser-tcp.c: Ditto.
12358         * ser-unix.c: Ditto.
12359         * serial.c: Ditto.
12360         * serial.h: Ditto.
12361         * solib-frv.c: Ditto.
12362         * solib-irix.c: Ditto.
12363         * solib-osf.c: Ditto.
12364         * solib-pa64.c: Ditto.
12365         * solib-som.c: Ditto.
12366         * solib-sunos.c: Ditto.
12367         * solib-svr4.c: Ditto.
12368         * solib-target.c: Ditto.
12369         * solib.c: Ditto.
12370         * somread.c: Ditto.
12371         * source.c: Ditto.
12372         * stabsread.c: Ditto.
12373         * stabsread.c: Ditto.
12374         * stack.c: Ditto.
12375         * stack.h: Ditto.
12376         * symfile-mem.c: Ditto.
12377         * symfile.c: Ditto.
12378         * symfile.h: Ditto.
12379         * symmisc.c: Ditto.
12380         * symtab.c: Ditto.
12381         * symtab.h: Ditto.
12382         * target-descriptions.c: Ditto.
12383         * target-memory.c: Ditto.
12384         * target.c: Ditto.
12385         * target.h: Ditto.
12386         * terminal.h: Ditto.
12387         * thread.c: Ditto.
12388         * top.c: Ditto.
12389         * tracepoint.c: Ditto.
12390         * tracepoint.h: Ditto.
12391         * ui-file.c: Ditto.
12392         * ui-file.h: Ditto.
12393         * ui-out.h: Ditto.
12394         * user-regs.c: Ditto.
12395         * user-regs.h: Ditto.
12396         * utils.c: Ditto.
12397         * valarith.c: Ditto.
12398         * valops.c: Ditto.
12399         * valprint.c: Ditto.
12400         * valprint.h: Ditto.
12401         * value.c: Ditto.
12402         * varobj.c: Ditto.
12403         * varobj.h: Ditto.
12404         * vec.h: Ditto.
12405         * xcoffread.c: Ditto.
12406         * xcoffsolib.c: Ditto.
12407         * xcoffsolib.h: Ditto.
12408         * xml-syscall.c: Ditto.
12409         * xml-tdesc.c: Ditto.
12410
12411 2011-01-05  Michael Snyder  <msnyder@vmware.com>
12412
12413         * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12414         * cli/cli-decode.c: Ditto.
12415         * cli/cli-dump.c: Ditto.
12416         * cli/cli-logging.c: Ditto.
12417         * cli/cli-script.c: Ditto.
12418         * cli/cli-setshow.c: Ditto.
12419         * common/signals.c: Ditto.
12420         * mi/mi-cmd-break.c: Ditto.
12421         * mi/mi-cmd-disas.c: Ditto.
12422         * mi/mi-cmd-stack.c: Ditto.
12423         * mi/mi-cmd-var.c: Ditto.
12424         * mi/mi-cmds.c: Ditto.
12425         * mi/mi-common.h: Ditto.
12426         * mi/mi-console.c: Ditto.
12427         * mi/mi-interp.c: Ditto.
12428         * mi/mi-main.c: Ditto.
12429         * osf-share/cma_attr.c: Ditto.
12430         * osf-share/cma_deb_core.h: Ditto.
12431         * osf-share/cma_debug_client.h: Ditto.
12432         * osf-share/cma_handle.h: Ditto.
12433         * osf-share/cma_mutex.h: Ditto.
12434         * osf-share/cma_stack_int.h: Ditto.
12435         * osf-share/cma_tcb_defs.h: Ditto.
12436         * python/py-auto-load.c: Ditto.
12437         * python/py-breakpoint.c: Ditto.
12438         * python/py-cmd.c: Ditto.
12439         * python/py-frame.c: Ditto.
12440         * python/py-objfile.c: Ditto.
12441         * python/py-param.c: Ditto.
12442         * python/py-progspace.c: Ditto.
12443         * python/py-symbol.c: Ditto.
12444         * python/py-value.c: Ditto.
12445         * python/python-internal.h: Ditto.
12446         * python/python.c: Ditto.
12447         * tui/tui-data.c: Ditto.
12448         * tui/tui-disasm.c: Ditto.
12449         * tui/tui-hooks.c: Ditto.
12450         * tui/tui-io.c: Ditto.
12451         * tui/tui-layout.c: Ditto.
12452         * tui/tui-regs.c: Ditto.
12453         * tui/tui-source.c: Ditto.
12454         * tui/tui-stack.c: Ditto.
12455         * tui/tui-win.c: Ditto.
12456         * tui/tui-windata.c: Ditto.
12457         * tui/tui-winsource.c: Ditto.
12458
12459 2011-01-05  Joel Brobecker  <brobecker@adacore.com>
12460
12461         * configure.ac, gdb.1: Copyright year update.
12462
12463 2011-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
12464
12465         * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12466         this_pc_in_block, morestack_msym and morestack_name.  Check for
12467         "__morestack" minimal symbol there.
12468
12469 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
12470
12471         * symfile.c (find_sym_fns): Add call to dont_repeat.
12472
12473 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
12474
12475         Copyright year update in most files (performed by copyright.sh).
12476
12477 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
12478
12479         * top.c (print_gdb_version): Update copyright year in version output.
12480
12481 For older changes see ChangeLog-2010.
12482 \f
12483 Local Variables:
12484 mode: change-log
12485 left-margin: 8
12486 fill-column: 74
12487 version-control: never
12488 coding: utf-8
12489 End: