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