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