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