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