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