2011-05-27 Pedro Alves <pedro@codesourcery.com>
[external/binutils.git] / gdb / ChangeLog
1 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
2
3         * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4         typedefs.
5         (add_continuation, add_intermediate_continuation)
6         (add_inferior_continuation): Use them.
7         * continuations.c (struct continuation): Use them.
8         (make_continuation_ftype): Delete.
9         (make_continuation, add_inferior_continuation, add_continuation)
10         (add_intermediate_continuation): Use continuation_ftype and
11         continuation_free_arg_ftype.  Rename parameters to shorter names.
12
13 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
14
15         * continuations.c (make_continuation): Make it return void.
16         (do_my_continuations): Rename to ...
17         (do_my_continuations_1): ... this.  Remove old_chain parameter and
18         adjust.
19         (do_my_continuations): New.
20         (discard_my_continuations): Rename to ...
21         (discard_my_continuations_1): ... this.  Remove old_chain
22         parameter and adjust.
23         (discard_my_continuations): New.
24         (add_inferior_continuation): Simplify.
25         (do_all_inferior_continuations): Reimplement on top
26         do_my_continuations.
27         (discard_all_inferior_continuations): Simplify.
28         (add_continuation): Simplify.
29         (do_all_continuations_ptid): Simplify.
30         (discard_all_continuations_thread_callback): Simplify.
31         (add_intermediate_continuation): Simplify.
32         (discard_all_intermediate_continuations_thread_callback):
33         Simplify.
34
35 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
36
37         * utils.c (struct continuation, add_continuation)
38         (add_inferior_continuation)
39         (do_all_inferior_continuations, discard_all_inferior_continuations)
40         (restore_thread_cleanup, do_all_continuations_ptid)
41         (do_all_continuations_thread_callback)
42         (do_all_continuations_thread, do_all_continuations)
43         (discard_all_continuations_thread_callback)
44         (discard_all_continuations_thread, discard_all_continuations)
45         (add_intermediate_continuation)
46         (do_all_intermediate_continuations_thread_callback)
47         (do_all_intermediate_continuations_thread)
48         (do_all_intermediate_continuations)
49         (discard_all_intermediate_continuations_thread_callback)
50         (discard_all_intermediate_continuations_thread)
51         (discard_all_intermediate_continuations): Move to ...
52         * continuations.c: ... this new file, and adjust to no longer
53         implement continuations on top of cleanups.
54         * Makefile.in (SFILES): Add continuations.c.
55         (COMMON_OBS): Add continuations.o.
56
57 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
58
59         * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
60         * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
61         Internal error on invalid values.
62         * reverse.c: Don't handle EXEC_ERROR.
63         * mi/mi-main.c: Don't handle EXEC_ERROR.
64
65 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
66
67         * record.c: Include event-loop.h, inf-loop.h.
68         (record_beneath_to_async): New global.
69         (tmp_to_async): New global.
70         (record_async_inferior_event_token): New global.
71         (record_open_1): Don't error out if async is enabled.
72         (record_open): Handle to_async.  Create an async event source in
73         the event loop.
74         (record_close): Delete the async event source.
75         (record_resumed): New global.
76         (record_execution_dir): New global.
77         (record_resume, record_core_resume): Set them.  Register the
78         target on the event loop.
79         (record_wait): Rename to ...
80         (record_wait_1): ... this.  Add more debug output.  Handle
81         TARGET_WNOHANG, and the target beneath returning
82         TARGET_WAITKIND_IGNORE.
83         (record_wait): Reimplement on top of record_wait_1.
84         (record_async_mask_value): New global.
85         (record_async, record_async_mask, record_can_async_p)
86         (record_is_async_p, record_execution_direction): New functions.
87         (init_record_ops, init_record_core_ops): Install new methods.
88         * infrun.c (fetch_inferior_event): Temporarily switch the global
89         execution direction to the direction the target was going.
90         (execution_direction): Change type to int.
91         * target.c (default_execution_direction): New function.
92         (update_current_target): Inherit and de_fault
93         to_execution_direction.
94         * target.h (struct target_ops) <to_execution_direction>: New
95         field.
96         (target_execution_direction): New macro.
97         * inferior.h (execution_direction): Change type to int.
98
99 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
100
101         * infcall.c (call_function_by_hand): Don't allow calling functions
102         in reverse execution mode.
103
104 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
105
106         * infcmd.c (finish_command): Allow async finish in reverse.
107
108 2011-05-26  Yao Qi  <yao@codesourcery.com>
109
110         * gdb_thread_db.h: Delete.  Move to ...
111         * common/gdb_thread_db.h: ... here.
112
113 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
114
115         * infcmd.c (finish_backward): Set a step-resume breakpoint at the
116         function's entry point instead of a manually managed momentary
117         breakpoint, and only ever issue one proceed call.
118         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
119         doing a reverse-finish, switch to stepi mode, to do another step.
120         (insert_step_resume_breakpoint_at_sal): Make public.
121         (normal_stop): No need to save function value return registers if
122         going reverse.
123         * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
124
125 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
126
127         * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
128         (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
129         before BPSTAT_WHAT_STOP_SILENT.  Add BPSTAT_WHAT_HP_STEP_RESUME
130         at the end.
131         * breakpoint.c (update_breakpoints_after_exec): Also delete hp
132         step-resume breakpoints.
133         (print_it_typical): Handle bp_hp_step_resume.
134         (bpstat_what): Ditto.
135         (bptype_string): Ditto.
136         (print_one_breakpoint_location): Ditto.
137         (allocate_bp_location): Ditto.
138         (mention): Ditto.
139         (breakpoint_re_set_one): Ditto.
140         * infrun.c (handle_inferior_event): Adjust.  Split
141         BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
142         BPSTAT_WHAT_HP_STEP_RESUME.
143         (insert_step_resume_breakpoint_at_sal): Rename to ...
144         (insert_step_resume_breakpoint_at_sal_1): ... this.  Add bptype
145         parameter.  Handle it.
146         (insert_step_resume_breakpoint_at_sal): Reimplement on top of
147         insert_step_resume_breakpoint_at_sal_1.
148         (insert_step_resume_breakpoint_at_frame): Rename to ...
149         (insert_hp_step_resume_breakpoint_at_frame): ... this.  Adjust to
150         set a high-priority step-resume breakpoint.
151         (insert_step_resume_breakpoint_at_frame): Adjust comment.
152         (insert_step_resume_breakpoint_at_caller): Ditto.
153
154 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
155
156         * breakpoint.c (iterate_over_related_breakpoints): New.
157         (do_map_delete_breakpoint): New.
158         (delete_command): Pass do_map_delete_breakpoint to
159         map_breakpoint_numbers.
160         (do_disable_breakpoint): New.
161         (do_map_disable_breakpoint): Iterate over the breakpoint's related
162         breakpoints.
163         (do_enable_breakpoint): Rename to ...
164         (enable_breakpoint_disp): ... this.
165         (enable_breakpoint): Adjust.
166         (do_enable_breakpoint): New.
167         (enable_once_breakpoint): Delete.
168         (do_map_enable_breakpoint): New.
169         (do_map_enable_once_breakpoint): New.
170         (enable_once_command, enable_delete_command)
171         (delete_trace_command): Iterate over the breakpoint's related
172         breakpoints.
173
174 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
175
176         * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
177         for ALPHA_ZERO_REGNUM.
178         (alpha_supply_int_regs): Explicitly supply zero as the value for
179         ALPHA_ZERO_REGNUM in the register cache.
180         * alpha-nat.c (fetch_osf_core_registers): Ditto.
181
182 2011-05-26  Yao Qi  <yao@codesourcery.com>
183
184         * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
185
186 2011-05-26  Tristan Gingold  <gingold@adacore.com>
187
188         * symfile.h (struct dwarf2_section_names): New type.
189         (struct dwarf2_debug_sections): New type.
190         (dwarf2_has_info): Add parameter.
191         * dwarf2read.c (dwarf2_elf_names): New variable.
192         (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
193         (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
194         (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
195         (dwarf2_has_info): Add names parameter.  Pass names
196         to dwarf2_locate_sections.
197         (section_is_p): Rewrite using the names parameter.
198         (dwarf2_locate_sections): Use section names from the names parameter.
199         * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
200         * elfread.c (read_psyms): Ditto.
201         * machoread.c (macho_symfile_read): Ditto.
202
203 2011-05-25  Andreas Schwab  <schwab@redhat.com>
204
205         PR gdb/8677
206         * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
207
208 2011-05-24  Keith Seitz  <keiths@redhat.com>
209
210         PR breakpoint/12803
211         * linespec.c (keep_name_info): Add handling for "volatile" keyword.
212         (decode_compound): Unconditionally call keep_name_info.
213
214 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
215
216         * breakpoint.c (watchpoint_check): If the watchpoint went out of
217         scope, clear its command list.
218         (map_breakpoint_numbers): Don't walk the related breakpoints list
219         of each breakpoint.
220
221 2011-05-24  Tom Tromey  <tromey@redhat.com>
222
223         * MAINTAINERS: Move Jim Blandy to past maintainers.
224
225 2011-05-24  Tristan Gingold  <gingold@adacore.com>
226
227         * symfile.h (enum dwarf2_section_enum): New type.
228         (dwarf2_get_section_info): New prototype.
229         * dwarf2read.c (dwarf2_get_section_info): Replace parameter
230         section_name by sect.  Use a switch to select the info.
231         * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
232         (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
233
234 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
235
236         * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
237         shared library event breakpoint if there's no execution.
238
239 2011-05-24  Thiago Jung Bauermann  <bauerman@br.ibm.com>
240
241         * breakpont.c (remove_hw_watchpoints): Remove unused function.
242         * breakpoint.h remove_hw_watchpoints(): Remove prototype.
243
244 2011-05-23  Tom Tromey  <tromey@redhat.com>
245
246         * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
247         NULL.
248
249 2011-05-23  Doug Evans  <dje@google.com>
250
251         * python/lib/gdb/printing.py (register_pretty_printer): Add missing
252         entry for RuntimeError to doc string.
253
254 2011-05-23  Jerome Guitton  <guitton@adacore.com>
255
256         * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
257         sequence for probing loops.
258
259 2011-05-23  Pedro Alves  <pedro@codesourcery.com>
260
261         * infrun.c (user_visible_resume_ptid): Fix typos in describing
262         comment.
263
264 2011-05-21  Mark Kettenis  <kettenis@gnu.org>
265
266         * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
267         zero as the value for %g0 in the register cache.
268         * sparc-tdep.c (sparc32_supply_gregset): Likewise.
269         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
270
271 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
272
273         * infrun.c (proceed): Set previous_inferior_ptid here.
274         (init_wait_for_inferior): Initialize previous_inferior_ptid from
275         inferior_ptid, not null_ptid.
276         (wait_for_inferior): Don't initialize previous_inferior_ptid here.
277         (fetch_inferior_event): Nor here.
278
279 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
280
281         * inf-loop.c (inferior_event_handler): Only output a message if
282         verbose.
283
284 2011-05-20  Luis Machado  <lgustavo@codesourcery.com>
285
286         * MAINTAINERS: Update my e-mail address.
287
288 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
289
290         * infrun.c (proceed): Switch the inferior event loop to
291         INF_EXEC_COMPLETE if the target refused to resume from a
292         vfork/fork.
293
294 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
295
296         * infcmd.c: Include "inf-loop.h".
297         (step_once): When stepping into an inline subroutine, pretend the
298         target has run.  If the target can async, switch the inferior
299         event loop to INF_EXEC_COMPLETE.
300         * inferior.h (user_visible_resume_ptid): Declare.
301         * infrun.c (user_visible_resume_ptid): New function, factored out
302         from `resume'.
303         (resume): Use it.
304         * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
305         that the current thread is running.  Merge async and sync
306         branches.
307
308 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
309
310         * infcmd.c (step_1): Simplify synchronous case.
311
312 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
313
314         * tracepoint.c: Include exceptions.h.
315         (TFILE_PID): Move higher in file.
316         (tfile_open): Delay pushing the tfile target until we're assured
317         the tfile header is present in the file.  Wrap reading the initial
318         newline-terminated lines in TRY_CATCH.  Pop the target if the
319         initial setup failed.  Add the tfile's thread immediately
320         aftwards, before any non-essential setup.  Don't skip
321         post_create_inferior if there are no traceframes present in the
322         file.
323         (tfile_close): Remove redundant check for null before xfree call.
324         (tfile_thread_alive): New function.
325         (init_tfile_ops): Register it as to_thread_alive callback.
326
327 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
328
329         * tracepoint.c (tfile_open): Delete #if 0'd code.
330
331 2011-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
332
333         Fix -readnow for -gdwarf-4 unused type units.
334         * dwarf2read.c (struct signatured_type): Remove the field offset.
335         (create_signatured_type_table_from_index): Remove its initialization.
336         (create_debug_types_hash_table): Likewise.  Initialize per_cu.offset
337         instead.  Add a complaint call.
338         (process_psymtab_comp_unit): Change assignment to gdb_assert.
339         (process_type_comp_unit, lookup_die_type, dump_die_shallow)
340         (lookup_signatured_type_at_offset, read_signatured_type)
341         (write_one_signatured_type): Update the field for per_cu.
342
343 2011-05-19  Tom Tromey  <tromey@redhat.com>
344
345         * python/py-inferior.c (python_inferior_exit): Use
346         target_gdbarch.
347         (python_on_resume): Likewise.
348
349 2011-05-19  Matt Rice  <ratmice@gmail.com>
350
351         * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
352
353 2011-05-19  Hui Zhu  <teawater@gmail.com>
354
355         * tracepoint.c (tfile_trace_find): Return directly when num is -1.
356
357 2011-05-19  Hui Zhu  <teawater@gmail.com>
358
359         * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
360
361 2011-05-18  Tom Tromey  <tromey@redhat.com>
362
363         * dwarf2read.c (dwarf2_add_field): Constify.
364         * value.c (value_static_field): Constify.
365         * gdbtypes.h (struct main_type) <field.field_location.physname>:
366         Now const.
367         * ax-gdb.c (gen_static_field): Constify
368
369 2011-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
370
371         * linux-nat.c (kill_callback): Use SIGKILL first.
372
373 2011-05-18  Joel Brobecker  <brobecker@adacore.com>
374
375         * ada-lang.c (print_it_exception): Avoid use of sprintf.
376
377 2011-05-18  Tom Tromey  <tromey@redhat.com>
378
379         * value.c (value_fn_field): Constify.
380         * symtab.c (gdb_mangle_name): Constify.
381         * stabsread.c (update_method_name_from_physname): Make 'physname'
382         argument const.
383         * p-typeprint.c (pascal_type_print_method_args): Make arguments
384         const.  Use explicit fputc_filtered loop.
385         (pascal_type_print_base): Constify.
386         * p-lang.h (pascal_type_print_method_args): Update.
387         * linespec.c (add_matching_methods): Constify.
388         (add_constructors): Likewise.
389         * jv-typeprint.c (java_type_print_base): Constify.
390         * gdbtypes.h (struct cplus_struct_type)
391         <fn_fieldlist.fn_field.physname>: Now const.
392         * dwarf2read.c (compute_delayed_physnames): Constify.
393         (dwarf2_add_member_fn): Likewise.
394         * c-typeprint.c (c_type_print_base): Constify.  Use cleanups.
395
396 2011-05-18  Pedro Alves  <pedro@codesourcery.com>
397
398         * infrun.c (resume): Mention which is the current thread, and its
399         current PC in debug output.
400         (prepare_to_proceed): Mention the thread switching in debug
401         output.
402
403 2011-05-18  Tom Tromey  <tromey@redhat.com>
404
405         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
406         path check.  Use xmalloc and cleanups.
407         (try_thread_db_load_from_dir): Use xmalloc and cleanups.
408
409 2011-05-17  Tom Tromey  <tromey@redhat.com>
410
411         * cp-valprint.c (cp_print_value_fields): Catch errors from
412         value_static_field.
413
414 2011-05-17  Tom Tromey  <tromey@redhat.com>
415
416         * dwarf2read.c (dwarf2_get_die_type): Call
417         get_die_type_at_offset.
418         * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
419         get_base_type function.
420
421 2011-05-17  Tomas Martinec  <fyzmat@gmail.com>
422
423         * infrun.c (handle_inferior_event) <handling deferred step>: Clear
424         trap_expected.
425
426 2011-05-16  Doug Evans  <dje@google.com>
427
428         * python/py-auto-load.c (source_section_scripts): Mention objfile
429         name in warning.
430
431 2011-05-15  Doug Evans  <dje@google.com>
432
433         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
434         (try_thread_db_load_from_pdir): Call it.  If unable to find
435         libthread_db in directory of libpthread, see if we're looking at
436         the separate-debug-info copy.
437
438         * python/py-autoload.c (print_script): Print "Missing" instead of
439         "No" for missing scripts.
440         (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
441
442 2011-05-13  Doug Evans  <dje@google.com>
443
444         * ui-file.c (stdio_file_write_async_safe): Add comment.
445
446 2011-05-14  Hui Zhu  <teawater@gmail.com>
447
448         * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
449
450 2011-05-13  Doug Evans  <dje@google.com>
451
452         Support $pdir and $sdir in libthread-db-search-path.
453         * NEWS: Mention $sdir,$pdir.
454         * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
455         * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
456         (try_thread_db_load_from_sdir): New function.
457         (try_thread_db_load_from_dir): New function.
458         (thread_db_load_search): Handle $pdir, $sdir.  Remove trying of
459         system directories if search of libthread-db-search-path fails,
460         that is now done via $sdir.
461         (has_libpthread): New function.
462         (thread_db_load): Remove search for libthread_db in directory of
463         libpthread, that is now done via $pdir.
464
465         * NEWS: Mention "info auto-load-scripts".
466         * python/py-auto-load.c (struct auto_load_pspace_info): New member
467         script_not_found_warning_printed.
468         (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
469         all callers updated.  Initialize script_not_found_warning_printed.
470         (get_auto_load_pspace_data_for_loading): New function.
471         (maybe_add_script): New function.
472         (source_section_scripts): Simplify.  Only print one warning regardless
473         of the number of auto-load scripts not found.
474         (clear_section_scripts): Clear script_not_found_warning_printed.
475         (auto_load_objfile_script): Record script in hash table.
476         (count_matching_scripts): New function.
477         (maybe_print_script): Renamed from maybe_print_section_script, all
478         callers updated.  Rewrite to use ui_out_*.
479         (info_auto_load_scripts): Renamed from
480         maintenance_print_section_scripts, all callers updated.
481         (gdbpy_initialize_auto_load): "maintenance print section-scripts"
482         renamed as "info auto-load-scripts".
483
484 2011-05-13  Tom Tromey  <tromey@redhat.com>
485
486         * dwarf2expr.c (read_uleb128): Cast intermediate result.
487         (read_sleb128): Likewise.
488
489 2011-05-13  Tom Tromey  <tromey@redhat.com>
490
491         * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
492         offset display.
493
494 2011-05-13  Doug Evans  <dje@google.com>
495
496         * linux-nat.c (debug_linux_nat_async): Delete.
497         Replace all references to use debug_linux_nat instead.
498         (show_debug_linux_nat_async): Delete.
499         (sigchld_handler): Call ui_file_write_async_safe instead of
500         fprintf_unfiltered.
501         (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
502         * ui-file.c (struct ui_file): New member to_write_async_safe.
503         (null_file_write_async_safe): New function.
504         (ui_file_write_async_safe): New function.
505         (set_ui_file_write_async_safe): New function.
506         (ui_file_new): Initialize to_write_async_safe.
507         (stdio_file_write_async_safe): New function.
508         (struct stdio_file): New member fd.
509         (stdio_file_new): Initialize to_write_async_safe, fd.
510         (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
511         fileno.
512         * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
513         (set_ui_file_write_async_safe): Declare.
514         (ui_file_write_async_safe): Declare.
515
516 2011-05-13  Tom Tromey  <tromey@redhat.com>
517
518         * utils.c (do_value_free): New function.
519         (make_cleanup_value_free): Likewise.
520         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
521         freeing correctly.
522         (dwarf2_loc_desc_needs_frame): Call
523         make_cleanup_value_free_to_mark.
524         * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
525         * dwarf2expr.c (free_dwarf_expr_context): Don't call
526         value_free_to_mark.
527         (new_dwarf_expr_context): Don't call value_mark.
528         * dwarf2-frame.c (execute_stack_op): Call
529         make_cleanup_value_free_to_mark.
530         * defs.h (make_cleanup_value_free): Declare.
531
532 2011-05-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
533
534         * mi/mi-main.c (mi_cmd_execute): Use cleanup from
535         prepare_execute_command.
536         * top.c (prepare_execute_command): Return cleanup.
537         (execute_command): Use cleanup from prepare_execute_command.
538         * top.h (prepare_execute_command): Change prototype to return
539         cleanup.
540         * defs.h (struct value): Add opaque declaration.
541         (make_cleanup_value_free_to_mark): Add prototype.
542         * utils.c (do_value_free_to_mark): New function.
543         (make_cleanup_value_free_to_mark): Likewise.
544
545 2011-05-12  Tom Tromey  <tromey@redhat.com>
546
547         * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
548         cast left-hand-side to unsigned.
549
550 2011-05-12  Tom Tromey  <tromey@redhat.com>
551
552         PR gdb/12617:
553         * value.h (value_from_contents): Declare.
554         * value.c (value_from_contents): New function.
555         * dwarf2read.c (dwarf_stack_op_name): Add new values.
556         (dwarf2_get_die_type): New function.
557         * dwarf2loc.c (dwarf_expr_get_base_type): New function.
558         (allocate_piece_closure): Acquire reference to values.
559         (read_pieced_value): Update for value-based expressions.
560         (write_pieced_value): Likewise.
561         (free_pieced_value_closure): Call value_free as needed.
562         (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
563         Update for value-based expressions.
564         * dwarf2loc.h (dwarf2_get_die_type): Declare.
565         * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
566         <get_base_type>: New field.
567         (struct dwarf_expr_piece) <v.value>: Change type.
568         <v.regno>: New field.
569         (struct dwarf_expr_context) <mark>: New field.
570         (dwarf_expr_piece, dwarf_expr_fetch): Update.
571         (dwarf_expr_pop, dwarf_expr_push): Remove.
572         (dwarf_expr_push_address): Declare.
573         * dwarf2expr.c (dwarf_arch_cookie): New global.
574         (struct dwarf_gdbarch_types): New.
575         (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
576         functions.
577         (dwarf_expr_push): Change type of 'value' argument.  Update.  Now
578         static.
579         (dwarf_expr_push_address): New function.
580         (dwarf_expr_pop): Now static.
581         (dwarf_expr_fetch): Change return type.
582         (dwarf_require_integral): New function.
583         (dwarf_expr_fetch): Simplify.
584         (add_piece): Update.
585         (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
586         functions.
587         (execute_stack_op) <sign_ext>: Remove.
588         Use values for DWARF stack.
589         <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
590         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
591         New cases.
592         (_initialize_dwarf2expr): New function.
593         (add_piece): Update.
594         (new_dwarf_expr_context): Set new field.
595         (free_dwarf_expr_context): Call value_free_to_mark.
596         * dwarf2-frame.c (no_base_type): New function.
597         (execute_stack_op): Set get_base_type field.  Update.
598
599 2011-05-12  Tom Tromey  <tromey@redhat.com>
600
601         * dwarf2read.c (read_common_block): Fix formatting.
602
603 2011-05-12  Kwok Cheung Yeung  <kcy@codesourcery.com>
604
605         * breakpoint.c (disable_breakpoint): Disable all locations
606         associated with a tracepoint on target if a trace experiment is
607         running.
608         (disable_command): Disable a specific tracepoint location on target if
609         a trace experiment is running.
610         (do_enable_breakpoint): Enable all locations associated with a
611         tracepoint on target if a trace experiment is running.
612         (enable_command) Enable a specific tracepoint location on target if a
613         trace experiment is running.
614         * target.c (update_current_target): Add INHERIT and de_fault clauses for
615         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
616         to_disable_tracepoint.
617         * target.h: Add declaration of struct bp_location.
618         (struct target_ops): Add new functions
619         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
620         to_disable_tracepoint to target operations.
621         (target_supports_enable_disable_tracepoint): New macro.
622         (target_enable_tracepoint): New macro.
623         (target_disable_tracepoint): New macro.
624         * remote.c (struct remote_state): Add new field.
625         (remote_enable_disable_tracepoint_feature): New.
626         (remote_protocol_features): Add new entry.
627         (remote_supports_enable_disable_tracepoint): New.
628         (remote_enable_tracepoint): New.
629         (remote_disable_tracepoint): New.
630         (init_remote_ops): Add remote_enable_tracepoint,
631         remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
632         to remote operations.
633         * tracepoint.c (start_tracing): Allow tracing to start without any
634         tracepoints enabled with just a warning if they can be re-enabled
635         later.
636         * NEWS: Add news item for the new behaviour of the enable and disable
637         GDB commands when applied to tracepoints.
638         Add news items for the new remote packets QTEnable and QTDisable.
639
640 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
641
642         * config.in: Regenerate.
643         * configure: Regenerate.
644         * configure.ac <--with-system-readline> (for readline_echoing_p):
645         Remove the test.
646         * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
647         (tui_old_rl_echoing_p): ... here.
648         (tui_setup_io): Rename extern declaration readline_echoing_p to
649         _rl_echoing_p.  Adjust assignments for the both renames.
650
651 2011-05-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
652
653         * symtab.c (lookup_symtab): Run cleanup before returning.
654
655 2011-05-11  Tom Tromey  <tromey@redhat.com>
656
657         * dwarf2read.c (handle_data_member_location): New function.
658         (dwarf2_add_field): Use it.
659         (read_common_block): Likewise.
660
661 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
662
663         Make addrs->SECTINDEX always defined.
664         * symfile.c (relative_addr_info_to_section_offsets): Check for
665         SECTINDEX -1, not for zero ADDR.
666         (addrs_section_compar): Remove checking for invalid SECTINDEX.
667         (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
668         * symfile.h (struct section_addr_info) <sectindex>: Update the comment
669         on its validity.
670
671 2011-05-10  Doug Evans  <dje@google.com>
672
673         * linux-thread-db.c: Whitespace cleanup.
674         (try_thread_db_load_1): Fix comment.
675
676         * linux-thread-db.c (set_libthread_db_search_path): New function.
677         (_initialize_thread_db): Add setter for libthread-db-search-path.
678
679 2011-05-09  Doug Evans  <dje@google.com>
680
681         * NEWS: Mention --with-iconv-bin.
682         * configure.ac: New option --with-iconv-bin.
683         * configure: Regenerate.
684         * config.in: Regenerate.
685         * defs.h (relocate_gdb_directory): Declare.
686         * main.c (relocate_gdb_directory): Renamed from relocate_directory,
687         removed progname parameter, and exported.  All callers updated.
688         * charset.c (find_charset_names): Use --with-iconv-bin if specified.
689
690         * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
691         adding missing call to restore_child_signals_mask.
692
693 2011-05-09  Pedro Alves  <pedro@codesourcery.com>
694
695         * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
696         parameter.
697         * infrun.c (proceed, start_remote): Adjust.
698         (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
699         and adjust to not handle it.
700         * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
701         * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
702         * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
703         * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
704         * windows-nat.c (do_initial_windows_stuff): Adjust.
705         * infcmd.c (attach_command): Adjust.
706         (notice_new_inferior): Adjust.
707
708 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
709
710         * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
711         (ppu2spu_unwind_register): Mark pseudo registers unavailable.
712         * spu-tdep.c (op_selb): Use correct value.
713
714 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
715
716         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
717         "parent" parameter to symbol_file_add_from_bfd call.
718
719 2011-05-06  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
720             Thiago Jung Bauermann  <bauerman@br.ibm.com>
721
722         Implement support for PowerPC BookE masked watchpoints.
723         * NEWS: Mention masked watchpoint support.  Create "Changed commands"
724         section.
725         * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
726         method.  Initialize to NULL in all existing breakpoint_ops instances.
727         (struct breakpoint) <hw_wp_mask>: New field.
728         * breakpoint.c (is_masked_watchpoint): Add prototype.
729         (update_watchpoint): Don't set b->val for masked watchpoints.  Call
730         breakpoint's breakpoint_ops.works_in_software_mode if available.
731         (watchpoints_triggered): Handle the case of a hardware masked
732         watchpoint trigger.
733         (watchpoint_check): Likewise.
734         (works_in_software_mode_watchpoint): New function.
735         (insert_masked_watchpoint, remove_masked_watchpoint)
736         (resources_needed_masked_watchpoint)
737         (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
738         (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
739         (print_recreate_masked_watchpoint, is_masked_watchpoint): New
740         functions.
741         (masked_watchpoint_breakpoint_ops): New structure.
742         (watch_command_1): Check for the existence of the `mask' parameter.
743         Set b->ops according to the type of hardware watchpoint being created.
744         * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
745         (ppc_linux_remove_mask_watchpoint)
746         (ppc_linux_masked_watch_num_registers): New functions.
747         (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
748         to_remove_mask_watchpoint and to_masked_watch_num_registers.
749         * target.c (update_current_target): Mention to_insert_mask_watchpoint,
750         to_remove_mask_watchpoint, and to_masked_watch_num_registers.
751         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
752         (target_masked_watch_num_registers): New functions.
753         * target.h (struct target_ops) <to_insert_mask_watchpoint>,
754         <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
755         methods.
756         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
757         (target_masked_watch_num_registers): Add prototypes.
758
759 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
760
761         PR 12573
762         * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
763         (producer_is_gcc_ge_4_0): New function.
764         (process_full_comp_unit): Set also symtab->locations_valid.  Move the
765         symtab->language code.
766         (var_decode_location): Set cu->has_loclist.
767         * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
768         skip.  Intialize force_skip from locations_valid.  Move the prologue
769         skipping code into two passes.
770         * symtab.h (struct symtab): Make the primary field a bitfield.  New
771         field locations_valid.
772
773 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
774
775         * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
776         (classify_inner_name): Call cp_lookup_nested_type with
777         yylval.tsym.type.
778         * cp-namespace.c (cp_lookup_nested_type): New variable
779         saved_parent_type.  Call CHECK_TYPEDEF for parent_type.  Call
780         type_name_no_tag_or_error with saved_parent_type.
781         * dwarf2read.c (load_partial_dies): Read in any children of
782         DW_TAG_typedef with complaint in such case.
783         * gdbtypes.c (type_name_no_tag_or_error): New function.
784         * gdbtypes.h (type_name_no_tag_or_error): New prototype.
785         * valops.c (destructor_name_p): New comment for parameter type.  Remove
786         type const.  Make dname and cp const.  Call type_name_no_tag_or_error.
787         * value.h (destructor_name_p): Remove type const.
788
789 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
790
791         * symtab.c (compare_symbol_name): New function.
792         (completion_list_add_name, expand_partial_symbol_name): Call it,
793         remove the variable ncmp.
794         (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
795         gdb_assert it.
796
797 2011-05-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
798
799         Demote to sw watchpoint only in update_watchpoint.
800         * breakpoint.c (update_watchpoint): Change between software and
801         hardware watchpoint for all kinds of watchpoints, not just
802         read/write ones.  Determine b->exact value here instead of
803         in watch_command_1.  Error out if there are not enough resources
804         for a read or access hardware watchpoint.
805         (watch_command_1): Remove logic of checking whether there are
806         enough resources available, since update_watchpoint will do that
807         work now.  Don't set b->exact here.  Catch exceptions thrown by
808         update_watchpoint and delete the watchpoint.
809         (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
810         Use target_exact_watchpoints instead.
811         (delete_breakpoint): Notify observers only if deleted watchpoint
812         has a breakpoint number assigned to it.
813
814 2011-05-05  Janis Johnson  <janisjo@codesourcery.com>
815
816         * MAINTAINERS: Add myself as a write-after-approval maintainer.
817
818 2011-05-05  Jerome Guitton  <guitton@adacore.com>
819
820         * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
821         New functions.
822         (i386_stack_tramp_frame_unwind): New static global.
823         (i386_match_pattern): New function, extracted from i386_match_insn.
824         (i386_match_insn): Use i386_match_pattern.
825         (i386_match_insn_block): New function.
826         (i386_tramp_chain_in_reg_insns)
827         (i386_tramp_chain_on_stack_insns): New static variables.
828         (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
829         of unwinders.
830
831 2011-05-04  Joseph Myers  <joseph@codesourcery.com>
832
833         * configure.host (xscale*): Don't handle target.
834         * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
835         handle targets.
836
837 2011-05-04  Yao Qi  <yao@codesourcery.com>
838
839         * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
840
841 2011-05-03  Joel Brobecker <brobecker@adacore.com>
842
843         Revert:
844         | 2011-03-07  Michael Snyder  <msnyder@vmware.com>
845         | * elfread.c (elf_symtab_read): Stop memory leak.
846
847 2011-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
848
849         * nto-tdep.c (nto_target): Replace deprecated call to
850         cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
851
852 2011-05-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
853
854         Fix false GCC warning.
855         * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
856
857 2011-05-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
858
859         * breakpoint.c (update_watchpoint): Move code to change
860         the enable state of breakpoint from here ...
861         (do_enable_breakpoint): ... to here.
862
863 2011-04-26  Andrew Gontarek  <andrewg@cray.com>
864
865         * valprint.c (val_print_array_elements): Fixed poor performance
866         of printing very large arrays with repeat_count_threshold set
867         to unlimited.  New comment.
868
869 2011-04-29  Tom Tromey  <tromey@redhat.com>
870
871         * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
872         (mi_parse): Likewise.
873         * breakpoint.c (break_range_command): Use sizeof char*, not
874         char**.
875         (create_breakpoint): Likewise.
876         (parse_breakpoint_sals): Likewise.
877
878 2011-04-29  Pedro Alves  <pedro@codesourcery.com>
879
880         * linux-nat.c (linux_child_remove_fork_catchpoint)
881         (linux_child_remove_vfork_catchpoint)
882         (linux_child_remove_exec_catchpoint): New functions.
883         (linux_target_install_ops): Install them.
884
885 2011-04-29  Phil Muldoon  <pmuldoon@redhat.com>
886
887         PR mi/12531
888
889         * varobj.c (install_default_visualizer): Do not install a
890         visualizer if the varobj is CPLUS_FAKE_CHILD.
891         (construct_visualizer): Likewise.
892
893 2011-04-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
894
895         * symtab.c (expand_partial_symbol_name): New variable NCMP.  Support
896         case insensitive comparison.
897
898 2011-04-28  Ulrich Weigand  <ulrich.weigand@linaro.org>
899
900         * infrun.c (proceed): Revert previous change.
901         (resume): Instead, handle the case of signal delivery while stepping
902         off a breakpoint location here, and only if software single-stepping
903         is used.  Handle nested signals.
904
905 2011-04-28  Yao Qi  <yao@codesourcery.com>
906
907         * arm-tdep.c (copy_unmodified): Rename to ...
908         (arm_copy_unmodified): .. this.  New.
909         (copy_preload): Move common part to ...
910         (install_preload): .. this.  New.
911         (arm_copy_preload): New.
912         (copy_preload_reg): Move common part to ...
913         (install_preload_reg): ... this.  New.
914         (arm_copy_preload_reg): New.
915         (copy_b_bl_blx): Move common part to ...
916         (install_b_bl_blx): .. this.  New.
917         (arm_copy_b_bl_blx): New.
918         (copy_bx_blx_reg): Move common part to ...
919         (install_bx_blx_reg): ... this. New.
920         (arm_copy_bx_blx_reg): New.
921         (copy_alu_reg): Move common part to ...
922         (install_alu_reg): ... this.  New.
923         (arm_copy_alu_reg): New.
924         (copy_alu_shifted_reg): Move common part to ...
925         (install_alu_shifted_reg): ... this.  New.
926         (copy_ldr_str_ldrb_strb): Move common part to ...
927         (install_ldr_str_ldrb_strb): ... this.  New.
928         (arm_copy_ldr_str_ldrb_strb): New.
929         (copy_copro_load_store): Move some common part to ...
930         (install_copy_copro_load_store): ... this.  New.
931         (arm_copy_copro_load_store): New.
932         (copy_svc): Delete.
933         (arm_copy_svc): Renamed from copy_svc.
934         (copy_undef): Delete.
935         (arm_copy_undef): Renamed from copy_undef.
936         (decode_ext_reg_ld_st): Delete.
937         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
938         (decode_svc_copro): Delete.
939         (arm_decode_svc_copro): Renamed from decode_svc_copro.
940         (copy_copro_load_store, copy_alu_imm): update callers.
941         (copy_extra_ld_st, copy_block_xfer): Likewise.
942         (decode_misc_memhint_neon, decode_unconditional): Likewise.
943         (decode_miscellaneous, decode_dp_misc): Likewise.
944         (decode_ld_st_word_ubyte, decode_media): Likewise.
945         (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
946         (decode_svc_copro, decode_misc_memhint_neon): Likewise.
947         (decode_unconditional, decode_miscellaneous): Likewise.
948         (decode_media, decode_b_bl_ldmstm): Likewise.
949         (arm_process_displaced_insn): Likewise..
950         (decode_misc_memhint_neon): Delete.
951         (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
952         (decode_miscellaneous): Delete.
953         (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
954         (decode_dp_misc): Delete.
955         (arm_decode_dp_misc): Renamed from decode_dp_misc.
956         (decode_ld_st_word_ubyte): Delete.
957         (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
958         (decode_media): Delete.
959         (arm_decode_media): Renamed from decode_media.
960         (decode_b_bl_ldmstm): Delete.
961         (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
962         (decode_ext_reg_ld_st): Delete.
963         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
964         (decode_unconditional): Delete.
965         (arm_decode_unconditional): Renamed from decode_unconditional.
966
967 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
968
969         Case insensitive lookups implementation.
970         * dwarf2read.c: Include ctype.h.
971         (struct mapped_index): New field version.
972         (mapped_index_string_hash): New parameter index_version.  New comment
973         for it.  Call tolower appropriately.
974         (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
975         Choose the right index version for mapped_index_string_hash.
976         (dwarf2_read_index): Support also the index version 5.  Initialize the
977         new struct mapped_index field version.
978         (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
979         (find_slot): Explain the version needs.  Pass INT_MAX for the new
980         parameter.
981         (write_psymtabs_to_index): Produce version 5.
982         * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
983         use it.  New comment for SYMBOL_MATCHES_SEARCH_NAME.
984         * psymtab.c (lookup_partial_symbol): Find the
985         SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
986         entries.
987         * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
988         NAME lowercasing.
989         (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
990         (completion_list_add_name): New variable ncmp, initialize it, use it.
991         * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
992         * utils.c (strcmp_iw): Support case_sensitive_off.
993         (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
994         New function comment part.  New variables saved_string1,
995         saved_string2 and case_pass.  Add a proper second pass.
996
997 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
998
999         Replace re_comp/re_exec by regcomp/regexec.
1000         * symtab.c (struct search_symbols_data): New fields preg, preg_p.
1001         (search_symbols_name_matches): Use them, use regexec.
1002         (search_symbols): New variable retval_chain, adjust the use of
1003         old_chain against it.  Replace re_comp by regcomp.  Use the new struct
1004         search_symbols_data fields, use regexec instead of re_exec.
1005
1006 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1007
1008         Format the code for the next patch.
1009         * dwarf2read.c (struct mapped_index): Include delimiting newlines.
1010         * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
1011         New variables c1 and c2.
1012
1013 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
1014
1015         * infrun.c (proceed): Do not single-step into signal delivery
1016         when stepping off a breakpoint location.
1017         (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
1018         (insert_step_resume_breakpoint_at_caller): Likewise.
1019         (insert_step_resume_breakpoint_at_sal): Likewise.
1020         (insert_longjmp_resume_breakpoint): Likewise.
1021
1022 2011-04-27  Yao Qi  <yao@codesourcery.com>
1023
1024         * common/linux-ptrace.h: Remove include <sys/wait.h>.
1025
1026 2011-04-27  Joel Brobecker  <brobecker@adacore.com>
1027
1028         * procfs.c (procfs_pass_signals): Fix advance declaration.
1029
1030 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
1031
1032         * target.h (struct target_ops): Remove to_notice_signals;
1033         add to_pass_signals.
1034         (target_notice_signals): Remove.
1035         (target_pass_signals): Add prototype.
1036         * target.c (update_current_target): Remove to_notice_signals;
1037         mention to_pass_signals.
1038         (target_pass_signals): New function.
1039         (debug_to_notice_signals): Remove.
1040         (setup_target_debug): Do not install debug_to_notice_signals.
1041
1042         * infrun.c (signal_pass): New global.
1043         (resume): Call target_pass_signals.
1044         (handle_inferior_event): Report all signals while stepping over
1045         non-steppable watchpoint.  Reset trap_expected to ensure breakpoints
1046         are re-inserted when stepping over a signal handler.
1047         (signal_cache_update): New function.
1048         (signal_stop_update): Call it.
1049         (signal_print_update): Likewise.
1050         (signal_pass_update): Likewise.
1051         (handle_command): Call signal_cache_update and target_pass_signals
1052         instead of target_notice_signals.
1053         (_initialize_infrun): Initialize signal_pass.
1054
1055         * linux-nat.c (pass_mask): New global.
1056         (linux_nat_pass_signals): New function.
1057         (linux_nat_create_inferior): Report all signals initially.
1058         (linux_nat_attach): Likewise.
1059         (linux_nat_resume): Use pass_mask to decide whether to directly
1060         handle an inferior signal.
1061         (linux_nat_wait_1): Likewise.
1062         (linux_nat_add_target): Install to_pass_signals callback.
1063
1064         * nto-procfs.c (notice_signals): Remove.
1065         (procfs_resume): Do not call notice_signals.
1066         (procfs_notice_signals): Remove.
1067         (procfs_pass_signals): New function.
1068         (init_procfs_ops): Install to_pass_signals callback instead of
1069         to_notice_signals callback.
1070         (_initialize_procfs): Report all signals initially.
1071
1072         * procfs.c (procfs_notice_signals): Remove.
1073         (procfs_pass_signals): New function.
1074         (procfs_target): Install to_pass_signals callback instead of
1075         to_notice_signals callback.
1076         (register_gdb_signals): Remove.
1077         (procfs_debug_inferior): Report all signals initially.
1078         (procfs_init_inferior): Remove redundant register_gdb_signals call.
1079
1080         * remote.c (remote_pass_signals): Add numsigs and pass_signals
1081         parameters; use them instead of calling signal_..._state routines.
1082         (remote_notice_signals): Remove.
1083         (remote_start_remote): Report all signals initially.
1084         (remote_resume): Do not call remote_pass_signals.
1085         (_initialize_remote): Install to_pass_signals callback instead of
1086         to_notice_signals callback.
1087
1088 2011-04-27  Pedro Alves  <pedro@codesourcery.com>
1089
1090         * breakpoint.c (user_settable_breakpoint): Delete.
1091         (user_breakpoint_p): Remove check on user_settable_breakpoint.
1092         (delete_command): Check user_breakpoint_p instead of looking at
1093         the breakpoint's type.
1094         (disable_command): Ditto.
1095         (enable_command): Ditto.
1096         (delete_trace_command): Use user_breakpoint_p instead of looking
1097         at the breakpoint number directly.  When checking if there are
1098         user visible tracepoints, in order to know whether to ask the user
1099         for confirmation, check whether the breakpoint is actually a
1100         tracepoint.
1101
1102 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
1103
1104         * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
1105         compilation.
1106
1107 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
1108
1109         MI breakpoint notifications.
1110
1111         * annotate.c (breakpoint_changed): Adjust parameter type.
1112         * breakpoint.c (set_breakpoint_condition): Adjust to change
1113         in breakpoint_modified type.
1114         (breakpoint_set_commands): Likewise.
1115         (do_map_commands_command): Likewise.
1116         (bpstat_check_breakpoint_conditions): Notify that breakpoint has
1117         changed after bumping hit count.
1118         (bpstat_stop_status): Likewise.
1119         (print_one_breakpoint_location): Don't wrap in tuple here.
1120         (print_one_breakpoint): Always print individual locations.
1121         For locations, use unnamed tuple.
1122         (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
1123         has changed.
1124         (create_catchpoint, create_syscall_event_catchpoint): Call
1125         breakpoint_created obsever.
1126         (mention): Don't call breakpoint_created observer.
1127         (create_breakpoint_sal): Call breakpoint_created observer.
1128         (create_breakpoint, watch_command_1): Likewise.
1129         (create_ada_exception_breakpoint): Likewise.
1130         (delete_breakpoint): Call breakpoint_deleted breakpoint.
1131         (locations_are_equal): New.
1132         (update_breakpoint_locations): If locations were changed, notify.
1133         (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
1134         Call breakpoint_modified observer.
1135
1136         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1137         (mi_cmd_break_insert): Don't set observers for modify and delete.
1138         * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
1139         (mi_breakpoint_created, mi_breakpoint_deleted)
1140         (mi_breakpoint_modified): New.
1141         (mi_interpreter_init): Hook the above.
1142         * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
1143         while -break-* commands are executing.
1144         * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
1145         * mi/mi-out.c (struct ui_out_data): New field original_buffer.
1146         (mi_redirect): New.
1147         (mi_ui_out_impl): Hook in mi_redirect.
1148         (mi_field_skip): True to the name, skip the field, don't output
1149         a field with an empty value.
1150
1151         * python/py-breakpoint.c (gdbpy_breakpoint_created)
1152         (gdbpy_breakpoint_deleted): Adjust.
1153         * tui/tui-hooks.c (tui_event_create_breakpoint)
1154         (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
1155
1156 2011-04-26  Aleksandar Ristovski  <aristovski@qnx.com>
1157
1158         * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
1159         (procfs_remove_hw_watchpoint): Likewise.
1160
1161 2011-04-26  Michael Walle  <michael@walle.cc>
1162
1163         * remote.c (remote_start_remote): Ack packet after sending the
1164         interrupt sequence.
1165
1166 2011-04-26  Yao Qi  <yao@codesourcery.com>
1167
1168         * linux-nat.c: Move common macros to ...
1169         Include linux-ptrace.h.
1170         * common/linux-ptrace.h: ... here.  New.
1171
1172 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
1173
1174         * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
1175         !objfile_has_partial_symbols.  New comment.
1176         * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
1177         SYM_READ_PSYMBOLS is not present. Extend the comment.
1178         * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
1179
1180 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
1181
1182         * defs.h (ENUM_BITFIELD): Remove.
1183
1184 2011-04-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1185             Eli Zaretskii  <eliz@gnu.org>
1186
1187         * NEWS: Document the new gdbserver --once option.
1188
1189 2011-04-21  Jie Zhang  <jzhang918@gmail.com>
1190
1191         * MAINTAINERS: Update my email address.
1192
1193 2011-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
1194
1195         * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
1196         (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
1197         function call if __STDC_ISO_10646__ macro is defined.
1198         (intermediate_encoding): New prototype.
1199         * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
1200         to generate compile time error for unsupported gdb_wchar_t size.
1201         (ENDIAN_SUFFIX): New macro.
1202         (intermediate_encoding): New function.
1203
1204 2011-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
1205
1206         * ada-lang.c (struct add_partial_datum): Update the comment for
1207         expand_partial_symbol_name.
1208         (ada_add_partial_symbol_completions): Rename to ...
1209         (ada_expand_partial_symbol_name): ... here, change return type, update
1210         function comment, call symbol_completion_match instead of
1211         symbol_completion_add.
1212         (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
1213         and ada_expand_partial_symbol_name.
1214         * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
1215         FILE_MATCHER.
1216         (dw2_map_symbol_names): Remove.
1217         (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
1218         * psymtab.c (map_symbol_names_psymtab): Remove.
1219         (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
1220         Support KIND == ALL_DOMAIN.  Exchange the NAME_MATCHER and KIND check
1221         order.
1222         (psym_functions): Unlist map_symbol_names_psymtab.
1223         (map_partial_symbol_names): Rename to ...
1224         (expand_partial_symbol_names): ... here, change the FUN type, call
1225         expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1226         * psymtab.h (map_partial_symbol_names): Rename to ...
1227         (expand_partial_symbol_names): ... here, change the FUN type.
1228         * symfile.h (struct quick_symbol_functions): Update the description of
1229         expand_symtabs_matching.  Remove map_symbol_names.
1230         * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1231         (struct add_name_data): Update the comment for
1232         expand_partial_symbol_name.
1233         (add_partial_symbol_name): Rename to ...
1234         (expand_partial_symbol_name): ... here.  Replace
1235         completion_list_add_name call by strncmp.
1236         (default_make_symbol_completion_list_break_on): Use now
1237         expand_partial_symbol_names and expand_partial_symbol_name.
1238         * symtab.h (enum search_domain): New element ALL_DOMAIN.
1239
1240 2011-04-20  Tom Tromey  <tromey@redhat.com>
1241
1242         * dwarf2read.c (save_gdb_index_command): Replace format
1243         documentation with a pointer to the manual.
1244
1245 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
1246
1247         * regcache.c: Include remote.h.
1248         (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1249         (regcache_dump): Handle regcache_dump_remote.
1250         (maintenance_print_remote_registers): New function.
1251         (_initialize_regcache): Install "maint print remote-registers"
1252         command.
1253         * remote.c (map_regcache_remote_table): New function, factored out
1254         from ...
1255         (init_remote_state): ... here.
1256         (remote_register_number_and_offset): New.
1257         * remote.h (remote_register_number_and_offset): Declare.
1258
1259 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
1260
1261         * regcache.c (get_thread_arch_regcache): If creating a regcache for
1262         null_ptid, assume and allow a NULL address space, instead of
1263         asking the target for the ptid's address space.
1264         * infrun.c (ptid_is_pid): Remove assertion.
1265
1266 2011-04-19  Tom Tromey  <tromey@redhat.com>
1267
1268         * windows-tdep.c (windows_xfer_shared_library):
1269         * windows-nat.c (get_module_name, windows_make_so):
1270         * v850-tdep.c (v850_handle_pushm):
1271         * utils.c (null_cleanup, gdb_realpath):
1272         * ui-out.c (get_next_header):
1273         * tracepoint.c (clear_traceframe_info):
1274         * symtab.c (lookup_symtab):
1275         * serial.h (struct serial_ops):
1276         * mipsread.c (read_alphacoff_dynamic_symtab):
1277         * infcmd.c (print_return_value):
1278         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
1279         * f-exp.y (parse_number):
1280         * exceptions.c (catch_exceptions):
1281         * dummy-frame.c (dummy_frame_this_id):
1282         * defs.h (struct cleanup):
1283         * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
1284         * arm-tdep.c (arm_push_dummy_call):
1285         * amd64-tdep.h (amd64_collect_xsave):
1286         * amd64-tdep.c (amd64_collect_xsave):
1287         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
1288         * README (typing): Remove duplicate words.
1289         * cli/cli-decode.c (lookup_cmd_composition): Add comma.
1290         * infrun.c (siginfo_value_read): Fix typo.
1291         * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
1292         * top.c (source_line_number): Add comma.
1293
1294 2011-04-19  Marc Khouzam  <marc.khouzam@ericsson.com>
1295
1296         * thread.c (any_live_thread_of_process): Prioritize threads
1297         that are not executing.
1298         * gdbthread.h (any_live_thread_of_process): Update comment
1299         as per above change.
1300
1301 2011-04-19  Andreas Schwab  <schwab@linux-m68k.org>
1302
1303         * xcoffread.c (process_xcoff_symbol): Remove useless cast.
1304         (scan_xcoff_symtab): Likewise.
1305
1306 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1307
1308         * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
1309         inside if clause.
1310
1311 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1312             Pedro Alves  <pedro@codesourcery.com>
1313
1314         * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
1315         variables to simplify code and avoid == operator at end of
1316         line as this is against GNU coding standards.
1317
1318 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1319
1320         * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
1321         lm_name to name_lm to avoid conflict with lm_name function.
1322
1323 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1324
1325         ARI fixes: Use only lowercase function name for static functions.
1326         * nto-tdep.c (LM_ADDR): Rename to...
1327         (lm_addr): New function name.
1328         (nto_relocate_section_addresses): Adapt to change above.
1329         * solib-sunos.c (LM_ADDR): Rename to...
1330         (lm_addr): New function name.
1331         (LM_NEXT): Rename to...
1332         (lm_next): New function name.
1333         (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
1334         function name changes above.
1335         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
1336         (lm_addr_from_link_map): New function name.
1337         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1338         (has_lm_dynamic_from_link_map): New function name.
1339         (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1340         (lm_dynamic_from_link_map): New function name.
1341         (LM_ADDR_CHECK): Rename to...
1342         (lm_addr_check): New function name.
1343         (LM_NEXT): Rename to...
1344         (lm_next): New function name.
1345         (LM_PREV): Rename to...
1346         (lm_prev): New function name.
1347         (LM_NAME): Rename to...
1348         (lm_name): New function name.
1349         (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1350         (ignore_first_link_map_entry): New function name.
1351         (svr4_keep_data_in_core): Adapt to function name changes above.
1352         (svr4_current_sos): Likewise.
1353         (enable_break): Likewise.
1354         (svr4_relocate_section_addresses): Likewise.
1355
1356 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1357
1358         ARI cleanup.
1359         * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1360         sprintf. Simplify code and avoid loosing memory.
1361         (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1362         (call0_frame_cache): Remove && operator from end of line.
1363
1364 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1365
1366         Fix libraries displacement if they change whether they were prelinked.
1367         * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
1368         does not match.  Comment why.
1369
1370 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1371
1372         * corelow.c: Include wrapper.h.
1373         (core_open): Call now gdb_target_find_new_threads.
1374         * wrapper.c: Include target.h.
1375         (gdb_target_find_new_threads): New.
1376         * wrapper.h (gdb_target_find_new_threads): New declaration.
1377
1378 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1379
1380         * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
1381         even if !TARGET_HAS_EXECUTION.
1382
1383 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1384
1385         Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
1386         * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
1387         bfd_get_synthetic_symtab.
1388         * jit.c (jit_register_code): Pass NULL to the new parameter parent.
1389         * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
1390         parameter parent, remove the call to add_separate_debug_objfile.
1391         * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
1392         * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1393         * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
1394         parent, new comment for it, call add_separate_debug_objfile for it.
1395         (symbol_file_add_separate): Pass objfile as the parameter parent,
1396         remove the call to add_separate_debug_objfile.
1397         (symbol_file_add_from_bfd): New parameter parent, pass it.
1398         (symbol_file_add): Pass NULL to the new parameter parent.
1399         * symfile.h (symbol_file_add_from_bfd): New parameter parent.
1400
1401 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1402
1403         * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
1404         BSF_SYNTHETIC.
1405
1406 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1407
1408         Fix Python access to inlined frames.
1409         * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
1410         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1411
1412 2011-04-15  Tom Tromey  <tromey@redhat.com>
1413
1414         * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
1415
1416 2011-04-15  Gary Benson  <gbenson@redhat.com>
1417
1418         * MAINTAINERS: Add myself to write-after-approval section.
1419
1420 2011-04-14  Mike Frysinger  <vapier@gentoo.org>
1421
1422         * remote-sim.c (sim_command_completer): New function.
1423         (_initialize_remote_sim): Set completer to sim_command_completer.
1424
1425 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1426
1427         * breakpoint.c (print_exception_catchpoint): Rename to ...
1428         (print_it_exception_catchpoint): ... this.
1429         (gnu_v3_exception_catchpoint_ops): Update with new name
1430         for print_it_exception_catchpoint.
1431
1432 2011-04-13  Edjunior Machado  <emachado@linux.vnet.ibm.com>
1433
1434         * MAINTAINERS: Add myself for write after approval privileges.
1435
1436 2011-04-13  Marek Polacek  <mpolacek@redhat.com>
1437
1438         * MAINTAINERS: Add myself as a write-after-approval maintainer.
1439
1440 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1441
1442         * breakpoint.c (watch_command_1): Remove colon from exp_string.
1443
1444 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1445
1446         * breakpoint.c (save_breakpoints): Verify whether
1447         breakpoint_ops.print_recreate is defined before calling it.
1448
1449 2011-04-11  Gary Benson  <gbenson@redhat.com>
1450
1451         Fix failure with --enable-maintainer-mode.
1452         * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1453
1454 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1455
1456         Code cleanup.
1457         * symtab.c (search_symbols): Reorder the KIND description in the
1458         function comment.  Remove the unused 4th element of types, types2,
1459         types3 and types4.  New gdb_assert on KIND.
1460         (symtab_symbol_info): Remove the unused 4th element of classnames.
1461         New gdb_assert on KIND.
1462         * symtab.h (enum search_domain): New warning in the enum comment.
1463         Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1464         TYPES_DOMAIN.
1465
1466 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1467
1468         Fix crash of gdb save-index on a STABS file.
1469         * dwarf2read.c (write_psymtabs_to_index): Return also on no
1470         PSYMTABS_ADDRMAP.
1471
1472 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1473
1474         Fix DW_AT_accessibility compatibility with gcc-4.6+.
1475         * dwarf2read.c: Include ctype.h.
1476         (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1477         functions.
1478         (dwarf2_add_field): Fix new_field->accessibility by calling
1479         dwarf2_default_access_attribute.  Restructure setting accessibility
1480         vs. virtuality.
1481         (dwarf2_add_member_fn): New variable accessibility.  Fix fnp
1482         is_private and is_protected by calling
1483         dwarf2_default_access_attribute.
1484
1485 2011-04-08  Kevin Buettner  <kevinb@redhat.com>
1486
1487         * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1488         to the initialization.
1489
1490 2011-04-08  Steve Ellcey  <sje@cup.hp.com>
1491
1492         * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1493         initalization.
1494
1495 2011-04-07  Pierre Muller  <muller@ics.u-strasbg.fr>
1496
1497         Remove support for old Cygwin 1.5 versions.
1498         * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1499         function on old Cygwin version.
1500         * windows-nat.c: Remove cygwin version check and always define
1501         __USEWIDE for Cygwin compilation.
1502
1503 2011-04-07  Yao Qi  <yao@codesourcery.com>
1504
1505         * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1506         and TO.
1507         * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1508         (arm_copy_svc): Remove parameters INSN and TO.
1509         (decode_svc_copro): Update caller.
1510         * arm-tdep.h (struct displaced_step_closure): Remove parameters
1511         from function pointer `copy_svc_os'.
1512
1513 2011-04-07  Yao Qi  <yao@codesourcery.com>
1514
1515         * arm-tdep.c (cleanup_branch): Set a correct return address in
1516         LR for ARM and Thumb.
1517
1518 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1519
1520         Code cleanup.
1521         * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1522         * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1523         in the function comment, a new note on values compatibility.
1524         * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1525         * symtab.h (SYMBOL_HASH_NEXT): New.
1526
1527 2011-04-06  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1528
1529         * ppc-linux-nat.c (check_condition): Add len output parameter.
1530         Set it based on the memory region referenced in the condition
1531         expression.  Update all callers.
1532
1533 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1534
1535         Fix crash regression on systems featuring .gdb_index.
1536         * objfiles.c (free_objfile): Move the
1537         forget_cached_source_info_for_objfile call earlier.  Comment it.
1538         Extend the comment for objfile_free_data.
1539
1540 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1541
1542         Fix regression of displaying the debug format.
1543         * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1544         subfile.
1545
1546 2011-04-04  Tom Tromey  <tromey@redhat.com>
1547
1548         * cli/cli-interp.c (struct captured_execute_command_args):
1549         Remove.
1550         (do_captured_execute_command): Remove.
1551         (safe_execute_command): Use TRY_CATCH.
1552         * cli/cli-script.c (struct wrapped_read_command_file_args):
1553         Remove.
1554         (wrapped_read_command_file): Remove.
1555         (script_from_file): Use TRY_CATCH.
1556         * exceptions.c (catch_exception): Remove.
1557         * exceptions.h (catch_exception): Remove.
1558         (deprecated_throw_reason): Update comment.
1559         * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1560         argument to 'context'.
1561         (mi_execute_command): Use TRY_CATCH.
1562         * remote.c (struct start_remote_args): Remove.
1563         (remote_start_remote): Update; change arguments.
1564         (remote_open_1): Use TRY_CATCH.
1565
1566 2011-04-04  Tom Tromey  <tromey@redhat.com>
1567
1568         * tracepoint.c (scope_info): Update.
1569         * symtab.c (decode_line_spec): Update.
1570         * python/python.c (gdbpy_decode_line): Update.
1571         * linespec.h (decode_line_1): Update.
1572         * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1573         (decode_compound, find_method, symtab_from_filename)
1574         (decode_variable): Likewise.
1575         * cli/cli-cmds.c (edit_command): Update.
1576         (list_command): Update.
1577         * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1578         argument.
1579         (create_breakpoint): Update.
1580         (until_break_command): Update.
1581         (addr_string_to_sals): Update.
1582         (decode_line_spec_1): Update.
1583
1584 2011-04-04  Tom Tromey  <tromey@redhat.com>
1585
1586         * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1587         (do_captured_parse_breakpoint): Remove.
1588         (create_breakpoint): `e' is now volatile.  Remove `parse_args'.
1589         Use TRY_CATCH directly.
1590
1591 2011-04-04  Tom Tromey  <tromey@redhat.com>
1592
1593         * symtab.h (free_symtab): Remove.
1594         (forget_cached_source_info_for_objfile): Declare.
1595         * symmisc.c (free_symtab): Remove.
1596         * source.c (forget_cached_source_info_for_objfile): New function.
1597         (forget_cached_source_info): Use it.
1598         * objfiles.c (free_objfile): Simplify check before calling
1599         clear_current_source_symtab_and_line.  Call
1600         forget_cached_source_info_for_objfile.
1601
1602 2011-04-04  Tom Tromey  <tromey@redhat.com>
1603
1604         * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1605         (new_symtab): Don't set `free_code' on symtab.
1606         (new_linetable): Properly handle size==0.
1607         * symtab.h (struct symtab) <free_code, free_func>: Remove.
1608         * symmisc.c (free_symtab): Don't free the linetable.  Don't call
1609         free_func.
1610         * jv-lang.c (struct jv_per_objfile_data): New.
1611         (jv_per_objfile_free): Free the data.
1612         (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1613         (get_java_class_symtab): Set the `dict' field on the
1614         jv_per_objfile_data.
1615         (free_class_block): Remove.
1616         * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1617         the symtab.
1618
1619 2011-04-04  Tom Tromey  <tromey@redhat.com>
1620
1621         * symfile.c (reread_symbols): Update.
1622         * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1623         field.
1624         * objfiles.c (allocate_objfile): Update.
1625         * cp-support.h (cp_check_possible_namespace_symbols): Don't
1626         declare.
1627         * cp-namespace.c (lookup_symbol_file): Don't call
1628         lookup_possible_namespace_symbol.
1629         (initialize_namespace_symtab, get_possible_namespace_block)
1630         (free_namespace_block, cp_check_possible_namespace_symbols)
1631         (check_possible_namespace_symbols_loop)
1632         (check_one_possible_namespace_symbol)
1633         (lookup_possible_namespace_symbol): Remove.
1634         (maintenance_cplus_namespace): Replace with notice.
1635         (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1636
1637 2011-04-04  Tom Tromey  <tromey@redhat.com>
1638
1639         * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1640         * symtab.h (struct symtab) <producer, debugformat>: Now const.
1641         * symmisc.c (free_symtab): Don't free debugformat.
1642         * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1643         (record_debugformat, record_producer): Document.
1644         * buildsym.c (end_symtab): Don't save debugformat and producer
1645         names on obstack.
1646         (end_symtab): Don't free debugformat and producer fields.
1647         (record_debugformat): Don't call xstrdup.
1648         (record_producer): Likewise.
1649
1650 2011-04-04  Tom Tromey  <tromey@redhat.com>
1651
1652         * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1653         (source_line_charpos, source_charpos_line): Remove.
1654
1655 2011-04-04  Tom Tromey  <tromey@redhat.com>
1656
1657         * symtab.h (domain_enum): Split in two...
1658         (enum search_domain): New.
1659         (search_symbols): Update.
1660         * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1661         redundant declarations.
1662         (search_symbols): Change 'kind' argument to search_domain.
1663         Update.
1664         (print_symbol_info): Likewise.
1665         (symtab_symbol_info): Likewise.
1666         * symfile.h (struct quick_symbol_functions)
1667         <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1668         <expand_symtabs_matching>: Likewise.
1669         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1670         (expand_symtabs_matching_via_partial): Update.
1671         * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1672         (dw2_expand_symtabs_for_function): Update.
1673         * block.h: Moved anonymous enum...
1674         * defs.h (enum block_enum): ... here.  Now named.
1675
1676 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
1677
1678         GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1679         * version.in: Bump version to 7.3.50.20110403-cvs.
1680
1681 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
1682
1683         * NEWS: Create a new section for the next release branch.
1684         Rename the section of the current branch, now that it has
1685         been cut.
1686
1687 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
1688
1689         * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1690         for "fpscr" in target description.
1691
1692 2011-04-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1693
1694         * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1695         initialize it.  Delay HASH initialization.  Strip the part after open
1696         parenthesis for languages with qualifiers.  Call do_cleanups.
1697
1698 2011-04-01  Tom Tromey  <tromey@redhat.com>
1699
1700         * utils.c (report_command_stats): Don't print `-' for negative
1701         number.
1702
1703 2011-04-01  Eric Botcazou  <ebotcazou@adacore.com>
1704
1705         * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1706         (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1707         typedefs.
1708
1709 2011-04-01  Joel Brobecker  <brobecker@adacore.com>
1710
1711         * breakpoint.h (bpdisp_text): Add declaration.
1712         * breakpoint.c (bpdisp_text): Make non-static.
1713         * ada-lang.c: #include "mi/mi-common.h".
1714         (print_it_exception): Rewrite to improve GDB/MI output.
1715
1716 2011-04-01  Pedro Alves  <pedro@codesourcery.com>
1717
1718         * arm-tdep.h (struct address_space): Add forward declaration.
1719
1720 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
1721
1722         * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1723         * arm-tdep.c (arm_override_mode): New global.
1724         (arm_pc_is_thumb): Respect arm_override_mode.  Remove single-step
1725         execution mode heuristics.
1726         (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1727         second single-step breakpoint if needed, using
1728         arm_insert_single_step_breakpoint.
1729         (arm_get_next_pc_raw): Remove INSERT_BKTP argument.  Only handle
1730         ARM execution mode, do not call thumb_get_next_pc_raw.
1731         (arm_get_next_pc): Encode execution mode in return value.  Call
1732         either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1733         (arm_insert_single_step_breakpoint): New function.
1734         (arm_software_single_step): Call it.
1735         * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1736         argument to return execution mode of sigreturn target.
1737         (arm_linux_syscall_next_pc): Use it.
1738         (arm_linux_copy_svc): Update call.
1739         (arm_linux_software_single_step): Call
1740         arm_insert_single_step_breakpoint.
1741
1742 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1743
1744         * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1745         the comment.
1746
1747 2011-03-31  Tom Tromey  <tromey@redhat.com>
1748
1749         * varobj.c (update_dynamic_varobj_children): Properly handle
1750         errors from iterator.
1751
1752 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1753
1754         * dwarf2read.c (dwarf2_name): Initialize DEMANGLED.  Avoid demangling
1755         struct linkage name twice.
1756
1757 2011-03-31  Tom Tromey  <tromey@redhat.com>
1758
1759         * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1760         missing ">" to message.
1761
1762 2011-03-31  Tom Tromey  <tromey@redhat.com>
1763
1764         * varobj.c (instantiate_pretty_printer): Remove duplicate
1765         'return'.
1766
1767 2011-03-31  Ulrich Weigand  <ulrich.weigand@linaro.org>
1768
1769         * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1770         if neither saved value nor register available (e.g. signal frame).
1771
1772 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1773
1774         * macroexp.c (expand): Avoid uninitialized variable
1775         compiler warning.
1776
1777 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1778
1779         * breakpoint.c (break_range_command): Fix typo in comment.
1780
1781 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1782             Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
1783
1784         Implement support for PowerPC BookE ranged breakpoints.
1785         * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1786         * breakpoint.h (struct bp_target_info) <length>: New member
1787         variable.
1788         (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1789         instead of struct breakpoint as argument, and also add ASPACE
1790         and BP_ADDR arguments.  Update all callers.
1791         (struct breakpoint_ops) <print_one_detail>: New method.
1792         (struct breakpoint) <addr_string_range_end>: New member variable.
1793         * breakpoint.c (breakpoint_location_address_match): Add function
1794         prototype.
1795         (insert_bp_location): Set bl->target_info.length.
1796         (breakpoint_here_p): Call breakpoint_location_address_match.
1797         (moribund_breakpoint_here_p): Likewise.
1798         (regular_breakpoint_inserted_here_p): Likewise.
1799         (breakpoint_thread_match): Likewise.
1800         (bpstat_stop_status): Likewise.
1801         (bpstat_check_location): Move call to
1802         breakpoint_ops.breakpoint_hit to the top.
1803         (print_one_breakpoint_location): Call
1804         breakpoint_ops.print_one_detail if available.
1805         (breakpoint_address_match_range): New function.
1806         (breakpoint_location_address_match): Likewise.
1807         (breakpoint_locations_match): Compare the length field of the
1808         locations too.
1809         (hw_breakpoint_used_count): Count resources used by all locations
1810         in a breakpoint, and use breakpoint_ops.resources_needed if
1811         available.
1812         (breakpoint_hit_ranged_breakpoint): New function.
1813         (resources_needed_ranged_breakpoint): Likewise.
1814         (print_it_ranged_breakpoint): Likewise.
1815         (print_one_ranged_breakpoint): Likewise.
1816         (print_one_detail_ranged_breakpoint): Likewise.
1817         (print_mention_ranged_breakpoint): Likewise.
1818         (print_recreate_ranged_breakpoint): Likewise.
1819         (ranged_breakpoint_ops): New structure.
1820         (find_breakpoint_range_end): New function.
1821         (break_range_command): Likewise.
1822         (delete_breakpoint): Free addr_string_range_end.
1823         (update_breakpoint_locations): Add SALS_END argument.  Update
1824         all callers.  Calculate breakpoint length if a non-zero SALS_END
1825         is given.  Call breakpoint_locations_match instead of
1826         breakpoint_address_match.
1827         (reset_breakpoint): Find SaL of the end of the range if B is a
1828         ranged breakpoint.
1829         (_initialize_breakpoint): Register break-range command.
1830         * defs.h (print_core_address): Add function prototype.
1831         * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1832         function.
1833         (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1834         (ppc_linux_remove_hw_breakpoint): Likewise.
1835         (_initialize_ppc_linux_nat): Initialize
1836         to_ranged_break_num_registers.
1837         * target.c (update_current_target): Add comment about
1838         to_ranged_break_num_registers.
1839         (target_ranged_break_num_registers): New function.
1840         * target.h (struct target_ops) <to_ranged_break_num_registers>:
1841         New method.
1842         (target_ranged_break_num_registers): Add function prototype.
1843         * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1844         * utils.c (print_core_address): ... here.
1845
1846 2011-03-31  Ulrich Weigand  <uweigand@de.ibm.com>
1847
1848         * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1849         variable compiler warning.
1850
1851 2011-03-30  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1852
1853         * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1854         code from here ...
1855         (re_set_breakpoint): ... to here ...
1856         (addr_string_to_sals): ... and here.
1857
1858 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
1859
1860         * Makefile.in (SFILES): Add missing C sources.
1861         (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1862         Add missing headers.
1863
1864 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
1865
1866         * .gitignore: New file.
1867
1868 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
1869
1870         * NEWS: Mention new cfi device simulation.
1871
1872 2011-03-29  Tom Tromey  <tromey@redhat.com>
1873
1874         * dwarf2read.c (fixup_partial_die): Handle linkage name on
1875         otherwise anonymous types.
1876         (dwarf2_name): Likewise.
1877         * valops.c (value_struct_elt_for_reference): Refine artificial
1878         type logic.  Call error if j==-1.
1879
1880 2011-03-29  Andreas Tobler  <andreast-list@fgznet.ch>
1881
1882         Fix false GCC warning.
1883         * infcall.c (find_function_addr): Initialize funaddr.
1884
1885 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
1886
1887         Fix mingw compilation with --enable-targets=all.
1888         * remote-mips.c (gdb_usleep.h): Include header.
1889         (mips_enter_debug): Use gdb_usleep instead of sleep.
1890
1891 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1892
1893         Support resolution of STT_GNU_IFUNC via breakpoints.
1894         * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1895         bp_gnu_ifunc_resolver_return.
1896         (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1897         the loop.  Support bp_gnu_ifunc_resolver and
1898         bp_gnu_ifunc_resolver_return.  New comment after the loop.  New loop
1899         for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1900         breakpoints.
1901         (bptype_string, print_one_breakpoint_location): Support
1902         bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1903         (user_settable_breakpoint): Return true also for
1904         bp_gnu_ifunc_resolver.
1905         (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1906         bp_gnu_ifunc_resolver_return.
1907         (set_breakpoint_location_function): New parameter explicit_loc,
1908         describe it.  Call find_pc_partial_function_gnu_ifunc with new
1909         variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1910         EXPLICIT_LOC is not set.
1911         (set_raw_breakpoint): Set EXPLICIT_LOC for
1912         set_breakpoint_location_function.
1913         (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1914         set_breakpoint_location_function.
1915         (mention): Support bp_gnu_ifunc_resolver and
1916         bp_gnu_ifunc_resolver_return.
1917         (add_location_to_breakpoint): Set EXPLICIT_LOC for
1918         set_breakpoint_location_function.
1919         (update_breakpoint_locations): Remove static.
1920         (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1921         bp_gnu_ifunc_resolver_return.
1922         * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1923         bp_gnu_ifunc_resolver_return.
1924         (update_breakpoint_locations): New declaration.
1925         * elfread.c: Include gdbthread.h and regcache.h.
1926         (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1927         functions.
1928         (elf_gnu_ifunc_fns): Install them.
1929         * minsyms.c (stub_gnu_ifunc_resolver_stop)
1930         (stub_gnu_ifunc_resolver_return_stop): New functions.
1931         (stub_gnu_ifunc_fns): Install them.
1932         * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1933         and gnu_ifunc_resolver_return_stop.
1934         (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1935
1936 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1937
1938         STT_GNU_IFUNC reader implementation.
1939         * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1940         (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1941         (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1942         (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1943         (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1944         (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1945         (elf_gnu_ifunc_resolve_addr): New.
1946         (elf_symfile_read): Call elf_rel_plt_read.
1947         (elf_gnu_ifunc_fns): New.
1948         (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1949         Install elf_gnu_ifunc_fns.
1950         * infcall.c (find_function_return_type): New function.
1951         (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1952         * minsyms.c (stub_gnu_ifunc_resolve_addr)
1953         (stub_gnu_ifunc_resolve_name): New functions.
1954         (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1955         * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1956         (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1957
1958 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1959
1960         Code cleanup for later STT_GNU_IFUNC support.
1961         * infcall.c (find_function_addr): Remove variable code, use explicit
1962         dereferences for it.  Move VALUE_TYPE initialization later.
1963
1964 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1965
1966         GDB find_pc_partial_function support for STT_GNU_IFUNC.
1967         * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1968         (clear_pc_function_cache): Clear it.
1969         (find_pc_partial_function): Rename to ...
1970         (find_pc_partial_function_gnu_ifunc): ... this function.  New
1971         parameter is_gnu_ifunc_p, describe it.  Set *IS_GNU_IFUNC_P.
1972         (find_pc_partial_function): New wrapper for this function.
1973         * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1974
1975 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1976
1977         GDB internal type support for STT_GNU_IFUNC.
1978         * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1979         (elf_symtab_read): Set mst_text_gnu_ifunc for
1980         BSF_GNU_INDIRECT_FUNCTION.
1981         * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1982         * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1983         builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1984         nodebug_got_plt_symbol.
1985         * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1986         (TYPE_GNU_IFUNC): New.
1987         (struct main_type): New field flag_gnu_ifunc.
1988         (struct builtin_type): New field builtin_func_func.
1989         (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1990         nodebug_got_plt_symbol.
1991         * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
1992         (in_gnu_ifunc_stub): New.
1993         (prim_record_minimal_symbol, find_solib_trampoline_target): Support
1994         mst_text_gnu_ifunc.
1995         * parse.c (write_exp_msymbol): New variable ifunc_msym.  Detect and
1996         support mst_text_gnu_ifunc.  Support mst_slot_got_plt.
1997         * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
1998         in_gnu_ifunc_stub.
1999         * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
2000         * symtab.c (search_symbols): Likewise.
2001         * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
2002         and mst_slot_got_plt.
2003         (in_gnu_ifunc_stub): New declaration.
2004
2005 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2006
2007         Support a ring of related breakpoints.
2008         * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
2009         other functions, add gdb_assert.
2010         (update_watchpoint, watchpoint_check): Add gdb_assert.  Use
2011         watchpoint_del_at_next_stop.
2012         (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
2013         (bpstat_stop_status): Handle ring in related_breakpoint.
2014         (set_raw_breakpoint_without_location): Initialize ring in
2015         related_breakpoint.
2016         (delete_breakpoint): Handle ring in related_breakpoint, use
2017         watchpoint_del_at_next_stop.
2018         (map_breakpoint_numbers): Handle ring in related_breakpoint.
2019
2020 2011-03-28  Tom Tromey  <tromey@redhat.com>
2021
2022         PR symtab/12441:
2023         * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
2024         with `language_minimal'.
2025
2026 2011-03-25  Ulrich Weigand  <ulrich.weigand@linaro.org>
2027
2028         * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
2029         instead of checking for STT_ARM_TFUNC symbol type.
2030
2031 2011-03-25  Tom Tromey  <tromey@redhat.com>
2032
2033         * linespec.c (symbol_found): Restore line-based result for
2034         non-LOC_LABEL symbols.
2035
2036 2011-03-25  Kai Tietz  <ktietz@redhat.com>
2037
2038         * tui/tui-source.c (tui_set_source_content): Use filename_cmp
2039         instead of strcmp for comparison.
2040         (tui_source_is_displayed): Likewise.
2041         * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
2042
2043 2011-03-24  Mark Wielaard  <mjw@redhat.com>
2044
2045         * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
2046         complaint.
2047         (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2048         (find_partial_die_in_comp_unit): Likewise in comment.
2049         (read_attribute_value): Likewise.
2050         (lookup_die_type): Likewise.
2051         (dwarf_form_name): Likewise.
2052         (dump_die_shallow): Likewise.
2053         (follow_die_ref_or_sig): Likewise.
2054
2055 2011-03-24  Tom Tromey  <tromey@redhat.com>
2056
2057         PR breakpoints/11816:
2058         * linespec.c (decode_line_1): Parse `function:label' linespecs.
2059         (decode_compound): Update.
2060         (find_function_symbol): New function.
2061         (decode_dollar): Update.
2062         (decode_label): Add 'function_symbol' parameter.  Handle
2063         function-relative labels.
2064         (decode_variable): Update.
2065         (symbol_found): Add 'function_symbol' parameter.  Use label's PC,
2066         not its line.  Set `special_display' and canonical name for
2067         labels.
2068
2069 2011-03-24  Tom Tromey  <tromey@redhat.com>
2070
2071         * linespec.h (struct linespec_result) <special_display>: New
2072         field.
2073         * breakpoint.h (struct breakpoint) <display_canonical>: New
2074         field.
2075         * breakpoint.c (print_breakpoint_location): Respect
2076         display_canonical.
2077         (create_breakpoint_sal): Add 'display_canonical' parameter.
2078         (create_breakpoints_sal): Update.
2079         (create_breakpoint): Update.
2080
2081 2011-03-24  Tom Tromey  <tromey@redhat.com>
2082
2083         * symtab.c (decode_line_spec): Update.
2084         * linespec.c (build_canonical_line_spec): Change type of
2085         'canonical'.
2086         (decode_line_2, decode_line_1, decode_objc, decode_compound)
2087         (find_method, decode_all_digits, decode_dollar, decode_label)
2088         (symbol_found): Likewise.
2089         (init_linespec_result): New function.
2090         * breakpoint.c (struct captured_parse_breakpoint_args)
2091         <canonical_p>: New field, replaces addr_string_p.
2092         (create_breakpoints_sal): Add 'canonical' parameter, replacing
2093         'addr_string'.
2094         (parse_breakpoint_sals): Likewise.
2095         (do_captured_parse_breakpoint): Update.
2096         (create_breakpoint): Use struct linespec_result.
2097         (until_break_command): Update.
2098         (breakpoint_re_set_one): Update.
2099         (decode_line_spec_1): Update.
2100         * linespec.h (struct linespec_result): New.
2101         (init_linespec_result): Declare.
2102
2103 2011-03-23  Pedro Alves  <pedro@codesourcery.com>
2104
2105         * regcache.c (regcache_raw_read): If the target didn't supply a
2106         given raw register, mark it as unavailable.
2107
2108 2011-03-23  Kai Tietz  <ktietz@redhat.com>
2109
2110         * breakpoint.c (clear_command): Use filename_cmp
2111         instead of strcmp for comparison.
2112         * buildsym.c (watch_main_source_file_lossage): Likewise.
2113         (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
2114         checking just for slash.
2115         * dbxread.c (read_dbx_symtab): Use lbasename instead of
2116         strrchr and filename_cmp instead of strcmp for filenames.
2117         (add_old_header_file): Use filename_cmp
2118         instead of strcmp for comparison.
2119         * exec.c (exec_set_section_address): Likewise.
2120         * macrotab.c (macro_lookup_inclusion): Likewise.
2121         (macro_lookup_inclusion): Likewise.
2122         * elfread.c (_initialize_elfread): Likewise.
2123         (elfstab_offset_sections): Likewise.
2124         (elfstab_offset_sections): Use lbasename instead of
2125         strrchr.
2126         * mdebugread.c (parse_partial_symbols): Likewise.
2127         (arse_partial_symbols): Use filename_(n)cmp instead of
2128         str(n)cmp for comparison.
2129         * minsyms.c (lookup_minimal_symbol): Likewise.
2130         * psymtab.c (read_psymtabs_with_filename): Likewise.
2131         * solib.c (solib_read_symbols): Likewise.
2132         (reload_shared_libraries_1): Likewise.
2133         * symmisc.c (maintenance_print_symbols): Likewise.
2134         * symfile.c (separate_debug_file_exists): Likewise.
2135         (reread_symbols): Likewise.
2136         (find_separate_debug_file_by_debuglink): Likewise.
2137         * remote-fileio.c (remote_fileio_func_rename): Likewise.
2138         * source.c (add_path): Likewise.
2139         * symtab.c (filename_seen): Likewise.
2140         (file_matches): Likewise.
2141         (print_symbol_info): Likewise.
2142         (maybe_add_partial_symtab_filename): Likewise.
2143         (make_source_files_completion_list): Likewise.
2144         * xml-syscall.c (init_sysinfo): Likewise.
2145         * windows-nat.c (_initialize_check_for_gdb_ini): Use
2146         IS_DIR_SEPARATOR for checking for trailing path separator.
2147
2148 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2149
2150         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value.  New
2151         label abort_expression.
2152         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
2153         DWARF_VALUE_OPTIMIZED_OUT.
2154
2155 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2156
2157         Code cleanup.
2158         * c-typeprint.c (c_type_print_args): Change parameter show_artificial
2159         to linkage_name.  Invert its value.  Update the function comment.
2160         (c_type_print_varspec_suffix): Invert it at the caller.
2161         * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
2162
2163 2011-03-22  Pedro Alves  <pedro@codesourcery.com>
2164
2165         * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
2166         errors when reading the `stop_pc'.
2167         * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
2168         get_frame_pc.
2169
2170 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
2171
2172         * NEWS: Document gdb.Write stream keyword.
2173
2174 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2175
2176         Revert:
2177         2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2178         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2179         (dwarf2_add_field): Fix new_field->accessibility for
2180         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2181
2182 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
2183
2184         PR python/12183
2185
2186         * python/py-function.c (fnpy_call): Treat GdbErrors differently to
2187         other error classes.  Do not print stack trace.
2188
2189 2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2190
2191         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2192         (dwarf2_add_field): Fix new_field->accessibility for
2193         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2194
2195 2011-03-21  Ulrich Weigand  <ulrich.weigand@linaro.org>
2196
2197         * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
2198         encountering a load via a non-SP register.
2199
2200 2011-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
2201
2202         * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
2203         field in returned unwinder.
2204
2205 2012-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2206
2207         * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
2208
2209 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
2210
2211         * ada-lang.c (replace_operator_with_call): Use xzalloc instead
2212         of xmalloc.
2213
2214 2012-03-18  Pedro Alves  <pedro@codesourcery.com>
2215
2216         * frame.c (frame_unwind_register): Throw an error if unwinding the
2217         register failed.
2218         * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
2219         an unwind stop reason.
2220         (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
2221         * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
2222         UNWIND_UNAVAILABLE>: New.
2223         * inline-frame.c (inline_frame_unwind): Install
2224         default_frame_unwind_stop_reason.
2225         * frame-unwind.c: Include "exceptions.h".
2226         (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2227         (default_frame_unwind_stop_reason): New.
2228         * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2229         (default_frame_unwind_stop_reason): Declare.
2230         (struct frame_unwind) <stop_reason>: New function pointer.
2231
2232         * dummy-frame.c: Install default_frame_unwind_stop_reason.
2233         * dwarf2-frame.c: Include exceptions.h.
2234         (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2235         (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2236         computing the CFA.  If such an error was thrown, set
2237         unavailable_retaddr.
2238         (dwarf2_frame_unwind_stop_reason): New.
2239         (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2240         unavailable.
2241         (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2242         (dwarf2_signal_frame_unwind): Ditto.
2243
2244         * amd64-tdep.c: Include "exceptions.h".
2245         (struct amd64_frame_cache): New field "base_p".
2246         (amd64_init_frame_cache): Clear it.
2247         (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2248         Avoid reading registers with functions that throw if the register
2249         is not necessary to compute the frame base.
2250         (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2251         swallowing NOT_AVAILABLE_ERROR.
2252         (amd64_frame_unwind_stop_reason): New.
2253         (amd64_frame_this_id): Don't build a frame id if the frame base
2254         was unavailable.
2255         (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2256         (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2257         base_p if the frame base was computable.
2258         (amd64_sigtramp_frame_unwind_stop_reason): New.
2259         (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2260         frame base was unavailable.
2261         (amd64_sigtramp_frame_unwind): Install
2262         amd64_sigtramp_frame_unwind_stop_reason.
2263         (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2264         base_p if the frame base was computable.
2265         (amd64_epilogue_frame_unwind_stop_reason): New.
2266         (amd64_epilogue_frame_this_id): Don't build a frame id if the
2267         frame base was unavailable.
2268         (amd64_epilogue_frame_unwind): Install
2269         amd64_epilogue_frame_unwind_stop_reason.
2270         * i386-tdep.c: Include "exceptions.h".
2271         (struct i386_frame_cache): New field "base_p".
2272         (i386_init_frame_cache): Clear it.
2273         (i386_frame_cache_1): New, factored out from amd64_frame_cache.
2274         Avoid reading registers with functions that throw if the register
2275         is not necessary to compute the frame base.
2276         (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2277         swallowing NOT_AVAILABLE_ERROR.
2278         (i386_frame_unwind_stop_reason): New.
2279         (i386_frame_this_id): Don't build a frame id if the frame base was
2280         unavailable.
2281         (i386_frame_prev_register): Handle unavailable SP.
2282         (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
2283         (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2284         base_p if the frame base was computable.
2285         (i386_epilogue_frame_unwind_stop_reason): New.
2286         (i386_epilogue_frame_this_id): Don't build a frame id if the frame
2287         base was unavailable.
2288         (i386_epilogue_frame_unwind): Install
2289         i386_epilogue_frame_unwind_stop_reason.
2290         (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2291         base_p if the frame base was computable.
2292         (i386_sigtramp_frame_unwind_stop_reason): New.
2293         (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
2294         base was unavailable.
2295         (i386_sigtramp_frame_unwind): Install
2296         i386_sigtramp_frame_unwind_stop_reason.
2297         * sentinel-frame.c (sentinel_frame_prev_register): Use the value
2298         type's size, not the register's.
2299         (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
2300
2301         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
2302         default_frame_unwind_stop_reason.
2303         * alpha-tdep.c (alpha_sigtramp_frame_unwind)
2304         (alpha_heuristic_frame_unwind): Ditto.
2305         * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
2306         * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
2307         * avr-tdep.c (avr_frame_unwind): Ditto.
2308         * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
2309         Ditto.
2310         * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
2311         * frv-tdep.c (frv_frame_unwind): Ditto.
2312         * h8300-tdep.c (h8300_frame_unwind): Ditto.
2313         * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
2314         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
2315         * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
2316         (hppa_stub_frame_unwind): Ditto.
2317         * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
2318         * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
2319         (ia64_libunwind_frame_unwind)
2320         (ia64_libunwind_sigtramp_frame_unwind): Ditto.
2321         * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
2322         * lm32-tdep.c (lm32_frame_unwind): Ditto.
2323         * m32c-tdep.c (m32c_unwind): Ditto.
2324         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
2325         * m32r-tdep.c (m32r_frame_unwind): Ditto.
2326         * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
2327         * m68k-tdep.c (m68k_frame_unwind): Ditto.
2328         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
2329         * m88k-tdep.c (m88k_frame_unwind): Ditto.
2330         * mep-tdep.c (mep_frame_unwind): Ditto.
2331         * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
2332         * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
2333         (mips_stub_frame_unwind): Ditto.
2334         * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
2335         * moxie-tdep.c (moxie_frame_unwind): Ditto.
2336         * mt-tdep.c (mt_frame_unwind): Ditto.
2337         * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
2338         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
2339         * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
2340         * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
2341         (s390_sigtramp_frame_unwind): Ditto.
2342         * score-tdep.c (score_prologue_unwind): Ditto.
2343         * sh-tdep.c (sh_frame_unwind): Ditto.
2344         * sh64-tdep.c (sh64_frame_unwind): Ditto.
2345         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
2346         * sparc-tdep.c (sparc32_frame_unwind): Ditto.
2347         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2348         * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2349         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2350         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2351         * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2352         (sparc64obsd_trapframe_unwind): Ditto.
2353         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2354         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2355         * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2356         * v850-tdep.c (v850_frame_unwind): Ditto.
2357         * vax-tdep.c (vax_frame_unwind): Ditto.
2358         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2359         * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2360         * xtensa-tdep.c (xtensa_unwind): Ditto.
2361
2362 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2363
2364         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
2365         there's always a frame.  Use get_frame_pc_if_available instead of
2366         get_frame_pc, and if there's no PC available, don't look up a
2367         symtab.
2368
2369 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2370
2371         * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
2372         unavailable PC.
2373
2374 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2375
2376         * tracepoint.c (set_traceframe_context): Handle unavailable PC
2377         gracefully.
2378
2379 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2380
2381         * frame.h (frame_unwind_caller_pc_if_available): Declare.
2382         * frame.c (frame_unwind_caller_pc_if_available): New.
2383         * stack.c (frame_info): Handle unavailable PC.
2384
2385 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2386
2387         * frame.c (frame_unwind_pc): Rename to ...
2388         (frame_unwind_pc_if_available): ... this.  New `pc' output
2389         parameter.  Change return type to int.  Gracefully handle
2390         gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR.  Return 0 if that
2391         happened, or 1 otherwise.
2392         (frame_unwind_pc): Reimplement on top of
2393         frame_unwind_pc_if_available.
2394         (get_frame_func): Rename to ...
2395         (get_frame_func_if_available): New `pc' output parameter.  Change
2396         return type to int.  Gracefully handle the PC not being available.
2397         (get_frame_func): Reimplement on top of
2398         get_frame_func_if_available.
2399         (select_frame): Handle the PC being unavailable.
2400         (get_prev_frame): Handle the PC being unavailable.
2401         (get_frame_pc_if_available): New.
2402         (get_frame_address_in_block_if_available): New.
2403         (find_frame_sal): Handle the frame PC not being available.
2404         * frame.h (get_frame_pc_if_available): Declare.
2405         (get_frame_address_in_block_if_available): Declare.
2406         (get_frame_func_if_available): Declare.
2407         * stack.c (print_frame_info): Handle the PC being unavailable.
2408         (find_frame_funname): Ditto.
2409         (print_frame): Handle the PC being unavailable.
2410         (get_frame_language): Ditto.
2411         * blockframe.c (get_frame_block): Ditto.
2412         * macroscope.c (default_macro_scope): Ditto.
2413         * tui/tui-stack.c (tui_show_frame_info): Ditto.
2414
2415 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2416
2417         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
2418         NOT_AVAILABLE_ERROR when evaluating the location expression.
2419
2420 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2421
2422         * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
2423         returning that the register piece is unavailable/optimized out.
2424         (write_pieced_value): Handle get_frame_register_bytes returning
2425         that the register piece is unavailable/optimized out when doing a
2426         read-modify write of a bitfield.
2427         * findvar.c (value_from_register): Handle get_frame_register_bytes
2428         returning that the register piece is unavailable/optimized out.
2429         * frame.c (get_frame_register_bytes): New parameters `optimizedp'
2430         and `unavailablep'.  Throw error on bad debug info.  Use
2431         frame_register instead of frame_register_read, to fill in the new
2432         arguments.
2433         * frame.h (get_frame_register_bytes): New parameters `optimizedp'
2434         and `unavailablep'.
2435         * valops.c: (value_assign): Adjust, and handle
2436         get_frame_register_bytes failing.
2437         * spu-tdep.c: Include exceptions.h.
2438         (spu_software_single_step): Adjust, and handle
2439         get_frame_register_bytes failing.
2440         (spu_get_longjmp_target): Ditto.
2441         * gdbarch.sh (register_to_value): Change to return int.  New
2442         parameters `optimizedp' and `unavailablep'.
2443         * gdbarch.h, gdbarch.c: Regenerate.
2444         * i386-tdep.c (i386_register_to_value): Adjust to new
2445         gdbarch_register_to_value interface.
2446         * i387-tdep.c (i387_register_to_value): Ditto.
2447         * i387-tdep.h (i387_register_to_value): Ditto.
2448         * alpha-tdep.c (alpha_register_to_value): Ditto.
2449         * ia64-tdep.c (ia64_register_to_value): Ditto.
2450         * m68k-tdep.c (m68k_register_to_value): Ditto.
2451         * mips-tdep.c (mips_register_to_value): Ditto.
2452         * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2453
2454 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2455
2456         * findvar.c (value_of_register): Mark the value as unavailable, if
2457         the register is unavailable.
2458         * frame.h (frame_register_unwind): New `unavailablep' parameter.
2459         (frame_register): New `unavailablep' parameter.
2460         (frame_register_read): Update comment.
2461         * frame.c (frame_register_unwind): New `unavailablep' parameter.
2462         Set it if the register is unavailable.  If the register is
2463         unavailable, clear the output buffer.
2464         (frame_register): New `unavailablep' parameter.  Pass it down.
2465         (frame_unwind_register): Adjust.
2466         (put_frame_register): Adjust.
2467         (frame_register_read): Adjust.  Also return false if the register
2468         is not available.
2469         (frame_register_unwind_location): Adjust.
2470         * sentinel-frame.c (sentinel_frame_prev_register): If the register
2471         is unavailable, mark the value accordingly.
2472         * stack.c (frame_info): Handle unavailable registers.
2473
2474 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2475
2476         * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2477         simplify, using regcache_cooked_read.
2478
2479 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2480
2481         * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2482         (regcache_raw_read_unsigned, regcache_raw_read_signed)
2483         (regcache_raw_read_unsigned, regcache_raw_read_part)
2484         (regcache_cooked_read, regcache_cooked_read_signed)
2485         (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2486         (regcache_cooked_read_ftype): Change return to enum
2487         register_status.
2488         * regcache.c: Include exceptions.h
2489         (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2490         (do_cooked_read): Change return to enum register_status.  Always
2491         forward to regcache_cooked_read.
2492         (regcache_raw_read): Change return to enum register_status.  If
2493         the register is not REG_VALID, memset the buffer.  Return the
2494         register's status.
2495         (regcache_raw_read_signed): Handle non-REG_VALID registers and
2496         return the register's status.
2497         (regcache_raw_read_unsigned): Ditto.
2498         (regcache_cooked_read): Change return to enum register_status.
2499         Assert that with read-only regcaches, the register's status must
2500         be known.  If the regcache is read-only, and the register is not
2501         REG_VALID, memset the buffer.  Return the register's status.
2502         (regcache_cooked_read_signed): Change return to enum
2503         register_status.  Handle non-REG_VALID registers and return the
2504         register's status.
2505         (regcache_cooked_read_unsigned): Change return to enum
2506         register_status.  Handle non-REG_VALID registers and return the
2507         register's status.
2508         (regcache_xfer_part, regcache_raw_read_part)
2509         (regcache_cooked_read_part): Change return to enum
2510         register_status.  Return the register's status.
2511         (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2512         unavailable.
2513         (regcache_dump): Handle unavailable cooked registers.
2514         * frame.c (do_frame_register_read): Adjust interface to match
2515         regcache_cooked_read_ftype.
2516         * gdbarch.sh (pseudo_register_read): Change return to enum
2517         register_status.
2518         * gdbarch.h, gdbarch.c: Regenerate.
2519
2520         * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2521         register_status.
2522         * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2523         register_status.  If reading a raw register indicates the raw
2524         register is not valid, return the raw register's status,
2525         otherwise, return REG_VALID.
2526         * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2527         register_status.  Handle non-REG_VALID raw registers and return
2528         the register's status.
2529         * arm-tdep.c (arm_neon_quad_read)
2530         (arm_pseudo_read): Change return to enum register_status.  Handle
2531         non-REG_VALID raw registers and return the register's status.
2532         * avr-tdep.c (avr_pseudo_register_read): Ditto.
2533         * frv-tdep.c (frv_pseudo_register_read): Ditto.
2534         * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2535         * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2536         * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2537         register_status.
2538         (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2539         (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2540         (m32c_part_write, m32c_cat_read, m32c_cat_write)
2541         (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2542         (m32c_pseudo_register_read): Change return to enum
2543         register_status.  Adjust.
2544         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2545         enum register_status.  Return the register's status.
2546         * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2547         register_status.  Return the register's status.
2548         (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2549         * mips-tdep.c (mips_pseudo_register_read): Ditto.
2550         * mt-tdep.c (mt_pseudo_register_read): Ditto.
2551         * rs6000-tdep.c (move_ev_register_func): New typedef.
2552         (e500_move_ev_register): Use it.  Change return to enum
2553         register_status.  Return the register's status.
2554         (do_regcache_raw_read): New function.
2555         (do_regcache_raw_write): New function.
2556         (e500_pseudo_register_read): Change return to enum
2557         register_status.  Return the register's status.  Use
2558         do_regcache_raw_read.
2559         (e500_pseudo_register_write): Adjust.  Use do_regcache_raw_write.
2560         (dfp_pseudo_register_read): Change return to enum register_status.
2561         Return the register's status.
2562         (vsx_pseudo_register_read): Ditto.
2563         (efpr_pseudo_register_read): Ditto.
2564         (rs6000_pseudo_register_read): Ditto.
2565         * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2566         register_status.  Return the register's status.
2567         * sh64-tdep.c (pseudo_register_read_portions): New function.
2568         (sh64_pseudo_register_read): Change return to enum
2569         register_status.  Use pseudo_register_read_portions.  Return the
2570         register's status.
2571         * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2572         register_status.  Return the register's status.
2573         * sh-tdep.c (pseudo_register_read_portions): New function.
2574         (sh_pseudo_register_read): Change return to enum register_status.
2575         Use pseudo_register_read_portions.  Return the register's status.
2576         * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2577         enum register_status.  Return the register's status.
2578         * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2579         * spu-tdep.c (spu_pseudo_register_read_spu)
2580         (spu_pseudo_register_read): Ditto.
2581         * xtensa-tdep.c (xtensa_register_read_masked)
2582         (xtensa_pseudo_register_read): Ditto.
2583         * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2584
2585 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
2586
2587         * python/py-value.c (valpy_getitem): Fix formatting of error function
2588         call.
2589
2590 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
2591
2592         ARI fixes: Add missing internationalization markups throughout
2593         C source files.
2594         * darwin-nat-info.c: Ditto.
2595         * record.c: Ditto.
2596         * remote.c: Ditto.
2597         * mi/mi-main.c: Ditto.
2598
2599 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
2600
2601         ARI fixes: Add missing internationalization markups throughout
2602         yacc files.
2603         * c-exp.y: Ditto.
2604         * cp-name-parser.y: Ditto.
2605         * f-exp.y: Ditto.
2606         * m2-exp.y: Ditto.
2607         * objc-exp.y: Ditto.
2608         * p-exp.y: Ditto.
2609
2610 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
2611
2612         ARI fixes: Messages should have no trailing new lines.
2613         * darwin-nat.c (mach_check_error): Remove trailing new line from
2614         warning function call message.
2615         * record.c (bfdcore_read): Idem for error call.
2616
2617 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
2618
2619         * common/signals.c (target_signal_from_host): Add _ markup to error
2620         function call message.
2621         (target_signal_to_host): Add _ markup and remove trailing new line
2622         from warning call message.
2623         (target_signal_from_command): Add _ markup to error function call
2624         message.
2625
2626 2011-03-18  Phil Muldoon  <pmuldoon@redhat.com>
2627
2628         PR python/12149
2629
2630         * python/python.c (gdbpy_write): Accept a stream argument and
2631         operate to the appropriate stream.
2632         (gdbpy_flush): Likewise.
2633         (_initialize_python): Add stream constants.
2634         (finish_python_initialization): Add GdbOutputErrorFile class.
2635
2636 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
2637
2638         * MAINTAINERS: Add myself as a write-after-approval maintainer.
2639
2640 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
2641
2642         * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
2643         to store_signed_integer.  Add debug message when relocating CALL
2644         instructions.  Fix formatting of debug message.
2645         * i386-tdep.c (i386_relocate_instruction): Ditto.
2646
2647 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
2648
2649         * target.h (struct target_ops): Remove to_lookup_symbol field.
2650         (target_lookup_symbol): Delete macro.
2651         * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2652         (update_current_target, setup_target_debug): Remove handling
2653         of to_lookup_symbol target_ops field.
2654         * ada-tasks.c (get_known_tasks_addr): Remove use of
2655         target_lookup_symbol.
2656         * coffread.c (coff_symtab_read): Likewise.
2657         * dbxread.c (read_dbx_symtab): Ditto.
2658
2659 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
2660
2661         PR gdb/12116:
2662         * configure.ac: Add getthrds declaration check.
2663         * configure, config.in: Regenerate.
2664         * aix-thread.c (getthrds): Declare only if not already declared
2665         in procinfo.h.  More declaration out of get_signaled_thread to
2666         global scope.
2667
2668 2011-03-17  Phil Muldoon  <pmuldoon@redhat.com>
2669
2670         * python/py-symtab.c: Populate symtab_object_methods,
2671         sal_object_methods.
2672         (stpy_is_valid): New function.
2673         (salpy_is_valid): Ditto.
2674         * python/py-symbol.c: Declare symbol_object_methods.  Populate.
2675         (sympy_is_valid): New function.
2676         * python/py-objfile.c: Declare objfile_object_methods.  Populate.
2677         (objfpy_is_valid): New function.
2678         * python/py-inferior.c: Populate inferior_object_methods.
2679         (infpy_is_valid): New function.
2680         * python/py-infthread.c: Populate thread_object_methods.
2681         (thpy_is_valid): New function.
2682         * python/py-block.c: Declare block_object_methods.  Populate.  Declare
2683         block_iterator_object_methods.  Populate.
2684         (blpy_is_valid): New function.
2685         (blpy_iter_is_valid): Ditto.
2686
2687 2011-03-16  Keith Seitz  <keiths@redhat.com>
2688
2689         * linespec.c (find_methods): Canonicalize NAME before looking
2690         up the symbol.
2691         (name_end): New function.
2692         (keep_name_info): New function.
2693         (decode_line_1): Use keep_name_info.
2694         (decode_compound): Likewise.
2695         * cli/cli-utils.h (remove_trailing_whitespace): New function.
2696         * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2697
2698         PR c++/12273
2699         * linespec.c (locate_first_half): Keep overload information, too.
2700         (decode_compound): Use a string to represent break characters
2701         to escape the loop.
2702         If P points to a break character, do not increment it.
2703         For C++ and Java, keep overload information and relevant keywords.
2704         If we cannot find a symbol, search the minimal symbols.
2705
2706         PR c++/11734
2707         * linespec.c (decode_compound): Rename SAVED_ARG to
2708         THE_REAL_SAVED_ARG.
2709         Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2710         single-quotes.
2711         Pass a valid block to lookup_symbol.
2712         (lookup_prefix_sym): Likewise.
2713         (find_method): Construct search name based on SYM_CLASS instead
2714         of SAVED_ARG.
2715         * psymtab.c (lookup_partial_symbol): Add language parameter.
2716         (lookup_symbol_aux_psymtabs): Likewise.
2717         Don't assume that the psymtab we found was the right one. Search
2718         for the desired symbol in the symtab to be certain.
2719         (psymtab_search_name): New function.
2720         (lookup_partial_symbol): Use psymtab_search_name.
2721         Add language parameter.
2722         (read_symtabs_for_function): Add language parameter and pass to
2723         lookup_partial_symbol.
2724         (find_symbol_file_from_partial): Likewise.
2725
2726 2011-03-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
2727
2728         PR gdb/12528
2729         * dwarf2read.c (noop_record_line): New function.
2730         (dwarf_decode_lines): Ignore line tables for GCd functions.
2731
2732 2011-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
2733
2734         Fix ARI warnings about new lines at the end of messages, which
2735         are unneeded as there is a new line added at the end of the message
2736         automatically.
2737         * darwin-nat.c (darwin_stop_inferior): Ditto.
2738         * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2739         * dfp.c (decimal_to_number): Ditto.
2740         * exec.c (print_section_info): Ditto.
2741         * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2742         * osdata.c (get_osdata): Ditto.
2743         * record.c (bfdcore_write): Ditto.
2744         * remote-mips.c (mips_readchar): Ditto.
2745         * remote.c (read_ptid): Ditto.
2746         * ser-mingw.c (ser_windows_raw): Ditto.
2747         * tracepoint.c (add_local_symbols): Ditto.
2748         * windows-nat.c (fake_create_process): Ditto.
2749
2750 2011-03-16  Tom Tromey  <tromey@redhat.com>
2751
2752         * tracepoint.c (stop_tracing): Don't declare.
2753         * event-top.c (after_char_processing_hook): Add `(void)'.
2754
2755 2011-03-16  Phil Muldoon  <pmuldoon@redhat.com>
2756
2757         * NEWS: Add Parameter sub-classing description.
2758
2759 2011-03-16  Kai Tietz  <ktietz@redhat.com>
2760
2761         * MAINTAINERS: Update my e-mail address.
2762
2763 2011-03-15  Andreas Tobler  <andreast@fgznet.ch>
2764
2765         * MAINTAINERS: Add myself for write after approval privileges.
2766
2767 2011-03-15  Michael Snyder  <msnyder@vmware.com>
2768
2769         * frame.c (find_frame_sal): Assert sym is not null.
2770
2771         * dbxread.c (process_one_symbol): Assert 'name' is not null.
2772
2773         * objc-lang.c (selectors_info): Check strchr for null result.
2774
2775         * stabsread.c (define_symbol): Guard against bad stabstring input.
2776
2777 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
2778
2779         Remove trailing spaces and tabulations from pascal language
2780         support sources.
2781         p-exp.y: Ditto.
2782         p-lang.c: Ditto.
2783         p-lang.h: Ditto.
2784         p-valprint.c: Ditto.
2785
2786 2011-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2787
2788         * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2789         than LOW.  Comment it.
2790         (read_partial_die): Call complaint for inappropriate zero LOWPC or
2791         HIGHPC not strictly higher than LOWPC.
2792
2793 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
2794
2795         Fix formatting of function declarations returning a pointer in
2796         previous commit.
2797         * varobj.c (varobj_add_child): Ditto.
2798         * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2799         * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2800
2801 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
2802
2803         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2804         for the "generic" vector ABI used with GCC 4.3 and later.
2805         (ppc64_sysv_abi_return_value): Likewise.
2806
2807 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
2808
2809         * infcall.c (call_function_by_hand): Function return value is
2810         always a non_lval, even when using struct_return.
2811
2812 2011-03-15  Pedro Alves  <pedro@codesourcery.com>
2813
2814         * printcmd.c (ALL_DISPLAYS_SAFE): New.
2815         (map_display_numbers): New.
2816         (do_delete_display): New.
2817         (undisplay_command): Use map_display_numbers.
2818         (do_enable_disable_display): New.
2819         (enable_disable_display_command): New function.
2820         (enable_display): Delete.
2821         (enable_display_command): New.
2822         (disable_display_command): Reimplement.
2823         (_initialize_printcmd): Adjust "enable display" command to use
2824         `enable_display_command' as callback.
2825
2826 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
2827
2828         * NEWS: Add Python breakpoint 'stop' operation.
2829
2830 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
2831
2832         * NEWS: Delete duplicate entry. Fix typo.
2833
2834 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
2835
2836         Fix ARI warning about function names in first column.
2837         Put prototype declaration on same line as return type.
2838         * objc-exp.y: Ditto.
2839         * p-exp.y: Ditto.
2840         * python/py-stopevent.h: Ditto.
2841         For long function names, split parameters to
2842         allow function name on same line as return type.
2843         * solib-pa64.c: Ditto.
2844         * varobj.c: Ditto.
2845         * varobj.h: Ditto.
2846         For long function declaration, use single line.
2847         * hppa-tdep.h: Ditto.
2848         * inferior.h: Ditto.
2849
2850 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
2851
2852         * python/python.h: Declare gdbpy_should_stop and
2853         gdbpy_breakpoint_has_py_cond.
2854         * python/python.c: Add python.h to includes.  Remove python.h from
2855         HAVE_PYTHON definition
2856         (gdbpy_should_stop): New dummy function.
2857         (gdbpy_breakpoint_has_py_cond): New dummy function.
2858         * python/py-breakpoint.c (bppy_init): Rewrite to allow
2859         sub-classing capabilities.
2860         (gdbpy_should_stop): New function.
2861         (gdbpy_breakpoint_has_py_cond): New function.
2862         (local_setattro): New function.
2863         * breakpoint.c (condition_command): Add check for Python 'stop'
2864         operation.
2865         (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2866         operation function as part of stop/continue tests.
2867
2868 2011-03-14  Tom Tromey  <tromey@redhat.com>
2869
2870         PR gdb/12576:
2871         * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2872         (needs_frame_dwarf_call): Likewise.
2873
2874 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
2875
2876         Fix ARI warning about functions without parameters that do not
2877         use (void).
2878         * breakpoint.c (all_tracepoints): Replace () by (void).
2879         * f-exp.y (match_string_literal): Ditto.
2880         (yylex): Ditto.
2881         * m2-exp.y (yylex): Ditto.
2882         * mep-tdep.c (current_me_module): Ditto.
2883         (current_options): Ditto.
2884         (current_cop_data_bus_width): Ditto.
2885         (current_cr_names): Ditto.
2886         (current_cr_is_float): Ditto.
2887         (current_ccr_names): Ditto.
2888         * objc-exp.y (yylex): Ditto.
2889         * p-exp.y (yylex): Ditto.
2890         * remote.c (send_interrupt_sequence): Ditto.
2891         * tracepoint.c (current_trace_status): Ditto.
2892         * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2893         * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2894
2895 2011-03-11  Michael Snyder  <msnyder@vmware.com>
2896
2897         * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2898         * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2899         (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2900         * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2901         * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2902
2903         * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2904         (delete_async_event_handler): Ditto.
2905
2906         * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2907
2908         * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2909
2910         * top.c (set_verbose): Assert showcmd was found.
2911
2912 2011-03-11  Maxim Grigoriev  <maxim2405@gmail.com>
2913
2914         * xtensa-tdep.c (warning_once): Correct style issues.
2915
2916 2011-03-11  Yao Qi  <yao@codesourcery.com>
2917
2918         * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2919
2920 2011-03-11  Andreas Schwab  <schwab@redhat.com>
2921
2922         * common/aclocal.m4: Remove.
2923
2924 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
2925
2926         * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2927         (xtensa_write_register, xtensa_read_register): Likewise.
2928         (xtensa_hextochar): Removed.
2929         (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2930
2931 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
2932
2933         * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
2934         (xtensa_call0_frame_cache_t): Update comments.  New fields added.
2935         (xtensa_alloc_frame_cache): Add initialization for new fields.
2936         (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2937         (warning_once): New function.
2938         (xtensa_insn_kind): New item c0opc_and.
2939         (call0_classify_opcode): Add the case for AND instruction.
2940         (call0_track_op): Change arguments.  New local variable litbase.
2941         Add the case to handle c0opc_and.  Update algorithms for c0opc_mov,
2942         c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2943         in the prologue.
2944         Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
2945         (call0_analyze_prologue): Update the comments.  Change arguments.
2946         Add the variety of updates to handle extended prologues, which now can
2947         conduct dynamic stack adjustments.
2948         (call0_frame_cache): Likewise.
2949         (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2950         (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2951
2952 2011-03-10  Michael Snyder  <msnyder@vmware.com>
2953
2954         * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2955         (cmd_qtframe): Ditto.
2956         (cmd_qtbuffer): Ditto.
2957         (cmd_bigqtbuffer): Ditto.
2958
2959 2011-03-10  Tom Tromey  <tromey@redhat.com>
2960
2961         * tracepoint.c (trace_actions_command): Update.
2962         * thread.c (thread_apply_command): Update.
2963         * reverse.c (delete_bookmark_command): Update.
2964         (bookmarks_info): Update.
2965         * printcmd.c (undisplay_command): Update.
2966         * memattr.c (mem_enable_command): Update.
2967         (mem_disable_command): Update.
2968         (mem_delete_command): Update.
2969         * inferior.c (detach_inferior_command): Update.
2970         (kill_inferior_command): Update.
2971         (remove_inferior_command): Update.
2972         * cli/cli-utils.h (struct get_number_or_range_state): New.
2973         (init_number_or_range): Declare.
2974         (get_number_or_range): Update.
2975         * cli/cli-utils.c (init_number_or_range): New function.
2976         (get_number_or_range): Change 'pp' parameter to 'state'.  Remove
2977         static variables.
2978         (number_is_in_list): Update.
2979         * breakpoint.h (get_tracepoint_by_number): Update.
2980         * breakpoint.c (map_breakpoint_numbers): Update for change to
2981         get_number_or_range.
2982         (find_location_by_number): Use get_number, not
2983         get_number_or_range.
2984         (trace_pass_set_count): New function.
2985         (trace_pass_command): Update for change to get_number_or_range.
2986         Rework loop logic.
2987         (get_tracepoint_by_number): Remove 'multi_p' parameter; add
2988         'state' parameter.
2989
2990 2011-03-10  Phil Muldoon  <pmuldoon@redhat.com>
2991
2992         * python/py-param.c (add_setshow_generic): Add set/show callback
2993         parameters.  Register Python object context.
2994         (get_show_value): New function.
2995         (get_set_value): New function.
2996         (call_doc_function): New function.
2997         (get_doc_string): Move behind get_show_value/get_set_value.
2998
2999 2011-03-10  Andreas Tobler  <andreast-list@fgznet.ch>
3000
3001         * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
3002
3003 2011-03-09  Maxim Grigoriev  <maxim2405@gmail.com>
3004
3005         * xtensa-tdep.c (xtensa_read_register): Add comment.
3006         (xtensa_write_register): Likewise.
3007         (xtensa_hextochar): Add comment and update to match coding conventions.
3008         (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
3009         (execute_l32e, execute_s32e, execute_code): Update comments.
3010         (xtensa_exception_handler_t): Update to match coding conventions.
3011         (xtensa_insn_kind): Likewise.
3012
3013 2011-03-09  Michael Snyder  <msnyder@vmware.com>
3014
3015         * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
3016
3017 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
3018
3019         * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
3020
3021 2011-03-09  Tom Tromey  <tromey@redhat.com>
3022
3023         * thread.c (restore_selected_frame): Handle frame_level == -1.
3024         (make_cleanup_restore_current_thread): Use
3025         get_selected_frame_if_set.
3026         * frame.h (get_selected_frame_if_set): Declare.
3027         * frame.c (get_selected_frame_if_set): New function.
3028
3029 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
3030
3031         * cli/cli-cmds.c (shell_escape): Use lbasename.
3032         * coffread.c (coff_start_symtab): Constify parameter.
3033         (complete_symtab): Constify `name' parameter.
3034         (coff_symtab_read): Constify `filestring' local.
3035         (coff_getfilename): Constify return and `result' local.
3036         Use lbasename.
3037         * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
3038         * linux-fork.c (info_checkpoints_command): Use lbasename.
3039         * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
3040         * minsyms.c (lookup_minimal_symbol): Use lbasename.
3041         * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
3042         * procfs.c (procfs_make_note_section): Use lbasename.
3043         * tui/tui-io.c (printable_part): Constity return and parameter.
3044         Use lbasename.
3045         (print_filename): Constify parameters, and local `s'.
3046         (tui_rl_display_match_list): Constify local `temp'.
3047
3048 2011-03-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
3049
3050         Revert:
3051         2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3052         Fix DWARF-3+ DW_AT_accessibility default assumption.
3053         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3054         cu->header.version >= 3.
3055
3056 2011-03-09  Yao Qi  <yao@codesourcery.com>
3057
3058         * common/Makefile.in: Remove.
3059         * common/configure: Remove.
3060         * common/configure.ac: Remove.
3061
3062 2011-03-09  Yao Qi  <yao@codesourcery.com>
3063
3064         Revert:
3065         2011-02-11  Yao Qi  <yao@codesourcery.com>
3066
3067         * common/Makefile.in: Add copyright header.
3068
3069         2011-02-11  Yao Qi  <yao@codesourcery.com>
3070
3071         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
3072         libcommon.a.
3073         * configure.ac: Add common to sub dir.
3074         * configure: Regenerate.
3075
3076 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
3077
3078         * xtensa-tdep.c (call0_ret): New function.
3079         (xtensa_skip_prologue): Speed up analysis.
3080
3081 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
3082
3083         * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
3084         while executing MI command -data-list-changed-registers.
3085
3086 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
3087
3088         * xtensa-tdep.c (xtensa_read_register): New function.
3089         (xtensa_write_register): New function.
3090         (xtensa_find_register_by_name): New function.
3091         (xtensa_windowed_frame_cache): Update comments in type description.
3092         (xtensa_frame_cache): Likewise.
3093         (xtensa_window_interrupt_insn): New function.
3094         (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
3095         (xtensa_insn_kind): Add new instructions.
3096         (rwx_special_register): New function.
3097         (call0_classify_opcode): Add new instructions to the analysis.
3098         (a0_saved, a7_saved, a11_saved): New variables.
3099         (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
3100         (execute_l32e): New function.
3101         (execute_s32e): New function.
3102         (xtensa_exception_handler_t): New type.
3103         (execute_code): New function.
3104         (xtensa_window_interrupt_frame_cache): New function to conduct frame
3105         analysis for Xtensa Window Exception handlers.
3106
3107 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
3108
3109         * xtensa-tdep.c (TX_PS): New.
3110         (windowing_enabled): Update to count for Call0 ABI.
3111         (xtensa_hextochar): New.
3112         (xtensa_init_reggroups): Make algorithm generic.
3113         (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
3114
3115 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
3116
3117         * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
3118
3119 2011-03-08  Michael Snyder  <msnyder@vmware.com>
3120
3121         * i386-tdep.c (i386_follow_jump): Check return value of
3122         target_read_memory.
3123         (i386_analyze_struct_return): Ditto.
3124         (i386_skip_probe): Ditto.
3125         (i386_match_insn): Ditto.
3126         (i386_skip_noop): Ditto.
3127         (i386_analyze_frame_setup): Ditto.
3128         (i386_analyze_register_saves): Ditto.
3129         (i386_skip_prologue): Ditto.
3130         (i386_skip_main_prologue): Ditto.
3131
3132         * target.c (read_whatever_is_readable): Fix memory leak.
3133
3134         * i386-tdep.c (i386_process_record): Document fall through.
3135
3136 2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3137
3138         Fix DWARF-3+ DW_AT_accessibility default assumption.
3139         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3140         cu->header.version >= 3.
3141
3142 2011-03-08  Pedro Alves  <pedro@codesourcery.com>
3143
3144         * remote.c (remote_check_symbols): Skip if the target has no
3145         execution.
3146
3147 2011-03-08  Joel Brobecker  <brobecker@adacore.com>
3148
3149         * target.c (read_whatever_is_readable): Reformat comment,
3150         with a minor typo fix. Minor reformatting of the code.
3151
3152 2011-03-08  Yao Qi  <yao@codesourcery.com>
3153
3154         * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
3155         (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
3156         Use cached result instead of calling displaced_in_arm_mode again.
3157         (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
3158         (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
3159         (cleanup_copro_load_store, copy_copro_load_store): Likewise.
3160         (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
3161         (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
3162         (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
3163         (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
3164         (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
3165         (cleanup_block_load_pc, copy_block_xfer): Likewise.
3166         * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
3167         (arm_catch_kernel_helper_return): Likewise.
3168         * gdb/arm-tdep.h : Update function declarations.
3169
3170 2011-03-07  Michael Snyder  <msnyder@vmware.com>
3171
3172         * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
3173
3174         * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
3175
3176         * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
3177
3178         * elfread.c (elf_symtab_read): Stop memory leak.
3179
3180         * main.c (captured_main): Fix memory leak.
3181
3182 2011-03-07  Andreas Schwab  <schwab@linux-m68k.org>
3183
3184         * ada-lang.c (compare_names): Call is_name_suffix with string1
3185         instead of string2.
3186
3187 2011-03-07  Tom Tromey  <tromey@redhat.com>
3188
3189         * xcoffread.c (xcoff_sym_fns): Update.
3190         * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
3191         (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
3192         * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
3193         (symbol_file_add_with_addrs_or_offsets): Likewise.
3194         (reread_symbols): Handle OBJF_PSYMTABS_READ.
3195         * somread.c (som_sym_fns): Update.
3196         * psymtab.h (require_partial_symbols): Declare.
3197         * psymtab.c (require_partial_symbols): New function.
3198         (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
3199         (ALL_OBJFILE_PSYMTABS): Undef.
3200         (ALL_PSYMTABS): Move from psympriv.h.
3201         (lookup_partial_symtab, find_pc_sect_psymtab)
3202         (lookup_symbol_aux_psymtabs, relocate_psymtabs)
3203         (find_last_source_symtab_from_partial)
3204         (forget_cached_source_info_partial)
3205         (print_psymtab_stats_for_objfile, read_symtabs_for_function)
3206         (expand_partial_symbol_tables, read_psymtabs_with_filename)
3207         (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
3208         (find_symbol_file_from_partial, map_matching_symbols_psymtab)
3209         (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
3210         Use ALL_OBJFILE_PSYMTABS_REQUIRED.
3211         * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
3212         * objfiles.h (OBJF_PSYMTABS_READ): New macro.
3213         * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
3214         psymtabs.
3215         * mipsread.c (ecoff_sym_fns): Update.
3216         * machoread.c (macho_sym_fns): Update.
3217         * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
3218         (read_psyms): New function.
3219         (elf_sym_fns, elf_sym_fns_gdb_index): Update.
3220         (elf_sym_fns_lazy_psyms): New global.
3221         * dwarf2read.c (dwarf2_initialize_objfile): Don't call
3222         dwarf2_build_psymtabs.
3223         * dbxread.c (aout_sym_fns): Update.
3224         * coffread.c (coff_sym_fns): Update.
3225
3226 2011-03-07  Tom Tromey  <tromey@redhat.com>
3227
3228         * infrun.c (print_exited_reason): Include inferior id and pid in
3229         message.
3230
3231 2011-03-07  Tom Tromey  <tromey@redhat.com>
3232
3233         * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3234         parameter.
3235         (target_has_execution_1): Update.
3236         (target_has_execution_current): Declare.
3237         (target_has_execution): Call target_has_execution_current.
3238         (default_child_has_execution): Update.
3239         * target.c (default_child_has_execution): Add 'the_ptid'
3240         parameter.
3241         (target_has_execution_1): Likewise.
3242         (target_has_execution_current): New function.
3243         (add_target): Update.
3244         (init_dummy_target): Update.
3245         * remote-m32r-sdi.c (m32r_has_execution): New function.
3246         (init_m32r_ops): Use it.
3247         * record.c (record_core_has_execution): Now static.  Add
3248         'the_ptid' parameter.
3249         * inferior.c (have_live_inferiors): Don't save current thread.
3250         Use target_has_execution_1.
3251
3252 2011-03-07  Yao Qi  <yao@codesourcery.com>
3253
3254         * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3255
3256 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
3257
3258         * elfread.c (elf_symtab_read): Minor reformatting.
3259
3260 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
3261
3262         * objc-lang.c (selectors_info): Minor reformatting.
3263
3264 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
3265
3266         * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3267
3268 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
3269             Michael Snyder  <msnyder@vmware.com>
3270
3271         * ada-valprint.c (ada_val_print_array): Move the declaration of
3272         "byte_order" and "elttype" inside the block where these variables
3273         are actually used.  Remove some special handling for the case
3274         where "elttype" and "eltlen" are null.  Replace by a comment
3275         and a couple of assertion checks.
3276
3277 2011-03-05  Michael Snyder  <msnyder@vmware.com>
3278
3279         * source.c (add_path): Replace semicolon at end of block.
3280         * dwarf2expr.c (execute_stack_op): Ditto.
3281
3282 2011-03-05  Mike Frysinger  <vapier@gentoo.org>
3283
3284         * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
3285         * configure.tgt (bfin-*-*linux*): Define gdb_sim.
3286         (bfin-*-*): Likewise.
3287
3288 2011-03-05  Michael Snyder  <msnyder@vmware.com>
3289
3290         * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
3291         * mdebugread.c (parse_symbol): Ditto.
3292         * parse.c (parse_exp_in_context): Ditto.
3293         * source.c (add_path): Ditto.
3294         * utils.c (gnu_debuglink_crc32): Ditto.
3295         * varobj.c (variable_language): Ditto.
3296
3297         * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
3298
3299 2011-03-04  Michael Snyder  <msnyder@vmware.com>
3300
3301         * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
3302
3303         * symfile.c (simple_overlay_update): Check for null return value
3304         from lookup_minimal_symbol.
3305
3306         * xml-syscall.c (syscall_start_syscall): Assert name is non null.
3307
3308 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3309
3310         * eval.c (parse_and_eval_address_1): Remove function.
3311         * linespec.c (decode_indirect): Call parse_to_comma_and_eval
3312         instead of parse_and_eval_address_1.
3313         * value.h (parse_and_eval_address_1): Remove prototype.
3314
3315 2011-03-04  Michael Snyder  <msnyder@vmware.com>
3316
3317         * remote.c (putpkt_binary): Document that case stmt falls through.
3318
3319 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3320
3321         * breakpointc (print_it_typical): Move NULL check from here...
3322         (print_bp_stop_message): ... to here.
3323
3324 2011-03-04  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
3325
3326         * breakpoint.c (enable_command): Use break instead of continue,
3327         and fill in a missing break.
3328         (disable_command): Ditto.
3329
3330 2011-03-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
3331
3332         * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
3333         (terminal_save_ours): Remove misleading comment.
3334         (inflow_inferior_data_cleanup): Free ttystate.
3335         (inflow_inferior_exit): Likewise.
3336         (copy_terminal_info): Copy ttystate.
3337
3338         * serial.c (serial_copy_tty_state): New function.
3339         * serial.h (serial_copy_tty_state): Add prototype.
3340         (struct serial_ops): Add copy_tty_state callback.
3341         * ser-base.c (ser_base_copy_tty_state): New function.
3342         * ser-base.h (ser_base_copy_tty_state): Add prototype.
3343         * ser-go32.c (dos_copy_tty_state): New function.
3344         (dos_ops): Install copy_tty_state callback.
3345         * ser-mingw.c (_initialize_ser_windows): Likewise.
3346         * ser-pipe.c (_initialize_ser_pipe): Likewise.
3347         * ser-unix.c (hardwire_copy_tty_state): New function.
3348         (_initialize_ser_hardwire): Install it.
3349
3350 2011-03-04  Michael Snyder  <msnyder@vmware.com>
3351
3352         * breakpoint.c (create_breakpoint): Add missing break statement.
3353
3354         Reverting this patch:
3355         * infcall.c (call_function_by_hand): Add break statements for lint.
3356
3357         Reverting this patch:
3358         * cli/cli-script.c (script_from_file): Add break for lint.
3359
3360 2011-03-04  Michael Snyder  <msnyder@vmware.com>
3361
3362         * solib.c (reload_shared_libraries_1): Close memory leak.
3363
3364 2011-03-03  Tom Tromey  <tromey@redhat.com>
3365
3366         PR gdb/12538:
3367         * dwarf2read.c (process_psymtab_comp_unit): Handle case where
3368         DW_STRING is NULL.
3369
3370 2011-03-03  Michael Snyder  <msnyder@vmware.com>
3371
3372         * remote-fileio.c (remote_fileio_func_fstat): Initialize all
3373         fields of struct 'st' to zero.
3374
3375         * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
3376         sal.pspace before calling set_current_source_symtab_and_line.
3377
3378 2011-03-03  Yao Qi  <yao@codesourcery.com>
3379
3380         * Makefile.in (configure-common): Remove.  Let Makefile
3381         in dir common to rebuild itself.
3382         (common/Makefile): Likewise.
3383
3384 2011-03-03  Joel Brobecker  <brobecker@adacore.com>
3385
3386         * utils.c (parse_escape): Add i18n markup in error message.
3387
3388 2011-03-03  Yao Qi  <yao@codesourcery.com>
3389
3390         * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
3391         ARM_PC_REGNUM.
3392         (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
3393         (displaced_write_reg, displaced_read_reg): Likewise.
3394         (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
3395         (cleanup_block_load_pc, copy_block_xfer): Likewise.
3396         (cleanup_branch): Replace magic number 14 and 15 with
3397         ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
3398
3399 2011-03-02  Michael Snyder  <msnyder@vmware.com>
3400
3401         * maint.c (maintenance_do_deprecate): No need to check for NULL.
3402
3403         * cli/cli-script.c (script_from_file): Add break for lint.
3404
3405         * mdebugread.c (parse_partial_symbols): Fix indent.
3406
3407         * target-descriptions.c (tdesc_gdb_type): No need to call
3408         xstrdup, callee saves a copy.
3409
3410         * printcmd.c (print_scalar_formatted): Use strncpy for safety.
3411
3412         * infcall.c (call_function_by_hand): Add break statements for lint.
3413
3414         * utils.c (parse_escape): Escape the escape char.
3415
3416         * python/py-inferior.c (build_inferior_list): Error out if
3417         PyList_Append fails.
3418         (gdbpy_inferiors): Error out if build_inferior_list fails.
3419
3420         * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
3421         a function call.
3422
3423         * record.c (record_restore): Move printf to before error return.
3424
3425 2011-03-02  Yao Qi  <yao@codesourcery.com>
3426
3427         * arm-tdep.h (struct displaced_step_closure): Add two new fields
3428         is_thumb and insn_size.
3429         * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
3430         on both ARM and Thumb mode.
3431         (arm_process_displaced_insn): Set is_thumb and insn_size.
3432         (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
3433         (arm_displaced_step_fixup): Likewise.
3434
3435 2011-03-01  Michael Snyder  <msnyder@vmware.com>
3436
3437         * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
3438
3439         * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3440
3441         * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3442
3443         * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3444
3445         * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3446         with xmalloc.
3447
3448         * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3449         which shadows function parameter.
3450
3451         * tracepoint.c (create_tsv_from_upload): Superfluous call
3452         to xstrdup.  Callee already calls xstrdup.
3453
3454         * linespec.c (decode_line_1): Remove unnecessary null check.
3455
3456         * tracepoint.c (scope_info): Fix mem leak, remove underused
3457         variable.
3458
3459         * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3460         superfluous null check.
3461
3462         * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
3463         (value_of_builtin_frame_fp_reg): Ditto.
3464
3465         * event-top.c (display_gdb_prompt): Remove superfluous null check.
3466
3467         * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3468         be null.
3469
3470         * linespec.c (decode_line_1): Check for null before dereference.
3471
3472         * reverse.c (record_restore): Move null-check to before pointer
3473         dereference.
3474
3475         * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3476
3477         * objc-lang.c (selectors_info): Add explanitory comment.
3478         (classes_info): Ditto.
3479
3480 2011-03-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
3481
3482         * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3483         (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3484         versions of the trampoline.  Handle Thumb vs. ARM addresses.
3485         (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3486         (arm_linux_init_abi): Install it.
3487         * arm-tdep.c (arm_psr_thumb_bit): Make global.
3488         * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3489
3490 2011-02-28  Michael Snyder  <msnyder@vmware.com>
3491
3492         * ui-out.c (ui_out_field_core_addr): Make local char buffer
3493         a little bigger, to avoid possibility of an overflow.
3494
3495         * breakpoint.c (breakpoint_adjustment_warning): Make local char
3496         buffers a little bigger, to avoid possibility of an overflow.
3497
3498         * coffread.c (coff_getfilename): Add check to avoid overflow.
3499
3500         * objc-lang.c (selectors_info): Add a small safety margin to
3501         avoid overflow.
3502         (classes_info): Error out on too long REGEXP.
3503
3504         * infrun.c (handle_inferior_event): Remove unused function call.
3505
3506         * fork-child.c (fork_inferior): Remove ifdef'd code and
3507         unused variable.
3508
3509         * linux-thread-db.c (attach_thread): Discard unused value.
3510
3511         * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3512
3513         * remote.c (remote_get_noisy_reply): Discard unused value.
3514         (remote_vcont_resume): Ditto.
3515         (remote_stop_ns): Ditto.
3516
3517         * linespec.c (decode_objc): Delete unused variable.
3518
3519         * tui/tui-regs.c (tui_register_format): Delete unused variable.
3520
3521         * dwarf2read.c (add_partial_symbol): Discard unused values.
3522         (read_base_type): Delete unused variable.
3523
3524         * dbxread.c (read_dbx_symtab): Discard unused value.
3525
3526         * eval.c (evaluate_subexp_standard): Delete unused variable,
3527         and discard unused values.
3528
3529         * infcmd.c (_initialize_infcmd): Discard unused values.
3530
3531         * stabsread.c (rs6000_builtin_type): Missing break statement.
3532
3533         * dbxread.c (process_one_symbol): Discard unused value.
3534
3535         * coffread.c (coff_end_symtab): Delete unused variable.
3536
3537         * dwarf2read.c (dw2_get_file_names): Discard unused value.
3538         (dwarf2_add_typedef): Delete unused variable.
3539         (read_namespace): Ditto.
3540         (dwarf_decode_macros): Ditto.
3541
3542         * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3543
3544         * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3545
3546         * p-valprint.c (pascal_val_print): Discard unused value.
3547
3548         * utils.c (nquery): Call va_end before return;
3549         (yquery): Ditto.
3550         (query): Ditto.
3551
3552         * proc-service.c (ps_plog): Call va_end before return.
3553
3554 2011-02-28  Tom Tromey  <tromey@redhat.com>
3555
3556         * python/python.c (gdbpy_value_cst): New global.
3557         (_initialize_python): Initialize it.
3558         * python/python-internal.h (gdbpy_value_cst): Declare.
3559         * python/py-value.c (convert_value_from_python): Use
3560         gdbpy_value_cst.
3561
3562 2011-02-28  Michael Snyder  <msnyder@vmware.com>
3563
3564         * python/py-cmd.c (cmdpy_init): Fix memory leak.
3565
3566         * breakpoint.c (catch_syscall_completer): Free malloced list.
3567
3568         * jv-lang.c (java_primitive_type_from_name): Add missing break.
3569
3570         * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3571         (lval_func_check_synthetic_pointer): Ditto.
3572         (lval_func_free_closure): Fix use-after-free.
3573
3574 2011-02-28  Tom Tromey  <tromey@redhat.com>
3575
3576         * psymtab.c (expand_partial_symbol_tables): Use
3577         ALL_OBJFILE_PSYMTABS.
3578
3579 2011-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3580
3581         * objc-lang.c (selectors_info): Error on too long REGEXP.
3582
3583 2011-02-28  Michael Snyder  <msnyder@vmware.com>
3584
3585         * python/py-param.c (set_parameter_value): Add missing
3586         break statement.
3587
3588         * linux-record.c (record_linux_system_call): Add missing
3589         break statement.
3590
3591 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
3592
3593         * breakpoint.c (print_one_breakpoint_location): Remove unused
3594         argument PRINT_ADDRESS_BITS.  Update callers.
3595         (print_one_breakpoint): Likewise.
3596
3597 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
3598
3599         * breakpoint.c (wrap_indent_at_field): New function.
3600         (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3601         Allocate ui_stream locally instead of using STB argument.
3602         (print_one_breakpoint_location): Update call.
3603         * ui-out.c (ui_out_query_field): New function.
3604         * ui-out.h (ui_out_query_field): Add prototype.
3605
3606 2011-02-28  Joel Brobecker  <brobecker@adacore.com>
3607
3608         From Michael Snyder  <msnyder@vmware.com>
3609         * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3610
3611 2011-02-27  Michael Snyder  <msnyder@vmware.com>
3612
3613         * objc-lang.c (selectors_info): Prevent string overrun.
3614
3615         * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3616         error in strncpy.
3617
3618         * symtab.c (rbreak_command): Move variable 'file_name' to
3619         outer scope.
3620
3621         * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3622         param with a local variable of the same name.
3623
3624 2011-02-27  Michael Snyder  <msnyder@vmware.com>
3625
3626         * value.c (value_from_history_ref): New function.
3627         * value.h (value_from_history_ref): Export.
3628         * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3629         to parse value history references.
3630         * cli/cli-utils.h (get_number_trailer): Update comment.
3631
3632 2011-02-27  Michael Snyder  <msnyder@vmware.com>
3633
3634         * inferior.c (detach_inferior_command): Use get_number_or_range.
3635         (kill_inferior_command): Ditto.
3636         (remove_inferior_command): Ditto.
3637         (initialize_inferiors): Make command names plural.
3638         Update help strings.
3639
3640 2011-02-27  Michael Snyder  <msnyder@vmware.com>
3641
3642         * darwin-nat-info.c: Fix comment typo.
3643         * dwarf2expr.h: Ditto.
3644         * fbsd-nat.c: Ditto.
3645         * fbsd-nat.h: Ditto.
3646         * frame-unwind.h: Ditto.
3647         * frame.h: Ditto.
3648         * hppa-hpux-tdep.c: Ditto.
3649         * i386-linux-nat.c: Ditto.
3650         * linux-nat.c: Ditto.
3651         * nbsd-nat.c: Ditto.
3652         * nbsd-nat.h: Ditto.
3653         * ppc-linux-tdep.c: Ditto.
3654         * serial.c: Ditto.
3655         * ui-file.h: Ditto.
3656         * tui/tui-winsource.c: Ditto.
3657
3658 2011-02-26  Michael Snyder  <msnyder@vmware.com>
3659
3660         * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3661
3662         * maint.c (maintenance_do_deprecate): Plug a memory leak.
3663
3664         * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3665         with a local variable of the same name.
3666
3667         * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
3668         param with a local variable of the same name.
3669         (i387_supply_xsave): Ditto.
3670
3671         * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3672         that it does not shadow a function parameter.
3673
3674         * i386-nat.c (i386_length_and_rw_bits): Document that case
3675         statement is meant to fall through.
3676
3677         * expprint.c (dump_subexp_body_standard): Document that case
3678         statement is meant to fall through.
3679
3680         * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3681         dead if statement.  Condition can't be false.
3682
3683 2011-02-25  Michael Snyder  <msnyder@vmware.com>
3684
3685         * arm-tdep.c: Fix typos in comments.
3686         * bsd-uthread.c: Ditto.
3687         * completer.c: Ditto.
3688         * corelow.c: Ditto.
3689         * cp-namespace.c: Ditto.
3690         * cp-support.c: Ditto.
3691         * cris-tdep.c: Ditto.
3692         * dbxread.c: Ditto.
3693         * dwarf2read.c: Ditto.
3694         * frame.h: Ditto.
3695         * gdbtypes.h: Ditto.
3696         * inferior.h: Ditto.
3697         * mdebugread.c: Ditto.
3698         * mips-tdep.c: Ditto.
3699         * ppc-linux-nat.c: Ditto.
3700         * ppc-linux-tdep.c: Ditto.
3701         * printcmd.c: Ditto.
3702         * sol-thread.c: Ditto.
3703         * solib-frv.c: Ditto.
3704         * solist.h: Ditto.
3705         * sparc64-tdep.c: Ditto.
3706         * spu-tdep.c: Ditto.
3707         * stabsread.c: Ditto.
3708         * symfile.c: Ditto.
3709         * valops.c: Ditto.
3710         * varobj.c: Ditto.
3711         * vax-nat.c: Ditto.
3712         * python/py-block.c: Ditto.
3713         * python/py-symbol.c: Ditto.
3714         * python/py-symtab.c: Ditto.
3715         * python/py-value.c: Ditto.
3716         * tui/tui-win.c: Ditto.
3717
3718 2011-02-25  Michael Snyder  <msnyder@vmware.com>
3719
3720         * inferior.c (print_inferior): Accept a string instead of an int
3721         for requested_inferiors, and use get_number_or_range to parse it.
3722         (info_inferiors_command): Pass args string to print_inferior.
3723         (initialize_inferiors): Change help string for info inferiors.
3724         * inferior.h (print_inferior): Export prototype change.
3725
3726 2011-02-25  Tom Tromey  <tromey@redhat.com>
3727
3728         * common/ax.def (invalid2): Set to 0x31.
3729
3730 2011-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3731
3732         * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3733         L and plongest.
3734         (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3735         use L and plongest.
3736         (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3737
3738 2011-02-24  Michael Snyder  <msnyder@vmware.com>
3739
3740         * Makefile.in (clean): Make clean should remove generated files
3741         observer.h and observer.inc.
3742
3743 2011-02-24  Joel Brobecker  <brobecker@adacore.com>
3744
3745         Revert the following patch (not approved yet):
3746         2011-02-21  Hui Zhu  <teawater@gmail.com>
3747         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3748         * ax-gdb.c (gen_printf_expr_callback): New function.
3749         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3750         * ax-general.c (ax_memcpy): New function.
3751         (ax_print): Handle "printf".
3752         (ax_reqs): Ditto.
3753         * ax.h (ax_memcpy): Forward declare.
3754         * common/ax.def (invalid2): Removed.
3755         (printf): New entry.
3756         * printcmd.c (printcmd.h): New include.
3757         (string_printf): New function.
3758         (ui_printf): Removed.
3759         (printf_command): Remove static.  Call string_printf.
3760         (eval_command): Call string_printf.
3761         * printcmd.h: New file.
3762         * tracepoint.c (validate_actionline,
3763         encode_actions_1): handle printf_command.
3764
3765 2011-02-23  Tom Tromey  <tromey@redhat.com>
3766
3767         * ax-general.c (ax_pick): Add missing newline.
3768
3769 2011-02-23  Michael Snyder  <msnyder@vmware.com>
3770
3771         * breakpoint.c (breakpoint_1): Change first argument from an int
3772         to a char pointer, so that the function now accepts a list of
3773         breakpoints rather than just one.  Use new function
3774         'number_is_in_list' to implement.
3775         (breakpoints_info): Pass char * instead of int to breakpoint_1.
3776         (watchpoints_info): Ditto.
3777         (tracepoints_info): Ditto.
3778         (maintenance_info_breakpoints): Ditto.
3779         (_initialize_breakpoint): Update help strings to reflect the fact
3780         that these functions can now take more than one argument.
3781         * cli/cli-utils.c (number_is_in_list): New function.
3782         * cli/cli-utils.h (number_is_in_list): Export.
3783
3784 2011-02-23  Michael Snyder  <msnyder@vmware.com>
3785
3786         * memattr.c (mem_enable_command): Use get_number_or_range.
3787         (mem_disable_command): Ditto.
3788         (mem_delete_command): Ditto.
3789         (_initialize_mem): Tweak usage message to reflect multiple
3790         arguments.
3791
3792 2011-02-22  Doug Evans  <dje@google.com>
3793
3794         Add gdb.lookup_global_symbol python function.
3795         * NEWS: Add entry.
3796         * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3797         * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3798         * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3799
3800 2011-02-22  Tom Tromey  <tromey@redhat.com>
3801
3802         * language.c (language_class_name_from_physname): Rename
3803         'curr_language' argument to 'lang'; use in body.
3804
3805 2011-02-22  Michael Snyder  <msnyder@vmware.com>
3806
3807         * cli/cli-utils.c (number_is_in_list): Check for zero return.
3808
3809 2011-02-22  Pedro Alves  <pedro@codesourcery.com>
3810
3811         * frame-unwind.h: Fix comment to mention the this frame, not the
3812         next.
3813
3814 2011-02-22  Tom Tromey  <tromey@redhat.com>
3815
3816         * symfile.c (auto_solib_limit): Remove.
3817         * symfile.h (auto_solib_limit): Remove.
3818
3819 2011-02-22  Joel Brobecker  <brobecker@adacore.com>
3820
3821         * Makefile.in (INSTALLED_LIBS): Delete.  Update comment.
3822
3823 2011-02-21  Michael Snyder  <msnyder@vmware.com>
3824
3825         * gdbthread.h (print_thread_info): Change prototype.
3826         * thread.c (print_thread_info): Accept char* instead of int for
3827         requested_threads argument.  Use new function number_is_in_list
3828         to determine which threads to list.
3829         (info_threads_command): Pass char* to print_thread_info.
3830         * cli/cli-utils.c (number_is_in_list): New function.
3831         * cli/cli-utils.h (number_is_in_list): Export.
3832         * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
3833         print_thread_info.
3834         (print_one_inferior): Ditto.
3835         (mi_cmd_list_thread_groups): Ditto.
3836
3837 2011-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3838
3839         * common/Makefile.in (CFLAGS): New.
3840         (COMPILE): Add $(CFLAGS).
3841
3842 2011-02-21  Tom Tromey  <tromey@redhat.com>
3843
3844         * breakpoint.c (catch_syscall_command_1): Fix typo.
3845
3846 2011-02-21  Tom Tromey  <tromey@redhat.com>
3847
3848         * reverse.c: Include cli-utils.h.
3849         * printcmd.c: Include cli-utils.h.
3850         (string_printf): Use skip_spaces.
3851         * cli/cli-utils.h: New file.
3852         * cli/cli-utils.c: New file.
3853         * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3854         * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3855         * breakpoint.h (get_number, get_number_or_range): Move to
3856         cli-utils.h.
3857         * breakpoint.c: Include cli-utils.h.
3858         (get_number_trailer, get_number, get_number_or_range)
3859         (ep_skip_leading_whitespace): Move to cli-utils.c.
3860         (create_breakpoint_sal, find_condition_and_thread)
3861         (decode_static_tracepoint_spec, watch_command_1)
3862         (watch_maybe_just_location, ep_parse_optional_if_clause)
3863         (catch_fork_command_1, catch_exec_command_1)
3864         (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3865         * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3866         (SUBDIR_CLI_SRCS): Add cli-utils.c.
3867         (HFILES_NO_SRCDIR): Add cli-utils.h.
3868         (cli-utils.o): New target.
3869
3870 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
3871
3872         * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3873         before calling discard_all_inferiors.
3874
3875 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
3876
3877         * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3878         (struct builtin_opencl_type): Remove.
3879         (builtin_opencl_type): Change return type to "struct type **".
3880         (lookup_opencl_vector_type): Update caller.
3881         (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3882         (build_opencl_types): Install plain array of "struct type *"
3883         instead of "struct builtin_opencl_type".
3884
3885 2011-02-21  Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3886             Ulrich Weigand  <uweigand@de.ibm.com>
3887
3888         * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3889         (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3890         (struct arm_linux_hwbp_cap): New type.
3891         (arm_linux_get_hwbp_cap): New function.
3892         (arm_linux_get_hw_breakpoint_count): Likewise.
3893         (arm_linux_get_hw_watchpoint_count): Likewise.
3894         (arm_linux_can_use_hw_breakpoint): Likewise.
3895         (arm_hwbp_type): New type.
3896         (arm_hwbp_control_t): Likewise.
3897         (struct arm_linux_hw_breakpoint): Likewise.
3898         (struct arm_linux_thread_points): Likewise.
3899         (arm_threads): New global variable.
3900         (arm_linux_find_breakpoints_by_tid): New function.
3901         (arm_hwbp_control_initialize): Likewise.
3902         (arm_hwbp_control_is_enabled): Likewise.
3903         (arm_hwbp_control_disable): Likewise.
3904         (arm_linux_hw_breakpoint_initialize): Likewise.
3905         (arm_linux_get_hwbp_type): Likewise.
3906         (arm_linux_hw_watchpoint_initialize): Likewise.
3907         (arm_linux_hw_breakpoint_equal): Likewise.
3908         (arm_linux_insert_hw_breakpoint1): Likewise.
3909         (arm_linux_remove_hw_breakpoint1): Likewise.
3910         (arm_linux_insert_hw_breakpoint): Likewise.
3911         (arm_linux_remove_hw_breakpoint): Likewise.
3912         (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3913         (arm_linux_insert_watchpoint): Likewise.
3914         (arm_linux_remove_watchpoint): Likewise.
3915         (arm_linux_stopped_data_address): Likewise.
3916         (arm_linux_stopped_by_watchpoint): Likewise.
3917         (arm_linux_watchpoint_addr_within_range): Likewise.
3918         (arm_linux_new_thread): Likewise.
3919         (arm_linux_thread_exit): Likewise.
3920         (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3921         related target callbacks.  Register arm_linux_new_thread and
3922         arm_linux_thread_exit.
3923         * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3924         * arm-tdep.c (arm_pc_is_thumb): Make global.
3925         (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3926
3927 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
3928
3929         * breakpoint.c (update_watchpoint): Do not attempt to recreate
3930         per-frame locations while within a function epilogue.
3931
3932 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
3933
3934         * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3935         to GNU coding standards.
3936
3937 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
3938
3939         Allow use of mingw native on Windows 95 OS.
3940         * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
3941         (ser_windows_close): Only call CancelIo if function exists.
3942         (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3943         to check for existence of CancelIo function in kernel32 DLL.
3944
3945 2011-02-21  Hui Zhu  <teawater@gmail.com>
3946
3947         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3948         * ax-gdb.c (gen_printf_expr_callback): New function.
3949         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3950         * ax-general.c (ax_memcpy): New function.
3951         (ax_print): Handle "printf".
3952         (ax_reqs): Ditto.
3953         * ax.h (ax_memcpy): Forward declare.
3954         * common/ax.def (invalid2): Removed.
3955         (printf): New entry.
3956         * printcmd.c (printcmd.h): New include.
3957         (string_printf): New function.
3958         (ui_printf): Removed.
3959         (printf_command): Remove static.  Call string_printf.
3960         (eval_command): Call string_printf.
3961         * printcmd.h: New file.
3962         * tracepoint.c (validate_actionline,
3963         encode_actions_1): handle printf_command.
3964
3965 2011-02-19  Michael Snyder  <msnyder@vmware.com>
3966
3967         * reverse.c (delete_one_bookmark): Argument is now bookmark
3968         id rather than pointer to bookmark struct.
3969         (delete_bookmark_command): Use get_number_or_range.
3970         (goto_bookmark_command): Parse with get_number instead of strtoul.
3971         (bookmark_1): New function.  Print info for one bookmark.
3972         (bookmarks_info): Use get_number_or_range and bookmark_1.
3973
3974 2011-02-18  Michael Snyder  <msnyder@vmware.com>
3975
3976         * thread.c (info_threads_command): Re-implement using
3977         get_number_or_range.
3978         (thread_apply_command): Ditto.
3979
3980 2011-02-18  Tom Tromey  <tromey@redhat.com>
3981
3982         * common/ax.def: New file.
3983         * ax.h (enum agent_op): Use ax.def.
3984         * ax-general.c (aop_map): Use ax.def.
3985
3986 2011-02-18  Tom Tromey  <tromey@redhat.com>
3987
3988         * ax-general.c (aop_map): Add pick and rot.
3989         * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3990         <DW_OP_rot>: Implement.
3991         * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
3992         (ax_pick): Declare.
3993         * ax-general.c (ax_pick): New function.
3994
3995 2011-02-18  Tom Tromey  <tromey@redhat.com>
3996
3997         * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
3998
3999 2011-02-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4000             Tom Tromey  <tromey@redhat.com>
4001
4002         * cp-support.c (make_symbol_overload_list_namespace): Do not call
4003         make_symbol_overload_list_block with NULL BLOCK.
4004         * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
4005
4006 2011-02-18  Pedro Alves  <pedro@codesourcery.com>
4007
4008         * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
4009         * breakpoint.h (get_number_or_range): Declare.
4010         * printcmd.c (ALL_DISPLAYS): Declare.
4011         (delete_display): Reimplement taking a display pointer.
4012         (undisplay_command): Accept a range of displays to delete, using
4013         get_number_or_range.
4014
4015 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
4016
4017         * c-valprint.c (c_val_print): Add embedded_offset to address
4018         for arrays of unspecified length.
4019         * p-valprint.c (pascal_val_print): Likewise.
4020
4021 2011-02-18  Yao Qi  <yao@codesourcery.com>
4022
4023         * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
4024         (arm_process_displaced_insn): .. here. Remove parameter INSN.
4025         (thumb_process_displaced_insn): New.
4026         * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
4027         call to arm_process_displaced_insn.
4028         * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
4029
4030 2011-02-17  Tom Tromey  <tromey@redhat.com>
4031
4032         * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
4033         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
4034         compile_dwarf_to_ax.  No longer static.  Call
4035         dwarf2_compile_cfa_to_ax.
4036         (locexpr_tracepoint_var_ref): Update.
4037         (loclist_tracepoint_var_ref): Update.
4038         * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
4039         * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
4040         argument; add 'gdbarch' and 'pc'.
4041         (dwarf2_compile_cfa_to_ax): New function.
4042         (dwarf2_frame_cache): Update.
4043
4044 2011-02-17  Joel Brobecker  <brobecker@adacore.com>
4045
4046         * ada-lang.c (ada_type_of_array): Fix the size of the array
4047         in the case of an unconstrained packed array.
4048
4049 2011-02-17  Yao Qi  <yao@codesourcery.com>
4050
4051         * common/Makefile.in: Add more targets for make.
4052
4053 2011-02-16  Tom Tromey  <tromey@redhat.com>
4054
4055         * dwarf2loc.c (unimplemented): Fix typo.
4056
4057 2011-02-16  Tom Tromey  <tromey@redhat.com>
4058
4059         * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
4060         (compile_dwarf_to_ax) <default>: Use unimplemented.
4061         <DW_OP_deref>: Update.
4062         (disassemble_dwarf_expression): Update.
4063         * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
4064         (decode_locdesc): Update.
4065         * dwarf2expr.h (dwarf_stack_op_name): Update.
4066
4067 2011-02-16  Tom Tromey  <tromey@redhat.com>
4068
4069         * ax.h (struct aop_map) <name>: Now const.
4070
4071 2011-02-16  Tom Tromey  <tromey@redhat.com>
4072
4073         * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
4074         than axs_rvalue.
4075
4076 2011-02-16  Yao Qi  <yao@codesourcery.com>
4077
4078         * infrun.c (get_displaced_step_closure_by_addr): New.
4079         * inferior.h: Declare it.
4080         * arm-tdep.c: (arm_pc_is_thumb): Call
4081         get_displaced_step_closure_by_addr.  Adjust MEMADDR if it
4082         returns non-NULL.
4083
4084 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
4085             Jan Kratochvil  <jan.kratochvil@redhat.com>
4086
4087         gdb/
4088         * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
4089
4090 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
4091             Jan Kratochvil  <jan.kratochvil@redhat.com>
4092
4093         * value.c (value_contents_copy_raw): Extend describing comment.
4094         Assert that the destination contents we're overwriting are wholly
4095         available.
4096         (value_contents_copy): Extend describing comment.
4097
4098 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
4099             Jan Kratochvil  <jan.kratochvil@redhat.com>
4100
4101         * value.c (value_available_contents_eq): Remove redundant local
4102         variables.  Fix available contents comparision.
4103         * value.h (value_available_contents_eq): Extend describing
4104         comment.
4105
4106 2011-02-16  Yao Qi  <yao@codesourcery.com>
4107
4108         * thread.c (info_threads_command): Add missing i18n markup and remove
4109         trailing newline.
4110
4111 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
4112
4113         * breakpoint.c (longjmp_names): New variable.
4114         (struct breakpoint_objfile_data): New type.
4115         (breakpoint_objfile_key): New variable.
4116         (msym_not_found): New variable.
4117         (msym_not_found_p): New predicate.
4118         (get_breakpoint_objfile_data): New function.
4119         (create_overlay_event_breakpoint): Check per-objfile cache for
4120         symbols first.
4121         (create_longjmp_master_breakpoint): Likewise.
4122         (create_std_terminate_master_breakpoint): Likewise.
4123         (create_exception_master_breakpoint): Likewise.
4124         (_initialize_breakpoint): Register per-objfile data key.
4125
4126 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
4127
4128         * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
4129         parameter value.
4130         (create_longjmp_master_breakpoint): Loop over longjmp names.
4131         (create_std_terminate_master_breakpoint): Const-propagate parameter
4132         value.
4133         (update_breakpoints_after_exec): Adjust.
4134         (breakpoint_re_set): Adjust.
4135
4136 2011-02-15  Michael Snyder  <msnyder@vmware.com>
4137
4138         * thread.c (info_threads_command): Process arg as thread id,
4139         or list of thread ids.
4140         (thread_find_command): New command.
4141         (_initialize_thread): Document argument for info threads.
4142         Document 'thread find' command.
4143         * NEWS: Document new command "thread find".
4144
4145 2011-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
4146
4147         * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
4148         * aclocal.m4: Regenerated with aclocal-1.11.1.
4149         * common/configure: Regenerate with autoconf-2.64.
4150
4151 2011-02-15  Ken Werner  <ken.werner@de.ibm.com>
4152
4153         * opencl-lang.c (build_opencl_types): Set the size of the built-in
4154         bool data type to a size of one byte.
4155
4156 2011-02-15  Pedro Alves  <pedro@codesourcery.com>
4157             Jan Kratochvil  <jan.kratochvil@redhat.com>
4158
4159         * target.c (memory_xfer_live_readonly_partial): Document where to
4160         look for interface description.
4161
4162 2011-02-15  Yao Qi  <yao@codesourcery.com>
4163
4164         PR tdep/12352
4165         * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
4166         order to store PC value on stack instead of text section.
4167
4168 2011-02-15  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4169
4170         * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
4171         the EFP register set size.
4172         (efpr_pseudo_register_read): Use regcache_raw_read_part to read
4173         data from the VMX register.
4174         (efpr_pseudo_register_write): Use regcache_raw_write_part to read
4175         and write data from/to the VMX register.
4176
4177 2011-02-14  Michael Snyder  <msnyder@vmware.com>
4178
4179         * command.h (enum command_class): New class 'no_set_class', for
4180         "show" commands without a corresponding "set" command.
4181         * value.c (_initialize_values): Use 'no_set_class' for "show values".
4182         * copying.c (_initialize_copying): Ditto for "show copying" and
4183         "show warranty".
4184         * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
4185         "show version".
4186         * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
4187         which there is no corresponding "set" command (eg. "show copying").
4188
4189 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4190             Jan Kratochvil  <jan.kratochvil@redhat.com>
4191
4192         * exec.c (section_table_available_memory): Change `len' parameter
4193         type to ULONGEST.
4194         * exec.h (section_table_available_memory): Ditto.
4195         * value.h (read_value_memory): Rename the `offset' parameter to
4196         `embedded_offset'.
4197
4198 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4199             Jan Kratochvil  <jan.kratochvil@redhat.com>
4200
4201         * memrange.c (compare_mem_ranges): Mention sort order in
4202         describing comment.
4203         (normalize_mem_ranges): Add comment.  Fix ra->length calculation.
4204         * tracepoint.c (traceframe_available_memory): Extend comment to
4205         mention what happens to RESULT when the target does not support
4206         the query.
4207
4208 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4209             Jan Kratochvil  <jan.kratochvil@redhat.com>
4210
4211         * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
4212         range.
4213
4214 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4215
4216         * value.c (value_bits_valid, value_bits_synthetic_pointer):
4217         No longer handle NULL values.
4218
4219 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4220
4221         * exceptions.h (NOT_AVAILABLE_ERROR): New error.
4222         * value.c: Include "exceptions.h".
4223         (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4224         generic error.
4225         * cp-abi.c: Include gdb_assert.h.
4226         (baseclass_offset): Add `embedded_offset' and `val' parameters.
4227         Assert the method is implemented.  Wrap NOT_AVAILABLE_ERROR
4228         errors.
4229         * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4230         parameters.  No longer returns -1 on error.
4231         (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4232         `val' parameters.
4233         * cp-valprint.c: Include exceptions.h.
4234         (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4235         the baseclass_offset.  Handle unavailable base classes.  Use
4236         val_print_invalid_address.
4237         * p-valprint.c: Include exceptions.h.
4238         (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4239         when fetching the baseclass_offset.  No longer expect
4240         baseclass_offset returning -1.  Handle unavailable base classes.
4241         Use val_print_invalid_address.
4242         * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4243         `valaddr' parameter, and change its type to gdb_byte pointer.  Add
4244         `embedded_offset' and `val' parameters.  Adjust.
4245         (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4246         parameter, and change its type to gdb_byte pointer.  Add
4247         `embedded_offset' and `val' parameters.  Adjust.  No longer expect
4248         baseclass_offset returning -1.
4249         (value_dynamic_cast): Use value_contents_for_printing rather than
4250         value_contents.  Adjust.
4251         (search_struct_field): No longer expect baseclass_offset returning
4252         -1.
4253         (search_struct_method): If reading memory from the target is
4254         necessary, wrap it in a new value to pass to baseclass_offset.  No
4255         longer expect baseclass_offset returning -1.
4256         (find_method_list): No longer expect baseclass_offset returning
4257         -1.  Use value_contents_for_printing rather than value_contents.
4258         * valprint.c (val_print_invalid_address): New function.
4259         * valprint.h (val_print_invalid_address): Declare.
4260         * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4261         and `val' parameters.  No longer expect baseclass_offset returning
4262         -1.  Adjust.
4263         * gnu-v2-abi.c: Include "exceptions.h".
4264         (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4265         parameters.  Handle unavailable memory.  Recurse through
4266         gnuv2_baseclass_offset directly, rather than through
4267         baseclass_offset.  No longer returns -1 on not found, instead
4268         throw an error.
4269         * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4270         `val' parameters.  Adjust.
4271
4272 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4273
4274         * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
4275         almost but not quite adjacent.
4276
4277 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4278
4279         * value.h (value_entirely_available): Declare.
4280         * value.c (value_entirely_available): New function.
4281         * c-valprint.c (c_value_print): Don't try fetching the pointer's
4282         real type if the pointer is unavailable.
4283
4284 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4285
4286         * valops.c (value_repeat): Use read_value_memory instead of
4287         read_memory.
4288
4289 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4290
4291         * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4292         * value.c (value_contents_copy_raw, value_contents_copy): New
4293         functions.
4294         (value_primitive_field): Use value_contents_copy_raw instead of
4295         memcpy.
4296         * valops.c (value_fetch_lazy): Use value_contents_copy instead of
4297         memcpy.
4298         (value_array, value_slice): Ditto.
4299         * valarith.c (value_subscripted_rvalue): Use
4300         value_contents_copy_raw instead of memcpy.
4301
4302 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4303
4304         <unavailable> references.
4305
4306         * valops.c (get_value_at): Use value_from_contents_and_address,
4307         avoiding read_memory.
4308
4309 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4310
4311         * c-valprint.c (c_val_print): Print a string with unavailable
4312         contents as an array.
4313
4314 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4315
4316         * value.h (unpack_bits_as_long): Delete declaration.
4317         (unpack_value_bits_as_long): Declare.
4318         (unpack_value_field_as_long): Declare.
4319         (value_field_bitfield): Declare.
4320         * value.c (unpack_bits_as_long): Rename to...
4321         (unpack_value_bits_as_long_1): ... this.  Add embedded_offset and
4322         value parameters.  Return the extracted result in a new output
4323         parameter.  If the value contents are unavailable, return false,
4324         otherwise return true.
4325         (unpack_value_bits_as_long): New.
4326         (unpack_field_as_long): Rename to...
4327         (unpack_value_field_as_long_1): ... this.  Add embedded_offset and
4328         Add embedded_offset and value parameters.  Return the extracted
4329         result in a new output parameter. If the value contents are
4330         unavailable, return false, otherwise return true.
4331         (unpack_value_field_as_long): New.
4332         (unpack_field_as_long_1): New.
4333         (unpack_field_as_long): Reimplement as wrapper around
4334         unpack_value_field_as_long_1.
4335         (value_field_bitfield): New function.
4336         * valops.c (value_fetch_lazy): When fetching a bitfield, use
4337         unpack_value_bits_as_long.  Mark the value as unavailable, if it
4338         is unavailable.
4339         * jv-valprint.c (java_print_value_fields): Use
4340         value_field_bitfield.
4341         * p-valprint.c (pascal_object_print_value_fields): Use
4342         value_field_bitfield.
4343         * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
4344
4345 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4346
4347         * value.c (get_internalvar_integer): Also return the int value of
4348         TYPE_CODE_INT INTERNALVAR_VALUE values.
4349         (set_internalvar): Don't special case TYPE_CODE_INT.
4350
4351 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4352
4353         * value.c (struct internalvar) <enum internalvar_kind>: Remove
4354         INTERNALVAR_POINTER.
4355         <pointer>: Delete.
4356         (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4357         (set_internalvar): Remove special TYPE_CODE_PTR handling.
4358         (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4359
4360 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4361
4362         * value.h (value_available_contents_eq): Declare.
4363         * value.c (find_first_range_overlap): New function.
4364         (value_available_contents_eq): New function.
4365         * valprint.c (val_print_array_elements): Use
4366         value_available_contents_eq.
4367         * ada-valprint.c (val_print_packed_array_elements): Use
4368         value_available_contents_eq.
4369         * jv-valprint.c (java_value_print): Use
4370         value_available_contents_eq.
4371
4372 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4373
4374         * target.c (target_read_live_memory): New function.
4375         (memory_xfer_live_readonly_partial): New.
4376         (memory_xfer_partial): If reading from a traceframe, fallback to
4377         reading unavailable read-only memory from read-only regions of
4378         live target memory.
4379         * tracepoint.c (disconnect_tracing): Adjust.
4380         (set_current_traceframe): New, factored out from
4381         set_traceframe_number.
4382         (set_traceframe_number): Reimplement to only change the traceframe
4383         number on the GDB side.
4384         (do_restore_current_traceframe_cleanup): Adjust.
4385         (make_cleanup_restore_traceframe_number): New.
4386         (cur_traceframe_number): New global.
4387         (tfile_open): Set cur_traceframe_number to no traceframe.
4388         (set_tfile_traceframe): New function.
4389         (tfile_trace_find): If looking up a traceframe using any method
4390         other than by number, make sure the current tfile traceframe
4391         matches gdb's current traceframe.  Update the current tfile
4392         traceframe if the lookup succeeded.
4393         (tfile_fetch_registers, tfile_xfer_partial)
4394         (tfile_get_trace_state_variable_value): Make sure the remote
4395         traceframe matches gdb's current traceframe.
4396         * remote.c (remote_traceframe_number): New global.
4397         (remote_open_1): Set it to -1.
4398         (set_remote_traceframe): New function.
4399         (remote_fetch_registers, remote_store_registers)
4400         (remote_xfer_memory, remote_xfer_partial)
4401         (remote_get_trace_state_variable_value): Make sure the remote
4402         traceframe matches gdb's current traceframe.
4403         (remote_trace_find): If looking up a traceframe using any method
4404         other than by number, make sure the current remote traceframe
4405         matches gdb's current traceframe.  Update the current remote
4406         traceframe if the lookup succeeded.
4407         * infrun.c (fetch_inferior_event): Adjust.
4408         * tracepoint.h (set_current_traceframe): Declare.
4409         (get_traceframe_number, set_traceframe_number): Add describing
4410         comments.
4411
4412 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4413
4414         Mark pieces of values as unavailable if the corresponding memory
4415         is unavailable.
4416
4417         * valops.c: Include tracepoint.h.
4418         (value_fetch_lazy): Use read_value_memory.
4419         (read_value_memory): New.
4420         * value.h (read_value_memory): Declare.
4421         * dwarf2loc.c (read_pieced_value): Use read_value_memory.
4422         * exec.c (section_table_available_memory): New function.
4423         * exec.h (section_table_available_memory): Declare.
4424
4425 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4426
4427         * Makefile.in (SFILES): Add memrange.c.
4428         (HFILES_NO_SRCDIR): Add memrange.h.
4429         (COMMON_OBS): Add memrange.o.
4430         * memrange.c: New file.
4431         * memrange.h: New file.
4432         * tracepoint.c: Include memrange.h.
4433         (struct mem_range): Delete.
4434         (mem_range_s): Delete.
4435         (traceframe_available_memory): New function.
4436         * tracepoint.h (traceframe_available_memory): Declare.
4437
4438 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4439
4440         * target.h (struct traceframe_info): Forward declare.
4441         (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4442         (struct target_ops) <to_traceframe_info>: New field.
4443         (target_traceframe_info): New.
4444         * target.c (update_current_target): Inherit and default
4445         to_traceframe_info.
4446         * remote.c (PACKET_qXfer_traceframe_info): New.
4447         (remote_protocol_features): Register qXfer:traceframe-info:read.
4448         (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4449         (remote_traceframe_info): New.
4450         (init_remote_ops): Install it.
4451         (_initialize_remote): Install "set/show remote traceframe-info"
4452         commands.
4453         * tracepoint.h (parse_traceframe_info): Declare.
4454         * tracepoint.c (struct mem_range): New.
4455         (mem_range_s): New typedef.
4456         (struct traceframe_info): New.
4457         (traceframe_info): New global.
4458         (free_traceframe_info): New function.
4459         (clear_traceframe_info): New function.
4460         (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4461         info.
4462         (build_traceframe_info): New function.
4463         (tfile_traceframe_info): New function.
4464         (init_tfile_ops): Install tfile_traceframe_info.
4465         (traceframe_info_start_memory, free_result): New functions.
4466         (memory_attributes, traceframe_info_elements): New globals.
4467         (parse_traceframe_info, get_traceframe_info): New functions.
4468         * features/traceframe-info.dtd: New file.
4469         * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4470
4471 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4472
4473         Base support for <unavailable> value contents.
4474
4475         * value.h (value_bytes_available): Declare.
4476         (mark_value_bytes_unavailable): Declare.
4477         * value.c (struct range): New struct.
4478         (range_s): New typedef.
4479         (ranges_overlap): New function.
4480         (range_lessthan): New function.
4481         (ranges_contain_p): New function.
4482         (struct value) <unavailable>: New field.
4483         (value_bytes_available): New function.
4484         (mark_value_bytes_unavailable): New function.
4485         (require_not_optimized_out): Constify parameter.
4486         (require_available): New function.
4487         (value_contents_all, value_contents): Require all bytes be
4488         available.
4489         (value_free): Free `unavailable'.
4490         (value_copy): Copy `unavailable'.
4491         * valprint.h (val_print_unavailable): Declare.
4492         * valprint.c (valprint_check_validity): Rename `offset' parameter
4493         to `embedded_offset'.  If printing a scalar, check whether the
4494         value chunk is available.
4495         (val_print_unavailable): New.
4496         (val_print_scalar_formatted): Check whether the value is
4497         available.
4498         * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4499         pretty-printing unavailable values.
4500
4501 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4502
4503         Fix const/volatile qualifiers of C++ types, PR c++/12328.
4504         * c-typeprint.c (c_type_print_args): Update the function comment.  New
4505         variable param_type, initialize it.  Remove const/volatile qualifiers
4506         for language_cplus and !show_artificial.  Use param_type.
4507
4508 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4509
4510         * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4511         from S.  Iterate S using ALL_OBJFILE_SYMTABS.  Verify BV for each S.
4512         * symtab.h (struct symtab) <next>: Comment extension.
4513
4514 2011-02-12  Yao Qi  <yao@codesourcery.com>
4515
4516         * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4517
4518 2011-02-11  Yao Qi  <yao@codesourcery.com>
4519
4520         * common/Makefile.in: Add copyright header.
4521
4522 2011-02-11  Pedro Alves  <pedro@codesourcery.com>
4523
4524         * infrun.c (proceed): Move switching out and in of tfind mode from
4525         here ...
4526         (fetch_inferior_event): ... to here.
4527
4528 2011-02-11  Yao Qi  <yao@codesourcery.com>
4529
4530         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
4531         libcommon.a.
4532         * configure.ac: Add common to sub dir.
4533         * configure: Regenerate.
4534
4535 2011-02-11  Yao Qi  <yao@codesourcery.com>
4536
4537         Build libcommon.a.
4538
4539         * common/Makefile.in: New.
4540         * common/configure.ac: New.
4541         * common/aclocal.m4: New.
4542         * common/configure: Generate.
4543
4544 2011-02-10  Pedro Alves  <pedro@codesourcery.com>
4545
4546         * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4547         side of the parenthesis.
4548
4549         Merge from GCC:
4550         2010-07-13  Jakub Jelinek  <jakub@redhat.com>
4551         * vec.h (VEC_block_remove): Fix comment.
4552
4553 2011-02-08  Michael Snyder  <msnyder@vmware.com>
4554
4555         * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4556
4557 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4558
4559         * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4560         in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4561         psubd and paddd.
4562
4563 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4564
4565         PR 12361.
4566         * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4567         phsubsw.
4568         (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4569         (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4570
4571 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
4572
4573         * dwarf2read.c (read_subroutine_type): Set special calling
4574         convention flag for functions compiled by IBM XL C for OpenCL.
4575         * ppc-sysv-tdep.c: Include "dwarf2.h"
4576         (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4577         calling convention.
4578         (do_ppc_sysv_return_value): Add FUNC_TYPE argument.  Implement
4579         IBM OpenCL vector types calling convention.
4580         (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4581         (ppc_sysv_abi_broken_return_value): Likewise.
4582         (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4583         types calling convention.
4584         (ppc64_sysv_abi_return_value): Likewise.
4585         * spu-tdep.c: Include "dwarf2.h"
4586         (spu_return_value): Implement IBM OpenCL vector types calling
4587         convention.
4588
4589 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
4590
4591         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4592         correct ABI for AltiVec vector arguments.
4593
4594 2011-02-07  Pedro Alves  <pedro@codesourcery.com>
4595
4596         * valprint.c (val_print): Extend comment.
4597         * ada-valprint.c (ada_valprint): Rewrite comment deferring
4598         interface explanation to val_print.
4599         (ada_val_print_array): Adjust comment to current interface.
4600         (print_field_values): Adjust comment to current interface.
4601         * c-valprint.c (c_val_print): Rewrite comment deferring interface
4602         explanation to val_print.
4603         * f-valprint.c (f_val_print): Ditto.
4604         * jv-valprint.c (java_val_print): Ditto.
4605         * m2-valprint.c (m2_val_print): Ditto.
4606         * p-valprint.c (pascal_val_print): Ditto.
4607
4608 2011-02-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4609
4610         * breakpoint.c (parse_breakpoint_sals): Fix description.
4611
4612 2011-02-04  Sami Wagiaalla  <swagiaal@redhat.com>
4613             Oguz Kayral <oguzkayral@gmail.com>
4614
4615         * python/py-inferior.c (python_on_normal_stop): New function.
4616         (python_on_resume): New function.
4617         (python_inferior_exit): New function.
4618         (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4619         inferior_exit observers.
4620         * python/py-evtregistry.c: New file.
4621         * python/py-threadevent.c : New file.
4622         * python/py-event.c: New file.
4623         * python/py-evts.c: New file.
4624         * python/py-continueevent.c: New file.
4625         * python/py-bpevent.c: New file.
4626         * python/py-signalevent.c: New file.
4627         * python/py-exetiedevent.c: New file.
4628         * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4629         Move struct breakpoint_object from here...
4630         * python/python-internal.h: ... to here.
4631         * python/py-event.h: New file.
4632         * python/py-events.h: New file.
4633         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4634         py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4635         py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4636         (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4637         py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4638         py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4639         Add build rules for all the above.
4640
4641 2011-02-04  Tom Tromey  <tromey@redhat.com>
4642
4643         * dwarf2read.c (dwarf2_section_empty_p): New function.
4644         (dwarf2_read_section): Use dwarf2_section_empty_p.
4645         (dwarf2_section_size): New function.
4646         (dwarf2_get_section_info): Unconditionally read section.
4647         (dwarf2_read_index): Use dwarf2_section_empty_p.
4648         (partial_read_comp_unit_head): Use dwarf2_section_size.
4649         (dwarf2_symbol_mark_computed): Likewise.
4650
4651 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4652
4653         * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4654
4655 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4656
4657         * mips-linux-tdep.c: Include xml-syscall.h.
4658         (mips_linux_get_syscall_number): New function.
4659         (mips_linux_init_abi): Add calls to
4660         mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4661         * data-directory/Makefile.in (SYSCALLS_FILES): Add
4662         mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4663         * syscalls/mips-n32-linux.xml: New file.
4664         * syscalls/mips-n64-linux.xml: New file.
4665         * syscalls/mips-o32-linux.xml: New file.
4666
4667 2011-02-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
4668
4669         * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4670         Complain about inverted range entries.
4671         (dwarf2_record_block_ranges): Likewise.
4672
4673 2011-02-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4674
4675         Fix some typos.
4676         * breakpoint.c (update_watchpoint): Fix name of the
4677         update_global_location_list function.
4678         (print_one_breakpoint): Fix typo.
4679         (_initialize_breakpoint): Remove extra space in hbreak help
4680         string.
4681         * breakpoint.h (struct bp_location) <length>: Fix field
4682         description.
4683
4684 2011-02-04  Pedro Alves  <pedro@codesourcery.com>
4685
4686         * regcache.c (registers_changed_ptid): Don't explictly always
4687         clear `current_regcache'.  Only clear current_thread_ptid and
4688         current_thread_arch when PTID matches.  Only reinit the frame
4689         cache if PTID matches the current inferior_ptid.  Move alloca(0)
4690         call to ...
4691         (registers_changed): ... here.
4692
4693 2011-02-03  Ulrich Weigand  <ulrich.weigand@linaro.org>
4694
4695         * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4696         starts with __stack_chk_guard as stack guard symbol.
4697
4698 2011-02-03  Andrew Burgess  <aburgess@broadcom.com>
4699
4700         * disasm.c (compare_lines): Handle the end of sequence markers
4701         within the line table to better support disassembling over
4702         compilation unit boundaries.
4703
4704 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
4705
4706         * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4707         arguments.  Skip in-prologue calls to glibc __aeabi_read_tp
4708         implementation even if no symbols are available.
4709         (thumb_analyze_prologue): Update call to skip_prologue_function.
4710         (arm_analyze_prologue): Likewise.
4711
4712 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
4713
4714         * arm-tdep.c: Include "observer.h".
4715         (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4716         (arm_exidx_data_key): New static variable.
4717         (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4718         (struct arm_exidx_data): Likewise.
4719         (arm_exidx_data_free): New function.
4720         (arm_compare_exidx_entries): Likewise.
4721         (arm_obj_section_from_vma): Likewise.
4722         (arm_exidx_new_objfile): Likewise.
4723         (arm_find_exidx_entry): Likewise.
4724         (arm_exidx_fill_cache): Likewise.
4725         (arm_exidx_unwind_sniffer): Likewise.
4726         (arm_exidx_unwind): New global variable.
4727         (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4728         (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4729         observer.  Register arm_exidx_data_key as objfile data.
4730
4731 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
4732
4733         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4734         due to accessing uninitialized variable.  Fix indentation.
4735
4736 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
4737
4738         * c-valprint.c (c_value_print): When doing virtual base pointer
4739         adjustment, create a new value with adjusted contents rather than
4740         changing the contents of the value being printed (and getting it
4741         wrong).
4742
4743 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
4744
4745         * xml-support.c (xml_find_attribute): New.
4746         (xinclude_start_include): Use it.
4747         * xml-support.h (xml_find_attribute): Declare.
4748         * memory-map.c (memory_map_start_memory)
4749         (memory_map_start_property): Use xml_find_attribute.
4750         * osdata.c (osdata_start_osdata, osdata_start_column): Use
4751         xml_find_attribute.
4752         * remote.c (start_thread): Use xml_find_attribute.
4753         * solib-target.c (library_list_start_segment)
4754         (library_list_start_section, library_list_start_library)
4755         (library_list_start_list): Use xml_find_attribute.
4756         * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4757         (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4758         (tdesc_start_field): Use xml_find_attribute.
4759
4760 2011-02-02  Ulrich Weigand  <uweigand@de.ibm.com>
4761
4762         * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4763         (BUILD_OCL_VTYPES): Update.
4764
4765 2011-02-02  Joel Brobecker  <brobecker@adacore.com>
4766
4767         * configure.ac: Work around non-GNU sed limitation when computing
4768         python version number.
4769         * configure: Regenerate.
4770
4771 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4772
4773         Fix debug printing of TYPE_INSTANCE.
4774         * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4775         (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4776
4777 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4778
4779         Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4780         OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4781         OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4782         * ada-operator.inc: Rename the file to ...
4783         * ada-operator.def: ... here, wrap all the entries by macro OP.
4784         * expprint.c (op_name_standard): Remove all the entries.  Include
4785         "std-operator.def" instead.
4786         * expression.h (enum exp_opcode): Include "std-operator.def" and
4787         "ada-operator.def".  Move all the entries ...
4788         * std-operator.def: ... here, wrap all the entries by macro OP.
4789
4790 2011-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
4791
4792         * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4793         * breakpoint.c (remove_jit_event_breakpoints): New function.
4794         * jit.c (jit_descriptor_addr): Delete.
4795         (registering_code): Delete.
4796         (clear_int): Delete.
4797         (jit_inferior_data): New variable.
4798         (struct jit_inferior_data): New type.
4799         (get_jit_inferior_data): New function.
4800         (jit_inferior_data_cleanup): New function.
4801         (jit_read_descriptor): Adjust.
4802         (jit_register_code): Adjust.
4803         (jit_breakpoint_re_set_internal): New function; move code here ...
4804         (jit_inferior_init): ... from here.
4805         (jit_breakpoint_re_set): Adjust.
4806         (jit_reset_inferior_data_and_breakpoints): New function.
4807         (jit_inferior_created_observer): Adjust.
4808         (jit_inferior_exit_hook): Adjust.
4809         (jit_executable_changed_observer): New function.
4810         (jit_event_handler): Adjust.
4811         (_initialize_jit): Adjust.
4812
4813 2011-01-31  Michael Snyder  <msnyder@vmware.com>
4814
4815         * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4816         line.
4817
4818 2011-01-31  Tom Tromey  <tromey@redhat.com>
4819
4820         PR python/12216:
4821         * python/python.c (execute_gdb_command): Call
4822         prevent_dont_repeat.
4823         * top.c (suppress_dont_repeat): New global.
4824         (dont_repeat): Use it.
4825         (prevent_dont_repeat): New function.
4826         * command.h (prevent_dont_repeat): Declare.
4827
4828 2011-01-31  Tom Tromey  <tromey@redhat.com>
4829
4830         * infcmd.c (finish_backward): Use breakpoint_set_silent.
4831         * python/py-breakpoint.c (bppy_set_silent): Use
4832         breakpoint_set_silent.
4833         (bppy_set_thread): Use breakpoint_set_thread.
4834         (bppy_set_task): Use breakpoint_set_task.
4835         * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4836         (breakpoint_set_task): Declare.
4837         (make_breakpoint_silent): Remove.
4838         * breakpoint.c (breakpoint_set_silent): New function.
4839         (breakpoint_set_thread): Likewise.
4840         (breakpoint_set_task): Likewise.
4841         (make_breakpoint_silent): Remove.
4842
4843 2011-01-31  Tom Tromey  <tromey@redhat.com>
4844
4845         * breakpoint.h (user_breakpoint_p): Declare.
4846         * breakpoint.c (user_breakpoint_p): New function.
4847         (breakpoint_1): Use it.
4848         (save_breakpoints): Likewise.
4849
4850 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
4851
4852         * configure.ac: Add handling of Python distribution on Windows.
4853         * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4854         sysconfig variables are not defined, then do not use them.
4855         On Windows, if LIBPL is not defined, then use prefix + '/libs'
4856         instead.  On Windows, return all paths using forward-slashes
4857         rather than backslashes.
4858
4859 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
4860
4861         * configure.ac: Remove fallback behavior for building
4862         against Python.  Remove tweaking of Python include path.
4863         Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4864         (AC_TRY_LIBPYTHON):  Adjust program used in linking test.
4865         If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4866         Always restore CPPFLAGS and LIBS after linking test.
4867         * configure: Regenerated.
4868         * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4869         (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4870         * python/python-internal.h: Adjust includes of Python .h files.
4871
4872 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
4873
4874         * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4875         in error message.
4876
4877 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
4878
4879         * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4880         value test.
4881
4882 2011-01-31  Yao Qi  <yao@codesourcery.com>
4883
4884         * arm-linux-nat.c: Update calls to regcache_register_status
4885         instead of regcache_valid_p.
4886         * aix-thread.c: Likewise.
4887         * i386gnu-nat.c: Likewise.
4888
4889 2011-01-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
4890
4891         Fix crash.
4892         * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4893         touching TYPE_FIELD_ARTIFICIAL.
4894
4895 2011-01-28  Richard Earnshaw  <rearnsha@arm.com>
4896
4897         * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4898         Committers.
4899
4900 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
4901
4902         * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4903         selected, don't try iterating over the traceframe's blocks.
4904         (tfile_has_stack): If there's no traceframe selected, then there's
4905         no stack.
4906         (tfile_has_registers): If there's no traceframe selected, then
4907         there's no registers.
4908
4909 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
4910
4911         * target.c (memory_xfer_partial): No need to restore shadows if we
4912         haven't read anything.
4913
4914 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
4915
4916         * mips-tdep.c (mips_print_register): Use get_frame_register_value
4917         and val_print_scalar_formatted.
4918
4919 2011-01-27  Pedro Alves  <pedro@codesourcery.com>
4920
4921         * tracepoint.c (tfile_read): New.
4922         (tfile_open): Use it.
4923         (tfile_get_traceframe_address): Use it.
4924         (tfile_trace_find): Use it.
4925         (walk_blocks_callback_func): New typedef.
4926         (match_blocktype): New function.
4927         (traceframe_walk_blocks): New function.
4928         (traceframe_find_block_type): New function.
4929         (tfile_fetch_registers, tfile_xfer_partial)
4930         (tfile_get_trace_state_variable_value): Use
4931         traceframe_find_block_type and tfile_read.
4932
4933 2011-01-26  Kevin Buettner  <kevinb@redhat.com>
4934
4935         * remote-mips.c: Add internationalization mark ups.  Remove
4936         trailing \n from already marked up strings.
4937
4938 2011-01-26  Tom Tromey  <tromey@redhat.com>
4939
4940         * python/py-prettyprint.c (print_string_repr): Clear
4941         'addressprint' option when calling val_print_string.
4942         (print_children): Handle Val_pretty_default.  Clear 'addressprint'
4943         option when calling val_print_string.
4944
4945 2011-01-26  Tom Tromey  <tromey@redhat.com>
4946
4947         * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4948         GDB_PY_LL_ARG.
4949         * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4950         macros.
4951         (gdb_py_longest, gdb_py_ulongest): New typedefs.
4952         (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4953         (gdb_py_long_as_ulongest): New defines.
4954         (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4955         (gdb_py_int_as_long): Declare.
4956         * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4957         GDB_PY_LL_ARG, gdb_py_object_from_longest.
4958         (valpy_long): Add comment.
4959         * python/py-utils.c (get_addr_from_python): Use
4960         gdb_py_long_as_ulongest.  Handle overflow properly.
4961         (gdb_py_object_from_longest): New function.
4962         (gdb_py_object_from_ulongest): Likewise.
4963         (gdb_py_int_as_long): Likewise.
4964         * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4965         * python/py-symtab.c (salpy_get_pc): Use
4966         gdb_py_long_from_ulongest.
4967         (salpy_get_line): Use PyInt_FromLong.
4968         * python/py-param.c (set_parameter_value): Use
4969         gdb_py_int_as_long.
4970         * python/py-lazy-string.c (stpy_get_address): Use
4971         gdb_py_long_from_ulongest.
4972         * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4973         * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4974         * python/py-breakpoint.c (bppy_set_thread): Use
4975         gdb_py_int_as_long.
4976         (bppy_set_task): Likewise.
4977         (bppy_set_ignore_count): Likewise.
4978         (bppy_set_hit_count): Likewise.
4979         * python/py-block.c (blpy_get_start): Use
4980         gdb_py_object_from_ulongest.
4981         (blpy_get_end): Likewise.
4982         (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4983
4984 2011-01-25  Mathieu Lacage  <mathieu.lacage@inria.fr>
4985
4986         PR/symtab 11766:
4987         * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4988         * gdb/solib.c (solib_read_symbols): Check for addr_low in
4989         equality test for objfile, initialize addr_low if needed.
4990
4991 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
4992
4993         * tui/tui-regs.c (tui_register_format): Remove dead code.
4994
4995 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
4996
4997         * printcmd.c (print_formatted): Use val_print_scalar_formatted
4998         instead of print_scalar_formatted.
4999         (print_scalar_formatted): Don't handle 's' format strings here,
5000         and add an assertion that we never see such format here.
5001         * valprint.h (val_print_scalar_formatted): Declare.
5002         * valprint.c (val_print_scalar_formatted): New.
5003         * c-valprint.c (c_val_print): Use val_print_scalar_formatted
5004         instead of print_scalar_formatted.
5005         * jv-valprint.c (java_val_print): Ditto.
5006         * p-valprint.c (pascal_val_print): Ditto.
5007         * ada-valprint.c (ada_val_print_1): Ditto.
5008         * f-valprint.c (f_val_print): Ditto.
5009         * infcmd.c (registers_info): Ditto.
5010         * m2-valprint.c (m2_val_print): Ditto.
5011
5012 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5013
5014         * m2-valprint.c (print_unbounded_array): Pass
5015         value_contents_for_printing rather than value_contents, to
5016         m2_print_array_contents.  Also pass in the value.
5017
5018 2011-01-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
5019
5020         * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
5021         (save_gdb_index_command): Switch to .gdb_index version 4.
5022
5023 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5024
5025         * mi/mi-main.c (get_register): Use get_frame_register_value rather
5026         than frame_register, and always pass a valid value to val_print.
5027
5028 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5029
5030         Centralize printing "<optimized out>".
5031
5032         * valprint.h (val_print_optimized_out): Declare.
5033         * cp-valprint.c (cp_print_value_fields): Use
5034         val_print_optimized_out.
5035         * jv-valprint.c (java_print_value_fields): Ditto.
5036         * p-valprint.c (pascal_object_print_value_fields): Ditto.
5037         * printcmd.c (print_formatted): Ditto.
5038         * valprint.c (valprint_check_validity): Ditto.
5039         (value_check_printable): Ditto.
5040         (val_print_optimized_out): New.
5041
5042 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5043
5044         * infcmd.c (default_print_registers_info): Allocate values so to
5045         never pass a NULL value to val_print.
5046
5047 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5048
5049         * cp-valprint.c (cp_print_value): Treat the 'skip' local as
5050         boolean.  Make sure to always pass a value that matches the
5051         contents buffer to callees.  Preserve `address' for following
5052         iterations.
5053         * value.c (value_contents_for_printing_const): New.
5054         (value_address): Constify value argument.
5055         * value.h (value_contents_for_printing_const): Declare.
5056         (value_address): Constify value argument.
5057
5058 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5059
5060         * regcache.c (struct regcache_descr): Rename
5061         sizeof_raw_register_valid_p field to sizeof_raw_register_status,
5062         and sizeof_cooked_register_valid_p to
5063         sizeof_cooked_register_status.
5064         (init_regcache_descr): Adjust.
5065         (struct regcache): Rename register_valid_p field to
5066         register_status.
5067         (regcache_xmalloc_1, regcache_xfree, regcache_save)
5068         (do_cooked_read): Adjust.
5069         (regcache_valid_p): Rename to ...
5070         (regcache_register_status): ... this.  Adjust.
5071         (regcache_invalidate): Adjust.
5072         (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
5073         Adjust.
5074         (regcache_raw_supply): Adjust.  If buf i NULL, mark the register
5075         as unavailable, not valid.
5076         (regcache_dump): Adjust.
5077         * regcache.h (enum register_status): New.
5078         (regcache_register_status): Declare.
5079         (regcache_invalidate): Delete declaration.
5080         * corelow.c (get_core_registers): Adjust.
5081         * tracepoint.c (tfile_fetch_registers): Adjust.
5082         * trad-frame.c (REG_VALUE): Rename to ...
5083         (TF_REG_VALUE): ... this.
5084         (REG_UNKNOWN): Rename to ...
5085         (TF_REG_UNKNOWN): ... this.
5086         (trad_frame_set_value, trad_frame_set_unknown): Adjust.
5087         * mi/mi-main.c (register_changed_p): Adjust.
5088
5089 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5090
5091         * regcache.c (struct regcache_descr): Remove outdated comment.
5092         (init_regcache_descr): Remove sizeof_raw_register_valid_p
5093         overallocate hack.
5094         (regcache_xmalloc): Rename to ...
5095         (regcache_xmalloc_1): ... this.  Add `readonly_p' parameter.
5096         Allocate the regcache type accordingly.
5097         (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
5098         (regcache_xfree): Asser the source is also readonly.  Copy sizeof
5099         cooked registers, not raw.
5100         (regcache_dup_no_passthrough): Delete.
5101         (get_thread_arch_regcache): Use regcache_xmalloc_1.
5102         * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
5103         mention obsolete write_register_bytes.
5104         * regcache.h (regcache_dup_no_passthrough): Delete declaration.
5105
5106 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5107
5108         Stop remote_read_bytes from handling partial reads itself.
5109
5110         * remote-fileio.c: Include target.h.
5111         (remote_fileio_write_bytes): Delete.
5112         (remote_fileio_func_open, remote_fileio_func_write)
5113         (remote_fileio_func_rename, remote_fileio_func_unlink): Use
5114         target_read_memory.
5115         (remote_fileio_func_stat): Use target_read_memory and
5116         target_write_memory.
5117         (remote_fileio_func_gettimeofday): Use target_write_memory.
5118         (remote_fileio_func_system): Use target_read_memory.
5119         * remote.c (remote_write_bytes): Make it static.
5120         (remote_read_bytes): Don't handle partial reads here.
5121         * remote.h (remote_read_bytes): Delete declaration.
5122
5123 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5124
5125         Simplify XML parsing a bit.
5126
5127         * xml-support.h (gdb_xml_parse_quick): Declare.
5128         * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
5129         from gdb_xml_create_parser_and_cleanup, and added `old_chain'
5130         parameter.
5131         (gdb_xml_create_parser_and_cleanup): Reimplement on top of
5132         gdb_xml_create_parser_and_cleanup_1.
5133         (gdb_xml_parse_quick): New.
5134         * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
5135         * osdata.c (osdata_parse): Ditto.
5136         * remote.c (remote_threads_info): Ditto.
5137         * solib-target.c (solib_target_parse_libraries): Ditto.
5138         * xml-syscall.c (syscall_parse_xml): Ditto.
5139         * xml-tdesc.c (tdesc_parse_xml): Ditto.
5140
5141 2011-01-24  Kevin Buettner  <kevinb@redhat.com>
5142
5143         * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
5144         with remote-mips.o added to gdb_target_obs.
5145         * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
5146
5147 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
5148
5149         * ada-valprint.c (val_print_packed_array_elements): Pass the
5150         correct struct value to val_print.
5151         (ada_val_print_1): Ditto.
5152
5153 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
5154
5155         Don't lose embedded_offset in printing routines throughout.
5156
5157         * valprint.h (val_print_array_elements): Change prototype.
5158         * valprint.c (val_print_array_elements): Add `embedded_offset'
5159         parameter, and adjust to pass it down to val_print, while passing
5160         `valaddr' or `address' unmodified.  Take embedded_offset into
5161         account when checking repetitions.
5162         * c-valprint.c (c_val_print): Pass embedded_offset to
5163         val_print_array_elements instead of adjusting `valaddr' and
5164         `address'.
5165         * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
5166         embedded_offset to val_print_array_elements instead of adjusting
5167         `valaddr'.
5168         * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
5169         * p-valprint.c (pascal_val_print): Pass embedded_offset to
5170         val_print_array_elements and pascal_object_print_value_fields
5171         instead of adjusting `valaddr'.
5172         (pascal_object_print_value_fields): Add `offset' parameter, and
5173         adjust to use it.
5174         (pascal_object_print_value): Add `offset' parameter, and adjust to
5175         use it.
5176         (pascal_object_print_static_field): Use
5177         value_contents_for_printing/value_embedded_offset, rather than
5178         value_contents.
5179         * ada-valprint.c (val_print_packed_array_elements): Add `offset'
5180         parameter, and adjust to use it.  Use
5181         value_contents_for_printing/value_embedded_offset, rather than
5182         value_contents.
5183         (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
5184         (ada_val_print_array): Add `offset' parameter, and adjust to use
5185         it.
5186         (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
5187         `embedded_offset' to `offset'.  Don't re-adjust `valaddr'.
5188         Instead work with offsets.  Use
5189         value_contents_for_printing/value_embedded_offset, rather than
5190         value_contents.  Change `defer_val_int' local type to CORE_ADDR,
5191         and use value_from_pointer to extract a target pointer, rather
5192         than value_from_longest.
5193         (print_variant_part): Add `offset' parameter.  Replace
5194         `outer_valaddr' parameter by a new `outer_offset' parameter.
5195         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
5196         (ada_value_print): Use
5197         value_contents_for_printing/value_embedded_offset, rather than
5198         value_contents.
5199         (print_record): Add `offset' parameter, and adjust to pass it
5200         down.
5201         (print_field_values): Add `offset' parameter.  Replace
5202         `outer_valaddr' parameter by a new `outer_offset' parameter.
5203         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
5204         Use value_contents_for_printing/value_embedded_offset, rather than
5205         value_contents.
5206         * d-valprint.c (dynamic_array_type): Use
5207         value_contents_for_printing/value_embedded_offset, rather than
5208         value_contents.
5209         * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
5210         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
5211         (java_print_value_fields): Take `offset' into account.  Don't
5212         re-adjust `valaddr'.  Instead pass down adjusted offsets.
5213         (java_val_print): Take `embedded_offset' into account.  Pass it to
5214         java_print_value_fields.
5215         * f-valprint.c (f77_print_array_1): Add `embedded_offset'
5216         parameter.  Don't re-adjust `valaddr' or `address'.  Instead pass
5217         down adjusted offsets.
5218         (f77_print_array): Add `embedded_offset' parameter.  Pass it down.
5219         (f_val_print): Take `embedded_offset' into account.
5220
5221 2011-01-21  Joel Brobecker  <brobecker@adacore.com>
5222
5223         * inflow.c: Include "gdbcmd.h".
5224         (interactive_mode): New static global, moved here from top.c.
5225         (show_interactive_mode): New function, moved here from top.c.
5226         use gdb_has_a_terminal instead of input_from_terminal_p to
5227         determine the current mode.
5228         (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5229         setting.
5230         (_initialize_inflow): Add the "set/show interactive-mode"
5231         commands.  Moved here from top.c, after having adjusted slightly
5232         the help text.
5233         * top.c (interactive_mode, show_interactive_mode): Delete, moved
5234         to inflow.c.
5235         (input_from_terminal_p): Remove handling of "interactive-mode"
5236         setting, moved to infow.c.
5237         (init_main): Remove creation of the "set/show interactive-mode"
5238         commands, moved to inflow.c.
5239
5240 2011-01-19  Joel Brobecker  <brobecker@adacore.com>
5241
5242         * NEWS: Add entry for native ia64-hpux support.
5243
5244 2011-01-19  Tom Tromey  <tromey@redhat.com>
5245
5246         PR mi/8618:
5247         * thread.c (free_thread): Free 'name'.
5248         (print_thread_info): Emit thread name.  Change CLI output.
5249         (thread_name_command): New function.
5250         (do_captured_thread_select): Emit newline.
5251         (_initialize_thread): Register 'thread name' command.
5252         * target.h (struct target_ops) <to_thread_name>: New field.
5253         (target_thread_name): New macro.
5254         * target.c (update_current_target): Handle to_thread_name.
5255         * python/py-infthread.c (thpy_get_name): New function.
5256         (thpy_set_name): Likewise.
5257         (thread_object_getset): Add "name".
5258         * linux-nat.c (linux_nat_thread_name): New function.
5259         (linux_nat_add_target): Set to_thread_name.
5260         * gdbthread.h (struct thread_info) <name>: New field.
5261
5262 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
5263
5264         * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5265         (ada_val_print_1): Likewise.
5266
5267 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
5268
5269         * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5270         upper limit address is not greater than the function end address
5271         when the upper limit could not be computed using the debugging
5272         info.
5273
5274 2011-01-17  Tom Tromey  <tromey@redhat.com>
5275
5276         * cli/cli-cmds.c (apropos_command): Free the compiled regex.  Use
5277         get_regcomp_error.
5278         * utils.c: Include gdb_regex.h.
5279         (do_regfree_cleanup): New function.
5280         (make_regfree_cleanup): Likewise.
5281         (get_regcomp_error): Likewise.
5282         * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
5283
5284 2011-01-17  Tom Tromey  <tromey@redhat.com>
5285
5286         * cli/cli-cmds.c (apropos_command): Fix formatting.  Don't call
5287         re_compile_fastmap.
5288
5289 2011-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
5290
5291         * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
5292         for internal variables.
5293         (last_was_structop): New static variable.
5294         (COMPLETE): New token.
5295         (field_exp): New rule to group all '.' suffix handling.
5296         Add mark_struct_expression calls when approriate to be able
5297         to correctly find fields for completion.
5298         (yylex): Adapt to handle field completion and set INTVAR when
5299         required.
5300
5301 2011-01-14  Yao Qi  <yao@codesourcery.com>
5302
5303         * arm-tdep.c (arm_register_reggroup_p): FPS register is in
5304         save_reggroup, restore_reggroup and all_reggroup.
5305
5306 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
5307
5308         * ada-valprint. (ada_printchar): Use the correct type length
5309         in call to ada_emit_char.
5310         * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
5311
5312 2011-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
5313
5314         * solib-som.h (hpux_major_release): Declare variable here.
5315         * solib-som.c:  Remove <sys/utsname.h> header.
5316         (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
5317         (hpux_major_release): Make global, change default value to
5318         DEFAULT_HPUX_MAJOR_RELEASE.
5319         (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
5320         * hppa-hpux-nat.c: Add <sys/utsname.h> include.
5321         Add "solib-som.h" header.
5322         (set_hpux_major_release): New function.
5323         (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
5324
5325 2011-01-14  Mike Frysinger  <vapier@gentoo.org>
5326
5327         * configure.tgt (*-*-uclinux*): Match more Linux os targets
5328
5329 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
5330
5331         * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
5332         new-line at end of warning message.
5333         (ia64_hpux_store_register): Remove trailing new-line at end of
5334         error message.
5335         * ia64-hpux-tdep.c: Rephrase comment.
5336         * solib-ia64-hpux.c (struct dld_info): Change type of field
5337         dld_flags from "long long" to ULONGEST.
5338
5339 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
5340
5341         * target.h (deprecated_child_ops): Delete declaration.
5342         * target.c (deprecated_child_ops): Delete definition.
5343
5344 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
5345
5346         * Makefile.in (hpux-thread.o): Delete rule.
5347         * configure.ac: Don't check for HPUX DCE threads support.
5348         * configure, config.in: Regenerate.
5349         * hppa-hpux-nat.c (child_suppress_run): Delete.
5350         (hppa_hpux_child_can_run): Delete.
5351         (_initialize_hppa_hpux_nat): Don't override to_can_run.
5352         * hpux-thread.c: Delete.
5353
5354 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5355
5356         * hpux-thread.c (hpux_pid_to_str): Delete.
5357
5358 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5359
5360         * ada-valprint.c (ada_emit_char): Remove strange code.
5361         Check that c is <= UCHAR_MAX before passing it to isascii.
5362         (char_at): Do not assume that TYPE_LEN is either 1 or 2.
5363
5364 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5365
5366         * top.c (input_from_terminal_p): Restrict the use of interactive_mode
5367         to the case where instream is stdin.
5368
5369 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5370
5371         * ia64-tdep.h (struct regcache): Forward declare.
5372         (struct ia64_infcall_ops): New struct type.
5373         (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
5374         and "infcall_ops".
5375         * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
5376         Renames ia64_find_global_pointer.
5377         (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
5378         (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
5379         (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
5380         methods.
5381         (ia64_infcall_ops): New static global constant.
5382         (ia64_gdbarch_init): Set tdep->infcall_ops.
5383         * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
5384         (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
5385         * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
5386         (ia64_hpux_dummy_code): New static global constant.
5387         (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
5388         (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
5389         (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
5390         New function.
5391         (ia64_hpux_infcall_ops): New static global constant.
5392         (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
5393         for inferior function calls to work properly on ia64-hpux.
5394
5395 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5396
5397         * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
5398         * ia64-tdep.h (struct frame_info): forward declaration.
5399         (struct gdbarch_tdep): Add field size_of_register_frame.
5400         * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
5401         to determine the size of the register frame.
5402         (ia64_size_of_register_frame): New function.
5403         (ia64_gdbarch_init): Set tdep->size_of_register_frame.
5404         * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
5405         (IA64_HPUX_UREG_REASON): New macro.
5406         (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
5407         New functions.
5408         (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
5409         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
5410         (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
5411         objects.
5412
5413 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5414
5415         Add support for ia64-hpux.
5416         * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
5417         ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
5418
5419         * configure.host: Add handling for ia64-hpux hosts.  Add associated
5420         floatformats.
5421         * configure.tgt: Add handling for ia64-hpux targets.
5422         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
5423         (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
5424         (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
5425
5426 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5427
5428         [ttrace] Compute thread list immediately after attach.
5429         * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
5430         New subprogram.
5431         (inf_ttrace_attach): Use it.
5432
5433 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5434
5435         * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
5436         if we could not determine the frame's function address.  Instead,
5437         use the frame's PC, and then continue.
5438
5439 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5440
5441         * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5442         not already defined.
5443
5444 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5445
5446         * ia64-tdep.c (ia64_struct_type_p): New function.
5447         (ia64_extract_return_value): Handle integral values that are
5448         less than 8 bytes long.
5449         (ia64_push_dummy_call): Likewise.
5450
5451 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5452
5453         * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5454         floatformat_ia64_ext.
5455         (floatformat_ia64_ext_big): New static const.
5456         (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5457
5458 2011-01-12  Tom Tromey  <tromey@redhat.com>
5459
5460         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5461         messages.
5462         * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5463         (mi_cmd_thread_list_ids): Likewise.
5464         (mi_cmd_data_list_changed_registers): Likewise.
5465         (mi_cmd_data_list_register_values): Likewise.
5466         (mi_cmd_data_write_register_values): Likewise.
5467         (mi_cmd_data_evaluate_expression): Likewise.
5468         (mi_cmd_data_read_memory): Likewise.
5469         (mi_cmd_data_read_memory_bytes): Likewise.
5470         (mi_cmd_data_write_memory): Likewise.
5471         (mi_cmd_enable_timings): Likewise.
5472         * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5473         * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5474         (mi_cmd_var_delete): Likewise.
5475         (mi_cmd_var_set_format): Likewise.
5476         (mi_cmd_var_show_format): Likewise.
5477         (mi_cmd_var_info_num_children): Likewise.
5478         (mi_cmd_var_list_children): Likewise.
5479         (mi_cmd_var_info_type): Likewise.
5480         (mi_cmd_var_info_expression): Likewise.
5481         (mi_cmd_var_show_attributes): Likewise.
5482         (mi_cmd_var_assign): Likewise.
5483         (mi_cmd_var_update): Likewise.
5484         (mi_cmd_enable_pretty_printing): Likewise.
5485         (mi_cmd_var_set_update_range): Likewise.
5486         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5487         messages.
5488         (mi_cmd_target_file_put): Likewise.
5489         (mi_cmd_target_file_delete): Likewise.
5490         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5491         messages.
5492         (mi_cmd_stack_info_depth): Likewise.
5493         (mi_cmd_stack_list_locals): Likewise.
5494         (mi_cmd_stack_list_args): Likewise.
5495         (mi_cmd_stack_select_frame): Likewise.
5496         (mi_cmd_stack_select_frame): Likewise.
5497         (mi_cmd_stack_info_frame): Likewise.
5498         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5499         messages.
5500         (mi_cmd_file_list_exec_source_files): Likewise.
5501         * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5502         (mi_cmd_env_cd): Likewise.
5503         (mi_cmd_env_path): Likewise.
5504         (mi_cmd_env_dir): Likewise.
5505         (mi_cmd_inferior_tty_show): Likewise.
5506         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5507         * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5508         (mi_cmd_break_watch): Likewise.
5509
5510 2011-01-12  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5511
5512         * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5513         (ppc_linux_insert_hw_breakpoint): Likewise.
5514         (ppc_linux_remove_hw_breakpoint): Likewise.
5515         (ppc_linux_insert_watchpoint): Likewise.
5516
5517 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
5518             Jan Kratochvil  <jan.kratochvil@redhat.com>
5519
5520         PR fortran/11104 and DWARF unbound arrays detection.
5521         * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5522         upper bound.  Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5523         unspecified upper bound.
5524         * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5525         variables array_size_array, tmp_type and offset_item.  New variable
5526         array.  Remove call to f77_get_upperbound.  New variables array_type
5527         and index.  Call value_subscripted_rvalue for each dimenasion.  Remove
5528         the final call to deprecated_set_value_type.
5529
5530 2011-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
5531
5532         Make value allocations more lazy.
5533         * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5534         instead of allocate_value and set_value_lazy when possible.
5535         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
5536         instead of allocate_value and set_value_lazy.
5537         * findvar.c (value_of_register_lazy): Likewise.
5538         (read_var_value): Remove V preallocation, call just check_typedef in
5539         advance.  Move allocate_value to LOC_CONST, LOC_LABEL,
5540         LOC_CONST_BYTES.  Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5541         LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK.  Set ADDR instead of
5542         set_value_address and break in LOC_BLOCK.  Use allocate_value_lazy and
5543         remove lval_memory set in LOC_REGPARM_ADDR.  Use allocate_value_lazy
5544         in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT.  Add setting lval_memory at
5545         the end, remove set_value_lazy there.
5546         * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5547         instead of allocate_value and set_value_lazy when possible.
5548         * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5549         * value.c (allocate_computed_value): Use allocate_value_lazy instead
5550         of allocate_value and set_value_lazy.
5551         (value_from_contents_and_address): Use allocate_value_lazy instead of
5552         allocate_value and set_value_lazy when possible.
5553
5554 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
5555
5556         * disasm.c (dump_insns): Support dumping opcodes for MI.
5557         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5558         dumping of instruction opcodes.
5559
5560 2011-01-09  Robert Millan  <rmh@gnu.org>  (tiny patch)
5561
5562         * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5563         appropiately.
5564
5565 2011-01-11  Tom Tromey  <tromey@redhat.com>
5566
5567         * thread.c (do_captured_thread_select): Emit newline before
5568         printing frame.
5569
5570 2011-01-11  Michael Snyder  <msnyder@vmware.com>
5571
5572         * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5573         * score-tdep.c: Ditto.
5574         * score-tdep.h: Ditto.
5575         * ser-base.c: Ditto.
5576         * ser-go32.c: Ditto.
5577         * serial.c: Ditto.
5578         * serial.h: Ditto.
5579         * ser-mingw.c: Ditto.
5580         * ser-pipe.c: Ditto.
5581         * ser-tcp.c: Ditto.
5582         * ser-unix.c: Ditto.
5583         * sh64-tdep.c: Ditto.
5584         * shnbsd-nat.c: Ditto.
5585         * sh-tdep.c: Ditto.
5586         * sh-tdep.h: Ditto.
5587         * solib.c: Ditto.
5588         * solib-darwin.c: Ditto.
5589         * solib-frv.c: Ditto.
5590         * solib.h: Ditto.
5591         * solib-irix.c: Ditto.
5592         * solib-osf.c: Ditto.
5593         * solib-pa64.c: Ditto.
5594         * solib-som.c: Ditto.
5595         * solib-spu.c: Ditto.
5596         * solib-sunos.c: Ditto.
5597         * solib-svr4.c: Ditto.
5598         * solist.h: Ditto.
5599         * sol-thread.c: Ditto.
5600         * somread.c: Ditto.
5601         * source.c: Ditto.
5602         * source.h: Ditto.
5603         * sparc64-linux-tdep.c: Ditto.
5604         * sparc64-tdep.c: Ditto.
5605         * sparc-linux-nat.c: Ditto.
5606         * sparc-linux-tdep.c: Ditto.
5607         * sparc-sol2-nat.c: Ditto.
5608         * sparc-sol2-tdep.c: Ditto.
5609         * sparc-tdep.c: Ditto.
5610         * sparc-tdep.h: Ditto.
5611         * spu-tdep.c: Ditto.
5612         * stabsread.c: Ditto.
5613         * stabsread.h: Ditto.
5614         * stack.c: Ditto.
5615         * symfile.c: Ditto.
5616         * symfile.h: Ditto.
5617         * symmisc.c: Ditto.
5618         * symtab.c: Ditto.
5619         * symtab.h: Ditto.
5620         * target.c: Ditto.
5621         * target-descriptions.c: Ditto.
5622         * target-descriptions.h: Ditto.
5623         * target.h: Ditto.
5624         * target-memory.c: Ditto.
5625         * terminal.h: Ditto.
5626         * thread.c: Ditto.
5627         * top.c: Ditto.
5628         * tracepoint.c: Ditto.
5629         * tracepoint.h: Ditto.
5630         * trad-frame.h: Ditto.
5631         * typeprint.c: Ditto.
5632
5633 2011-01-11  Michael Snyder  <msnyder@vmware.com>
5634
5635         * ui-file.c: Comment cleanup, mostly periods and spaces.
5636         * ui-file.h: Ditto.
5637         * ui-out.c: Ditto.
5638         * ui-out.h: Ditto.
5639         * utils.c: Ditto.
5640         * v850-tdep.c: Ditto.
5641         * valarith.c: Ditto.
5642         * valops.c: Ditto.
5643         * valprint.c: Ditto.
5644         * valprint.h: Ditto.
5645         * value.c: Ditto.
5646         * value.h: Ditto.
5647         * varobj.c: Ditto.
5648         * varobj.h: Ditto.
5649         * vax-tdep.c: Ditto.
5650         * vec.c: Ditto.
5651         * vec.h: Ditto.
5652         * version.h: Ditto.
5653         * windows-nat.c: Ditto.
5654         * windows-tdep.c: Ditto.
5655         * xcoffread.c: Ditto.
5656         * xcoffsolib.c: Ditto.
5657         * xml-support.c: Ditto.
5658         * xstormy16-tdep.c: Ditto.
5659         * xtensa-tdep.c: Ditto.
5660         * xtensa-tdep.h: Ditto.
5661
5662 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5663
5664         * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5665         * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5666
5667 2011-01-11  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
5668             Thiago Jung Bauermann  <bauerman@br.ibm.com>
5669
5670         Implement support for PowerPC BookE ranged watchpoints.
5671         * breakpoint.h
5672         (struct breakpoint_ops) <resources_needed>: New method.
5673         Initialize to NULL in all existing breakpoint_ops instances.
5674         (struct breakpoint) <exact>: New field.
5675         (target_exact_watchpoints): Declare external global.
5676         * breakpoint.c (target_exact_watchpoints): New global flag.
5677         (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5678         b->enable_state to bp_enabled before calling
5679         hw_watchpoint_used_count.
5680         (hw_watchpoint_used_count): Iterate over all bp_locations in a
5681         watchpoint.  Call breakpoint's breakpoint_ops.resources_needed
5682         if available.
5683         (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5684         if the watchpoint is exact.
5685         (resources_needed_watchpoint): New function.
5686         (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5687         (watch_command_1): Set b->exact if the user asked for an exact
5688         watchpoint and one can be set.
5689         (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5690         Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5691         the user asks for an exact watchpoint and one can be set.  Return
5692         number of needed debug registers to watch the expression.
5693         * gdbtypes.c (is_scalar_type): New function, based on
5694         valprint.c:scalar_type_p.
5695         (is_scalar_type_recursive): New function.
5696         * gdbtypes.h (is_scalar_type_recursive): Declare.
5697         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5698         handle regions when ranged watchpoints are available.
5699         (create_watchpoint_request): New function.
5700         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5701         create_watchpoint_request.
5702         * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5703         (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5704         `set powerpc' and `show powerpc' commands.
5705         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5706         Mention documentation comment in the target macro.
5707         (target_region_ok_for_hw_watchpoint): Document return value.
5708
5709 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5710
5711         * breakpoint.c (update_watchpoint): Decide on using a software or
5712         hardware watchpoint after the bp_locations are created.
5713
5714 2010-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5715
5716         Convert hardware watchpoints to use breakpoint_ops.
5717         * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5718         <insert_location>: ... this.  Return int instead of void.
5719         Accept pointer to struct bp_location instead of pointer to
5720         struct breakpoint.  Adapt all implementations.
5721         (breakpoint_ops) <remove>: Rename to...
5722         <remove_location>: ... this.  Accept pointer to struct bp_location
5723         instead of pointer to struct breakpoint.  Adapt all implementations.
5724         * breakpoint.c (insert_catchpoint): Delete function.
5725         (insert_bp_location): Call the watchpoint or catchpoint's
5726         breakpoint_ops.insert method.
5727         (remove_breakpoint_1): Call the watchpoint or catchpoint's
5728         breakpoint_ops.remove method.
5729         (insert_watchpoint, remove_watchpoint): New functions.
5730         (watchpoint_breakpoint_ops): New structure.
5731         (watch_command_1): Initialize the OPS field.
5732         * inf-child.c (inf_child_insert_fork_catchpoint)
5733         (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5734         (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5735         (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5736         Delete functions.
5737         (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5738         to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5739         to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5740         to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5741         * target.c (update_current_target): Change default implementation of
5742         to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5743         to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5744         to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5745         to_set_syscall_catchpoint to return_one.
5746         (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5747         (debug_to_insert_exec_catchpoint): Report return value.
5748         * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5749         (to_insert_exec_catchpoint): Change declaration to return int instead
5750         of void.
5751
5752 2011-01-11  Michael Snyder  <msnyder@vmware.com>
5753
5754         * arm-tdep.c: Internationalization.
5755         * c-lang.c: Ditto.
5756         * charset.c: Ditto.
5757         * fork-child.c: Ditto.
5758         * nto-procfs.c: Ditto.
5759         * ppc-sysv-tdep.c: Ditto.
5760         * procfs.c: Ditto.
5761         * remote-mips.c: Ditto.
5762         * remote.c: Ditto.
5763         * rs6000-nat.c: Ditto.
5764         * rs6000-tdep.c: Ditto.
5765         * target.c: Ditto.
5766         * valops.c: Ditto.
5767         * value.c: Ditto.
5768         * xml-support.c: Ditto.
5769         * mi/mi-cmd-break.c: Ditto.
5770         * mi/mi-cmd-var.c: Ditto.
5771         * mi/mi-interp.c: Ditto.
5772         * mi/mi-main.c: Ditto.
5773
5774 2011-01-11  Andrew Burgess  <aburgess@broadcom.com>
5775
5776         * remote-sim.c (gdbsim_store_register): Update API to
5777         sim_store_register to check more error conditions.
5778
5779 2011-01-10  Michael Snyder  <msnyder@vmware.com>
5780
5781         * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5782         * nto-tdep.c: Ditto.
5783         * nto-tdep.h: Ditto.
5784         * objc-exp.y: Ditto.
5785         * objc-lang.c: Ditto.
5786         * objfiles.c: Ditto.
5787         * objfiles.h: Ditto.
5788         * observer.c: Ditto.
5789         * opencl-lang.c: Ditto.
5790         * osabi.c: Ditto.
5791         * parse.c: Ditto.
5792         * parser-defs.h: Ditto.
5793         * p-exp.y: Ditto.
5794         * p-lang.c: Ditto.
5795         * posix-hdep.c: Ditto.
5796         * ppcbug-rom.c: Ditto.
5797         * ppc-linux-nat.c: Ditto.
5798         * ppc-linux-tdep.c: Ditto.
5799         * ppc-linux-tdep.h: Ditto.
5800         * ppcnbsd-tdep.c: Ditto.
5801         * ppcobsd-tdep.c: Ditto.
5802         * ppcobsd-tdep.h: Ditto.
5803         * ppc-sysv-tdep.c: Ditto.
5804         * ppc-tdep.h: Ditto.
5805         * printcmd.c: Ditto.
5806         * proc-abi.c: Ditto.
5807         * proc-flags.c: Ditto.
5808         * procfs.c: Ditto.
5809         * proc-utils.h: Ditto.
5810         * progspace.h: Ditto.
5811         * prologue-value.c: Ditto.
5812         * prologue-value.h: Ditto.
5813         * psympriv.h: Ditto.
5814         * psymtab.c: Ditto.
5815         * p-typeprint.c: Ditto.
5816         * p-valprint.c: Ditto.
5817         * ravenscar-sparc-thread.c: Ditto.
5818         * ravenscar-thread.c: Ditto.
5819         * ravenscar-thread.h: Ditto.
5820         * record.c: Ditto.
5821         * regcache.c: Ditto.
5822         * regcache.h: Ditto.
5823         * remote.c: Ditto.
5824         * remote-fileio.c: Ditto.
5825         * remote-fileio.h: Ditto.
5826         * remote.h: Ditto.
5827         * remote-m32r-sdi.c: Ditto.
5828         * remote-mips.c: Ditto.
5829         * remote-sim.c: Ditto.
5830         * rs6000-aix-tdep.c: Ditto.
5831         * rs6000-nat.c: Ditto.
5832         * rs6000-tdep.c: Ditto.
5833
5834 2011-01-10  Michael Snyder  <msnyder@vmware.com>
5835
5836         * charset.c (validate): Internationalization.
5837         * coffread.c (read_one_sym): Ditto.
5838         * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5839         * h8300-tdep.c (H8300_extract_return_value): Ditto.
5840         * inflow.c (new_tty): Ditto.
5841         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5842         * m32c-tdep.c (m32c_return_value): Ditto.
5843         * mep-tdep.c (mep_store_return_value): Ditto.
5844         * score-tdep.c (score7_fetch_insn): Ditto.
5845         * ser-mingw.c (pipe_windows_open): Ditto.
5846         * sh64-tdep.c (sh64_extract_return_value): Ditto.
5847         * spu-tdep.c (spu_register_type): Ditto.
5848         * tracepoint.c (trace_find_command): Ditto.
5849         * valarith.c (value_pos): Ditto.
5850
5851 2011-01-10  Joel Brobecker  <brobecker@adacore.com>
5852
5853         * ada-valprint.c (printstr): Minor comment reformatting.
5854
5855 2011-01-08  Michael Snyder  <msnyder@vmware.com>
5856
5857         * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5858         markup.
5859
5860 2011-01-08  Michael Snyder  <msnyder@vmware.com>
5861
5862         * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5863         * hppa-hpux-tdep.c: Ditto.
5864         * hppa-linux-nat.c: Ditto.
5865         * hppa-linux-tdep.c: Ditto.
5866         * hppanbsd-tdep.c: Ditto.
5867         * hppa-tdep.c: Ditto.
5868         * hppa-tdep.h: Ditto.
5869         * hpux-thread.c: Ditto.
5870         * i386-cygwin-tdep.c: Ditto.
5871         * i386-darwin-nat.c: Ditto.
5872         * i386gnu-nat.c: Ditto.
5873         * i386-linux-nat.c: Ditto.
5874         * i386-linux-tdep.c: Ditto.
5875         * i386-nat.c: Ditto.
5876         * i386-nat.h: Ditto.
5877         * i386nbsd-tdep.c: Ditto.
5878         * i386-sol2-nat.c: Ditto.
5879         * i386-stub.c: Ditto.
5880         * i386-tdep.c: Ditto.
5881         * i386-tdep.h: Ditto.
5882         * i387-tdep.c: Ditto.
5883         * ia64-linux-nat.c: Ditto.
5884         * ia64-linux-tdep.c: Ditto.
5885         * ia64-tdep.c: Ditto.
5886         * infcall.c: Ditto.
5887         * infcall.h: Ditto.
5888         * infcmd.c: Ditto.
5889         * inferior.c: Ditto.
5890         * inferior.h: Ditto.
5891         * infloop.c: Ditto.
5892         * inflow.c: Ditto.
5893         * infrun.c: Ditto.
5894         * interps.c: Ditto.
5895         * interps.h: Ditto.
5896         * iq2000-tdep.c: Ditto.
5897         * irix5-nat.c: Ditto.
5898         * jit.c: Ditto.
5899         * jit.h: Ditto.
5900         * jv-exp.y: Ditto.
5901         * jv-lang.c: Ditto.
5902         * jv-lang.h: Ditto.
5903         * jv-typeprint.c: Ditto.
5904         * jv-valprint.c: Ditto.
5905         * language.c: Ditto.
5906         * language.h: Ditto.
5907         * linespec.c: Ditto.
5908         * linux-fork.c: Ditto.
5909         * linux-nat.c: Ditto.
5910         * linux-thread-db.c: Ditto.
5911         * lm32-tdep.c: Ditto.
5912
5913 2011-01-08  Michael Snyder  <msnyder@vmware.com>
5914
5915         * m2-exp.y: Comment cleanup, mostly periods and spaces.
5916         * m2-lang.c: Ditto.
5917         * m2-typeprint.c: Ditto.
5918         * m2-valprint.c: Ditto.
5919         * m32c-tdep.c: Ditto.
5920         * m32r-linux-nat.c: Ditto.
5921         * m32r-rom.c: Ditto.
5922         * m32r-tdep.c: Ditto.
5923         * m32r-tdep.h: Ditto.
5924         * m68hc11-tdep.c: Ditto.
5925         * m58klinux-nat.c: Ditto.
5926         * m68k-tdep.c: Ditto.
5927         * m88k-tdep.c: Ditto.
5928         * m88k-tdep.h: Ditto.
5929         * machoread.c: Ditto.
5930         * macrocmd.c: Ditto.
5931         * macroexp.c: Ditto.
5932         * macrotab.c: Ditto.
5933         * main.c: Ditto.
5934         * maint.c: Ditto.
5935         * mdebugread.c: Ditto.
5936         * mdebugread.h: Ditto.
5937         * memattr.c: Ditto.
5938         * memattr.h: Ditto.
5939         * memory-map.h: Ditto.
5940         * mep-tdep.c: Ditto.
5941         * microblaze-rom.c: Ditto.
5942         * microblaze-tdep.c: Ditto.
5943         * minsyms.c: Ditto.
5944         * mips-irix-tdep.c: Ditto.
5945         * mips-linux-nat.c: Ditto.
5946         * mips-linux-tdep.c: Ditto.
5947         * mips-linux-tdep.h: Ditto.
5948         * mipsnbsd-nat.c: Ditto.
5949         * mipsnbsd-tdep.c: Ditto.
5950         * mipsread.c: Ditto.
5951         * mips-tdep.c: Ditto.
5952         * mips-tdep.h: Ditto.
5953         * mn10300-linux-tdep.c: Ditto.
5954         * mn10300-tdep.c: Ditto.
5955         * mn10300-tdep.h: Ditto.
5956         * monitor.c: Ditto.
5957         * monitor.h: Ditto.
5958         * moxie-tdep.c: Ditto.
5959         * moxie-tdep.h: Ditto.
5960         * mt-tdep.c: Ditto.
5961
5962 2011-01-08  Mike Frysinger  <vapier@gentoo.org>
5963
5964         * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5965
5966 2011-01-08  Robert Millan  <rmh@gnu.org>
5967
5968         * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5969
5970 2011-01-07  Michael Snyder  <msnyder@vmware.com>
5971
5972         * charset.c (_initialize_charset): Fix typo in string.
5973
5974 2011-01-07  Michael Snyder  <msnyder@vmware.com>
5975
5976         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5977         for i18n.
5978         * tui/tui-layout.c (tui_set_layout_for_display_command):
5979         Split line so that operator goes to beginning of line.
5980         * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5981         assignment out of if statement.
5982
5983 2011-01-07  Michael Snyder  <msnyder@vmware.com>
5984
5985         * ada-lang.c: Comment cleanup, mostly periods and spaces.
5986         * ada-lang.h: Ditto.
5987         * ada-tasks.c: Ditto.
5988         * ada-valprint.c: Ditto.
5989         * aix-threads.c: Ditto.
5990         * alpha-linux-nat.c: Ditto.
5991         * alpha-linux-tdep.c: Ditto.
5992         * alpha-mdebug-tdep.c: Ditto.
5993         * alpha-nat.c: Ditto.
5994         * alpha-osf1-tdep.c: Ditto.
5995         * alpha-tdep.c: Ditto.
5996         * alphabsd-nat.c: Ditto.
5997         * alphabsd-tdep.c: Ditto.
5998         * amd64-darwin-tdep.c: Ditto.
5999         * amd64-linux-nat.c: Ditto.
6000         * amd64-linux-tdep.c: Ditto.
6001         * amd64-sol2-tdep.c: Ditto.
6002         * amd64-tdep.c: Ditto.
6003         * amd64-fbsd-tdep.c: Ditto.
6004         * amd64-nbsd-tdep.c: Ditto.
6005         * amd64-obsd-tdep.c: Ditto.
6006         * amd64-linux-nat.c: Ditto.
6007         * amd64-linux-tdep.c: Ditto.
6008         * arm-tdep.c: Ditto.
6009         * arm-tdep.h: Ditto.
6010         * armnbsd-nat.c: Ditto.
6011         * avr-tdep.c: Ditto.
6012         * bfin-tdep.c: Ditto.
6013         * bsd-kvm.c: Ditto.
6014         * c-typeprintc: Ditto.
6015         * c-valprint.c: Ditto.
6016         * coff-pe-read.h: Ditto.
6017         * coffreead.c: Ditto.
6018         * cris-tdep.c: Ditto.
6019         * d-lang.c: Ditto.
6020         * darwin-nat-info.c: Ditto.
6021         * darwin-nat.c: Ditto.
6022         * dbug-rom.c: Ditto.
6023         * dbxread.c: Ditto.
6024         * dcache.c: Ditto.
6025         * dcache.h: Ditto.
6026         * dec-thread.c: Ditto.
6027         * defs.h: Ditto.
6028         * demangle.c: Ditto.
6029         * dicos-tdep.c: Ditto.
6030         * dictionary.c: Ditto.
6031         * dictionary.h: Ditto.
6032         * dink32-rom.c: Ditto.
6033         * disasm.c: Ditto.
6034         * doublest.c: Ditto.
6035         * dsrec.c: Ditto.
6036         * dummy-frame.c: Ditto.
6037         * dwarf2-frame.c: Ditto.
6038         * dwarf2expr.c: Ditto.
6039         * dwarf2loc.c: Ditto.
6040         * dwarf2read.c: Ditto.
6041         * elfread.c: Ditto.
6042         * environ.c: Ditto.
6043         * eval.c: Ditto.
6044         * event-top.h: Ditto.
6045         * exceptions.c: Ditto.
6046         * exceptions.h: Ditto.
6047         * exec.c: Ditto.
6048         * expprint.c: Ditto.
6049         * expression.h: Ditto.
6050         * f-exp.y: Ditto.
6051         * f-lang.c: Ditto.
6052         * f-lang.h: Ditto.
6053         * f-typeprint.c: Ditto.
6054         * f-valprint.c: Ditto.
6055         * fbsd-nat.c: Ditto.
6056         * findvar.c: Ditto.
6057         * fork-child.c: Ditto.
6058         * frame.c: Ditto.
6059         * frame.h: Ditto.
6060         * frv-linux-tdep.c: Ditto.
6061         * frv-tdep.c: Ditto.
6062         * gcore.c: Ditto.
6063         * gdb-stabs.h: Ditto.
6064         * gdb_assert.h: Ditto.
6065         * gdb_string.h: Ditto.
6066         * gdb_thread_db.h: Ditto.
6067         * gdb_wait.h: Ditto.
6068         * gdbarch.sh: Ditto.
6069         * gdbcore.h: Ditto.
6070         * gdbthread.h: Ditto.
6071         * gdbtypes.c: Ditto.
6072         * gdbtypes.h: Ditto.
6073         * gnu-nat.c: Ditto.
6074         * gnu-nat.h: Ditto.
6075         * gnu-v2-abi.c: Ditto.
6076         * gnu-v3-abi.c: Ditto.
6077         * go32-nat.c: Ditto.
6078         * gdbarch.c: Regenerate.
6079         * gdbarch.h: Regenerate.
6080
6081 2011-01-07  Michael Snyder  <msnyder@vmware.com>
6082
6083         * ax-gdb.c: Adjust some long output strings.
6084         * breakpoint.c: Ditto.
6085         * charset.c: Ditto.
6086         * cp-abi.c: Ditto.
6087         * infcall.c: Ditto.
6088         * infrun.c: Ditto.
6089         * linux-nat.c: Ditto.
6090         * solib-pa64.c: Ditto.
6091         * solib-som.c: Ditto.
6092
6093 2011-01-06  Tom Tromey  <tromey@redhat.com>
6094
6095         PR python/12367:
6096         * NEWS: Add item.
6097         * python/python.c (GdbMethods): Add "newest_frame" method.
6098         * python/python-internal.h (gdbpy_newest_frame): Declare.
6099         * python/py-frame.c (gdbpy_newest_frame): New function.
6100
6101 2010-01-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
6102
6103         * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
6104         * jit.c (jit_debug): New variable.
6105         (show_jit_debug): New function.
6106         (struct target_buffer): Use ULONGEST.
6107         (bfd_open_from_target_memory): Likewise.
6108         (jit_register_code, jit_inferior_init): Add debug output.
6109         (_initialize_jit): Register "debug jit" command.
6110
6111 2011-01-06  Tom Tromey  <tromey@redhat.com>
6112
6113         * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
6114         * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
6115         and ARCH_FRAME.
6116
6117 2011-01-06  Tom Tromey  <tromey@redhat.com>
6118
6119         * python/py-frame.c (frapy_block): Use get_frame_block.
6120
6121 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
6122
6123         Do not stop on SIGPRIO signals by default
6124         * infrun.c (_initialize_infrun): Unset signal_stop and
6125         signal_print for TARGET_SIGNAL_PRIO.
6126
6127 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
6128
6129         * ada-tasks.c: Fix style violation in comment.
6130
6131 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
6132
6133         * linespec.c (decode_compound, find_method): Remove trailing \n
6134         at end of error string.
6135         * solib-irix.c (irix_current_sos): Likewise.
6136         * varobj.c (uninstall_variable): Likewise.
6137
6138 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
6139
6140         * copyright.py: New script.
6141         * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
6142         Launch emacs without exec'ing. Call copyright.py afterwards.
6143
6144 2011-01-05  Michael Snyder  <msnyder@vmware.com>
6145
6146         * addrmap.c: Shorten lines of >= 80 columns.
6147         * arch-utils.c: Ditto.
6148         * arch-utils.h: Ditto.
6149         * ax-gdb.c: Ditto.
6150         * ax-general.c: Ditto.
6151         * bcache.c: Ditto.
6152         * blockframe.c: Ditto.
6153         * breakpoint.c: Ditto.
6154         * buildsym.c: Ditto.
6155         * c-lang.c: Ditto.
6156         * c-typeprint.c: Ditto.
6157         * charset.c: Ditto.
6158         * coffread.c: Ditto.
6159         * command.h: Ditto.
6160         * corelow.c: Ditto.
6161         * cp-abi.c: Ditto.
6162         * cp-namespace.c: Ditto.
6163         * cp-support.c: Ditto.
6164         * dbug-rom.c: Ditto.
6165         * dbxread.c: Ditto.
6166         * defs.h: Ditto.
6167         * dfp.c: Ditto.
6168         * dfp.h: Ditto.
6169         * dictionary.c: Ditto.
6170         * disasm.c: Ditto.
6171         * doublest.c: Ditto.
6172         * dwarf2-frame.c: Ditto.
6173         * dwarf2expr.c: Ditto.
6174         * dwarf2loc.c: Ditto.
6175         * dwarf2read.c: Ditto.
6176         * elfread.c: Ditto.
6177         * eval.c: Ditto.
6178         * event-loop.c: Ditto.
6179         * event-loop.h: Ditto.
6180         * exceptions.h: Ditto.
6181         * exec.c: Ditto.
6182         * expprint.c: Ditto.
6183         * expression.h: Ditto.
6184         * f-lang.c: Ditto.
6185         * f-valprint.c: Ditto.
6186         * findcmd.c: Ditto.
6187         * frame-base.c: Ditto.
6188         * frame-unwind.c: Ditto.
6189         * frame-unwind.h: Ditto.
6190         * frame.c: Ditto.
6191         * frame.h: Ditto.
6192         * gcore.c: Ditto.
6193         * gdb-stabs.h: Ditto.
6194         * gdb_assert.h: Ditto.
6195         * gdb_dirent.h: Ditto.
6196         * gdb_obstack.h: Ditto.
6197         * gdbcore.h: Ditto.
6198         * gdbtypes.c: Ditto.
6199         * gdbtypes.h: Ditto.
6200         * inf-ttrace.c: Ditto.
6201         * infcall.c: Ditto.
6202         * infcmd.c: Ditto.
6203         * inflow.c: Ditto.
6204         * infrun.c: Ditto.
6205         * inline-frame.h: Ditto.
6206         * language.c: Ditto.
6207         * language.h: Ditto.
6208         * libunwind-frame.c: Ditto.
6209         * libunwind-frame.h: Ditto.
6210         * linespec.c: Ditto.
6211         * linux-nat.c: Ditto.
6212         * linux-nat.h: Ditto.
6213         * linux-thread-db.c: Ditto.
6214         * machoread.c: Ditto.
6215         * macroexp.c: Ditto.
6216         * macrotab.c: Ditto.
6217         * main.c: Ditto.
6218         * maint.c: Ditto.
6219         * mdebugread.c: Ditto.
6220         * memattr.c: Ditto.
6221         * minsyms.c: Ditto.
6222         * monitor.c: Ditto.
6223         * monitor.h: Ditto.
6224         * objfiles.c: Ditto.
6225         * objfiles.h: Ditto.
6226         * osabi.c: Ditto.
6227         * p-typeprint.c: Ditto.
6228         * p-valprint.c: Ditto.
6229         * parse.c: Ditto.
6230         * printcmd.c: Ditto.
6231         * proc-events.c: Ditto.
6232         * procfs.c: Ditto.
6233         * progspace.c: Ditto.
6234         * progspace.h: Ditto.
6235         * psympriv.h: Ditto.
6236         * psymtab.c: Ditto.
6237         * record.c: Ditto.
6238         * regcache.c: Ditto.
6239         * regcache.h: Ditto.
6240         * remote-fileio.c: Ditto.
6241         * remote.c: Ditto.
6242         * ser-mingw.c: Ditto.
6243         * ser-tcp.c: Ditto.
6244         * ser-unix.c: Ditto.
6245         * serial.c: Ditto.
6246         * serial.h: Ditto.
6247         * solib-frv.c: Ditto.
6248         * solib-irix.c: Ditto.
6249         * solib-osf.c: Ditto.
6250         * solib-pa64.c: Ditto.
6251         * solib-som.c: Ditto.
6252         * solib-sunos.c: Ditto.
6253         * solib-svr4.c: Ditto.
6254         * solib-target.c: Ditto.
6255         * solib.c: Ditto.
6256         * somread.c: Ditto.
6257         * source.c: Ditto.
6258         * stabsread.c: Ditto.
6259         * stabsread.c: Ditto.
6260         * stack.c: Ditto.
6261         * stack.h: Ditto.
6262         * symfile-mem.c: Ditto.
6263         * symfile.c: Ditto.
6264         * symfile.h: Ditto.
6265         * symmisc.c: Ditto.
6266         * symtab.c: Ditto.
6267         * symtab.h: Ditto.
6268         * target-descriptions.c: Ditto.
6269         * target-memory.c: Ditto.
6270         * target.c: Ditto.
6271         * target.h: Ditto.
6272         * terminal.h: Ditto.
6273         * thread.c: Ditto.
6274         * top.c: Ditto.
6275         * tracepoint.c: Ditto.
6276         * tracepoint.h: Ditto.
6277         * ui-file.c: Ditto.
6278         * ui-file.h: Ditto.
6279         * ui-out.h: Ditto.
6280         * user-regs.c: Ditto.
6281         * user-regs.h: Ditto.
6282         * utils.c: Ditto.
6283         * valarith.c: Ditto.
6284         * valops.c: Ditto.
6285         * valprint.c: Ditto.
6286         * valprint.h: Ditto.
6287         * value.c: Ditto.
6288         * varobj.c: Ditto.
6289         * varobj.h: Ditto.
6290         * vec.h: Ditto.
6291         * xcoffread.c: Ditto.
6292         * xcoffsolib.c: Ditto.
6293         * xcoffsolib.h: Ditto.
6294         * xml-syscall.c: Ditto.
6295         * xml-tdesc.c: Ditto.
6296
6297 2011-01-05  Michael Snyder  <msnyder@vmware.com>
6298
6299         * cli/cli-cmds.c: Shorten lines of >= 80 columns.
6300         * cli/cli-decode.c: Ditto.
6301         * cli/cli-dump.c: Ditto.
6302         * cli/cli-logging.c: Ditto.
6303         * cli/cli-script.c: Ditto.
6304         * cli/cli-setshow.c: Ditto.
6305         * common/signals.c: Ditto.
6306         * mi/mi-cmd-break.c: Ditto.
6307         * mi/mi-cmd-disas.c: Ditto.
6308         * mi/mi-cmd-stack.c: Ditto.
6309         * mi/mi-cmd-var.c: Ditto.
6310         * mi/mi-cmds.c: Ditto.
6311         * mi/mi-common.h: Ditto.
6312         * mi/mi-console.c: Ditto.
6313         * mi/mi-interp.c: Ditto.
6314         * mi/mi-main.c: Ditto.
6315         * osf-share/cma_attr.c: Ditto.
6316         * osf-share/cma_deb_core.h: Ditto.
6317         * osf-share/cma_debug_client.h: Ditto.
6318         * osf-share/cma_handle.h: Ditto.
6319         * osf-share/cma_mutex.h: Ditto.
6320         * osf-share/cma_stack_int.h: Ditto.
6321         * osf-share/cma_tcb_defs.h: Ditto.
6322         * python/py-auto-load.c: Ditto.
6323         * python/py-breakpoint.c: Ditto.
6324         * python/py-cmd.c: Ditto.
6325         * python/py-frame.c: Ditto.
6326         * python/py-objfile.c: Ditto.
6327         * python/py-param.c: Ditto.
6328         * python/py-progspace.c: Ditto.
6329         * python/py-symbol.c: Ditto.
6330         * python/py-value.c: Ditto.
6331         * python/python-internal.h: Ditto.
6332         * python/python.c: Ditto.
6333         * tui/tui-data.c: Ditto.
6334         * tui/tui-disasm.c: Ditto.
6335         * tui/tui-hooks.c: Ditto.
6336         * tui/tui-io.c: Ditto.
6337         * tui/tui-layout.c: Ditto.
6338         * tui/tui-regs.c: Ditto.
6339         * tui/tui-source.c: Ditto.
6340         * tui/tui-stack.c: Ditto.
6341         * tui/tui-win.c: Ditto.
6342         * tui/tui-windata.c: Ditto.
6343         * tui/tui-winsource.c: Ditto.
6344
6345 2011-01-05  Joel Brobecker  <brobecker@adacore.com>
6346
6347         * configure.ac, gdb.1: Copyright year update.
6348
6349 2011-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6350
6351         * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6352         this_pc_in_block, morestack_msym and morestack_name.  Check for
6353         "__morestack" minimal symbol there.
6354
6355 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
6356
6357         * symfile.c (find_sym_fns): Add call to dont_repeat.
6358
6359 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
6360
6361         Copyright year update in most files (performed by copyright.sh).
6362
6363 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
6364
6365         * top.c (print_gdb_version): Update copyright year in version output.
6366
6367 For older changes see ChangeLog-2010.
6368 \f
6369 Local Variables:
6370 mode: change-log
6371 left-margin: 8
6372 fill-column: 74
6373 version-control: never
6374 coding: utf-8
6375 End: