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