2010-04-23 Stan Shebs <stan@codesourcery.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
35c9c7ba
SS
12010-04-23 Stan Shebs <stan@codesourcery.com>
2
3 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
4 comments.
5 (struct agent_reqs): Remove.
6 (ax_reg_mask): Declare.
7 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
8 (free_agent_expr): Free reg_mask.
9 (ax_print): Add scope and register mask info.
10 (ax_reqs): Remove agent_reqs argument, use agent expression
11 fields, and move part of register mask computation to...
12 (ax_reg_mask): New function.
13 * ax-gdb.c (gen_trace_static_fields): Call it.
14 (gen_traced_pop): Ditto.
15 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
16 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
17 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
18 (gen_eval_for_expr): Ditto, and require an rvalue.
19 (agent_command): Call ax_reqs.
20 (agent_eval_command): Ditto.
21 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
22 (validate_action_line): Ditto.
23 (collect_symbol): Ditto.
24 (encode_actions_1): Ditto.
25
492928e4
JK
262010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
27 Paul Pluzhnikov <ppluzhnikov@google.com>
28 Jan Kratochvil <jan.kratochvil@redhat.com>
29
30 Fix deadlock on looped list of loaded shared objects.
31 * solib-svr4.c (LM_PREV): New function.
32 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
33 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
34 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
35 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
36
66d09542
DE
372010-04-23 Doug Evans <dje@google.com>
38
88a1906b
DE
39 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
40 python.
41 * configure: Regenerate.
42 * main.c: #include "python/python.h".
43 (captured_main): Defer loading auto-loaded scripts until after
44 local_gdbinit has been sourced.
45 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
46 (load_auto_scripts_for_objfile): New function.
47 (auto_load_new_objfile): Call it.
48 * python/python.h (gdbpy_global_auto_load): Declare.
49 (load_auto_scripts_for_objfile): Declare.
50
66d09542
DE
51 Add support for auto-loading scripts from .debug_gdb_scripts section.
52 * NEWS: Add entry for .debug_gdb_scripts.
53 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
54 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
55 (py-auto-load.o): New rule.
56 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
57 * cli/cli-cmds.h (find_and_open_script): Update prototype.
58 * python/py-auto-load.c: New file.
59 * python/python-internal.h: #include <stdio.h>.
60 (set_python_list, show_python_list): Declare.
61 (gdbpy_initialize_auto_load): Declare.
62 (source_python_script_for_objfile): Declare.
63 * python/python.c: Remove #include of observer.h.
64 (gdbpy_auto_load): Moved to py-auto-load.c.
65 (GDBPY_AUTO_FILENAME): Ditto.
66 (gdbpy_new_objfile): Delete.
67 (source_python_script_for_objfile): New function.
68 (set_python_list, show_python_list): Make externally visible.
69 (_initialize_python): Move "auto-load" command to py-auto-load.c
70 and observer_attach_new_objfile to py-auto-load.c.
71
3a48e6ff
JG
722010-04-23 Jerome Guitton <guitton@adacore.com>
73
74 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
75 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
76 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
77 New constants.
78 (alpha_heuristic_analyze_probing_loop): New function.
79 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
80 and handle cases when a stack probe loop is generated.
81 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
82 (alpha_mdebug_max_frame_size_exceeded): New function.
83 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
84 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
85 Return 0 when the maximum debuggable frame size has been exceeded.
86
e4166a49
JB
872010-04-23 Joel Brobecker <brobecker@adacore.com>
88
89 Fix ARI warning.
90 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
91
8bd10a10
CM
922010-04-20 Chris Moller <cmoller@redhat.com>
93
94 PR 10179
95
96 * symtab.c (rbreak_command): Added code to include a filename
97 specification in the rbreak argument.
98 * NEWS: Added a brief description of filename-qualified rbreak.
99
c0201579
JK
1002010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
101
102 Fix crashes on dangling display expressions.
103 * ada-lang.c (ada_operator_check): New function.
104 (ada_exp_descriptor): Fill-in the field operator_check.
105 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
106 * jv-lang.c (exp_descriptor_java): Likewise.
107 * m2-lang.c (exp_descriptor_modula2): Likewise.
108 * scm-lang.c (exp_descriptor_scm): Likewise.
109 * parse.c (exp_descriptor_standard): Likewise.
110 (operator_check_standard): New function.
111 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
112 * parser-defs.h (struct exp_descriptor): New field operator_check.
113 (operator_check_standard, exp_uses_objfile): New declarations.
114 * printcmd.c: Remove the inclusion of solib.h.
115 (display_uses_solib_p): Remove the function.
116 (clear_dangling_display_expressions): Call lookup_objfile_from_block
117 and exp_uses_objfile instead of display_uses_solib_p.
118 * solist.h (struct so_list) <objfile>: New comment.
119 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
120 * symtab.h (lookup_objfile_from_block): New declaration.
121 (struct general_symbol_info) <obj_section>: Extend the comment.
122
6ffbb7ab
TJB
1232010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
124 Thiago Jung Bauermann <bauerman@br.ibm.com>
125
126 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
127 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
128 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
129 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
130 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
131 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
132 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
133 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
134 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
135 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
136 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
137 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
138 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
139 Define, in case <ptrace.h> doesn't provide it.
140 (booke_debug_info): New variable.
141 (max_slots_number): Ditto.
142 (hw_break_tuple): New struct.
143 (thread_points): Ditto.
144 (ppc_threads): New variable.
145 (PPC_DEBUG_CURRENT_VERSION): New define.
146 (have_ptrace_new_debug_booke): New function.
147 (ppc_linux_check_watch_resources): Renamed to ...
148 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
149 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
150 (booke_cmp_hw_point): New function.
151 (booke_find_thread_points_by_tid): Ditto.
152 (booke_insert_point): Ditto.
153 (booke_remove_point): Ditto.
154 (ppc_linux_insert_hw_breakpoint): Ditto.
155 (ppc_linux_remove_hw_breakpoint): Ditto.
156 (get_trigger_type): Ditto.
157 (ppc_linux_insert_watchpoint): Handle BookE processors.
158 (ppc_linux_remove_watchpoint): Ditto.
159 (ppc_linux_new_thread): Ditto.
160 (ppc_linux_thread_exit): New function..
161 (ppc_linux_stopped_data_address): Handle BookE processors.
162 (ppc_linux_watchpoint_addr_within_range): Ditto.
163 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
164 to_remove_hw_breakpoint fields of the target operations struct.
165 Add observe for the thread_exit event.
166
be0d2954
L
1672010-04-22 H.J. Lu <hongjiu.lu@intel.com>
168
169 * i386-linux-nat.c (regmap): Removed.
170 (fetch_register): Replace regmap with
171 i386_linux_gregset_reg_offset.
172 (store_register): Likewise.
173 (supply_gregset): Likewise.
174 (fill_gregset): Likewise.
175
176 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
177 global.
178
179 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
180
f56dcb88
CM
1812010-04-22 Chris Moller <cmoller@redhat.com>
182
183 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
758afad7
L
184 method of popping recursion-detection stack with a method based on
185 obstack_object_size(). (Similar to the PR9167 patch below, but for
f56dcb88
CM
186 the static array obstack rather than the static member obstack.)
187
6cd6a2ae
L
1882010-04-22 H.J. Lu <hongjiu.lu@intel.com>
189
190 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
191 (_initialize_amd64_linux_nat): Replace
192 amd64_linux_gregset64_reg_offset with
193 amd64_linux_gregset_reg_offset.
194
195 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
196 global.
197
198 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
199
621791b8
PM
2002010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
201
202 PR stabs/11479.
203 * stabsread.c (set_length_in_type_chain): New function.
204 (read_struct_type): Call set_length_in_type_chain function.
205 (read_enum_type): Idem.
206
105c2d85
SS
2072010-04-21 Stan Shebs <stan@codesourcery.com>
208 Nathan Sidwell <nathan@codesourcery.com>
209
210 * tracepoint.c (trace_save): Open in binary mode.
211
9a22f0d0
PM
2122010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
213
214 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
215 fields.
216 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
217 builtin_char32 fields.
218 * printcmd.c (decode_format): Set char size to '\0'
219 for strings unless explicit size is given.
220 (print_formatted): Correct calculation of NEXT_ADDRESS
221 for 16 or 32 bit strings.
222 (do_examine): Do not force byte size for strings.
223 Use builtin_char16 and builtin_char32 types to display
224 16 or 32 bit-wide strings.
225 (x_command): Set LAST_SIZE to 'b' for string type.
226
f335d1b3
L
2272010-04-21 H.J. Lu <hongjiu.lu@intel.com>
228
229 PR corefiles/11523
230 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
231 XCR0 first.
232
233 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
234 there is no .reg-xstate section.
235 (i386_linux_core_read_description): Check XCR0 first.
236
a9789a6b
MF
2372010-04-21 Mike Frysinger <vapier@gentoo.org>
238
239 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
240 for len <= 8.
241
0b66f317
CM
2422010-04-21 Chris Moller <cmoller@redhat.com>
243
244 PR 9167
245 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
32d7376d
L
246 method of popping recursion-detection stack with a method based on
247 obstack_object_size().
0b66f317 248
6e354e5e
PM
2492010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
250
251 PR pascal/11492.
252 * p-valprint.c (pascal_val_print): Fix default printing of integer
253 arrays.
254
57174f31
PM
2552010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
256
257 Fix compilation warning on gcc-4.1.2.
258 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
259 local variable`pc' to zero.
260
6fbc7cd8
JB
2612010-04-20 Joel Brobecker <brobecker@adacore.com>
262
263 Implement thread support with core files on alpha-tru64.
264 * dec-thread.c (dec_thread_find_new_threads): New function,
265 extracted from resync_thread_list.
266 (resync_thread_list): Add OPS parameter. Replace extracted-out
267 code by call to dec_thread_find_new_threads.
268 (dec_thread_wait): Update call to resync_thread_list.
269 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
270
438c98a1
JB
2712010-04-20 Joel Brobecker <brobecker@adacore.com>
272
273 * ada-lang.c (value_pointer): New function.
274 (make_array_descriptor): Call value_pointer to convert addresses to
275 pointers.
276
2971b56b
JB
2772010-04-20 Joel Brobecker <brobecker@adacore.com>
278
279 * rs6000-aix-tdep.c: #include exceptions.h.
280 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
281 while reading the memory at ADDR, then ADDR cannot be a function
282 descriptor.
283
be942545
JB
2842010-04-20 Joel Brobecker <brobecker@adacore.com>
285
286 * ada-typeprint.c (ada_print_typedef): New function.
287 * ada-lang.h (ada_print_typedef): Add declaration.
288 * ada-lang.c (ada_language_defn): set la_print_typdef field
289 to ada_print_typedef.
290
1ca8fce0
JB
2912010-04-20 Joel Brobecker <brobecker@adacore.com>
292
293 * procfs.c (procfs_address_to_host_pointer): Only define when used.
294
e9ef4f39
JB
2952010-04-20 Joel Brobecker <brobecker@adacore.com>
296
297 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
298 (iterate_over_mappings): Adjust function profile. Add declaration.
299 (insert_dbx_link_bpt_in_region, info_mappings_callback):
300 Adjust accordingly.
301
e294797a
JB
3022010-04-20 Joel Brobecker <brobecker@adacore.com>
303
304 * procfs.c (solib_mappings_callback): Move function up to avoid
305 a compiler warning.
306
a223f1e7
JB
3072010-04-20 Joel Brobecker <brobecker@adacore.com>
308
309 * procfs.c (find_signalled_thread, find_stop_signal): Move
310 these functions down to define them only when used.
311
0c3acc09
JB
3122010-04-20 Joel Brobecker <brobecker@adacore.com>
313
314 * valprint.c (common_val_print): Fix the value before extracting
315 its contents.
316 * ada-lang.c (ada_to_fixed_value): Make this function extern.
317 * ada-lang.h (ada_to_fixed_value): New function declaration.
318 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
319 to avoid code duplication and fix a bug in the handling of
320 fixed types contents.
321
31ef98ae
TT
3222010-04-20 Tom Tromey <tromey@redhat.com>
323
324 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
325 (read_partial_die): Likewise.
326 (dwarf_attr_name): Likewise.
327
ec31cde5
CM
3282010-04-20 Chris Moller <cmoller@redhat.com>
329
330 PR 10867
331
332 * cp-valprint.c (global): Adding new static array recursion
333 detection obstack.
334 (cp_print_value_fields, cp_print_static_field): Added new static
335 array recursion detection code.
336
e0e0e543
MK
3372010-04-20 Mark Kettenis <kettenis@gnu.org>
338
339 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
340 general-purpose register set should be 68 instead of 144.
341 (i386_linux_sse_regset_sections): Likewise.
342 (i386_linux_avx_regset_sections): Likewise.
343
08922a10
SS
3442010-04-20 Stan Shebs <stan@codesourcery.com>
345 Nathan Sidwell <nathan@codesourcery.com>
346
347 * dwarf2loc.c (struct axs_var_loc): New struct.
348 (dwarf2_tracepoint_var_loc): New function.
349 (dwarf2_tracepoint_var_access): New function.
350 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
351 with DW_OP_piece.
352 (locexpr_describe_location_piece): New function.
353 (locexpr_describe_location_1): New function.
354 (locexpr_describe_location): Call it, update signature.
355 (loclist_describe_location): Rewrite to loop over locations,
356 update signature.
357 * symtab.h (struct symbol_computed_ops): Add address to
358 describe_location arguments, return void.
359 * printcmd.c (address_info): Get context PC, pass to computed
360 location description.
361 * tracepoint.c (scope_info): Ditto.
362 * ax-gdb.c (trace_kludge): Export.
363
2dc7f7b3
TT
3642010-04-20 Tom Tromey <tromey@redhat.com>
365
366 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
367 (struct dwarf2_cie) <segment_size>: New field.
368 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
369 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
370 DW_FORM_exprloc.
371 (read_attribute_value): Handle DW_FORM_flag_present,
372 DW_FORM_sec_offset, DW_FORM_exprloc.
373 (dump_die_shallow): Likewise.
374 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
375 (dwarf2_const_value): Handle DW_FORM_exprloc.
376 (attr_form_is_block): Likewise.
377 (struct line_header) <maximum_ops_per_instruction>: New field.
378 (dwarf_decode_line_header): Set new field.
379 (dwarf_decode_lines): Handle new field.
380
ce4b0682
SDJ
3812010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
382
383 * f-exp.y: Add new production to recognize the `logical*8' type.
384 (LOGICAL_S8_KEYWORD): New token.
385 * f-lang.c (enum f_primitive_types)
386 <f_primitive_type_logical_s8>: New field.
387 (f_language_arch_info): Handling `logical*8' type.
388 (build_fortran_types): Building `logical*8' type.
389 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
390
ff9f22f1
DE
3912010-04-19 Doug Evans <dje@google.com>
392
393 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
394 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
395 (pipe_close): Ditto.
396
437125bd
PM
3972010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
398
399 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
400
e8e6c82e
PM
4012010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
402
403 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
404 type to void function.
405
4136fdd2
SS
4062010-04-19 Stan Shebs <stan@codesourcery.com>
407 Vladimir Prus <vladimir@codesourcery.com>
408
409 * tracepoint.c (tfind_1): Add missing newline, report exit from
410 tfind mode as such.
411 * target.c (update_current_target): Make default
412 to_trace_find return -1.
413
0c4b2e63
MF
4142010-04-19 Mike Frysinger <vapier@gentoo.org>
415
416 * objc-lang.c (find_methods): Move symname check up.
417
78076abc
PA
4182010-04-19 Pedro Alves <pedro@codesourcery.com>
419
420 * ada-lang.c (print_recreate_exception)
421 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
422 not "catch unhandled".
423
6149aea9
PA
4242010-04-19 Pedro Alves <pedro@codesourcery.com>
425
426 PR breakpoints/8554.
427
428 Implement `save-breakpoints'.
429
430 * breakpoint.c (save_cmdlist): New.
431 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
432 to save_cmdlist.
433 (print_recreate_catch_fork): New.
434 (catch_fork_breakpoint_ops): Install it.
435 (print_recreate_catch_vfork): New.
436 (catch_vfork_breakpoint_ops): Install it.
437 (print_recreate_catch_syscall): New.
438 (catch_syscall_breakpoint_ops): Install it.
439 (print_recreate_catch_exec): New.
440 (catch_exec_breakpoint_ops): Install it.
441 (print_recreate_exception_catchpoint): New.
442 (gnu_v3_exception_catchpoint_ops): Install it.
443 (save_breakpoints): New, based on tracepoint_save_command, but
444 handle all breakpoint types.
445 (save_breakpoints_command): New.
446 (tracepoint_save_command): Rename to...
447 (save_tracepoints_command): ... this, and reimplement using
448 save_breakpoints.
449 (save_command): New.
450 (_initialize_breakpoints): Install the "save" command prefix.
451 Install the "save breakpoints" command. Make "save-tracepoints" a
452 deprecated alias for "save tracepoints".
453 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
454 * ada-lang.c (print_recreate_exception): New.
455 (print_recreate_catch_exception): New.
456 (catch_exception_breakpoint_ops): Install it.
457 (print_recreate_catch_exception_unhandled): New.
458 (catch_exception_unhandled_breakpoint_ops): Install it.
459 (print_recreate_catch_assert): New.
460 (catch_assert_breakpoint_ops): Install it.
461
462 * NEWS: Mention the new `save breakpoints' command. Mention the
463 new `save tracepoints' alias and that `save-tracepoints' is now
464 deprecated.
465
0a8fce9a
PA
4662010-04-18 Pedro Alves <pedro@codesourcery.com>
467
468 PR tui/9217
469
470 * tui/tui-out.c: Include cli-out.h.
471 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
472 (tui_begin, tui_end, tui_field_int, tui_field_skip)
473 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
474 (tui_message, tui_wrap_hint, tui_flush): Delete forward
475 declarations.
476 (struct ui_out_data): Rename to...
477 (struct tui_ui_out_data): ... this. Remove `stream' and
478 `suppress_output' fields, and inherit cli_ui_out_data.
479 (tui_out_data): New typedef.
480 (tui_ui_out_impl): Don't initialize fields staticaly.
481 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
482 (tui_begin, tui_end): Delete.
483 (tui_field_int): Adjust to delegate most work to the base type.
484 (tui_field_skip): Delete.
485 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
486 delegate most work to the base type.
487 (tui_spaces): Delete.
488 (tui_text): Adjust to delegate most work to the base type.
489 (tui_message): Delete.
490 (tui_wrap_hint): Delete.
491 (tui_flush): Delete.
492 (out_field_fmt): Delete.
493 (field_separator): Delete.
494 (tui_out_new): Adjust to initialize the base type.
495 (_initialize_tui_out): Initialize tui_ui_out_impl.
496 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
497 cli_ui_out_data.
498 (cli_out_data): Adjust.
499 (cli_ui_out_impl): Make extern.
500 (cli_table_header, cli_field_int, cli_field_skip): Use
501 uo_field_string instead of cli_field_string.
502 (cli_redirect): Adjust to use cli_out_data.
503 (cli_out_data_ctor): New.
504 (cli_out_new): Use it.
505 * cli-out.h (struct ui_file): Remove forward declaration.
506 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
507 (cli_ui_out_impl): Declare.
508 (cli_out_data_ctor): Declare.
509 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
510 (uo_field_string): No longer static.
511 (ui_out_data): Change return type to void pointer.
512 (ui_out_new): Change `data' parameter type to void pointer.
513 * ui-out.h (struct ui_out_data): Don't forward declare.
514 (ui_out_data): Change return type to void pointer.
515 (ui_out_new): Change `data' parameter type to void pointer.
516 (uo_field_string): Declare.
517
172240dd
PA
5182010-04-17 Pedro Alves <pedro@codesourcery.com>
519
520 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
521 instead of always false.
522
ed41462c
L
5232010-04-17 H.J. Lu <hongjiu.lu@intel.com>
524
525 PR corefiles/11511
526 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
527 orig_rax.
528
cc60f2e3
PA
5292010-04-17 Pedro Alves <pedro@codesourcery.com>
530
531 * breakpoint.c (watchpoints_triggered): Use
532 is_hardware_watchpoint.
533 (watchpoints_triggered): Ditto.
534 (bpstat_check_location): Use is_watchpoint and
535 is_hardware_watchpoint.
536 (bpstat_check_watchpoint): Use is_watchpoint and
537 is_hardware_watchpoint.
538 (bpstat_stop_status): Fix comment.
539 (user_settable_breakpoint): Use is_watchpoint.
540 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
541 (disable_watchpoints_before_interactive_call_start): Use
542 is_watchpoint.
543 (enable_watchpoints_after_interactive_call_stop): Use
544 is_watchpoint.
545 (clear_command): Use is_watchpoint.
546 (do_enable_breakpoint): Use is_watchpoint.
547
cb7db0f2
MF
5482010-04-16 Mike Frysinger <vapier@gentoo.org>
549
550 * solib-frv.c (enable_break1_done): Delete.
551 (enable_break2): Do not check enable_break1_done. Move the
552 enable_break2_done setting and call to
553 remove_solib_event_breakpoints() to the end. Return without
554 warning when the contents of _dl_debug_addr are 0.
555 (enable_break): Do not set enable_break1_done.
556 (frv_clear_solib): Likewise.
557
d77b48cf
KB
5582010-04-16 Kevin Buettner <kevinb@redhat.com>
559
560 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
561 instead of an error if no PLT entry is found. Return a
562 potentially useful result.
563 (m32c_m16c_pointer_to_address): Add code to search for function
564 address when no .plt entry is found.
565
f90824dc
SS
5662010-04-16 Stan Shebs <stan@codesourcery.com>
567
568 * tracepoint.c (trace_variable_command): Run a cleanup.
569
9b79b476
PM
5702010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
571
572 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
573
711e434b
PM
5742010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
575
576 Support for Windows OS Thread Information Block.
577 * NEWS: Document new feature.
578 * remote.c (PACKET_qGetTIBAddr): New enum element.
579 (remote_get_tib_address): New function.
580 (init_remote_ops): Set to_get_tib_address field
581 to remote_get_tib_address.
582 (_initialize_remote): Add add_packet_config_cmd
583 for PACKET_qGetTIBAddr.
584 * target.c (update_current_target): Set default value for
585 new to_get_tib_address field.
586 * target.h (target_ops): New field to_get_tib_address.
587 (target_get_tib_address): New macro.
588 * windows-nat.c (thread_info): Add thread_local_base field.
589 (windows_add_thread): Add tlb argument of type 'void *'.
590 (fake_create_process): Adapt windows_add_thread call.
591 (get_windows_debug_event): Idem.
592 (windows_get_tib_address): New function.
593 (init_windows_ops): Set to_get_tib_address field
594 to remote_get_tib_address.
595 (_initialize_windows_nat): Replace info_w32_cmdlist
596 initialization by a call to init_w32_command_list.
597 (info_w32_command, info_w32_cmdlist): Removed from here...
598 to windows-tdep.c file.
599 * windows-tdep.h (info_w32_cmdlist): Declare.
600 (init_w32_command_list): New external function
601 declaration.
602 * windows-tdep.c: Add several headers.
603 (info_w32_cmdlist): to here, made global.
604 (thread_information_32): New struct.
605 (thread_information_64): New struct.
606 (TIB_NAME): New char array.
607 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
608 (maint_display_all_tib): New static variable.
609 (windows_get_tlb_type): New function.
610 (tlb_value_read, tlb_value_write): New functions.
611 (tlb_value_funcs): New static struct.
612 (tlb_make_value): New function.
613 (display_one_tib): New function.
614 (display_tib): New function.
615 (show_maint_show_all_tib):New function.
616 (info_w32_command): Moved from windows-nat.c.
617 (init_w32_command_list): New function.
618 (_initialize_windows_tdep): New function.
619 New "maint set/show show-all-tib" command
620 New "$_tlb" internal variable.
621
cae3f17b
JB
6222010-04-16 Joel Brobecker <brobecker@adacore.com>
623
624 * tui/tui-regs.c (tui_display_register): Add comment about
625 a couple of casts.
626 * tui/tui-stack.c (tui_show_locator_content): Ditto.
627
2ce6d6bf
SS
6282010-04-15 Stan Shebs <stan@codesourcery.com>
629
630 * frame.c: Include tracepoint.h.
631 (get_current_frame): Allow a trace frame to be an alternate source
632 of stack frame data.
633 * tracepoint.c (tfind_1): Don't try to get current stack frame if
634 it won't succeed.
635
7e559477
PA
6362010-04-15 Pedro Alves <pedro@codesourcery.com>
637
638 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
639 flags.
640 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
641
3f7b2faa
DE
6422010-04-15 Doug Evans <dje@google.com>
643
fa33c3cd
DE
644 * NEWS: Add entry for python program space support.
645 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
646 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
647 (py-progspace.o): New rule.
648 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
649 function.
650 (find_pretty_printer_from_progspace): New function.
651 (find_pretty_printer_from_gdb): New function.
652 (find_pretty_printer): Rewrite.
653 * python/py-progspace.c: New file.
654 * python/python-internal.h (program_space): Add forward decl.
655 (pspace_to_pspace_object, pspy_get_printers): Declare.
656 (gdbpy_initialize_pspace): Declare.
657 * python/python.c: #include "progspace.h".
658 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
659 (_initialize_python): Call gdbpy_initialize_pspace.
660 (GdbMethods): Add current_progspace, progspaces.
661
3f7b2faa
DE
662 Add -s option to source command.
663 * NEWS: Document new option.
664 * cli/cli-cmds.c (find_and_open_script): Add function comment.
665 Delete from_tty and cleanupp args. Split filep arg into file and
666 full_pathp. New arg search_path.
667 (source_script_from_stream): New function.
668 (source_script_with_search): New function.
669 (source_script): Rewrite.
670 (source_command): Parse "-s" option.
671 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
672 * python/python.c (source_python_script): Make file arg a const char *.
673 Don't call fclose, leave for caller.
674 * python/python.h (source_python_script): Update.
675
a86988f2
PA
6762010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
677 Pedro Alves <pedro@codesourcery.com>
678
679 Avoid rereading shared libraries that haven't changed.
680
681 * solib.c (free_so_symbols): New function, from ...
682 (free_so): ... here. Call it.
683 (solib_read_symbols): Don't warn here if symbols have already been
684 loaded.
685 (solib_add): Warn here instead, if a pattern was specified.
686 (reload_shared_libraries_1): New.
687 (reload_shared_libraries): Rewrite to not fetch the library list.
688
e6d9b9c2
DE
6892010-04-14 Doug Evans <dje@google.com>
690
589390d6 691 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
692 concatenating string to search path.
693
516ba659
PA
6942010-04-14 Pedro Alves <pedro@codesourcery.com>
695
696 * objfiles.h (gdb_bfd_close_or_warn): Declare.
697 * objfiles.c (gdb_bfd_close_or_warn): New.
698 * corelow.c: Include objfiles.h
699 (core_close): Use gdb_bfd_close_or_warn.
700 * elfread.c (build_id_verify): Ditto.
701 * exec.c (exec_close, exec_close_1): Ditto.
702
048d532d
PA
7032010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
704 Pedro Alves <pedro@codesourcery.com>
705
706 Group errors for many missing shared libraries.
707
708 * solist.h (struct so_list): Remove from_tty.
709 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
710 (solib_map_sections): Take so_list argument. Return 0 if we
711 failed to open a BFD. Add target sections here.
712 (symbol_add_stub): Delete.
713 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
714 not from_tty copied from the so_list. Don't warn a second time
715 for a missing library.
716 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
717 add to the section table here. Print out a single warning for all
718 missing libraries.
719 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
720 flags.
721
044c0f87
PM
7222010-04-14 Phil Muldoon <pmuldoon@redhat.com>
723
724 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
725 error/warning messages. Capitalize and use complete sentences.
726 (blpy_block_syms_iternext): Likewise.
727 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
728 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
729 (frame_info_to_frame_object, frapy_read_var)
730 (gdbpy_frame_stop_reason_string): Likewise.
731 * python/py-lazy-string.c (stpy_convert_to_value)
732 (gdbpy_create_lazy_string_object): Likewise.
733 * python/py-objfile.c (objfpy_set_printers): Likewise.
734 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
735 * python/python.c (parameter_to_python): Likewise.
736 * python/py-type.c (typy_range, typy_target): Likewise.
737 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
738 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
739
740
79f283fe
PM
7412010-04-14 Phil Muldoon <pmuldoon@redhat.com>
742
743 PR python/11381
744
745 * python/py-prettyprint.c (pretty_print_one_value): Test for
746 Py_None.
747 (print_string_repr): Test for Py_None. Set flags accordingly.
748 Return value depending on return type.
749 (print_children): Take a value indicating whether data was printed
750 before this function was called. Alter output accordingly.
751 (apply_val_pretty_printer): Capture return value from
752 print_string_repr and pass to print_children.
753
4ac5d44e
MK
7542010-04-13 Mark Kettenis <kettenis@gnu.org>
755
e1caee70 756 PR corefiles/11481
4ac5d44e
MK
757 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
758 register note sections.
759 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
760 New variables.
761 (i386_linux_init_abi): Install list of supported register note
762 sections that matches the target description.
763
ad91cd99
PA
7642010-04-13 Pedro Alves <pedro@codesourcery.com>
765
766 * remote.c (remote_get_noisy_reply): Don't error out on empty
767 replies.
768 (remote_start_remote): Update and merge tracepoints and trace
769 state variables as long as the target supports tracepoints.
770 (remote_trace_init): Fix prototype.
771 (remote_download_trace_state_variable): Validate reply.
772 (remote_trace_set_readonly_regions): Fix prototype.
773 (remote_trace_start): Fix prototype. Check for empty reply.
774 (remote_get_trace_status): Small cleanup.
775 (remote_trace_stop): Fix prototype. Check for empty reply.
776 (remote_trace_find): Check for empty reply.
777 (remote_save_trace_data): Validate reply.
778 (remote_set_disconnected_tracing): Check for empty reply, and
779 validate reply.
780 (remote_set_circular_trace_buffer): Ditto.
781
ae3bccd4
PM
7822010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
783
784 Suppress unused value warning during compilation.
785 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
786 calls to void.
787 * tui/tui-stack.c (tui_show_locator_content): Likewise.
788
523136f2
SS
7892010-04-12 Stan Shebs <stan@codesourcery.com>
790
791 * tracepoint.c (tfile_xfer_partial): Check read result.
792
0d18d720
MF
7932010-04-12 Mike Frysinger <vapier@gentoo.org>
794
795 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
796 * remote-sim.c (gdbsim_files_info): Likewise.
797
3b273a55
RE
7982010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
799
800 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
801 * arm-linux-nat.c (arm_linux_vfp_register_count): New
802 variable.
803 (fetch_vfp_registers): New function to fetch VFP registers.
804 (store_vfp_registers): New function to store VFP registers.
805 (arm_linux_fetch_inferior_registers): Add support for VFP
806 registers.
807 (arm_linux_store_inferior_registers): Likewise.
808 (arm_linux_read_description): Likewise.
809 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
810 until we need it.
811
778c7095
L
8122010-04-11 H.J. Lu <hongjiu.lu@intel.com>
813
814 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
815 tdep.
816 (amd64_collect_xstateregset): Likewise.
817
2114d44c
SS
8182010-04-09 Stan Shebs <stan@codesourcery.com>
819
87290684
SS
820 * tracepoint.c (trace_status_mi): Report frames created.
821
2114d44c
SS
822 * tracepoint.c (trace_dump_command): Include default-collect
823 expressions.
824
86da934b
UW
8252010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
826
827 * symtab.c (find_function_start_sal): Never return SAL pointing
828 before function start address, even if line info is missing.
829
2d6e647a 8302010-04-09 Pedro Alves <pedro@codesourcery.com>
d337e9f0
PA
831
832 * NEWS: Mention tracepoints support.
833
a97153c7
PA
8342010-04-09 Pedro Alves <pedro@codesourcery.com>
835
836 * tracepoint.c (trace_status_mi): Report disconnected tracing and
837 circular trace buffer statuses.
838
7a66d603
JK
8392010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
840
841 * config/djgpp/fnchange.lst: Fix typo in translations for
842 symbol-without-target_section.exp and symbol-without-target_section.c.
843
2566ad2d
PA
8442010-04-09 Pedro Alves <pedro@codesourcery.com>
845
846 * breakpoint.c (condition_command): Pass condition expression to
847 set_breakpoint_condition stripped from breakpoint number.
848
adc36818
PM
8492010-04-09 Phil Muldoon <pmuldoon@redhat.com>
850 Thiago Jung Bauermann <bauerman@br.ibm.com>
2566ad2d 851 Tom Tromey <tromey@redhat.com>
adc36818
PM
852
853 * breakpoint.c (condition_command): Simplify. Move condition
854 setting code to ...
855 (set_breakpoint_condition): ... here. New function.
856 * breakpoint.h (set_breakpoint_condition): Declare.
857 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
858 (SUBDIR_PYTHON_SRCS): Likewise.
859 (py-breakpoint.o): New rule.
860 * python/py-breakpoint.c: New file.
861 * python/python-internal.h (gdbpy_breakpoints)
862 (gdbpy_initialize_breakpoints): Declare.
863 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
864
219f2f23
PA
8652010-04-09 Pedro Alves <pedro@codesourcery.com>
866
867 * regformats/regdat.sh: Include server.h. Don't include
868 regcache.h.
869
33da3f1c
SS
8702010-04-08 Stan Shebs <stan@codesourcery.com>
871 Pedro Alves <pedro@codesourcery.com>
872
873 * tracepoint.h (struct trace_status): New fields disconnected_tracing
874 and circular_buffer.
875 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
876 * tracepoint.c (trace_status_command): Display target's status for
877 disconnected tracing and circular buffer.
878 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
879 query for non-disconnected-tracing case, remove the stop_tracing
880 call.
881 (tfile_open): Clear disconnected and circular buffer status.
882 (trace_save): Save disconnected and circular buffer status.
883 (parse_trace_status): Parse disconnected and circular buffer status,
884 also recognize disconnected as a stop reason.
885 * remote.c (remote_set_disconnected_tracing): Only set
886 QTDisconnected if the remote end supports disconnected tracing.
887 Warn otherwise, if trying to enable disconnected tracing.
888 * infcmd.c (detach_command): Update disconnect_tracing call.
889 * cli/cli-cmds.c (quit_command): Ditto.
890
4e4d8374
L
8912010-04-08 H.J. Lu <hongjiu.lu@intel.com>
892
893 * i387-tdep.c (i387_collect_xsave): Replace abort with
894 internal_error.
895
ad443146
SS
8962010-04-08 Stan Shebs <stan@codesourcery.com>
897
898 * breakpoint.c (default_collect_info): New function.
899 (breakpoints_info): Call it.
900 (maintenance_info_breakpoints): Ditto.
901 (tracepoints_info): Ditto.
902
40936b0d
L
9032010-04-08 H.J. Lu <hongjiu.lu@intel.com>
904
905 * i387-tdep.c (i387_collect_xsave): Re-indent.
906
3a13a53b
L
9072010-04-08 H.J. Lu <hongjiu.lu@intel.com>
908
909 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
910 if HAVE_PTRACE_GETFPXREGS is defined.
911 (i386_linux_read_description): Set have_ptrace_getfpxregs and
912 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
913
914 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
915 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
916 if .reg-xfp section doesn't exist.
917 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
918
919 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
920
921 * i386-tdep.c: Include "features/i386/i386-mmx.c".
922 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
923 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
924 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
925 (i386_gdbarch_init): Update comments.
926 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
927
928 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
929
930 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
931
932 * features/Makefile (i386/i386-mmx-expedite): New.
933 (i386/i386-mmx-linux-expedite): Likewise.
934 ($(outdir)/i386/i386-mmx.dat): Likewise.
935 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
936
937 * features/i386/i386-mmx-linux.c: New.
938 * features/i386/i386-mmx-linux.xml: Likewise.
939 * features/i386/i386-mmx.c: Likewise.
940 * features/i386/i386-mmx.xml: Likewise.
941 * regformats/i386/i386-mmx-linux.dat: Likewise.
942 * regformats/i386/i386-mmx.dat: Likewise.
943
944 * features/Makefile (WHICH): Add i386/i386-mmx and
945 i386/i386-mmx-linux.
946
08001717
DE
9472010-04-08 Doug Evans <dje@google.com>
948
949 * source.c (openp): Skip $cdir in PATH.
950
fff5cc64
PM
9512010-04-08 Phil Muldoon <pmuldoon@redhat.com>
952
953 PR python/11417
fff5cc64 954 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
955 a NULL address.
956 (gdbpy_create_lazy_string_object): Allow strings with a NULL
957 address and a zero length.
fff5cc64 958
f8c4f480
HZ
9592010-04-08 Hui Zhu <teawater@gmail.com>
960
961 * i386-tdep.c (i386_process_record): Add support for insn
962 rdtsc.
963
eb5cda86
DE
9642010-04-07 Doug Evans <dje@google.com>
965
966 * python/python.c (source_python_script): Use ensure_python_env
967 to prepare environment for script.
968
a055a187
L
9692010-04-07 H.J. Lu <hongjiu.lu@intel.com>
970
971 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
972 <sys/uio.h> and "i386-xstate.h".
973 (PTRACE_GETREGSET): New.
974 (PTRACE_SETREGSET): Likewise.
975 (have_ptrace_getregset): Likewise.
976 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
977 registers.
978 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
979 registers.
980 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
981 (amd64_linux_store_inferior_registers): Likewise.
982 (amd64_linux_read_description): Check and enable AVX target
983 descriptions.
984
985 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
986 and "features/i386/amd64-avx-linux.c".
987 (amd64_linux_regset_sections): New.
988 (amd64_linux_core_read_description): Check and enable AVX
989 target description.
990 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
991 set_gdbarch_core_regset_sections.
992 (_initialize_amd64_linux_tdep): Call
993 initialize_tdesc_amd64_avx_linux.
994
995 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
996 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
997 (tdesc_amd64_avx_linux): New.
998 (amd64_linux_update_xstateregset): Likewise.
999
1000 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
1001 (amd64_ymm_names): New.
1002 (amd64_ymmh_names): Likewise.
1003 (amd64_register_name): Likewise.
1004 (amd64_supply_xstateregset): Likewise.
1005 (amd64_collect_xstateregset): Likewise.
1006 (amd64_supply_xsave): Likewise.
1007 (amd64_collect_xsave): Likewise.
1008 (AMD64_NUM_REGS): Removed.
1009 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
1010 %xmmN if AVX is available.
1011 (amd64_pseudo_register_name): Support pseudo YMM registers.
1012 (amd64_regset_from_core_section): Support .reg-xstate section.
1013 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
1014 and ymm0h_regnum. Call set_gdbarch_register_name.
1015 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
1016
1017 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
1018 AMD64_YMM15H_REGNUM.
1019 (AMD64_NUM_REGS): New.
1020 (amd64_supply_xsave): Likewise.
1021 (amd64_collect_xsave): Likewise.
1022 (amd64_register_name): Removed.
1023 (amd64_register_type): Likewise.
1024
31aeac78
L
10252010-04-07 H.J. Lu <hongjiu.lu@intel.com>
1026
1027 * i387-tdep.c: Include "i386-xstate.h".
1028 (XSAVE_XSTATE_BV_ADDR): New.
1029 (xsave_avxh_offset): Likewise.
1030 (XSAVE_AVXH_ADDR): Likewise.
1031 (i387_supply_xsave): Likewise.
1032 (i387_collect_xsave): Likewise.
1033
1034 * i387-tdep.h (I387_NUM_YMM_REGS): New.
1035 (I387_YMM0H_REGNUM): Likewise.
1036 (I387_YMMENDH_REGNUM): Likewise.
1037 (i387_supply_xsave): Likewise.
1038 (i387_collect_xsave): Likewise.
1039
c131fcee
L
10402010-04-07 H.J. Lu <hongjiu.lu@intel.com>
1041
1042 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
1043 <sys/uio.h> and "i386-xstate.h".
1044 (PTRACE_GETREGSET): New.
1045 (PTRACE_SETREGSET): Likewise.
1046 (fetch_xstateregs): Likewise.
1047 (store_xstateregs): Likewise.
1048 (GETXSTATEREGS_SUPPLIES): Likewise.
1049 (regmap): Include 8 upper YMM registers.
1050 (i386_linux_fetch_inferior_registers): Support XSAVE extended
1051 state.
1052 (i386_linux_store_inferior_registers): Likewise.
1053 (i386_linux_read_description): Check and enable AVX target
1054 descriptions.
1055
1056 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
1057 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
1058 (i386_linux_regset_sections): Add ".reg-xstate".
1059 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
1060 (i386_linux_core_read_xcr0): New.
1061 (i386_linux_core_read_description): Check and enable AVX target
1062 description.
1063 (i386_linux_init_abi): Set xsave_xcr0_offset.
1064 (_initialize_i386_linux_tdep): Call
1065 initialize_tdesc_i386_avx_linux.
1066
1067 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
1068 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
1069 (i386_linux_core_read_xcr0): New.
1070 (tdesc_i386_avx_linux): Likewise.
1071 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
1072
1073 * i386-tdep.c: Include "i386-xstate.h" and
1074 "features/i386/i386-avx.c".
1075 (i386_ymm_names): New.
1076 (i386_ymmh_names): Likewise.
1077 (i386_ymmh_regnum_p): Likewise.
1078 (i386_ymm_regnum_p): Likewise.
1079 (i386_xmm_regnum_p): Likewise.
1080 (i386_register_name): Likewise.
1081 (i386_ymm_type): Likewise.
1082 (i386_supply_xstateregset): Likewise.
1083 (i386_collect_xstateregset): Likewise.
1084 (i386_sse_regnum_p): Removed.
1085 (i386_pseudo_register_name): Support pseudo YMM registers.
1086 (i386_pseudo_register_type): Likewise.
1087 (i386_pseudo_register_read): Likewise.
1088 (i386_pseudo_register_write): Likewise.
1089 (i386_dbx_reg_to_regnum): Return %ymmN register number for
1090 %xmmN if AVX is available.
1091 (i386_regset_from_core_section): Support .reg-xstate section.
1092 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
1093 (i386_process_record): Replace i386_sse_regnum_p with
1094 i386_xmm_regnum_p.
1095 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
1096 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 1097 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
1098 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
1099 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
1100 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
1101 Set ymm0_regnum.
1102 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
1103
1104 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
1105 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
1106 i386_ymm_type.
1107 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
1108 (I386_AVX_NUM_REGS): New.
1109 (i386_xmm_regnum_p): Likewise.
1110 (i386_ymm_regnum_p): Likewise.
1111 (i386_ymmh_regnum_p): Likewise.
1112
1113 * common/i386-xstate.h: New.
1114
98adf0f3
L
11152010-04-07 H.J. Lu <hongjiu.lu@intel.com>
1116
1117 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
1118
1119 * features/Makefile (WHICH): Add i386/i386-avx,
1120 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
1121 (i386/i386-avx-expedite): New.
1122 (i386/i386-avx-linux-expedite): Likewise.
1123 (i386/x86-64-avx-expedite):Likewise.
1124 (i386/x86-64-avx-linux-expedite): Likewise.
1125 ($(outdir)/i386/i386-avx.dat): New dependency.
1126 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
1127 ($(outdir)/i386/x86-avx-64.dat): Likewise.
1128 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
1129
1130 * features/i386/32bit-avx.xml: New.
1131 * features/i386/64bit-avx.xml: Likewise.
1132 * features/i386/i386-avx-linux.c: Likewise.
1133 * features/i386/i386-avx-linux.xml: Likewise.
1134 * features/i386/i386-avx.c: Likewise.
1135 * features/i386/i386-avx.xml: Likewise.
1136 * features/i386/x86-64-avx-linux.c: Likewise.
1137 * features/i386/x86-64-avx-linux.xml: Likewise.
1138 * features/i386/x86-64-avx.c: Likewise.
1139 * features/i386/x86-64-avx.xml: Likewise.
1140 * regformats/i386/i386-avx-linux.dat: Likewise.
1141 * regformats/i386/i386-avx.dat: Likewise.
1142 * regformats/i386/x86-64-avx-linux.dat: Likewise.
1143 * regformats/i386/x86-64-avx.dat: Likewise.
1144
05159abe
DE
11452010-04-07 Doug Evans <dje@google.com>
1146
1147 * top.c (source_file_name): Make const char *.
1148 * top.h (source_file_name): Update.
1149 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
1150 const char *.
1151 (script_from_file): Change `file' arg to const char *.
1152 * cli/cli-script.h (script_from_file): Update.
1153
96e39866
DE
11542010-04-06 Doug Evans <dje@google.com>
1155
1156 * cli/cli-cmds.c (source_command): Run cleanups.
1157
3149d8c1
SS
11582010-04-06 Stan Shebs <stan@codesourcery.com>
1159
1160 * defs.h (char_ptr): Move typedef here from...
1161 * ada-lang.c (char_ptr): Remove.
1162 * charset.c (char_ptr): Remove.
1163 * tracepoint.h (struct uploaded_string): Remove.
1164 (struct uploaded_tp): Use vectors for string arrays.
1165 * tracepoint.c (trace_save): Use vectors of actions.
1166 (parse_tracepoint_definition): Ditto.
1167 (get_uploaded_tp): Clear vectors.
1168 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
1169 (next_cmd): Change to an int.
1170 (read_next_cmd): Use vector of command strings.
1171
4cc23ede
DE
11722010-04-06 Doug Evans <dje@google.com>
1173
1174 * top.h (source_script, cd_command): Delete.
1175 * main.c: #include "cli/cli-cmds.h"
1176
bd333fb7
KB
11772010-04-06 Kevin Buettner <kevinb@redhat.com>
1178
1179 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
1180 type in bytes, not bits.
1181
ec8a089a
PM
11822010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
1183
1184 * stabsread.c (define_symbol): Add support for char
1185 and string constants.
1186
2244ba2e
PM
11872010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
1188
1189 Remove remaining "%ll" uses.
1190 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
1191 hex_string call.
1192 * rs6000-nat.c (rs6000_ptrace64): Idem.
1193 * solib-pa64.c (pa64_current_sos): Idem.
1194 * solib-spu.c (spu_current_sos): Idem.
1195 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
1196 plongest call.
1197 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
1198 phex (VAR, 8) call.
1199 * sh64-tdep.c (sh64_show_media_regs): Idem.
1200
fce3c1f0
SS
12012010-04-05 Stan Shebs <stan@codesourcery.com>
1202
1203 * tracepoint.c: Include gdbcore.h.
1204 (tfile_xfer_partial): Return partial results, also try reading
1205 from executable.
1206 (tfile_has_all_memory): New function.
1207 (init_tfile_ops): Use it.
1208
626ea16d
SDJ
12092010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
1210
1211 PR gdb/10736:
1212 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
1213 the changes in data-directory.
1214 (init_sysinfo): Reload the syscall XML file if the data-directory
1215 has changed.
1216
1f7ccab2
JK
12172010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1218
1219 Code cleanup.
1220 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
1221
d77f58be
SS
12222010-04-04 Stan Shebs <stan@codesourcery.com>
1223 Nathan Sidwell <nathan@codesourcery.com>
1224
1225 * breakpoint.c (breakpoint_1): Add filter argument, return number of
1226 breakpoints printed.
1227 (is_hardware_watchpoint): Make argument const.
1228 (is_watchpoint): Ditto.
1229 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
1230 use it everywhere.
1231 (breakpoints_info): Pass NULL to breakpoint_1.
1232 (maintenance_info_breakpoints): Ditto.
1233 (watchpoints_info): New function.
1234 (tracepoints_info): Use breakpoint_1 filter.
1235 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
1236 (_initialize_breakpoint): Make "info watchpoints" its own command.
1237 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
1238 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
1239
af54718e
SS
12402010-04-04 Stan Shebs <stan@codesourcery.com>
1241
1242 * tracepoint.c (tfile_fetch_registers): Add fallback case.
1243
74d1f91e
JK
12442010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1245
1246 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
1247 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
1248
91d91ceb
JK
12492010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1250
1251 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
1252 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
1253
60531b24
JK
12542010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1255
1256 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
1257 code form.
1258
a3c4230a
HZ
12592010-04-02 Hui Zhu <teawater@gmail.com>
1260
1261 * i386-tdep.c (OT_DQUAD): New enum.
1262 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
1263 SSE3, SSSE3 and SSE4.
1264
b15758fe
HZ
12652010-04-02 Hui Zhu <teawater@gmail.com>
1266
1267 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
1268 "*addr = 0".
1269
afd02f27
PA
12702010-04-02 Pedro Alves <pedro@codesourcery.com>
1271
1272 * tracepoint.c (trace_dump_actions): New, factored out from
1273 trace_dump_command, and adjusted to recurse into while-stepping's
1274 action list.
1275 (trace_dump_command): Use it.
1276
5cea2a26
PA
12772010-04-02 Pedro Alves <pedro@codesourcery.com>
1278
1279 * breakpoint.h (struct counted_command_line): Moved definition to
1280 breakpoint.c, and forward declare.
1281 (breakpoint_commands): Declare.
1282 * breakpoint.c (struct counted_command_line): Moved here.
1283 (breakpoint_commands): New.
1284 * tracepoint.c (encode_actions): Use breakpoint_commands.
1285 * remote.c (remote_download_tracepoint): Ditto.
1286
7c47795c
L
12872010-04-01 H.J. Lu <hongjiu.lu@intel.com>
1288
1289 * remote.c (remote_parse_stop_reply): Use hex_string instead
1290 of phex_nz for error.
1291
fff87407
SS
12922010-04-01 Stan Shebs <stan@codesourcery.com>
1293 Nathan Sidwell <nathan@codesourcery.com>
1294
1295 * tracepoint.h (enum actionline_type): Remove.
1296 (validate_actionline): Change return to void.
1297 * tracepoint.c (report_agent_reqs_errors): New function.
1298 (validate_actionline): Call it, change return to void, report errors
1299 more consistently.
1300 (collect_symbol): Call report_agent_reqs_errors.
1301 (encode_actions_1): Ditto.
1302 (encode_actions): Don't expect a result from validate_actionline.
1303
615bcdef
SS
13042010-04-01 Stan Shebs <stan@codesourcery.com>
1305
1306 * tracepoint.c (trace_start_command): Confirm if trace is running.
1307 (trace_stop_command): Error if trace not running.
1308
fe01d668
L
13092010-04-01 H.J. Lu <hongjiu.lu@intel.com>
1310
1311 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
1312 (AMD64_NUM_LOWER_BYTE_REGS): New.
1313 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
1314 (amd64_pseudo_register_write): Likewise.
1315 (amd64_init_abi): Set num_byte_regs to 20.
1316
86b17b60
PA
13172010-04-01 Pedro Alves <pedro@codesourcery.com>
1318
1319 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
1320 (prev_breakpoint_count): New.
1321 (set_breakpoint_count): Adjust.
1322 (rbreak_start_breakpoint_count): New.
1323 (start_rbreak_breakpoints): Adjust.
1324 (end_rbreak_breakpoints): Adjust.
1325 (struct commands_info) <arg>: New field.
1326 (do_map_commands_command): Tweak output to include breakpoint spec
1327 range.
1328 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
1329 ARG was empty on entry. Set INFO's arg.
1330 (create_breakpoint): Adjust.
1331
1332 * NEWS: Clarify `commands' changes.
1333
2c58c0a9
PA
13342010-04-01 Pedro Alves <pedro@codesourcery.com>
1335
1336 * tracepoint.c: Include stack.h.
1337 (struct add_local_symbols_data): New.
1338 (do_collect_symbol): New.
1339 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
1340 iterate_over_block_local_vars.
1341 * stack.c (print_block_frame_locals): Rewrite as ...
1342 (iterate_over_block_locals): ... this. Take a callback function
1343 pointer and generic data pointer, and call that instead of
1344 print_variable_and_value.
1345 (struct print_variable_and_value_data): New.
1346 (do_print_variable_and_value): New.
1347 (iterate_over_block_local_vars): New, abstracted out from
1348 print_frame_local_vars.
1349 (print_frame_local_vars): Rewrite using
1350 iterate_over_block_local_vars.
1351 (iterate_over_block_arg_vars): New, abstracted out from
1352 print_frame_arg_vars.
1353 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
1354 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
1355 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
1356
d476da0e
RE
13572010-03-31 Richard Earnshaw <rearnsha@arm.com>
1358
1359 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 1360 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
1361 PC register.
1362
8072405b
JK
13632010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1364
1365 Fix crash on reading wrong function declaration DWARF.
1366 * dwarf2read.c (read_subroutine_type): New variable void_type.
1367 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
1368 more close to their use.
1369
8bf6485c
SS
13702010-03-31 Stan Shebs <stan@codesourcery.com>
1371
1372 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 1373 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
1374 * tracepoint.c (save_trace_state_variables): New function.
1375 * tracepoint.h (save_trace_state_variables): Declare it.
1376
2ae2a0b7
PM
13772010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
1378
1a161f72 1379 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 1380
86ffb506
KS
13812010-03-30 Keith Seitz <keiths@redhat.com>
1382
1383 * c-typeprint.c (c_type_print_args): Don't print "void"
1384 for java, regardless of whether it is TYPE_PROTOTYPED.
1385 Use the passed-in language instead of current_language.
1386 (c_type_print_varspec_suffix): Use current_language instead
1387 of assuming language_c.
1388 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
1389 any return type specifier from the physname.
1390
956c2c8b
PA
13912010-03-30 Pedro Alves <pedro@codesourcery.com>
1392
1393 * tui/tui-interp.c (tui_is_toplevel): New.
1394 (tui_init): Set it.
1395 (tui_allowed_p): New.
1396 * tui/tui.c (tui_enable): Check if the TUI is allowed before
1397 enabling it.
1398 * tui/tui.h (tui_allowed_p): Declare.
1399
98e5a990
TT
14002010-03-30 Ozkan Sezer <sezeroz@gmail.com>
1401
1402 * serial.h: Include winsock2.h before windows.h.
1403
c8d5aac9
L
14042010-03-30 H.J. Lu <hongjiu.lu@intel.com>
1405
1406 * NEWS: Mention xmlRegisters= in qSupported packet.
1407
1408 * i386-tdep.c: Include "remote.h".
1409 (_initialize_i386_tdep): Call register_remote_support_xml.
1410
1411 * remote.c (remote_support_xml): New.
1412 (register_remote_support_xml): Likewise.
1413 (remote_query_supported_append): Likewise.
1414 (remote_query_supported): Support remote_support_xml.
1415
1416 * remote.h (register_remote_support_xml): New.
1417
76a2b958
SS
14182010-03-29 Stan Shebs <stan@codesourcery.com>
1419
42e08e69
SS
1420 * tracepoint.c (trace_find_line_command): Remove dead code.
1421
409873ef
SS
1422 * tracepoint.h (struct uploaded_string): New struct.
1423 (struct uploaded_tp): New fields for source strings.
1424 * breakpoint.c (this_utp, next_cmd): New globals.
1425 (read_uploaded_action): New function.
1426 (create_tracepoint_from_upload): Fill in more parts
1427 of a tracepoint.
1428 * tracepoint.c (encode_source_string): New function.
1429 (trace_save): Write out source strings, fix error checks.
1430 (parse_tracepoint_definition): Add source string parsing.
1431 * remote.c (PACKET_TracepointSource): New packet type.
1432 (remote_download_command_source): New function.
1433 (remote_download_tracepoint): Download source pieces also.
1434 (_initialize_remote): Add packet config command.
1435
a0405854
SS
1436 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
1437 expression handler.
1438
76a2b958
SS
1439 * tracepoint.c (start_tracing): Check tracepoints before sending
1440 commands to target, don't start if all tracepoints disabled.
1441
d350db38
PA
14422010-03-28 Pedro Alves <pedro@codesourcery.com>
1443
12f2d601 1444 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 1445
8b9b7ef8
SS
14462010-03-26 Stan Shebs <stan@codesourcery.com>
1447
1448 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
1449
9766ced4
SS
14502010-03-26 Tom Tromey <tromey@redhat.com>
1451
1452 * breakpoint.c (commands_command_1): Duplicate 'arg'.
1453
059acae7
UW
14542010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1455
1456 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
1457 (skip_prologue_sal): Remove local definition.
1458 (resolve_sal_pc): Remove now unnecessary code.
1459 * linespec.c (minsym_found): Call skip_prologue_sal.
1460 * symtab.c (find_function_start_pc): Remove.
1461 (find_function_start_sal): Extract prologue skipping into ...
1462 (skip_prologue_sal): ... this new function. Handle code both
1463 with and without debug info. Respect SAL's explicit_pc and
1464 explicit_line flags. Inline old find_function_start_pc.
1465 * symtab.h (find_function_start_pc): Remove.
1466 (skip_prologue_sal): Add prototype.
1467
4a811a97
UW
14682010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1469
1470 * dwarf2read.c (read_func_scope): Also scan specification DIEs
1471 for DW_TAG_imported_module children.
1472
907af001
UW
14732010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1474
1475 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
1476 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
1477 * completer.c (add_struct_fields): Fix inverted logic.
1478
dde2d684
UW
14792010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1480
1481 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
1482
a609a0c8
PA
14832010-03-26 Pedro Alves <pedro@codesourcery.com>
1484
1485 * tracepoint.c (current_trace_status): Don't make sure error_desc
1486 is non-NULL here.
1487 (parse_trace_status): Release a previous error_desc string, and
1488 set it to NULL by default. If stop reason is tracepoint_error,
1489 make sure error_desc is not left NULL.
1490
610197fd
PA
14912010-03-26 Pedro Alves <pedro@codesourcery.com>
1492
1493 * tracepoint.c (trace_save): Remove X from tracepoint error
1494 description.
1495
99b5e152
PA
14962010-03-26 Pedro Alves <pedro@codesourcery.com>
1497
1498 * tracepoint.c (parse_trace_status): Don't allow plain strings in
1499 the terror description. Don't expect an X prefix.
1500
6c28cbf2
SS
15012010-03-25 Stan Shebs <stan@codesourcery.com>
1502
1503 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
1504 (struct trace_status): New field error_desc.
1505 * tracepoint.c (stop_reason_names): Add terror.
1506 (current_trace_status): Ensure non-NULL error description.
1507 (trace_status_command): Add error report.
1508 (trace_status_mi): Ditto.
1509 (trace_save): Add special case for error description.
1510 (parse_trace_status): Add case for errors.
1511
418835cc
KS
15122010-03-25 Keith Seitz <keiths@redhat.com>
1513
1514 * dwarf2read.c (read_subroutine_type): If the compilation unit
1515 language is Java, mark any formal parameter named "this" as
1516 artificial (GCC/43521).
1517 (dwarf2_name): Add special handling for Java constructors.
1518
aa7d318d
TT
15192010-03-25 Tom Tromey <tromey@redhat.com>
1520
1521 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
1522 * infrun.c (handle_inferior_event): Change initialization of
1523 stop_stack_dummy.
1524 (handle_inferior_event): Change assignment to stop_stack_dummy.
1525 (normal_stop): Update use of stop_stack_dummy.
1526 (struct inferior_status) <stop_stack_dummy>: Change type.
1527 * inferior.h (stop_stack_dummy): Update.
1528 * infcmd.c (stop_stack_dummy): Change type.
1529 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
1530 function.
1531 (call_function_by_hand): Call set_std_terminate_breakpoint.
1532 Rewrite std::terminate handling.
1533 * breakpoint.h (enum bptype) <bp_std_terminate,
1534 bp_std_terminate_master>: New.
1535 (enum stop_stack_kind): New.
1536 (struct bpstat_what) <call_dummy>: Change type.
1537 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
1538 Declare.
1539 * breakpoint.c (create_std_terminate_master_breakpoint): New
1540 function.
1541 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
1542 Call create_std_terminate_master_breakpoint.
1543 (print_it_typical): Handle new breakpoint kinds.
1544 (bpstat_stop_status): Handle bp_std_terminate_master.
1545 (bpstat_what): Correctly set call_dummy field. Handle
1546 bp_std_terminate_master and bp_std_terminate.
1547 (print_one_breakpoint_location): Update.
1548 (allocate_bp_location): Update.
1549 (set_std_terminate_breakpoint): New function.
1550 (delete_std_terminate_breakpoint): Likewise.
1551 (create_thread_event_breakpoint): Update.
1552 (delete_command): Update.
1553 (breakpoint_re_set_one): Update.
1554 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
1555
82ccf5a5
JK
15562010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1557
1558 * symfile.c (build_section_addr_info_from_bfd): New.
1559 (build_section_addr_info_from_objfile): Base it on
1560 build_section_addr_info_from_bfd.
1561 (addrs_section_compar, addrs_section_sort): New.
1562 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
1563 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
1564 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
1565
737c4c52
MS
15662010-03-24 Michael Snyder <msnyder@localhost.localdomain>
1567
8d95cc3b 1568 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
1569 Remove unused local variable.
1570
95a42b64
TT
15712010-03-24 Tom Tromey <tromey@redhat.com>
1572
1573 PR breakpoints/9352:
1574 * NEWS: Mention changes to `commands' and `rbreak'.
1575 * symtab.c (do_end_rbreak_breakpoints): New function.
1576 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
1577 end_rbreak_breakpoints.
1578 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
1579 (set_breakpoint_count): Likewise. Clear last_was_multi.
1580 (multi_start, multi_end, last_was_multi): New globals.
1581 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
1582 functions.
1583 (struct commands_info): New
1584 (do_map_commands_command): New function.
1585 (commands_command_1): New function.
1586 (commands_command): Use it.
1587 (commands_from_control_command): Likewise.
1588 (do_delete_breakpoint): New function.
1589 (delete_command): Use it.
1590 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
1591 (do_map_disable_breakpoint): New function.
1592 (disable_command): Use it.
1593 (do_map_enable_breakpoint): New function.
1594 (enable_command): Use it.
1595 (enable_once_breakpoint): Add argument.
1596 (enable_once_command): Update.
1597 (enable_delete_breakpoint): Add argument.
1598 (enable_delete_command): Update.
1599 (break_command_really): Set last_was_multi when needed.
1600 (check_tracepoint_command): Fix formatting.
1601 (validate_commands_for_breakpoint): New function.
1602 (breakpoint_set_commands): Use it.
1603 (tracepoint_save_command): Update.
1604 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
1605 Declare.
1606
9add0f1b
TT
16072010-03-24 Tom Tromey <tromey@redhat.com>
1608
1609 * breakpoint.h (struct counted_command_line): New struct.
1610 (struct breakpoint) <commands>: Change type.
1611 (struct bpstats) <commands>: Change type.
1612 <commands_left>: New field.
1613 * breakpoint.c (alloc_counted_command_line): New function.
1614 (incref_counted_command_line): Likewise.
1615 (decref_counted_command_line): Likewise.
1616 (do_cleanup_counted_command_line): Likewise.
1617 (make_cleanup_decref_counted_command_line): Likewise.
1618 (breakpoint_set_commands): Use decref_counted_command_line and
1619 alloc_counted_command_line.
1620 (commands_command): Don't error if breakpoint commands are
1621 executing.
1622 (commands_from_control_command): Likewise.
1623 (bpstat_free): Update.
1624 (bpstat_copy): Likewise.
1625 (bpstat_clear_actions): Likewise.
1626 (bpstat_do_actions_1): Likewise.
1627 (bpstat_stop_status): Likewise.
1628 (print_one_breakpoint_location): Likewise.
1629 (delete_breakpoint): Likewise.
1630 (bpstat_alloc): Initialize new field.
1631 (tracepoint_save_command): Update.
1632 * tracepoint.c (encode_actions): Update.
1633 (trace_dump_command): Update.
1634
a6c727b2
DJ
16352010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1636
1637 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
1638 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
1639 (read_structure_type): For RealView, set TYPE_STUB on structures with
1640 no byte size and no children.
1641 (read_subroutine_type): Mark functions as prototyped by default.
1642 * symtab.c (producer_is_realview): New function.
1643 * symtab.h (expand_line_sal): Fix declaration formatting.
1644 (producer_is_realview): Declare.
1645
0d39a070
DJ
16462010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1647
1648 * arm-tdep.c (skip_prologue_function): New function.
1649 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
1650 (thumb_analyze_prologue): Document return value. Recognize more
1651 Thumb instructions, skippable calls, and some Thumb-2 instructions.
1652 Add debug output.
1653 (arm_skip_prologue): Remove call dummy check. Check the prologue
1654 for non-GNU compilers.
1655 (arm_instruction_changes_pc): New function.
1656 (arm_analyze_prologue): New function, broken out from
1657 arm_scan_prologue. Recognize more ARM instructions and skippable
1658 calls. Update comments. Handle NULL cache. Return the address
1659 of the first unrecognized instruction. Do not skip past other
1660 instructions which change control flow. Add debug output.
1661 (arm_scan_prologue): Use arm_analyze_prologue.
1662 (ARM_PC_32): Delete.
1663 (shifted_reg_val): Simplify ARM_PC_32 check.
1664
4baf5cf4
VP
16652010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1666
1667 * tracepoint.c (tvariables_info_1): Actually compute
1668 the number of rows in the result.
1669
4a5e7a5b
PA
16702010-03-24 Pedro Alves <pedro@codesourcery.com>
1671
1672 * remote.c (crc32): Constify `buf' parameter.
1673 (remote_verify_memory): New, abstracted out from...
1674 (compare_sections_command): ... this. Remove hardcoded target
1675 checks.
1676 (init_remote_ops): Install remote_verify_memory.
1677 * target.c (target_verify_memory): New.
1678 * target.h (struct target_ops) <to_verify_memory>: New field.
1679 (target_verify_memory): Declare.
1680
011aacb0
VP
16812010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1682
1683 Implement -trace-save.
1684
1685 * mi-cmds.h (mi_cmds_trace_save): Declare.
1686 * mi-cmds.c (mi_cmds): Register -trace-save.
1687 * mi/mi-main.c (mi_cmd_trace_save): New.
1688 * remote.c (remote_save_trace_data): Take const parameter.
1689 * target.h (struct target_ops::to_save_trace_data): Take
1690 const parameter.
1691 * target.c (update_current_target): Adjust to the above.
1692 * tracepoint.c (trave_save): New, extracted from
1693 (trace_save_command): ...this.
1694 (tfile_trace_find): Remove message that is unnecessary now
1695 that 'tfind' reports found frame.
1696 * tracepoint.h (trace_save): Declare.
1697
f197e0f1
VP
16982010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1699
1700 Implement -trace-find.
1701
1702 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
1703 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
1704 * mi/mi-main.c (mi_cmd_trace_find): New.
1705 * target.h (struct target_ops): Document to_trace_find.
1706 * tracepoint.h (tfind_1): Declare.
1707 * tracepoint.c (finish_tfind_command): Rename to...
1708 (tfind_1): ...this.
1709 * remote.c (remote_trace_find): Return -1 if target say
1710 there's no frame. Improve error diagnostics.
1711
40e1c229
VP
17122010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1713
1714 -trace-define-variable and -trace-list-variables.
1715
1716 * tracepoint.c (create_trace_state_variable): Make
1717 private copy of name, as opposed to assuming the
1718 pointer lives forever.
1719 (tvariables_info_1): New.
1720 (tvariables_info): Use the above.
1721 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
1722 Declare.
1723 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
1724 and -trace-list-variables.
1725 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
1726 (mi_cmd_trace_list_variables): New.
1727 * mi/mi-main.c (mi_cmd_trace_define_variable)
1728 (mi_cmd_trace_list_variables): New.
1729
9b4c786c
VP
17302010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1731
1732 Implement -break-passcount.
1733
1734 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
1735 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
1736 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
1737
f224b49d
VP
17382010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1739
1740 -trace-start/-trace-end/-trace-status.
1741
1742 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
1743 and -trace-stop.
1744 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
1745 (mi_cmd_trace_stop): Declare.
1746 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
1747 (mi_cmd_trace_stop): New.
1748 * tracepoint.c (start_tracing): New, extracted from...
1749 (trace_start_command): ...this.
1750 (trace_status_mi): New.
1751 * tracepoint.h (struct trace_status): Document
1752 stopping_tracepoint.
1753 (start_tracing, stop_tracing, trace_status_mi): Declare.
1754
6534d786
VP
17552010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1756
1757 Implement creating tracepoints with -break-insert.
1758
1759 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
1760 to mean that tracepoint should be created.
1761
51661e93
VP
17622010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1763
1764 * breakpoint.c (check_no_tracepoint_commands): Use
1765 current spelling of 'teval'.
1766
a7bdde9e
VP
17672010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1768
1769 Unify actions and commands
1770
1771 * defs.h (read_command_lines, read_command_lines_1): New
1772 parameters validator and closure.
1773 * tracepoint.h (struct action_line): Remove.
1774 * breakpoint.h (struct breakpoint): Remove the 'actions'
1775 field.
1776 * defs.h (enum command_control_type): New value
1777 while_stepping_control.
1778 (struct command_line): Add comments.
1779 * breakpoint.c (breakoint_is_tracepoint): New.
1780 (breakpoint_set_commands): For tracepoints,
1781 verify the commands are permissible.
1782 (check_tracepoint_commands): New.
1783 (commands_command): Require that each new line is validated using
1784 check_tracepoint_command, if we set commands for a tracepoint.
1785 (create_tracepoint_from_upload): Likewise.
1786 (print_one_breakpoint_location): Remove the code to print
1787 actions specifically.
1788 (tracepoint_save_command): Relay to print_command_lines.
1789 * cli/cli-script.c (process_next_line): New parameters validator
1790 and closure. Handle 'while-stepping'. Call validator if not null.
1791 (read_command_lines, read_command_lines1): Likewise.
1792 (recurse_read_control_structure): New parameters validator and
1793 closure. Handle while_stepping_control.
1794 (print_command_lines): Handle while-stepping.
1795 (get_command_line, define_command, document_command): Adjust.
1796 * remote.c (remote_download_tracepoint): Adjust.
1797 * tracepoint.c (make_cleanup_free_actions, read_actions)
1798 (free_actions, do_free_actions_cleanup): Remove.
1799 (trace_actions_command): Use read_command_lines.
1800 (validate_actionline): Use error in one place.
1801 (encode_actions_1): New, extracted from...
1802 (encode_actions): ...this. Also use cleanups for exception
1803 safety.
1804 (trace_dump_command): Adjust.
1805 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
1806 it's tracepoint.
1807
64e3cf3d
MF
18082010-03-23 Mike Frysinger <vapier@gentoo.org>
1809
1810 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
1811
52e9fde8
SS
18122010-03-22 Stan Shebs <stan@codesourcery.com>
1813
1814 * value.c (value_static_field): Be lazy about the field's value.
1815
508ccb1f
TT
18162010-03-22 Reid Kleckner <reid@kleckner.net>
1817
1818 PR gdb/11094
1819 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
1820 bp_jit_event.
1821 (disable_breakpoints_in_shlibs): Likewise.
1822
acebe513
UW
18232010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
1824
1825 * dwarf2read.c (partial_die_parent_scope): Work around buggy
1826 GCC 4.1 debug info generation (GCC PR c++/28460).
1827 (determine_prefix): Likewise.
1828
957b8b5a
DJ
18292010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
1830
1831 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
1832 get_current_arch.
1833 * tui/tui-layout.c (extract_display_start_addr): Likewise.
1834
3b11a015
SS
18352010-03-19 Stan Shebs <stan@codesourcery.com>
1836
1837 * ax-gdb.c (gen_fetch): Handle bool.
1838 (gen_usual_unary): Ditto.
1839 (gen_cast): Ditto.
1840 (gen_equal): New function.
1841 (gen_less): New function.
1842 (gen_expr_binop_rest): Call them, also return integer type from
1843 logical operations.
1844 (gen_expr): Ditto.
1845
20781792
TT
18462010-03-19 Tom Tromey <tromey@redhat.com>
1847
1848 * jv-lang.c (jv_dynamics_objfile_data_key)
1849 (jv_type_objfile_data_key): New globals.
1850 (class_symtab): Move earlier.
1851 (jv_per_objfile_free): New function.
1852 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
1853 parameter.
1854 Remove ancient #if 1.
1855 (add_class_symbol): Remove redundant declaration.
1856 (java_lookup_class): Use alloc_type, not alloc_type_arch.
1857 (java_link_class_type): Mark as static. Update.
1858 (jv_clear_object_type): New function.
1859 (set_java_object_type): Likewise.
1860 (get_java_object_type): Use set_java_object_type.
1861 (is_object_type): Likewise.
1862 (_initialize_java_language): Register new objfile keys.
1863 (get_java_class_symtab): Add 'gdbarch' parameter.
1864 (add_class_symtab_symbol): Update.
1865 (type_from_class): Update.
1866
cf3e25ca
SS
18672010-03-19 Stan Shebs <stan@codesourcery.com>
1868
8d95cc3b 1869 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 1870
f1ae44c9 18712010-03-18 Joel Brobecker <brobecker@adacore.com>
1872
1873 GDB 7.1 released.
1874
4daf5ac0
SS
18752010-03-18 Stan Shebs <stan@codesourcery.com>
1876 Pedro Alves <pedro@codesourcery.com>
1877
1878 * target.h (struct target_ops): New method
1879 to_set_circular_trace_buffer.
1880 (target_set_circular_trace_buffer): New macro.
1881 * target.c (update_current_target): Add
1882 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
1883 default behavior.
1884 * remote.c (remote_set_circular_trace_buffer): New function.
1885 (init_remote_ops): Add it to vector.
1886 * tracepoint.h (struct trace_status): New field traceframes_created,
1887 change buffer_size and buffer_free to int.
1888 * tracepoint.c (circular_trace_buffer): New global.
1889 (start_tracing): Send values of disconnected tracing and circular
1890 trace buffer settings.
1891 (set_circular_trace_buffer): New function.
1892 (parse_trace_state): Handle total space and frames created.
1893 (trace_status_command): Display total space and total frames
1894 created.
1895 (trace_save): Write out new status values.
1896 (parse_trace_status): Set traceframe_count, traceframes_created,
1897 buffer_free and buffer_size to -1 by default.
1898 (_initialize_tracepoint): New setshow for circular-trace-buffer.
1899 * NEWS: Mention the circular trace buffer option.
1900
40c549d6
TT
19012010-03-18 Tom Tromey <tromey@redhat.com>
1902
1903 * infcmd.c (finish_command_continuation): Wrap print_return_value
1904 in TRY_CATCH.
1905
e8d05480
JB
19062010-03-18 Joel Brobecker <brobecker@adacore.com>
1907
1908 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
1909 DIE has a name before creating the associated partial symbol.
1910 (read_func_scope): Emit a complaint if the subprogram does not
1911 have a name or when we can't extract the subprogram PC bounds.
1912
441b986a
UW
19132010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
1914
1915 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
1916 instead of selected frame architecture.
1917
4247603b
PA
19182010-03-18 Pedro Alves <pedro@codesourcery.com>
1919
1920 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
1921 a valid selected thread, and that it is not running.
1922 (advance_command): Ditto.
1923 (finish_command): Ditto.
1924
400c6af0
SS
19252010-03-17 Stan Shebs <stan@codesourcery.com>
1926
3a96536b
SS
1927 * ax-gdb.c (require_rvalue): Disallow non-scalars.
1928
573cda03
SS
1929 * infcall.c: Include tracepoint.h.
1930 (call_function_by_hand): Disallow calls in tfind mode.
1931 * infcmd.c: Include tracepoint.h.
1932 (ensure_not_tfind_mode): New function.
1933 (continue_1): Call it.
1934 (step_1) Ditto.
1935 (jump_command): Ditto.
1936 (signal_command): Ditto.
1937 (advance_command): Ditto.
1938 (until_command): Ditto.
1939 (finish_command): Ditto.
1940 * tracepoint.h (disconnect_or_stop_tracing): Declare.
1941
400c6af0
SS
1942 * ax-gdb.h (struct axs_value): New field optimized_out.
1943 (gen_trace_for_var): Add gdbarch argument.
1944 * ax-gdb.c (gen_trace_static_fields): New function.
1945 (gen_traced_pop): Call it, add gdbarch argument.
1946 (gen_trace_for_expr): Update call to it.
1947 (gen_trace_for_var): Ditto, and report optimized-out variables.
1948 (gen_struct_ref_recursive): Check for optimized-out value.
1949 (gen_struct_elt_for_reference): Ditto.
1950 (gen_static_field): Pass gdbarch instead of expression, assume
1951 optimization if field not found.
1952 (gen_var_ref): Set the optimized_out flag.
1953 (gen_expr): Error on optimized-out variable.
1954 * tracepoint.c (collect_symbol): Handle struct-valued vars as
1955 expressions, skip optimized-out variables with computed locations.
1956 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
1957 erroring out if location expression missing.
1958 (loclist_tracepoint_var_ref): Don't error out here.
1959
a3b2a86b
TT
19602010-03-17 Tom Tromey <tromey@redhat.com>
1961
1962 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
1963 DWARF data is available.
1964
38963c97
DJ
19652010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
1966
1967 * symfile.c (generic_load): Reset breakpoints after loading.
1968
ddabfc73
TT
19692010-03-17 Tom Tromey <tromey@redhat.com>
1970
1971 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
1972
d8c09fb5
JK
19732010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1974
1975 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
1976 create_breakpoint call, adjust the parameters.
1977
bbb0eef6
JK
19782010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1979 Chandru <chandru@in.ibm.com>
1980
1981 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
1982 * valarith.c (value_subscripted_rvalue): Suppress error if
1983 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1984
46956e39
HZ
19852010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
1986
1987 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
1988
b8d088ac
JB
19892010-03-16 Joel Brobecker <brobecker@adacore.com>
1990
1991 * ada-tasks.c (task_command_1): Check that the task ptid is valid
1992 before doing the associated thread switch.
1993
322be962
DJ
19942010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
1995
1996 * MAINTAINERS: Update my email address.
1997
8cdf0e15
VP
19982010-03-16 Vladimir Prus <vladimir@codesourcery.com>
1999
2000 Simplify MI breakpoint setting.
2001
2002 * breakpoint.c (break_command_really): Make nonstatic and
2003 rename to...
2004 (create_breakpoint): ...this. Rename prior function by this name
2005 to...
2006 (create_breakpoint_sal): ...this.
2007 (create_breakpoints): Rename to...
2008 (create_breakpoints_sal): ...this.
2009 (set_breakpoint): Remove.
2010 * breakpoint.h: Adjust to above changes.
2011 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
2012
b6e7192f
SS
20132010-03-15 Stan Shebs <stan@codesourcery.com>
2014
2015 * ax-gdb.c: Include cp-support.h.
2016 (find_field): Remove.
2017 (gen_primitive_field): New function.
2018 (gen_struct_ref_recursive): New function.
2019 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
2020 of find_field.
2021 (gen_static_field): New function.
2022 (gen_struct_elt_for_reference): New.
2023 (gen_namespace_elt): New.
2024 (gen_maybe_namespace_elt): New.
2025 (gen_aggregate_elt_ref): New.
2026 (gen_expr): Add OP_SCOPE, display opcode name in error message.
2027
1054b214
TT
20282010-03-15 Tom Tromey <tromey@redhat.com>
2029
2030 * dwarf2read.c (die_needs_namespace): Also return 0 for
2031 DW_TAG_subprogram.
2032
13387711
SW
20332010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
2034
2035 PR c++/7936:
2036 * cp-support.h: Added char *declaration element to using_direct
2037 data struct.
2038 (cp_add_using): Added char *declaration argument.
2039 (cp_add_using_directive): Ditto.
2040 (cp_lookup_symbol_imports): made extern.
2041 * cp-namespace.c: Updated with the above changes.
2042 * dwarf2read.c (read_import_statement): Ditto.
2043 (read_namespace): Ditto.
2044 (read_import_statement): Support import declarations.
2045 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
2046 declarations.
2047 Added support for 'declaration_only' search.
2048 (cp_lookup_symbol_namespace): Attempt to search for the name as
2049 is before consideration of imports.
2050 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
2051 search at every block level search.
2052 Now takes language argument.
2053 (lookup_symbol_aux): Updated.
2054
6e31430b
TT
20552010-03-15 Tom Tromey <tromey@redhat.com>
2056
2057 * c-exp.y (name_not_typename): Add 'operator' clause.
2058
4dea3bb7 20592010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
2060
2061 * configure.ac: Exit if ${gdb_target_obs}" is not set.
2062 * configure: Regenerate.
2063
4d9743af
JK
20642010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2065
2066 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
2067 and ".sdynbss". Update the comment.
2068
f75150fe
JZ
20692010-03-15 Jie Zhang <jie@codesourcery.com>
2070
2071 * MAINTAINERS: Update my email address.
2072
3c13bc11
DJ
20732010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
2074
2075 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
2076
43484f03
DJ
20772010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
2078
2079 * charset.c [USE_WIN32API]: Include <windows.h>.
2080 (_initialize_charset): Correct type of w32_host_default_charset.
2081
5f25d77d
PA
20822010-03-14 Pedro Alves <pedro@codesourcery.com>
2083
2084 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
2085
1c809c68
TT
20862010-03-12 Tom Tromey <tromey@redhat.com>
2087
2088 PR c++/9708:
2089 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
2090 in a lexical block does not need a namespace.
2091 (new_symbol) <DW_TAG_variable>: Put extern variables on
2092 list_in_scope in all cases.
2093
948103cf
SS
20942010-03-12 Stan Shebs <stan@codesourcery.com>
2095
2096 * ax-gdb.c (gen_expr): Add shift expressions.
2097 (gen_expr_binop_rest): Ditto.
2098
00ae8fef
SW
20992010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
2100
2101 * buildsym.c (finish_block): Reset using_directives pointer
2102 after block initialization.
2103
9cad29ac
L
21042010-03-12 H.J. Lu <hongjiu.lu@intel.com>
2105
2106 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
2107 * i386-tdep.c (i386_word_names): Likewise.
2108
2f4d8875
PA
21092010-03-12 Pedro Alves <pedro@codesourcery.com>
2110
2111 * target.c (memory_xfer_partial): Don't use the stack cache if
2112 inspecting trace frames.
2113 * tracepoint.c (finish_tfind_command): Invalidate the target
2114 dcache.
2115
ccf26247
JK
21162010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2117
2118 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
2119 for the PIC displacement, print also the displacement value.
2120 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
2121
477c84a7
KB
21222010-03-10 Kevin Buettner <kevinb@redhat.com>
2123
2124 * remote-mips.c (close_ports, mips_initialize_cleanups)
2125 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
2126 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
2127 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
2128 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
2129 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
2130 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
2131 comments describing each of these functions.
2132 (mips_enter_debug, mips_exit_debug, common_open)
2133 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
2134 blank line after the comment describing the function.
2135
01c30d6e
JK
21362010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2137
2138 * solib-svr4.c (svr4_exec_displacement): Return now success, new
2139 parameter displacementp. Update comment.
2140 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
2141 element exists. Return if svr4_exec_displacement was not successful.
2142 Update comment.
2143
09919ac2
JK
21442010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2145 Daniel Jacobowitz <dan@codesourcery.com>
2146
2147 * solib-svr4.c (read_program_header): Support type == -1 to read
2148 all program headers.
2149 (read_program_headers_from_bfd): New function.
2150 (svr4_static_exec_displacement): Remove and move the comment ...
2151 (svr4_exec_displacement): ... here. Remove variable found. New
2152 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
2153 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
2154 targets using read_program_headers_from_bfd. Remove the call of
2155 svr4_static_exec_displacement.
2156
d146bf1e
TT
21572010-03-10 Tom Tromey <tromey@redhat.com>
2158
2159 * dwarf2read.c (struct pubnames_header): Remove.
2160 (_PUBNAMES_HEADER): Remove.
2161 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
2162 (struct aranges_header): Remove.
2163 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
2164 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
2165 (PUBNAMES_SECTION): Remove.
2166 (ARANGES_SECTION): Remove.
2167 (dwarf2_locate_sections): Don't handle pubnames or aranges.
2168 (dwarf2_build_psymtabs): Remove dead code.
2169 (dwarf2_build_psymtabs_easy): Remove.
2170
be391dca
TT
21712010-03-10 Tom Tromey <tromey@redhat.com>
2172
2173 * elfread.c (elf_symfile_read): Don't call
2174 dwarf2_build_frame_info.
2175 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
2176 (struct dwarf2_per_objfile) <objfile>: New field.
2177 (dwarf2_has_info): Now idempotent. Set objfile field.
2178 (dwarf2_read_section): Check and set readin field. Call
2179 posix_madvise.
2180 (dwarf2_build_psymtabs): Don't read all sections.
2181 (read_type_comp_unit_head): Read types section.
2182 (create_debug_types_hash_table): Likewise.
2183 (init_cu_die_reader): Add asserts.
2184 (process_type_comp_unit): Add assert.
2185 (dwarf2_build_psymtabs_hard): Read info section.
2186 (load_partial_comp_unit): Add assert.
2187 (create_all_comp_units): Read info section.
2188 (load_full_comp_unit): Likewise.
2189 (dwarf2_ranges_read): Read ranges section.
2190 (dwarf2_record_block_ranges): Add assert.
2191 (dwarf2_read_abbrevs): Read abbrev section.
2192 (read_indirect_string): Read str section.
2193 (dwarf_decode_line_header): Read line section.
2194 (read_signatured_type_at_offset): Read types section.
2195 (dwarf_decode_macros): Read macinfo section.
2196 (dwarf2_symbol_mark_computed): Read loc section.
2197 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
2198 dwarf2_build_frame_info.
2199 (dwarf2_build_frame_info): Unconditionally set
2200 dwarf2_frame_objfile_data on the objfile.
2201 * configure.ac: Check for posix_madvise.
2202 * config.in, configure: Rebuild.
2203
ccefe4c4
TT
22042010-03-10 Tom Tromey <tromey@redhat.com>
2205
e38df1d0
TT
2206 * xcoffread.c (xcoff_start_psymtab): Update.
2207 (xcoff_end_psymtab): Update.
2208 * psymtab.c (allocate_psymtab): Remove dead code.
2209 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
2210 void*.
2211 * mdebugread.c (parse_partial_symbols): Update.
2212 (new_psymtab): Likewise.
2213 * dwarf2read.c (process_psymtab_comp_unit): Update.
2214 (psymtab_to_symtab_1): Update.
2215 * dbxread.c (start_psymtab): Update.
2216 (end_psymtab): Likewise.
2217
be391dca 22182010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 2219
ccefe4c4
TT
2220 * xcoffread.c: Include psymtab.h.
2221 (xcoff_sym_fns): Update.
2222 * symtab.h (struct partial_symbol): Remove.
2223 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
2224 (struct partial_symtab): Remove.
2225 (PSYMTAB_TO_SYMTAB): Remove.
2226 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
2227 (find_pc_sect_psymtab): Remove.
2228 (find_pc_sect_symtab_via_partial): Declare.
2229 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
2230 (find_main_psymtab): Remove.
2231 (find_main_filename): Declare.
2232 (fixup_psymbol_section): Remove.
2233 (fixup_section): Declare.
2234 * symtab.c: Include psymtab.h.
2235 (lookup_symtab): Use lookup_symtab method.
2236 (lookup_partial_symtab): Remove.
2237 (find_pc_sect_psymtab_closer): Remove.
2238 (find_pc_sect_psymtab): Remove.
2239 (find_pc_sect_symtab_via_partial): New function.
2240 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
2241 (fixup_section): No longer static.
2242 (fixup_psymbol_section): Remove.
2243 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
2244 (lookup_global_symbol_from_objfile): Likewise.
2245 (lookup_symbol_aux_psymtabs): Remove.
2246 (lookup_symbol_aux_quick): New function.
2247 (lookup_symbol_global): Use lookup_symbol_aux_quick.
2248 (lookup_partial_symbol): Remove.
2249 (basic_lookup_transparent_type_quick): New function.
2250 (basic_lookup_transparent_type): Use it.
2251 (find_main_psymtab): Remove.
2252 (find_main_filename): New function.
2253 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
2254 (find_line_symtab): Use expand_symtabs_with_filename method.
2255 (output_partial_symbol_filename): New function.
2256 (sources_info): Use map_partial_symbol_filenames.
2257 (struct search_symbols_data): New type.
2258 (search_symbols_file_matches): New function.
2259 (search_symbols_name_matches): Likewise.
2260 (search_symbols): Use expand_symtabs_matching method.
2261 (struct add_name_data): Rename from add_macro_name_data.
2262 (add_macro_name): Update.
2263 (add_partial_symbol_name): New function.
2264 (default_make_symbol_completion_list): Use
2265 map_partial_symbol_names.
2266 (struct add_partial_symbol_name): New type.
2267 (maybe_add_partial_symtab_filename): New function.
2268 (make_source_files_completion_list): Use
2269 map_partial_symbol_filenames.
2270 (expand_line_sal): Use expand_symtabs_with_filename method.
2271 * symmisc.c: Include psymtab.h.
2272 (print_objfile_statistics): Use print_stats method.
2273 (dump_objfile): Use dump method.
2274 (dump_psymtab, maintenance_print_psymbols)
2275 (maintenance_info_psymtabs, maintenance_check_symtabs)
2276 (extend_psymbol_list): Remove.
2277 * symfile.h (struct quick_symbol_functions): New struct.
2278 (struct sym_fns) <qf>: New field.
2279 (sort_pst_symbols): Remove.
2280 (increment_reading_symtab): Declare.
2281 * symfile.c: Include psymtab.h.
2282 (compare_psymbols, sort_pst_symbols): Remove.
2283 (psymtab_to_symtab): Remove.
2284 (increment_reading_symtab): New function.
2285 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
2286 method.
2287 (set_initial_language): Use find_main_filename.
2288 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
2289 (free_named_symtabs): Remove unused code.
2290 (start_psymtab_common, add_psymbol_to_bcache)
2291 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
2292 Remove.
2293 * stack.c: Include psymtab.h, symfile.h.
2294 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
2295 * source.h (psymtab_to_fullname): Don't declare.
2296 * source.c: Include psymtab.h.
2297 (select_source_symtab): Use find_last_source_symtab method.
2298 (forget_cached_source_info): Use forget_cached_source_info
2299 method.
2300 (find_and_open_source): No longer static.
2301 (psymtab_to_fullname): Remove.
2302 * somread.c: Include psymtab.h.
2303 (som_sym_fns): Update.
2304 * psympriv.h: New file.
2305 * psymtab.h: New file.
2306 * psymtab.c: New file.
2307 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
2308 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
2309 * objfiles.c: Include psymtab.h.
2310 (objfile_relocate1): Use relocate method.
2311 (objfile_has_partial_symbols): Use has_symbols method.
2312 * mipsread.c: Include psymtab.h.
2313 (ecoff_sym_fns): Update.
2314 * mi/mi-cmd-file.c: Include psymtab.h.
2315 (print_partial_file_name): New function.
2316 (mi_cmd_file_list_exec_source_files): Use
2317 map_partial_symbol_filenames.
2318 * mdebugread.c: Include psympriv.h.
2319 * machoread.c: Include psympriv.h.
2320 (macho_sym_fns): Update.
2321 * m2-exp.y (yylex): Use lookup_symtab.
2322 * elfread.c: Include psympriv.h.
2323 (elf_sym_fns): Update.
2324 * dwarf2read.c: Include psympriv.h.
2325 * dbxread.c: Include psympriv.h.
2326 (aout_sym_fns): Update.
2327 * cp-support.c: Include psymtab.h.
2328 (read_in_psymtabs): Remove.
2329 (make_symbol_overload_list_qualified): Use
2330 expand_symtabs_for_function method.
2331 * coffread.c: Include psympriv.h.
2332 (coff_sym_fns): Update.
2333 * blockframe.c: Include psymtab.h.
2334 (find_pc_partial_function): Use find_pc_sect_symtab method.
2335 * ada-lang.h (ada_update_initial_language): Update.
2336 * ada-lang.c: Include psymtab.h.
2337 (ada_update_initial_language): Remove 'main_pst' argument.
2338 (ada_lookup_partial_symbol): Remove.
2339 (struct ada_psym_data): New type.
2340 (ada_add_psyms): New function.
2341 (ada_add_non_local_symbols): Use map_ada_symtabs method.
2342 (struct add_partial_datum): New type.
2343 (ada_add_partial_symbol_completions): New function.
2344 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
2345 (ada_exception_support_info_sniffer): Update.
2346 * Makefile.in (SFILES): Add psymtab.c.
2347 (COMMON_OBS): Add psymtab.o.
2348 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
2349
7d8500b7
PM
23502010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
2351
2352 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
2353
c0cc3a76
SW
23542010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
2355
2356 PR C++/11236:
2357 * cp-namespace.c (cp_add_using): Deleted.
2358 (cp_add_using_directive): Use obstack allocations.
2359 Merged the function cp_add_using into this one.
2360 Added 'struct obstack *' argument.
2361 (cp_scan_for_anonymous_namespaces): Updated.
2362 * cp-support.h: Updated.
2363 * dwarf2read.c (read_import_statement): Updated.
2364 (read_namespace): Updated.
2365
452fa064
CF
23662010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
2367
2368 * windows-nat.c (cygwin_conv_path): Remove old macro.
2369
60e1c644
PA
23702010-03-10 Pedro Alves <pedro@codesourcery.com>
2371
2372 * breakpoint.c (condition_command): Handle watchpoint conditions.
2373 (is_hardware_watchpoint): Add comment.
2374 (is_watchpoint): New.
2375 (update_watchpoint): Don't reparse the watchpoint's condition
2376 unless necessary.
2377 (WP_IGNORE): New.
2378 (watchpoint_check): Use it.
2379 (bpstat_check_watchpoint): Handle it.
2380 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
2381 conditions in a frame where it makes sense.
2382 (watch_command_1): Store the innermost block of the condition
2383 expression.
2384 (delete_breakpoint): Delete the watchpoint condition expression.
2385 * breakpoint.h (struct bp_location) <cond>: Update comment.
2386 (struct breakpoint): New field `cond_exp_valid_block'.
2387
af6b7be1
JB
23882010-03-09 Joel Brobecker <brobecker@adacore.com>
2389
2390 Adjust handling of Ada DIEs after dwarf2_physname patch.
2391 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
2392
60c5c021
CF
23932010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
2394 Pierre Muller <muller@ics.u-strasbg.fr>
2395
2396 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
2397 from/to posix/win32.
2398 (windows_make_so): Use non-Cygwin 1.7 specific function.
2399 (windows_create_inferior): Make sure that cygallargs points to
2400 original args in non Cygwin 1.7. case.
2401
60a1502a
MS
24022010-03-09 Michael Snyder <msnyder@vmware.com>
2403
2404 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
2405 after target_read_memory to get host byte order.
2406 (i386_process_record): Ditto.
2407
94af9270
KS
24082010-03-09 Keith Seitz <keiths@redhat.com>
2409
2410 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
2411 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
2412 print out const or volatile qualifiers, too.
2413 (c_type_print_args): Add parameters show_artificial and language.
2414 Skip artificial parameters when requested.
2415 Use the appropriate language printer.
2416 (c_type_print_varspec): Tell c_type_print_args to skip artificial
2417 parameters and pass language_c.
2418 * dwarf2read.c (die_list): New file global.
2419 (struct partial_die_info): Update comments for name field.
2420 (pdi_needs_namespace): Renamed to ...
2421 (die_needs_namespace): ... this. Rewrite.
2422 (dwarf2_linkage_name): Remove.
2423 (add_partial_symbol): Do not predicate the call to
2424 partial_die_full_name based on pdi_needs_namespace.
2425 Remove call to cp_check_possible_namespace_symbols and associated
2426 outdated comments.
2427 (guess_structure_name): Do not inspect child subprogram DIEs.
2428 (dwarf2_fullname): Update comments.
2429 Use die_needs_namespace to assist in computing the name.
2430 (read_func_scope): Use dwarf2_name to get the DIE's name.
2431 Use dwarf2_physname to get the "linkage name" of the DIE.
2432 (dwarf2_add_member_field): Use dwarf2_physname instead of
2433 dwarf2_linkage_name.
2434 (read_structure_type): For structs and classes, set TYPE_NAME, too.
2435 (determine_class): Remove.
2436 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
2437 except Ada.
2438 (new_symbol): Unconditionally call dwarf2_name.
2439 Compute the "linkage name" using dwarf2_physname.
2440 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
2441 When determining to scan for anonymous C++ namespaces, ignore
2442 the linkage name.
2443 (dwarf2_physname): New function.
2444 (dwarf2_full_name): Move content to new function and call
2445 that.
2446 (dwarf2_compute_name): "New" function.
2447 (_initialize_dwarf2_read): Initialize die_list.
2448 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
2449 physname.
2450 (gnu_v3_print_method_ptr): Use the physname for virtual methods
2451 without a demangled name.
2452 Print out type information for non-virtual methods.
c8d5aac9 2453 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 2454 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
2455 If we found a file symtab, re-evaluate whether the remainder is_quoted.
2456 (decode_compound): Stop consuming at an open parenthesis.
2457 Keep template parameters.
2458 Keep any overload information.
2459 Keep keywords like "const".
2460 Remove paren_pointer.
2461 Move is_quoted check from set_flags to here.
2462 Remove #if 0 code from 2000. Ten years is long enough.
2463 (find_method): Before comparing symbol names, canonicalize the string
2464 from the user.
2465 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
2466 (find_method_overload_end): New function.
2467 (set_flags): Remove.
c8d5aac9
L
2468 (decode_compound): Assume that parentheses are matched.
2469 It's a lot easier.
94af9270
KS
2470 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
2471 to cplus_demangle.
2472 * linespec.c (decode_line_1): Keep important keywords like
2473 "const" and "volatile".
2474 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
2475 * typeprint.h (c_type_print_args): Add declaration.
2476 * ui-file.c (do_ui_file_obsavestring): New function.
2477 (ui_file_obsavestring): New function.
2478 * ui-file.h (ui_file_obsavestring): Add declaration.
2479 * valops.c (find_overload_match): Resolve the object to
2480 a non-pointer type.
2481 If the object is a data member, search the object for the member
2482 and return with staticp set.
2483 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
2484 Do not attempt to extract a function name from non-function types.
2485 If the extracted function name and the original name are the same,
2486 we don't have a C++ method.
2487
8d95cc3b
PA
2488 From Jan Kratochvil <jan.kratochvil@redhat.com>:
2489 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
2490
2491 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
2492 and arguments from symbol lookups.
2493 * ax-gdb.c (gen_expr): Likewise.
2494 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
2495 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
2496 lookup_possible_namespace_symbol): Likewise.
2497 * cp-support.c (read_in_psymtabs): Likewise.
2498 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
2499 * language.h (la_lookup_symbol_nonlocal): Likewise.
2500 * scm-valprint.c (scm_inferior_print): Likewise.
2501 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
2502 * solib-svr.c (elf_lookup_lib): Likewise.
2503 * solib.c (show_auto_solib_add): Likewise.
2504 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
2505 * symmisc.c (maintenance_check_symtabs): Likewise.
2506 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
2507 lookup_symbol_aux_local, lookup_symbol_aux_block,
2508 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
2509 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
2510 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
2511 basic_lookup_transparent_type, find_main_psymtab,
2512 lookup_block_symbol): Likewise.
2513 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
2514 lookup_symbol_global, lookup_symbol_aux_block,
2515 lookup_symbol_partial_symbol, lookup_block_symbol,
2516 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
2517
9cb74f47
PM
25182010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
2519
2520 * python/python-internal.h: Include symtab.h.
2521
af6b7be1
JB
25222010-03-09 Joel Brobecker <brobecker@adacore.com>
2523 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
2524
2525 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
2526 * p-valprint.c (pascal_val_print): Remove undeed block and fix
2527 indentation.
2528
bad56014
TT
25292010-03-08 Tom Tromey <tromey@redhat.com>
2530
2531 * breakpoint.c (breakpoint_1): Add "QUIT".
2532
08105857
PA
25332010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
2534 Pedro Alves <pedro@codesourcery.com>
2535
2536 * solib.c (solib_find): Replace extension if
2537 solib_symbols_extension is set in the target gdbarch.
2538 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
2539 solib_symbols_extension to "sym".
2540 * gdbarch.sh (solib_symbols_extension): New variable.
2541 (pstring): New function.
2542 * gdbarch.h, gdbarch.c: Regenerate.
2543
7c953934
TT
25442010-03-08 Tom Tromey <tromey@redhat.com>
2545
2546 PR cli/9591:
2547 * NEWS: Update.
2548 * utils.c: Include main.h.
2549 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
2550 (defaulted_query): Use default answer if `batch_flag'.
2551 * main.h (batch_flag): Declare.
2552 * main.c (batch_flag): New global.
2553 (captured_main): Remove 'batch'. Update.
2554
bbd2783e
KB
25552010-03-08 Kevin Buettner <kevinb@redhat.com>
2556
2557 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
2558 and Kevin Buettner:
2559
2560 * remote-mips.c (rockhopper_ops): New target_ops struct.
2561 (MON_ROCKHOPPER): New mips_monitor_type.
2562 (read_hex_value): New function.
2563 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 2564 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
2565 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
2566 (rockhopper_open): New function.
2567 (mips_wait): Read the PC, FP and SP fields as strings. Use
2568 read_hex_value to parse them and mips_set_register to commit them.
2569 (mips_set_register): New function.
2570 (mips_fetch_registers): Do not cast register value to "unsigned"
2571 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
2572 (mips_store_registers): Use a 'T' packet to set registers when
2573 using MON_ROCKHOPPER.
2574 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
2575 and expect the total to be printed before the entry address.
2576 (_initialize_remote_mips): Initialize and add rockhopper_ops.
2577
566f3d17
KB
25782010-03-08 Kevin Buettner <kevinb@redhat.com>
2579
2580 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
2581 Change return value to int. Store value fetched in location
2582 addressed by `val'. Use function's return value as success
2583 or failure indicator. Adjust all callers.
2584
9c8ee2ab 25852010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
2586
2587 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
2588
7155de5a
HZ
25892010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2590 Hui Zhu <teawater@gmail.com>
2591
2592 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
2593 tmp_to_stopped_data_address.
2594 (record_open): Reset tmp_to_stopped_by_watchpoint and
2595 tmp_to_stopped_data_address.
2596 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
2597 to_stopped_data_address.
2598
580879fc
HZ
25992010-03-08 Hui Zhu <teawater@gmail.com>
2600
2601 * i386-tdep.c (i386_process_record): Initialize regnum.
2602
b0fcb67f
JK
26032010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2604
2605 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
2606 Do not warn on ".gnu.liblist" and ".gnu.conflict".
2607
08597104
JB
26082010-03-08 Joel Brobecker <brobecker@adacore.com>
2609
2610 Memory error when reading wrong core file.
2611 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
2612 errors while reading the inferior memory, and return zero if
2613 an exception was raised.
2614
425b824a
MS
26152010-03-07 Michael Snyder <msnyder@vmware.com>
2616
ec6dbf37
MS
2617 * record.c (record_restore): Rename tmpu8 to rectype.
2618
648d0c8b
MS
2619 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
2620 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
2621
2622 (i386_record_push): Rename local tmpulongest to addr.
2623
2624 (i386_process_record): Rename local tmpulongest to addr.
2625
2626 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
2627 addr64.
955db0c0
MS
2628
2629 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 2630
10760264
JB
26312010-03-07 Joel Brobecker <brobecker@adacore.com>
2632
2633 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 2634 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 2635
b3c613f2
CF
26362010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
2637
2638 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
2639 block. Define helper macros to reduce ifdefs in code.
2640 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
2641 size. Call unadorned GetModuleFileNameEx rather than
2642 GetModuleFileNameEx*.
2643 (windows_make_so): Use __PMAX to denote maximum buffer size and
2644 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
2645 appropriate.
2646 (get_image_name): Use __PMAX to denote maximum buffer size.
2647 (handle_load_dll): Likewise.
2648 (windows_pid_to_exec_file): Likewise.
2649 (windows_create_inferior): Add many accommodations for older Cygwin and
2650 non-Cygwin.
2651 (bad_GetModuleFileNameExW): Control inclusion of this function based on
2652 __USEWIDE conditional.
2653 (bad_GetModuleFileNameExA): Likewise.
2654 (_initialize_loadable): Just use real function names without the dyn_
2655 part since they are defined earlier.
2656
f870a310
TT
26572010-03-05 Corinna Vinschen <vinschen@redhat.com>
2658 Tom Tromey <tromey@redhat.com>
2659
2660 * utils.c (host_char_to_target): Add 'gdbarch' argument.
2661 (parse_escape): Likewise.
2662 * python/py-utils.c (unicode_to_target_string): Update.
2663 (unicode_to_target_python_string): Update.
2664 (target_string_to_unicode): Update.
2665 * printcmd.c (printf_command): Update.
2666 * p-exp.y (yylex): Update.
2667 * objc-exp.y (yylex): Update.
2668 * mi/mi-parse.c: Include charset.h.
2669 (mi_parse_escape): New function.
2670 (mi_parse_argv): Use it.
2671 * jv-exp.y (yylex): Update.
2672 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
2673 function.
2674 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
2675 * gdbarch.sh (auto_charset, auto_wide_charset): New.
2676 * gdbarch.c: Rebuild.
2677 * gdbarch.h: Rebuild.
2678 * defs.h (parse_escape): Update.
2679 * cli/cli-setshow.c: Include arch-utils.h.
2680 (do_setshow_command): Update.
2681 * cli/cli-cmds.c (echo_command): Update.
2682 * charset.h (target_charset, target_wide_charset): Update.
2683 * charset.c: Include arch-utils.h.
2684 (target_charset_name): Default to "auto".
2685 (target_wide_charset_name): Likewise.
2686 (show_target_charset_name): Handle "auto".
2687 (show_target_wide_charset_name): Likewise.
2688 (be_le_arch): New global.
2689 (set_be_le_names): Add 'gdbarch' argument.
2690 (validate): Likewise. Don't call set_be_le_names.
2691 (set_charset_sfunc, set_host_charset_sfunc)
2692 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
2693 Update.
2694 (target_charset): Add 'gdbarch' argument.
2695 (target_wide_charset): Likewise. Remove 'byte_order' argument.
2696 (auto_target_charset_name): New global.
2697 (default_auto_charset, default_auto_wide_charset): New functions.
2698 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
2699 for target charsets. Copy result of nl_langinfo. Use GetACP if
2700 USE_WIN32API.
2701 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
2702 remove 'byte_order' argument. Update.
2703 (classify_type): Likewise.
2704 (c_emit_char): Update.
2705 (c_printchar): Update.
2706 (c_printstr): Update.
2707 (c_get_string): Update.
2708 (evaluate_subexp_c): Update.
2709 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
2710 Declare.
2711 * python/python.c (gdbpy_target_charset): New function.
2712 (gdbpy_target_wide_charset): Likewise.
2713 (GdbMethods): Update.
2714 * NEWS: Update.
2715
4e7386b0
UW
27162010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
2717
2718 * symfile.c (build_section_addr_info_from_objfile): Do not mask
2719 off high address bits.
2720
aab48ede
UW
27212010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
2722
2723 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
2724 address as UnsignedLongLong, not LongLong.
2725
8eeafb51 27262010-03-05 Kevin Buettner <kevinb@redhat.com>
c8d5aac9 2727 Pedro Alves <pedro@codesourcery.com>
8eeafb51
KB
2728
2729 * remote-mips.c (gdbthread.h): Include.
2730 (remote_mips_ptid): Declare.
2731 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
2732 (common_open): Set inferior_ptid, add it as an inferior, and
2733 as a thread too. Delete FIXME comment regarding start_remote().
2734 (mips_close): Invoke generic_mourn_inferior().
2735 (mips_kill): Make sure that target_mourn_inferior is invoked.
2736 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
2737 it's now invoked from mips_close().
2738 (mips_load): Don't null out inferior_ptid. Don't call
2739 clear_symtab_users().
2740 (mips_thread_alive, mips_pid_to_str): New functions.
2741 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
2742 to_thread_alive and to_pid_to_str operations.
2743
ae411497
TT
27442010-03-04 Tom Tromey <tromey@redhat.com>
2745
2746 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
2747 in DWARF 3 and later.
2748 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
2749
0e0b460e
KS
27502010-03-04 Keith Seitz <keiths@redhat.com>
2751
2752 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
2753 If the filename portion of the linespec was quoted, recheck the
2754 remainder for additional quoting.
2755 (locate_first_half): Skip over completer chars, too.
2756
1b93ff13
TT
27572010-03-04 Tom Tromey <tromey@redhat.com>
2758
2759 * printcmd.c (printf_command): Pass dummy argument to
2760 printf_filtered.
2761
fc36e839
DE
27622010-03-04 Doug Evans <dje@google.com>
2763
111f853c
DE
2764 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
2765 unwound_fp.
2766
fc36e839
DE
2767 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
2768
c7437ca6
PA
27692010-03-04 Pedro Alves <pedro@codesourcery.com>
2770
2771 * breakpoint.c (update_watchpoint): Create a sentinel location if
2772 the software watchpoint isn't watching any memory.
2773 (breakpoint_address_bits): Skip dummy software watchpoint locations.
2774
58dadb1b
PA
27752010-03-04 Pedro Alves <pedro@codesourcery.com>
2776
2777 * utils.c (fputs_maybe_filtered): Check if there's already a top
2778 level interpreter before dereferencing it. If there isn't one,
2779 don't paginate either.
2780
50e98be4
DJ
27812010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2782
2783 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
2784 the state right when single stepping.
2785 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
2786 Get the next PC along with the instruction state.
2787 (thumb_get_next_pc): Remove.
2788 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
2789
2e3ceee9
HZ
27902010-03-04 Hui Zhu <teawater@gmail.com>
2791
2792 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
2793
390a8aca
PA
27942010-03-03 Pedro Alves <pedro@codesourcery.com>
2795
2796 * utils.c (fputs_maybe_filtered): Always disable pagination if the
2797 top level interpreter is MI.
2798
9355b391
SS
27992010-03-03 Stan Shebs <stan@codesourcery.com>
2800
2801 * remote.c (remote_download_tracepoint): Iterate over locations.
2802 * tracepoint.c (validate_actionline): Ditto.
2803 (encode_actions): Add location argument.
2804 (trace_dump_command): Check all locations to see if stepping
2805 frame.
390a8aca 2806
8685c86f
L
28072010-03-03 H.J. Lu <hongjiu.lu@intel.com>
2808 Eli Zaretskii <eliz@gnu.org>
2809
2810 * NEWS: Add X86 general purpose registers section.
2811
e8f781e2
TT
28122010-03-03 Tom Tromey <tromey@redhat.com>
2813
2814 PR mi/11098:
2815 * varobj.c (install_new_value): Handle case where new print_value
2816 is NULL.
2817
a0e0ef55
TT
28182010-03-03 Dainis Jonitis <jonitis@gmail.com>
2819
2820 PR gdb/11345:
2821 * printcmd.c (printf_command): Print end of format string using
2822 printf_filtered.
2823
a58d7472
TT
28242010-03-02 Tom Tromey <tromey@redhat.com>
2825
2826 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
2827 * defs.h (read_command_lines_1): Add missing 'void'.
2828 * cli/cli-script.c (recurse_read_control_structure): Add missing
2829 'void'.
2830 (read_next_line): Likewise.
2831 (read_command_lines_1): Likewise.
2832
ce50d78b
UW
28332010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
2834
2835 * spu-tdep.c (spu_analyze_prologue): Track instruction to
2836 store backchain as part of prologue.
2837
7e9af34a
DJ
28382010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
2839
2840 * progspace.c (update_address_spaces): Update inferior address spaces
2841 also.
2842
01637564
DE
28432010-03-02 Doug Evans <dje@google.com>
2844
2845 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
2846 lowpc,highpc args to addrmap_set_empty.
2847
1ba53b71
L
28482010-03-02 H.J. Lu <hongjiu.lu@intel.com>
2849
2850 * amd64-tdep.c (amd64_byte_names): New.
2851 (amd64_word_names): Likewise.
2852 (amd64_dword_names): Likewise.
2853 (amd64_pseudo_register_name): Likewise.
2854 (amd64_pseudo_register_read): Likewise.
2855 (amd64_pseudo_register_write): Likewise.
2856 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
2857 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
2858 set_gdbarch_pseudo_register_write and
2859 set_tdesc_pseudo_register_name. Don't call
2860 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
2861
2862 * i386-tdep.c (i386_num_mmx_regs): Removed.
2863 (i386_num_pseudo_regs): Likewise.
2864 (i386_byte_names): New.
2865 (i386_word_names): Likewise.
2866 (i386_byte_regnum_p): Likewise.
2867 (i386_word_regnum_p): Likewise.
2868 (i386_mmx_regnum_p): Updated.
2869 (i386_pseudo_register_name): Make it global. Handle byte and
2870 word pseudo-registers.
2871 (i386_pseudo_register_read): Likewise.
2872 (i386_pseudo_register_write): Likewise.
2873 (i386_pseudo_register_type): Handle byte, word and dword
2874 pseudo-registers
2875 (i386_register_reggroup_p): Don't include pseudo
2876 registers, except for MXX, in any register groups. Don't
2877 include pseudo byte, word, dword registers in general_reggroup.
2878 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
2879 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
2880 pseudo-registers after word pseudo-registers. Call
2881 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
2882
2883 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
2884 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
2885 eax_regnum.
2886 (i386_byte_regnum_p): New.
2887 (i386_word_regnum_p): Likewise.
2888 (i386_dword_regnum_p): Likewise.
2889 (i386_pseudo_register_name): Likewise.
2890 (i386_pseudo_register_read): Likewise.
2891 (i386_pseudo_register_write): Likewise.
2892
a6f5ef51
L
28932010-03-01 H.J. Lu <hongjiu.lu@intel.com>
2894
2895 * target-descriptions.c (tdesc_type): Remove
2896 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
2897 (tdesc_predefined_types): Likewise.
2898 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
2899 if flag name is empty.
2900 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
2901
2902 * features/i386/32bit-core.xml: Define i386_eflags.
2903 * features/i386/64bit-core.xml: Likewise.
2904
2905 * features/i386/32bit-sse.xml: Define i386_mxcsr.
2906 * features/i386/64bit-sse.xml: Likewise.
2907
2908 * features/i386/amd64-linux.c: Regenerated.
2909 * features/i386/amd64.c: Likewise.
2910 * features/i386/i386-linux.c: Likewise.
2911 * features/i386/i386.c: Likewise.
2912
f5dff777
DJ
29132010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
2914
2915 * gdbtypes.c (append_composite_type_field_raw): New.
2916 (append_composite_type_field_aligned): Use the new function.
2917 * gdbtypes.h (append_composite_type_field_raw): Declare.
2918 * target-descriptions.c (struct tdesc_type_field): Add start and end.
2919 (struct tdesc_type_flag): New type.
2920 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
2921 kind. Add size to u.u. Add u.f for flags.
2922 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
2923 (tdesc_free_type): Likewise.
2924 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
2925 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
2926 (tdesc_add_bitfield, tdesc_add_flag): New.
2927 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
2928 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
2929 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
2930 current_type. Add current_type_size and current_type_is_flags.
2931 (tdesc_start_union): Clear the new fields.
2932 (tdesc_start_struct, tdesc_start_flags): New.
2933 (tdesc_start_field): Handle struct fields, including bitfields.
2934 (field_attributes): Make type optional. Add start and end.
2935 (union_children): Rename to struct_union_children.
2936 (union_attributes): Rename to struct_union_attributes. Add optional
2937 size.
2938 (flags_attributes): New.
2939 (feature_children): Add struct and flags.
2940 * features/gdb-target.dtd: Add flags and struct to features.
2941 Make field type optional. Add field start and end.
2942
90884b2b
L
29432010-03-01 H.J. Lu <hongjiu.lu@intel.com>
2944
2945 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
2946 (amd64_linux_read_description): Likewise.
2947 (_initialize_amd64_linux_nat): Set to_read_description to
2948 amd64_linux_read_description.
2949
2950 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
2951 (amd64_linux_register_name): Removed.
2952 (amd64_linux_register_type): Likewise.
2953 (amd64_linux_core_read_description): New.
2954 (amd64_linux_init_abi): Set target description to
2955 tdesc_amd64_linux if needed. Support orig_rax in target
2956 description. Don't call set_gdbarch_register_name nor
2957 set_gdbarch_register_type. Call
2958 set_gdbarch_core_read_description.
2959 (_initialize_amd64_linux_tdep): Call
2960 initialize_tdesc_amd64_linux.
2961
2962 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
2963
2964 * amd64-tdep.c: Include "features/i386/amd64.c".
2965 (amd64_register_names): Removed.
2966 (amd64_register_name): Likewise.
2967 (amd64_register_type): Likewise.
2968 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 2969 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
2970 set_gdbarch_register_name nor set_gdbarch_register_type.
2971 (_initialize_amd64_tdep): New.
2972
2973 * i386-linux-nat.c (i386_linux_read_description): New.
2974 (_initialize_i386_linux_nat): Set to_read_description to
2975 i386_linux_read_description.
2976
2977 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
2978 (i386_linux_register_name): Removed.
2979 (i386_linux_core_read_description): New.
2980 (i386_linux_read_description): Likewise.
2981 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
2982 Set target description to tdesc_i386_linux if needed. Support
2983 orig_eax. Set register_reggroup_p. Call
2984 set_gdbarch_core_read_description.
2985 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
2986
2987 * i386-linux-tdep.h (tdesc_i386_linux): New.
2988
2989 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
2990 with I387_NUM_REGS.
2991
2992 * i386-tdep.c: Include "features/i386/i386.c".
2993 (i386_register_names): Make it const.
2994 (i386_mmx_names): Likewise.
2995 (i386_num_register_names): Removed.
2996 (i386_register_name): Likewise.
2997 (i386_eflags_type): Likewise.
2998 (i386_mxcsr_type): Likewise.
2999 (i386_sse_type): Likewise.
3000 (i386_register_type): Likewise.
3001 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
3002 (i386_pseudo_register_name): New.
3003 (i386_pseudo_register_type): Likewise.
3004 (i386_mmx_type): Make it static.
3005 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
3006 I387_NUM_REGS. Set num_core_regs and register_names. Don't
3007 call set_gdbarch_register_name nor set_gdbarch_register_type.
3008 Set register_reggroup_p. Set target description to tdesc_i386
3009 if needed. Call set_tdesc_pseudo_register_type,
3010 set_tdesc_pseudo_register_name and tdesc_use_registers.
3011 (_initialize_i386_tdep): Call initialize_tdesc_i386.
3012 initialize_tdesc_x86_64.
3013
3014 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
3015 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
3016 register_names, tdesc and register_reggroup_p.
3017 (I386_NUM_FREGS): Removed.
3018 (i386_eflags_type): Likewise.
3019 (i386_mxcsr_type): Likewise.
3020 (i386_mmx_type): Likewise.
3021 (i386_sse_type): Likewise.
3022 (i386_register_name): Likewise.
3023 (i386_regnum): Add I386_MXCSR_REGNUM.
3024 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
3025
3026 * i387-tdep.h (I387_NUM_REGS): New.
3027
3028 * regformats/i386/i386-linux.dat: Generated.
3029 * regformats/i386/i386.dat: Likewise.
3030 * regformats/i386/amd64-linux.dat: Likewise.
3031 * regformats/i386/amd64.dat: Likewise.
3032
3033 * regformats/reg-i386-linux.dat: Removed.
3034 * regformats/reg-i386.dat: Likewise.
3035 * regformats/reg-x86-64-linux.dat: Likewise.
3036 * regformats/reg-x86-64.dat: Likewise.
3037
d0d0ab16
CV
30382010-03-01 Corinna Vinschen <vinschen@redhat.com>
3039
3040 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
3041 cygwin_conv_path API rather than the deprecated
3042 cygwin_conv_to_full_posix_path.
3043 * windows-nat.c:
3044 (GetModuleFileNameExA): Undefine for Cygwin.
3045 (GetModuleFileNameExW): Define for Cygwin.
3046 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
3047 Call GetModuleFileNameExW and convert path to POSIX using
3048 cygwin_conv_path.
3049 (windows_make_so): Always define p. Drop unused variable m.
3050 Don't use Win32 functions to check file existance, rather use
3051 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
3052 Use canonicalize_file_name to get full path.
3053 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
3054 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
3055 use correct target buffer size in call to WideCharToMultiByte.
3056 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
3057 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
3058 (windows_create_inferior): Convert all paths and arguments to wchar_t
3059 and use CreateProcessW on Cygwin.
3060 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
3061 (bad_GetModuleFileNameExA): Undefine for Cygwin.
3062 (bad_GetModuleFileNameExW): Define for Cygwin.
3063 (_initialize_loadable): Load GetModuleFileNameExW into
3064 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
3065
dc00d89f
PM
30662010-02-28 Phil Muldoon <pmuldoon@redhat.com>
3067
3068 PR python/11036
3069 * python/py-frame.c (frapy_read_var): Add block argument and logic
3070 to cope with user provided blocks.
3071
0e095b7e
JK
30722010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3073
3074 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
3075 New comment.
3076
2f9e05b4
CV
30772010-02-28 Corinna Vinschen <vinschen@redhat.com>
3078
3079 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
3080 (COMMON_OBS): ... to here since it's used unconditionally.
3081 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
3082 (SFILES): To here.
3083
eb195664
DD
30842010-02-26 David Daney <ddaney@caviumnetworks.com>
3085
3086 * mips-linux-tdep.c: Update struct sigframe comments.
3087 (SIGFRAME_CODE_OFFSET): Delete macro.
3088 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
3089 this_frame's sp.
3090 (mips_linux_n32n64_sigframe_init): Same.
3091
97b0f3e2
KB
30922010-02-26 Kevin Buettner <kevinb@redhat.com>
3093
3094 * remote-mips.c (mips_load): Don't use pseudo-register when
3095 invalidating regcache.
3096
4069ebbe
DJ
30972010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
3098
3099 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
3100
05071a4d
PA
31012010-02-26 Pedro Alves <pedro@codesourcery.com>
3102
3103 * NEWS: Add "New targets" section, and mention ARM Symbian
3104 support.
3105
6063c216
UW
31062010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
3107
3108 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
3109 add ADDR_SIZE member.
3110 (allocate_piece_closure): Update.
3111 (copy_pieced_value_closure): Likewise.
3112 (dwarf2_evaluate_loc_desc): Likewise.
3113 (read_pieced_value): Use DWARF address size instead of
3114 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
3115
5107b149 31162010-02-26 Phil Muldoon <pmuldoon@redhat.com>
c8d5aac9 3117 Tom Tromey <tromey@redhat.com>
5107b149
PM
3118
3119 * python/py-type.c (typy_lookup_typename): Add in block argument.
3120 If provided restrict lookup to specified blocks.
3121 (gdbpy_lookup_type): Likewise.
3122 (typy_lookup_type): Likewise.
3123
78664fa3 31242010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8d95cc3b 3125
78664fa3
PA
3126 Symbian config
3127
3128 gdb/
3129 * arm-symbian-tdep.c: New.
3130 * configure.tgt (arm*-*-symbianelf*): New target.
3131 (*-*-symbianelf*): New OS.
3132 * osabi.c (gdb_osabi_names): Add Symbian.
3133 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
3134 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
3135 (ALLDEPFILES): Add arm-symbian-tdep.c.
3136
eb73e134
DJ
31372010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
3138
3139 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
3140
46ef47e5
PA
31412010-02-24 Pedro Alves <pedro@codesourcery.com>
3142
3143 * mi/mi-main.c (mi_cmd_execute): Fix typo.
3144
f3e9a817 31452010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8d95cc3b 3146 Tom Tromey <tromey@redhat.com>
f3e9a817
PM
3147 Thiago Jung Bauermann <bauerman@br.ibm.com>
3148
3149 * python/python.c (_initialize_python): Call
3150 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
3151 gdbpy_initialize_blocks.
3152 * python/python-internal.h: Declare struct symbol, block and
3153 symtab_and_line. Declare block_object_type and
3154 symbol_object_type
3155 (gdbpy_lookup_symbol gdbpy_block_for_pc)
3156 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
3157 (symbol_to_symbol_object, block_to_block_object)
3158 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
3159 (gdbpy_initialize_blocks ): Declare.
3160 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
3161 (frapy_select): Add methods.
3162 (frapy_read_var): Add symbol branch.
3163 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
3164 py-block.
3165 (SUBDIR_PYTHON_SRCS): Likewise.
3166 (py-symbol.o): New rule.
3167 (py-symtab.o): Likewise.
3168 (py-block.o): Likewise.
3169 * python/py-symbol.c: New file.
3170 * python/py-symtab.c: Likewise.
3171 * python/py-block.c: Likewise.
3172
24291992
PA
31732010-02-24 Pedro Alves <pedro@codesourcery.com>
3174
3175 PR gdb/11321
3176
3177 * inferior.h (prepare_for_detach): Declare.
3178 (struct inferior) <detaching>: New field.
3179 * infrun.c (prepare_for_detach): New.
3180 (handle_inferior_event) <random signal>: Don't stop if detaching.
3181 * target.c (target_detach): Call prepare_for_detach.
3182
fc1cf338
PA
31832010-02-24 Pedro Alves <pedro@codesourcery.com>
3184
3185 Per-process displaced stepping queue.
3186
3187 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
3188 (displaced_step_gdbarch, displaced_step_closure,
3189 (displaced_step_original, displaced_step_copy): Move globals to
3190 this...
3191 (struct displaced_step_inferior_state): ... new structure.
3192 (displaced_step_inferior_states): New global.
3193 (get_displaced_stepping_state, add_displaced_stepping_state)
3194 (remove_displaced_stepping_state, infrun_inferior_exit): New
3195 functions.
3196 (displaced_step_clear): Add displaced_step_inferior_state
3197 parameter, and adjust to handle it.
3198 (displaced_step_clear_cleanup): Parameter is now a
3199 displaced_step_inferior_state. Adjust.
3200 (displaced_step_prepare): Adjust.
3201 (displaced_step_fixup, displaced_step_fixup)
3202 (infrun_thread_ptid_changed, resume): Adjust.
3203 (init_wait_for_inferior): Don't call displaced_step_clear.
3204 (infrun_thread_stop_requested): Rewrite.
3205 (_initialize_infrun): Install infrun_inferior_exit as
3206 inferior_exit observer.
3207
0723dbf5
PA
32082010-02-24 Pedro Alves <pedro@codesourcery.com>
3209
3210 * inferior.h (ptid_match): Declare.
3211 * infrun.c (ptid_match): New.
3212 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
3213 (handle_notification): Add debug output.
3214 * linux-nat.c (ptid_match): Delete.
3215
09de9781
DM
32162010-02-24 David S. Miller <davem@davemloft.net>
3217
3218 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
3219 * syscalls/sparc-linux.xml: New.
3220 * syscalls/sparc64-linux.xml: New.
3221 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
3222 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
3223 (sparc32_linux_get_syscall_number): New function.
3224 (sparc32_linux_init_abi): Set syscall XML file name and hook up
3225 syscall number fetcher.
3226 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
3227 (sparc64_linux_get_syscall_number): New function.
3228 (sparc64_linux_init_abi): Set syscall XML file name and hook up
3229 syscall number fetcher.
3230
a79b8f6e
VP
32312010-02-24 Vladimir Prus <vladimir@codesourcery.com>
3232
3233 Multiexec MI
3234
3235 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
3236 * inferior.c (add_inferior_silent): Notify inferior_added
3237 observer.
3238 (delete_inferior_1): Notify inferior_removed observer.
3239 (exit_inferior_1): Pass inferior, not pid, to observer.
3240 (inferior_appeared): Likewise.
3241 (add_inferior_with_spaces): New.
3242 (add_inferior_command): Use the above.
3243 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
3244 Declare.
3245
3246 * inflow.c (inflow_inferior_exit): Likewise.
3247 * jit.c (jit_inferior_exit_hook): Likewise.
3248
3249 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
3250 remove-inferior.
3251 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
3252 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
3253 (report_initial_inferior): New.
3254 (mi_inferior_removed): Register the above. Make sure
3255 inferior_added observer is called on the first inferior.
3256 (mi_new_thread, mi_thread_exit): Thread group is now identified by
3257 inferior number, not pid.
3258 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
3259 affected.
3260 * mi/mi-main.c (current_context): New.
3261 (proceed_thread_callback): Use typed closure.
3262 Proceed everything if pid is 0. Most implementation split into
3263 (proceed_thread): ... this.
3264 (run_one_inferior): New.
3265 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
3266 Adjust for multiexec behaviour.
3267 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
3268 (mi_cmd_execute): Handle the 'thread-group' option here.
3269 Do some extra checks.
3270 * mi-parse.c (mi_parse): Handle the --all and --thread-group
3271 options.
3272 * mi-parse.h (struct mi_parse): New fields all and thread_group.
3273
115d30f9
VP
32742010-02-24 Vladimir Prus <vladimir@codesourcery.com>
3275
3276 Make -exec-run a proper MI commands.
3277
3278 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
3279 * mi/mi-cmds.c (mi_cmds): Adjust.
3280 * mi/mi-main.c (mi_cmd_exec_run): New.
3281
06cd862c
PA
32822010-02-24 Pedro Alves <pedro@codesourcery.com>
3283 Stan Shebs <stan@codesourcery.com>
3284
3285 * tracepoint.h (set_traceframe_number)
3286 (cleanup_restore_current_traceframe): Declare.
3287 * tracepoint.c (set_traceframe_number): New.
3288 (struct current_traceframe_cleanup): New.
3289 (do_restore_current_traceframe_cleanup)
3290 (restore_current_traceframe_cleanup_dtor)
3291 (make_cleanup_restore_current_traceframe): New.
3292 * infrun.c: Include tracepoint.h.
3293 (fetch_inferior_event): Switch out and in of tfind mode.
3294
ab92d69b
PA
32952010-02-24 Pedro Alves <pedro@codesourcery.com>
3296
3297 * breakpoint.c (breakpoint_init_inferior): Also delete
3298 bp_shlib_event breakpoints.
3299 * solib-frv.c (enable_break): Remove call to
3300 remove_solib_event_breakpoints.
3301 * solib-svr4.c (enable_break): Ditto.
3302 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
3303 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
3304 * solib-som.c (som_solib_create_inferior_hook): Ditto.
3305 * solib-spu.c (spu_enable_break): Ditto.
3306
e707a91d
PA
33072010-02-23 Harald Koenig <H.Koenig@science-computing.de>
3308
3309 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
3310
cfce2ea2
PA
33112010-02-23 Harald Koenig <H.Koenig@science-computing.de>
3312
3313 * varobj.c (varobj_update): Avoid non-constants in initializers.
3314
05566b3b
TT
33152010-02-23 Tom Tromey <tromey@redhat.com>
3316
3317 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
3318 handle big-endian values.
3319 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
3320
85d721b8
PA
33212010-02-22 Pedro Alves <pedro@codesourcery.com>
3322
3323 PR9605
3324
3325 gdb/
3326 * breakpoint.c (insert_bp_location): If inserting the read
3327 watchpoint failed, fallback to an access watchpoint.
3328 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
3329 if the value changed, if not watching the same memory for writes.
3330 (watchpoint_locations_match): Add comment.
3331 (update_global_location_list): Copy the location's watchpoint type.
3332 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
3333 handle read watchpoints here.
3334 (i386_insert_watchpoint): Read watchpoints aren't supported.
3335 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
3336 packets.
3337 * target.h (target_insert_watchpoint): Update description.
3338
48ea67a7
TT
33392010-02-19 Tom Tromey <tromey@redhat.com>
3340
3341 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
3342 * m2-typeprint.c (m2_print_type): Update.
3343 * gdbtypes.c (recursive_dump_type): Update.
3344 (copy_type_recursive): Update.
3345 * c-typeprint.c (c_type_print_varspec_prefix): Update.
3346 (c_type_print_base): Update.
3347 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
3348 Remove.
3349 (struct cplus_struct_type) <ntemplate_args>: Remove.
3350 <struct template_arg>: Remove.
3351 <is_dynamic>: Move earlier.
3352 (TYPE_TEMPLATE_ARGS): Remove.
3353 (TYPE_NTEMPLATE_ARGS): Remove.
3354 (TYPE_TEMPLATE_ARG): Remove.
3355
48e32051
TT
33562010-02-19 Tom Tromey <tromey@redhat.com>
3357
3358 PR c++/8693, PR c++/9496:
3359 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
3360 * c-exp.y (lex_one_token): Rename from yylex. Don't call
3361 write_dollar_variable. Don't try to classify NAME tokens.
3362 (token_and_value): New type.
3363 (token_fifo, popping, name_obstack): New globals.
3364 (classify_name): New function.
3365 (classify_inner_name): Likewise.
3366 (yylex): Likewise.
3367 (VARIABLE): Now has type sval.
3368 (exp : VARIABLE): Call write_dollar_variable.
3369 (qualified_name): Use TYPENAME, not typebase. Add production for
3370 multiple "::" instances.
3371 (variable): Use name_not_typename.
3372 (qualified_type): Remove.
3373 (typebase): Update.
3374
672d9c23
JK
33752010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3376
3377 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
3378 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
3379 found by bfd_get_section_by_name.
3380 * symfile.h (struct section_addr_info) <sectindex>: New comment.
3381
bfbf3774
JB
33822010-02-19 Joel Brobecker <brobecker@adacore.com>
3383
3384 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
3385 7.0 section" into "Changes in 7.1".
3386
6756b09b 33872010-02-19 Joel Brobecker <brobecker@adacore.com>
3388
3389 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
3390 * version.in: Bump version to 7.1.50.20100219-cvs.
3391
202b96c1
PA
33922010-02-18 Harald Koenig <H.Koenig@science-computing.de>
3393
3394 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
3395 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
3396
de2e5182
TT
33972010-02-17 Tom Tromey <tromey@redhat.com>
3398
3399 * NEWS: Add Python API Improvements section.
3400
7280022e
DJ
34012010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
3402
3403 * NEWS: Correct typo.
3404
6f451e5e
TT
34052010-02-17 Tom Tromey <tromey@redhat.com>
3406
3407 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
3408
012836ea
JK
34092010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3410
3411 * symfile.c (build_section_addr_info_from_objfile): Include sections
3412 only if they are SEC_ALLOC or SEC_LOAD.
3413
d182d057
L
34142010-02-17 H.J. Lu <hongjiu.lu@intel.com>
3415
3416 PR shlibs/11293
3417 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
3418 of ULONGEST for address size.
3419
4eef138c
TT
34202010-02-17 Tom Tromey <tromey@redhat.com>
3421
3422 * NEWS: Add C++ improvements section.
3423
548a926a
UW
34242010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
3425
3426 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
3427 PyThreadState_Swap): Avoid "statement with no effect" warning.
3428
ad3a0e5b
JK
34292010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3430
3431 * solib-svr4.c (enable_break <target_auxv_search>): New variable
3432 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
3433
243e2c5d 34342010-02-17 Tristan Gingold <gingold@adacore.com>